/* Declutter (Oct 22, 2026): student navigation (Today, Plan, SAT, ACT, AP, Progress, Tools; Oct 31, 2026: "Learn" became SAT, ACT and AP, 7 tabs).
   Desktop: one top bar (brand | tabs | ? and gear). Phones (700px and narrower): a fixed bottom tab bar.
   Lucide line icons (self-hosted SVG, stroke 1.75). Parents keep their own tab row (no .nav5 class). */
.li{ display:block; flex:0 0 auto; }
body.nav5 .brand .brand-tag{ display:none; }
/* header icon buttons: ? (Help) and the gear (Settings) */
.hdr-ico, body.nav5 .logout.hdr-settings{ display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; min-height:48px; padding:0; border-radius:12px; color:var(--ink); background:transparent; border:0; text-decoration:none; }
.hdr-ico:hover, body.nav5 .logout.hdr-settings:hover{ background:var(--soft); }
.hdr-ico[aria-current="page"], body.nav5 .logout.hdr-settings[aria-current="page"]{ background:var(--soft); color:var(--accent); }
.hdr-ico .li, body.nav5 .hdr-settings .li{ width:24px; height:24px; }
body.nav5 .hdr-set-t{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
body.nav5 .hdr-auth{ gap:4px; flex-wrap:nowrap; }
/* tabs, desktop */
nav#tabs.nav5{ order:2; flex:0 1 auto; flex-basis:auto; display:flex; flex-wrap:wrap; gap:4px; align-items:center; justify-content:center; margin:0 auto; }
body.nav5 .hdr-auth{ order:3; }
body.nav5 .bar{ max-width:1120px; flex-wrap:wrap; }
nav#tabs.nav5 > a{ display:inline-flex; flex-direction:row; align-items:center; gap:8px; min-height:48px; min-width:48px; padding:6px 14px; border-radius:12px; font-size:.84em; font-weight:500; color:var(--ink); white-space:nowrap; box-shadow:none; border:0; text-decoration:none; }
nav#tabs.nav5 > a .tab-ico{ display:inline-flex; }
nav#tabs.nav5 > a .li{ width:20px; height:20px; }
nav#tabs.nav5 > a:hover{ background:var(--soft); }
nav#tabs.nav5 > a[aria-current="page"]{ background:var(--soft); color:var(--accent); font-weight:700; box-shadow:none; }
nav#tabs.nav5 > a:focus-visible, .hdr-ico:focus-visible, .hub-row:focus-visible, .home-tile:focus-visible, .seg a:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
/* footer: one link */
.foot-min{ display:none; }
body.nav5 footer .foot-full{ display:none; }
body.nav5 footer .foot-min{ display:block; text-align:center; margin:0; }
body.nav5 footer .foot-min a{ display:inline-flex; align-items:center; min-height:44px; padding:0 12px; font-size:.74em; font-weight:500; color:var(--muted); text-decoration:underline; }
/* Oct 27 (feat/scores): College Board asks for the trademark line at the bottom of every page that uses its marks, so the one-link footer carries it too (small, muted, below the link). */
body.nav5 footer .foot-min p{ margin:0; }
/* Oct 31, 2026 (Lisa): the shorter reviewed trademark text, a narrow centered block right under the two links, a readable size */
body.nav5 footer .foot-min p.foot-min-legal{ max-width:34em; margin:4px auto 0; padding:0; font-size:.96em; line-height:1.55; color:var(--muted); text-align:center; text-wrap:pretty; }
/* phones: bottom tab bar */
@media (max-width:700px){
  nav#tabs.nav5{ position:fixed; left:0; right:0; bottom:0; z-index:71; margin:0; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:0; align-items:stretch;
    background:var(--paper); border-top:1px solid var(--line); padding:4px 2px env(safe-area-inset-bottom,0px); box-shadow:0 -2px 10px rgba(30,35,45,.06); }
  nav#tabs.nav5 > a{ flex-direction:column; justify-content:center; gap:2px; min-height:56px; min-width:0; padding:4px 2px; border-radius:12px; font-size:.64em; font-weight:600; line-height:1.15; white-space:normal; text-align:center; overflow-wrap:anywhere; background:none; }
  nav#tabs.nav5 > a .tab-ico{ padding:2px 8px; border-radius:999px; }
  nav#tabs.nav5 > a .li{ width:26px; height:26px; }
  nav#tabs.nav5 > a[aria-current="page"]{ background:none; color:var(--accent); }
  nav#tabs.nav5 > a[aria-current="page"] .tab-ico{ background:var(--soft); }
  body.nav5.noscroll nav#tabs.nav5{ display:none; }   /* the focus window and other full-screen panels cover the page; the tab bar steps aside */
  body.nav5{ padding-bottom:calc(var(--tabh,60px) + env(safe-area-inset-bottom,0px)); }
  /* the Focus/Help strip, its buttons, panels and the question toolbar sit just above the tab bar */
  body.nav5{ --pillbar:var(--tabh,60px); }   /* Oct 26: with no Focus/Help strip (Test-like modules), the tools bar still sits above the tab bar */
  body.nav5:has(#helpBtn:not([hidden])), body.nav5:has(#ftFab){ --pillbar:calc(80px + var(--tabh,60px)); }
  body.nav5:has(#helpBtn:not([hidden]))::before, body.nav5:has(#ftFab)::before{ bottom:calc(var(--tabh,60px) + env(safe-area-inset-bottom,0px)); height:80px; }
  body.nav5 .ft-fab, body.nav5 .ft-fab.ft-mini{ bottom:calc(12px + var(--tabh,60px) + env(safe-area-inset-bottom,0px)); }
  body.nav5 .help-fab{ bottom:calc(12px + var(--tabh,60px) + env(safe-area-inset-bottom,0px)); }
  body.nav5 .help-panel{ bottom:calc(72px + var(--tabh,60px) + env(safe-area-inset-bottom,0px)); max-height:calc(100dvh - 130px - var(--tabh,60px)); }
  body.nav5 .ft-panel{ max-height:calc(100dvh - 90px - var(--tabh,60px)); }
  body.nav5 .ra-dock{ bottom:calc(10px + var(--tabh,60px) + env(safe-area-inset-bottom,0px)); }
  body.nav5.ra-playing .ft-fab, body.nav5.ra-playing .help-fab{ bottom:calc(var(--ra-dock-h,96px) + 20px + var(--tabh,60px) + env(safe-area-inset-bottom,0px)) !important; }
  body.nav5 .hdr-auth{ margin-left:auto; }
}
@media (max-width:360px){ nav#tabs.nav5{ padding-left:0; padding-right:0; } nav#tabs.nav5 > a{ font-size:.56em; padding:4px 0; } nav#tabs.nav5 > a .tab-ico{ padding:2px 6px; } nav#tabs.nav5 > a .li{ width:22px; height:22px; } }
body.bigtext nav#tabs.nav5 > a{ font-size:.62em; }
@media (min-width:701px){ body.bigtext nav#tabs.nav5 > a{ font-size:.74em; padding:6px 10px; } }
/* 7 tabs on a tablet-width top bar: a little tighter so they stay on one row beside the brand */
@media (min-width:701px) and (max-width:1100px){ body.nav5 .brand{ flex:0 0 auto; white-space:nowrap; } nav#tabs.nav5{ gap:2px; } nav#tabs.nav5 > a{ padding:6px 9px; gap:6px; } body.bigtext nav#tabs.nav5 > a{ padding:6px 6px; } }
@media (min-width:701px) and (max-width:960px){ nav#tabs.nav5 > a .tab-ico{ display:none; } nav#tabs.nav5 > a{ padding:6px 10px; } }   /* text-only items, so the 7 stay on one row */
/* the test switch: SAT | ACT | AP */
/* Exam switcher (Oct 27, 2026, Lisa): SAT / AP / ACT bigger and easier to see. Equal-width segments, 52px tall, bold text;
   the selected test is filled navy with white text, the others have a visible border and dark text. */
.seg{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0; margin:0 0 14px; background:none; border-radius:14px; width:min(100%,460px); }
.seg a{ display:flex; align-items:center; justify-content:center; min-height:52px; min-width:0; padding:0 22px; border:2px solid var(--field,#8C8577); border-radius:12px; background:var(--card); font-weight:700; font-size:1.2rem; line-height:1.1; letter-spacing:.02em; color:var(--ink); text-decoration:none; white-space:nowrap; }
.seg a:hover{ border-color:var(--accent); background:var(--soft); }
.seg a[aria-current="page"]{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink,#fff); box-shadow:none; }
@media (max-width:420px){ .seg{ width:100%; gap:6px; } .seg a{ padding:0 10px; font-size:1.15rem; } }
/* hub pages: Progress, Tools, Settings, Home, exam hubs, Help, All pages — one shared row system (icon-layout Nov 9) */
.hub-group{ margin:0 0 18px; }
.hub-h{ font-size:var(--hub-h-size,.95rem); font-weight:700; color:var(--muted); margin:0 4px 6px; letter-spacing:.01em; }
.hub-list{ list-style:none; margin:0; padding:0; background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.hub-list li + li{ border-top:1px solid var(--line); }
.hub-row{ display:flex; align-items:center; gap:14px; width:100%; min-height:var(--hub-row-min,56px); padding:10px 16px; margin:0; color:var(--ink); text-decoration:none; font:inherit; font-weight:500; background:none; border:0; border-radius:0; text-align:left; cursor:pointer; }
.hub-row:hover{ background:var(--soft); }
.hub-ic{ display:inline-flex; flex:0 0 auto; color:var(--accent); } .hub-ic .li{ width:24px; height:24px; }
.hub-l{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.hub-sub{ display:block; font-size:var(--hub-sub-size,.85rem); font-weight:400; color:var(--muted); margin-top:2px; }
/* label and sub are adjacent in the markup; without this separator, "Unit 1"+"13 new" becomes "Unit 113 new" for screen readers and Read-along. Default: visually hidden (sub stays on its own line). Practice "N new" rows (.hub-count) show "Unit 1 · 13 new" on one line. */
.hub-sep{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.hub-row.hub-count .hub-sep{ position:static; width:auto; height:auto; overflow:visible; clip:auto; white-space:normal; font-weight:400; color:var(--muted); }
.hub-row.hub-count .hub-sub{ display:inline; margin-top:0; }
.hub-chev{ display:inline-flex; flex:0 0 auto; color:var(--muted); } .hub-chev .li{ width:20px; height:20px; }
.badge{ display:inline-block; font-size:.75rem; font-weight:700; color:var(--accent); background:var(--soft); border-radius:999px; padding:2px 8px; margin-left:6px; vertical-align:middle; }
.hub-out{ color:var(--bad); } .hub-out .hub-ic{ color:var(--bad); }
.hub-note{ margin:4px 4px 16px; }
/* Progress page note under the title */
.prog-note{ color:var(--muted); font-size:.9rem; margin:0 0 14px; }
/* Learn / Practice lesson lists as hub rows (Nov 9 Lisa: icon-and-label, look-and-feel only) */
.hub-row.hub-next{ box-shadow:inset 3px 0 0 var(--gold); background:var(--soft2,#fff8e8); }
.hub-row.hub-done .hub-ic{ color:var(--ok,#1a7f4b); }
.hub-row.hub-on{ background:var(--soft); }
.hub-row.hub-on .hub-l{ font-weight:700; }
.lesson-group > .hub-list{ margin:0; border:0; border-radius:0; background:transparent; }
.lesson-group > .hub-list li + li{ border-top:1px solid var(--line); }
.lesson-group > .hub-list .hub-row{ padding-left:8px; padding-right:8px; }
.hub-list.hub-lessons, .hub-list.hub-topics{ margin:0 0 14px; }

.crumb{ margin:0 0 2px; font-size:.85em; } .crumb a{ display:inline-flex; align-items:center; min-height:44px; }
.crumb a::before{ content:"‹"; margin-right:6px; font-size:1.2em; line-height:1; }
/* home: the session card and three tiles */
.ts-eyebrow{ display:flex; align-items:center; gap:8px; margin:0 0 4px; font-size:.82em; font-weight:600; color:var(--muted); }
.ts-eico{ display:inline-flex; color:var(--accent); } .ts-eico .li{ width:20px; height:20px; }
#sessionCard #tsTitle{ margin:0 0 2px; }
/* Tile title (Oct 27): the session tile opens like the Start something else tile: icon box, then the heading at the same size */
#sessionCard .ts-tile-ic{ margin:0 0 6px; } .tc-tile-ic .li{ width:24px; height:24px; }
#sessionCard .ts-tile-h{ margin:0 0 6px; font-size:1.18em; font-weight:700; line-height:1.25; color:var(--ink); overflow-wrap:anywhere; }
#sessionCard h3.ts-skill{ margin:0 0 2px; font-size:1.05em; font-weight:600; line-height:1.3; color:var(--ink); overflow-wrap:anywhere; }
/* Phones (Oct 27, 2026): a slightly smaller icon box on both Today tiles keeps Start session above the bottom tab bar with Extra-large text at 390. */
@media (max-width:560px){ .tc-tile-ic{ width:36px; height:36px; border-radius:10px; } .tc-tile-ic .li, .tc-tile-ic .vi-svg{ width:22px; height:22px; } }
#sessionCard .ts-what{ margin:0 0 8px; color:var(--muted); }
.ts-meta{ margin:0 0 12px; }
.ts-chip{ display:inline-block; padding:2px 12px; border-radius:999px; background:var(--soft); color:var(--ink); font-size:.82em; font-weight:600; }
#go .go-ico{ display:inline-flex; margin-right:8px; vertical-align:-3px; } #go .go-ico .li{ width:20px; height:20px; }
#go{ display:inline-flex; align-items:center; justify-content:center; }
.home-tiles{ list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0; padding:0; }
.home-tile{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; width:100%; min-height:84px; margin:0; padding:12px 8px; border-radius:14px; background:var(--card); color:var(--ink); border:1px solid var(--line); font:inherit; font-size:.82em; font-weight:600; line-height:1.2; text-align:center; cursor:pointer; box-shadow:none; }
.home-tile:hover, .home-tile[aria-expanded="true"]{ background:var(--soft); }
.home-tile .tile-ic{ display:inline-flex; color:var(--accent); } .home-tile .li{ width:26px; height:26px; }
@media (max-width:360px){ .home-tiles{ grid-template-columns:1fr; } .home-tile{ flex-direction:row; justify-content:flex-start; min-height:56px; } }
body.bigtext .home-tiles{ grid-template-columns:1fr; } body.bigtext .home-tile{ flex-direction:row; justify-content:flex-start; min-height:56px; padding:10px 16px; }
.home-pick-h{ font-size:1em; margin:0 0 6px; }
#homePick{ margin-top:0; }
#mwSlot[hidden]{ display:none; }
.tour-row{ display:flex; align-items:center; gap:4px; margin:4px 0 16px; border:1px solid var(--line); border-radius:14px; background:var(--card); }
.tour-open{ flex:1 1 auto; display:flex; align-items:center; gap:12px; min-height:56px; margin:0; padding:8px 14px; background:none; border:0; color:var(--ink); font:inherit; font-weight:600; text-align:left; cursor:pointer; box-shadow:none; }
.tour-ic{ display:inline-flex; color:var(--accent); } .tour-l{ flex:1 1 auto; } .tour-chev{ display:inline-flex; color:var(--muted); }
.tour-x{ display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; min-height:48px; margin:0 4px 0 0; padding:0; border:0; background:none; color:var(--muted); }
.ft-fab .ft-ico{ display:inline-flex; margin-right:6px; vertical-align:-3px; } .ft-fab .ft-ico .li{ width:20px; height:20px; }
.ft-fab{ display:inline-flex; align-items:center; }
