/* v2 portal-walkthrough. Option B, Reading room (Shinwoo picked B on Nov 14).
   Brand colors sampled from the banner: ink #000000, green #00BF63, paper #FFFFFF. #00BF63 is never small text on
   white; on a green fill the text is black. The older portal green (#55A882) is not used in the restyled homes.
   Fonts: Literata (headings and names), Atkinson Hyperlegible Next (interface). Panels are soft white on #F4F3EF, with a
   short green rule under section titles and a bookmark ribbon on the current menu item.
   Part 1: the walkthrough chrome (only on the page while a tour is open; every node is removed when it ends). Since
   portal-walkthrough-fix1 the tours are for students and counselors only; motion comes from the vendored Motion build.
   Part 2: the menu, phone bar and logo, and the role homes (html.v2-b2, set by v2/reading-room.js). Since
   portal-reading-room-all (Nov 15) every role is on it (student, parent, counselor, SSC, owner) and every other page
   gets the shared building blocks from v2/reading-room.css. */

/* ================= Part 1: walkthrough chrome ================= */
/* Since portal-product-tour the tour chrome (panel, dim, ring, welcome, closing, Help menu) lives in v2/product-tour.css. */
/* Reduced motion: nothing moves. The JS starts no animation either; this also stops the button color fade. */
@media (prefers-reduced-motion: reduce){
  .v2-wt,.v2-wt *{animation:none!important;transition:none!important}
}

/* ================= Part 2: Reading room menu and role homes (all five roles) ================= */
/* Menu and phone bar follow the B2 mockup: white ground with the light logo (black word) in the light theme,
   ink ground with the dark logo (white word) in the dark theme. Logo files are the approved brand files, not redrawn. */
html.v2-b2{--side:#FFFFFF;--side2:#F7F7F5;--side-ink:#000000;--side-muted:#55555c}
html.v2-b2[data-theme="dark"]{--side:#000000;--side2:#161616;--side-ink:#F7F7F5;--side-muted:#A3A3A3}
html.v2-b2 .side,html.v2-b2 .mobilebar{font-family:"Atkinson Hyperlegible Next","Atkinson Hyperlegible",var(--sans);background:var(--side);color:var(--side-ink)}
html.v2-b2:not([data-theme="dark"]) .side{border-right:1px solid #e6e5df}
html.v2-b2:not([data-theme="dark"]) .mobilebar{border-bottom:1px solid #e6e5df}
html.v2-b2 .mobilebar #mnav{color:var(--side-ink)!important}
html.v2-b2 .side-foot{border-top-color:#e6e5df}
html.v2-b2[data-theme="dark"] .side-foot{border-top-color:#222228}
.v2-b2-logo{display:block;height:32px;width:auto;max-width:170px}
.v2-b2-logo-on-dark{display:none}
html.v2-b2[data-theme="dark"] .v2-b2-logo-on-light{display:none}
html.v2-b2[data-theme="dark"] .v2-b2-logo-on-dark{display:block}
.side .logo[data-v2-b2-logo]{flex-direction:column;align-items:flex-start;gap:10px;padding:10px 12px 26px}
.v2-b2-logo-sub,.logo .v2-b2-logo-sub{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--side-muted,#A3A3A3);font-weight:700}
/* fix1: students keep Aayan's ink menu and phone bar, so they always get the dark file (white word). */
html.v2-logo-ink .v2-b2-logo-on-light{display:none}
html.v2-logo-ink .v2-b2-logo-on-dark{display:block}
.mobilebar .logo[data-v2-b2-logo] .v2-b2-logo{height:26px}
html.v2-b2 .nav a{font-weight:500;color:var(--side-muted);min-height:44px;box-sizing:border-box;padding-left:34px}
html.v2-b2 .nav a:hover{background:var(--side2);color:var(--side-ink)}
html.v2-b2 .nav a.on{background:#DBF6E9;color:#000000;font-weight:700}
html.v2-b2[data-theme="dark"] .nav a.on{background:#161616;color:#FFFFFF}
/* Bookmark ribbon (as in the mockup): sits inside the current item at its left, centered, notched at the bottom. */
html.v2-b2 .nav a.on::before{left:12px;top:50%;bottom:auto;width:10px;height:16px;margin-top:-8px;border-radius:0;background:#00BF63;
  clip-path:polygon(0 0,100% 0,100% 100%,50% 72%,0 100%)}
html.v2-b2 .nav .count{background:#00BF63;color:#000}
html.v2-b2 .me:hover{background:var(--side2)}
html.v2-b2 .rolechip{color:var(--side-muted)}

#main.v2-b2-home{--green:#00BF63;font-family:"Atkinson Hyperlegible Next","Atkinson Hyperlegible",var(--sans);font-size:15px}
:root:not([data-theme="dark"]) #main.v2-b2-home{--green-d:#00703A;--green-s:#E2F6EB;--green-ss:#F1FAF5;--line:#E9E7E0;--muted:#55555c}
#main.v2-b2-home > .top h1,#main.v2-b2-home [data-v2-home-heading]{font-family:"Literata",Georgia,serif!important;font-weight:500!important;font-size:34px!important;letter-spacing:-.015em;line-height:1.12}
#main.v2-b2-home > .top h1::after,#main.v2-b2-home [data-v2-home-heading]::after{content:"";display:block;width:36px;height:3px;border-radius:2px;background:#00BF63;margin-top:12px}
#main.v2-b2-home .top .sub{font-size:15px;margin-top:10px;max-width:72ch}
#main.v2-b2-home [data-v2-home] .card{border-radius:10px;border:0;padding:24px 28px 16px;background:var(--card);
  box-shadow:0 1px 2px rgba(0,0,0,.05),0 6px 18px -10px rgba(0,0,0,.14)}
:root[data-theme="dark"] #main.v2-b2-home [data-v2-home] .card{border:1px solid var(--line)}
#main.v2-b2-home [data-v2-home] .card-h{align-items:flex-start}
#main.v2-b2-home [data-v2-home] .card-h h3{font-family:"Literata",Georgia,serif;font-weight:600;font-size:20px;letter-spacing:-.01em;line-height:1.25}
#main.v2-b2-home [data-v2-home] .card-h h3::after{content:"";display:block;width:28px;height:3px;border-radius:2px;background:#00BF63;margin-top:8px}
#main.v2-b2-home [data-v2-home] .card.stat .k{font-weight:700;letter-spacing:.02em}
#main.v2-b2-home [data-v2-home] .card.stat .v{font-family:"Literata",Georgia,serif;font-weight:500}
#main.v2-b2-home [data-v2-home] a:not(.btn){text-decoration-color:#00BF63;text-decoration-thickness:2px;text-underline-offset:.22em}
#main.v2-b2-home [data-v2-home] a:not(.btn) b{font-family:"Literata",Georgia,serif;font-weight:600}
#main.v2-b2-home [data-v2-home] .btn{font-weight:700}
#main.v2-b2-home [data-v2-home] .btn.pri,#main.v2-b2-home [data-v2-home] .btn.green{background:#00BF63;border-color:#00BF63;color:#000}
#main.v2-b2-home [data-v2-home] .btn.pri:hover,#main.v2-b2-home [data-v2-home] .btn.green:hover{background:#00AD5A;border-color:#00AD5A;filter:none}
:root:not([data-theme="dark"]) #main.v2-b2-home [data-v2-home] .pill.green{background:#E2F6EB;color:#000}
#main.v2-b2-home [data-v2-home] .hero{background:#000;border-color:#000}
#main.v2-b2-home [data-v2-home] .hero{border-radius:10px}
#main.v2-b2-home [data-v2-home] .hero::before,#main.v2-b2-home [data-v2-home] .hero::after{display:none}
#main.v2-b2-home [data-v2-home] .hero h2{font-family:"Literata",Georgia,serif;font-weight:400;font-size:30px}
@media (max-width:820px){
  #main.v2-b2-home > .top h1,#main.v2-b2-home [data-v2-home-heading]{font-size:28px!important}
  #main.v2-b2-home [data-v2-home] .card{padding:16px 16px}
  #main.v2-b2-home [data-v2-home] .hero h2{font-size:24px}
}
