/* Academy song-selection lab (2026-09-23): five concepts for making "which piece
   will this pupil enjoy" readable at a glance, and course planning a small
   strategy game. Its own file, per the rule. Shares the One Room lab's look. */
:root {
  --bg: #15171c; --bg2: #1d2027; --bg3: #262a33; --line: #343945;
  --ink: #ecebe4; --dim: #a7aab4; --soft: #c9c6bb;
  --gold: #e2b452; --gold2: #f0cf85; --red: #c9534a; --green: #63b47a; --blue: #6ea8e0; --amber: #e0a13a;
  --paper: #f5efe0; --paperink: #2b2419;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.5 -apple-system, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--gold2); }
h1, h2, h3, h4 { font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 .7em; }
code { color: var(--gold2); font-size: 13px; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 20px 80px; }

.mast { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.mast h1 { font-size: 30px; color: var(--gold2); }
.mast .sub { color: var(--dim); }
.mast .links { margin-left: auto; display: flex; gap: 14px; font-size: 14px; }
.mast .links a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.mast .links a:hover { border-color: var(--gold); }

.brief { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin: 18px 0; }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card h2 { font-size: 20px; margin-bottom: 8px; color: var(--gold2); }
.card h3 { font-size: 16px; margin: 12px 0 4px; }
.card ul, .card ol { margin: 0 0 8px; padding-left: 20px; }
.card li { margin: 3px 0; }
.quote { color: var(--soft); font-style: italic; }
.num { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.num div { background: var(--bg3); border-radius: 10px; padding: 8px 12px; min-width: 130px; flex: 1; }
.num b { display: block; font-size: 22px; color: var(--gold2); font-variant-numeric: tabular-nums; }
.num span { font-size: 12.5px; color: var(--dim); }
.rule { background: #2a2416; border: 1px solid #5a4a1e; border-radius: 10px; padding: 10px 12px; color: var(--gold2); }

/* the model the game already runs: the faces and what they mean */
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.faces div { background: var(--bg3); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--soft); }
.faces b { display: block; font-size: 26px; line-height: 1.2; }
.faces i { font-style: normal; color: var(--dim); display: block; font-size: 12px; }

/* the class strip: the eight pupil types with their portraits */
.class { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 6px; }
.pupil { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start; background: var(--bg3); border-radius: 10px; padding: 7px 9px; }
.pupil img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; }
.pupil b { display: block; font-size: 14px; color: var(--gold2); }
.pupil span { display: block; font-size: 12.5px; color: var(--soft); line-height: 1.3; }
.pupil i { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }

/* today */
.today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
@media (max-width: 900px) { .today { grid-template-columns: 1fr; } }
.today figure { margin: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.today img { display: block; width: 100%; height: auto; }
.today figcaption { padding: 8px 12px; font-size: 13.5px; color: var(--soft); }
.today figcaption b { color: var(--gold2); }

/* concept nav */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; background: linear-gradient(var(--bg) 85%, transparent); }
.tabs a { text-decoration: none; color: var(--soft); background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.tabs a b { color: var(--gold2); margin-right: 5px; }
.tabs a:hover { border-color: var(--gold); }

/* one concept */
.concept { margin: 26px 0 40px; border-top: 1px solid var(--line); padding-top: 18px; scroll-margin-top: 60px; }
.concept .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 8px; }
.concept .head h2 { font-size: 28px; }
.concept .head .letter { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #2a2010; font: 700 22px/1 Georgia, serif; }
.concept .head .names { color: var(--dim); font-size: 14px; }
.concept .head .names b { color: var(--soft); }
.concept .pitch { font-size: 17px; color: var(--soft); max-width: 1000px; margin-bottom: 12px; }
.concept .onerule { display: inline-block; background: #2a2416; border: 1px solid #5a4a1e; border-radius: 999px; padding: 6px 14px; color: var(--gold2); font-weight: 700; margin-bottom: 12px; }

.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .figs { grid-template-columns: 1fr; } }
.figure { display: flex; flex-direction: column; background: var(--bg2); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.figure img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.figure .cap { flex: 1; padding: 8px 12px; font-size: 13.5px; color: var(--soft); background: var(--bg2); }
.figure .cap b { color: var(--gold2); }
.figure .missing { aspect-ratio: 3 / 2; display: grid; place-items: center; color: #777; background: #222; font-size: 14px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 980px) { .grid3 { grid-template-columns: 1fr; } }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
.card.pick h3, .card.plan h3, .card.strat h3 { margin-top: 0; color: var(--gold2); }
.card.easy h3 { margin-top: 0; color: var(--green); }
.card.hidden h3 { margin-top: 0; color: var(--blue); }
.pros h3 { color: var(--green); } .cons h3 { color: var(--red); }
.card.pros h3, .card.cons h3 { margin-top: 0; }
.card p, .card li { font-size: 14.5px; color: var(--soft); }
.build { font-size: 14px; color: var(--soft); margin-top: 12px; }
.build b { color: var(--gold2); }
.build code { color: var(--gold2); }
.verdict { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--dim); }
.verdict a { text-decoration: none; background: var(--gold); color: #2a2010; font-weight: 700; padding: 7px 14px; border-radius: 999px; }

/* shared sections */
.section { margin: 34px 0; border-top: 1px solid var(--line); padding-top: 18px; }
.section h2 { font-size: 26px; color: var(--gold2); margin-bottom: 10px; }
.section > p { color: var(--soft); max-width: 1000px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
table.cmp th { color: var(--dim); font-weight: 600; }
table.cmp td:first-child { white-space: nowrap; color: var(--gold2); }
table.cmp .ok { color: var(--green); font-weight: 700; } table.cmp .meh { color: var(--amber); font-weight: 700; } table.cmp .no { color: var(--red); font-weight: 700; }
.reco { background: #22261c; border: 1px solid #45532c; }
.reco h2 { color: #cfe3a3; }
.reco p { color: var(--soft); }
.foot { margin-top: 40px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* lightbox */
.lb { position: fixed; inset: 0; background: #000d; display: none; place-items: center; z-index: 50; cursor: zoom-out; padding: 20px; }
.lb.on { display: grid; }
.lb img { max-width: 100%; max-height: 92vh; border-radius: 8px; }
.lb span { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: var(--soft); font-size: 14px; }
