/* Kingdom Kids: Lamp and Path. Sunshine yellow, sky blue, bright blue, black and white. */
@font-face { font-family: 'Fredoka'; src: url('/public/fonts/fredoka-600-normal.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/public/fonts/nunito-400-normal.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/public/fonts/nunito-400-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/public/fonts/nunito-600-normal.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/public/fonts/nunito-700-normal.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #1a1a1a; --yellow: #f7da5c; --sky: #84cbdf; --blue: #17b6e0; --cream: #fffbea;
  --yellow-t: #fef4c7; --sky-t: #e4f4f9; --blue-t: #d3eef8; --muted: #4b5860; --line: #c9e4ee; --white: #fff;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--white); }
h1, h2, h3 { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; }
a { color: var(--ink); text-decoration-color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { background: var(--yellow-t); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
main.wrap { padding-block: 1.5rem 3rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: .6rem 1rem; z-index: 10; } .skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .noprint {}

/* Header */
.top { background: var(--sky); border-bottom: 4px solid var(--ink); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .6rem; }
.brand img { display: block; width: clamp(100px, 26vw, 150px); height: auto; }
.brand:hover { background: none; }
.linklike { font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; background: none; border: 0; padding: .5rem .85rem; border-radius: 999px; cursor: pointer; min-height: var(--tap); display: inline-flex; align-items: center; touch-action: manipulation; }
.linklike:hover { background: var(--yellow); }
/* The header links and the Menu button are in ui.css (.sitemenu) */
form.inline { display: inline; margin: 0; }
.foot { background: var(--ink); color: var(--white); padding-block: 1.5rem; font-size: .95rem; }
.foot .verseline { display: block; color: var(--yellow); margin-top: .35rem; font-style: italic; }

/* Hero, cards */
.hero { background: var(--sky-t); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; margin-bottom: 1.25rem; box-shadow: 5px 5px 0 var(--yellow); }
.kicker { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .35rem; }
.chip { display: inline-block; font-family: 'Fredoka', sans-serif; background: var(--ink); color: var(--yellow); padding: .1rem .6rem; border-radius: 8px; letter-spacing: .02em; }
.lead { font-size: 1.2rem; margin: .5rem 0 1rem; }
.cards3 { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin-bottom: 1rem; }
.mini { background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: .6rem .8rem; border-top: 6px solid var(--blue); }
.mini:nth-child(2) { border-top-color: var(--yellow); } .mini:nth-child(3) { border-top-color: var(--sky); }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.card.notice { background: var(--yellow-t); }
.narrow { max-width: 32rem; margin-inline: auto; }
.verse { background: var(--yellow-t); border: 2px solid var(--ink); border-left: 10px solid var(--yellow); border-radius: 10px; padding: .85rem 1.1rem; margin: 0 0 1.25rem; }
.vtext { font-family: 'Fredoka', sans-serif; font-size: 1.25rem; margin: .1rem 0 .25rem; }
.flash { padding: .7rem 1rem; border-radius: 10px; border: 2px solid var(--ink); margin: 0 0 1rem; }
.flash.ok { background: var(--sky-t); } .flash.bad { background: #ffe3d9; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .55rem; border-radius: 999px; background: var(--line); margin-left: .5rem; vertical-align: middle; }
.pill.yellow { background: var(--yellow); } .pill.blue { background: var(--blue); }

/* Buttons and forms */
/* .btn, .btn.alt, .btn.small, .btn.big, .btn.icon and their states live in ui.css */
label { display: block; font-weight: 700; margin: .75rem 0 .25rem; }
input[type=text], input[type=email], input[type=search], input[type=date], select, input:not([type]), input[inputmode=numeric] { width: 100%; font: inherit; padding: .6rem .75rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); min-height: 44px; }
form > .btn, form > p > .btn { margin-top: 1rem; }
.searchform { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; } .searchform input { flex: 1 1 14rem; width: auto; } .searchform .btn { margin-top: 0; }
.row { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: end; } .row .btn { margin-top: 0; }
fieldset { border: 2px solid var(--line); border-radius: 10px; margin: 0 0 1rem; padding: .5rem 1rem 1rem; } legend { font-weight: 700; padding-inline: .4rem; }
.termgrid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; margin: .4rem 0; padding: .35rem .25rem; border-radius: 8px; }
.check:hover { background: var(--sky-t); }
.check input { width: 1.4rem; height: 1.4rem; margin-top: .2rem; flex: none; accent-color: var(--ink); }
code.long { display: block; word-break: break-all; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: .5rem; margin-top: .4rem; user-select: all; }

/* Lists */
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.lrow a { display: grid; grid-template-columns: 2.6rem 1fr; grid-template-areas: 'wk title' 'wk meta'; column-gap: .8rem; padding: .6rem .8rem; border: 2px solid var(--ink); border-radius: 12px; text-decoration: none; background: var(--white); }
.lrow a:hover { background: var(--yellow-t); }
.lrow.current a { background: var(--sky-t); box-shadow: 4px 4px 0 var(--blue); }
.lrow.celebration a { border-style: dashed; background: var(--yellow-t); }
.wk { grid-area: wk; align-self: center; justify-self: center; font-family: 'Fredoka', sans-serif; font-size: 1.15rem; background: var(--ink); color: var(--yellow); border-radius: 10px; min-width: 2.4rem; text-align: center; padding: .25rem 0; }
.ltitle { grid-area: title; font-weight: 700; } .lmeta { grid-area: meta; color: var(--muted); font-size: .92rem; }
.term h2 { margin-top: 1.75rem; } .term h2 small { font-family: 'Nunito', sans-serif; font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: .4rem; }
.versegrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); } .versegrid .verse { margin: 0; }
table.plain { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .95rem; }
table.plain th, table.plain td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }

/* A lesson */
.toc ol { columns: 2 16rem; list-style: none; margin: 0 0 1.25rem; padding: 0; counter-reset: n; }
.toc li { counter-increment: n; padding: .15rem 0; } .toc li::before { content: counter(n) '. '; font-weight: 700; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; } .tools .btn { margin: 0; }
details.sec { border: 2px solid var(--ink); border-radius: 12px; margin-bottom: .75rem; background: var(--white); }
details.sec > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; padding: .7rem .9rem; list-style: none; font-weight: 700; min-height: 48px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; line-height: 1; }
details.sec[open] > summary { border-bottom: 2px solid var(--ink); background: var(--sky-t); border-radius: 10px 10px 0 0; } details.sec[open] > summary::after { content: '\2212'; }
.num { font-family: 'Fredoka', sans-serif; background: var(--ink); color: var(--yellow); border-radius: 8px; min-width: 1.9rem; text-align: center; padding: 0 .4rem; }
.stitle { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; font-weight: 600; }
.tag { font-size: .68rem; letter-spacing: .12em; padding: .1rem .5rem; border-radius: 4px; border: 1.5px solid var(--ink); } .tag.yellow { background: var(--yellow); } .tag.sky { background: var(--sky); } .tag.blue { background: var(--blue-t); }
.time { font-size: .85rem; color: var(--muted); font-weight: 400; }
details.sec > .md, details.sec > form { padding: .25rem 1rem 1rem; }
.md h4 { margin: 1.1rem 0 .3rem; font-family: 'Fredoka', sans-serif; font-size: 1.05rem; } .md p { margin: .5rem 0; } .md ul, .md ol { padding-left: 1.4rem; } .md li { margin: .25rem 0; }
.md blockquote { margin: .8rem 0; padding: .5rem 1rem; background: var(--cream); border-left: 8px solid var(--yellow); border-radius: 0 10px 10px 0; } .md blockquote p { margin: .35rem 0; }
.tablewrap { margin: .8rem 0; } .md table { border-collapse: collapse; min-width: 32rem; width: 100%; font-size: .95rem; }
.md th { background: var(--ink); color: var(--white); text-align: left; } .md th, .md td { padding: .45rem .6rem; border: 1px solid var(--line); vertical-align: top; } .md tr:nth-child(even) td { background: var(--cream); }
.pager { display: flex; justify-content: space-between; gap: var(--s-3) var(--s-4); flex-wrap: wrap; margin-top: var(--s-5); } .pager a { display: inline-flex; align-items: center; min-height: var(--tap); max-width: 100%; }

@media print {
  .top, .foot, .tools, .toc, .noprint, .pager, .skip { display: none !important; }
  body { font-size: 11pt; } .wrap { width: 100%; } main.wrap { padding: 0; }
  .hero, .verse, details.sec, .card { box-shadow: none; break-inside: avoid-page; }
  details.sec > summary::after { display: none; }
  details.sec > summary { background: none !important; }
  a { text-decoration: none; }
}

/* ===================== Teacher Workspace (v2): warmer, calmer, one clear action per screen ===================== */
:root { --bg: #fffaf0; --paper: #fffdf6; --shadow: 0 8px 24px rgba(26, 26, 26, .09); }
body { background: var(--bg); }
.brand { display: flex; align-items: center; gap: .7rem; }
.space { font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; border-left: 3px solid var(--ink); padding-left: .7rem; line-height: 1.2; max-width: 6rem; }
.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .5rem; }
.pagehead { margin-bottom: 1rem; } .pagehead h1 { margin-bottom: .25rem; }
.linkbtn { font-weight: 700; display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--s-2); }
.noticebar { margin: 0 0 1rem; padding: .45rem .9rem; font-size: .92rem; background: var(--yellow-t); border-radius: 999px; display: inline-block; }

.hero2 { position: relative; border-radius: 24px; overflow: hidden; min-height: 25rem; background: var(--cream); box-shadow: var(--shadow); border: 3px solid var(--ink); margin-bottom: 1.75rem; display: flex; align-items: center; }
.hero2-art { position: absolute; inset: 0; } .hero2-art svg { display: block; width: 100%; height: 100%; }
.hero2-copy { position: relative; width: min(100%, 34rem); padding: 2.5rem clamp(1.25rem, 4vw, 3rem); }
.hero2-copy h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 .6rem; }
.bigtruth { font-size: 1.4rem; line-height: 1.35; margin: 0 0 1rem; font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.factlabel { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-right: .35rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: 0; }
.resume { margin: 1rem 0 0; font-size: .95rem; }
@media (max-width: 760px) { .hero2 { align-items: flex-end; min-height: 30rem; } .hero2-copy { width: 100%; background: linear-gradient(to top, rgba(255, 250, 235, .97) 70%, rgba(255, 250, 235, 0)); padding-top: 7rem; } }

.trio { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-bottom: 2rem; }
.panel { background: var(--paper); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid #efe3bd; }
.panel h2 { font-size: 1.15rem; letter-spacing: .02em; }
.panel .vtext { font-size: 1.35rem; }
.mission { font-family: 'Fredoka', sans-serif; font-size: 1.4rem; margin: 0 0 .4rem; }
.cardart { aspect-ratio: 400 / 240; border-radius: 14px; overflow: hidden; background: var(--cream); } .cardart svg { display: block; width: 100%; height: 100%; }
.nextlink { display: block; text-decoration: none; } .nextlink:hover { background: none; } .nextlink:hover .cardart { box-shadow: 0 0 0 4px var(--yellow); }
.nexttitle { display: flex; gap: .6rem; align-items: center; font-weight: 800; margin: .75rem 0 .1rem; }
.card { box-shadow: var(--shadow); border: 1px solid #efe3bd; background: var(--paper); }
.verse { border-width: 1px; border-left-width: 10px; }

/* Library */
.viewtabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); margin: 0 0 var(--s-4); }
@media (min-width: 700px) { .viewtabs { display: flex; flex-wrap: wrap; } }
@media (max-width: 339px) { .viewtabs { grid-auto-flow: row; } }
.viewtabs a { text-decoration: none; font-weight: 800; padding: .5rem var(--s-2); border-radius: 999px; border: 2px solid var(--ink); background: var(--white); min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; text-align: center; }
@media (min-width: 700px) { .viewtabs a { padding-inline: 1.1rem; } }
.viewtabs a[aria-current='page'] { background: var(--ink); color: var(--yellow); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .75rem 1rem; align-items: end; background: var(--paper); padding: 1rem 1.25rem; border-radius: 18px; margin-bottom: 1.25rem; border: 1px solid #efe3bd; }
.filters .wide { grid-column: span 2; } .filters .field label { margin: 0 0 .25rem; font-size: .85rem; } .filters .act { display: flex; align-items: center; }
@media (max-width: 600px) { .filters .wide { grid-column: auto; } }
.termhead { display: flex; gap: 1rem; align-items: center; margin: 2rem 0 .75rem; } .termhead h2 { margin: 0; font-size: 1.6rem; } .termhead p { margin: 0; }
.scene { position: relative; aspect-ratio: 1200 / 560; border-radius: 24px; overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--shadow); background: var(--cream); }
.scene-art, .scene-over { position: absolute; inset: 0; width: 100%; height: 100%; } .scene-art svg { display: block; width: 100%; height: 100%; }
.stop { cursor: pointer; text-decoration: none; }
.stop circle { fill: #fff; stroke: #1a1a1a; stroke-width: 4; transition: fill .15s; }
.stop text { font: 600 22px 'Fredoka', sans-serif; fill: #1a1a1a; }
.stop.done circle { fill: #84cbdf; } .stop.celeb circle { fill: #f7da5c; stroke-width: 6; } .stop.current circle { fill: #f7da5c; stroke: #1a1a1a; stroke-width: 6; }
.stop:hover circle, .stop:focus-visible circle { fill: #ffe97c; stroke: #17b6e0; stroke-width: 7; } .stop:focus-visible { outline: none; }
.stop.dim { opacity: .3; }
.stopbox { display: flex; height: 100%; align-items: center; justify-content: center; }
.stoplabel { background: rgba(255, 253, 244, .96); border: 2px solid #1a1a1a; border-radius: 12px; padding: 3px 11px; font-family: 'Nunito', sans-serif; line-height: 1.1; color: #1a1a1a; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; max-width: 100%; }
.stoplabel .stt { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.stoplabel .tick { width: 16px; height: 16px; flex: none; color: #0f7f9f; }
.stop.celeb .stoplabel { background: #f7da5c; }
.stop.done .stoplabel { background: #e3f4fa; }
.stop.current .stoplabel { background: #f7da5c; border-width: 3px; }
.stop:hover .stoplabel, .stop:focus-visible .stoplabel { background: #fff; outline: 3px solid #17b6e0; }
.trail-list { display: none; list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 6px dashed var(--yellow); }
.trail-list li { margin: .5rem 0; } .trail-list a { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; padding: .6rem .8rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; min-height: 48px; }
.trail-list .celeb a { background: var(--yellow-t); border-style: dashed; } .trail-list .current a { box-shadow: 4px 4px 0 var(--blue); } .trail-list .dim { opacity: .35; }
/* The map has small labels meant for a mouse: touch screens and narrow windows get the list, which has full-size targets */
@media (max-width: 1099px), (hover: none), (pointer: coarse) { .scene { display: none; } .trail-list { display: block; } }
.termcards { margin-bottom: 1rem; }
.cardgrid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.lcard { background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #efe3bd; display: flex; flex-direction: column; }
.lcard.current { outline: 4px solid var(--blue); } .lcard .cardart { border-radius: 0; }
.lbody { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; } .lbody h3 { margin: 0; font-size: 1.3rem; } .lbody p { margin: 0; }
.lweek { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.focus { font-size: .98rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: .3rem 0; } .chips li { background: var(--yellow-t); border-radius: 999px; padding: .1rem .65rem; font-size: .8rem; font-weight: 700; } .chips .soft { background: var(--sky-t); font-weight: 600; }
.lactions { margin-top: auto !important; padding-top: .6rem !important; display: flex; align-items: center; }
.compact .wk { display: inline-block; min-width: 2.2rem; line-height: 1.35; padding: .1rem .2rem; }
.compact td .linkbtn + .linkbtn { margin-left: var(--s-2); }
.compact th, .compact td { white-space: normal; } .compact tr.current td { background: var(--sky-t); } .nowrap { white-space: nowrap; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.stamps a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; text-decoration: none; font-size: .9rem; } .stamps .stampart { width: 6.5rem; } .stamps .stampart svg { width: 100%; height: auto; display: block; }
.stamps li.off .stampart { opacity: .28; filter: grayscale(1); } .stamps .stt { font-weight: 800; }
.bigcount { font-family: 'Fredoka', sans-serif; font-size: 1.6rem; margin: .5rem 0 0; }
.prephero { display: grid; grid-template-columns: minmax(0, 24rem) 1fr; gap: 2rem; align-items: center; margin-bottom: 1.5rem; }
.prephero .cardart { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--yellow); } .prepcopy h1 { margin-bottom: .5rem; }
@media (max-width: 760px) { .prephero { grid-template-columns: 1fr; } }
.draftblock { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; } .draftblock ul { margin: .4rem 0 .8rem; padding-left: 1.2rem; }

.reviewjump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-5); font-size: .95rem; } .reviewjump a { text-decoration: none; border: 2px solid #1a1a1a; border-radius: 10px; padding: 0 var(--s-2); background: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); }
.reviewbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

/* ===== Lesson activity planner: Plan the activities, Add activity, Edit, Try an example (games v2 editor). Everything here starts with plan-, gal-, ed- or cr-banner. ===== */
.plan-crumbs { font-size: .95rem; margin: 0 0 var(--s-3); color: var(--muted); } .plan-crumbs a { color: var(--ink); display: inline-flex; align-items: center; min-height: var(--tap); } .plan-crumbs [aria-current] { font-weight: 700; color: var(--ink); }
.plan-top { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: 0 0 1.25rem; }
.plan-note { margin: 0 0 1rem; padding: .6rem 1rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--yellow-t); }
.plan-hint { margin: .5rem 0 0; font-size: .92rem; color: var(--muted); }
.plan-summary h2 { margin-bottom: .35rem; } .plan-summary p { margin: .25rem 0; }
.plan-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .9rem; }
.plan-row { border: 2px solid var(--ink); border-left: 10px solid var(--blue); border-radius: var(--radius); padding: .9rem 1rem 1rem; background: var(--white); scroll-margin-top: 1rem; }
.plan-row:target { box-shadow: 0 0 0 4px var(--blue); }
.plan-row.is-draft { border-left-color: var(--yellow); background: var(--cream); }
.plan-row.is-hidden { border-style: dashed; border-left-style: solid; background: #f1f5f7; }
.plan-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .25rem .8rem; align-items: start; }
.plan-num { font-family: 'Fredoka', sans-serif; background: var(--ink); color: var(--yellow); border-radius: 8px; min-width: 2rem; text-align: center; padding: .1rem .4rem; }
.plan-titles h3 { margin: 0; font-size: 1.25rem; } .plan-phase { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .plan-name { margin: .1rem 0 0; font-weight: 700; color: var(--muted); }
.plan-pills { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; } .plan-pills .pill { margin-left: 0; }
.plan-meta { margin: .5rem 0 .2rem; } .plan-prep-line { margin: .2rem 0; }
.plan-row .plan-note { margin: .5rem 0 0; font-size: .95rem; padding: .4rem .8rem; }
.plan-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.plan-actions form { margin: 0; display: contents; } .plan-actions .btn, .plan-actions form .btn { margin: 0; }
.planbtn { font-size: 1rem; }
.plan-prep-list { margin: .4rem 0 0; padding-left: 1.2rem; } .plan-prep-list li { margin: .25rem 0; }
.plan-prep.md { padding: .5rem 1rem 1rem; }
.plan-confirm { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; } .plan-confirm .btn { margin-top: 1rem; }
.plan-reset { border-style: dashed; }
@media (max-width: 640px) { .plan-head { grid-template-columns: auto 1fr; } .plan-pills { grid-column: 1 / -1; justify-content: flex-start; } }

.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin: .5rem 0 1.75rem; }
.gal-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--white); display: flex; flex-direction: column; gap: .4rem; }
.gal-card h3 { margin: 0; } .gal-card p { margin: 0; } .gal-short { font-weight: 700; } .gal-reason { background: var(--yellow-t); border-radius: 8px; padding: .35rem .6rem; }
.gal-facts { margin: .3rem 0; display: grid; gap: .3rem; } .gal-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; } .gal-facts dt { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .gal-facts dd { margin: 0; }
.gal-actions { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .gal-actions .btn, .gal-actions form .btn { margin: 0; }

.editor input[type=text], .editor input[type=number], .editor textarea, .editor select { width: 100%; font: inherit; padding: .6rem .75rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); min-height: 44px; }
.editor textarea { resize: vertical; line-height: 1.45; }
.ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 1.5rem; align-items: start; }
.ed-layout.single { grid-template-columns: minmax(0, 46rem); }
@media (max-width: 900px) { .ed-layout { grid-template-columns: minmax(0, 1fr); } }
.ed-group { background: var(--white); } .ed-group legend { font-family: 'Fredoka', sans-serif; font-size: 1.15rem; }
.ed-group.ed-private { background: var(--sky-t); border-style: dashed; border-color: var(--ink); } .ed-group.ed-settings { background: var(--cream); }
.ed-field { margin: 0 0 1rem; } .ed-field > label { margin-top: .25rem; }
.ed-format { margin: 0 0 .3rem; font-size: .95rem; } .ed-help { margin: .1rem 0 .3rem; font-size: .92rem; }
.ed-example-wrap { margin: 0 0 .4rem; font-size: .92rem; } .ed-ex-label { font-weight: 700; margin-right: .4rem; }
.ed-example { display: block; white-space: pre-wrap; background: var(--cream); border: 1px dashed var(--ink); border-radius: 8px; padding: .4rem .6rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; margin-top: .2rem; }
.ed-check .check { margin: .2rem 0; font-weight: 700; } .ed-check .check input { flex: none; }
.ed-fold { border: 2px solid var(--line); border-radius: 10px; margin: 0 0 1rem; background: var(--white); } .ed-fold > summary { cursor: pointer; font-weight: 700; padding: .65rem .9rem; min-height: 48px; display: flex; align-items: center; } .ed-fold-body { padding: 0 .9rem .6rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1rem; }
.ed-side { display: grid; gap: 1rem; position: sticky; top: 1rem; } .ed-side .card { margin: 0; } .ed-side h2 { font-size: 1.15rem; }
.ed-scene { position: relative; aspect-ratio: 1200 / 560; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--sky-t); }
.ed-scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ed-marks circle { fill: var(--yellow); stroke: #1a1a1a; stroke-width: 4; } .ed-marks text { font: 600 24px 'Fredoka', sans-serif; fill: #1a1a1a; }
.ed-refs { margin: .3rem 0 0; padding-left: 1.2rem; } .ed-refs li { margin: .15rem 0; }
.ed-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding: .7rem 1rem; margin-top: 1.25rem; background: var(--sky-t); border: 2px solid var(--ink); border-radius: var(--radius); }
.ed-bar .btn, .editor .ed-bar .btn { margin: 0; }
@media (max-width: 640px) { .ed-bar { gap: var(--s-2); padding: var(--s-2) var(--s-3); padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom, 0px)); } .ed-bar .btn { flex: 1 1 8rem; } .ed-bar > p, .ed-bar > span:not(.btn) { flex-basis: 100%; margin: 0; font-size: .9rem; } }
.ed-errors ul { margin: .3rem 0 0; padding-left: 1.2rem; } .ed-errors li { margin: .2rem 0; }

/* The note across the top of a preview or an example in the classroom: see the banner rules in classroom.css. */
/* ===== end of lesson activity planner ===== */
