/* MuggsTech: MuggsOfDreams, turned into a workbench. Same wall green, cream
   and gold, same hand-lettered Carey Type and hard shadows; the 7th Ward
   street map becomes a circuit board whose silkscreen names the streets, and
   the coin becomes a chip. Long reading (lesson plans, lab sheets) sits on
   cream paper in a plain, very readable face. */
@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; --deep: #0D2818; --cream: #F5F1E8; --paper: #F3EEE2; --ink: #1B1B1B; --hit: #D4A017; --copper: #C2622F; --muted: #5A5A52;
  --display: "Carey Type", Impact, Haettenschweiler, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--wall); }
body { margin: 0; color: var(--cream); font-family: var(--body); font-size: 1.05rem; line-height: 1.55; overflow-x: hidden; }
a { color: var(--hit); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--hit); outline-offset: 3px; }
[hidden] { display: none !important; }

.board { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.board img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
body.is-paper .board img { opacity: .3; }

/* marquee + nav, as on MuggsOfDreams */
.marquee { overflow: hidden; background: var(--deep); border-bottom: 2px solid var(--ink); padding: .55rem 0; }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 50s linear infinite; font-family: var(--display); text-transform: uppercase; letter-spacing: .3em; font-size: 1rem; }
.marquee-track span { padding: 0 1.1rem; }
.marquee-track i { color: var(--hit); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.nav { display: flex; justify-content: center; flex-wrap: wrap; background: var(--cream); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.nav a { font-family: var(--display); text-transform: uppercase; color: var(--ink); text-decoration: none; padding: .95rem 1.1rem .85rem; font-size: .92rem; letter-spacing: .06em; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--copper); }
.nav a[aria-current="page"] { color: var(--copper); border-bottom-color: var(--hit); }

main { max-width: 1060px; margin: 0 auto; padding: 0 16px 3rem; }

/* hero */
.hero { text-align: center; padding: 2rem 0 1rem; }
.poster { max-width: 560px; margin: 0 auto; background: var(--hit); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.45); transform: rotate(-.8deg); padding: .8rem 1rem 1rem; }
.kicker { display: inline-block; background: var(--ink); color: var(--hit); font-family: var(--display); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; padding: .25rem .65rem .2rem; }
.poster-big { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 5vw, 2.4rem); line-height: 1; margin: .35em 0 0; }
.poster-line { font-family: var(--display); text-transform: uppercase; font-size: clamp(.9rem, 2.8vw, 1.1rem); margin: .5em 0 0; }
.title-row { display: flex; justify-content: center; align-items: center; gap: clamp(.5rem, 3vw, 2rem); margin-top: 2.2rem; flex-wrap: wrap; }
h1 { font-family: var(--display); text-transform: uppercase; font-weight: normal; color: var(--cream); font-size: clamp(3.4rem, 13vw, 8rem); line-height: .86; margin: 0; transform: rotate(-2deg); filter: url(#rough); text-shadow: 0 0 22px rgba(0,0,0,.5); }
.chip { width: clamp(96px, 16vw, 150px); height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); transform: rotate(6deg); }
.creed { max-width: 24ch; margin: 1.8rem auto 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.15rem, 2.8vw, 1.7rem); line-height: 1.25; transform: rotate(-.7deg); text-wrap: balance; }
.subcreed { max-width: 40ch; margin: 1rem auto 0; font-size: 1.1rem; opacity: .95; }
.subcreed b { color: var(--hit); }
.bench-card .btn { color: var(--ink); }
.creed b { display: block; font-weight: normal; color: var(--hit); margin-top: .35em; }

/* section heads: a gold label slapped on the wall */
.block { margin-top: clamp(2.5rem, 7vw, 4.5rem); }
.stamp { display: inline-block; font-family: var(--display); font-weight: normal; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.3rem, 3.5vw, 1.8rem); background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: .35rem .9rem .25rem; transform: rotate(-1.2deg); margin: 0 0 1.4rem; }
.lede { font-size: 1.15rem; max-width: 60ch; }
.tag { display: inline-block; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hit); }
.tag a { color: inherit; }
.fine { font-size: .82rem; opacity: .8; }

/* sequence */
.seq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.arrow { align-self: center; font-family: var(--display); font-size: 3rem; color: var(--hit); }
.course-card, .daycard a { display: flex; flex-direction: column; gap: .5rem; background: var(--paper); color: var(--ink); text-decoration: none; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 1.1rem 1.2rem 1.2rem; transition: transform .15s, box-shadow .15s; }
.course-card:hover, .daycard a:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.course-card .tag, .daycard .tag, .paper .tag, .note-card .tag { color: var(--copper); }
.course-card h3, .daycard h3 { font-family: var(--display); font-weight: normal; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin: 0; }
.course-card p, .daycard p { margin: 0; }
.cert { margin-top: auto; align-self: flex-start; font-family: var(--mono); font-size: .78rem; background: var(--ink); color: var(--hit); padding: .25rem .55rem; }
.cert.big { font-size: .95rem; }
.cert small { color: var(--cream); font-size: .75rem; margin-left: .3rem; }

.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.how li { background: var(--deep); border: 2px solid var(--cream); padding: 1rem 1.1rem; }
.how .n, .units .n { font-family: var(--display); color: var(--hit); font-size: 2rem; line-height: 1; }
.how h3, .units h3 { font-family: var(--display); font-weight: normal; text-transform: uppercase; font-size: 1.3rem; margin: .3rem 0 .4rem; }
.how p, .units p { margin: 0; }
.note-card { position: relative; margin-top: 1.6rem; background: var(--paper); color: var(--ink); border: 3px dashed var(--ink); padding: 1.1rem 1.3rem; max-width: 720px; }
.note-card p { margin: .3rem 0 0; }
.note-card a { color: var(--copper); }

.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.4rem; }
.daycard a { height: 100%; }
.daycard .topic { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* course pages */
.head { padding-top: 2.2rem; }
.h1-sm { font-size: clamp(2.4rem, 8vw, 4.6rem); margin: .4rem 0 1rem; }
.paper { color-scheme: light; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: clamp(1rem, 3vw, 2rem); }
.paper a { color: var(--copper); }
.muted { color: var(--muted); }
.exam-name { font-size: 1.2rem; margin: 0; }
.mini { font-family: var(--display); font-weight: normal; text-transform: uppercase; margin: 1.4rem 0 .6rem; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 3rem; gap: .7rem; align-items: center; }
.bar { height: 14px; background: rgba(27,27,27,.1); border: 1.5px solid var(--ink); }
.bar i { display: block; height: 100%; background: var(--copper); }
.bar-pct { font-family: var(--mono); font-size: .85rem; text-align: right; }
.units { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.units li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .8rem; background: rgba(13,40,24,.85); border-left: 4px solid var(--hit); padding: .8rem 1rem; }

/* lesson plan */
.exam-tags { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.exam-tags li { background: var(--ink); border: 1.5px solid var(--hit); padding: .4rem .7rem; font-size: .88rem; }
.exam-tags b { color: var(--hit); display: block; font-family: var(--mono); font-size: .78rem; }
.toggle { display: inline-flex; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); margin-bottom: 1rem; }
.toggle button { font: inherit; font-family: var(--display); text-transform: uppercase; font-size: .95rem; padding: .6rem 1rem .5rem; border: 0; background: var(--cream); color: var(--ink); cursor: pointer; }
.toggle button + button { border-left: 3px solid var(--ink); }
.toggle button[aria-pressed="true"] { background: var(--hit); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 1.6rem; }
.btn { display: inline-block; font: inherit; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); background: var(--hit); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: .6rem 1.1rem .5rem; text-decoration: none; cursor: pointer; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn.ghost { background: var(--cream); }
.plan h2, .sheet h2 { font-family: var(--display); font-weight: normal; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .03em; margin: 1.8rem 0 .6rem; border-bottom: 2px solid var(--ink); padding-bottom: .2rem; }
.summary { font-size: 1.12rem; margin-top: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 2rem; }
.plan ul, .plan ol { padding-left: 1.3rem; margin: .3rem 0; }
.plan li { margin: .25rem 0; }
.board-q li { font-weight: 700; }
.timing { width: 100%; border-collapse: collapse; font-size: .95rem; }
.timing th { text-align: left; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--ink); padding: .4rem .5rem; }
.timing td { vertical-align: top; border-bottom: 1px solid rgba(27,27,27,.2); padding: .55rem .5rem; }
.timing .min { font-family: var(--mono); white-space: nowrap; }
.timing .seg { font-weight: 700; white-space: nowrap; }
.carry { background: #fff; border-left: 5px solid var(--hit); padding: .6rem .8rem; }
.safety { background: #fff6f0; border: 2px solid var(--copper); padding: 0 1rem .6rem; margin-top: 1.4rem; }
.safety h2 { border-bottom-color: var(--copper); color: var(--copper); }
.vocab { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: .4rem 0; }
.vocab dt { font-weight: 700; }
.vocab dd { margin: 0; }
.exit > li { margin-bottom: .8rem; }
.exit p { margin: 0 0 .3rem; }
.choices { list-style: upper-alpha; }
.choices .key { color: var(--wall); }
.method li { margin: .35rem 0; }
.job { background: var(--wall); color: var(--cream); padding: .2rem 1.1rem 1rem; margin-top: 1.6rem; }
.job h2 { color: var(--hit); border-bottom-color: var(--hit); }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.pager a { font-family: var(--display); text-transform: uppercase; background: var(--cream); color: var(--ink); text-decoration: none; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: .5rem .9rem .4rem; }

/* schematics: art from the art shop, labels as real text on top */
.schematic { margin: 1.4rem 0; }
.schematic-art { position: relative; border: 3px solid var(--ink); background: var(--deep); }
.schematic-art img { display: block; width: 100%; height: auto; }
.callout { position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-size: clamp(.62rem, 1.6vw, .85rem); font-weight: 500; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); padding: .1rem .4rem; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.schematic figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* lab sheet */
.sheet { max-width: 860px; margin: 1.5rem auto 0; }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 3px solid var(--ink); padding-bottom: .8rem; }
.sheet-head h1 { color: var(--ink); filter: none; text-shadow: none; font-size: clamp(2rem, 6vw, 3rem); transform: rotate(-1deg); margin-top: .3rem; }
.who { display: grid; gap: .5rem; min-width: 220px; }
.who span { font-family: var(--mono); font-size: .8rem; border-bottom: 1.5px solid var(--ink); padding-top: .6rem; }
.intro { font-size: 1.08rem; }
.steps li { margin: .35rem 0; }
.roles { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1rem; }
.roles dt { font-weight: 700; }
.roles dd { margin: 0; }
.blank { display: inline-block; min-width: 12rem; border-bottom: 1.5px solid var(--ink); font-family: var(--mono); font-size: .75rem; margin-left: .5rem; }
.lab-table { width: 100%; border-collapse: collapse; margin: .8rem 0; }
.lab-table th { text-align: left; font-size: .85rem; background: var(--ink); color: var(--cream); padding: .4rem .5rem; }
.lab-table td { border: 1.5px solid var(--ink); padding: .5rem; height: 2.4rem; background: #fff; }
.write span { font-family: var(--mono); font-size: .9rem; }
.write i { display: block; height: 2.1rem; border-bottom: 1.5px solid var(--ink); }
.think p { font-weight: 700; margin: 1rem 0 0; }
.signoff { text-align: right; font-family: var(--mono); font-size: .85rem; }
.signoff span { display: inline-block; width: 11rem; border-bottom: 1.5px solid var(--ink); }
.ticket { border: 2px solid var(--ink); margin: 1rem 0; background: #fff; break-inside: avoid; }
.ticket-head { margin: 0; background: var(--ink); color: var(--hit); font-family: var(--mono); font-size: .82rem; padding: .35rem .6rem; }
.ticket dl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); margin: 0; }
.ticket dt { font-size: .85rem; font-weight: 700; padding: .5rem .6rem; border-bottom: 1px solid rgba(27,27,27,.3); }
.ticket dd { margin: 0; border-bottom: 1px solid rgba(27,27,27,.3); border-left: 1px solid rgba(27,27,27,.3); min-height: 2.2rem; }
.ticket dd.tall { min-height: 5rem; }

.foot { max-width: 1060px; margin: 2rem auto 0; padding: 1.4rem 16px 2.5rem; border-top: 2px solid rgba(245,241,232,.4); font-size: .9rem; }
.foot p { margin: .3rem 0; }

@media (max-width: 760px) {
  .seq { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .bars li { grid-template-columns: 1fr 3rem; }
  .bar { grid-column: 1 / -1; grid-row: 2; }
  .timing thead { display: none; }
  .timing tr { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; border-bottom: 1px solid rgba(27,27,27,.25); padding: .5rem 0; }
  .timing td { border: 0; padding: .15rem .3rem; }
  .timing td:nth-child(3), .timing td:nth-child(4) { grid-column: 1 / -1; }
  .timing td:nth-child(4)::before { content: "Students: "; font-weight: 700; }
  .ticket dl, .vocab, .roles { grid-template-columns: 1fr; }
  .ticket dd { border-left: 0; }
}

/* print: just the paper */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .board, .marquee, .nav, .foot, .actions, .screen-only, .toggle, .pager { display: none !important; }
  main { padding: 0; max-width: none; }
  .head h1, .head .tag, .head .lede { color: #000; text-shadow: none; filter: none; }
  .exam-tags li { background: none; border: 1px solid #000; color: #000; }
  .exam-tags b { color: #000; }
  .paper { border: 0; box-shadow: none; padding: 0; }
  .sheet { margin: 0; }
  .job { background: none; color: #000; border: 1.5px solid #000; }
  .job h2 { color: #000; border-bottom-color: #000; }
  .part, .think, .lab-table, .timing tr { break-inside: avoid; }
}

/* comics: panels on the wall, caption boxes over the art, balloons as text */
.comic-head { text-align: center; padding: 1rem 0 1.5rem; }
.comic-title { font-size: clamp(2.6rem, 9vw, 5.4rem); margin: .6rem 0 .8rem; }
.comic-intro { max-width: 62ch; margin: 0 auto; font-size: 1.05rem; }
.comic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { position: relative; margin: 0; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.55); display: flex; flex-direction: column; min-width: 0; }
.panel.diagram { grid-column: 1 / -1; padding: 1rem 1.2rem 1.2rem; color-scheme: light; }
.panel .pn { position: absolute; top: -4px; right: -4px; z-index: 3; background: var(--ink); color: var(--hit); font-family: var(--mono); font-size: .8rem; padding: .15rem .5rem; }
.panel .cap { margin: 0; background: var(--hit); border-bottom: 3px solid var(--ink); padding: .55rem .8rem; font-size: .95rem; line-height: 1.45; }
.panel.diagram .cap { background: none; border: 0; padding: 0 0 .8rem; font-size: 1rem; }
.panel.diagram h3 { font-family: var(--display); font-weight: normal; text-transform: uppercase; font-size: 1.5rem; margin: 0 0 .5rem; }
.art { position: relative; container-type: inline-size; line-height: 0; }
.art img { width: 100%; height: auto; display: block; }
.bal { position: absolute; z-index: 2; margin: 0; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 1.2em; padding: .5em .75em; font-size: clamp(10px, 2.55cqw, 17px); line-height: 1.3; font-weight: 700; text-align: center; box-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.bal::after { content: ""; position: absolute; width: 14px; height: 14px; background: #fff; border: 2.5px solid var(--ink); border-top: 0; border-left: 0; }
.tail-b::after { bottom: -9px; left: 30%; transform: rotate(45deg); }
.tail-bl::after { bottom: -9px; left: 16%; transform: rotate(45deg); }
.tail-t::after { top: -9px; left: 30%; transform: rotate(-135deg); }
.tail-tr::after { top: -9px; right: 18%; transform: rotate(-135deg); }
.tail-l::after { left: -9px; top: 40%; transform: rotate(135deg); }
.tail-r::after { right: -9px; top: 40%; transform: rotate(-45deg); }
.bal-phone { border-radius: .3em; border-style: dashed; font-style: italic; background: #fdf6e0; }
.bal-phone::after { background: #fdf6e0; border-style: dashed; }
.inset { position: absolute; z-index: 2; line-height: 1.3; font-size: clamp(9px, 2.2cqw, 15px); background: #e8f0ff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: .8em; padding: .45em .65em; font-family: var(--mono); }
.inset span { display: block; font-size: .8em; color: var(--muted); margin-bottom: .15em; }
.ov { position: absolute; z-index: 1; display: flex; flex-direction: column; overflow: hidden; line-height: 1.15; color: var(--ink); }
.ov-poster { background: #fffdf5; padding: 3% 4%; gap: .3em; font-size: clamp(5px, 1.15cqw, 10px); text-align: center; justify-content: center; }
.ov-poster b { font-family: var(--display); text-transform: uppercase; font-weight: normal; font-size: 1.2em; }
.ov-email { background: #fff; padding: 2.5% 3%; gap: .35em; font-size: clamp(6px, 1.3cqw, 11px); font-family: var(--body); }
.oe-from { color: #a33; font-family: var(--mono); }
.oe-btn { align-self: flex-start; background: #1a5fd0; color: #fff; padding: .2em .6em; border-radius: .2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; counter-reset: s; }
.cd-steps li { position: relative; background: #fff; border: 2.5px solid var(--ink); padding: .7rem; display: grid; gap: .3rem; align-content: start; font-size: .92rem; }
.cd-steps li + li::before { content: "\2192"; position: absolute; left: -.85rem; top: 40%; font-size: 1.2rem; font-weight: 700; }
.cd-steps li:last-child { background: #fff6f0; border-color: var(--copper); }
.cd-n { font-family: var(--display); font-size: 1.6rem; color: var(--copper); line-height: 1; }
.cd-email { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 1.4rem; align-items: start; }
.mail { background: #fff; border: 2.5px solid var(--ink); padding: .8rem 1rem; font-size: .92rem; }
.mail p { margin: .3rem 0; }
.m-row span { display: inline-block; width: 4.3rem; color: var(--muted); font-size: .8rem; }
.m-btn { display: inline-block; background: #1a5fd0; color: #fff; padding: .25rem .8rem; border-radius: 3px; }
.m-link { font-family: var(--mono); font-size: .78rem; color: #a33; }
.flag { display: inline-grid; place-content: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--copper); color: #fff; font-style: normal; font-weight: 700; font-size: .8rem; margin: 0 .3rem; vertical-align: middle; }
.cd-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.cd-non { grid-column: 1 / -1; margin: 0; background: #eef5ee; border-left: 5px solid var(--wall); padding: .6rem .8rem; }
.cd-table-wrap { overflow-x: auto; }
.cd-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
.cd-table th { background: var(--ink); color: var(--hit); text-align: left; padding: .45rem .6rem; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; }
.cd-table td { border: 1.5px solid var(--ink); padding: .45rem .6rem; }
.cd-extra { margin: .8rem 0 0; }
.cd-summary { font-size: 1.05rem; }
.cd-summary p { margin: 0 0 .6rem; }
.cd-h { font-family: var(--display); text-transform: uppercase; }
.cd-summary ol { margin: 0; padding-left: 1.4rem; }
.transcript { margin-top: 2rem; }
.transcript summary { cursor: pointer; font-weight: 700; }
.transcript h3 { font-family: var(--display); font-weight: normal; text-transform: uppercase; margin: 1.2rem 0 .3rem; }
.transcript .desc { color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
  .comic { grid-template-columns: 1fr; }
  .cd-steps { grid-template-columns: 1fr; }
  .cd-steps li + li::before { content: "\2193"; left: 50%; top: -1rem; }
  .cd-email { grid-template-columns: 1fr; }
}
@media print {
  .comic { gap: 8px; }
  .panel { break-inside: avoid; box-shadow: none; }
  .transcript { display: none; }
  .comic-head .kicker { background: none; color: #000; }
  .comic-title { color: #000; }
}
.comic { align-items: start; }
.panel.wide { grid-column: 1 / -1; }
.panel.wide .bal { font-size: clamp(10px, 1.9cqw, 19px); }

/* the Louisiana rules: four facts, each with its citation */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.rule { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: .9rem 1rem; color-scheme: light; }
.rule .tag { color: var(--copper); }
.rule p { margin: .4rem 0 0; }
.rule a, #louisiana .note-card a { color: var(--copper); }
.rule .cite { font-size: .8rem; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.contact-grid .note-card { margin-top: 0; }
form.contact { display: grid; gap: .9rem; }
form.contact label { display: grid; gap: .3rem; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
form.contact .opt { text-transform: none; letter-spacing: 0; color: var(--muted); }
form.contact input, form.contact select, form.contact textarea { font: inherit; font-family: var(--body); font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink); background: #fff; border: 2px solid var(--ink); padding: .55rem .65rem; border-radius: 0; width: 100%; }
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 3px solid var(--hit); outline-offset: 0; }
.f2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 0; }
.or { font-size: .92rem; }
form.contact .status { margin: 0; padding: .6rem .8rem; background: #fff; border-left: 5px solid var(--wall); }
form.contact .status.err { border-left-color: var(--copper); }
.foot a { color: var(--hit); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
