/* The order form (order_form.html), on top of base.css and website.css: Elizabeth's Squarespace look, measured from her site 8 Nov 2026
   (blush ground, coral #F08E80 fills, Baskerville display, light serif text, square #FAFAFA fields with a 1px black border, pill
   buttons). Coral is a fill or a rule, never text; black on coral (white fails contrast). */
.brand-head { text-align: center; padding: 22px 16px 14px; }
.brand-head .mark { font-family: var(--display); font-weight: 700; font-size: 28px; color: #000; text-decoration: none; }
.brand-head nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-top: 8px; font-size: 18px; }
.brand-head nav a { color: #000; text-decoration: none; }
.brand-head nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.order-shell { max-width: 1040px; margin: 0 auto; padding: 22px 16px 24px; }
.order-shell h1 { margin-bottom: 8px; }
.lead { text-align: center; max-width: 620px; margin: 0 auto 24px; white-space: pre-line; }
.banner { max-width: 760px; margin: 0 auto 18px; }

.progress { list-style: none; display: flex; justify-content: center; gap: 0; margin: 0 auto 26px; padding: 0; max-width: 760px; }
.progress li { flex: 1 1 0; text-align: center; font-size: .78em; color: var(--muted); position: relative; padding-top: 16px; min-width: 0; }
.progress li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--rule); }
.progress li::after { content: ""; position: absolute; top: 0; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--ground); border: 1px solid #000; }
.progress li.done::after { background: #000; }
.progress li.now { color: #000; font-weight: 500; }
.progress li.now::after { background: var(--accent); border-color: var(--accent); }

.layout { display: block; }
.summary[hidden] { display: none; }
.summary.empty .sum-total { display: none; }
.summary:not(.empty) .sum-empty { display: none; }
.sum-empty { margin: 0; }
html.js .step { display: none; }
html.js .step.on { display: block; }
.step { background: var(--box-bg); border: 1px solid var(--box-rule); padding: 24px 26px 26px; margin-bottom: 18px; }
.step h2 { margin: 0 0 16px; border-bottom: 0; padding-bottom: 0; font-size: 26px; }
.step h2:focus { outline: 0; }   /* the page moves focus here for screen readers; no ring round a heading (Fable pass F6) */
.q { margin: 20px 0 8px; font-weight: 500; }
.step > .q:first-of-type { margin-top: 2px; }
.sub { margin-top: 12px; }
.below { margin-top: 14px; text-align: center; }

.cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-choice { display: block; padding: 0; border: 1px solid #000; background: var(--field-bg); cursor: pointer; position: relative; transition: background .12s ease, box-shadow .12s ease; }
.card-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.card-choice > span { display: block; padding: 13px 15px; line-height: 1.3; }
.card-choice.big > span { padding: 20px 18px; }
.card-choice strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02em; margin-bottom: 3px; }
.card-choice:not(.big) strong { font-family: var(--text); font-weight: 500; }
.card-choice small { display: block; color: var(--muted); font-size: .86em; line-height: 1.35; }
.card-choice:hover { background: #fff; }
.card-choice:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); border-color: var(--accent); }
.card-choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-choice .ship-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.card-choice .ship-row b { font-weight: 500; white-space: nowrap; }

.book { display: grid; grid-template-columns: 1fr auto 86px; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.has-covers .book { grid-template-columns: 56px 1fr auto 86px; }
.cover { display: block; width: 56px; height: 72px; object-fit: cover; border: 1px solid var(--box-rule); background: #fff; }
.cover.none { border-color: transparent; background: transparent; }
img.cover.none { visibility: hidden; }
.book-about { display: block; font-size: .88em; line-height: 1.35; margin: 1px 0 2px; }
.see-books { margin: 10px 0 0; font-size: .92em; }
.book:first-child { padding-top: 2px; }
.book-name strong { display: block; font-family: var(--display); font-weight: 700; }
.book-name small { color: var(--muted); font-size: .84em; display: block; }
.book-line { text-align: right; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid #000; background: var(--field-bg); }
.step-btn { margin: 0; padding: 0 12px; background: transparent; border: 0; color: #000; font-size: 22px; line-height: 1; min-height: 44px; min-width: 42px; border-radius: 0; }
.step-btn:hover { background: var(--accent); filter: none; }
.stepper input.qty { width: 62px !important; min-height: 44px; border: 0 !important; border-left: 1px solid #000 !important; border-right: 1px solid #000 !important; padding: 4px !important; text-align: center; -moz-appearance: textfield; }
.stepper input.qty::-webkit-outer-spin-button, .stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#path-hint { margin-top: 14px; }
.code-box { max-width: 460px; margin-top: 16px; }
.code-row { display: flex; align-items: flex-end; gap: 10px; }
.code-row label.f { flex: 1 1 auto; min-width: 0; }
.code-row button { margin: 0; padding: 0 22px; min-height: 54px; flex: 0 0 auto; }
.code-result { margin: 6px 0 0; font-size: .92em; min-height: 1.3em; }
.code-result.ok { font-weight: 500; border-left: 3px solid var(--accent); padding-left: 10px; }
.code-result.bad { color: var(--err); font-weight: 400; }

details.more { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
details.more summary { cursor: pointer; font-size: .95em; }
details.more[open] summary { margin-bottom: 12px; }
#bill-more { margin-bottom: 18px; }
#po-fields { margin-top: 16px; }   /* neither sits on its neighbour (Fable pass F7) */

.summary { background: #fff; border: 1px solid var(--box-rule); padding: 18px 20px; margin-bottom: 18px; }
.summary h3 { margin: 0 0 10px; font-size: 1.1em; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: .92em; padding: 3px 0; }
.sum-total { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--accent); }
.sum-total dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sum-total .grand { font-family: var(--display); font-weight: 700; font-size: 1.12em; margin-top: 4px; }

.nav-row { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 8px; }
.nav-row button { margin: 0; }
.pay-row { text-align: center; }
.pay-row button { margin: 22px auto 8px; min-width: 240px; }
#ship-options { margin-bottom: 4px; }
.step input[type=file]::file-selector-button { font: inherit; font-size: .9em; margin-right: 12px; padding: 5px 16px; border: 1px solid #000; border-radius: 999px; background: #fff; color: #000; cursor: pointer; }   /* not the browser's grey button (Fable pass F16) */
.step input[type=file]::file-selector-button:hover { background: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* While the printer is asked: a card for each speed, built like the real ones, so nothing moves when the prices arrive. */
.card-choice.ship-wait { cursor: default; border-color: var(--box-rule); background: #fff; }
.ship-wait .bar { display: inline-block; background: #ece7e2; animation: ship-pulse 1.3s ease-in-out infinite; }
.ship-wait .spin { display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em; border: 2px solid var(--rule); border-top-color: #000; border-radius: 50%; animation: ship-spin .8s linear infinite; }
@keyframes ship-pulse { 50% { opacity: .45; } }
@keyframes ship-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ship-wait .bar, .ship-wait .spin { animation: none; } }
.bot-check { display: flex; justify-content: center; min-height: 65px; margin: 24px 0; }
.center { text-align: center; }
.quote-copy { margin: 0 0 16px; }
.rule-panel { margin: 0 0 18px; padding: 12px 14px; background: #fff; border: 1px solid var(--box-rule); }
#address-offer { margin-top: 12px; }
#address-offer .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
#address-offer button { margin: 0; padding: 8px 18px; }
/* An answer's own message, under it (order.js markField; the template's err()); the shared "Please check:" prefix is not repeated here. */
.order-shell .err { display: block; margin-top: 4px; font-weight: 500; }
.order-shell .err::before { content: none; }
.order-shell .typo { display: block; margin-top: 4px; font-size: .9em; }      /* a likely typo in an email: asked, never refused */
.order-shell .typo button.link { margin: 0 10px 0 0; padding: 0; min-height: 0; background: none; border: 0; color: #000; text-decoration: underline;
  text-decoration-color: var(--accent); font: inherit; cursor: pointer; border-radius: 0; }
.cards[aria-invalid="true"] .card-choice { border-color: var(--err); }
.order-shell [aria-invalid="true"]:is(input, select, textarea) { border: 2px solid var(--err) !important; }
/* "Check your order": the answers, each part with its Change link. */
.recap { margin: 0 0 18px; padding: 14px 16px 6px; background: #fff; border: 1px solid var(--box-rule); }
.recap h3 { margin: 0 0 8px; font-size: 1.05em; }
.recap-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.recap-part h4 { margin: 0; font-size: .92em; font-weight: 500; color: var(--muted); }
.recap-part p { grid-column: 1 / -1; margin: 2px 0 0; overflow-wrap: break-word; }
.recap-part button.link { grid-row: 1; grid-column: 2; margin: 0; padding: 0; min-height: 0; background: none; border: 0; color: #000; text-decoration: underline;
  text-decoration-color: var(--accent); font: inherit; font-size: .92em; cursor: pointer; border-radius: 0; }
.making { margin: -2px 0 10px; }
#pay-panel + .recap, #quote-panel + .recap { margin-top: 18px; }
.step[data-step="finish"] details.more { margin-bottom: 14px; }
.pay-row .secure { margin: 0 0 6px; }
.order-foot { max-width: 1040px; margin: 0 auto; padding: 8px 16px 40px; display: flex; justify-content: space-between; color: var(--muted); font-size: .85em; }
.order-foot a { color: var(--muted); }

@media (min-width: 900px) {
  html.js .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
  html.js .summary { position: sticky; top: 20px; }
}
/* Who is it for: the two choices alone, centred, with no Your order box beside them; the box comes in at Books (Julia, 12 Nov 2026) */
html.js .layout.at-who { display: block; max-width: 760px; margin: 0 auto; }
html.js .layout.at-who .summary { display: none; }
html.js .layout.at-who .step[data-step="who"] h2 { text-align: center; }
@media (max-width: 899px) {
  .summary.empty { display: none; }
  html.js .layout.at-finish { display: flex; flex-direction: column; }
  html.js .layout.at-finish .summary { order: -1; }
}
@media (max-width: 640px) {
  .brand-head nav { gap: 2px 14px; font-size: 16px; }
  .step { padding: 18px 16px 20px; }
  .cards.c2 { grid-template-columns: 1fr; }          /* Yes / No / Not sure stay side by side: three short words */
  .cards.c3 .card-choice > span { padding: 12px 10px; }
  .book { grid-template-columns: 1fr auto; }
  .has-covers .book { grid-template-columns: 44px minmax(0, 1fr); align-items: start; }     /* cover and words, then the stepper under the words */
  .cover { width: 44px; height: 57px; }
  .has-covers .stepper { grid-column: 2; justify-self: start; }
  .has-covers .book-line { grid-column: 2; }
  .book-line { grid-column: 1 / -1; text-align: left; font-size: .9em; }
  .progress li { font-size: .68em; padding-left: 2px; padding-right: 2px; }
  .pay-row button { width: 100%; min-width: 0; }
  .nav-row button { flex: 1; }
}
