/* cocoa.css — page layer for /hot-cocoa-bar-printables/. The shell (header, controls, buttons, explainer,
   footer) is /assets/polyatic.css; this adds the mat stage with the set on it (paper stays paper-coloured in
   both themes), the part row, and the form details. Built from polyatic's tokens only. The lettering faces
   are the address label maker's own files, referenced by path. */
@font-face{font-family:"CB Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/address-label-maker/fonts/classic.woff2) format("woff2")}
@font-face{font-family:"CB Script";font-style:normal;font-weight:400;font-display:swap;src:url(/address-label-maker/fonts/handwritten.woff2) format("woff2")}

.hc-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.hc-head h1{margin-bottom:.25rem}
.hc-head .sub{margin-bottom:.625rem}

/* ---------- the stage ---------- */
.duo.hc-duo>.pane-result{position:static}
@media (min-width:920px){
  .duo.hc-duo{grid-template-columns:minmax(22rem,1.15fr) minmax(0,.85fr)}
  .duo.hc-duo>.pane-result{position:sticky;top:1rem}
}
.hc-stage{color:var(--mat-ink);border-radius:var(--r);padding:.625rem;box-shadow:var(--shadow);min-width:0;
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 1px,transparent 1px 1.5rem),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 1.5rem),linear-gradient(180deg,var(--mat),var(--mat-2))}
.hc-what.modes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.25rem;margin:0 0 .5rem;padding:.25rem;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.18)}
@media (max-width:560px){.hc-what.modes{grid-template-columns:repeat(3,minmax(0,1fr))}}
.hc-what.modes button{padding:.45rem .125rem;font-size:.75rem;line-height:1.15;white-space:normal;color:var(--mat-ink);background:transparent;box-shadow:none;min-height:2.25rem}
.hc-what.modes button:hover{color:#fff;background:rgba(255,255,255,.08)}
.hc-what.modes button[aria-pressed="true"]{background:var(--signal,#c8f560);color:#10130f;border-color:transparent}
.hc-pager{display:flex;align-items:center;gap:.5rem;margin:0 0 .5rem}
.hc-pager[hidden]{display:none}
.hc-pager button{flex:none;width:2.75rem;height:2rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:var(--mat-ink);font:700 1.125rem/1 var(--sans,system-ui);cursor:pointer;touch-action:manipulation}
.hc-pager button:disabled{opacity:.35;cursor:default}
.hc-where{flex:1;min-width:0;margin:0;text-align:center;font-family:var(--mono);font-size:.75rem;color:var(--mat-muted)}
.hc-canvas{display:block;margin:0 auto;max-width:100%;height:auto;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.35),0 10px 24px -12px rgba(0,0,0,.6)}
.hc-stage .btn:focus-visible,.hc-stage button:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.hc-cap{margin:.5rem 0 0;font-family:var(--mono);font-size:.6875rem;line-height:1.45;letter-spacing:.01em;color:var(--mat-muted)}
.hc-cap:empty{display:none}
.hc-actions{display:flex;flex-wrap:wrap;gap:.375rem;margin:.5rem 0 0}
.hc-actions .btn{flex:1 1 3.5rem;padding:0 .5rem;white-space:nowrap}
.hc-actions .btn.hc-main{flex:4 1 12rem;font-size:.9375rem}
.hc-actions .btn[hidden]{display:none}
.hc-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.hc-stage .btn:disabled{opacity:.6;cursor:progress}
.hc-msg{margin:.5rem 0 0;font-size:.875rem;font-weight:600;line-height:1.45;color:var(--mat-ink)}
.hc-msg:empty{display:none}

/* ---------- settings ---------- */
.hc-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.hc-form .modes button{padding:.5rem .25rem}
.hc-form .modes button small{display:block;font-weight:500;font-size:.6875rem;opacity:.8}
.hc-looks.modes{display:grid;grid-template-columns:repeat(4,1fr)}
@media (max-width:560px){.hc-looks.modes{grid-template-columns:repeat(3,1fr)}}
.hc-three.modes{display:grid;grid-template-columns:repeat(3,1fr)}
.hc-four.modes{display:grid;grid-template-columns:repeat(4,1fr)}
@media (max-width:420px){.hc-four.modes{grid-template-columns:repeat(2,1fr)}}
.hc-note{font-size:.75rem;font-weight:400;color:var(--muted)}
.hc-label{display:block;font-size:.875rem;font-weight:600;color:var(--ink-2);margin:.625rem 0 .25rem}
.hc-input{box-sizing:border-box;width:100%;font:inherit;font-size:1rem;color:var(--ink);background:var(--surface);border:1px solid var(--line-2);border-radius:.5rem;padding:.5rem .625rem;min-height:2.75rem}
.hc-num{max-width:8rem}
textarea.hc-input{resize:vertical;line-height:1.45}
.hc-input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.hc-sec{border:1px solid var(--line);border-radius:var(--r,.75rem);padding:.25rem .875rem .75rem;margin:.75rem 0 0;min-width:0}
.hc-sec[hidden]{display:none}
.hc-sec legend{font-weight:700;font-size:1rem;padding:0 .375rem}
.hc-sec .modes{margin:.25rem 0 .25rem}
.hc-hint{margin:.375rem 0 .5rem;font-size:.8125rem;color:var(--muted);line-height:1.5}
.hc-hint:empty{display:none}
.hc-warn{color:var(--bad);font-weight:600}
.hc-check{display:flex;gap:.5rem;align-items:flex-start;font-size:.9375rem;line-height:1.4;color:var(--ink-2);cursor:pointer;padding:.375rem 0 0}
.hc-check input{margin-top:.15rem;accent-color:var(--accent);width:1.125rem;height:1.125rem;flex:none}
.hc-more{margin:.375rem 0 0}
.hc-more summary,.hc-alg summary{cursor:pointer;font-size:.875rem;color:var(--ink-2);padding:.25rem 0}
.hc-chips{display:flex;flex-wrap:wrap;gap:.25rem;margin:.375rem 0 0}
.hc-chip{display:inline-flex;align-items:center;gap:.3rem;font-size:.8125rem;border:1px solid var(--line-2);border-radius:999px;padding:.3rem .6rem;cursor:pointer;color:var(--ink-2);background:var(--bg)}
.hc-chip input{accent-color:var(--accent);margin:0}
.hc-chip:has(input:checked){border-color:var(--accent);font-weight:600}
.hc-algs{list-style:none;margin:.25rem 0;padding:0;display:grid;gap:.25rem}
.hc-alg{border:1px solid var(--line);border-radius:.5rem;padding:.25rem .5rem;background:var(--surface)}
.hc-alg summary b{font-weight:600}
.hc-alg summary span{font-size:.75rem;color:var(--muted)}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
