/* ==========================================================================
   The Recovery Room — main stylesheet
   RTL-first, logical properties, no framework. Prefix: hdh-
   Motif: a calm route (rail + station nodes) from night to morning.
   ========================================================================== */

/* ---------- Fonts (self-hosted, per-subset) ---------- */
@font-face { font-family: "Noto Sans Hebrew"; src: url("../fonts/noto-sans-hebrew-hebrew.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Noto Sans Hebrew"; src: url("../fonts/noto-sans-hebrew-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Hebrew"; src: url("../fonts/noto-serif-hebrew-hebrew.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Noto Serif Hebrew"; src: url("../fonts/noto-serif-hebrew-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alef"; src: url("../fonts/alef-hebrew-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Alef"; src: url("../fonts/alef-hebrew-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Alef"; src: url("../fonts/alef-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Alef"; src: url("../fonts/alef-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

/* ---------- Tokens ---------- */
:root {
    --teal: #276678;          /* primary: links, buttons, nodes */
    --teal-deep: #1b4d5c;     /* hover, header night band */
    --night: #143844;         /* hero panel night sky */
    --mist: #98c1d9;          /* secondary: rail, decor, dawn */
    --mist-soft: #e3eff6;     /* tints */
    --mist-faint: #f0f6fa;
    --paper: #f7fafb;
    --surface: #ffffff;
    --ink: #142f38;
    --ink-soft: #3d5862;      /* secondary text */
    --line: #d5e3ea;
    --link: #1f5d6f;
    --on-teal: #ffffff;
    --warn-bg: #fbf2e2;
    --warn-line: #d39b3c;
    --warn-ink: #6e4306;
    --ask-bg: #eaf3f8;
    --focus: #c2410c;

    --f-body: "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
    --f-head: "Noto Serif Hebrew", "Times New Roman", serif;
    --f-brand: "Alef", "Noto Sans Hebrew", Arial, sans-serif;

    --r-s: 10px;
    --r-m: 16px;
    --r-l: 24px;
    --shadow: 0 1px 2px rgba(20, 47, 56, .06), 0 8px 24px -12px rgba(20, 47, 56, .18);
    --wrap: 1200px;
    --gutter: clamp(1rem, 3.5vw, 2rem);
    color-scheme: light;
}

:root[data-mode="dark"] {
    --teal: #7cc3d9;
    --teal-deep: #a6d8e7;
    --night: #0b1a20;
    --mist: #4f8399;
    --mist-soft: #1a3139;
    --mist-faint: #13252c;
    --paper: #0e1d23;
    --surface: #15282f;
    --ink: #e3eef2;
    --ink-soft: #a9c1ca;
    --line: #29434d;
    --link: #8fd2e6;
    --on-teal: #0b1a20;
    --warn-bg: #2a2214;
    --warn-line: #b7842f;
    --warn-ink: #f1c983;
    --ask-bg: #172f38;
    --focus: #fdba74;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) {
        --teal: #7cc3d9;
        --teal-deep: #a6d8e7;
        --night: #0b1a20;
        --mist: #4f8399;
        --mist-soft: #1a3139;
        --mist-faint: #13252c;
        --paper: #0e1d23;
        --surface: #15282f;
        --ink: #e3eef2;
        --ink-soft: #a9c1ca;
        --line: #29434d;
        --link: #8fd2e6;
        --on-teal: #0b1a20;
        --warn-bg: #2a2214;
        --warn-line: #b7842f;
        --warn-ink: #f1c983;
        --ask-bg: #172f38;
        --focus: #fdba74;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.75 var(--f-body);
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.3; font-weight: 650; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hdh-main:focus { outline: none; }

.hdh-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hdh-skip {
    position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 100;
    background: var(--teal); color: var(--on-teal); padding: .7rem 1.1rem; border-radius: var(--r-s);
    font-weight: 700; text-decoration: none; transition: inset-block-start .15s;
}
.hdh-skip:focus { inset-block-start: 1rem; }

.hdh-icon { flex: none; vertical-align: middle; }
.hdh-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hdh-wrap--mid { max-width: calc(980px + 2 * var(--gutter)); }
.hdh-wrap--read { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- Header ---------- */
.hdh-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-block-end: 1px solid var(--line);
}
.admin-bar .hdh-header { top: 32px; }
.hdh-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.hdh-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.hdh-mark { flex: none; border-radius: 13px; }
.hdh-brand__text { display: flex; flex-direction: column; min-width: 0; }
.hdh-brand__name { font-family: var(--f-brand); font-weight: 700; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.005em; }
.hdh-brand__tag { font-size: .82rem; color: var(--ink-soft); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hdh-tools { display: flex; align-items: center; gap: .35rem; }
.hdh-tool {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 44px; min-width: 44px; padding: 0 .8rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    color: var(--ink); cursor: pointer; font-size: .95rem; font-weight: 600;
    transition: background-color .15s, border-color .15s;
}
.hdh-tool:hover { border-color: var(--mist); background: var(--mist-faint); }
.hdh-tool[aria-expanded="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.hdh-tool--mode { padding: 0; }
.hdh-tool--mode .hdh-icon:nth-of-type(2) { display: none; }
:root[data-mode="dark"] .hdh-tool--mode .hdh-icon:nth-of-type(1) { display: none; }
:root[data-mode="dark"] .hdh-tool--mode .hdh-icon:nth-of-type(2) { display: inline; }
@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) .hdh-tool--mode .hdh-icon:nth-of-type(1) { display: none; }
    :root:not([data-mode="light"]) .hdh-tool--mode .hdh-icon:nth-of-type(2) { display: inline; }
}
.hdh-tool--menu .hdh-icon:nth-of-type(2) { display: none; }
.hdh-tool--menu[aria-expanded="true"] .hdh-icon:nth-of-type(1) { display: none; }
.hdh-tool--menu[aria-expanded="true"] .hdh-icon:nth-of-type(2) { display: inline; }

.hdh-search { border-block-start: 1px solid var(--line); padding-block: .9rem; background: var(--surface); }
.hdh-search[hidden] { display: none; }

/* Topic bar: the six procedure/route topics of the primary menu */
.hdh-nav { border-block-start: 1px solid var(--line); }
.hdh-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .35rem; padding-block: .35rem; }
.hdh-nav__list a {
    display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .8rem;
    border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.hdh-nav__list a:hover { background: var(--mist-soft); }
.hdh-nav__list .current-menu-item > a, .hdh-nav__list .current-menu-parent > a, .hdh-nav__list a[aria-current] {
    background: var(--teal); color: var(--on-teal);
}

@media (max-width: 899px) {
    .hdh-tool__text { display: none; }
    .hdh-tool--menu { padding: 0; }
    .hdh-brand__tag { display: none; }
    .hdh-brand__name { font-size: 1.35rem; }
    .hdh-nav { display: none; }
    .hdh-nav.is-open { display: block; max-height: calc(100vh - 72px); overflow-y: auto; }
    .hdh-nav.is-open .hdh-nav__list { flex-direction: column; padding-block: .6rem 1rem; }
    .hdh-nav.is-open .hdh-nav__list a { display: flex; min-height: 46px; font-size: 1.05rem; border-radius: var(--r-s); }
}
@media (min-width: 900px) {
    .hdh-tool--menu { display: none; }
}

/* ---------- Search form ---------- */
.hdh-searchform { display: flex; gap: .5rem; max-width: 640px; }
.hdh-searchform input {
    flex: 1; min-width: 0; min-height: 48px; padding: .6rem 1rem;
    border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
    font: inherit;
}
.hdh-searchform input::placeholder { color: var(--ink-soft); opacity: .85; }
.hdh-searchform input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
.hdh-searchform button {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: 0 1.2rem;
    border: 0; border-radius: 999px; background: var(--teal); color: var(--on-teal); font-weight: 700; cursor: pointer;
}
.hdh-searchform button:hover { background: var(--teal-deep); }

/* ---------- Shared pieces ---------- */
.hdh-kicker {
    font-family: var(--f-brand); font-weight: 700; font-size: .92rem; letter-spacing: .02em;
    color: var(--teal); display: inline-flex; align-items: center; gap: .5rem; margin-block-end: .4rem;
}
.hdh-kicker::before { content: ""; inline-size: 18px; block-size: 2px; background: var(--mist); border-radius: 2px; }
.hdh-eyebrow { font-family: var(--f-brand); font-weight: 700; color: var(--teal); font-size: 1.02rem; margin-block-end: .8rem; }

.hdh-btn {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .55rem 1.35rem;
    border-radius: 999px; background: var(--teal); color: var(--on-teal); font-weight: 700; text-decoration: none;
    border: 1.5px solid var(--teal); transition: background-color .15s, color .15s;
}
.hdh-btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.hdh-btn--quiet { background: transparent; color: var(--link); border-color: var(--line); }
.hdh-btn--quiet:hover { background: var(--mist-soft); border-color: var(--mist); color: var(--link); }

.hdh-more {
    display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--link);
    text-decoration: none; min-height: 40px;
}
.hdh-more:hover { text-decoration: underline; }

.hdh-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hdh-section--tint { background: var(--mist-faint); border-block: 1px solid var(--line); }
.hdh-section--flush { padding-block-start: clamp(1.75rem, 4vw, 2.75rem); }
.hdh-sechead { max-width: 720px; margin-block-end: clamp(1.75rem, 4vw, 2.75rem); }
.hdh-sechead--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.hdh-sechead__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
.hdh-sechead__lead { color: var(--ink-soft); margin-block-start: .6rem; font-size: 1.08rem; }

.hdh-crumbs { font-size: .9rem; color: var(--ink-soft); margin-block-end: 1rem; }
.hdh-crumbs a { color: var(--ink-soft); }
.hdh-crumbs a:hover { color: var(--link); }

.hdh-avatar {
    flex: none; display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%;
    background: var(--mist-soft); color: var(--teal); font-family: var(--f-brand); font-weight: 700; font-size: 1.05rem;
    box-shadow: inset 0 0 0 2px var(--mist);
}
.hdh-avatar--lg { inline-size: 64px; block-size: 64px; font-size: 1.4rem; }

.hdh-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.hdh-chip {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .3rem .9rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    color: var(--ink); text-decoration: none; font-size: .95rem;
}
.hdh-chip:hover { border-color: var(--teal); color: var(--link); }
.hdh-chip__n {
    display: inline-grid; place-items: center; min-inline-size: 1.6rem; block-size: 1.6rem; padding-inline: .35rem;
    border-radius: 999px; background: var(--mist-soft); color: var(--teal); font-size: .8rem; font-weight: 700;
}

.hdh-empty { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink-soft); }
.hdh-empty p + p { margin-block-start: .6rem; }

/* ---------- Cards ---------- */
.hdh-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.hdh-card {
    position: relative; display: flex; flex-direction: column; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease;
}
.hdh-card:hover { transform: translateY(-2px); border-color: var(--mist); }
.hdh-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist-soft); }
.hdh-card__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.hdh-card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.hdh-card__cat { font-family: var(--f-brand); font-weight: 700; font-size: .85rem; color: var(--teal); }
.hdh-card__title { font-size: 1.2rem; line-height: 1.4; }
.hdh-card__title a { color: var(--ink); text-decoration: none; }
.hdh-card__title a::after { content: ""; position: absolute; inset: 0; }
.hdh-card__title a:hover { color: var(--link); }
.hdh-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.hdh-card__title a:focus-visible { outline: none; }
.hdh-card__excerpt { color: var(--ink-soft); font-size: .97rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hdh-card__meta { margin-block-start: auto; padding-block-start: .4rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .86rem; color: var(--ink-soft); }

@media (min-width: 760px) {
    .hdh-card--row { flex-direction: row; }
    .hdh-card--row .hdh-card__media { position: relative; flex: 0 0 260px; aspect-ratio: auto; min-block-size: 180px; }
    .hdh-card--row .hdh-card__media img { position: absolute; inset: 0; }
    .hdh-card--row .hdh-card__body { padding: 1.25rem 1.5rem; }
    .hdh-card--row .hdh-card__title { font-size: 1.3rem; }
}

/* ---------- Hero ---------- */
.hdh-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); background:
    radial-gradient(900px 380px at 15% 0%, var(--mist-soft), transparent 70%),
    linear-gradient(var(--paper), var(--paper)); }
.hdh-hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hdh-hero__grid { grid-template-columns: 1.25fr 1fr; } }
.hdh-hero__title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.hdh-hero__lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); margin-block-start: 1.1rem; max-width: 38ch; }
.hdh-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 1.8rem; }
.hdh-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-block-start: 2rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--line); color: var(--ink-soft); }
.hdh-facts strong { font-family: var(--f-head); font-size: 1.6rem; color: var(--ink); margin-inline-end: .3rem; font-variant-numeric: tabular-nums; }

/* Route card: night sky at the top, dawn at the bottom, four stations in between */
.hdh-route {
    position: relative; overflow: hidden; border-radius: var(--r-l); color: #e8f2f6;
    background: linear-gradient(180deg, #143844 0%, #1f5566 46%, #4d8aa2 78%, #a9cde0 100%);
    box-shadow: 0 30px 60px -30px rgba(20, 56, 68, .55);
    padding: 1.6rem 1.6rem 0;
}
.hdh-route__sky { position: absolute; inset: 0 0 auto; inline-size: 100%; block-size: 120px; color: #cfe4ee; pointer-events: none; }
.hdh-route__title { position: relative; font-family: var(--f-brand); font-weight: 700; font-size: 1.05rem; color: #cfe4ee; margin-block-end: 1rem; }
.hdh-route__list { position: relative; list-style: none; }
.hdh-route__list::before {
    content: ""; position: absolute; inset-inline-start: 19px; inset-block: 22px 22px; inline-size: 2px;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 6px, transparent 6px 11px);
}
.hdh-route__list a {
    position: relative; display: flex; align-items: center; gap: 1rem; padding: .55rem .5rem .55rem 0; min-height: 56px;
    color: #fff; text-decoration: none; border-radius: var(--r-s);
}
.hdh-route__list a:hover .hdh-route__name { text-decoration: underline; text-underline-offset: .2em; }
.hdh-route__list a:focus-visible { outline-color: #fde68a; }
.hdh-route__dot {
    flex: none; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%;
    background: #fff; color: #143844; font-family: var(--f-brand); font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 0 0 5px rgba(255,255,255,.16);
}
.hdh-route__text { display: flex; flex-direction: column; line-height: 1.35; }
.hdh-route__kicker { font-size: .82rem; color: #d4e7ef; font-weight: 600; }
.hdh-route__name { font-family: var(--f-head); font-size: 1.12rem; font-weight: 600; }
.hdh-route__list li:last-child .hdh-route__name, .hdh-route__list li:last-child .hdh-route__kicker { color: #0d2a33; }
.hdh-route__list li:last-child .hdh-route__dot { background: #143844; color: #fff; box-shadow: 0 0 0 5px rgba(20,56,68,.18); }
.hdh-route__list li:nth-child(3) .hdh-route__kicker { color: #f2f8fb; }
.hdh-route__dawn { display: block; inline-size: calc(100% + 3.2rem); margin-inline: -1.6rem; block-size: 70px; color: #ffffff; opacity: .9; margin-block-start: .5rem; }

.hdh-alertline {
    display: flex; gap: .7rem; align-items: flex-start; margin-block-start: clamp(1.75rem, 4vw, 2.5rem);
    padding: .9rem 1.1rem; border-radius: var(--r-m); background: var(--warn-bg); color: var(--ink);
    border-inline-start: 4px solid var(--warn-line); font-size: .98rem;
}
.hdh-alertline .hdh-icon { color: var(--warn-ink); margin-block-start: .2rem; }

/* ---------- Timeline (homepage) ---------- */
.hdh-timeline { list-style: none; position: relative; display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); }
.hdh-timeline::before {
    content: ""; position: absolute; inset-block: 1.5rem; inset-inline-start: 23px; inline-size: 3px; border-radius: 3px;
    background: linear-gradient(to bottom, var(--teal) 0%, var(--mist) 100%);
}
.hdh-station { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; align-items: start; }
.hdh-station__node {
    position: relative; z-index: 1; display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 50%;
    background: var(--surface); color: var(--teal); border: 3px solid var(--teal); box-shadow: 0 0 0 6px var(--paper);
}
.hdh-station:nth-child(3) .hdh-station__node, .hdh-station:nth-child(4) .hdh-station__node { border-color: var(--mist); }
.hdh-station__card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.2rem, 3vw, 1.9rem);
    box-shadow: var(--shadow);
}
.hdh-station__when { font-size: .95rem; color: var(--ink-soft); margin-block-end: .35rem; }
.hdh-station__num { font-family: var(--f-brand); font-weight: 700; color: var(--teal); margin-inline-end: .35rem; }
.hdh-station__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.hdh-station__title a { color: var(--ink); text-decoration: none; }
.hdh-station__title a:hover { color: var(--link); text-decoration: underline; }
.hdh-station__lead { color: var(--ink-soft); margin-block-start: .6rem; }
.hdh-station__list { list-style: none; margin-block: 1rem .4rem; border-block-start: 1px solid var(--line); }
.hdh-station__list li { border-block-end: 1px solid var(--line); }
.hdh-station__list a {
    display: flex; gap: .65rem; align-items: baseline; padding-block: .6rem; color: var(--ink); text-decoration: none; line-height: 1.5;
}
.hdh-station__list a::before { content: ""; flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; border: 2px solid var(--mist); transform: translateY(-1px); }
.hdh-station__list a:hover { color: var(--link); }
.hdh-station__list a:hover::before { background: var(--teal); border-color: var(--teal); }
.hdh-station__media { display: none; }
@media (max-width: 599px) {
    .hdh-timeline::before { inset-inline-start: 19px; }
    .hdh-station { grid-template-columns: 40px 1fr; gap: .7rem; }
    .hdh-station__node { inline-size: 40px; block-size: 40px; border-width: 2px; }
    .hdh-station__node .hdh-icon { inline-size: 20px; block-size: 20px; }
    .hdh-station__card { padding: 1.1rem 1.1rem 1.2rem; }
}
@media (max-width: 420px) {
    .hdh-brand { gap: .55rem; }
    .hdh-brand .hdh-mark { inline-size: 40px; block-size: 40px; }
    .hdh-brand__name { font-size: 1.2rem; white-space: nowrap; }
    .hdh-tools { gap: .25rem; }
}

@media (min-width: 960px) {
    .hdh-timeline::before { inset-inline-start: calc(50% - 1.5px); }
    .hdh-station { grid-template-columns: 1fr 64px 1fr; gap: 0; align-items: center; }
    .hdh-station__node { grid-column: 2; grid-row: 1; justify-self: center; inline-size: 60px; block-size: 60px; }
    .hdh-station__card { grid-column: 1; grid-row: 1; margin-inline-end: 1.5rem; }
    .hdh-station__media {
        display: block; grid-column: 3; grid-row: 1; margin-inline-start: 1.5rem; border-radius: var(--r-l); overflow: hidden;
        aspect-ratio: 4 / 3; max-inline-size: 440px; background: var(--mist-soft);
    }
    .hdh-station__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
    .hdh-station--flip .hdh-station__card { grid-column: 3; margin-inline: 1.5rem 0; }
    .hdh-station--flip .hdh-station__media { grid-column: 1; margin-inline: 0 1.5rem; justify-self: end; }
}

/* ---------- Procedure families ---------- */
.hdh-procs { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.hdh-proc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.hdh-proc__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist-soft); }
.hdh-proc__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.hdh-proc__body { padding: 1.1rem 1.25rem 1.3rem; }
.hdh-proc__title { font-size: 1.25rem; }
.hdh-proc__title a { color: var(--ink); text-decoration: none; }
.hdh-proc__title a:hover { color: var(--link); text-decoration: underline; }
.hdh-proc__count { font-size: .88rem; color: var(--teal); font-weight: 700; font-family: var(--f-brand); margin-block-start: .15rem; }
.hdh-proc__list { list-style: none; margin-block-start: .75rem; display: grid; gap: .1rem; }
.hdh-proc__list a { display: block; padding-block: .35rem; padding-inline-start: 1rem; position: relative; color: var(--ink-soft); text-decoration: none; font-size: .95rem; line-height: 1.5; }
.hdh-proc__list a::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .95em; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--mist); }
.hdh-proc__list a:hover { color: var(--link); text-decoration: underline; }

/* ---------- Writers ---------- */
.hdh-writers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.hdh-writer { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.4rem; }
.hdh-writer__name { font-size: 1.3rem; }
.hdh-writer__count { font-size: .88rem; color: var(--teal); font-weight: 700; margin-block: .1rem .5rem; }
.hdh-writer__bio { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Band (archive / page heads) ---------- */
.hdh-band {
    padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.75rem, 4vw, 2.5rem);
    background: linear-gradient(180deg, var(--mist-faint), var(--paper));
    border-block-end: 1px solid var(--line);
}
.hdh-band__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); line-height: 1.2; text-wrap: balance; }
.hdh-band__lead { max-width: 70ch; margin-block-start: .9rem; color: var(--ink-soft); font-size: 1.08rem; }
.hdh-band__lead p + p { margin-block-start: .6rem; }
.hdh-band__count { margin-block-start: 1rem; display: inline-flex; padding: .25rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.hdh-band__search { margin-block-start: 1.25rem; }
.hdh-band__writer { display: flex; gap: 1.25rem; align-items: flex-start; }
.hdh-band--page { padding-block-end: 1.5rem; }
.hdh-chips--route { margin-block-start: 1.5rem; }
.hdh-topics { display: grid; gap: 1rem; margin-block-start: 1.5rem; }
.hdh-topics__label { font-family: var(--f-brand); font-weight: 700; font-size: .9rem; color: var(--ink-soft); margin-block-end: .45rem; }

/* Stops: guides as dated stops along a rail (archives, search) */
.hdh-stops { list-style: none; position: relative; display: grid; gap: 1.25rem; padding-inline-start: 34px; }
.hdh-stops::before { content: ""; position: absolute; inset-block: .5rem; inset-inline-start: 9px; inline-size: 2px; background: var(--line); border-radius: 2px; }
.hdh-stop { position: relative; }
.hdh-stop__node { position: absolute; inset-inline-start: -34px; inset-block-start: 1.6rem; inline-size: 20px; block-size: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--teal); box-shadow: 0 0 0 4px var(--paper); }
.hdh-stop:nth-child(even) .hdh-stop__node { border-color: var(--mist); }

.hdh-stations-nav { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); padding-block: 0 clamp(2.5rem, 6vw, 4rem); }
.hdh-section--tint + .hdh-stations-nav { padding-block-start: clamp(2rem, 5vw, 3rem); }
.hdh-stations-nav__link { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); text-decoration: none; color: var(--ink); }
.hdh-stations-nav__link--next { text-align: end; }
.hdh-stations-nav__link:only-child.hdh-stations-nav__link--next { grid-column: -2; }
.hdh-stations-nav__link:hover { border-color: var(--teal); }
.hdh-stations-nav__dir { font-size: .88rem; color: var(--teal); font-weight: 700; font-family: var(--f-brand); }
.hdh-stations-nav__name { font-family: var(--f-head); font-size: 1.2rem; font-weight: 600; }

/* ---------- Pagination ---------- */
.hdh-pagination { margin-block-start: 2.25rem; }
.hdh-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.hdh-pagination .page-numbers {
    display: inline-grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding-inline: .8rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none;
}
.hdh-pagination .page-numbers.current { background: var(--teal); border-color: var(--teal); color: var(--on-teal); font-weight: 700; }
.hdh-pagination a.page-numbers:hover { border-color: var(--teal); }

/* ---------- Article ---------- */
.hdh-article__head { padding-block: clamp(1.75rem, 4vw, 2.75rem) 1.5rem; }
.hdh-article__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-block-end: .9rem; }
.hdh-article__kicker a {
    font-family: var(--f-brand); font-weight: 700; color: var(--on-teal); background: var(--teal);
    padding: .25rem .85rem; border-radius: 999px; text-decoration: none; font-size: .92rem; min-height: 32px; display: inline-flex; align-items: center;
}
.hdh-article__kicker a:hover { background: var(--teal-deep); }
.hdh-article__station { font-size: .9rem; color: var(--ink-soft); font-family: var(--f-brand); font-weight: 700; }
.hdh-article__title { font-size: clamp(1.9rem, 1.25rem + 2.6vw, 3rem); line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.hdh-article__lead { font-size: 1.2rem; color: var(--ink-soft); margin-block-start: 1rem; max-width: 62ch; }
.hdh-byline { display: flex; align-items: center; gap: .85rem; margin-block-start: 1.5rem; }
.hdh-byline__text { display: flex; flex-direction: column; gap: .1rem; }
.hdh-byline__who { font-weight: 700; }
.hdh-byline__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.hdh-byline__meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.hdh-article__notice {
    display: flex; align-items: flex-start; gap: .5rem; margin-block-start: 1.25rem; font-size: .93rem; color: var(--ink-soft);
    padding: .6rem .9rem; border-radius: var(--r-s); background: var(--mist-faint); border: 1px solid var(--line); max-width: max-content;
}
.hdh-article__notice .hdh-icon { color: var(--teal); margin-block-start: .2rem; }
.hdh-article__figure { margin-block: 0 clamp(1.5rem, 4vw, 2.5rem); }
.hdh-article__figure img { inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-l); background: var(--mist-soft); }

.hdh-article__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block-end: clamp(3rem, 6vw, 4.5rem); }
.hdh-article__main { min-width: 0; max-width: 760px; inline-size: 100%; }
.hdh-table { max-inline-size: 100%; }
/* Head, image and body share one 1110px frame: the reading column sits at the start (right), the route beside it */
.hdh-article .hdh-wrap--mid, .hdh-article__layout { max-width: calc(1110px + 2 * var(--gutter)); }
.hdh-article__head .hdh-article__title { max-width: 920px; }
.hdh-article__figure img { max-inline-size: 960px; }
@media (min-width: 1100px) {
    .hdh-article__layout.has-route { grid-template-columns: minmax(0, 760px) 290px; justify-content: space-between; gap: 3.5rem; }
    .hdh-article__layout.has-route .hdh-aroute { order: 2; }
    .hdh-article__layout:not(.has-route) { grid-template-columns: minmax(0, 760px); }
}
@media (max-width: 1099px) { .hdh-article__main { margin-inline: auto; } .hdh-aroute { max-width: 760px; margin-inline: auto; inline-size: 100%; } }

/* Article route: the sections as stations on a rail that fills as you read */
.hdh-aroute__box { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: .9rem 1rem 1rem; }
@media (min-width: 1100px) {
    .hdh-aroute { position: relative; }
    .hdh-aroute__box { position: sticky; top: 7.5rem; max-height: calc(100vh - 9rem); overflow-y: auto; background: transparent; border: 0; padding: 0; }
    .admin-bar .hdh-aroute__box { top: 9.5rem; }
}
.hdh-aroute summary {
    display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; min-height: 40px;
    font-family: var(--f-brand); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.hdh-aroute summary::-webkit-details-marker { display: none; }
.hdh-aroute summary .hdh-icon { color: var(--teal); }
.hdh-aroute__count { margin-inline-start: auto; font-size: .82rem; color: var(--ink-soft); font-weight: 400; }
.hdh-aroute__list {
    --fill: 0%;
    list-style: none; position: relative; margin-block-start: .6rem; padding-inline-start: 22px;
}
.hdh-aroute__list::before, .hdh-aroute__list::after {
    content: ""; position: absolute; inset-inline-start: 5px; inset-block-start: .9rem; inline-size: 2px; border-radius: 2px;
}
.hdh-aroute__list::before { block-size: calc(100% - 1.8rem); background: var(--line); }
.hdh-aroute__list::after { block-size: calc((100% - 1.8rem) * var(--fill) / 100%); background: var(--teal); max-block-size: calc(100% - 1.8rem); }
.hdh-aroute__list li { position: relative; }
.hdh-aroute__list li::before {
    content: ""; position: absolute; z-index: 1; inset-inline-start: -22px; inset-block-start: .72rem; inline-size: 12px; block-size: 12px;
    border-radius: 50%; background: var(--paper); border: 2px solid var(--mist);
}
.hdh-aroute__list li.is-warn::before { border-color: var(--warn-line); }
.hdh-aroute__list li.is-done::before, .hdh-aroute__list li.is-current::before { background: var(--teal); border-color: var(--teal); }
.hdh-aroute__list a { display: block; padding-block: .4rem; color: var(--ink-soft); text-decoration: none; font-size: .93rem; line-height: 1.5; }
.hdh-aroute__list a:hover { color: var(--link); text-decoration: underline; }
.hdh-aroute__list li.is-current > a { color: var(--ink); font-weight: 700; }

/* ---------- Prose ---------- */
.hdh-prose { font-size: 1.1rem; line-height: 1.85; overflow-wrap: break-word; }
.hdh-prose > * + * { margin-block-start: 1.15em; }
.hdh-prose h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem); margin-block-start: 2.2em; line-height: 1.32; }
.hdh-prose h3 { font-size: 1.28rem; margin-block-start: 1.8em; }
.hdh-prose h2 + *, .hdh-prose h3 + * { margin-block-start: .7em; }
.hdh-prose ul, .hdh-prose ol { padding-inline-start: 1.4em; }
.hdh-prose li + li { margin-block-start: .45em; }
.hdh-prose li::marker { color: var(--teal); font-weight: 700; }
.hdh-prose strong { font-weight: 700; color: var(--ink); }
.hdh-prose blockquote { margin-inline: 0; padding: .4rem 1.25rem; border-inline-start: 4px solid var(--mist); color: var(--ink-soft); font-style: italic; }
.hdh-prose img { border-radius: var(--r-m); }
.hdh-prose hr { border: 0; block-size: 1px; background: var(--line); margin-block: 2.5em; }
.hdh-prose > p:first-child { font-size: 1.16rem; }
.hdh-prose > :first-child { margin-block-start: 0; }
.hdh-bynote { font-size: .95rem; color: var(--ink-soft); padding: .7rem 1rem; border-radius: var(--r-s); background: var(--mist-faint); border: 1px solid var(--line); }
.hdh-bynote strong { color: var(--ink-soft); }
.hdh-readalso { padding: .8rem 1.1rem; border-radius: var(--r-s); background: var(--mist-faint); border-inline-start: 4px solid var(--teal); }

/* Tables: scroll inside their own box on narrow screens */
.hdh-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.hdh-table table { border-collapse: collapse; inline-size: 100%; min-inline-size: 560px; font-size: .97rem; line-height: 1.6; }
.hdh-table th, .hdh-table td { text-align: start; vertical-align: top; padding: .75rem 1rem; border-block-end: 1px solid var(--line); }
.hdh-table th { background: var(--mist-soft); font-weight: 700; color: var(--ink); }
.hdh-table tr:last-child td { border-block-end: 0; }
.hdh-table tbody tr:nth-child(even) td { background: var(--mist-faint); }

/* Boxes inside the article: "what to ask" and warning signs */
.hdh-box { border-radius: var(--r-l); padding: clamp(1.1rem, 3vw, 1.75rem); margin-block-start: 2.4em; }
.hdh-box > h2 { margin-block-start: .35em; }
.hdh-box > * + * { margin-block-start: 1em; }
.hdh-box__label { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--f-brand); font-weight: 700; font-size: .92rem; padding: .2rem .75rem; border-radius: 999px; }
.hdh-box--ask { background: var(--ask-bg); border: 1px solid color-mix(in srgb, var(--mist) 70%, transparent); }
.hdh-box--ask .hdh-box__label { background: var(--surface); color: var(--teal); }
.hdh-box--ask ul, .hdh-box--ask ol { list-style: none; padding-inline-start: 0; }
.hdh-box--ask li { position: relative; padding-inline-start: 2rem; }
.hdh-box--ask li::before {
    content: "?"; position: absolute; inset-inline-start: 0; inset-block-start: .15em; inline-size: 1.4rem; block-size: 1.4rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--teal); color: var(--on-teal); font: 700 .85rem/1 var(--f-brand);
}
.hdh-box--warn { background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn-line) 55%, transparent); border-inline-start: 5px solid var(--warn-line); }
.hdh-box--warn .hdh-box__label { background: var(--surface); color: var(--warn-ink); }
.hdh-box--warn li::marker { color: var(--warn-ink); }

/* The general-information card (every article) */
.hdh-disclaimer {
    display: flex; gap: 1rem; align-items: flex-start; margin-block-start: 2.75rem; padding: 1.25rem 1.4rem;
    border-radius: var(--r-m); background: var(--surface); border: 1.5px solid var(--mist); box-shadow: var(--shadow);
    font-size: .98rem; line-height: 1.75;
}
.hdh-disclaimer__icon { flex: none; display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 50%; background: var(--mist-soft); color: var(--teal); }
.hdh-disclaimer__title { font-family: var(--f-brand); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-block-end: .3rem; }
.hdh-disclaimer p:not(.hdh-disclaimer__title) { color: var(--ink-soft); }

.hdh-authorbox { display: flex; gap: 1.1rem; align-items: flex-start; margin-block-start: 1.5rem; padding: 1.4rem; border-radius: var(--r-m); background: var(--mist-faint); border: 1px solid var(--line); }
.hdh-authorbox__label { font-size: .85rem; color: var(--ink-soft); }
.hdh-authorbox__name { font-size: 1.3rem; margin-block-end: .4rem; }
.hdh-authorbox p:last-child { color: var(--ink-soft); font-size: .98rem; }

/* Front-page prose: the step-by-step list becomes a small route */
.hdh-prose--front > ol { list-style: none; padding-inline-start: 0; counter-reset: step; position: relative; }
.hdh-prose--front > ol::before { content: ""; position: absolute; inset-block: .8rem; inset-inline-start: 15px; inline-size: 2px; background: var(--line); }
.hdh-prose--front > ol > li { counter-increment: step; position: relative; padding-inline-start: 3rem; }
.hdh-prose--front > ol > li + li { margin-block-start: 1.1em; }
.hdh-prose--front > ol > li::before {
    content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: .1em; inline-size: 32px; block-size: 32px; border-radius: 50%;
    display: grid; place-items: center; background: var(--surface); border: 2px solid var(--teal); color: var(--teal); font: 700 .95rem/1 var(--f-brand);
}

/* Pages (about, contact, policies) */
.hdh-prose--page > p:first-child { font-size: 1.1rem; }
.hdh-prose .adxc, body .adxc {
    --adxc-accent: var(--teal); --adxc-bg: var(--surface); --adxc-fg: var(--ink); --adxc-input-bg: var(--paper);
    --adxc-input-fg: var(--ink); --adxc-border: var(--line); --adxc-btn-fg: var(--on-teal); --adxc-radius: 16px;
}
body .adxc .adxc-submit { min-height: 48px; border-radius: 999px; padding-inline: 1.6rem; font-weight: 700; }
body .adxc .adxc-field input, body .adxc .adxc-field textarea { min-height: 48px; }
body .adxc .adxc-field label { font-size: .95rem; }

/* ---------- Footer ---------- */
.hdh-footer { background: #10272f; color: #d6e6ec; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; margin-block-start: 0; }
:root[data-mode="dark"] .hdh-footer { background: #091417; }
.hdh-footer a { color: #e8f3f7; }
.hdh-footer__note { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--r-m); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); margin-block-end: 2.5rem; }
.hdh-footer__noteicon { color: #f3c77a; margin-block-start: .15rem; }
.hdh-footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .hdh-footer__grid { grid-template-columns: 1.3fr 1.4fr .9fr; } }
.hdh-brand--footer { color: #fff; margin-block-end: .9rem; }
.hdh-brand--footer .hdh-mark { box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.hdh-footer__brand p { font-size: .95rem; color: #c2d7df; }
.hdh-footer__brand p + p { margin-block-start: .7rem; }
.hdh-footer__small { font-size: .88rem !important; color: #b3cad3 !important; }
.hdh-footer__title { font-family: var(--f-brand); font-weight: 700; font-size: 1.05rem; color: #fff; margin-block-end: .7rem; }
.hdh-footer__list { list-style: none; display: grid; gap: 0 1.5rem; }
@media (min-width: 560px) { .hdh-footer__list--cols { grid-template-columns: 1fr 1fr; } }
.hdh-footer__list a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-size: .96rem; color: #d6e6ec; }
.hdh-footer__list a:hover { color: #fff; text-decoration: underline; }
.hdh-footer__copy { margin-block-start: 2.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #a9c2cb; }
.hdh-footer :focus-visible { outline-color: #fdba74; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .hdh-card:hover { transform: none; }
}

/* ---------- Print: the questions lists are meant to be printed ---------- */
@media print {
    .hdh-header, .hdh-footer, .hdh-aroute, .hdh-skip, .hdh-section--tint, .hdh-article__notice, .hdh-article__figure { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .hdh-article__layout { display: block; }
    .hdh-box { break-inside: avoid; border: 1px solid #999; background: #fff; }
}
