/* NeuroSpine Surgical Consultants · design tokens + components · v2.0 "Clinic Grid"
   One stylesheet, two dedicated themes. Root: <div class="nss" data-theme="light|dark|auto">
   "auto" follows prefers-color-scheme; the header toggle writes light|dark (localStorage nss-theme). */

/* 1. LIGHT tokens */
.nss, .nss[data-theme="light"] {
  --bg: #F4F6F8;            /* Clinic Gray, cool page ground */
  --surface: #FFFFFF;       /* forms, raised surfaces */
  --sunk: #E8ECF0;          /* Bay Gray band */
  --tint: #E3E9F0;          /* selected / pressed fills */
  --ink: #141B24;           /* Graphite, 16.0:1 on bg */
  --ink-2: #4A5563;         /* Slate, 7.0:1 on bg */
  --line: #D3D9E0;          /* hairline, decorative */
  --line-strong: #7A8491;   /* input + control borders, 3.5:1 */
  --brand: #1E3A5F;         /* Windhaven Navy, the only accent, 10.6:1 */
  --brand-mark: #4262C6;    /* logo only */
  --navy: #1E3A5F;
  --on-navy: #FFFFFF;
  --on-navy-2: #BFCBDA;     /* 7.0:1 on navy */
  --primary-bg: #1E3A5F;
  --primary-ink: #FFFFFF;
  --primary-hover: #142A47;
  --focus: #1E3A5F;
  --focus-halo: #FFFFFF;
  --error: #B3261E;
  --error-bg: #FBEDEC;
  --success: #1E6B3A;
  --success-bg: #E7F2EB;
  --star: #141B24;
  --shadow: none;
  --body-weight: 400;
  --body-tracking: 0;
  color-scheme: light;
}

/* 2. DARK tokens (own palette, not an inversion) */
.nss[data-theme="dark"] {
  --bg: #151A20;            /* never below #121212 */
  --surface: #1C222A;
  --sunk: #13171C;
  --tint: #26303C;
  --ink: #E7EAEE;           /* off-white, 14.5:1 */
  --ink-2: #A8B1BC;         /* 8.1:1 */
  --line: #2C343E;
  --line-strong: #6C7685;   /* 3.5:1 on surface */
  --brand: #9FB9D8;         /* navy-light, 8.7:1 */
  --brand-mark: #6F8CF0;
  --navy: #1E2A3A;
  --on-navy: #E7EAEE;
  --on-navy-2: #A8B1BC;
  --primary-bg: #9FB9D8;    /* label #0F1B2B, 8.6:1 */
  --primary-ink: #0F1B2B;
  --primary-hover: #B9CCE3;
  --focus: #9FB9D8;
  --focus-halo: #151A20;
  --error: #FF9B8F;
  --error-bg: #351F21;
  --success: #8FD6A6;
  --success-bg: #1A2E22;
  --star: #E7EAEE;
  --shadow: none;
  --body-weight: 450;       /* resolves to Plex 500, cuts halation */
  --body-tracking: 0.01em;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .nss[data-theme="auto"] {
    --bg: #151A20; --surface: #1C222A; --sunk: #13171C; --tint: #26303C;
    --ink: #E7EAEE; --ink-2: #A8B1BC; --line: #2C343E; --line-strong: #6C7685;
    --brand: #9FB9D8; --brand-mark: #6F8CF0; --navy: #1E2A3A; --on-navy: #E7EAEE; --on-navy-2: #A8B1BC;
    --primary-bg: #9FB9D8; --primary-ink: #0F1B2B; --primary-hover: #B9CCE3;
    --focus: #9FB9D8; --focus-halo: #151A20; --error: #FF9B8F; --error-bg: #351F21;
    --success: #8FD6A6; --success-bg: #1A2E22; --star: #E7EAEE;
    --body-weight: 450; --body-tracking: 0.01em; color-scheme: dark;
  }
}

/* 3. Type, space, shape */
.nss {
  --font-display: "Source Serif 4", "Source Serif Pro", "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.8rem + 2.8vw, 4.25rem);
  --fs-h1: clamp(2.25rem, 1.7rem + 2vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.1875rem, 1.1rem + .3vw, 1.3125rem);
  --fs-body: 1.125rem;
  --fs-small: 1rem;
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --r-sm: 3px; --r-md: 4px; --r-lg: 6px; --r-xl: 6px; --r-pill: 4px;
  --max: 78rem; --max-text: 40rem;
  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.nss *, .nss *::before, .nss *::after { box-sizing: border-box; }
.nss h1, .nss h2 { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin: 0; text-wrap: balance; font-style: normal; }
.nss h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.012em; }
.nss h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.008em; }
.nss h3 { font-family: var(--font-body); font-size: var(--fs-h3); line-height: 1.35; font-weight: 600; color: var(--ink); margin: 0; }
.nss h4 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; margin: 0; }
.nss em, .nss i { font-style: normal; }
.nss p { margin: 0; text-wrap: pretty; }
.nss .display { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -0.018em; font-weight: 500; }
.nss .lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.nss .muted { color: var(--ink-2); }
.nss .small { font-size: var(--fs-small); }
/* Context label: sentence case, used sparingly. Not an eyebrow system. */
.nss .eyebrow { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.nss .wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.nss .measure { max-width: var(--max-text); }
.nss img { max-width: 100%; display: block; }
.nss ul.clean, .nss ol.clean { list-style: none; margin: 0; padding: 0; }
/* Hairline-ruled list: the default way to group items instead of cards */
.nss .ruled > * { border-top: 1px solid var(--line); }
.nss .ruled > *:last-child { border-bottom: 1px solid var(--line); }
.nss .rule-top { border-top: 1px solid var(--ink); }

/* 4. Links + focus */
.nss a { color: var(--brand); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.nss a:hover { text-decoration-thickness: 2px; }
.nss a.plain { text-decoration: none; color: inherit; }
.nss a.plain:hover { text-decoration: underline; }
.nss :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-halo); border-radius: 2px; }
.nss .skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--primary-bg); color: var(--primary-ink); padding: .75rem 1.25rem; border-radius: var(--r-md); font-weight: 600; }
.nss .skip-link:focus { top: 1rem; }
.nss .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 5. Buttons: rectangular, 4px radius, solid or outline, no shadow */
.nss .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.35rem; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.nss .btn svg { width: 1.1em; height: 1.1em; flex: none; }
.nss .btn-primary { background: var(--primary-bg); color: var(--primary-ink); border-color: var(--primary-bg); }
.nss .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.nss .btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.nss .btn-secondary:hover { border-color: var(--ink); }
.nss .btn-on-navy { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); }
.nss .btn-on-navy:hover { background: var(--on-navy-2); border-color: var(--on-navy-2); }
.nss .btn-outline-navy { background: transparent; color: var(--on-navy); border-color: var(--on-navy-2); }
.nss .btn-outline-navy:hover { border-color: var(--on-navy); }
.nss .btn-lg { min-height: 3.5rem; padding: .9rem 1.6rem; font-size: 1.125rem; }
.nss .btn-sm { min-height: 2.75rem; padding: .5rem 1rem; font-size: 1rem; }
.nss .btn[disabled], .nss .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.nss .arrow-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; min-height: 2.75rem; }

/* 6. Surfaces: hairline or background shift, never shadows */
.nss .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.nss .card-link { display: block; color: inherit; text-decoration: none; transition: background-color .12s; }
.nss .card-link:hover { background: var(--surface); }
.nss .card-link:hover .card-title { text-decoration: underline; text-underline-offset: .18em; }
.nss .band-sunk { background: var(--sunk); }
.nss .band-tint { background: var(--sunk); }
.nss .band-navy { background: var(--navy); color: var(--on-navy); }
.nss .band-navy h2, .nss .band-navy h3 { color: var(--on-navy); }
.nss .band-navy .muted { color: var(--on-navy-2); }
.nss .band-navy a:not(.btn) { color: var(--on-navy); }
.nss .band-navy a.btn-on-navy, .nss a.btn-on-navy { color: var(--navy); }
.nss .rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Photo placeholder: replaced 1:1 by commissioned photography (art direction in caption) */
.nss .photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--sunk); border: 1px solid var(--line); }
.nss .photo picture { display: contents; }
.nss .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nss .ph { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--sunk); border: 1px solid var(--line); display: flex; align-items: flex-end; }
.nss .ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)); }
.nss .ph-cap { position: relative; margin: 1rem; background: var(--surface); color: var(--ink-2); padding: .6rem .8rem; font-size: .9375rem; line-height: 1.4; max-width: 28rem; border: 1px solid var(--line); border-radius: var(--r-sm); }
.nss .ph-cap b { color: var(--ink); display: block; font-weight: 600; }
.nss .avatar { border-radius: 50%; background: var(--sunk); color: var(--ink); display: grid; place-items: center; font-family: var(--font-body); font-weight: 600; flex: none; border: 1px solid var(--line); }

/* Timeline: a single rule with square markers (used for the patient journey and training) */
.nss .spine, .nss ol.clean.spine, .nss ul.clean.spine { position: relative; padding-left: 2.25rem; }
.nss .spine::before { content: ""; position: absolute; left: .5rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line-strong); }
.nss .spine-node { position: relative; }
.nss .spine-node::before { content: ""; position: absolute; left: -2.07rem; top: .45rem; width: .65rem; height: .65rem; background: var(--brand); }

/* 7. Chips: square-cornered filters and quick links */
.nss .chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .95rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: var(--font-body); }
.nss .chip:hover { border-color: var(--ink); }
.nss .chip[aria-pressed="true"], .nss .chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Tabs: underline style */
.nss .tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: .75rem 0; min-height: 3rem; margin-right: 2rem; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.nss .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.nss .tab:hover { color: var(--ink); }

/* 8. Forms */
.nss .field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.nss .label { font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.nss .label .opt { font-weight: 400; color: var(--ink-2); }
.nss .hint { font-size: 1rem; color: var(--ink-2); }
.nss .input, .nss .select, .nss .textarea { width: 100%; min-height: 3.25rem; padding: .75rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.125rem; }
.nss .textarea { min-height: 7rem; resize: vertical; }
.nss .input::placeholder, .nss .textarea::placeholder { color: var(--ink-2); opacity: 1; }
.nss .input:hover, .nss .select:hover, .nss .textarea:hover { border-color: var(--ink); }
.nss .input[aria-invalid="true"], .nss .select[aria-invalid="true"] { border-color: var(--error); border-width: 2px; background: var(--error-bg); }
.nss .err-msg { display: flex; gap: .45rem; align-items: flex-start; color: var(--error); font-weight: 600; font-size: 1rem; }
.nss .err-msg svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .15rem; }
.nss .err-summary { border: 2px solid var(--error); background: var(--error-bg); border-radius: var(--r-md); padding: 1rem 1.25rem; }
.nss .ok-box { border: 2px solid var(--success); background: var(--success-bg); border-radius: var(--r-md); padding: 1.5rem; }
.nss .check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.nss .check input { width: 1.5rem; height: 1.5rem; margin: .15rem 0 0; accent-color: var(--brand); flex: none; }
.nss .radio-pill { position: relative; }
.nss .radio-pill input { position: absolute; opacity: 0; inset: 0; }
.nss .radio-pill span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-weight: 500; cursor: pointer; }
.nss .radio-pill input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nss .radio-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.nss .privacy-note { display: flex; gap: .65rem; align-items: flex-start; font-size: 1rem; color: var(--ink-2); }
.nss .privacy-note svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .15rem; color: var(--success); }
.nss .switch { position: relative; width: 3.25rem; height: 2rem; border-radius: 1rem; border: 1.5px solid var(--line-strong); background: var(--sunk); cursor: pointer; flex: none; padding: 0; }
.nss .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--ink-2); transition: transform .12s; }
.nss .switch[aria-checked="true"] { background: var(--primary-bg); border-color: var(--primary-bg); }
.nss .switch[aria-checked="true"]::after { transform: translateX(1.2rem); background: var(--primary-ink); }
.nss .switch[aria-disabled="true"] { opacity: .7; cursor: not-allowed; }

/* 9. Accordion (native details) */
.nss details.acc { border-top: 1px solid var(--line); }
.nss details.acc:last-of-type { border-bottom: 1px solid var(--line); }
.nss details.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; min-height: 3rem; font-family: var(--font-body); font-weight: 600; font-size: 1.1875rem; line-height: 1.35; color: var(--ink); }
.nss details.acc summary::-webkit-details-marker { display: none; }
.nss details.acc summary::after { content: "+"; font-size: 1.5rem; line-height: 1; width: 2rem; height: 2rem; display: grid; place-items: center; flex: none; color: var(--ink-2); font-weight: 400; }
.nss details.acc[open] summary::after { content: "\2212"; }
.nss details.acc .acc-body { padding: 0 0 1.4rem; max-width: var(--max-text); color: var(--ink-2); }

/* 10. Header */
.nss .utility { background: var(--navy); color: var(--on-navy); font-size: 1rem; }
.nss .utility a { color: var(--on-navy); }
.nss .site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.nss .site-header .btn, .nss .mobile-bar .btn, .nss .utility a { white-space: nowrap; }
.header-wrap { position: sticky; top: 0; z-index: 60; }
.nss .nav-top { display: inline-flex; align-items: center; gap: .3rem; min-height: 3rem; padding: .5rem .7rem; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 500; font-size: 1.03rem; color: var(--ink); cursor: pointer; text-decoration: none; border-radius: 0; white-space: nowrap; }
.nss .nav-top:hover { border-bottom-color: var(--line-strong); }
.nss .nav-top[aria-current="page"], .nss .nav-top.is-section { border-bottom-color: var(--brand); font-weight: 600; }
.nss .nav-top svg { width: 1rem; height: 1rem; transition: transform .12s; }
.nss .nav-top[aria-expanded="true"] svg { transform: rotate(180deg); }
.nss .menu { position: absolute; top: calc(100% + .35rem); left: 0; min-width: 21rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: .4rem; z-index: 70; }
.nss .menu a { display: block; padding: .65rem .8rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--r-sm); }
.nss .menu a small { display: block; font-weight: 400; color: var(--ink-2); font-size: .9375rem; }
.nss .menu a:hover { background: var(--sunk); }
.nss .icon-btn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.nss .icon-btn:hover { border-color: var(--ink); }
.nss .icon-btn svg { width: 1.3rem; height: 1.3rem; }
.nss .desk-only { display: flex; }
.nss .mob-only { display: none; }
.nss .mobile-bar { display: none; }
@media (max-width: 1360px) { .nss .desk-only { display: none !important; } .nss .mob-only { display: flex; } }
@media (max-width: 760px) {
  .nss .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line-strong); }
  .nss .hide-sm { display: none !important; }
  .nss { padding-bottom: 4.5rem; }
}
.nss .drawer { background: var(--surface); border-bottom: 1px solid var(--line); }
.nss .drawer a.d-link { display: flex; align-items: center; min-height: 3rem; color: var(--ink); text-decoration: none; font-weight: 500; }

/* 11. Misc */
.nss .crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: 1rem; color: var(--ink-2); list-style: none; padding: 0; margin: 0; }
.nss .crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.nss .reviewed { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1rem; color: var(--ink-2); }
.nss .reviewed svg { width: 1.1rem; height: 1.1rem; color: var(--success); }
.nss .stars { color: var(--star); }
.nss .stat-num { font-family: var(--font-body); font-weight: 600; font-size: inherit; line-height: inherit; color: var(--ink); }
.nss .tag { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .1rem .55rem; border-radius: var(--r-sm); background: var(--tint); color: var(--ink); font-size: .9375rem; font-weight: 500; }
.nss .tag-warn { background: transparent; color: var(--ink); border: 1px dashed var(--line-strong); }
.nss .toc a { display: block; padding: .45rem 0; color: var(--ink-2); text-decoration: none; font-size: 1rem; border-top: 1px solid var(--line); }
.nss .toc a:hover, .nss .toc a[aria-current="true"] { color: var(--ink); text-decoration: underline; }
.nss .doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.nss .file-ico { font-size: .875rem; font-weight: 600; color: var(--ink-2); width: 2.5rem; flex: none; }
.nss .cookie { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; width: min(30rem, calc(100% - 2rem)); background: var(--surface); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-md); padding: 1.4rem; }
@media (max-width: 760px) { .nss .cookie { bottom: 5.25rem; } }
.nss .spec { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .875rem; letter-spacing: 0; }
.nss .anno { display: inline-flex; align-items: center; font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .8125rem; font-weight: 500; color: #3D4B5C; background: #DCE4EE; border-radius: 2px; padding: .05rem .35rem; letter-spacing: 0; }
.nss[data-theme="dark"] .anno { color: #C9D6E6; background: #2A3747; }

@media (prefers-reduced-motion: reduce) { .nss *, .nss *::before, .nss *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .nss .btn, .nss .chip, .nss .input, .nss .card, .nss .switch { border: 2px solid CanvasText; } .nss :focus-visible { outline: 3px solid Highlight; } }

/* 12. Production additions */
html.nss { scroll-padding-top: 9rem; }
.nss [hidden] { display: none !important; }
.nss body { margin: 0; }
.nss .nav-item { position: relative; }
.nss .ph-fill { width: 100%; height: 100%; }
.nss .preview-note { font-size: .9375rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1rem; }
.nss .review-pending { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1rem; color: var(--ink-2); }
.nss .review-pending svg { width: 1.1rem; height: 1.1rem; color: var(--ink-2); }
.nss .prose h2 { margin-top: 2.75rem; }
.nss .prose h3 { margin-top: 1.75rem; }
.nss .prose p, .nss .prose ul { margin-top: .75rem; }
.nss .prose ul { padding-left: 1.2rem; }
.nss .prose li { margin-top: .35rem; }
.nss .prose { max-width: 44rem; }
.nss .defs p { margin-top: .5rem; }
.nss .defs strong { color: var(--ink); }
.nss table.simple { width: 100%; border-collapse: collapse; }
.nss table.simple th, .nss table.simple td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
@media print { .header-wrap, .mobile-bar, .cookie, footer { display: none !important; } }
/* Production: icon swaps */
.nss .i-sun, .nss .i-close { display: none; }
html.nss.is-dark .i-sun { display: block; }
html.nss.is-dark .i-moon { display: none; }
@media (prefers-color-scheme: dark) { html.nss[data-theme="auto"] .i-sun { display: block; } html.nss[data-theme="auto"] .i-moon { display: none; } }
.nss [data-drawer-toggle][aria-expanded="true"] .i-menu { display: none; }
.nss [data-drawer-toggle][aria-expanded="true"] .i-close { display: block; }
.nss details > summary { list-style-position: inside; }
.nss details[open] > summary { color: var(--brand); }
.nss .defs dt, .nss .defs dd { margin: 0; }
/* Compact cookie banner */
.nss .cookie { width: min(24rem, calc(100% - 2rem)); padding: 1rem 1.1rem; }
.nss .cookie .cc-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.nss .cookie .cc-text, .nss .cookie .small { font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.nss .cookie .cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.nss .cookie .btn-sm { min-height: 2.75rem; padding: .4rem .85rem; font-size: .9375rem; }
.nss .cookie .cc-link { background: none; border: 0; padding: 0 .2rem; min-height: 2.75rem; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.nss .cookie li { padding-block: .6rem !important; }
.nss .cookie li p { font-size: .9375rem; }
@media (max-width: 760px) { .nss .cookie { left: .75rem; right: .75rem; width: auto; bottom: 4.75rem; } }
/* Search results */
.nss .sr-list { display: flex; flex-direction: column; margin-top: .75rem; }
.nss .sr-list li { border-top: 1px solid var(--line); }
.nss .sr-list li:last-child { border-bottom: 1px solid var(--line); }
.nss .sr-item { display: flex; flex-direction: column; gap: .25rem; padding: 1rem .75rem; margin-inline: -.75rem; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.nss .sr-item:hover { background: var(--sunk); }
.nss .sr-item:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.nss .sr-sec { font-size: .875rem; color: var(--ink-2); }
.nss .sr-title { font-weight: 600; font-size: 1.1875rem; color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.nss .sr-item:hover .sr-title { text-decoration-thickness: 2px; }
.nss .sr-snip { font-size: 1rem; color: var(--ink-2); line-height: 1.5; }
.nss .sr-list mark { background: var(--tint); color: inherit; padding: 0; border-radius: 2px; }
.nss .sr-more { display: flex; align-items: center; min-height: 3rem; font-weight: 600; }
.nss .sr-none { padding: 1rem 0; color: var(--ink-2); }
.nss .sr-compact .sr-item { padding: .7rem .75rem; }
.nss .sr-compact .sr-title { font-size: 1.0625rem; }
.nss .sr-compact .sr-snip { font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Compact home hero */
.nss .hero-title { font-size: clamp(2.25rem, 1.5rem + 2.3vw, 3.6rem); line-height: 1.08; max-width: 21ch; }
.nss .facts-tight .small { line-height: 1.45; }
@media (max-width: 420px) { .nss .site-header a.plain > span > span:first-child { font-size: .95rem !important; } .nss .site-header a.plain > span > span:last-child { font-size: .62rem !important; } .nss .site-header .icon-btn { width: 2.75rem; height: 2.75rem; } }
.nss .cookie .cc-short { display: none; }
@media (max-width: 760px) {
  .nss .cookie { left: 0; right: 0; width: auto; bottom: 4.6rem; border-radius: 0; border-width: 1px 0; padding: .65rem 1rem .7rem; box-shadow: none; }
  .nss .cookie [data-cookie-banner] { gap: .45rem !important; }
  .nss .cookie [data-cookie-banner] .cc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nss .cookie .cc-long { display: none; }
  .nss .cookie .cc-short { display: inline; }
  .nss .cookie .cc-text { font-size: .875rem; }
  .nss .cookie .cc-actions { flex-wrap: nowrap; gap: .4rem; }
  .nss .cookie [data-cookie-banner] .btn-sm { min-height: 2.5rem; padding: .3rem .7rem; font-size: .875rem; flex: 1 1 auto; }
  .nss .cookie .cc-link { min-height: 2.5rem; font-size: .875rem; }
  .nss .cookie [data-cookie-prefs] { max-height: 60vh; overflow-y: auto; }
}
.nss .lbl { display: block; font-size: .9375rem; color: var(--ink-2); margin-bottom: .15rem; }
/* Compact footer */
.nss .site-footer { background: var(--sunk); border-top: 1px solid var(--line); padding-block: 2.5rem 1.5rem; font-size: .9375rem; }
.nss .site-footer .f-grid { display: grid; grid-template-columns: minmax(16rem, 1.3fr) repeat(3, minmax(10rem, 1fr)); gap: 2rem 2.5rem; }
@media (max-width: 960px) { .nss .site-footer .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nss .site-footer .f-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .nss .site-footer .f-grid { gap: 1.5rem 1rem; } }
.nss .site-footer .f-brand { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.nss .site-footer .f-brand address { font-style: normal; line-height: 1.5; }
.nss .site-footer .f-brand p { line-height: 1.5; }
.nss .site-footer .f-phone { font-weight: 700; font-size: 1.0625rem; }
.nss .site-footer .f-h { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; margin-bottom: .4rem; }
.nss .site-footer .f-link { display: inline-flex; align-items: center; min-height: 2rem; color: var(--ink); text-decoration: none; }
.nss .site-footer .f-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.nss .site-footer .f-notes { display: flex; flex-direction: column; gap: .5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.5; }
.nss .site-footer .f-notes p { max-width: 56rem; }
.nss .site-footer .f-emergency { display: flex; gap: .5rem; align-items: flex-start; color: var(--ink); }
.nss .site-footer .f-emergency svg { width: 1.1rem; height: 1.1rem; color: var(--error); margin-top: .15rem; flex: none; }
.nss .site-footer .f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; }
.nss .site-footer .f-legal { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.nss .site-footer .f-legal a, .nss .site-footer .f-cookie { display: inline-flex; align-items: center; min-height: 2rem; }
.nss .site-footer .f-cookie { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.nss .site-footer .preview-note { margin-top: .5rem; font-size: .8125rem; border-top: 0; padding-top: 0; }
/* Uniform CTA sizes */
.nss main .btn-lg { min-width: min(100%, 19.5rem); }
.nss main .btn:not(.btn-lg):not(.btn-sm):not([type="submit"]) { min-width: min(100%, 15rem); }
@media (max-width: 520px) { .nss main .btn-lg { width: 100%; } }
.nss main .btn:not(.btn-sm):not([type="submit"]) { align-self: flex-start; }
@media (max-width: 520px) { .nss main .btn-lg { align-self: stretch; } }
/* Slim mid-page CTA on condition pages */
.nss .mid-cta { border-radius: var(--r-md); padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.nss .mid-cta-text { flex: 1 1 18rem; display: flex; flex-direction: column; gap: .35rem; }
.nss .mid-cta h2 { font-size: 1.35rem; line-height: 1.25; }
.nss .mid-cta p { font-size: .9375rem; color: var(--on-navy-2); }
.nss .mid-cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; flex: 0 1 auto; }
@media (max-width: 520px) { .nss .mid-cta-actions { grid-template-columns: 1fr; flex: 1 1 100%; } }
.nss .mid-cta .btn { white-space: nowrap; }
.nss main .mid-cta .mid-cta-actions .btn.btn:not(.btn-sm) { min-width: 0; min-height: 2.75rem; padding: .55rem 1.1rem; font-size: 1rem; }
/* Sticky table of contents */
@media (min-width: 1100px) {
  .nss .toc-aside { position: sticky; top: calc(var(--hdr, 9rem) + 1.25rem); max-height: calc(100vh - var(--hdr, 9rem) - 2.5rem); overflow-y: auto; }
}
.nss .toc a[aria-current="true"] { color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: inset 2px 0 0 var(--brand); padding-left: .6rem; }
