/* Migrated verbatim from the original guide. Colour, radius and type now
   resolve through the legacy bridge in tokens.css, so this file is
   theme-aware without edits. */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    

    html { scroll-behavior: smooth; scroll-padding-top: 80px; }
    body {
      font-family: var(--font-body);
      color: var(--charcoal);
      background: var(--cream);
      line-height: 1.6;
      font-size: 16px;
      min-height: 100vh;
      background: var(--surface);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }

    .container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

    /* HERO */
    .hero { padding: 96px 0 76px; text-align: center; }
    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 9px;
      font-size:14px; letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--primary); font-weight: 600;
      margin-bottom: 24px; padding: 7px 16px;
      background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
      box-shadow: var(--shadow-xs);
    }
    .hero-eyebrow::before {
      content: ''; display: inline-block;
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--coral); animation: pulse 2.4s ease-in-out infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.6; transform: scale(1.25); }
    }
    .hero h1 {
      font-family: var(--font-display); font-weight: 500;
      font-size: clamp(38px, 6vw, 64px);
      letter-spacing: -0.025em; color: var(--primary-deep);
      margin-bottom: 24px; line-height: 1.05;
      font-variation-settings: 'opsz' 60;
    }
    .hero h1 .accent { font-style: italic; color: var(--coral); font-weight: 400; }
    .hero-sub {
      font-size: clamp(16px, 1.8vw, 19px);
      color: var(--text-soft); max-width: 700px;
      margin: 0 auto 28px; line-height: 1.6;
    }
    .hero-meta {
      display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
      margin-top: 28px; font-size:14px;
      color: var(--text-faint); letter-spacing: 0.04em;
    }
    .hero-meta span { display: flex; align-items: center; gap: 8px; }
    .hero-meta span::before { content: '·'; color: var(--border-strong); font-size: 20px; }
    .hero-meta span:first-child::before { display: none; }

    /* STICKY TOC */
    .toc-nav {
      position: sticky; top: 0; z-index: 50;
      background: rgba(251, 248, 243, 0.94);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
    }
    .toc-inner {
      max-width: 1180px; margin: 0 auto; padding: 13px 28px;
      display: flex; gap: 6px; overflow-x: auto;
      scrollbar-width: thin; -webkit-overflow-scrolling: touch;
    }
    .toc-inner::-webkit-scrollbar { height: 4px; }
    .toc-inner::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
    .toc-link {
      flex-shrink: 0; padding: 8px 14px; font-size:14px; font-weight: 500;
      color: var(--text-soft); text-decoration: none; border-radius: 18px;
      transition: all 0.2s ease; white-space: nowrap;
    }
    .toc-link:hover { background: var(--cream-deep); color: var(--primary); }
    .toc-divider {
      flex-shrink: 0;
      color: var(--border-strong);
      font-size: 14px;
      padding: 0 2px;
      user-select: none;
      pointer-events: none;
    }
    .toc-link-doctors {
      color: var(--primary-deep);
      font-weight: 600;
    }
    .toc-link-doctors:hover {
      background: var(--primary-pale);
      color: var(--primary-deep);
    }

    /* SECTIONS — generous spacing + dividers */
    section { padding: 144px 0; scroll-margin-top: 80px; position: relative; margin: 0; }
    section + section { border-top: 1px solid var(--border); }
    section + section::before {
      content: ''; position: absolute; top: -8px; left: 50%;
      transform: translateX(-50%); width: 16px; height: 16px;
      background: var(--cream); border: 1px solid var(--border-strong); border-radius: 50%;
      box-shadow: 0 0 0 6px var(--cream);
    }
    section + section::after {
      content: ''; position: absolute; top: 0; left: 50%;
      transform: translateX(-50%); width: 60px; height: 1px;
      background: var(--border-strong); margin-top: -1px;
    }

    .section-head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 48px; }
    .section-num {
      flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
      width: 46px; height: 46px; border-radius: 50%;
      background: var(--primary); color: var(--cream);
      font-family: var(--font-display); font-size: 19px; font-weight: 600;
      box-shadow: 0 2px 8px rgba(10, 79, 91, 0.25);
    }
    .section-num-coral { background: var(--coral); }
    .section-num-sage { background: var(--sage); }
    .section-num-amber { background: var(--gold); color: white; }
    .section-head-text { flex: 1; padding-top: 4px; }
    .section-title {
      font-family: var(--font-display); font-weight: 600;
      font-size: clamp(26px, 3.4vw, 36px); color: var(--charcoal);
      letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px;
      font-variation-settings: 'opsz' 36;
    }
    .section-subtitle {
      font-size: 15px; color: var(--text-soft);
      max-width: 720px; line-height: 1.6;
    }

    /* CONTEXT CARDS */
    .context-intro {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 5px solid var(--primary);
      border-radius: var(--radius-lg);
      padding: 36px;
      margin-bottom: 28px;
      box-shadow: var(--shadow);
    }
    .context-intro h3 {
      font-family: var(--font-display);
      font-size: 24px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 14px;
      letter-spacing: -0.015em; line-height: 1.25;
    }
    .context-intro p {
      font-size: 14.5px; color: var(--text-soft);
      line-height: 1.7; margin-bottom: 12px; max-width: 880px;
    }
    .context-intro p:last-child { margin-bottom: 0; }
    .context-intro strong { color: var(--charcoal); font-weight: 600; }

    .context-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
    .context-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 32px; box-shadow: var(--shadow);
    }
    .context-card.featured {
      background: var(--surface);
      border-left: 4px solid var(--coral);
    }
    .context-card h3 {
      font-family: var(--font-display); font-weight: 600; font-size: 22px;
      color: var(--primary-deep); margin-bottom: 16px;
      line-height: 1.3; letter-spacing: -0.015em;
    }
    .context-card p { font-size: 14.5px; color: var(--text-soft); margin-bottom: 14px; line-height: 1.65; }
    .context-card p:last-child { margin-bottom: 0; }
    .context-card strong { color: var(--charcoal); font-weight: 600; }

    /* ===== Insulin / "seed & soil" explainer (Section 1) ===== */
    .insulin-explainer {
      background: var(--surface);
      border: 1px solid var(--border); border-left: 5px solid var(--coral);
      border-radius: var(--radius-lg); padding: 32px; margin-top: 28px;
      box-shadow: var(--shadow-sm);
    }
    .insulin-explainer .ie-eyebrow {
      display: inline-block; font-size:14px; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; color: var(--coral-deep);
      background: var(--surface); border: 1px solid var(--coral-soft);
      padding: 4px 10px; border-radius: 20px; margin-bottom: 14px;
    }
    .insulin-explainer h3 {
      font-family: var(--font-display); font-weight: 700; font-size: 23px;
      color: var(--primary-deep); line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 14px;
    }
    .insulin-explainer > p { font-size: 15px; color: var(--text-soft); line-height: 1.7; margin-bottom: 14px; }
    .insulin-explainer > p strong { color: var(--charcoal); font-weight: 600; }
    .insulin-explainer > p em { color: var(--coral-deep); font-style: italic; }
    .insulin-explainer a { color: var(--coral-deep); font-weight: 600; border-bottom: 1px solid currentColor; }
    .ie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 22px 0; }
    .ie-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
    .ie-card .ie-num {
      font-family: var(--font-display); font-weight: 700; font-size:14px;
      color: var(--coral-deep); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px;
    }
    .ie-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--charcoal); margin-bottom: 6px; line-height: 1.3; }
    .ie-card p { font-size:14px; color: var(--text-soft); line-height: 1.6; }
    .ie-card p strong { color: var(--charcoal); font-weight: 600; }
    .ie-synthesis {
      background: var(--surface);
      color: #eaf3f5; border-radius: var(--radius-sm); padding: 20px 24px; margin: 22px 0 0;
      font-size: 14.5px; line-height: 1.65;
    }
    .ie-synthesis strong { color: #fff; font-weight: 700; }
    .ie-synthesis a { color: #ffe0d8; font-weight: 600; border-bottom: 1px solid currentColor; }
    .ie-honesty {
      margin-top: 16px; font-size:14px; color: var(--text-soft); line-height: 1.6;
      background: var(--primary-pale); border-left: 3px solid var(--primary);
      padding: 14px 18px; border-radius: var(--radius-sm);
    }
    .ie-honesty strong { color: var(--primary-deep); font-weight: 700; }
    .ie-honesty a { color: var(--primary); font-weight: 600; border-bottom: 1px solid currentColor; }

    /* Essential blood tests panel — full width */
    .tests-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 36px;
      margin-top: 28px;
      box-shadow: var(--shadow);
    }
    .tests-panel-head {
      display: flex; align-items: flex-start; gap: 16px;
      margin-bottom: 24px; padding-bottom: 22px;
      border-bottom: 1px solid var(--border);
    }
    .tests-panel-head .icon {
      flex-shrink: 0; width: 42px; height: 42px;
      border-radius: 50%; background: var(--primary-pale);
      color: var(--primary); display: inline-flex;
      align-items: center; justify-content: center;
      font-size: 20px;
    }
    .tests-panel-head h3 {
      font-family: var(--font-display); font-size: 22px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 4px;
      letter-spacing: -0.015em;
    }
    .tests-panel-head p { font-size:14px; color: var(--text-soft); line-height: 1.55; max-width: 720px; }

    .tests-tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .tests-tier {
      padding: 22px;
      border-radius: var(--radius);
      background: var(--cream);
      border: 1px solid var(--border);
    }
    .tests-tier.t1 { background: var(--surface); border-left: 4px solid var(--coral); }
    .tests-tier.t2 { background: var(--surface); border-left: 4px solid var(--amber); }
    .tests-tier-head {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 6px;
    }
    .tests-tier-num {
      display: inline-flex; align-items: center; justify-content: center;
      width: 28px; height: 28px; border-radius: 50%;
      font-family: var(--font-display); font-size:14px; font-weight: 700;
      color: white;
    }
    .tests-tier.t1 .tests-tier-num { background: var(--coral); }
    .tests-tier.t2 .tests-tier-num { background: var(--amber); }
    .tests-tier h4 {
      font-family: var(--font-display); font-size: 17px; font-weight: 600;
      color: var(--charcoal); letter-spacing: -0.015em;
      line-height: 1.25;
    }
    .tests-tier .tier-subtitle {
      font-size:14px; color: var(--text-soft);
      font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
      margin-bottom: 14px; padding-left: 38px;
    }
    .tests-tier ul { list-style: none; }
    .tests-tier li {
      padding: 12px 0;
      border-bottom: 1px dashed var(--border);
      display: flex; gap: 12px; align-items: flex-start;
      font-size:14px; line-height: 1.55;
    }
    .tests-tier li:last-child { border-bottom: none; }
    .tests-tier li::before {
      content: ''; flex-shrink: 0;
      width: 6px; height: 6px;
      border-radius: 50%; margin-top: 7px;
    }
    .tests-tier.t1 li::before { background: var(--coral); }
    .tests-tier.t2 li::before { background: var(--amber); }
    .tests-tier .test-name {
      display: block; font-weight: 600; color: var(--charcoal);
      margin-bottom: 2px; font-size:14px;
    }
    .tests-tier .test-desc {
      display: block; font-size:14px;
      color: var(--text-soft); line-height: 1.55;
    }
    .tests-tier .essential-tag {
      display: inline-block; margin-left: 6px;
      font-size:14px; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; padding: 2px 7px;
      border-radius: 10px; vertical-align: middle;
    }
    .tests-tier.t1 .essential-tag { background: var(--coral); color: white; }
    .tests-tier.t2 .essential-tag { background: var(--amber); color: white; }
    .tests-tier .essential-tag.once { background: var(--plum); }
    .tests-tier .essential-tag.private { background: var(--primary); }

    .tier-access-note {
      margin-top: 18px;
      padding: 14px 18px;
      background: var(--cream);
      border: 1px dashed var(--border-strong);
      border-radius: var(--radius-sm);
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.6;
    }
    .tier-access-note strong { color: var(--charcoal); font-weight: 600; }
    .tier-access-note a { color: var(--primary); text-decoration: none; border-bottom: 1px solid currentColor; }

    .scan-list { list-style: none; margin-top: 14px; }
    .scan-list li {
      padding: 12px 0; border-bottom: 1px dashed var(--border);
      font-size: 14px; display: flex; gap: 12px; align-items: flex-start;
    }
    .scan-list li:last-child { border-bottom: none; }
    .scan-list li::before {
      content: ''; flex-shrink: 0; width: 7px; height: 7px;
      border-radius: 50%; background: var(--coral); margin-top: 7px;
    }
    .scan-list strong { color: var(--charcoal); display: block; margin-bottom: 3px; font-weight: 600; }
    .scan-list span { color: var(--text-soft); font-size:14px; }

    /* INPUT PANEL */
    .input-panel {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow);
    }
    .input-block { margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
    .input-block:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .input-block-header {
      display: flex; justify-content: space-between; align-items: flex-start;
      gap: 20px; margin-bottom: 18px; flex-wrap: wrap;
    }
    .input-block-header h4 {
      font-family: var(--font-display); font-size: 19px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 4px; letter-spacing: -0.01em;
    }
    .input-block-header p { font-size:14px; color: var(--text-soft); line-height: 1.55; max-width: 560px; }

    .segmented {
      display: inline-flex; background: var(--cream-deep);
      padding: 4px; border-radius: 100px; flex-wrap: wrap;
    }
    .seg-btn {
      padding: 9px 18px; font-size:14px; font-weight: 500;
      font-family: inherit; border: none; background: transparent;
      color: var(--text-soft); border-radius: 100px;
      cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
    }
    .seg-btn.active {
      background: var(--primary); color: white;
      box-shadow: 0 2px 8px rgba(10, 79, 91, 0.22);
    }

    /* SLIDERS */
    .slider-row {
      display: grid; grid-template-columns: 200px 1fr 150px;
      gap: 28px; align-items: center;
      padding: 20px 0; border-bottom: 1px solid var(--border);
    }
    .slider-row:last-child { border-bottom: none; }
    .slider-label { font-weight: 600; font-size: 15px; color: var(--charcoal); }
    .slider-label .hint {
      display: block; font-size:14px; color: var(--text-soft);
      font-weight: 400; margin-top: 4px;
    }
    .slider-label .slider-alt {
      display: block; font-size:14px; color: var(--text-faint);
      font-weight: 400; font-style: italic; margin-top: 2px;
    }
    .value-display .value-sub {
      display: block; font-size:14px; color: var(--text-soft);
      font-weight: 500; margin-top: 3px; letter-spacing: 0.01em;
    }
    .slider-wrap { position: relative; padding: 8px 0; }
    .slider {
      -webkit-appearance: none; appearance: none;
      width: 100%; height: 6px; border-radius: 3px;
      background: linear-gradient(to right, var(--sage-soft) 0%, var(--cream-deep) 100%);
      outline: none; cursor: pointer;
    }
    .slider::-webkit-slider-thumb {
      -webkit-appearance: none; appearance: none;
      width: 24px; height: 24px; border-radius: 50%;
      background: var(--primary); cursor: pointer;
      border: 3px solid white;
      box-shadow: 0 2px 10px rgba(10, 79, 91, 0.35);
      transition: transform 0.15s;
    }
    .slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
    .slider::-moz-range-thumb {
      width: 24px; height: 24px; border-radius: 50%;
      background: var(--primary); cursor: pointer;
      border: 3px solid white;
      box-shadow: 0 2px 10px rgba(10, 79, 91, 0.35);
    }
    .value-display { text-align: right; }
    .value-number {
      font-family: var(--font-display); font-size: 30px; font-weight: 600;
      color: var(--charcoal); line-height: 1;
      font-variation-settings: 'opsz' 30; letter-spacing: -0.02em;
    }
    .value-unit {
      display: inline-block; margin-left: 5px;
      font-family: var(--font-body); font-size:14px;
      color: var(--text-soft); font-weight: 400;
    }
    .risk-badge {
      display: inline-block; margin-top: 7px;
      padding: 4px 11px; border-radius: 12px;
      font-size:14px; letter-spacing: 0.1em; font-weight: 700; text-transform: uppercase;
    }
    .r-optimal { background: var(--sage-soft); color: var(--sage-deep); }
    .r-borderline { background: var(--amber-soft); color: var(--amber-deep); }
    .r-high { background: var(--coral-soft); color: var(--coral); }
    .r-low { background: var(--coral-soft); color: var(--coral); }

    /* COLLAPSIBLE MARKERS */
    .collapse {
      border: 1px solid var(--border); border-radius: var(--radius);
      overflow: hidden; background: var(--cream); margin-top: 8px;
    }
    .collapse-header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 18px 22px; cursor: pointer; user-select: none;
      transition: background 0.2s;
    }
    .collapse-header:hover { background: var(--cream-deep); }
    .collapse-header h4 {
      font-family: var(--font-display); font-size: 17px; font-weight: 600;
      color: var(--primary-deep); letter-spacing: -0.01em;
    }
    .collapse-header h4 small {
      display: block; font-family: var(--font-body); font-size:14px;
      color: var(--text-soft); font-weight: 400; margin-top: 3px;
    }
    .collapse-icon {
      width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
      color: var(--primary); transition: transform 0.25s;
    }
    .collapse.open .collapse-icon { transform: rotate(180deg); }
    .collapse-body { display: none; padding: 0 22px 24px; border-top: 1px solid var(--border); }
    .collapse.open .collapse-body { display: block; }

    .markers-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 18px; margin-top: 22px;
    }
    .marker-group-header {
      grid-column: 1 / -1;
      display: flex; align-items: center; gap: 14px;
      padding: 16px 0 8px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 4px;
    }
    .marker-group-header:first-child { padding-top: 4px; }
    .marker-group-header .group-num {
      display: inline-flex; align-items: center; justify-content: center;
      width: 28px; height: 28px; border-radius: 50%;
      background: var(--coral); color: white;
      font-family: var(--font-display); font-size:14px; font-weight: 700;
      flex-shrink: 0;
    }
    .marker-group-header.t2 .group-num { background: var(--amber); }
    .marker-group-header.t3 .group-num { background: var(--text-faint); }
    .marker-group-header .group-text { flex: 1; }
    .marker-group-header h5 {
      font-family: var(--font-display);
      font-size: 16px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 2px;
      letter-spacing: -0.01em;
    }
    .marker-group-header small {
      font-size:14px; color: var(--text-soft); font-weight: 400;
    }
    .marker-already-input {
      grid-column: 1 / -1;
      background: var(--cream-deep);
      border: 1px dashed var(--border-strong);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      font-size:14px; color: var(--text-soft);
      display: flex; align-items: center; gap: 10px;
    }
    .marker-already-input strong { color: var(--charcoal); font-weight: 600; }
    .marker-field { position: relative; }
    .marker-field label {
      display: block; font-size:14px; color: var(--text-soft);
      font-weight: 600; margin-bottom: 6px; letter-spacing: 0.02em;
    }
    .marker-field label .unit { color: var(--text-faint); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
    .marker-field label .marker-alt {
      display: block; font-size:14px; color: var(--text-faint);
      font-weight: 400; letter-spacing: 0; margin-top: 2px; font-style: italic;
    }
    .marker-field input {
      width: 100%; padding: 11px 14px;
      border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
      font-family: var(--font-body); font-size: 14.5px;
      background: var(--surface); color: var(--charcoal);
      transition: all 0.2s; font-variant-numeric: tabular-nums;
    }
    .marker-field input:focus {
      outline: none; border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(10, 79, 91, 0.12);
    }
    .marker-field input::placeholder { color: var(--text-faint); }

    .marker-field select {
      width: 100%;
      padding: 11px 36px 11px 14px;
      border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
      font-family: var(--font-body); font-size: 14.5px;
      background-color: var(--surface); color: var(--charcoal);
      transition: all 0.2s; cursor: pointer;
      appearance: none; -webkit-appearance: none; -moz-appearance: none;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5256' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 16px;
    }
    .marker-field select:focus {
      outline: none; border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(10, 79, 91, 0.12);
    }
    .marker-field select.unselected { color: var(--text-faint); }

    .marker-feedback {
      margin-top: 8px; padding: 10px 14px; border-radius: var(--radius-sm);
      font-size:14px; line-height: 1.55; display: none;
    }
    .marker-feedback.show { display: block; animation: fadeIn 0.25s ease; }
    .marker-feedback strong { display: block; margin-bottom: 3px; font-weight: 700; font-size:14px; letter-spacing: 0.08em; text-transform: uppercase; }
    .mfb-optimal { background: var(--sage-soft); color: var(--sage-deep); border-left: 3px solid var(--sage); }
    .mfb-borderline { background: var(--amber-soft); color: var(--amber-deep); border-left: 3px solid var(--amber); }
    .mfb-high { background: var(--coral-soft); color: var(--coral-deep); border-left: 3px solid var(--coral); }
    .mfb-low { background: var(--coral-soft); color: var(--coral-deep); border-left: 3px solid var(--coral); }

    .markers-note {
      background: var(--cream); border: 1px solid var(--border);
      border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 20px;
      font-size:14px; color: var(--text-soft); line-height: 1.6;
    }
    .markers-note strong { color: var(--charcoal); }

    /* CALCULATED VALUES */
    .calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
    .calc-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 28px; box-shadow: var(--shadow); transition: all 0.3s;
    }
    .calc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
    .calc-label {
      font-size:14px; text-transform: uppercase; letter-spacing: 0.12em;
      color: var(--text-soft); font-weight: 700; margin-bottom: 12px;
    }
    .calc-value {
      font-family: var(--font-display); font-size: 40px; font-weight: 600;
      color: var(--primary-deep); line-height: 1; margin-bottom: 14px;
      letter-spacing: -0.025em; font-variation-settings: 'opsz' 40;
    }
    .calc-value .unit {
      font-size: 14px; color: var(--text-soft);
      font-family: var(--font-body); font-weight: 400; margin-left: 5px;
    }
    .calc-info {
      font-size:14px; color: var(--text-soft); margin-top: 12px;
      padding-top: 12px; border-top: 1px dashed var(--border); line-height: 1.55;
    }

    /* LDL personalised-goals callout — sits between the calc-grid and the
       Integrated Risk card. Addresses a real gap: the calc-card bands show
       general-population thresholds (<2.6 = Optimal), but risk-stratified
       LDL goals from the 2026 ACC/AHA guideline are dramatically tighter
       for patients with established ASCVD, CAC ≥100, or diabetes with
       multiple risk factors. This callout makes that explicit so a user
       seeing "LDL 2.0 = Optimal" doesn't assume their personal goal is met. */
    .ldl-goals-note {
      background: var(--surface);
      border: 1px solid var(--primary-soft);
      border-left: 4px solid var(--primary);
      border-radius: var(--radius);
      padding: 22px 26px;
      margin-top: 22px;
      box-shadow: var(--shadow);
    }
    .ldl-goals-note .lgn-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }
    .ldl-goals-note h4 {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 600;
      color: var(--primary-deep);
      letter-spacing: -0.01em;
      margin: 0;
    }
    .ldl-goals-note .lgn-source {
      font-size:14px;
      color: var(--text-faint);
      font-style: italic;
      letter-spacing: 0.02em;
    }
    .ldl-goals-note > p {
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.65;
      margin-bottom: 14px;
    }
    .ldl-goals-note > p:last-child { margin-bottom: 0; }
    .ldl-goals-note strong { color: var(--charcoal); font-weight: 600; }
    .ldl-goals-note em { color: var(--charcoal); font-style: italic; }

    /* Three-tier risk-stratified goals table */
    .lgn-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
      margin: 14px 0 16px;
    }
    .lgn-tier {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 14px 16px;
    }
    .lgn-tier.tier-very-high { border-left: 4px solid var(--coral); }
    .lgn-tier.tier-high { border-left: 4px solid var(--amber); }
    .lgn-tier.tier-moderate { border-left: 4px solid var(--sage); }
    .lgn-tier-label {
      font-family: var(--font-display);
      font-size:14px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }
    .lgn-tier.tier-very-high .lgn-tier-label { color: var(--coral-deep); }
    .lgn-tier.tier-high .lgn-tier-label { color: var(--amber-deep); }
    .lgn-tier.tier-moderate .lgn-tier-label { color: var(--sage-deep); }
    .lgn-tier-goal {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 700;
      color: var(--charcoal);
      letter-spacing: -0.015em;
      margin-bottom: 6px;
    }
    .lgn-tier-goal .lgn-unit {
      font-size:14px;
      font-weight: 400;
      color: var(--text-faint);
      letter-spacing: 0;
      margin-left: 4px;
    }
    .lgn-tier-criteria {
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.55;
    }
    .lgn-takeaway {
      background: var(--surface);
      border: 1px dashed var(--border-strong);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.6;
      margin-top: 12px;
    }
    .lgn-takeaway strong { color: var(--charcoal); }

    /* ====== INTEGRATED RISK CARD ====== */
    /* Sits below the calc-grid as a full-width synthesis card.
       Aggregates lipid pattern + glycation + inflammation into a single
       composite biomarker pattern, with collapsible methodology. */
    .integrated-risk-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 32px;
      box-shadow: var(--shadow); margin-top: 22px;
      position: relative; overflow: hidden;
    }
    .integrated-risk-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0;
      height: 4px; background: var(--border-strong);
      transition: background 0.3s;
    }
    .integrated-risk-card.band-optimal::before { background: var(--sage); }
    .integrated-risk-card.band-low::before { background: var(--sage-soft); }
    .integrated-risk-card.band-moderate::before { background: var(--amber); }
    .integrated-risk-card.band-high::before { background: var(--coral); }
    .integrated-risk-card.band-veryhigh::before { background: var(--coral-deep); }

    .irc-header {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 24px; flex-wrap: wrap; margin-bottom: 22px;
    }
    .irc-header-text { flex: 1; min-width: 220px; }
    .irc-eyebrow {
      font-size:14px; text-transform: uppercase; letter-spacing: 0.16em;
      color: var(--text-soft); font-weight: 700; margin-bottom: 8px;
    }
    .irc-title {
      font-family: var(--font-display); font-size: 22px; font-weight: 600;
      color: var(--primary-deep); letter-spacing: -0.015em;
      line-height: 1.25; margin-bottom: 6px;
    }
    .irc-confidence {
      font-size:14px; color: var(--text-faint); font-style: italic;
    }
    .irc-band-display {
      display: flex; flex-direction: column; align-items: flex-end;
      gap: 4px; flex-shrink: 0;
    }
    .irc-band-badge {
      display: inline-block; padding: 8px 18px;
      border-radius: 100px; font-size:14px; font-weight: 700;
      letter-spacing: 0.08em; text-transform: uppercase;
      white-space: nowrap;
    }
    .irc-band-badge.band-optimal { background: var(--sage); color: white; }
    .irc-band-badge.band-low { background: var(--sage-soft); color: var(--sage-deep); border: 1px solid var(--sage); }
    .irc-band-badge.band-moderate { background: var(--amber-soft); color: var(--amber-deep); border: 1px solid var(--amber); }
    .irc-band-badge.band-high { background: var(--coral-soft); color: var(--coral); border: 1px solid var(--coral); }
    .irc-band-badge.band-veryhigh { background: var(--coral); color: white; }
    .irc-score-num {
      font-size:14px; color: var(--text-faint); font-weight: 500;
    }

    .irc-summary {
      font-size: 15px; line-height: 1.6; color: var(--charcoal);
      margin-bottom: 22px;
    }
    .irc-summary strong { color: var(--primary-deep); }
    .irc-summary .irc-discord {
      display: inline-block;
      background: var(--plum-soft); color: var(--plum);
      padding: 2px 9px; border-radius: 8px; font-size:14px;
      font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
      margin-right: 6px; vertical-align: middle;
    }

    .irc-axes {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 14px; margin-bottom: 22px;
    }
    .irc-axis {
      background: var(--cream); border: 1px solid var(--border);
      border-radius: var(--radius-sm); padding: 14px 16px;
      position: relative;
    }
    .irc-axis-label {
      font-size:14px; text-transform: uppercase; letter-spacing: 0.12em;
      color: var(--text-faint); font-weight: 700; margin-bottom: 6px;
    }
    .irc-axis-value {
      font-family: var(--font-display); font-size: 15px; font-weight: 600;
      color: var(--charcoal); margin-bottom: 8px; line-height: 1.25;
    }
    .irc-axis-value .irc-axis-source {
      font-family: var(--font-body); font-size:14px;
      color: var(--text-faint); font-weight: 400; display: block; margin-top: 2px;
    }
    .irc-axis-pill {
      display: inline-block; padding: 3px 9px; border-radius: 10px;
      font-size:14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    }
    .irc-axis-pill.band-optimal { background: var(--sage-soft); color: var(--sage-deep); }
    .irc-axis-pill.band-low { background: var(--sage-soft); color: var(--sage-deep); }
    .irc-axis-pill.band-moderate { background: var(--amber-soft); color: var(--amber-deep); }
    .irc-axis-pill.band-high { background: var(--coral-soft); color: var(--coral); }
    .irc-axis-pill.band-missing { background: var(--cream-deep); color: var(--text-faint); border: 1px dashed var(--border-strong); }

    .irc-nudge {
      background: var(--primary-pale); border-left: 3px solid var(--primary-soft);
      padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      font-size:14px; color: var(--primary-deep); line-height: 1.55;
      margin-bottom: 18px;
    }
    .irc-nudge strong { color: var(--primary-deep); }

    /* Collapsible methodology / explainer */
    .irc-explainer {
      border: 1px solid var(--border); border-radius: var(--radius-sm);
      background: var(--cream); overflow: hidden;
    }
    .irc-explainer-header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 14px 18px; cursor: pointer; user-select: none;
      transition: background 0.2s;
    }
    .irc-explainer-header:hover { background: var(--cream-deep); }
    .irc-explainer-header h5 {
      font-family: var(--font-display); font-size: 14px; font-weight: 600;
      color: var(--primary-deep); letter-spacing: -0.005em;
    }
    .irc-explainer-icon {
      width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
      color: var(--primary); transition: transform 0.25s;
    }
    .irc-explainer.open .irc-explainer-icon { transform: rotate(180deg); }
    .irc-explainer-body { display: none; padding: 4px 22px 22px; border-top: 1px solid var(--border); }
    .irc-explainer.open .irc-explainer-body { display: block; }
    .irc-explainer-body h6 {
      font-family: var(--font-display); font-size: 14px; font-weight: 600;
      color: var(--primary-deep); margin-top: 18px; margin-bottom: 6px;
      letter-spacing: -0.005em;
    }
    .irc-explainer-body h6:first-of-type { margin-top: 14px; }
    .irc-explainer-body p { font-size:14px; line-height: 1.65; color: var(--text-soft); margin-bottom: 10px; }
    .irc-explainer-body p strong { color: var(--charcoal); }
    .irc-explainer-body ul { font-size:14px; line-height: 1.65; color: var(--text-soft); padding-left: 22px; margin-bottom: 10px; }
    .irc-explainer-body li { margin-bottom: 6px; }
    .irc-explainer-body li strong { color: var(--charcoal); }
    .irc-explainer-body .irc-disclaimer {
      background: var(--cream-warm); border-left: 3px solid var(--amber);
      padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      font-size:14px; color: var(--amber-deep); margin-top: 14px;
    }
    .irc-explainer-body .irc-refs {
      font-size:14px; color: var(--text-faint); margin-top: 14px;
      padding-top: 12px; border-top: 1px dashed var(--border);
      line-height: 1.55;
    }

    /* ============================================================
       FRAMEWORK POSITION CARD
       Maps the patient onto a row of the doctor-section treatment
       matrix using QRISK3 + biomarker pattern + CAC presence.
       Hidden until minimum inputs (age + sex) are provided.
       ============================================================ */
    .framework-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--primary);
      border-radius: var(--radius);
      padding: 26px 30px;
      margin-top: 18px;
      box-shadow: var(--shadow);
    }
    .framework-card.tone-lifestyle { border-left-color: var(--sage); }
    .framework-card.tone-mixed     { border-left-color: var(--amber); }
    .framework-card.tone-pharm     { border-left-color: var(--coral); }

    .framework-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 14px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border);
    }
    .framework-card-header h4 {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 600;
      color: var(--primary-deep);
      letter-spacing: -0.01em;
      line-height: 1.3;
      margin: 0;
    }
    .framework-card-header h4 .fp-eyebrow {
      display: block;
      font-family: var(--font-body);
      font-size:14px;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--primary);
      margin-bottom: 6px;
    }
    .framework-qrisk-block {
      flex-shrink: 0;
      text-align: right;
    }
    .framework-qrisk-num {
      font-family: var(--font-display);
      font-size: 32px;
      font-weight: 600;
      color: var(--primary-deep);
      letter-spacing: -0.02em;
      line-height: 1;
    }
    .framework-qrisk-label {
      font-size:14px;
      color: var(--text-faint);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 600;
      margin-top: 4px;
    }
    .framework-matrix-tag {
      display: inline-block;
      font-size:14px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 3px 9px;
      border-radius: 100px;
      background: var(--primary-pale);
      color: var(--primary-deep);
      margin-bottom: 10px;
    }
    .framework-row-title {
      font-family: var(--font-display);
      font-size: 14.5px;
      font-weight: 600;
      color: var(--primary-deep);
      line-height: 1.45;
      margin-bottom: 12px;
    }
    .framework-row-action {
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 14px 18px;
      margin-bottom: 12px;
      font-size:14px;
      line-height: 1.65;
      color: var(--charcoal);
    }
    .framework-card.tone-lifestyle .framework-row-action { background: rgba(122, 162, 130, 0.07); border-color: var(--sage-soft); }
    .framework-card.tone-mixed .framework-row-action     { background: rgba(218, 165, 32, 0.08); border-color: var(--amber-soft); }
    .framework-card.tone-pharm .framework-row-action     { background: rgba(204, 119, 102, 0.08); border-color: var(--coral-soft); }
    .framework-row-action strong { font-weight: 700; }

    .framework-row-review {
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.6;
      margin-bottom: 12px;
    }
    .framework-row-review strong { color: var(--charcoal); font-weight: 600; }

    .framework-missing {
      background: var(--cream-warm);
      border: 1px solid var(--amber-soft);
      border-left: 3px solid var(--amber);
      border-radius: var(--radius-sm);
      padding: 11px 14px;
      font-size:14px;
      color: var(--amber-deep);
      line-height: 1.55;
      margin-bottom: 12px;
    }
    .framework-missing strong { color: var(--amber-deep); font-weight: 700; }

    .framework-disclaimer {
      font-size:14px;
      color: var(--text-faint);
      line-height: 1.55;
      padding-top: 12px;
      border-top: 1px dashed var(--border);
      margin-top: 8px;
    }
    .framework-disclaimer strong { color: var(--text-soft); font-weight: 600; }
    .framework-disclaimer a {
      color: var(--primary);
      border-bottom: 1px solid currentColor;
      text-decoration: none;
    }

    @media (max-width: 720px) {
      .framework-card { padding: 22px; }
      .framework-card-header { flex-direction: column; }
      .framework-qrisk-block { text-align: left; }
      .framework-qrisk-num { font-size: 28px; }
    }

    /* Remnant cholesterol explainer — collapsible panel directly below the
       Integrated Risk card. Same collapse/animation pattern as .irc-explainer
       but as a top-level panel rather than nested inside the card.
       Uses sage accent to distinguish it visually from the primary explainer. */
    .remnant-panel {
      background: var(--surface); border: 1px solid var(--border);
      border-left: 4px solid var(--sage);
      border-radius: var(--radius); margin-top: 18px;
      box-shadow: var(--shadow); overflow: hidden;
    }
    .remnant-panel-header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 18px 28px; cursor: pointer; user-select: none;
      transition: background 0.2s;
    }
    .remnant-panel-header:hover { background: var(--cream); }
    .remnant-panel-header h4 {
      font-family: var(--font-display); font-size: 17px; font-weight: 600;
      color: var(--primary-deep); letter-spacing: -0.01em;
      display: flex; align-items: center; gap: 12px; margin: 0;
    }
    .remnant-panel-header h4 .rp-eyebrow {
      font-family: var(--font-body);
      font-size:14px; font-weight: 700;
      letter-spacing: 0.15em; text-transform: uppercase;
      color: var(--sage-deep); background: var(--sage-soft);
      padding: 3px 9px; border-radius: 100px;
    }
    .remnant-panel-icon {
      width: 26px; height: 26px;
      display: flex; align-items: center; justify-content: center;
      color: var(--primary); transition: transform 0.25s;
      font-size: 14px;
    }
    .remnant-panel.open .remnant-panel-icon { transform: rotate(180deg); }
    .remnant-panel-body { display: none; padding: 6px 28px 28px; border-top: 1px solid var(--border); }
    .remnant-panel.open .remnant-panel-body { display: block; }
    .remnant-panel-body h5 {
      font-family: var(--font-display); font-size: 15px; font-weight: 600;
      color: var(--primary-deep); margin-top: 20px; margin-bottom: 8px;
      letter-spacing: -0.005em;
    }
    .remnant-panel-body h5:first-of-type { margin-top: 16px; }
    .remnant-panel-body p {
      font-size: 14px; line-height: 1.7; color: var(--text-soft);
      margin-bottom: 11px;
    }
    .remnant-panel-body p strong { color: var(--charcoal); }
    .remnant-panel-body p em { color: var(--charcoal); font-style: italic; }
    .remnant-panel-body ul {
      font-size: 14px; line-height: 1.7; color: var(--text-soft);
      padding-left: 22px; margin-bottom: 11px;
    }
    .remnant-panel-body li { margin-bottom: 7px; }
    .remnant-panel-body li strong { color: var(--charcoal); }
    .remnant-panel-body .rp-formula {
      background: var(--cream); border: 1px solid var(--border);
      border-left: 3px solid var(--primary);
      padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      font-family: var(--font-display); font-size: 15px;
      color: var(--primary-deep); margin: 12px 0;
      letter-spacing: -0.005em;
    }
    .remnant-panel-body .rp-formula strong { color: var(--primary-deep); }
    .remnant-panel-body .rp-bands {
      background: var(--cream); border: 1px solid var(--border);
      border-radius: var(--radius-sm); padding: 14px 18px;
      margin: 12px 0; font-size:14px; line-height: 1.7;
    }
    .remnant-panel-body .rp-bands strong { color: var(--charcoal); }
    .remnant-panel-body .rp-disclaimer {
      background: var(--cream-warm); border-left: 3px solid var(--amber);
      padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      font-size:14px; color: var(--amber-deep); margin-top: 16px;
      line-height: 1.6;
    }
    .remnant-panel-body .rp-refs {
      font-size:14px; color: var(--text-faint); margin-top: 16px;
      padding-top: 12px; border-top: 1px dashed var(--border);
      line-height: 1.55;
    }
    .remnant-panel-body .rp-refs strong { color: var(--text-soft); }

    @media (max-width: 720px) {
      .remnant-panel-header { padding: 16px 20px; }
      .remnant-panel-header h4 { font-size: 15px; flex-wrap: wrap; gap: 8px; }
      .remnant-panel-body { padding: 6px 20px 22px; }
    }

    /* STATIN ALTERNATIVE CALLOUT */
    .stat-alt {
      background: var(--surface);
      border: 1px solid var(--coral); border-left: 5px solid var(--coral);
      border-radius: var(--radius-lg); padding: 36px; margin-top: 24px;
      box-shadow: var(--shadow);
    }
    .stat-alt-eyebrow {
      display: inline-block; font-size:14px; letter-spacing: 0.18em;
      text-transform: uppercase; color: var(--coral);
      font-weight: 700; margin-bottom: 12px;
    }
    .stat-alt h3 {
      font-family: var(--font-display); font-size: 26px; font-weight: 600;
      color: var(--coral-deep); margin-bottom: 14px; letter-spacing: -0.015em;
    }
    .stat-alt > p {
      font-size: 14.5px; color: var(--text-soft); line-height: 1.65;
      margin-bottom: 22px; max-width: 760px;
    }
    .alt-options {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
    }
    .alt-option {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-sm); padding: 20px;
    }
    .alt-option h5 {
      font-family: var(--font-display); font-size: 16px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 6px; letter-spacing: -0.01em;
    }
    .alt-option .mech {
      font-size:14px; color: var(--coral); font-weight: 700;
      margin-bottom: 8px; letter-spacing: 0.06em; text-transform: uppercase;
    }
    .alt-option p { font-size:14px; color: var(--text-soft); line-height: 1.55; }

    /* MULTIVITAMIN GUIDANCE — collapsible panel above Tier 1 essentials.
       Shows what to look for in any multivitamin, what's fine at multi-doses,
       and explicit warnings about l-carnitine + K2-with-warfarin + high-dose vitamin E. */
    .multi-guide {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--primary);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      margin-bottom: 36px;
      overflow: hidden;
    }
    .multi-guide-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 22px 28px;
      cursor: pointer; user-select: none;
      transition: background 0.2s;
      gap: 18px;
    }
    .multi-guide-header:hover { background: var(--cream); }
    .multi-guide-header .mg-head-text { flex: 1; }
    .multi-guide-header h3 {
      font-family: var(--font-display);
      font-size: 19px; font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 3px;
      letter-spacing: -0.015em; line-height: 1.25;
    }
    .multi-guide-header h3 small {
      display: block; font-family: var(--font-body);
      font-size:14px; color: var(--text-soft);
      font-weight: 400; margin-top: 3px; letter-spacing: 0;
    }
    .multi-guide-icon {
      flex-shrink: 0;
      width: 32px; height: 32px;
      display: flex; align-items: center; justify-content: center;
      color: var(--primary);
      background: var(--primary-pale);
      border-radius: 50%;
      transition: transform 0.3s;
    }
    .multi-guide.open .multi-guide-icon { transform: rotate(180deg); }
    .multi-guide-body {
      display: none;
      padding: 0 28px 28px;
      border-top: 1px solid var(--border);
    }
    .multi-guide.open .multi-guide-body { display: block; }

    .multi-guide-intro {
      font-size:14px; color: var(--text-soft);
      line-height: 1.6;
      padding-top: 18px;
      margin-bottom: 22px;
      max-width: 760px;
    }
    .multi-guide-intro strong { color: var(--charcoal); font-weight: 600; }

    .multi-guide-group {
      margin-bottom: 24px;
      border-radius: var(--radius-sm);
      padding: 18px 22px;
      border: 1px solid var(--border);
    }
    .multi-guide-group:last-child { margin-bottom: 0; }
    .multi-guide-group.should {
      background: var(--surface);
      border-left: 3px solid var(--sage);
    }
    .multi-guide-group.fine {
      background: var(--surface);
      border-left: 3px solid var(--amber);
    }
    .multi-guide-group.avoid {
      background: var(--surface);
      border-left: 3px solid var(--coral);
    }
    .multi-guide-group h4 {
      font-family: var(--font-display);
      font-size: 16px; font-weight: 600;
      margin-bottom: 12px;
      letter-spacing: -0.01em;
      line-height: 1.25;
      display: flex; align-items: center; gap: 8px;
    }
    .multi-guide-group.should h4 { color: var(--sage-deep); }
    .multi-guide-group.fine h4 { color: var(--amber-deep); }
    .multi-guide-group.avoid h4 { color: var(--coral-deep); }

    .multi-item-list { list-style: none; padding: 0; margin: 0; }
    .multi-item-list li {
      padding: 8px 0 8px 26px;
      position: relative;
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.55;
      border-bottom: 1px dashed var(--border);
    }
    .multi-item-list li:last-child { border-bottom: none; }
    .multi-item-list li::before {
      position: absolute; left: 0; top: 8px;
      font-size: 14px;
      font-weight: 700;
    }
    .multi-guide-group.should .multi-item-list li::before { content: '✓'; color: var(--sage); }
    .multi-guide-group.fine .multi-item-list li::before { content: '○'; color: var(--amber); }
    .multi-guide-group.avoid .multi-item-list li::before { content: '⚠'; color: var(--coral); }
    .multi-item-list li strong { color: var(--charcoal); font-weight: 600; display: block; margin-bottom: 2px; font-size:14px; }
    .multi-item-list li em { color: var(--charcoal); font-style: italic; }

    .multi-warning-box {
      background: var(--coral-soft);
      border-left: 3px solid var(--coral);
      padding: 14px 18px;
      border-radius: var(--radius-sm);
      margin-top: 16px;
      font-size:14px; color: var(--coral-deep);
      line-height: 1.6;
    }
    .multi-warning-box strong { color: var(--coral-deep); font-weight: 700; }

    /* SUPPLEMENT TIERS */
    .tier {
      margin-bottom: 36px; padding: 36px; background: var(--surface);
      border-radius: var(--radius-lg); box-shadow: var(--shadow);
      border-top: 5px solid var(--primary);
    }
    .tier-essentials { border-top-color: var(--sage); background: var(--surface); }
    .tier-advanced { border-top-color: var(--primary); background: var(--surface); }
    .tier-longevity { border-top-color: var(--gold); background: var(--surface); }

    /* Tier 3 longevity section is hidden by default — only revealed when the user
       opts in via the toggle checkbox in the input panel. The .show-longevity
       class is added to the <body> by JS when the toggle is checked. */
    #longevity,
    .toc-link-longevity { display: none; }
    body.show-longevity #longevity { display: block; }
    body.show-longevity .toc-link-longevity { display: inline-block; }

    /* Opt-in toggle for Tier 3 — sits in the input panel under statin status */
    .longevity-toggle {
      display: flex; align-items: flex-start; gap: 14px;
      padding: 18px 20px; margin-top: 8px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--gold);
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: all 0.2s;
    }
    .longevity-toggle:hover { background: var(--surface); }
    .longevity-toggle input[type="checkbox"] {
      flex-shrink: 0;
      width: 20px; height: 20px;
      margin-top: 2px;
      accent-color: var(--gold);
      cursor: pointer;
    }
    .longevity-toggle .lt-text { flex: 1; }
    .longevity-toggle .lt-title {
      font-family: var(--font-display);
      font-size: 15px; font-weight: 600;
      color: var(--gold); margin-bottom: 4px;
      letter-spacing: -0.01em;
    }
    .longevity-toggle .lt-desc {
      font-size:14px; color: var(--text-soft);
      line-height: 1.55;
    }
    .longevity-toggle .lt-desc strong { color: var(--charcoal); font-weight: 600; }

    .tier-header {
      display: flex; justify-content: space-between; align-items: flex-start;
      margin-bottom: 12px; flex-wrap: wrap; gap: 12px;
    }
    .tier-title {
      font-family: var(--font-display); font-weight: 600; font-size: 28px;
      color: var(--primary-deep); letter-spacing: -0.02em; line-height: 1.15;
    }
    .tier-essentials .tier-title { color: var(--sage-deep); }
    .tier-longevity .tier-title { color: var(--gold); }

    .tier-badge {
      font-size:14px; letter-spacing: 0.12em; font-weight: 700; text-transform: uppercase;
      padding: 5px 12px; border-radius: 12px;
      background: var(--cream-deep); color: var(--text-soft);
    }
    .tier-essentials .tier-badge { background: var(--sage-soft); color: var(--sage-deep); }
    .tier-advanced .tier-badge { background: var(--primary-pale); color: var(--primary); }
    .tier-longevity .tier-badge { background: rgba(168, 122, 37, 0.12); color: var(--gold); }

    .tier-desc {
      font-size: 14.5px; color: var(--text-soft); margin-bottom: 28px;
      padding-bottom: 22px; border-bottom: 1px solid var(--border);
      line-height: 1.65; max-width: 800px;
    }

    /* "Considered but not yet recommended" callout — sits at the end of Tier 3 */
    .considered-callout {
      margin-top: 32px;
      padding: 22px 26px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--text-faint);
      border-radius: var(--radius);
    }
    .considered-callout h4 {
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 600;
      color: var(--text-soft);
      margin-bottom: 10px;
      letter-spacing: -0.005em;
    }
    .considered-callout p {
      font-size:14px;
      line-height: 1.7;
      color: var(--text-soft);
      margin-bottom: 10px;
    }
    .considered-callout p:last-child { margin-bottom: 0; }
    .considered-callout strong { color: var(--charcoal); font-weight: 600; }
    .considered-callout em { color: var(--charcoal); font-style: italic; }
    .considered-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 10px;
      margin: 12px 0;
    }
    .considered-list .cl-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 11px 14px;
      font-size:14px;
      line-height: 1.55;
      color: var(--text-soft);
    }
    .considered-list .cl-item strong {
      display: block;
      font-family: var(--font-display);
      color: var(--text-soft);
      font-size:14px;
      font-weight: 600;
      margin-bottom: 3px;
      letter-spacing: -0.005em;
    }
    .considered-callout .considered-source {
      font-size:14px;
      color: var(--text-faint);
      padding-top: 10px;
      border-top: 1px dashed var(--border);
      margin-top: 12px;
    }
    .considered-callout .considered-source a {
      color: var(--primary);
      border-bottom: 1px solid currentColor;
      text-decoration: none;
    }

    /* Prescription / repurposed CV agents watchlist — sits at the end of Tier 2.
       Styled distinctly (amber frame + coral POM tag) so it is never mistaken
       for one of the over-the-counter supplement cards. No shop links here. */
    .rx-watchlist {
      margin-top: 30px;
      padding: 22px 26px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--amber);
      border-radius: var(--radius);
    }
    .rx-watchlist h4 {
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 600;
      color: var(--amber-deep);
      margin-bottom: 6px;
      letter-spacing: -0.005em;
    }
    .rx-pom-tag {
      display: inline-block;
      font-family: var(--font-body);
      font-size:14px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: white;
      background: var(--coral);
      padding: 2px 8px;
      border-radius: 999px;
      margin-left: 8px;
      vertical-align: middle;
    }
    .rx-watchlist > p {
      font-size:14px;
      line-height: 1.7;
      color: var(--text-soft);
      margin-bottom: 12px;
    }
    .rx-watchlist > p:last-child { margin-bottom: 0; }
    .rx-watchlist strong { color: var(--charcoal); font-weight: 600; }
    .rx-watchlist em { color: var(--charcoal); font-style: italic; }
    .rx-list { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 14px 0; }
    .rx-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 16px 18px;
    }
    .rx-item-head {
      display: flex; align-items: baseline; justify-content: space-between;
      gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
    }
    .rx-item-name {
      font-family: var(--font-display);
      font-size: 15px; font-weight: 600;
      color: var(--charcoal); letter-spacing: -0.01em;
    }
    .rx-item-name small {
      display: block; font-family: inherit;
      font-size:14px; font-weight: 400;
      color: var(--text-faint); margin-top: 2px;
    }
    .rx-evidence {
      font-size:14px; font-weight: 700; letter-spacing: 0.03em;
      text-transform: uppercase; padding: 3px 9px;
      border-radius: 999px; white-space: nowrap;
    }
    .rx-ev-strong  { background: var(--primary-pale); color: var(--primary-deep); }
    .rx-ev-pilot   { background: var(--amber-soft);   color: var(--amber-deep); }
    .rx-ev-context { background: var(--cream-deep);    color: var(--text-faint); }
    .rx-item p { font-size:14px; line-height: 1.65; color: var(--text-soft); margin-bottom: 8px; }
    .rx-item p:last-child { margin-bottom: 0; }
    .rx-item strong { color: var(--charcoal); font-weight: 600; }
    .rx-item em { color: var(--charcoal); font-style: italic; }
    .rx-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
    .rx-stat {
      background: var(--cream); border: 1px solid var(--border);
      border-radius: var(--radius-sm); padding: 6px 10px;
      font-size:14px; color: var(--text-soft);
    }
    .rx-stat b { color: var(--coral-deep); font-weight: 700; }
    .rx-source {
      font-size:14px; color: var(--text-faint);
      padding-top: 10px; border-top: 1px dashed var(--border); margin-top: 4px;
    }

    .supp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
    .supp-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 26px;
      transition: all 0.25s; animation: fadeIn 0.4s ease both;
      display: flex; flex-direction: column;
    }
    .supp-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    .supp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
    .supp-name {
      font-family: var(--font-display); font-size: 19px; font-weight: 600;
      color: var(--charcoal); line-height: 1.25; letter-spacing: -0.015em;
    }
    .supp-name small {
      display: block; font-family: var(--font-body); font-size:14px;
      color: var(--text-faint); font-weight: 400; margin-top: 4px; line-height: 1.5;
    }
    .supp-tag {
      flex-shrink: 0; padding: 4px 11px; border-radius: 12px;
      font-size:14px; letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase;
      background: var(--cream-deep); color: var(--text-soft); white-space: nowrap;
    }
    .supp-tag.priority { background: var(--coral-soft); color: var(--coral); }
    .supp-tag.experimental { background: var(--plum-soft); color: var(--plum); }
    .supp-tag.essential { background: var(--sage-soft); color: var(--sage-deep); }

    .supp-dose {
      display: block; font-size:14px; font-weight: 600;
      color: var(--primary); padding: 10px 14px; background: var(--cream);
      border-radius: var(--radius-sm); margin-bottom: 14px;
      border: 1px solid var(--border); line-height: 1.5;
    }
    .supp-rationale {
      font-size:14px; color: var(--text-soft); line-height: 1.65;
      margin-bottom: 16px; flex-grow: 1;
    }
    .supp-rationale strong { color: var(--charcoal); font-weight: 600; }
    .supp-rationale em { color: var(--charcoal); font-style: italic; }

    .supp-effect {
      background: var(--surface);
      border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px;
      display: flex; align-items: center; justify-content: space-between;
      gap: 14px; border: 1px solid var(--border);
    }
    .supp-effect.experimental { background: var(--surface); }
    .supp-effect-label {
      font-size:14px; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--text-soft); font-weight: 700;
    }
    .supp-effect-val {
      font-family: var(--font-display); font-size: 22px; font-weight: 600;
      color: var(--sage-deep); text-align: right; letter-spacing: -0.015em;
    }
    .supp-effect.experimental .supp-effect-val { color: var(--plum); font-size: 18px; }
    .supp-effect-detail { font-size:14px; color: var(--text-soft); margin-top: 2px; text-align: right; }

    .supp-footer {
      display: flex; justify-content: space-between; align-items: center;
      gap: 10px; padding-top: 14px; border-top: 1px dashed var(--border);
      flex-wrap: wrap;
    }
    .ev-pill {
      display: inline-block; padding: 3px 10px; border-radius: 10px;
      font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size:14px;
    }
    .ev-proven { background: var(--sage-soft); color: var(--sage-deep); }
    .ev-emerging { background: var(--amber-soft); color: var(--amber-deep); }
    .ev-experimental { background: var(--plum-soft); color: var(--plum); }

    .shop-link {
      display: inline-flex; align-items: center; gap: 6px;
      font-size:14px; font-weight: 600; color: var(--primary);
      text-decoration: none; padding: 5px 11px; border-radius: 12px;
      background: var(--primary-pale); transition: all 0.2s;
    }
    .shop-link:hover { background: var(--primary); color: white; }

    /* PROJECTION */
    .proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .proj-card {
      background: var(--surface);
      border: 1px solid var(--border); border-radius: var(--radius);
      padding: 28px; text-align: center;
    }
    .proj-label {
      font-size:14px; text-transform: uppercase; letter-spacing: 0.12em;
      color: var(--text-soft); font-weight: 700; margin-bottom: 16px;
    }
    .proj-compare { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
    .proj-current {
      font-size: 19px; color: var(--text-faint);
      text-decoration: line-through; font-family: var(--font-display);
    }
    .proj-arrow { color: var(--sage); font-size: 22px; font-weight: 600; }
    .proj-future {
      font-family: var(--font-display); font-size: 36px; font-weight: 600;
      color: var(--sage-deep); letter-spacing: -0.025em;
    }
    .proj-band {
      margin-bottom: 8px;
      /* Inherits .risk-badge for the colour/shape; this just controls spacing */
    }
    .proj-change { font-size:14px; color: var(--sage-deep); font-weight: 700; letter-spacing: 0.06em; }

    /* Two-scenario projection layout — A: supplements, B: supplements + diet */
    .proj-scenario {
      margin-bottom: 28px;
      padding: 24px 26px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--sage);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
    }
    .proj-scenario-combined {
      border-left-color: var(--primary);
      background: var(--surface);
    }
    .proj-scenario-exercise {
      border-left-color: var(--gold);
      background: var(--surface);
    }
    .proj-scenario-head {
      display: flex; align-items: flex-start; gap: 16px;
      margin-bottom: 22px; padding-bottom: 18px;
      border-bottom: 1px solid var(--border);
    }
    .proj-scenario-num {
      flex-shrink: 0;
      display: inline-flex; align-items: center; justify-content: center;
      width: 36px; height: 36px;
      border-radius: 50%;
      background: var(--sage); color: white;
      font-family: var(--font-display); font-size: 16px; font-weight: 700;
      margin-top: 2px;
    }
    .proj-scenario-combined .proj-scenario-num { background: var(--primary); }
    .proj-scenario-exercise .proj-scenario-num { background: var(--gold); }
    .proj-scenario-title {
      font-family: var(--font-display);
      font-size: 20px; font-weight: 600;
      color: var(--charcoal); margin-bottom: 4px;
      letter-spacing: -0.015em; line-height: 1.25;
    }
    .proj-scenario-title em { color: var(--primary); font-style: normal; }
    .proj-scenario-combined .proj-scenario-title { color: var(--primary-deep); }
    .proj-scenario-exercise .proj-scenario-title { color: var(--gold); }
    .proj-scenario-exercise .proj-scenario-title em { color: var(--gold); }
    .proj-scenario-desc {
      font-size:14px; color: var(--text-soft);
      line-height: 1.55; max-width: 720px; margin: 0;
    }
    .proj-scenario-desc strong { color: var(--charcoal); font-weight: 600; }

    /* Combined-row cards visually distinct from supplements-only (primary tint) */
    .proj-card.proj-card-combined {
      background: var(--surface);
      border-color: var(--primary-soft);
    }
    .proj-card.proj-card-combined .proj-arrow { color: var(--primary); }
    .proj-card.proj-card-combined .proj-future { color: var(--primary-deep); }
    .proj-card.proj-card-combined .proj-change { color: var(--primary-deep); }

    /* Exercise-row cards — gold accent to differentiate from B */
    .proj-card.proj-card-exercise {
      background: var(--surface);
      border-color: var(--gold);
    }
    .proj-card.proj-card-exercise .proj-arrow { color: var(--gold); }
    .proj-card.proj-card-exercise .proj-future { color: var(--gold); }
    .proj-card.proj-card-exercise .proj-change { color: var(--gold); }

    /* Footnote explaining the supplement-vs-diet split */
    .proj-footnote {
      margin-top: 8px; padding: 18px 22px;
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size:14px; color: var(--text-soft); line-height: 1.65;
    }
    .proj-footnote strong { color: var(--charcoal); font-weight: 600; }
    .proj-footnote em { color: var(--charcoal); font-style: italic; }

    /* ACTION BAR */
    .action-bar {
      display: flex; justify-content: center; gap: 14px;
      margin: 56px 0 0; flex-wrap: wrap;
    }
    .action-btn {
      display: inline-flex; align-items: center; gap: 9px;
      padding: 13px 24px; background: var(--surface);
      border: 1px solid var(--border-strong); border-radius: 100px;
      font-family: inherit; font-size: 14px; font-weight: 600;
      color: var(--primary-deep); cursor: pointer;
      transition: all 0.2s; box-shadow: var(--shadow-xs);
    }
    .action-btn:hover {
      background: var(--primary); color: white;
      border-color: var(--primary); transform: translateY(-1px);
      box-shadow: var(--shadow);
    }
    .action-btn svg { width: 16px; height: 16px; }

    .toast {
      position: fixed; bottom: 30px; left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: var(--charcoal); color: white;
      padding: 14px 24px; border-radius: 100px;
      font-size:14px; font-weight: 500;
      box-shadow: var(--shadow-lg); z-index: 1000;
      transition: transform 0.3s ease;
    }
    .toast.show { transform: translateX(-50%) translateY(0); }

    /* NUTRITION */
    .nutrition-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 18px; margin-bottom: 40px;
    }
    .nut-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px 22px;
      text-align: center; transition: all 0.25s;
    }
    .nut-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
    .nut-icon { font-size: 26px; margin-bottom: 10px; display: block; }
    .nut-label {
      font-size:14px; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--text-soft); font-weight: 700; margin-bottom: 8px;
    }
    .nut-value {
      font-family: var(--font-display); font-size: 28px; font-weight: 600;
      color: var(--primary-deep); line-height: 1.1; letter-spacing: -0.02em;
    }
    .nut-value small {
      font-family: var(--font-body); font-size:14px;
      color: var(--text-soft); font-weight: 400; margin-left: 3px;
    }
    .nut-note { font-size:14px; color: var(--text-soft); margin-top: 8px; line-height: 1.45; }

    /* Tightened nutrition target — visual indicator when target has been adjusted from baseline */
    .nut-card.tightened {
      background: var(--surface);
      border-color: var(--coral);
    }
    .nut-card.tightened .nut-value { color: var(--coral-deep); }
    .nut-card.tightened .nut-note { color: var(--coral); font-weight: 500; }
    .nut-card.tightened::before {
      content: '↓'; position: absolute; top: 8px; right: 10px;
      color: var(--coral); font-weight: 700; font-size: 14px;
    }
    .nut-card.elevated {
      background: var(--surface);
      border-color: var(--sage);
    }
    .nut-card.elevated .nut-value { color: var(--sage-deep); }
    .nut-card.elevated .nut-note { color: var(--sage-deep); font-weight: 500; }
    .nut-card.elevated::before {
      content: '↑'; position: absolute; top: 8px; right: 10px;
      color: var(--sage); font-weight: 700; font-size: 14px;
    }
    .nut-card { position: relative; }

    /* Why-this-changed rationale callout — appears below the nutrition grid */
    .nutrition-rationale {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--primary);
      border-radius: var(--radius);
      padding: 22px 28px;
      margin-top: 24px;
      box-shadow: var(--shadow-sm);
    }
    .nutrition-rationale h5 {
      font-family: var(--font-display); font-size: 16px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 12px;
      letter-spacing: -0.01em;
    }
    .nutrition-rationale ul { list-style: none; padding: 0; margin: 0; }
    .nutrition-rationale li {
      font-size:14px; color: var(--text-soft); line-height: 1.6;
      padding: 6px 0; padding-left: 18px; position: relative;
    }
    .nutrition-rationale li::before {
      content: '→'; position: absolute; left: 0; top: 6px;
      color: var(--primary); font-weight: 700;
    }
    .nutrition-rationale strong { color: var(--charcoal); font-weight: 600; }
    .nutrition-rationale em { color: var(--primary-deep); font-style: normal; font-weight: 600; }

    .meal-breakdown {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
    }
    .meal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .meal-table th {
      background: var(--cream-deep); padding: 16px 20px; text-align: left;
      font-weight: 700; font-size:14px; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--text-soft);
      border-bottom: 1px solid var(--border);
    }
    .meal-table td { padding: 15px 20px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
    .meal-table tr:last-child td { border-bottom: none; }
    .meal-table tr.total-row { background: var(--cream); }
    .meal-table tr.total-row td { font-weight: 700; }
    .meal-table td:first-child {
      font-family: var(--font-display); font-weight: 600;
      color: var(--primary-deep); font-size: 15px;
    }

    /* CGM */
    .cgm-wrap {
      background: var(--surface);
      border: 1px solid var(--amber); border-left: 5px solid var(--amber);
      border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow);
    }
    .cgm-wrap h3 {
      font-family: var(--font-display); font-size: 24px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 14px; letter-spacing: -0.015em;
    }
    .cgm-wrap > p {
      font-size: 14.5px; color: var(--text-soft); line-height: 1.7; margin-bottom: 18px;
    }
    .cgm-targets {
      background: var(--surface); border-radius: var(--radius);
      padding: 8px; margin-top: 24px; box-shadow: var(--shadow-sm);
    }
    .cgm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .cgm-table th {
      padding: 14px 20px; text-align: left; font-weight: 700;
      font-size:14px; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--text-soft); border-bottom: 1px solid var(--border);
    }
    .cgm-table th:last-child { text-align: right; }
    .cgm-table td { padding: 15px 20px; border-bottom: 1px solid var(--border); }
    .cgm-table tr:last-child td { border-bottom: none; }
    .cgm-table td:first-child { font-weight: 600; color: var(--charcoal); }
    .cgm-table td:last-child {
      font-family: var(--font-display); font-weight: 600;
      text-align: right; color: var(--primary-deep);
      font-variant-numeric: tabular-nums;
    }

    /* Side-by-side comparison table */
    .cgm-compare-wrap {
      margin-top: 32px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 28px;
      overflow-x: auto;
    }
    .cgm-compare-wrap h4 {
      font-family: var(--font-display);
      font-size: 17px; font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }
    .cgm-compare-wrap > p {
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.6;
      margin-bottom: 18px;
    }
    .cgm-compare {
      width: 100%;
      border-collapse: collapse;
      font-size:14px;
      min-width: 760px;
    }
    .cgm-compare th, .cgm-compare td {
      padding: 11px 12px;
      text-align: left;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
    }
    .cgm-compare thead th {
      font-family: var(--font-display);
      font-size:14px; font-weight: 600;
      color: var(--primary-deep);
      background: var(--cream);
      letter-spacing: -0.005em;
      line-height: 1.3;
    }
    .cgm-compare thead th .device-mfr {
      display: block;
      font-family: var(--font-body);
      font-size:14px;
      color: var(--text-faint);
      font-weight: 400;
      margin-top: 2px;
    }
    .cgm-compare thead th.col-pick {
      background: var(--sage-soft);
      color: var(--sage-deep);
      position: relative;
    }
    .cgm-compare thead th.col-pick::after {
      content: '★ PICK';
      position: absolute;
      top: 4px; right: 6px;
      font-size:14px;
      color: var(--sage-deep);
      font-weight: 700;
      letter-spacing: 0.1em;
    }
    .cgm-compare tbody th {
      font-weight: 600;
      color: var(--charcoal);
      font-size:14px;
      background: var(--cream-deep);
      white-space: nowrap;
    }
    .cgm-compare tbody td {
      color: var(--text-soft);
      line-height: 1.5;
    }
    .cgm-compare tbody td.col-pick {
      background: var(--sage-soft);
      color: var(--sage-deep);
      font-weight: 500;
    }
    .cgm-compare tbody tr:last-child th,
    .cgm-compare tbody tr:last-child td { border-bottom: none; }
    .cgm-compare .cell-strong { color: var(--charcoal); font-weight: 600; }
    .cgm-compare .cell-good { color: var(--sage-deep); font-weight: 600; }
    .cgm-compare .cell-warn { color: var(--coral); font-weight: 600; }

    /* Buy link inside comparison table cells */
    .cgm-compare .cell-buy {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 7px 12px; border-radius: var(--radius-sm);
      background: var(--primary-pale);
      color: var(--primary-deep);
      font-size:14px; font-weight: 600;
      text-decoration: none;
      border: 1px solid var(--primary-soft);
      transition: all 0.2s;
      line-height: 1.2;
    }
    .cgm-compare .cell-buy:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-1px);
    }
    .cgm-compare td.col-pick .cell-buy {
      background: var(--sage);
      color: white;
      border-color: var(--sage);
    }
    .cgm-compare td.col-pick .cell-buy:hover {
      background: var(--sage-deep);
    }

    @media (max-width: 720px) {
      .cgm-compare-wrap { padding: 18px 14px; }
    }

    .cgm-tips { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
    .cgm-tips h4 {
      font-family: var(--font-display); font-size: 18px; font-weight: 600;
      margin-bottom: 14px; color: var(--primary-deep);
    }
    .cgm-tips ol { padding-left: 24px; font-size: 14px; color: var(--text-soft); }
    .cgm-tips li { padding: 7px 0; line-height: 1.6; }
    .cgm-tips strong { color: var(--charcoal); font-weight: 600; }

    /* CGM educational callouts — framing panel (above targets) and
       interpretation panel (below 14-day protocol). Restored from
       earlier revision after an upload dropped them. */
    .cgm-callout {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--primary);
      border-radius: var(--radius);
      padding: 26px 30px;
      margin: 24px 0;
      box-shadow: var(--shadow-sm);
    }
    .cgm-callout-frame {
      border-left-color: var(--sage);
      background: var(--surface);
    }
    .cgm-callout-interp {
      border-left-color: var(--primary);
      margin-top: 32px;
    }
    .cgm-callout h4 {
      font-family: var(--font-display);
      font-size: 19px; font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 12px;
      letter-spacing: -0.015em;
      line-height: 1.3;
    }
    .cgm-callout-frame h4 { color: var(--sage-deep); }
    .cgm-callout p {
      font-size: 14px;
      color: var(--text-soft);
      line-height: 1.65;
      margin-bottom: 12px;
    }
    .cgm-callout p:last-child { margin-bottom: 0; }
    .cgm-callout strong { color: var(--charcoal); font-weight: 600; }
    .cgm-callout em { color: var(--charcoal); font-style: italic; }

    /* Sub-blocks inside the interpretation panel — each topic gets a small heading */
    .cgm-interp-block { margin-top: 22px; }
    .cgm-interp-block:first-of-type { margin-top: 0; }
    .cgm-interp-block h5 {
      font-family: var(--font-display);
      font-size: 15px; font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 8px;
      letter-spacing: -0.005em;
      display: flex; align-items: center; gap: 8px;
    }
    .cgm-interp-block h5 .ic {
      display: inline-flex; align-items: center; justify-content: center;
      width: 25px; height: 25px;
      border-radius: 50%;
      background: var(--primary-pale);
      font-size:14px;
      flex-shrink: 0;
    }

    /* Four-techniques grid inside the interp panel — fixed 2 columns on
       desktop for visual balance, collapses to 1 column on narrow screens.
       Scoped to .cgm-techniques so it doesn't affect any other grid. */
    .cgm-techniques .tech-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin: 18px 0 16px;
    }
    @media (max-width: 640px) {
      .cgm-techniques .tech-grid {
        grid-template-columns: 1fr;
      }
    }
    .tech-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 3px solid var(--sage);
      border-radius: var(--radius-sm);
      padding: 18px 20px;
      position: relative;
    }
    .tech-num {
      position: absolute;
      top: -10px; left: 16px;
      width: 26px; height: 26px;
      border-radius: 50%;
      background: var(--sage);
      color: white;
      font-family: var(--font-display);
      font-size:14px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 2px 5px rgba(122, 162, 130, 0.3);
    }
    .tech-card h6 {
      font-family: var(--font-display);
      font-size: 15.5px; font-weight: 600;
      color: var(--primary-deep);
      margin: 6px 0 10px;
      letter-spacing: -0.005em;
      line-height: 1.3;
    }
    .tech-card p {
      font-size:14px;
      line-height: 1.6;
      color: var(--text-soft);
      margin-bottom: 10px;
    }
    .tech-card p:last-child { margin-bottom: 0; }
    .tech-card p strong { color: var(--charcoal); font-weight: 600; }
    .tech-card p em { font-style: italic; color: var(--text-soft); }
    .tech-claim {
      background: var(--sage-soft);
      color: var(--sage-deep) !important;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      margin-bottom: 12px !important;
    }
    .tech-claim strong { color: var(--sage-deep) !important; }
    .tech-evidence {
      background: var(--cream);
      border-left: 2px solid var(--border-strong);
      padding: 10px 12px;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      font-size:14px !important;
      margin-bottom: 12px !important;
      color: var(--text-soft);
    }
    .tech-evidence em { color: var(--coral-deep); font-style: italic; }
    .tech-action {
      background: var(--primary-pale);
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      font-size:14px !important;
      color: var(--primary-deep) !important;
    }
    .tech-action strong { color: var(--primary-deep) !important; }
    .tech-summary {
      background: var(--cream-warm);
      border-left: 3px solid var(--amber);
      padding: 14px 18px;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      font-size: 14px;
      line-height: 1.65;
      color: var(--charcoal) !important;
      margin-top: 16px !important;
    }
    .tech-summary strong { color: var(--charcoal); }
    .tech-summary em { font-style: italic; }

    @media (max-width: 720px) {
      .cgm-techniques .tech-grid { gap: 14px; }
      .tech-card { padding: 16px 18px; }
    }

    /* Inline "scenarios" table for spike interpretation */
    .cgm-scenarios {
      margin: 12px 0;
      background: var(--cream);
      border-radius: var(--radius-sm);
      padding: 6px;
      overflow-x: auto;
    }
    .cgm-scenarios table {
      width: 100%;
      border-collapse: collapse;
      font-size:14px;
      min-width: 480px;
    }
    .cgm-scenarios th {
      padding: 9px 12px;
      text-align: left;
      font-weight: 700;
      font-size:14px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-soft);
      border-bottom: 1px solid var(--border);
    }
    .cgm-scenarios td {
      padding: 9px 12px;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
      line-height: 1.5;
    }
    .cgm-scenarios tr:last-child td { border-bottom: none; }
    .cgm-scenarios td:first-child {
      font-family: var(--font-display);
      font-weight: 600;
      color: var(--charcoal);
      white-space: nowrap;
    }
    .cgm-scenarios td:nth-child(2) {
      font-variant-numeric: tabular-nums;
      font-weight: 600;
      color: var(--primary-deep);
      white-space: nowrap;
    }
    .cgm-scenarios .verdict-normal { color: var(--sage-deep); font-weight: 600; }
    .cgm-scenarios .verdict-watch { color: var(--amber-deep); font-weight: 600; }
    .cgm-scenarios .verdict-concern { color: var(--coral); font-weight: 600; }
    @media (max-width: 600px) {
      .cgm-scenarios table { font-size:14px; min-width: 0; }
      .cgm-scenarios th, .cgm-scenarios td { padding: 7px 9px; }
    }

    /* "Aha-moments" practical observations */
    .cgm-aha {
      margin-top: 18px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 3px solid var(--amber);
      border-radius: var(--radius-sm);
      padding: 18px 22px;
    }
    .cgm-aha h5 {
      font-family: var(--font-display);
      font-size: 15px; font-weight: 600;
      color: var(--amber-deep);
      margin-bottom: 10px;
      letter-spacing: -0.005em;
    }
    .cgm-aha ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .cgm-aha li {
      font-size:14px;
      color: var(--text-soft);
      padding: 5px 0 5px 22px;
      position: relative;
      line-height: 1.55;
    }
    .cgm-aha li::before {
      content: '✨';
      position: absolute;
      left: 0;
      top: 5px;
      font-size:14px;
    }
    .cgm-aha strong { color: var(--charcoal); font-weight: 600; }

    /* ====== CAC SCORING SECTION ====== */
    .cac-wrap {
      background: var(--surface); border-radius: var(--radius-lg);
      padding: 48px; border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .cac-intro { margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
    .cac-intro h3 {
      font-family: var(--font-display); font-size: 22px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 14px; letter-spacing: -0.015em;
    }
    .cac-intro p {
      font-size: 15px; line-height: 1.7; color: var(--text-soft);
      margin-bottom: 14px;
    }
    .cac-intro p:last-child { margin-bottom: 0; }
    .cac-intro strong { color: var(--charcoal); font-weight: 600; }
    .cac-intro em { color: var(--charcoal); font-style: italic; }

    /* Tier grid — the four Agatston bands */
    .cac-tiers { margin-bottom: 36px; }
    .cac-tiers h4 {
      font-family: var(--font-display); font-size: 19px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 8px; letter-spacing: -0.01em;
    }
    .cac-tiers-intro {
      font-size: 14px; color: var(--text-soft); line-height: 1.65;
      margin-bottom: 24px;
    }
    .cac-tier-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 18px;
    }
    .cac-tier {
      background: var(--cream); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 26px; position: relative;
      overflow: hidden; transition: all 0.3s;
    }
    .cac-tier:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
    .cac-tier::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0;
      height: 4px;
    }
    .cac-tier-zero::before { background: var(--sage); }
    .cac-tier-mild::before { background: var(--amber); }
    .cac-tier-moderate::before { background: var(--coral); }
    .cac-tier-severe::before { background: var(--coral-deep); }
    .cac-tier-score {
      font-family: var(--font-display); font-size: 38px; font-weight: 600;
      color: var(--primary-deep); line-height: 1; margin-bottom: 6px;
      letter-spacing: -0.025em; font-variation-settings: 'opsz' 40;
    }
    .cac-tier-zero .cac-tier-score { color: var(--sage-deep); }
    .cac-tier-mild .cac-tier-score { color: var(--amber-deep); }
    .cac-tier-moderate .cac-tier-score { color: var(--coral); }
    .cac-tier-severe .cac-tier-score { color: var(--coral-deep); }
    .cac-tier-label {
      font-size:14px; text-transform: uppercase; letter-spacing: 0.15em;
      color: var(--text-faint); font-weight: 700; margin-bottom: 16px;
    }
    .cac-tier p {
      font-size:14px; line-height: 1.65; color: var(--text-soft);
      margin-bottom: 10px;
    }
    .cac-tier p:last-child { margin-bottom: 0; }
    .cac-tier strong { color: var(--charcoal); font-weight: 600; }
    .cac-tier em { color: var(--charcoal); font-style: italic; }
    .cac-tier-caveat {
      margin-top: 12px !important; padding-top: 12px;
      border-top: 1px dashed var(--border-strong);
      font-size:14px !important;
    }

    /* CAC callouts (paradox + bottom line) */
    .cac-callout {
      border-radius: var(--radius); padding: 28px;
      margin-top: 32px;
    }
    .cac-callout-paradox {
      background: var(--surface);
      border: 1px solid var(--plum); border-left: 5px solid var(--plum);
    }
    .cac-callout-bottom {
      background: var(--surface);
      border: 1px solid var(--primary-soft); border-left: 5px solid var(--primary);
    }
    .cac-callout h4 {
      font-family: var(--font-display); font-size: 18px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 14px; letter-spacing: -0.01em;
    }
    .cac-callout-paradox h4 { color: var(--plum); }
    .cac-callout p {
      font-size: 14.5px; line-height: 1.7; color: var(--text-soft);
      margin-bottom: 12px;
    }
    .cac-callout p:last-child { margin-bottom: 0; }
    .cac-callout strong { color: var(--charcoal); font-weight: 600; }
    .cac-callout em { color: var(--charcoal); font-style: italic; }
    .cac-access {
      font-size:14px !important; margin-top: 16px !important;
      padding-top: 14px; border-top: 1px dashed var(--border-strong);
    }

    /* Action plan */
    .cac-action { margin-top: 36px; }
    .cac-action > h4 {
      font-family: var(--font-display); font-size: 19px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 8px; letter-spacing: -0.01em;
    }
    .cac-action > p {
      font-size: 14px; color: var(--text-soft); line-height: 1.65;
      margin-bottom: 22px;
    }
    .cac-action > p strong { color: var(--charcoal); font-weight: 600; }
    .cac-action-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 18px;
    }
    .cac-action-card {
      background: var(--cream); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 26px;
      position: relative;
    }
    .cac-action-num {
      position: absolute; top: -14px; left: 22px;
      width: 32px; height: 32px; border-radius: 50%;
      background: var(--primary); color: white;
      font-family: var(--font-display); font-size: 15px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 2px 6px rgba(10, 79, 91, 0.25);
    }
    .cac-action-card h5 {
      font-family: var(--font-display); font-size: 15.5px; font-weight: 600;
      color: var(--primary-deep); margin-top: 6px; margin-bottom: 10px;
      letter-spacing: -0.005em; line-height: 1.35;
    }
    .cac-action-card > p {
      font-size:14px; line-height: 1.6; color: var(--text-soft);
      margin-bottom: 12px;
    }
    .cac-action-card ul {
      font-size:14px; line-height: 1.6; color: var(--text-soft);
      padding-left: 18px;
    }
    .cac-action-card li { margin-bottom: 10px; }
    .cac-action-card li:last-child { margin-bottom: 0; }
    .cac-action-card strong { color: var(--charcoal); font-weight: 600; }

    /* ====== REACTIVE HYPOGLYCAEMIA CALLOUT (inside CGM section) ====== */
    .cgm-rh-callout {
      background: var(--surface);
      border: 1px solid var(--coral); border-left: 5px solid var(--coral);
      border-radius: var(--radius); padding: 28px; margin-top: 22px;
    }
    .cgm-rh-callout h5 {
      font-family: var(--font-display); font-size: 17px; font-weight: 600;
      color: var(--coral-deep); margin-bottom: 12px; letter-spacing: -0.01em;
      display: flex; align-items: center; gap: 10px;
    }
    .cgm-rh-callout h5 .rh-icon {
      display: inline-flex; align-items: center; justify-content: center;
      width: 30px; height: 30px; border-radius: 50%;
      background: var(--coral); color: white;
      font-size: 16px; flex-shrink: 0;
    }
    .cgm-rh-callout p {
      font-size: 14px; line-height: 1.7; color: var(--text-soft);
      margin-bottom: 12px;
    }
    .cgm-rh-callout p:last-child { margin-bottom: 0; }
    .cgm-rh-callout strong { color: var(--charcoal); font-weight: 600; }
    .cgm-rh-callout em { color: var(--charcoal); font-style: italic; }

    .rh-pattern-box {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-sm); padding: 18px 22px;
      margin: 16px 0;
    }
    .rh-pattern-box h6 {
      font-family: var(--font-display); font-size: 14px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 10px; letter-spacing: -0.005em;
    }
    .rh-pattern-box ul {
      font-size:14px; line-height: 1.65; color: var(--text-soft);
      padding-left: 18px; margin: 0;
    }
    .rh-pattern-box li { margin-bottom: 6px; }
    .rh-pattern-box li:last-child { margin-bottom: 0; }
    .rh-pattern-box strong { color: var(--charcoal); font-weight: 600; }

    .rh-whipple {
      background: var(--cream-deep); border-left: 3px solid var(--amber);
      padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      margin: 16px 0;
      font-size:14px; line-height: 1.6; color: var(--text-soft);
    }
    .rh-whipple strong { color: var(--charcoal); font-weight: 600; }

    .rh-link-list {
      background: var(--primary-pale); border-radius: var(--radius-sm);
      padding: 18px 22px; margin-top: 16px;
    }
    .rh-link-list h6 {
      font-family: var(--font-display); font-size: 14px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 10px;
    }
    .rh-link-list ul {
      font-size:14px; line-height: 1.7; color: var(--primary-deep);
      padding-left: 18px; margin: 0;
    }
    .rh-link-list li { margin-bottom: 6px; }
    .rh-link-list li:last-child { margin-bottom: 0; }
    .rh-link-list strong { color: var(--primary-deep); font-weight: 700; }

    /* Mobile tweaks for both blocks */
    @media (max-width: 720px) {
      .cac-wrap { padding: 28px 22px; }
      .cac-tier { padding: 22px 20px; }
      .cac-tier-score { font-size: 32px; }
      .cac-callout { padding: 22px; }
      .cac-action-card { padding: 22px 20px; }
      .cac-action-num { left: 18px; }
      .cgm-rh-callout { padding: 22px; }
      .rh-pattern-box { padding: 14px 16px; }
    }

    /* DIET */
    .diet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .diet-col {
      background: var(--surface); border-radius: var(--radius);
      padding: 32px; border: 1px solid var(--border);
    }
    .diet-col.add { border-left: 4px solid var(--sage); }
    .diet-col.limit { border-left: 4px solid var(--coral); }
    .diet-col h4 {
      font-family: var(--font-display); font-size: 22px; font-weight: 600;
      margin-bottom: 20px; letter-spacing: -0.015em;
      display: flex; align-items: center; gap: 10px;
    }
    .diet-col.add h4 { color: var(--sage-deep); }
    .diet-col.limit h4 { color: var(--coral); }
    .diet-col ul { list-style: none; }
    .diet-col li {
      padding: 11px 0; font-size: 14px;
      border-bottom: 1px dotted var(--border);
      display: flex; gap: 14px; align-items: flex-start; line-height: 1.55;
    }
    .diet-col li:last-child { border-bottom: none; }
    .diet-col li::before {
      content: ''; flex-shrink: 0; width: 7px; height: 7px;
      border-radius: 50%; margin-top: 8px;
    }
    .diet-col.add li::before { background: var(--sage); }
    .diet-col.limit li::before { background: var(--coral); }
    .diet-col strong { color: var(--charcoal); font-weight: 600; }

    /* Food-group subheadings inside diet columns */
    .diet-group-title {
      font-family: var(--font-display);
      font-size: 14px; font-weight: 600;
      letter-spacing: 0.04em; text-transform: uppercase;
      margin: 22px 0 8px;
      padding-bottom: 6px;
      color: var(--text-soft);
    }
    .diet-group-title:first-of-type { margin-top: 4px; }
    .diet-col.add .diet-group-title { border-bottom: 1px solid var(--sage-soft); color: var(--sage-deep); }
    .diet-col.limit .diet-group-title { border-bottom: 1px solid var(--coral-soft); color: var(--coral-deep); }
    .diet-col .group-list { list-style: none; margin-bottom: 4px; }

    /* Gluten-free callout panel */
    .gluten-callout {
      background: var(--surface);
      border: 1px solid var(--amber);
      border-left: 5px solid var(--amber);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-top: 28px;
      box-shadow: var(--shadow);
    }
    .gluten-callout h4 {
      font-family: var(--font-display);
      font-size: 22px; font-weight: 600;
      color: var(--amber-deep); margin-bottom: 14px;
      letter-spacing: -0.015em; line-height: 1.25;
    }
    .gluten-callout p {
      font-size: 14.5px; color: var(--text-soft);
      line-height: 1.7; margin-bottom: 12px;
    }
    .gluten-callout p:last-child { margin-bottom: 0; }
    .gluten-callout strong { color: var(--charcoal); font-weight: 600; }
    .gluten-callout em { color: var(--charcoal); font-style: italic; }
    .gluten-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 14px;
      margin-top: 18px;
    }
    .gluten-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 16px 18px;
    }
    .gluten-card h5 {
      font-family: var(--font-display);
      font-size: 14px; font-weight: 600;
      color: var(--amber-deep); margin-bottom: 6px;
      letter-spacing: -0.01em;
    }
    .gluten-card p { font-size:14px; color: var(--text-soft); line-height: 1.55; margin: 0; }
    .gluten-card p strong { color: var(--charcoal); }

    /* ============================================================
       FOUNDATION CALLOUT — "food first, supplements are helpers"
       (intro banner at the top of Section 1)
       ============================================================ */
    .foundation-callout {
      background: var(--surface);
      color: #fff;
      border-radius: var(--radius-lg);
      padding: 34px 36px;
      margin-bottom: 30px;
      box-shadow: var(--shadow-lg);
      position: relative;
      overflow: hidden;
    }
    .foundation-callout::after {
      content: '';
      position: absolute; top: -40%; right: -8%;
      width: 260px; height: 260px; border-radius: 50%;
      background: rgba(255,255,255,0.05);
    }
    .foundation-eyebrow {
      display: inline-block;
      font-size:14px; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--cream-warm);
      background: rgba(255,255,255,0.12);
      padding: 5px 12px; border-radius: 20px; margin-bottom: 14px;
    }
    .foundation-callout h3 {
      font-family: var(--font-display); font-weight: 600;
      font-size: 27px; line-height: 1.2; letter-spacing: -0.02em;
      color: #fff; margin-bottom: 14px; position: relative; z-index: 1;
    }
    .foundation-callout h3 em { font-style: italic; color: #ffe6b8; font-weight: 500; }
    .foundation-callout > p {
      font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.92);
      margin-bottom: 14px; max-width: 760px; position: relative; z-index: 1;
    }
    .foundation-callout > p:last-of-type { margin-bottom: 0; }
    .foundation-callout strong { color: #fff; font-weight: 700; }
    .foundation-callout a { color: #ffe6b8; font-weight: 600; border-bottom: 1px solid currentColor; text-decoration: none; }
    .foundation-pillars {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 14px; margin-top: 22px; position: relative; z-index: 1;
    }
    .foundation-pillar {
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: var(--radius-sm);
      padding: 16px 18px;
    }
    .foundation-pillar .fp-num {
      font-family: var(--font-display); font-size:14px; font-weight: 700;
      color: #ffe6b8; letter-spacing: 0.05em; margin-bottom: 6px;
    }
    .foundation-pillar h4 {
      font-family: var(--font-display); font-size: 16px; font-weight: 600;
      color: #fff; margin-bottom: 5px; letter-spacing: -0.01em;
    }
    .foundation-pillar p { font-size:14px; line-height: 1.55; color: rgba(255,255,255,0.85); margin: 0; }

    /* ============================================================
       VIGOROUS-INTENSITY PANEL (Section 12 — Exercise)
       ============================================================ */
    .vigor-panel {
      background: var(--surface);
      border: 1px solid var(--coral);
      border-left: 5px solid var(--coral);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-top: 28px;
      box-shadow: var(--shadow);
    }
    .vigor-panel h4 {
      font-family: var(--font-display); font-size: 22px; font-weight: 600;
      color: var(--coral-deep); margin-bottom: 14px;
      letter-spacing: -0.015em; line-height: 1.25;
    }
    .vigor-panel > p { font-size: 14.5px; color: var(--text-soft); line-height: 1.7; margin-bottom: 14px; }
    .vigor-panel strong { color: var(--charcoal); font-weight: 600; }
    .vigor-panel em { color: var(--charcoal); font-style: italic; }
    .vigor-panel a { color: var(--primary); font-weight: 600; border-bottom: 1px solid currentColor; text-decoration: none; }

    .vigor-ladder {
      display: grid; gap: 10px; margin: 20px 0 8px;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 18px;
    }
    .vigor-row { display: grid; grid-template-columns: 130px 1fr 92px; align-items: center; gap: 14px; }
    .vigor-row .vr-label {
      font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--charcoal);
    }
    .vigor-row .vr-label small { display: block; font-size:14px; color: var(--text-faint); font-weight: 500; font-family: var(--font-body); }
    .vigor-track { background: var(--cream-deep); border-radius: 20px; height: 26px; overflow: hidden; }
    .vigor-fill {
      height: 100%; border-radius: 20px; display: flex; align-items: center; justify-content: flex-end;
      padding-right: 10px; color: #fff; font-size:14px; font-weight: 700; min-width: 30px;
    }
    .vigor-fill.light    { background: var(--text-faint); }
    .vigor-fill.moderate { background: var(--sage); }
    .vigor-fill.vigorous { background: var(--coral); }
    .vigor-row .vr-equiv {
      font-family: var(--font-display); font-weight: 700; font-size:14px;
      color: var(--text-soft); text-align: right; font-variant-numeric: tabular-nums;
    }
    .vigor-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
    .vigor-stat { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--coral); border-radius: var(--radius-sm); padding: 16px 18px; }
    .vigor-stat .vs-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--coral-deep); letter-spacing: -0.02em; line-height: 1; }
    .vigor-stat .vs-num small { font-size: 14px; color: var(--text-faint); font-weight: 500; }
    .vigor-stat p { font-size:14px; color: var(--text-soft); line-height: 1.5; margin: 8px 0 0; }
    .vigor-note {
      background: var(--cream); border-left: 3px solid var(--primary);
      padding: 14px 18px; border-radius: var(--radius-sm);
      font-size:14px; color: var(--text-soft); line-height: 1.65; margin-top: 8px;
    }
    .vigor-note strong { color: var(--charcoal); }

    /* ============================================================
       SUGAR-EQUIVALENCE COMPARISON (Section 11 — Diet)
       ============================================================ */
    .sugar-compare {
      background: var(--surface);
      border: 1px solid var(--coral);
      border-left: 5px solid var(--coral);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-bottom: 30px;
      box-shadow: var(--shadow);
    }
    .sugar-compare h3 {
      font-family: var(--font-display); font-size: 24px; font-weight: 600;
      color: var(--coral-deep); margin-bottom: 14px; letter-spacing: -0.02em; line-height: 1.2;
    }
    .sugar-compare > p { font-size: 14.5px; color: var(--text-soft); line-height: 1.7; margin-bottom: 14px; }
    .sugar-compare strong { color: var(--charcoal); font-weight: 600; }
    .sugar-compare em { color: var(--charcoal); font-style: italic; }
    .sugar-compare a { color: var(--primary); font-weight: 600; border-bottom: 1px solid currentColor; text-decoration: none; }

    .sugar-ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
    .sugar-ref-card {
      background: var(--charcoal); color: #fff;
      border-radius: var(--radius); padding: 18px 20px; text-align: center;
    }
    .sugar-ref-card .sr-emoji { font-size: 26px; }
    .sugar-ref-card .sr-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 6px 0 4px; }
    .sugar-ref-card .sr-tsp { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: #ffce6b; line-height: 1; letter-spacing: -0.02em; }
    .sugar-ref-card .sr-tsp small { font-size:14px; color: rgba(255,255,255,0.7); font-weight: 500; }
    .sugar-ref-card .sr-sub { font-size:14px; color: rgba(255,255,255,0.7); margin-top: 6px; line-height: 1.4; }

    .sugar-table-wrap { background: var(--surface); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow-sm); overflow-x: auto; margin-top: 8px; }
    .sugar-table { width: 100%; border-collapse: collapse; font-size:14px; min-width: 660px; }
    .sugar-table th.gl-head { text-align: right; white-space: nowrap; }
    .sugar-table td.gl { text-align: right; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; padding-right: 18px; }
    .sugar-table td.gl .gl-num { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--charcoal); display: block; line-height: 1.05; }
    .sugar-table td.gl .gl-band { display: block; font-size:14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
    .sugar-table td.gl .gl-band.high { color: var(--coral-deep); }
    .sugar-table td.gl .gl-band.med  { color: var(--amber-deep); }
    .sugar-table td.gl .gl-band.low  { color: var(--sage-deep); }
    .sugar-table th {
      padding: 12px 16px; text-align: left; font-weight: 700; font-size:14px;
      letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft);
      border-bottom: 1px solid var(--border);
    }
    .sugar-table th:last-child { text-align: right; }
    .sugar-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
    .sugar-table tr:last-child td { border-bottom: none; }
    .sugar-table td.food { font-family: var(--font-display); font-weight: 600; color: var(--charcoal); white-space: nowrap; }
    .sugar-table td.food small { display: block; font-family: var(--font-body); font-size:14px; color: var(--text-faint); font-weight: 500; }
    .sugar-bar-cell { width: 55%; }
    .sugar-bar-track { background: var(--cream-deep); border-radius: 16px; height: 22px; position: relative; overflow: hidden; }
    .sugar-bar-fill { height: 100%; border-radius: 16px; min-width: 8px; }
    .sugar-bar-fill.high { background: linear-gradient(90deg, var(--coral), var(--coral-deep)); }
    .sugar-bar-fill.mid  { background: linear-gradient(90deg, var(--amber), var(--amber-deep)); }
    .sugar-bar-fill.low  { background: linear-gradient(90deg, var(--sage), var(--sage-deep)); }
    .sugar-coke-line { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--charcoal); opacity: 0.45; }
    .sugar-table td.tsp { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--charcoal); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .sugar-table td.tsp.is-high { color: var(--coral-deep); }
    .sugar-table td.tsp small { font-size:14px; color: var(--text-faint); font-weight: 500; }

    .sugar-caveat {
      background: var(--primary-pale); border-left: 3px solid var(--primary);
      padding: 16px 20px; border-radius: var(--radius-sm); margin-top: 20px;
      font-size:14px; color: var(--text-soft); line-height: 1.65;
    }
    .sugar-caveat h5 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--primary-deep); margin-bottom: 6px; }
    .sugar-caveat strong { color: var(--charcoal); }
    .rs-tip {
      background: var(--surface);
      border: 1px solid var(--border); border-left: 5px solid var(--sage);
      padding: 16px 20px; border-radius: var(--radius-sm); margin-top: 16px;
      font-size:14px; color: var(--text-soft); line-height: 1.65;
    }
    .rs-tip h5 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--sage-deep); margin-bottom: 6px; }
    .rs-tip strong { color: var(--charcoal); }
    .sugar-blood-fact {
      display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
      background: var(--cream-warm); border-radius: var(--radius-sm);
      padding: 14px 18px; margin: 18px 0; border-left: 3px solid var(--amber);
    }
    .sugar-blood-fact .sbf-big { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--amber-deep); line-height: 1; }
    .sugar-blood-fact p { font-size:14px; color: var(--text-soft); line-height: 1.55; margin: 0; flex: 1; min-width: 220px; }
    .sugar-blood-fact strong { color: var(--charcoal); }

    /* ============================================================
       ENVIRONMENTAL-LOAD PANEL (Section 6 — Longevity)
       ============================================================ */
    .envload-panel {
      background: var(--surface);
      border: 1px solid var(--plum);
      border-left: 5px solid var(--plum);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-top: 28px;
      box-shadow: var(--shadow);
    }
    .envload-panel h4 {
      font-family: var(--font-display); font-size: 23px; font-weight: 600;
      color: var(--plum); margin-bottom: 14px; letter-spacing: -0.015em; line-height: 1.25;
    }
    .envload-panel > p { font-size: 14.5px; color: var(--text-soft); line-height: 1.7; margin-bottom: 14px; }
    .envload-panel strong { color: var(--charcoal); font-weight: 600; }
    .envload-panel em { color: var(--charcoal); font-style: italic; }
    .envload-panel a { color: var(--primary); font-weight: 600; border-bottom: 1px solid currentColor; text-decoration: none; }
    .envload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 14px; margin-top: 18px; }
    .envload-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 17px 19px; border-top: 3px solid var(--plum); }
    .envload-card h5 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--plum); margin-bottom: 7px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
    .envload-card p { font-size:14px; color: var(--text-soft); line-height: 1.58; margin: 0 0 8px; }
    .envload-card p:last-child { margin-bottom: 0; }
    .envload-card p strong { color: var(--charcoal); }
    .envload-card .el-do { font-size:14px; color: var(--sage-deep); background: var(--sage-soft); padding: 8px 11px; border-radius: 6px; line-height: 1.5; }
    .envload-card .el-do strong { color: var(--sage-deep); }
    .envload-evidence {
      background: var(--cream); border-left: 3px solid var(--plum);
      padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 18px;
      font-size:14px; color: var(--text-soft); line-height: 1.65;
    }
    .envload-evidence strong { color: var(--charcoal); }
    .envload-grade { display: inline-block; font-size:14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 10px; margin-left: auto; }
    .envload-grade.strong-ev { background: var(--coral); color: #fff; }
    .envload-grade.emerging  { background: var(--amber); color: #fff; }
    .envload-grade.balance   { background: var(--sage); color: #fff; }
    .envload-grade.moderate  { background: var(--slate, #5b6b7c); color: #fff; }

    @media (max-width: 600px) {
      .foundation-callout, .vigor-panel, .sugar-compare, .envload-panel { padding: 22px; }
      .foundation-callout h3 { font-size: 22px; }
      .sugar-compare h3 { font-size: 20px; }
      .vigor-row { grid-template-columns: 96px 1fr 64px; gap: 9px; }
      .sugar-table th, .sugar-table td { padding: 9px 11px; }
    }

    /* Fish omega-3 content panel */
    .fish-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 5px solid var(--sage);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-top: 28px;
      box-shadow: var(--shadow);
    }
    .fish-panel h4 {
      font-family: var(--font-display);
      font-size: 22px; font-weight: 600;
      color: var(--sage-deep); margin-bottom: 14px;
      letter-spacing: -0.015em;
    }
    .fish-panel > p {
      font-size: 14.5px; color: var(--text-soft);
      line-height: 1.7; margin-bottom: 18px;
    }
    .fish-panel strong { color: var(--charcoal); font-weight: 600; }
    .fish-panel em { color: var(--charcoal); font-style: italic; }
    .fish-table-wrap {
      background: var(--surface);
      border-radius: var(--radius);
      padding: 6px;
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }
    .fish-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .fish-table th {
      padding: 13px 18px; text-align: left;
      font-weight: 700; font-size:14px;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--text-soft);
      border-bottom: 1px solid var(--border);
    }
    .fish-table th:nth-child(2) { text-align: center; }
    .fish-table td {
      padding: 12px 18px;
      border-bottom: 1px solid var(--border);
    }
    .fish-table tr:last-child td { border-bottom: none; }
    .fish-table td:first-child {
      font-family: var(--font-display); font-weight: 600;
      color: var(--charcoal); font-size: 14px;
    }
    .fish-table td:nth-child(2) {
      font-family: var(--font-display); font-weight: 600;
      text-align: center; font-variant-numeric: tabular-nums;
      font-size: 15px; white-space: nowrap;
    }
    .fish-table tr.oily td:nth-child(2) { color: var(--sage-deep); }
    .fish-table tr.white td:nth-child(2) { color: var(--amber-deep); }
    .fish-table td:last-child {
      font-size:14px; color: var(--text-soft); line-height: 1.45;
    }
    .fish-shellfish-note {
      margin-top: 14px;
      padding: 14px 18px;
      background: var(--cream);
      border-radius: var(--radius-sm);
      border-left: 3px solid var(--primary);
      font-size:14px; color: var(--text-soft); line-height: 1.65;
    }
    .fish-shellfish-note strong { color: var(--charcoal); font-weight: 600; }
    @media (max-width: 600px) {
      .fish-table th, .fish-table td { padding: 10px 12px; font-size:14px; }
      .fish-table td:last-child { font-size:14px; }
    }

    /* MILK PANEL — saturated fat vs iodine trade-off */
    .milk-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 5px solid var(--primary);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-top: 28px;
      box-shadow: var(--shadow);
    }
    .milk-panel h4 {
      font-family: var(--font-display);
      font-size: 22px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 14px;
      letter-spacing: -0.015em; line-height: 1.25;
    }
    .milk-panel > p {
      font-size: 14.5px; color: var(--text-soft);
      line-height: 1.7; margin-bottom: 14px;
    }
    .milk-panel strong { color: var(--charcoal); font-weight: 600; }
    .milk-panel em { color: var(--charcoal); font-style: italic; }
    .milk-iodine-callout {
      background: var(--cream-warm);
      border-left: 3px solid var(--amber);
      padding: 14px 18px;
      margin: 18px 0;
      border-radius: var(--radius-sm);
      font-size:14px; color: var(--text-soft); line-height: 1.65;
    }
    .milk-iodine-callout strong { color: var(--amber-deep); font-weight: 700; }

    .milk-table-wrap {
      background: var(--surface);
      border-radius: var(--radius);
      padding: 6px;
      box-shadow: var(--shadow-sm);
      overflow-x: auto;
      margin-top: 8px;
    }
    .milk-table { width: 100%; border-collapse: collapse; font-size:14px; min-width: 580px; }
    .milk-table th {
      padding: 12px 14px; text-align: left;
      font-weight: 700; font-size:14px;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--text-soft);
      border-bottom: 1px solid var(--border);
      vertical-align: bottom;
    }
    .milk-table th:not(:first-child) { text-align: center; }
    .milk-table th small {
      display: block;
      font-size:14px;
      font-weight: 500;
      color: var(--text-faint);
      letter-spacing: 0.02em;
      text-transform: none;
      margin-top: 2px;
    }
    .milk-table td {
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      font-variant-numeric: tabular-nums;
    }
    .milk-table tr:last-child td { border-bottom: none; }
    .milk-table td:first-child {
      font-family: var(--font-display); font-weight: 600;
      color: var(--charcoal); font-size: 14px;
    }
    .milk-table td:not(:first-child) {
      text-align: center;
      font-family: var(--font-display); font-weight: 600;
      font-size: 14.5px;
      color: var(--primary-deep);
    }
    /* Colour-coded saturated-fat column to flag the trade-off */
    .milk-table .sat-high { color: var(--coral); }
    .milk-table .sat-mid { color: var(--amber-deep); }
    .milk-table .sat-low { color: var(--sage-deep); }
    .milk-table .rec-chol { color: var(--coral-deep); }
    .milk-table .rec-gen { color: var(--text-soft); }
    .milk-rec-row {
      background: var(--surface);
    }
    .milk-rec-row td:first-child {
      font-size:14px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--primary-deep) !important;
    }
    .milk-rec-row td:not(:first-child) {
      font-size:14px;
      font-family: var(--font-body);
      font-weight: 500;
    }

    .milk-plant-note {
      margin-top: 14px;
      padding: 14px 18px;
      background: var(--cream);
      border-radius: var(--radius-sm);
      border-left: 3px solid var(--sage);
      font-size:14px; color: var(--text-soft); line-height: 1.65;
    }
    .milk-plant-note strong { color: var(--charcoal); font-weight: 600; }
    .milk-plant-note em { color: var(--charcoal); font-style: italic; }

    @media (max-width: 600px) {
      .milk-table th, .milk-table td { padding: 9px 10px; font-size:14px; }
      .milk-table td:first-child { font-size:14px; }
      .milk-table td:not(:first-child) { font-size:14px; }
    }

    /* MEAL TIMING / LIVER FASTING */
    .timing-panel {
      background: var(--surface);
      border: 1px solid var(--primary-soft);
      border-left: 5px solid var(--primary);
      border-radius: var(--radius-lg);
      padding: 38px;
      margin-top: 40px;
      box-shadow: var(--shadow);
    }
    .timing-panel h3 {
      font-family: var(--font-display);
      font-size: 24px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 14px;
      letter-spacing: -0.015em;
    }
    .timing-panel > p {
      font-size: 14.5px; color: var(--text-soft);
      line-height: 1.7; margin-bottom: 14px;
    }
    .timing-panel strong { color: var(--charcoal); font-weight: 600; }
    .timing-panel em { color: var(--charcoal); font-style: italic; }

    .timing-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px; margin-top: 22px;
    }
    .timing-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 22px;
      box-shadow: var(--shadow-sm);
    }
    .timing-card .timing-icon {
      width: 38px; height: 38px;
      border-radius: 10px;
      background: var(--primary-pale);
      color: var(--primary);
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 18px; margin-bottom: 12px;
    }
    .timing-card h5 {
      font-family: var(--font-display);
      font-size: 16px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 4px;
      letter-spacing: -0.01em; line-height: 1.25;
    }
    .timing-card .timing-target {
      font-family: var(--font-display);
      font-size: 22px; font-weight: 600;
      color: var(--primary); letter-spacing: -0.02em;
      margin-bottom: 8px; line-height: 1.1;
    }
    .timing-card .timing-target small {
      font-family: var(--font-body); font-size:14px;
      color: var(--text-soft); font-weight: 400; margin-left: 4px;
    }
    .timing-card p { font-size:14px; color: var(--text-soft); line-height: 1.55; margin: 0; }

    .timing-caveat {
      background: var(--coral-soft);
      border-left: 3px solid var(--coral);
      padding: 14px 18px;
      margin-top: 22px;
      border-radius: var(--radius-sm);
      font-size:14px; color: var(--coral-deep);
      line-height: 1.6;
    }
    .timing-caveat strong { color: var(--coral-deep); font-weight: 700; }
    .exercise-intro {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 5px solid var(--sage);
      border-radius: var(--radius-lg);
      padding: 36px;
      margin-bottom: 32px;
      box-shadow: var(--shadow);
    }
    .exercise-intro h3 {
      font-family: var(--font-display);
      font-size: 24px; font-weight: 600;
      color: var(--sage-deep); margin-bottom: 14px;
      letter-spacing: -0.015em;
    }
    .exercise-intro p {
      font-size: 14.5px; color: var(--text-soft);
      line-height: 1.7; margin-bottom: 12px;
    }
    .exercise-intro p:last-child { margin-bottom: 0; }
    .exercise-intro strong { color: var(--charcoal); font-weight: 600; }

    .ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-bottom: 32px; }
    .ex-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 28px;
      box-shadow: var(--shadow); transition: all 0.25s;
    }
    .ex-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
    .ex-card-icon {
      width: 44px; height: 44px;
      border-radius: 12px;
      background: var(--sage-soft);
      color: var(--sage-deep);
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 22px; margin-bottom: 14px;
    }
    .ex-card h4 {
      font-family: var(--font-display);
      font-size: 20px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 10px;
      line-height: 1.25; letter-spacing: -0.015em;
    }
    .ex-card .ex-target {
      display: inline-block;
      font-family: var(--font-display);
      font-size: 28px; font-weight: 600;
      color: var(--sage-deep);
      letter-spacing: -0.02em;
      margin-bottom: 8px;
      line-height: 1.1;
    }
    .ex-card .ex-target small {
      font-family: var(--font-body); font-size:14px;
      color: var(--text-soft); font-weight: 400;
      margin-left: 5px;
    }
    .ex-card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 10px; }
    .ex-card p:last-child { margin-bottom: 0; }
    .ex-card strong { color: var(--charcoal); font-weight: 600; }

    .ex-checker {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-bottom: 32px;
      box-shadow: var(--shadow);
    }
    .ex-checker h4 {
      font-family: var(--font-display);
      font-size: 22px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 8px;
      letter-spacing: -0.015em;
    }
    .ex-checker > p {
      font-size: 14px; color: var(--text-soft);
      line-height: 1.6; margin-bottom: 22px;
    }
    .ex-tests { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
    .ex-test {
      padding: 18px; background: var(--cream);
      border-radius: var(--radius-sm);
      border-left: 3px solid var(--sage);
    }
    .ex-test h5 {
      font-family: var(--font-display);
      font-size: 15px; font-weight: 600;
      color: var(--charcoal); margin-bottom: 4px;
      letter-spacing: -0.01em;
    }
    .ex-test p { font-size:14px; color: var(--text-soft); line-height: 1.55; margin: 0; }

    .waist-panel {
      background: var(--surface);
      border: 1px solid var(--coral);
      border-left: 5px solid var(--coral);
      border-radius: var(--radius-lg);
      padding: 36px;
      box-shadow: var(--shadow);
    }
    .waist-panel h4 {
      font-family: var(--font-display);
      font-size: 22px; font-weight: 600;
      color: var(--coral-deep); margin-bottom: 12px;
      letter-spacing: -0.015em;
    }
    .waist-panel > p {
      font-size: 14.5px; color: var(--text-soft);
      line-height: 1.7; margin-bottom: 22px; max-width: 800px;
    }
    .waist-panel strong { color: var(--charcoal); font-weight: 600; }
    .waist-table-wrap {
      background: var(--surface);
      border-radius: var(--radius);
      padding: 6px;
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }
    .waist-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .waist-table th {
      padding: 14px 18px; text-align: left;
      font-weight: 700; font-size:14px;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--text-soft);
      border-bottom: 1px solid var(--border);
    }
    .waist-table td {
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      font-variant-numeric: tabular-nums;
    }
    .waist-table tr:last-child td { border-bottom: none; }
    .waist-table td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--primary-deep); font-size: 14.5px; }
    .waist-table .risk-cell {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 12px;
      font-size:14px; font-weight: 700;
      letter-spacing: 0.08em; text-transform: uppercase;
    }
    .waist-table .risk-low { background: var(--sage-soft); color: var(--sage-deep); }
    .waist-table .risk-mod { background: var(--amber-soft); color: var(--amber-deep); }
    .waist-table .risk-high { background: var(--coral-soft); color: var(--coral); }

    /* ADVANCED GENETICS & DIAGNOSTICS */
    .adv-collapse {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      overflow: hidden;
      margin-bottom: 28px;
    }
    .adv-collapse-header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 28px 34px; cursor: pointer; user-select: none;
      transition: background 0.2s; gap: 20px;
    }
    .adv-collapse-header:hover { background: var(--cream); }
    .adv-collapse-header .adv-head-text { flex: 1; }
    .adv-collapse-header h3 {
      font-family: var(--font-display);
      font-size: 22px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 4px;
      letter-spacing: -0.015em; line-height: 1.25;
    }
    .adv-collapse-header h3 small {
      display: block; font-family: var(--font-body);
      font-size:14px; color: var(--text-soft);
      font-weight: 400; margin-top: 4px; letter-spacing: 0;
    }
    .adv-collapse-icon {
      flex-shrink: 0; width: 38px; height: 38px;
      display: flex; align-items: center; justify-content: center;
      color: var(--primary); background: var(--primary-pale);
      border-radius: 50%; transition: transform 0.3s;
    }
    .adv-collapse.open .adv-collapse-icon { transform: rotate(180deg); }
    .adv-collapse-body {
      display: none; padding: 0 34px 34px;
      border-top: 1px solid var(--border);
    }
    .adv-collapse.open .adv-collapse-body { display: block; }

    .adv-subsection { padding-top: 32px; }
    .adv-subsection:not(:last-child) { padding-bottom: 32px; border-bottom: 1px solid var(--border); }
    .adv-sub-eyebrow {
      display: inline-block; font-size:14px;
      letter-spacing: 0.18em; text-transform: uppercase;
      font-weight: 700; margin-bottom: 10px;
      padding: 4px 12px; border-radius: 12px;
    }
    .adv-sub-eyebrow.genetics { background: var(--plum-soft); color: var(--plum); }
    .adv-sub-eyebrow.diagnostics { background: var(--amber-soft); color: var(--amber-deep); }
    .adv-subsection h4 {
      font-family: var(--font-display);
      font-size: 24px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 14px;
      letter-spacing: -0.02em; line-height: 1.2;
    }
    .adv-subsection > p {
      font-size: 14.5px; color: var(--text-soft);
      line-height: 1.7; margin-bottom: 16px; max-width: 880px;
    }
    .adv-subsection strong { color: var(--charcoal); font-weight: 600; }
    .adv-subsection em { color: var(--charcoal); font-style: italic; }
    .adv-group-title {
      font-family: var(--font-display);
      font-size: 17px; font-weight: 600;
      color: var(--charcoal); margin: 26px 0 14px;
      letter-spacing: -0.01em;
      padding-left: 12px;
      border-left: 3px solid var(--plum);
    }
    .adv-group-title.dx { border-left-color: var(--amber); }

    .gene-grid, .adv-test-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
      gap: 18px; margin-bottom: 14px;
    }
    .gene-card, .adv-test-card {
      background: var(--cream); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 22px;
      transition: all 0.25s;
    }
    .gene-card:hover, .adv-test-card:hover {
      background: var(--surface); box-shadow: var(--shadow-sm);
      transform: translateY(-1px);
    }
    .gene-card .gene-name, .adv-test-card .test-title {
      font-family: var(--font-display);
      font-size: 17px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 4px;
      letter-spacing: -0.01em; line-height: 1.25;
    }
    .gene-card .gene-name em {
      font-style: normal; font-weight: 400;
      color: var(--text-soft); font-size:14px;
      display: block; margin-top: 2px;
    }
    .gene-card .gene-tag, .adv-test-card .test-tag {
      display: inline-block;
      font-size:14px; font-weight: 700;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 2px 8px; border-radius: 10px;
      margin-bottom: 10px;
    }
    .gene-card .gene-tag.fh { background: var(--coral-soft); color: var(--coral); }
    .gene-card .gene-tag.pgx { background: var(--primary-pale); color: var(--primary); }
    .gene-card .gene-tag.cv { background: var(--plum-soft); color: var(--plum); }
    .gene-card .gene-tag.iron { background: var(--amber-soft); color: var(--amber-deep); }
    .gene-card .gene-tag.tg { background: var(--sage-soft); color: var(--sage-deep); }
    .gene-card .gene-tag.poly { background: var(--cream-deep); color: var(--text-soft); }
    .adv-test-card .test-tag.imaging { background: var(--primary-pale); color: var(--primary); }
    .adv-test-card .test-tag.particle { background: var(--plum-soft); color: var(--plum); }
    .adv-test-card .test-tag.inflam { background: var(--coral-soft); color: var(--coral); }
    .adv-test-card .test-tag.metabolic { background: var(--sage-soft); color: var(--sage-deep); }

    .gene-card p, .adv-test-card p {
      font-size:14px; color: var(--text-soft);
      line-height: 1.6; margin: 0;
    }
    .gene-card p strong, .adv-test-card p strong { color: var(--charcoal); font-weight: 600; }
    .gene-card .gene-availability, .adv-test-card .test-availability {
      margin-top: 12px; padding-top: 10px;
      border-top: 1px dashed var(--border-strong);
      font-size:14px; color: var(--text-faint);
    }
    .gene-card .gene-availability strong, .adv-test-card .test-availability strong {
      color: var(--text-soft); font-weight: 600;
    }

    .adv-verdict {
      background: var(--surface);
      border-left: 4px solid var(--primary);
      border-radius: var(--radius);
      padding: 26px 30px; margin-top: 32px;
      font-size: 14.5px; color: var(--text-soft); line-height: 1.7;
    }
    .adv-verdict h5 {
      font-family: var(--font-display);
      font-size: 18px; font-weight: 600;
      color: var(--primary-deep); margin-bottom: 12px;
      letter-spacing: -0.015em;
    }
    .adv-verdict strong { color: var(--charcoal); font-weight: 600; }
    .adv-verdict em { color: var(--charcoal); font-style: italic; }

    .info-box {
      background: var(--surface); border-left: 4px solid var(--primary);
      border-radius: var(--radius-sm); padding: 22px 26px; margin: 28px 0;
      font-size: 14.5px; color: var(--text-soft); line-height: 1.7;
      box-shadow: var(--shadow-sm);
    }
    .info-box strong { color: var(--charcoal); font-weight: 600; }
    .info-box.warn { border-left-color: var(--coral); background: var(--coral-soft); }
    .info-box.warn strong { color: var(--coral-deep); }
    .info-box.thyroid {
      border-left-color: var(--plum);
      background: var(--plum-soft);
    }
    .info-box.thyroid strong { color: var(--plum); }

    /* DISCLAIMER */
    .disclaimer {
      background: var(--coral-soft); border-left: 4px solid var(--coral);
      padding: 28px 32px; border-radius: var(--radius);
      font-size:14px; color: var(--coral-deep); line-height: 1.7;
      margin: 60px 0 40px;
    }
    .disclaimer h4 {
      font-family: var(--font-display); color: var(--coral);
      font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
      margin-bottom: 12px; font-weight: 700;
    }

    /* FOOTER */
    .footer {
      padding: 56px 0; text-align: center;
      border-top: 1px solid var(--border);
      font-size:14px; color: var(--text-faint); line-height: 1.7;
    }
    .footer a { color: var(--primary); text-decoration: none; border-bottom: 1px solid currentColor; }

    /* RESPONSIVE */
    @media (max-width: 900px) {
      .context-grid, .calc-grid, .proj-grid, .diet-grid, .supp-grid, .tests-tier-grid {
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 700px) {
      section { padding: 100px 0; }
      .container { padding: 0 18px; }
      .hero { padding: 64px 0 48px; }
      .input-panel, .tier, .cgm-wrap, .diet-col, .stat-alt { padding: 24px; }
      .slider-row { grid-template-columns: 1fr; gap: 14px; }
      .value-display { text-align: left; }
      .input-block-header { flex-direction: column; align-items: stretch; }
      .section-head { gap: 16px; }
      .section-num { width: 38px; height: 38px; font-size: 16px; }
      .meal-table th, .meal-table td, .cgm-table th, .cgm-table td { padding: 12px 14px; font-size:14px; }
      .toc-inner { padding: 11px 18px; }
    }
    @media (max-width: 480px) {
      .proj-compare { flex-direction: column; gap: 4px; }
      .proj-current { font-size: 16px; }
      .supp-footer { flex-direction: column; align-items: flex-start; }
    }

    /* MISCONCEPTIONS SECTION */
    .myth-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
      gap: 22px;
    }
    .myth-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--coral);
      border-radius: var(--radius);
      padding: 26px;
      box-shadow: var(--shadow-sm);
      transition: all 0.25s;
      animation: fadeIn 0.4s ease both;
    }
    .myth-card:hover { box-shadow: var(--shadow); border-left-width: 5px; }
    .myth-tag {
      display: inline-block;
      font-size:14px;
      letter-spacing: 0.16em;
      font-weight: 700;
      text-transform: uppercase;
      padding: 3px 10px;
      border-radius: 10px;
      background: var(--coral-soft);
      color: var(--coral);
      margin-bottom: 14px;
    }
    .myth-card h4 {
      font-family: var(--font-display);
      font-size: 17.5px;
      font-weight: 600;
      color: var(--charcoal);
      margin-bottom: 12px;
      line-height: 1.3;
      font-style: italic;
      letter-spacing: -0.01em;
    }
    .myth-card p {
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.65;
      margin-bottom: 0;
    }
    .myth-card strong { color: var(--charcoal); font-weight: 600; }
    .myth-card em { color: var(--charcoal); font-style: italic; }

    /* CHILD-SPECIFIC PANEL */
    .child-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 5px solid var(--amber);
      border-radius: var(--radius-lg);
      padding: 38px;
      margin-top: 40px;
      box-shadow: var(--shadow);
    }
    .child-panel h3 {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 14px;
      letter-spacing: -0.015em;
    }
    .child-panel > p {
      font-size: 14.5px;
      color: var(--text-soft);
      line-height: 1.7;
      margin-bottom: 14px;
    }
    .child-panel > p:last-child { margin-bottom: 0; }
    .child-panel strong { color: var(--charcoal); font-weight: 600; }
    .child-panel em { color: var(--charcoal); font-style: italic; }

    /* SATURATED FAT EXPLAINER PANEL — sits at the end of misconceptions
       section. Sober/science aesthetic distinct from the warm amber child
       panel: deep primary border, neutral cream background, two-column
       layout for the "confirmed vs. nuanced" contrast that frames the
       modern position honestly. */
    .satfat-panel {
      background: var(--surface);
      border: 1px solid var(--border-strong);
      border-left: 5px solid var(--primary-deep);
      border-radius: var(--radius-lg);
      padding: 38px;
      margin-top: 40px;
      box-shadow: var(--shadow);
    }
    .satfat-panel h3 {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 14px;
      letter-spacing: -0.015em;
    }
    .satfat-panel .satfat-subtitle {
      font-size:14px;
      color: var(--text-faint);
      font-style: italic;
      margin-bottom: 22px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border);
      line-height: 1.55;
    }
    .satfat-panel > p {
      font-size: 14.5px;
      color: var(--text-soft);
      line-height: 1.7;
      margin-bottom: 14px;
    }
    .satfat-panel strong { color: var(--charcoal); font-weight: 600; }
    .satfat-panel em { color: var(--charcoal); font-style: italic; }
    .satfat-panel h4 {
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 600;
      color: var(--primary-deep);
      margin: 24px 0 10px;
      letter-spacing: -0.005em;
    }

    /* Two-column "what's confirmed / what's nuanced" grid */
    .satfat-twocol {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin: 20px 0 8px;
    }
    .satfat-twocol > div {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 18px 20px;
    }
    .satfat-twocol .sf-confirmed {
      border-left: 4px solid var(--sage);
    }
    .satfat-twocol .sf-nuanced {
      border-left: 4px solid var(--amber);
    }
    .satfat-twocol h5 {
      font-family: var(--font-display);
      font-size:14px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 12px;
    }
    .satfat-twocol .sf-confirmed h5 { color: var(--sage-deep); }
    .satfat-twocol .sf-nuanced h5 { color: var(--amber-deep); }
    .satfat-twocol ul {
      font-size:14px;
      line-height: 1.6;
      color: var(--text-soft);
      padding-left: 18px;
      margin: 0;
    }
    .satfat-twocol li { margin-bottom: 9px; }
    .satfat-twocol li:last-child { margin-bottom: 0; }
    .satfat-twocol strong { color: var(--charcoal); font-weight: 600; }

    /* "Different saturated fatty acids" callout */
    .satfat-acids {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--primary);
      border-radius: var(--radius-sm);
      padding: 16px 20px;
      margin: 20px 0;
      font-size:14px;
      line-height: 1.65;
      color: var(--text-soft);
    }
    .satfat-acids h4 {
      margin-top: 0;
      margin-bottom: 8px;
      color: var(--primary-deep);
    }
    .satfat-acids strong { color: var(--charcoal); font-weight: 600; }
    .satfat-acids em { color: var(--charcoal); font-style: italic; }

    /* Dairy paradox sub-block */
    .satfat-dairy {
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 16px 20px;
      margin: 18px 0;
      font-size:14px;
      line-height: 1.65;
      color: var(--text-soft);
    }
    .satfat-dairy h4 {
      margin-top: 0;
      margin-bottom: 8px;
      color: var(--primary-deep);
    }
    .satfat-dairy strong { color: var(--charcoal); font-weight: 600; }
    .satfat-dairy em { color: var(--charcoal); font-style: italic; }

    /* "Practical takeaway" closing block */
    .satfat-takeaway {
      background: var(--primary-pale);
      border: 1px solid var(--primary-soft);
      border-radius: var(--radius-sm);
      padding: 18px 22px;
      margin-top: 20px;
      font-size:14px;
      line-height: 1.65;
      color: var(--primary-deep);
    }
    .satfat-takeaway h4 {
      margin-top: 0;
      margin-bottom: 8px;
      color: var(--primary-deep);
    }
    .satfat-takeaway strong { color: var(--primary-deep); font-weight: 700; }

    @media (max-width: 720px) {
      .satfat-panel { padding: 28px 22px; }
      .satfat-twocol { grid-template-columns: 1fr; gap: 12px; }
    }

    /* --- Under-2 alert: most clinically important rule, deserves prominence --- */
    .child-under2 {
      background: var(--coral-soft);
      border: 1px solid var(--coral);
      border-left: 4px solid var(--coral);
      border-radius: var(--radius-sm);
      padding: 14px 18px;
      margin: 16px 0 18px;
      font-size:14px;
      color: var(--coral-deep);
      line-height: 1.6;
    }
    .child-under2 strong { color: var(--coral-deep); font-weight: 700; }

    /* --- UK SACN age-banded reference box --- */
    .child-sacn-box {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 16px 20px;
      margin: 14px 0 18px;
      font-size:14px;
    }
    .child-sacn-box h5 {
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 10px;
      letter-spacing: -0.005em;
    }
    .child-sacn-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 6px 0;
      border-bottom: 1px dashed var(--border);
    }
    .child-sacn-row:last-of-type { border-bottom: none; }
    .child-sacn-age {
      color: var(--text-soft);
      font-size:14px;
    }
    .child-sacn-limit {
      color: var(--charcoal);
      font-weight: 600;
      font-family: var(--font-display);
    }
    .child-sacn-note {
      font-size:14px;
      color: var(--text-faint);
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed var(--border);
      line-height: 1.5;
    }

    /* --- Stacking warning callout (the maths problem the user spotted) --- */
    .child-stack-warning {
      background: var(--surface);
      border: 1px solid var(--plum);
      border-left: 4px solid var(--plum);
      border-radius: var(--radius-sm);
      padding: 18px 22px;
      margin: 16px 0;
    }
    .child-stack-warning h5 {
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 600;
      color: var(--plum);
      margin-bottom: 10px;
      letter-spacing: -0.005em;
    }
    .child-stack-warning p {
      font-size:14px;
      color: var(--charcoal);
      line-height: 1.65;
      margin-bottom: 10px;
    }
    .child-stack-warning p:last-child { margin-bottom: 0; }
    .child-stack-warning strong { color: var(--plum); font-weight: 700; }
    .child-stack-warning .stack-calc {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      margin: 10px 0;
      font-family: var(--font-display);
      font-size:14px;
      line-height: 1.7;
      color: var(--text-soft);
    }
    .child-stack-warning .stack-calc strong { color: var(--charcoal); }
    .child-stack-warning .stack-calc .stack-total {
      color: var(--plum); font-weight: 700;
      border-top: 1px solid var(--border);
      padding-top: 6px; margin-top: 6px;
      display: inline-block;
    }

    /* --- Treat table age-column highlight --- */
    .meal-table.treat-table th.age-col,
    .meal-table.treat-table td.age-col {
      text-align: center;
    }
    .meal-table.treat-table th.age-col {
      background: var(--primary-pale);
      color: var(--primary-deep);
      font-size:14px;
    }
    .meal-table.treat-table th.age-col small {
      display: block;
      font-family: var(--font-body);
      font-size:14px;
      color: var(--primary);
      font-weight: 400;
      margin-top: 2px;
      letter-spacing: 0.02em;
    }
    .meal-table.treat-table td.age-col {
      font-size:14px;
      line-height: 1.5;
    }
    .meal-table.treat-table td.age-col .freq {
      display: block;
      font-size:14px;
      color: var(--text-faint);
      margin-top: 2px;
    }
    .meal-table.treat-table td.age-col.none {
      color: var(--text-faint);
      font-style: italic;
    }

    /* --- Hidden sugars callout --- */
    .child-hidden-sugars {
      background: var(--cream);
      border: 1px solid var(--border);
      border-left: 4px solid var(--amber-deep);
      border-radius: var(--radius-sm);
      padding: 16px 20px;
      margin: 18px 0;
    }
    .child-hidden-sugars h5 {
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 600;
      color: var(--amber-deep);
      margin-bottom: 8px;
      letter-spacing: -0.005em;
    }
    .child-hidden-sugars p {
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.65;
      margin-bottom: 10px;
    }
    .child-hidden-sugars p:last-child { margin-bottom: 0; }
    .child-hidden-sugars ul {
      font-size:14px;
      line-height: 1.6;
      color: var(--text-soft);
      padding-left: 20px;
      margin: 8px 0;
    }
    .child-hidden-sugars li { margin-bottom: 5px; }
    .child-hidden-sugars strong { color: var(--charcoal); font-weight: 600; }

    /* ============================================================
       SECTION 15 — FOR DOCTORS & HEALTHCARE PROFESSIONALS
       Cooler/sober clinical aesthetic distinct from the warm
       consumer-facing palette. Deep teal borders, charcoal accents,
       no emojis, more structured typography.
       ============================================================ */
    #doctors {
      background: var(--surface);
    }
    .doctor-wrap {
      background: var(--surface);
      border: 1px solid var(--border);
      border-top: 4px solid var(--primary-deep);
      border-radius: var(--radius-lg);
      padding: 48px;
      box-shadow: var(--shadow);
    }
    .doctor-eyebrow {
      display: inline-block;
      font-family: var(--font-body);
      font-size:14px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--primary-deep);
      background: var(--surface);
      border: 1px solid var(--primary-deep);
      padding: 4px 12px;
      border-radius: 100px;
      margin-bottom: 18px;
    }
    .doctor-intro {
      font-size: 14.5px;
      line-height: 1.7;
      color: var(--text-soft);
      margin-bottom: 18px;
    }
    .doctor-intro strong { color: var(--charcoal); font-weight: 600; }
    .doctor-intro em { color: var(--charcoal); font-style: italic; }

    /* Top-of-section clinical disclaimer */
    .doctor-disclaimer {
      background: var(--cream-deep);
      border: 1px solid var(--border-strong);
      border-left: 4px solid var(--primary-deep);
      border-radius: var(--radius-sm);
      padding: 18px 22px;
      margin: 18px 0 30px;
      font-size:14px;
      line-height: 1.65;
      color: var(--charcoal);
    }
    .doctor-disclaimer strong { color: var(--primary-deep); font-weight: 700; }
    .doctor-disclaimer em { font-style: italic; color: var(--charcoal); }

    /* Phase blocks */
    .doctor-phase {
      margin-top: 36px;
      padding-top: 28px;
      border-top: 1px solid var(--border);
    }
    .doctor-phase:first-of-type {
      margin-top: 22px;
      padding-top: 0;
      border-top: none;
    }
    .doctor-phase-header {
      display: flex;
      align-items: flex-start;
      gap: 18px;
      margin-bottom: 16px;
    }
    .doctor-phase-num {
      flex-shrink: 0;
      width: 44px;
      height: 44px;
      border-radius: var(--radius-sm);
      background: var(--primary-deep);
      color: white;
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      letter-spacing: -0.02em;
    }
    .doctor-phase-num.phase-2 { background: var(--primary); }
    .doctor-phase-num.phase-3 { background: var(--coral); }
    .doctor-phase-num.phase-4 { background: var(--plum); }
    .doctor-phase-head-text { flex: 1; }
    .doctor-phase-head-text h4 {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 600;
      color: var(--primary-deep);
      letter-spacing: -0.015em;
      line-height: 1.3;
      margin-bottom: 4px;
    }
    .doctor-phase-trigger {
      font-size:14px;
      color: var(--text-faint);
      font-style: italic;
      line-height: 1.5;
    }
    .doctor-phase-trigger strong { color: var(--text-soft); font-style: normal; font-weight: 600; }
    .doctor-phase-body {
      font-size:14px;
      line-height: 1.65;
      color: var(--text-soft);
    }
    .doctor-phase-body p { margin-bottom: 12px; }
    .doctor-phase-body strong { color: var(--charcoal); font-weight: 600; }
    .doctor-phase-body em { color: var(--charcoal); font-style: italic; }

    /* Test tables — clinical, monospaced numbers, restrained colour use */
    .doctor-tests {
      width: 100%;
      border-collapse: collapse;
      font-size:14px;
      margin: 14px 0 8px;
      background: var(--surface);
    }
    .doctor-tests th {
      text-align: left;
      padding: 10px 12px;
      background: var(--cream);
      color: var(--primary-deep);
      font-family: var(--font-display);
      font-size:14px;
      font-weight: 600;
      letter-spacing: -0.005em;
      border-bottom: 1px solid var(--border-strong);
    }
    .doctor-tests td {
      padding: 12px;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
      line-height: 1.55;
      color: var(--text-soft);
    }
    .doctor-tests tr:last-child td { border-bottom: none; }
    .doctor-tests td strong { color: var(--charcoal); font-weight: 600; }
    .doctor-tests td em { color: var(--charcoal); font-style: italic; }
    .doctor-tests td.test-name {
      font-weight: 600;
      color: var(--primary-deep);
      white-space: nowrap;
      font-size:14px;
    }
    .doctor-tests td.test-nhs {
      text-align: center;
      font-size:14px;
      color: var(--text-soft);
      white-space: nowrap;
    }
    .doctor-tests td.test-nhs.yes { color: var(--sage-deep); font-weight: 600; }
    .doctor-tests td.test-nhs.partial { color: var(--amber-deep); font-weight: 600; }
    .doctor-tests td.test-nhs.no { color: var(--coral); font-weight: 600; }
    .doctor-tests td.test-rationale { font-size:14px; line-height: 1.55; }

    /* Phase-1 footer note about private labs */
    .doctor-phase-footer {
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 14px 18px;
      margin-top: 14px;
      font-size:14px;
      line-height: 1.6;
      color: var(--text-soft);
    }
    .doctor-phase-footer strong { color: var(--charcoal); font-weight: 600; }

    /* CIMT × CAC complementarity callout */
    .doctor-callout {
      margin: 36px 0 0;
      padding: 26px 30px;
      border-radius: var(--radius);
      background: var(--surface);
      border: 1px solid var(--border-strong);
      border-left: 4px solid var(--primary-deep);
    }
    .doctor-callout h4 {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 12px;
      letter-spacing: -0.01em;
    }
    .doctor-callout p {
      font-size:14px;
      line-height: 1.7;
      color: var(--text-soft);
      margin-bottom: 11px;
    }
    .doctor-callout p:last-child { margin-bottom: 0; }
    .doctor-callout strong { color: var(--charcoal); font-weight: 600; }
    .doctor-callout em { color: var(--charcoal); font-style: italic; }
    .doctor-callout ul {
      font-size:14px;
      line-height: 1.7;
      color: var(--text-soft);
      padding-left: 22px;
      margin: 10px 0;
    }
    .doctor-callout li { margin-bottom: 8px; }
    .doctor-callout li strong { color: var(--charcoal); }
    .doctor-callout .lester-stat {
      background: var(--surface);
      border: 1px solid var(--coral);
      border-left: 3px solid var(--coral);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      margin: 12px 0;
      font-size:14px;
      color: var(--coral-deep);
    }
    .doctor-callout .lester-stat strong { color: var(--coral-deep); font-weight: 700; }

    /* Treatment decision matrix */
    .doctor-tx-matrix {
      margin-top: 32px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 26px 30px;
      border-top: 3px solid var(--primary);
    }
    .doctor-tx-matrix h4 {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }
    .doctor-tx-matrix > p {
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.65;
      margin-bottom: 16px;
    }
    .doctor-tx-matrix > p strong { color: var(--charcoal); }
    .tx-table {
      width: 100%;
      border-collapse: collapse;
      font-size:14px;
      min-width: 600px;
    }
    .tx-table th {
      text-align: left;
      padding: 10px 12px;
      background: var(--cream);
      color: var(--primary-deep);
      font-family: var(--font-display);
      font-size:14px;
      font-weight: 600;
      border-bottom: 1px solid var(--border-strong);
      vertical-align: top;
    }
    .tx-table td {
      padding: 11px 12px;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
      line-height: 1.55;
      color: var(--text-soft);
    }
    .tx-table tr:last-child td { border-bottom: none; }
    .tx-table td strong { color: var(--charcoal); font-weight: 600; }
    .tx-table td.tx-profile { color: var(--primary-deep); font-weight: 600; font-size:14px; }
    .tx-table td.tx-action.lifestyle { background: rgba(122, 162, 130, 0.07); }
    .tx-table td.tx-action.mixed { background: rgba(218, 165, 32, 0.08); }
    .tx-table td.tx-action.pharm { background: rgba(204, 119, 102, 0.08); }
    .doctor-tx-matrix-wrap { overflow-x: auto; margin-top: 8px; }
    .doctor-tx-closing {
      font-size:14px;
      line-height: 1.65;
      color: var(--text-soft);
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px dashed var(--border);
    }
    .doctor-tx-closing strong { color: var(--charcoal); }

    /* Statin intolerance recognition — presentation grid */
    .si-recognition {
      background: var(--cream);
      border: 1px solid var(--border);
      border-left: 4px solid var(--coral);
      border-radius: var(--radius-sm);
      padding: 22px 26px;
      margin-top: 28px;
    }
    .si-recognition > h5 {
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 600;
      color: var(--coral-deep);
      margin-bottom: 8px;
      letter-spacing: -0.005em;
    }
    .si-recognition > p {
      font-size:14px;
      line-height: 1.7;
      color: var(--text-soft);
      margin-bottom: 12px;
    }
    .si-recognition > p:last-of-type { margin-bottom: 14px; }
    .si-recognition > p strong { color: var(--charcoal); font-weight: 600; }
    .si-recognition > p em { color: var(--charcoal); font-style: italic; }

    .si-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 14px;
      margin: 14px 0 4px;
    }
    .si-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 14px 16px;
    }
    .si-card h6 {
      font-family: var(--font-display);
      font-size:14px;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 6px;
      letter-spacing: -0.005em;
      line-height: 1.35;
    }
    .si-card p {
      font-size:14px;
      line-height: 1.6;
      color: var(--text-soft);
      margin-bottom: 8px;
    }
    .si-card p:last-child { margin-bottom: 0; }
    .si-card strong { color: var(--charcoal); font-weight: 600; }
    .si-card em { color: var(--charcoal); font-style: italic; }
    .si-card .si-symptom {
      display: inline-block;
      font-size:14px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 2px 8px;
      border-radius: 100px;
      background: var(--cream-deep);
      color: var(--text-soft);
      margin-bottom: 6px;
    }
    .si-card.si-rare .si-symptom {
      background: var(--coral-soft);
      color: var(--coral-deep);
    }

    .si-redflag {
      background: var(--coral-soft);
      border: 1px solid var(--coral);
      border-radius: var(--radius-sm);
      padding: 14px 18px;
      margin-top: 14px;
      font-size:14px;
      line-height: 1.65;
      color: var(--coral-deep);
    }
    .si-redflag strong { color: var(--coral-deep); font-weight: 700; }
    .si-redflag em { color: var(--coral-deep); font-style: italic; }

    .si-principle {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 3px solid var(--primary-deep);
      border-radius: var(--radius-sm);
      padding: 14px 18px;
      margin-top: 14px;
      font-size:14px;
      line-height: 1.7;
      color: var(--text-soft);
    }
    .si-principle strong { color: var(--primary-deep); font-weight: 700; }

    /* Closing note */
    .doctor-closing {
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      font-size:14px;
      line-height: 1.65;
      color: var(--text-faint);
    }
    .doctor-closing strong { color: var(--text-soft); font-weight: 600; }

    /* Mobile */
    @media (max-width: 720px) {
      .doctor-wrap { padding: 28px 22px; }
      .doctor-callout { padding: 22px; }
      .doctor-tx-matrix { padding: 22px; }
      .doctor-phase-header { gap: 12px; }
      .doctor-phase-num { width: 36px; height: 36px; font-size: 16px; }
      .doctor-phase-head-text h4 { font-size: 17px; }
      .doctor-tests { font-size:14px; }
      .doctor-tests th, .doctor-tests td { padding: 9px 8px; }
    }

    /* ALCOHOL CALLOUT (within Diet section) */
    .alcohol-callout {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 5px solid var(--plum);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-top: 28px;
      box-shadow: var(--shadow);
    }
    .alcohol-callout h4 {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 600;
      color: var(--plum);
      margin-bottom: 14px;
      letter-spacing: -0.015em;
      line-height: 1.25;
    }
    .alcohol-callout p {
      font-size: 14.5px;
      color: var(--text-soft);
      line-height: 1.7;
      margin-bottom: 12px;
    }
    .alcohol-callout p:last-child { margin-bottom: 0; }
    .alcohol-callout strong { color: var(--charcoal); font-weight: 600; }
    .alcohol-callout em { color: var(--charcoal); font-style: italic; }

    /* Potassium & blood pressure callout — same family as the other diet callouts,
       primary teal to signal the cardiovascular link */
    .potassium-callout {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 5px solid var(--primary);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-top: 28px;
      box-shadow: var(--shadow);
    }
    .potassium-callout h4 {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 14px;
      letter-spacing: -0.015em;
      line-height: 1.25;
    }
    .potassium-callout p {
      font-size: 14.5px;
      color: var(--text-soft);
      line-height: 1.7;
      margin-bottom: 12px;
    }
    .potassium-callout p:last-child { margin-bottom: 0; }
    .potassium-callout strong { color: var(--charcoal); font-weight: 600; }
    .potassium-callout em { color: var(--charcoal); font-style: italic; }
    .potassium-sources {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
      margin-top: 16px;
    }
    .potassium-source-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
    }
    .potassium-source-card h5 {
      font-family: var(--font-display);
      font-size:14px;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 4px;
      letter-spacing: -0.005em;
    }
    .potassium-source-card p {
      font-size:14px;
      color: var(--text-soft);
      line-height: 1.5;
      margin: 0;
    }
    .potassium-warning {
      background: var(--coral-soft);
      border-left: 3px solid var(--coral);
      padding: 14px 18px;
      margin-top: 18px;
      border-radius: var(--radius-sm);
      font-size:14px;
      color: var(--coral-deep);
      line-height: 1.6;
    }
    .potassium-warning strong { color: var(--coral-deep); font-weight: 700; }

    /* PRINT */
    

/* ===========================================================================
   READING-TEXT FLOOR  (round 70)

   The dense reference pages inherited per-component pixel sizes from the
   pre-migration stylesheets. On /heart/clinical/ the two most repeated
   components — .tx-profile and .test-rationale, 22 instances each — rendered
   at 12.5px against 16px body copy. Text made of sentences at 78% of body
   size quietly excludes readers whose eyes are older than the author's, which
   on a clinical page is the wrong audience to lose.

   The distinction that makes this safe is reading text vs labelling text:

     Reading text  — sentences the eye tracks along. Floored here.
     Labelling text — uppercase eyebrows, mono badges, column headers, grade
                      chips, units. One or two words, scanned not read. NOT
                      touched: enlarging them flattens the hierarchy that
                      makes these pages navigable, and they are what sets the
                      width of narrow table columns.

   Two floors rather than one, so hierarchy survives. A --fs-read-sm
   annotation inside a --fs-read cell still reads as subordinate; collapsing
   both to 14px would lose that.

   Nothing here changes a min-width. The wide tables already scroll
   horizontally, so their cells reflow inside a container that was never
   fitting the viewport; the tables that do fit gain height, not width,
   because the widest thing in a narrow column is a header or a badge.

   Appended deliberately. These override the per-component rules above by
   source order at equal specificity, which keeps the original rules readable
   as the record of what each component used to be.
   ========================================================================= */

/* Primary reading text — 57 rules */
.fish-table td:last-child,
.doctor-tests td.test-nhs,
.doctor-tests td.test-rationale,
.envload-card p,
.fish-table td:last-child,
.gluten-card p,
.meal-table.treat-table td.age-col,
.milk-table td:first-child,
.potassium-source-card p,
.si-card p,
.tests-tier .test-desc,
.timing-card p,
.tx-table td.tx-profile,
.vigor-stat p,
.alt-option p,
.cac-action-card > p,
.cac-action-card ul,
.cgm-aha li::before,
.cgm-compare-wrap > p,
.child-hidden-sugars ul,
.doctor-tests td.test-name,
.doctor-tx-matrix > p,
.ex-test p,
.foundation-pillar p,
.gene-card p, .adv-test-card p,
.longevity-toggle .lt-desc,
.milk-rec-row td:not(:first-child),
.milk-table td:not(:first-child),
.rx-item p,
.satfat-twocol ul,
.si-recognition > p,
.tech-card p,
.cac-tier p,
.cgm-aha li,
.child-hidden-sugars p,
.child-stack-warning p,
.considered-callout p,
.doctor-callout p,
.doctor-callout ul,
.doctor-phase-body,
.ie-card p,
.input-block-header p,
.irc-explainer-body p,
.irc-explainer-body ul,
.multi-item-list li,
.multi-item-list li strong,
.myth-card p,
.nutrition-rationale li,
.proj-scenario-desc,
.remnant-panel-body .rp-bands,
.rh-link-list ul,
.rh-pattern-box ul,
.rx-watchlist > p,
.sugar-blood-fact p,
.supp-rationale,
.tests-panel-head p,
.tests-tier li { font-size: var(--fs-read); }

/* Secondary reading text: references, disclaimers, in-cell annotations,
   footnotes. Still sentences, so still floored — one step below primary
   so the subordination stays visible. 17 rules */
.meal-table.treat-table td.age-col .freq,
.sugar-table td.food small,
.sugar-table td.tsp small,
.irc-explainer-body .irc-refs,
.nut-note,
.remnant-panel-body .rp-refs,
.child-sacn-note,
.supp-effect-detail,
.irc-explainer-body .irc-disclaimer,
.remnant-panel-body .rp-disclaimer,
.tier-access-note,
.fish-shellfish-note,
.markers-note,
.milk-plant-note,
.proj-footnote,
.vigor-note,
.ldl-goals-note > p { font-size: var(--fs-read-sm); }
