/* Home and unit pages · Direction A · Calibration */
.public-workspace{width:min(100% - 40px,1120px)}
.u0{--c:var(--u0)} .u1{--c:var(--u1)} .u2{--c:var(--u2)} .u3{--c:var(--u3)} .u4{--c:var(--u4)} .u5{--c:var(--u5)} .u6{--c:var(--u6)} .u7{--c:var(--u7)}
.glyph{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--c,var(--cobalt));flex:none}
.glyph svg{width:24px;height:24px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Hero */
.hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:48px;align-items:center;margin:8px 0 32px}
.hero h1{font-size:clamp(2.5rem,5.6vw,4.2rem);line-height:1;letter-spacing:-.035em;margin:14px 0 18px}
.hero h1 em{font-style:normal;color:var(--cobalt)}
.lede{font-size:1.18rem;color:var(--muted);max-width:36ch;margin:0 0 6px}
.btn-row{display:flex;gap:12px;flex-wrap:wrap}
.hero .help{margin-top:16px}

/* Calibration chart (the signature) */
.cal{margin:0;background:var(--panel);border:1px solid var(--rule);border-radius:20px;padding:22px 22px 16px}
.cal h2{font-size:1.05rem;margin:0 0 4px}
.cal>p{margin:0 0 8px;font-size:.92rem;color:var(--muted)}
.cal svg{display:block;width:100%;height:auto}
.cal .axis{font:500 10px var(--f-mono);fill:var(--muted)}
.cal .hatch-line{stroke:var(--amber)}
.cal .ideal{stroke:var(--cobalt);stroke-width:1.5;stroke-dasharray:4 4;fill:none}
.cal .you{stroke:var(--ink);stroke-width:2.5;fill:none}
.cal .dot{fill:var(--ink)}
.cal .gap-dot{fill:var(--amber);stroke:var(--ink);stroke-width:2}
.cal .gap-line{stroke:#B86E00;stroke-width:2}
.cal .zone-label{font:500 9px var(--f-mono);fill:var(--amber-ink)}
.cal .call{font:800 13px var(--f-display);fill:var(--ink);paint-order:stroke;stroke:#fff;stroke-width:5px}
.cal .call-sub{font:400 11px var(--f-body);fill:var(--muted);paint-order:stroke;stroke:#fff;stroke-width:5px}
.cal .empty-note{font:400 12px var(--f-body);fill:var(--muted)}
.legend{display:flex;gap:6px 16px;flex-wrap:wrap;font:500 .74rem/1.4 var(--f-mono);color:var(--muted);margin:6px 0 0;padding:0;list-style:none}
.legend li::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:-1px;background:var(--k)}
.k-ideal{--k:var(--cobalt)} .k-you{--k:var(--ink)} .k-gap{--k:var(--amber)}
.cal .basis{font-size:.85rem;color:var(--muted);margin:8px 0 0}

/* Class code strip */
.class-box{background:var(--panel);border:1px solid var(--rule);border-radius:var(--radius);padding:16px 20px;margin:0 0 8px}
.class-box h2{font-size:1.05rem;margin:0}
.optional{font:500 .72rem var(--f-mono);letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-left:8px}
.class-box .help{margin:4px 0 0}
.class-box form{gap:0}
.class-box label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.class-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.class-actions input{flex:1;min-width:150px;font-family:var(--f-mono)}
.class-actions button{margin:0}
#class-status{margin:8px 0 0;font-size:.95rem}
.class-box button.secondary{margin-top:8px}

/* Unit track: a sequence, so the cards keep course order and the ramp darkens as the course goes on */
.section-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:44px 0 16px}
.section-h h2{font-size:1.6rem;margin:0}
.section-h p{margin:0;color:var(--muted);font-size:.95rem}
.track{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.unit{display:flex;flex-direction:column;gap:8px;height:100%;min-height:200px;padding:18px;border-radius:var(--radius);background:var(--panel);border:1px solid var(--rule);
  color:var(--ink);text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s}
.unit:hover{color:var(--ink);transform:translateY(-2px);border-color:var(--c);box-shadow:0 6px 18px rgba(20,27,45,.08)}
.unit .wk{font:500 .74rem/1.3 var(--f-mono);letter-spacing:.04em;color:var(--muted);margin-top:4px}
.unit h3{margin:0;font-size:1.1rem}
.unit p{margin:0;font-size:.92rem;color:var(--muted)}
.meter{margin-top:auto;padding-top:8px;display:flex;align-items:center;gap:10px;font:500 .74rem/1 var(--f-mono);color:var(--muted)}
.meter .bar{flex:1;height:6px;border-radius:6px;background:var(--cobalt-wash);overflow:hidden}
.meter .bar i{display:block;height:100%;width:0;background:var(--c);transition:width .3s}
.meter.soon{color:var(--muted)}
.unit.mixed{background:var(--ink);border-color:var(--ink);color:#fff}
.unit.mixed:hover{color:#fff;border-color:var(--amber)}
.unit.mixed .wk,.unit.mixed p{color:#C9D1E3}
.unit.mixed .glyph{background:var(--amber)}
.unit.mixed .glyph svg{stroke:var(--ink)}
.unit.mixed .go{margin-top:auto;font-weight:700;color:var(--amber)}

/* Unit page */
.crumb{font-size:.95rem;margin-bottom:18px}
.crumb a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-weight:700}
.unit-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px;align-items:start}
.unit-side{background:var(--panel);border:1px solid var(--rule);border-radius:var(--radius);padding:22px;position:sticky;top:16px}
.unit-side .glyph{width:56px;height:56px;border-radius:14px;margin-bottom:14px}
.unit-side .glyph svg{width:30px;height:30px}
.unit-side h1{font-size:1.75rem;line-height:1.1;letter-spacing:-.02em;margin:6px 0 8px}
.unit-side p{margin:0;color:var(--muted)}
.unit-side .unit-steps{margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--rule-soft);list-style:none}
.unit-side .unit-steps li{margin:0 0 10px;font-size:.92rem;line-height:1.45}
.unit-side .unit-steps b{display:block;font:500 .74rem/1.6 var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
.unit-side .unit-steps span{color:var(--muted)}
.unit-main>h2{font-size:1.25rem;margin:0 0 12px}
.drill-card{background:var(--panel);border:1px solid var(--rule);border-radius:var(--radius);padding:20px 22px;margin:0 0 12px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 22px;align-items:center}
.drill-card .drill-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 4px}
.drill-card h3{margin:0;font-size:1.2rem}
.drill-card p{margin:0;color:var(--muted);font-size:.97rem}
.drill-card .count{font:500 .74rem var(--f-mono);letter-spacing:.04em;color:var(--muted);margin-top:8px}
.levels{display:flex;border:2px solid var(--ink);border-radius:999px;overflow:hidden;align-self:center}
.levels a{display:grid;place-items:center;min-height:44px;padding:0 15px;font-weight:700;font-size:.92rem;color:var(--ink);text-decoration:none}
.levels a+a{border-left:2px solid var(--ink)}
.levels a:hover{background:var(--ink);color:#fff}
.drill-card .button{margin:0}
.coming-soon{padding:28px;border:1.5px dashed var(--rule);border-radius:var(--radius);background:var(--panel);color:var(--muted)}
.coming-soon strong{display:block;font:800 1.1rem var(--f-display);color:var(--ink);margin-bottom:4px}

@media (max-width:980px){
  .track{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero{grid-template-columns:1fr;gap:28px}
  .unit-layout{grid-template-columns:1fr}
  .unit-side{position:static}
}
@media (max-width:640px){
  .public-workspace{width:min(100% - 32px,1120px)}
  .track{grid-template-columns:1fr}
  .unit{min-height:0}
  .drill-card{grid-template-columns:1fr}
  .levels{width:100%}
  .levels a{flex:1;padding:0 8px}
  .drill-card .button{width:100%}
  .cal{padding:16px 14px 12px}
}
@media (prefers-reduced-motion:reduce){.unit:hover{transform:none}}
