/* The high-contrast baby cards page (spec 70 §3.1): the adult site frame
   (site.css paper, Space Grotesk headings, Public Sans text), small still
   previews only, and no motion anywhere: no transition, no animation. */
body[data-audience="parent"] *, body[data-audience="parent"] *::before, body[data-audience="parent"] *::after { animation: none !important; transition: none !important; }

.hc-page { max-width: 1160px; margin-inline: auto; padding: 0 1rem 4rem; }
.hc-top { display: grid; gap: 1.25rem; }
.hc-hero h1 { margin: .25rem 0 .75rem; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; }
.hc-mark { vertical-align: middle; margin-right: .5rem; }
.hc-lede { font-size: 1.12rem; margin: 0 0 .5rem; }
.hc-trust, .hc-small { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.hc-preview { margin: 0; }
.hc-preview img { display: block; width: 144px; height: 194px; border: 1px solid var(--line); background: #FFFFFF; }
@media (min-width: 768px) {
  .hc-top { grid-template-columns: minmax(0, 1fr) 176px; align-items: start; }
  .hc-preview { grid-column: 2; grid-row: 1; }
}

.hc-page fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.hc-page legend { font-weight: 800; margin-bottom: .5rem; padding: 0; }
.hc-ages { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.hc-ages legend { grid-column: 1 / -1; }
.hc-age { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.hc-age:has(input:checked) { border-color: var(--ink); }
.hc-age-text strong { display: block; }
.hc-age-text span { color: var(--muted); font-size: .85rem; line-height: 1.25; }
.hc-age input { margin: 0; }
@media (max-width: 479px) { .hc-age { grid-template-columns: auto 1fr; } .hc-age svg { grid-column: 2; } }
.hc-page svg.hc-thumb { width: 56px; height: 56px; display: block; background: #FFFFFF; border: 1px solid var(--line); }

.hc-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 .5rem; }
.hc-print, .hc-print-now { min-height: 56px; border: 2px solid var(--ink); border-radius: 999px; padding: .7rem 1.4rem; background: var(--ink); color: #FFFFFF; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.hc-print:disabled, .hc-print-now:disabled { opacity: .45; cursor: not-allowed; }
.hc-options > summary { display: inline-flex; align-items: center; min-height: 48px; padding: .5rem 1.2rem; border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; cursor: pointer; list-style: none; }
.hc-options > summary::-webkit-details-marker { display: none; }
.hc-options[open] > summary { margin-bottom: 1rem; }
.hc-seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.hc-seg label { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: .3rem .9rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
.hc-seg label:has(input:checked) { border-color: var(--ink); }
.hc-seg label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.hc-note { font-size: .92rem; color: var(--muted); margin: .4rem 0 0; }
.hc-switch { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; }
.hc-switch input { width: 24px; height: 24px; margin: .1rem 0 0; }
.hc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.hc-card { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-height: 44px; padding: .4rem .25rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; }
.hc-card[aria-pressed="false"] { border-color: var(--line); }
.hc-card[aria-pressed="false"] svg { opacity: .5; }
.hc-card[aria-disabled="true"] { opacity: .45; cursor: not-allowed; border-style: dashed; }
.hc-why { font-size: .75rem; color: var(--muted); }
.hc-status { min-height: 1.5em; margin: .25rem 0; font-weight: 700; }
.hc-page :focus-visible, .hc-dialog :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hc-nojs a { font-weight: 700; }

dialog.hc-dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; box-sizing: border-box; }
dialog.hc-dialog::backdrop { background: rgba(20, 34, 29, .5); }
@media (min-width: 768px) { dialog.hc-dialog { width: 760px; max-width: calc(100vw - 32px); height: auto; max-height: calc(100dvh - 48px); margin: 24px auto; border-radius: 20px; } }
.hc-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1rem .5rem; }
.hc-dialog-head h2 { margin: 0; font-size: 1.4rem; }
.hc-close { min-height: 44px; min-width: 44px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font: inherit; font-weight: 800; padding: .3rem 1rem; cursor: pointer; }
.hc-dialog-body { padding: 0 1rem 1rem; }
.hc-sheets { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.hc-sheets svg { display: block; width: 160px; height: 215px; max-width: 160px; border: 1px solid var(--line); }
.hc-assembly svg { display: block; max-width: 280px; width: 100%; height: auto; }
.hc-dialog-bar { position: sticky; bottom: 0; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.hc-dialog-bar .hc-print-now { width: 100%; }

.hc-guide { max-width: 760px; }
.hc-guide h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.hc-guide dt { font-weight: 800; margin-top: 1rem; }
.hc-guide dd { margin: .25rem 0 0; }
.hc-figure { margin: 1rem 0; }
.hc-sources li { margin-bottom: .5rem; }

/* Printing (foundation 2.6, as in kids.css): the print root replaces the page
   only once it is complete. */
@page { size: auto; margin: 0.4in; }
.kids-print-root { display: none; }
@media print {
  body.kids-print-ready > *:not(.kids-print-root) { display: none !important; }
  body.kids-print-ready .kids-print-root { display: block; }
  .kids-sheet { width: 7.25in; height: 9.75in; margin: 0 auto; break-after: page; page-break-after: always; }
  .kids-sheet:last-child { break-after: auto; page-break-after: auto; }
  .kids-sheet svg { width: 7.25in; height: 9.75in; display: block; }
}
