/* Oct 21, 2026 (draft/dyslexia): Study calendar, testing accommodations, Clear your head, step-down suggestions, Reading on my own. */
.mw-panel .rs-box, #accomCard .rs-box, #tlAccomAsk .rs-box, #calTests .rs-box{ display:flex; gap:10px; align-items:flex-start; margin:8px 0; cursor:pointer; }
.mw-panel .rs-box input, #accomCard .rs-box input, #tlAccomAsk .rs-box input, #calTests .rs-box input{ width:22px; height:22px; min-height:0; margin:3px 0 0; flex:none; accent-color:var(--accent); }
.sp-fs{ border:1px solid var(--line); border-radius:10px; padding:6px 12px 4px; margin:10px 0; }
.sp-fs legend{ padding:0 6px; }
#tlAccomAsk h2{ font-size:1.15em; }
#clearHead summary{ cursor:pointer; min-height:44px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
#clearHead textarea{ width:100%; box-sizing:border-box; }
.ra-listen.ra-stuck{ font-weight:500; border-style:dashed; background:transparent; }
.sp-next button{ min-height:44px; }
#indepCard h2{ font-size:1.15em; }

/* ---------- Study calendar ---------- */
.cal-wrap{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:16px; align-items:start; }
@media (max-width:760px){ .cal-wrap{ grid-template-columns:minmax(0,1fr); } }
.cal-head{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.cal-head h2{ margin:0; flex:1; text-align:center; font-size:1.2em; }
.cal-head button{ min-width:44px; min-height:44px; }
.cal-grid{ width:100%; border-collapse:separate; border-spacing:3px; table-layout:fixed; }
.cal-grid th{ font-size:.8em; font-weight:600; color:var(--muted); padding:2px 0; text-align:center; }
.cal-grid td{ padding:0; text-align:center; border:0; }
.cal-day{ width:100%; min-height:48px; padding:4px 0 2px; margin:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px;
  background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:10px; font-weight:500; box-shadow:none; }
.cal-out .cal-day{ opacity:.5; }
.cal-day.cal-today .cal-n{ border-bottom:3px solid var(--accent); }
.cal-day.cal-sel{ background:var(--soft); border:2px solid var(--accent); }
.cal-day.cal-test{ border-color:var(--gold); }
.cal-day:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
.cal-n{ line-height:1.2; }
.cal-marks{ display:flex; align-items:center; gap:3px; min-height:12px; font-size:.75em; }
.cal-dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--accent); flex:none; }
.cal-star{ color:var(--gold-ink); }
.cal-cnt{ font-size:.85em; color:var(--muted); }
.cal-legend .cal-dot{ margin:0 2px 0 6px; } .cal-legend .cal-star{ margin-left:8px; }
.cal-list{ list-style:none; padding:0; margin:8px 0; }
.cal-item{ border-top:1px solid var(--line); padding:10px 0; display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; justify-content:space-between; }
.cal-item:first-child{ border-top:0; }
.cal-it-main{ display:flex; gap:8px; align-items:baseline; flex:1 1 240px; }
.cal-it-main .cal-dot{ transform:translateY(-1px); }
.cal-it-act{ display:flex; gap:6px; flex-wrap:wrap; }
.cal-it-act button{ min-height:44px; margin:0; }
.cal-editing{ display:block; }
.cal-add summary{ cursor:pointer; min-height:44px; display:flex; align-items:center; }
.cal-add form{ margin-top:6px; }
.cal-testline{ margin:.3em 0; }
#calMsg{ margin-top:0; }
@media (max-width:420px){ .cal-head h2{ font-size:1.05em; white-space:nowrap; } .cal-head{ gap:4px; } .cal-grid{ border-spacing:2px; } .cal-day{ min-height:44px; border-radius:8px; } .cal-grid th{ font-size:.72em; } }
body.lowglare .cal-day{ background:var(--card); }
@media print{ .cal-it-act, #calAddBox, #calTest, #calIcsAll{ display:none !important; } }

/* ---------- Reading and timing supports (tour step + Today card) ---------- */
#mwCard > summary{ cursor:pointer; min-height:44px; display:flex; align-items:center; gap:8px; list-style:none; }
#mwCard > summary::-webkit-details-marker{ display:none; }
#mwCard > summary::before{ content:"▸"; font-size:.9em; color:var(--muted); } #mwCard[open] > summary::before{ content:"▾"; }
.mw-panel{ max-width:640px; }
.mw-panel .mw-lg{ margin:10px 0; } .mw-panel .mw-lg label{ display:block; margin-bottom:4px; } .mw-panel .mw-lg select{ max-width:100%; }
.mw-panel .mw-voice .rs-box{ margin:4px 0; }
.mw-acc{ margin:10px 0; } .mw-acc > summary{ cursor:pointer; min-height:44px; display:flex; align-items:center; }
.mw-where{ border-left:4px solid var(--accent); padding:4px 10px; background:var(--soft); border-radius:6px; }

/* ---------- Home: one clear action (Oct 21) ---------- */
.home-hero{ margin-bottom:4px; }
.home-hero h1{ margin:.2em 0 .1em; }
.home-status{ font-size:1.08em; margin:0 0 6px; }

.home-cta-row{ margin:10px 0; }
.btn.big.home-cta, button.big.home-cta{ display:inline-flex; align-items:center; justify-content:center; min-width:min(320px,100%); min-height:56px; font-size:1.12em; text-decoration:none; }
@media (max-width:600px){ .btn.big.home-cta, button.big.home-cta{ width:100%; } }
.ts-lead .ts-say{ margin-bottom:0; }
.ts-steps-fold{ margin-top:6px; } .ts-steps-fold > summary{ cursor:pointer; min-height:44px; display:flex; align-items:center; color:var(--accent); font-weight:600; }
.home-fold{ margin:10px 0; } .home-fold > summary{ cursor:pointer; min-height:44px; display:flex; align-items:center; color:var(--accent); font-weight:600; }
.home-fold > .card{ margin-top:4px; }
.home-pick-list{ list-style:none; padding:0; margin:4px 0 8px; display:flex; flex-wrap:wrap; gap:8px; }
.home-pick-list a{ display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border:2px solid var(--accent); border-radius:999px; text-decoration:none; color:var(--accent); font-weight:600; background:var(--card); }
.home-quiet{ margin-top:18px; }
#mwSlot #mwCard{ padding:10px 16px; }
#mwSlot #mwCard > summary{ font-size:.95em; }
/* support-card layout option B (?mw=bar): a slim line instead of a card */
html.mw-bar #mwSlot #mwCard{ background:transparent; border:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; padding:4px 2px; }
html.mw-bar #mwSlot #mwCard > summary::before{ content:"⚙"; }
html.mw-bar #mwSlot #mwCard[open] > summary::before{ content:"⚙"; }

/* ---------- Page background (Oct 21, Lisa): off-white #FCFCFA by default (less glare than pure white).
   Comparison flags: ?bg=current (the old cream page) and ?bg=white (#FFFFFF). Plain cards keep the cream #F8F5EE;
   every color-coded card (soft blue, warm notes, official links, timer…) keeps its own color. Cards get a 1px hairline
   and a soft shadow so they stand apart. Light theme only: Low glare and the Reading comfort tints are untouched. */
:where(html:not(.bg-current)) body:not(.lowglare):not(.rc-t-peach):not(.rc-t-yellow):not(.rc-t-gray){ --paper:#FCFCFA; --shadow:0 0 0 1px rgba(38,38,43,.06), 0 2px 8px rgba(38,38,43,.10); }
html.bg-white body:not(.lowglare):not(.rc-t-peach):not(.rc-t-yellow):not(.rc-t-gray){ --paper:#FFFFFF; }
/* only the --card color changes, and only on cards: color-coded cards use their own tint variables, so they keep
   their color; fields, choices and buttons inside a card keep their original near-white */
:where(html:not(.bg-current) body:not(.lowglare):not(.rc-t-peach):not(.rc-t-yellow):not(.rc-t-gray)) .card *{ --card:#FFFEFA; }
:where(html:not(.bg-current) body:not(.lowglare):not(.rc-t-peach):not(.rc-t-yellow):not(.rc-t-gray)) .card{ --card:#F8F5EE; }
:where(html:not(.bg-current) body:not(.lowglare):not(.rc-t-peach):not(.rc-t-yellow):not(.rc-t-gray)) header.top{ background:var(--paper); }
.home-main{ padding:4px 0 2px; }
.home-fold > summary::before, .ts-steps-fold > summary::before{ content:""; width:.5em; height:.5em; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); margin-right:.6em; transition:transform .15s; }
.home-fold[open] > summary::before, .ts-steps-fold[open] > summary::before{ transform:rotate(45deg); }
.home-fold > summary::-webkit-details-marker, .ts-steps-fold > summary::-webkit-details-marker{ display:none; }
@media (prefers-reduced-motion:reduce){ .home-fold > summary::before, .ts-steps-fold > summary::before{ transition:none; } }

/* ---------- Settings in the header (Oct 21, Lisa): a gear next to Log out on every signed-in page ---------- */
.logout.hdr-settings{ gap:8px; padding:10px 16px; }
.logout.hdr-settings[aria-current="page"]{ background:var(--soft); }
.hdr-gear{ flex:none; }
@media (max-width:600px){ .logout.hdr-settings{ padding:0; width:48px; min-height:44px; height:44px; justify-content:center; } .hdr-set-t{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; } }
.mw-more{ margin:.4em 0 .2em; } .mw-more a{ font-weight:600; }
/* first-visit test choice: a row of calm pills */
.sf-pick{ border:0; padding:0; margin:10px 0 6px; display:flex; flex-wrap:wrap; gap:8px; }
.sf-opt{ display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border:2px solid var(--line); border-radius:999px; background:var(--card); cursor:pointer; }
.sf-opt input{ margin:0; width:auto; accent-color:var(--accent); }
.sf-opt:has(input:checked){ border-color:var(--accent); background:var(--soft); font-weight:600; }
.sf-opt:has(input:focus-visible){ outline:3px solid var(--focus); outline-offset:2px; }

/* ---------- Parent pages: the longer tab row wraps inside its own row (no page-level sideways scroll) ---------- */
body.role-parent nav.tabs{ flex-wrap:wrap; row-gap:4px; }
body.role-parent nav.tabs > a{ white-space:nowrap; }
@media (max-width:700px){ body.role-parent nav.tabs{ justify-content:flex-start; column-gap:2px; } body.role-parent nav.tabs > a, body.role-parent .more > summary{ flex:0 1 auto; } }
header.top, header.top .bar{ max-width:100%; box-sizing:border-box; }

/* ---------- Intro video (landing, How it works, Help): click to play, never autoplay ---------- */
.intro-video{ max-width:820px; margin:18px auto; }
.intro-video[hidden], .intro-video.iv-off{ display:none !important; margin:0; padding:0; border:0; }
.intro-video .iv-h{ font-size:1.15em; margin:0 0 8px; } .iv-len{ font-weight:400; color:var(--muted); font-size:.85em; }
.iv-video{ display:block; width:100%; height:auto; aspect-ratio:16/9; border-radius:14px; background:#F8F5EE; border:1px solid var(--line); box-shadow:var(--shadow); }
.iv-note{ margin:6px 0 4px; }
.iv-tr{ margin-top:4px; } .iv-tr > summary{ cursor:pointer; min-height:44px; display:flex; align-items:center; color:var(--accent); font-weight:600; }
.iv-tr > p{ max-width:68ch; }
.intro-video.iv-lp{ padding:0 4px; }
.intro-video.iv-help{ margin:12px 0 4px; border-top:1px solid var(--line); padding-top:10px; }
.intro-video.iv-help .iv-h{ font-size:1em; }
.intro-video.iv-help .iv-tr > p{ font-size:.9em; }
@media (max-width:600px){ .intro-video{ margin:12px 0; } .intro-video .iv-h{ font-size:1.05em; } }
/* Today choice (Oct 27, 2026, Lisa): Continue where you left off / Start today's suggested session / Start something else.
   Text only. Each button sits on its own line with its one-line description under it, so nothing can overlap. */
.today-choice{ padding:18px 20px; }
.today-choice .tc-row{ margin:0; }
.today-choice button.big.home-cta, .today-choice .btn.big.home-cta{ font-size:1.06em; padding-left:14px; padding-right:14px; }
.today-choice .tc-d{ margin:6px 0 16px; color:var(--muted,#555); font-size:.95em; line-height:1.4; overflow-wrap:anywhere; }
.today-choice .tc-alt{ min-height:48px; padding:10px 18px; border:2px solid var(--accent); border-radius:12px; font-weight:600; text-align:left; }
@media (max-width:600px){ .today-choice .tc-alt{ width:100%; text-align:center; } }
.tc-else{ margin:4px 0 0; }
.tc-else-btn{ background:none; border:0; padding:6px 2px; min-height:44px; color:var(--accent); font:inherit; font-weight:600; text-decoration:underline; text-underline-offset:3px; cursor:pointer; display:inline-flex; align-items:center; }
.tc-else-list{ list-style:none; margin:6px 0 0; padding:0; border-top:1px solid var(--line,#ddd); }
.tc-else-list li{ border-bottom:1px solid var(--line,#ddd); }
.tc-else-a{ display:flex; flex-direction:column; gap:2px; padding:12px 4px; min-height:44px; text-decoration:none; color:inherit; }
.tc-else-a:hover .tc-else-t{ text-decoration:underline; }
.tc-else-t{ font-weight:600; color:var(--accent); }
.tc-else-d{ font-size:.92em; color:var(--muted,#555); line-height:1.35; }
#sessionCard + .tc-else, .home-fold + .tc-else{ margin-top:8px; }
/* Today tiles (Oct 27, 2026, Lisa): the Today card (or the Continue card) and a "Start something else" tile, two across and the
   same size from 700px; stacked full width on phones. The whole tile is one button; the 4 choices open under it (same as before). */
.today-tiles{ display:grid; grid-template-columns:1fr; gap:14px; align-items:stretch; margin:14px 0; }
.today-tiles > .card{ margin:0; min-width:0; }
.today-tiles > :only-child{ grid-column:1 / -1; }
@media (min-width:700px){ .today-tiles{ grid-template-columns:1fr 1fr; gap:16px; } }
.today-tiles > .today-choice, .today-tiles > .tc-tile{ border:2px solid var(--b-prac,#93A3BD); border-left:6px solid var(--accent); }
#todayTiles > #tcElseWrap, .tc-else.tc-tile{ margin:0; padding:0; display:flex; flex-direction:column; overflow:hidden; }
.tc-else .tc-tile-btn{ flex:1 1 auto; width:100%; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:6px; margin:0; padding:18px 20px; min-height:120px;
  background:none; border:0; border-radius:inherit; color:var(--ink); font:inherit; text-align:left; text-decoration:none; cursor:pointer; }
.tc-else .tc-tile-btn[aria-expanded="true"]{ flex:0 0 auto; }
.tc-else .tc-tile-btn:hover .tc-tile-t{ text-decoration:underline; text-underline-offset:3px; }
.tc-else .tc-tile-btn:focus-visible{ outline:3px solid var(--focus,#26262B); outline-offset:-5px; }
.tc-tile-ic{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:12px; background:var(--soft,#E6EAF1); color:var(--accent); }
.tc-tile-ic .vi-svg{ width:26px; height:26px; }
.tc-tile-t{ font-size:1.18em; font-weight:700; line-height:1.25; color:var(--ink); overflow-wrap:anywhere; }
.tc-tile-d{ color:var(--muted,#555); font-size:.95em; line-height:1.4; overflow-wrap:anywhere; }
.tc-tile-go{ margin-top:auto; padding-top:10px; display:inline-flex; align-items:center; gap:6px; min-height:44px; padding-left:16px; padding-right:12px; border:2px solid var(--accent); border-radius:12px; color:var(--accent); font-weight:600; background:var(--card); }
.tc-else .tc-tile-btn[aria-expanded="true"] .tc-tile-go{ margin-top:6px; }
.tc-tile-chev{ display:inline-flex; transition:transform .15s; }
.tc-tile-chev svg{ width:18px; height:18px; }
.tc-else .tc-tile-btn[aria-expanded="true"] .tc-tile-chev{ transform:rotate(180deg); }
.tc-tile .tc-else-list{ margin:0 20px 14px; }
@media (prefers-reduced-motion:reduce){ .tc-tile-chev{ transition:none; } }
@media (max-width:699px){ .tc-else .tc-tile-btn{ min-height:0; } .tc-tile-go{ margin-top:8px; } }
