/* Layers: age gate, cookie bar + preferences, login, reset, registration, mobile
 * menu. Numbers from the state frames (33:91, 33:643, 33:195, 33:308, 33:487, 95:4).
 * The panels are light (#f4f7f5 / #ffffff) on the dark scrim, as drawn. */

/* ── age gate: 540×526, top band 140 + main pad 40, gap 32 ────────────── */
.overlay--gate { background: var(--overlay-scrim); }
.gate { width: min(100%, 540px); padding: 0; background: var(--color-text); }
.gate__top { display: flex; align-items: center; justify-content: center; height: 140px; background: var(--color-surface-2); }
.gate__badge { color: var(--color-brand-2); font-family: var(--font-display); font-weight: 900; font-size: 72px; line-height: 89px; }
.gate__main { display: flex; flex-direction: column; gap: var(--space-32); padding: var(--space-40); }
.gate__text { display: flex; flex-direction: column; gap: var(--space-16); }
.gate__title { color: var(--color-surface-2); font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 32px; }
.gate__body { color: var(--color-faint); font-family: var(--font-alt); font-size: 15px; line-height: 24px; }
.gate__actions { display: flex; flex-direction: column; gap: var(--space-12); }
.gate__btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 900; font-size: var(--fs-base); line-height: 17px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.gate__btn--yes { background: var(--color-brand-2); color: var(--color-on-brand); }
.gate__btn--yes:hover { background: var(--color-brand-hover); }
.gate__btn--no { background: var(--color-surface-2); color: var(--color-text-alt); }
.gate__btn--no:hover { background: var(--color-surface-4); }
.gate__foot {
  display: flex; align-items: center; justify-content: center; gap: var(--space-8);
  padding-top: var(--space-16); border-top: 1px solid #d5dad6;
  color: var(--color-surface-2); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3xs); line-height: 12px;
}
.gate__foot a { color: inherit; text-decoration: none; }
.gate__foot a:hover { text-decoration: underline; }
.gate__foot-icon { width: 14px; height: 14px; flex: none; }

/* ── cookie bar (not drawn): a bottom strip in the site's own language ─── */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-overlay);
  padding: var(--space-16) var(--container-pad);
  background: var(--color-surface); box-shadow: 0 -1px 0 var(--color-border), var(--shadow-card);
}
.cookie-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); max-width: var(--container); margin-inline: auto; }
.cookie-bar__text { color: var(--color-muted); font-size: var(--fs-sm); line-height: 20px; max-width: 720px; }
.cookie-bar__text a { color: var(--color-text); text-underline-offset: 3px; }
.cookie-bar__actions { display: flex; align-items: center; gap: var(--space-8); flex: none; }
.cookie-bar__manage {
  padding: 12px 16px; border: 0; background: none; color: var(--color-brand); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xs); line-height: 14px; letter-spacing: .09em;
}
.cookie-bar__manage:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── shared modal frame: header 56, main pad 40, gap 32 ───────────────── */
.modal { width: min(100%, 540px); padding: 0; background: var(--color-text); color: var(--color-surface-2); }
.modal--wide { width: min(100%, 640px); background: var(--color-light); }
.modal--register { width: min(100%, 880px); background: var(--color-light); }
.modal__header { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 var(--space-24); background: var(--color-surface-2); }
.modal__header--tall { min-height: 70px; padding: 0 var(--space-32); background: #181d1a; }
.modal--wide .modal__header { min-height: 60px; background: #181d1a; }
.modal__header--light { min-height: 48px; padding: var(--space-16) var(--space-32); background: var(--color-text); }
.modal__eyebrow { color: var(--color-brand-2); font-family: var(--font-display); font-weight: 900; font-size: var(--fs-2xs); line-height: 14px; }
.modal__eyebrow--lg { font-size: var(--fs-base); line-height: 17px; }
.modal__eyebrow--dark { color: var(--color-surface-2); }
.modal--wide .modal__eyebrow { font-size: var(--fs-xs); line-height: 15px; }
.modal__close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; background: none; color: var(--color-text-alt); cursor: pointer;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.modal__close-glyph { width: 16px; height: 16px; }
.modal__close:hover { color: var(--color-brand-2); transform: rotate(90deg); }
.modal__close--dark { color: var(--color-surface-2); }
.modal__close--dark:hover { color: var(--color-surface-2); }
.modal__accent { display: flex; align-items: center; justify-content: center; height: 130px; background: var(--color-surface-2); }
.modal__accent-icon {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  box-shadow: inset 0 0 0 2px var(--color-brand-2); color: var(--color-brand-2);
}
.modal__accent-glyph { width: 24px; height: 24px; }
.modal__main { display: flex; flex-direction: column; gap: var(--space-32); padding: var(--space-40); }
.modal__main--reset { gap: var(--space-24); padding: var(--space-24) var(--space-32) var(--space-32); }
.modal__intro { display: flex; flex-direction: column; gap: var(--space-12); }
.modal__intro--tight { gap: var(--space-8); }
.modal__title { color: #141714; font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 37px; }
.modal__title--lg { color: var(--color-surface-2); font-size: var(--fs-h2); line-height: 40px; }
.modal__title--md { color: var(--color-surface-2); font-size: var(--fs-h3); line-height: 34px; }
.modal__lead { color: #636963; font-family: var(--font-alt); font-size: var(--fs-base); line-height: 21px; }
.modal__lead a { color: var(--color-surface-2); }
.modal__form { display: flex; flex-direction: column; gap: var(--space-20); }

.field--modal .field__label { color: var(--color-surface-2); font-family: var(--font-display); font-weight: 900; font-size: var(--fs-3xs); line-height: 12px; letter-spacing: normal; }
.field--modal input:not(.visually-hidden), .field--modal select {
  min-height: 50px; padding: 0 var(--space-16);
  background: var(--color-surface-4); color: var(--color-text-alt); box-shadow: none;
  font-family: var(--font-alt); font-size: var(--fs-base); line-height: 18px;
}
.field--modal input:focus, .field--modal select:focus { box-shadow: inset 0 0 0 1px var(--color-brand-2); }
.field--modal input::placeholder { color: var(--color-muted-2); }
.field__hint { color: #636963; font-family: var(--font-alt); font-size: var(--fs-2xs); line-height: 14px; }
.field__wrap { position: relative; }
.field__toggle {
  position: absolute; right: var(--space-16); top: 50%; translate: 0 -50%;
  padding: 4px; border: 0; background: none; color: var(--color-brand-2); cursor: pointer;
  font-family: var(--font-display); font-weight: 900; font-size: var(--fs-3xs); line-height: 12px;
}
.modal .form__error { color: var(--color-danger); font-family: var(--font-alt); }

.modal__btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 900; font-size: var(--fs-base); line-height: 17px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.modal__btn--primary { background: var(--color-brand-2); color: var(--color-on-brand); }
.modal__btn--primary:hover:not(:disabled) { background: var(--color-brand-hover); }
.modal__btn--dark { background: var(--color-surface-2); color: var(--color-brand-2); }
.modal--wide .modal__btn--dark { background: var(--color-surface-4); color: var(--color-text-alt); }
.modal__btn--dark:hover:not(:disabled) { background: var(--color-surface-4); }
.modal__btn--text { min-height: 31px; background: none; color: #141714; font-weight: 700; font-size: var(--fs-xs); line-height: 15px; }
.modal__btn--text:hover { color: var(--color-surface-2); text-decoration: underline; }
.modal__btn:disabled { opacity: .5; cursor: not-allowed; }
.modal__link { padding: 0; border: 0; background: none; color: var(--color-surface-2); cursor: pointer; font-family: var(--font-display); font-weight: 900; font-size: var(--fs-xs); line-height: 15px; }
.modal__link:hover { color: var(--color-brand-deep); }
.modal__link--forgot { align-self: center; color: #636963; font-family: var(--font-alt); font-weight: 500; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }
.modal__foot { display: flex; justify-content: center; padding-top: var(--space-20); border-top: 1px solid #d5dad6; }
.modal__foot p { display: flex; align-items: center; gap: var(--space-8); color: var(--color-faint); font-family: var(--font-alt); font-size: var(--fs-base); line-height: 18px; }
.modal__info { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-20); background: #e2e6e3; }
.modal__info-title { color: var(--color-surface-2); font-family: var(--font-display); font-weight: 900; font-size: var(--fs-2xs); line-height: 14px; }
.modal__info-body { color: var(--color-faint); font-family: var(--font-alt); font-size: var(--fs-sm); line-height: 20px; }
.modal__actions { display: flex; flex-direction: column; gap: var(--space-12); }

/* cookie categories: rows 71, toggle 40×20 */
.cookie-prefs { gap: var(--space-32); }
.cookie-cats { display: flex; flex-direction: column; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 71px; padding-block: var(--space-16); box-shadow: inset 0 -1px 0 #e6ebe7; }
.cookie-row:last-child { box-shadow: none; }
.cookie-row__info { display: flex; flex-direction: column; gap: var(--space-4); width: 440px; }
.cookie-row__name { color: #141714; font-family: var(--font-display); font-weight: 900; font-size: var(--fs-base); line-height: 17px; }
.cookie-row__desc { color: #636963; font-family: var(--font-alt); font-size: var(--fs-sm); line-height: 18px; }
.cookie-row__status { color: var(--color-brand-deep); font-family: var(--font-display); font-weight: 900; font-size: var(--fs-3xs); line-height: 12px; }
.switch { position: relative; display: inline-flex; width: 40px; height: 20px; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; padding: 2px; background: #c9cfcb; transition: background var(--dur-fast) var(--ease); }
.switch__track::after { content: ""; display: block; width: 16px; height: 16px; background: var(--color-surface-2); transition: transform var(--dur-base) var(--ease); }
.switch input:checked + .switch__track { background: var(--color-brand-2); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--focus-ring); }

/* registration: white body pad 48, gap 32; groups gap 20; rows gap 16 */
.register { display: flex; flex-direction: column; gap: var(--space-32); padding: var(--space-48); background: var(--color-light); }
.register__intro { display: flex; flex-direction: column; gap: var(--space-12); }
.register__title { color: #000; font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 45px; }
.register__lead { color: #000; font-family: var(--font-alt); font-size: var(--fs-base); line-height: 21px; }
.register__group { display: flex; flex-direction: column; gap: var(--space-20); margin: 0; padding: 0; border: 0; min-width: 0; }
.register__legend {
  display: flex; align-items: center; gap: var(--space-8); width: 100%;
  padding-bottom: var(--space-20); margin-bottom: 0;
  color: #000; font-family: var(--font-display); font-weight: 900; font-size: var(--fs-xs); line-height: 15px;
  background: linear-gradient(#e6ebe7, #e6ebe7) bottom / 100% 1px no-repeat;
}
.register__legend span { color: var(--color-brand-2); font-size: var(--fs-body); line-height: 20px; }
.register__row { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: var(--space-16); }
.register__row--3 { grid-template-columns: 2fr 1fr 1fr; }
.register .field--modal .field__label { color: #000; font-weight: 700; }
.register .field--modal input:not(.visually-hidden), .register .field--modal select { min-height: 48px; background: var(--color-surface-hover); }
.register__consent { align-items: flex-start; }
.register__consent input[type="checkbox"] { background: var(--color-surface-hover); box-shadow: none; }
.register__consent .field__label { color: #000; font-family: var(--font-alt); font-weight: 400; font-size: var(--fs-sm); line-height: 20px; text-transform: none; letter-spacing: normal; }
.register__consent .field__label a { color: #000; }
.register__actions { display: flex; flex-direction: column; gap: var(--space-20); }
.register__switch { display: flex; align-items: center; justify-content: center; gap: var(--space-8); padding-top: var(--space-20); border-top: 1px solid #e6ebe7; color: #000; font-family: var(--font-alt); font-size: var(--fs-base); line-height: 18px; }
.register__switch .modal__link { color: var(--color-brand-deep); }

/* ── mobile menu: full-height panel, 390 frame ────────────────────────── */
.overlay--menu { place-items: stretch; padding: 0; background: var(--color-bg); }
.mmenu { display: flex; flex-direction: column; width: 100%; max-height: none; height: 100%; padding: 0; background: var(--color-bg); color: var(--color-text); border-radius: 0; box-shadow: none; }
.mmenu__header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 var(--space-24); background: var(--color-surface); }
.mmenu__header .logo__mark { font-size: 22px; line-height: 27px; }
.mmenu__close { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 4px; background: none; color: var(--color-text); cursor: pointer; }
.mmenu__close-glyph { width: 18px; height: 18px; }
.mmenu__helpline { display: flex; align-items: center; gap: var(--space-8); min-height: 31px; padding: var(--space-8) var(--space-24); background: var(--color-bg-deep); color: var(--color-muted); font-weight: 500; font-size: var(--fs-2xs); line-height: 14px; }
.mmenu__nav ul { display: flex; flex-direction: column; }
.mmenu__link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; padding: var(--space-20) var(--space-24);
  color: var(--color-text); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); line-height: 22px;
  box-shadow: inset 0 -1px 0 var(--color-border);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.mmenu__link:hover { background: var(--color-surface); color: var(--color-brand); }
.mmenu__chev { width: 20px; height: 20px; flex: none; color: var(--color-muted); }
.mmenu__note { margin-top: auto; padding: var(--space-16) var(--space-24); background: var(--color-bg-deep); color: var(--color-muted); font-weight: 500; font-size: var(--fs-2xs); line-height: 14px; }
.mmenu__note a { color: var(--color-text); }
.mmenu__auth { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-16) var(--space-24) 34px; background: var(--color-surface); }
.mmenu__auth .btn { min-height: 48px; font-size: var(--fs-sm); line-height: 16px; }

/* ── small screens ────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .cookie-bar { padding: var(--space-16); }
  .cookie-bar__inner { flex-direction: column; align-items: stretch; gap: var(--space-12); }
  .cookie-bar__actions { flex-wrap: wrap; }
  .cookie-bar__actions .btn { flex: 1 1 auto; }
  .gate__top { height: 100px; }
  .gate__badge { font-size: 48px; line-height: 60px; }
  .gate__main, .modal__main { gap: var(--space-24); padding: var(--space-24); }
  .gate__title { font-size: var(--fs-h5); line-height: 26px; }
  .modal__title { font-size: var(--fs-h4); line-height: 30px; }
  .modal__title--lg { font-size: var(--fs-h3); line-height: 34px; }
  .cookie-row__info { width: auto; }
  .register { gap: var(--space-24); padding: var(--space-20); }
  .register__title { font-size: var(--fs-h3); line-height: 34px; }
  .register__row, .register__row--3 { grid-template-columns: 1fr; }
}

.modal__title:focus { outline: none; }
