/* Base: reset, typography, layout primitives, buttons, form controls. Tokens only (tokens.css). Mobile first. Light theme only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--gwc-bg); color: var(--gwc-text);
  font: var(--gwc-fw-regular) var(--gwc-fs-base)/var(--gwc-lh-body) var(--gwc-font-text);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }
main:focus, [data-focus-on-load]:focus { outline: none; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--gwc-font-head); font-weight: var(--gwc-fw-light); line-height: var(--gwc-lh-tight); letter-spacing: 0; margin: 0 0 var(--gwc-space-4); color: var(--gwc-ink); text-wrap: balance; }
/* Type scale: H1 display, H2 section title, H3 item title (cards, steps, rows). One size per level on every page;
   .h1/.h2/.h3 carry the visual level when the semantic tag differs (e.g. a card title that must be an h2). */
h1, .h1 { font-size: var(--gwc-fs-h1); line-height: var(--gwc-lh-tight); font-weight: var(--gwc-fw-light); }
h2, .h2 { font-size: var(--gwc-fs-h2); line-height: var(--gwc-lh-tight); font-weight: var(--gwc-fw-light); }
h3, .h3 { font-size: var(--gwc-fs-h4); line-height: var(--gwc-lh-snug); font-weight: var(--gwc-fw-regular); }
h4 { font-size: var(--gwc-fs-h4); line-height: var(--gwc-lh-snug); font-weight: var(--gwc-fw-regular); }
p { margin: 0 0 var(--gwc-space-4); max-width: var(--gwc-measure); }
a { color: var(--gwc-link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color var(--gwc-dur-base) var(--gwc-ease); }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gwc-focus); outline-offset: 3px; border-radius: var(--gwc-radius-sm); }
.site-footer :focus-visible { outline-color: var(--gwc-foot-accent); }
::selection { background: var(--gwc-ink); color: var(--gwc-bg); }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gwc-space-3); top: -4rem; z-index: 100; background: var(--gwc-primary); color: var(--gwc-on-primary); padding: var(--gwc-space-3) var(--gwc-space-4); border-radius: var(--gwc-radius-md); }
.skip-link:focus { top: var(--gwc-space-3); }

.container { width: min(100% - 2 * var(--gwc-gutter), var(--gwc-container)); margin-inline: auto; }
.section { padding-block: var(--gwc-section); }
.section--surface { background: var(--gwc-surface); }
.section--lg { padding-block: clamp(5rem, 3.5rem + 5.5vw, 8rem); }
.section--sm { padding-block: clamp(3rem, 2.2rem + 3vw, 4.5rem); }
.eyebrow { display: flex; align-items: center; gap: var(--gwc-space-3); font-family: var(--gwc-font-text); font-size: var(--gwc-fs-xs); line-height: var(--gwc-lh-body); font-weight: var(--gwc-fw-semibold); letter-spacing: var(--gwc-track-eyebrow); text-transform: uppercase; color: var(--gwc-text-muted); margin-bottom: var(--gwc-space-4); }
.eyebrow::before { content: ""; flex: none; width: 2rem; height: 1px; background: var(--gwc-accent); }
.band { background: var(--gwc-band-bg); color: var(--gwc-band-text); }
.section-head { margin: 0 0 var(--gwc-space-7); max-width: 46rem; }
.section-head > :last-child { margin-bottom: 0; }
.section-head p { max-width: 62ch; }
/* B: asymmetric editorial head. Title block left (cols 1-5), paragraph / CTA right (cols 7-12); stacks below 64rem. */
.section-head--split { max-width: none; display: grid; gap: var(--gwc-space-4); }
.section-head--split > div > :last-child { margin-bottom: 0; }
@media (min-width: 64rem) {
  .section-head--split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gwc-space-6); align-items: end; }
  .section-head--split > :first-child { grid-column: 1 / span 5; }
  .section-head--split > :last-child { grid-column: 7 / -1; }
}
/* The one allowed centred head per page (short CTA, empty state, thank-you, 404). */
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
/* Layout rules: see docs/design/components/layout-patterns.md. Reading text is always left-aligned. */
.lead { font-size: var(--gwc-fs-lg); line-height: 1.6; }
.pending { display: inline-block; padding: var(--gwc-space-2) var(--gwc-space-3); border: 1px dashed var(--gwc-warning); background: var(--gwc-warning-bg); color: var(--gwc-warning); border-radius: var(--gwc-radius-sm); font-size: var(--gwc-fs-sm); max-width: none; }

/* ---- CTA system: one definition (docs/design/components/cta-system.md) ----
   Types   primary (filled navy) | secondary (1px navy outline) | tertiary (.link-arrow text link with thin arrow)
   On navy primary = white fill / navy text, secondary = white outline, tertiary = white link (selector below: .section--navy, .site-footer)
   Sizes   standard (3rem) for every content and form button; .btn--compact (2.75rem) ONLY in the header and the mobile sticky bar
   Groups  .btn-row: side by side, natural width, same height, primary first, max 2, aligned with their text; full width and stacked below 40rem */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--gwc-space-2);
  min-height: var(--gwc-btn-h); padding: var(--gwc-space-3) var(--gwc-btn-px);
  border: 1px solid var(--gwc-primary); border-radius: var(--gwc-radius-sm);
  background: var(--gwc-primary); color: var(--gwc-on-primary);
  font: var(--gwc-fw-bold) var(--gwc-btn-fs)/1.3 var(--gwc-font-text); letter-spacing: var(--gwc-track-btn); text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer;
  transition: background var(--gwc-dur-base) var(--gwc-ease), border-color var(--gwc-dur-base) var(--gwc-ease), color var(--gwc-dur-base) var(--gwc-ease), transform var(--gwc-dur-fast) var(--gwc-ease);
}
.btn:hover { background: var(--gwc-primary-hover); border-color: var(--gwc-primary-hover); color: var(--gwc-on-primary); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--secondary { background: transparent; color: var(--gwc-primary); border-color: var(--gwc-primary); }
.btn--secondary:hover { background: var(--gwc-primary); border-color: var(--gwc-primary); color: var(--gwc-on-primary); }
.btn--compact { min-height: var(--gwc-btn-h-compact); padding-inline: var(--gwc-btn-px-compact); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
/* Navy surfaces (pattern D bands and the footer) */
:is(.section--navy, .site-footer) .btn { background: var(--gwc-bg); border-color: var(--gwc-bg); color: var(--gwc-ink); }
:is(.section--navy, .site-footer) .btn:hover { background: var(--gwc-surface-2); border-color: var(--gwc-surface-2); color: var(--gwc-ink); }
:is(.section--navy, .site-footer) .btn--secondary { background: transparent; border-color: var(--gwc-navy-edge); color: var(--gwc-navy-text); }
:is(.section--navy, .site-footer) .btn--secondary:hover { background: var(--gwc-bg); border-color: var(--gwc-bg); color: var(--gwc-ink); }
:is(.section--navy, .site-footer) .btn:focus-visible, :is(.section--navy, .site-footer) .link-arrow:focus-visible { outline-color: var(--gwc-navy-accent); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gwc-space-3) var(--gwc-btn-gap); margin-top: var(--gwc-cta-mt); }
@media (max-width: 39.99rem) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row > .btn { width: 100%; }
  .btn-row.form__actions { flex-direction: column-reverse; }   /* primary on top, Back below; DOM order unchanged */
}

/* text that follows a CTA group (notes, seat counts) */
.btn-row + p { margin-top: var(--gwc-space-4); }

/* Tertiary: text link with one thin arrow (the same glyph in the situations strip, lists, header, hero) */
.link-arrow { display: inline-flex; align-items: center; gap: var(--gwc-space-2); padding-block: var(--gwc-space-1); font-size: var(--gwc-fs-sm); font-weight: var(--gwc-fw-semibold); letter-spacing: 0.02em; color: var(--gwc-link); text-decoration: none; }
.link-arrow::after {
  content: ""; flex: none; width: 1.25rem; height: 0.75rem; background: currentColor;
  -webkit-mask: var(--gwc-arrow-mask) center / contain no-repeat; mask: var(--gwc-arrow-mask) center / contain no-repeat;
  transition: transform var(--gwc-dur-base) var(--gwc-ease);
}
.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Form controls */
label { display: block; font-weight: var(--gwc-fw-semibold); font-size: var(--gwc-fs-sm); color: var(--gwc-ink); margin-bottom: var(--gwc-space-2); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
  width: 100%; min-height: 3rem; padding: var(--gwc-space-2) var(--gwc-space-3);
  background: var(--gwc-bg); color: var(--gwc-text); border: 1px solid var(--gwc-border-strong); border-radius: var(--gwc-radius-sm);
  font: inherit; font-size: max(1rem, var(--gwc-fs-base));
  transition: border-color var(--gwc-dur-base) var(--gwc-ease);
}
/* Dropdowns: our own chevron, inset from the edge (the native one sits against the border once the control is styled) */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; padding-right: 1.9rem; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314284B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m3.5 6 4.5 4.5L12.5 6'/></svg>");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 0.85rem 0.85rem;
}
select:disabled { opacity: 0.6; cursor: not-allowed; }
textarea { min-height: 8rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--gwc-text-muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--gwc-ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gwc-focus); outline-offset: 1px; border-color: var(--gwc-focus); }
[aria-invalid="true"] { border-color: var(--gwc-error) !important; border-width: 2px !important; }
.field-error { color: var(--gwc-error); font-size: var(--gwc-fs-sm); margin: var(--gwc-space-1) 0 0; font-weight: var(--gwc-fw-semibold); }
.field-error::before { content: "\26A0\FE0E  "; }
.field-error[hidden] { display: none; }

@media print { .site-header, .sticky-bar, .site-footer form { display: none; } }
