/* Counterbell, counterbell.com.au
   Theme: Direction A, "The welcoming desk" (Astra, 7 Oct 2026): Instrument Serif display, Manrope text, cream and
   muted green, fine rules, nearly square edges. Every colour, font and shape is a token in :root, so another
   direction is a token swap, not a markup change. Self-hosted fonts (OFL, licences beside them). No inline styles,
   no external resources (strict CSP, DEPLOY.md). */

@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  /* ---- theme tokens (swap these for another direction) ---- */
  --bg: #f7f4ec;            /* cream page */
  --bg-alt: #edeee4;        /* soft sage band */
  --surface: #fbfaf5;       /* cards, panels */
  --ink: #233a30;           /* deep green ink */
  --ink-2: #3d4f45;
  --mute: #55625a;
  --line: #d4d7ca;
  --line-strong: #b9c3ac;
  --control-line: #77836d;  /* visible control edges: 3:1 on cream, sage and the closing band */
  --brand: #304b3c;         /* buttons, active states */
  --brand-ink: #ffffff;
  --brand-soft: #e2e8d8;
  --accent: #506844;        /* small accents, ticks */
  --accent-text: #4d6141;   /* eyebrows: AA on cream and sage */
  --bell: #b7893b;          /* the bell mark */
  --ok: #2f6b45;   --ok-soft: #e1eddc;
  --warn: #7f5a12; --warn-soft: #f3ead2;
  --plan: #4a5577; --plan-soft: #e6e8ef;
  --alert: #8f2a1a; --alert-soft: #f8e9e3; --alert-line: #e3bfb2;
  --focus: #955117;
  --night-bg: #161d19;      /* the after-hours band */
  --night-surface: #212a24;
  --night-line: #34413a;
  --night-ink: #f3efe4;
  --night-mute: #c3c8bb;
  --night-accent: #e2b86a;
  --close-bg: #dce3d0;      /* closing band */
  --close-line: #b9c3ac;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --radius: 2px;
  --radius-lg: 4px;
  --radius-pill: 2px;
  --shadow: 0 1px 1px rgba(35, 58, 48, .04), 0 12px 32px rgba(35, 58, 48, .08);
  /* ---- scale and space ---- */
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --step-2: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem);
  --step-3: clamp(3rem, 1.9rem + 4.8vw, 6.1rem);
  --gutter: 16px;
  --max: 76rem;
  --narrow: 46rem;
  --space-section: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-0); line-height: 1.65;
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3 { margin: 0 0 .55em; text-wrap: balance; }
p, li, figcaption, dd { text-wrap: pretty; }
h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.02; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); line-height: 1.05; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; }
p, ul, ol, dl, blockquote, figure { margin: 0 0 1rem; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
strong { font-weight: 700; }
.small { font-size: .92rem; }
.muted { color: var(--mute); }

.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { top: .75rem; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 40rem) { :root { --gutter: 32px; } }
.wrap.narrow, .narrow { max-width: var(--narrow); }
.wrap.measure > * { max-width: 46rem; }

/* ---------------------------------------------------------------- Buttons and links */
.btn {
  overflow-wrap: anywhere;
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 52px; padding: .8rem 1.4rem; border-radius: var(--radius);
  font: inherit; font-size: .98rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer; transition: background-color .16s, border-color .16s;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary::after { content: "\2192"; font-weight: 400; font-size: 1.1em; }
.btn-primary[href^="mailto"]::after, .btn-primary[href^="http"]::after { content: "\2197"; }
.btn-primary:hover { background: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 0;
  text-decoration: underline; text-decoration-color: var(--control-line); text-underline-offset: .4em; text-decoration-thickness: 1px; }
.btn-secondary::after { content: "\2193"; font-weight: 400; }
.btn-secondary:hover { text-decoration-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--control-line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 44px; padding: .5rem 1rem; font-size: .92rem; }
.btn-small::after { content: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 1.75rem 0; }
.text-link { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--control-line); padding-bottom: .2rem; }
.text-link::after { content: " \2192"; font-weight: 400; }
.text-link:hover { border-bottom-color: var(--ink); }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 236, .97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(247, 244, 236, .88); backdrop-filter: blur(10px); } }
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.75rem; min-height: 4.75rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; }
.brand .bell { width: 28px; height: 28px; }
.bell-knob, .bell-dome { fill: var(--bell); }
.bell-base { fill: var(--ink); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.75rem; margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 600; padding: .5rem 0; display: inline-block; }
.site-nav a:not(.btn):hover, .site-nav a:not(.btn)[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.nav-toggle { display: none; }
@media (max-width: 22.5rem) { .header-row { column-gap: .75rem; } .brand { font-size: 1.25rem; } }
@media (max-height: 30rem) { .site-header { position: static; } }
@media (max-width: 60rem) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; min-height: 44px; padding: .4rem .9rem;
    border: 1px solid var(--control-line); border-radius: var(--radius); background: transparent; color: var(--ink);
    font: inherit; font-weight: 700; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .js .site-nav { display: none; width: 100%; margin: 0; padding: .25rem 0 1rem; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .site-nav .nav-cta { margin-top: 1rem; width: 100%; }
  html:not(.js) .site-nav { margin-left: 0; width: 100%; }
}

/* ---------------------------------------------------------------- Sections */
.section { padding: var(--space-section) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 50rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head.split-head { max-width: none; display: grid; gap: 1rem 4rem; align-items: end; }
@media (min-width: 60rem) { .section-head.split-head { grid-template-columns: 1.3fr 1fr; } .section-head.split-head .lede { margin-bottom: .6rem; } }
.eyebrow { font-family: var(--font-text); font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 1.1rem; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }
.section-head .lede { font-size: 1.12rem; max-width: 40rem; }
.more-link { margin-top: 2rem; }
.footnote { margin-top: 1.75rem; color: var(--mute); }

/* ---------------------------------------------------------------- Hero: full-bleed photo band, text over the left */
.hero { padding: 0; }
.hero-band { position: relative; display: grid; min-height: clamp(31rem, 22rem + 14vw, 40rem); background: var(--bg-alt); }
.hero-media, .hero-inner { grid-area: 1 / 1; }
.hero-media { position: relative; overflow: hidden; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 72% 55%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(247, 244, 236, .95) 0%, rgba(247, 244, 236, .86) 28%, rgba(247, 244, 236, .5) 46%, rgba(247, 244, 236, 0) 62%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.hero-text { max-width: min(38rem, 60%); }
@media (max-width: 47.99rem) { .hero-text { max-width: none; } }
.hero h1 { margin: 0; font-size: clamp(2.9rem, 1.4rem + 3.9vw, 5.4rem); }
.hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 2rem; }
.hero-proof { width: min(30rem, 40vw); }
.hero-proof picture { display: block; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 18px 48px rgba(22, 29, 25, .2); border-radius: var(--radius-lg); overflow: hidden; }
.hero-cta { flex: none; }
.hero-intro { display: grid; gap: 1rem 4rem; align-items: start; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 62rem) { .hero-intro { grid-template-columns: 1.4fr 1fr; } }
.hero-intro .lede { margin: 0; max-width: 44rem; }
.hero-intro-side { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.status-note { display: flex; align-items: flex-start; gap: .6rem; color: var(--mute); font-size: .92rem; margin: 0; }
.status-note .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); flex: none; margin-top: .45rem; }
@media (max-width: 63.99rem) { .hero-proof { display: none; } }
@media (max-width: 47.99rem) {
  .hero-band { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
  .hero-inner { order: 0; padding-block: 2.25rem 1.75rem; gap: 1.5rem; }
  .hero-media { order: 1; }
  .hero-media img { aspect-ratio: 1.3; height: auto; object-position: 60% 55%; }
  .hero-media::after { display: none; }
  .hero-intro { padding-block: 1.75rem 2rem; }
}

/* ---------------------------------------------------------------- Trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0; padding: 1.75rem 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: 1fr; counter-reset: trust; }
@media (min-width: 40rem) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-list li { counter-increment: trust; position: relative; padding-left: 2.1rem; }
.trust-list li::before { content: "0" counter(trust); position: absolute; left: 0; top: .15rem; font-size: .8rem; font-weight: 700; color: var(--accent-text); }
.trust-list strong { display: block; font-size: 1rem; }
.trust-list span { color: var(--mute); font-size: .95rem; }
@media (max-width: 39.99rem) { .trust-list { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; } .trust-list span { display: none; } }

/* ---------------------------------------------------------------- How a call works */
.howto-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 3rem; }
.howto-step { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) { .howto-step { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); align-items: start; } }
.howto-text h3, .howto-tab { display: flex; gap: .9rem; align-items: baseline; }
.howto-num { flex: none; font-size: .82rem; font-weight: 700; color: var(--accent-text); letter-spacing: .05em; min-width: 1.6rem; }
.howto-shot { margin: 0; }
.howto-shot picture { display: block; border: 1px solid var(--line-strong); background: #f5f7fa; box-shadow: var(--shadow); overflow: hidden; border-radius: var(--radius-lg); }
@media (max-width: 63.99rem) and (min-width: 40rem) { .howto-shot picture { max-width: 26rem; } .safety-shot picture { max-width: none; } }
@media (min-width: 64rem) { .howto-shot img { width: 100%; height: auto; } .howto-preview .howto-shot picture { aspect-ratio: 1198 / 900; } .howto-preview .howto-shot img { height: 100%; object-fit: cover; object-position: left top; } }
@media (min-width: 64rem) { .howto-desc { min-height: 5.6em; } }
.howto-shot figcaption { margin-top: .9rem; font-size: .92rem; color: var(--mute); }
.howto-ui { display: grid; gap: 1.5rem; }
.howto-tabs { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 64rem) {
  .howto-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1.25rem; border-top: 0; }
  .howto-ui .howto-tab { border-bottom: 0; border-top: 1px solid var(--line-strong); padding: 1rem .25rem 1.1rem 0; align-items: baseline; }
  .howto-ui .howto-tab[aria-selected="true"] { box-shadow: inset 0 3px 0 var(--accent); border-top-color: var(--accent); padding-left: 0; }
  .howto-desc { display: grid; grid-template-columns: minmax(0, 1fr); }
}
.howto-tab {
  position: relative; width: 100%; text-align: left; font: inherit; font-weight: 700; font-size: 1.02rem; color: var(--ink-2);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 1.25rem .5rem 1.25rem 0; min-height: 56px; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) { .howto-tab { transition: background-color .2s, color .2s; } }
.howto-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .35); }
.howto-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.howto-panel { outline-offset: 6px; }
.howto-desc p { font-size: 1.08rem; color: var(--ink-2); max-width: 46rem; }
.howto-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.howto-pager-btn { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line-strong); padding: .55rem 0; min-height: 44px; cursor: pointer; }
.howto-pager-btn:hover { border-bottom-color: var(--ink); }
.howto-next { margin-left: auto; }
.howto-next::after { content: " \2192"; }
.howto-prev::before { content: "\2190  "; }
.howto-short, .howto-step .howto-short, .howto-panel-title { display: none; }
@media (max-width: 63.99rem) {
  .howto-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .howto-tab { flex-direction: column; align-items: center; gap: .15rem; padding: .7rem .2rem; min-height: 64px; text-align: center; font-size: .9rem; border-bottom: 3px solid transparent; }
  .howto-tab[aria-selected="true"] { box-shadow: none; border-bottom-color: var(--accent); }
  .howto-tab .howto-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .howto-tab .howto-short { display: block; }
  .howto-num { min-width: 0; }
  .howto-panel-title { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; margin: 0 0 .6rem; }
  .howto-pager-detail { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .howto[data-touched] .howto-panel:not([hidden]) { animation: fade .28s ease-out; }
  @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------------- Night band: what the caller hears */
.night { background: var(--night-bg); color: var(--night-ink); }
.night .eyebrow { color: var(--night-accent); }
.night h2, .night h3 { color: var(--night-ink); }
.night p, .night li { color: var(--night-mute); }
.night strong { color: var(--night-ink); }
.night a { color: var(--night-ink); }
.night :focus-visible { outline-color: var(--night-accent); }
.night-head { display: grid; gap: 2rem 4rem; align-items: center; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 60rem) { .night-head { grid-template-columns: 1fr 1.15fr; } }
.night-photo { margin: 0; }
.night-photo img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; object-position: 70% 60%; }
.night .note-small { font-size: .92rem; color: var(--night-mute); opacity: .9; }

/* ---------------------------------------------------------------- Split layouts, panels, transcript */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 1.2vw, 2.25rem); }
.panel h3 { font-size: 1.12rem; }
.panel h3 + p { margin-bottom: 1.5rem; }
.night .panel { background: var(--night-surface); border-color: var(--night-line); }
.split-side .panel { position: sticky; top: 7rem; }
.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }

.transcript { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.transcript li { max-width: 34rem; padding: .7rem 1rem; border-radius: var(--radius-lg); font-size: 1rem; line-height: 1.5; }
.transcript li b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .15rem; }
.transcript li p { margin: 0; }
.transcript .cb { background: var(--surface); border: 1px solid var(--line); }
.transcript .cb b { color: var(--accent-text); }
.transcript .caller { background: var(--brand-soft); justify-self: end; }
.transcript .caller b { color: var(--ink-2); }
.night .transcript .cb { background: var(--night-surface); border-color: var(--night-line); }
.night .transcript .cb p { color: var(--night-ink); }
.night .transcript .cb b { color: var(--night-accent); }
.night .transcript .caller { background: #2e3a31; }
.night .transcript .caller p { color: var(--night-ink); }
.night .transcript .caller b { color: var(--night-mute); }

.transcript-more { margin-top: .55rem; }
.transcript-more summary { cursor: pointer; font-weight: 700; color: var(--night-ink); padding: .75rem 0; min-height: 44px; text-decoration: underline; text-decoration-color: var(--night-line); text-underline-offset: .35em; }
.transcript-more[open] summary { margin-bottom: .55rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .8rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .5em; width: .75rem; height: .4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.night .ticks li::before { border-color: var(--night-accent); }
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .8rem; }

/* ---------------------------------------------------------------- Safety */
.never-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.never-list li { padding: 1.1rem 0 1.1rem 2rem; position: relative; border-bottom: 1px solid var(--line); font-size: 1.04rem; }
.never-list li::before, .never-list li::after { content: ""; position: absolute; left: .15rem; top: 1.85rem; width: .95rem; height: 2px; background: var(--alert); }
.never-list li::before { transform: rotate(45deg); }
.never-list li::after { transform: rotate(-45deg); }
.emergency-panel { background: var(--alert-soft); border: 1px solid var(--alert-line); border-left: 4px solid var(--alert); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.emergency-panel h3 { font-size: 1.08rem; color: var(--alert); }
.emergency-panel h3:not(:first-child) { margin-top: 1.5rem; }
.emergency-panel p:last-child { margin-bottom: 0; }
.emergency-panel blockquote { margin: .5rem 0 1rem; padding: .25rem 0 .25rem 1rem; border-left: 2px solid var(--alert); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; color: var(--ink); }
.emergency-panel blockquote p { margin: 0; }
.grid-2 > .emergency-panel { margin: 0; }
.page-head .emergency-panel { margin-top: 2rem; }
.real-shot { margin: 2.5rem 0 0; }
.real-shot picture { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.real-shot figcaption { margin-top: .75rem; font-size: .92rem; color: var(--mute); }

/* ---------------------------------------------------------------- Cards, tags */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.cards.rules { gap: 2rem 2.5rem; }
.cards.rules .card { background: transparent; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 1.4rem 0 0; }
.cards.rules .card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.01em; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .65rem; border-radius: var(--radius-pill); margin: 0 0 .9rem; }
.tag-today { background: var(--ok-soft); color: var(--ok); }
.tag-progress { background: var(--warn-soft); color: var(--warn); }
.tag-planned { background: var(--plan-soft); color: var(--plan); }
.note-box { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.note-box h3 { font-size: 1.05rem; }
.note-box p { margin: 0; color: var(--ink-2); max-width: 42rem; }

/* ---------------------------------------------------------------- Getting started */
.start-head { display: grid; gap: 2rem 4rem; align-items: center; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
@media (min-width: 60rem) { .start-head { grid-template-columns: 1.1fr 1fr; } }
.start-photo { margin: 0; }
.start-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 2.5rem; counter-reset: tl; }
@media (min-width: 52rem) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.timeline li { counter-increment: tl; border-top: 1px solid var(--ink); padding: 1.25rem 0 2rem; }
.timeline li::before { content: "0" counter(tl); display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); margin-bottom: .6rem; }
.timeline h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-bottom: .5rem; letter-spacing: -0.01em; }
.timeline p { margin: 0; color: var(--ink-2); }
.timeline .who { display: block; margin-top: .65rem; font-size: .88rem; font-weight: 700; color: var(--mute); }

/* ---------------------------------------------------------------- Status */
.status-grid { display: grid; gap: 1.25rem 2.5rem; }
@media (min-width: 52rem) { .status-grid { grid-template-columns: 1.3fr 1.2fr 1fr; } }
.status-col { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.status-col h3 { margin: 0 0 .75rem; }
.status-col ul { margin: 0; padding: 0; list-style: none; }
.status-col li { margin-bottom: .65rem; color: var(--ink-2); position: relative; padding-left: 1.4rem; }
.status-col li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; }
.status-col.is-today li::before { background: var(--ok); }
.status-col.is-progress li::before { border: 2px solid var(--warn); }
.status-col.is-planned li::before { width: .6rem; height: 2px; top: .8em; border-radius: 0; background: var(--plan); }

/* ---------------------------------------------------------------- FAQ */
.faq-grid { display: grid; gap: 2rem 5rem; }
@media (min-width: 60rem) { .faq-grid { grid-template-columns: 1fr 1.6fr; align-items: start; } .faq-grid .section-head { position: sticky; top: 7rem; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.75rem 1.2rem 0; font-weight: 700; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-52%); font-size: 1.5rem; font-weight: 400; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.35rem; color: var(--ink-2); max-width: 42rem; }

/* ---------------------------------------------------------------- Closing band */
.cta-band { background: var(--close-bg); color: var(--ink); border-block: 1px solid var(--close-line); padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.cta-grid { display: grid; gap: 1.5rem 4rem; align-items: end; }
@media (min-width: 60rem) { .cta-grid { grid-template-columns: 1.5fr 1fr; } .cta-grid .actions { justify-content: flex-end; } }
.cta-band h2 { margin-bottom: .4em; }
.cta-band p:not(.eyebrow) { color: var(--ink-2); max-width: 36rem; font-size: 1.08rem; margin: 0; }
.cta-band .actions { margin: 0; }

/* ---------------------------------------------------------------- Inner pages */
.page-head { padding: clamp(2.75rem, 2rem + 3vw, 5rem) 0 clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.page-head h1 { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem); }
.page-head-split { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 60rem) { .page-head-split { grid-template-columns: 1.2fr 1fr; } }
.page-photo { margin: 0; }
.page-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.toc ul { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--control-line); border-radius: var(--radius); text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.toc a:hover { border-color: var(--ink); color: var(--ink); }
.quote { margin: 1rem 0 1.5rem; padding: .25rem 0 .25rem 1.25rem; border-left: 2px solid var(--accent); font-family: var(--font-display); font-size: 1.6rem; line-height: 1.25; }
.quote p { margin: 0; }
.facts { margin: 0; }
.facts > div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; }
.facts dt { font-weight: 700; margin-bottom: .25rem; }
.facts dd { margin: 0; color: var(--ink-2); }
.facts.compact > div { padding: .8rem 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; background: var(--surface); }
caption { text-align: left; padding: .8rem 1rem; color: var(--mute); font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-top: 1px solid var(--line); }
thead th { background: var(--bg-alt); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
tbody th { font-weight: 700; width: 50%; }
.prose h2 { margin-top: 2.5rem; font-size: 2rem; }
.callout.draft { background: var(--warn-soft); border: 1px dashed var(--warn); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
mark.review { background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); padding: 0 .2rem; }

/* ---------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; font-size: .96rem; color: var(--ink-2); }
.footer-emergency { padding: .95rem 1.15rem; border-radius: var(--radius); background: var(--alert-soft); color: var(--alert); margin-bottom: 2.5rem; }
.footer-cols { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: .6rem 0; text-decoration: none; }
.site-footer li a:hover, .site-footer li a:focus-visible { text-decoration: underline; }
.footer-label { font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .5rem; }
.footer-legal { border-top: 1px solid var(--line); margin: 2.5rem 0 0; padding-top: 1.25rem; color: var(--mute); }
.brand-footer { margin-bottom: .75rem; }

@media print {
  .site-header, .nav-toggle, .cta-band .actions, .howto-pager { display: none; }
  .js .howto-panel[hidden] { display: block; }
  .night { background: #fff; color: #000; }
}
.wrap.narrow > h2:not(:first-child), .wrap.narrow > .ticks + h2 { margin-top: 3rem; }

/* ---------------------------------------------------------------- Document pages (everything but home) */
.doc .section { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }
.doc .section.alt { background: transparent; border-top: 1px solid var(--line); }
.doc .section + .section { border-top: 1px solid var(--line); }
.doc .wrap.narrow { max-width: var(--max); }
.doc .wrap.narrow > * { max-width: 46rem; }
.doc .wrap.narrow > .emergency-panel { max-width: 46rem; }
.doc .wrap.narrow h2, .doc .panel h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); }
.doc .grid-2 { max-width: none; }

/* ---------------------------------------------------------------- "Once connected" preview: deliberately muted */
.section.preview { border-block: 1px dashed var(--control-line); }
.tag-preview { background: transparent; color: var(--mute); border: 1px dashed var(--control-line); }
.howto-preview .howto-shot { position: relative; }
.howto-preview .howto-shot picture { border-style: dashed; border-color: var(--control-line); box-shadow: none; }
.howto-preview .howto-shot::before {
  content: "Preview"; position: absolute; z-index: 1; top: .75rem; right: .75rem; padding: .2rem .6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(247, 244, 236, .94); color: var(--ink-2); border: 1px dashed var(--control-line); border-radius: var(--radius);
}
.howto-preview .howto-num { min-width: 1.2rem; }
.preview .section-head.split-head { align-items: start; }
.howto-preview .howto-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 64rem) { .howto-preview .howto-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
