/* THE THEME'S HAND CORRECTIONS (docs/THEME.md). web/theme-light.css is generated from app.css by tools/theme_gen.py and is never edited;
   what the generator cannot know is written here, by the page it fixes. Three kinds of rule:
     [both]   holds in the dark studio and on paper: a contrast failure tools/probe_contrast.py found in the look as shipped (Nov 9, 2026)
     [light]  under :root[data-theme="light"]: the designed part of the light look (the display cases, the troughs, the turned widgets)
     [dark]   under :root[data-theme="dark"]: rare
   The catcher is the judge: python3 tools/probe_contrast.py <base> <out> must end CONTRAST OK in both looks at both sizes. */

/* ── the switch itself: beside the speaker, the same quiet pill ─────────────────────────────────────────────────────────── */
.themebtn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-left:8px;padding:0;border-radius:999px;background:#0a111a;border:1px solid rgba(255,255,255,.12);color:var(--gold2);cursor:pointer}
.themebtn svg{width:17px;height:17px;fill:currentColor;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.themebtn .sun{display:none} .themebtn[aria-pressed="true"] .sun{display:inline} .themebtn[aria-pressed="true"] .moon{display:none}
.themebtn:hover{border-color:var(--gold)} .themebtn:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}
.themebtn[hidden]{display:none}
:root[data-theme="light"] .themebtn{background:#fff;border-color:rgba(22,19,13,.16);color:var(--gold2-ink)}
:root.theme-turning *,:root.theme-turning *::before,:root.theme-turning *::after{transition:none!important}   /* the turn is one frame, not three hundred fades */

/* ══ [both] THE 3's ROYAL BLUE ═══════════════════════════════════════════════════════════════════════════════════════════════
   #0469FF as small words on a dark panel reads 4.1:1, and black words on it read 4.45:1: both a hair under the bar, on every page that
   wears the Both hands door's colour or teaches the iii chord. The same hue, one step lighter (OKLCH lightness .57 → .66, #4d8eff), passes
   both ways. The token is lifted here; the copies web/stage.js writes inline (style="--c:#0469FF") are caught by their own text. */
:root{--n3:#4d8eff!important}
[style*="--c:#0469ff" i],[style*="--c: #0469ff" i]{--c:var(--n3)!important} [style*="--sc:#0469ff" i],[style*="--sc: #0469ff" i]{--sc:var(--n3)!important}
[style*="--tc:#0469ff" i],[style*="--tc: #0469ff" i]{--tc:var(--n3)!important} [style*="--lc1:#0469ff" i],[style*="--lc1: #0469ff" i]{--lc1:var(--n3)!important}
[style*="--dc:#0469ff" i],[style*="--dc: #0469ff" i]{--dc:var(--n3)!important} [style*="--fc:#0469ff" i],[style*="--fc: #0469ff" i]{--fc:var(--n3)!important}
[style*="--nc:#0469ff" i],[style*="--nc: #0469ff" i]{--nc:var(--n3)!important}

/* ══ [both] WRITING THAT WAS DIMMED UNTIL IT WAS BURIED ═══════════════════════════════════════════════════════════════════════
   A whole element faded with opacity takes its words under the bar with it. The wheel's far doors, a members' door, the footer's
   quiet lines: the words keep a colour that passes; what fades is the ornament (the dot, the notes, the discs' saturation). */
.hstage .chip.far,.hstage .chip.notes.far{opacity:1;color:var(--dim)} .hstage .chip.far .k,.hstage .chip.far .fn{opacity:.5}
a.hdoor.locked{opacity:1} a.hdoor.locked .ht,a.hdoor.locked .hm{color:var(--fog)} a.hdoor.locked .hk{opacity:.75}   /* a members' door: quieter words, never faded words */
footer .follow,footer .doors{opacity:1}
.road .cell.after{opacity:1} .road .cell.after b{opacity:.6}
:root[data-theme="dark"]{--grey:#878b91}                                 /* #6f7378 read 3.8:1 as the tuner's small print on a panel */
:root[data-theme="dark"] .shelfnote{color:#9a8f7a}
:root[data-theme="dark"] .lk-book p.bookhead{color:var(--fog);opacity:1}
:root[data-theme="dark"] :is(.hstage,.lk){--dim:#8298ae}                 /* #6E869E read 3.7:1 as an unlit beat of the count; one step up */
/* Meet LMG is a white page inside the dark studio: its footer wore the dark page's greys */
.lmgmain footer,.lmgmain footer a,.lmgmain footer .follow,.lmgmain footer .doors{color:#5d584e;opacity:1} .lmgmain footer a{border-bottom-color:rgba(22,19,13,.25)}

/* ══ [light] THE DISPLAY CASES: a guitar is a photograph on black, so its stage stays a black case set into the paper ═══════ */
:root[data-theme="light"] .hstage .stagebox{background:#000;border-radius:22px;overflow:hidden;box-shadow:0 18px 44px rgba(46,36,18,.16)}
:root[data-theme="light"] .lk-box{box-shadow:0 14px 36px rgba(46,36,18,.14)}
:root[data-theme="light"] :is(.with-band > .band,.bandstrip .band){border-radius:14px;overflow:hidden}
:root[data-theme="light"] .shelf .frame{box-shadow:0 26px 60px rgba(46,36,18,.26)} :root[data-theme="light"] .shelf .book.hero:hover .frame{box-shadow:0 30px 70px rgba(46,36,18,.32)}

/* ══ [light] THE TURNED WIDGETS: pictures the app draws in SVG for the black room (a chord box, the sheet strip, the tuner's road,
   the Book's clock): dark shapes with light numerals in them. Each is turned to paper whole (its dark becomes white, a numeral keeps
   its footing on its dot), the way My Studio's white sheet has been since 0.51. Not inside a display case: there the black room stands.
   A saturated colour does not move under the turn, so a COLOURED WORD in a turned widget is drawn in the colour whose turn is its deep
   ink (--<name>-turn, from tools/theme_gen.py). */
:root[data-theme="light"] :is(svg.diagram,svg.scoresvg,svg.staff,svg.staffstrip,svg.gauge,svg.overlap,svg.neck,svg.bk-clock,svg.bk-circle,svg.bk-neck,svg.bk-octave,svg.bk-ruler,svg.handsvg):not(:where(.gl,.stagebox,.lk-box,.byotplaycard,.dark-island) *){filter:invert(1) hue-rotate(180deg)}
:root[data-theme="light"] svg.diagram text.name{fill:var(--gold2-turn)}
:root[data-theme="light"] svg.diagram.n1 text.name{fill:var(--n1-turn)} :root[data-theme="light"] svg.diagram.n2 text.name{fill:var(--n2-turn)} :root[data-theme="light"] svg.diagram.n3 text.name{fill:var(--n3-turn)}
:root[data-theme="light"] svg.diagram.n4 text.name{fill:var(--n4-turn)} :root[data-theme="light"] svg.diagram.n5 text.name{fill:var(--n5-turn)} :root[data-theme="light"] svg.diagram.n6 text.name{fill:var(--n6-turn)}
:root[data-theme="light"] svg.diagram.n7 text.name{fill:var(--n7-turn)} :root[data-theme="light"] svg.diagram.nx text.name{fill:#f3f3f3}
:root[data-theme="light"] svg.gauge .end.lo{fill:var(--teal-turn)} :root[data-theme="light"] svg.gauge .end.hi{fill:var(--rose-turn)} :root[data-theme="light"] svg.gauge .end.mid{fill:var(--gold-turn)}
:root[data-theme="light"] :is(svg.diagram,svg.scoresvg) :is(text.oX,text.num,text.tag){fill:#d9d9d4}

/* ══ [light] THE HEADER, THE TROUGHS, THE SMALL THINGS ═══════════════════════════════════════════════════════════════════════ */
:root[data-theme="light"] header.top nav,:root[data-theme="light"] .pillgroup{background:#efece4;border-color:rgba(22,19,13,.08)}
:root[data-theme="light"] .hero-banner .chrome{background:linear-gradient(90deg,transparent,rgba(22,19,13,.22) 18%,rgba(22,19,13,.55) 50%,rgba(22,19,13,.22) 82%,transparent);box-shadow:none;height:1px}
:root[data-theme="light"] .road .cell.now b{text-shadow:none}
/* the consent line is styled inline by web/events.js for the black room */
:root[data-theme="light"] .consentbar{background:#fff!important;color:#16130d!important;border-color:#8f6718!important;box-shadow:0 10px 30px rgba(46,36,18,.18)}
/* Open the Book: a white face; the two-colour glow behind it a breath, not a haze */
:root[data-theme="light"] .openbook{background:#fff;color:var(--gold2-ink);border-color:rgba(138,90,0,.55)} :root[data-theme="light"] .openbook::before{opacity:.28} :root[data-theme="light"] .openbook:hover::before{opacity:.42}
/* a song card's chip sits on the reel's photograph */
:root[data-theme="light"] .ep.card .st{background:#fff;border-color:rgba(22,19,13,.18)}

/* ══ [both] NOTHING UNDER TWELVE ═══════════════════════════════════════════════════════════════════════════════════════════════
   Every rule of app.css that set writing under 12 px, re-stated at 12: the SAME selector (so a more specific rule that sets a bigger size
   still wins), found by tools/theme_small.py on every page state at both sizes. Re-run it after the stylesheet changes and replace this
   block. Left out on purpose, and on the allowlist with the reason: lettering inside a drawing (a chord box, the sheet, The Bar's map
   cells), the ™ set as a superscript, the hints painted on the shelf's wall. */
/* <small> */
.bearboard .b3{font-size:12px}   /* was 10 px: "THIS POSITION · FRET 1 · PAUSE" (lesson-staff) */
.bk-aside b{font-size:12px}   /* was 11.5 px: "Did you know" (lesson-book) */
.bk-cn{font-size:12px}   /* was 11.5 px: "I" (door-book, lesson-book, lesson-book-homes) */
.bk-law b{font-size:12px}   /* was 11.8 px: "The Least-Movement Law" (door-book, lesson-book-homes) */
.bk-nut b{font-size:12px}   /* was 11.8 px: "In a nutshell" (lesson-book, lesson-book-homes) */
.bk-tryhead b{font-size:12px}   /* was 9.6, 11.8 px: "You try it · 1" (door-book, lesson-book, lesson-book-homes) */
.byotprep .warmlegend{font-size:12px}   /* was 11.5 px: "the song's own" (studio-warm) */
.byotprep h4{font-size:12px}   /* was 11 px: "Step 1 · every place your fing" (studio-warm) */
.byotprep ol.hard li{font-size:12px}   /* was 11.2 px: "+3.35" (studio-warm) */
.cost{font-size:12px}   /* was 11.5 px: "easy" (studio-moves) */
.door .eyebrow{font-size:12px}   /* was 11 px: "the founders' rate" (founders) */
.dstat small{font-size:12px}   /* was 11 px: "the work for your hand" (studio-changes) */
.ep .new{font-size:12px}   /* was 9.5 px: "newest" (reel, songs) */
.ep .st{font-size:12px}   /* was 11 px: "free" (reel, songs) */
.eyebrow{font-size:12px}   /* was 11 px: "The Book" (course, door-book, fyi) */
.findrow .lbl{font-size:12px}   /* was 11 px: "Find" (studio-bar) */
.gmute{font-size:12px}   /* was 11.5 px: "mute" (door, door-book, door-shred) */
.hall-doors > .eyebrow{font-size:12px}   /* was 9.6, 11 px: "Behind this door · 8 lessons" (door, door-book, door-shred) */
.hcard .hl{font-size:12px}   /* was 10 px: "hold" (studio-bar, studio-changes, studio-moves) */
.hcard .hs{font-size:12px}   /* was 11 px: "bar 1 · 2 notes" (studio-bar, studio-changes, studio-moves) */
.hcard.compact.next .hn{font-size:12px}   /* was 11.5 px: "Shape at fret 2" (studio-bar, studio-changes, studio-moves) */
.holdgrid .stamptag{font-size:12px}   /* was 10.5 px: "Tab for Neil Martin on account" (studio-bar, studio-changes, studio-moves) */
.hstage .card .legend{font-size:12px}   /* was 11.8 px: "Numbered dots are fingers · a " (wheel-row) */
.hstage .card .who{font-size:12px}   /* was 11.2 px: "Door 1 of 7" (door, door-book, door-shred) */
.hstage .sub .num{font-size:12px}   /* was 11.5 px: "01" (door, door-book, door-shred) */
.hstage .wheelhint{font-size:12px}   /* was 11.2 px: "Scroll, or tap a door, to turn" (door, door-book, door-shred) */
.knownas small{font-size:12px}   /* was 10.5 px: "Known reads as" (studio-bar, studio-changes, studio-moves) */
.lanelbl{font-size:12px}   /* was 10 px: "The music · these two lines" (studio-bar, studio-changes, studio-moves) */
.lanelbl .tabhide{font-size:12px}   /* was 11 px: "Hide the cheat sheet" (studio-bar, studio-changes, studio-moves) */
.lensrow .lbl{font-size:12px}   /* was 11 px: "Color by" (studio-bar) */
.lk .lkmore .mb b{font-size:12px}   /* was 11.2 px: "Open the Book" (lesson-book-homes, lesson-notes, lesson-rest) */
.lk-card .k{font-size:12px}   /* was 11.2 px: "Step 1 of 5" (lesson-book, lesson-book-homes, lesson-chords) */
.lk-card .now .yt{font-size:12px}   /* was 10.6 px: "Your turn" (lesson-book, lesson-book-homes, lesson-chords) */
.lk-ctl .chordsbtn{font-size:12px}   /* was 11.2 px: "Hide chords" (lesson-tiles, studies-homes) */
.lk-ctl .seekhead .again{font-size:12px}   /* was 11.8 px: "Start over" (lesson-notes, lesson-staff, lesson-tiles) */
.lk-ctl .seekrow .lbl{font-size:12px}   /* was 11.2 px: "Loop" (lesson-tiles, studies-homes) */
.lk-ctl .tempo button{font-size:12px}   /* was 11.5 px: "slowest" (lesson-notes, lesson-staff, lesson-tiles) */
.lk-howto b{font-size:12px}   /* was 10 px: "How it works" (lesson-notes, lesson-staff, lesson-tiles) */
.lk-howyou > b, .lk-readguitar > b{font-size:12px}   /* was 10 px: "How you do it" (lesson-chords, lesson-notes, lesson-tiles) */
.lk-readguitar .fdot{font-size:12px}   /* was 11.5 px: "1" (lesson-chords, lesson-tiles) */
.lk-restb .ic{font-size:12px}   /* was 9.6 px: "❚❚" (lesson-chords, lesson-notes, lesson-staff) */
.lk-top .eyebrow{font-size:12px}   /* was 11 px: "Door 03 · fret 3 · 8 lessons ·" (door, door-book, door-shred) */
.lk.lk-rest .lk-showme .pl{font-size:12px}   /* was 11.5 px: "▶" (lesson-book, lesson-book-homes) */
.mapstrip .mslens{font-size:12px}   /* was 11 px: "tap a part to loop it" (studio-bar, studio-changes, studio-moves) */
.newpanel .nk, .newcard .nk{font-size:12px}   /* was 10.5 px: "What's new" (new-panel, studio-moves, studio-warm) */
.pegs .str .hint{font-size:12px}   /* was 10 px: "thickest" (tuner, tuner-tray) */
.pegs .str .n{font-size:12px}   /* was 10.5 px: "6" (tuner, tuner-tray) */
.penbar .vlbl{font-size:12px}   /* was 11 px: "Highlighters" (studio-bar, studio-changes, studio-moves) */
.road .cell small{font-size:12px}   /* was 10 px: "Now" (lesson-tiles) */
.sbshead b{font-size:12px}   /* was 11 px: "Side by side" (studio-changes) */
.sbsrow small{font-size:12px}   /* was 11 px: "As the tab wrote it" (studio-changes) */
.scorectl .vlbl{font-size:12px}   /* was 10 px: "Look ahead" (lesson-notes, lesson-staff, lesson-tiles) */
.secrow .sec small{font-size:12px}   /* was 11 px: "1–4 · single notes near the nu" (studio-bar) */
.shelf .studio .eyebrow{font-size:12px}   /* was 10 px: "a room, open" (shelf, shelf-first) */
.songcard .eyebrow, .tray .eyebrow, .picks .eyebrow{font-size:12px}   /* was 10 px: "Pick a study" (studies, studies-homes, studies-notes) */
.studycard .ctlrow .tempo button{font-size:12px}   /* was 11.5 px: "slowest" (studies-homes) */
.studycard .nums span{font-size:12px}   /* was 11 px: "total · the whole run's work" (studies) */
.studycard .pillrow .lbl{font-size:12px}   /* was 11 px: "Run" (studies, studies-homes) */
.syllabus .gate{font-size:12px}   /* was 10 px: "free" (course) */
.viewbar .vlbl{font-size:12px}   /* was 10.5 px: "Show" (studio-bar, studio-changes, studio-moves) */
.wheretabs .wt-h{font-size:12px}   /* was 11.2 px: "Free, and yours to use" (studio) */
a.ep.card .cap .who{font-size:12px}   /* was 11 px: "I – V – vi – IV" (reel, songs) */
a.hdoor .hnums i{font-size:12px}   /* was 9.6, 11.5 px: "I" (door, door-book, door-start) */
button.pill small{font-size:12px}   /* was 9.5 px: "The scales" (studies, studies-homes, studies-notes) */
header.top .listenbtn small{font-size:12px}   /* was 9.9 px: "lab" (course, door, door-book) */
header.top .notecount{font-size:12px}   /* was 10.9 px: "of 593 notes" (course, door, door-book) */
header.top .speaker .hint{font-size:12px}   /* was 11 px: "tap once to hear" (course, door, door-book) */
main.c2 .base .doorline{font-size:12px}   /* was 11 px: "There's more behind the door." (new-panel, nowhere, wheel) */
main.c2 .base .gname button.another{font-size:12px}   /* was 11.2 px: "another →" (new-panel, nowhere, wheel) */
main.c2 .hero-banner .eyebrow{font-size:12px}   /* was 11 px: "Struck Match Studio™ · Numbers" (new-panel, nowhere, wheel) */
@media (max-width: 699px){
 .tablegend{font-size:12px}   /* was 11 px: "a finger held down" (studio-bar, studio-changes, studio-moves) */
 main.c2 .hero-banner .eyebrow{font-size:12px}   /* was 9 px: "Struck Match Studio™ · Numbers" (new-panel, nowhere, wheel) */
}
/* </small> */
/* the banner's eyebrow at 12 px keeps its line on a phone by giving up letter-spacing, not size */
@media (max-width: 699px){ main.c2 .hero-banner .eyebrow{letter-spacing:.12em} .hall-doors > .eyebrow,.lk-top .eyebrow{letter-spacing:.14em} }
.lk-card .sub .t::after,.hstage .sub.here .t::after{font-size:12px}
header.top .notecount small{font-size:12px}
