/* Shared by every page on prasargroup.com: self-hosted fonts, focus, skip
   link, cookie consent banner. Page layouts stay in each page's <style>. */

/* Fonts, self-hosted (SIL OFL, see /fonts/OFL.txt) so no page calls Google Fonts. */
/* IBM Plex Mono 400, latin-ext */
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 400, latin */
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono 500, latin-ext */
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 500, latin */
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter 300 500, latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url(/fonts/inter-300-500-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 300 500, latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url(/fonts/inter-300-500-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat 700, latin-ext */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/montserrat-700-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat 700, latin */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/montserrat-700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk 400 700, latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/space-grotesk-400-700-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 400 700, latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/space-grotesk-400-700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- shared tokens (pages define the rest) ---- */
:root {
    --focus: #c185f4;          /* 7.4:1 on the page, 6.9:1 on the banner */
    --banner-bg: #141417;
    --banner-line: #2c2c33;
    --btn-solid: #7436c9;      /* white text 6.7:1 */
    --btn-solid-hover: #6a2fbb;
}

html { scroll-padding-top: 4.75rem; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
}

/* Visible focus everywhere: light violet ring, 2px, offset from the element. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Skip link: off-screen until focused, then a clear chip above the sticky nav. */
.skip {
    position: fixed; left: 12px; top: -80px; z-index: 100;
    background: #ededef; color: #0a0a0b; font: 500 0.95rem/1 'Inter', -apple-system, sans-serif;
    padding: 0.8rem 1.1rem; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; outline: 2px solid var(--focus); outline-offset: 3px; }

/* Footer "Cookie settings" is a button that looks like the links beside it. */
.footer-cookie {
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}
.footer-cookie:hover { color: var(--accent, #a965ed); }

/* ---- Cookie consent (consent.js). Fixed card, so it never shifts the page. ---- */
.consent {
    position: fixed; z-index: 70; left: 24px; bottom: 24px;
    width: min(420px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow-y: auto;
    background: var(--banner-bg); color: #ededef;
    border: 1px solid var(--banner-line); border-top: 2px solid #a965ed; border-radius: 14px;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(169, 101, 237, 0.06);
    padding: 1.25rem 1.35rem 1.15rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 0.95rem; line-height: 1.55;
    animation: consent-in .18s ease-out;
}
.consent[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
.consent :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent-title {
    font-family: 'Space Grotesk', -apple-system, sans-serif; font-size: 1.15rem; font-weight: 500;
    letter-spacing: -0.01em; color: #ededef; margin: 0 0 0.45rem; padding-right: 2rem;
}
.consent-title:focus { outline: none; }
.consent-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.consent p { font-size: 0.92rem; font-weight: 400; color: #a6a6ad; margin: 0; }
.consent a { color: #d3a8f8; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.consent a:hover { color: #ededef; }
.consent-prefs > p { margin-bottom: 0.8rem; }
.consent-gpc { border-left: 2px solid #a965ed; padding-left: 0.7rem; }
.consent-cat { border-top: 1px solid var(--banner-line); padding: 0.8rem 0; }
.consent-cat:last-child { padding-bottom: 0.2rem; }
.consent-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.2rem; }
.consent-cat h3 { font-family: 'Space Grotesk', -apple-system, sans-serif; font-size: 0.98rem; font-weight: 500; color: #ededef; margin: 0; }
.consent-cat p { font-size: 0.86rem; }
.consent-always {
    font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: #d3a8f8; border: 1px solid #4b3666; border-radius: 999px; padding: 0.2rem 0.6rem;
}
.consent-switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.consent-switch input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch span {
    width: 46px; height: 26px; border-radius: 999px; background: transparent;
    border: 1.5px solid #8b8b92; position: relative; transition: background-color .15s ease, border-color .15s ease;
}
.consent-switch span::after {
    content: ""; position: absolute; top: 3.5px; left: 4px; width: 16px; height: 16px; border-radius: 50%;
    background: #8b8b92; transition: transform .15s ease, background-color .15s ease;
}
.consent-switch input:checked + span { background: var(--btn-solid); border-color: #c185f4; }
.consent-switch input:checked + span::after { transform: translateX(19px); background: #fff; }
.consent-switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .consent-switch span, .consent-switch span::after { transition: none; } }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1rem; }
/* Accept and Reject share one style on purpose: equal weight, no nudging. */
.consent-btn {
    flex: 1 1 0; min-height: 44px; padding: 0 1rem; border-radius: 10px;
    background: var(--btn-solid); color: #fff; border: 1px solid var(--btn-solid);
    font: 500 0.75rem/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; transition: background-color .15s ease;
}
.consent-btn:hover { background: var(--btn-solid-hover); }
.consent-link {
    flex-basis: 100%; min-height: 32px; background: none; border: 0; padding: 0.3rem 0 0;
    font: 500 0.9rem/1.4 'Inter', -apple-system, sans-serif; color: #d3a8f8;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: center;
}
.consent-link:hover { color: #ededef; }
.consent-link[hidden], .consent-save[hidden] { display: none; }
.consent-save { flex-basis: 100%; background: transparent; color: #ededef; border-color: #8b8b92; }
.consent-save:hover { background: #1f1f24; }
.consent-close {
    position: absolute; top: 0.6rem; right: 0.6rem; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: none; color: #ededef; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.consent-close:hover { background: #1f1f24; }
.consent-close[hidden] { display: none; }
@media (max-width: 600px) {
    .consent {
        left: 0; right: 0; bottom: 0; width: 100%; max-height: 85vh;
        border-radius: 16px 16px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
        padding: 1.15rem max(16px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    }
}

/* The skip-link target takes focus without drawing a ring around the whole page. */
main:focus { outline: none; }
