/* Reusable pieces, numbers from the mockup (fig-spec / gen.js on the home,
 * sports, racing and modal frames). The mockup draws no states — hover, focus,
 * active, disabled and error are added here in its own palette. */

/* ── typography helpers ───────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-ink);
}
.eyebrow--cream { color: var(--color-cream); }
.eyebrow--brand { color: var(--color-brand); }
.eyebrow--muted { color: var(--color-muted); }
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; }
.section-title { font-family: var(--font-display); font-size: 64px; line-height: 96px; text-transform: uppercase; color: var(--color-ink); }
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px;
  background: var(--color-brand); color: var(--color-ink);
  font-size: 10px; line-height: 13px; font-weight: 800; text-transform: uppercase;
}
.tag--dark { background: var(--color-dark-2); color: var(--color-brand); font-size: 12px; line-height: 16px; }
.link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; transition: color var(--dur-fast) var(--ease); }
.link:hover { color: var(--color-muted-ink); }
.link--brand { color: var(--color-brand); }
.link--brand:hover { color: var(--color-cream); }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: inherit;
  font-family: var(--font-body); font-size: 14px; line-height: 18px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn--dark { background: var(--color-dark); color: var(--color-brand); border-color: var(--color-dark); }
.btn--dark:hover { background: var(--color-dark-hover); border-color: var(--color-dark-hover); }
.btn--brand { background: var(--color-brand); color: var(--color-ink); border-color: var(--color-dark); }
.btn--brand:hover { background: var(--color-brand-hover); }
.btn--outline { border-color: var(--color-dark); color: var(--color-ink); }
.btn--outline:hover { background: var(--color-ink); color: var(--color-brand); }
.btn--outline-light { border-color: var(--color-bg); color: var(--color-bg); }
.btn--outline-light:hover { background: var(--color-bg); color: var(--color-dark); }
.btn--cream { background: var(--color-cream); color: var(--color-ink); border-color: var(--color-ink); }
.btn--cream:hover { background: var(--color-cream-hover); }
.btn--sm { font-size: 13px; line-height: 17px; }
.btn--lg { min-height: 52px; padding: 14px 24px; border-radius: 12px; font-size: 15px; line-height: 20px; letter-spacing: 0; }
.btn--block { width: 100%; flex: 1; min-height: 48px; padding-block: 0; }
.btn--plain { letter-spacing: 0; text-transform: none; }
.btn:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.on-dark .btn:focus-visible, .btn--dark:focus-visible, .btn--brand:focus-visible { box-shadow: var(--focus-ring-on-dark); }

/* ── filter pills (market tabs) ───────────────────────────────────────── */
.pills { display: flex; gap: 8px; }
.pill {
  padding: 7px 16px; border: 1px solid var(--color-ink); border-radius: 8px;   /* 32px tall with the 1px stroke drawn INSIDE */
  background: var(--color-cream); color: var(--color-ink);
  font-size: 12px; line-height: 16px; font-weight: 800; text-transform: uppercase; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.pill:hover { background: var(--color-cream-hover); }
.pill[aria-pressed="true"], .pill.is-active { background: var(--color-ink); color: var(--color-brand); }
.pill:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* ── odds buttons ─────────────────────────────────────────────────────── */
.odds {
  display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center;
  flex: 1; min-height: 44px; padding: 4px; border: 1px solid var(--color-ink); border-radius: 6px;
  background: var(--color-cream); color: var(--color-ink); cursor: pointer;
  font-family: var(--font-body); font-weight: 800;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.odds__label { font-size: 11px; line-height: 14px; }
.odds__price { font-size: 13px; line-height: 17px; }
.odds:hover { background: var(--color-brand); }
.odds:active { transform: scale(.98); }
.odds[aria-pressed="true"] { background: var(--color-dark); color: var(--color-brand); }
.odds:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* ── market board (home + sports) ─────────────────────────────────────── */
.board {
  scroll-margin-top: 108px;   /* deep links (/sports#nrl) stop below the sticky header */
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-cream); box-shadow: inset 0 0 0 1px var(--color-gold); border-radius: 24px; color: var(--color-ink);
}
.board__tabs { padding: 16px; border-bottom: 1px solid var(--color-gold); }
.board__rows { display: flex; flex-direction: column; }
/* one grid, two frames: meta | market | odds on desktop, a stacked card on mobile */
.mrow {
  display: grid; grid-template-columns: 1fr auto 320px; grid-template-areas: "when market odds" "title market odds";
  align-items: center; column-gap: 16px; row-gap: 6px; padding: 20px;
  border-bottom: 1px solid rgba(217, 204, 129, .3);   /* the desktop frame stacks 84px rows and 1px rules */
}
.mrow:last-child { border-bottom: 0; }
.mrow__when { grid-area: when; align-self: end; font-size: 12px; line-height: 16px; color: var(--color-dark-2); opacity: .8; }
.mrow__title { grid-area: title; align-self: start; font-size: 15px; line-height: 20px; font-weight: 800; }
.mrow__market { grid-area: market; font-size: 13px; line-height: 17px; }
.mrow__odds { grid-area: odds; display: flex; align-items: center; gap: 8px; }
.board__empty { padding: 32px 20px; font-size: 14px; line-height: 21px; color: var(--color-dark-2); }

/* ── bet slip ─────────────────────────────────────────────────────────── */
.slip {
  display: flex; flex-direction: column; gap: 20px; width: 400px; flex: none;
  padding: 24px; border: 1px solid var(--color-brand); border-radius: 24px;
  background: var(--color-dark); color: var(--color-cream);
}
.slip__head { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.slip__title { font-family: var(--font-display); font-size: 20px; line-height: 30px; text-transform: uppercase; color: var(--color-brand); }
.slip__count { padding: 4px 10px; border-radius: 6px; background: var(--color-dark-2); color: var(--color-brand); font-size: 12px; line-height: 16px; font-weight: 800; text-transform: uppercase; }
.slip__sels { display: flex; flex-direction: column; gap: 16px; min-height: 67px; }
.slip__sels:has(.slip__sel) { min-height: 0; }   /* the mockup draws one selection: keep its height when empty */
.slip__sel { display: flex; flex-direction: column; gap: 6px; }
.slip__event { font-size: 14px; line-height: 18px; font-weight: 800; }
.slip__market { font-size: 12px; line-height: 16px; color: var(--color-muted); }
.slip__price { font-size: 16px; line-height: 21px; font-weight: 800; color: var(--color-brand); }
.slip__empty { font-size: 13px; line-height: 19px; color: var(--color-muted); }
.slip__rule { border: 0; height: 1px; margin: 0; background: var(--color-dark-2); }
.slip__form { display: flex; flex-direction: column; gap: 20px; }
.slip__modes { gap: 8px; }
.pill--slip { flex: 1; text-align: center; border-color: var(--color-dark-2); background: var(--color-dark-2); color: var(--color-cream); }
.pill--slip:hover { background: var(--color-dark-3); }
.pill--slip[aria-pressed="true"] { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-ink); }
.pill--slip:disabled { opacity: .45; cursor: not-allowed; }
.pill--slip:focus-visible { box-shadow: var(--focus-ring-on-dark); }
.slip__place { width: 100%; padding-block: 11px; border-color: transparent; }
.slip__stake { display: flex; flex-direction: column; gap: 8px; }
.slip__label { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; color: var(--color-muted); }
.slip__input {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 45px; padding: 12px 16px; border-radius: 8px; background: var(--color-dark-2);
  font-size: 14px; line-height: 18px; color: var(--color-muted);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.slip__input input:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 2px; }
.slip__input input {
  width: 100%; border: 0; background: none; text-align: right; padding: 0;
  font-size: 16px; line-height: 21px; font-weight: 800; color: var(--color-brand);
  -moz-appearance: textfield;
}
.slip__input input::-webkit-outer-spin-button, .slip__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.slip__quick { display: flex; gap: 8px; }
.slip__plus {
  flex: 1; min-height: 36px; border: 0; border-radius: 6px; background: var(--color-dark-2); color: var(--color-cream);
  font-size: 13px; line-height: 17px; font-weight: 800; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.slip__plus:hover { background: var(--color-brand); color: var(--color-ink); }
.slip__plus:focus-visible { outline: 0; box-shadow: var(--focus-ring-on-dark); }
.slip__totals { display: flex; flex-direction: column; gap: 10px; }
.slip__row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; line-height: 17px; color: var(--color-muted); }
.slip__row b { font-size: 14px; line-height: 18px; font-weight: 800; color: var(--color-cream); }
.slip__row--return { color: var(--color-cream); font-weight: 800; }
.slip__row--return b { font-size: 18px; line-height: 23px; color: var(--color-brand); }
.slip__note { font-size: 12px; line-height: 16px; color: var(--color-muted); }
.slip__note:empty { display: none; }
.slip__note--ok { color: var(--color-success-on-dark); }
.slip__note--err { color: var(--color-error-on-dark); }
.slip__remove { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--color-muted); font-size: 12px; line-height: 16px; text-decoration: underline; cursor: pointer; }
.slip__remove:hover { color: var(--color-cream); }

/* ── fields (modal forms and the contact form) ────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 11px; line-height: 14px; font-weight: 700; text-transform: uppercase; color: var(--color-ink); }
.field__hint { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--color-muted-ink); }
.field__control { position: relative; display: flex; align-items: center; }
.field input:not(.visually-hidden):not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 2px solid var(--color-ink); border-radius: 12px; background: var(--color-cream); color: var(--color-ink);
  font-size: 14px; line-height: 18px; font-weight: 500;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted-3); opacity: 1; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23181610' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; box-shadow: var(--focus-ring); }
.field__error { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--color-error); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); }
.field__toggle {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  padding: 6px 12px; border: 0; border-radius: 6px; background: var(--color-dark); color: var(--color-brand);
  font-size: 10px; line-height: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer;
}
.field__toggle:hover { background: var(--color-dark-hover); }
.field__toggle::after { content: ""; position: absolute; inset: -10px; }

/* checkbox row: box beside the label; the container rule for .field must not win */
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check .field__label { font-size: 12px; line-height: 18px; font-weight: 500; text-transform: none; }
.field--check .field__label a { font-weight: 700; }
.field--check .field__error { flex-basis: 100%; }
.check {
  position: relative; flex: none; width: 20px; height: 20px; margin: 0; margin-top: -1px; appearance: none; cursor: pointer;
  border: 2px solid var(--color-ink); border-radius: 4px; background: var(--color-cream);
  transition: background-color var(--dur-fast) var(--ease);
}
.check::before { content: ""; position: absolute; inset: -12px; }   /* 44px tap zone without moving layout */
.check:checked { background: var(--color-dark); }
.check:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid var(--color-brand); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.form__error { font-size: 13px; line-height: 17px; font-weight: 700; color: var(--color-error); }
.form__done { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 2px solid var(--color-ink); border-radius: 12px; background: var(--color-cream); }
.form__done h3 { font-family: var(--font-display); font-size: 22px; line-height: 33px; text-transform: uppercase; }
.form__done p { font-size: 14px; line-height: 21px; }

/* ── overlays (modals) ────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: 40px;
  background: var(--overlay-dark);
  opacity: 0; overflow: auto;
  transition: opacity var(--dur-slow) var(--ease);
}
.overlay.is-open { opacity: 1; }
.overlay__panel {
  width: min(100%, 560px); max-height: none;
  display: flex; flex-direction: column; gap: 24px;
  padding: 40px; border: 2px solid var(--color-ink); border-radius: 20px;
  background: var(--color-bg); color: var(--color-ink); box-shadow: var(--shadow-card);
  transform: translateY(8px);
  transition: transform var(--dur-slow) var(--ease);
}
.overlay.is-open .overlay__panel { transform: none; }
.modal__top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 40px; }
.modal__label { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; }
.modal__label::before { content: ""; width: 8px; height: 8px; background: var(--color-brand); border: 1px solid var(--color-ink); }
.modal__close {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 2px solid var(--color-ink); border-radius: 8px; background: none; color: var(--color-ink); cursor: pointer;
  font-size: 20px; line-height: 26px; font-weight: 700;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.modal__close:hover { background: var(--color-ink); color: var(--color-brand); }
.modal__head { display: flex; flex-direction: column; gap: 16px; }
.modal__title-block { display: flex; flex-direction: column; gap: 4px; }
.modal__title { font-family: var(--font-display); font-size: 48px; line-height: 46px; text-transform: uppercase; }
.modal__lead { font-size: 14px; line-height: 21px; font-weight: 500; opacity: .8; }
.modal__rule { border: 0; height: 2px; margin: 0; background: var(--color-ink); opacity: .15; }
.modal__fields { display: flex; flex-direction: column; gap: 20px; }
.modal__actions { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.modal__actions .btn { width: 100%; }
.modal__switch { display: flex; gap: 6px; align-items: center; font-size: 13px; line-height: 17px; font-weight: 500; }
.modal__switch a, .modal__switch button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; color: inherit; cursor: pointer; }

/* ── cards ────────────────────────────────────────────────────────────── */
.card { transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ── icons ────────────────────────────────────────────────────────────── */
.icon { width: 1em; height: 1em; flex: none; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }

/* ── mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .section-title { font-size: 38px; line-height: 38px; }
  .eyebrow { font-size: 11px; line-height: 14px; }
  .pills { gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { padding: 7px 14px; border-radius: 6px; flex: none; }
  .board { gap: 24px; overflow: visible; box-shadow: none; border-radius: 0; background: none; }
  .board__box { overflow: hidden; box-shadow: inset 0 0 0 1px var(--color-gold); border-radius: 20px; background: var(--color-cream); }
  .board__tabs { padding: 0; border-bottom: 0; }
  .mrow { grid-template-columns: 1fr; grid-template-areas: "when" "title" "odds"; row-gap: 0; padding: 16px; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--color-gold); }   /* the mobile frame draws the rule INSIDE the 122px row */
  .mrow:last-child { box-shadow: none; }
  .mrow__when { font-size: 11px; line-height: 14px; }
  .mrow__title { margin-top: 2px; font-size: 14px; line-height: 18px; }
  .mrow__market { display: none; }
  .mrow__odds { margin-top: 12px; }
  /* sports frame: separate cards with the market name on the meta row */
  .board--stack .board__box { box-shadow: none; border-radius: 0; background: none; }
  .board--stack .board__rows { gap: 12px; }
  .board--stack .mrow { grid-template-columns: 1fr auto; grid-template-areas: "when market" "title title" "odds odds"; border-radius: 12px; background: var(--color-cream); box-shadow: inset 0 0 0 1px var(--color-gold); }
  .board--stack .mrow__market { display: block; font-size: 11px; line-height: 14px; font-weight: 700; text-transform: uppercase; opacity: .6; }
  .board--stack .mrow__title { margin-top: 12px; }
  .odds__label { font-size: 10px; line-height: 13px; }
  .slip { width: auto; padding: 20px; }
  .slip__label { font-size: 11px; line-height: 14px; }
  .slip__input { padding: 12px; }
  .slip__sels { min-height: 63px; }
  .slip__sel { gap: 4px; }
  .slip__rule { height: 0; background: none; box-shadow: 0 1px 0 var(--color-dark-2); }   /* the mobile frame draws a zero-height LINE */
  .slip__totals { gap: 8px; }
  .overlay { padding: 16px; }
  .overlay.overlay--nav { padding: 0; }
  .overlay__panel { padding: 24px; gap: 20px; }
  .modal__title { font-size: 36px; line-height: 36px; }
}

/* ── modal variants (age gate 33:231, cookie prefs 33:166, registration 33:37) ── */
.modal__label--dark::before { background: var(--color-dark); }
.modal__label--light::before { background: var(--color-bg); border-width: 1.5px; }
.modal__label--sm, .modal__label--light, .modal__label--dark { font-size: 11px; line-height: 14px; letter-spacing: .08em; }
.modal__title--gate { font-size: 44px; line-height: 42px; }
.modal__copy { display: flex; flex-direction: column; gap: 16px; }
.modal__text { font-size: 14px; line-height: 21px; font-weight: 500; }
.modal__fine { font-size: 11px; line-height: 15px; font-weight: 500; opacity: .6; }
.modal__row { display: flex; gap: 16px; }
.modal__row > .field { flex: 1; min-width: 0; }
.modal__row--3 .field--state { flex: 0 0 220px; }
.modal__row--3 .field--postcode { flex: 0 0 180px; }
.modal--gate .modal__row { gap: 12px; }
.modal__half { flex: 1; padding-inline: 8px; letter-spacing: 0; font-size: 14px; line-height: 18px; }
.modal--gate .btn--outline { border-width: 2px; }
.modal__yes { color: var(--color-bg); }
.modal--gate .modal__head { gap: 16px; }
.overlay--gate { background: var(--color-dark); }
.modal--wide { width: min(100%, 940px); gap: 32px; }
.modal__title-row { display: flex; justify-content: space-between; gap: 16px; }
.modal__title-block--reg { gap: 8px; flex: 1; }
.modal__title--reg { font-size: 52px; line-height: 47px; letter-spacing: .02em; }
.modal__lead--reg { font-size: 15px; line-height: 22px; font-weight: 400; }
.modal__age { display: grid; place-items: center; flex: none; align-self: flex-start; padding: 8px 16px; border-radius: 8px; background: var(--color-dark); color: var(--color-brand); font-family: var(--font-display); font-size: 24px; line-height: 36px; }
.modal__close--white { background: var(--color-white); }
.modal__form { display: flex; flex-direction: column; gap: 24px; }
.modal__form--reg { gap: 32px; }
.modal__fields--reg { gap: 24px; }
.field__labels { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.consent { display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 2px solid var(--color-ink); border-radius: 12px; background: var(--color-cream); }
.consent .field--check .field__label { font-size: 13px; line-height: 20px; font-weight: 400; }
.consent .check { width: 18px; height: 18px; margin-top: 1px; }
.consent .check:checked::after { left: 4px; top: 0; }
.modal__submit--reg { min-height: 56px; border-width: 2px; letter-spacing: .02em; }
.modal__switch--sub { font-size: 12px; }
.modal__done { display: flex; flex-direction: column; gap: 16px; }
.modal__done .modal__actions { align-items: stretch; }

/* cookie preferences */
.modal--cookies { width: min(100%, 620px); gap: 0; padding: 0; overflow: hidden; }
.modal--cookies::before { content: ""; display: block; height: 6px; border-bottom: 2px solid var(--color-ink); }
.modal__top--cookies { padding: 26px 32px 24px; align-items: flex-start; }
.modal__top--cookies .modal__head { gap: 12px; flex: 1; }
.modal__top--cookies .modal__lead { font-weight: 400; line-height: 20px; }
.modal__rule--solid { opacity: 1; }
.cookies__list { padding: 0 32px; }
.cookies__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 94px; padding: 20px 0; box-shadow: inset 0 -1px 0 rgba(24, 22, 16, .2); }
.cookies__row:last-child { box-shadow: none; }
.cookies__meta { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cookies__name { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 18px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.cookies__num { font-family: var(--font-display); font-size: 20px; line-height: 30px; color: var(--tint-ink-25); }
.cookies__desc { font-size: 13px; line-height: 18px; opacity: .8; }
.cookies__ctl { display: flex; align-items: center; gap: 12px; flex: none; }
.cookies__req { padding: 4px 8px; border: 1.5px solid var(--color-ink); border-radius: 6px; background: var(--color-dark-2); color: var(--color-bg); font-size: 10px; line-height: 13px; font-weight: 700; text-transform: uppercase; }
.switch__input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.switch {
  position: relative; display: flex; align-items: center; width: 44px; height: 24px; padding: 2px; flex: none;
  border: 2px solid var(--color-ink); border-radius: 12px; background: var(--tint-ink-25); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.switch__knob { width: 16px; height: 16px; border: 1.5px solid var(--color-ink); border-radius: 50%; background: var(--color-bg); transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.switch__input:checked + .switch { background: var(--color-dark-2); }
.switch__input:checked + .switch .switch__knob { transform: translateX(20px); background: var(--color-gold); }
.switch__input:focus-visible + .switch { box-shadow: var(--focus-ring); }
.switch.is-locked { justify-content: flex-end; background: var(--color-dark-2); opacity: .6; cursor: default; }
.switch.is-locked .switch__knob { background: var(--color-gold); }
.cookies__actions { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.btn--ink { background: var(--color-ink); color: var(--color-bg); border-color: var(--color-ink); }
.btn--ink:hover { background: var(--color-dark-hover); }
.cookies__actions .btn--cream { border-width: 2px; }
.cookies__reject { align-self: center; padding: 4px 0; border: 0; background: none; font-size: 13px; line-height: 17px; font-weight: 700; text-decoration: underline; color: var(--color-ink); cursor: pointer; }
.cookies__reject:hover { color: var(--color-muted-ink); }

/* cookie bar (not drawn in the mockup — built in its palette) */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-overlay);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1120px; margin-inline: auto; padding: 16px 24px;
  border: 2px solid var(--color-brand); border-radius: 16px; background: var(--color-dark); color: var(--color-cream);
  box-shadow: var(--shadow-card);
  transition: opacity var(--dur-slow) var(--ease-in), transform var(--dur-slow) var(--ease-in);
}
.cookie-bar.is-gone { opacity: 0; transform: translateY(12px); pointer-events: none; }
.cookie-bar__text { font-size: 13px; line-height: 19px; }
.cookie-bar__text a { color: var(--color-brand); }
.cookie-bar__actions { display: flex; gap: 8px; flex: none; }
.cookie-bar__prefs { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; padding-inline: 8px; }

@media (max-width: 1199px) {
  .modal__row, .modal__row--3 { flex-direction: column; }
  .modal__row--3 .field--state, .modal__row--3 .field--postcode { flex: 1; }
  .modal--gate .modal__row { flex-direction: column; }
  .modal__title--gate, .modal__title--reg { font-size: 36px; line-height: 36px; }
  .modal--wide { gap: 24px; }
  .modal__top--cookies { padding: 20px 20px 16px; }
  .cookies__list { padding: 0 20px; }
  .cookies__row { min-height: 0; padding: 16px 0; }
  .cookies__actions { padding: 20px; }
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cookie-bar__actions { flex-wrap: wrap; }
}
