/* IT-Improvement Events – design system.
   Tokens first, then base styles, building blocks and page sections. Light is the default; the inline script in
   App.razor sets data-theme="dark" or "light" on <html> before the first paint. */

/* ---------- Fonts (self-hosted, Latin only, variable weight) ---------- */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/montserrat-v31-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;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/roboto-v51-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;
}

/* ---------- Tokens ---------- */

:root {
    --navy: #000827;
    --navy-2: #061543;
    --navy-3: #0a2263;
    --brand: #36a7f3;
    --brand-strong: #1d8fdc;

    --font-head: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-height: 68px;

    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Hero and footer are navy in both modes. */
    --hero-bg:
        radial-gradient(900px 520px at 88% -10%, rgba(54, 167, 243, .42), transparent 62%),
        radial-gradient(700px 480px at -5% 110%, rgba(29, 143, 220, .30), transparent 60%),
        linear-gradient(160deg, #000827 0%, #061543 55%, #0a2263 100%);
    --on-navy: #ffffff;
    --on-navy-muted: #c9d6f2;

    color-scheme: light;
    --bg: #f5f7fb;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #eef3fa;
    --text: #0b1433;
    --text-muted: #45526f;
    --border: #dbe3ef;
    --border-strong: #b9c7dc;
    --link: #0a5e9e;
    --link-hover: #073f6b;
    --primary-bg: #000827;
    --primary-bg-hover: #0a2263;
    --on-primary: #ffffff;
    --chip-bg: #e6f1fc;
    --chip-text: #0a3f6b;
    --chip-border: #c6e0f7;
    --chip-active-bg: #000827;
    --chip-active-text: #ffffff;
    --focus: #0a5e9e;
    --info-bg: #e8f4fd;
    --info-border: #a9d6f8;
    --info-text: #08365c;
    --warn-bg: #fff6e5;
    --warn-border: #f3c977;
    --warn-text: #5c3a00;
    --skeleton: #e3e9f2;
    --skeleton-shine: #f3f6fa;
    --header-bg: rgba(255, 255, 255, .86);
    --shadow-sm: 0 1px 2px rgba(11, 20, 51, .06), 0 1px 3px rgba(11, 20, 51, .06);
    --shadow: 0 6px 18px rgba(11, 20, 51, .08), 0 2px 6px rgba(11, 20, 51, .05);
    --shadow-lg: 0 18px 40px rgba(11, 20, 51, .14);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #000827;
    --bg-alt: #030d33;
    --surface: #0a1640;
    --surface-2: #0f1e52;
    --text: #eef3ff;
    --text-muted: #b3c0de;
    --border: #1c2b5d;
    --border-strong: #2d4182;
    --link: #7cc6f8;
    --link-hover: #b3defd;
    --primary-bg: #36a7f3;
    --primary-bg-hover: #6cbdf7;
    --on-primary: #000827;
    --chip-bg: #10215a;
    --chip-text: #d3e8fb;
    --chip-border: #24397a;
    --chip-active-bg: #36a7f3;
    --chip-active-text: #000827;
    --focus: #7cc6f8;
    --info-bg: #0b2050;
    --info-border: #24508f;
    --info-text: #d6ebfd;
    --warn-bg: #2b2006;
    --warn-border: #6b4f12;
    --warn-text: #ffe2a8;
    --skeleton: #13245a;
    --skeleton-shine: #1b3170;
    --header-bg: rgba(0, 8, 39, .82);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 8px 22px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 44px rgba(0, 0, 0, .45);
}

/* ---------- Base ---------- */

*, *::before, *::after {
    box-sizing: border-box;
}

/* The topic filter hides cards with the hidden attribute; layout rules like display: flex must not undo that. */
[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

html body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
    color: inherit;
    overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 650; }

p {
    margin: 0 0 1em;
}

/* Links in running text are always underlined, so they do not depend on colour alone. */
a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--link-hover);
}

img, svg {
    max-width: 100%;
}

img {
    height: auto;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 4px;
}

h1:focus {
    outline: none;
}

::selection {
    background: rgba(54, 167, 243, .35);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 1000;
    padding: .75rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    color: var(--on-primary);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: .75rem;
    color: var(--on-primary);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Layout ---------- */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.section--tight {
    padding-top: clamp(2rem, 4vw, 3rem);
}

/* The collapsed past-webinars box sits close to its neighbours instead of a full section gap. */
.section--past {
    padding-block: 0;
}

.section:has(+ .section--past) {
    padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.section--past + .section {
    padding-top: clamp(1.5rem, 3vw, 2rem);
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.075rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--link);
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

.grid {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* ---------- Icons ---------- */

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
    fill: currentColor;
    vertical-align: -0.25em;
}

.icon--sm {
    width: 1.05em;
    height: 1.05em;
}

.icon--lg {
    width: 1.6em;
    height: 1.6em;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    padding: .7rem 1.35rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn[disabled], .btn[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn--primary {
    background: var(--primary-bg);
    color: var(--on-primary);
}

.btn--primary:hover {
    background: var(--primary-bg-hover);
    color: var(--on-primary);
}

.btn--brand {
    background: var(--brand);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(54, 167, 243, .35);
}

.btn--brand:hover {
    background: #6cbdf7;
    color: var(--navy);
}

.btn--outline {
    border-color: var(--border-strong);
    background: transparent;
    color: var(--text);
}

.btn--outline:hover {
    border-color: var(--link);
    color: var(--link);
}

.btn--on-navy {
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .04);
    color: var(--on-navy);
}

.btn--on-navy:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, .1);
    color: var(--on-navy);
}

.btn--block {
    width: 100%;
}

.btn--sm {
    min-height: 38px;
    padding: .45rem 1rem;
    font-size: .925rem;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

.icon-btn:hover {
    background: var(--surface-2);
    border-color: var(--border);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* ---------- Cards ---------- */

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card--pad {
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* ---------- Chips ---------- */

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 38px;
    padding: .4rem .95rem;
    border: 1px solid var(--chip-border);
    border-radius: var(--radius-pill);
    background: var(--chip-bg);
    color: var(--chip-text);
    font-family: var(--font-body);
    font-size: .925rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}

.chip:hover {
    border-color: var(--link);
}

.chip[aria-pressed="true"] {
    border-color: var(--chip-active-bg);
    background: var(--chip-active-bg);
    color: var(--chip-active-text);
}

.chip-count {
    font-size: .8em;
    opacity: .8;
}

.topic-filter__more {
    display: none;
}

@media (max-width: 640px) {
    .topic-filter {
        display: flex;
        align-items: flex-start;
        gap: .5rem;
    }

    .topic-filter .chip-group {
        flex: 1 1 auto;
        min-width: 0;
        max-height: 38px;
        overflow: hidden;
    }

    .topic-filter.is-open .chip-group {
        max-height: none;
    }

    .topic-filter__more.is-needed {
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid var(--chip-border);
        border-radius: 50%;
        background: var(--chip-bg);
        color: var(--chip-text);
        cursor: pointer;
    }

    .topic-filter__more .icon {
        transition: transform .2s var(--ease);
    }

    .topic-filter.is-open .topic-filter__more .icon {
        transform: rotate(180deg);
    }

    .archive-toolbar {
        padding-block: .75rem;
    }
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: var(--radius-pill);
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

/* ---------- Notices ---------- */

.notice {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--info-border);
    border-radius: var(--radius);
    background: var(--info-bg);
    color: var(--info-text);
}

.notice > .icon {
    margin-top: .15rem;
}

.notice a:not(.btn) {
    color: inherit;
    font-weight: 600;
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice--warn {
    border-color: var(--warn-border);
    background: var(--warn-bg);
    color: var(--warn-text);
}

.notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

/* ---------- Form controls ---------- */

.select {
    appearance: none;
    min-height: 44px;
    padding: .55rem 2.5rem .55rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2366728f'%3E%3Cpath d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E") no-repeat right .75rem center / 1.25rem;
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    cursor: pointer;
}

.field-label {
    display: block;
    margin-bottom: .3rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ---------- Skeleton ---------- */

.skeleton {
    display: block;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-shine) 50%, var(--skeleton) 100%);
    background-size: 200% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
}

.skeleton--text {
    height: .9em;
    margin: .45em 0;
}

.skeleton--title {
    height: 1.4em;
    width: 80%;
    margin-bottom: .8em;
}

@keyframes skeleton {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* ---------- Image loading ---------- */
/* A wave runs over the image box until the picture has loaded, then the picture fades in.
   Images are only hidden when site.js runs (html.js-images), so without JavaScript they show as usual. */

.img-wave {
    background-color: var(--skeleton);
    background-image: linear-gradient(100deg, transparent 20%, var(--skeleton-shine) 50%, transparent 80%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: skeleton 1.6s ease-in-out infinite;
}

.on-navy .img-wave {
    --skeleton: var(--navy-2);
    --skeleton-shine: var(--navy-3);
}

.img-wave:has(img.is-loaded),
img.img-wave.is-loaded {
    animation: none;
    background-image: none;
}

html.js-images img.lazy-img {
    transition: opacity .6s var(--ease), transform .4s var(--ease);
}

html.js-images img.lazy-img:not(.is-loaded) {
    opacity: 0;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--text);
    text-decoration: none;
}

.brand:hover {
    color: var(--text);
}

.brand img {
    width: 40px;
    height: 40px;
}

.brand__name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand__title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
}

.brand__sub {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .85rem;
    border-radius: var(--radius-pill);
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}

.site-nav__link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.site-nav__link.active {
    color: var(--link);
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

.nav-menu {
    display: none;
    position: relative;
}

.nav-menu > summary {
    list-style: none;
}

.nav-menu > summary::-webkit-details-marker {
    display: none;
}

.nav-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    min-width: 230px;
    padding: .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.nav-menu__panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu__panel a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .8rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
}

.nav-menu__panel a:hover {
    background: var(--surface-2);
}

.nav-menu .icon-close,
.nav-menu[open] .icon-menu {
    display: none;
}

.nav-menu[open] .icon-close {
    display: block;
}

@media (max-width: 760px) {
    .site-nav__links {
        display: none;
    }

    .nav-menu {
        display: block;
    }

    .brand__sub {
        display: none;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: auto;
    padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    background: var(--navy);
    color: var(--on-navy-muted);
    font-size: .95rem;
}

[data-theme="dark"] .site-footer {
    background: #00041a;
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--on-navy);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.site-footer__logo img {
    width: 220px;
    height: auto;
}

.site-footer__claim {
    margin-top: .75rem;
    max-width: 340px;
}

.site-footer__title {
    margin: 0 0 .75rem;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--on-navy);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: .45rem;
}

.site-footer__contact li {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .875rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__legal li {
    margin: 0;
}

@media (max-width: 860px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Back to top ---------- */

.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--primary-bg);
    color: var(--on-primary);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* ---------- Blazor error bar ---------- */

#blazor-error-ui {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 1000;
    display: none;
    width: min(560px, calc(100% - 2rem));
    padding: .9rem 3rem .9rem 1.25rem;
    border: 1px solid var(--warn-border);
    border-radius: var(--radius);
    background: var(--warn-bg);
    color: var(--warn-text);
    box-shadow: var(--shadow-lg);
    transform: translateX(-50%);
}

#blazor-error-ui .reload {
    margin-left: .5rem;
    color: inherit;
    font-weight: 600;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 1rem;
    top: .8rem;
    cursor: pointer;
}

/* ---------- Hero (start page) ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--on-navy);
    isolation: isolate;
}

/* Line drawing in the style of the logo ball. Inline SVG strokes are decoration and never count as the
   largest content of the page, unlike a background or mask image. */
.hero__decor {
    position: absolute;
    right: -110px;
    top: 50%;
    z-index: -1;
    width: 620px;
    height: 620px;
    color: #ffffff;
    opacity: .16;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(3rem, 8vw, 6rem) clamp(5.5rem, 10vw, 7.5rem);
}

.hero .eyebrow {
    color: var(--brand);
}

.hero h1 {
    margin-bottom: 1.1rem;
    color: var(--on-navy);
}

.hero__intro {
    max-width: 620px;
    margin-bottom: 2rem;
    color: var(--on-navy-muted);
    font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.spotlight {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.spotlight__label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    padding: .3rem .75rem;
    border-radius: var(--radius-pill);
    background: rgba(54, 167, 243, .18);
    color: #bfe3fd;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.spotlight__label .dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(54, 167, 243, .25);
}

.spotlight__title {
    margin-bottom: .9rem;
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--on-navy);
}

.spotlight__title a {
    color: inherit;
    text-decoration: none;
}

.spotlight__title a:hover {
    color: inherit;
    text-decoration: underline;
}

.spotlight__meta {
    display: grid;
    gap: .45rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
    color: var(--on-navy-muted);
}

.spotlight__meta li {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.spotlight__meta .icon {
    color: var(--brand);
}

.spotlight__text {
    color: var(--on-navy-muted);
}

.spotlight__latest {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .95rem;
}

.hero a:not(.btn),
.cta-band a:not(.btn) {
    color: #9fd6fb;
}

.hero a:not(.btn):hover,
.cta-band a:not(.btn):hover {
    color: #ffffff;
}

.hero .spotlight__title a {
    color: var(--on-navy);
    text-decoration: none;
}

.spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.spotlight .skeleton {
    --skeleton: rgba(255, 255, 255, .10);
    --skeleton-shine: rgba(255, 255, 255, .18);
}

@media (max-width: 960px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__decor {
        width: 440px;
        height: 440px;
        right: -170px;
        top: 28%;
    }

}

/* ---------- Benefits band ---------- */

.benefits {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * clamp(3rem, 6vw, 4.5rem));
}

.benefits__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.benefit {
    display: flex;
    gap: .9rem;
    padding: 1.4rem 1.35rem;
}

.benefit + .benefit {
    border-left: 1px solid var(--border);
}

.benefit__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--chip-bg);
    color: var(--link);
}

.benefit__title {
    margin: 0 0 .2rem;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.3;
}

.benefit__text {
    margin: 0;
    color: var(--text-muted);
    font-size: .925rem;
    line-height: 1.5;
}

@media (max-width: 1080px) {
    .benefits__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit:nth-child(3) {
        border-left: 0;
    }

    .benefit:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 600px) {
    .benefits__list {
        grid-template-columns: 1fr;
    }

    .benefit + .benefit {
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}

/* ---------- Toolbar (filter and sort) ---------- */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.toolbar__sort {
    display: flex;
    flex-direction: column;
}

/* ---------- Event card ---------- */

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.event-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.event-card__media {
    position: relative;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.event-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}

.event-card:hover .event-card-image {
    transform: scale(1.03);
}

.date-badge {
    position: absolute;
    left: .9rem;
    top: .9rem;
    display: grid;
    justify-items: center;
    min-width: 58px;
    padding: .4rem .55rem .45rem;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    line-height: 1;
}

.date-badge__day {
    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 700;
}

.date-badge__month {
    margin-top: .2rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--link);
}

.status-badge {
    position: absolute;
    right: .9rem;
    top: .9rem;
    padding: .25rem .65rem;
    border-radius: var(--radius-pill);
    background: rgba(0, 8, 39, .82);
    color: #ffffff;
    font-size: .75rem;
    font-weight: 600;
}

.event-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: .75rem;
    padding: 1.15rem 1.25rem 1.3rem;
}

.event-card-title {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.35;
}

.event-card-title a {
    color: var(--text);
    text-decoration: none;
}

/* The title link covers the whole card, so the card is one link for keyboard and screen reader users. */
.event-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.event-card-title a:focus-visible {
    outline: none;
}

.event-card:has(.event-card-title a:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: .9rem;
}

.event-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.event-card__meta .icon {
    color: var(--link);
}

.event-card__text {
    margin: 0;
    color: var(--text-muted);
    font-size: .925rem;
    line-height: 1.55;
}

.event-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .25rem;
}

.event-card__cta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--link);
    font-weight: 600;
    font-size: .95rem;
}

.event-card__cta .icon {
    transition: transform .2s var(--ease);
}

.event-card:hover .event-card__cta .icon {
    transform: translateX(3px);
}

/* ---------- Topic cards (Copilot focus) ---------- */

.topic-card {
    padding: 1.5rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.topic-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.topic-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--brand), var(--brand-strong));
    color: var(--navy);
}

.topic-card h3 {
    margin-bottom: .5rem;
}

.topic-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: .95rem;
}

.topic-card--cta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    border-color: transparent;
    background: var(--hero-bg);
    color: var(--on-navy);
}

.topic-card--cta p {
    color: var(--on-navy-muted);
}

.topic-card__count {
    display: block;
    margin-bottom: .35rem;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand);
}

@media (min-width: 900px) {
    .grid--topics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.recent-list {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recent-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s var(--ease);
}

.recent-list a:hover {
    border-color: var(--link);
    color: var(--text);
}

.recent-list__title {
    font-weight: 500;
}

.recent-list__date {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: .875rem;
    white-space: nowrap;
}

.subhead {
    margin: 2.5rem 0 1rem;
    font-size: 1.15rem;
}

/* ---------- FAQ ---------- */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem 1.5rem;
}

.faq-item {
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.faq-item:hover,
.faq-item[open] {
    border-color: var(--border-strong);
}

.faq-item[open] {
    box-shadow: var(--shadow);
}

.faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    cursor: pointer;
    list-style: none;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.4;
}

.faq-item__toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--link);
    transition: transform .25s var(--ease);
}

.faq-item[open] .faq-item__toggle {
    transform: rotate(180deg);
}

.faq-item > p {
    margin: 0;
    padding: 0 1.35rem 1.3rem;
    color: var(--text-muted);
}

.faq-more {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

@media (max-width: 820px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Past webinars (collapsible) ---------- */

.past-webinars {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.past-webinars > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    cursor: pointer;
    list-style: none;
}

.past-webinars > summary::-webkit-details-marker {
    display: none;
}

.past-webinars > summary h2 {
    margin: 0;
}

.past-webinars__toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-2);
    transition: transform .25s var(--ease);
}

.past-webinars[open] .past-webinars__toggle {
    transform: rotate(180deg);
}

.past-webinars__body {
    padding: 0 clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
}

.past-webinars__intro {
    color: var(--text-muted);
}

.year-heading {
    margin: 2rem 0 .5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.past-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.past-list li {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: .25rem 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--border);
}

.past-list time {
    color: var(--text-muted);
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

.past-list a {
    font-weight: 500;
    text-decoration: none;
}

.past-list a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .past-list li {
        grid-template-columns: 1fr;
    }

    .past-list .tag-list {
        display: none;
    }
}

/* ---------- Call-to-action band ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--radius-lg);
    background: var(--hero-bg);
    color: var(--on-navy);
    isolation: isolate;
}

.cta-band h2 {
    margin-bottom: .5rem;
    font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem);
    color: var(--on-navy);
}

.cta-band p {
    max-width: 640px;
    margin: 0;
    color: var(--on-navy-muted);
}

/* ---------- Empty state ---------- */

.empty-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--chip-bg);
    color: var(--link);
}

.empty-state__title {
    margin: 0 0 .35rem;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-muted);
}

@media (max-width: 520px) {
    .empty-state {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   Stage B: webinar page, archive, registration, status pages
   ===================================================================== */

/* ---------- Breadcrumbs ---------- */

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .4rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: .875rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--link);
}

.breadcrumbs-separator {
    margin-left: .4rem;
    opacity: .7;
}

.breadcrumbs [aria-current="page"] {
    color: var(--text);
}

.on-navy .breadcrumbs ol,
.on-navy .breadcrumbs [aria-current="page"] {
    color: var(--on-navy-muted);
}

.on-navy .breadcrumbs a {
    color: #9fd6fb;
}

/* ---------- Page head (archive and other sub pages) ---------- */

.page-head {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.25rem, 6vw, 4rem);
    background: var(--hero-bg);
    color: var(--on-navy);
    isolation: isolate;
}

.page-head h1 {
    margin-bottom: .75rem;
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
    color: var(--on-navy);
}

.page-head__intro {
    max-width: 720px;
    margin: 0;
    color: var(--on-navy-muted);
    font-size: 1.05rem;
}

.page-head__intro a {
    color: #9fd6fb;
}

.page-head__stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--on-navy-muted);
    font-size: .95rem;
}

.page-head__stats li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.page-head__stats strong {
    color: var(--on-navy);
    font-family: var(--font-head);
}

.page-head .hero__decor {
    width: 480px;
    height: 480px;
    right: -120px;
    opacity: .12;
}

/* ---------- Webinar page: head ---------- */

.detail-hero {
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--on-navy);
    isolation: isolate;
}

.detail-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    padding-block: clamp(2rem, 5vw, 3.75rem);
}

.detail-hero h1 {
    margin-bottom: 1.1rem;
    font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
    color: var(--on-navy);
}

.detail-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .75rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    color: #d9ecfc;
    font-size: .8rem;
    font-weight: 600;
}

.pill--live {
    background: rgba(54, 167, 243, .22);
    color: #cfe9fd;
}

.pill--live::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(54, 167, 243, .3);
}

.pill--warn {
    background: rgba(255, 181, 69, .18);
    color: #ffe2a8;
}

.detail-hero__meta {
    display: grid;
    gap: .5rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    color: var(--on-navy-muted);
    font-size: 1.02rem;
}

.detail-hero__meta li {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.detail-hero__meta .icon {
    color: var(--brand);
}

.detail-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.detail-hero__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.detail-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .detail-hero__inner {
        grid-template-columns: 1fr;
    }

    .detail-hero__media {
        order: -1;
    }
}

/* ---------- Webinar page: body ---------- */

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "main aside";
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.detail-aside {
    grid-area: aside;
    position: sticky;
    top: calc(var(--header-height) + 1.25rem);
}

.detail-main {
    grid-area: main;
    min-width: 0;
}

.detail-main > * + * {
    margin-top: clamp(2rem, 4vw, 2.75rem);
}

.detail-main h2 {
    font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem);
    margin-bottom: 1rem;
}

@media (max-width: 960px) {
    .detail-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "aside" "main";
    }

    .detail-aside {
        position: static;
    }
}

.fact-card {
    padding: 1.5rem;
}

.fact-card h2 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.fact-list {
    display: grid;
    gap: .85rem;
    margin: 0 0 1.5rem;
}

.fact-list > div {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    align-items: start;
}

.fact-list .icon {
    margin-top: .2rem;
    color: var(--link);
}

.fact-list dt {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.fact-list dd {
    grid-column: 2;
    margin: .1rem 0 0;
    font-weight: 500;
}

.fact-card__note {
    margin: .75rem 0 0;
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
}

@media (min-width: 600px) and (max-width: 960px) {
    .fact-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Description from Dynamics */
.prose {
    max-width: 72ch;
    font-size: 1.05rem;
    line-height: 1.75;
}

.prose p {
    margin: 0 0 1.1em;
}

.prose ul {
    margin: 0 0 1.25em;
    padding: 0;
    list-style: none;
}

.prose li {
    position: relative;
    margin-bottom: .55em;
    padding-left: 1.75rem;
}

.prose li::before {
    content: "";
    position: absolute;
    left: .3rem;
    top: .7em;
    width: .5rem;
    height: .5rem;
    border-radius: 2px;
    background: var(--brand);
    transform: rotate(45deg);
}

/* Earlier runs */
.run-list {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.run-list li {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: .25rem 1rem;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.run-list time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.run-list span {
    color: var(--text-muted);
}

@media (max-width: 560px) {
    .run-list li {
        grid-template-columns: 1fr;
    }
}

/* Speakers */
.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.speaker-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem;
}

.speaker-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.speaker-card__photo {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--chip-border);
}

.speaker-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.speaker-card__role {
    margin: .15rem 0 0;
    color: var(--link);
    font-size: .9rem;
    font-weight: 500;
}

.speaker-card__links {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .925rem;
}

.speaker-card__links li {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.speaker-card__links a {
    overflow-wrap: anywhere;
}

.speaker-card__links .icon {
    color: var(--text-muted);
}

.speaker-card__sessions {
    margin: 0;
    padding: .85rem 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
    font-size: .9rem;
}

.speaker-card__sessions li + li {
    margin-top: .5rem;
}

.speaker-card__sessions strong {
    display: block;
    overflow-wrap: anywhere;
}

.speaker-card__sessions span {
    color: var(--text-muted);
}

/* Fixed registration bar on phones */
.mobile-cta {
    display: none;
}

@media (max-width: 960px) {
    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 45;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--border);
        background: var(--header-bg);
        -webkit-backdrop-filter: saturate(160%) blur(12px);
        backdrop-filter: saturate(160%) blur(12px);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, .12);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform .25s var(--ease), visibility .25s;
    }

    .mobile-cta.is-visible {
        transform: none;
        visibility: visible;
    }

    .mobile-cta__text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        font-size: .85rem;
        line-height: 1.3;
        color: var(--text-muted);
    }

    .mobile-cta__text strong {
        color: var(--text);
        font-size: .95rem;
    }

    .mobile-cta-spacer {
        height: 80px;
    }

    .has-mobile-cta .to-top {
        bottom: 6rem;
    }
}

/* ---------- Archive ---------- */

.archive-toolbar {
    position: sticky;
    top: var(--header-height);
    z-index: 5;
    margin-bottom: 1rem;
    padding-block: 1rem;
    background: var(--bg);
}

.year-section + .year-section {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.year-section h2 {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: 1.25rem;
    font-size: clamp(1.35rem, 1.2rem + .6vw, 1.75rem);
}

.year-section h2 small {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
}

/* ---------- Status pages ---------- */

.status-panel {
    max-width: 680px;
    margin: clamp(2.5rem, 8vw, 5rem) auto;
    padding: clamp(1.75rem, 5vw, 3rem);
    text-align: center;
}

.status-panel__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 22px;
    background: var(--chip-bg);
    color: var(--link);
}

.status-panel__icon .icon {
    width: 2.25rem;
    height: 2.25rem;
}

.status-panel h1 {
    font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
}

.status-panel p {
    color: var(--text-muted);
}

.status-panel__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.75rem;
}

.status-panel--wide {
    max-width: 960px;
    text-align: left;
}

.status-panel--wide .status-panel__icon {
    margin-left: 0;
}

.status-panel .eyebrow {
    display: flex;
    justify-content: center;
}

@media (max-width: 560px) {
    .status-panel {
        margin-block: 1.5rem 2.5rem;
        padding: 1.5rem 1.25rem;
    }

    .status-panel__icon {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .status-panel h1 {
        font-size: 1.5rem;
    }

    .status-panel__actions .btn {
        width: 100%;
    }
}

.status-panel code {
    padding: .1rem .4rem;
    border-radius: 6px;
    background: var(--surface-2);
    font-size: .9em;
}

/* ---------- Registration ---------- */

.register-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "intro form" "benefits form";
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 0 clamp(1.5rem, 4vw, 3rem);
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.register-intro { grid-area: intro; }
.register-form { grid-area: form; }
.register-benefits { grid-area: benefits; }

@media (max-width: 900px) {
    .register-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "intro" "form" "benefits";
        grid-template-rows: auto;
        row-gap: 1.25rem;
        padding-block: 1.25rem 2.5rem;
    }

    .register-intro h1 {
        margin-bottom: .35rem;
        font-size: 1.65rem;
    }

    .register-intro > p {
        margin-bottom: 0;
        font-size: 1rem;
    }

    .event-summary {
        margin-top: 1rem;
        padding: 1.1rem 1.2rem;
    }

    .event-summary__title {
        font-size: 1.05rem;
    }

    .register-benefits {
        margin-top: .25rem;
        padding: 1.1rem 1.2rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
    }

    .form-card {
        padding: 1.25rem 1.1rem 1.4rem;
    }

    .captcha-box {
        padding: .85rem;
    }

    .modal__actions .btn {
        width: 100%;
    }
}

.register-intro h1 {
    font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
}

.register-intro > p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.event-summary {
    margin-top: 1.5rem;
    padding: 1.35rem 1.5rem;
    border: 0;
    background: var(--hero-bg);
    color: var(--on-navy);
}

.event-summary__label {
    margin: 0 0 .4rem;
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-summary__title {
    margin: 0 0 .9rem;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.event-summary__title a {
    color: inherit;
    text-decoration: none;
}

.event-summary__title a:hover {
    color: inherit;
    text-decoration: underline;
}

.event-summary ul {
    display: grid;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--on-navy-muted);
}

.event-summary li {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.event-summary .icon {
    color: var(--brand);
}

.check-list {
    display: grid;
    gap: .6rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: .65rem;
    color: var(--text-muted);
}

.check-list .icon {
    margin-top: .15rem;
    color: var(--link);
}

.form-card {
    padding: clamp(1.35rem, 4vw, 2.25rem);
}

.form-card h2 {
    margin-bottom: .35rem;
    font-size: 1.35rem;
}

.form-card__lead {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1rem;
}

.form-grid .span-2 {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.field label {
    display: block;
    margin-bottom: .35rem;
    font-size: .9rem;
    font-weight: 600;
}

.field .required {
    color: var(--link);
}

.input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: .7rem .95rem;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.input:hover {
    border-color: var(--link);
}

.input:focus {
    outline: none;
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(54, 167, 243, .3);
}

.input[aria-invalid="true"] {
    border-color: #d93a4f;
}

[data-theme="dark"] .input[aria-invalid="true"] {
    border-color: #ff6b80;
}

.input:disabled {
    opacity: .6;
    cursor: not-allowed;
}

select.input {
    appearance: none;
    padding-right: 2.5rem;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2366728f'%3E%3Cpath d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E") no-repeat right .8rem center / 1.25rem;
}

.field-error {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: .35rem 0 0;
    color: #b42335;
    font-size: .875rem;
    font-weight: 500;
}

[data-theme="dark"] .field-error {
    color: #ff8f9f;
}

.field-hint {
    margin: .35rem 0 0;
    color: var(--text-muted);
    font-size: .85rem;
}

.captcha-box {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    background: var(--surface-2);
}

.captcha-box img {
    max-width: 100%;
    border-radius: 8px;
}

.form-actions {
    margin-top: 1.5rem;
}

.form-privacy {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: .85rem;
}

.progress {
    position: relative;
    height: 4px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface-2);
}

.progress::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    border-radius: inherit;
    background: var(--brand);
    animation: progress 1.1s ease-in-out infinite;
}

@keyframes progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(260%); }
}

.spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.notice--error {
    border-color: #f1a7b1;
    background: #fdecee;
    color: #7a1323;
}

[data-theme="dark"] .notice--error {
    border-color: #7a2a38;
    background: #2a0d14;
    color: #ffc9d1;
}

.notice--success {
    border-color: #9fdcb5;
    background: #e9f8ef;
    color: #0f5130;
}

[data-theme="dark"] .notice--success {
    border-color: #2a6b46;
    background: #0b2a1a;
    color: #b8f0cf;
}

.success-panel {
    text-align: left;
}

.success-panel__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 20px;
    background: #e9f8ef;
    color: #137a44;
}

[data-theme="dark"] .success-panel__icon {
    background: #0b2a1a;
    color: #7fe0a8;
}

.success-panel__icon .icon {
    width: 2rem;
    height: 2rem;
}

/* Small drop-down menu (calendar links) */
.menu {
    position: relative;
    display: inline-block;
}

.menu > summary {
    list-style: none;
}

.menu > summary::-webkit-details-marker {
    display: none;
}

.menu__panel {
    position: absolute;
    left: 0;
    top: calc(100% + .4rem);
    z-index: 20;
    min-width: 240px;
    margin: 0;
    padding: .4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    list-style: none;
}

.menu__panel a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .8rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
}

.menu__panel a:hover {
    background: var(--surface-2);
}

.menu[open] .menu__chevron {
    transform: rotate(180deg);
}

/* Modal dialog */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 4, 20, .6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: clamp(1.35rem, 4vw, 2rem);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.modal h2 {
    font-size: 1.3rem;
}

.modal p {
    color: var(--text-muted);
}

.modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.5rem;
}

/* ---------- Blazor defaults (formerly app.css) ---------- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ---------- Reconnect notice ---------- */

.reconnect {
    display: none;
}

.reconnect.components-reconnect-show,
.reconnect.components-reconnect-failed,
.reconnect.components-reconnect-rejected {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    z-index: 1000;
    justify-content: center;
    pointer-events: none;
}

.reconnect__box {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    font-size: .95rem;
}

.reconnect__spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-strong);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: reconnect-spin .8s linear infinite;
}

@keyframes reconnect-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .reconnect__spinner { animation-duration: 2.4s; }
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
