:root{color-scheme:light;--ink:#172f2d;--muted:#48625e;--paper:#f4f7f3;--line:#d8e2d8;--green:#155946;font:1rem/1.6 Arial,"Noto Sans",system-ui,sans-serif;background:var(--paper);color:var(--ink)}
*{box-sizing:border-box}
body{margin:0}
h1,h2,h3,p{margin:0}
a{color:var(--green)}
a:focus-visible,summary:focus-visible{outline:3px solid #a25813;outline-offset:3px}
.wrap{max-width:1180px;margin-inline:auto;padding-inline:clamp(14px,3.2vw,34px)}
.site-head{background:#fff;border-bottom:1px solid var(--line)}
.map-return-bar{position:sticky;top:0;z-index:5;background:var(--paper);border-bottom:1px solid var(--line)}
.map-return-bar .btn{min-height:44px;margin-block:4px}
.map-return-actions{position:relative;display:flex;align-items:center;gap:.25rem .5rem;flex-wrap:wrap}
.map-resume-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:0 1 24rem;gap:.5rem;min-width:0}
#map-resume-practice,#map-resume-practice-empty{grid-column:1}
#map-resume-game,#map-resume-game-empty{grid-column:2}
.map-resume-actions .map-resume-link,.map-resume-empty{display:grid;grid-row:1;grid-template-rows:1fr auto;align-items:start;justify-items:start;gap:3px;min-width:0;line-height:1.3}
.map-resume-actions .map-resume-link{grid-template-rows:1fr auto auto}
.map-resume-empty{min-height:44px;margin-block:4px;padding:.48rem .72rem;border:1px dashed #aebfb4;border-radius:.65rem;color:var(--muted);font-weight:650;text-decoration:none;overflow-wrap:anywhere}
.map-resume-start{color:var(--green);font-weight:750;text-decoration:underline;text-underline-offset:.16em;word-break:keep-all}
.map-resume-actions small{font-size:.8em;font-weight:650;overflow-wrap:anywhere;word-break:keep-all}
.map-resume-actions .map-resume-question{justify-self:stretch;font-weight:500}
.map-resume-question strong{font-weight:800;white-space:nowrap}
.map-resume-question > span{display:inline-block;white-space:nowrap;font-size:.94em;color:var(--muted)}
.map-resume-actions.stack-totals .map-resume-question > span{display:block;width:max-content}
.map-resume-title{display:flex;align-items:center;flex-wrap:wrap;gap:3px .45rem;word-break:keep-all;overflow-wrap:anywhere}
.map-resume-badge{padding:.14em .5em;border-radius:1em;background:#fff0bd;color:#5c3b00;font-size:.8em;white-space:nowrap}
/* A wrapped unit name increases the shared middle row, keeping question numbers aligned. */
@supports (grid-template-rows:subgrid){
  .map-resume-actions { row-gap: 0; }
  .map-resume-actions .map-resume-link,.map-resume-empty {
    grid-row: 1 / span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .map-resume-actions small { margin-block-start: 3px; }
  .map-resume-empty > small { grid-row: 3; }
}
@media(max-width:440px){
  .map-return-actions .btn,.map-resume-empty{font-size:.875rem}
  .map-resume-actions{flex-basis:100%}
}
.top{min-height:64px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.5rem;color:var(--ink);font-weight:750;text-decoration:none;min-height:46px}
.brand-icon{display:grid;place-items:center;background:#e3f1e6;border-radius:.6rem;width:32px;height:32px;color:#17654e;font-size:1.35rem}
.brand-science{font-size:.8rem;color:var(--muted);border-left:1px solid var(--line);padding-left:.5rem}
.text-link{display:inline-flex;align-items:center;gap:.3em;min-height:44px;font-weight:700;font-size:.88rem;text-underline-offset:.22em}
.intro{position:relative;overflow:hidden;margin-top:clamp(16px,4vw,40px);border:1px solid #1f6753;border-radius:1.3rem;background:#184b40;color:#fff;padding:clamp(18px,4vw,42px)}
.intro::before,.intro::after{content:"";position:absolute;right:-22px;top:-88px;width:250px;height:250px;border:1px dashed #75b49c;border-radius:50%;pointer-events:none;opacity:.55}
.intro::after{width:345px;height:345px;right:-75px;top:-126px}
.intro>*{position:relative;z-index:1}
.eyebrow{font-size:.78rem;font-weight:750;letter-spacing:.075em;color:#296551}
.intro .eyebrow{color:#c4e8d7}
.intro h1{font-size:clamp(1.8rem,5vw,3.1rem);line-height:1.22;letter-spacing:.02em;margin:.26em 0 .38em}
.intro p:not(.eyebrow){color:#e2f3e9}
.intro-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
.btn{display:inline-flex;align-items:center;gap:.35rem;min-height:46px;padding:.48rem .72rem;border-radius:.65rem;border:1px solid transparent;text-decoration:none;font-weight:700}
.primary{background:#e0f2d6;color:#184b40;border-color:#e0f2d6}
.secondary{background:#fff;color:#184b40;border-color:#d4e6d9}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(7px,1.5vw,15px);margin:1.1rem 0 .55rem}
.metric{padding:.7rem .8rem;background:#fff;border:1px solid var(--line);border-radius:.8rem;min-width:0}
.metric dt{font-size:.82rem;color:var(--muted);font-weight:700}
.metric dd{margin:0;font-size:clamp(1.35rem,3.5vw,2.1rem);font-weight:800;line-height:1.25}
.metric small{font-size:.73em;font-weight:600;color:var(--muted)}
.scope-note{font-size:.82rem;color:var(--muted)}
.map-section{margin-top:clamp(21px,5vw,38px)}
.map-heading{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:.4rem}
.map-heading h2{font-size:clamp(1.4rem,3.5vw,1.8rem);line-height:1.35}
.map-heading>p{font-size:.86rem;color:var(--muted)}
.legend{display:flex;flex-wrap:wrap;gap:.4rem .85rem;list-style:none;margin:.7rem 0 .9rem;padding:0;font-size:.8rem;color:var(--muted)}
.dot{display:inline-flex;justify-content:center;align-items:center;width:1.3rem;height:1.3rem;border-radius:50%;font-size:.8rem;font-weight:750}
.learned{background:#e8ede9;color:#415e50}
.self{background:#daf0e2;color:#135742}
.review{background:#fff1d7;color:#753b0a}
.mastery{background:#e9e2f8;color:#512d85}
.grade-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,1.5vw,18px)}
.grade{--accent:#25614e;--wash:#e9f5ec;border:1px solid var(--line);border-radius:1rem;background:#fff;overflow:hidden}
.grade[data-grade="2"]{--accent:#285d78;--wash:#eaf3f9}
.grade[data-grade="3"]{--accent:#634384;--wash:#f3edf9}
.grade header{display:flex;align-items:center;gap:.7rem;min-height:56px;padding:.65rem .8rem;background:var(--wash);color:var(--accent)}
.grade h3{font-size:1.15rem;white-space:nowrap}
.grade header p{font-size:.78rem;font-weight:700}
.units{display:grid;gap:0;padding:0;list-style:none;margin:0}
.unit{min-width:0;position:relative;margin-inline:.7rem;padding:.7rem .1rem .7rem 1.15rem;border-bottom:1px solid #e8eee7}
.unit:last-child{border-bottom:0}
.unit::before{content:"";width:.52rem;height:.52rem;position:absolute;left:.08rem;top:1.05rem;background:var(--accent);border-radius:50%}
.unit:has(.pending)::before{background:#fff;border:1px solid #9cafa2}
.unit h4{font-size:.96rem;line-height:1.4;margin:0 0 .18rem;overflow-wrap:anywhere}
.unit .pending,.unit .coverage{font-size:.77rem;color:var(--muted)}
.unit-progress{margin:.3rem 0;display:flex;flex-wrap:wrap;gap:.25rem .5rem;align-items:center;font-size:.77rem;color:var(--muted)}
.unit-progress span:not(.dot){white-space:nowrap}
.stamp-trail{display:flex;flex-wrap:wrap;gap:.24rem;list-style:none;margin:.28rem 0 .55rem;padding:0}
.stamp{position:relative;display:grid;place-items:center;width:1.35rem;height:1.35rem;border:1px solid currentColor;border-radius:50%;font-size:.78rem;font-weight:800}
.stamp.empty{color:#718778;border-style:dashed;background:#fafcf9}
.stamp.has-review::after{content:"";position:absolute;right:-2px;top:-2px;width:.4rem;height:.4rem;border:1px solid white;border-radius:50%;background:#a55714}
.unit-actions{display:flex;flex-wrap:wrap;gap:.25rem .42rem}
.unit-actions .btn{min-height:44px;font-size:.79rem;background:var(--wash);color:var(--accent)}
.shared-map{margin-top:.8rem}
.shared-map .unit{margin-inline:.8rem;padding-bottom:.8rem}
.guide{border:1px solid var(--line);background:#fff;padding:.25rem .8rem .55rem;border-radius:.8rem;margin-top:1rem;font-size:.84rem}
.guide summary{cursor:pointer;min-height:43px;display:list-item;padding:.55rem 0;color:var(--green);font-weight:700}
.guide p{margin:.35rem 0;color:var(--muted)}
.footer{padding-top:1.25rem;padding-bottom:1.25rem;color:var(--muted);font-size:.8rem}
.warning{background:#fff1d7;border-radius:.65rem;color:#6e3708;padding:.6rem .7rem;margin:.55rem 0}
[hidden]{display:none!important}
@media(max-width:700px){.grade-grid{grid-template-columns:minmax(0,1fr)}.grade .units{grid-template-columns:repeat(2,minmax(0,1fr))}.grade .unit:nth-last-child(2){border-bottom:0}}
@media(max-width:440px){.grade .units{grid-template-columns:minmax(0,1fr)}.grade .unit:nth-last-child(2){border-bottom:1px solid #e8eee7}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wide{display:none}.intro::before,.intro::after{opacity:.27}}
