/* Feature styles: calendar, games, badge levels, chess. Load order matters: later files refine earlier ones (see docs/STRUCTURE.md). */
/* calendar: Day / Month switch, clickable event chips in the month grid, the day schedule, and the event-details dialog */
.calhead { flex-wrap: wrap; } .vseg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.vseg button { border: 0; border-radius: 0; box-shadow: none; background: transparent; color: var(--ink); min-height: 40px; padding: 0 14px; font-weight: 700; font-size: .9rem; } .vseg button.on { background: var(--y); color: var(--on-y); }
div.cd { cursor: pointer; align-items: stretch; gap: 3px; min-height: 124px; } div.cd:focus-visible { outline: 3px solid var(--link); outline-offset: -2px; }
.cd .cdn { display: flex; align-items: center; justify-content: flex-start; gap: 4px; width: 100%; min-height: 38px; padding: 0 2px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--ink); } .cd .cdn:hover { background: rgba(0, 0, 0, .05); }
.cd.today .cdn b { background: var(--y); color: var(--on-y); border-radius: 8px; padding: 0 6px; } .cd .ckey { position: absolute; top: 8px; right: 8px; color: #c2410c; font-size: .85rem; line-height: 1; }
.cd .cdots { display: none; } .cevs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evchip { display: flex; align-items: center; gap: 4px; min-width: 0; width: 100%; min-height: 28px; padding: 2px 6px; border: 0; border-left: 4px solid var(--kc, #b45309); border-radius: 6px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font: inherit; font-size: .74rem; text-align: left; cursor: pointer; }
.evchip:hover { background: var(--y-soft, #fff6dc); } .evchip .ct { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .evchip .ct i { font-style: normal; font-weight: 700; } .evchip.dn { opacity: .55; } .evchip.dn .ct { text-decoration: line-through; } .evchip.key { font-weight: 700; }
.evmore { border: 0; background: transparent; box-shadow: none; color: var(--link); font-size: .74rem; font-weight: 700; min-height: 24px; padding: 0 4px; text-align: left; cursor: pointer; }
.k-hw { --kc: #2563eb; } .k-test { --kc: #dc2626; } .k-act { --kc: #16a34a; } .k-choir { --kc: #9333ea; } .k-todo { --kc: #0891b2; } .k-other { --kc: #b45309; }
@media (max-width: 860px) { div.cd { min-height: 70px; align-items: flex-start; } .cevs { display: none; } .cd .cdots { display: flex; padding: 0 2px; } .cd .ckey { top: 4px; right: 4px; } }
.evcards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.evcard { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); border-left: 5px solid var(--kc, #b45309); } .evcard.done .et b { text-decoration: line-through; opacity: .55; } .evcard.key { background: #fff8ec; }
.evcard input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--y); }
.evopen { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; box-shadow: none; color: var(--ink); text-align: left; padding: 0 4px; cursor: pointer; font: inherit; border-radius: 8px; } .evopen:hover { background: rgba(0, 0, 0, .04); }
.evopen .ek { font-size: 1.3rem; } .evopen .et { display: flex; flex-direction: column; min-width: 0; flex: 1; } .evopen .et b { overflow-wrap: anywhere; } .evopen .star { color: #c2410c; }
.keybox { border: 1.5px solid #f3c98b; background: #fff8ec; border-radius: 14px; padding: 8px 12px 4px; margin-bottom: 12px; } .keybox h3 { margin: 0 0 6px; font-size: .95rem; color: #9a3412; } .keybox .evcard { background: #fff; }
.dvh { margin: 14px 0 6px; font-size: .95rem; }
.timeline { display: flex; flex-direction: column; border-top: 1px solid var(--line); } .hr { display: flex; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--line); padding: 4px 0; } .hl { width: 56px; flex: none; color: var(--muted); font-size: .78rem; font-weight: 700; padding-top: 4px; text-align: right; }
.hb { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; } .hr.now { background: linear-gradient(to right, rgba(220, 38, 38, .10), transparent 40%); } .hr.now .hl { color: #b91c1c; }
.uplb { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; width: 100%; min-height: 40px; border: 0; background: transparent; box-shadow: none; color: var(--ink); text-align: left; font: inherit; padding: 4px 6px; border-radius: 8px; cursor: pointer; } .uplb:hover { background: rgba(0, 0, 0, .05); }
.evmodal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(20, 20, 43, .5); }
.evbox { width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); color: var(--ink); border-radius: 18px; padding: 16px 18px 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.evhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .evhead h3 { margin: 0; flex: 1; } .evhead .ek.big { font-size: 1.8rem; }
.evedit { display: flex; flex-direction: column; gap: 10px; } .evedit label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .85rem; } .evedit .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.evedit input:not([type=checkbox]), .evedit select { font: inherit; padding: 9px 11px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); box-sizing: border-box; width: 100%; } .evedit input:disabled, .evedit select:disabled { background: #f3f1ea; color: var(--muted); }
.evedit label.chk { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-size: .95rem; } .evedit label.chk input { width: 22px; height: 22px; min-height: 0; accent-color: var(--y); }
.evtopic { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; background: #faf6ea; border-radius: 10px; padding: 8px 10px; }
@media (max-width: 480px) { .evedit .two { grid-template-columns: 1fr; } }
.cw, .cm { grid-template-columns: repeat(7, minmax(0, 1fr)); } .cd { min-width: 0; overflow: hidden; } .calgrid > .card { min-width: 0; }
.plan .calgrid.monthview { grid-template-columns: minmax(0, 1fr); } .dp-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 22px; align-items: start; } @media (max-width: 860px) { .dp-cols { grid-template-columns: minmax(0, 1fr); } }
.evchip .ct i { opacity: .8; }
.cd .cdn { cursor: pointer; } @media (max-width: 860px) { .cd .cdn { min-height: 28px; pointer-events: none; } }
.fc-hint { display: block; margin-top: 10px; font-size: 1.4rem; letter-spacing: .12em; color: var(--muted); } .fc-hint small { letter-spacing: 0; font-size: .8rem; }

/* ---------- fun games (src/features/games/games.js) ---------- */
.gm-card { max-width: 640px; margin: 14px auto; text-align: center; }
.gm-stats { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; font-weight: 700; margin-bottom: 8px; }
.gm-time { font-size: 1.3rem; color: var(--navy); } .gm-time.late { color: var(--coral); }
.gm-combo { color: var(--y-deep); min-height: 1.2em; }
.gm-q { font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 800; color: var(--ink); margin: 14px 0 18px; }
.gm-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gm-btn { font-size: 1.6rem; font-weight: 700; padding: 18px 8px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 64px; }
.gm-btn:active { transform: scale(.97); } .gm-btn.gm-right { background: #d7f5dd; border-color: #2e9e4f; } .gm-btn.gm-wrong { background: #fde0da; border-color: var(--coral); }
.gm-clue { font-size: 1.15rem; margin: 10px 0 14px; color: var(--ink-2); }
.gm-slots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.gm-slot { width: 40px; height: 48px; border-radius: 10px; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: var(--ink); }
.gm-slot.on { border-style: solid; border-color: var(--navy); background: var(--y-soft); }
.gm-slots.gm-ok .gm-slot { border-color: #2e9e4f; background: #d7f5dd; } .gm-slots.gm-bad .gm-slot { border-color: var(--coral); background: #fde0da; }
.gm-tiles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.gm-tile { width: 52px; height: 56px; border-radius: 12px; border: 0; background: var(--navy); color: #fff; font-size: 1.6rem; font-weight: 800; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.gm-tile:disabled { opacity: .25; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .gm-btn, .gm-tile { transition: transform .1s; } }

/* badge levels: medals grow and get fancier from Bronze to Legend */
.blv { margin-top: 18px; } .blv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px 16px; }
.blv-tile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); min-height: 112px; } .blv-tile.lock { background: transparent; }
.blv-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; } .blv-info b { font-size: .98rem; } .blv-info small { color: var(--muted); font-size: .76rem; line-height: 1.3; } .blv-info .bar { margin: 2px 0; }
.blv-tier { align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 8px; border-radius: 99px; background: #e7e2d4; color: #4b4637; }
.blv-tier.t1 { background: #f3dcc3; color: #6b3a0f; } .blv-tier.t2 { background: #e4e7ec; color: #3a4350; } .blv-tier.t3 { background: #fbe9a6; color: #6b4a00; } .blv-tier.t4 { background: #cdeaf5; color: #0b4a63; } .blv-tier.t5 { background: #d8d4fb; color: #3b2f9c; } .blv-tier.t6 { background: #ffd9ee; color: #8a1259; }
.medal { --s: calc(44px + var(--tier, 0) * 9px); position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .12), inset 0 0 0 3px rgba(255, 255, 255, .55); }
.medal .mi { font-size: calc(var(--s) * .5); line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.medal.t0 { background: transparent; border: 2px dashed var(--line); box-shadow: none; } .medal.t0 .mi { filter: grayscale(1); opacity: .4; }
.medal.t1 { background: radial-gradient(circle at 30% 25%, #f0b27a, #b46a2b 70%); } .medal.t2 { background: radial-gradient(circle at 30% 25%, #f4f6f8, #a9b1bb 70%); }
.medal.t3 { background: radial-gradient(circle at 30% 25%, #fff0a8, #e0a800 70%); box-shadow: 0 0 10px rgba(224, 168, 0, .45), inset 0 0 0 3px rgba(255, 255, 255, .6); }
.medal.t4 { background: radial-gradient(circle at 30% 25%, #e8fbff, #5fb4d4 70%); box-shadow: 0 0 14px rgba(95, 180, 212, .6), inset 0 0 0 3px rgba(255, 255, 255, .65); }
.medal.t5 { background: conic-gradient(from 20deg, #7c8cff, #b78cff, #6ee7f9, #7c8cff); box-shadow: 0 0 16px rgba(124, 140, 255, .7), inset 0 0 0 3px rgba(255, 255, 255, .7); }
.medal.t6 { background: conic-gradient(from 0deg, #ff6b6b, #ffd166, #6ee7a1, #5ac8fa, #b78cff, #ff6b6b); box-shadow: 0 0 20px rgba(255, 180, 80, .8), inset 0 0 0 3px rgba(255, 255, 255, .75); }
.medal .spk { position: absolute; width: 8px; height: 8px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); } .medal .s1 { top: -3px; right: 2px; } .medal .s2 { bottom: 2px; left: -3px; width: 6px; height: 6px; }
@media (prefers-reduced-motion: no-preference) { .medal.t5 .spk, .medal.t6 .spk { animation: twink 2.2s ease-in-out infinite; } .medal .s2 { animation-delay: 1s; } @keyframes twink { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } } }
.bar.full i { background: linear-gradient(90deg, #ff9f43, #ffd166, #6ee7a1); }

.gm-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 16px; }
.gm-hub-card { text-align: center; padding: 24px 18px; } .gm-hub-card h2 { margin: .3em 0; } .gm-hub-ic { font-size: 3.2rem; }

/* calendar: repeating events */
.evchip .rp { font-size: .75em; opacity: .8; }
.evform .evuntil { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.evform .evuntil[hidden] { display: none; }
.evedit textarea { width: 100%; resize: vertical; font: inherit; }

/* Spanish: cognate and false-friend tags in the word tables (src/domain/cognates.js) */
.cogchip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1.5; vertical-align: middle; background: #dff3e8; color: #17624f; white-space: nowrap; }
.cogchip.bad { background: #fde8d8; color: #9a3d12; }
.cogrow { align-items: center; gap: 8px 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line, #dfe2ec); flex-wrap: wrap; }
.cogpill { font-weight: 800; font-size: .9rem; } .cogsub { flex: 1 1 160px; min-width: 0; margin: 0; }

/* test cards on the home screen (a test set by the school: what it covers, with Study and Practice for each standard): clear rows with room around the buttons */
.dcard > ul.wlist { list-style: none; margin: 14px 0 14px; padding: 0; display: grid; gap: 10px; }
.dcard > ul.wlist > li { margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line, #e3e6ef); border-radius: 14px; background: var(--soft, #f7f8fc); line-height: 1.4; }
.dcard > ul.wlist > li > b { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; font-size: .82rem; line-height: 1.5; background: var(--y-soft, #e9eefc); color: var(--y-deep, #1c3fb0); vertical-align: 1px; }
.dcard > ul.wlist .dsub { margin-top: 4px; }
.dcard > ul.wlist .dact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dcard > ul.wlist + .dact { margin-top: 2px; flex-wrap: wrap; gap: 8px; }

/* daily plan (src/features/daily-plan/daily-plan.js) */
.pl-page { display: grid; gap: 16px; align-content: start; } .pl-page .an-title { margin: 0; }
.pl-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .pl-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.pl-ring { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--y-deep, #1c6b3a) calc(var(--p) * 1%), var(--line, #e3e6ef) 0); position: relative; }
.pl-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--card, #fff); } .pl-ring b { position: relative; font-size: 1.05rem; }
.pl-start { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; } .pl-start input { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line, #dfe2ec); font: inherit; }
.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pl-step { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 16px; border: 1px solid var(--line, #e3e6ef); border-radius: 16px; background: var(--card, #fff); }
.pl-step.done { background: var(--soft, #f4faf6); border-color: #b9dcc6; } .pl-step.done h3 { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.pl-step.test { border-color: #e8a3b8; box-shadow: 0 0 0 3px rgba(232, 80, 130, .08); }
.pl-time { display: grid; align-content: start; gap: 2px; font-variant-numeric: tabular-nums; } .pl-time b { font-size: .95rem; } .pl-time span { font-size: .8rem; color: var(--muted, #667); }
.pl-body h3 { margin: 0 0 4px; font-size: 1.05rem; } .pl-body p { margin: 0 0 8px; color: var(--muted, #556); line-height: 1.45; }
.pl-act { align-items: center; gap: 10px 16px; flex-wrap: wrap; } .pl-tick { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; }
.pl-week { display: grid; gap: 8px; } .pl-day { border: 1px solid var(--line, #e3e6ef); border-radius: 12px; padding: 8px 12px; } .pl-day.today { border-color: var(--y-deep, #1c6b3a); background: var(--soft, #f4faf6); }
.pl-day summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .pl-day summary i { margin-left: auto; font-style: normal; color: var(--muted, #667); font-size: .85rem; }
.pl-mini { margin: 8px 0 2px; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: .92rem; } .pl-mini b { display: inline-block; min-width: 2.2em; color: var(--muted, #667); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .pl-step { grid-template-columns: 1fr; gap: 6px; } .pl-time { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; } }

/* the plan banner across the top of the home screen */
.pl-banner { display: grid; gap: 14px; margin-bottom: 18px; border-color: var(--y-deep, #1c6b3a); box-shadow: 0 6px 20px rgba(20, 60, 40, .1); }
.pb-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .pb-title { flex: 1 1 260px; min-width: 0; } .pb-title h2 { margin: 0 0 2px; font-size: 1.25rem; } .pb-title p { margin: 0; color: var(--muted, #556); } .pb-title .pb-sub { margin-top: 2px; color: var(--ink, #222); }
.pb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 6px 14px; }
.pb-steps li { display: grid; grid-template-columns: 4.6em 1.6em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--soft, #f6f8fb); font-size: .93rem; }
.pb-steps li.next { background: var(--y-soft, #e7f3ec); box-shadow: inset 3px 0 0 var(--y-deep, #1c6b3a); font-weight: 700; } .pb-steps li.done { opacity: .6; } .pb-steps li.done .pb-n { text-decoration: line-through; }
.pb-t { font-variant-numeric: tabular-nums; color: var(--muted, #667); font-size: .82rem; } .pb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pb-m { color: var(--muted, #667); font-size: .82rem; white-space: nowrap; }

/* parent portal: the daily plan against what was done */
.plbar { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: var(--line, #e3e6ef); overflow: hidden; vertical-align: middle; } .plbar i { display: block; height: 100%; background: var(--y-deep, #1c6b3a); }
.plstep { display: inline-block; width: 1.25em; text-align: center; margin-right: 2px; color: var(--muted, #889); cursor: help; } .plstep.on { color: var(--y-deep, #1c6b3a); font-weight: 800; }

/* free reading (src/features/reading/reading.js) */
.rd-page { display: grid; gap: 16px; align-content: start; } .rd-page .an-title { margin: 0; }
.rd-today { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; } .rd-tbody { flex: 1 1 280px; min-width: 0; } .rd-tbody h2 { margin: 0 0 4px; }
.rd-cur { margin: 6px 0 10px; } .rd-timer, .rd-add { align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .rd-clock { font: 800 1.6rem/1 var(--num, system-ui); font-variant-numeric: tabular-nums; min-width: 3.4em; }
.rd-prompts { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.rd-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.rd-book, .rd-short { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line, #e3e6ef); border-radius: 14px; background: var(--soft, #f7f8fc); }
.rd-book > div:first-child, .rd-short > div:first-child { flex: 1 1 260px; min-width: 0; } .rd-book h3, .rd-short h3 { margin: 0 0 2px; font-size: 1.02rem; } .rd-book p, .rd-short p { margin: 2px 0; } .rd-by { color: var(--muted, #667); font-size: .88rem; }
.rd-book.reading { border-color: var(--y-deep, #1c6b3a); background: #eef8f1; } .rd-book.done { opacity: .8; }
.rd-bact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .rd-tag { font-weight: 700; font-size: .9rem; }

.rd-q { padding: 12px 0; border-top: 1px solid var(--line, #e3e6ef); } .rd-q:first-of-type { border-top: 0; } .rd-ch { display: grid; gap: 8px; }
.rd-choice { text-align: left; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line, #dfe2ec); background: var(--card, #fff); color: inherit; font: inherit; cursor: pointer; }
.rd-choice.right { border-color: #1c8a4a; background: #e6f6ec; } .rd-choice.wrong { border-color: #d44; background: #fdeaea; } .rd-why { margin: 8px 0 0; color: var(--muted, #445); line-height: 1.5; } .rd-score { font-size: 1.1rem; }

/* free reading: a full-width reader with a picture, key words and extras beside the text (src/features/reading/reading.js) */
.rd-bar { display: flex; gap: 8px; align-items: center; margin: 0; flex-wrap: wrap; } .rd-sp { flex: 1; }
.rd-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.rd-article { max-width: none; } .rd-article h1 { margin: .2em 0 .5em; font-size: clamp(1.7rem, 3vw, 2.4rem); } .rd-article p { font-size: var(--rdsize, 1.1rem); line-height: 1.75; margin: 0 0 1.1em; }
.rd-side { display: grid; gap: 14px; position: sticky; top: 14px; } .rd-side h3 { margin: 0 0 6px; font-size: 1rem; } .rd-side p { margin: 0; line-height: 1.5; }
.rd-fig { margin: 0; padding: 12px; } .rd-fig figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted, #556); line-height: 1.4; }
.rd-words dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; } .rd-words dt { font-weight: 800; } .rd-words dd { margin: 0; color: var(--muted, #445); }
.rd-fact { background: #fff7dc; border-color: #f0d68a; color: #3a3012; } .rd-go { background: #eef6ff; border-color: #bcd6f5; color: #11284a; }
.rd-poem p { font-size: var(--rdsize, 1.1rem); line-height: 1.9; font-style: italic; }
.rd-es { display: flex; gap: 10px; align-items: baseline; } .rd-es span { font-size: var(--rdsize, 1.1rem); }
@media (max-width: 900px) { .rd-cols { grid-template-columns: 1fr; } .rd-side { position: static; } }
/* the pictures (src/curriculum/reading/figures.js) */
.fg { width: 100%; height: auto; display: block; color: var(--ink, #1d2b27); } .fg .t { font: 600 11px/1 system-ui, sans-serif; fill: currentColor; } .fg .t.b { font-weight: 800; } .fg .t.s { font-size: 9.5px; font-weight: 500; opacity: .85; } .fg .t.r { text-anchor: end; } .fg .t.w { fill: #fff; font-size: 9px; }
.fg .bx { fill: rgba(28, 107, 58, .1); stroke: var(--y-deep, #1c6b3a); stroke-width: 1.4; } .fg .bx.c1 { fill: rgba(47, 111, 176, .12); stroke: #2f6fb0; } .fg .bx.c2 { fill: rgba(242, 176, 30, .18); stroke: #c58a00; } .fg .bx.c3 { fill: rgba(181, 72, 31, .12); stroke: #b5481f; }
.fg .ar line { stroke: var(--y-deep, #1c6b3a); stroke-width: 2; } .fg .ar polygon { fill: var(--y-deep, #1c6b3a); } .fg .ar.pulse line, .fg .ar.flow line { stroke-dasharray: 5 4; animation: fgflow 1.2s linear infinite; } .fg .ar.sun line { stroke: #d99a00; } .fg .ar.sun polygon { fill: #d99a00; }
@keyframes fgflow { to { stroke-dashoffset: -18; } } @media (prefers-reduced-motion: reduce) { .fg .ar line { animation: none !important; } }
.fg .ln { stroke: currentColor; stroke-width: 1.6; fill: none; } .fg .ln.dash { stroke-dasharray: 4 3; } .fg .ln.path { stroke: #b5481f; stroke-width: 2; } .fg .dot { fill: var(--y-deep, #1c6b3a); } .fg .arc { stroke: var(--y-deep, #1c6b3a); stroke-width: 3; }
.fg .hive { fill: #f4c542; stroke: #a77b00; stroke-width: 2; } .fg .sunc { fill: #f2b01e; } .fg .beedot { fill: #222; } .fg .mdark { fill: #4a4d63; } .fg .mlit { fill: #fff; stroke: #aaa; stroke-width: .6; } .fg .orbit { fill: none; stroke: currentColor; stroke-dasharray: 3 3; opacity: .45; } .fg .earth { fill: #2f6fb0; } .fg .shade { fill: rgba(0, 0, 0, .28); }
.fg .crust.c0 { fill: #c9a27a; } .fg .crust.c1 { fill: #a98563; } .fg .crust.c2 { fill: #b99870; } .fg .pit { stroke: #9a6a35; stroke-width: 3; } .fg .water { fill: #5aa2f2; } .fg .peb { fill: #7a7d88; } .fg .track { fill: rgba(128, 135, 150, .25); } .fg .bar { fill: var(--y-deep, #1c6b3a); } .fg .bar.c1 { fill: #2f6fb0; } .fg .bar.c2 { fill: #c58a00; } .fg .grid { stroke: currentColor; opacity: .18; }

/* daily goals inside the plan banner on the home screen */
.pb-goals { border-top: 1px dashed var(--line, #dfe2ec); padding-top: 12px; display: grid; gap: 8px; }
.pb-gh { display: flex; gap: 6px 16px; align-items: baseline; flex-wrap: wrap; } .pb-gp { font-size: .95rem; } .pb-gw { margin-left: auto; color: var(--muted, #556); font-size: .88rem; }
.pb-goals ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 14px; }
.pb-goals li { display: grid; grid-template-columns: 1.5em auto 1fr auto; gap: 8px; align-items: center; font-size: .92rem; }
.pb-goals .gb { height: 8px; border-radius: 99px; background: var(--line, #e3e6ef); overflow: hidden; } .pb-goals .gb i { display: block; height: 100%; background: var(--y-deep, #1c6b3a); } .pb-goals li.met .gb i { background: #1c8a4a; }
.pb-goals .gv { font-variant-numeric: tabular-nums; color: var(--muted, #556); font-size: .85rem; white-space: nowrap; }

/* the step-through explainer under a reading's picture */
.rd-play { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; } .rd-step { flex: 1 1 100%; font-size: .9rem; font-weight: 700; min-height: 1.3em; color: var(--y-deep, #1c6b3a); }
.fg .stp { transition: opacity .35s; } .fg .stp.dim { opacity: .3; } .fg .stp.hl .bx, .fg .stp.hl .dot { filter: drop-shadow(0 0 3px rgba(28, 107, 58, .6)); } .fg .stp.hl .bx { stroke-width: 2.6; }

/* lesson pictures and key words (src/curriculum/lessons/lesson-pictures.js) */
.lesson .lfig { margin: 6px auto 12px; max-width: 460px; background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 14px; padding: 8px 10px; } .lesson .lfig figcaption { font-size: .85rem; color: var(--muted, #5b6b66); text-align: center; margin-top: 4px; }
.lesson .lwords { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; background: var(--y-soft, #fff8e1); border-radius: 12px; padding: 8px 12px; margin: 0 0 14px; font-size: .9rem; } .lesson .lwords em { font-weight: 800; font-style: normal; }
.pb-gs { font-weight: 800; color: #b5481f; background: rgba(242, 176, 30, .2); border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.glance { background: var(--y-soft, #fff8e1); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; } .glance .gl-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; } .glance .gl-goals { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 6px 0; } .glance .gl-goals li.met { color: var(--y-deep, #1c6b3a); }
.glance .gl-week { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; } .gdots { display: inline-flex; gap: 5px; } .gd { width: 14px; height: 14px; border-radius: 50%; background: rgba(128, 135, 150, .3); display: inline-block; } .gd.some { background: #f2b01e; } .gd.all { background: var(--y-deep, #1c6b3a); } .gd.off { background: transparent; border: 2px dashed rgba(128, 135, 150, .6); }

/* simpler home screen: subjects first, then what to do next, with the extras folded away */
.subj-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; } .subj-grid .card { padding: 12px 14px; } .subj-grid .big-emoji { font-size: 1.8rem; line-height: 1; }
.home-today { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 18px; }
.home-more, .badge-fold { margin: 0 0 18px; padding: 0; } .home-more > summary, .badge-fold > summary { cursor: pointer; padding: 14px 18px; list-style: none; } .home-more > summary::-webkit-details-marker, .badge-fold > summary::-webkit-details-marker { display: none; }
.home-more > summary::before, .badge-fold > summary::before { content: '▸ '; } .home-more[open] > summary::before, .badge-fold[open] > summary::before { content: '▾ '; }
.home-more > .grid { padding: 0 14px 6px; } .badge-fold > .card { margin: 0 14px 14px; box-shadow: none; }
.pb-test { margin: 8px 0 0; padding: 6px 12px; background: rgba(242, 176, 30, .18); border-radius: 10px; font-size: .92rem; } .pb-test a { color: inherit; text-decoration: none; }
.study-next { margin: 10px 0; padding: 8px 12px; background: rgba(255, 255, 255, .55); border-radius: 12px; } .study-next ul { margin: 4px 0 0; padding-left: 18px; } .study-next li { margin: 3px 0; } .study-next a { margin-left: 8px; font-weight: 700; }
.mailcard { margin: 0 0 14px; padding: 0; } .mailcard > summary { cursor: pointer; padding: 12px 16px; } .mailcard > form { padding: 0 16px 14px; }
.wr-page { max-width: 760px; } .wr-prompt h2 { margin: 6px 0; font-size: 1.3rem; } .wr-step { margin: 12px 0; } .wr-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--y-deep, #1c6b3a); color: #fff; font-size: .9rem; margin-right: 6px; }
.wr-l { display: block; margin: 8px 0; font-weight: 600; } .wr-l input { display: block; width: 100%; margin-top: 4px; } #wrdraft { width: 100%; font: inherit; font-size: 1.1rem; line-height: 1.5; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line, #cfd8d3); resize: vertical; }
.wr-count { margin: 6px 0 0; } .wr-count .ok { color: var(--y-deep, #1c6b3a); font-weight: 800; } .wr-chk { display: flex; gap: 8px; margin: 6px 0; align-items: flex-start; }
.glance .gl-focus { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(128, 135, 150, .5); } .glance .gl-focus ul { margin: 4px 0 0; padding-left: 18px; font-size: .92rem; }
