/* Shared base: the conventional layer. Every direction keeps these
   patterns (Jakob's law); identity is spent in each direction's own CSS.
   Tokens each direction must define:
   --font-head --font-body --font-data --bg --surface --ink --muted --rule
   --brand --brand-hover --on-brand --field --on-field --radius */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55;
  font-variant-numeric: lining-nums;
}
@media (min-width: 64em) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-hover); text-decoration-thickness: 2px; }
:root { --error: #b3261e; --focus: #ffbf47; --ok: #2e7d4f; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 6px #0b0c0c; }
/* :root raises specificity above ".component a { color }" rules, which otherwise
   kept their own (often light) text colour on the yellow focus fill. */
:root a:focus-visible { background: var(--focus); color: #0b0c0c; box-shadow: 0 4px 0 #0b0c0c; outline: none; text-decoration: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2rem, 80rem); margin-inline: auto; }
@media (min-width: 40em) { .wrap { width: min(100% - 4rem, 80rem); } }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

.mock-banner { margin: 0; padding: 0.5rem 1rem; background: #0b0c0c; color: #f3f2f1; font: 0.875rem/1.4 system-ui, sans-serif; }
.mock-banner b { font-weight: 600; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; padding: 0.5rem 1rem; }

/* Mobile menu (pattern only; each direction styles it) */
.menu-toggle { min-height: 44px; padding: 0 1rem; font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; }
@media (min-width: 56em) { .menu-toggle { display: none; } }
@media (max-width: 55.99em) { .site-nav:not(.is-open) { display: none; } }

/* ---------- Enquiry form: GOV.UK conventions, shared by all directions ---------- */
.enquire-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60em) { .enquire-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; } }
.form-col { max-width: 40rem; }
.field { margin: 0 0 1.75rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.375rem; padding: 0; }
fieldset.field > legend { font-size: 1.125rem; margin-bottom: 0.5rem; }
.legend-lg { font-size: 1.375rem !important; margin-bottom: 1rem !important; }
.hint { color: var(--muted); margin: -0.125rem 0 0.5rem; }
.count { color: var(--muted); font-size: 0.9375rem; margin: 0.375rem 0 0; }
.enquire input[type="text"], .enquire input[type="email"], .enquire input[type="tel"], .enquire select, .enquire textarea {
  display: block; width: 100%; min-height: 44px; font: inherit; font-family: var(--font-body);
  color: #0b0c0c; background: #fff; border: 2px solid #0b0c0c; border-radius: var(--radius); padding: 0.5rem 0.625rem;
}
.enquire textarea { min-height: 8rem; resize: vertical; }
.w-medium { max-width: 24rem; }
.w-small { max-width: 14rem; }
.enquire input:focus-visible, .enquire select:focus-visible, .enquire textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px #0b0c0c; }
.enquire input[type="file"] { font: inherit; max-width: 100%; }
.enquire input[type="file"]::file-selector-button { font: inherit; font-weight: 600; min-height: 44px; padding: 0 1rem; margin-right: 0.75rem; background: #fff; color: #0b0c0c; border: 2px solid #0b0c0c; border-radius: var(--radius); cursor: pointer; }
.choices { display: grid; gap: 0.5rem; }
.choices-inline { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.field .choice { display: flex !important; align-items: center; gap: 0.75rem; min-height: 44px; padding: 0.25rem 0.75rem 0.25rem 0.85rem; font-weight: 400 !important; margin: 0 !important; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: #0b0c0c; cursor: pointer; }
.choice:hover { border-color: #0b0c0c; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input { width: 1.375rem; height: 1.375rem; margin: 0; flex: none; accent-color: var(--brand); }
.has-error { border-left: 5px solid var(--error); padding-left: 1rem; }
.error-msg { color: var(--error); font-weight: 600; margin: 0 0 0.5rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error) !important; }
.error-summary, .confirmation { border: 5px solid var(--error); padding: 1.25rem; margin-bottom: 2rem; background: #fff; color: #0b0c0c; }
.error-summary h3, .confirmation h3 { font-size: 1.25rem; margin: 0 0 0.5rem; font-family: var(--font-body); }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 600; }
.confirmation { border-color: var(--ok); }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0.625rem 1.5rem; font: inherit; font-weight: 600; color: var(--on-brand); background: var(--brand); border: 0; border-radius: var(--radius); box-shadow: 0 3px 0 #0b0c0c; cursor: pointer; text-decoration: none; }
.button:hover { background: var(--brand-hover); color: var(--on-brand); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 #0b0c0c; }
.button:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; background: var(--focus); color: #0b0c0c; box-shadow: 0 3px 0 #0b0c0c; }
.privacy { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }
.downloads { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.downloads li { padding-block: 0.5rem; border-top: 1px solid var(--rule); }
.file-meta { color: var(--muted); font-size: 0.875em; }
.aside-note { font-size: 0.875rem; color: var(--muted); }

.credits { font-size: 0.8125rem; line-height: 1.45; opacity: 0.85; max-width: 60rem; }
.credits a { color: inherit; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
