/* Public controls and scrollbars use Home's navy, paper and warm highlight. */
:root{scrollbar-color:#5884a8 #0b1b35;scrollbar-width:auto}
*::-webkit-scrollbar{width:12px;height:12px}*::-webkit-scrollbar-track{background:#0b1b35}*::-webkit-scrollbar-thumb{background:#5884a8;border:3px solid #0b1b35;border-radius:99px}*::-webkit-scrollbar-thumb:hover{background:#7da5c3}
.preparation-links .action{min-height:48px;padding:11px 20px;text-decoration:none!important;font:500 14px/1.4 'Segoe UI',Arial,sans-serif;background:#092750;color:#fff8ef;border:1px solid #092750;gap:12px}
.preparation-links .action.secondary{background:transparent;color:#092750}.preparation-links .action:is(:hover,:focus-visible,:active){color:#142138}
#page-about .site-button{position:relative;isolation:isolate;overflow:hidden;text-shadow:none}
#page-about .site-button:is(:hover,:focus-visible,:active){color:#142138!important}
:where(select:not([multiple])){border-radius:10px;font-family:'Segoe UI',Arial,sans-serif;accent-color:#092750}
:where(details>summary){border-radius:10px;transition:background-color .2s,color .2s}
:where(details>summary):is(:hover,:focus-visible){background:color-mix(in srgb,currentColor 4%,transparent)}
:where(select,details>summary,dialog button):focus-visible{outline:2px solid #c16d28;outline-offset:4px}
:where(dialog){border:1px solid #09275033;border-radius:18px;background:#fff8ef;color:#092750;box-shadow:0 18px 70px #061e3933}
:where(dialog)::backdrop{background:#071e3799;backdrop-filter:blur(6px)}
@supports(appearance:base-select){
 body select:not([multiple]):not([size]),body select:not([multiple]):not([size])::picker(select){appearance:base-select}
 body select:not([multiple]):not([size]),body select.application-control:not([multiple]):not([size]){background-image:none;display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;gap:16px;cursor:pointer}
 body select:not([multiple]):not([size])::picker-icon{color:#9d5c27;transition:rotate .25s}
 body select:not([multiple]):not([size]):open::picker-icon{rotate:180deg}
 body select:not([multiple]):not([size])::picker(select){border:1px solid #09275030;border-radius:13px;padding:6px;background:#fffaf2;color:#092750;box-shadow:0 14px 36px #061e392b;max-height:min(50svh,420px);overflow:auto;opacity:0;transition:opacity .18s,display .18s allow-discrete,overlay .18s allow-discrete}
 body select:not([multiple]):not([size])::picker(select):popover-open{opacity:1}
 body select option{display:flex;align-items:center;gap:12px;min-height:44px;padding:11px 14px;border:0;border-radius:8px;background:transparent;color:#092750;font:400 15px/1.45 'Segoe UI',Arial,sans-serif;white-space:normal}
 body select option:checked{background:#e8edf2;color:#092750;font-weight:500}
 body select option:is(:hover,:focus){background:#f3ddc2;color:#092750}
 body select option::checkmark{color:#9d5c27}
 @starting-style{body select:not([multiple]):not([size])::picker(select):popover-open{opacity:0}}
}
/* These pages are not connected yet, but their original brand-colour feedback remains. */
.meridian-home .socials button{transition:color .25s,opacity .25s,background-color .25s}
.meridian-home .socials button:nth-child(1){--social-brand:#66a6ff;--social-glow:#1877f2}
.meridian-home .socials button:nth-child(2){--social-brand:#f875ae;--social-glow:#e1306c}
.meridian-home .socials button:nth-child(3){--social-brand:#fff;--social-glow:#fff}
.meridian-home .socials button:is(:hover,:focus-visible){color:var(--social-brand);opacity:1;background:#ffffff0a}
.meridian-home .socials button:is(:hover,:focus-visible) svg{filter:drop-shadow(0 0 5px var(--social-glow)) drop-shadow(0 0 12px var(--social-glow));transform:scale(1.1)}
@media(max-width:660px){.preparation-links{display:grid;grid-template-columns:1fr;gap:12px;width:100%}.preparation-links .action{width:100%;text-align:center;min-height:50px}}
@media(prefers-reduced-motion:reduce){body select::picker(select),body select::picker-icon,.socials button,.socials svg,details>summary{transition:none!important}}
@media(forced-colors:active){:root{scrollbar-color:auto}body select{forced-color-adjust:auto}}

.programme-welcome .showcase .showcase-button{color:#092750}.programme-welcome .showcase .showcase-button:is(:hover,:focus-visible,:active){color:#142138}
input:is([type=radio],[type=checkbox]){accent-color:#092750}

/* Analytics choice (only when GA4_MEASUREMENT_ID is set): a quiet bar, never a wall in front of the page.
   Its own colours and buttons, so each page's styles can't fade it (contrast: WCAG 2.2 AA). */
.analytics-consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; color: #f1eadd; background: #092750; border: 1px solid #f1eadd33; border-radius: 14px; box-shadow: 0 18px 40px #00000040; font-family: inherit; }
.analytics-consent[hidden] { display: none; }
body .analytics-consent p { flex: 1 1 280px; margin: 0; font-size: 14px; line-height: 1.5; color: #f1eadd; opacity: 1; }
body .analytics-consent a { color: #ffbb88; text-decoration: underline; }
.analytics-consent-actions { display: flex; gap: 10px; }
body .analytics-consent button { min-height: 44px; padding: 0 20px; font: 600 14px/1 inherit; font-family: inherit; border-radius: 999px; cursor: pointer; }
body .analytics-consent [data-consent="granted"] { color: #092750; background: #ff7b19; border: 1px solid #ff7b19; }
body .analytics-consent [data-consent="denied"] { color: #f1eadd; background: transparent; border: 1px solid #f1eadd99; }
.analytics-consent button:hover { filter: brightness(1.08); }
.analytics-consent :focus-visible { outline: 3px solid #ffbb88; outline-offset: 2px; }
.footer-consent { min-height: 44px; padding: 0; font: inherit; font-size: 12px; color: #f1eaddc4; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.footer-consent[hidden] { display: none; }
