/* v2 portal-reading-room-all (Shinwoo, Nov 15 1:15 PM PT: "same view for everyone"). The Reading room (Option B) on
   every page every role can reach: student, parent, counselor, SSC and owner. Scoped to html.v2-b2, which
   v2/reading-room.js sets for all five roles once someone is signed in (the sign-in page keeps Aayan's look).
   The menu, phone bar, logo and the role homes are in v2/walkthrough.css (Part 2); this file restyles the shared
   building blocks from app.css once (tokens, page and card titles, cards, stat tiles, tables, pills, buttons, inputs,
   tabs, empty states, lists, chat, toasts, modals, notifications) so every page inherits them, then the page-specific
   leftovers. CSS only: no markup or behaviour changes.
   Colours: ink #000000, paper #FFFFFF on #F4F3EF, green #00BF63 for fills and rules only (never small text on white;
   on a green fill the text is black), #00703A for green text. Fonts: Literata for headings and names, Atkinson
   Hyperlegible Next for the interface. Rules: 36px under page titles, 28px under card titles.
   Dark theme: app.css's dark colours stay; the fonts, rules, green fills and the logo still apply. */

/* ---------- tokens ---------- */
html.v2-b2{--sans:"Atkinson Hyperlegible Next","Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI",sans-serif;
  --serif:"Literata",Georgia,serif;--green:#00BF63;--r:10px;--rr-rule:#00BF63;--rr-green-text:#00703A;--rr-focus:#000000}
html.v2-b2:not([data-theme="dark"]){--bg:#F4F3EF;--card:#FFFFFF;--paper:#F7F7F5;--ink:#000000;--ink2:#1f1f24;--muted:#55555c;
  --line:#E9E7E0;--line2:#F0EFEA;--green-d:#00703A;--green-s:#E2F6EB;--green-ss:#F1FAF5;
  --shadow:0 1px 2px rgba(0,0,0,.05),0 6px 18px -10px rgba(0,0,0,.14);--shadow-l:0 1px 2px rgba(0,0,0,.08),0 28px 64px -24px rgba(0,0,0,.45)}
html.v2-b2[data-theme="dark"]{--rr-green-text:#7FE0AE;--rr-focus:#F7F7F5}
html.v2-b2 body{font-family:var(--sans);font-size:15px}

/* ---------- page titles (36px rule) ---------- */
html.v2-b2 #main .top h1,html.v2-b2 #main h1.serif{font-family:var(--serif);font-weight:500;letter-spacing:-.015em;line-height:1.12}
html.v2-b2 #main .top h1{font-size:34px}
html.v2-b2 #main .top h1::after,html.v2-b2 #main h1.serif::after{content:"";display:block;width:36px;height:3px;border-radius:2px;background:var(--rr-rule);margin-top:12px}
html.v2-b2 #main .top .sub{font-size:15px;margin-top:10px;max-width:72ch}
html.v2-b2 #main h2{font-family:var(--serif);font-weight:500;letter-spacing:-.01em}
html.v2-b2 .crumb{font-size:13px;font-weight:700}
html.v2-b2 .crumb a:hover{color:var(--ink);text-decoration:underline}

/* ---------- cards and card titles (28px rule) ---------- */
html.v2-b2 .card{border-radius:10px;box-shadow:var(--shadow)}
html.v2-b2:not([data-theme="dark"]) .card{border-color:transparent}
html.v2-b2:not([data-theme="dark"]) .card .card,html.v2-b2:not([data-theme="dark"]) .card.flat{border-color:var(--line);box-shadow:none}
html.v2-b2 .card-h{align-items:flex-start}
html.v2-b2 .card-h h3,html.v2-b2 .card > h3{font-family:var(--serif);font-weight:600;font-size:18px;line-height:1.25;letter-spacing:-.01em}
html.v2-b2 .card-h h3::after,html.v2-b2 .card > h3::after{content:"";display:block;width:28px;height:3px;border-radius:2px;background:var(--rr-rule);margin-top:8px}
html.v2-b2 .card-h .muted{font-size:13px}
html.v2-b2 .stat .k{font-size:12.5px;font-weight:700;letter-spacing:.02em;color:var(--muted)}
html.v2-b2 .stat .v{font-family:var(--serif);font-weight:500}
html.v2-b2 .stat .d.up{color:var(--rr-green-text)}
html.v2-b2 .divider{background:var(--line)}

/* names in Literata: the menu account, people in lists, tables, chat, college and essay cards */
html.v2-b2 .me .grow b,html.v2-b2 .chat-h b,html.v2-b2 .chat-li .grow b,html.v2-b2 .table td:first-child b,
html.v2-b2 .li .grow > b,html.v2-b2 .col-card .n,html.v2-b2 .essay-card b{font-family:var(--serif);font-weight:600;letter-spacing:-.005em}

/* ---------- links ---------- */
html.v2-b2 #main a{text-decoration-color:var(--rr-rule);text-decoration-thickness:2px;text-underline-offset:.22em}
html.v2-b2 #main a:focus-visible,html.v2-b2 .side a:focus-visible,html.v2-b2 .mobilebar button:focus-visible{outline:2px solid var(--rr-focus);outline-offset:2px;border-radius:6px}

/* ---------- buttons ---------- */
html.v2-b2 .btn{border-radius:10px;font-weight:700;font-size:14px}
html.v2-b2 .btn.sm{font-size:13px;border-radius:8px}
html.v2-b2 .btn.lg{font-size:15px}
html.v2-b2 .btn:hover{border-color:#cfcdc4}
html.v2-b2 .btn.pri,html.v2-b2 .btn.green,html.v2-b2 .hero .btn.green{background:#00BF63;border-color:#00BF63;color:#000000}
html.v2-b2 .btn.pri:hover,html.v2-b2 .btn.green:hover{background:#00AD5A;border-color:#00AD5A;filter:none}
html.v2-b2 .btn.ghost{border-color:transparent}
html.v2-b2 .btn.ghost:hover{background:var(--line2);border-color:transparent}
html.v2-b2 .btn:focus-visible{outline:2px solid var(--rr-focus);outline-offset:2px}
html.v2-b2 .ai-btn{background:#000000;color:#FFFFFF;border-color:#000000}
html.v2-b2 .ai-btn svg{color:#00BF63}
html.v2-b2[data-theme="dark"] .ai-btn{background:#161616;border-color:#2a2a30}

/* ---------- pills, dots, avatars ---------- */
html.v2-b2 .pill{font-size:12px;font-weight:700;padding:2px 10px}
html.v2-b2 .pill.green{background:var(--green-s);color:var(--rr-green-text)}
html.v2-b2:not([data-theme="dark"]) .pill.green{color:#00703A}
html.v2-b2 .pill.prem{background:#000000;color:#DBF6E9}
html.v2-b2 .av{background:#DBF6E9;color:#000000;font-family:var(--sans)}

/* ---------- inputs ---------- */
html.v2-b2 .input{border-radius:10px;border-color:#D9D7CF;font-weight:400}
html.v2-b2[data-theme="dark"] .input{border-color:var(--line)}
html.v2-b2 .input:focus{border-color:var(--rr-focus);box-shadow:0 0 0 1px var(--rr-focus)}
html.v2-b2 label.f{font-size:13px;font-weight:700;color:var(--ink2)}
html.v2-b2 .check.on{background:#00BF63;border-color:#00BF63}
html.v2-b2 .check.on::after{border-color:#000000}

/* ---------- tables and lists ---------- */
html.v2-b2 .table{font-size:14px}
html.v2-b2 .table th{font-size:13px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--muted)}
html.v2-b2 .table tr.click:hover td{background:var(--green-ss)}
html.v2-b2 .li.click:hover,html.v2-b2 .np:hover{background:var(--line2)}

/* ---------- tabs and segmented controls ---------- */
html.v2-b2 .tabs a{font-weight:700;font-size:14px;border-bottom-width:3px}
html.v2-b2 .tabs a.on{color:var(--ink);border-color:#00BF63}
html.v2-b2 .seg button{font-weight:700}
html.v2-b2 .seg button.on{box-shadow:0 0 0 1px var(--line),0 1px 2px rgba(0,0,0,.06)}

/* ---------- empty states ---------- */
html.v2-b2 .empty{border:1px dashed #D9D7CF;border-radius:10px;background:transparent;color:var(--muted);font-size:14.5px;padding:28px 24px}
/* polish: inside a card the dashed box was a box in a box; the card is the container */
html.v2-b2 .card .empty{border:0;border-radius:0;padding:20px 0}
html.v2-b2[data-theme="dark"] .empty{border-color:var(--line)}

/* ---------- hero (the dark North Star band) ---------- */
/* polish: no grid texture and no green glow; a plain ink band */
html.v2-b2 .hero{background:#000000;border-color:#000000;border-radius:10px}
html.v2-b2 .hero::before,html.v2-b2 .hero::after{display:none}
html.v2-b2 .hero h2{font-family:var(--serif);font-weight:400}
/* the label says whose North Star it is, so it stays; quieter: sentence case, no tracking */
html.v2-b2 .hero .eyebrow{color:#00BF63;font-size:13px;letter-spacing:0;text-transform:none}

/* ---------- modals, toasts, notifications ---------- */
html.v2-b2 .modal-bg{background:rgba(6,6,6,.5)}
html.v2-b2 .modal{border-radius:16px;font-family:var(--sans)}
html.v2-b2 .modal h3{font-family:var(--serif);font-weight:500;font-size:24px;line-height:1.2}
html.v2-b2 .modal h3::after{content:"";display:block;width:28px;height:3px;border-radius:2px;background:var(--rr-rule);margin-top:10px}
html.v2-b2 .toast{border-radius:10px;font-weight:700;font-family:var(--sans)}
html.v2-b2:not([data-theme="dark"]) .toast:not(.err){background:#000000;color:#FFFFFF;box-shadow:var(--shadow-l)}
html.v2-b2 .bell{border-radius:10px;box-shadow:none;background:transparent}
html.v2-b2:not([data-theme="dark"]) .bell{border-color:transparent}
html.v2-b2 .bell:hover{background:var(--line2);border-color:transparent}
html.v2-b2 .bell i{border-color:var(--bg)}
html.v2-b2 .bell i{background:#00BF63;color:#000000}
html.v2-b2 .bellp{border-radius:12px;transform-origin:top right;animation-timing-function:cubic-bezier(.23,1,.32,1)}
html.v2-b2 .np.unread{background:var(--green-ss)}

/* ---------- page-specific leftovers ---------- */
/* chat (Messages, threads) */
html.v2-b2 .chat{border-radius:10px}
html.v2-b2:not([data-theme="dark"]) .chat{border-color:transparent}
html.v2-b2 .chat-li.on{background:var(--green-ss)}
html.v2-b2 .chat-li .count{background:#00BF63;color:#000000}
html.v2-b2 .msg{border-radius:12px 12px 12px 4px}
html.v2-b2 .msg.me{border-radius:12px 12px 4px 12px}
/* essays (student and parent Essays, staff Essay review) */
html.v2-b2 .pipe{border-radius:10px}
html.v2-b2 .pipe b{font-family:var(--serif);font-weight:500}
html.v2-b2 .pipe.on{border-color:#00BF63}
html.v2-b2 .essay-card:hover{border-color:#cfcdc4}
html.v2-b2 .editor{border-radius:10px}
html.v2-b2 .editor textarea{font-family:var(--serif)}
html.v2-b2 .ai-tag,html.v2-b2 .note-tag{color:var(--rr-green-text)}
/* North Star roadmap */
html.v2-b2 .yr.now::before{background:#00BF63;box-shadow:0 0 0 5px rgba(0,191,99,.22)}
html.v2-b2 .yr.now h4{color:var(--rr-green-text)}
html.v2-b2 .yr .t,html.v2-b2 .ns{font-family:var(--serif)}
/* college list */
html.v2-b2 .tier-h h3{font-family:var(--sans);font-weight:700}
html.v2-b2 .tier-likely h3,html.v2-b2 .tier-safety h3{color:var(--rr-green-text)}
/* meetings and booking */
html.v2-b2 .day,html.v2-b2 .slot,html.v2-b2 .date-tile{border-radius:10px}
html.v2-b2 .day b,html.v2-b2 .date-tile b{font-family:var(--serif);font-weight:500}
html.v2-b2 .slot.on{background:#00BF63;border-color:#00BF63;color:#000000}
html.v2-b2 .brief{border-radius:10px}
/* test prep */
html.v2-b2 .choice{border-radius:10px}
html.v2-b2 .choice.ok{border-color:#00BF63}
html.v2-b2 .choice.ok .L{background:#00BF63;border-color:#00BF63;color:#000000}
html.v2-b2 .qprog i.ok{background:#00BF63}
/* credits ring numbers, module tiles */
html.v2-b2 .ring .c b{font-family:var(--serif);font-weight:500}
html.v2-b2 .modc:hover .mplay{background:#00BF63;color:#000000}

@media (max-width:820px){
  html.v2-b2 #main .top h1{font-size:28px}
  html.v2-b2 .card-h h3,html.v2-b2 .card > h3{font-size:17px}
  /* polish (phone): the name column kept collapsing to one word per line; the table already scrolls sideways */
  html.v2-b2 .table td:first-child,html.v2-b2 .table th:first-child{min-width:150px}
  html.v2-b2 .btn.sm,html.v2-b2 .seg button{min-height:40px}
  html.v2-b2 .mobilebar #mnav{min-width:44px;min-height:44px}
  html.v2-b2 .stat{padding:14px 16px}
  /* tabs scroll sideways with no scrollbar: fade the right edge so the cut reads as "more", with room to scroll clear of it */
  html.v2-b2 .tabs{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);padding-right:28px}
}
/* break-ui: a long account name pushed the menu footer wider than the menu; long page titles squeezed the header buttons into a column */
html.v2-b2 .side-foot > *{min-width:0}
html.v2-b2 #main .top > .row{flex:none}

/* ---------- polish: small text, one focus ring, calm motion (portal-reading-room-polish) ---------- */
/* meta text was 10 to 11.5px; 12px is the floor */
html.v2-b2 .xs{font-size:12px}
html.v2-b2 .rolechip{font-size:12px;letter-spacing:.06em}
html.v2-b2 .av.sm{font-size:11.5px}
html.v2-b2 .pill.amber{color:#8A5300}
html.v2-b2[data-theme="dark"] .pill.amber{color:var(--amber)}
/* one focus ring for every control (links and buttons already had it above) */
html.v2-b2 .seg button:focus-visible,html.v2-b2 .check:focus-visible,html.v2-b2 .day:focus-visible,html.v2-b2 .slot:focus-visible,
html.v2-b2 .choice:focus-visible,html.v2-b2 .pipe:focus-visible,html.v2-b2 .bell:focus-visible,html.v2-b2 .np:focus-visible,
html.v2-b2 .li.click:focus-visible,html.v2-b2 .chat-li:focus-visible,html.v2-b2 .me:focus-visible,html.v2-b2 .essay-card:focus-visible{outline:2px solid var(--rr-focus);outline-offset:2px}
html.v2-b2 ::selection{background:#DBF6E9;color:#000000}
html.v2-b2 .table td{font-variant-numeric:tabular-nums}

/* Motion. Kept: button press (scale .97), toast, modal, bell panel, phone drawer, spinner, progress bar.
   Removed: the rise and stagger on every page (app.css .fadein; seen on every route change), the lift on essay
   cards and the grow on module play buttons (hover feedback is colour only). Easing: ease-out cubic-bezier(.23,1,.32,1)
   for things that appear, plain ease for colour. app.css's reduced-motion rule still turns all of it off. */
html.v2-b2 .fadein,html.v2-b2 .fadein > *{animation:none}
html.v2-b2 .essay-card{transition:border-color .15s ease}
html.v2-b2 .essay-card:hover{transform:none}
html.v2-b2 .mplay{transition:background-color .15s ease,color .15s ease}
html.v2-b2 .modc:hover .mplay{transform:translate(-50%,-50%)}
html.v2-b2 .check,html.v2-b2 .day{transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .1s cubic-bezier(.23,1,.32,1)}
html.v2-b2 .btn{transition:transform .14s cubic-bezier(.23,1,.32,1),background-color .15s ease,border-color .15s ease,color .15s ease}
html.v2-b2 .modal-bg{backdrop-filter:none;-webkit-backdrop-filter:none}
html.v2-b2 .modal{animation:pop .2s cubic-bezier(.23,1,.32,1)}
html.v2-b2 .toast{animation:pop .2s cubic-bezier(.23,1,.32,1)}
@media (max-width:820px){ html.v2-b2 .side{transition:transform .28s cubic-bezier(.32,.72,0,1)} }
@media (hover:hover) and (pointer:fine){
  html.v2-b2 .nav a,html.v2-b2 .tabs a,html.v2-b2 .li.click,html.v2-b2 .np,html.v2-b2 .chat-li,html.v2-b2 .me,
  html.v2-b2 .table tr.click td,html.v2-b2 .seg button,html.v2-b2 .bell{transition:background-color .15s ease,color .15s ease,border-color .15s ease}
}
/* touch: the faked hover after a tap kept the menu item gray (mobile.css resets it to Aayan's ink-menu colour) */
@media not all and (hover:hover) and (pointer:fine){
  html.v2-b2 .nav a:not(.on):hover{background:transparent;color:var(--side-muted)}
  html.v2-b2 .bell:hover{background:transparent}
}

