/* JobMaster Display - self-hosted, six weights. Source of truth: jobmaster-business/branding/fonts. */
@font-face { font-family: 'JobMaster Display'; src: url('/assets/fonts/JobMasterDisplay-Regular.woff2')   format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JobMaster Display'; src: url('/assets/fonts/JobMasterDisplay-Medium.woff2')    format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JobMaster Display'; src: url('/assets/fonts/JobMasterDisplay-SemiBold.woff2')  format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JobMaster Display'; src: url('/assets/fonts/JobMasterDisplay-Bold.woff2')      format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JobMaster Display'; src: url('/assets/fonts/JobMasterDisplay-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JobMaster Display'; src: url('/assets/fonts/JobMasterDisplay-Black.woff2')     format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --brand-navy: #14345C;
  --brand-navy-deep: #0B1C32;
  --brand-yellow: #E49C0C;
  --brand-yellow-deep: #B37A09;
  --brand-mist: #EEF1F7;
  --ink: #18181B;
  --ink-soft: #3F3F46;
  --paper: #FAFAFA;
  --grid: #E4E4E7;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'JobMaster Display', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: 'JobMaster Display', system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* Removed: .brand-gradient-text, .brand-gradient-bg, .text-yellow-ink (gradient-led system retired). */

.bg-navy { background-color: var(--brand-navy); }
.bg-navy-deep { background-color: var(--brand-navy-deep); }
.bg-yellow { background-color: var(--brand-yellow); }
.text-navy { color: var(--brand-navy); }
.border-navy { border-color: var(--brand-navy); }

/* Yellow-on-navy highlight patterns. Yellow text on light surfaces always sits on a navy ground. */
.text-marker {
  color: var(--brand-yellow);
  background: linear-gradient(transparent 55%, var(--brand-navy) 55%);
  padding: 0 0.18em;
  font-weight: 700;
}

.text-pill-navy {
  display: inline-flex; align-items: center;
  background: var(--brand-navy); color: var(--brand-yellow);
  padding: 0.18rem 0.6rem;
  border-radius: 9999px;
  font-weight: 600; font-size: 0.85em; letter-spacing: 0.02em;
}

.text-block-navy {
  display: inline-block;
  background: var(--brand-navy); color: var(--brand-yellow);
  padding: 0.15em 0.4em;
  border-radius: 0.25em;
  font-weight: 800;
}

.text-block-yellow {
  display: inline-block;
  background: var(--brand-yellow); color: var(--brand-navy);
  padding: 0.15em 0.4em;
  border-radius: 0.25em;
  font-weight: 800;
}

/* Solid navy CTA band. Inside the band, .text-block-navy inverts so the same class works on both light and dark surfaces. */
.cta-band { background: var(--brand-navy); color: white; }
.cta-band .text-block-navy {
  background: var(--brand-yellow);
  color: var(--brand-navy);
}

.section-mist { background: var(--brand-mist); }

.grid-bg {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

.hero-grid {
  position: relative;
  background-color: var(--paper);
}
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at top, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 40%, transparent 75%);
  pointer-events: none;
}
.hero-grid > * { position: relative; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--brand-yellow);
  color: var(--brand-navy);
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(228, 156, 12, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--brand-yellow-deep);
  box-shadow: 0 8px 20px rgba(228, 156, 12, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--brand-navy);
  font-weight: 600;
  border: 2px solid var(--brand-navy);
  border-radius: 9999px;
  transition: background 0.15s ease;
}
.btn-secondary:hover { background: var(--paper); }

/* Disabled / "Coming Soon" button state - applies on top of btn-primary, btn-secondary,
   or any inline-styled CTA. Greys, desaturates, removes hover effects. */
.btn-disabled {
  cursor: not-allowed;
  filter: grayscale(100%);
  opacity: 0.55;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
  user-select: none;
}
.btn-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: inherit;
}

/* Inline "Coming Soon" badge inside a disabled button. */
.coming-soon-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid currentColor;
  color: inherit;
  margin-left: 0.4rem;
  white-space: nowrap;
  line-height: 1;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--brand-navy); background: var(--brand-mist); }
.nav-link[aria-current="page"] { color: var(--brand-navy); font-weight: 600; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-navy);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Lightbox --- */
img.is-zoomable { cursor: zoom-in; }
img.is-zoomable:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 3px; }

html.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  text-align: center;
  max-width: 60ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); transform: scale(1.05); }
.lightbox__close:focus-visible { outline: 2px solid white; outline-offset: 2px; }

details.mobile-nav > summary { list-style: none; cursor: pointer; }
details.mobile-nav > summary::-webkit-details-marker { display: none; }
details.mobile-nav[open] .hamburger-icon .line-1 { transform: rotate(45deg) translate(5px, 5px); }
details.mobile-nav[open] .hamburger-icon .line-2 { opacity: 0; }
details.mobile-nav[open] .hamburger-icon .line-3 { transform: rotate(-45deg) translate(6px, -6px); }
.hamburger-icon .line { transition: transform 0.2s ease, opacity 0.2s ease; transform-origin: center; }

article.guide { scroll-margin-top: 6rem; }

.toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.toc-link:hover { color: var(--brand-navy); border-left-color: var(--brand-yellow); }

.feature-card {
  background: white;
  border: 1px solid var(--grid);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(24, 24, 27, 0.08);
  border-color: #D4D4D8;
}
.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--brand-yellow);
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Inverted feature-icon: navy tile, yellow glyph. Use to alternate every
   second tile when three or more solid-yellow tiles would sit in a row.
   See design.md section 5.3. */
.feature-icon-navy {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--brand-navy);
  color: var(--brand-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.prose-guide h3 { font-weight: 700; color: var(--ink); margin-top: 1.25rem; }
.prose-guide p  { color: var(--ink-soft); line-height: 1.65; margin-top: 0.75rem; }
.prose-guide ul { margin-top: 0.75rem; padding-left: 1.25rem; list-style: disc; color: var(--ink-soft); }
.prose-guide li { margin-top: 0.375rem; line-height: 1.6; }
.prose-guide strong { color: var(--ink); }
.prose-guide a { color: var(--brand-navy); font-weight: 600; }
.prose-guide a:hover { text-decoration: underline; }

/* Honour prefers-reduced-motion. Disable hover translates, scale animations,
   and lightbox transitions for users who request reduced motion. Per design.md
   section 11. Animation durations are reduced to a near-zero value rather than
   removed entirely so transitions still complete (avoiding stuck states). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn-primary:hover,
  .feature-card:hover,
  .lightbox__close:hover { transform: none !important; }
  .hamburger-icon .line { transition: none !important; }
  details.mobile-nav[open] .hamburger-icon .line-1,
  details.mobile-nav[open] .hamburger-icon .line-3 { transform: none !important; }
}

/* -----------------------------------------------------------------------
   Theme toggle button
   ----------------------------------------------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { color: var(--brand-navy); background: var(--brand-mist); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 2px; }
.theme-toggle .icon-light { display: inline-flex; }
.theme-toggle .icon-dark { display: none; }
html.dark .theme-toggle .icon-light { display: none; }
html.dark .theme-toggle .icon-dark { display: inline-flex; }

/* -----------------------------------------------------------------------
   Brand logo (theme-aware)
   The header partial ships two <img> elements, one navy-on-transparent
   for light mode, one white+yellow-on-transparent for dark mode. Toggle
   visibility based on the .dark class on <html>. The footer logo is
   always the white variant since the footer is always navy.
   ----------------------------------------------------------------------- */
.logo-light { display: inline-block; }
.logo-dark  { display: none; }
html.dark .logo-light { display: none; }
html.dark .logo-dark  { display: inline-block; }

/* -----------------------------------------------------------------------
   Dark mode (opt-in via .dark on <html>; per design.md section 1.b)

   Strategy: keep brand colours canonical (do NOT lighten brand-navy). Per
   design.md: "do not use brand-navy as text or accents on dark surfaces.
   Use brand-yellow for accents instead." So in dark mode we:
     - keep --brand-navy at #14345C (canonical)
     - swap surface tokens to surface-dark / surface-dark-elevated / sunk
     - override SPECIFIC navy-using utilities to use yellow / white / elevated
       surfaces where the navy would otherwise lose contrast

   The CTA band, navy CTAs, and the navy-stamp highlight patterns
   (text-block-navy, text-pill-navy, text-marker) intentionally KEEP navy
   in dark mode - they read more subtly per design.md. Plain yellow is
   preferred for emphasis on dark.
   ----------------------------------------------------------------------- */
html.dark {
  color-scheme: dark;
  --paper:                  #18181B; /* zinc-900 - page bg            (= surface-dark) */
  --surface-elevated:       #27272A; /* zinc-800 - cards, modals      (= surface-dark-elevated) */
  --surface-sunk:           #09090B; /* zinc-950 - footers, inputs    (= surface-dark-sunk) */
  --ink:                    #FAFAFA; /* zinc-50  - primary text       (= ink-dark) */
  --ink-soft:               #D4D4D8; /* zinc-300 - body copy          (= ink-soft-dark) */
  --grid:                   #3F3F46; /* zinc-700 - dividers           (= grid-dark) */
  --brand-mist:             #27272A; /* alt section bg = elevated */
  /* brand-navy and brand-navy-deep stay canonical: #14345C / #0B1C32 */
}

html.dark body {
  background: var(--paper);
  color: var(--ink);
}

/* Tailwind utility overrides. Keep tight - only the patterns the marketing
   site actually uses. */
html.dark .bg-white            { background-color: var(--surface-elevated) !important; }
html.dark .bg-zinc-50          { background-color: var(--paper) !important; }
html.dark .bg-zinc-100         { background-color: var(--surface-elevated) !important; }
html.dark .bg-yellow-50        { background-color: #2A2316 !important; } /* tint of yellow ground */
html.dark .bg-paper            { background-color: var(--paper) !important; }
html.dark .text-ink            { color: var(--ink) !important; }
html.dark .text-zinc-400       { color: #A1A1AA !important; }
html.dark .text-zinc-500       { color: #A1A1AA !important; }
html.dark .text-zinc-600       { color: #D4D4D8 !important; }
html.dark .text-zinc-700       { color: #E4E4E7 !important; }
html.dark .border-zinc-200     { border-color: var(--grid) !important; }
html.dark .border-zinc-300     { border-color: #52525B !important; }
html.dark .border-yellow-200   { border-color: #4A3A0F !important; }
html.dark .divide-zinc-200 > * + * { border-top-color: var(--grid) !important; }

/* Sticky header glass effect. */
html.dark header.sticky {
  background-color: rgba(24, 24, 27, 0.85) !important;
  border-bottom-color: var(--grid) !important;
}

/* Body shadow tweaks for the darker ground. */
html.dark .shadow-zinc-200     { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important; }
html.dark .shadow-lg           { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55) !important; }

/* `.text-navy` (e.g., body copy that points at the navy brand colour) needs
   to flip to yellow on dark surfaces - per design.md §1.b, brand-yellow is
   the accent on dark grounds. */
html.dark .text-navy           { color: var(--brand-yellow) !important; }

/* Exception: when text-navy sits on a TRUE yellow ground (the founding-pricing
   chip, any pill with bg-yellow), the navy stays navy - the yellow tile is
   its own ground, not the page ground. Higher specificity wins. */
html.dark .bg-yellow.text-navy,
html.dark .bg-yellow-deep.text-navy { color: #14345C !important; }

/* `.border-navy` (cards with a navy accent border) - keep the navy
   identity but lift saturation a notch so it remains visible. Design.md §1.b
   notes navy is "too close to surface-dark"; use yellow-border accent
   instead for the highlighted-card pattern. */
html.dark .border-navy         { border-color: var(--brand-yellow) !important; }

/* The pricing-card "Most Effective" pill uses bg-navy to stand out. On
   dark, swap to yellow-on-navy stamp (which is the same pattern as
   .text-block-navy). */
html.dark .bg-navy             { background-color: var(--brand-yellow) !important; color: #14345C !important; }
html.dark .bg-navy.text-white  { color: #14345C !important; }

/* Section-mist alt bg = subtly raised dark surface. */
html.dark .section-mist        { background: #1F1F23; }

/* Hero grid pattern: dim grid lines so they remain visible on dark. */
html.dark .hero-grid::before {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
}

/* Form inputs: sunk relative to the form card. */
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="search"],
html.dark textarea {
  background-color: var(--surface-sunk) !important;
  color: var(--ink) !important;
  border-color: #52525B !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder { color: #71717A !important; }

/* Comparison-matrix headers + status row. */
html.dark thead.bg-zinc-50     { background-color: var(--paper) !important; }
html.dark tr.bg-zinc-50        { background-color: var(--paper) !important; }
html.dark .bg-zinc-50\/50      { background-color: rgba(24, 24, 27, 0.5) !important; }

/* CTA band stays navy on both modes - it is the brand stamp. */
html.dark .cta-band            { background: var(--brand-navy); color: #FFFFFF; }
html.dark .cta-band p,
html.dark .cta-band a:hover    { color: rgba(255, 255, 255, 0.95); }

/* Footer keeps the deepest navy in both modes; nudge slightly darker
   on dark mode to differentiate from the cta-band navy. */
html.dark footer.bg-navy-deep  { background-color: #050A14 !important; }

/* ----- Component-specific dark overrides per design.md §1.b ----- */

/* Secondary button: navy outline → white outline + white text on dark. */
html.dark .btn-secondary {
  background: var(--surface-elevated);
  color: var(--ink);
  border-color: var(--ink);
}
html.dark .btn-secondary:hover { background: var(--surface-sunk); }

/* Inverted feature icon (navy tile): on dark, the navy tile loses
   contrast against the page. Switch to a lifted-surface tile so the
   pattern reads as "elevated card". Yellow glyph stays. */
html.dark .feature-icon-navy {
  background: var(--surface-elevated);
  color: var(--brand-yellow);
  outline: 1px solid var(--grid);
  outline-offset: -1px;
}

/* Yellow feature icon glyph: keep glyph at canonical navy because the
   tile background is yellow (not affected by dark mode). The tile is
   still legible. */
html.dark .feature-icon { color: #14345C; }

/* Feature card body: the rule at line 300 hardcodes `background: white`,
   which the .bg-white utility override at line 436 doesn't catch. Mirror
   the elevated-surface pattern so headings (which inherit --ink = near
   white in dark) sit on the zinc-800 ground instead of pure white. */
html.dark .feature-card {
  background: var(--surface-elevated);
  border-color: var(--grid);
}
html.dark .feature-card:hover {
  border-color: #52525B;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

/* Theme toggle: hover should pop on dark; use yellow accent. */
html.dark .theme-toggle:hover { color: var(--brand-yellow); background: var(--surface-elevated); }

/* Back-to-top: in dark mode flip to yellow bg + navy glyph - per
   design.md §1.b's "use brand-yellow for accents on dark". */
html.dark .back-to-top {
  background: var(--brand-yellow);
  color: #14345C;
  box-shadow: 0 8px 24px rgba(228, 156, 12, 0.35);
}
html.dark .back-to-top:hover { background: var(--brand-yellow); filter: brightness(0.92); }

/* Heading anchor links: yellow on both modes, but on dark increase
   default opacity slightly so they cue better. */
html.dark .heading-anchor { color: var(--brand-yellow); }

/* Nav-link hover background: brand-mist becomes elevated-surface on dark. */
html.dark .nav-link:hover { color: var(--brand-yellow); background: var(--surface-elevated); }
html.dark .nav-link[aria-current="page"] { color: var(--brand-yellow); }

/* Eyebrow yellow pill (e.g., on hero pages): yellow-50 bg becomes a
   subtle dark-yellow tint; navy text becomes yellow. */
html.dark .text-navy.bg-yellow-50 { color: var(--brand-yellow) !important; }

/* `.text-marker` highlight: keep the navy underline canonical so the
   stamp identity reads on either ground. */
html.dark .text-marker { background: linear-gradient(transparent 55%, #14345C 55%); }

/* -----------------------------------------------------------------------
   Back-to-top floating button
   Appears after scrolling past the hero. Hidden by default; .is-visible is
   added by theme.js when scrollY exceeds the threshold.
   ----------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--brand-navy);
  color: var(--brand-yellow);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(20, 52, 92, 0.3);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--brand-navy-deep); }
.back-to-top:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 2px; }

/* -----------------------------------------------------------------------
   Heading anchor links
   On hover over h2/h3 in long-prose pages, surface a "#" anchor that
   copies a deep link to that section. Wired by theme.js.
   ----------------------------------------------------------------------- */
.heading-anchor {
  display: inline-block;
  margin-left: 0.4em;
  color: var(--brand-yellow);
  font-weight: 700;
  opacity: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.heading-anchor:focus-visible { opacity: 1; outline: 2px solid var(--brand-yellow); outline-offset: 2px; }
h2:hover .heading-anchor,
h3:hover .heading-anchor { opacity: 0.6; }
h2 .heading-anchor:hover,
h3 .heading-anchor:hover { opacity: 1; }

/* -----------------------------------------------------------------------
   Print stylesheet
   Strip the fluff (nav, footer, hero gradients, CTA bands, screenshots)
   and render long-prose pages as a clean B&W document. Honour design.md
   typography.
   ----------------------------------------------------------------------- */
@media print {
  @page { margin: 1.5cm; }

  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body { font-size: 11pt; line-height: 1.5; }

  header, footer,
  .cta-band,
  .hero-grid::before,
  .feature-icon, .feature-icon-navy,
  .back-to-top,
  .theme-toggle,
  .lightbox, .lightbox__close,
  details.mobile-nav,
  .btn-primary, .btn-secondary,
  [data-billing-toggle],
  nav[aria-label="Footer"],
  nav[aria-label="Legal"] { display: none !important; }

  .text-block-navy,
  .text-block-yellow,
  .text-marker,
  .text-pill-navy {
    background: transparent !important;
    color: #000 !important;
    padding: 0 !important;
    font-weight: 700 !important;
    text-decoration: underline;
  }

  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444 !important; }
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after { content: ""; }

  h1 { font-size: 22pt; margin-top: 0; }
  h2 { font-size: 16pt; margin-top: 1.2em; page-break-after: avoid; }
  h3 { font-size: 13pt; margin-top: 1em; page-break-after: avoid; }

  img { max-width: 100% !important; page-break-inside: avoid; }
  table { page-break-inside: avoid; }
  section { page-break-inside: avoid; }

  /* Print URL footer marker (handled by content-injection if desired). */
}
