/* ==========================================================================
   Slotty House — Guide Page Styles
   ========================================================================== */

.sh-guidepage {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .sh-guidepage {
    padding: 0 24px;
  }
}

/* ---------- Hero Section ---------- */
.sh-guide-hero {
  position: relative;
  overflow: hidden;
  height: 240px;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 640px) {
  .sh-guide-hero {
    height: 280px;
  }
}

.sh-guide-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-guide-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    hsla(220, 20%, 4%, 0.8) 40%,
    hsla(220, 20%, 4%, 0.3) 100%
  );
}

.sh-guide-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 0 24px;
}

/* ---------- Breadcrumb ---------- */
.sh-guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 12px;
}

.sh-guide-breadcrumb a {
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.2s;
}

.sh-guide-breadcrumb a:hover {
  color: var(--primary);
}

.sh-guide-breadcrumb-sep {
  color: hsla(220, 10%, 50%, 0.5);
}

.sh-guide-breadcrumb-current {
  color: var(--fg);
}

/* ---------- Hero Title ---------- */
.sh-guide-hero-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  margin: 0;
}

@media (min-width: 640px) {
  .sh-guide-hero-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .sh-guide-hero-title {
    font-size: 2.25rem;
  }
}

.sh-guide-hero-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  max-width: 42rem;
  margin-top: 6px;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .sh-guide-hero-desc {
    font-size: 1rem;
  }
}

/* ---------- Intro Text ---------- */
.sh-guide-intro {
  max-width: 56rem;
  margin: 24px auto 8px;
}

.sh-guide-intro-text {
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.75;
}

.sh-guide-intro-text p {
  margin-bottom: 12px;
  color: var(--muted-fg) !important;
}

.sh-guide-intro-text h2,
.sh-guide-intro-text h3 {
  color: var(--fg) !important;
  font-family: var(--font-display);
  font-weight: 700;
}

.sh-guide-intro-text a {
  color: hsl(152, 69%, 41%) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.sh-guide-intro-text a:hover {
  border-bottom-color: hsl(152, 69%, 41%);
}

.sh-guide-intro-text span,
.sh-guide-intro-text div {
  color: inherit !important;
  background-color: transparent !important;
}

/* ---------- Content Section ---------- */
.sh-guide-content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 40px 0;
}

.sh-guide-article {
  color: var(--muted-fg) !important;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.sh-guide-article h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg) !important;
  margin: 32px 0 12px;
}

.sh-guide-article h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg) !important;
  margin: 24px 0 8px;
}

.sh-guide-article p {
  margin-bottom: 16px;
  color: var(--muted-fg) !important;
}

.sh-guide-article ul,
.sh-guide-article ol {
  margin: 0 0 16px 24px;
  list-style: disc;
  color: var(--muted-fg) !important;
}

.sh-guide-article ol {
  list-style: decimal;
}

.sh-guide-article li {
  margin-bottom: 6px;
  color: var(--muted-fg) !important;
}

.sh-guide-article a {
  color: hsl(152, 69%, 41%) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.sh-guide-article a:hover {
  border-bottom-color: hsl(152, 69%, 41%);
}

/* Strip pasted inline colors from wp_editor content */
.sh-guide-article span,
.sh-guide-article div,
.sh-guide-article td,
.sh-guide-article th {
  color: inherit !important;
  background-color: transparent !important;
}

/* Tables inside content */
.sh-guide-article .sh-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.sh-guide-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.sh-guide-article table th {
  background: hsla(220, 15%, 12%, 0.5);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.sh-guide-article table td {
  padding: 10px 12px;
  border-bottom: 1px solid hsla(220, 15%, 15%, 0.3);
  color: var(--muted-fg);
}

.sh-guide-article table tr:hover td {
  background: hsla(220, 15%, 12%, 0.3);
}

.sh-guide-article .sh-td-name {
  color: var(--fg);
  font-weight: 600;
}

.sh-guide-article .sh-td-primary {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- FAQ Section ---------- */
.sh-guide-faq {
  max-width: 56rem;
  margin: 0 auto;
  padding-bottom: 40px;
}

.sh-guide-faq-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--fg);
  margin-bottom: 16px;
}

/* ---------- Mobile table scroll fix ---------- */
@media (max-width: 768px) {
  .sh-guide-article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .sh-guide-article table thead,
  .sh-guide-article table tbody,
  .sh-guide-article table tr,
  .sh-guide-article table td,
  .sh-guide-article table th {
    white-space: nowrap;
  }
}

/* ---------- Author Section ---------- */
.sh-guide-author {
  max-width: 56rem;
  margin: 0 auto;
  padding-bottom: 40px;
}
