/* Hartwell 1972 · main-frame tone. Loaded after the shared tone styles, only for game "school".
   Scope: .pxs-explore[data-game=school] and .cb-root[data-game=school] only.
   Feel: a school casebook / social calendar — ruled margins, numbered entries, quiet type.
   Uses the shared semantic vars (--ex-panel/line/accent/fg/muted/key); no new fonts, assets or libs. */

/* ---- workspace frame: a notebook page with a left margin rule ---- */
.pxs-explore[data-game=school] .pxs-main-workspace{
  background:var(--ex-panel);
  background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,color-mix(in srgb,var(--ex-line) 12%,transparent) 31px,color-mix(in srgb,var(--ex-line) 12%,transparent) 32px);
  background-attachment:local}
.pxs-explore[data-game=school] .pxs-workspace-head{
  position:sticky;top:0;z-index:2;
  padding:8px 12px 8px 20px;
  background:var(--ex-panel);
  border-bottom:2px solid var(--ex-line);
  box-shadow:inset 12px 0 0 -10px var(--ex-line)}
.pxs-explore[data-game=school] .pxs-workspace-body{
  padding:12px 12px 20px 20px;
  box-shadow:inset 12px 0 0 -10px var(--ex-line)}

/* ---- activity overview: casebook entry ---- */
.pxs-explore[data-game=school] .world-flow-school{
  display:flex;flex-direction:column;gap:12px;max-width:62ch;margin:0}
.pxs-explore[data-game=school] .world-flow-heading{
  margin:0;font:16px/1.4 var(--px,ui-monospace,monospace);color:var(--ex-accent);
  letter-spacing:.02em;overflow-wrap:anywhere}
.pxs-explore[data-game=school] .world-flow-heading::before{
  content:'§ ';color:var(--ex-muted)}
.pxs-explore[data-game=school] .world-flow-subtitle{
  margin:0;font-size:16px;line-height:1.6;color:var(--ex-muted);overflow-wrap:anywhere}

/* steps as a numbered ledger with a dotted leader, one line of rhythm each */
.pxs-explore[data-game=school] .world-flow-steps{
  margin:0;padding:0 0 0 2.2em;list-style:decimal-leading-zero;
  color:var(--ex-fg);font-size:16px;line-height:1.6}
.pxs-explore[data-game=school] .world-flow-steps li{
  padding:4px 0 4px 6px;border-bottom:1px dotted var(--ex-line);overflow-wrap:anywhere}
.pxs-explore[data-game=school] .world-flow-steps li::marker{color:var(--ex-muted)}
.pxs-explore[data-game=school] .world-flow-steps li:last-child{border-bottom:0}

/* ---- choices: a two-column calendar of entries, featured one spans the row ---- */
.pxs-explore[data-game=school] .world-flow-school .map-choice-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 0;padding:0}
.pxs-explore[data-game=school] .world-flow-school .map-choice{
  display:flex;flex-direction:column;align-items:flex-start;gap:4px;
  min-height:44px;margin:0;padding:10px 12px 10px 14px;text-align:left;
  font:16px/1.4 var(--px,ui-monospace,monospace);color:var(--ex-fg);
  background:var(--ex-key);border:0;border-left:3px solid var(--ex-line);border-radius:0;cursor:pointer}
.pxs-explore[data-game=school] .world-flow-school .map-choice:hover,
.pxs-explore[data-game=school] .world-flow-school .map-choice:focus-visible{
  border-left-color:var(--ex-accent);background:color-mix(in srgb,var(--ex-key) 80%,var(--ex-line))}
.pxs-explore[data-game=school] .world-flow-school .map-choice:focus-visible{
  outline:3px solid var(--ex-fg);outline-offset:2px}
.pxs-explore[data-game=school] .world-flow-school .map-choice:disabled{
  color:var(--ex-muted);border-left-style:dotted;cursor:not-allowed}
.pxs-explore[data-game=school] .world-flow-school .map-choice-title{
  display:block;color:var(--ex-accent);overflow-wrap:anywhere}
.pxs-explore[data-game=school] .world-flow-school .map-choice-desc{
  display:block;font-size:14px;line-height:1.5;color:var(--ex-muted);overflow-wrap:anywhere}

/* the one featured entry: full width, solid rule, title in page ink — a pinned notice, not a glow */
.pxs-explore[data-game=school] .world-flow-school .map-choice.is-featured{
  grid-column:1 / -1;padding:12px 14px 12px 16px;
  background:var(--ex-panel);border:2px solid var(--ex-line);border-left-width:6px}
.pxs-explore[data-game=school] .world-flow-school .map-choice.is-featured .map-choice-title{
  font-size:18px;line-height:1.3}
.pxs-explore[data-game=school] .world-flow-school .map-choice.is-featured .map-choice-title::after{
  content:' ✎';color:var(--ex-muted);font-size:14px}
.pxs-explore[data-game=school] .world-flow-school .map-choice.is-featured .map-choice-desc{
  color:var(--ex-fg)}

/* ---- deduction board: same notebook rhythm on the shared clue-board root ---- */
.cb-root[data-game=school]{
  background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,color-mix(in srgb,var(--ex-line,#8a6a2c) 22%,transparent) 31px,color-mix(in srgb,var(--ex-line,#8a6a2c) 22%,transparent) 32px)}
.cb-root[data-game=school] h2,
.cb-root[data-game=school] h3{letter-spacing:.02em}
.cb-root[data-game=school] .cb-recipe{
  border:0;border-left:3px solid var(--ex-line,#8a6a2c);border-radius:0}
.cb-root[data-game=school] .cb-recipe[aria-checked=true]{border-left-color:var(--ex-accent,#ffc46a);border-left-width:6px}
.cb-root[data-game=school] .cb-next{
  padding-left:10px;border-left:2px dotted var(--ex-line,#8a6a2c);color:var(--ex-fg,#f0e6cc)}
.cb-root[data-game=school] .cb-req-group-personal,
.cb-root[data-game=school] .cb-req-group-server{
  padding-left:10px;border-left:1px dotted var(--ex-line,#8a6a2c)}
.cb-root[data-game=school] details.cb-description,
.cb-root[data-game=school] details.cb-more{border-style:dotted}

/* ---- breakpoints ---- */
@media (max-width:560px){
  .pxs-explore[data-game=school] .pxs-workspace-head{padding-left:14px;box-shadow:inset 8px 0 0 -6px var(--ex-line)}
  .pxs-explore[data-game=school] .pxs-workspace-body{padding-left:14px;box-shadow:inset 8px 0 0 -6px var(--ex-line)}
  .pxs-explore[data-game=school] .world-flow-school .map-choice-actions{grid-template-columns:minmax(0,1fr)}
  .pxs-explore[data-game=school] .world-flow-steps{padding-left:2em}
}
@media (max-width:300px){
  .pxs-explore[data-game=school] .world-flow-school .map-choice{padding:8px 10px}
  .pxs-explore[data-game=school] .world-flow-school .map-choice.is-featured{border-left-width:4px}
}
@media (prefers-reduced-motion:no-preference){
  .pxs-explore[data-game=school] .world-flow-school .map-choice{transition:border-color .12s linear,background-color .12s linear}
}
@media (prefers-reduced-motion:reduce){
  .pxs-explore[data-game=school] .world-flow-school .map-choice{transition:none}
}
/* ==== 2026-11-20 HUD pass: dark oak panels, brass accents; the place map is an ink plan on parchment ==== */
.pxs-explore[data-game=school]{--ex-panel:#211a13;--ex-key:#2e241a;--ex-line:#8c7648;--ex-accent:#dcb96e;--ex-fg:#efe6d2;--ex-muted:#c6b897;--hud-on-accent:#1b140b;
  --map-paper:#dccfa9;--map-paper-2:#cdbd8f;--map-floor:#efe5c6;--map-room:#e9dfbf;--map-ink:#2b2117;--map-ink-2:#5a4a33;--map-mark:#8a2c1c;--map-on-mark:#fbf3df}
.pxs-explore[data-game=school] .pxs-map-kicker{font-variant-numeric:oldstyle-nums}
.pxs-explore[data-game=school] .pxs-map-room:not([data-side=hub])::before{content:'';position:absolute;inset:3px;border:1px solid color-mix(in srgb,var(--map-ink) 35%,transparent);pointer-events:none}
