/* DECA-style theme: white pages, DECA blue, navy banners, cluster colors (from deca.org), top navigation.
   Loaded after styles.css; overrides its tokens and replaces the side rail. */
:root {
  --paper: #f7f8fa;
  --card: #ffffff;
  --sunk: #f0f3f7;
  --ink: #1b1b1b;
  --ink-2: #39424e;
  --muted: #69727d;
  --line: #e2e6eb;
  --accent: #0072ce;
  --accent-2: #e6f1fb;
  --accent-ink: #ffffff;
  --navy: #174783;
  --navy-2: #002d6b;
  --hero-bg: #174783;
  --hero-fg: #ffffff;
  --gold: #b88a00;
  --gold-2: #fff6d6;
  --c-marketing: #cc1d36;
  --c-finance: #009b46;
  --c-hospitality: #0b74bf;
  --c-bma: #f7bc00;
  --c-entrepreneurship: #7c8689;
  --c-pfl: #91c659;
  --c-core: #174783;
  --f-display: "Montserrat", "Gotham", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --r: 8px;
  --shadow: 0 1px 2px rgba(23, 71, 131, .06), 0 4px 14px rgba(23, 71, 131, .06);
}
:root[data-theme="dark"] {
  --paper: #0a1424; --card: #101f36; --sunk: #0d1a2e; --ink: #eef3fa; --ink-2: #c9d4e3; --muted: #8fa0b7;
  --line: #213555; --accent: #4aa3ff; --accent-2: #13305a; --accent-ink: #06121f;
  --navy: #0f2f5c; --navy-2: #081d3d; --hero-bg: #0f2f5c; --hero-fg: #ffffff; --gold: #f7bc00; --gold-2: #2b2405;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) { color-scheme: light; } }

body { background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -0.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
.eyebrow { font-family: var(--f-display); font-weight: 700; letter-spacing: .08em; }
.btn { font-family: var(--f-display); font-weight: 600; font-size: .9rem; border-radius: 999px; padding: 9px 18px; }
.btn.small { padding: 6px 13px; font-size: .8rem; }
.btn.big { padding: 13px 24px; }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.card { border-radius: var(--r); }
.tag { border-radius: 999px; font-family: var(--f-display); font-weight: 600; letter-spacing: .02em; }
.tag.code { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .tag.code { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- top navigation ---------- */
.shell2 { min-height: 100%; display: flex; flex-direction: column; }
.dnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--card); border-bottom: 1px solid var(--line); }
.dnav-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); height: 64px; }
.dlogo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: 14px; flex: none; }
.dlogo-mark { font: 800 1.35rem/1 var(--f-display); color: var(--accent); letter-spacing: -0.02em; }
.dlogo-mark span { color: var(--ink); font-weight: 700; }
.dlogo-sub { font: 600 .66rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.dlinks { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.dlink, .dd > button { font: 600 .86rem var(--f-display); color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 6px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dlink:hover, .dd > button:hover { color: var(--accent); background: var(--accent-2); }
.dlink.active, .dd.active > button { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.dd { position: relative; }
.dd > button svg { width: 12px; height: 12px; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 40; }
.dd.open .dd-menu { display: block; }
.dd-menu a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.dd-menu a:hover, .dd-menu a.active { background: var(--accent-2); }
.dd-menu a strong { font: 600 .88rem var(--f-display); }
.dd-menu a span { font-size: .78rem; color: var(--muted); }
.dright { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.dcount { font: 700 .72rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--navy); background: var(--accent-2); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
:root[data-theme="dark"] .dcount { color: var(--ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 .85rem var(--f-display); border: 0; cursor: pointer; display: grid; place-items: center; }
.dd.right .dd-menu { left: auto; right: 0; }
.dd-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dd-head strong { display: block; font: 700 .9rem var(--f-display); }
.dd-head span { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.dd-theme { display: flex; gap: 4px; padding: 8px 12px; }
.dd-theme button { flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 5px; font: 600 .76rem var(--f-display); cursor: pointer; }
.dd-theme button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.clusterbar { display: grid; grid-template-columns: repeat(6, 1fr); height: 4px; }
.clusterbar i:nth-child(1) { background: var(--c-bma); } .clusterbar i:nth-child(2) { background: var(--c-entrepreneurship); }
.clusterbar i:nth-child(3) { background: var(--c-finance); } .clusterbar i:nth-child(4) { background: var(--c-hospitality); }
.clusterbar i:nth-child(5) { background: var(--c-marketing); } .clusterbar i:nth-child(6) { background: var(--c-pfl); }

.main2 { flex: 1; min-width: 0; padding-block: 0 96px; }
.main2 #view > .page { padding-block: 28px 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: content-box; }

/* ---------- page banners (like deca.org event pages) ---------- */
.pagehero { background: var(--hero-bg); color: #fff; position: relative; overflow: hidden; }
.pagehero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 320px; height: 320px; border: 28px solid rgba(255,255,255,.07); border-radius: 48px; transform: rotate(12deg); pointer-events: none; }
.pagehero-in { max-width: 1040px; margin: 0 auto; padding: 34px max(16px, env(safe-area-inset-right, 0px)) 30px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.pagehero.narrow .pagehero-in { max-width: 780px; }
.pagehero h1 { color: #fff; text-transform: uppercase; font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.7rem); line-height: 1.02; letter-spacing: -0.01em; }
.pagehero p, .pagehero .muted { color: rgba(255,255,255,.86) !important; }
.pagehero .eyebrow { color: #fff; border: 1.5px solid rgba(255,255,255,.75); border-radius: 999px; padding: 4px 11px; align-self: flex-start; font-size: .66rem; }
.pagehero .crumbs, .pagehero .crumbs a { color: rgba(255,255,255,.8); }
.pagehero .tag { background: rgba(255,255,255,.16); border-color: transparent; color: #fff; }
.pagehero .tag.code { background: #fff; color: var(--hero-bg); }
.pagehero .tag.ok { background: #fff; color: #0a7a3a; }
.pagehero .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }
.pagehero .btn.primary { background: #fff; color: var(--hero-bg); border-color: #fff; }
.pagehero.cl-marketing { --hero-bg: var(--c-marketing); }
.pagehero.cl-finance { --hero-bg: #00813a; }
.pagehero.cl-hospitality { --hero-bg: var(--c-hospitality); }
.pagehero.cl-bma { --hero-bg: #b78800; }
.pagehero.cl-entrepreneurship { --hero-bg: #5f696c; }
.pagehero.cl-pfl { --hero-bg: #4f8a1d; }

/* dashboard hero becomes a navy band */
.hero-main { background: var(--navy); border-radius: 12px; }
.hero-main h1 { text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); line-height: 1.05; }
.hero-grid { display: none; }
.week-strip .w { border-radius: 999px; padding: 7px 4px; }
.week-strip .w.now { background: #fff; color: var(--navy); }
.week-strip .w.comp { background: var(--c-bma); color: #1b1b1b; }
.countdown .n { color: var(--accent); }
.stat .v { color: var(--navy); }
:root[data-theme="dark"] .stat .v { color: var(--ink); }

/* ---------- mobile ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .dlinks, .dcount, .dlogo-sub { display: none; }
  .dnav-in { height: 56px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 4px max(4px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font: 600 .66rem var(--f-display); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .active { color: var(--accent); }
  .pagehero-in { padding-top: 24px; padding-bottom: 22px; }
}
.sheet-more { position: fixed; inset: auto 0 0 0; z-index: 50; background: var(--card); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.2); padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); max-height: 80vh; overflow: auto; }
.sheet-more a { display: flex; flex-direction: column; padding: 11px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sheet-more a strong { font: 600 .95rem var(--f-display); }
.sheet-more a span { font-size: .8rem; color: var(--muted); }
.scrim2 { position: fixed; inset: 0; background: rgba(5, 15, 30, .45); z-index: 45; }

/* ---------- home ---------- */
.home-hero .pagehero-in { padding-bottom: 34px; }
.evcard { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 14px 16px; max-width: 760px; }
.evcode { font: 800 1.6rem/1 var(--f-display); background: #fff; color: var(--navy); border-radius: 10px; padding: 12px 14px; flex: none; }
.evinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evinfo strong { font: 700 1.05rem/1.25 var(--f-display); color: #fff; }
.evinfo span { font-size: .9rem; color: rgba(255,255,255,.88); }
.evinfo b { color: #fff; }
.page.home { gap: 20px; }
.next { border-left: 5px solid var(--accent); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.next-k { font: 700 .72rem var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.next h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
.wk { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.wk-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wk-item:last-child { border-bottom: 0; }
.wk-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; display: grid; place-items: center; }
.wk-item.done .wk-dot { background: #009b46; border-color: #009b46; color: #fff; }
.wk-dot svg { width: 11px; height: 11px; }
.wk-text a, .wk-text span { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.wk-text a:hover { color: var(--accent); }
.wk-item.done .wk-text a, .wk-item.done .wk-text span { color: var(--muted); text-decoration: line-through; }
.wk-when { font: 600 .72rem var(--f-display); color: var(--muted); text-align: right; white-space: nowrap; }
.modrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 4px 0; }
.modnum { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-2); color: var(--accent); font: 800 .85rem var(--f-display); display: grid; place-items: center; }
.modmain { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.modt { font-weight: 600; font-size: .92rem; }
.modmeta { font: 600 .72rem var(--f-display); color: var(--muted); }
.modmeta.late { color: var(--c-marketing); }
@media (max-width: 600px) { .evcard { flex-direction: column; align-items: flex-start; } .wk-item { grid-template-columns: 22px minmax(0, 1fr); } .wk-when { grid-column: 2; text-align: left; } }

/* ---------- practice: steps + case list ---------- */
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: st; }
.howto li { counter-increment: st; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.howto li::before { content: counter(st); font: 800 .8rem var(--f-display); color: #fff; background: var(--accent); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.howto strong { font: 700 .92rem var(--f-display); }
.howto span { font-size: .82rem; color: var(--muted); }
@media (max-width: 700px) { .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.caselist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.caserow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.caserow:last-child { border-bottom: 0; }
.caserow.first { background: var(--accent-2); }
.casemain { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.caserow .btn { flex: none; }

.sec-h { font-size: 1.15rem; margin-top: 4px; }

.module-card .module-side .btn { pointer-events: none; }
.module-card.is-locked { opacity: .7; }
.module-num { border-radius: 50%; font-family: var(--f-display); }
.module-card.current .module-num { background: var(--accent); }
/* readable sizes + comfortable tap targets */
body { font-size: 16px; }
.small { font-size: .875rem; }
@media (max-width: 900px) { .btn { min-height: 44px; } .btn.small { min-height: 38px; } .choice { min-height: 48px; } .dd-menu a, .sheet-more a { min-height: 48px; justify-content: center; } }
.dd > button.avatar { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--navy); color: #fff; justify-content: center; font: 700 .8rem var(--f-display); }
.dd > button.avatar:hover { background: var(--accent); color: #fff; }

/* big district countdown */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.home-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bigcount { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; color: var(--navy); border-radius: 16px; padding: 18px 26px; min-width: 200px; box-shadow: 0 10px 30px rgba(0, 20, 60, .25); border-bottom: 6px solid var(--c-bma); }
.bc-n { font: 800 clamp(4rem, 3rem + 4vw, 6rem)/0.9 var(--f-display); letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.bc-l { font: 800 .9rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-top: 6px; }
.bc-d { font: 600 .8rem var(--f-display); color: #69727d; margin-top: 4px; }
.dcount { font-size: .85rem; padding: 9px 16px; background: var(--accent); color: #fff; }
:root[data-theme="dark"] .dcount { color: var(--accent-ink); }
@media (max-width: 760px) {
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .bigcount { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-start; text-align: left; padding: 14px 18px; min-width: 0; }
  .bc-n { font-size: 3.4rem; }
  .bc-l { margin-top: 0; }
  .bc-d { flex-basis: 100%; margin-top: 0; }
}
@media (max-width: 900px) { .dnav .dcount { display: inline-block; font-size: .7rem; padding: 6px 10px; } }
@media (max-width: 380px) { .dlogo-mark { font-size: 1.1rem; } }

/* official evaluation form */
.sform-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.sform { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 560px; }
.sform th { font: 700 .68rem var(--f-display); text-transform: uppercase; letter-spacing: .05em; padding: 8px 6px; background: var(--navy); color: #fff; text-align: center; }
.sform th.sf-q { text-align: left; }
.sform td { border-top: 1px solid var(--line); padding: 7px 6px; vertical-align: middle; }
.sform .sf-sec td { background: var(--sunk); font: 800 .7rem var(--f-display); letter-spacing: .08em; color: var(--navy); padding: 6px 8px; }
:root[data-theme="dark"] .sform .sf-sec td { color: var(--ink); }
.sform .sf-q { min-width: 190px; }
.sform .sf-n { font-weight: 700; color: var(--muted); }
.sform .rd { font-size: .75rem; color: var(--muted); }
.sform .sf-cell { text-align: center; white-space: nowrap; }
.sform .sf-cell button { min-width: 26px; height: 28px; margin: 1px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; font: 700 .78rem var(--f-display); color: var(--ink-2); cursor: pointer; }
.sform .sf-cell button:hover { border-color: var(--accent); }
.sform .sf-cell.l0.on { background: var(--nov-2); } .sform .sf-cell.l1.on { background: var(--dev-2); } .sform .sf-cell.l2.on { background: var(--pro-2); } .sform .sf-cell.l3.on { background: var(--exe-2); }
.sform .sf-cell button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sform .sf-s { text-align: center; font-weight: 800; width: 52px; }
.sform .sf-total td { background: var(--navy); color: #fff; font: 800 .8rem var(--f-display); letter-spacing: .05em; }
.sform .sf-total .muted { color: rgba(255,255,255,.75); }
.sform .sf-total .sf-s { font-size: 1.1rem; }
.sticky-col { position: sticky; top: 84px; }
@media (max-width: 900px) { .sticky-col { position: static; } }
.pdftabs { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 3px; gap: 2px; }
.pdftab { border: 0; background: none; padding: 5px 11px; border-radius: 999px; font: 600 .76rem var(--f-display); color: var(--muted); cursor: pointer; }
.pdftab.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.pdfnote { margin: 0; padding: 8px 12px; background: var(--accent-2); color: var(--ink-2); }
#printArea { display: none; }
@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  #printArea img { width: 100%; display: block; page-break-after: always; break-after: page; }
  @page { margin: 0.4in; }
}
/* annotated real pages in lessons */
.annot { margin: 6px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.annot figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.annot figcaption strong { font: 700 1rem var(--f-display); }
.annot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding: 14px; align-items: start; }
.annot-canvas { position: relative; max-width: 100%; box-shadow: var(--shadow); background: #fff; }
.annot-canvas canvas { display: block; }
.annot-box { position: absolute; left: 3%; right: 3%; border: 2.5px solid var(--accent); border-radius: 6px; background: rgba(0, 114, 206, .06); transition: background .15s; }
.annot-box.hot { background: rgba(0, 114, 206, .18); }
.annot-num { position: absolute; left: -14px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 .75rem/24px var(--f-display); text-align: center; }
.annot-notes { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.annot-notes li strong { display: block; font: 700 .92rem var(--f-display); }
.annot-notes li span { color: var(--ink-2); }
@media (max-width: 760px) { .annot-grid { grid-template-columns: minmax(0, 1fr); } }
/* PI Bank + Framework Library */
:root { --fw-a: #dbeafb; --fw-b: #fde3e7; --fw-c: #def4e6; --fw-d: #fff2c6; --fw-e: #ebe7f8; --fw-line: #174783; --fw-ink: #1b1b1b; }
:root[data-theme="dark"] { --fw-a: #163a66; --fw-b: #4a1d27; --fw-c: #173d2a; --fw-d: #43380f; --fw-e: #2c2650; --fw-line: #9cc7f5; --fw-ink: #eef3fa; }
.fwchip { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--accent-2); color: var(--accent); font: 600 .78rem var(--f-display); text-decoration: none; }
.fwchip:hover { background: var(--accent); color: #fff; }
.fwcard { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.fwcard:hover { border-color: var(--accent); }
.fwthumb { background: var(--sunk); border-radius: 8px; padding: 10px; aspect-ratio: 400 / 260; display: grid; place-items: center; overflow: hidden; }
.fwthumb svg, .fwbig svg { width: 100%; height: auto; max-width: 100%; }
.fwdetail { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 800px) { .fwdetail { grid-template-columns: minmax(0, 1fr); } }
.pbitem summary .tag { margin-right: 4px; }

/* official exam */
.oxgrid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
@media (max-width: 900px) { .oxgrid { grid-template-columns: minmax(0, 1fr); } }
.oxsheet { max-height: calc(100vh - 110px); overflow: auto; }
.oxbub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
@media (max-width: 900px) { .oxbub { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.oxrow { display: grid; grid-template-columns: 26px repeat(4, 1fr); gap: 3px; align-items: center; font-size: .75rem; }
.oxrow button { height: 26px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font: 700 .7rem var(--f-display); color: var(--ink-2); cursor: pointer; padding: 0; }
.oxrow button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.oxmissed { display: flex; flex-wrap: wrap; gap: 4px; }

.pdfcrop { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; max-width: 100%; }

/* official case pages: the PDF is the case */
.ocsheet .ochead { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-left: 5px solid #0072CE; border-radius: 8px; background: var(--card); }
.ocsheet .ochead .ev { font: 800 1.1rem var(--f-mono, monospace); color: #fff; background: #174783; border-radius: 6px; padding: 6px 10px; flex: none; }
.prepnotes .trifold { grid-template-columns: minmax(0, 1fr); }
.prepnotes .trifold .panel { border-right: 0; border-bottom: 1px dashed var(--line); }
.prepnotes .trifold .panel:last-child { border-bottom: 0; }
.prepnotes .trifold textarea { min-height: 150px; }
.sform { min-width: 480px; }
.sform .sf-q { min-width: 140px; }
.sform td.sf-cell { padding: 6px 2px; }
.sform .sf-cell button { min-width: 22px; height: 28px; margin: 1px 0; padding: 0 2px; }
.sform .sf-s { width: 40px; }
.sform th { padding: 8px 3px; letter-spacing: .02em; }

/* official exam: one question at a time */
.oxone { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .oxone { grid-template-columns: minmax(0, 1fr); } }
.oxqnum { font-size: 1.5rem; margin: 0; }
.oxcropbox { min-height: 120px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; overflow: hidden; }
.oxpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.oxpick button { height: 64px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); font: 800 1.5rem var(--f-display); color: var(--ink); cursor: pointer; transition: transform .08s; }
.oxpick button:hover { border-color: #0072CE; }
.oxpick button:active { transform: scale(.97); }
.oxpick button.on { background: #0072CE; border-color: #0072CE; color: #fff; }
.oxnav { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.oxnav button { height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font: 700 .72rem var(--f-mono, monospace); color: var(--muted); cursor: pointer; padding: 0; }
.oxnav button.ans { background: #174783; border-color: #174783; color: #fff; }
.oxnav button.cur { outline: 3px solid #F2B705; outline-offset: 1px; }
.oxkey { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 5px; background: var(--card); }
.oxkey.ans { background: #174783; border-color: #174783; }
.oxkey.cur { outline: 2px solid #F2B705; }
.pdfcrop { overflow: hidden; }
.oxcropbox { overflow-x: auto; }
@media (max-width: 600px) { .oxhint { display: none; } .oxpick button { height: 56px; } }

/* mock slots: arrive / prep / present */
.slot-times { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--muted); }
.slot-times b { font-weight: 700; color: var(--ink-2, inherit); margin-right: 3px; }
.slot-times .present { color: #0072CE; font-weight: 700; }
.slot-times .present b { color: #0072CE; }

/* teammate progress (Home, teams only) */
.pmods { display: flex; flex-wrap: wrap; gap: 6px; }
.pmod { font: 700 .78rem var(--f-mono, monospace); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); }
.pmod.done { background: #e6f4ec; border-color: #1f8a4c; color: #1f8a4c; }
.pmod.late { border-color: #c0392b; color: #c0392b; }

/* "Are you ready?" gate */
.readygate { text-align: left; padding: 28px; gap: 14px; }
.readygate .rg-h { font-size: 2.2rem; margin: 0; }
.readygate .lede { font-size: 1.1rem; font-weight: 600; }
.rg-facts { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.rg-count { display: grid; justify-items: center; gap: 8px; padding: 40px 0; }
.rg-count span { font: 800 6rem/1 var(--f-display); color: #0072CE; }
.rg-count small { color: var(--muted); }

/* Exams page tabs */
.extabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.extabs button { border: 0; background: none; padding: 10px 16px; font: 700 .95rem var(--f-display); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.extabs button.on { color: #0072CE; border-bottom-color: #0072CE; }
.extabs .xtn { font: 700 .72rem var(--f-mono, monospace); background: var(--sunk, #eef1f6); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.extab { display: grid; gap: 16px; }
.extab[hidden] { display: none; }

/* Season schedule: List / Calendar toggle */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); align-self: flex-start; }
.seg button { border: 0; background: none; padding: 7px 18px; border-radius: 999px; font: 700 .9rem var(--f-display); color: var(--muted); cursor: pointer; }
.seg button.on { background: #174783; color: #fff; }
#svList[hidden], #svCal[hidden] { display: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.cal-lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal-h { font: 700 .7rem var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; background: var(--sunk, #eef1f6); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 96px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: var(--sunk, #f4f6fa); }
.cal-day.out .cal-n { opacity: .5; }
.cal-day.today { box-shadow: inset 0 0 0 2px #0072CE; }
.cal-day.comp { background: rgba(242, 183, 5, .12); }
.cal-n { font: 700 .78rem var(--f-mono, monospace); color: var(--muted); }
.cal-day.today .cal-n { color: #0072CE; }
.cal-ev { display: flex; flex-direction: column; gap: 1px; padding: 4px 6px; border-radius: 6px; border-left: 3px solid; background: var(--card); font-size: .72rem; line-height: 1.25; text-decoration: none; color: var(--ink); min-width: 0; }
.cal-ev .cal-t { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cal-ev .cal-tm { color: var(--muted); font-size: .68rem; }
.cal-ev.done .cal-t { text-decoration: line-through; opacity: .6; }
a.cal-ev:hover { filter: brightness(.96); }
.k-meeting { border-color: #0072CE; } .cal-lg .k-meeting { background: #0072CE; }
.k-module { border-color: #174783; } .cal-lg .k-module { background: #174783; }
.k-exam { border-color: #c0392b; } .cal-lg .k-exam { background: #c0392b; }
.k-mock { border-color: #1f8a4c; } .cal-lg .k-mock { background: #1f8a4c; }
.k-practice { border-color: #8e44ad; } .cal-lg .k-practice { background: #8e44ad; }
.k-habit { border-color: #7f8c8d; } .cal-lg .k-habit { background: #7f8c8d; }
.k-comp { border-color: #F2B705; background: rgba(242, 183, 5, .18); } .cal-lg .k-comp { background: #F2B705; }
.cal-agenda { display: none; }
@media (max-width: 700px) {
  .cal-grid { display: none; }
  .cal-agenda { display: grid; gap: 10px; }
  .cal-ag { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .cal-ag.today .cal-agd { color: #0072CE; }
  .cal-ev { font-size: .85rem; }
  .cal-ev .cal-tm { font-size: .78rem; }
}

/* BowtieGOAT videos: click-to-play cards */
.ytgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ytgrid.shorts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ytcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ytplay { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.ytplay img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .15s; }
.ytplay:hover img, .ytplay:focus-visible img { opacity: 1; }
.ytbtn { position: absolute; left: 50%; top: 50%; width: 58px; height: 40px; margin: -20px 0 0 -29px; border-radius: 12px; background: rgba(23, 71, 131, .92); }
.ytbtn::after { content: ""; position: absolute; left: 23px; top: 11px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.ytplay:hover .ytbtn { background: #0072CE; }
.ytlen { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font: 600 .72rem var(--f-mono, monospace); padding: 1px 6px; border-radius: 4px; }
.ytframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
.ytcard.short .ytplay, .ytcard.short .ytframe { aspect-ratio: 9 / 16; max-width: 220px; }
.ytcard.short .ytplay img { object-fit: cover; }
.ytold { font-style: italic; }
.ytpi { max-width: 240px; }
#lessonBody .ytblock { margin: 6px 0 18px; }
