/* honeymilk. course kit · player layout. Colors and fonts come from the theme file. */
@font-face{font-family:'Atkinson Hyperlegible';src:url(fonts/atk-400.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Atkinson Hyperlegible';src:url(fonts/atk-700.woff2) format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Young Serif';src:url(fonts/young.woff2) format('woff2');font-display:swap}
@font-face{font-family:'Jost';src:url(fonts/jost.woff2) format('woff2');font-display:swap}
*{box-sizing:border-box;margin:0;padding:0}
html{font-size:100%}html.hm-s1{font-size:118.75%}html.hm-s2{font-size:137.5%}
html,body{height:100%}
body{background:var(--page);color:var(--text);font-family:var(--font-body);font-size:1.0625rem;line-height:1.55}
button,textarea{font:inherit;color:inherit}
h1,h2,h3{font-family:var(--font-head);font-weight:400;line-height:1.15}
h2{font-size:clamp(1.6rem,3.2vw,2.3rem);margin-bottom:.6rem}
h3{font-size:1.2rem}
p+p{margin-top:.7rem}
#app{height:100%;display:flex;flex-direction:column;max-width:1280px;margin:0 auto;background:var(--surface)}
.hm-skip{position:absolute;left:-9999px}.hm-skip:focus{left:12px;top:12px;z-index:9;background:var(--surface);padding:10px 14px;border:3px solid var(--focus)}
.hm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
h2:focus,.hm-stage:focus{outline:none}

/* top bar */
.hm-top{background:var(--bar);color:var(--bar-text);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 22px;flex-wrap:wrap}
.hm-brand{font-size:1.15rem;display:flex;align-items:center;gap:10px}
.hm-brand::before{content:"";width:14px;height:20px;border-radius:7px 7px 0 0;background:var(--accent);flex:none}
.hm-tools{display:flex;gap:6px;flex-wrap:wrap}
.hm-tool{min-height:44px;min-width:44px;padding:0 14px;border-radius:999px;border:2px solid var(--bar-line);background:transparent;color:var(--bar-text);font-weight:700;font-size:.9rem;cursor:pointer;display:inline-flex;align-items:center;text-decoration:none}
.hm-tool[aria-expanded="true"]{background:var(--bar-text);color:var(--bar)}
.hm-bar{height:6px;background:var(--bar-line)}.hm-bar span{display:block;height:6px;width:0;background:var(--accent);transition:width .3s}

/* body + drawer */
.hm-body{flex:1;display:flex;min-height:0;position:relative}
.hm-drawer{width:320px;flex:none;background:var(--panel);border-right:1px solid var(--line);padding:24px;overflow:auto}
.hm-drawer h2{font-size:1.5rem}
.hm-menu{list-style:none;display:flex;flex-direction:column;gap:6px;counter-reset:m}
.hm-menu button,.hm-locked{display:block;width:100%;text-align:left;min-height:44px;padding:10px 12px;border-radius:12px;border:2px solid transparent;background:transparent;cursor:pointer}
.hm-menu button:hover{border-color:var(--primary)}
.hm-menu button[aria-current]{background:var(--surface);border-color:var(--primary);font-weight:700}
.hm-locked{color:var(--muted);cursor:default}
.hm-dl dt{font-weight:700;margin-top:14px}.hm-dl dd{margin-top:2px}
.hm-seg{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 18px}
.hm-seg button{min-height:44px;padding:0 14px;border-radius:999px;border:2px solid var(--primary);background:var(--surface);cursor:pointer;font-weight:700}
.hm-seg button[aria-pressed="true"]{background:var(--primary);color:var(--on-primary)}
.hm-label{font-weight:700;display:block;margin-top:10px}

/* stage */
.hm-stage{flex:1;overflow:auto;padding:clamp(20px,4vw,48px)}
.hm-slide{max-width:1080px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;justify-content:center;gap:16px}
.hm-read{max-width:760px}
.hm-eye{font-family:var(--font-label);text-transform:uppercase;letter-spacing:.14em;font-size:.82rem;color:var(--eyebrow);margin-bottom:.4rem}
.hm-xl{font-size:clamp(2.3rem,5.4vw,3.8rem)}
.hm-small{font-size:.92rem;color:var(--muted)}
.hm-split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(20px,4vw,48px);align-items:center}
.hm-split.hm-flip>:first-child{order:2}
.hm-fig img{width:100%;height:auto;display:block;border-radius:22px;aspect-ratio:4/3;object-fit:cover}
.hm-fig.hm-arch img{border-radius:999px 999px 22px 22px;aspect-ratio:3/4;max-width:400px;margin-left:auto}
.hm-fig figcaption{font-size:.85rem;color:var(--muted);margin-top:6px}
.hm-cover{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;align-items:center}
.hm-cover-txt{display:flex;flex-direction:column;gap:14px}
.hm-callout{background:var(--tint);border-left:6px solid var(--accent-strong);border-radius:0 16px 16px 0;padding:14px 18px;margin-top:14px}
.hm-ticks{list-style:none;display:flex;flex-direction:column;gap:10px;margin-top:6px}
.hm-ticks li{padding-left:34px;position:relative}
.hm-ticks li::before{content:"✓";position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:var(--tint);color:var(--primary);font-weight:700;display:grid;place-items:center;font-size:.85rem}
.hm-num{padding-left:1.4rem;display:flex;flex-direction:column;gap:8px}
.hm-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:8px}
.hm-col{background:var(--tint);border-radius:20px;padding:20px}
.hm-big{font-family:var(--font-head);font-size:2rem;color:var(--primary);line-height:1.1}
.hm-steps{list-style:none;display:flex;flex-direction:column;gap:14px;margin-top:6px}
.hm-steps li{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start;background:var(--tint);border-radius:18px;padding:16px 18px}
.hm-stepn{width:40px;height:40px;border-radius:50%;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;font-family:var(--font-head);font-size:1.2rem}
.hm-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.hm-card{text-align:left;border:2px solid transparent;border-radius:18px;background:var(--tint);padding:16px;cursor:pointer;display:flex;flex-direction:column;gap:8px;min-height:130px}
.hm-card[aria-expanded="true"]{background:var(--surface);border-color:var(--primary)}
.hm-cardn{width:36px;height:36px;border-radius:50%;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;font-family:var(--font-head)}
.hm-seen{margin-top:auto;font-size:.85rem;font-weight:700;color:var(--good-text)}
.hm-detail{background:var(--warm);border-radius:18px;padding:18px 20px}
.hm-tablist{display:flex;flex-wrap:wrap;gap:6px;border-bottom:2px solid var(--line)}
.hm-tablist button{min-height:44px;padding:0 16px;border:2px solid transparent;border-bottom:0;border-radius:14px 14px 0 0;background:transparent;cursor:pointer;font-weight:700;margin-bottom:-2px}
.hm-tablist button[aria-selected="true"]{background:var(--surface);border-color:var(--line);border-bottom:2px solid var(--surface);color:var(--primary)}
.hm-panel{padding:18px 4px}
.hm-tx{margin-top:14px}.hm-tx summary{cursor:pointer;font-weight:700;color:var(--primary);min-height:44px;display:flex;align-items:center}

/* questions */
.hm-q{font-size:clamp(1.35rem,2.4vw,1.75rem);max-width:38ch}
.hm-opts{display:flex;flex-direction:column;gap:10px;margin:6px 0}
.hm-opt{display:flex;gap:14px;align-items:flex-start;text-align:left;width:100%;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:13px 16px;cursor:pointer}
.hm-opt:hover:not([aria-disabled="true"]){border-color:var(--primary)}
.hm-k{flex:none;width:32px;height:32px;border-radius:50%;border:2px solid var(--primary);color:var(--primary);display:grid;place-items:center;font-weight:700;font-size:.85rem}
.hm-mark{margin-left:auto;flex:none;font-size:.85rem;font-weight:700;white-space:nowrap;padding-top:4px}
.hm-opt[aria-pressed="true"]{border-color:var(--primary);background:var(--tint)}
.hm-opt[aria-pressed="true"] .hm-k{background:var(--primary);color:var(--on-primary)}
.hm-opt.is-tried{border-style:dashed;background:var(--panel);color:var(--muted);cursor:not-allowed}
.hm-opt.is-tried .hm-k{border-color:var(--muted);color:var(--muted)}
.hm-opt.is-right{border-color:var(--good-text);background:var(--good)}
.hm-opt.is-right .hm-k{background:var(--good-text);border-color:var(--good-text);color:var(--surface)}
.hm-opt.is-right .hm-mark{color:var(--good-text)}
.hm-fb{border-radius:16px;padding:14px 18px}.hm-fb b{display:block;margin-bottom:2px}
.hm-fb.is-good{background:var(--good);color:var(--good-text)}
.hm-fb.is-hint{background:var(--hint);color:var(--hint-text)}
.hm-fb.is-show{background:var(--tint);border-left:6px solid var(--primary)}
.hm-fb.is-saved{background:var(--tint)}
.hm-fb p{color:var(--text)}
.hm-note{width:100%;border:2px solid var(--line);border-radius:14px;padding:12px;background:var(--surface);margin-top:6px}
.hm-links{list-style:none;display:flex;flex-direction:column;gap:10px}
.hm-links a,.hm-linkbtn{color:var(--primary);font-weight:700;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.hm-linkbtn{background:none;border:0;text-decoration:underline;cursor:pointer}
.hm-links .hm-small{display:block}
.hm-review{list-style:none;display:flex;flex-direction:column;gap:10px;margin:10px 0}
.hm-review li{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:2px solid var(--line);border-radius:16px;padding:12px 16px}
.hm-score{font-family:var(--font-head);font-size:4rem;color:var(--primary);line-height:1}
.hm-badge{display:inline-block;padding:6px 14px;border-radius:999px;font-weight:700;margin-top:8px}
.hm-badge.is-pass{background:var(--good);color:var(--good-text)}
.hm-badge.is-notyet{background:var(--hint);color:var(--hint-text)}

/* footer */
.hm-foot{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 20px;flex-wrap:wrap;background:var(--surface)}
.hm-where,.hm-gate{font-size:.9rem;color:var(--muted)}.hm-gate{flex:1;text-align:center}
.hm-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.hm-foot .hm-row{margin:0}
.hm-btn{min-height:44px;padding:0 20px;border-radius:999px;font-weight:700;cursor:pointer;border:2px solid var(--primary)}
.hm-primary{background:var(--primary);color:var(--on-primary)}
.hm-ghost{background:var(--surface);color:var(--text);border-color:var(--text)}
.hm-btn[disabled]{opacity:.45;cursor:not-allowed}
.hm-btn[hidden]{display:none}

@media (max-width:820px){
 .hm-split,.hm-cover{grid-template-columns:1fr}.hm-split.hm-flip>:first-child{order:0}
 .hm-fig.hm-arch img{aspect-ratio:4/3;border-radius:22px;max-width:100%}
 .hm-drawer{position:absolute;inset:0;width:auto;z-index:5}
 .hm-top{padding:10px 14px}.hm-stage{padding:20px 16px}
 .hm-gate{order:3;flex-basis:100%;text-align:left}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* narration */
.hm-narr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;background:var(--tint);border-radius:22px;padding:6px 8px 6px 6px;align-self:flex-start;max-width:100%}
.hm-narr .hm-tx{margin:0;flex-basis:auto}.hm-narr .hm-tx[open]{flex-basis:100%;background:var(--surface);border-radius:16px;padding:6px 14px 12px}
.hm-narr .hm-tx[open] ~ *{order:2}
.hm-play{min-height:44px;padding:0 16px 0 6px;border-radius:999px;border:0;background:var(--primary);color:var(--on-primary);font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.hm-play-i{width:32px;height:32px;border-radius:50%;background:var(--on-primary);color:var(--primary);display:grid;place-items:center;font-size:.8rem}
.hm-time{font-size:.9rem;color:var(--muted);font-variant-numeric:tabular-nums}

/* inspect: spot the red flags */
.hm-inspect{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px;align-items:start}
.hm-mail{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 14px 16px;display:flex;flex-direction:column;gap:2px;box-shadow:0 14px 30px -24px rgba(37,40,90,.55)}
.hm-mrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;border-bottom:1px solid var(--line);padding:4px 0}
.hm-mrow.is-body{border-bottom:0}
.hm-mrow:nth-child(3){border-bottom:2px solid var(--line);padding-bottom:10px;margin-bottom:6px}
.hm-mlab{font-family:var(--font-label);font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);min-width:64px}
.hm-part{font:inherit;color:var(--text);text-align:left;background:transparent;border:2px dashed transparent;border-radius:10px;padding:6px 8px;cursor:pointer;min-height:44px;flex:1 1 220px}
.hm-part:hover{border-color:var(--line);background:var(--panel)}
.hm-part[aria-pressed="true"]{border-color:var(--primary);border-style:solid}
.hm-part.is-flag{background:var(--hint);color:var(--hint-text)}
.hm-part.is-ok{background:var(--good);color:var(--good-text)}
.hm-part.is-cta{flex:0 1 auto;background:var(--primary);color:var(--on-primary);border-radius:999px;padding:10px 20px;font-weight:700;margin:6px 0}
.hm-part.is-cta.is-flag{background:var(--hint);color:var(--hint-text);border:2px solid var(--hint-text)}
.hm-tagf,.hm-tagok{font-size:.82rem;font-weight:700;white-space:nowrap;border-radius:999px;padding:2px 10px}
.hm-tagf{background:var(--hint);color:var(--hint-text)}
.hm-tagok{background:var(--good);color:var(--good-text)}
@media (max-width:760px){.hm-inspect{grid-template-columns:1fr}}
.hm-slide p + .hm-q{margin-top:12px}
html.hm-hc .hm-part.is-flag,html.hm-hc .hm-part.is-ok{border:2px solid #000}html.hm-hc .hm-mail{border-color:#000}
