/* ── mobile.css: the phone edition (Iva, 7 Oct 2026) ─────────────────────────────
   Loaded last. Phones get the key points only, one column, nothing squeezed.
   The 3D Texas hero, hover-only detail, timelines and dense tables are left to desktop. */

/* tablets and touch screens: Section Two cards open by default (no hover on touch) */
@media (max-width:1024px), (hover:none){
  #rules .steps3.tx{flex-direction:column!important;height:auto!important}
  #rules .steps3.tx .st3{flex:none!important;height:auto!important;max-height:none!important;overflow:visible!important;width:auto!important}
  #rules .steps3.tx .st3 .more,#rules .steps3.tx .st3 .ghost,#rules .steps3.tx .slip .lawline .hint{display:none!important}
}

@media (max-width:760px){
  :root{--gut:20px}

  /* one heading system: stacked, never side by side */
  .sec .sh,.sec .sh.xh,.count>.sh.xh,.voices .vhead,.stat .chead .sh{display:block!important}
  .sec .sh h2.dis,.sec.apple h2.dis,.voices .vhead h2{font-size:clamp(34px,10vw,44px)!important;line-height:.95!important}
  .sec .sh .lede,.voices .vhead>p{padding-top:14px!important;max-width:none!important;font-size:15.5px!important;line-height:1.6!important}
  .sec .sh .eyebrow,.voices .eyebrow{font-size:10.5px!important;letter-spacing:.16em!important;line-height:1.5!important;margin-bottom:12px!important;max-width:78%}
  .sec[data-ch]::after{font-size:84px!important;top:14px!important;right:12px!important}
  .sec{padding-top:64px!important;padding-bottom:64px!important}

  /* hero: no 3D map, no pinned scroll. Title, two buttons, stars. */
  .heroS{height:auto!important}
  .heroS .pin{position:relative!important;height:auto!important;min-height:86svh;display:flex!important;flex-direction:column;justify-content:center;visibility:visible!important}
  .heroS.gone .pin{visibility:visible!important}
  .heroS .floor,.heroS .carc,.heroS .detail,.heroS .hb2,.heroS .pin>svg{display:none!important}
  .heroS .pin::after{content:'';position:absolute;z-index:1;left:50%;bottom:-6%;width:130%;aspect-ratio:1;transform:translateX(-50%);background:url('/assets/brand/tx-gradient.svg') center/contain no-repeat;opacity:.16;pointer-events:none}
  .heroS .hcopy{transform:none!important;opacity:1!important;padding:96px 20px 40px!important;text-align:left!important}
  .heroS .hcopy h1{font-size:clamp(44px,13vw,58px)!important;line-height:.92!important}
  .heroS .hcopy h1 span{white-space:normal!important}
  .heroS .hcopy .cta{flex-direction:column;align-items:stretch;gap:10px;margin-top:28px}
  .heroS .hcopy .cta .btn{justify-content:center;text-align:center;min-height:50px}

  /* One · Texas voices: student, skill, what the rubric found. Timeline and cluster grid stay on desktop. */
  .onebox .pad{padding:16px!important}
  .onebox .vtop{grid-template-columns:56px 1fr!important;gap:12px!important}
  .onebox .vtop .ministar{width:56px!important}
  .onebox .vtop h3.you{font-size:17px!important;line-height:1.3!important;white-space:normal!important;overflow:visible!important}
  .onebox .vname{grid-column:1/-1;width:100%!important;max-width:none!important;white-space:normal!important}
  .onebox .vname span{white-space:normal!important}
  .vright .blk:nth-child(2),.vright .blk:nth-child(3){display:none!important}
  .vright .moves{gap:6px}
  .vright .moves span,.vright .moves b{font-size:10px!important}
  .vright .names{display:grid!important;grid-template-columns:1fr!important;gap:16px!important}
  .vrail{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px!important;margin:20px -20px 0!important;padding:0 20px 6px;scrollbar-width:none}
  .vrail::-webkit-scrollbar{display:none}
  .vrail .stop{flex:0 0 72%;scroll-snap-align:start;grid-column:auto!important}

  /* Two · rules: three plain cards, stacked */
  #rules .steps3.tx .st3{padding:22px 20px!important}
  #rules .steps3.tx .st3 .slip{display:none!important}
  #rules .steps3.tx .sk5{grid-template-columns:1fr!important}
  #rules .steps3.tx .sk1{grid-column:auto!important}
  #rules::after{opacity:.1!important}

  /* Three · map: the star alone, full width; programs on tap */
  #map .ringstage{margin:0 -8px}
  #map .rnode .tag{display:none!important}

  /* Four · try it: one column, nothing cut */
  #player .wrap,#playerHost,#pm,.console,.console .pm{min-width:0!important;max-width:100%!important}
  .console{grid-template-columns:1fr!important;border-radius:18px}
  .pm .qpick button{padding:9px 14px 9px 10px!important;min-height:38px}
  .pm .bar{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
  .pm .bar .rec{width:100%;justify-content:center;min-height:48px}
  .pm .pfoot{flex-direction:column;align-items:flex-start!important;gap:8px}
  .pm .pfoot .alt{padding:10px 0;font-size:14px!important}
  .console .rail{display:none!important}
  #player .xrow{grid-template-columns:1fr!important;min-height:0!important;padding:20px!important}
  #player .xrow>*{grid-column:auto!important}
  #player .xrow .xghost{display:none}
  #player .xrow .reach span.cl:not(.prog){display:none}

  /* Five · extract: logo under the text, not on it */
  #extract .sh.xh .partner{position:static!important;display:flex!important;margin-top:20px!important;transform:none!important}
  .count .rung .row{grid-template-columns:1fr 18px!important;row-gap:4px}
  .count .rung .dots{grid-column:1/-1;grid-row:2}
  .count .rung small{grid-column:1/-1;grid-row:3;text-align:left!important}
  .count .rung .chev{grid-row:1;grid-column:2}

  /* Six · hear it counted: video, marks, the moves. Transcript shortened. */
  .answer .ctx,.answer .tx,.answer .script{max-height:220px;overflow:hidden;-webkit-mask:linear-gradient(180deg,#000 70%,transparent);mask:linear-gradient(180deg,#000 70%,transparent)}

  /* Seven · completion: the numbers and the three steps. Course tables stay on desktop. */
  #completion .rcard,#completion .rcards,#completion .records{display:none!important}
  .stat76{display:block!important}

  /* Eight · plan: program name full width, count under it */
  #progs summary{grid-template-columns:1fr 20px!important;row-gap:10px!important}
  #progs summary>span:first-child{grid-column:1;grid-row:1}
  #progs summary .cr{grid-column:1!important;grid-row:2!important;width:auto!important;white-space:nowrap}
  #progs summary::after{grid-column:2;grid-row:1}

  /* small fixes from the second sweep */
  .vmedia .layer.ans .tag{display:none!important}
  .vright .moves{display:flex!important;flex-wrap:wrap;gap:8px!important}
  .vright .moves>div{display:inline-flex!important;align-items:center;gap:7px;width:auto!important;padding:7px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.14)}
  .vright .moves>div i{width:8px!important;height:8px!important;border-radius:50%!important;flex:none}
  .vright .moves>div span{font-size:11.5px!important;letter-spacing:.06em!important}
  .vright .moves>div.on{border-color:rgba(229,72,79,.55);background:rgba(229,72,79,.14)}
  .answer .ctxt .scroll{max-height:210px!important;overflow:hidden!important;-webkit-mask:linear-gradient(180deg,#000 65%,transparent);mask:linear-gradient(180deg,#000 65%,transparent)}
  .stat76 .cohort{display:block!important}
  .stat76 .cohort .dots{display:none!important}
  .stat76{display:grid!important;grid-template-columns:1fr 1fr;gap:18px 16px!important}
  .stat76 .flag,.stat76 .delta,.stat76 .src{grid-column:1/-1}
  .stat76 .k{min-width:0!important}
  .stat76 .delta{display:block!important}
  .stat76 .delta b{display:block;font-size:56px!important;line-height:1;margin-bottom:8px}
  .stat76 .delta span{display:block;width:auto!important}
}

/* tablets */
@media (max-width:1024px){
  .count>.sh.xh .partner{grid-row:4!important;grid-column:1/-1!important;justify-self:start!important;margin-top:18px!important}
}
@media (min-width:761px) and (max-width:1024px){
  #map .ringstage #mapbox{width:80%}
}
/* small phones: the question video picture-in-picture crowds the student */
@media (max-width:420px){
  .vmedia .media.haspip:not(.flipped) .layer.q{display:none!important}
}
/* Six: the five move tiles in one row on phones */
@media (max-width:760px){
  .count.answer .moves{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important}
  .count.answer .mv{padding:8px 2px!important;gap:5px!important;border-radius:10px!important;min-width:0}
  .count.answer .mv > div,.count.answer .mv i{width:30px!important;height:30px!important}
  .count.answer .mv svg{width:15px!important;height:15px!important}
  .count.answer .mv b{font-size:10px!important;letter-spacing:0!important;white-space:nowrap}
}
@media (max-width:760px){
  .count.answer .mv{padding:9px 0!important;align-content:center}
  .count.answer .mv b{font-size:9.5px!important;letter-spacing:-.01em!important;font-weight:600}
}
@media (max-width:360px){ .count.answer .mv b{font-size:8.5px!important} }
/* hero on phones: centred title over the Texas map (Iva, 7 Oct) */
@media (max-width:760px){
  .heroS .hcopy{text-align:center!important;padding:96px 24px 48px!important}
  .heroS .hcopy .eyebrow{margin-left:auto;margin-right:auto}
  .heroS .pin::after{left:50%;top:50%;bottom:auto;width:118%;aspect-ratio:1;transform:translate(-50%,-50%);opacity:.32;z-index:1;
    background:url('/assets/brand/tx-gradient.svg') center/contain no-repeat;
    -webkit-mask:radial-gradient(70% 70% at 50% 50%,#000 55%,transparent 100%);mask:radial-gradient(70% 70% at 50% 50%,#000 55%,transparent 100%)}
}
@media (max-width:760px){
  .heroS .pin::after{width:96%;top:52%;opacity:1;
    background:radial-gradient(60% 60% at 50% 45%,rgba(156,201,234,.34),rgba(156,201,234,.16));
    -webkit-mask:url('/assets/brand/tx-gradient.svg') center/contain no-repeat;mask:url('/assets/brand/tx-gradient.svg') center/contain no-repeat}
}
/* Six on phones: icons only, no words */
@media (max-width:760px){
  .count.answer .mv b{display:none!important}
  .count.answer .mv{padding:10px 0!important;place-items:center}
  .count.answer .mv > div,.count.answer .mv i{width:34px!important;height:34px!important}
  .count.answer .mv svg{width:17px!important;height:17px!important}
}
@media (max-width:760px){
  .count.answer .mv{height:auto!important;min-height:0!important;aspect-ratio:1/1;display:grid!important;place-content:center!important;align-content:center!important}
  .count.answer .mv > *:not(:first-child){display:none!important}
}
/* Seven on phones: the three steps as swipe cards; no dashboard link (Iva, 7 Oct) */
@media (max-width:760px){
  .whycta{display:none!important}
  .cstory{margin-top:40px!important}
  .csteps{display:flex!important;gap:12px!important;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -20px;padding:4px 20px 12px;scrollbar-width:none}
  .csteps::-webkit-scrollbar{display:none}
  .cstep{flex:0 0 84%;scroll-snap-align:start;align-content:start!important;gap:12px!important;padding:22px 20px;border-radius:18px;
    background:radial-gradient(120% 90% at 0% 0%,rgba(156,201,234,.16),rgba(255,255,255,.04) 55%);border:1px solid rgba(255,255,255,.12)}
  .cstep .n{width:28px;height:28px;font-size:12px}
  .cstep h3{font-size:22px!important}
  .cstep p{font-size:14.5px!important;line-height:1.55!important}
  .cstep .crule{gap:14px!important}
  .cstep .crule b{font-size:30px!important}
  .cstep .cdots{display:none!important}
  .cstep .cspeak{font-size:13px}
  .cstory::after{content:'Swipe →';display:block;margin-top:6px;font:600 10.5px var(--mono);letter-spacing:.16em;text-transform:uppercase;color:#7E9DB5}
}
@media (max-width:760px){
  .csteps{scroll-padding-inline:20px}
  .cstep .crule{flex-wrap:nowrap!important}
  .cstep .crule > *{flex:none!important;padding-right:14px!important;min-width:0}
  .cstep .crule span,.cstep .crule small{white-space:nowrap;font-size:12px!important}
}
/* hero fills the whole phone screen, Safari bars included */
@media (max-width:760px){
  .heroS .pin{min-height:100vh!important;min-height:100svh!important;height:100vh!important;height:100svh!important}
  .heroS .hcopy{padding-top:72px!important;padding-bottom:24px!important}
}
/* Four on phones: the reading and result views grow with their content instead of a fixed video height */
@media (max-width:760px){
  .console{--fh:auto}
  .console .pm .work,.console .rdy .rview,.console .pm .lv{height:auto!important;min-height:280px;aspect-ratio:auto!important;padding:24px 20px!important;overflow:visible!important}
  .console .stage .frame{height:auto!important;aspect-ratio:4/3!important}
  .pm .work .wtx{max-height:6.2em}
  .pm .work li{font-size:14.5px}
  .pm .bar{position:relative;z-index:2;background:inherit}
  .pm .bar .qn b,.pm .bar .qn{white-space:normal}
}
