/* cards.css — page layer for /baby-milestone-cards/. The shell (header, controls, buttons, explainer, footer) is
   /assets/polyatic.css; this file adds the cutting-mat stage with the card lying on it, the colour swatches and the
   birth-stats boxes. The card keeps its own printed colours in both themes: it is an object on the mat. */
@font-face{font-family:"BMC Serif";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/classic.woff2) format("woff2")}
@font-face{font-family:"BMC Script";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/handwritten.woff2) format("woff2")}

.bm-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.bm-head h1{margin-bottom:.25rem}
.bm-head .sub{margin-bottom:.375rem}
.bm-head .you-get{margin:0 0 .75rem}
.bm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- the stage ---------- */
.duo.bm-duo>.pane-result{position:static}
.bm-stage{background:radial-gradient(120% 80% at 50% 0%,rgba(255,196,120,.16),transparent 60%),linear-gradient(180deg,var(--mat),var(--mat-2));
  color:var(--mat-ink);border-radius:var(--r);padding:.625rem .75rem .875rem;box-shadow:var(--shadow);min-width:0}
.bm-stage-h{font-family:var(--mono);font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.07em;color:var(--mat-muted);margin:0 0 .5rem;text-align:center}
.bm-card{margin:0 auto;width:min(100%,15.5rem,calc((100svh - 23rem) / 1.5));min-width:10rem;line-height:0}
.bm-card canvas{display:block;width:100%;height:auto;aspect-ratio:2/3;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.1),0 18px 40px -16px rgba(0,0,0,.6)}
.bm-pager{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:.625rem 0 0}
.bm-pager button{min-width:2.75rem;min-height:2.5rem;border:1px solid rgba(255,255,255,.4);border-radius:.5rem;background:transparent;color:var(--mat-ink);font:inherit;cursor:pointer}
.bm-pager button:focus-visible,.bm-pager select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.bm-pick select{min-height:2.5rem;max-width:13rem;border:1px solid rgba(255,255,255,.4);border-radius:.5rem;background:transparent;color:var(--mat-ink);font:inherit;font-size:.875rem;padding:0 .5rem}
.bm-pick select option{color:#111;background:#fff}
.bm-dl{display:flex;flex-wrap:wrap;gap:.5rem;max-width:30rem;margin:.625rem auto 0}
.bm-dl .btn{flex:1 1 9rem}
.bm-dl .btn:disabled{opacity:.6;cursor:progress}
.bm-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.bm-summary{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.bm-msg{margin:.375rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-ink)}
.bm-msg:empty{display:none}

/* ---------- the form ---------- */
.bm-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.bm-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.bm-form .modes button small{display:block;font-weight:500;font-size:.6875rem}
.bm-form .controls .modes{margin-bottom:0}
.bm-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem}
.bm-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.bm-two[hidden],.bm-three[hidden],.bm-stats[hidden]{display:none}
.bm-two .field,.bm-three .field{margin:0}
.bm-stats{border:1px solid var(--line);border-radius:.625rem;padding:.75rem;margin:0;display:grid;gap:.875rem;min-width:0}
.bm-stats legend{font-weight:600;padding:0 .375rem}
.bm-form input[type=text],.bm-form input[type=date],.bm-form input[type=time],.bm-form select{width:100%;min-width:0}
.bm-pals{display:flex;flex-wrap:wrap;gap:.5rem}
.bm-pal{width:2.25rem;height:2.25rem;border-radius:50%;border:1px solid var(--line);cursor:pointer;padding:0;
  background:radial-gradient(circle at 50% 50%,var(--pal-ac) 0 38%,var(--pal-bg) 40%)}
.bm-pal.active{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--accent)}
.bm-pal:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.bm-check{display:flex;gap:.5rem;align-items:flex-start;font-size:.875rem;line-height:1.4}
.bm-check input{margin-top:.2rem}
@media (min-width:880px){.bm-card{width:min(100%,21rem,calc((100svh - 15rem) / 1.5))}}
