/* ============================================================
   Priv8 — priv8apps.com
   Tokens per DESIGN.md §3. Light is the base; dark redefines
   tokens only. No color is ever declared inside a media block
   for a component — components read tokens exclusively.
   ============================================================ */
:root{
  --ground:#FBF8F7; --surface:#F3EEED; --surface-2:#EAE3E2;
  --ink:#191416; --ink-2:#5E5357; --doc-label:#3A3134;
  --rule:#E3DBDA; --accent:#9E1B24; --accent-dim:rgba(158,27,36,.13);
  --shadow:0 1px 2px rgba(25,20,22,.05), 0 8px 24px rgba(25,20,22,.06);

  --f-display:"Newsreader",Georgia,"Times New Roman",serif;
  --f-body:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px;
  --s6:32px; --s7:48px; --s8:72px; --s9:112px;
  --r-card:10px; --r-control:8px; --r-chip:6px;
  --col:68ch; --wide:1080px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#121013; --surface:#1A1619; --surface-2:#241C20;
    --ink:#F2EDEE; --ink-2:#A2989B; --doc-label:#D6CDCF;
    --rule:#2C2528; --accent:#E8646B; --accent-dim:rgba(232,100,107,.15);
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.34);
  }
}
:root[data-theme="dark"]{
  --ground:#121013; --surface:#1A1619; --surface-2:#241C20;
  --ink:#F2EDEE; --ink-2:#A2989B; --doc-label:#D6CDCF;
  --rule:#2C2528; --accent:#E8646B; --accent-dim:rgba(232,100,107,.15);
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.34);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--ground); color:var(--ink);
  font-family:var(--f-body); font-size:17px; line-height:1.75;
  font-weight:400; -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto; display:block}
a{color:var(--accent); text-decoration-thickness:1px; text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:2px}

.wrap{width:100%; max-width:var(--wide); margin:0 auto; padding:0 var(--s5)}
.col{max-width:var(--col); margin-inline-end:auto}

/* ---------- prose rules, DESIGN.md §6 ---------- */
.prose p{margin:0 0 var(--s5)}
.prose p:last-child{margin-bottom:0}
.prose b,.prose strong{font-weight:600; color:var(--doc-label)}
.prose em{font-style:italic; color:inherit}

/* ---------- masthead ---------- */
.masthead{
  position:sticky; top:0; z-index:20;
  background:color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--rule);
}
.masthead .wrap{display:flex; align-items:center; gap:var(--s5); min-height:64px}
.brand{display:flex; align-items:center; gap:var(--s3); text-decoration:none; color:var(--ink); font-weight:600}
.brand img{width:26px}
.brand span{font-family:var(--f-display); font-size:20px; letter-spacing:.01em}
.nav{margin-left:auto; display:flex; gap:var(--s5); align-items:center}
.nav a{
  color:var(--ink-2); text-decoration:none; font-size:15px;
  padding:6px 2px; border-bottom:1px solid transparent;
}
.nav a:hover{color:var(--ink); border-bottom-color:var(--accent)}
@media (max-width:700px){ .nav{display:none} }

/* ---------- hero ---------- */
.hero{padding:var(--s9) 0 var(--s8); border-bottom:1px solid var(--rule)}
.hero-grid{display:grid; grid-template-columns:1fr 200px; gap:var(--s8); align-items:start}
@media (max-width:820px){
  .hero{padding:var(--s7) 0 var(--s6)}
  .hero-grid{grid-template-columns:1fr; gap:var(--s6)}
  .hero-mark{order:-1; width:112px}
}
.eyebrow{
  font-family:var(--f-mono); font-size:13px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--ink-2); margin:0 0 var(--s5);
  display:flex; align-items:center; gap:var(--s3);
}
.eyebrow::before{content:""; width:24px; height:1px; background:var(--accent); flex:none}
h1{
  font-family:var(--f-display); font-weight:500;
  font-size:clamp(34px,6.2vw,60px); line-height:1.08; letter-spacing:-.02em;
  margin:0 0 var(--s5); text-wrap:balance; max-width:16ch;
}
.lead{font-size:20px; line-height:1.7; color:var(--ink-2); max-width:56ch; margin:0 0 var(--s6)}
.lead b{color:var(--ink); font-weight:500}
.cta-row{display:flex; flex-wrap:wrap; gap:var(--s3)}
.btn{
  font-family:var(--f-body); font-size:16px; font-weight:500;
  padding:11px 20px; border-radius:var(--r-control); text-decoration:none;
  border:1px solid var(--rule); color:var(--ink); background:var(--surface);
  transition:border-color .18s ease, background .18s ease;
}
.btn:hover{border-color:var(--accent); background:var(--surface-2)}
.btn-primary{background:var(--ink); color:var(--ground); border-color:var(--ink)}
.btn-primary:hover{background:var(--ink); border-color:var(--ink); opacity:.86}

/* ---------- fact strip ---------- */
.strip{border-bottom:1px solid var(--rule); background:var(--surface)}
.strip ul{
  list-style:none; margin:0; padding:var(--s4) 0;
  display:flex; flex-wrap:wrap; gap:var(--s2) var(--s5);
  font-family:var(--f-mono); font-size:13px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-2);
}
.strip li{display:flex; align-items:center; gap:var(--s2)}
.strip li::before{content:""; width:5px; height:5px; border-radius:50%; background:var(--accent); flex:none}

/* ---------- sections ---------- */
section{padding:var(--s9) 0}
@media (max-width:820px){ section{padding:var(--s8) 0} }
section + section{border-top:1px solid var(--rule)}
.sec-head{margin:0 0 var(--s7)}
.sec-head .eyebrow{margin-bottom:var(--s4)}
h2{
  font-family:var(--f-display); font-weight:500;
  font-size:clamp(27px,3.6vw,38px); line-height:1.2; letter-spacing:-.015em;
  margin:0 0 var(--s4); text-wrap:balance; max-width:22ch;
}
.sec-head p{font-size:19px; color:var(--ink-2); margin:0; max-width:60ch; line-height:1.7}
h3{font-family:var(--f-display); font-weight:600; font-size:24px; line-height:1.25; margin:0 0 var(--s2); letter-spacing:-.01em}

/* ---------- app cards ---------- */
.apps{display:grid; gap:var(--s4)}
.app{
  display:grid; grid-template-columns:180px 1fr; gap:var(--s7);
  padding:var(--s6); background:var(--surface);
  border:1px solid var(--rule); border-radius:var(--r-card);
  box-shadow:var(--shadow);
}
@media (max-width:820px){ .app{grid-template-columns:1fr; gap:var(--s4); padding:var(--s5)} }
.app > *{min-width:0}
.app-meta{display:flex; flex-direction:column; gap:var(--s3)}
.chip{
  align-self:flex-start; font-family:var(--f-mono); font-size:12px;
  letter-spacing:.08em; text-transform:uppercase; padding:4px 9px;
  border-radius:var(--r-chip); border:1px solid var(--rule);
  color:var(--ink-2); background:var(--surface-2); white-space:nowrap;
}
.chip-live{color:var(--accent); border-color:var(--accent); background:var(--accent-dim)}
.app-kind{font-family:var(--f-mono); font-size:13px; color:var(--ink-2); letter-spacing:.04em}
.app-quote{
  font-family:var(--f-display); font-style:italic; font-size:19px;
  line-height:1.5; color:var(--ink); margin:0 0 var(--s3);
}
.app-body{font-size:16px; color:var(--ink-2); line-height:1.7; margin:0 0 var(--s4); max-width:62ch}
.app-links{display:flex; flex-wrap:wrap; gap:var(--s5); font-size:15px}
.app-links a{display:inline-flex; align-items:center; gap:6px; text-decoration:none; border-bottom:1px solid var(--accent-dim); padding-bottom:1px}
.app-links a:hover{border-bottom-color:var(--accent)}

/* ---------- manifest ---------- */
.manifest{
  border:1px solid var(--rule); border-radius:var(--r-card);
  background:var(--surface); overflow:hidden; margin-bottom:var(--s6);
}
.manifest-head{
  display:flex; flex-wrap:wrap; gap:var(--s2) var(--s4); justify-content:space-between;
  padding:var(--s3) var(--s5); border-bottom:1px solid var(--rule);
  font-family:var(--f-mono); font-size:12px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink-2); background:var(--surface-2);
}
.manifest dl{margin:0; display:grid; grid-template-columns:minmax(180px,auto) 1fr}
@media (max-width:640px){ .manifest dl{grid-template-columns:1fr} }
.manifest dt,.manifest dd{
  margin:0; padding:var(--s3) var(--s5); border-top:1px solid var(--rule);
  font-size:15px; line-height:1.6;
}
.manifest dl > dt:first-of-type, .manifest dl > dt:first-of-type + dd{border-top:none}
.manifest dt{font-family:var(--f-mono); font-size:13px; color:var(--ink-2); letter-spacing:.02em}
.manifest dd{color:var(--ink); font-variant-numeric:tabular-nums}
.manifest dd b{font-weight:600; color:var(--doc-label)}
@media (max-width:640px){
  .manifest dd{padding-top:0; border-top:none}
  .manifest dt{padding-bottom:var(--s1)}
}

/* ---------- pull quote ---------- */
.pull{
  border-left:2px solid var(--accent); padding:var(--s1) 0 var(--s1) var(--s5);
  margin:var(--s6) 0; font-family:var(--f-display); font-size:21px;
  line-height:1.55; color:var(--ink); max-width:58ch;
}
.pull cite{display:block; margin-top:var(--s3); font-family:var(--f-mono); font-size:13px; font-style:normal; color:var(--ink-2); letter-spacing:.04em}

/* ---------- studio list ---------- */
.tenets{display:grid; gap:var(--s5); margin:0; padding:0; list-style:none; max-width:var(--col)}
.tenets li{padding-left:var(--s5); border-left:1px solid var(--rule)}
.tenets b{display:block; font-weight:600; color:var(--doc-label); margin-bottom:var(--s1)}
.tenets span{color:var(--ink-2); font-size:16px}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--rule); padding:var(--s7) 0 var(--s8); background:var(--surface)}
.foot-grid{display:flex; flex-wrap:wrap; gap:var(--s7); justify-content:space-between}
.foot-col h4{
  font-family:var(--f-mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-2); margin:0 0 var(--s3); font-weight:500;
}
.foot-col ul{list-style:none; margin:0; padding:0; display:grid; gap:var(--s2); font-size:15px}
.foot-col a{text-decoration:none; color:var(--ink)}
.foot-col a:hover{color:var(--accent); text-decoration:underline}
.foot-col p{margin:0; font-size:15px; color:var(--ink-2)}
.colophon{margin-top:var(--s7); padding-top:var(--s4); border-top:1px solid var(--rule); font-size:13px; color:var(--ink-2); font-family:var(--f-mono); line-height:1.7}

/* ---------- motion ---------- */
/* Fail-safe: .reveal is fully visible unless JS has confirmed it is
   running and can put it back. A decoration must never be able to
   hide content when the script that reveals it does not load. */
:root.js .reveal{opacity:0; transform:translateY(10px); transition:opacity .6s ease, transform .6s ease}
:root.js .reveal.in{opacity:1; transform:none}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important; transition:none !important}
  :root.js .reveal{opacity:1; transform:none}
}

/* ============================================================
   Interior pages (apps.html and per-app pages)
   ============================================================ */
.page-head{padding:var(--s8) 0 var(--s7); border-bottom:1px solid var(--rule)}
@media (max-width:820px){ .page-head{padding:var(--s7) 0 var(--s6)} }
.page-head h1{font-size:clamp(30px,4.6vw,46px); max-width:20ch}
.page-head .lead{margin-bottom:0}
.crumb{
  font-family:var(--f-mono); font-size:13px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-2); margin:0 0 var(--s4);
}
.crumb a{color:var(--ink-2); text-decoration:none}
.crumb a:hover{color:var(--accent)}
.crumb span{margin:0 var(--s2); opacity:.5}

/* pipeline note — the "more coming" block that scales as apps are added */
.pipeline{
  margin-top:var(--s7); padding:var(--s5); border:1px dashed var(--rule);
  border-radius:var(--r-card); max-width:var(--col);
}
.pipeline b{display:block; font-weight:600; color:var(--doc-label); margin-bottom:var(--s1)}
.pipeline span{color:var(--ink-2); font-size:16px}

/* homepage "what we build" summary — deliberately names no app */
.summary{display:grid; grid-template-columns:repeat(3,1fr); gap:var(--s4); margin:var(--s7) 0 0}
@media (max-width:820px){ .summary{grid-template-columns:1fr} }
.summary div{
  padding:var(--s5); background:var(--surface); border:1px solid var(--rule);
  border-radius:var(--r-card);
}
.summary b{
  display:block; font-family:var(--f-mono); font-size:12px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--accent); margin-bottom:var(--s2); font-weight:500;
}
.summary p{margin:0; font-size:16px; color:var(--ink-2); line-height:1.65}

/* The page head already separates; the first section below it doesn't need full padding. */
.page-head + section{padding-top:var(--s7)}

/* ============================================================
   Policy pages — long-form legal/plain-English documents.
   Inherits the prose rules in DESIGN.md §6.
   ============================================================ */
.policy{max-width:var(--col)}
.policy h2{
  font-family:var(--f-display); font-weight:600; font-size:26px; line-height:1.25;
  letter-spacing:-.01em; margin:var(--s8) 0 var(--s4);
  padding-top:var(--s5); border-top:1px solid var(--rule); max-width:none;
}
.policy h2:first-child{margin-top:0; padding-top:0; border-top:none}
.policy h3{font-family:var(--f-display); font-weight:600; font-size:20px; margin:var(--s6) 0 var(--s3)}
.policy p{margin:0 0 var(--s5); line-height:1.75}
.policy ul,.policy ol{margin:0 0 var(--s5); padding-left:var(--s5); display:grid; gap:var(--s3)}
.policy li{line-height:1.7}
.policy li > ul,.policy li > ol{margin:var(--s3) 0 0}
.policy strong,.policy b{font-weight:600; color:var(--doc-label)}
.policy em{font-style:italic}

.policy .lede{
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--r-card);
  padding:var(--s5); margin:0 0 var(--s7);
}
.policy .lede p:last-of-type{margin-bottom:var(--s4)}
.policy .lede ul{margin-bottom:0}

.table-scroll{overflow-x:auto; margin:0 0 var(--s5); border:1px solid var(--rule); border-radius:var(--r-card)}
.policy table{border-collapse:collapse; width:100%; min-width:520px; font-size:15px}
.policy th,.policy td{
  text-align:left; padding:var(--s3) var(--s4); border-bottom:1px solid var(--rule);
  vertical-align:top; line-height:1.6;
}
.policy tr:last-child td{border-bottom:none}
.policy th{
  font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--ink-2); font-weight:500; background:var(--surface-2); white-space:nowrap;
}

.policy .note{
  border-left:2px solid var(--accent); background:var(--accent-dim);
  padding:var(--s4) var(--s5); border-radius:0 var(--r-control) var(--r-control) 0;
  margin:0 0 var(--s5);
}
.policy .note p:last-child{margin-bottom:0}

.policy-foot{
  margin-top:var(--s8); padding-top:var(--s4); border-top:1px solid var(--rule);
  font-size:15px; color:var(--ink-2); max-width:var(--col);
}

/* ============================================================
   Mobile navigation.
   The nav used to be hidden below 700px, which left phone users
   with no way to reach Apps, Privacy or Studio. The masthead now
   stacks: brand on top, nav below as a scrollable row. No JS,
   no hamburger, nothing to mis-tap.
   ============================================================ */
@media (max-width:700px){
  .masthead .wrap{
    flex-direction:column; align-items:stretch; gap:0;
    min-height:0; padding-top:var(--s3); padding-bottom:0;
  }
  .brand{align-self:flex-start}
  .nav{
    display:flex; margin-left:0; gap:var(--s4);
    overflow-x:auto; -webkit-overflow-scrolling:touch;
    scrollbar-width:none; padding-bottom:2px;
  }
  .nav::-webkit-scrollbar{display:none}
  .nav a{
    display:block; flex:none; white-space:nowrap;
    font-size:15px; padding:10px 0; min-height:44px; line-height:24px;
  }
}

/* ============================================================
   Screenshot strips on app cards
   ============================================================ */
.shots{
  display:flex; gap:var(--s3); margin:var(--s5) 0 0; min-width:0; max-width:100%;
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  padding-bottom:var(--s2); scrollbar-width:thin;
}
.shots figure{margin:0; flex:none; width:186px}
.shots img{
  width:100%; height:auto; display:block;
  border:1px solid var(--rule); border-radius:var(--r-card);
  background:var(--surface-2);
}
.shots figcaption{
  margin-top:var(--s2); font-family:var(--f-mono); font-size:12px;
  letter-spacing:.04em; color:var(--ink-2); line-height:1.4;
}
@media (max-width:520px){ .shots figure{width:152px} }

/* ============================================================
   404
   ============================================================ */
.oops{padding:var(--s9) 0; text-align:left}
.oops h1{max-width:18ch}
.oops .code{
  font-family:var(--f-mono); font-size:13px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--accent); margin:0 0 var(--s4);
}

/* ============================================================
   Support page
   ============================================================ */
.support-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:var(--s4); margin:0 0 var(--s7)}
@media (max-width:820px){ .support-grid{grid-template-columns:1fr} }
.support-grid article{
  padding:var(--s5); background:var(--surface); border:1px solid var(--rule);
  border-radius:var(--r-card); display:flex; flex-direction:column; gap:var(--s2);
}
.support-grid h3{font-size:20px; margin:0}
.support-grid p{margin:0; font-size:16px; color:var(--ink-2); line-height:1.65}
.support-grid .chip{margin-bottom:var(--s1)}

/* ============================================================
   Contact card — the support page's primary action.
   The address is shown as selectable text as well as a link,
   because a mailto: does nothing on a machine with no mail
   client configured, and the reader still needs the address.
   ============================================================ */
.contact{
  border:1px solid var(--rule); border-radius:var(--r-card);
  background:var(--surface); padding:var(--s6); margin:0 0 var(--s7);
  max-width:var(--col); box-shadow:var(--shadow);
}
.contact .eyebrow{margin-bottom:var(--s3)}
.contact-addr{
  display:inline-block; font-family:var(--f-mono); font-weight:500;
  font-size:clamp(20px,3.4vw,27px); letter-spacing:-.01em;
  color:var(--accent); text-decoration:none; word-break:break-word;
  padding:6px 0; border-bottom:2px solid var(--accent-dim);
  transition:border-color .18s ease;
}
.contact-addr:hover,.contact-addr:focus-visible{border-bottom-color:var(--accent)}
.contact p{margin:var(--s4) 0 0; color:var(--ink-2); font-size:16px; line-height:1.7}
.contact p b{color:var(--doc-label); font-weight:600}
.contact p:first-of-type{margin-top:var(--s3)}
.contact .hint{
  margin-top:var(--s5); padding-top:var(--s4); border-top:1px solid var(--rule);
  font-size:15px;
}


/* The support page leads with the address, so its head is tighter than
   the other interior pages and the card sits inside it. */
.page-head .contact{margin:var(--s6) 0 0}
.page-head:has(.contact){padding-bottom:var(--s6)}
.page-head:has(.contact) h1{margin-bottom:var(--s4)}
.page-head:has(.contact) .lead{max-width:52ch}

/* Lead-in copy above the address on the support card. */
.contact-ask{
  margin:0 0 var(--s3) !important; font-size:19px; line-height:1.65;
  color:var(--ink) !important; max-width:52ch;
}
.contact-ask-2{margin:0 0 var(--s4) !important; font-size:16px}

/* ============================================================
   Just 4 Fun — the section index
   ============================================================ */
.fun-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:var(--s4)}
.fun-grid article{
  padding:var(--s6); background:var(--surface); border:1px solid var(--rule);
  border-radius:var(--r-card); box-shadow:var(--shadow);
  display:flex; flex-direction:column; gap:var(--s3);
}
.fun-grid h3{font-size:24px; margin:0}
.fun-grid p{margin:0; color:var(--ink-2); font-size:16px; line-height:1.7}
.fun-grid a.more{margin-top:auto; padding-top:var(--s2); text-decoration:none; font-size:15px}
.fun-grid a.more:hover{text-decoration:underline}

/* ============================================================
   Pro Football — week index
   ============================================================ */
.weeks{display:grid; gap:var(--s4)}
.week{
  display:grid; grid-template-columns:220px 1fr; gap:var(--s7);
  padding:var(--s6); background:var(--surface); border:1px solid var(--rule);
  border-radius:var(--r-card); box-shadow:var(--shadow);
}
@media (max-width:820px){ .week{grid-template-columns:1fr; gap:var(--s4); padding:var(--s5)} }
.week > *{min-width:0}
.week-current{border-color:var(--accent)}
.week-meta{display:flex; flex-direction:column; gap:var(--s2); align-items:flex-start}
.week-no{font-family:var(--f-display); font-size:29px; font-weight:600; line-height:1; letter-spacing:-.01em}
.week-season{font-family:var(--f-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2)}
.week-sub{margin:0 0 var(--s4); color:var(--ink-2); font-size:17px; line-height:1.65}
.week-links{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--s3) var(--s5); font-size:16px}
.week-links a{text-decoration:none; border-bottom:1px solid var(--accent-dim); padding-bottom:1px}
.week-links a:hover{border-bottom-color:var(--accent)}
.has-pod{
  margin-left:6px; font-family:var(--f-mono); font-size:11px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink-2); border:1px solid var(--rule);
  border-radius:var(--r-chip); padding:2px 6px; white-space:nowrap;
}

/* ============================================================
   Podcast call-out at the top of a week page
   ============================================================ */
.podcast{
  margin:var(--s6) 0 0; padding:var(--s5); max-width:var(--col);
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--r-card);
}
.podcast .eyebrow{margin-bottom:var(--s3)}
.podcast-lead{margin:0 0 var(--s4); color:var(--ink); font-size:17px; line-height:1.65}
.podcast-btn{display:inline-block}
.podcast-note{margin:var(--s4) 0 0; font-size:14px; color:var(--ink-2); line-height:1.6}

/* ============================================================
   A converted weekly report
   ============================================================ */
.report{max-width:var(--col)}
.report .report-h2{
  font-family:var(--f-display); font-weight:600; font-size:27px; line-height:1.25;
  letter-spacing:-.01em; margin:var(--s8) 0 var(--s4);
  padding-top:var(--s5); border-top:1px solid var(--rule); max-width:none;
}
.report .report-h2:first-child{margin-top:0; padding-top:0; border-top:none}
.report p{margin:0 0 var(--s5); line-height:1.75}
.report p.eyebrow{
  font-family:var(--f-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-2); margin:var(--s6) 0 var(--s3); display:flex; align-items:center; gap:var(--s3);
}
.report p.eyebrow::before{content:""; width:20px; height:1px; background:var(--accent); flex:none}
.report ul,.report ol{margin:0 0 var(--s5); padding-left:var(--s5); display:grid; gap:var(--s2)}
.report strong,.report b{font-weight:600; color:var(--doc-label)}
.report em,.report i{font-style:italic}
.report a{color:var(--accent)}

.report .callout{
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--r-card);
  padding:var(--s5); margin:0 0 var(--s5);
}
.report .callout .callout{background:var(--surface-2); margin-top:var(--s4)}
.report .callout > :last-child{margin-bottom:0}

.report .table-scroll{
  overflow-x:auto; margin:0 0 var(--s5);
  border:1px solid var(--rule); border-radius:var(--r-card);
}
.report table{border-collapse:collapse; width:100%; font-size:15px; font-variant-numeric:tabular-nums}
.report th,.report td{
  text-align:left; padding:10px var(--s4); border-bottom:1px solid var(--rule);
  vertical-align:top; line-height:1.55;
}
.report tr:last-child td{border-bottom:none}
.report th{
  font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--ink-2); font-weight:500; background:var(--surface-2); white-space:nowrap;
}
.report-back{margin-top:var(--s8); font-size:16px}
.report-back a{text-decoration:none}
.report-back a:hover{text-decoration:underline}

/* A table inside a callout already has the callout's border — don't draw a second. */
.report .callout > .table-scroll{border:none; border-radius:0; margin:0}
.report .callout > .table-scroll:only-child table th:first-child,
.report .callout > .table-scroll:only-child table td:first-child{padding-left:0}
/* Headings must clear the sticky masthead when linked to directly. */
.report .report-h2, .report [id]{scroll-margin-top:96px}

/* ============================================================
   Report charts.
   The source reports encode bars as table cells with width% +
   bgcolor. The converter re-expresses them here. Two series —
   away and home — from the validated categorical slots 1 and 2
   (blue, orange), which clear CVD and normal-vision separation
   on both surfaces. Every bar carries a direct numeric label,
   which is also what satisfies the light-mode contrast relief.
   ============================================================ */
:root{
  --s-away:#2a78d6; --s-home:#eb6834; --s-muted:#6E6469; --s-track:#DCD4D3;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --s-away:#3987e5; --s-home:#d95926; --s-muted:#8A7F84; --s-track:#2C2528;
  }
}
:root[data-theme="dark"]{
  --s-away:#3987e5; --s-home:#d95926; --s-muted:#8A7F84; --s-track:#2C2528;
}

.bar{display:flex; width:100%; height:12px; border-radius:3px; overflow:hidden; gap:2px}
.bar-tall{height:22px; border-radius:4px}
.bar-seg{display:block; width:var(--w); flex:0 0 auto; min-width:0}
.bar-seg[data-series="away"]{background:var(--s-away)}
.bar-seg[data-series="home"]{background:var(--s-home)}
.bar-seg[data-series="muted"]{background:var(--s-muted)}
.bar-seg[data-series="track"]{background:var(--s-track)}
.bar-seg[data-series="spacer"]{background:transparent}

.bar-labels{
  display:flex; justify-content:space-between; gap:var(--s4);
  margin:6px 0 var(--s5); font-family:var(--f-mono); font-size:13px; font-weight:500;
}
.bar-labels span[data-series="away"]{color:var(--s-away)}
.bar-labels span[data-series="home"]{color:var(--s-home)}

.chart{display:grid; gap:10px; margin:var(--s3) 0 var(--s5)}
.chart-row{
  display:grid; grid-template-columns:minmax(84px,26%) 1fr minmax(48px,auto);
  align-items:center; gap:var(--s4);
}
.chart-label{font-size:14px; color:var(--ink-2); line-height:1.3}
.chart-val{
  font-family:var(--f-mono); font-size:13px; color:var(--ink);
  text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap;
}
@media (max-width:520px){
  .chart-row{grid-template-columns:minmax(70px,34%) 1fr auto; gap:var(--s3)}
  .chart-label{font-size:13px}
}

.report .report-h3{
  font-family:var(--f-display); font-weight:600; font-size:23px; line-height:1.25;
  letter-spacing:-.01em; margin:0 0 var(--s3);
}
.report .report-lead{font-size:18px; color:var(--ink-2); margin:0 0 var(--s4); line-height:1.6}
.report .mono-note{
  font-family:var(--f-mono); font-size:13px; color:var(--ink-2);
  margin:0 0 var(--s4); line-height:1.6;
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* Small grey lines inside a chart box are that chart's caption, not a
   section label — they get no accent rule and no uppercasing. */
.report .report-caption{
  font-size:14px; line-height:1.55; color:var(--ink-2); margin:0 0 var(--s3);
}
.report .callout > .report-caption:first-child{margin-bottom:var(--s4)}

/* ============================================================
   Theme toggle.
   The site already follows the OS by default; this lets a reader
   override it and remembers the choice in localStorage — on their
   device, never transmitted, which is the only storage this site
   would use.
   ============================================================ */
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; margin-left:var(--s2); flex:none;
  background:transparent; border:1px solid var(--rule); border-radius:var(--r-control);
  color:var(--ink-2); cursor:pointer; padding:0;
  transition:color .18s ease, border-color .18s ease;
}
.theme-toggle:hover{color:var(--ink); border-color:var(--accent)}
.theme-toggle svg{display:block}
/* Show the icon for the theme you'd switch TO. */
.theme-toggle .i-sun{display:none}
.theme-toggle .i-moon{display:block}
:root[data-effective="dark"] .theme-toggle .i-sun{display:block}
:root[data-effective="dark"] .theme-toggle .i-moon{display:none}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]):not([data-effective]) .theme-toggle .i-sun{display:block}
  :root:not([data-theme="light"]):not([data-effective]) .theme-toggle .i-moon{display:none}
}
@media (max-width:700px){
  .theme-toggle{margin-left:auto; align-self:center}
  .masthead .wrap{position:relative}
  .brand{padding-right:48px}
  .theme-toggle{position:absolute; right:var(--s5); top:var(--s3)}
}

/* ============================================================
   Disclaimer on the football index, and its one-line echo at
   the top of every week page. Someone arriving from a shared
   link never sees the index, which is exactly the person who
   needs to know these numbers came out of a model.
   ============================================================ */
.disclaimer{
  margin:var(--s8) 0 0; padding:var(--s6); max-width:var(--col);
  background:var(--surface); border:1px solid var(--rule);
  border-left:3px solid var(--accent); border-radius:var(--r-card);
}
.disclaimer h2{
  font-family:var(--f-display); font-weight:600; font-size:24px;
  line-height:1.25; margin:0 0 var(--s5); letter-spacing:-.01em; max-width:none;
}
.disclaimer p{margin:0 0 var(--s5); font-size:16px; line-height:1.75; color:var(--ink-2)}
.disclaimer p:last-child{margin-bottom:0}
.disclaimer b{font-weight:600; color:var(--doc-label)}
.disclaimer em{font-style:italic}
.disclaimer-help{
  margin-top:var(--s5) !important; padding-top:var(--s4);
  border-top:1px solid var(--rule); font-size:15px !important;
}
.disclaimer-help a{font-weight:500; white-space:nowrap}

.week-note{
  margin:var(--s4) 0 0; padding:10px var(--s4); max-width:var(--col);
  background:var(--accent-dim); border-radius:var(--r-control);
  font-size:15px; line-height:1.6; color:var(--ink);
}
.week-note a{color:var(--accent)}
