/* The age tiles, one piece for two pages (18 Nov 2026): the order page's "About your child" question and the start of their letter
   on the homepage and /choose/. The age is a row of number tiles in the serif (a radio group), holly when picked with the gold underline;
   the last tile, 14+, opens a labelled number box for any age from 14 to 99. The markup is _partials/age-tiles.html, the behaviour
   is age.js; the page's own CSS (order.css, choose.css) only sets how many tiles sit in a row and how the box looks beside them.
   --age-edge and --age-field are the tile's border and fill; a page sets them, and these are the values the order page has always had. */
.age{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.age__opt{position:relative;display:grid;place-items:center;height:46px;border:1.5px solid var(--edge,rgba(30,74,56,.62));border-radius:var(--card-r-in);background:var(--field,#fffdf6);cursor:pointer;
  font:700 22px/1 var(--serif);color:var(--ink);transition:background-color .15s,border-color .15s,box-shadow .15s}
.age__opt:hover{border-color:var(--holly)}
/* the real radio sits over the whole tile, invisible, so a tap anywhere on it picks it and a screen reader reads a radio */
.age__opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.age__opt:has(input:checked){background:var(--holly);border-color:var(--holly);color:var(--white);box-shadow:0 0 0 4px rgba(30,74,56,.18)}
.age__opt:has(input:checked) .age__num{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:6px;text-decoration-color:var(--gold)}
.age__opt:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:3px}
@media (max-width:559px){.age{grid-template-columns:repeat(5,minmax(0,1fr))}.age__opt{height:48px}}
@media (forced-colors:active){.age__opt:has(input:checked){outline:3px solid Highlight}}

/* 14+ opens a small number box for any age from 14 to 99: its label, the box (each page styles its own box) and the hint */
.age-more{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:10px}
.age-more label{font:650 17px/1.4 var(--sans);color:var(--ink)}
.age-more .small{margin:0}
.age-more[hidden]{display:none}
