
  :root {
    --cream: #F7F3EC;
    --ink: #1A1612;
    --muted: #4A4240;
    --teal: #2A7B6F;
    --teal-light: #EAF4F2;
    --teal-mid: #C0DDD9;
    --amber: #C8813A;
    --amber-light: #FBF0E4;
    --rose: #B85C5C;
    --rose-light: #F8EDEC;
    --slate: #3D5266;
    --slate-light: #EBF0F5;
    --border: rgba(26,22,18,0.12);
    --font-head: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: auto; }
  body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.75;
    -webkit-text-size-adjust: 100%;
  }
  /* ── LAYOUT ── */
  .page-shell { display: flex; min-height: 100vh; padding-top: 92px; }

  /* ── TOP BAR (mobile + logo) ── */
  .topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: 52px;
    background: #F7F3EC;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
  }
  .topbar-row1 {
    display: flex; align-items: center; gap: 1rem;
    padding: 0 1.25rem;
    height: 52px;
    width: 100%;
  }
  
  
  
  
  
  @media (max-width: 900px) {
    
    
  }
  .topbar-logo {
    font-family: var(--font-head);
    font-size: 1rem; font-weight: 400;
    color: var(--teal); white-space: nowrap;
  }
  .topbar-toggle {
    display: none;
    background: none; border: 1px solid var(--border);
    border-radius: 6px; padding: 8px 12px;
    cursor: pointer; font-size: 18px; color: var(--ink);
    margin-left: auto;
    min-width: 44px; min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    line-height: 1;
  }

  /* ── SIDEBAR ── */
  .sidebar {
    position: fixed; top: 92px; left: 0; bottom: 0;
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 250;
    display: flex; flex-direction: column;
    padding: 0 0 2rem;
    transition: -webkit-transform 0.28s ease;
    transition: transform 0.28s ease;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    will-change: transform;
  }
  .sidebar.open {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  @media (max-width: 900px) {
    .sidebar { top: 52px; }
  }
  .sidebar::-webkit-scrollbar { width: 4px; }
  .sidebar::-webkit-scrollbar-thumb { background: var(--teal-mid); border-radius: 4px; }
  .sidebar-logo {
    font-family: var(--font-head);
    font-size: 1.05rem; font-weight: 400;
    color: var(--teal);
    padding: 1.35rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .sidebar-logo span {
    display: block; font-size: 13px; font-weight: 400;
    color: var(--muted); letter-spacing: 0.05em;
    margin-top: 2px;
  }

  /* Sidebar flat list styles */
  .sb-section-links { display: flex; flex-direction: column; padding: 0.25rem 0 1rem; }
  .sb-category {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 1.25rem 0.3rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    border-left: 3px solid transparent;
  }
  .sb-category:first-child { border-top: none; margin-top: 0; padding-top: 0.5rem; }

  /* Category accent colors */
  .sb-cat-understanding { color: #2A7B6F; border-left-color: #2A7B6F; }
  .sb-cat-human        { color: #B85C5C; border-left-color: #B85C5C; }
  .sb-cat-help         { color: #4A6080; border-left-color: #4A6080; }
  .sb-cat-living       { color: #4A8F5A; border-left-color: #4A8F5A; }
  .sb-cat-comorbid     { color: #C8813A; border-left-color: #C8813A; }
  .sb-cat-research     { color: #7B6EA0; border-left-color: #7B6EA0; }

  /* Links tinted by their category group */
  .sb-group-understanding .sb-link.active { border-left-color: #2A7B6F; background: rgba(42,123,111,0.08); color: #1a5a50; }
  .sb-group-human        .sb-link.active { border-left-color: #B85C5C; background: rgba(184,92,92,0.08); color: #8a3a3a; }
  .sb-group-help         .sb-link.active { border-left-color: #4A6080; background: rgba(74,96,128,0.08); color: #2e3f58; }
  .sb-group-living       .sb-link.active { border-left-color: #4A8F5A; background: rgba(74,143,90,0.08); color: #2e6038; }
  .sb-group-comorbid     .sb-link.active { border-left-color: #C8813A; background: rgba(200,129,58,0.08); color: #8a5020; }
  .sb-group-research     .sb-link.active { border-left-color: #7B6EA0; background: rgba(123,110,160,0.08); color: #4a3d70; }

  .sb-group-understanding .sb-link:hover { background: rgba(42,123,111,0.05); }
  .sb-group-human        .sb-link:hover { background: rgba(184,92,92,0.05); }
  .sb-group-help         .sb-link:hover { background: rgba(74,96,128,0.05); }
  .sb-group-living       .sb-link:hover { background: rgba(74,143,90,0.05); }
  .sb-group-comorbid     .sb-link:hover { background: rgba(200,129,58,0.05); }
  .sb-group-research     .sb-link:hover { background: rgba(123,110,160,0.05); }
  .sb-link {
    display: block;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 1.25rem 4px 1.5rem;
    line-height: 1.45;
    transition: color 0.15s, background 0.15s;
    border-left: 2px solid transparent;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .sb-link:hover { color: var(--ink); background: rgba(0,0,0,0.03); }
  .sb-link.active {
    color: var(--ink);
    font-weight: 500;
    border-left-color: var(--teal);
    background: var(--teal-light);
  }

  /* ── MAIN CONTENT area ── */
  .main-content {
    margin-left: 0;
    margin-top: 0;
    flex: 1;
    min-width: 0;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  /* ── TL;DR CARDS ── */
  .tldr {
    background: linear-gradient(135deg, #EAF4F2 0%, #F0F7F5 100%);
    border: 1px solid var(--teal-mid);
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    margin: 0 0 2.5rem;
  }
  .tldr-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.6rem;
    display: flex; align-items: center; gap: 0.4rem;
  }
  .tldr-label::before { content: '⚡'; font-size: 13px; }
  .tldr ul {
    margin: 0; padding-left: 1.1rem;
  }
  .tldr ul li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0.25rem;
    color: var(--ink);
  }
  .tldr ul li:last-child { margin-bottom: 0; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .sidebar {
      -webkit-transform: translateX(-100%);
      transform: translateX(-100%);
      top: 52px;
      z-index: 250;
    }
    .sidebar.open {
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }
    .page-shell { padding-top: 52px; }
    .main-content { margin-left: 0; margin-top: 0; }
    .topbar-toggle { display: block; }
    .sidebar-logo { display: none; }
    .top-nav-bar { display: none; }
    .hero {
      min-height: 0;
      padding: 4rem 1.5rem 3rem;
    }
    section { padding: 3rem 1.5rem; }
  }
  /* HERO */
  .hero {
    min-height: 500px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 6rem 4rem 5rem;
    background: var(--ink);
    position: relative;
    overflow: hidden;
  }
  @media (min-height: 700px) and (min-width: 901px) {
    .hero { min-height: 82vh; }
  }
  .hero-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(42,123,111,0.25) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(61,82,102,0.3) 0%, transparent 50%),
                      radial-gradient(circle at 50% 50%, rgba(200,129,58,0.08) 0%, transparent 70%);
  }
  .hero-tag {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-mid);
    margin-bottom: 1.5rem;
    position: relative;
  }
  .hero h1 {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.08;
    color: var(--cream);
    position: relative;
    max-width: 900px;
    margin-bottom: 2rem;
  }
  .hero h1 em {
    font-style: italic;
    color: #A8D4CE;
  }
  .hero-sub {
    font-size: 1.05rem;
    color: rgba(247,243,236,0.65);
    max-width: 560px;
    line-height: 1.7;
    position: relative;
    margin-bottom: 2.5rem;
  }
  .hero-chips {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    position: relative;
  }
  .chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(247,243,236,0.7);
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 0.02em;
  }
  .chip-link {
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .chip-link:hover {
    background: rgba(42,123,111,0.35);
    border-color: rgba(42,123,111,0.6);
    color: #9FE1CB;
  }
  /* SECTIONS */
  section { padding: 5rem 4rem; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
  section:last-child { border-bottom: none; }
  .section-label {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 1rem;
  }
  h2 {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  h3 {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  .lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.75;
  }
  p { margin-bottom: 1rem; color: var(--ink); }
  p:last-child { margin-bottom: 0; }
  /* CALLOUT */
  .callout {
    background: var(--teal-light);
    border-left: 3px solid var(--teal);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-size: 15px;
    line-height: 1.65;
  }
  .callout.warn {
    background: var(--amber-light);
    border-color: var(--amber);
  }
  .callout.danger {
    background: var(--rose-light);
    border-color: var(--rose);
  }
  .callout strong {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  /* GRID */
  .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
  .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
  /* CARDS */
  .card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
  }
  .card-teal { background: var(--teal-light); border-color: var(--teal-mid); }
  .card-amber { background: var(--amber-light); border-color: rgba(200,129,58,0.25); }
  .card-rose { background: var(--rose-light); border-color: rgba(184,92,92,0.25); }
  .card-slate { background: var(--slate-light); border-color: rgba(61,82,102,0.2); }
  .card-tag {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.6rem;
  }



  /* ADA: visible focus indicators */
  :focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
    border-radius: 2px;
  }
  button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
  }
  .skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--teal);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    font-size: 14px;
    border-radius: 0 0 4px 0;
    text-decoration: none;
    transition: top 0.2s;
  }
  .skip-link:focus { top: 0; }

  /* Table of Contents */
  .toc-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--teal);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.07);
    padding: 1.75rem 1.75rem 1.25rem;
    max-width: 820px;
    margin: 0 auto;
  }
  .toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
  }
  .toc-chapter-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
  }
  .toc-num {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    padding: 0.1rem 0.42rem;
    border-radius: 3px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
    line-height: 1.6;
  }
  .toc-chapter-name {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }
  .toc-chapter-items {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
  .toc-item {
    font-size: 13px;
    color: var(--foreground);
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  }
  .toc-item::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    transition: opacity 0.15s, transform 0.15s;
  }
  .toc-item:hover {
    color: var(--teal);
    background: var(--teal-light);
    border-color: var(--teal-mid);
    transform: translateX(2px);
  }
  .toc-item:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232A7B6F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    opacity: 1;
    transform: translateX(2px);
  }
  .toc-continues {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .toc-continues-arrow {
    animation: toc-bounce 1.4s ease-in-out infinite;
  }
  @keyframes toc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
  }
  @media (max-width: 640px) {
    .toc-grid { grid-template-columns: 1fr; gap: 1.1rem; }
    .toc-wrap { padding: 1.25rem 1rem 1rem; }
  }

  /* Personalized printout questionnaire */
  .printout-group {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
  }
  .printout-q {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--foreground);
  }
  .printout-hint {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 1rem;
    font-style: italic;
  }
  .printout-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
  }
  .printout-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    cursor: pointer;
    background: var(--surface);
    transition: border-color 0.15s, background 0.15s;
  }
  .printout-label:hover {
    border-color: var(--teal);
    background: rgba(42,123,111,0.04);
  }
  .printout-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
    cursor: pointer;
  }
  .printout-label input:checked + .printout-option-title {
    color: var(--teal);
  }
  .printout-label:has(input:checked) {
    border-color: var(--teal);
    background: rgba(42,123,111,0.06);
  }
  .printout-option-title {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 0.25rem;
    color: var(--foreground);
    transition: color 0.15s;
  }
  .printout-option-desc {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
  }
  @media (max-width: 600px) {
    .printout-options-grid { grid-template-columns: 1fr; }
  }

  /* ── Top Navigation Bar (dropdown) ─────────────────────────── */
  .top-nav-bar {
    position: fixed; top: 52px; left: 0; right: 0;
    height: 40px;
    z-index: 201;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: visible;
  }
  .top-nav-inner {
    display: flex; align-items: center;
    padding: 0 0.5rem 0 0.5rem;
    height: 40px;
    overflow: visible;
  }
  .top-nav-inner::-webkit-scrollbar { display: none; }
  .top-nav-item { position: relative; height: 40px; display: flex; align-items: center; }
  .top-nav-cat {
    background: none; border: none; border-right: 1px solid var(--border);
    font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
    color: var(--muted); padding: 0 0.8rem; height: 40px;
    cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 0.25rem;
    letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.15s, background 0.15s;
  }
  .top-nav-cat-teal:hover, .top-nav-cat-teal.open { color: var(--teal); background: rgba(42,123,111,0.07); }
  .top-nav-cat-rose:hover, .top-nav-cat-rose.open { color: var(--rose); background: rgba(184,92,92,0.07); }
  .top-nav-cat-slate:hover, .top-nav-cat-slate.open { color: var(--slate); background: rgba(61,82,102,0.07); }
  .top-nav-cat-green:hover, .top-nav-cat-green.open { color: #4a7c59; background: rgba(74,124,89,0.07); }
  .top-nav-cat-amber:hover, .top-nav-cat-amber.open { color: var(--amber); background: rgba(200,129,58,0.07); }
  .top-nav-cat-purple:hover, .top-nav-cat-purple.open { color: #7c5cbf; background: rgba(124,92,191,0.07); }
  .top-nav-arrow { font-size: 7px; display: inline-block; transition: transform 0.15s; }
  .top-nav-cat.open .top-nav-arrow { transform: rotate(180deg); }
  .top-nav-dropdown {
    display: none; position: absolute; top: 40px; left: 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: 0 6px 6px 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    min-width: 190px; z-index: 300; padding: 0.35rem 0;
  }
  .top-nav-sublink {
    display: block; padding: 0.45rem 1rem;
    font-size: 13px; color: var(--foreground);
    text-decoration: none; white-space: nowrap;
    transition: background 0.1s, color 0.1s;
  }
  .top-nav-sublink:hover { background: rgba(42,123,111,0.07); color: var(--teal); }
  .top-nav-sublink-printout {
    background: linear-gradient(135deg,#F5A623 0%,#E07B10 100%);
    color: #1A1612;
    font-weight: 700;
    margin: 0.4rem 0.4rem 0.15rem;
    border-radius: 5px;
    padding: 0.4rem 0.75rem;
    font-size: 12.5px;
  }
  .top-nav-sublink.top-nav-sublink-printout:hover {
    background: linear-gradient(135deg,#F8C258 0%,#F5A623 100%);
    color: #1A1612;
  }
  .top-nav-search { margin-left: auto; padding: 0 0.6rem; position: relative; flex-shrink: 0; }
  #topNavSearchInput {
    padding: 0.35rem 0.75rem; border: 1px solid var(--border);
    border-radius: 20px; font-size: 13px; font-family: var(--font-body);
    background: #fff; width: 180px; outline: none;
    transition: border-color 0.15s, width 0.2s;
  }
  #topNavSearchInput:focus { border-color: var(--teal); width: 240px; }
  .top-nav-results {
    position: absolute; top: calc(100% + 4px); right: 0.6rem;
    width: 340px; max-height: 380px; overflow-y: auto;
    background: #fff; border: 1px solid var(--border);
    border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    display: none; z-index: 301;
  }
  @media (max-width: 900px) {
    .top-nav-inner { padding-left: 0.25rem; }
    #topNavSearchInput { width: 120px; }
    #topNavSearchInput:focus { width: 160px; }
  }

  .printout-label input[type="radio"] {
    margin-top: 2px; flex-shrink: 0;
    width: 16px; height: 16px;
    accent-color: var(--teal); cursor: pointer;
  }
  .printout-label:has(input[type="radio"]:checked) {
    border-color: var(--teal);
    background: rgba(42,123,111,0.06);
  }
  .printout-label input[type="radio"]:checked + .printout-option-title {
    color: var(--teal);
  }
  /* Return to top button */
  #return-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 1000;
    transition: opacity 0.2s, background 0.2s;
    aria-label: "Return to top";
  }
  #return-top:hover { background: var(--teal-dark, #1a6b62); }
  #return-top.visible { display: flex; }
  @media (max-width: 600px) {
    #return-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 18px; }
  }
  /* SYMPTOM TABS */
  .tab-bar {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-bottom: 2rem;
  }
  .tab-btn {
    background: none; border: 1px solid var(--border);
    font-family: var(--font-body); font-size: 13px;
    color: var(--muted); cursor: pointer;
    padding: 6px 16px; border-radius: 100px;
    transition: all 0.2s;
    font-weight: 400;
  
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .tab-btn.active, .tab-btn:hover {
    background: var(--teal); border-color: var(--teal);
    color: #fff;
  }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }
  /* ACCORDION */
  details {
    border-bottom: 1px solid var(--border);
  }
  details:first-child { border-top: 1px solid var(--border); }
  summary {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 400;
    padding: 1.1rem 0;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    list-style: none;
    color: var(--ink);
  }
  summary::-webkit-details-marker { display: none; }
  summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--teal);
    flex-shrink: 0;
    margin-left: 1rem;
  }
  details[open] summary::after { content: '−'; }
  .details-body {
    padding: 0.25rem 0 1.5rem;
    color: var(--ink);
  }
  /* PRO/CON */
  .pro-con {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    margin-top: 1rem;
  }
  .pros, .cons {
    border-radius: 8px;
    padding: 1rem 1.1rem;
    font-size: 14px;
    line-height: 1.65;
  }
  .pros { background: #EEF7F4; }
  .cons { background: #FAF0EE; }
  .pros strong { color: #2A7B6F; display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
  .cons strong { color: #B85C5C; display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
  ul.bullets { padding-left: 1.1rem; }
  ul.bullets li { margin-bottom: 0.4rem; font-size: 14.5px; }
  /* TIMELINE */
  .timeline { position: relative; padding-left: 2rem; margin: 1.5rem 0; }
  .timeline::before {
    content: ''; position: absolute; left: 0.45rem; top: 0.5rem; bottom: 0.5rem;
    width: 2px; background: var(--teal-mid);
  }
  .timeline-item { position: relative; margin-bottom: 1.5rem; }
  .timeline-item::before {
    content: ''; position: absolute; left: -1.6rem; top: 0.45rem;
    width: 10px; height: 10px;
    border-radius: 50%; background: var(--teal);
  }
  .timeline-item h4 { font-weight: 500; font-size: 15px; margin-bottom: 0.25rem; }
  .timeline-item p { font-size: 14px; color: var(--muted); margin: 0; }
  /* STAT STRIP */
  .stat-strip {
    background: var(--ink);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 3rem 4rem;
    gap: 0;
  }
  .stat-item {
    padding: 1rem 2rem 1rem 0;
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  .stat-item:last-child { border-right: none; padding-right: 0; }
  .stat-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 300;
    color: #A8D4CE;
    line-height: 1;
    margin-bottom: 0.4rem;
  }
  .stat-label { font-size: 13px; color: rgba(247,243,236,0.55); line-height: 1.45; }
  /* BADGE */
  .badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  .badge-teal { background: var(--teal-mid); color: #1B5850; }
  .badge-amber { background: #F4D9B8; color: #7A4B18; }
  .badge-rose { background: #F0CCCC; color: #7A2D2D; }
  .badge-slate { background: #C8D6E2; color: #243140; }
  .badge-neutral { background: #E2DED8; color: #4A443D; }
  /* TABLE */
  table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1.5rem 0; }
  th {
    text-align: left; padding: 0.65rem 1rem;
    background: var(--ink); color: var(--cream);
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  }
  td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
  tr:last-child td { border-bottom: none; }
  tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
  /* QUOTE */
  blockquote {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    border-left: 3px solid var(--teal);
    padding: 0.75rem 1.5rem;
    color: var(--muted);
    margin: 2rem 0;
    line-height: 1.7;
  }
  blockquote cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-top: 0.5rem;
  }
  /* POLICY MODALS */
  .policy-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem 1rem;
  }
  .policy-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
  .policy-box {
    background: #fff;
    border-radius: 10px;
    max-width: 780px;
    width: 100%;
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    margin: auto;
    font-size: 14px;
    line-height: 1.75;
    color: #1a1a1a;
  }
  .policy-box h1 { font-size: 1.3rem; color: #2a7b6f; margin: 0 0 0.25rem; }
  .policy-box .policy-date { font-size: 12px; color: #888; margin-bottom: 1.5rem; }
  .policy-box h2 { font-size: 1rem; color: #1a1a1a; margin: 1.5rem 0 0.4rem; }
  .policy-box p { margin: 0 0 0.8rem; }
  .policy-box ul { margin: 0 0 0.8rem; padding-left: 1.4rem; }
  .policy-box li { margin-bottom: 0.35rem; }
  .policy-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: #666; line-height: 1;
  }
  .policy-close:hover { color: #2a7b6f; }
  .footer-links { margin-top: 1rem; font-size: 12.5px; }
  .footer-links a { color: rgba(247,243,236,0.6); text-decoration: underline; margin-right: 1rem; cursor: pointer; }
  .footer-links a:hover { color: var(--cream); }

  /* FOOTER */
  footer {
    background: var(--ink);
    color: rgba(247,243,236,0.5);
    padding: 3rem 4rem;
    font-size: 13.5px;
    line-height: 1.8;
  }
  footer strong { color: var(--cream); display: block; margin-bottom: 0.5rem; }
  /* TABLE SCROLL WRAPPER */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 6px;
  }
  .table-wrap table { margin: 0; }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    section, .stat-strip, footer { padding: 3rem 1.5rem; }
    .hero { padding: 3rem 1.5rem 3.5rem; }
    .pro-con { grid-template-columns: 1fr; }
    table { font-size: 13px; }
    th, td { padding: 0.5rem 0.75rem; }
  }
  @media (max-width: 600px) {
    .table-wrap { border-radius: 4px; }
    .table-wrap table { min-width: 460px; font-size: 12.5px; }
    .table-wrap th, .table-wrap td { padding: 0.4rem 0.6rem; }
  }
  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero h1, .hero-sub, .hero-tag { animation: fadeUp 0.7s ease both; }
  .hero-sub { animation-delay: 0.1s; }
  .hero-chips { animation: fadeUp 0.7s 0.2s ease both; }
  /* CONDITION OVERLAP */
  .overlap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
  }
  .overlap-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .overlap-head {
    padding: 1rem 1.25rem 0.75rem;
    display: flex; align-items: center; gap: 0.75rem;
  }
  .overlap-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
  }
  .overlap-body { padding: 0 1.25rem 1.25rem; font-size: 14.5px; line-height: 1.7; }
  .overlap-body ul { padding-left: 1rem; margin-top: 0.5rem; }
  .overlap-body li { margin-bottom: 0.3rem; }

  /* ── SEARCH ── */
  .search-wrap {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .search-input {
    width: 100%;
    background: var(--teal-light);
    border: 1px solid var(--teal-mid);
    border-radius: 8px;
    padding: 7px 32px 7px 10px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
  }
  .search-input::placeholder { color: var(--muted); }
  .search-input:focus { border-color: var(--teal); }
  .search-clear {
    position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 16px; padding: 2px;
    display: none; line-height: 1;
  }
  .search-results-panel {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: none;
  }
  .search-result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.1s;
  }
  .search-result-item:last-child { border-bottom: none; }
  .search-result-item:hover { background: var(--teal-light); }
  .sr-section {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 2px;
  }
  .sr-snippet {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .sr-snippet mark {
    background: rgba(42,123,111,0.18);
    color: var(--ink);
    border-radius: 2px;
    padding: 0 1px;
  }
  .search-no-results {
    padding: 14px; font-size: 13px; color: var(--muted); text-align: center;
  }
  .search-count {
    font-size: 11px;
    color: var(--muted);
    padding: 6px 14px 2px;
    border-bottom: 1px solid var(--border);
  }
  /* Highlight active search matches in page */
  .search-highlight {
    background: rgba(42,123,111,0.12);
    border-radius: 6px;
    padding: 4px 2px;
    outline: 2px solid rgba(42,123,111,0.5);
    transition: outline 0.3s;
  }
  .search-mark {
    background: rgba(255,200,50,0.45);
    border-radius: 2px;
    padding: 0 1px;
    font-weight: inherit;
  }
  .topbar-search {
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
    position: relative;
  }
  @media (max-width: 900px) {
    .topbar-search { display: none; }
  }
  .topbar-search-input {
    width: 100%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 32px 6px 14px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--cream);
    outline: none;
    transition: background 0.15s, border-color 0.15s;
  }
  .topbar-search-input::placeholder { color: rgba(247,243,236,0.45); }
  .topbar-search-input:focus {
    background: rgba(255,255,255,0.18);
    border-color: rgba(168,212,206,0.6);
  }
  .topbar-search-icon {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    color: rgba(247,243,236,0.4); font-size: 13px; pointer-events: none;
  }

  /* Android-specific fixes */
  html { overscroll-behavior-y: contain; }
  body { overscroll-behavior-y: auto; touch-action: pan-y; }
  .chip-link, .tab-btn, summary {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  /* Ensure text doesn't get cut off on small Android screens */
  @media (max-width: 400px) {
    section { padding: 2rem 1rem; }
    .hero { padding: 3rem 1rem 2rem; }
    h2 { font-size: 1.6rem; }
  }


  /* Print styles for personalized printout */
  @media print {
    .sidebar, .topbar, #return-top, .skip-link, nav, button:not(.print-only) { display: none !important; }
    .main-content { margin-left: 0 !important; }
    #printout-preview { border: none !important; padding: 0 !important; display: block !important; }
    body { font-size: 12pt; }
    h1 { font-size: 18pt; } h2 { font-size: 14pt; } h3 { font-size: 12pt; }
    a { color: inherit; text-decoration: none; }
    .no-print { display: none !important; }
  }

  /* iOS zoom prevention: all inputs must be >= 16px */
  input[type="text"], input[type="search"], input[type="email"],
  input[type="tel"], textarea, select {
    font-size: 16px !important;
  }



  /* ── multi-page additions ─────────────────────────────────────── */
  .landing-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:1rem; max-width:960px; }
  .landing-card { display:flex; flex-direction:column; background:var(--surface);
    border:1px solid var(--border); border-radius:12px; padding:1.15rem 1.25rem 1.1rem;
    text-decoration:none; color:inherit; transition:border-color .15s, box-shadow .15s; }
  .landing-card:hover { border-color:var(--teal);
    box-shadow:0 4px 16px rgba(42,123,111,.10); }
  .landing-card-title { font-family:var(--font-head); font-size:1.08rem; font-weight:400;
    color:var(--teal); line-height:1.25; margin-bottom:.3rem; }
  .landing-card-blurb { font-size:12.5px; line-height:1.5; color:var(--muted);
    margin-bottom:.7rem; }
  .landing-card-list { list-style:none; margin:auto 0 0; padding:.65rem 0 0;
    border-top:1px solid var(--border); }
  .landing-card-list li { font-size:12.5px; line-height:1.7; color:var(--ink);
    opacity:.75; position:relative; padding-left:.85rem; }
  .landing-card-list li::before { content:''; position:absolute; left:0; top:.62em;
    width:4px; height:1px; background:var(--teal); opacity:.6; }
  .landing-grid { display:grid; grid-template-columns:repeat(3,1fr);
    gap:1rem; max-width:960px; align-items:stretch; }
  @media (max-width:900px){ .landing-grid { grid-template-columns:repeat(2,1fr); } }
  @media (max-width:600px){ .landing-grid { grid-template-columns:1fr; } }
  .page-head { max-width:960px; margin:0 auto; padding:2.75rem 1.5rem 0; }
  .page-head h1 { font-family:var(--font-head); font-size:2.1rem; font-weight:400;
    line-height:1.15; margin-bottom:.6rem; }
  .page-intro { font-size:1.02rem; line-height:1.7; color:var(--muted);
    max-width:960px; margin:0 auto 1.5rem; padding:0 1.5rem; }
  .page-intro > * { max-width:680px; }
  .onthispage { max-width:960px; margin:0 auto 1rem; padding:0 1.5rem;
    display:flex; flex-wrap:wrap; align-items:baseline; gap:.55rem;
    font-size:13.5px; }
  .onthispage-label { font-size:10.5px; font-weight:700; letter-spacing:.1em;
    text-transform:uppercase; color:var(--muted); margin-right:.15rem; }
  .onthispage a { color:var(--teal); text-decoration:none;
    border-bottom:1px solid transparent; padding-bottom:1px; }
  .onthispage a:hover { border-bottom-color:var(--teal); }
  .onthispage-sep { color:var(--border); }
  /* first section on an inner page sits right under the intro */
  .page-head ~ section:first-of-type,
  .onthispage + section { padding-top:1.5rem; }
  /* keep the top nav from overflowing — 7 groups + CTA is a wide row */
  .top-nav-inner { max-width:1600px; margin:0 auto; }
  .top-nav-cat { padding:0 0.62rem !important; font-size:11px !important; }
  .top-nav-search { min-width:0; flex-shrink:1; }
  #topNavSearchInput { max-width:100%; width:150px; }
  @media (max-width:1460px){ .top-nav-search { display:none; } }
  @media (max-width:1240px){
    .top-nav-inner { overflow-x:auto; -webkit-overflow-scrolling:touch;
      scrollbar-width:none; }
    .top-nav-inner::-webkit-scrollbar { display:none; }
  }
  /* an <h2> promoted to <h1> on single-section pages keeps the section look */
  main section > h1 { font-family:var(--font-head); font-size:2.05rem; font-weight:400;
    line-height:1.2; margin-bottom:.75rem; letter-spacing:-0.01em; }
  .section-intro-line { font-size:1.02rem; line-height:1.7; color:var(--muted);
    max-width:680px; margin-bottom:1.5rem; }
  .crumbs { max-width:960px; margin:0 auto; padding:1.25rem 1.5rem 0;
    font-size:12.5px; color:var(--muted); display:flex; gap:.5rem; align-items:center; }
  .crumbs a { color:var(--teal); text-decoration:none; font-weight:600; }
  .crumbs a:hover { text-decoration:underline; }
  .crumbs span[aria-hidden] { opacity:.4; }
  .top-nav-cat-factsheet { background:linear-gradient(135deg,#2a7b6f,#1A5276);
    color:#fff !important; border-radius:6px; font-weight:800; }
  .top-nav-cat-factsheet .top-nav-arrow { color:rgba(255,255,255,.8); }
  .top-nav-cat-factsheet:hover { filter:brightness(1.08); }

  /* 6 headline stats read better as an even 3 x 2 than an orphaned 4 + 2 */
  .stat-strip { grid-template-columns:repeat(3,1fr); padding:2.75rem 3rem; }
  @media (max-width:900px){ .stat-strip { grid-template-columns:repeat(2,1fr);
    padding:2.25rem 2rem; } }
  @media (max-width:560px){ .stat-strip { grid-template-columns:1fr; } }

  /* About page + policy dialog classes (previously inline-styled only) */
  .about-section { max-width:760px; margin:0 auto 3rem; padding:2.5rem 2rem;
    background:var(--surface); border:1px solid var(--border); border-radius:14px; }
  .about-section p { margin-bottom:1.1rem; line-height:1.75; }
  .about-tagline { font-size:.95rem; color:var(--muted); font-style:italic;
    margin-bottom:1.75rem; }
  .about-contact { display:inline-flex; align-items:center; gap:.4rem; margin-top:.75rem;
    padding:.55rem 1.1rem; background:var(--teal); color:#fff; border-radius:7px;
    font-size:.875rem; font-weight:600; text-decoration:none; }
  .about-contact:hover { background:#1a5c52; }
  .policy-title { font-family:var(--font-head); font-size:1.5rem; font-weight:400;
    margin-bottom:.25rem; }
  @media (max-width:640px){ .about-section { padding:1.5rem 1.1rem; } }

  /* -- Continue reading -- */
  .related-pages { max-width:960px; margin:3rem auto 0; padding:2rem 1.5rem 3.5rem;
    border-top:1px solid var(--border); }
  .related-heading { font-family:var(--font-body); font-size:11.5px; font-weight:700;
    letter-spacing:.1em; text-transform:uppercase; color:var(--muted);
    margin-bottom:1.25rem; }
  .rel-grid { display:grid; grid-template-columns:repeat(2,1fr);
    column-gap:2.5rem; row-gap:0; }
  .rel-item { display:block; padding:1.05rem 0; text-decoration:none; color:inherit;
    border-top:1px solid var(--border); }
  .rel-grid > .rel-item:nth-child(1),
  .rel-grid > .rel-item:nth-child(2) { border-top:none; padding-top:0; }
  .rel-item-title { display:flex; align-items:baseline; gap:.4rem;
    font-family:var(--font-head); font-size:1.06rem; font-weight:400;
    color:var(--teal); line-height:1.3; }
  .rel-item-arrow { font-size:.85em; opacity:0; transform:translateX(-4px);
    transition:opacity .18s ease, transform .18s ease; }
  .rel-item:hover .rel-item-title { color:#1a5c52; }
  .rel-item:hover .rel-item-arrow { opacity:1; transform:translateX(0); }
  .rel-item-blurb { display:block; margin-top:.25rem; font-size:13.5px;
    line-height:1.55; color:var(--muted); }
  @media (max-width:640px){
    .rel-grid { grid-template-columns:1fr; }
    .rel-grid > .rel-item:nth-child(2) { border-top:1px solid var(--border);
      padding-top:1.05rem; }
  }

  .top-nav-sublink.active, .sb-link.active { font-weight:700; color:var(--teal); }
  .sb-group { margin-bottom:.5rem; }
  @media (max-width:640px){ .page-head h1 { font-size:1.6rem; } }
