/* The choose page (/choose/), the approved "P2 The Counter" design: one letter handed across the North Pole post
   office counter at a time, six labelled thumbnails to swap it, the price on the parchment band and three wax-seal
   steps. The letters themselves are live renders of the design module (/letter-designs.css + /designs.js), never
   pictures. With JavaScript off every letter simply stays on the page, large and complete. Nothing moves.
   Contrast on the parchment band (#f1e2bf): ink 12.3:1, holly 7.8:1, deep wax #7f170f 8.1:1.
   On the night band: snow 14.4:1, snow-2 11.0:1, gold 8.8:1 (the proven pairs in style.css's header). */

.pick-hero{position:relative;background-color:var(--night);background-image:var(--stars);text-align:center;padding:60px 0 118px;color:var(--snow)}
.pick-hero .eyebrow{font:650 14px/1.3 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin:0 0 16px}
.pick-hero h1{font:400 clamp(36px,6vw,54px)/1.12 var(--serif);color:var(--snow);margin:0 0 16px}
.pick-hero .lead{color:var(--snow-2);font-size:20px;margin:0 auto}

/* the parchment band round the counter card: the system's half-gap above it; and below it (the homepage's
   How it works starts at a straight edge under it) */
.pick-band{position:relative;background:var(--parch);padding:var(--sec-y) 0}
.home .pick-band{padding-top:calc(var(--sec-y) - 20px);padding-bottom:var(--sec-y)}

.pick-band{scroll-margin-top:-30px}

/* the counter stage: one big letter, its words beside it */
.pick-card{display:grid;grid-template-columns:minmax(280px,410px) 1fr;gap:clamp(30px,5vw,68px);align-items:center;max-width:980px;margin:0 auto}
.pick-card + .pick-card{margin-top:64px;padding-top:64px;border-top:1px solid var(--rule-ink)}
.pick-js .pick-card{display:none}
.pick-js .pick-card.is-active{display:grid}
.pick-js .pick-card + .pick-card{margin-top:0;padding-top:0;border-top:0}

.pick-sheet{position:relative;margin:0;max-width:410px;padding-bottom:16px}
.pick-sheet .lsheet-box{border:1px solid rgba(43,33,24,.22);box-shadow:0 20px 48px rgba(43,33,24,.32);background:#fffaf0}
/* the counter ledge the letter is handed across: timber with a brass edge, in front of the sheet's foot */
.pick-sheet::after{content:"";position:absolute;left:-26px;right:-26px;bottom:0;height:30px;background:linear-gradient(#8a6436,#5c3f22);border-top:3px solid #d9ab4e;border-radius:3px;box-shadow:0 12px 26px rgba(43,33,24,.4)}

.pick-words .eyebrow{font:650 13px/1.3 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--holly);margin:0 0 10px}
.pick-words h2{font:400 clamp(28px,4vw,38px)/1.15 var(--serif);color:var(--ink);margin:0 0 12px}
.pick-words p{color:var(--ink);font-size:19px;margin:0 0 24px}
.pick-words .btn{min-width:240px}

/* the row of six, shown only when the little script below is awake */
.pick-rail{max-width:980px;margin:56px auto 0}
.pick-rail .rail-hint{text-align:center;font:650 16px/1.4 var(--sans);color:var(--holly);margin:0 0 18px}
.rail-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:0;padding:0;list-style:none}
.rail-grid button{display:block;width:100%;margin:0;padding:10px 10px 12px;background:var(--card);border:2px solid var(--rule);border-radius:6px;cursor:pointer;font:600 15px/1.3 var(--sans);color:var(--ink);text-align:center}
.rail-grid .thumb-art{display:block;border:1px solid rgba(43,33,24,.14);margin-bottom:9px}
.rail-grid button:hover{border-color:var(--holly);box-shadow:0 6px 16px rgba(43,33,24,.22)}
.rail-grid button[aria-pressed="true"]{border:3px solid var(--wax);padding:9px 9px 11px;box-shadow:0 6px 16px rgba(43,33,24,.22)}
.rail-grid button[aria-pressed="true"] .rail-name::after{content:"";display:block;width:34px;height:3px;background:var(--wax);margin:6px auto 0;border-radius:2px}

/* the price, written on the band itself */
.pick-price{text-align:center;font:400 italic clamp(22px,3vw,28px)/1.4 var(--serif);color:var(--ink);margin:62px auto 0}
.pick-price strong{font-style:normal;font-weight:700;color:#7f170f}

/* what happens next, three small wax seals in a quiet row */
.pick-next{max-width:980px;margin:56px auto 0;border-top:1px solid var(--rule-ink);padding-top:44px}
.pick-next h2{text-align:center;font:400 26px/1.2 var(--serif);color:var(--ink);margin:0 0 28px}
.pick-next ol{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin:0;padding:0;list-style:none}
.pick-next li{display:flex;gap:14px;align-items:flex-start}
.pick-next .sealnum{flex:0 0 44px;width:44px;height:44px;filter:drop-shadow(0 2px 4px rgba(43,33,24,.3))}
.pick-next p{margin:2px 0 0;color:var(--ink);font-size:18px}

@media (max-width:860px){
  .pick-card{grid-template-columns:1fr;gap:30px;text-align:center}
  /* width:100% matters: the live render has no intrinsic width (P2's picture had), so without it the
     auto-margined figure would shrink to nothing on a phone */
  .pick-sheet{margin:0 auto;max-width:300px;width:100%}
  .pick-sheet::after{left:-20px;right:-20px}
  .pick-words p{margin-left:auto;margin-right:auto}
  .rail-grid{grid-template-columns:repeat(3,1fr);gap:12px}
  .pick-next ol{grid-template-columns:1fr;gap:20px;max-width:30em;margin:0 auto}
}
@media (max-width:560px){
  .pick-intro{margin-bottom:36px}
  .pick-hero{padding:48px 0 104px}
  .pick-words .btn{width:100%;min-width:0}
  }
@media (forced-colors:active){.pick-sheet .lsheet-box,.rail-grid .thumb-art{border:1px solid CanvasText}}

/* ---------- the start of their letter (Emmet, 15 Nov 2026), laid out as Ciaran picked on 17 Nov 2026: homepage B "Editorial split",
   with his three changes (a large live letter, the age list dressed like the other fields, the whole counter in one card),
   then made compact the same day (round 2: "the form is way too big, it does not nicely fit"): the card is the site's one card
   (radius, padding and shadow from the system in style.css), the live letter stands beside the form as its partner, the heading
   sits over the form, and the whole counter fits one laptop screen. The form IS the card: its children sit in named grid areas,
   so on a phone the order is the heading, the form, then the letter (as since the mobile pass of 16 Nov 2026).
   Contrast on the card (#fffaf0): ink 14.4:1, ink-2 7.7:1, holly 9.1:1; on a picked tile (#eef3ec) ink 13.2:1, ink-2 7.1:1. ---------- */
.starter{--letter-w:300px;--form-gap:var(--card-gap);display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "form" "sheet";gap:var(--card-gap);margin:0 auto;
  padding:var(--card-pad);background:var(--card);border-radius:var(--card-r);box-shadow:var(--card-shadow)}
.starter__intro{grid-area:intro;text-align:left}
.starter .pick-sheet{grid-area:sheet;max-width:none;width:100%;margin:0;align-self:start}
/* the form packs from the top with ONE even gap between its three parts (the fields, "How Santa writes it", the button and its notes):
   nothing is stretched to fill the height any more (round 6, 18 Nov 2026: "way too much gap" under the three boxes and over Continue) */
.starter__form{grid-area:form;min-width:0;display:grid;gap:var(--form-gap);align-content:start}
@media (max-width:1099px){
  .starter .pick-sheet{max-width:320px;margin:6px auto 0;padding-bottom:14px}
  .starter .pick-sheet::after{left:-16px;right:-16px;height:22px}
}
/* round 4 (18 Nov 2026): the eyebrow, the heading and the line under it run across the whole card above the letter and the form, so the
   line sits on one row. Round 6 (18 Nov 2026): the two columns are balanced by the form: the form takes the height its parts need, and the
   live letter is sized to that height (start.js sets --letter-w from the form's height, so it is exact in English and in Irish; this
   value is only the starting point and what a browser without JavaScript keeps), so neither column leaves an empty band under it */
@media (min-width:1100px){
  .starter{--letter-w:clamp(280px,26vw,330px);grid-template-columns:minmax(0,var(--letter-w)) minmax(0,1fr);grid-template-areas:"intro intro" "sheet form";grid-template-rows:auto auto;align-items:start;column-gap:clamp(28px,3.6vw,48px);row-gap:20px}
  .starter .pick-sheet{padding-bottom:14px;width:auto}
  .starter .pick-sheet::after{left:-18px;right:-18px;height:22px}
}
.starter__intro .eyebrow{font:650 15px/1.3 var(--sans);letter-spacing:.06em;color:var(--holly);margin:0 0 6px}
.starter__intro h2{font:italic 400 var(--h2)/1.15 var(--serif);letter-spacing:-.01em;color:var(--holly);margin:0 0 8px}
.starter__intro .lead{color:var(--ink);font-size:18px;line-height:1.55;margin:0}

/* the fields: the name and the town in one row on a wide card, the age tiles on a row of their own under them (round 7, 18 Nov 2026: the age
   is the order page's number tiles now, in the one shared piece, age.css and age.js) */
.starter .grid-2{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0;align-items:end}
.starter .field{display:grid;gap:5px;margin:0;min-width:0}
.starter .field>span,.starter .age-label{font:650 17px/1.35 var(--sans);color:var(--ink)}
.starter .age-label{margin:0}
.starter .hint{display:block;margin-top:1px;font:400 15px/1.4 var(--sans);color:var(--ink-2)}
.starter input[type=text],.starter input[type=number]{width:100%;min-height:52px;padding:8px 14px;border-radius:var(--card-r-in);border:1.5px solid #7d6c58;background-color:var(--white);
  font:400 18px/1.4 var(--sans);color:var(--ink);box-shadow:inset 0 1px 2px rgba(43,33,24,.07);transition:border-color .15s,background-color .15s}
/* the hint is the grey example inside the box (round 4); the visible label stays above it. #6a5a48 on white is 6.7:1 */
.starter input::placeholder{color:#6a5a48;opacity:1;text-overflow:ellipsis}
.starter input[type=text]:hover,.starter input[type=number]:hover{border-color:var(--ink)}
.starter input[type=text]:focus,.starter input[type=number]:focus{border-color:var(--holly)}
.starter input[aria-invalid="true"]{border-color:var(--wax);box-shadow:0 0 0 1px var(--wax)}
/* the age: 14 tiles in one row once the form is wide enough for a good-sized tile (below), two rows of seven under that and five across on a phone (age.css) */
/* 14+ opens the number box under the tiles: the same box as the order page's (104 px, centred, no spin buttons), the hint beside it on a wide card */
.starter .age-more{margin-top:12px}
.starter .age-more label{font:650 17px/1.35 var(--sans)}
.starter .age-more input[type=number]{width:104px;min-width:0;min-height:46px;padding-top:4px;padding-bottom:4px;text-align:center;font-weight:650;-moz-appearance:textfield;appearance:textfield}
.starter input[type=number]::-webkit-inner-spin-button,.starter input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.starter .age-more .small{font-size:15px;line-height:1.4}
.starter .field-err{margin:0;color:var(--wax);font-weight:700;font-size:16px;line-height:1.4}
/* the name and the town side by side once the card is wide enough (round 4: the hint is the grey example inside the box). Round 5 (18 Nov 2026):
   the example is now the short "For example Mullingar" (Irish: "Mar shampla Mullingar"), so it shows whole at the full size on every phone,
   even at 320 px, and the old sizes that shrank it are gone. */
@media (min-width:800px){
  .starter .grid-2{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
  .starter .field--age{grid-column:1/-1}
}
/* when the form is wide enough for a good-sized tile (720px, so a tile is 44px or more; asked of the form's own width, not the window's, since
   the letter takes a share of a laptop window) the 14 tiles sit in one row, and 14+'s box opens on the label's line, at the right above its tile,
   so opening it adds a few pixels and not a whole row (the box comes after the tiles in the page, so a keyboard reaches it straight after 14+).
   Narrower, two rows of seven with the box under them, as on the order page, and five across on a phone. */
.starter__form{container-type:inline-size}
@container (min-width:720px){
  .starter .age{grid-template-columns:repeat(14,minmax(0,1fr))}
  .starter .field--age{grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:end}
  .starter .age-label{grid-column:1;grid-row:1}
  .starter .age{grid-column:1/-1;grid-row:2}
  .starter .age-more{grid-column:2;grid-row:1;justify-self:end;flex-wrap:nowrap;margin:0}
  .starter .age-more input[type=number]{min-height:44px}
  .starter .age-more .small{white-space:nowrap}
  .starter .field--age .field-err{grid-column:1/-1;grid-row:3}
}

/* the six styles, as tiles */
.starter .style-set{border:0;margin:0;padding:0;min-width:0}
.starter .style-set legend{padding:0;margin:0 0 10px;font:650 17px/1.35 var(--sans);color:var(--ink)}
.starter .style-set legend .hint{display:inline;margin:0 0 0 6px;font-weight:400}
.starter .style-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.starter .style-card{position:relative;display:flex;align-items:flex-start;gap:9px;margin:0;padding:9px 12px;border:1.5px solid var(--rule);border-radius:var(--card-r-in);background:var(--white);cursor:pointer;
  transition:border-color .15s,box-shadow .15s,background-color .15s}
.starter .style-card:hover{border-color:var(--ink-2);box-shadow:0 6px 16px rgba(43,33,24,.1)}
.starter .style-card input{-webkit-appearance:none;appearance:none;display:grid;place-content:center;flex:none;width:22px;height:22px;margin:0;border:2px solid #7d6c58;border-radius:50%;background:var(--white);cursor:pointer}
.starter .style-card input::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--holly);transform:scale(0);transition:transform .12s}
.starter .style-card input:checked{border-color:var(--holly)}
.starter .style-card input:checked::before{transform:scale(1)}
.starter .style-card input:focus-visible{outline:none}
.starter .style-card:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:3px}
.starter .style-card:has(input:checked){border-color:var(--holly);background:#eef3ec;box-shadow:0 0 0 1px var(--holly),0 6px 16px rgba(30,74,56,.12)}
.starter .style-card__text{display:block;min-width:0}
.starter .style-card strong{display:block;font:650 16.5px/1.3 var(--sans);color:var(--ink)}
.starter .style-card__blurb{display:block;margin-top:1px;font-size:14.5px;line-height:1.35;color:var(--ink-2)}

/* the button, then the two notes under it across the form's width (round 4: each note on one line, so they no longer sit beside the button) */
.starter__go{display:grid;gap:10px}
.starter .btn{justify-self:start;width:auto;min-width:0;min-height:52px;margin:0;padding:10px 30px;font-size:18px;border-radius:999px;box-shadow:0 8px 20px rgba(154,29,21,.2)}
.starter__notes{display:grid;gap:6px}
.starter__note{margin:0;font-size:15px;line-height:1.45;color:var(--ink-2)}
/* round 6 (18 Nov 2026): the gaps inside the parts are small and even (the style cards 10 px apart, the button 10 px over its notes, the
   notes 6 px apart); the gap BETWEEN the three parts is the one --form-gap above, the same everywhere in the form */

/* what it costs, written on the band under the card: /choose/ only (the homepage has it as a slim box under What your child finds and Posting dates) */
.pick-after{background:var(--parch);padding:0 0 var(--sec-y)}
.pick-after .pick-price{margin:0 auto;font:400 italic clamp(18px,1.6vw,21px)/1.45 var(--serif);color:var(--ink);text-align:center}
.page-choose .pick-band{padding-bottom:var(--card-gap)}

@media (max-width:359px){.starter .age{gap:6px}}   /* five tiles across at 320px: 45px each, not 43 */
@media (max-width:560px){
  .starter .grid-2{gap:12px}
  .starter input[type=text]{padding-left:12px;padding-right:10px;min-height:50px}
  .starter .style-set legend .hint{display:block;margin:2px 0 0}
  .starter .style-cards{grid-template-columns:minmax(0,1fr);gap:8px}
  .starter .btn{justify-self:stretch;min-width:0;width:100%}
}
/* a short laptop window (up to 900px tall, side by side): the counter is a little tighter so the whole card is on one screen, with 14+'s box open and in
   Irish too (the order page does the same on short windows), the letter then sized to the form as before */
@media (min-width:1100px) and (max-height:900px){
  .starter{--card-pad:24px;--form-gap:14px;row-gap:12px}
  .starter .grid-2{gap:12px}
  .starter input[type=text]{min-height:46px;padding-top:6px;padding-bottom:6px}
  .starter .age__opt{height:42px}
  .starter .age-more input[type=number]{min-height:40px;padding-top:2px;padding-bottom:2px}
  .starter .style-set legend{margin-bottom:8px}
  .starter .style-cards{gap:8px}
  .starter .style-card{padding-top:6px;padding-bottom:6px}
  .starter .btn{min-height:46px}
  .starter__go{gap:8px}
  .starter__notes{gap:4px}
}
/* a laptop window up to 800px tall (1366 x 768 is the common one): the button and its two notes share a row, the notes beside the button, so the
   form is a little shorter and the letter can stand as tall as the form, in Irish too */
@media (min-width:1100px) and (max-height:800px){
  .starter__go{grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:22px}
  .starter__intro .eyebrow{margin-bottom:4px}
  .starter__intro h2{font-size:30px;margin-bottom:6px}
  .starter__intro .lead{font-size:17px;line-height:1.45}
  .starter .style-card__blurb{font-size:14px}
}
@media (forced-colors:active){
  .starter input[type=text],.starter input[type=number],.starter .style-card{border:1.5px solid CanvasText}
  .starter .style-card input{-webkit-appearance:auto;appearance:auto}
  .starter .style-card:has(input:checked){border:3px solid Highlight}
}
