/* =============================================================================
   Inner pages — breadcrumbs, page intro (hero-lite), article body, listing grid.
   Neutral, typography-driven hierarchy composed from design tokens.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Breadcrumbs
   ----------------------------------------------------------------------------- */

.breadcrumbs {
  padding-block: var(--space-5) 0;
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* -----------------------------------------------------------------------------
   Page intro — the "hero lite" for inner pages.
   ----------------------------------------------------------------------------- */

.page-intro {
  position: relative;
  padding-block: 40px 48px;
}

.breadcrumbs + .page-intro {
  padding-top: var(--space-7);
}

@media (max-width: 719px) {
  .page-intro {
    padding-block: 28px 36px;
  }

  .breadcrumbs + .page-intro {
    padding-top: var(--space-6);
  }
}

.page-intro h1 {
  margin: 0 0 var(--space-5);
  max-width: var(--max-width-heading);
  font-family: var(--font-heading);
  font-size: var(--fs-page-title);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  color: var(--text-strong);
  text-wrap: balance;
}

.page-intro p {
  margin: 0;
  max-width: var(--max-width-prose);
  font-size: var(--fs-page-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-body);
  color: var(--text-base);
  text-wrap: pretty;
}

/* Lead variant — muted, descriptive subtitle under the H1.
   Opt-in via `pageIntroVariant = "lead"` in the page template
   (see src/partials/page-intro.njk). Use on pages where the intro
   text is a descriptive lead rather than the first article paragraph. */
.page-intro--lead p {
  color: var(--text-muted);
}

.page-intro p.page-intro__meta {
  margin: var(--space-3) 0 var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  width: fit-content;
  max-width: none;
  font-family: var(--font-heading);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--text-muted);
}

.page-intro__meta time {
  color: inherit;
}

.page-intro__meta-sep {
  color: var(--border-base);
}

.page-intro:has(+ .article-body) {
  padding-bottom: var(--space-5);
}

.page-intro + .article-body {
  padding-top: 0;
}

/* -----------------------------------------------------------------------------
   Listing helper CTA
   ----------------------------------------------------------------------------- */

.page-intro:has(+ .listing-help-cta) {
  padding-bottom: var(--space-3);
}

.listing-help-cta {
  margin: 0 0 var(--space-6);
}

.listing-help-cta__button {
  appearance: none;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--text-base);
  text-align: left;
  text-decoration: none;
  background: var(--surface-1);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}

.listing-help-cta__button:hover {
  color: var(--text-strong);
  border-color: var(--border-base);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.listing-help-cta__button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 719px) {
  .listing-help-cta {
    margin-bottom: var(--space-6);
  }
}

/* -----------------------------------------------------------------------------
   Listing page grid (used on listing / category pages)
   ----------------------------------------------------------------------------- */

.listing-page-grid {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--section-pad-y);
}

.faq-block--listing,
.faq-block--locations {
  background: transparent;
  padding-top: 0;
}

@media (min-width: 720px) {
  .listing-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .listing-page-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -----------------------------------------------------------------------------
   Article body — privacy, terms, about, location, details.
   Calm editorial reading surface with single --lh-body rhythm.
   ----------------------------------------------------------------------------- */

.article-body {
  padding-block: var(--space-8) var(--section-pad-y);
  max-width: var(--max-width-prose);
}

.article-body p {
  margin: 0 0 var(--space-5);
  color: var(--text-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-7);
}

.article-body__cta-intro {
  margin: var(--space-9) 0 var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.article-body__cta-intro + .article-body__actions {
  margin-top: 0;
}

.article-body p a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.article-body p a:not(.btn):hover,
.article-body p a:not(.btn):focus-visible {
  opacity: 0.75;
}

.article-body h2 {
  margin: var(--space-10) 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--fs-article-h2);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-heading-sm);
  line-height: var(--lh-heading-sm);
  color: var(--text-strong);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: var(--space-8) 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--fs-article-h3);
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-strong);
}

.article-body h3:first-child {
  margin-top: 0;
}

.article-body__list {
  margin: 0 0 var(--space-5);
  padding-left: 1.25rem;
  color: var(--text-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

.article-body__list li {
  margin-bottom: var(--space-2);
}

.article-body__list li::marker {
  color: var(--accent);
}

.article-body__list li:last-child {
  margin-bottom: 0;
}

/* Plain variant — for requisites / legal key-value lists.
   No markers, no padding, wider li spacing.
   Subtle positive tracking helps digits/IDs read as "officially-looking". */
.article-body__list--plain {
  list-style: none;
  padding-left: 0;
  letter-spacing: var(--ls-small);
}

.article-body__list--plain li {
  margin-bottom: var(--space-3);
}

.article-body__list--plain li::marker {
  content: none;
}

/* Table of contents — sits between intro and the sections list.
   Quiet card, accent-colored numbered links, jumps to in-page anchors. */
.article-toc {
  margin: 0 0 var(--space-10);
  padding: var(--space-6) var(--space-7);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f8fbfc 0%, #eef4f6 100%);
  box-shadow: var(--shadow-xs);
}

.article-toc__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.article-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-base);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.article-toc__list li {
  margin-bottom: var(--space-2);
}

.article-toc__list li:last-child {
  margin-bottom: 0;
}

.article-toc__list a {
  color: var(--text-base);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.article-toc__list a:hover,
.article-toc__list a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Anchor offset so jumped-to headings don't tuck under the sticky header. */
.article-body h2[id] {
  scroll-margin-top: var(--space-10);
}

/* Optional hero image on legal / location pages. */
.article-hero {
  margin: 0 0 var(--space-8);
  max-height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #f8fbfc 0%, #eef4f6 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
}

.article-hero > img {
  display: block;
  width: 100%;
  min-height: 240px;
  max-height: 320px;
  object-fit: cover;
}

.article-hero > .media-placeholder {
  min-height: 240px;
}
