/* ---------- Design tokens: Jewish heritage × evidence rigor ---------- */
  :root {
    --ink:        #0b1a3a;  /* deep night-sky navy */
    --ink-2:      #15295a;
    --parchment:  #f6efe1;  /* warm scroll-cream */
    --parchment-2:#ede3ce;
    --gold:       #8a6420;  /* menorah gold (darkened 2026-05-14 for WCAG AA on parchment; was #b8862a) */
    --gold-warm:  #b8862a;  /* original warm gold — kept for large decorative surfaces only */
    --gold-soft:  #e3c578;
    --crimson:    #8a1f2a;  /* pomegranate */
    --olive:      #5b6b3d;
    --line:       #d8cdb1;
    --muted:      #5b5a55;
    --tier1:      #1f6b3a;  /* strong evidence */
    --tier2:      #b8862a;  /* moderate evidence */
    --tier3:      #8a6a23;  /* limited evidence */
    --tier4:      #6b6b6b;  /* preclinical only */
    --flag:       #8a1f2a;
    --shadow: 0 1px 2px rgba(11,26,58,.06), 0 8px 24px rgba(11,26,58,.07);
    --radius: 14px;
    --maxw: 1180px;
    --pad: clamp(16px, 3vw, 28px);
  }
  *,*::before,*::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--parchment);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
  a:hover { color: var(--crimson); }
  h1,h2,h3,h4 { font-family: Fraunces, "Iowan Old Style", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
  h1 { font-size: clamp(34px, 5.6vw, 64px); font-weight: 600; letter-spacing: -0.02em; }
  h2 { font-size: clamp(26px, 3.2vw, 38px); }
  h3 { font-size: clamp(20px, 2.2vw, 24px); }
  p  { margin: 0 0 1em; max-width: 68ch; }
  ul, ol { margin: 0 0 1em; padding-left: 1.1em; }
  li { margin: .25em 0; }
  hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
  small, .meta { font-size: 13px; color: var(--muted); }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

  /* ---------- Header ---------- */
  .header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in oklab, var(--parchment) 88%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; flex-wrap: nowrap; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
  .brand-mark { width: 56px; height: 30px; display:block; }
  .brand-name { font-family: Fraunces, serif; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
  .nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
  .nav a { font-size: 14px; text-decoration: none; color: var(--ink); opacity: .82; }
  .nav a:hover { opacity: 1; }
  .nav .btn { background: var(--ink); color: var(--parchment); padding: 8px 14px; border-radius: 999px; opacity: 1; }
  .nav .btn:hover { background: var(--ink-2); color: var(--parchment); }
  @media (max-width: 720px) { .nav { gap: 14px; } .nav a:not(.btn) { display: none; } }

  /* ---------- Hero ---------- */
  .hero { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 4vw, 56px); position: relative; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  @media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
  .hero-seal {
    background: transparent;
    padding: 8px 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
  }
  .hero-seal img { width: 100%; max-width: 460px; height: auto; display: block; }
  @media (max-width: 980px) { .hero-seal img { max-width: 360px; margin: 0 auto; } }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-2); background: color-mix(in oklab, var(--gold-soft) 50%, transparent);
    padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gold-soft);
  }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); }
  .hero h1 { margin-top: 18px; max-width: 18ch; }
  .hero .lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 62ch; }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
  .btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px; border-radius: 999px;
    text-decoration: none; font-weight: 500; font-size: 15px;
    border: 1px solid var(--ink);
    transition: transform .15s ease, background .2s, color .2s;
  }
  .btn-primary { background: var(--ink); color: var(--parchment); }
  .btn-primary:hover { background: var(--ink-2); color: var(--parchment); transform: translateY(-1px); }
  .btn-ghost { background: transparent; color: var(--ink); }
  .btn-ghost:hover { background: var(--ink); color: var(--parchment); }

  /* Hero metric strip — 5 columns, single row, full width */
  .metrics {
    margin-top: clamp(28px, 4vw, 48px);
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .metric {
    padding: 18px 10px;
    border-right: 1px solid var(--line);
    min-width: 0; /* allow shrink so long labels can wrap inside their column */
    text-align: left;
  }
  .metric:first-child { padding-left: 0; }
  .metric:last-child { border-right: 0; padding-right: 0; }
  .metric .n {
    font-family: Fraunces, serif;
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.05;
    margin-bottom: 4px;
  }
  .metric .l {
    font-size: clamp(10px, 0.85vw, 12px);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.35;
  }
  /* Tablet: keep 5 columns but tighten further */
  @media (max-width: 960px) {
    .metric { padding: 14px 8px; }
    .metric .n { font-size: clamp(20px, 3vw, 26px); }
    .metric .l { font-size: 10px; letter-spacing: .04em; }
  }
  /* Mobile: 5-across is unreadable below ~640px — fall back to 2-up grid */
  @media (max-width: 640px) {
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .metric { border-right: 0; border-top: 1px solid var(--line); padding: 14px 12px; }
    .metric:first-child { padding-left: 12px; }
    .metric:nth-child(odd) { border-right: 1px solid var(--line); }
    .metrics .metric:nth-child(-n+2) { border-top: 0; }
    .metric:last-child { grid-column: 1 / -1; text-align: center; border-right: 0; }
    .metric .n { font-size: 24px; }
    .metric .l { font-size: 11px; }
  }

  /* ---------- Sections ---------- */
  section { padding: clamp(48px, 7vw, 96px) 0; }
  section + section { border-top: 1px solid var(--line); }
  .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
  .section-head h2 { margin: 0; }
  .section-head .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

  /* Cards */
  .grid { display: grid; gap: 18px; }
  .g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  @media (max-width: 920px){ .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
  @media (max-width: 600px){ .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
  .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
  }
  .card h3 { margin-top: 0; }
  .card .icon { width: 32px; height: 32px; color: var(--gold); margin-bottom: 8px; }

  /* ---------- The Four Rules block ---------- */
  .rules { background: var(--ink); color: var(--parchment); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
  .rules h2 { color: var(--parchment); }
  .rules .rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
  .rules .rule { background: rgba(255,255,255,.04); border: 1px solid rgba(246,239,225,.18); border-radius: 12px; padding: 18px; }
  .rules .rule h4 { color: var(--gold-soft); margin: 0 0 6px; font-family: Inter, sans-serif; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
  .rules .rule p { color: #ecdfc6; opacity: .92; margin: 0; font-size: 14.5px; }
  @media (max-width: 920px){ .rules .rules-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 540px){ .rules .rules-grid { grid-template-columns: 1fr; } }

  /* Tier ladder & ranking table */
  .tier-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
  .tier {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px;
  }
  .swatch { width: 10px; height: 10px; border-radius: 50%; }
  .sw-1 { background: var(--tier1); }
  .sw-2 { background: var(--tier2); }
  .sw-3 { background: var(--tier3); }
  .sw-4 { background: var(--tier4); }

  .rank-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .rank-row {
    display: grid;
    grid-template-columns: 56px 2.3fr 1.1fr 1.4fr 1fr 90px;
    gap: 14px; padding: 18px 20px; align-items: center;
    border-top: 1px solid var(--line);
  }
  .rank-row:first-child { border-top: 0; background: var(--parchment-2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .rank-row .pos { font-family: Fraunces, serif; font-size: 22px; color: var(--ink); }
  .rank-row .name { font-weight: 600; }
  .rank-row .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .badge-list { display: flex; gap: 6px; flex-wrap: wrap; }
  .badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; padding: 3px 8px; border-radius: 999px;
    background: var(--parchment-2); border: 1px solid var(--line); color: var(--ink);
    font-weight: 500;
  }
  .badge.tier1 { background: color-mix(in oklab, var(--tier1) 14%, white); border-color: color-mix(in oklab, var(--tier1) 35%, white); color: #134624; }
  .badge.tier2 { background: color-mix(in oklab, var(--tier2) 18%, white); border-color: color-mix(in oklab, var(--tier2) 40%, white); color: #6b4d12; }
  .badge.tier3 { background: color-mix(in oklab, var(--tier3) 18%, white); border-color: color-mix(in oklab, var(--tier3) 40%, white); color: #614816; }
  .badge.tier4 { background: #ececec; border-color: #d8d8d8; color: #444; }
  .badge.pareve { background: #eef5ea; border-color: #c6dcb6; color: #2c4a18; }
  .badge.dairy { background: #fdf2d6; border-color: #ecd286; color: #6b4d12; }
  .badge.ou { background: #ecf1fb; border-color: #bccae6; color: #1b3578; }
  .badge.fish { background: #eaf2f5; border-color: #b6cdd6; color: #1f4a5b; }
  .badge.veg { background: #eef5ea; border-color: #c6dcb6; color: #2c4a18; }
  .badge.flag { background: #fbe9ea; border-color: #e9b9bd; color: #7a1620; }
  /* Hechsher agency badge palette — each agency a distinct hue against parchment */
  .badge.hechsher { font-weight: 600; letter-spacing: .02em; padding: 3px 9px; }
  .badge.hechsher::before { content: "✓ "; opacity: .65; font-weight: 700; margin-right: 1px; }
  .badge.h-ou { background: #ecf1fb; border-color: #bccae6; color: #1b3578; }
  .badge.h-ouf { background: #e4f0f5; border-color: #abc8d4; color: #15495e; }
  .badge.h-oud { background: #fdf2d6; border-color: #ecd286; color: #6b4d12; }
  .badge.h-ok { background: #fdebe9; border-color: #f1bab1; color: #8a2a1a; }
  .badge.h-star-k { background: #f3edfa; border-color: #d4c0ea; color: #4a276b; }
  .badge.h-crc { background: #e8f1ec; border-color: #b6d4c0; color: #19543a; }
  .badge.h-kof-k { background: #fcf2e1; border-color: #e8cf95; color: #6e4910; }
  .badge.h-badatz { background: #f0e9d8; border-color: #c8b984; color: #5a4214; }
  .badge.h-rabbanut { background: #ebf2f6; border-color: #b6cfdf; color: #1f4262; }
  .badge.h-klbd { background: #efeaf6; border-color: #c8bbe2; color: #3e2a6a; }
  .badge.h-kedassia { background: #f5ecdf; border-color: #d8bf94; color: #5e3f12; }
  .badge.h-cor { background: #fbeae0; border-color: #ecbf9b; color: #743012; }
  .badge.h-chalav-yisrael { background: #fff6e0; border-color: #e8cf86; color: #6a4a08; }
  .badge.h-chalav-yisrael::before { content: "★ "; }
  .badge.h-pareve { background: #eef5ea; border-color: #c6dcb6; color: #2c4a18; }
  .badge.h-pareve::before { content: ""; }
  .badge.h-dairy { background: #fdf2d6; border-color: #ecd286; color: #6b4d12; }
  .badge.h-dairy::before { content: ""; }
  .badge.h-fish { background: #eaf2f5; border-color: #b6cdd6; color: #1f4a5b; }
  .badge.h-fish::before { content: ""; }
  /* Letter grade pill used in the kosher rankings table */
  .grade-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: .02em; border: 2px solid; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
  .grade-pill:hover, .grade-pill:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(11,26,58,.15); outline: none; }
  .grade-pill .lbl { font-family: 'Inter', system-ui, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; opacity: .75; }
  .grade-pill.grade-a { background: color-mix(in oklab, var(--tier1) 14%, white); border-color: color-mix(in oklab, var(--tier1) 55%, white); color: #134624; }
  .grade-pill.grade-b { background: color-mix(in oklab, var(--tier2) 18%, white); border-color: color-mix(in oklab, var(--tier2) 55%, white); color: #6b4d12; }
  .grade-pill.grade-c { background: color-mix(in oklab, var(--tier3) 18%, white); border-color: color-mix(in oklab, var(--tier3) 55%, white); color: #614816; }
  .micro { font-size: 12px; color: var(--muted); }

  /* Kosher Evidence Card */
  .kec { border-top: 1px solid var(--line); background: var(--parchment-2); padding: 0; }
  .kec summary {
    list-style: none; cursor: pointer; padding: 12px 20px;
    font-size: 13px; font-weight: 600; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center;
    letter-spacing: .02em;
  }
  .kec summary::-webkit-details-marker { display: none; }
  .kec summary::after { content: "▾ View Kosher Evidence Card"; font-weight: 500; color: var(--gold); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
  .kec[open] summary::after { content: "▴ Close card"; }
  .kec-body { padding: 4px 20px 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
  .kec-body dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .kec-body dd { margin: 0 0 8px; font-size: 14px; color: var(--ink); line-height: 1.5; }
  .kec-body dd .badge { margin: 2px 4px 2px 0; vertical-align: middle; }
  .kec-body .full { grid-column: 1 / -1; }
  /* Ask Your Rav row — visually distinct rav-blue panel with chat-bubble icon */
  .kec-body .ask-rav {
    margin-top: 4px;
    background: linear-gradient(135deg, #eef3fa 0%, #e3ecf7 100%);
    border: 1px solid #c5d3ea;
    border-left: 4px solid #3a5a9a;
    border-radius: 8px;
    padding: 14px 16px 12px 46px;
    position: relative;
  }
  .kec-body .ask-rav::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a5a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
  }
  .kec-body .ask-rav dt {
    color: #3a5a9a;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .12em;
  }
  .kec-body .ask-rav dd {
    font-size: 14.5px;
    color: #1f3260;
    margin: 0;
    line-height: 1.55;
  }
  /* Tier qualifier text (after the pill in Evidence Tier rows) */
  .kec-body dd .tier-qualifier {
    color: var(--muted);
    font-style: italic;
    font-size: 0.92em;
    margin-left: 4px;
  }

  @media (max-width: 720px) { .kec-body { grid-template-columns: 1fr; } }

  /* ===== Devices Section ===== */
  .device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  @media (max-width: 820px) { .device-grid { grid-template-columns: 1fr; } }
  .device-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 6px; display: flex; flex-direction: column; }
  .device-card .device-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .device-card .tier { font-size: 11.5px; padding: 5px 10px; letter-spacing: .04em; font-weight: 600; }
  .device-card .badge { font-size: 11.5px; padding: 5px 10px; }
  .device-card h3 { font-family: Fraunces, serif; font-size: 21px; margin: 0 0 8px; color: var(--ink); line-height: 1.25; }
  .device-card p { font-size: 14.5px; line-height: 1.55; margin: 0 0 10px; color: #2c2c2c; }
  .device-card .micro { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
  .device-card .kec { margin: auto -22px 0; border-radius: 0 0 var(--radius) var(--radius); border-top: 1px solid var(--line); border-bottom: 0; border-left: 0; border-right: 0; }
  .device-card .kec summary { padding: 14px 22px; font-size: 13px; }
  .device-card .kec-body { padding: 4px 22px 20px; font-size: 13.5px; gap: 12px 22px; }
  .device-card .device-buy-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
  .device-card .device-buy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); background: var(--gold-soft); border-radius: 8px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
  .device-card .device-buy:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(184,134,42,.25); }
  .device-card .device-buy.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
  .device-card .device-buy.secondary:hover { background: rgba(184,134,42,.06); box-shadow: none; }
  .device-card .kec-body dd { font-size: 13.5px; }

  /* Refresh MD footer band */
  .refresh-band { background: linear-gradient(135deg, #0b1a3a 0%, #142554 100%); color: #fff; border: 1px solid var(--gold); border-radius: var(--radius); padding: 22px 26px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
  .refresh-band .kicker { color: #f4d98a; letter-spacing: .14em; font-size: 11px; font-weight: 700; }

  /* ---------- Meaning grid (Hebrew word cards) ---------- */
  .meaning-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: 28px; }
  @media (max-width: 980px) { .meaning-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
  @media (max-width: 560px) { .meaning-grid { grid-template-columns: 1fr; } }
  .meaning-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
  .meaning-card .m-icon { font-family: 'Noto Serif Hebrew', serif; font-size: 38px; line-height: 1; color: var(--gold); display: block; margin-bottom: 6px; }
  .meaning-card h3 { font-family: Fraunces, serif; font-size: 19px; margin: 0 0 4px; color: var(--ink); line-height: 1.25; }
  .meaning-card p { font-size: 14.5px; line-height: 1.55; margin: 0; color: #2c2c2c; }
  .refresh-band h3 { font-family: Fraunces, serif; color: #ffffff; font-size: 22px; margin: 6px 0 8px; line-height: 1.2; }
  .refresh-band p { color: #f5ecd4; margin: 0 0 6px; font-size: 14px; line-height: 1.55; max-width: 70ch; }
  .refresh-band p.micro { color: #e8d9a8; font-size: 12.5px; margin-bottom: 12px; }
  .refresh-band a.btn { background: var(--gold); color: #0b1a3a; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 14px; display: inline-block; }
  .refresh-band a.btn:hover { background: #d8a445; }
  @media (max-width: 720px) { .refresh-band { grid-template-columns: 1fr; } }

  /* ---------- Hechsher reference disclosure (collapsible) ---------- */
  .hechsher-disclosure {
    margin-top: 14px;
    border: 1px solid var(--ink-2);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .hechsher-disclosure > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, #fff 0%, #fdfbf4 100%);
    transition: background 0.15s ease;
    user-select: none;
  }
  .hechsher-disclosure > summary::-webkit-details-marker { display: none; }
  .hechsher-disclosure > summary:hover { background: linear-gradient(180deg, #fdfbf4 0%, var(--parchment-2) 100%); }
  .hechsher-disclosure .hd-label {
    font-family: Fraunces, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    flex: 1;
  }
  .hechsher-disclosure .hd-meta {
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
  }
  .hechsher-disclosure .hd-chevron {
    font-size: 1.1rem;
    color: var(--crimson);
    transition: transform 0.2s ease;
    margin-left: 4px;
    line-height: 1;
  }
  .hechsher-disclosure[open] > summary .hd-chevron { transform: rotate(180deg); }
  .hechsher-disclosure[open] > summary .hd-label { font-size: 0; }
  .hechsher-disclosure[open] > summary .hd-label::before {
    content: 'Hide hechsher reference table';
    font-size: 1.05rem;
    font-family: Fraunces, serif;
    font-weight: 600;
    color: var(--ink);
  }
  .hechsher-disclosure[open] { background: #fff; }
  /* Inner content (table wrapper + note) gets padding so they don't touch the disclosure border */
  .hechsher-disclosure > div {
    margin: 0 22px 22px;
  }
  .hechsher-disclosure > div:first-of-type {
    margin-top: 4px;
  }
  @media (max-width: 720px) {
    .hechsher-disclosure > summary { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
    .hechsher-disclosure .hd-meta { font-size: 0.7rem; }
    .hechsher-disclosure .hd-label, .hechsher-disclosure[open] > summary .hd-label::before { font-size: 0.95rem; }
  }

  /* ---------- Buzz disclosure (What's Getting Buzz) ---------- */
  .buzz-disclosure {
    margin-top: 14px;
    border: 1px solid rgba(11,26,58,0.12);
    border-radius: 14px;
    background: #fefcf6;
    overflow: hidden;
  }
  .buzz-disclosure > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, #fefcf6 0%, var(--parchment-2) 100%);
    transition: background 0.15s ease;
    user-select: none;
  }
  .buzz-disclosure > summary::-webkit-details-marker { display: none; }
  .buzz-disclosure > summary:hover { background: linear-gradient(180deg, var(--parchment-2) 0%, var(--parchment) 100%); }
  .buzz-disclosure .bd-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(31,107,58,0.12);
    flex-shrink: 0;
  }
  .buzz-disclosure .bd-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1f6b3a;
    box-shadow: 0 0 8px rgba(31,107,58,0.55);
  }
  .buzz-disclosure .bd-label {
    font-family: Fraunces, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    flex: 1;
  }
  .buzz-disclosure .bd-meta {
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
  }
  .buzz-disclosure .bd-chevron {
    font-size: 1.1rem;
    color: #1f6b3a;
    transition: transform 0.2s ease;
    margin-left: 4px;
    line-height: 1;
  }
  .buzz-disclosure[open] > summary .bd-chevron { transform: rotate(180deg); }
  .buzz-disclosure[open] > summary .bd-label { font-size: 0; }
  .buzz-disclosure[open] > summary .bd-label::before {
    content: 'Hide highlighted studies';
    font-size: 1.05rem;
    font-family: Fraunces, serif;
    font-weight: 600;
    color: var(--ink);
  }
  .buzz-disclosure[open] { background: #fff; }
  .buzz-disclosure > .buzz-list { margin: 4px 22px 0; }
  .buzz-disclosure > p.micro { margin: 14px 22px 22px; }
  @media (max-width: 720px) {
    .buzz-disclosure > summary { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
    .buzz-disclosure .bd-meta { font-size: 0.7rem; }
    .buzz-disclosure .bd-label, .buzz-disclosure[open] > summary .bd-label::before { font-size: 0.95rem; }
    .buzz-disclosure > .buzz-list { margin: 4px 12px 0; }
    .buzz-disclosure > p.micro { margin: 14px 12px 18px; }
  }

  /* ---------- Dispensary disclosure (Curated Kosher Longevity Dispensary) — DARK theme ---------- */
  .dispensary-disclosure {
    margin-top: 14px;
    border: 1px solid var(--gold-soft);
    border-radius: 14px;
    background: rgba(246,239,225,.03);
    overflow: hidden;
  }
  .dispensary-disclosure > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(184,134,42,.14) 0%, rgba(184,134,42,.08) 100%);
    transition: background 0.15s ease;
    user-select: none;
  }
  .dispensary-disclosure > summary::-webkit-details-marker { display: none; }
  .dispensary-disclosure > summary:hover { background: linear-gradient(180deg, rgba(184,134,42,.20) 0%, rgba(184,134,42,.12) 100%); }
  .dispensary-disclosure .dd-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(184,134,42,.18);
    flex-shrink: 0;
    color: var(--gold-soft);
    font-size: 14px;
    line-height: 1;
  }
  .dispensary-disclosure .dd-label {
    font-family: Fraunces, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--parchment);
    flex: 1;
  }
  .dispensary-disclosure .dd-meta {
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #e6dcc3;
    text-transform: uppercase;
  }
  .dispensary-disclosure .dd-chevron {
    font-size: 1.1rem;
    color: var(--gold-soft);
    transition: transform 0.2s ease;
    margin-left: 4px;
    line-height: 1;
  }
  .dispensary-disclosure[open] > summary .dd-chevron { transform: rotate(180deg); }
  .dispensary-disclosure[open] > summary .dd-label { font-size: 0; }
  .dispensary-disclosure[open] > summary .dd-label::before {
    content: 'Hide dispensary';
    font-size: 1.05rem;
    font-family: Fraunces, serif;
    font-weight: 600;
    color: var(--parchment);
  }
  .dispensary-disclosure[open] { background: rgba(246,239,225,.04); }
  .dispensary-disclosure > .dd-body { padding: 4px 22px 22px; }
  @media (max-width: 720px) {
    .dispensary-disclosure > summary { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
    .dispensary-disclosure .dd-meta { font-size: 0.7rem; }
    .dispensary-disclosure .dd-label, .dispensary-disclosure[open] > summary .dd-label::before { font-size: 0.95rem; }
    .dispensary-disclosure > .dd-body { padding: 4px 12px 18px; }
  }

  /* ---------- Smoking & nutrient depletion disclosure ---------- */
  .smoker-disclosure {
    margin-top: 28px;
    border: 1px solid rgba(138, 31, 42, 0.25);
    border-radius: 12px;
    background: linear-gradient(180deg, #fefcf6 0%, #faf3df 100%);
    overflow: hidden;
  }
  .smoker-disclosure > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.15s ease;
    user-select: none;
  }
  .smoker-disclosure > summary::-webkit-details-marker { display: none; }
  .smoker-disclosure > summary:hover { background: rgba(138, 31, 42, 0.05); }
  .smoker-disclosure .sd-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(138, 31, 42, 0.10);
    color: var(--crimson);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .smoker-disclosure .sd-label {
    font-family: Fraunces, serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
    flex-shrink: 0;
  }
  .smoker-disclosure .sd-teaser {
    font-family: Inter, sans-serif;
    font-size: 0.86rem;
    color: var(--muted);
    flex: 1;
    margin-left: 2px;
  }
  .smoker-disclosure .sd-chevron {
    font-size: 1.1rem;
    color: var(--crimson);
    transition: transform 0.2s ease;
    line-height: 1;
  }
  .smoker-disclosure[open] > summary .sd-chevron { transform: rotate(180deg); }
  .smoker-disclosure[open] { background: #fefcf6; }
  .sd-body {
    padding: 4px 26px 26px;
    color: var(--ink);
  }
  .sd-body .sd-lead {
    margin: 4px 0 18px;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--ink);
  }
  .sd-warning {
    border-left: 4px solid var(--crimson);
    background: rgba(138, 31, 42, 0.06);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 0 0 22px;
  }
  .sd-warning-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--crimson);
    font-family: Fraunces, serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .sd-warning p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink);
  }
  .sd-warning a { color: var(--crimson); text-decoration: underline; }
  .sd-grid-head {
    font-family: Fraunces, serif;
    font-size: 1rem;
    color: var(--ink);
    margin: 0 0 12px;
  }
  .sd-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
  }
  .sd-target {
    background: #fff;
    border: 1px solid rgba(184, 134, 42, 0.25);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 14px 16px;
  }
  .sd-target-label {
    font-family: Fraunces, serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .sd-target-dose {
    font-family: Inter, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
  }
  .sd-target-note {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
  }
  .sd-food-note {
    margin: 0 0 18px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink);
  }
  .sd-cessation {
    background: rgba(11, 26, 58, 0.04);
    border-left: 4px solid var(--ink);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 18px;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--ink);
  }
  .sd-kosher-note {
    background: rgba(184, 134, 42, 0.07);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 16px;
  }
  .sd-kosher-head {
    font-family: Fraunces, serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 4px;
  }
  .sd-kosher-note p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--ink);
  }
  .sd-citations {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--muted);
  }
  .sd-citations a { color: var(--crimson); text-decoration: underline; }
  @media (max-width: 720px) {
    .smoker-disclosure > summary { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
    .smoker-disclosure .sd-teaser { font-size: 0.8rem; flex-basis: 100%; margin-left: 46px; margin-top: -2px; }
    .smoker-disclosure .sd-label { font-size: 1rem; }
    .sd-grid { grid-template-columns: 1fr; }
    .sd-body { padding: 4px 18px 22px; }
  }

  /* ---------- Concierge services paired row (ConciergeO2 + Refresh MD) ---------- */
  .concierge-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 28px;
  }
  .concierge-card {
    border-radius: var(--radius);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
  }
  .concierge-card--o2 {
    background: #fefcf6;
    border: 1px solid var(--line);
  }
  .concierge-card--refresh {
    background: linear-gradient(135deg, #0b1a3a 0%, #142554 100%);
    border: 1px solid var(--gold);
    color: var(--parchment);
  }
  .concierge-card--refresh .kicker { letter-spacing: .14em; font-size: 11px; font-weight: 700; }
  @media (max-width: 820px) {
    .concierge-pair { grid-template-columns: 1fr; }
  }

  @media (max-width: 900px){
    .rank-row { grid-template-columns: 40px 1fr; row-gap: 10px; gap: 10px; padding: 16px 14px; align-items: start; }
    .rank-row:first-child { display: none; }
    /* Force every cell except the rank number into column 2 so text wraps in the full content width. */
    .rank-row > * { grid-column: 2; min-width: 0; }
    .rank-row > .pos { grid-column: 1; grid-row: 1; align-self: start; font-size: 20px; }
    .rank-row .col-evid::before { content: "Evidence: "; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-right: 4px; }
    .rank-row .col-kosher::before { content: "Kosher: "; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-right: 4px; display: block; margin-bottom: 4px; }
    .rank-row .col-rct::before { content: "Key RCT: "; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-right: 4px; }
    .rank-row .col-evid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    .rank-row .col-evid .badge { margin-left: 0; }
    .rank-row .col-rct { font-size: 13.5px; line-height: 1.5; }
    .rank-row .col-cta { justify-self: start; margin-top: 2px; }
    .rank-row .col-cta .grade-pill { min-width: 56px; height: 40px; font-size: 18px; }
  }

  /* Tools section */
  .tool {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; display: flex; flex-direction: column; gap: 8px; min-height: 100%;
  }
  .tool h4 { margin: 0; font-family: Fraunces, serif; font-size: 19px; }
  .tool .desc { font-size: 14.5px; color: var(--ink-2); margin: 0; }
  .tool .link { font-size: 14px; font-weight: 600; color: var(--crimson); text-decoration: none; margin-top: auto; align-self: flex-start; }
  .tool .link:hover { text-decoration: underline; }
  .tool .tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

  /* Tools section — cards-as-triggers (only one tool open at a time) */
  .tools-grid .tool { cursor: pointer; transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; position: relative; }
  .tools-grid .tool:hover { border-color: var(--gold); box-shadow: 0 10px 24px -16px rgba(11,26,58,0.18); transform: translateY(-1px); }
  .tools-grid .tool:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
  .tools-grid .tool.is-active { border-color: var(--crimson); background: linear-gradient(180deg, #fffdf7 0%, #fff 100%); box-shadow: 0 12px 28px -18px rgba(138,31,42,0.22); }
  .tools-grid .tool.is-active .link { color: var(--crimson); }
  .tools-grid .tool.is-active .link::after { content: " \25BE"; display: inline-block; transform: rotate(180deg); margin-left: 4px; }
  .tools-grid .tool .link::after { content: " \25BE"; display: inline-block; margin-left: 4px; opacity: 0.7; transition: transform 0.18s ease; }
  /* Hidden-by-default tool panels (toggled open by card clicks) */
  .panel.is-hidden-tool { display: none; }
  /* Spacer divs between sequential tool panels — hide when both sides collapsed */
  .tools-spacer { height: 22px; transition: height 0.2s ease; }
  .tools-spacer.is-collapsed { height: 0; }
  /* Active-tool subtle banner above an open tool */
  .panel.is-active-tool { border-color: var(--crimson); box-shadow: 0 16px 40px -22px rgba(138,31,42,0.22); animation: tool-reveal 0.32s ease-out; }
  @keyframes tool-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
  /* Med depletion: dual button row (Show depletions + Smoker guide) */
  .meds-action-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
  .btn-smoker {
    cursor: pointer; padding: 11px 18px; font: inherit; font-weight: 600; font-size: 14px;
    background: #fdf4e8; color: var(--crimson); border: 1px solid #e7c89a; border-radius: 10px;
    display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s ease, border-color 0.15s ease;
  }
  .btn-smoker:hover { background: #fae8d0; border-color: var(--crimson); }
  .btn-smoker[aria-expanded="true"] { background: var(--crimson); color: #fff; border-color: var(--crimson); }
  .btn-smoker svg { flex-shrink: 0; }
  .btn-smoker .btn-smoker-chevron { transition: transform 0.18s ease; font-size: 12px; opacity: 0.9; }
  .btn-smoker[aria-expanded="true"] .btn-smoker-chevron { transform: rotate(180deg); }
  .smoker-content { display: none; margin-top: 16px; padding: 20px 24px; background: var(--parchment-2); border: 1px solid var(--line); border-radius: 10px; animation: tool-reveal 0.28s ease-out; }
  .smoker-content.is-open { display: block; }
  .smoker-content h4.sd-grid-head { margin: 18px 0 10px; font-family: Fraunces, serif; font-size: 17px; color: var(--ink); }
  .smoker-content .sd-lead { margin: 0 0 14px; color: var(--ink-2); }
  .smoker-content .sd-warning { margin: 14px 0; padding: 14px 16px; background: #fff5e9; border: 1px solid #e0a974; border-radius: 8px; }
  .smoker-content .sd-warning-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--crimson); margin-bottom: 8px; }
  .smoker-content .sd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
  .smoker-content .sd-target { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
  .smoker-content .sd-target-label { font-weight: 700; font-family: Fraunces, serif; color: var(--ink); }
  .smoker-content .sd-target-dose { color: var(--crimson); font-weight: 600; margin-top: 4px; font-size: 14px; }
  .smoker-content .sd-target-note { color: var(--ink-2); font-size: 12.5px; margin-top: 4px; }
  .smoker-content .sd-food-note { margin: 14px 0 0; color: var(--ink-2); }
  .smoker-content .sd-cessation { margin: 14px 0; padding: 12px 14px; background: rgba(11,26,58,0.04); border-left: 3px solid var(--ink); border-radius: 6px; color: var(--ink); }
  .smoker-content .sd-kosher-note { margin: 14px 0; padding: 12px 14px; background: rgba(184,134,42,0.07); border: 1px solid var(--gold-soft); border-radius: 8px; }
  .smoker-content .sd-kosher-head { font-weight: 700; color: var(--gold); margin-bottom: 6px; }
  .smoker-content .sd-citations { margin-top: 16px; font-size: 12.5px; color: var(--ink-2); }
  /* Free Tools: tool-already-displayed nudge */
  .tools-empty-nudge { padding: 24px 28px; background: var(--parchment-2); border: 1px dashed var(--gold-soft); border-radius: 12px; text-align: center; color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
  .tools-empty-nudge strong { color: var(--ink); display: block; font-family: Fraunces, serif; font-size: 17px; margin-bottom: 4px; }
  @media (max-width: 720px) {
    .meds-action-row { gap: 8px; }
    .btn-smoker { width: 100%; justify-content: center; }
    .meds-action-row > .btn-primary { width: 100%; }
  }

  /* Pillar pages */
  .pillar {
    background: var(--parchment-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .pillar .num { font-family: Fraunces, serif; color: var(--gold); font-size: 14px; letter-spacing: .12em; }
  .pillar h3 { margin: 0; }
  .pillar a.read { font-size: 14px; color: var(--crimson); font-weight: 600; text-decoration: none; margin-top: auto; align-self: flex-start; }

  /* Interactive tools (live) */
  .panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(20px, 3vw, 32px);
  }
  .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
  .field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
  .field input, .field select {
    font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  }
  .field input:focus, .field select:focus { outline: 2px solid var(--gold-soft); outline-offset: 1px; }
  .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  @media (max-width: 540px){ .checks { grid-template-columns: 1fr; } }
  .check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .check input { margin-top: 3px; }
  .result {
    margin-top: 18px; padding: 18px; border-radius: 12px;
    background: var(--parchment-2); border: 1px solid var(--line);
  }
  .result h4 { margin: 0 0 8px; font-family: Fraunces, serif; font-size: 18px; }
  .result ul { margin: 0; padding-left: 1.1em; }

  /* Verifier tool */
  .verifier-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 6px; flex-wrap: wrap; }
  .verifier-tab {
    background: transparent; border: none; border-bottom: 3px solid transparent;
    padding: 10px 16px; font: inherit; font-weight: 600; font-size: 14px;
    color: var(--ink-2); cursor: pointer; transition: all 0.15s ease;
    margin-bottom: -1px;
  }
  .verifier-tab:hover { color: var(--ink); }
  .verifier-tab.is-active { color: var(--ink); border-bottom-color: var(--gold); }
  .verifier-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    border: 1px solid transparent; white-space: nowrap;
  }
  .verifier-badge-green { background: #e8f3e6; color: #2c5e1f; border-color: #b9d9ad; }
  .verifier-badge-amber { background: #fcf2d5; color: #7a5410; border-color: #e8cf83; }
  .verifier-badge-red { background: #fbe5e6; color: #8a1f2a; border-color: #f0bcc0; }
  .verifier-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
  .verifier-card + .verifier-card { margin-top: 12px; }
  .verifier-card h4 { margin: 0 0 4px; font-family: Fraunces, serif; font-size: 20px; color: var(--ink); }
  .verifier-card .verifier-cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .verifier-section-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
  .verifier-brand-row {
    display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 12px;
    padding: 10px 0; border-top: 1px dashed var(--line); align-items: start;
    font-size: 14px;
  }
  .verifier-brand-row:first-of-type { border-top: none; }
  .verifier-brand-row strong { color: var(--ink); }
  .verifier-brand-row .agency { color: var(--ink-2); }
  .verifier-brand-row .notes { color: var(--muted); font-size: 13px; }
  @media (max-width: 640px) { .verifier-brand-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; } }
  .verifier-checklist { list-style: none; padding: 0; margin: 0; }
  .verifier-checklist li { padding: 6px 0 6px 28px; position: relative; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
  .verifier-checklist li::before {
    content: ""; position: absolute; left: 4px; top: 13px;
    width: 14px; height: 14px; border: 2px solid var(--gold); border-radius: 3px; background: #fff;
  }
  .verifier-pitfalls { list-style: disc; padding-left: 22px; margin: 0; }
  .verifier-pitfalls li { padding: 3px 0; font-size: 14px; color: var(--ink-2); }
  .verifier-halacha {
    margin-top: 14px; padding: 12px 14px; background: #fdf9ec; border-left: 3px solid var(--gold);
    border-radius: 4px; font-size: 13.5px; color: var(--ink-2); font-style: italic;
  }
  .verifier-empty {
    padding: 24px; text-align: center; color: var(--muted); font-size: 14px;
    background: var(--parchment-2); border: 1px dashed var(--line); border-radius: 10px;
  }

  /* Disclosure / Chabad-compliant box */
  .disclosure {
    border: 1px solid var(--gold-soft);
    background: color-mix(in oklab, var(--gold-soft) 20%, white);
    border-radius: var(--radius);
    padding: 22px;
    font-size: 14.5px;
  }
  .disclosure h3 { margin-top: 0; }

  /* Founder */
  .founder { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; align-items: center; }
  @media (max-width: 800px){ .founder { grid-template-columns: 1fr; } }
  .founder-art {
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    background:
      radial-gradient(ellipse at 50% 30%, rgba(184,134,42,.18), transparent 65%),
      linear-gradient(160deg, var(--ink) 0%, #142554 100%);
    border: 1px solid var(--gold-soft);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 32px 28px;
    text-align: center;
  }
  .founder-art .mark { width: 70%; max-width: 240px; height: auto; }
  .founder-art .mark path { stroke: var(--gold); }
  .founder-art .lockup-name { font-family: Fraunces, serif; color: #f6efe1; font-size: 22px; letter-spacing: .04em; margin: 18px 0 4px; line-height: 1.2; }
  .founder-art .lockup-tagline { font-family: Inter, sans-serif; color: var(--gold-soft); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 18px; }
  .founder-art .lockup-rule { width: 38px; height: 1px; background: var(--gold); opacity: .55; margin: 0 0 14px; }
  .founder-art .lockup-foot { font-family: Inter, sans-serif; color: rgba(246,239,225,.55); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; margin: 0; }
  .founder-text h2 { margin-top: 0; }

  /* Newsletter */
  .newsletter { background: var(--ink); color: var(--parchment); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
  @media (max-width: 800px){ .newsletter { grid-template-columns: 1fr; } }
  .newsletter h2 { color: var(--parchment); margin: 0 0 8px; }
  .newsletter p { color: #ecdfc6; margin: 0; }
  .newsletter form { display: flex; gap: 8px; }
  .newsletter input {
    flex: 1; padding: 12px 14px; border-radius: 999px; border: 1px solid rgba(246,239,225,.3);
    background: rgba(255,255,255,.06); color: var(--parchment); font: inherit;
  }
  .newsletter input::placeholder { color: rgba(246,239,225,.6); }
  .newsletter button {
    padding: 12px 18px; border-radius: 999px; border: 0; background: var(--gold);
    color: var(--ink); font-weight: 600; cursor: pointer; font: inherit;
  }
  .newsletter button:hover { background: var(--gold-soft); }

  /* Footer */
  footer { padding: 36px 0 56px; color: var(--muted); font-size: 13.5px; }
  footer .row { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
  footer a { color: var(--muted); text-decoration: none; }
  footer a:hover { color: var(--ink); }

  /* Utility */
  .lead { font-size: 17px; }
  .pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
  .pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
  .hr-ornament { text-align: center; color: var(--gold); font-family: Fraunces, serif; letter-spacing: .4em; font-size: 14px; padding: 18px 0; }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
  }


/* =========================================================
   NAV DROPDOWN SYSTEM (Phase 4 — site restructure)
   ========================================================= */
.nav { position: relative; }
.nav-item { position: relative; display: inline-block; }
.nav-item > a, .nav-item > button {
  background: transparent; border: 0; font: inherit; cursor: pointer;
  color: var(--ink); padding: 8px 10px; text-decoration: none;
  font-weight: 500; letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 4px;
}
.nav-item > a:hover, .nav-item > button:hover { color: var(--gold); }
.nav-item .caret { font-size: 10px; opacity: 0.7; transform: translateY(1px); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid rgba(11,26,58,0.10);
  border-radius: 10px; box-shadow: 0 12px 28px rgba(11,26,58,0.14);
  padding: 8px; margin-top: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  z-index: 200;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s;
}
.nav-dropdown a {
  display: block; padding: 9px 12px; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14.5px;
  line-height: 1.35;
}
.nav-dropdown a small {
  display: block; font-size: 12px; color: rgba(11,26,58,0.62);
  font-weight: 400; margin-top: 2px;
}

/* Tall dropdown variant for Devices (12 items) — tighter spacing, capped height with scroll */
.nav-dropdown-tall {
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
}
.nav-dropdown-tall a {
  padding: 7px 12px;
  font-size: 14px;
}
.nav-dropdown-tall a small {
  font-size: 11.5px;
  margin-top: 1px;
}
.nav-dropdown a:hover, .nav-dropdown a:focus {
  background: var(--parchment-2, #f6efe1); color: var(--gold);
  outline: none;
}
.nav-dropdown hr {
  border: 0; border-top: 1px solid rgba(11,26,58,0.08); margin: 6px 8px;
}

/* Mobile nav — accordion-style dropdowns */
@media (max-width: 880px) {
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid rgba(11,26,58,0.10);
    padding: 12px 18px 18px; gap: 4px; z-index: 100;
    box-shadow: 0 8px 24px rgba(11,26,58,0.10);
  }
  .nav.is-open .nav-item { display: block; width: 100%; }
  .nav.is-open .nav-item > a,
  .nav.is-open .nav-item > button {
    display: block; width: 100%; text-align: left; padding: 10px 6px;
    border-bottom: 1px solid rgba(11,26,58,0.06);
  }
  .nav.is-open .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 4px 0 10px 16px;
    margin: 0; min-width: 0; background: transparent;
  }
  .nav.is-open .nav-dropdown { display: none; }
  .nav.is-open .nav-item.is-open > .nav-dropdown { display: block; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 881px) {
  .nav-toggle { display: none; }
}
.nav-toggle {
  background: transparent; border: 1px solid rgba(11,26,58,0.18);
  border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer;
  color: var(--ink); margin-left: auto;
}

/* ===== DEVICE DETAIL PAGES + CATALOG HUB ===== */
.breadcrumbs {
  font-size: 13px; color: rgba(11,26,58,0.65);
  margin: 16px 0 22px; letter-spacing: 0.01em;
}
.breadcrumbs a { color: rgba(11,26,58,0.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); text-decoration: underline; }

.device-detail .wrap, .devices-hub .wrap { max-width: 1080px; }

.device-hero { margin: 8px 0 28px; }
.device-hero h1 {
  font-family: Fraunces, serif; font-weight: 600;
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15;
  color: var(--ink); margin: 8px 0 12px;
}
.device-tagline {
  font-size: 18px; line-height: 1.55; color: rgba(11,26,58,0.78);
  max-width: 64ch;
}

.device-section { margin: 32px 0; }
.device-section h2 {
  font-family: Fraunces, serif; font-weight: 600;
  font-size: 22px; color: var(--ink); margin: 0 0 14px;
}
.device-section p { font-size: 16px; line-height: 1.65; color: rgba(11,26,58,0.85); max-width: 70ch; }

.device-picks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; margin-top: 16px;
}
.device-pick {
  background: #fff; border: 1px solid rgba(11,26,58,0.10);
  border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.device-pick:hover { box-shadow: 0 10px 28px rgba(11,26,58,0.10); transform: translateY(-2px); }
.device-pick-img {
  display: block; aspect-ratio: 4/3; background: #f9f6ee;
  overflow: hidden; border-bottom: 1px solid rgba(11,26,58,0.06);
}
.device-pick-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 18px;
  transition: transform .25s ease;
}
.device-pick-img:hover img { transform: scale(1.04); }
.device-pick-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.device-pick-body h3 {
  font-family: Fraunces, serif; font-weight: 600;
  font-size: 17px; color: var(--ink); margin: 0; line-height: 1.3;
}
.device-pick-body p { font-size: 14.5px; line-height: 1.55; color: rgba(11,26,58,0.78); margin: 0; flex: 1; }
.device-buy {
  display: inline-block; align-self: flex-start;
  background: var(--gold, #b8862a); color: #fff !important;
  padding: 8px 14px; border-radius: 8px; text-decoration: none !important;
  font-weight: 600; font-size: 13.5px; letter-spacing: 0.01em;
  transition: background .15s;
}
.device-buy:hover { background: #9a701f; }

.kec-full { margin-top: 12px; }
.kec-full summary { font-weight: 600; color: var(--ink); cursor: pointer; padding: 10px 0; }
.kec-full[open] summary { color: var(--gold); }
.kec-body {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 22px; margin: 10px 0 4px;
}
.kec-body > div {
  background: rgba(184,134,42,.05);
  border-left: 3px solid var(--gold-soft, rgba(184,134,42,.25));
  padding: 10px 14px; border-radius: 0 8px 8px 0;
}
.kec-body > div.full { grid-column: 1 / -1; }
.kec-body dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); margin: 0 0 4px; }
.kec-body dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }

.device-faq { margin: 32px 0; }
.device-faq h2 { font-family: Fraunces, serif; font-weight: 600; font-size: 22px; color: var(--ink); margin: 0 0 14px; }
.device-faq details {
  border-bottom: 1px solid rgba(11,26,58,0.08);
  padding: 14px 0;
}
.device-faq details:first-of-type { border-top: 1px solid rgba(11,26,58,0.08); }
.device-faq summary {
  font-weight: 600; color: var(--ink); cursor: pointer; font-size: 16px;
  line-height: 1.4;
}
.device-faq[open] summary { color: var(--gold); }
.device-faq details p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: rgba(11,26,58,0.85); }

.device-other { margin: 40px 0 8px; padding: 22px 24px; background: rgba(11,26,58,0.04); border-radius: 14px; }
.device-other h2 { font-family: Fraunces, serif; font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 12px; }
.device-other ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.device-other a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(11,26,58,0.10);
  font-size: 13.5px; color: var(--ink); text-decoration: none;
  transition: all .15s;
}
.device-other a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Catalog hub grid */
.device-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.device-cat-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(11,26,58,0.10);
  border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.device-cat-card:hover { box-shadow: 0 14px 32px rgba(11,26,58,0.12); transform: translateY(-3px); }
.device-cat-img { aspect-ratio: 4/3; background: #f9f6ee; overflow: hidden; }
.device-cat-img img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.device-cat-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.device-cat-body .kicker { font-size: 11px; }
.device-cat-body h3 {
  font-family: Fraunces, serif; font-weight: 600;
  font-size: 19px; color: var(--ink); margin: 0; line-height: 1.25;
}
.device-cat-body p { font-size: 14px; line-height: 1.55; color: rgba(11,26,58,0.75); margin: 4px 0; }
.device-cat-cta { color: var(--gold); font-weight: 600; font-size: 13.5px; margin-top: 4px; }


/* --- PubMed citation links + references block --- */
.cite-pm {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(184, 134, 42, .55);
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.cite-pm::after {
  content: " \2197";
  font-size: 0.85em;
  opacity: 0.65;
  margin-left: 1px;
}
.cite-pm:hover {
  text-decoration-color: var(--gold);
  background: rgba(184, 134, 42, .08);
  color: var(--crimson);
}

/* --- EBL-style evidence block: trial · metadata · outcome · limitation --- */
.evidence-block {
  margin: 14px 0;
  padding: 14px 16px 14px 18px;
  background: rgba(184, 134, 42, 0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.evidence-block .ev-tier {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: 2px;
}
.ev-tier.tier-rct        { background: #0b1a3a; color: #fff; }
.ev-tier.tier-meta       { background: #18305f; color: #fff; }
.ev-tier.tier-obs        { background: var(--gold); color: #fff; }
.ev-tier.tier-mech       { background: #6b6357; color: #fff; }
.evidence-block .ev-meta {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(11, 26, 58, 0.7);
}
.evidence-block .ev-showed {
  display: block;
  margin-top: 6px;
}
.evidence-block .ev-showed::before {
  content: "What it showed.";
  font-weight: 700;
  color: var(--ink);
  margin-right: 6px;
}
.evidence-block .ev-limit {
  display: block;
  margin-top: 5px;
  color: rgba(11, 26, 58, 0.78);
}
.evidence-block .ev-limit::before {
  content: "What it did not prove.";
  font-weight: 700;
  color: rgba(138, 31, 42, 0.9);
  margin-right: 6px;
}
.device-refs {
  margin: 64px auto 0;
  max-width: 880px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 32px 36px;
  font-family: var(--sans);
}
.device-refs h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 0 0 .35em 0;
  color: var(--navy);
}
.device-refs-intro {
  font-size: .92rem;
  color: var(--text-dim);
  margin: 0 0 1.2em 0;
  line-height: 1.55;
}
.device-refs-intro em {
  font-style: italic;
  color: var(--text-dim);
}
.device-refs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.device-refs li {
  padding: 10px 0 10px 24px;
  border-top: 1px dashed var(--border);
  position: relative;
  font-size: .98rem;
  line-height: 1.5;
}
.device-refs li:first-child {
  border-top: none;
  padding-top: 4px;
}
.device-refs li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--gold);
  font-weight: 700;
}
.device-refs a.cite-pm {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.device-refs a.cite-pm:hover {
  background: rgba(184, 134, 42, .05);
}
@media (max-width: 640px) {
  .device-refs { padding: 24px 20px; margin-top: 40px; }
  .device-refs h2 { font-size: 1.3rem; }
  .device-refs li { font-size: .92rem; }
}

/* ===== Exercise section components (bucket cards, table, dl grid) ===== */
.bucket-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.bucket-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(11, 26, 58, 0.10);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.bucket-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(11, 26, 58, 0.10);
  border-color: var(--gold);
}
.bucket-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-family: 'Fraunces', serif;
  color: var(--ink);
}
.bucket-card p {
  margin: 0 0 14px;
  color: rgba(11, 26, 58, 0.70);
  font-size: 14.5px;
  line-height: 1.55;
}
.bucket-card-cta {
  color: var(--gold);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
}

.dispensary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(11, 26, 58, 0.06);
}
.dispensary-table thead {
  background: var(--navy);
  color: #f6efe1;
}
.dispensary-table th,
.dispensary-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(11, 26, 58, 0.08);
  vertical-align: top;
}
.dispensary-table th {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .02em;
}
.dispensary-table tr:last-child td { border-bottom: none; }
.dispensary-table tbody tr:nth-child(even) { background: rgba(184, 134, 42, 0.04); }

.halacha-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 22px;
  margin: 12px 0 0;
}
.halacha-grid dt {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--gold);
  font-size: 17px;
}
.halacha-grid dd {
  margin: 0;
  color: rgba(11, 26, 58, 0.85);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .halacha-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .halacha-grid dt { margin-top: 8px; }
  .dispensary-table { font-size: 14px; }
  .dispensary-table th, .dispensary-table td { padding: 10px 12px; }
}
