/* Shared consent UI: restrained typography, white space and Marlmont navy. */
.cookie-notice { width: min(850px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); overflow-y: auto; box-shadow: var(--shadow-min); }
.cookie-notice::backdrop { background: rgb(0 8 14 / 78%); }
.cookie-notice__inner { padding: 48px 68px; }
.cookie-notice__copy:focus { outline: none; }
.cookie-notice p { font-size: 14px; line-height: 1.75; }
.cookie-notice p + p { margin-top: 6px; }
.cookie-notice a, .cookie-preferences a { color: var(--navy); font-weight: 550; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .25s; }
.cookie-notice a:hover, .cookie-preferences a:hover { text-decoration-color: var(--navy); }   /* the notice's links read as links, underlined in blue (2026-10-19) */
.cookie-notice__actions { display: flex; justify-content: center; gap: 18px; margin-top: 32px; }
.cookie-notice__actions .cookie-button { flex: 0 1 250px; }
/* the buttons as on the pages (2026-10-19): solid Navy for the main choice, a Navy outline for the other; the fill wipes in from the left on hover */
.cookie-button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 1px solid var(--navy); border-radius: 2px; background: transparent; color: var(--navy); cursor: pointer; font: 550 15px/22px var(--sans); white-space: nowrap; --fill: var(--navy); transition: color .35s var(--ease), border-color .35s var(--ease); }
.cookie-button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill); transform: scaleX(0); transform-origin: left center; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.cookie-button:hover::before { transform: scaleX(1); }
.cookie-button:hover { color: var(--white); }
.cookie-button--primary { background: var(--navy); color: var(--white); --fill: var(--navy-3); }
.cookie-button--primary:hover { border-color: var(--navy-3); }
.cookie-text-button { min-height: 36px; padding: 4px 12px; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 13px; line-height: 20px; text-decoration: underline; text-underline-offset: 4px; }
.cookie-footer-link { border: 0; padding: 0; background: none; color: inherit; min-height: 36px; cursor: pointer; font: inherit; text-underline-offset: 4px; }
.cookie-footer-link:hover { color: var(--white); text-decoration: underline; }
.cookie-settings-open { overflow: hidden; }
.cookie-preferences { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 32px; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); overflow-y: auto; box-shadow: var(--shadow-min); }
.cookie-preferences::backdrop { background: rgb(1 23 38 / 55%); }
.cookie-preferences__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cookie-preferences__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: transparent; cursor: pointer; }
.cookie-preferences__close:hover { background: var(--grey-1); }
.cookie-preferences h2 { font: 420 32px/1.2 var(--font-serif); letter-spacing: -.018em; margin-bottom: 16px; }
.cookie-preferences p { font-size: 14px; line-height: 1.6; color: var(--slate); }
.cookie-preferences__rows { margin-block: 24px 20px; }
.cookie-preferences__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid var(--grey-2); }
.cookie-preferences__row:last-child { border-bottom: 1px solid var(--grey-2); }
.cookie-preferences__row[hidden] { display: none; }   /* the marketing switch, when analytics is the only optional service */
.cookie-preferences__row:has(+ .cookie-preferences__row[hidden]) { border-bottom: 1px solid var(--grey-2); }
.cookie-preferences__row h3, .cookie-preferences__row label { display: block; margin-bottom: 6px; font-size: 15px; line-height: 22px; font-weight: 600; }
.cookie-preferences__row label { cursor: pointer; }
.cookie-preferences__required { flex-shrink: 0; font-size: 12px; line-height: 18px; font-weight: 550; color: var(--blue-deep); }
.cookie-preferences input[role="switch"] { appearance: none; -webkit-appearance: none; flex: 0 0 44px; width: 44px; height: 26px; border: 1px solid var(--slate); border-radius: 20px; background: var(--grey-2); cursor: pointer; position: relative; }
.cookie-preferences input[role="switch"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--slate); border-radius: 50%; transition: transform .18s; }
.cookie-preferences input[role="switch"]:checked { background: var(--navy); border-color: var(--navy); }
.cookie-preferences input[role="switch"]:checked::after { background: var(--white); transform: translateX(18px); }
.cookie-preferences .cookie-preferences__note { font-size: 12px; line-height: 19px; }
.cookie-preferences__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
@media (max-width: 767px) {
  .cookie-notice__inner { padding: 36px; }
  .cookie-notice__actions { gap: 12px; margin-top: 28px; }
  .cookie-preferences { padding: 24px; }
  .cookie-preferences h2 { font-size: 28px; }
}
@media (max-width: 520px) {
  .cookie-notice { width: calc(100% - 32px); max-height: calc(100dvh - 32px); }
  .cookie-notice__inner { padding: 28px 24px; }
  .cookie-notice__actions { flex-direction: column; margin-top: 24px; }
  .cookie-notice__actions .cookie-button { flex: auto; }
  .cookie-preferences__actions { grid-template-columns: 1fr; }
  .cookie-preferences__row { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cookie-button, .cookie-button::before, .cookie-preferences input[role="switch"]::after { transition: none; } }

/* PHONE AND TABLET PASS (2026-10-21) */
/* ===== for css/cookies.css (loaded after site.css: these selectors carry an extra type or class so they win wherever they are pasted) ===== */
/* on a phone the notice and the preferences rise from the foot of the screen as a sheet, the buttons under the thumb, the page's heading
   still in view above */
@media (max-width: 759.98px) {
  dialog.cookie-notice, dialog.cookie-preferences { width: 100%; max-width: none; max-height: calc(100dvh - 40px); margin: auto 0 0; border-radius: 0; }
  dialog.cookie-notice .cookie-notice__inner { padding: 28px var(--gut) calc(24px + env(safe-area-inset-bottom, 0px)); }
  dialog.cookie-preferences { padding: 24px var(--gut) calc(24px + env(safe-area-inset-bottom, 0px)); }
}
