/* ============================================================================
   QUANTIS RESEARCH — theme + components
   Loads after Capital's brand.css and site.css, and re-points their tokens, so
   every page that uses --qc-* or .qc-btn picks up the Research look for free.

   Look (2026-10-09): white canvas, cobalt primary, deep-navy feature bands,
   Quantis gold as the second accent. Layout pattern taken from StockEdge
   (ribbon, search-led header, split hero, dark "journey" band, plan cards),
   with our own palette, type and shapes so it isn't a copy.
   ============================================================================ */

:root{
  /* research palette */
  --qr-blue:#1C4FD6;        /* primary: buttons, links, highlight word */
  --qr-blue-d:#143CA8;      /* hover */
  --qr-blue-soft:#EEF3FE;   /* tinted surfaces */
  --qr-navy:#0A1633;        /* feature bands, footer */
  --qr-navy-2:#122B66;
  --qr-gold:#E2A63B;        /* second accent, mostly on navy */
  --qr-gold-d:#9A6516;      /* gold on white (passes contrast) */
  --qr-text:#111A2E;
  --qr-muted:#566079;
  --qr-bg:#FFFFFF;
  --qr-bg-soft:#F5F7FC;

  /* data */
  --qr-up:#128048;
  --qr-down:#C33528;
  --qr-flat:#6B7385;
  --qr-card:#FFFFFF;
  --qr-line:#E2E7F1;

  /* re-point the Capital tokens */
  --qc-ink:#FFFFFF;
  --qc-ink-2:var(--qr-navy);
  --qc-navy:#FFFFFF;
  --qc-navy-2:var(--qr-bg-soft);
  --qc-cream:var(--qr-text);
  --qc-muted:var(--qr-muted);
  --qc-hairline:var(--qr-line);
  --qc-gold:var(--qr-blue);
  --qc-gold-light:var(--qr-blue);
  --qc-gold-gradient:linear-gradient(92deg,var(--qr-blue),var(--qr-blue-d));
  --qc-radius-lg:16px;
}

body{min-height:100vh;background:var(--qr-bg);color:var(--qr-text);line-height:1.6;}
h1,h2,h3,h4{font-weight:700;color:var(--qr-text);}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;}
.hl{color:var(--qr-blue);}
.on-dark .hl{color:#7EA6FF;}
.qc-eyebrow{color:var(--qr-blue);}

/* ── buttons ──────────────────────────────────────────────────────────────── */
.qc-btn{border-radius:10px;font-weight:600;}
.qc-btn-gold,.btn-primary{background:var(--qr-blue);color:#fff;border:1.5px solid var(--qr-blue);}
.qc-btn-gold:hover,.btn-primary:hover{background:var(--qr-blue-d);border-color:var(--qr-blue-d);transform:translateY(-1px);
  box-shadow:0 12px 26px -12px rgba(28,79,214,.55);}
.qc-btn-ghost,.btn-outline{background:#fff;color:var(--qr-blue);border:1.5px solid var(--qr-blue);}
.qc-btn-ghost:hover,.btn-outline:hover{background:var(--qr-blue-soft);color:var(--qr-blue-d);border-color:var(--qr-blue-d);}
.btn-gold{background:var(--qr-gold);color:#1A1204;border:1.5px solid var(--qr-gold);}
.btn-gold:hover{filter:brightness(1.05);transform:translateY(-1px);}
.btn-line-light{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.4);}
.btn-line-light:hover{border-color:#fff;}
.qc-btn.sm{padding:10px 16px;font-size:14px;}

/* ── announcement ribbon ──────────────────────────────────────────────────── */
.ribbon{background:linear-gradient(90deg,var(--qr-navy),var(--qr-navy-2));color:#E8EEFF;font-size:14px;text-align:center;
  padding:9px 44px;position:relative;line-height:1.4;}
.ribbon a{color:var(--qr-gold);font-weight:600;text-decoration:underline;text-underline-offset:3px;}
.ribbon button{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:0;color:#fff;
  font-size:18px;cursor:pointer;opacity:.75;padding:4px 8px;}
.ribbon button:hover{opacity:1;}

/* ── header ───────────────────────────────────────────────────────────────── */
nav#nav{background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--qr-line);}
nav .row{gap:22px;padding-top:12px;padding-bottom:12px;}
.brand .mono{width:40px;height:40px;border:0;border-radius:10px;background:var(--qr-navy);color:#fff;font-size:20px;font-weight:800;
  position:relative;overflow:hidden;}
.brand .mono::after{content:"";position:absolute;right:0;bottom:0;width:12px;height:12px;background:var(--qr-gold);
  border-top-left-radius:8px;}
.brand .name{font-size:18px;font-weight:800;letter-spacing:-.02em;color:var(--qr-navy);}
.brand .name small{color:var(--qr-gold-d);font-size:9px;}

.search{flex:1;max-width:340px;position:relative;margin-left:auto;}
.search input{width:100%;font:inherit;font-size:14.5px;padding:10px 14px 10px 38px;border:1px solid #CCD4E4;border-radius:10px;
  background:#fff;color:var(--qr-text);}
.search input:focus{outline:2px solid var(--qr-blue-soft);border-color:var(--qr-blue);}
.search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#8A93A8;}
.search .results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid var(--qr-line);
  border-radius:12px;box-shadow:0 20px 40px -20px rgba(10,22,51,.35);display:none;max-height:320px;overflow:auto;z-index:5;}
.search .results.show{display:block;}
.search .results a{display:flex;justify-content:space-between;gap:10px;padding:10px 14px;font-size:14px;border-bottom:1px solid var(--qr-line);}
.search .results a:hover,.search .results a:focus{background:var(--qr-bg-soft);}
.search .results .empty{padding:12px 14px;font-size:13.5px;color:var(--qr-muted);}

.navlinks{gap:6px;margin-left:auto;}
.navlinks>a,.dd>button{font:inherit;font-size:15px;font-weight:500;color:#2A3350;padding:8px 12px;border-radius:8px;background:none;border:0;cursor:pointer;}
.navlinks>a:hover,.navlinks>a.on,.dd>button:hover,.dd.on>button{color:var(--qr-blue);background:var(--qr-blue-soft);}
.navlinks .qc-btn{padding:10px 18px;font-size:14.5px;}
.navlinks .qc-btn.btn-outline{margin-left:8px;}
.dd{position:relative;}
.dd>button::after{content:"";display:inline-block;width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;
  transform:rotate(45deg) translate(-2px,-2px);margin-left:9px;}
.dd .menu{position:absolute;top:calc(100% + 8px);left:-8px;min-width:280px;background:#fff;border:1px solid var(--qr-line);border-radius:14px;
  box-shadow:0 24px 50px -24px rgba(10,22,51,.4);padding:8px;display:none;z-index:10;}
.dd:hover .menu,.dd:focus-within .menu{display:block;}
.dd .menu::before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px;}
.dd .menu a{display:block;padding:10px 12px;border-radius:10px;}
.dd .menu a:hover{background:var(--qr-bg-soft);}
.dd .menu b{display:flex;align-items:center;gap:8px;font-size:14.5px;font-weight:600;color:var(--qr-text);}
.dd .menu span{display:block;font-size:13px;color:var(--qr-muted);line-height:1.45;margin-top:2px;}
.pill{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-radius:99px;padding:2px 8px;}
.pill.free{background:#E3F5EA;color:#0E6B3A;}
.pill.mem{background:#FBF1DD;color:var(--qr-gold-d);}

/* ── page sections ────────────────────────────────────────────────────────── */
.band{padding:84px 0;}
.band.soft{background:var(--qr-bg-soft);}
.band.dark{background:radial-gradient(1100px 520px at 50% 40%,#173A8A 0%,var(--qr-navy-2) 38%,var(--qr-navy) 100%);color:#fff;}
.band.dark h2,.band.dark h3{color:#fff;}
.band.dark p.sub{color:rgba(232,238,255,.78);}
.band-head{text-align:center;max-width:760px;margin:0 auto 44px;}
.band-head h2{font-size:clamp(28px,3.4vw,42px);line-height:1.15;letter-spacing:-.025em;margin:10px 0 12px;}
.band-head p.sub{color:var(--qr-muted);font-size:17px;}

.tag{display:inline-block;font-size:12.5px;font-weight:700;color:#3A2606;background:linear-gradient(90deg,#F6C979,var(--qr-gold));
  padding:6px 18px;clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%,6% 50%);}

/* ── ticker strip ─────────────────────────────────────────────────────────── */
.ticker{border-top:1px solid var(--qr-line);border-bottom:1px solid var(--qr-line);background:#fff;overflow:hidden;position:relative;}
.ticker .track{display:flex;gap:34px;width:max-content;padding:11px 0;animation:tick 70s linear infinite;}
.ticker:hover .track{animation-play-state:paused;}
.ticker span{white-space:nowrap;font-size:14px;color:var(--qr-text);font-weight:600;}
.ticker span i{font-style:normal;font-weight:500;color:var(--qr-muted);margin:0 8px;}
.ticker .asof{position:absolute;right:0;top:0;bottom:0;display:flex;align-items:center;padding:0 16px 0 28px;font-size:12px;color:var(--qr-muted);
  background:linear-gradient(90deg,transparent,#fff 24%);}
@keyframes tick{to{transform:translateX(-50%);}}
@media(prefers-reduced-motion:reduce){.ticker .track{animation:none;}}

/* ── status bar ───────────────────────────────────────────────────────────── */
.status{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;font-size:13px;color:var(--qc-muted);padding:18px 0 4px;}
.status .dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:7px;background:var(--qr-flat);}
.status .dot.open{background:var(--qr-up);}
.status b{color:var(--qc-cream);font-weight:600;}

/* ── cards & grids ────────────────────────────────────────────────────────── */
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.card{background:var(--qr-card);border:1px solid var(--qr-line);border-radius:16px;
  padding:20px 22px;box-shadow:0 2px 4px rgba(10,22,51,.03),0 18px 40px -30px rgba(10,22,51,.25);}
.card h3{font-size:16px;font-weight:700;margin:0 0 12px;letter-spacing:-.01em;}
.card .src{font-size:11.5px;color:var(--qc-muted);margin-top:12px;opacity:.85;}

.hero-card .label{font-size:13px;color:var(--qc-muted);font-weight:500;}
.hero-card .lvl{font-size:28px;font-weight:700;letter-spacing:-.02em;margin:4px 0 2px;}
.hero-card svg{display:block;width:100%;height:44px;margin-top:10px;}

/* ── change chips: sign + arrow + colour, never colour alone ──────────────── */
.chg{font-weight:600;white-space:nowrap;}
.chg.up{color:var(--qr-up);}
.chg.down{color:var(--qr-down);}
.chg.flat{color:var(--qr-flat);}
.box{display:inline-block;min-width:54px;text-align:center;font-size:12.5px;font-weight:700;color:#fff;border-radius:6px;padding:3px 7px;}
.box.up{background:var(--qr-up);}
.box.down{background:var(--qr-down);}
.box.flat{background:var(--qr-flat);}

/* ── tables ───────────────────────────────────────────────────────────────── */
table.data{width:100%;border-collapse:collapse;font-size:14px;}
table.data th{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--qc-muted);
  font-weight:600;text-align:right;padding:6px 8px;border-bottom:1px solid var(--qr-line);}
table.data td{padding:9px 8px;text-align:right;border-bottom:1px solid var(--qr-line);}
table.data th:first-child,table.data td:first-child{text-align:left;padding-left:0;}
table.data tr:last-child td{border-bottom:none;}
table.data td.name{font-weight:600;}
table.data td small{display:block;color:var(--qc-muted);font-size:12px;font-weight:400;}

/* ── sector heatmap ───────────────────────────────────────────────────────── */
.seg{display:inline-flex;border:1px solid var(--qr-line);border-radius:8px;overflow:hidden;}
.seg button{font:inherit;font-size:12.5px;font-weight:600;padding:6px 12px;border:0;background:#fff;color:var(--qc-muted);cursor:pointer;}
.seg button.on{background:var(--qr-blue);color:#fff;}
.heat{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px;margin-top:14px;}
.heat div{border-radius:10px;padding:12px 12px 11px;font-size:13px;font-weight:600;color:var(--qr-text);min-height:68px;}
.heat div span{display:block;font-size:15px;margin-top:6px;}

/* breadth bar */
.bar{display:flex;height:12px;border-radius:99px;overflow:hidden;background:var(--qr-line);margin:10px 0 8px;}
.bar i{display:block;height:100%;}

/* teaser / locked */
.teaser{border:1px solid var(--qr-line);background:linear-gradient(180deg,#fff,var(--qr-bg-soft));}
.teaser .big{font-size:34px;font-weight:700;letter-spacing:-.02em;}
.lockline{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--qr-line);font-size:14px;}
.lockline:last-child{border-bottom:none;}
.lockline span:last-child{color:var(--qc-muted);white-space:nowrap;}

.tv{min-height:46px;}
.note{font-size:13px;color:var(--qc-muted);}
.sechead{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:16px;}
.sechead h2{margin:0;font-size:clamp(22px,2.6vw,28px);}

/* ── plan cards (home teaser + plans page) ────────────────────────────────── */
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:stretch;}
.plan{background:#fff;color:var(--qr-text);border-radius:18px;padding:26px 24px 24px;display:flex;flex-direction:column;
  border:1px solid var(--qr-line);position:relative;}
.plan .strip{border-radius:8px;padding:7px 12px;font-size:12px;font-weight:700;letter-spacing:.04em;margin-bottom:16px;
  background:var(--qr-blue-soft);color:var(--qr-blue);}
.plan.mem .strip{background:linear-gradient(90deg,#F6C979,var(--qr-gold));color:#3A2606;}
.plan h3{font-size:22px;margin:0 0 6px;}
.plan .for{font-size:14.5px;color:var(--qr-muted);min-height:46px;}
.plan .price{font-size:30px;font-weight:800;letter-spacing:-.02em;margin:16px 0 2px;color:var(--qr-blue);}
.plan .price small{font-size:14px;font-weight:500;color:var(--qr-muted);margin-left:4px;}
.plan ul{list-style:none;margin:16px 0 22px;padding:0;flex:1;}
.plan li{position:relative;padding:7px 0 7px 26px;font-size:14.5px;border-bottom:1px dashed var(--qr-line);}
.plan li:last-child{border-bottom:0;}
.plan li::before{content:"";position:absolute;left:2px;top:13px;width:11px;height:6px;border-left:2px solid var(--qr-up);border-bottom:2px solid var(--qr-up);transform:rotate(-45deg);}
.plan li.lead{font-weight:700;}
.plan li.lead::before{display:none;}
.plan li.lead{padding-left:0;}
.plan .qc-btn{text-align:center;width:100%;}
.plan.pop{border:2px solid var(--qr-blue);box-shadow:0 30px 60px -36px rgba(28,79,214,.55);}
.plan .badge{position:absolute;top:-12px;right:20px;background:var(--qr-blue);color:#fff;font-size:11.5px;font-weight:700;padding:4px 12px;border-radius:99px;}

/* ── footer ───────────────────────────────────────────────────────────────── */
footer{background:var(--qr-navy);color:#C9D3EA;border-top:0;padding:60px 0 28px;margin-top:0;}
footer .brand .mono{background:#fff;color:var(--qr-navy);}
footer .brand .name{color:#fff;}
.foot-cols{grid-template-columns:1.4fr 1fr 1fr 1fr;}
.foot-cols h5{color:#fff;letter-spacing:.06em;font-size:13px;text-transform:none;font-weight:700;}
.foot-cols a{color:#C9D3EA;}
.foot-cols a:hover{color:var(--qr-gold);}
.foot-cols p{color:#AEB9D3 !important;}
.foot-disc{color:#AEB9D3;border-top-color:rgba(255,255,255,.12);}
.foot-bottom{color:#8E9AB8;}
footer .warn{color:var(--qr-gold);font-weight:600;}

@media(max-width:1000px){.grid4{grid-template-columns:1fr 1fr;}.grid3{grid-template-columns:1fr;}.plans{grid-template-columns:1fr;max-width:520px;margin:0 auto;}}
@media(max-width:700px){.grid2{grid-template-columns:1fr;}.hero-card .lvl{font-size:23px;}.band{padding:56px 0;}}
@media(max-width:420px){.grid4{grid-template-columns:1fr;}}

/* grid children may shrink below their content; wide tables scroll inside the card, not the page */
.grid2>*,.grid3>*,.grid4>*{min-width:0;}
.scroll{overflow-x:auto;}
.card .tradingview-widget-container{overflow:hidden;}
main.wrap{overflow-x:clip;}
@media(max-width:560px){.status{font-size:12.5px;}.ribbon{font-size:13px;text-align:left;padding-left:16px;}}

/* wider canvas for data pages: use the screen, keep a comfortable gutter */
.wrap,nav .row{max-width:1320px;padding-left:clamp(16px,3vw,40px);padding-right:clamp(16px,3vw,40px);}
.wrap.wide{max-width:1640px;}
.wrap.narrow{max-width:820px;}
@media(min-width:1500px){
  .grid3.data3{grid-template-columns:1fr 1.3fr 1.3fr;}
}

/* header collapses to the burger menu */
@media(max-width:1100px){
  .search{max-width:none;}
  .burger{display:block;color:var(--qr-text);}
  .navlinks{position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:#fff;
    border-bottom:1px solid var(--qr-line);padding:8px 18px 20px;opacity:0;transform:translateY(-10px);pointer-events:none;
    transition:opacity .2s,transform .2s;box-shadow:0 24px 40px -30px rgba(10,22,51,.4);}
  nav.menu-open .navlinks{opacity:1;transform:none;pointer-events:auto;}
  .navlinks>a,.dd>button{font-size:16px;padding:13px 4px;border-bottom:1px solid var(--qr-line);border-radius:0;text-align:left;width:100%;color:var(--qr-text);}
  .dd .menu{position:static;display:block;box-shadow:none;border:0;padding:0 0 6px 8px;min-width:0;}
  .dd>button::after{display:none;}
  .navlinks .qc-btn,.navlinks .qc-btn.btn-outline{margin:12px 0 0;text-align:center;}
}
@media(max-width:640px){
  nav .row{flex-wrap:wrap;}
  .search{order:3;flex-basis:100%;}
}

/* ── fixes: nav buttons keep button styling, hidden means hidden ──────────── */
[hidden]{display:none !important;}
.navlinks>a.qc-btn{padding:10px 18px;font-size:14.5px;font-weight:600;border-radius:10px;}
.navlinks>a.btn-primary{background:var(--qr-blue);color:#fff;border:1.5px solid var(--qr-blue);}
.navlinks>a.btn-primary:hover{background:var(--qr-blue-d);}
.navlinks>a.btn-outline{background:#fff;color:var(--qr-blue);border:1.5px solid var(--qr-blue);}
.navlinks>a.btn-outline:hover{background:var(--qr-blue-soft);}
.foot-cols a.brand{display:flex;}
@media(max-width:900px){.foot-cols{grid-template-columns:1fr 1fr;gap:28px;}.foot-cols>div:first-child{grid-column:1/-1;}}

/* ── phones (22-Oct): less scrolling. Card grids become swipe rows, search sits in the menu,
   tighter type and spacing. "html body" lifts these above the per-page <style> blocks. ── */
@media(max-width:640px){
  html body .wrap{padding-left:16px;padding-right:16px;}
  html body .band,html body .method{padding:34px 0;}
  html body .band-head{margin-bottom:16px;}
  html body h1{font-size:30px;line-height:1.12;}
  html body h2{font-size:23px;line-height:1.2;}
  html body .lede,html body .lead,html body .why,html body .sub{font-size:15px;line-height:1.55;}
  html body .ribbon{font-size:12px;padding-top:6px;padding-bottom:6px;}
  html body .ticker .asof{display:none;}
  html body .ticker span{font-size:13px;}

  /* header: one slim row; search opens with the menu */
  html body nav .search{display:none;}
  html body nav.menu-open .search{display:flex;margin:4px 0 8px;}
  html body .brand small{display:none;}
  html body .navlinks>a,html body .dd>button{padding:10px 4px;font-size:15.5px;}
  html body .dd .menu a{padding:7px 8px;}
  html body .dd .menu a span{display:none;}
  html body .dd .menu a b{font-size:14px;font-weight:600;}
  html body .navlinks{max-height:calc(100vh - 80px);overflow-y:auto;}

  /* hero: your photo first, at a phone-friendly height; stats in one row */
  html body .hero{padding:16px 0 30px;}
  html body .hero .wrap{display:flex;flex-direction:column;gap:20px;}
  html body .hero .wrap>div{width:100%;}
  html body .hero .wrap>div:last-child{order:-1;}
  html body .hero .media{width:100%;}
  /* photo as a byline: round portrait with name beside it, not a full-width banner */
  html body .hero .media{aspect-ratio:auto;height:auto;border-radius:0;background:none;box-shadow:none;overflow:visible;
    display:flex;align-items:center;gap:14px;}
  html body .hero .media::after{display:none;}
  html body .hero .media img{display:none;}
  html body .hero .media::before{content:"";width:84px;height:84px;flex:0 0 84px;border-radius:50%;
    background:#E8EDF7 url(../assets/vikram-navy-blazer.png) 50% 0%/175% auto no-repeat;   /* head and shoulders */
    border:3px solid #fff;box-shadow:0 6px 18px -6px rgba(10,22,51,.35);}
  html body .hero .media .cap{position:static;color:var(--qr-text);}
  html body .hero .media .cap b{font-size:18px;}
  html body .hero .media .cap span{font-size:13.5px;color:var(--qr-muted);opacity:1;}
  html body .hero .mailline{display:none;}
  html body .hero .cta{gap:10px;flex-wrap:nowrap;}
  html body .hero .cta .qc-btn{flex:1;text-align:center;padding:12px 10px;}
  html body .stats{margin-top:22px;flex-wrap:nowrap;}
  html body .stats div{padding:0 10px;}
  html body .stats b{font-size:15px;}
  html body .stats span{font-size:11.5px;}

  /* swipe rows instead of tall stacks */
  html body .flow,html body .grid3,html body .grid4,html body .rhythm,html body .cols,
  html body .prints,html body .how,html body .get,html body .offer,html body .topics{
    display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;
    margin-left:-16px;margin-right:-16px;padding:2px 16px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
  html body .flow::-webkit-scrollbar,html body .grid3::-webkit-scrollbar,html body .grid4::-webkit-scrollbar,
  html body .days::-webkit-scrollbar,html body .rhythm::-webkit-scrollbar,html body .cols::-webkit-scrollbar,
  html body .prints::-webkit-scrollbar,html body .how::-webkit-scrollbar,html body .get::-webkit-scrollbar,
  html body .offer::-webkit-scrollbar,html body .topics::-webkit-scrollbar{display:none;}
  html body .flow>*,html body .grid3>*,html body .grid4>*,html body .cols>*,
  html body .how>*,html body .get>*,html body .offer>*,html body .topics>*{flex:0 0 90%;align-self:flex-start;min-width:0;scroll-snap-align:start;}
  html body .rhythm>*,html body .prints>*{flex:0 0 62%;min-width:0;scroll-snap-align:start;}
  /* "Coming up": a compact agenda, date on the left, first 5 days with a "show all" link */
  html body .legend{display:none;}
  html body .days{display:block;background:#fff;border:1px solid var(--qr-line);border-radius:16px;padding:2px 14px;}
  html body .day{display:grid;grid-template-columns:62px 1fr;gap:10px;border:0;border-radius:0;padding:12px 0;
    border-top:1px solid var(--qr-line);background:none;}
  html body .day:first-child{border-top:0;}
  html body .day h4{display:block;font-size:14px;line-height:1.25;margin:2px 0 0;}
  html body .day h4 small{display:block;font-size:11px;margin-top:2px;}
  html body .ev{grid-template-columns:1fr;gap:3px;padding:0 0 8px;border-top:0;font-size:14px;}
  html body .ev:last-child{padding-bottom:0;}
  html body .ev .chip{justify-self:start;font-size:10px;padding:2px 7px;}
  html body .day>*,html body .ev,html body .ev p{min-width:0;}
  html body .ev p small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  html body .days:not(.all) .day:nth-child(n+6){display:none;}
  html body .cal-more{display:block;margin:12px auto 0;background:none;border:0;color:var(--qr-blue);font-weight:600;font-size:14.5px;}

  /* journey band: drop the decorative mock-ups */
  html body .jcard .mock{display:none;}
  html body .jcard{grid-template-columns:1fr;}

  /* who writes it: smaller photo */
  html body .who{gap:22px;}
  html body .who .pic{aspect-ratio:auto;height:300px;max-width:none;width:100%;border-radius:16px;}
  html body .who .pic img{height:100%;width:100%;object-fit:cover;object-position:60% 35%;}

  /* tables: smaller type so the columns fit the card */
  html body table{font-size:13px;}
  html body table td,html body table th{padding-left:4px;padding-right:4px;}

  html body .foot-cols{grid-template-columns:1fr 1fr;gap:20px;}

  /* plans: Free and Member side by side to swipe; the long compare table scrolls inside its box */
  html body .plans,html body .two,html body .split,html body .terms{display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;max-width:none;
    margin-left:-16px;margin-right:-16px;padding:14px 16px 10px;scrollbar-width:none;}
  html body .plans::-webkit-scrollbar,html body .two::-webkit-scrollbar,html body .split::-webkit-scrollbar,html body .terms::-webkit-scrollbar{display:none;}
  html body .plans>*,html body .two>*,html body .split>*,html body .terms>*{flex:0 0 88%;min-width:0;scroll-snap-align:start;align-self:flex-start;}
  html body .compare.scroll{max-height:460px;overflow:auto;}
}

.cal-more{display:none;}
@media(max-width:640px){html body .cal-more{display:block;}}

/* ── newsletter: sign-up form, issue cards, share bar (research.js renders them) ── */
.signup form{display:flex;flex-direction:column;gap:12px;}
.signup label{display:flex;flex-direction:column;gap:5px;font-size:13.5px;font-weight:600;color:var(--qr-text);}
.signup label small{font-weight:400;color:var(--qr-muted);}
.signup input:not([type=checkbox]){font:inherit;font-size:15.5px;padding:11px 13px;border:1px solid #CCD4E4;border-radius:10px;background:#fff;color:var(--qr-text);width:100%;}
.signup input:focus{outline:2px solid var(--qr-blue-soft);border-color:var(--qr-blue);}
.signup .pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.signup label.ok{flex-direction:row;align-items:flex-start;gap:9px;font-weight:400;font-size:13.5px;color:var(--qr-muted);line-height:1.45;}
.signup label.ok input{margin-top:2px;width:16px;height:16px;flex:none;accent-color:var(--qr-blue);}
.signup .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.signup button{width:100%;padding:13px;font-size:16px;cursor:pointer;}
.signup button:disabled{opacity:.6;cursor:wait;}
.signup .msg{font-size:14px;color:var(--qr-muted);min-height:1em;margin:0;}
.signup .msg.err{color:var(--qr-down);}
.signup .done{background:#E3F5EA;border-radius:12px;padding:18px;color:#0E6B3A;display:flex;flex-direction:column;gap:4px;}
.signup .done b{font-size:17px;}
.signup .done span{font-size:14.5px;color:var(--qr-text);}
.join-card{background:#fff;border:1px solid var(--qr-line);border-radius:18px;padding:26px;box-shadow:0 30px 60px -40px rgba(10,22,51,.35);}
.join-card h3{font-size:21px;margin:0 0 4px;letter-spacing:-.01em;}
.join-card .sub{font-size:14.5px;color:var(--qr-muted);margin:0 0 16px;}

.issue{display:grid;grid-template-columns:240px 1fr;gap:20px;align-items:center;background:#fff;border:1px solid var(--qr-line);
  border-radius:16px;padding:14px;color:inherit;text-decoration:none;transition:border-color .15s,transform .15s;}
.issue:hover{border-color:var(--qr-blue);transform:translateY(-2px);}
.issue img{width:100%;aspect-ratio:1200/630;object-fit:cover;border-radius:10px;display:block;}
.issue .when{font-size:13px;color:var(--qr-muted);font-weight:600;}
.issue h3{font-size:21px;letter-spacing:-.015em;margin:4px 0 6px;}
.issue p{font-size:15px;color:var(--qr-muted);line-height:1.5;margin:0 0 8px;}
.issue .go{font-size:14.5px;color:var(--qr-blue);}
.issue.big{grid-template-columns:1fr;padding:0;overflow:hidden;align-items:stretch;}
.issue.big img{border-radius:0;}
.issue.big>div{padding:4px 22px 22px;}
.issue.big h3{font-size:25px;}
.issues{display:flex;flex-direction:column;gap:16px;}

.nl-band .grid{display:grid;grid-template-columns:1.25fr 1fr;gap:32px;align-items:start;max-width:1080px;margin:0 auto;}
.nl-band .label{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--qr-gold-d);margin-bottom:10px;}

.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:26px 0 0;}
.share span{font-size:13.5px;font-weight:700;color:var(--qr-muted);margin-right:4px;}
.share a,.share button{font:inherit;font-size:14px;font-weight:600;padding:7px 14px;border-radius:99px;border:1px solid var(--qr-line);
  background:#fff;color:var(--qr-text);text-decoration:none;cursor:pointer;}
.share a:hover,.share button:hover{border-color:var(--qr-blue);color:var(--qr-blue);}

@media(max-width:860px){.nl-band .grid{grid-template-columns:1fr;}.issue{grid-template-columns:1fr;}}
@media(max-width:640px){html body .signup .pair{display:grid;grid-template-columns:1fr;overflow:visible;}
  html body .signup .pair>*{flex:none;}}
