/* ==========================================================================
   Frostline Turf Co. — Components
   ========================================================================== */

/* --- Buttons ---------------------------------------------------------- */
.btn {
  --_bg: var(--primary);
  --_fg: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition),
              box-shadow var(--transition), border-color var(--transition);
}
.btn:hover { background: var(--primary-hover); color: var(--on-primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--primary); }

.btn-frost { --_bg: var(--frost); --_fg: #F4FAFB; }
.btn-frost:hover { background: var(--frost); filter: brightness(1.08); color: #F4FAFB; }

.btn-lg { padding: 1.05rem 1.8rem; font-size: var(--step-0); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* --- Cards ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card-raised { background: var(--surface-raised); box-shadow: var(--shadow-sm); }
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-pad-lg { padding: var(--space-xl); }

.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--good-soft); color: var(--primary);
  margin-bottom: var(--space-md);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.is-frost { background: var(--frost-soft); color: var(--frost); }
.card-icon.is-earth { background: var(--earth-soft); color: var(--accent-earth); }

/* --- Pills / badges / chips ------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  padding: 0.3rem 0.6rem; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.pill-good { background: var(--good-soft); border-color: transparent; color: var(--good); }
.pill-frost { background: var(--frost-soft); border-color: transparent; color: var(--frost); }
.pill-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.pill-dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

/* --- Section headers -------------------------------------------------- */
.section-head { max-width: 62ch; margin-bottom: var(--space-xl); }
.section-head.center { margin-inline: auto; }
.section-head .kicker { margin-bottom: var(--space-sm); }
.section-head p { color: var(--muted); font-size: var(--step-0); }

/* --- Strata divider (geology motif) ----------------------------------- */
.strata {
  height: 8px; width: 100%;
  background: repeating-linear-gradient(
    90deg, var(--strata-a) 0 3px, transparent 3px 6px);
  border-block: 1px solid var(--hairline);
  opacity: 0.9;
}
.strata-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.strata-band > span { height: 6px; border-radius: 2px; }

/* Contour rule */
.rule { height: 1px; background: var(--border); border: 0; margin-block: var(--space-lg); }
.rule-dashed { height: 0; border: 0; border-top: 1px dashed var(--border-strong); }

/* --- Tables (comparison / spec) --------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--border); }
table.data {
  width: 100%; border-collapse: collapse; font-size: var(--step--1);
  background: var(--surface); min-width: 560px;
}
table.data th, table.data td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.data thead th {
  position: sticky; top: 0; background: var(--surface-2);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; z-index: 1;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--frost) 5%, transparent); }
table.data td.rowhead { font-weight: 600; color: var(--ink); background: var(--surface-2); }
.cell-yes { color: var(--good); font-weight: 600; }
.cell-no { color: var(--danger); }
.cell-mid { color: var(--warn); }

/* --- Spec list (mono key/value) --------------------------------------- */
.spec { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec > div { display: grid; grid-template-columns: 42% 1fr; gap: var(--space-md);
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--hairline); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.spec dd { font-weight: 560; color: var(--ink); }

/* --- Callouts --------------------------------------------------------- */
.note {
  border-left: 3px solid var(--frost);
  background: var(--frost-soft);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--step--1);
}
.note-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note-danger { border-left-color: var(--danger); background: var(--danger-soft); }
.note strong:first-child { display:block; margin-bottom: 0.2rem; }

/* --- Forms ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-md); }
.field label { font-size: var(--step--1); font-weight: 560; color: var(--ink-soft); }
.field label .req { color: var(--danger); }
.field .hint { font-size: 0.78rem; color: var(--faint); }
.input, .select, .textarea {
  font-family: var(--font-sans); font-size: var(--step-0); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Range slider */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--border-strong); border-radius: 100px; outline-offset: 4px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--primary); border: 3px solid var(--surface-2);
  box-shadow: var(--shadow-sm); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--surface-2); cursor: pointer; }

/* Segmented / toggle chips */
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  padding: 0.55rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-2);
  font-size: var(--step--1); font-weight: 540; color: var(--ink-soft);
  transition: all var(--transition); user-select: none;
}
.choice:hover { border-color: var(--primary); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.is-on, .choice:has(input:checked) {
  border-color: var(--primary); background: var(--good-soft); color: var(--primary-ink);
}

/* --- Header / Nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; gap: var(--space-lg); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 680; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand .brand-name { font-size: 1.06rem; }
.brand .brand-name b { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 540;
  padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a.is-active { color: var(--primary-ink); }
.nav-cta { margin-left: 0.4rem; }

.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--ink-soft); cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.5rem; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all var(--transition); z-index: 120;
}
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-panel a { display: block; padding: 0.6rem 0.7rem; border-radius: var(--radius-sm); }
.nav-dd-panel a small { display:block; color: var(--faint); font-weight: 400; font-size: 0.76rem; }

/* Mobile nav */
.nav-toggle { display: none; }
@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--space-md); gap: 0.15rem; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform var(--transition-slow); max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { padding: 0.75rem; font-size: 1rem; }
  .nav-dd-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 0.8rem; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); cursor: pointer; }
  .nav-cta { display: none; }
}

/* --- Footer ----------------------------------------------------------- */
.site-footer { background: var(--bg-sunk); border-top: 1px solid var(--border); padding-block: var(--space-2xl) var(--space-xl); margin-top: var(--space-3xl); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-xl); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: var(--space-md); font-weight: 500; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.9rem; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--border); color: var(--faint); font-size: 0.8rem; }

/* --- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-3xl); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); } }

/* Faint contour background */
.contour-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none; }
[data-theme="dark"] .contour-bg { opacity: 0.35; }
.hero > .wrap { position: relative; z-index: 1; }

/* --- Stat / metric ---------------------------------------------------- */
.stat .stat-num { font-family: var(--font-mono); font-size: var(--step-3); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.stat .stat-num .unit { font-size: 0.5em; color: var(--muted); }
.stat .stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

/* --- Accordion (FAQ) -------------------------------------------------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-item:last-child { border-bottom: 0; }
.acc-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.1rem 1.3rem; font-size: var(--step-0); font-weight: 580; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit; }
.acc-q:hover { background: var(--surface-2); }
.acc-q .chev { flex: none; transition: transform var(--transition); color: var(--muted); }
.acc-item.is-open .acc-q .chev { transform: rotate(45deg); color: var(--primary); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.acc-a-inner { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: var(--step--1); }
.acc-item.is-open .acc-a { max-height: 2400px; }

/* --- Steps / process -------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--space-md); }
.step-row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-lg); align-items: start; }
.step-num { counter-increment: step; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--primary); color: var(--primary); display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 500; background: var(--good-soft); }
.step-num::before { content: counter(step, decimal-leading-zero); }

/* --- Tabs ------------------------------------------------------------- */
.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--border); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.tab { border: 0; background: none; font-family: inherit; font-size: 0.9rem; font-weight: 560; color: var(--muted);
  padding: 0.7rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--primary-ink); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade 240ms ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --- Banner ----------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--spruce-800), var(--spruce-600));
  border-radius: var(--radius-lg); padding: var(--space-2xl); color: #EAF3ED; position: relative; overflow: hidden;
}
[data-theme="dark"] .cta-banner { background: linear-gradient(135deg, var(--spruce-900), var(--spruce-700)); border: 1px solid var(--spruce-600); }
.cta-banner h2, .cta-banner h3 { color: #F4FAF6; }
.cta-banner p { color: #C9DBD0; }
.cta-banner .btn-ghost { color: #F4FAF6; border-color: rgba(255,255,255,0.35); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* --- Utility ---------------------------------------------------------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.icon-inline { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; }
.bg-surface { background: var(--surface); }
.bg-sunk { background: var(--bg-sunk); }
.text-frost { color: var(--frost); }
.text-primary { color: var(--primary-ink); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   V2 PREMIUM LAYER — richer surfaces, editorial structure, engineering figures
   ========================================================================= */

/* Subtle paper grain on sunk sections (data-uri, no external asset) */
.bg-sunk, .grain {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* Sticky editorial column — pins on desktop, MUST go static on mobile so it
   doesn't float over the stacked content below it. */
.sticky-col { position: sticky; top: 96px; align-self: start; }
@media (max-width: 900px) { .sticky-col { position: static; top: auto; } }

/* Section index label — "01 / Process" editorial marker */
.sec-index {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint); display: flex; align-items: center; gap: 0.7rem; margin-bottom: var(--space-md);
}
.sec-index b { color: var(--primary); font-weight: 500; }
.sec-index::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* Premium card: hairline top accent that ignites on hover */
.card-edge { position: relative; overflow: hidden; }
.card-edge::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--frost));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition-slow);
}
.card-edge:hover::before, .card-edge:focus-within::before { transform: scaleX(1); }

/* Feature row with hanging mono index (replaces generic icon-grid feel) */
.lede-row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-top: 1px solid var(--hairline); }
.lede-row:first-child { border-top: 0; }
.lede-row .lede-n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--frost); padding-top: 0.35rem; letter-spacing: 0.05em; }
.lede-row h4 { margin-bottom: 0.35rem; }

/* --- Engineering cross-section figure (the over-build, drawn to scale) --- */
.xsection {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.xsection .xs-head { display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--hairline); background: var(--surface-2); }
.xsection .xs-head .t { font-weight: 620; font-size: 0.92rem; }
.xsection .xs-head .m { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.xs-layer {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  padding: 0 1rem; color: #fff; position: relative; cursor: default;
  transition: filter var(--transition);
}
.xs-layer:hover { filter: brightness(1.06); }
.xs-layer .xl-name { font-weight: 560; font-size: 0.86rem; text-shadow: 0 1px 2px rgba(0,0,0,0.28); }
.xs-layer .xl-sub { font-size: 0.72rem; opacity: 0.85; }
.xs-layer .xl-depth { font-family: var(--font-mono); font-size: 0.74rem; opacity: 0.92; text-shadow: 0 1px 2px rgba(0,0,0,0.28); }
.xs-scale { padding: 0.55rem 1rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
  display: flex; justify-content: space-between; background: var(--surface-2); border-top: 1px solid var(--hairline); }

/* Metric readout row (homeowner outcomes) */
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.readout .ro { background: var(--surface); padding: var(--space-md) var(--space-lg); }
.readout .ro .v { font-family: var(--font-mono); font-size: var(--step-2); color: var(--ink); letter-spacing: -0.02em; }
.readout .ro .v .u { font-size: 0.5em; color: var(--muted); }
.readout .ro .l { font-size: 0.76rem; color: var(--muted); margin-top: 0.15rem; }

/* Meters used by planner (moved here from page-scoped styles so they're shared) */
.pl-track { height: 7px; border-radius: 100px; background: var(--bg-sunk); overflow: hidden; border: 1px solid var(--hairline); }
.pl-fill { display: block; height: 100%; border-radius: 100px; background: var(--primary); transition: width var(--transition-slow), background var(--transition); }
.pl-meter + .pl-meter { margin-top: 0.8rem; }

/* Buttons: refined shadow + subtle sheen on primary */
.btn { box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.btn-lg { letter-spacing: 0.01em; }

/* CTA banner: add strata texture overlay + a contour accent */
.cta-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(92,163,184,0.20), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 7px);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.cta-banner > * { position: relative; z-index: 1; }

/* Nav: brand mark gets a hairline plate; active link underline accent */
.nav-links a.is-active { position: relative; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.25rem; height: 2px;
  background: var(--primary); border-radius: 2px;
}
@media (max-width: 940px) { .nav-links a.is-active::after { display: none; } }

/* Segmented control (used by planner view toggles) */
.seg { display: inline-flex; background: var(--bg-sunk); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 3px; }
.seg button { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 560; color: var(--muted);
  border: 0; background: none; padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; transition: all var(--transition); }
.seg button.is-active { background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Print: sensible defaults for any site page sent to paper */
@media print {
  .site-header, .site-footer, .theme-toggle, .nav-toggle, .cta-banner .cluster, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .xsection { box-shadow: none; border-color: #ccc; }
  a { color: #000; text-decoration: underline; }
}
