/* Stone’s Throw theme. Overrides Bootstrap 5 through its CSS variables (A10). */

/* Metric-matched fallbacks: while the Google fonts load (display=swap), text is set in a
   local face scaled to the web font's widths, so swapping in Newsreader and Instrument Sans
   rewraps nothing and the page does not shift. Times New Roman / Liberation Serif and
   Arial / Liberation Sans first (Windows, macOS, iOS, Linux), Noto Serif and Roboto next
   (Android). Ratios measured in Chromium against the Google-served fonts, 23 Nov 2026. */
@font-face { font-family: 'Newsreader Fallback'; font-style: normal; font-weight: 400; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('LiberationSerif'); size-adjust: 102.4%; ascent-override: 71.8%; descent-override: 25.9%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback'; font-style: normal; font-weight: 500 600; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('LiberationSerif'); size-adjust: 105%; ascent-override: 70%; descent-override: 25.2%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback'; font-style: italic; font-weight: 400 600; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Liberation Serif Italic'), local('LiberationSerif-Italic'); size-adjust: 98%; ascent-override: 75%; descent-override: 27%; line-gap-override: 0%; }
/* Newsreader's figures are 12-20% wider than Times New Roman's, so digits get their own scale. */
@font-face { font-family: 'Newsreader Fallback'; font-style: normal; font-weight: 400; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('LiberationSerif'); unicode-range: U+0030-0039; size-adjust: 111.7%; ascent-override: 65.8%; descent-override: 23.7%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback'; font-style: normal; font-weight: 500 600; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('LiberationSerif'); unicode-range: U+0030-0039; size-adjust: 116.6%; ascent-override: 63%; descent-override: 22.7%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback'; font-style: italic; font-weight: 400 600; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Liberation Serif Italic'), local('LiberationSerif-Italic'); unicode-range: U+0030-0039; size-adjust: 114%; ascent-override: 64.5%; descent-override: 23.2%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback Noto'; font-style: normal; font-weight: 400; src: local('Noto Serif'), local('NotoSerif'), local('NotoSerif-Regular'); size-adjust: 86.8%; ascent-override: 84.7%; descent-override: 30.5%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback Noto'; font-style: normal; font-weight: 500 600; src: local('Noto Serif Medium'), local('NotoSerif-Medium'), local('Noto Serif'), local('NotoSerif'); size-adjust: 87.6%; ascent-override: 83.9%; descent-override: 30.3%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback Noto'; font-style: italic; font-weight: 400 600; src: local('Noto Serif Italic'), local('NotoSerif-Italic'); size-adjust: 81.9%; ascent-override: 89.7%; descent-override: 32.4%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Display Fallback'; font-style: normal; font-weight: 500 600; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('LiberationSerif'); size-adjust: 109.6%; ascent-override: 67.1%; descent-override: 24.2%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Display Fallback'; font-style: normal; font-weight: 500 600; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('LiberationSerif'); unicode-range: U+0030-0039; size-adjust: 120.7%; ascent-override: 60.9%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Display Fallback Noto'; font-style: normal; font-weight: 500 600; src: local('Noto Serif Medium'), local('NotoSerif-Medium'), local('Noto Serif'), local('NotoSerif'); size-adjust: 91.4%; ascent-override: 80.4%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback'; font-style: normal; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'); size-adjust: 101.8%; ascent-override: 95.3%; descent-override: 24.6%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback'; font-style: normal; font-weight: 500; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'); size-adjust: 103.2%; ascent-override: 94%; descent-override: 24.2%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback'; font-style: normal; font-weight: 600 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'); size-adjust: 97%; ascent-override: 100%; descent-override: 25.8%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback Roboto'; font-style: normal; font-weight: 400; src: local('Roboto'), local('Roboto-Regular'); size-adjust: 102%; ascent-override: 95.1%; descent-override: 24.5%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback Roboto'; font-style: normal; font-weight: 500; src: local('Roboto Medium'), local('Roboto-Medium'); size-adjust: 102.5%; ascent-override: 94.6%; descent-override: 24.4%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback Roboto'; font-style: normal; font-weight: 600 700; src: local('Roboto Bold'), local('Roboto-Bold'); size-adjust: 101%; ascent-override: 96%; descent-override: 24.8%; line-gap-override: 0%; }

:root {
  /* Palette */
  --st-riverstone: #EEF0EC;
  --st-gesso: #FAFAF6;
  --st-slate: #1F2A2E;
  --st-moss: #4E6B47;
  --st-moss-dark: #3F5839;
  --st-moss-tint: #93A68F;
  --st-tarn: #3D6A80;
  --st-heather: #7F5574;
  --st-border: #D5DAD3;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Type */
  --st-serif: 'Newsreader', 'Newsreader Fallback', 'Newsreader Fallback Noto', Georgia, serif;
  --st-serif-display: 'Newsreader', 'Newsreader Display Fallback', 'Newsreader Display Fallback Noto', Georgia, serif;
  --st-sans: 'Instrument Sans', 'Instrument Sans Fallback', 'Instrument Sans Fallback Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Widths are in em, not ch: ch follows whichever font is showing, so a ch width
     changes when the web font swaps in and rewraps the text. 1ch = 0.666em in
     Instrument Sans, about 0.55em in Newsreader text and 0.59-0.60em in its headings. */
  --st-measure: 45.3em;

  /* Radii */
  --st-radius: 10px;
  --st-radius-card: 16px;
  --st-radius-pill: 999px;

  /* Bootstrap overrides */
  --bs-body-bg: #EEF0EC;
  --bs-body-color: #1F2A2E;
  --bs-body-color-rgb: 31, 42, 46;
  --bs-emphasis-color: #1F2A2E;
  --bs-secondary-color: rgba(31, 42, 46, 0.78);
  --bs-primary: #4E6B47;
  --bs-primary-rgb: 78, 107, 71;
  --bs-link-color: #3D6A80;
  --bs-link-color-rgb: 61, 106, 128;
  --bs-link-hover-color: #2E5163;
  --bs-link-hover-color-rgb: 46, 81, 99;
  --bs-border-color: #D5DAD3;
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 16px;
  --bs-border-radius-sm: 8px;
  --bs-font-sans-serif: 'Instrument Sans', 'Instrument Sans Fallback', 'Instrument Sans Fallback Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.55;
  --bs-heading-color: #1F2A2E;
  --bs-focus-ring-color: rgba(61, 106, 128, 1);
  --bs-focus-ring-width: 3px;
  --bs-box-shadow: none;
  --bs-box-shadow-sm: none;
  --bs-box-shadow-lg: none;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--st-riverstone);
  color: var(--st-slate);
  font-family: var(--st-sans);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

/* ---------- Type ---------- */

h1, h2, h3, h4, .display, .st-serif {
  font-family: var(--st-serif);
  font-weight: 500;
  color: var(--st-slate);
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
}

.display { font-family: var(--st-serif-display); font-size: 56px; line-height: 1.08; }
h1, .h1 { font-size: 40px; line-height: 1.15; margin-bottom: var(--s-4); }
h2, .h2 { font-size: 28px; line-height: 1.2; margin-bottom: var(--s-4); }
h3, .h3 { font-size: 22px; line-height: 1.3; margin-bottom: var(--s-3); }

.tagline {
  font-family: var(--st-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--st-moss);
}

.small, small { font-size: 14px; }
.lead { font-size: 19px; line-height: 1.5; font-weight: 400; }
.measure { max-width: var(--st-measure); }
.text-muted-st { color: rgba(31, 42, 46, 0.78); }

a { color: var(--st-tarn); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #2E5163; text-decoration-thickness: 2px; }

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .display { font-size: 40px; }
  h1, .h1 { font-size: 32px; }
  h2, .h2 { font-size: 24px; }
  h3, .h3 { font-size: 20px; }
}

/* ---------- Focus ---------- */

:focus-visible {
  outline: 3px solid var(--st-tarn);
  outline-offset: 2px;
  box-shadow: none;
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  outline: 3px solid var(--st-tarn);
  outline-offset: 2px;
  box-shadow: none;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  background: var(--st-slate);
  color: var(--st-gesso);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--st-radius);
  z-index: 1100;
}
.skip-link:focus { top: var(--s-2); color: var(--st-gesso); }
/* The skip link is a Slate box that may open over the Slate test strip: its ring sits inside it, in Gesso (14:1). */
.skip-link:focus-visible { outline: 3px solid var(--st-gesso); outline-offset: -4px; }

/* ---------- Buttons ---------- */

.btn {
  --bs-btn-font-family: var(--st-sans);
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 16px;
  --bs-btn-padding-x: 22px;
  --bs-btn-padding-y: 11px;
  --bs-btn-border-radius: 10px;
  --bs-btn-border-width: 1.5px;
  --bs-btn-focus-box-shadow: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  letter-spacing: 0;
}

.btn-primary {
  --bs-btn-color: #FAFAF6;
  --bs-btn-bg: #4E6B47;
  --bs-btn-border-color: #4E6B47;
  --bs-btn-hover-color: #FAFAF6;
  --bs-btn-hover-bg: #3F5839;
  --bs-btn-hover-border-color: #3F5839;
  --bs-btn-active-color: #FAFAF6;
  --bs-btn-active-bg: #364C31;
  --bs-btn-active-border-color: #364C31;
  --bs-btn-disabled-color: #FAFAF6;
  --bs-btn-disabled-bg: #4E6B47;
  --bs-btn-disabled-border-color: #4E6B47;
  --bs-btn-disabled-opacity: 0.55;
}

.btn-secondary,
.btn-outline {
  --bs-btn-color: #1F2A2E;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #1F2A2E;
  --bs-btn-hover-color: #1F2A2E;
  --bs-btn-hover-bg: rgba(31, 42, 46, 0.06);
  --bs-btn-hover-border-color: #1F2A2E;
  --bs-btn-active-color: #1F2A2E;
  --bs-btn-active-bg: rgba(31, 42, 46, 0.1);
  --bs-btn-active-border-color: #1F2A2E;
  --bs-btn-disabled-color: #1F2A2E;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #1F2A2E;
}

.btn-on-dark {
  --bs-btn-color: #FAFAF6;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #FAFAF6;
  --bs-btn-hover-color: #1F2A2E;
  --bs-btn-hover-bg: #FAFAF6;
  --bs-btn-hover-border-color: #FAFAF6;
}

.btn-sm { min-height: 36px; --bs-btn-padding-y: 6px; --bs-btn-padding-x: 14px; --bs-btn-font-size: 14px; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font: inherit;
  cursor: pointer;
}

/* ---------- Forms ---------- */

.form-label,
legend.form-label {
  color: var(--st-tarn);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: var(--s-2);
}

.form-control,
.form-select {
  background-color: var(--st-gesso);
  border: 1.5px solid var(--st-border);
  border-radius: var(--st-radius);
  color: var(--st-slate);
  min-height: 48px;
  font-size: 17px;
  padding: 10px 14px;
}
.form-control::placeholder { color: rgba(31, 42, 46, 0.55); }
.form-control:focus, .form-select:focus { border-color: var(--st-tarn); background-color: var(--st-gesso); }
.form-control:disabled { background-color: #F2F3EF; color: rgba(31, 42, 46, 0.7); }

.form-text { color: rgba(31, 42, 46, 0.78); font-size: 14px; }

.form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.15em;
  border: 1.5px solid #8E9A92;
  background-color: var(--st-gesso);
}
.form-check-input:checked { background-color: var(--st-moss); border-color: var(--st-moss); }
.form-check-label { padding-left: var(--s-1); }

/* Errors: Slate text, Heather icon, 2px Heather left edge. Never red. */
.field-error {
  border-left: 2px solid var(--st-heather);
  padding-left: var(--s-3);
}
.field-error .error-text {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  color: var(--st-slate);
  font-size: 15px;
  margin-top: var(--s-2);
}
.field-error .error-text::before {
  content: '';
  flex: 0 0 16px;
  height: 16px;
  margin-top: 3px;
  background: var(--st-heather);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 1 0 8 0ZM7 3.5h2v6H7ZM7 10.8h2v2H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 1 0 8 0ZM7 3.5h2v6H7ZM7 10.8h2v2H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field-error .form-control { border-color: var(--st-heather); }

.notice {
  background: var(--st-gesso);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  padding: var(--s-4) var(--s-5);
}
.notice-attention { border-left: 3px solid var(--st-heather); }
.notice-success { border-left: 3px solid var(--st-moss); }

/* ---------- Cards and surfaces ---------- */

.card {
  --bs-card-bg: #FAFAF6;
  --bs-card-border-color: #D5DAD3;
  --bs-card-border-radius: 16px;
  --bs-card-inner-border-radius: 15px;
  box-shadow: none;
}

.surface {
  background: var(--st-gesso);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-card);
}

.badge-st {
  display: inline-block;
  border-radius: var(--st-radius-pill);
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.badge-heather { background: var(--st-heather); color: var(--st-gesso); }
.badge-moss { background: var(--st-moss); color: var(--st-gesso); }
.badge-quiet { background: transparent; color: var(--st-slate); border: 1px solid var(--st-border); }

hr { border-color: var(--st-moss-tint); opacity: 1; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s-5); }
.wrap-narrow { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 var(--s-5); }
.wrap-text { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--s-5); }
@media (max-width: 575.98px) {
  .wrap, .wrap-narrow, .wrap-text { padding: 0 var(--s-4); }
}

.section { padding: var(--s-8) 0; }
.section-tight { padding: var(--s-7) 0; }
@media (max-width: 767.98px) {
  .section { padding: var(--s-7) 0; }
}

/* Dev test strip */
.test-strip {
  background: var(--st-slate);
  color: var(--st-gesso);
  font-size: 13px;
  text-align: center;
  padding: 6px var(--s-4);
  line-height: 1.4;
}

/* ---------- Header ---------- */

.site-header { padding: var(--s-4) 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand-link { display: inline-flex; align-items: center; color: var(--st-slate); text-decoration: none; }
.brand-link svg { height: 40px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: var(--s-5); }
.site-nav a { color: var(--st-slate); text-decoration: none; font-weight: 500; font-size: 16px; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
  .brand-link svg { height: 32px; }
  .site-nav { gap: var(--s-4); }
  .site-nav .nav-optional { display: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--st-slate);
  color: var(--st-gesso);
  padding: var(--s-7) 0 var(--s-6);
  margin-top: var(--s-8);
  font-size: 14px;
  line-height: 1.6;
}
.site-footer a, .site-footer .link-button { color: var(--st-gesso); }
/* Tarn is 2.5:1 on Slate, under the 3:1 a focus ring needs: Gesso instead (14:1). */
.site-footer :focus-visible, .test-strip :focus-visible { outline-color: var(--st-gesso); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; margin: 0 0 var(--s-5); font-size: 15px; }
.footer-symbol svg { width: 36px; height: 36px; display: block; margin-bottom: var(--s-4); }
.footer-fine { max-width: 48em; opacity: 0.92; margin-bottom: var(--s-2); }

/* ---------- Hero and ripple ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--s-9) 0 var(--s-9);
  text-align: center;
  isolation: isolate;
}
.ripple-anchor { position: relative; }
.hero .ripple {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 1100px;
  height: 1100px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}
.hero h1 { font-size: 56px; line-height: 1.08; max-width: 9.05em; margin: 0 auto var(--s-5); }
.hero .hero-sub { max-width: 30.6em; margin: 0 auto var(--s-6); font-size: 19px; }
.postcode-form { max-width: 460px; margin: 0 auto; }
.postcode-row { display: flex; gap: var(--s-2); background: var(--st-gesso); border: 1.5px solid var(--st-border); border-radius: 14px; padding: 6px; }
.postcode-row .form-control { border: 0; background: transparent; min-height: 48px; text-transform: uppercase; font-size: 18px; letter-spacing: 0.02em; }
.postcode-row .form-control::placeholder { text-transform: none; letter-spacing: 0; }
.postcode-row .form-control:focus { outline: none; }
.postcode-row:focus-within { outline: 3px solid var(--st-tarn); outline-offset: 2px; }
.postcode-row .btn { white-space: nowrap; flex: 0 0 auto; }
.postcode-note { margin-top: var(--s-3); font-size: 15px; color: rgba(31, 42, 46, 0.8); }

@media (max-width: 767.98px) {
  .hero { padding: var(--s-8) 0; }
  .hero h1 { font-size: 40px; }
  .hero .hero-sub { font-size: 17px; }
  .hero .ripple { width: 760px; height: 760px; }
}
@media (max-width: 420px) {
  .postcode-row { flex-direction: column; background: transparent; border: 0; padding: 0; }
  .postcode-row .form-control { background: var(--st-gesso); border: 1.5px solid var(--st-border); border-radius: var(--st-radius); }
  .postcode-row:focus-within { outline: none; }
  .postcode-row .form-control:focus { outline: 3px solid var(--st-tarn); outline-offset: 2px; }
  .postcode-row .btn { width: 100%; }
}

/* ---------- Error pages ---------- */

.error-page { text-align: center; padding: var(--s-9) 0; position: relative; }
.error-page .error-mark svg { width: 72px; height: 72px; margin: 0 auto var(--s-5); display: block; }
.error-detail {
  text-align: left;
  background: var(--st-gesso);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  padding: var(--s-4);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-x: auto;
  margin-top: var(--s-6);
}

/* ---------- Tables (admin) ---------- */

.table {
  --bs-table-bg: transparent;
  --bs-table-color: #1F2A2E;
  --bs-table-border-color: #D5DAD3;
  font-size: 15px;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* ---------- Booklet page: the printed card on screen (design B) ---------- */
/* Sizes follow the print file: the sheet is 148 mm wide, so 1 mm = 0.6757cqw. Text never drops below
   a readable size on screen. */

.bpage { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; container-type: inline-size; }
.bpage > .sheet { flex: 1 0 auto; }
.sheet {
  --paper: #FBFAF6;
  position: relative;
  width: 100%;
  aspect-ratio: 148 / 210;
  background: var(--paper);
  border: 1px solid #D9DCD4;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12.2cqw 6.8cqw 0;
  color: var(--st-slate);
  isolation: isolate;
}
/* A second sheet peeking out underneath, like a stack of card. */
.sheet::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translate(5px, 5px);
  border: 1px solid #D9DCD4;
  border-radius: 3px;
  background: #F4F3EE;
  z-index: -1;
}
.sheet-wire {
  position: absolute;
  /* Twin-loop wire: 16 loops at the 3:1 pitch (8.47 mm on a 148 mm page), rising above the top edge. */
  top: -3.6cqw; left: 4.25cqw; right: 4.25cqw;
  height: 9cqw;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2040%2063%22%3E%3Crect%20x%3D%228.5%22%20y%3D%2246%22%20width%3D%2223%22%20height%3D%2210%22%20rx%3D%224.5%22%20fill%3D%22%235E625F%22%20fill-opacity%3D%22.22%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20transform%3D%22translate%281.4%202.4%29%22%20stroke%3D%22%231F2A2E%22%20stroke-opacity%3D%22.10%22%20stroke-width%3D%222.6%22%3E%3Cpath%20d%3D%22M7.3%2053V16.7a12.7%2012.7%200%200%201%2025.4%200V53%22%2F%3E%3Cpath%20d%3D%22M13.2%2053V15a6.8%206.8%200%200%201%2013.6%200V53%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke%3D%22%238A8D8C%22%20stroke-width%3D%222.2%22%3E%3Cpath%20d%3D%22M7.3%2053V16.7a12.7%2012.7%200%200%201%2025.4%200V53%22%2F%3E%3Cpath%20d%3D%22M13.2%2053V15a6.8%206.8%200%200%201%2013.6%200V53%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke%3D%22%23DCDEDB%22%20stroke-width%3D%221.4%22%3E%3Cpath%20d%3D%22M7.3%2053V16.7a12.7%2012.7%200%200%201%2025.4%200V53%22%2F%3E%3Cpath%20d%3D%22M13.2%2053V15a6.8%206.8%200%200%201%2013.6%200V53%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke%3D%22%23FFFFFF%22%20stroke-opacity%3D%22.9%22%20stroke-width%3D%22.5%22%20transform%3D%22translate%28-.5%200%29%22%3E%3Cpath%20d%3D%22M7.3%2053V16.7a12.7%2012.7%200%200%201%2025.4%200V53%22%2F%3E%3Cpath%20d%3D%22M13.2%2053V15a6.8%206.8%200%200%201%2013.6%200V53%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 0 / 5.72cqw 100% repeat-x;
  z-index: 2;
}
.sheet-top { display: flex; flex-direction: column; align-items: center; width: 100%; }
.sp-week { margin: 0; font-family: var(--st-serif); font-style: italic; font-size: max(12px, 2.98cqw); color: var(--st-moss); line-height: 1.2; }
.sp-range { margin: 0.6cqw 0 0; font-size: max(12px, 1.91cqw); line-height: 1.2; }
.sp-title { margin: 6cqw 0 0; font-family: var(--st-serif); font-weight: 500; font-size: max(19px, 7.15cqw); line-height: 1.1; }
.sp-title-long { font-size: max(16px, 5.95cqw); }
.sp-kicker { margin: 2cqw 0 0; font-family: var(--st-serif); font-style: italic; font-size: max(12px, 2.98cqw); color: var(--st-moss); }
.sp-kicker-surprise { color: var(--st-heather); }
.sp-ornament { width: 16.9cqw; height: auto; margin: 3.4cqw 0 0; }
.sp-body { margin: 2.7cqw 0 0; padding: 0 4cqw; font-family: var(--st-serif); font-size: max(12px, 2.98cqw); line-height: 1.5; }
.sp-extra { margin: 2.7cqw 0 0; padding: 0 6.8cqw; font-family: var(--st-serif); font-style: italic; font-size: max(11.5px, 2.62cqw); line-height: 1.45; color: var(--st-moss); }
/* padding-top keeps clear space under a long note (a night in's body is the longest), as print keeps 4 mm. */
.sheet-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; width: 100%; padding: max(10px, 3.4cqw) 0 3cqw; }
.sp-facts { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2.7cqw; width: 100%; }
.sp-facts > div { display: flex; flex-direction: column; gap: 0.4cqw; }
.sp-label { font-family: var(--st-serif); font-style: italic; font-size: max(12px, 2.26cqw); color: var(--st-moss); }
.sp-value { font-size: max(12px, 2.14cqw); line-height: 1.3; }
.sp-rule { width: 1px; height: 6cqw; background: var(--st-moss-tint); }
.sp-qr { width: 16.2cqw; min-width: 52px; height: auto; margin: 3.6cqw 0 0; }
.sp-caption { margin: 0.8cqw 0 0; font-family: var(--st-serif); font-style: italic; font-size: max(12px, 2.03cqw); }
.sheet-strip {
  flex: 0 0 20%;
  width: 100%;
  border-top: 1px solid var(--st-moss-tint);
  display: grid;
  grid-template-rows: auto auto 1fr 1fr 1fr;
  padding: 1.6cqw 0 3cqw;
  text-align: left;
}
.sp-strip-title { margin: 0; text-align: center; font-family: var(--st-serif); font-style: italic; font-size: max(11px, 2.86cqw); }
.sp-pebbles { justify-self: center; width: 17.6cqw; min-width: 52px; height: auto; margin: 0.6cqw 0 0.4cqw; }
.sheet-strip span { display: flex; align-items: flex-end; gap: 2cqw; font-family: var(--st-serif); font-style: italic; font-size: max(11px, 2.03cqw); border-bottom: 1px solid #C9CEC6; padding-bottom: 0.3cqw; }
.bpage-notes { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; padding-top: 4px; }
.bpage-reveal { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.bpage-note { border-left: 2px solid var(--st-heather); padding-left: 8px; }
.bpage-controls { padding: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge-heather-quiet { background: transparent; color: var(--st-heather); border: 1px solid var(--st-heather); }

/* Cover card */
.cover-frame { container-type: inline-size; width: 100%; }
.cover-card {
  position: relative;
  aspect-ratio: 148 / 210;
  background: #FBFAF6;
  border: 1px solid #D9DCD4;
  border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30cqw 6.8cqw 6cqw;
}
.cover-card .cover-symbol svg { width: 17.6cqw; height: 17.6cqw; display: block; }
.cover-names { margin: 13cqw 0 0; font-family: var(--st-serif); font-weight: 500; font-size: max(17px, 8.1cqw); line-height: 1.12; }
.cover-ornament { width: 20.3cqw; height: auto; margin: 3.4cqw 0 0; }
.cover-town { margin: 3cqw 0 0; font-family: var(--st-serif); font-style: italic; font-size: max(12px, 3.6cqw); color: var(--st-moss); }
.cover-brand { margin: auto 0 0; font-weight: 600; font-size: max(12px, 1.9cqw); }

/* ---------- Home ---------- */

.strip-section { padding: var(--s-6) 0 var(--s-7); }
.booklet-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: var(--s-5);
  overflow-x: auto;
  padding: var(--s-2) var(--s-1) var(--s-4);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.booklet-strip > .bpage { scroll-snap-align: start; }
.booklet-strip:focus-visible { outline: 3px solid var(--st-tarn); outline-offset: 4px; border-radius: 8px; }
.strip-caption { text-align: center; margin: var(--s-4) auto 0; max-width: 26.6em; }

.steps { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: none; }
.steps li { border-top: 2px solid var(--st-moss); padding-top: var(--s-4); }
.steps h3 { font-size: 22px; }
.steps p { margin: 0; max-width: 22.6em; }
@media (max-width: 767.98px) { .steps { grid-template-columns: 1fr; gap: var(--s-5); } }

.section-band { background: var(--st-gesso); border-top: 1px solid var(--st-border); border-bottom: 1px solid var(--st-border); }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: start; }
@media (max-width: 767.98px) { .two-col { grid-template-columns: 1fr; gap: var(--s-6); } }
.price { font-family: var(--st-serif); font-size: 48px; line-height: 1; margin-bottom: var(--s-2); }
.price-line { margin-bottom: var(--s-4); }
.addons { padding-left: 1.1em; margin-bottom: var(--s-4); }
.addons li { margin-bottom: var(--s-2); }
.valentines { border-left: 3px solid var(--st-heather); padding-left: var(--s-3); margin-bottom: var(--s-5); }

.faq details { border-bottom: 1px solid var(--st-border); padding: var(--s-4) 0; }
.faq details:first-child { border-top: 1px solid var(--st-border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--st-serif); font-size: 24px; line-height: 1; color: var(--st-moss); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: var(--s-3) 0 0; max-width: 42.6em; }

.postcode-form.field-error { border-left: 0; padding-left: 0; }
.postcode-form.field-error .postcode-row { border-color: var(--st-heather); box-shadow: inset 2px 0 0 var(--st-heather); }
.postcode-form .error-text { display: flex; justify-content: center; gap: var(--s-2); margin: var(--s-3) 0 0; font-size: 15px; }
.postcode-form .error-text::before { content: ''; flex: 0 0 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--st-heather); }

/* ---------- Preview ---------- */

.preview-title { margin-bottom: var(--s-6); }
.preview-grid { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: var(--s-7); align-items: center; }
.preview-ripple { aspect-ratio: 1; width: 100%; }
.ripple-scale { width: 100%; height: auto; display: block; overflow: visible; }
.ripple-scale .ring-label { font-family: var(--st-sans); font-size: 13px; fill: var(--st-slate); }
.ripple-scale .ring { transform-origin: 50% 50%; transform-box: view-box; animation: ripple-out 600ms cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d); }
.ripple-scale .stone { animation: stone-in 300ms ease-out both; animation-delay: var(--d); }
@keyframes ripple-out { from { transform: scale(.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes stone-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ripple-scale .ring, .ripple-scale .stone { animation: none; }
}
.preview-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.pcard { background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: var(--st-radius-card); padding: var(--s-5); }
.pcard-type { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-1); color: var(--st-tarn); font-weight: 600; font-size: 14px; }
.pcard-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; }
.pcard-moss .pcard-dot { background: var(--st-moss); }
.pcard-tarn .pcard-dot { background: var(--st-tarn); }
.pcard-heather .pcard-dot { background: var(--st-heather); }
.pcard-name { font-size: 24px; margin: 0 0 var(--s-2); }
.pcard-meta { margin: 0 0 var(--s-2); font-size: 15px; }
.pcard-reason { margin: 0; }
.preview-next { margin-top: var(--s-7); }
.btn-lg-st { min-height: 54px; --bs-btn-font-size: 18px; --bs-btn-padding-x: 28px; }
.email-form { max-width: 560px; }
.error-text { color: var(--st-slate); }
@media (max-width: 767.98px) {
  .preview-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .preview-ripple { max-width: 360px; margin: 0 auto; }
  .ripple-scale .ring-label { font-size: 16px; }
}
/* Phones: a smaller ripple so the first date card shows above the pinned bar, with ring labels drawn
   larger in SVG units so they still render at 12px or more. */
@media (max-width: 575.98px) {
  .section.preview { padding-top: var(--s-5); }
  .preview-title { margin-bottom: var(--s-3); }
  .preview-grid { gap: var(--s-4); }
  .preview-ripple { max-width: 210px; }
  .ripple-scale .ring-label { font-size: 26px; }
}
.nowrap { white-space: nowrap; }

/* Preview: next step panel */
.next-panel {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background: var(--st-gesso);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-card);
}
.next-main { padding: var(--s-7) var(--s-7) var(--s-7); }
.next-title { font-size: 32px; margin-bottom: var(--s-3); }
.next-main p.measure { font-size: 18px; margin-bottom: var(--s-5); }
.next-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.next-note { margin: 0; font-size: 15px; color: rgba(31, 42, 46, .8); }
.next-email { padding: var(--s-7) var(--s-6); border-left: 1px solid var(--st-border); display: flex; flex-direction: column; justify-content: center; }
.next-email-title { font-size: 20px; margin-bottom: var(--s-3); }
.inline-field { display: flex; gap: var(--s-2); }
.inline-field .form-control { flex: 1 1 auto; min-width: 0; background: #fff; }
.inline-field .btn { flex: 0 0 auto; }
@media (max-width: 899.98px) {
  .next-panel { grid-template-columns: 1fr; }
  .next-main { padding: var(--s-6) var(--s-5); }
  .next-email { border-left: 0; border-top: 1px solid var(--st-border); padding: var(--s-5); }
  .next-title { font-size: 26px; }
}
@media (max-width: 400px) {
  .inline-field { flex-direction: column; }
}

/* ---------- Flow pages (questionnaire, checkout) ---------- */

.flow { padding: var(--s-7) 0 var(--s-8); }
.flow-head { margin-bottom: var(--s-6); }
.flow-progress { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-bottom: var(--s-2); color: rgba(31, 42, 46, .85); }
.flow-back { font-weight: 500; }
.flow-back::before { content: '‹'; margin-right: 6px; text-decoration: none; display: inline-block; }
.flow-bar { height: 3px; background: var(--st-border); border-radius: 3px; margin-bottom: var(--s-6); overflow: hidden; }
.flow-bar span { display: block; height: 100%; background: var(--st-moss); border-radius: 3px; }
.flow-head h1 { margin-bottom: var(--s-3); }
.flow-form .field { margin-bottom: var(--s-6); border: 0; padding: 0; }
.flow-form fieldset.field-error, .flow-form .field.field-error { padding-left: var(--s-3); border-left: 2px solid var(--st-heather); }
.form-control-short { max-width: 240px; }
.optional { font-weight: 400; color: rgba(31, 42, 46, .8); }

.choices { display: grid; gap: var(--s-2); }
.choices-2 { grid-template-columns: repeat(2, 1fr); }
.choices-3 { grid-template-columns: repeat(3, 1fr); }
.choices-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 575.98px) { .choices-4 { grid-template-columns: repeat(2, 1fr); } .choices-3 { grid-template-columns: 1fr; } .choices-3 .choice span { min-height: 46px; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 8px 12px;
  background: var(--st-gesso); border: 1.5px solid var(--st-border); border-radius: var(--st-radius);
  font-weight: 500;
}
.choice:hover span { border-color: #A9B3AA; }
.choice input:checked + span { border-color: var(--st-moss); background: #E9EEE6; box-shadow: inset 0 0 0 1px var(--st-moss); }
.choice input:focus-visible + span { outline: 3px solid var(--st-tarn); outline-offset: 2px; }

.name-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-3); align-items: start; }
.name-amp { font-family: var(--st-serif); font-size: 26px; line-height: 48px; color: var(--st-moss); }
@media (max-width: 420px) { .name-pair { grid-template-columns: 1fr; } .name-amp { display: none; } }

.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
@media (max-width: 680px) { .interest-grid { grid-template-columns: repeat(2, 1fr); } }
.interest { position: relative; cursor: pointer; }
.interest input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.interest span {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: 52px; padding: 10px 12px 10px 40px; position: relative;
  background: var(--st-gesso); border: 1.5px solid var(--st-border); border-radius: var(--st-radius);
  font-size: 15.5px; line-height: 1.3;
}
.interest span::before {
  content: ''; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 1.5px solid #8E9A92; border-radius: 5px; background: #fff;
}
.interest input:checked + span { border-color: var(--st-moss); background: #E9EEE6; }
.interest input:checked + span::before {
  background: var(--st-moss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23FAFAF6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--st-moss);
}
.interest input:focus-visible + span { outline: 3px solid var(--st-tarn); outline-offset: 2px; }
.interest.is-disabled span { opacity: .5; cursor: not-allowed; }
.picked-count { margin: var(--s-3) 0 0; font-weight: 600; }

.switch-st { display: flex; align-items: center; gap: var(--s-2); padding-left: 0; }
.switch-st .form-check-input { width: 2.6em; height: 1.4em; margin: 0 var(--s-2) 0 0; float: none; cursor: pointer; }
.switch-st .form-check-input:checked { background-color: var(--st-heather); border-color: var(--st-heather); }
.switch-st .form-check-label { font-weight: 600; display: flex; align-items: center; gap: var(--s-2); }

/* Summary */
.summary-head { display: grid; grid-template-columns: 1fr 260px; gap: var(--s-7); align-items: center; margin-bottom: var(--s-6); }
.summary-head h1 { margin-bottom: var(--s-3); }
.summary-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.summary-swap { margin: var(--s-5) 0 0; text-align: center; font-family: var(--st-serif); font-style: italic; font-size: 19px; color: var(--st-moss); }
.summary-buy { margin-top: var(--s-7); }
.summary-edit { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
@media (max-width: 899.98px) { .summary-pages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) {
  .summary-head { grid-template-columns: 1fr; gap: var(--s-5); }
  .summary-head .cover-frame { max-width: 220px; }
}
@media (max-width: 520px) { .summary-pages { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }



/* ---------- Checkout and order ---------- */

.checkout-wrap { display: grid; grid-template-columns: minmax(0, 640px) 240px; gap: var(--s-8); justify-content: center; align-items: start; }
.checkout-side { position: sticky; top: var(--s-5); }
.checkout-side .cover-frame { max-width: 240px; }
.checkout-side-note { font-size: 15px; margin-top: var(--s-4); }
@media (max-width: 899.98px) { .checkout-wrap { grid-template-columns: 1fr; } .checkout-side { display: none; } }
.legend-lg { font-family: var(--st-serif); font-weight: 500; font-size: 22px; color: var(--st-slate); margin-bottom: var(--s-4); }
.lines { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.lines li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) 0; border-bottom: 1px solid var(--st-border); }
.lines .lines-total { font-weight: 600; border-bottom: 0; }
.addon { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: start; padding: var(--s-4); margin-top: var(--s-3); background: var(--st-gesso); border: 1.5px solid var(--st-border); border-radius: var(--st-radius); cursor: pointer; }
.addon:has(input:checked) { border-color: var(--st-moss); background: #E9EEE6; }
.addon .form-check-input { margin-top: 3px; }
.addon-text { display: flex; flex-direction: column; gap: 2px; }
.addon-text span { font-size: 15px; }
.addon-price { font-weight: 600; white-space: nowrap; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.flow-form .field-row .field, .flow-form fieldset .field { margin-bottom: var(--s-4); }
.checks .form-check { margin-bottom: var(--s-3); }
.checks .form-check.field-error { padding-left: calc(1.5em + var(--s-3)); }
.checkout-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--st-border); margin-top: var(--s-3); }
.checkout-total { margin: 0; font-size: 18px; }
.checkout-total strong { font-family: var(--st-serif); font-size: 28px; font-weight: 500; margin-left: var(--s-2); }
.gift-message { margin-top: var(--s-4); }

.order-thanks { margin-bottom: var(--s-2); }
.order-status { padding: var(--s-5); margin: var(--s-4) 0 var(--s-6); }
.order-status-line { font-size: 19px; margin-bottom: var(--s-4); }
.writing-bar { height: 4px; background: var(--st-border); border-radius: 4px; overflow: hidden; margin-bottom: var(--s-4); }
.writing-bar span { display: block; height: 100%; width: 30%; background: var(--st-moss); border-radius: 4px; animation: writing 1.6s ease-in-out infinite; }
@keyframes writing { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .writing-bar span { animation: none; width: 100%; opacity: .5; } }
.order-address { font-style: normal; line-height: 1.6; }
.mt-6 { margin-top: var(--s-7) !important; }

/* ---------- Approval editor ---------- */

.editor .wrap { max-width: 1120px; }
.editor-head { margin-bottom: var(--s-5); }
.editor-cover { display: grid; grid-template-columns: 240px minmax(0, 520px); gap: var(--s-7); align-items: start; padding: var(--s-6); background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: var(--st-radius-card); margin-bottom: var(--s-6); }

@media (max-width: 767.98px) { .editor-cover { grid-template-columns: 1fr; padding: var(--s-5); } .editor-cover .cover-frame { max-width: 200px; } }
.swaps-left { margin-bottom: var(--s-3); }
.editor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-5); }
.editor-cell { scroll-margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); }
.editor-cell > .bpage, .editor-cell > .mpage { flex: 1 0 auto; }
.cell-notice { padding: var(--s-3) var(--s-4); font-size: 15px; }
.editor-cell .bpage { width: 100%; }
.swap-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.swap-form:has(> button:nth-of-type(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.swap-label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--st-slate); }
.swap-form .btn-sm { width: 100%; padding-left: 4px; padding-right: 4px; }
.swap-form .btn-sm { min-height: 34px; --bs-btn-padding-x: 10px; --bs-btn-font-size: 13px; --bs-btn-border-width: 1px; }
.approve-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--s-4); margin-top: var(--s-7); padding: var(--s-4) var(--s-5); background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: var(--st-radius-card); }
@media (max-width: 520px) { .approve-bar { justify-content: stretch; } .approve-bar > * { flex: 1 1 100%; } .approve-bar .btn { width: 100%; } }
/* Small phones: one 48px button in the pinned bar; the preview becomes a text link above it (5.7). */
@media (max-width: 520px) {
  .approve-bar { gap: var(--s-2); padding: var(--s-3) var(--s-4); }
  .approve-bar .approve-preview { --bs-btn-border-width: 0; --bs-btn-bg: transparent; --bs-btn-hover-bg: transparent; --bs-btn-active-bg: transparent; --bs-btn-color: var(--st-tarn); --bs-btn-hover-color: var(--st-slate);
    min-height: 32px; padding: 2px 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
}

/* ---------- QR date page ---------- */

/* Site polish (23 Nov 2026): the printed week page brought to life, design B, mobile first. */
.qd-body { background: var(--st-riverstone); }
.qd-brand { padding: var(--s-5) var(--s-4) 0; text-align: center; }
.qd-brand-link { display: inline-block; }
.qd-brand svg { display: block; height: 26px; width: auto; }
.qd-main { flex: 1 0 auto; width: 100%; max-width: 580px; margin: 0 auto; padding: var(--s-6) var(--s-4) var(--s-7); isolation: isolate; }
.qd-sheet {
  --paper: #FBFAF6;
  position: relative; container-type: inline-size;
  margin: 18px 0 0; padding: 52px 28px 28px;
  background: var(--paper); border: 1px solid #D9DCD4; border-radius: 4px;
  text-align: center; color: var(--st-slate);
}
.qd-sheet::after { content: ''; position: absolute; inset: 0; transform: translate(6px, 6px); border: 1px solid #D9DCD4; border-radius: 4px; background: #F4F3EE; z-index: -1; }
.qd-sheet .sheet-wire { top: 0; left: 14px; right: 14px; height: auto; aspect-ratio: 640 / 63; transform: translateY(-40%); background-size: 6.25% 100%; }
.qd-top { display: flex; flex-direction: column; align-items: center; }
.qd-week { margin: 0; font-family: var(--st-serif); font-style: italic; font-size: 19px; line-height: 1.2; color: var(--st-moss); }
.qd-range { margin: var(--s-1) 0 0; font-size: 14px; letter-spacing: .01em; }
.qd-revealed { margin: var(--s-5) 0 0; padding: 2px 12px; border: 1px solid var(--st-heather); border-radius: var(--st-radius-pill); color: var(--st-heather); font-size: 13px; font-weight: 500; }
.qd-title { margin: var(--s-5) 0 0; font-family: var(--st-serif); font-weight: 500; font-size: clamp(32px, 9.6cqw, 48px); line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
.qd-revealed + .qd-title { margin-top: var(--s-3); }
.qd-title-long { font-size: clamp(27px, 7.4cqw, 38px); }
.qd-kicker { margin: var(--s-2) 0 0; font-family: var(--st-serif); font-style: italic; font-size: 19px; color: var(--st-moss); }
.qd-sheet-surprise .qd-kicker { color: var(--st-heather); }
.qd-ornament { display: block; margin: var(--s-4) auto 0; }
.qd-ornament svg { display: block; width: 72px; height: auto; }
.qd-note { margin: var(--s-4) auto 0; max-width: 18.7em; font-family: var(--st-serif); font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.qd-extra { margin: var(--s-3) auto 0; max-width: 17.9em; font-family: var(--st-serif); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--st-moss); }
.qd-facts { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); margin: var(--s-6) 0 0; }
.qd-facts div { display: flex; flex-direction: column; gap: 2px; }
.qd-facts dt { font-family: var(--st-serif); font-style: italic; font-weight: 400; font-size: 16px; color: var(--st-moss); }
.qd-facts dd { margin: 0; font-size: 15px; line-height: 1.35; }
/* The hairline between the two facts is drawn by CSS: a <dl> may only hold dt/dd groups. */
.qd-facts::before { content: ''; grid-column: 2; grid-row: 1; width: 1px; height: 40px; background: var(--st-moss-tint); }
.qd-facts div:first-of-type { grid-column: 1; grid-row: 1; }
.qd-facts div:last-of-type { grid-column: 3; grid-row: 1; }
.qd-where { margin: var(--s-5) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--st-border); }
.qd-label { margin: 0; font-family: var(--st-serif); font-style: italic; font-size: 16px; color: var(--st-moss); }
.qd-address { margin: 2px auto 0; max-width: 22.6em; font-size: 16px; line-height: 1.45; }
/* The next step stays on screen: pinned to the foot of the viewport while the card scrolls, settling in place. */
.qd-action { position: sticky; bottom: 0; z-index: 3; margin: var(--s-5) -28px 0; padding: var(--s-3) 28px calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid #E4E7E1; }
.qd-action .btn { width: 100%; min-height: 52px; font-size: 17px; }
.qd-action-more { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-2); margin-top: var(--s-1); }
.qd-caption { margin: var(--s-4) auto 0; max-width: 19em; font-family: var(--st-serif); font-style: italic; font-size: 16px; line-height: 1.45; }
.qd-reveal { display: contents; }
.qd-reveal .qd-caption { margin-top: var(--s-2); font-size: 15px; }
.qd-panel { margin: var(--s-6) 0 0; padding: var(--s-5); scroll-margin-top: var(--s-4); background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: var(--st-radius-card); }
.qd-report { padding: 0; }
.qd-report summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); cursor: pointer; font-weight: 600; }
.qd-report summary::-webkit-details-marker { display: none; }
.qd-report summary::after { content: '+'; font-family: var(--st-serif); font-size: 24px; line-height: 1; color: var(--st-moss); }
.qd-report[open] summary::after { content: '–'; }
.qd-report-form { padding: 0 var(--s-5) var(--s-5); }
.qd-panel-text { margin: 0 0 var(--s-4); font-size: 16px; }
.qd-field { margin: 0 0 var(--s-4); }
.qd-field legend { font-size: 16px; }
.qd-report .choice span { justify-content: flex-start; text-align: left; min-height: 48px; padding: 8px 16px; }
.qd-report .btn { width: 100%; }
.qd-panel-kicker { margin: 0; font-family: var(--st-serif); font-style: italic; font-size: 17px; color: var(--st-moss); }
.qd-panel-title { margin: var(--s-1) 0 var(--s-3); font-size: 26px; text-wrap: balance; }
.qd-alt { border-top: 1px solid var(--st-border); padding-top: var(--s-4); margin-top: var(--s-4); }
.qd-alt-kicker { margin: 0; font-family: var(--st-serif); font-style: italic; font-size: 16px; color: var(--st-moss); }
.qd-alt-name { margin: 2px 0 var(--s-1); font-size: 23px; }
.qd-alt-facts, .qd-alt-address { margin: 0 0 var(--s-1); font-size: 15px; }
.qd-alt .place-actions { margin-top: var(--s-3); }
.place-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.place-actions .btn { flex: 1 1 auto; }
.qd-footer { text-align: center; font-size: 13px; line-height: 1.5; padding: 0 var(--s-4) var(--s-6); max-width: 580px; margin: 0 auto; color: var(--st-slate); }
.qd-footer p { margin-bottom: var(--s-2); }
.qd-footer-links a { margin: 0 var(--s-2); }
@media (max-width: 400px) {
  .qd-main { padding-top: var(--s-5); }
  .qd-sheet { padding: 44px 20px 22px; }
  .qd-action { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .qd-note { font-size: 18px; }
}
@media (min-width: 768px) {
  .qd-main { padding-top: var(--s-7); }
  .qd-sheet { padding: 72px 56px 44px; }
  .qd-action { margin-left: -56px; margin-right: -56px; padding-left: 56px; padding-right: 56px; }
  .qd-week { font-size: 21px; }
  .qd-note { font-size: 20px; }
}

/* ---------- Pinned next step (always visible) ---------- */

.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  background: var(--st-gesso);
  border: 1px solid var(--st-border);
  border-bottom: 0;
  border-radius: var(--st-radius-card) var(--st-radius-card) 0 0;
}
.sticky-cta-page { margin-top: var(--s-6); border-bottom: 1px solid var(--st-border); border-radius: var(--st-radius-card); }
.sticky-cta-note { font-size: 15px; color: var(--st-slate); }
.sticky-cta .btn { flex: 0 0 auto; }
@media (max-width: 575.98px) {
  .sticky-cta { margin-left: calc(-1 * var(--s-4)); margin-right: calc(-1 * var(--s-4)); border-radius: 0; border-left: 0; border-right: 0; padding: var(--s-3) var(--s-4); }
  .sticky-cta .btn { flex: 1 1 100%; }
  .sticky-cta-note { flex: 1 1 100%; font-size: 14px; }
}
.checkout-submit.sticky-cta { padding-top: var(--s-3); }

.home-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--st-gesso); border-top: 1px solid var(--st-border);
  padding: var(--s-3) 0;
}
.home-cta-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
@media (max-width: 575.98px) { .home-cta-bar .btn { flex: 1 1 100%; } .home-cta-bar .sticky-cta-note { font-size: 14px; } }
body:has(.home-cta-bar:not([hidden])) .site-footer { padding-bottom: 110px; }

/* Keep the hero's postcode box above the fold on small phones. */
@media (max-width: 575.98px) {
  .hero { padding: var(--s-6) 0 var(--s-7); }
  .hero h1 { font-size: 34px; margin-bottom: var(--s-4); }
  .hero .hero-sub { margin-bottom: var(--s-5); }
}
.flow-form .sticky-cta { justify-content: flex-end; }

/* ---- Accounts (3.1) ---------------------------------------------------- */
.auth-wrap { max-width: 480px; }
.auth h1 { margin-bottom: var(--s-3); }
.auth-lede { font-size: 17px; margin-bottom: var(--s-5); }
.auth-alt { margin-top: var(--s-5); font-size: 15px; }
.form-hint { font-size: 14px; margin: calc(-1 * var(--s-1)) 0 var(--s-2); }
.account-email { color: var(--st-tarn); margin-bottom: var(--s-5); }
.account-orders { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.account-orders li { display: flex; gap: var(--s-4); align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); }
.account-order-names { font-family: var(--st-serif); font-size: 20px; margin: 0 0 var(--s-1); }
.account-empty { padding: var(--s-5); }
.account-section { border-top: 1px solid var(--st-border); padding: var(--s-4) 0; }
.account-section summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.account-section summary::-webkit-details-marker { display: none; }
.account-section summary::after { content: '+'; font-family: var(--st-serif); font-size: 24px; line-height: 1; color: var(--st-moss); }
.account-section[open] summary::after { content: '–'; }
.account-section:last-of-type { border-bottom: 1px solid var(--st-border); }
.order-account { padding: var(--s-5); }
.order-account-form { display: grid; gap: var(--s-3); }
@media (min-width: 576px) { .order-account-form { grid-template-columns: 1fr auto; align-items: end; } }
@media (max-width: 575.98px) { .account-orders li { flex-direction: column; align-items: flex-start; } }

/* ---- Product photos (mockups until a real sample is photographed) -------- */
.product-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin: 0 0 var(--s-3); padding: 0; list-style: none; }
.product-photos li, .product-photos figure { margin: 0; min-width: 0; }
.product-photos picture, .product-photos img { display: block; width: 100%; height: auto; border-radius: var(--st-radius-card, 16px); }
.product-photos img { aspect-ratio: 640 / 794; object-fit: cover; background: var(--st-riverstone); }
.product-photos figcaption { font-size: 15px; margin-top: var(--s-2); line-height: 1.45; }
.photo-note { font-size: 14px; color: #55605f; margin: 0 0 var(--s-7); }
@media (max-width: 999.98px) {
  .product-photos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 44%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); }
  .product-photos li { scroll-snap-align: start; }
}
@media (max-width: 575.98px) { .product-photos { grid-auto-columns: 72%; } }
.addon-thumb { flex: 0 0 auto; }
.addon-thumb img { display: block; width: 56px; height: 56px; object-fit: cover; object-position: 50% 40%; border-radius: 8px; }
.addon:has(.addon-thumb) { grid-template-columns: auto auto 1fr auto; align-items: center; }

/* ---- Home: hero with the product, and "what's on every page" (23 Nov 2026) ---- */
.hero { text-align: left; padding: var(--s-8) 0 var(--s-8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 0 0 var(--s-5); max-width: 10.26em; font-size: 54px; text-wrap: balance; }
@media (min-width: 1000px) { .hero h1 { font-family: var(--st-serif-display); } }
.hero .hero-sub { margin: 0 0 var(--s-6); max-width: 29.3em; font-size: 20px; line-height: 1.5; }
.hero .postcode-form { margin: 0; max-width: 500px; }
.hero .postcode-form .form-label { font-weight: 600; color: var(--st-slate); margin-bottom: var(--s-2); }
.hero .postcode-row .btn { padding-left: var(--s-5); padding-right: var(--s-5); font-size: 17px; }
.hero .postcode-note { margin: var(--s-3) 0 0; }
.hero .postcode-form .error-text { justify-content: flex-start; }
.hero-gift { margin: var(--s-5) 0 0; padding-left: var(--s-3); border-left: 2px solid var(--st-heather); font-size: 15px; max-width: 30.6em; }
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-visual .ripple { position: absolute; left: 50%; top: 47%; width: 1100px; height: 1100px; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 8%, #000 42%); mask-image: linear-gradient(to right, transparent 8%, #000 42%); }
.hero-photo { display: block; width: min(100%, 460px); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 794; object-fit: cover; border-radius: 22px; background: var(--st-gesso); }
.hero-photo-note { font-size: 13px; color: #55605f; margin: var(--s-2) 0 0; }
@media (max-width: 999.98px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-visual .ripple { -webkit-mask-image: none; mask-image: none; width: 860px; height: 860px; }
  .hero-photo { width: min(78%, 420px); }
}
@media (max-width: 575.98px) {
  .hero { padding: var(--s-5) 0 var(--s-7); }
  .hero h1 { font-size: 34px; margin-bottom: var(--s-3); }
  .hero .hero-sub { font-size: 17px; margin-bottom: var(--s-4); }
  .hero-sub-more { display: none; }
  .hero .postcode-form .form-label { font-size: 15px; margin-bottom: var(--s-1); }
  .hero-visual { margin-top: var(--s-4); }
  .hero-visual .ripple { width: 640px; height: 640px;
    -webkit-mask-image: radial-gradient(circle closest-side, #000 52%, transparent 76%); mask-image: radial-gradient(circle closest-side, #000 52%, transparent 76%); }
}

.every-page { background: var(--st-gesso); border-top: 1px solid var(--st-border); border-bottom: 1px solid var(--st-border); }
.every-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.every-visual { padding: var(--s-6) var(--s-4) 0; order: -1; }
.every-visual .bpage { transform: rotate(-2deg); }
.every-copy h2 { font-size: 40px; line-height: 1.12; max-width: 13em; margin-bottom: var(--s-3); text-wrap: balance; }
.every-lede { font-size: 19px; margin-bottom: var(--s-5); }
.page-points { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: var(--s-4); }
.page-points li { display: grid; grid-template-columns: 22px 1fr; column-gap: var(--s-3); }
.page-points li::before { content: ''; grid-row: span 2; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: radial-gradient(circle, var(--st-slate) 0 3px, transparent 3.5px), radial-gradient(circle, transparent 0 6px, var(--st-moss) 6.5px 8px, transparent 8.5px); }
.page-points strong { font-weight: 600; }
.page-points span { color: var(--st-slate); }
.every-more { font-family: var(--st-serif); font-style: italic; font-size: 19px; color: var(--st-moss); max-width: 25.3em; margin: 0; }
.variety-title { font-size: 24px; margin: var(--s-8) 0 var(--s-4); }
.variety-strip { grid-auto-columns: minmax(230px, 1fr); padding-top: var(--s-5); }
.variety-note { font-size: 14px; color: #55605f; margin: var(--s-2) 0 0; }
@media (max-width: 999.98px) {
  .every-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .every-visual { max-width: 380px; margin: 0 auto; width: 100%; }
  .every-copy h2 { font-size: 30px; }
  .variety-strip { grid-auto-columns: minmax(220px, 62%); }
}
/* Three columns on desktop only: below 1000px the row is the swipeable scroller above. */
@media (min-width: 1000px) { .product-photos { grid-template-columns: repeat(3, 1fr); } }

/* ---- Start on any date (5B.1) ---- */
.start-choices .choice > span { flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; padding: 10px 14px; min-height: 64px; gap: 2px; }
.choice .choice-hint, .choice input:checked + span .choice-hint { display: block; min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; font-weight: 400; font-size: 14px; color: rgba(31, 42, 46, 0.82); }
.choice strong { font-weight: 600; }
.start-date { margin-top: var(--s-3); }
@media (max-width: 575.98px) { .start-choices { grid-template-columns: 1fr; } }

/* ---- Content pages: about and guides (5.4) ---- */
.content-page h1 { font-size: 48px; line-height: 1.1; margin: var(--s-3) 0 var(--s-4); text-wrap: balance; }
.content-page h2 { font-size: 28px; margin: var(--s-7) 0 var(--s-3); }
.content-page p, .content-page li { font-size: 18px; line-height: 1.65; }
.content-page ul, .content-page ol { padding-left: 1.2em; margin-bottom: var(--s-4); }
.content-page li { margin-bottom: var(--s-2); }
.content-page li strong { font-weight: 600; }
.crumbs { font-size: 14px; color: #55605f; }
.crumbs a { color: var(--st-tarn); }
.answer { font-size: 20px !important; line-height: 1.55 !important; padding: var(--s-4) var(--s-5); background: var(--st-gesso); border: 1px solid var(--st-border); border-left: 3px solid var(--st-moss); border-radius: 12px; }
.byline { font-size: 15px !important; color: #55605f; margin-bottom: var(--s-4); }
.byline span { white-space: nowrap; }
.guide-cta-line { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.guide-cta-line span { font-size: 15px !important; color: #55605f; }
.cta-panel { margin: var(--s-7) 0 0; padding: var(--s-6); background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: 16px; }
.cta-panel-title { font-size: 26px !important; margin: 0 0 var(--s-2) !important; }
.cta-panel-text { font-size: 16px !important; margin-bottom: var(--s-4); }
.cta-panel .postcode-form { max-width: 520px; margin: 0; }
.cta-panel .form-label { font-weight: 600; color: var(--st-slate); }
.author-card { padding: var(--s-5); background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: 16px; }
.author-name { font-family: var(--st-serif); font-size: 24px !important; margin: 0; }
.author-role { color: var(--st-moss); font-style: italic; font-family: var(--st-serif); margin-bottom: var(--s-3); }
.guides-lede { max-width: 48em; }
/* Guides index: a single-column contents list, like a letter's (design review 5.7: not a grid of cards). */
.guide-list { list-style: none; padding: 0 !important; margin: var(--s-6) 0; max-width: 760px; border-top: 1px solid var(--st-border); }
.guide-list li { margin: 0; border-bottom: 1px solid var(--st-border); }
.guide-card { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s-5); row-gap: var(--s-1); align-items: baseline; padding: var(--s-5) 0; color: var(--st-slate); text-decoration: none; }
.guide-card-title { font-family: var(--st-serif); font-size: 23px; line-height: 1.25; }
.guide-card:hover .guide-card-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.guide-card-text { grid-column: 1; font-size: 16px; line-height: 1.5; max-width: 36em; }
.guide-card-more { grid-column: 2; grid-row: 1; color: var(--st-tarn); font-weight: 600; font-size: 15px; white-space: nowrap; }
@media (max-width: 575.98px) { .guide-card { grid-template-columns: 1fr; } .guide-card-more { grid-column: 1; grid-row: auto; } .guide-card-title { font-size: 21px; } }
.more-guides { list-style: none; padding: 0 !important; }
@media (max-width: 575.98px) {
  .content-page h1 { font-size: 34px; }
  .content-page h2 { font-size: 24px; }
  .content-page p, .content-page li { font-size: 17px; }
  .answer { font-size: 18px !important; padding: var(--s-3) var(--s-4); }
  .cta-panel { padding: var(--s-5) var(--s-4); }
}
.town-list { list-style: none; padding: 0 !important; columns: 4 200px; column-gap: var(--s-5); }
.town-list li { break-inside: avoid; margin-bottom: var(--s-1); font-size: 17px; }
.town-groups { list-style: none; padding: 0 !important; display: grid; gap: var(--s-3); }
.town-groups li { display: grid; grid-template-columns: 80px 1fr; column-gap: var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--st-border); margin: 0; }
.tg-n { font-family: var(--st-serif); font-size: 30px; line-height: 1; grid-row: span 2; }
.tg-label { font-weight: 600; }
.tg-types { font-size: 15px !important; color: #55605f; }

/* ---- Site polish: home "Keep the year" (memory book, 23 Nov 2026) ---- */
.keep-year { padding-bottom: var(--s-7); }
.keep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.keep-photos { display: flex; flex-direction: column; max-width: 500px; width: 100%; }
.keep-photo { display: block; }
.keep-photo img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 794; object-fit: cover; background: var(--st-gesso); }
.keep-photo-a { width: 66%; }
.keep-photo-a img { border-radius: 22px; }
.keep-photo-b { width: 54%; align-self: flex-end; margin-top: -34%; position: relative; z-index: 1; }
.keep-photo-b img { border-radius: 18px; outline: 8px solid var(--st-riverstone); }
.keep-kicker { font-family: var(--st-serif); font-style: italic; font-size: 20px; color: var(--st-moss); margin: 0 0 var(--s-1); }
.keep-copy h2 { font-size: 40px; line-height: 1.1; margin: 0 0 var(--s-4); }
.keep-lede { font-size: 19px; line-height: 1.55; max-width: 29.3em; margin-bottom: var(--s-5); }
.keep-points { margin-bottom: var(--s-5); }
.keep-price { display: flex; align-items: baseline; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--st-border); border-bottom: 1px solid var(--st-border); margin-bottom: var(--s-4); }
.keep-price-figure { font-family: var(--st-serif); font-size: 40px; line-height: 1; margin: 0; flex: 0 0 auto; }
.keep-price-line { font-size: 15px; line-height: 1.5; margin: 0; max-width: 26.6em; }
.keep-honest { font-family: var(--st-serif); font-style: italic; font-size: 18px; color: var(--st-slate); margin: 0; max-width: 24.3em; }
.keep-note { font-size: 14px; color: #55605f; margin: var(--s-5) auto 0; }
@media (max-width: 999.98px) {
  .keep-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .keep-photos { max-width: 460px; margin: 0 auto; }
  .keep-copy h2 { font-size: 32px; }
}
@media (max-width: 575.98px) {
  .keep-year { padding-top: var(--s-7); }
  .keep-photo-b img { outline-width: 6px; }
  .keep-lede { font-size: 17px; }
  .keep-price { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .keep-price-figure { font-size: 34px; }
}
/* ---- Legal pages: privacy, terms, contact (5.1) ---- */
.legal-layout { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s-5); }
.legal-main { max-width: 680px; margin: 0 auto; }
.legal-updated { font-size: 15px !important; color: #55605f; margin: 0 0 var(--s-4); }
.legal-lede { font-family: var(--st-serif); font-size: 21px !important; line-height: 1.5 !important; margin-bottom: var(--s-5); }
.legal-lede a { overflow-wrap: anywhere; }
.legal-toc { background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: 12px; margin-bottom: var(--s-2); }
.legal-toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-4); font-weight: 600; border-radius: 12px; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--st-slate); border-bottom: 2px solid var(--st-slate); transform: rotate(45deg) translateY(-2px); transition: transform 0.15s; }
.legal-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.legal-toc ol { margin: 0; padding: 0 var(--s-4) var(--s-4) calc(var(--s-4) + 1.2em) !important; }
.legal-toc li { font-size: 16px !important; margin-bottom: var(--s-1) !important; }
.legal-aside { display: none; }
.legal-aside-title { font-family: var(--st-serif); font-size: 19px; margin: 0 0 var(--s-3); }
.legal-aside ol { list-style: none; padding: 0 !important; margin: 0; border-left: 1px solid var(--st-border); }
.legal-aside li { font-size: 15px !important; line-height: 1.4 !important; margin: 0 !important; }
.legal-aside a { display: block; padding: 6px 0 6px var(--s-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--st-slate); text-decoration: none; }
.legal-aside a:hover { border-left-color: var(--st-moss); color: var(--st-moss); }
.legal-page h2 { scroll-margin-top: var(--s-5); }
.legal-item { margin-top: var(--s-6); scroll-margin-top: var(--s-5); }
.legal-item h3 { font-size: 22px; margin-bottom: var(--s-3); }
.legal-dl { margin: 0; border-top: 1px solid var(--st-border); }
.legal-dl > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: var(--s-5); padding: var(--s-3) 0; border-bottom: 1px solid var(--st-border); }
.legal-dl dt { font-size: 15px; font-weight: 600; color: var(--st-moss); padding-top: 2px; }
.legal-dl dd { margin: 0; font-size: 17px; line-height: 1.6; }
.legal-table-wrap { overflow-x: auto; margin: var(--s-4) 0; background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: 16px; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--st-border); font-size: 16px; line-height: 1.55; }
.legal-table tbody tr:last-child th, .legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table thead th { font-size: 14px; font-weight: 600; color: #55605f; }
.legal-table tbody th { font-weight: 600; white-space: nowrap; width: 1%; }
.legal-company { margin-top: var(--s-7); padding: var(--s-5); background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: 16px; }
.legal-company h2 { margin: 0 0 var(--s-3) !important; font-size: 24px !important; }
.legal-company-list { margin: 0; }
.legal-company-list > div { display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-2) 0; border-top: 1px solid var(--st-border); }
.legal-company-list dt { font-size: 15px; font-weight: 600; }
.legal-company-list dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.contact-card { margin: var(--s-4) 0 var(--s-2); padding: var(--s-5); background: var(--st-gesso); border: 1px solid var(--st-border); border-left: 3px solid var(--st-moss); border-radius: 16px; }
.contact-card-lede { font-family: var(--st-serif); font-size: 22px !important; line-height: 1.45 !important; margin-bottom: var(--s-4); }
.contact-email { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; overflow-wrap: anywhere; }
.contact-card-note { font-size: 15px !important; color: #55605f; margin: var(--s-3) 0 0; }
.contact-address { font-style: normal; font-size: 18px; line-height: 1.65; margin-bottom: var(--s-3); }
@media (min-width: 1100px) {
  .legal-layout { display: grid; grid-template-columns: 220px minmax(0, 680px); column-gap: var(--s-8); justify-content: center; }
  .legal-main { margin: 0; }
  .legal-aside { display: block; position: sticky; top: var(--s-6); align-self: start; margin-top: 112px; max-height: calc(100vh - var(--s-7)); overflow-y: auto; }
  .legal-toc { display: none; }
}
@media (max-width: 575.98px) {
  .legal-layout { padding: 0 var(--s-4); }
  .legal-lede { font-size: 19px !important; }
  .legal-dl > div { grid-template-columns: 1fr; row-gap: 2px; }
  .legal-company { padding: var(--s-4); }
  .legal-company-list > div { grid-template-columns: 1fr; }
  .contact-card { padding: var(--s-4); }
  .contact-card-lede { font-size: 20px !important; }
  .contact-email { width: 100%; }
  .legal-table tbody th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .legal-toc summary::after { transition: none; } }
/* ---- 5.2 cookie consent and cookie policy ---- */

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
  background: var(--st-gesso); color: var(--st-slate);
  border-top: 1px solid var(--st-border);
  /* Never taller than the screen below the header, so the second layer doesn't cover the logo (5.7). */
  max-height: min(88vh, calc(100vh - 112px)); overflow-y: auto; overscroll-behavior: contain;
}
.consent[hidden] { display: none; }
.consent-inner { max-width: 1120px; margin: 0 auto; padding: var(--s-4) var(--s-5); }
.consent-first { display: flex; align-items: center; gap: var(--s-4) var(--s-6); }
.consent-copy { flex: 1 1 auto; max-width: 42.6em; }
.consent-title { font-family: var(--st-serif); font-weight: 500; font-size: 20px; line-height: 1.25; margin: 0 0 var(--s-1); }
.consent-title:focus { outline: none; }
.consent-text { font-size: 15px; line-height: 1.5; margin: 0; }
.consent-text a { color: var(--st-tarn); }
.consent-actions { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.consent-btn {
  --bs-btn-color: var(--st-slate); --bs-btn-bg: transparent; --bs-btn-border-color: var(--st-slate);
  --bs-btn-hover-color: var(--st-slate); --bs-btn-hover-bg: rgba(31, 42, 46, 0.06); --bs-btn-hover-border-color: var(--st-slate);
  --bs-btn-active-color: var(--st-slate); --bs-btn-active-bg: rgba(31, 42, 46, 0.1); --bs-btn-active-border-color: var(--st-slate);
  --bs-btn-font-weight: 600; --bs-btn-font-size: 15px; --bs-btn-padding-x: 18px; --bs-btn-padding-y: 8px;
  min-height: 44px; white-space: nowrap;
}
.consent-second { max-width: 720px; margin: 0 auto; }
.consent-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.consent-close { font-size: 15px; font-weight: 600; color: var(--st-tarn); }
.consent-options { list-style: none; padding: 0 !important; margin: var(--s-4) 0 !important; border-top: 1px solid var(--st-border); }
.consent-option { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); padding: var(--s-3) 0; margin: 0 !important; border-bottom: 1px solid var(--st-border); }
.consent-option-text { flex: 1 1 auto; }
.consent-option-name { display: block; font-weight: 600; font-size: 16px !important; line-height: 1.4 !important; margin: 0 0 2px; color: var(--st-slate); }
.consent-option-desc { font-size: 14px !important; line-height: 1.5 !important; margin: 0; color: rgba(31, 42, 46, 0.78); }
.consent-always { flex: 0 0 auto; margin: 2px 0 0; font-size: 14px !important; font-weight: 600; color: var(--st-moss); white-space: nowrap; }
.consent-switch { position: relative; flex: 0 0 auto; width: 50px; height: 28px; margin-top: 2px; }
.consent-switch-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.consent-switch-track { position: absolute; inset: 0; border-radius: var(--st-radius-pill); background: var(--st-gesso); border: 1.5px solid #6B7670; transition: background-color 0.15s, border-color 0.15s; }
.consent-switch-track::after { content: ''; position: absolute; top: 3.5px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #6B7670; transition: transform 0.15s, background-color 0.15s; }
.consent-switch-input:checked + .consent-switch-track { background: var(--st-moss); border-color: var(--st-moss); }
.consent-switch-input:checked + .consent-switch-track::after { background: var(--st-gesso); transform: translateX(21px); }
.consent-switch-input:focus-visible + .consent-switch-track { outline: 3px solid var(--st-tarn); outline-offset: 2px; }
.consent-save { display: flex; align-items: center; gap: var(--s-3) var(--s-5); flex-wrap: wrap; }
.consent-save a { font-size: 15px; }
.consent-saved { margin: 0; font-size: 15px !important; color: var(--st-moss); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .consent-switch-track, .consent-switch-track::after { transition: none; }
}
@media (max-width: 899.98px) {
  .consent-first { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .consent-copy { max-width: none; }
}
/* Phones: one compact strip so the page's next step stays visible above it. Accept and Reject
   stay identical; "Choose cookies" only gets the extra width its longer label needs. */
@media (max-width: 575.98px) {
  .consent-inner { padding: var(--s-3) var(--s-4); }
  .consent-first .consent-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .consent-second .consent-title { font-size: 18px; }
  .consent-text { font-size: 14px; line-height: 1.45; }
  .consent-actions { grid-template-columns: 1fr 1fr auto; gap: 6px; }
  .consent-btn { --bs-btn-font-size: 14px; --bs-btn-padding-x: 8px; }
}
/* Pinned next steps sit just above the banner while it is open, never under it. */
body.consent-open .sticky-cta,
body.consent-open .approve-bar,
body.consent-open .home-cta-bar { bottom: var(--consent-h, 0px); }
body.consent-open .site-footer { padding-bottom: calc(var(--consent-h, 0px) + var(--s-6)); }

.cookie-policy h3 { margin-top: var(--s-6); }
.cookie-table { overflow: hidden; margin: var(--s-3) 0 var(--s-5); }
.cookie-table .table { --bs-table-bg: transparent; --bs-table-color: var(--st-slate); --bs-border-color: var(--st-border); font-size: 15px; }
.cookie-table th, .cookie-table td { padding: 12px 16px; vertical-align: top; line-height: 1.5; }
.cookie-table thead th { font-size: 14px; font-weight: 600; color: var(--st-tarn); }
.cookie-table tbody tr:last-child th, .cookie-table tbody tr:last-child td { border-bottom: 0; }
.cookie-table code { color: var(--st-slate); font-size: 14px; background: var(--st-riverstone); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.cookie-policy p code, .cookie-policy li code { color: var(--st-slate); font-size: 0.9em; background: var(--st-gesso); border: 1px solid var(--st-border); padding: 0 5px; border-radius: 6px; }
.consent-page-form { padding: var(--s-2) var(--s-5) var(--s-5); margin: var(--s-4) 0; }
.consent-page-form .consent-options { border-top: 0; margin-top: 0 !important; }
@media (max-width: 639.98px) {
  .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cookie-table tr { display: block; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--st-border); }
  .cookie-table tbody tr:last-child { border-bottom: 0; }
  .cookie-table th, .cookie-table td { display: block; padding: 2px 0; border: 0; }
  .cookie-table th { margin-bottom: var(--s-1); }
  .cookie-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--st-tarn); }
  .consent-page-form { padding: var(--s-1) var(--s-4) var(--s-4); }
}
/* ---- Phase 4: billing ---- */
.pay-confirm-next { margin: 0; }
/* ---- Albums (5B.4) ---- */
/* Album pages /A/{code}: a calm column for the next step, then the weeks as mounted prints (the
   memory book's hairline Moss Tint frame set just outside each photo). */
.album-body { background: var(--st-riverstone); }
.album-main { flex: 1 0 auto; width: 100%; max-width: 1040px; margin: 0 auto; padding: var(--s-5) var(--s-5) var(--s-7); }
@media (max-width: 575.98px) { .album-main { padding: var(--s-4) var(--s-4) var(--s-6); } }
.album-symbol { display: block; width: 40px; margin: 0 auto var(--s-4); }
.album-symbol svg { width: 40px; height: 40px; display: block; }
.album-head, .album-next, .album-card, .album-book, .album-privacy, .album-notice,
.album-back, .album-week-head, .album-photo, .album-upload, .album-delete { max-width: 560px; margin-left: auto; margin-right: auto; }
.album-head { text-align: center; margin-bottom: var(--s-5); }
.album-head h1 { margin-bottom: var(--s-1); }
.album-span { font-family: var(--st-serif); font-style: italic; font-size: 18px; color: var(--st-moss); margin: 0; text-wrap: balance; }
@media (max-width: 575.98px) { .album-span { font-size: 16px; } }
.album-notice { margin-bottom: var(--s-4); }

.album-next {
  background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: var(--st-radius-card);
  padding: var(--s-5); text-align: center; margin-bottom: var(--s-7);
}
.album-next-when { font-family: var(--st-serif); font-style: italic; font-size: 17px; color: var(--st-moss); margin: 0 0 var(--s-2); }
.album-next h2, .album-message h1 { font-size: 28px; line-height: 1.15; margin: 0 0 var(--s-1); }
.album-next-kind { font-family: var(--st-serif); font-style: italic; color: var(--st-moss); margin: 0 0 var(--s-4); }
.album-next .btn { margin-top: var(--s-2); }
.album-next-note { font-size: 15px; margin: var(--s-4) auto 0; max-width: 28em; }
.album-message { margin-top: var(--s-4); }
.album-message .btn { margin-top: var(--s-5); }
@media (max-width: 575.98px) {
  .album-next { padding: var(--s-5) var(--s-4); margin-bottom: var(--s-6); }
  .album-next h2, .album-message h1 { font-size: 25px; }
  .album-next .btn { width: 100%; }
}

.album-weeks-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.album-weeks-head h2 { margin: 0; }
.album-weeks-head p { margin: 0; font-size: 15px; }
.album-weeks { list-style: none; padding: 0; margin: 0 0 var(--s-7); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
@media (min-width: 576px) { .album-weeks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .album-weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); } }
.album-weeks li { min-width: 0; scroll-margin-top: var(--s-5); }
.album-tile { display: flex; flex-direction: column; gap: 2px; color: var(--st-slate); text-decoration: none; }
.album-tile:hover { color: var(--st-slate); }
.album-print {
  display: block; position: relative; aspect-ratio: 4 / 3; padding: 5px;
  background: #FBFAF6; border: 1px solid var(--st-moss-tint); margin-bottom: var(--s-2);
}
.album-print img { display: block; width: 100%; height: 100%; object-fit: cover; background: #E6E8E2; }
/* The photo and the empty state fill the 4:3 frame exactly, so every tile and caption lines up. */
.album-print > img, .album-print > .album-empty { position: absolute; top: 5px; left: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
.album-tile.is-current .album-print { border-color: var(--st-moss); box-shadow: inset 0 0 0 1px var(--st-moss); }
.album-tile:hover .album-print { border-color: var(--st-moss); }
.album-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2);
  width: 100%; height: 100%; background: var(--st-riverstone); text-align: center; padding: var(--s-2);
}
.album-empty-text { font-family: var(--st-serif); font-style: italic; font-size: 15px; line-height: 1.2; }
.album-tile.is-past .album-empty-text, .album-tile.is-current .album-empty-text { color: var(--st-moss); }
.album-tile.is-future .album-print { border-style: dashed; border-color: #C3CBC0; }
.album-tile.is-future .album-empty { background: transparent; }
.album-plus { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--st-moss); position: relative; }
.album-plus::before, .album-plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--st-moss); transform: translate(-50%, -50%); }
.album-plus::before { width: 12px; height: 1.5px; }
.album-plus::after { width: 1.5px; height: 12px; }
.album-tile-week { font-family: var(--st-serif); font-style: italic; font-size: 15px; color: var(--st-moss); line-height: 1.25; }
.album-tile-title { font-size: 15px; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.album-tile-pebbles svg { width: 46px; height: auto; display: block; margin-top: 3px; }
.album-tile:focus-visible { outline-offset: 4px; border-radius: 2px; }

.album-card { background: var(--st-gesso); border: 1px solid var(--st-border); border-radius: var(--st-radius-card); padding: var(--s-5); margin-bottom: var(--s-6); scroll-margin-top: var(--s-5); }
.album-card h2 { font-size: 24px; margin-bottom: var(--s-2); }
.album-card .notice { margin-bottom: var(--s-4); }
.album-book { text-align: center; margin-bottom: var(--s-5); scroll-margin-top: var(--s-5); }
.album-book h2 { font-size: 24px; margin-bottom: var(--s-2); }
.album-book p { margin: 0; }
.album-privacy { font-size: 14px; text-align: center; margin-bottom: 0; }
.album-privacy-upload { text-align: left; margin: 0 0 var(--s-4); }

/* One week: add, replace or delete its photo. */
.album-back { margin-bottom: var(--s-3); font-size: 15px; }
.album-week-head { text-align: center; margin-bottom: var(--s-5); }
.album-week-when { font-family: var(--st-serif); font-style: italic; font-size: 17px; color: var(--st-moss); margin: 0 0 var(--s-1); }
.album-week-head h1 { margin-bottom: var(--s-1); }
.album-week-kind { font-family: var(--st-serif); font-style: italic; color: var(--st-moss); margin: 0; }
@media (max-width: 575.98px) { .album-week-head { margin-bottom: var(--s-4); } .album-week-head h1 { font-size: 28px; } }
.album-photo { margin-bottom: var(--s-5); text-align: center; }
.album-print-lg { aspect-ratio: auto; padding: 7px; margin-bottom: var(--s-3); }
.album-print-lg img { height: auto; max-height: 60vh; object-fit: contain; background: transparent; }
.album-photo figcaption { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); }
.album-photo-caption { font-family: var(--st-serif); font-style: italic; font-size: 19px; line-height: 1.4; }
.album-photo-taken { font-size: 14px; }
.album-photo-pebbles svg { width: 64px; height: auto; display: block; margin-top: var(--s-1); }

.album-file { position: relative; margin-bottom: var(--s-4); }
.album-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.album-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 176px; padding: var(--s-5) var(--s-4); text-align: center; cursor: pointer; margin: 0;
  background: var(--st-gesso); border: 1.5px dashed var(--st-moss-tint); border-radius: var(--st-radius-card);
}
.album-drop:hover { border-color: var(--st-moss); }
.album-drop-compact { min-height: 112px; padding: var(--s-4); }
.album-file-input:focus-visible + .album-drop { outline: 3px solid var(--st-tarn); outline-offset: 2px; }
.album-drop-icon {
  width: 44px; height: 44px; margin-bottom: var(--s-1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='20.5' fill='none' stroke='%2393A68F' stroke-width='1.5'/%3E%3Ccircle cx='22' cy='22' r='14' fill='none' stroke='%234E6B47' stroke-width='1.5'/%3E%3Cpath d='M22 16v12M16 22h12' stroke='%234E6B47' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.album-drop-compact .album-drop-icon { width: 36px; height: 36px; }
.album-drop-title { font-weight: 600; color: var(--st-moss); font-size: 17px; overflow-wrap: anywhere; }
.album-drop-hint { font-size: 14px; }
.album-drop-preview { display: block; max-width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--st-moss-tint); padding: 4px; background: #FBFAF6; margin-bottom: var(--s-2); }
.album-upload.has-preview .album-drop-icon { display: none; }
.album-upload.has-file .album-drop { border-style: solid; border-color: var(--st-moss); }

.album-pebbles-field { border: 0; padding: 0; min-width: 0; }
.album-pebbles { display: flex; gap: var(--s-1); margin-bottom: var(--s-1); }
.album-pebble-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.album-pebble { width: 48px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin: 0; }
.album-pebble::before { content: ''; width: 32px; height: 27px; border-radius: 50%; border: 1.5px solid var(--st-slate); background: transparent; transform: rotate(-8deg); transition: background-color .12s ease, border-color .12s ease; }
.album-pebble:nth-of-type(2)::before { transform: rotate(6deg); width: 30px; height: 28px; }
.album-pebble:nth-of-type(3)::before { transform: rotate(-3deg); width: 33px; height: 26px; }
.album-pebble:nth-of-type(4)::before { transform: rotate(9deg); width: 30px; height: 28px; }
.album-pebble-input:focus-visible + .album-pebble::before { outline: 3px solid var(--st-tarn); outline-offset: 3px; }
.album-pebbles:has(.album-pebble-input[value="1"]:checked) .album-pebble:nth-of-type(-n+1)::before,
.album-pebbles:has(.album-pebble-input[value="2"]:checked) .album-pebble:nth-of-type(-n+2)::before,
.album-pebbles:has(.album-pebble-input[value="3"]:checked) .album-pebble:nth-of-type(-n+3)::before,
.album-pebbles:has(.album-pebble-input[value="4"]:checked) .album-pebble:nth-of-type(-n+4)::before,
.album-pebbles:has(.album-pebble-input[value="5"]:checked) .album-pebble:nth-of-type(-n+5)::before { background: var(--st-moss); border-color: var(--st-moss); }
.album-pebbles-clear { font-size: 14px; color: var(--st-tarn); margin-left: var(--s-1); }

/* The week page keeps its one next step pinned to the bottom of the screen, whatever is above it. */
.sticky-cta.album-submit {
  position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 40;
  border: 0; border-top: 1px solid var(--st-border); border-radius: 0;
  padding: var(--s-3) max(var(--s-4), calc((100% - 560px) / 2));
}
.album-body:has(.album-submit) .album-footer { padding-bottom: 150px; }
.album-submit-note { flex: 1 1 200px; }
.album-delete { text-align: center; margin-top: var(--s-5); }
.album-delete .link-button { color: var(--st-slate); font-size: 15px; }

.album-footer { text-align: center; font-size: 13px; padding: var(--s-5) var(--s-4) var(--s-6); max-width: 560px; margin: 0 auto; color: var(--st-slate); }
.album-footer p { margin-bottom: var(--s-2); }
.album-footer a { margin: 0 var(--s-2); }
@media (prefers-reduced-motion: reduce) { .album-pebble::before { transition: none; } }

/* ---------- Memory book (5B.6): the printed pages on screen, design B ---------- */
/* Same card and units as the booklet sheet (148 mm wide, 1 mm = 0.6757cqw). */

.m-print { display: block; position: relative; flex: 0 0 auto; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; background: #E6E8E2; outline: 1px solid var(--st-moss-tint); outline-offset: 1.35cqw; }
.m-print img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.mpage > .sheet { flex: 0 0 auto; }
.m-print-week { width: 86.5cqw; margin-top: 3.8cqw; }
.msheet { padding-bottom: 0; }
.mp-title { margin: 4.6cqw 0 0; font-family: var(--st-serif); font-weight: 500; font-size: max(16px, 5.48cqw); line-height: 1.1; text-wrap: balance; }
.mp-title-long { font-size: max(15px, 4.6cqw); }
.mp-kicker { margin: 1.3cqw 0 0; font-family: var(--st-serif); font-style: italic; font-size: max(11.5px, 2.74cqw); color: var(--st-moss); }
.mp-ornament { width: 16.9cqw; height: auto; margin: 1.6cqw 0 0; }
.mp-caption { margin: 1.6cqw 0 0; padding: 0 5.4cqw; font-family: var(--st-serif); font-style: italic; font-size: max(12px, 3.1cqw); line-height: 1.42; text-wrap: pretty; }
.mp-foot { margin-top: auto; padding-bottom: 6cqw; display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; }
.mp-taken { margin: 0; font-size: max(11px, 1.91cqw); }
.mp-pebbles { width: 17.6cqw; min-width: 52px; height: auto; }
.mp-text { margin-top: 15cqw; }
.msheet-text .sheet-strip { margin-top: auto; }
.mpage.is-removed .sheet { opacity: .42; }

/* Closing page */
.mclose-kicker { margin-top: 2cqw; }
.mclose-title { margin: 5.4cqw 0 0; font-family: var(--st-serif); font-weight: 500; font-size: max(18px, 5.96cqw); line-height: 1.15; }
.mclose-ornament { width: 20.3cqw; margin-top: 3cqw; }
.mclose-stats { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 2cqw; width: 100%; margin: 5.4cqw 0 0; }
.mclose-stats div { display: flex; flex-direction: column-reverse; align-items: center; }
.mclose-stats dd { margin: 0; font-family: var(--st-serif); font-weight: 500; font-size: max(20px, 7.15cqw); line-height: 1; }
.mclose-stats dt { margin-top: 1cqw; font-family: var(--st-serif); font-style: italic; font-weight: 400; font-size: max(11px, 2.62cqw); color: var(--st-moss); }
.mclose-stats .sp-rule { height: 10.8cqw; }
.mclose-line { margin: 6cqw 0 0; padding: 0 4cqw; font-family: var(--st-serif); font-size: max(12px, 2.98cqw); line-height: 1.5; text-wrap: pretty; }
.mclose-line em { font-style: italic; }
.mclose-toast { margin: 3.4cqw 0 0; font-family: var(--st-serif); font-style: italic; font-size: max(12px, 3.1cqw); color: var(--st-moss); }
.mclose-qr { width: 14.9cqw; min-width: 52px; height: auto; margin: 3cqw 0 0; }

/* Cover */
.cover-card.mcover { padding: 20.9cqw 6.8cqw 3.4cqw; }
.m-print-cover { width: 74.3cqw; }
.mcover-names { margin: 6cqw 0 0; font-family: var(--st-serif); font-weight: 500; font-size: max(17px, 7.6cqw); line-height: 1.1; }
.mcover-names-long { font-size: max(15px, 6.4cqw); }
.mcover-names-private { font-style: italic; font-weight: 400; color: var(--st-moss); }
.mcover .cover-ornament { margin-top: 2.6cqw; }
.mcover-title { margin: 2.2cqw 0 0; font-family: var(--st-serif); font-style: italic; font-size: max(12px, 3.8cqw); color: var(--st-moss); }
.mcover-line { margin: 1.4cqw 0 0; font-size: max(11px, 2.03cqw); }
.mcover-symbol { margin-top: auto; }
.mcover-symbol svg { width: 6.1cqw; height: 6.1cqw; display: block; }
.mcover-brand { margin-top: 1.6cqw; }

/* Editor */
.mbook-for { margin: calc(-1 * var(--s-2)) 0 var(--s-4); }
.mbook-text { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-5); margin-bottom: var(--s-6); }
.mbook-text h2 { margin-bottom: var(--s-1); }
.mbook-text form { flex: 0 0 auto; }
@media (max-width: 767.98px) { .mbook-text { flex-direction: column; align-items: stretch; } .mbook-text .btn { width: 100%; } }
.mpage-form { width: 100%; display: flex; flex-direction: column; gap: var(--s-2); }
.mpage-form textarea { font-size: 15px; resize: vertical; }
.mpage-crop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.mpage-crop legend { float: left; width: auto; margin: 0 4px 0 0; padding: 0; font-size: 13px; }
.mpage-crop-choice { position: relative; margin: 0; }
.mpage-crop-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mpage-crop-choice span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--st-border); border-radius: var(--st-radius-pill); background: var(--st-gesso); font-size: 13px; cursor: pointer; }
.mpage-crop-choice input:checked + span { background: var(--st-moss); border-color: var(--st-moss); color: var(--st-gesso); }
.mpage-crop-choice input:focus-visible + span { outline: 3px solid var(--st-tarn); outline-offset: 2px; }
.mpage-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.mpage-actions .btn-sm { min-height: 34px; --bs-btn-font-size: 13px; }
.mpage-remove { padding-left: 0; padding-right: 0; color: var(--st-tarn); text-decoration: underline; text-underline-offset: 2px; }
.mpage-low { border-left: 2px solid var(--st-heather); padding-left: 8px; }
.checkout-lead { margin-bottom: var(--s-5); }
.memory-empty h1 { margin-bottom: var(--s-3); }
.order-link { margin: calc(-1 * var(--s-3)) 0 var(--s-4); }
.order-link.mt-4 { margin: var(--s-4) 0 0; }
/* Memory pages carry a photo and a caption: three to a row on desktop keeps them at print proportions. */
.mbook-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-6) var(--s-5); }
.qd-album .btn { width: 100%; }
.mpage-form > .btn { align-self: flex-start; }

/* ---- Accessibility pass (BUILD_PLAN 5.6) ------------------------------- */

/* Keep a focused control clear of the pinned bars (WCAG 2.2, 2.4.11). a11y.js measures the bar into
   --cta-h; the fallback covers the bar before the script runs. */
html { scroll-padding-bottom: calc(var(--cta-h, 88px) + var(--s-4)); }

/* Visible name labels on the questionnaire (the legend says what both boxes are for). */
.form-label-sub { font-size: 14px; margin-bottom: var(--s-1); }

/* Error summary at the top of a form that came back with errors. */
.error-summary {
  margin: 0 0 var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--st-gesso);
  border: 1px solid var(--st-border);
  border-left: 3px solid var(--st-heather);
  border-radius: var(--st-radius);
  scroll-margin-top: var(--s-5);
}
.error-summary:focus { outline: 3px solid var(--st-tarn); outline-offset: 2px; }
.error-summary:focus:not(:focus-visible) { outline: none; }
.error-summary-title { font-family: var(--st-sans, inherit); font-size: 17px; font-weight: 600; margin: 0 0 var(--s-2); }
.error-summary ul { margin: 0; padding-left: var(--s-5); }
.error-summary li + li { margin-top: var(--s-1); }
.error-summary a { color: var(--st-tarn); }
[data-notice-focus]:focus { outline: none; }
[data-notice-focus]:focus-visible { outline: 3px solid var(--st-tarn); outline-offset: 2px; }

/* Forced colours (Windows High Contrast) drops fills and shadows, so the chosen tile, crop and
   pebbles are drawn in the system Highlight colour instead. */
@media (forced-colors: active) {
  .choice span, .mpage-crop-choice span { border: 1px solid CanvasText; }
  .choice input:checked + span,
  .mpage-crop-choice input:checked + span { forced-color-adjust: none; background: Highlight; border: 3px solid Highlight; color: HighlightText; }
  .choice input:checked + span *, .choice input:checked + span .choice-hint { color: HighlightText; }
  .album-pebble::before { border-color: CanvasText; }
  .album-pebbles:has(.album-pebble-input[value="1"]:checked) .album-pebble:nth-of-type(-n+1)::before,
  .album-pebbles:has(.album-pebble-input[value="2"]:checked) .album-pebble:nth-of-type(-n+2)::before,
  .album-pebbles:has(.album-pebble-input[value="3"]:checked) .album-pebble:nth-of-type(-n+3)::before,
  .album-pebbles:has(.album-pebble-input[value="4"]:checked) .album-pebble:nth-of-type(-n+4)::before,
  .album-pebbles:has(.album-pebble-input[value="5"]:checked) .album-pebble:nth-of-type(-n+5)::before { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  .error-summary, .notice-attention, .field-error { border-left-color: CanvasText; }
}
.next-email-input { background: #fff; }
/* With visible labels above both boxes, the ampersand lines up with the boxes, not the labels. */
.name-pair:has(.form-label-sub) .name-amp { padding-top: 25px; }
/* Short phones (360 × 640): keep the hero button clear of the cookie banner on a first visit. */
@media (max-width: 575.98px) and (max-height: 700px) {
  .hero { padding-top: var(--s-3); }
  .hero h1 { margin-bottom: var(--s-2); }
  .hero .hero-sub { margin-bottom: var(--s-3); }
}
.cover-form .cell-notice { margin-bottom: var(--s-3); }

/* Foursquare licence (/licences/foursquare): the Apache text as paragraphs, so it reflows on a phone. */
.licence-text { padding: var(--s-5); font-size: 15px; line-height: 1.55; }
.licence-text p { margin: 0 0 var(--s-3); max-width: 40em; overflow-wrap: anywhere; }
.licence-text p:last-child { margin-bottom: 0; }
.licence-title { text-align: center; font-weight: 600; max-width: none !important; }
@media (max-width: 575.98px) { .licence-text { padding: var(--s-4); font-size: 14px; } }
