/* The kiosk readings (/kiosk/read/<date>-ido and -wedo, Sean 29 Oct): the I Do
 * passage, or the We Do reading with its Try Its beside each page. The HTML is
 * the course decks' own (exported by muggsofcompsci scripts/bench/export-readings.mjs),
 * so the class names are the decks'. Bench look: wall green, cream paper. */
@font-face { font-family: "Carey Type"; src: url("/fonts/carey-type-webfont.woff2") format("woff2"), url("/fonts/carey-type-webfont.woff") format("woff"); font-display: swap; }
:root { --wall: #1F3D2B; --cream: #F5F1E8; --paper: #F3EEE2; --ink: #1B1B1B; --hit: #D4A017; --copper: #C2622F; --green: #2E6B3F; --red: #a03a2a;
  --display: "Carey Type", Impact, Haettenschweiler, sans-serif; --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace; }
* { box-sizing: border-box; }
html { background: var(--wall); }
body.read { margin: 0; color: var(--ink); font-family: var(--body); font-size: 1.1rem; line-height: 1.6; overflow-x: hidden; }
.board { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.board img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.bench-back { position: fixed; top: 12px; right: 16px; z-index: 5; display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; line-height: 1.1; color: var(--ink); background: var(--cream); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: .6rem 1.1rem .5rem; text-decoration: none; }
body.read main { max-width: 1400px; margin: 0 auto; padding: 4.2rem 16px 6rem; display: grid; gap: 26px; }
.rkick { margin: 0; font-family: var(--mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hit); }

/* one reading page: the text, and on bench days its Try Its beside it */
.rpage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.rpage:has(> .rtry) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .rpage:has(> .rtry) { grid-template-columns: minmax(0, 1fr); } }
.rpage.solo { width: 100%; max-width: 900px; justify-self: center; }
.rtext, .rtry, body.read > main > .figure { background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 1.3rem 1.5rem 1.4rem; }
.rtry { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow-y: auto; }

.text-title { font-family: var(--display); font-weight: normal; text-transform: uppercase; font-size: 2rem; line-height: 1.05; margin: 0 0 .8rem; }
.rtext h3 { font-size: 1.25rem; line-height: 1.25; margin: 1.3rem 0 .4rem; }
.rtext p { margin: 0 0 .8rem; }
.pnum { display: inline-block; min-width: 1.6em; margin-right: .3em; font-family: var(--mono); font-size: .78rem; color: var(--copper); }
ol.steps { margin: 0 0 .8rem; padding-left: 1.6rem; }
.sources { font-size: .85rem; color: #5A5A52; border-top: 2px dashed #b9b2a2; padding-top: .6rem; margin-top: 1rem; }
pre.data, pre.sv-code { font-family: var(--mono); font-size: .95rem; line-height: 1.5; background: #FBF8F1; border: 2px solid var(--ink); padding: .7rem .9rem; overflow-x: auto; margin: 0 0 .9rem; white-space: pre; }
pre .ln { display: inline-block; width: 2.2em; color: #9a9384; user-select: none; }
details { margin: 0 0 .9rem; }
details > summary { cursor: pointer; font-weight: 700; color: var(--copper); }

/* figures */
.figure { margin: 0 0 1rem; }
.figure-art svg { width: 100%; height: auto; max-height: 70vh; display: block; }
figcaption { font-size: .92rem; font-style: italic; margin-top: .4rem; }

/* I Do questions beside the passage: to read and answer in the notebook, no checking (Sean, 29 Oct) */
ol.iq { margin: 0; padding-left: 1.5rem; }
ol.iq > li { border-top: 2px dashed #b9b2a2; padding: .7rem 0 .3rem; }
ol.iq > li:first-child { border-top: 0; padding-top: .2rem; }
ol.iq p { margin: 0 0 .4rem; font-weight: 700; }
ol.iq-ch { margin: 0 0 .3rem; padding-left: 1.6rem; }
ol.iq-ch li { margin: .15rem 0; }

/* Try Its: pick a choice; the right one turns green, a wrong one says why */
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin: 0 0 .2rem; }
.sv-desc, .orient { margin: 0 0 .8rem; font-size: .95rem; }
.sv-item { border-top: 2px dashed #b9b2a2; padding-top: .8rem; margin-top: .8rem; }
.sv-prompt { margin: 0 0 .5rem; }
.sv-label { font-weight: 700; margin-right: .2rem; }
.ti-choices { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: 8px; }
.ti-choice { width: 100%; text-align: left; min-height: 44px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: .45rem .8rem; cursor: pointer; }
.ti-choice.right { background: #cfe6c9; border-color: var(--green); }
.ti-choice.wrong { background: #f1d3cc; border-color: var(--red); text-decoration: line-through; }
.ti-say { min-height: 1.4em; margin: 0; font-size: .95rem; font-weight: 700; }
.ti-say.right { color: var(--green); }
.ti-say.wrong { color: var(--red); }

/* Practice day agenda (Sean, 29 Oct) */
.pday-note { background: #F5E3A6; border: 2px solid var(--ink); padding: .6rem .8rem; }
ol.pday { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 12px; }
.pday-go { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); text-decoration: none; background: var(--cream); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: .8rem 1rem; }
.pday-n { flex: none; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; background: var(--hit); border: 2px solid var(--ink); }
