/* City of Edinburg Employee Benefits Portal — site.css
   Tokens first. Client brand: City seal navy + red, Voyager navy, mascot gold. Warm paper ground. */
:root{
  --navy:#16305f; --navy-ink:#0f2247; --navy-soft:#2c4a86; --seal-red:#d7262e; --gold:#c99a3f; --teal:#2a7ba0;
  --paper:#f6f4ee; --paper-2:#eeeae0; --white:#ffffff; --ink:#1c2233; --muted:#5b6478; --line:#d9d4c7;
  --tint:#e9eef8; --tint-2:#dbe4f5; --ok:#1f7a4d; --warn:#9a5b00;
  --font-head:"Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:"Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --step--1:clamp(.875rem,.85rem + .2vw,.95rem);
  --step-0:clamp(1.0625rem,1rem + .35vw,1.2rem);
  --step-1:clamp(1.25rem,1.15rem + .6vw,1.5rem);
  --step-2:clamp(1.6rem,1.35rem + 1.2vw,2.2rem);
  --step-3:clamp(2.1rem,1.6rem + 2.4vw,3.2rem);
  --radius:14px; --radius-sm:9px; --maxw:62rem; --gutter:clamp(1rem,4vw,2.25rem);
  --ease-out:cubic-bezier(.23,1,.32,1); --shadow:0 1px 2px rgba(15,34,71,.06),0 8px 24px -12px rgba(15,34,71,.18);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition-duration:.01ms!important}}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-body);font-size:var(--step-0);line-height:1.55;padding-bottom:calc(72px + env(safe-area-inset-bottom))}
@media (min-width:768px){body{padding-bottom:0}}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--navy);text-underline-offset:.15em}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}
h1,h2,h3{font-family:var(--font-head);color:var(--navy-ink);line-height:1.15;margin:0 0 .5em;font-weight:600;letter-spacing:-.01em}
h1{font-size:var(--step-3)} h2{font-size:var(--step-2)} h3{font-size:var(--step-1)}
p{margin:0 0 1em} p:last-child{margin-bottom:0}
ul,ol{padding-left:1.25em;margin:0 0 1em}
[hidden]{display:none!important}
.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Language: both versions are in the HTML; the active one shows. */
html[data-lang="en"] .l[lang="es"],html[data-lang="es"] .l[lang="en"]{display:none!important}
.l{display:inline} div.l,p.l,ul.l,ol.l,section.l,li.l,h1.l,h2.l,h3.l,figcaption.l,dd.l,dt.l,td.l,th.l,summary.l{display:block}
tr.l{display:table-row} td.l,th.l{display:table-cell}

/* Header */
.top{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.top .wrap{display:flex;align-items:center;gap:.75rem;min-height:64px}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--navy-ink);min-width:0}
.brand img{width:44px;height:44px;border-radius:50%}
.brand b{font-family:var(--font-head);font-weight:600;font-size:1.05rem;line-height:1.1;white-space:nowrap}
@media (max-width:420px){.brand b{font-size:.95rem}.brand small{font-size:.72rem}.brand img{width:38px;height:38px}}
.brand small{display:block;color:var(--muted);font-size:.8rem;line-height:1.1}
.top .voy{margin-left:auto;display:none}
.top .voy img{height:30px;width:auto}
@media (min-width:600px){.top .voy{display:block}}
.lang{margin-left:auto;display:inline-flex;border:1.5px solid var(--navy);border-radius:999px;padding:3px;background:var(--white)}
@media (min-width:600px){.lang{margin-left:1rem}}
@media (max-width:420px){.lang{flex:none}.lang button{padding:.35rem .6rem;font-size:.85rem}}
.lang button{appearance:none;border:0;background:transparent;color:var(--navy);font:inherit;font-weight:700;font-size:.9rem;padding:.35rem .8rem;border-radius:999px;min-height:36px;cursor:pointer;
  transition:background 160ms var(--ease-out),color 160ms var(--ease-out)}
.lang button[aria-pressed="true"]{background:var(--navy);color:var(--white)}
.lang .abbr{display:none} @media (max-width:480px){.lang .full{display:none}.lang .abbr{display:inline}.lang button{padding:.35rem .7rem}}
.lang button:active{transform:scale(.97)}

/* Hero / home */
.hero{padding:clamp(1.5rem,5vw,3.5rem) 0 1.5rem}
.hero .eyebrow{color:var(--seal-red);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.8rem;margin-bottom:.6rem}
.hero p.lead{font-size:var(--step-1);color:var(--muted);max-width:38ch}
.hero-grid{display:grid;gap:1.5rem;align-items:center}
@media (min-width:768px){.hero-grid{grid-template-columns:1.3fr 1fr}}
.hero-video{margin-top:.5rem} .hero-video .videofig{margin-bottom:.5rem} .hero-note{color:var(--muted);font-size:.95rem;margin:0}
@media (min-width:768px){.hero-grid{grid-template-columns:1.05fr 1fr;align-items:start}.hero-video{margin-top:.6rem}}
.choice{display:grid;gap:.75rem;margin:1.25rem 0 0}
@media (min-width:640px) and (max-width:767px){.choice{grid-template-columns:repeat(3,1fr)}}
.choice a{display:flex;flex-direction:column;gap:.15rem;text-decoration:none;background:var(--white);border:2px solid var(--navy);border-radius:var(--radius);padding:1rem 1.1rem;min-height:84px;box-shadow:var(--shadow);transition:transform 160ms var(--ease-out),background 160ms var(--ease-out)}
.choice a b{font-size:1.15rem;color:var(--navy-ink)} .choice a span{color:var(--muted);font-size:.95rem}
.choice a.new{border-style:dashed}
@media (hover:hover) and (pointer:fine){.choice a:hover{transform:translateY(-2px);background:var(--tint)}}
.choice a:active{transform:scale(.98)}
.quick{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.65rem 1.15rem;border-radius:999px;font-weight:700;text-decoration:none;border:2px solid var(--navy);background:var(--navy);color:var(--white);font-size:1rem;transition:transform 160ms var(--ease-out),background 160ms var(--ease-out);cursor:pointer;font-family:inherit}
.btn:active{transform:scale(.97)} .btn.ghost{background:var(--white);color:var(--navy)} .btn.red{background:var(--seal-red);border-color:var(--seal-red)}
@media (hover:hover) and (pointer:fine){.btn:hover{background:var(--navy-soft);border-color:var(--navy-soft)}.btn.ghost:hover{background:var(--tint);border-color:var(--navy)}}
.btn svg{width:20px;height:20px;flex:none}

/* Sections */
section.block{padding:clamp(1.5rem,4vw,2.5rem) 0;border-top:1px solid var(--line)}
section.block.tinted{background:var(--paper-2);border-top:0}

/* Topic page */
.topic-head{padding:clamp(1.25rem,4vw,2.5rem) 0 1rem}
.topic-head .crumb{font-size:.9rem;color:var(--muted);margin-bottom:.5rem} .topic-head .crumb a{color:var(--muted)}
.answer{background:var(--white);border-left:5px solid var(--gold);border-radius:var(--radius-sm);padding:1rem 1.15rem;font-size:var(--step-1);line-height:1.45;box-shadow:var(--shadow);margin:1rem 0 1.5rem}
.answer p{margin:0;color:var(--navy-ink)}
.video{position:relative;background:var(--navy-ink);border-radius:var(--radius);overflow:hidden;aspect-ratio:16/9;box-shadow:var(--shadow)}
.video video,.video img{width:100%;height:100%;object-fit:cover;display:block}
.video.has:not(.playing) video{pointer-events:none}
.video .play{position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;border-radius:50%;border:0;background:var(--navy);color:var(--white);display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 26px rgba(15,34,71,.28);transition:transform 160ms var(--ease-out),background 160ms var(--ease-out)}
.video .play svg{width:40px;height:40px;margin-left:4px}
@media (hover:hover) and (pointer:fine){.video .play:hover{background:var(--navy-soft);transform:scale(1.04)}}
.video .play:active{transform:scale(.96)}
.video.playing .play{display:none}
.video .chip{position:absolute;left:12px;top:12px;background:rgba(255,253,247,.94);color:var(--navy-ink);font-weight:700;font-size:.85rem;padding:.3rem .65rem;border-radius:999px;box-shadow:0 2px 8px rgba(15,34,71,.12)}
.video .coming{position:absolute;inset:auto 0 0 0;background:rgba(15,34,71,.86);color:var(--white);padding:.6rem 1rem;font-weight:700;display:flex;gap:.6rem;align-items:center;font-size:.95rem}
.video .coming .dot{width:10px;height:10px;border-radius:50%;background:var(--gold);flex:none}
figure.videofig{margin:0 0 1.5rem} figure.videofig figcaption{color:var(--muted);font-size:.9rem;margin-top:.5rem}
.steps{counter-reset:s;list-style:none;padding:0;margin:0 0 1.5rem;display:grid;gap:.6rem}
.steps li{counter-increment:s;position:relative;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.85rem 1rem .85rem 3.4rem;min-height:56px}
.steps li::before{content:counter(s);position:absolute;left:.9rem;top:.75rem;width:1.9rem;height:1.9rem;border-radius:50%;background:var(--navy);color:var(--white);font-weight:700;display:grid;place-items:center;font-size:.95rem}
.steps li b{color:var(--navy-ink)}
.pointer{display:flex;gap:.8rem;align-items:flex-start;background:var(--tint);border-radius:var(--radius-sm);padding:.9rem 1rem;margin:0 0 1.5rem;font-size:.98rem}
.pointer svg{width:24px;height:24px;flex:none;color:var(--navy)}
.next{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 1rem}
.two{display:grid;gap:1rem} @media (min-width:768px){.two{grid-template-columns:1fr 1fr}}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.2rem;box-shadow:var(--shadow)}
.card.hmo{border-top:6px solid var(--navy)} .card.ppo{border-top:6px solid var(--seal-red)}
.card h3{margin-bottom:.35rem} .card .tag{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:.4rem}
.card ul{margin-bottom:.6rem}
.compare{width:100%;border-collapse:collapse;background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);font-size:.97rem}
.compare th,.compare td{padding:.75rem .8rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.compare th{background:var(--navy);color:var(--white);font-weight:700} .compare tbody th{background:var(--paper-2);color:var(--navy-ink);width:34%}
.compare tr:last-child td,.compare tr:last-child th{border-bottom:0}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 1.5rem}
.note{font-size:.92rem;color:var(--muted);border-left:3px solid var(--gold);padding-left:.8rem;margin:0 0 1.25rem}
.person{display:grid;grid-template-columns:auto 1fr;gap:.9rem;align-items:start;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.9rem 1rem;margin-bottom:.75rem}
.person .av{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:var(--white);background:var(--teal);font-family:var(--font-head);font-size:1.2rem}
.person.ppo .av{background:var(--seal-red)} .person.hmo .av{background:var(--navy)}
.person b{color:var(--navy-ink)} .person .pick{display:inline-block;margin-top:.35rem;font-weight:700;color:var(--navy)}
details.faq{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);margin-bottom:.6rem}
details.faq summary{cursor:pointer;padding:.9rem 1rem;font-weight:700;color:var(--navy-ink);list-style:none;display:flex;justify-content:space-between;gap:1rem;min-height:48px;align-items:center}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";font-size:1.4rem;color:var(--navy);flex:none;transition:transform 200ms var(--ease-out)}
details.faq[open] summary::after{transform:rotate(45deg)}
details.faq .body{padding:0 1rem 1rem;color:var(--ink)}
.dir{display:grid;gap:.6rem;margin:0 0 1.5rem} @media (min-width:640px){.dir{grid-template-columns:1fr 1fr}}
.dir div{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.8rem 1rem}
.dir b{display:block;color:var(--navy-ink)} .dir small{color:var(--muted);display:block}
.dir a{word-break:break-word}
.events{display:grid;gap:.75rem;margin:0 0 1.5rem} @media (min-width:640px){.events{grid-template-columns:1fr 1fr}}
.event{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.1rem}
.event h3{font-size:1.15rem;margin-bottom:.4rem}
.event .vs{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:.6rem 0 0}
.event .vs div{border-radius:var(--radius-sm);padding:.6rem .7rem;background:var(--tint);font-size:.95rem}
.event .vs div b{display:block;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.hr{background:var(--white);border:2px solid var(--navy);border-radius:var(--radius);padding:1.1rem 1.2rem;display:grid;gap:.6rem}
.hr .row{display:flex;flex-wrap:wrap;gap:.6rem}
.chooser{display:grid;gap:.75rem;margin:0 0 1.5rem}
.q{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.9rem 1rem}
.q p{font-weight:700;color:var(--navy-ink);margin-bottom:.5rem}
.q .opts{display:flex;flex-wrap:wrap;gap:.5rem}
.q label{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.4rem .8rem;border:1.5px solid var(--line);border-radius:999px;cursor:pointer;background:var(--paper)}
.q input{accent-color:var(--navy);width:18px;height:18px}
.result{border-radius:var(--radius);padding:1rem 1.15rem;background:var(--tint);border:2px solid var(--navy);font-size:1.05rem}
.result b{color:var(--navy-ink)}

/* Sticky mobile bar */
.bar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--white);border-top:1px solid var(--line);padding:.5rem var(--gutter) calc(.5rem + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
@media (min-width:768px){.bar{display:none}}
.bar a{min-height:48px;font-size:.98rem}

/* Footer */
footer{margin-top:2rem;background:var(--navy-ink);color:#d9e0f0;padding:2rem 0 2.5rem;font-size:.95rem}
footer .grid{display:grid;gap:1.25rem} @media (min-width:768px){footer .grid{grid-template-columns:1.2fr 1fr 1fr}}
footer h4{color:var(--white);margin:0 0 .4rem;font-family:var(--font-head);font-weight:600;font-size:1.05rem}
footer a{color:var(--white)} footer .pres{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}
footer .pres img{height:34px;width:auto;background:var(--white);padding:4px 8px;border-radius:6px}
footer .fine{margin-top:1.5rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.15);color:#aeb8d0;font-size:.85rem;display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;align-items:center}
.ai-tab{position:fixed;right:0;top:45%;transform:rotate(-90deg) translateY(-100%);transform-origin:right top;background:var(--navy);color:var(--white);text-decoration:none;font-size:.78rem;padding:.35rem .7rem;border-radius:6px 6px 0 0;display:none;z-index:15}
@media (min-width:900px){.ai-tab{display:block}}

/* Entry reveal (once per page, subtle) */
@media (prefers-reduced-motion:no-preference){
  .reveal{opacity:0;transform:translateY(8px);animation:rise 420ms var(--ease-out) forwards}
  .reveal:nth-child(2){animation-delay:60ms}.reveal:nth-child(3){animation-delay:120ms}
  @keyframes rise{to{opacity:1;transform:none}}
}

/* v0.3: navy hero, GEICO-style rows, glossary, Ask Voyager */
.hero{background:var(--navy-ink);color:var(--white);padding:clamp(1.25rem,4vw,2.5rem) 0 clamp(1.5rem,4vw,2.5rem)}
.hero .eyebrow{color:var(--gold)} .hero h1{color:var(--white)} .hero p.lead{color:#cfd6e6}
.hero-top{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center}
.hero img.mascot{width:clamp(96px,26vw,220px);height:auto;justify-self:end}
.hero-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.btn.gold{background:var(--gold);border-color:var(--gold);color:var(--navy-ink)} .btn.light{background:var(--white);border-color:var(--white);color:var(--navy-ink)}
@media (hover:hover) and (pointer:fine){.btn.gold:hover{background:#d8ab52;border-color:#d8ab52}.btn.light:hover{background:var(--tint);border-color:var(--tint)}}
section.block.start{border-top:0;padding-top:1.25rem}
.rows{display:grid;gap:.6rem}
.rows.two-col{gap:.6rem} @media (min-width:768px){.rows.two-col{grid-template-columns:1fr 1fr}}
.row{display:flex;align-items:center;gap:.9rem;text-decoration:none;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:.85rem 1rem;min-height:64px;color:var(--ink);box-shadow:var(--shadow);cursor:pointer;transition:transform 160ms var(--ease-out),background 160ms var(--ease-out)}
.row .ic{flex:none;width:46px;height:46px;border-radius:12px;background:var(--tint);color:var(--navy);display:grid;place-items:center} .row .ic svg{width:26px;height:26px}
.row .tx{min-width:0;flex:1} .row .tx b{display:block;color:var(--navy-ink);font-size:1.05rem;line-height:1.2} .row .tx span{color:var(--muted);font-size:.92rem}
.row .go{flex:none;color:var(--muted);font-size:1.6rem;line-height:1}
.row.navy{background:var(--navy);border-color:var(--navy);color:var(--white)} .row.navy .ic{background:rgba(255,255,255,.12);color:var(--white)} .row.navy .tx b{color:var(--white)} .row.navy .tx span{color:#cfd6e6} .row.navy .go{color:#cfd6e6}
.row.navy.dashed{background:var(--white);border:2px dashed var(--navy);color:var(--ink)} .row.navy.dashed .ic{background:var(--tint);color:var(--navy)} .row.navy.dashed .tx b{color:var(--navy-ink)} .row.navy.dashed .tx span{color:var(--muted)} .row.navy.dashed .go{color:var(--muted)}
@media (hover:hover) and (pointer:fine){.row:hover{transform:translateY(-2px)}.row.navy:hover{background:var(--navy-soft)}.row.navy.dashed:hover{background:var(--tint)}}
.row:active{transform:scale(.99)}
.row-btns{display:flex;flex-wrap:wrap;gap:.6rem}
.jump{display:flex;flex-wrap:wrap;gap:.35rem;margin:0 0 1rem} .jump a{min-width:40px;min-height:40px;display:grid;place-items:center;background:var(--white);border:1px solid var(--line);border-radius:10px;font-weight:700;text-decoration:none}
.gl-letter{font-size:1.4rem;margin:1.2rem 0 .5rem;color:var(--gold)}
/* Ask Voyager */
.ask-fab{position:fixed;right:14px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:40;display:inline-flex;align-items:center;gap:.5rem;background:var(--navy);color:var(--white);border:0;border-radius:999px;padding:.4rem 1rem .4rem .45rem;font:inherit;font-weight:700;box-shadow:0 10px 26px rgba(15,34,71,.3);cursor:pointer;transition:transform 160ms var(--ease-out)}
.ask-fab img{width:44px;height:44px;border-radius:50%;background:var(--paper);object-fit:contain;padding:3px}
.ask-fab:active{transform:scale(.97)} @media (min-width:768px){.ask-fab{bottom:24px;right:24px}}
.ask{position:fixed;right:14px;left:14px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:45;background:var(--white);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px rgba(15,34,71,.28);display:flex;flex-direction:column;max-height:min(70vh,560px);overflow:hidden}
@media (min-width:768px){.ask{left:auto;bottom:24px;right:24px;width:400px}}
.ask header{display:flex;align-items:center;gap:.6rem;padding:.7rem .9rem;background:var(--navy);color:var(--white)} .ask header img{width:36px;height:36px;border-radius:50%;background:var(--paper);padding:2px} .ask header b{flex:1}
.ask-close{appearance:none;background:transparent;border:0;color:var(--white);font-size:1.6rem;line-height:1;width:40px;height:40px;cursor:pointer;border-radius:8px}
.ask-log{padding:.8rem;overflow:auto;display:flex;flex-direction:column;gap:.55rem;font-size:.98rem}
.msg{max-width:92%;padding:.6rem .8rem;border-radius:14px;line-height:1.4} .msg.bot{background:var(--tint);color:var(--ink);align-self:flex-start;border-bottom-left-radius:4px} .msg.me{background:var(--navy);color:var(--white);align-self:flex-end;border-bottom-right-radius:4px}
.msg a{font-weight:700}
.chips{display:flex;flex-wrap:wrap;gap:.4rem} .chips button{font:inherit;font-size:.9rem;font-weight:700;color:var(--navy);background:var(--white);border:1.5px solid var(--navy);border-radius:999px;padding:.35rem .7rem;min-height:36px;cursor:pointer}
.ask-form{display:flex;gap:.5rem;padding:.6rem;border-top:1px solid var(--line)} .ask-form input{flex:1;min-width:0;font:inherit;font-size:1rem;padding:.6rem .8rem;border:1.5px solid var(--line);border-radius:12px;min-height:48px} .ask-form input:focus{outline:3px solid var(--gold);outline-offset:1px;border-color:var(--navy)}
.ask-form .btn{min-height:48px;padding:.5rem .9rem}

/* v0.4: big facts, simpler pages */
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin:0 0 1.25rem}
.facts div{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:.9rem .6rem;text-align:center;box-shadow:var(--shadow)}
.facts b{display:block;font-family:var(--font-head);font-weight:600;font-size:clamp(1.5rem,5vw,2.1rem);color:var(--navy);line-height:1.1}
.facts span{display:block;color:var(--muted);font-size:.9rem;margin-top:.25rem;line-height:1.25}
.answer{font-size:var(--step-1)} .answer p{line-height:1.45}
.steps li{font-size:1.02rem} .steps li b{display:block;margin-bottom:.1rem}
.compare th:first-child:empty{background:var(--paper-2)}

/* --- Start here: plan cards (replaces the three full-width bars) --- */
.picks{display:grid;gap:1rem}
@media (min-width:880px){.picks{grid-template-columns:repeat(3,1fr);gap:1.1rem}}
.pick{display:flex;flex-direction:column;text-decoration:none;color:var(--ink);background:var(--white);
  border:1px solid var(--line);border-top:5px solid var(--navy);border-radius:var(--radius);
  padding:1.3rem 1.25rem 1.15rem;box-shadow:var(--shadow);
  transition:transform 180ms var(--ease-out),box-shadow 180ms var(--ease-out)}
.pick:hover{transform:translateY(-3px);box-shadow:0 2px 4px rgba(15,34,71,.08),0 18px 36px -16px rgba(15,34,71,.3)}
.pick:active{transform:translateY(-1px)}
.pick .ic{flex:none;width:54px;height:54px;border-radius:15px;background:var(--tint);color:var(--navy);
  display:grid;place-items:center;margin-bottom:.9rem}
.pick .ic svg{width:30px;height:30px}
.pick h3{font-size:var(--step-1);margin:0 0 .3em;color:var(--navy-ink)}
.pick .lead{margin:0 0 .9rem;color:var(--ink);font-size:.98rem;line-height:1.5}
.pick ul{list-style:none;padding:0;margin:0 0 1.15rem;display:grid;gap:.42rem}
.pick li{position:relative;padding-left:1.5rem;font-size:.93rem;line-height:1.45;color:var(--muted)}
.pick li::before{content:"";position:absolute;left:0;top:.52em;width:.5rem;height:.5rem;border-radius:50%;
  background:var(--gold)}
.pick .cta{margin-top:auto;display:inline-flex;align-items:center;justify-content:space-between;gap:.5rem;
  background:var(--navy);color:var(--white);border-radius:var(--radius-sm);
  padding:.68rem .9rem;font-weight:700;font-size:.97rem}
.pick .cta span:last-child{font-size:1.25rem;line-height:1}
.pick.alt{border-top-color:var(--gold)}
.pick.alt .ic{background:#f6efdf;color:#8a6417}
.pick.alt li::before{background:var(--navy-soft)}
.pick.alt .cta{background:var(--navy-ink)}

/* --- Question grid: icon-forward tiles (replaces the two-column text rows) --- */
.tiles{display:grid;gap:.7rem;grid-template-columns:repeat(2,1fr)}
@media (min-width:620px){.tiles{grid-template-columns:repeat(3,1fr);gap:.85rem}}
@media (min-width:920px){.tiles{grid-template-columns:repeat(3,1fr)}}
.tile{display:flex;flex-direction:column;align-items:center;text-align:center;text-decoration:none;
  color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.1rem .7rem .85rem;box-shadow:var(--shadow);
  transition:transform 180ms var(--ease-out),box-shadow 180ms var(--ease-out),border-color 180ms var(--ease-out)}
.tile:hover{transform:translateY(-3px);border-color:var(--navy-soft);
  box-shadow:0 2px 4px rgba(15,34,71,.08),0 16px 32px -16px rgba(15,34,71,.28)}
.tile:active{transform:translateY(-1px)}
.tile .ic{flex:none;width:62px;height:62px;border-radius:50%;background:var(--tint);color:var(--navy);
  display:grid;place-items:center;margin-bottom:.7rem}
.tile .ic svg{width:32px;height:32px}
.tile b{display:block;font-family:var(--font-head);font-weight:600;color:var(--navy-ink);
  font-size:1rem;line-height:1.22;margin-bottom:.4rem}
.tile .meta{margin-top:auto;display:inline-flex;align-items:center;gap:.3rem;
  background:var(--paper-2);color:var(--muted);border-radius:999px;
  padding:.24rem .6rem;font-size:.78rem;font-weight:700;letter-spacing:.01em;white-space:nowrap}
.tile .meta.play{background:var(--tint-2);color:var(--navy)}
.tile .meta .pl{font-size:.7rem;line-height:1}

/* --- Utility strip: look-up links, persistent under the header --- */
.util{background:var(--navy-ink);border-bottom:1px solid rgba(255,255,255,.1)}
.util .wrap{display:flex;gap:.4rem;align-items:center;overflow-x:auto;scrollbar-width:none;
  padding-top:.45rem;padding-bottom:.45rem}
.util .wrap::-webkit-scrollbar{display:none}
.util a{flex:none;display:inline-flex;align-items:center;gap:.4rem;text-decoration:none;
  color:#dfe5f1;font-size:.86rem;font-weight:700;letter-spacing:.01em;
  padding:.36rem .7rem;border-radius:999px;transition:background 150ms var(--ease-out),color 150ms var(--ease-out)}
.util a:hover{background:rgba(255,255,255,.12);color:#fff}
.util a svg{width:16px;height:16px;flex:none}
.util .ulabel{flex:none;color:#8e9ab4;font-size:.74rem;font-weight:800;letter-spacing:.09em;
  text-transform:uppercase;padding-right:.2rem}
@media (max-width:560px){.util .ulabel{display:none}}

/* --- Good to know: demoted wide rows --- */
.gtk{display:grid;gap:.7rem}
@media (min-width:768px){.gtk{grid-template-columns:1fr 1fr}}
.gtk a{display:flex;align-items:center;gap:.85rem;text-decoration:none;color:var(--ink);
  background:transparent;border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:.8rem .95rem;transition:background 150ms var(--ease-out),border-color 150ms var(--ease-out)}
.gtk a:hover{background:var(--white);border-color:var(--navy-soft)}
.gtk .ic{flex:none;width:40px;height:40px;border-radius:10px;background:var(--tint);color:var(--navy);
  display:grid;place-items:center}
.gtk .ic svg{width:21px;height:21px}
.gtk b{display:block;color:var(--navy-ink);font-size:1rem;line-height:1.25}
.gtk span.sub{display:block;color:var(--muted);font-size:.87rem}

/* --- Answer block gets a label, so it reads as the answer and not a warning --- */
.answer .alabel{display:block;font-family:var(--font-body);font-size:.72rem;font-weight:800;
  letter-spacing:.11em;text-transform:uppercase;color:#8a6417;margin-bottom:.35rem}

/* --- Facts strip needs a heading, or three numbers float with no context --- */
.factwrap{margin:0 0 1.5rem}
.facts-head{font-family:var(--font-body);font-size:.75rem;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);margin:0 0 .5rem}
.factwrap .facts{margin-bottom:0}

/* --- Two ways: side-by-side routes, for pages that are a fork and not a sequence --- */
.ways{display:grid;gap:.8rem;margin:0 0 1.5rem}
@media (min-width:700px){.ways{grid-template-columns:1fr 1fr}}
.way{background:var(--white);border:1px solid var(--line);border-top:5px solid var(--navy);
  border-radius:var(--radius);padding:1.05rem 1.1rem;box-shadow:var(--shadow)}
.way .wtag{display:inline-block;background:var(--tint);color:var(--navy);border-radius:999px;
  padding:.2rem .6rem;font-size:.72rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  margin-bottom:.5rem}
.way h3{font-size:var(--step-1);margin:0 0 .3em}
.way p{margin:0;color:var(--ink);font-size:.98rem;line-height:1.5}
.way.warn{border-top-color:var(--seal-red)} .way.warn .wtag{background:#fbe9e9;color:#a3181f}

/* --- Chips: a list of cases that is faster to scan than sentences --- */
.chips{display:flex;flex-wrap:wrap;gap:.45rem;margin:0 0 1.5rem;padding:0;list-style:none}
.chips li{background:var(--white);border:1px solid var(--line);border-radius:999px;
  padding:.42rem .85rem;font-size:.93rem;color:var(--navy-ink);font-weight:600}
.chips li::before{content:"✓";color:var(--ok);font-weight:800;margin-right:.4rem}
.chips.plain li::before{content:none}

/* --- Rules variant: same cards, no numbers. A list of facts is not a sequence. --- */
.steps.rules{counter-reset:none}
.steps.rules li{counter-increment:none;padding-left:3.1rem}
.steps.rules li::before{content:"";width:1.5rem;height:1.5rem;left:1.05rem;top:.95rem;
  background:var(--tint);border:2px solid var(--navy);border-radius:50%}
.steps.rules li::after{content:"";position:absolute;left:1.42rem;top:1.32rem;width:.42rem;height:.75rem;
  border:solid var(--navy);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}

/* --- Another question? Sideways nav, so a topic page is not a dead end --- */
.morewrap{background:var(--paper-2);border-top:1px solid var(--line)}
.moreh{font-size:var(--step-1);margin:0 0 .75rem}
.morenav{display:flex;flex-wrap:wrap;gap:.45rem}
.morenav a{display:inline-block;background:var(--white);border:1px solid var(--line);
  border-radius:999px;padding:.45rem .9rem;font-size:.92rem;font-weight:600;
  color:var(--navy-ink);text-decoration:none;
  transition:border-color 150ms var(--ease-out),background 150ms var(--ease-out)}
.morenav a:hover{border-color:var(--navy);background:var(--tint)}

/* --- Medical events as pickable folds. Was five always-open cards, which read as a wall. --- */
.scens{display:grid;gap:.7rem;margin:0 0 1.25rem}
@media (min-width:820px){.scens{grid-template-columns:1fr 1fr}}
.scen{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);overflow:hidden;transition:border-color 160ms var(--ease-out)}
.scen[open]{border-color:var(--navy-soft)}
.scen summary{display:flex;align-items:flex-start;gap:.9rem;padding:1.05rem 1.05rem;cursor:pointer;
  list-style:none;min-height:64px}
.scen summary::-webkit-details-marker{display:none}
.scen summary:hover{background:var(--paper)}
.scen .eico{flex:none;width:50px;height:50px;border-radius:14px;background:var(--tint);color:var(--navy);
  display:grid;place-items:center}
.scen .eico svg{width:27px;height:27px}
.scen .etx{flex:1;min-width:0}
.scen .etx b{display:block;font-family:var(--font-head);font-weight:600;font-size:1.12rem;
  color:var(--navy-ink);line-height:1.2}
.scen .edesc{display:block;color:var(--muted);font-size:.92rem;margin:.15rem 0 .45rem;line-height:1.35}
.scen .etot{display:inline-block;background:var(--navy);color:#fff;border-radius:999px;
  padding:.22rem .65rem;font-size:.8rem;font-weight:800;letter-spacing:.01em}
.scen .etot.rules{background:var(--tint-2);color:var(--navy)}
.scen .echev{flex:none;width:11px;height:11px;margin-top:1.15rem;border:solid var(--muted);
  border-width:0 2.5px 2.5px 0;transform:rotate(45deg);transition:transform 200ms var(--ease-out)}
.scen[open] .echev{transform:rotate(-135deg)}
.scenbody{padding:0 1.05rem 1.1rem;border-top:1px solid var(--line);margin-top:.15rem;padding-top:1rem}
.pcols{display:grid;gap:.7rem;grid-template-columns:1fr 1fr}
.pcol{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.8rem .85rem}
.pcol .ptag{display:inline-block;background:var(--navy);color:#fff;border-radius:999px;
  padding:.1rem .55rem;font-size:.7rem;font-weight:800;letter-spacing:.08em;margin-bottom:.45rem}
.pcol .pamt{display:block;font-family:var(--font-head);font-weight:600;
  font-size:clamp(1.6rem,6vw,2.1rem);color:var(--navy);line-height:1.05}
.pcol .psub{display:block;color:var(--muted);font-size:.84rem;margin-bottom:.55rem}
.pcol.text p{margin:0;font-size:.93rem;line-height:1.45;color:var(--ink)}
.split{height:9px;border-radius:999px;background:var(--tint-2);overflow:hidden;margin-bottom:.35rem}
.split span{display:block;height:100%;background:var(--gold);border-radius:999px}
.pcol .ppl{display:block;color:var(--muted);font-size:.79rem;line-height:1.3}

/* --- Scenario art on the card face (option 2 test) --- */
.scen .eart{display:block;background:var(--paper-2);border-bottom:1px solid var(--line)}
.scen .eart img{display:block;width:100%;height:auto}
.scen.hasart .eico{display:none}

/* summary must stay the first child of <details>, so the art lives inside it */
.scen summary{display:block;padding:0}
.scen .erow{display:flex;align-items:flex-start;gap:.9rem;padding:1.05rem;min-height:64px}
.scen .echev{margin-top:.15rem}

/* --- The HMO / PPO / ER paper marks, used everywhere the plans are compared --- */
.motif,.fmotif,.pmotif,.cmotif{display:block;border-radius:12px;background:var(--paper)}
.pick .ic.bmark{background:none;width:auto;height:auto;border-radius:0}
.pmotif{width:74px;height:74px;border-radius:16px}
.cmotif{width:46px;height:46px;border-radius:10px;margin-bottom:.4rem}
.fmotif{width:62px;height:62px;margin:0 auto .5rem}

/* --- Remember this: was a muted grey whisper over white boxes on a cream page. --- */
.factwrap{margin:0 0 1.75rem;background:var(--white);border:1px solid var(--line);
  border-left:5px solid var(--gold);border-radius:var(--radius);padding:1rem 1.1rem;box-shadow:var(--shadow)}
.facts-head{font-family:var(--font-head);font-size:1.12rem;font-weight:600;letter-spacing:0;
  text-transform:none;color:var(--navy-ink);margin:0 0 .75rem}
.factwrap .facts{margin:0;gap:.7rem}
.factwrap .facts div{background:var(--paper);border-color:var(--line);box-shadow:none;padding:.85rem .7rem}
.factwrap .facts b{font-size:clamp(1.3rem,4.2vw,1.75rem)}
.factwrap .facts span{color:var(--ink);font-weight:600}

/* --- Section headings: give every h2 in a topic page a gold rule so sections separate --- */
.topic-head h2{position:relative;padding-top:.55rem;margin-top:1.9rem}
.topic-head h2::before{content:"";position:absolute;top:0;left:0;width:46px;height:4px;
  border-radius:999px;background:var(--gold)}
.wmotif{width:52px;height:52px;border-radius:12px;margin-bottom:.55rem}
.h1row{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap}
.h1row h1{margin:0 0 .3em}
.hmark{width:64px;height:64px;border-radius:14px;flex:none;margin-bottom:.3em}

/* --- Remember this, sized to be read.
   The old grid was repeat(3,1fr) at EVERY width, so on a 375px phone each card was ~110px
   and the badge and type had to shrink to fit. Stack on phones, three up from 700px. --- */
.factwrap .facts{grid-template-columns:1fr;gap:.65rem}
.factwrap .facts div{display:flex;align-items:center;gap:1rem;text-align:left;
  padding:1rem 1.1rem;border-radius:var(--radius)}
.factwrap .facts .fmotif{width:76px;height:76px;margin:0;flex:none;border-radius:14px}
.factwrap .facts .ftx{display:block;min-width:0;color:inherit;font-size:inherit;font-weight:400;margin:0}
.factwrap .facts b{display:block;font-size:1.6rem;line-height:1.1;margin:0}
.factwrap .facts .fcap{display:block;color:var(--ink);font-weight:600;
  font-size:1.02rem;line-height:1.3;margin-top:.15rem}
@media (min-width:700px){
  .factwrap .facts{grid-template-columns:repeat(3,1fr);gap:.8rem}
  .factwrap .facts div{flex-direction:column;text-align:center;gap:.55rem;padding:1.25rem .9rem}
  .factwrap .facts .fmotif{width:92px;height:92px}
  .factwrap .facts b{font-size:1.75rem}
}

/* --- Ask Voyager: on a phone the wide pill sat on top of page content.
   Collapse to a round button there; keep the labelled pill from 768px up. --- */
@media (max-width:767px){
  .ask-fab{gap:0;padding:4px;border-radius:50%}
  .ask-fab .ask-fab-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .ask-fab img{width:46px;height:46px}
}

/* --- Comparison cards: the picture is the card, not a chip on it.
   Rule: every card in a ways() group has art, or none of them do. --- */
@media (min-width:700px){.ways:has(.way:nth-child(3)){grid-template-columns:repeat(3,1fr)}}
.way.withart{padding:0;overflow:hidden;display:flex;flex-direction:column}
.way.withart .wmotif{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:0;
  margin:0;border-bottom:1px solid var(--line);max-height:230px;object-position:center}
.way.withart .wbody{padding:1rem 1.1rem 1.15rem}
.way.withart .wtag{margin-bottom:.45rem}

/* --- Plan cards: the tile is the top of the card, full width, not a chip in the corner. --- */
.pick:has(.bmark){padding:0;overflow:hidden}
.pick .ic.bmark{display:block;width:100%;margin:0}
.pick .pmotif{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;
  max-height:215px;border-radius:0;border-bottom:1px solid var(--line);margin:0}
.pick:has(.bmark) h3{margin:1.05rem 1.25rem .3em}
.pick:has(.bmark) .lead{margin:0 1.25rem .9rem}
.pick:has(.bmark) ul{margin:0 1.25rem 1.15rem}
.pick:has(.bmark) .cta{margin:auto 1.25rem 1.15rem}

/* --- Art fills its card. No max-height crop, no rounded image inside a rounded card:
   the tile art is cropped to bleed, so only the CARD does the rounding. --- */
.way.withart .wmotif{max-height:none;aspect-ratio:1/1;border-radius:0;object-fit:cover}
.pick .pmotif{aspect-ratio:1/1;max-height:none;border-radius:0}

/* --- YouTube chapter embeds (facade until play is pressed) --- */
.video.yt{position:relative;cursor:pointer}
.video.yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:3}
.video.yt.playing img,.video.yt.playing .play,.video.yt.playing .chip{display:none}
