/*
 * Visitors page layout (the /gastvisser landing page for day
 * visitors / guest anglers).
 *
 * Composes shared primitives from _layout.css (.container,
 * .grid-4up, .section-lead), _eyebrow.css (.eyebrow,
 * .eyebrow-block-title), _tables.css (.data-table),
 * _cta_band.css (.cta-band), _badges.css (.badge), and
 * _buttons.css (.btn).
 *
 * Everything in this file is genuinely visitors-specific: the
 * compact page hero, the sticky section nav, the four-step
 * process list, the pricing-table overrides (price tag + row
 * highlight), the eight-card rules grid, the six-card tips
 * grid. If any of these recurs on a second page, promote it to
 * a shared stylesheet.
 *
 * No literal colour, spacing, or font values — everything routes
 * through var() tokens from _tokens.css. See docs/design_system.md
 * §"Do Nots".
 */

/* Page hero (compact subpage variant) lives in _page_hero.css — this
 * file does not redefine .page-hero, .breadcrumb, .page-eyebrow,
 * .page-hero-title, or .page-hero-lead. Those are shared across every
 * public subpage that isn't the home landing. */

/* ---- Sticky section nav ------------------------------------------- */

/* The site nav from _site_nav.css is also sticky (position: sticky;
 * top: 0; z-index: 100). Stack the section nav immediately below it
 * so both remain visible on scroll — top matches the measured site-
 * nav rendered height (~4rem = 63.4px from .85rem padding-block × 2
 * plus --fs-base line-height plus a 2px border-bottom). If the site
 * nav height changes, update this value and the .visitors-how,
 * .visitors-pricing, .visitors-rules, .visitors-tips scroll-margin-
 * top below in the same commit. */
.visitors-section-nav {
  background: white;
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 4rem;
  z-index: 50;
}

.visitors-section-nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.visitors-section-nav-inner::-webkit-scrollbar {
  display: none;
}

.visitors-section-nav-link {
  display: block;
  white-space: nowrap;
  padding: 1rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.visitors-section-nav-link:hover {
  color: var(--forest);
}

/* No active-link highlight — the section nav would need the section
 * elements as FOLLOWING siblings to drive active state from pure CSS
 * (via `section:target ~ .visitors-section-nav ...`), but the nav is
 * rendered BEFORE the sections in DOM order so the `~` combinator
 * can't reach the target. Scroll-spy highlighting is a future
 * Stimulus enhancement — static anchors are the MVP. */

/* ---- Section rhythm ----------------------------------------------- */

.visitors-how,
.visitors-pricing,
.visitors-rules,
.visitors-tips {
  padding-block: 3rem;
  /* scroll-margin-top = site nav (4rem) + section nav (~3.5rem)
   * so in-page anchor scrolls land below both sticky bars. */
  scroll-margin-top: 7.5rem;
}

.visitors-pricing,
.visitors-tips {
  background: var(--stone);
}

@media (min-width: 48rem) {
  .visitors-how,
  .visitors-pricing,
  .visitors-rules,
  .visitors-tips {
    padding-block: 3.5rem;
  }
}

/* ---- Step-by-step -------------------------------------------------- */

.visitors-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.visitors-steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.visitors-step-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  min-width: 2.5rem;
  text-align: center;
}

.visitors-step-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
}

.visitors-step-content > p {
  font-size: var(--fs-base);
  color: var(--ink);
  line-height: 1.65;
  max-width: 58ch;
  margin-bottom: 1rem;
}

.visitors-step-note {
  background: var(--stone);
  border-left: 3px solid var(--accent);
  padding: .875rem 1.125rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.55;
  max-width: 58ch;
}

.visitors-step-note strong {
  color: var(--ink);
}

.visitors-step-note a,
.visitors-steps p a {
  color: var(--water);
}

/* ---- Pricing table overrides -------------------------------------- */

.visitors-pricing-table {
  margin-top: 1.5rem;
}

.visitors-pricing-meta {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.4;
}

.visitors-price-tag {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.visitors-price-tag small {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 400;
  font-family: "Source Serif 4", Georgia, serif;
}

.visitors-pricing-badge {
  margin-left: .5rem;
  vertical-align: middle;
}

.visitors-pricing-row-highlight td {
  background: oklch(from var(--forest) l c h / .04);
}

.visitors-pricing-footnote {
  margin-top: 1.25rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  max-width: 64ch;
}

.visitors-pricing a {
  color: var(--water);
}

@media (max-width: 48rem) {
  .visitors-pricing-table {
    display: block;
    overflow-x: auto;
  }
}

/* ---- Rules grid --------------------------------------------------- */

.visitors-rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.visitors-rule-card {
  background: white;
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.visitors-rule-card.visitors-rule-card--warning {
  background: oklch(from var(--accent) l c h / .07);
  border-color: oklch(from var(--accent) l c h / .25);
}

.visitors-rule-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.visitors-rule-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .375rem;
}

.visitors-rule-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

.visitors-rule-card a {
  color: var(--water);
}

@media (min-width: 48rem) {
  .visitors-rules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 80rem) {
  .visitors-rules-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Tips grid ---------------------------------------------------- */

.visitors-tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.visitors-tip-card {
  background: white;
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}

.visitors-tip-icon {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: .75rem;
}

.visitors-tip-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
}

.visitors-tip-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

@media (min-width: 48rem) {
  .visitors-tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .visitors-tips-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
