/* ============================================================
   karam-team.com — "Coastal Ledger"
   Editorial typography meets a nautical chart.
   Single stylesheet. Self-hosted fonts, no external imports. Root-relative assets only.
   ------------------------------------------------------------
   0. Fonts
   1. Tokens (light) + dark redefinition
   2. Reset & base
   3. Typography
   4. Layout primitives (container, section scaffolding, ledger header)
   5. Buttons & links
   6. Icons
   7. Coastline motif
   8. Header + mobile overlay nav + scroll progress
   9. Hero
   10. Ticker
   11. Services (featured cards, segmented control, details rows)
   12. Calculator
   13. About / bio spread
   14. Areas split layout
   15. FAQ
   16. Schedule facade
   17. CTA banner
   18. Footer
   19. Reveal / motion utilities
   20. Reduced-motion + print
   ============================================================ */

/* ============ 0. FONTS ============ */
@font-face {
  font-family: "Zodiak";
  src: url("/fonts/zodiak-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zodiak";
  src: url("/fonts/zodiak-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/fonts/generalsans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/fonts/generalsans-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/fonts/generalsans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/spacemono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/spacemono-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============ 1. TOKENS ============ */
:root {
  color-scheme: light dark;

  /* Ink & paper (light mode values) */
  --paper:      oklch(98% 0.006 85);   /* cream, anchors #faf8f4 */
  --paper-2:    oklch(95.5% 0.008 85); /* card/tint layer */
  --ink:        oklch(26% 0.05 262);   /* navy, anchors #1a2744 */
  --ink-deep:   oklch(20% 0.045 258);  /* anchors #0f1a2e */
  --ink-2:      oklch(48% 0.03 258);   /* secondary text, anchors #5a6a82 */
  --ink-3:      oklch(55% 0.02 258);   /* faint text, tuned to clear 4.5:1 on --paper */
  --line:       oklch(88% 0.01 85);    /* hairlines, anchors #e2ddd4 */
  --gold:       oklch(69% 0.11 78);    /* anchors #c6943e */
  --gold-hover: oklch(75% 0.10 80);
  --gold-tint:  oklch(94% 0.03 85);    /* anchors #f5ecd8 */

  /* Anchors: literal values that never flip with the color scheme.
     Used for text on gold and for surfaces that are navy on purpose. */
  --navy-anchor:  oklch(20% 0.045 258);
  --cream-anchor: oklch(98% 0.006 85);

  /* Fluid type scale (400px -> 1240px) */
  --step--1: clamp(0.82rem, 0.78rem + 0.20vw, 0.94rem);
  --step-0:  clamp(1.00rem, 0.93rem + 0.33vw, 1.13rem);
  --step-1:  clamp(1.19rem, 1.05rem + 0.56vw, 1.50rem);
  --step-2:  clamp(1.42rem, 1.20rem + 0.89vw, 1.94rem);
  --step-3:  clamp(1.70rem, 1.37rem + 1.40vw, 2.49rem);
  --step-4:  clamp(2.03rem, 1.55rem + 2.05vw, 3.16rem);
  --step-5:  clamp(2.43rem, 1.74rem + 2.95vw, 4.06rem);
  --step-6:  clamp(2.90rem, 1.90rem + 4.20vw, 5.20rem);  /* hero H1 */

  /* Fluid space scale */
  --space-2xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-xs:  clamp(0.75rem, 0.68rem + 0.35vw, 1rem);
  --space-s:   clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --space-m:   clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --space-l:   clamp(2.25rem, 1.9rem + 1.75vw, 3.5rem);
  --space-xl:  clamp(3.5rem, 2.8rem + 3.5vw, 6rem);
  --space-2xl: clamp(5rem, 3.8rem + 6vw, 9rem);     /* section rhythm */

  --radius-s: 6px; --radius-m: 12px; --radius-l: 20px; --radius-full: 999px;
  --max-width: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   oklch(19% 0.03 258);
    --paper-2: oklch(23% 0.03 258);
    --ink:     oklch(93% 0.01 85);
    --ink-deep:oklch(97% 0.008 85);
    --ink-2:   oklch(72% 0.015 258);
    --ink-3:   oklch(61% 0.015 258);
    --line:    oklch(32% 0.02 258);
    --gold-tint: oklch(30% 0.04 80);
  }
  /* soft depth so the navy page reads as atmosphere, not a flat field */
  body {
    background-image:
      radial-gradient(54% 44% at 2% 1%, color-mix(in oklch, var(--gold) 7%, transparent) 0%, transparent 55%),
      radial-gradient(52% 48% at 100% 32%, color-mix(in oklch, var(--paper-2) 62%, transparent) 0%, transparent 52%),
      radial-gradient(48% 42% at 84% 100%, color-mix(in oklch, var(--gold) 5%, transparent) 0%, transparent 55%);
    background-attachment: fixed; background-repeat: no-repeat;
  }
}

/* ============ 2. RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: var(--gold) transparent;
  scrollbar-width: thin;
}

body {
  font-family: "General Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  accent-color: var(--gold);
  overflow-x: hidden;
}

/* Site-wide film grain to break up flat fills */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background-image: url("/images/noise.svg"); background-size: 220px 220px;
  opacity: 0.06; mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) { body::after { opacity: 0.05; } }

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

/* Numerics use tabular figures */
input, output, .calc-value, .tabular,
.ledger-index, .hero-step-num, .area-index, .ticker { font-variant-numeric: tabular-nums; }

::selection { background: var(--gold-tint); color: var(--ink-deep); }

/* Thin styled scrollbar on desktop (WebKit) */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; border: 3px solid var(--paper); }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}
:focus:not(:focus-visible) { outline: none; }

/* Skip link */
.skip-link {
  position: absolute; left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--gold); color: var(--navy-anchor);
  padding: 0.6rem 1rem; z-index: 200; font-weight: 600;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { transform: translateY(0); }

/* Cross-page cross-fade (progressive enhancement) */
@view-transition { navigation: auto; }

/* ============ 3. TYPOGRAPHY ============ */
h1, h2, h3, h4, .display {
  font-family: "Zodiak", Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-5); letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); letter-spacing: -0.015em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }
p + p { margin-top: 0.85em; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--gold-hover); }

strong { font-weight: 600; }
em { font-style: italic; }

/* Micro-label: uppercase, tracked, faint, left-aligned, paired with index/coordinates */
.micro-label {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}
.micro-label .icon { width: 1.1em; height: 1.1em; color: var(--gold); }

/* ============ 4. LAYOUT PRIMITIVES ============ */
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-s); }

.section { padding-block: var(--space-2xl); }
.section-tint { background: var(--paper-2); }

/* Ledger-style section header: index + micro-label, H2, intro. Left-aligned. */
.ledger-header { max-width: 62ch; margin-bottom: var(--space-l); }
.ledger-header .micro-label { margin-bottom: var(--space-xs); }
.ledger-header .index {
  font-family: "Zodiak", serif; color: var(--gold);
  font-weight: 500; margin-right: 0.15em;
}
.ledger-header h2 { margin-bottom: var(--space-xs); }
.ledger-header .intro { color: var(--ink-2); font-size: var(--step-1); max-width: 54ch; }
.ledger-header-flush { margin-bottom: 0; }

/* Dark scope: navy-on-purpose sections stay navy in BOTH color schemes.
   Pinning the tokens here means every descendant rule written against
   --paper/--ink-deep/--ink resolves to fixed values instead of flipping. */
.on-dark, .site-header, .nav-overlay {
  --paper: var(--cream-anchor);
  --ink-deep: var(--navy-anchor);
  --ink: oklch(26% 0.05 262);
}
.on-dark {
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(62% 52% at 8% 108%, color-mix(in oklch, var(--gold) 11%, transparent) 0%, transparent 62%),
    radial-gradient(58% 56% at 100% -8%, color-mix(in oklch, var(--paper) 9%, transparent) 0%, transparent 56%);
  background-repeat: no-repeat;
  color: color-mix(in oklch, var(--paper) 90%, transparent);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }
.on-dark .micro-label { color: color-mix(in oklch, var(--paper) 62%, transparent); }
.on-dark p { color: color-mix(in oklch, var(--paper) 78%, transparent); }
.on-dark a { color: var(--gold); }
.on-dark .hairline { border-color: color-mix(in oklch, var(--paper) 14%, transparent); }

/* Static grain overlay for dark sections */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("/images/noise.svg");
  background-size: 180px 180px;
  opacity: 0.04; pointer-events: none;
}

.hairline { border: 0; border-top: 1px solid var(--line); }

/* ============ 5. BUTTONS & LINKS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.4em;
  font-family: "General Sans", sans-serif;
  font-size: var(--step-0); font-weight: 600; line-height: 1.4;
  border: 1.5px solid transparent; border-radius: var(--radius-s);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.12s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease-out); }

/* Text on gold is always the literal navy; .on-dark a.btn-primary outranks
   the `.on-dark a { color: gold }` rule that would otherwise hide the label */
.btn-primary, .on-dark a.btn-primary { background: var(--gold); color: var(--navy-anchor); border-color: var(--gold); }
.btn-primary:hover, .on-dark a.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--navy-anchor); box-shadow: 0 8px 24px color-mix(in oklch, var(--gold) 35%, transparent); }
.btn-primary:hover .icon { transform: translateX(4px); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline { background: transparent; color: var(--ink); border-color: color-mix(in oklch, var(--ink) 35%, transparent); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.on-dark .btn-outline { color: var(--paper); border-color: color-mix(in oklch, var(--paper) 32%, transparent); }
.on-dark .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-block { width: 100%; }

/* Underlined text link with arrow; also resets UA styles when used on <button> */
.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: none; border: 0; padding: 0 0 1px; cursor: pointer;
  font-family: inherit; font-size: var(--step--1); font-weight: 500; color: var(--ink-2);
  border-bottom: 1px solid color-mix(in oklch, var(--ink-2) 40%, transparent);
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.on-dark .text-link { color: color-mix(in oklch, var(--paper) 72%, transparent); border-color: color-mix(in oklch, var(--paper) 30%, transparent); }
.on-dark .text-link:hover { color: var(--gold); border-color: var(--gold); }

.nowrap { white-space: nowrap; }

/* ============ 6. ICONS ============ */
.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor;
  vertical-align: middle;
}

/* ============ 7. COASTLINE MOTIF ============ */
.coastline { display: block; width: 100%; height: auto; color: var(--gold); }
.coastline path {
  stroke-dasharray: 100; stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .coastline[data-draw] path { stroke-dashoffset: 100; }
  .coastline[data-draw].is-drawn path {
    transition: stroke-dashoffset 1.4s var(--ease-out);
    stroke-dashoffset: 0;
  }
}
.coastline .city-dot circle {
  transition: r 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* ============ 8. HEADER ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in oklch, var(--ink-deep) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid color-mix(in oklch, var(--paper) 12%, transparent);
  view-transition-name: site-header;
}
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }
}
.site-header[data-hidden] { transform: translateY(-100%); opacity: 0; }

/* Scroll-progress hairline along the very top edge */
.scroll-progress {
  position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  background: var(--gold); z-index: 1;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      transform: scaleX(0);
      animation: progress-grow linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes progress-grow { to { transform: scaleX(1); } }
  }
}

.nav-inner {
  height: 100%; max-width: var(--max-width); margin-inline: auto;
  padding-inline: var(--space-s);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-s);
}
.logo-wrap { display: inline-flex; align-items: center; }
.header-logo { height: 36px; width: auto; }

.nav { display: flex; align-items: center; }
.nav-links {
  display: flex; align-items: center; gap: var(--space-m);
  list-style: none;
}
.nav-links a {
  position: relative;
  color: color-mix(in oklch, var(--paper) 82%, transparent);
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em;
  padding-block: 0.4em;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1.5px; width: 0; background: var(--gold);
  transition: width 0.25s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { color: var(--paper); }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a[aria-current="true"]:not(.nav-cta)::after { width: 100%; }
.nav-links a[aria-current="true"] { color: var(--paper); }

.nav-cta {
  background: var(--gold); color: var(--ink-deep);
  padding: 0.5em 1.1em; border-radius: var(--radius-s);
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-hover); color: var(--ink-deep); }

/* Mobile toggle button */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--paper); padding: 0.4em;
}
.nav-toggle .icon { width: 1.6rem; height: 1.6rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Full-screen overlay nav (mobile) */
.nav-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-xl) var(--space-l);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}
.nav-overlay[data-open] { opacity: 1; visibility: visible; }
.nav-overlay ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-s); }
.nav-overlay a {
  font-family: "Zodiak", serif; font-size: var(--step-3); font-weight: 500;
  color: var(--paper);
}
.nav-overlay a:hover, .nav-overlay a[aria-current="true"] { color: var(--gold); }
.nav-overlay .overlay-coords {
  margin-top: var(--space-l); color: color-mix(in oklch, var(--paper) 55%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .nav-overlay[data-open] li {
    animation: overlay-item 0.4s var(--ease-out) both;
  }
  .nav-overlay[data-open] li:nth-child(1) { animation-delay: 0ms; }
  .nav-overlay[data-open] li:nth-child(2) { animation-delay: 40ms; }
  .nav-overlay[data-open] li:nth-child(3) { animation-delay: 80ms; }
  .nav-overlay[data-open] li:nth-child(4) { animation-delay: 120ms; }
  .nav-overlay[data-open] li:nth-child(5) { animation-delay: 160ms; }
  .nav-overlay[data-open] li:nth-child(6) { animation-delay: 200ms; }
  .nav-overlay[data-open] li:nth-child(7) { animation-delay: 240ms; }
  @keyframes overlay-item {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Spacer so fixed header doesn't overlap content */
body { padding-top: var(--header-h); }

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 900px) {
  .nav-overlay { display: none; }
}

/* ============ 9. HERO ============ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding-block: var(--space-xl);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 92%, color-mix(in oklch, var(--gold) 12%, transparent) 0%, transparent 70%),
    radial-gradient(55% 50% at 88% 8%, color-mix(in oklch, var(--ink) 55%, transparent) 0%, transparent 70%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-l);
  align-items: center;
}
.hero-eyebrow { margin-bottom: var(--space-s); flex-wrap: wrap; }
.hero h1 {
  font-size: var(--step-6); margin-bottom: var(--space-s);
  font-weight: 500;
}
.hero h1 .line { display: block; }
.hero h1 em {
  font-style: italic; color: var(--gold);
  font-variation-settings: "WONK" 1, "SOFT" 40;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line {
    animation: line-rise 0.7s var(--ease-out) both;
  }
  .hero h1 .line:nth-child(1) { animation-delay: 0.10s; }
  .hero h1 .line:nth-child(2) { animation-delay: 0.22s; }
  .hero h1 .line:nth-child(3) { animation-delay: 0.34s; }
  @keyframes line-rise {
    from { opacity: 0; transform: translateY(0.5em); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.hero-coast-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: 128%; width: auto; z-index: 0;
  color: var(--gold); opacity: 0.10; pointer-events: none;
}
.hero-coast-bg path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-coast-bg ellipse { fill: currentColor; }
.hero-lead { font-size: var(--step-1); max-width: 52ch; margin-bottom: var(--space-m); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-s); }
.hero-actions .btn { flex: 1 1 auto; }
.hero-textlinks { display: flex; flex-wrap: wrap; gap: 0.35em 0.75em; align-items: center; }
.hero-textlinks .sep { color: color-mix(in oklch, var(--paper) 40%, transparent); }

/* Arch portrait with gold offset ring + rotated coordinates.
   Mobile: sits at the top of the hero, centered, above the eyebrow. */
.hero-portrait { position: relative; width: 180px; justify-self: center; order: -1; }
.portrait-arch {
  position: relative;
  border-radius: var(--radius-full) var(--radius-full) var(--radius-l) var(--radius-l);
  overflow: hidden;
  aspect-ratio: 896 / 1152;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.portrait-arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-portrait::before {
  content: ""; position: absolute; inset: -8px;
  border: 1.5px solid var(--gold);
  border-radius: calc(var(--radius-full) + 8px) calc(var(--radius-full) + 8px) calc(var(--radius-l) + 8px) calc(var(--radius-l) + 8px);
  pointer-events: none;
}
/* portrait-coords removed per request (was the rotated coordinate label beside the photo) */

/* Ledger step strip */
.hero-step-strip {
  display: grid; grid-template-columns: 1fr; gap: var(--space-s);
  margin-top: var(--space-l); padding-top: var(--space-m);
  border-top: 1px solid color-mix(in oklch, var(--paper) 14%, transparent);
}
.hero-step { display: flex; align-items: baseline; gap: 0.7em; }
.hero-step-num {
  font-family: "Zodiak", serif; color: var(--gold);
  font-size: var(--step-2); font-weight: 500; line-height: 1;
}
.hero-step-body { display: flex; flex-direction: column; }
.hero-step-body strong { color: var(--paper); font-weight: 600; }
.hero-step-body a { color: var(--paper); border-bottom: 1px solid var(--gold); }
.hero-step-body a:hover { color: var(--gold); }
.hero-step-body span { color: color-mix(in oklch, var(--paper) 58%, transparent); font-size: var(--step--1); }

@media (min-width: 640px) {
  .hero-step-strip { grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); }
  .hero-content { grid-column: 1 / 8; }
  .hero-portrait { grid-column: 9 / 13; order: 0; align-self: center; width: 100%; max-width: 340px; justify-self: end; }
  .hero-step-strip { grid-column: 1 / -1; }
}

/* ============ 10. TICKER ============ */
.ticker {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  padding-block: 0.7rem;
  display: flex; justify-content: center;
}
.ticker-track {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.5em var(--space-m);
  color: var(--ink-2); font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding-inline: var(--space-m); text-align: center;
}
.ticker-track .star { color: var(--gold); width: 0.8em; height: 0.8em; }

/* ============ 11. SERVICES ============ */
/* Featured cards */
.featured-cards {
  display: grid; grid-template-columns: 1fr; gap: var(--space-s);
  margin-bottom: var(--space-xl);
}
@media (min-width: 700px) { .featured-cards { grid-template-columns: 1fr 1fr; } }
.featured-card {
  display: flex; flex-direction: column; gap: var(--space-xs);
  padding: var(--space-l);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--ink);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.featured-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 32px color-mix(in oklch, var(--ink) 10%, transparent); color: var(--ink); }
.featured-card .fc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-s); }
.featured-card h3 { font-size: var(--step-3); color: var(--ink); }
.featured-card p { color: var(--ink-2); }
.featured-card .icon { width: 1.5rem; height: 1.5rem; color: var(--gold); transition: transform 0.25s var(--ease-out); }
.featured-card:hover .icon { transform: translate(3px, -3px); }

/* Segmented control (radio tabs). The .segmented wrapper also contains the
   panels, so the pill bar is its own .seg-bar and the thumb lives inside it;
   panel switching uses :has() on the wrapper. */
.segmented { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.seg-bar {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 560px; padding: 4px; margin-bottom: var(--space-l);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-full);
}
.seg-bar label {
  position: relative; z-index: 1; text-align: center;
  padding: 0.55em 1em; cursor: pointer;
  font-size: var(--step--1); font-weight: 600; color: var(--ink-2);
  border-radius: var(--radius-full);
  transition: color 0.25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.seg-bar label:hover { color: var(--ink); }
.seg-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 3);
  background: var(--gold); border-radius: var(--radius-full);
  transition: transform 0.3s var(--ease-out);
}
/* Thumb slide + checked label color */
.segmented:has(#seg-investor:checked) .seg-thumb { transform: translateX(100%); }
.segmented:has(#seg-second:checked) .seg-thumb { transform: translateX(200%); }
.segmented:has(#seg-primary:checked) label[for="seg-primary"],
.segmented:has(#seg-investor:checked) label[for="seg-investor"],
.segmented:has(#seg-second:checked) label[for="seg-second"] { color: var(--navy-anchor); }
/* Keyboard focus ring lands on the visible label */
#seg-primary:focus-visible ~ .seg-bar label[for="seg-primary"],
#seg-investor:focus-visible ~ .seg-bar label[for="seg-investor"],
#seg-second:focus-visible ~ .seg-bar label[for="seg-second"] {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* Panels */
.seg-intro {
  color: var(--ink-2); font-size: var(--step-0); max-width: 60ch;
  margin-bottom: var(--space-m); padding-bottom: var(--space-m);
  border-bottom: 1px solid var(--line);
}
.seg-intro strong { color: var(--ink); font-weight: 600; }
.seg-panel { display: none; }
.segmented:has(#seg-primary:checked) #panel-primary,
.segmented:has(#seg-investor:checked) #panel-investor,
.segmented:has(#seg-second:checked) #panel-second { display: block; }
/* Old-browser fallback: hide the dead tab bar, show all panels stacked */
@supports not (selector(:has(*))) {
  .seg-bar { display: none; }
  .seg-panel { display: block; }
}

/* Ledger rows via <details> */
.ledger-rows { border-top: 1px solid var(--line); }
.ledger-row { border-bottom: 1px solid var(--line); }
.ledger-row summary {
  display: flex; align-items: center; gap: var(--space-s);
  padding: var(--space-s) 0; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.ledger-row summary::-webkit-details-marker { display: none; }
.ledger-row .row-index {
  font-family: "Zodiak", serif; color: var(--ink-3);
  font-size: var(--step-0); min-width: 2.2em;
}
.ledger-row .row-name {
  font-family: "Zodiak", serif; font-size: var(--step-1); font-weight: 500;
  color: var(--ink); flex: 1;
}
.ledger-row .row-icon { margin-left: auto; color: var(--gold); width: 1.3rem; height: 1.3rem; transition: transform 0.25s var(--ease-out); }
.ledger-row[open] .row-icon { transform: rotate(45deg); }
.ledger-row summary:hover .row-name { color: var(--gold); }
.ledger-row .row-detail {
  padding: 0 0 var(--space-s) calc(2.2em + var(--space-s));
  color: var(--ink-2); font-size: var(--step-0); line-height: 1.7;
}
.ledger-row .row-detail a { font-weight: 600; }
.ledger-row .row-detail-flush { padding-left: 0; }

/* Progressive smooth open */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .ledger-row::details-content {
      block-size: 0; overflow: hidden;
      transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
    }
    .ledger-row[open]::details-content { block-size: auto; }
  }
}

/* ============ 12. CALCULATOR ============ */
.calc-wrap {
  display: grid; grid-template-columns: 1fr; gap: var(--space-l);
  align-items: start;
}
.calc-wrap > * { min-width: 0; }
@media (min-width: 820px) { .calc-wrap { grid-template-columns: 1fr 1fr; } }

.calc-field { margin-bottom: var(--space-m); }
.calc-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-s); margin-bottom: 0.5em; }
.calc-field label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.calc-value {
  font-family: "Zodiak", serif; font-size: var(--step-1); font-weight: 500; color: var(--ink);
}
.calc-field input[type="text"] {
  width: 100%; padding: 0.7em 0.85em;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); color: var(--ink);
  font-family: "Zodiak", serif; font-size: var(--step-1); font-weight: 500;
  transition: border-color 0.2s var(--ease-out);
}
.calc-field input[type="text"]:focus { outline: none; border-color: var(--gold); }
.calc-field select {
  width: 100%; padding: 0.7em 0.85em;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); color: var(--ink);
  font-family: "General Sans", sans-serif; font-size: var(--step-0);
}
.calc-field select:focus { outline: none; border-color: var(--gold); }

/* Range slider styled with gold accent */
.calc-field input[type="range"] {
  width: 100%; height: 4px; margin-top: 0.3em;
  -webkit-appearance: none; appearance: none;
  background: var(--line); border-radius: 999px; cursor: pointer;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--paper);
}

/* Result panel: ink-deep */
.calc-result {
  padding: var(--space-l);
  border-radius: var(--radius-m);
}
.calc-result .micro-label { margin-bottom: var(--space-2xs); }
.calc-result-amount {
  font-family: "Zodiak", serif; font-size: var(--step-5); font-weight: 500;
  color: var(--gold); line-height: 1; margin-bottom: var(--space-m);
}
.calc-breakdown { margin-bottom: var(--space-m); }
.calc-breakdown .row {
  display: flex; justify-content: space-between; gap: var(--space-s);
  padding: 0.55em 0; border-top: 1px solid color-mix(in oklch, var(--paper) 14%, transparent);
  font-size: var(--step-0);
}
.calc-breakdown .row span:first-child { color: color-mix(in oklch, var(--paper) 60%, transparent); }
.calc-breakdown .row span:last-child { color: var(--paper); font-family: "Zodiak", serif; }
.calc-disclaimer { font-size: var(--step--1); color: color-mix(in oklch, var(--paper) 50%, transparent); margin-bottom: var(--space-m); line-height: 1.55; }

/* ============ 13. ABOUT / BIO ============ */
.bio-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-l); align-items: start; }
@media (min-width: 900px) { .bio-layout { grid-template-columns: 300px 1fr; gap: var(--space-xl); } }
.bio-portrait { position: relative; width: 220px; margin-inline: auto; }
@media (min-width: 900px) { .bio-portrait { width: 100%; position: sticky; top: calc(var(--header-h) + var(--space-m)); } }
.bio-pullquote {
  font-family: "Zodiak", serif; font-style: italic; font-size: var(--step-3);
  font-weight: 400; color: var(--ink); line-height: 1.25; text-wrap: balance;
  margin-bottom: var(--space-m);
  padding-left: var(--space-s); border-left: 2px solid var(--gold);
}
.bio-text p { color: var(--ink-2); }
.bio-text p + p { margin-top: var(--space-s); }

/* Stamp chips */
.stamp-row { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-m); }
.stamp {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.5em 0.9em; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-size: var(--step--1); font-weight: 600; color: var(--ink);
  background: var(--paper);
}
.stamp .icon { width: 1em; height: 1em; color: var(--gold); }
.stamp:nth-child(1) { transform: rotate(-1.5deg); }
.stamp:nth-child(2) { transform: rotate(1deg); }
.stamp:nth-child(3) { transform: rotate(-0.75deg); }
.stamp:nth-child(4) { transform: rotate(1.5deg); }

/* Review CTA card (ledger style) */
.review-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m);
  margin-top: var(--space-l); padding: var(--space-m);
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius-s);
}
.review-stars { color: var(--gold); font-size: var(--step-1); letter-spacing: 2px; line-height: 1; }
.review-card-info { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.review-card-info strong { color: var(--ink); font-size: var(--step-0); }
.review-card-info span { color: var(--ink-2); font-size: var(--step--1); }
.review-card .btn { flex: 0 0 auto; }

/* ============ 14. AREAS ============ */
.areas-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-l); align-items: start; }
@media (min-width: 900px) { .areas-layout { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-xl); } }
.areas-aside {}
@media (min-width: 900px) { .areas-aside { position: sticky; top: calc(var(--header-h) + var(--space-m)); } }
.areas-map { margin-top: var(--space-m); color: var(--gold); }

.area-list { list-style: none; border-top: 1px solid var(--line); }
.area-row {
  display: flex; align-items: center; gap: var(--space-s);
  padding: var(--space-s) var(--space-s) var(--space-s) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}
.area-row:hover { background: var(--gold-tint); padding-left: var(--space-s); }
.area-index { font-family: "Zodiak", serif; color: var(--ink-3); font-size: var(--step-0); min-width: 2.2em; }
.area-name { font-family: "Zodiak", serif; font-size: var(--step-3); font-weight: 500; color: var(--ink); }
.area-desc { color: var(--ink-3); font-size: var(--step--1); margin-left: auto; text-align: right; }
.area-row .icon { color: var(--gold); width: 1.2rem; height: 1.2rem; margin-left: var(--space-s); }
.areas-note { margin-top: var(--space-l); color: var(--ink-2); font-size: var(--step-0); }

/* :has()-driven dot highlight: hovering a city row scales its map dot */
@supports selector(:has(*)) {
  .areas-layout:has(.area-row[data-city="goleta"]:hover) .city-dot[data-city="goleta"] circle,
  .areas-layout:has(.area-row[data-city="santa-barbara"]:hover) .city-dot[data-city="santa-barbara"] circle,
  .areas-layout:has(.area-row[data-city="ventura"]:hover) .city-dot[data-city="ventura"] circle,
  .areas-layout:has(.area-row[data-city="carpinteria"]:hover) .city-dot[data-city="carpinteria"] circle,
  .areas-layout:has(.area-row[data-city="montecito"]:hover) .city-dot[data-city="montecito"] circle,
  .areas-layout:has(.area-row[data-city="oxnard"]:hover) .city-dot[data-city="oxnard"] circle,
  .areas-layout:has(.area-row[data-city="camarillo"]:hover) .city-dot[data-city="camarillo"] circle,
  .areas-layout:has(.area-row[data-city="san-luis-obispo"]:hover) .city-dot[data-city="san-luis-obispo"] circle {
    r: 6; }
}

/* ============ 15. FAQ ============ */
.faq-list { max-width: 760px; border-top: 1px solid var(--line); }
/* reuses .ledger-row / summary styling */

/* ============ 16. SCHEDULE ============ */
.schedule-facade {
  max-width: 800px; margin-inline: auto;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; background: var(--paper-2);
}
.facade-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-s); padding: var(--space-2xl) var(--space-l);
  min-height: 420px; justify-content: center; cursor: pointer;
}
.facade-card .icon { width: 3rem; height: 3rem; color: var(--gold); }
.facade-card h3 { color: var(--ink); }
.facade-card p { color: var(--ink-2); max-width: 40ch; }
.schedule-facade iframe { width: 100%; min-height: 630px; border: 0; display: block; background: var(--paper); }
.schedule-intro { max-width: 600px; }
.schedule-intro a { font-weight: 600; }

/* ============ 17. CTA BANNER ============ */
.cta-banner { position: relative; text-align: center; padding-block: var(--space-2xl); overflow: hidden; }
.cta-coastline {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  width: 100%; opacity: 0.08; color: var(--paper); pointer-events: none; z-index: 0;
}
.cta-banner > .container { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: var(--space-s); }
.cta-banner p { max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-m); }
.cta-phone {
  display: inline-block; font-family: "Zodiak", serif; font-size: var(--step-4);
  font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: var(--space-m);
}
.cta-phone:hover { color: var(--gold-hover); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; }

/* ============ 18. FOOTER ============ */
.site-footer { position: relative; overflow: hidden; padding-block: var(--space-xl) var(--space-l); view-transition-name: site-footer; }
.footer-wordmark {
  font-family: "Zodiak", serif; font-weight: 600; font-size: var(--step-6);
  line-height: 0.9; letter-spacing: -0.02em;
  color: var(--paper); opacity: 0.1; white-space: nowrap;
  margin-bottom: var(--space-l); user-select: none;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-l); margin-bottom: var(--space-l); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { height: 52px; width: auto; margin-bottom: var(--space-s); }
.footer-brand p { font-size: var(--step--1); line-height: 1.6; }
.footer-coords { margin-top: var(--space-s); }
.footer-col h4 { color: var(--paper); font-family: "General Sans", sans-serif; font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-s); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5em; }
.footer-col a { font-size: var(--step--1); color: color-mix(in oklch, var(--paper) 62%, transparent); }
.footer-col a:hover { color: var(--gold); }
.footer-apply { color: var(--gold); font-weight: 600; }
.footer-linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: var(--step--1); text-align: left;
  color: color-mix(in oklch, var(--paper) 62%, transparent);
}
.footer-linkbtn:hover { color: var(--gold); }

.footer-compliance { border-top: 1px solid color-mix(in oklch, var(--paper) 12%, transparent); padding-top: var(--space-m); margin-top: var(--space-m); }
.compliance-text { font-size: 0.68rem; line-height: 1.7; color: color-mix(in oklch, var(--paper) 32%, transparent); }
.compliance-text a { color: color-mix(in oklch, var(--paper) 42%, transparent); }
.compliance-text a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid color-mix(in oklch, var(--paper) 12%, transparent);
  padding-top: var(--space-m); margin-top: var(--space-m);
  display: flex; flex-direction: column; gap: var(--space-s);
  font-size: var(--step--1);
}
@media (min-width: 700px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-logos { display: flex; align-items: center; }
.ehl-logo { height: 140px; width: auto; opacity: 0.75; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.footer-legal a { color: color-mix(in oklch, var(--paper) 45%, transparent); }
.footer-legal a:hover { color: var(--gold); }
.footer-copy { color: color-mix(in oklch, var(--paper) 45%, transparent); }

/* ============ 19. REVEAL / MOTION UTILITIES ============ */
.reveal { }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-2 { transition-delay: 0.08s; }
}

/* ============ 20. REDUCED-MOTION + PRINT ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .nav-overlay, .ticker, .scroll-progress,
  .cta-banner, .schedule-facade { display: none; }
  body { padding-top: 0; color: #000; background: #fff; }
  .on-dark { background: #fff; color: #000; }
  .on-dark h1, .on-dark h2, .on-dark h3, .on-dark p { color: #000; }
  a { color: #000; text-decoration: underline; }
  .ledger-row .row-detail, .seg-panel { display: block !important; }
}

/* ============================================================
   21. INNER PAGE TEMPLATES (Phase 4)
   City / neighborhood pages, service pages, blog index, blog posts.
   All new selectors, no edits to rules above this line.
   ------------------------------------------------------------
   21.1  Breadcrumb
   21.2  Compact page hero (.page-hero)
   21.3  Page hero coastline + city-dot highlight
   21.4  Check-list rows (service-list replacement)
   21.5  Index rows (Related Reading / generic link list)
   21.6  Mini-TOC (service pages)
   21.7  Blog index editorial list
   21.8  Blog post body (.post-body) + reading label
   21.9  Prev/next post rows
   ============================================================ */

/* ---------- 21.1 Breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em;
  margin-bottom: var(--space-s);
}
.breadcrumb a { color: color-mix(in oklch, var(--paper) 62%, transparent); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .crumb-sep { color: color-mix(in oklch, var(--paper) 35%, transparent); }
.breadcrumb .crumb-current { color: color-mix(in oklch, var(--paper) 82%, transparent); }

/* ---------- 21.2 Compact page hero ---------- */
.page-hero { position: relative; padding-block: var(--space-xl); overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--step-5); margin-bottom: var(--space-s); max-width: 20ch; }
.page-hero .page-lead { font-size: var(--step-1); max-width: 60ch; margin-bottom: var(--space-m); }
.page-hero .page-lead + .page-lead { margin-top: -0.4em; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-m); }
.page-hero .reading-label { margin-top: var(--space-2xs); }

/* ---------- 21.3 Page hero coastline + city-dot highlight ---------- */
.page-coastline { width: min(100%, 560px); opacity: 0.5; margin-top: var(--space-m); }
.page-coastline .city-dot.is-current circle { r: 5.5; opacity: 1; }
.page-coastline .city-dot:not(.is-current) circle { opacity: 0.55; }

/* ---------- 21.4 Check-list rows ---------- */
.check-list { list-style: none; border-top: 1px solid color-mix(in oklch, var(--paper) 14%, transparent); }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.65em;
  padding: 0.65em 0;
  border-bottom: 1px solid color-mix(in oklch, var(--paper) 14%, transparent);
  color: var(--ink-2);
}
.check-list .icon { color: var(--gold); width: 1.2em; height: 1.2em; margin-top: 0.15em; flex-shrink: 0; }
/* Light-section context: hairlines/text use the normal (non on-dark) tokens */
.section .check-list {
  border-top-color: var(--line);
}
.section .check-list li {
  border-bottom-color: var(--line);
  color: var(--ink-2);
}

/* ---------- 21.5 Index rows (Related Reading, etc.) ---------- */
.index-rows { list-style: none; border-top: 1px solid var(--line); max-width: 760px; }
.index-row {
  display: flex; align-items: center; gap: var(--space-s);
  padding: var(--space-s) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}
.index-row a {
  display: flex; align-items: center; gap: var(--space-s);
  width: 100%; color: var(--ink);
}
.index-row:hover { background: var(--gold-tint); padding-left: var(--space-xs); }
.index-row .row-index { font-family: "Zodiak", serif; color: var(--ink-3); font-size: var(--step-0); min-width: 2.2em; }
.index-row .row-name { font-family: "Zodiak", serif; font-size: var(--step-1); font-weight: 500; color: var(--ink); flex: 1; }
.index-row .icon { color: var(--gold); width: 1.2rem; height: 1.2rem; margin-left: auto; flex-shrink: 0; }

/* ---------- 21.6 Mini-TOC (service pages, desktop only) ---------- */
.page-with-toc { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: start; }
.mini-toc { display: none; }
@media (min-width: 1000px) {
  .page-with-toc { grid-template-columns: 200px 1fr; }
  .mini-toc {
    display: block; position: sticky; top: calc(var(--header-h) + var(--space-m));
    border-left: 1px solid var(--line); padding-left: var(--space-s);
  }
  .mini-toc p { margin-bottom: var(--space-xs); }
  .mini-toc ul { list-style: none; display: flex; flex-direction: column; gap: 0.6em; }
  .mini-toc a { color: var(--ink-2); font-size: var(--step--1); }
  .mini-toc a:hover { color: var(--gold); }
}

/* ---------- 21.7 Blog index editorial list ---------- */
.post-index { border-top: 1px solid var(--line); }
.post-entry {
  display: grid; grid-template-columns: 1fr; gap: 0.4em;
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--line);
}
.post-entry .post-date { color: var(--ink-3); }
.post-entry h3 { font-size: var(--step-2); }
.post-entry h3 a { color: var(--ink); }
.post-entry h3 a:hover { color: var(--gold); }
.post-entry .post-excerpt { color: var(--ink-2); max-width: 62ch; }
.post-entry.is-featured h3 { font-size: var(--step-3); }
.post-entry.is-featured .post-date { color: var(--gold); font-weight: 600; }
.post-thumb {
  display: block; overflow: hidden; margin-bottom: var(--space-xs);
  width: 100%; max-width: 320px; aspect-ratio: 1200 / 630;
  border-radius: var(--radius-l) var(--radius-l) var(--radius-s) var(--radius-s);
  border: 1px solid var(--line);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-index-cta { margin-top: var(--space-xl); max-width: 60ch; }
.post-index-cta .btn { margin-top: var(--space-xs); }
@media (min-width: 700px) {
  .post-entry { grid-template-columns: 9rem 1fr; gap: var(--space-m); }
  .post-entry .post-date { padding-top: 0.3em; }
  .post-thumb { max-width: 420px; }
}

/* ---------- 21.8 Blog post body + reading label ---------- */
.post-body { max-width: 68ch; margin-inline: auto; }
.post-body h2 { font-size: var(--step-3); margin-top: var(--space-l); margin-bottom: var(--space-xs); }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { margin-top: var(--space-m); margin-bottom: var(--space-2xs); }
.post-body p { color: var(--ink-2); line-height: 1.75; }
.post-body p + h2, .post-body ul + h2, .post-body blockquote + h2 { margin-top: var(--space-l); }
.post-body ul, .post-body ol { color: var(--ink-2); padding-left: 1.4em; margin: 0.85em 0; }
.post-body li + li { margin-top: 0.4em; }
.post-body a { font-weight: 600; }
.post-body blockquote {
  margin: var(--space-m) 0; padding-left: var(--space-s);
  border-left: 2px solid var(--gold);
  font-family: "Zodiak", serif; font-style: italic; font-size: var(--step-1);
  color: var(--ink);
}
.post-body table { width: 100%; border-collapse: collapse; margin: var(--space-m) 0; font-size: var(--step--1); }
.post-body th, .post-body td { text-align: left; padding: 0.6em 0.8em; border-bottom: 1px solid var(--line); }
.post-body th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--line); }
.post-body td { color: var(--ink-2); }
.post-body .btn { margin-top: var(--space-xs); }
.post-cta { max-width: 68ch; margin-inline: auto; margin-top: var(--space-l); display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* ---------- 21.9 Prev/next post rows ---------- */
.post-pagination { max-width: 68ch; margin-inline: auto; margin-top: var(--space-xl); border-top: 1px solid var(--line); }
.post-pagination .index-rows { max-width: none; border-top: 0; }
.post-pagination .row-direction { display: block; font-size: var(--step--1); color: var(--ink-3); margin-bottom: 0.2em; }
.post-pagination .index-row a { flex-wrap: wrap; }
.post-pagination .row-name { flex-basis: 100%; }
