:root {
    --red: #d5081a;
    --red-dark: #ad0615;
    --red-soft: #fff0f2;
    --ink: #101114;
    --ink-2: #242832;
    --muted: #626875;
    --line: #e5e7eb;
    --surface: #ffffff;
    --surface-2: #f6f7f9;
    --surface-3: #eceff3;
    --success: #137a45;
    --warning: #9a5b00;
    --danger: #b42318;
    --shadow-sm: 0 4px 18px rgba(15, 23, 42, .07);
    --shadow-md: 0 18px 50px rgba(15, 23, 42, .12);
    --radius: 20px;
    --radius-sm: 12px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.9rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1.15em; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--ink-2); }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.78); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--red);
    border-radius: 999px;
    background: var(--red);
    color: white;
    font-weight: 760;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover { color: white; background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(213,8,26,.2); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid rgba(213,8,26,.25); outline-offset: 3px; }
.button-ghost { background: white; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: #cfd3da; box-shadow: none; }
.button-light { background: white; color: var(--red); border-color: white; }
.button-light:hover { background: #fff4f5; color: var(--red-dark); border-color: white; }
.button-large { min-height: 52px; padding: 14px 24px; }
.button-small { min-height: 36px; padding: 7px 14px; font-size: .9rem; }
.full-button { width: 100%; }
.text-link { color: var(--red); font-weight: 750; }

.site-header { position: relative; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-top { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { letter-spacing: .06em; font-size: 1.05rem; }
.brand small { margin-top: 6px; color: var(--muted); font-size: .72rem; letter-spacing: .02em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-row { border-top: 1px solid #f0f1f3; }
.nav-inner { display: flex; justify-content: flex-end; }
.main-nav { min-height: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.main-nav > a, .nav-logout button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 13px; color: var(--ink-2); font-size: .93rem; font-weight: 650; border: 0; background: transparent; }
.main-nav > a:hover, .main-nav > a.is-active, .nav-logout button:hover { color: var(--red); }
.main-nav > a.is-active { box-shadow: inset 0 -3px var(--red); }
.nav-logout { margin: 0; }
.mobile-nav-action { display: none !important; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.flash-stack { margin-top: 18px; display: grid; gap: 10px; }
.flash { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow-sm); }
.flash-success { border-color: #9bd4b6; background: #f0fbf5; color: #0d5e35; }
.flash-error { border-color: #f0b3ad; background: #fff2f0; color: #8f1d14; }
.flash-warning { border-color: #ecd09a; background: #fff8e8; color: #7a4a00; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(circle at 82% 24%, rgba(213,8,26,.11), transparent 25%), linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}
.hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0 0 0 auto;
    width: min(56%, 760px);
    background-image: linear-gradient(rgba(213,8,26,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(213,8,26,.055) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
}
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 88px;
    right: -118px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(213,8,26,.16);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(213,8,26,.055), 0 0 0 144px rgba(213,8,26,.025);
}
.hero-grid { min-height: 610px; display: grid; align-items: center; padding-block: 86px; }
.hero-copy { position: relative; z-index: 1; max-width: 920px; }
.hero-copy h1 { max-width: 900px; }
.hero-copy .lead { max-width: 800px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.section { padding: 92px 0; }
.section-muted { background: var(--surface-2); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.split-heading h2 { margin-bottom: 0; }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan-card { min-height: 390px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.plan-card.featured { border: 2px solid var(--red); transform: translateY(-8px); box-shadow: 0 25px 55px rgba(213,8,26,.13); }
.plan-level { display: inline-flex; margin-bottom: 22px; padding: 7px 11px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.plan-card h3, .plan-card h2 { font-size: 1.55rem; }
.plan-card p, .plan-card li { color: var(--muted); }
.price-button { width: 100%; min-height: 72px; padding: 14px 20px; display: flex; align-items: baseline; justify-content: center; gap: 8px; border-radius: 16px; background: var(--red); color: white; text-align: center; }
.price-button:hover { background: var(--red-dark); color: white; }
.price-button strong { font-size: 1.55rem; }
.price-button span { font-size: .88rem; opacity: .85; }
.price-button.disabled { border: 0; opacity: .6; }
.membership-detail-grid .plan-card { min-height: 500px; }
.check-list { padding: 0; margin: 20px 0 0; list-style: none; }
.check-list li { position: relative; padding: 8px 0 8px 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.phase-notice { margin-top: 54px; padding: 32px; background: var(--surface-2); border-radius: var(--radius); }

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cert-card { min-height: 285px; padding: 26px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cert-card img { width: 140px; height: auto; transition: transform .2s ease; }
.cert-card:hover img { transform: translateY(-4px); }
.cert-card p { color: var(--muted); }
.cert-card h3 a:hover { color: var(--red); }
.release-label { margin: 0 0 8px; color: var(--red); font-size: .75rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.light-label { color: rgba(255,255,255,.78); }

.content-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.content-row { padding: 27px 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: 24px; border-bottom: 1px solid var(--line); }
.home-content-thumb { width: 160px; aspect-ratio: 16 / 9; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.home-content-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.home-content-thumb:hover img { transform: scale(1.025); }
.home-content-thumb-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #e8eaee, #f7f8fa); color: var(--muted); }
.home-content-thumb-placeholder span { font-size: 1.55rem; font-weight: 900; opacity: .55; }
.home-content-copy { min-width: 0; }
.content-row h3 { margin: 8px 0 7px; }
.content-row p { margin: 0; color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: .86rem; }
.tag { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tag-dark { background: var(--ink); color: white; }

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 94px 0;
    background: linear-gradient(135deg, #f8f9fb 0%, #edf0f4 100%);
    color: var(--ink);
    border-bottom: 1px solid #dde1e7;
}
.page-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0 0 0 auto;
    width: min(58%, 780px);
    background-image: linear-gradient(rgba(36,40,50,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(36,40,50,.055) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
}
.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -146px;
    right: -90px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(213,8,26,.16);
    border-radius: 50%;
    box-shadow: 0 0 0 62px rgba(213,8,26,.055), 0 0 0 124px rgba(213,8,26,.025);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero.compact { padding: 78px 0; }
.page-hero .eyebrow { color: var(--red); }
.page-hero h1 { max-width: 960px; }
.page-hero p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.15rem; }
.certification-hero { background: linear-gradient(125deg, #9f0614 0%, #d5081a 54%, #f03245 100%); color: white; border-bottom: 0; }
.certification-hero::before {
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
}
.certification-hero::after { border-color: rgba(255,255,255,.18); box-shadow: 0 0 0 62px rgba(255,255,255,.055), 0 0 0 124px rgba(255,255,255,.025); }
.certification-hero-grid { display: grid; grid-template-columns: 1fr 240px; align-items: center; gap: 70px; }
.certification-hero-grid p:not(.release-label) { max-width: 800px; font-size: 1.15rem; color: rgba(255,255,255,.86); }
.certification-hero-grid img { width: 200px; justify-self: end; filter: drop-shadow(0 25px 25px rgba(0,0,0,.2)); }

.cert-program-list { display: grid; gap: 22px; }
.cert-program { padding: 32px; display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cert-program-badge { display: grid; place-items: center; }
.cert-program p { color: var(--muted); }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.article-card > a > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-placeholder { display: grid; place-items: center; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--ink), #3a3f4b); color: white; }
.article-placeholder span { font-size: 4rem; font-weight: 900; opacity: .3; }
.article-card-body { padding: 25px; }
.article-card h2 { margin: 14px 0 10px; font-size: 1.35rem; }
.article-card p { color: var(--muted); }
.pagination { margin-top: 42px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.pagination a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.pagination span { color: var(--muted); }

.article-header { padding: 84px 0 52px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.article-header h1 { margin-top: 18px; font-size: clamp(2.3rem, 5vw, 4.4rem); }
.article-header .lead { color: var(--muted); }
.social-share { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social-share-label { margin-right: 2px; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.social-share-button { min-height: 42px; padding: 8px 14px 8px 9px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-size: .88rem; font-weight: 760; box-shadow: 0 5px 14px rgba(25,28,35,.05); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.social-share-button:hover { transform: translateY(-1px); color: var(--ink); border-color: #c4c8cf; box-shadow: 0 8px 18px rgba(25,28,35,.09); }
.social-share-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: .78rem; font-weight: 900; line-height: 1; }
.social-share-linkedin .social-share-mark { background: #0a66c2; font-family: Arial, sans-serif; }
.social-share-x .social-share-mark { background: #111; }
.article-image { margin-top: 44px; }
.article-image img { width: 100%; max-height: 650px; object-fit: cover; border-radius: var(--radius); }
.article-body { padding-top: 56px; padding-bottom: 92px; font-size: 1.06rem; }
.article-body h2, .article-body h3 { margin-top: 1.7em; }
.article-body p, .article-body li { color: #343842; }
.article-body a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.article-body a.button,
.article-body a.button:hover,
.article-body a.button:focus-visible,
.article-body a.button:active {
    text-decoration: none;
}

.article-body a.button:not(.button-ghost):not(.button-light),
.article-body a.button:not(.button-ghost):not(.button-light):hover,
.article-body a.button:not(.button-ghost):not(.button-light):focus-visible,
.article-body a.button:not(.button-ghost):not(.button-light):active {
    color: #fff;
}

.article-body a.button-ghost,
.article-body a.button-ghost:hover,
.article-body a.button-ghost:focus-visible,
.article-body a.button-ghost:active {
    color: var(--red);
    text-decoration: none;
}

.article-body a.button-light,
.article-body a.button-light:hover,
.article-body a.button-light:focus-visible,
.article-body a.button-light:active {
    color: var(--red);
    text-decoration: none;
}

.article-body ul { padding-left: 24px; }
.article-neighbours { margin-top: 64px; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; border-top: 1px solid var(--line); }
.article-neighbours > div:last-child { text-align: right; }
.article-neighbours span { display: block; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.article-neighbours a { display: inline-block; margin-top: 7px; font-weight: 760; text-decoration: none; }
.restricted-panel, .download-panel, .registration-panel, .notice-panel, .secondary-content { margin-top: 34px; padding: 30px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.restricted-panel .button { margin-right: 8px; }
.download-panel { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 22px; }
.download-panel p { margin: 0; }
.bottom-cta { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--line); }
.bottom-cta p { margin-top: 12px; color: var(--muted); font-size: .9rem; }

.publication-list { display: grid; gap: 18px; }
.publication-row { padding: 26px; display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.publication-row > img { width: 145px; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.publication-row time { color: var(--muted); font-size: .88rem; }
.publication-row h2 { margin: 7px 0 10px; font-size: 1.5rem; }
.publication-row p { color: var(--muted); }
.pdf-mark { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 17px; background: var(--red); color: white; font-weight: 900; letter-spacing: .05em; }
.publication-row .pdf-mark { width: 120px; height: 110px; justify-self: center; }
.row-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.pdf-link { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-weight: 700; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { overflow: hidden; display: grid; grid-template-rows: 260px 1fr; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.project-card > img, .project-placeholder { width: 100%; height: 260px; object-fit: cover; }
.project-placeholder { display: grid; place-items: center; background: var(--surface-2); }
.project-placeholder img { opacity: .45; }
.project-card > div:last-child { padding: 28px; }
.project-card p { color: var(--muted); }

.event-list { display: grid; gap: 18px; }
.event-row {
    position: relative;
    padding: 26px;
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-sm);
}
.event-row::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red), #f05a67);
}
.event-date-card {
    min-height: 132px;
    padding: 15px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0c9ce;
    border-radius: 18px;
    background: linear-gradient(155deg, #fff 0%, var(--red-soft) 100%);
    color: var(--ink);
    line-height: 1;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.event-date-weekday {
    margin-bottom: 9px;
    color: var(--red);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .16em;
}
.event-date-day { font-size: 2.65rem; font-weight: 850; letter-spacing: -.06em; }
.event-date-month { margin-top: 5px; font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
.event-date-year { margin-top: 8px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.event-row-content { min-width: 0; }
.event-schedule { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .9rem; font-weight: 620; }
.event-schedule > span { color: var(--red); font-size: 1rem; }
.event-row h2 { margin: 11px 0 10px; font-size: 1.55rem; }
.event-row p { color: var(--muted); }
.event-code { color: var(--muted); }
.event-detail-meta { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.event-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid #f0c9ce;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, var(--red-soft));
}
.event-detail-date-label { color: var(--red); font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.event-detail-date time { display: flex; flex-direction: column; line-height: 1.3; }
.event-detail-date strong { font-size: 1rem; }
.event-detail-date time span { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.event-detail-image { width: 100%; margin-bottom: 34px; border-radius: var(--radius); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.contact-email { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.contact-email span { display: block; color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.contact-email a { color: var(--red); font-size: 1.16rem; font-weight: 760; }
.security-note { margin-top: 22px; padding: 20px; background: var(--surface-2); border-radius: 16px; }
.security-note p { margin: 5px 0 0; color: var(--muted); }
.card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 760; }
.field small { color: var(--muted); font-size: .82rem; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid #cfd3da; border-radius: 11px; background: white; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(213,8,26,.09); outline: 0; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.auth-section { min-height: 670px; padding: 90px 20px; display: grid; place-items: center; background: radial-gradient(circle at 50% 0%, rgba(213,8,26,.1), transparent 38%), var(--surface-2); }
.auth-card { width: min(100%, 520px); padding: 38px; background: white; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-md); }
.auth-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.auth-brand h1 { margin: 0; font-size: 2rem; }
.auth-card > p { color: var(--muted); }
.auth-footnote { margin: 20px 0 0; font-size: .87rem; text-align: center; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dashboard-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.dashboard-number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 50%; background: var(--red); color: white; font-weight: 900; }
.dashboard-card h2 { font-size: 1.35rem; }
.dashboard-card p { color: var(--muted); }
.empty-state, .error-page { padding: 90px 20px; text-align: center; }
.error-page { min-height: 620px; display: grid; place-items: center; }
.error-page img { margin: 0 auto 20px; }

.site-footer { padding: 64px 0 0; background: #0f1115; color: white; }
.footer-grid { display: grid; grid-template-columns: .9fr 1.6fr .55fr; gap: 55px; align-items: start; }
.footer-brand-title { display: flex; align-items: center; gap: 13px; letter-spacing: .06em; }
.footer-brand p { margin-top: 20px; color: rgba(255,255,255,.62); }
.footer-policies h2 { font-size: 1rem; letter-spacing: 0; }
.policy-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 22px; }
.policy-links a { color: rgba(255,255,255,.66); font-size: .83rem; }
.policy-links a:hover { color: white; }
.footer-certification { text-align: center; }
.footer-certification img { margin: 0 auto 15px; }
.footer-certification p { color: rgba(255,255,255,.75); font-size: .82rem; }
.footer-bottom { margin-top: 50px; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: .8rem; }

.cookie-banner { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; width: min(calc(100% - 40px), 920px); margin-inline: auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-md); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.cookie-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.cookie-actions a { color: var(--red); font-size: .88rem; font-weight: 700; }

@media (max-width: 1000px) {
    .hero-grid { min-height: auto; }
    .plans-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .plan-card.featured { transform: none; }
    .cert-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1.7fr; }
    .footer-certification { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 18px; }
    .footer-certification img { margin: 0; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .header-top { min-height: 76px; }
    .brand small { display: none; }
    .header-actions > .button { display: none; }
    .nav-toggle { display: inline-block; }
    .nav-row { border-top: 0; }
    .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 74px; padding: 10px; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); }
    .main-nav.is-open { display: flex; }
    .mobile-nav-action { display: flex !important; }
    .main-nav > a, .nav-logout button { width: 100%; min-height: 43px; padding: 0 12px; justify-content: flex-start; border-radius: 9px; }
    .main-nav > a.is-active { box-shadow: none; background: var(--red-soft); }
    .hero-grid { padding-block: 62px; }
    .section { padding: 70px 0; }
    .certification-hero-grid { grid-template-columns: 1fr; }
    .certification-hero-grid img { justify-self: start; width: 160px; }
    .article-grid, .project-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .policy-links { grid-template-columns: 1fr; }
    .footer-certification { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .split-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .brand img { width: 48px; height: 48px; }
    .brand strong { font-size: .94rem; }
    .home-content-row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
    .home-content-thumb { width: 112px; border-radius: 10px; }
    .home-content-copy h3 { margin-top: 6px; font-size: 1.05rem; }
    .home-content-copy p { font-size: .9rem; }
    .social-share { align-items: flex-start; }
    .social-share-label { width: 100%; }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .event-row { grid-template-columns: 1fr; }
    .event-date-card { width: 100%; min-height: auto; padding: 12px 16px; flex-direction: row; justify-content: flex-start; gap: 9px; text-align: left; }
    .event-date-weekday { margin: 0 4px 0 0; }
    .event-date-day { font-size: 1.7rem; }
    .event-date-month { margin: 0; }
    .event-date-year { margin: 0 0 0 auto; }
    .event-detail-meta { align-items: flex-start; flex-direction: column; }
    .event-detail-date { width: 100%; align-items: flex-start; flex-direction: column; gap: 6px; }
    .cert-card { grid-template-columns: 1fr; text-align: center; }
    .cert-card img { margin-inline: auto; }
    .cert-program { grid-template-columns: 1fr; text-align: center; }
    .publication-row { grid-template-columns: 1fr; }
    .publication-row > img { width: 100%; }
    .article-neighbours { grid-template-columns: 1fr; }
    .article-neighbours > div:last-child { text-align: left; }
    .download-panel { grid-template-columns: 1fr; }
    .cookie-banner { align-items: flex-start; flex-direction: column; }
    .cookie-actions { width: 100%; justify-content: space-between; }
    .auth-card { padding: 28px 22px; }
}

/* Phase 2: membership, account activation and billing */
.membership-checkout-form { display: grid; gap: 12px; margin-top: 24px; }
.consent-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.consent-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.consent-check a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.membership-checkout-form .price-button { width: 100%; border: 0; margin-top: 6px; }
.membership-legal-note { margin-top: 54px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .92rem; }
.auth-links a { color: var(--red-dark); font-weight: 650; }
.wide-auth-card { max-width: 700px; }
.success-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #e9f8ef; color: var(--success); font-weight: 800; font-size: 2rem; margin-bottom: 18px; }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.public-form hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.member-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.member-plan-badge { min-width: 190px; border: 1px solid rgba(213,8,26,.2); background: rgba(255,255,255,.8); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-sm); }
.member-plan-badge span { display: block; color: var(--red); font-weight: 800; letter-spacing: .08em; font-size: .82rem; }
.member-plan-badge strong { display: block; font-size: 1.25rem; margin-top: 2px; }
.member-alert { margin-bottom: 28px; border: 1px solid #f0d08d; background: #fff9e8; border-radius: var(--radius-sm); padding: 18px 22px; }
.member-alert.danger { border-color: #f2b8b5; background: #fff1f0; }
.member-alert p { margin: 4px 0 0; }
.member-dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.mini-details { display: grid; grid-template-columns: minmax(125px, .65fr) 1fr; gap: 9px 18px; margin: 20px 0 24px; }
.mini-details dt { color: var(--muted); }
.mini-details dd { margin: 0; font-weight: 650; }
.form-note { color: var(--muted); font-size: .86rem; margin-top: 12px; }
.price-button:disabled { opacity: .55; filter: grayscale(.25); }
.status-past_due { color: var(--danger); }
.danger-text { color: var(--danger); }
.detail-list { display: grid; grid-template-columns: minmax(145px, .7fr) 1.3fr; gap: 10px 20px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.admin-actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 760px) {
    .member-hero { align-items: flex-start; flex-direction: column; }
    .member-plan-badge { width: 100%; }
    .member-dashboard-grid { grid-template-columns: 1fr; }
    .mini-details, .detail-list { grid-template-columns: 1fr; gap: 3px; }
    .mini-details dd, .detail-list dd { margin-bottom: 10px; }
}
.upgrade-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.upgrade-actions form { flex: 1 1 180px; }
.upgrade-actions .button { width: 100%; }

/* Phase 3: learning management system */
.inline-enroll-form { display: inline-flex; margin: 0; }
.inline-enroll-form .button { width: auto; }
.cta-note { margin: 13px 0 0; font-size: .9rem; }
.light-note { color: rgba(255,255,255,.82); }
.learning-hero { padding-block: 62px; }
.learning-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 54px; align-items: center; }
.learning-hero-grid > div > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.learning-hero-grid img { filter: drop-shadow(0 18px 25px rgba(15,23,42,.14)); }
.learning-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.learning-admin-label, .learning-complete-label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 800; }
.learning-admin-label { background: #fff3d9; color: #805000; }
.learning-complete-label { background: #e7f7ee; color: #0d693b; }
.learning-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 54px; align-items: start; }
.compact-heading { margin-bottom: 24px; }
.learning-program { max-width: 800px; }
.learning-progress-card { position: sticky; top: 120px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.learning-progress-card > strong { display: block; font-size: 2.4rem; line-height: 1; }
.learning-progress-card > span { display: block; margin-top: 7px; color: var(--muted); }
.progress-number { margin: 10px 0 12px; font-size: 2.7rem; font-weight: 900; line-height: 1; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e6e8ec; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.learning-progress-card > p { color: var(--muted); font-size: .9rem; }
.module-list { display: grid; gap: 14px; }
.module-card { padding: 22px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 3px 12px rgba(15,23,42,.035); }
.module-card.is-complete { border-color: #a8d9bf; background: #fbfffc; }
.module-card.is-locked { opacity: .68; background: #f3f4f6; }
.module-index { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red-dark); font-weight: 900; }
.module-card.is-complete .module-index { background: #e7f7ee; color: #0d693b; }
.module-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.module-card h3 { margin: 7px 0 5px; font-size: 1.15rem; }
.module-card p { margin: 0; color: var(--muted); }
.module-card small { display: block; margin-top: 8px; color: var(--muted); }
.compact-empty { padding: 50px 20px; }
.learning-module-hero { padding-block: 44px; }
.learning-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 24px; color: var(--muted); font-size: .86rem; }
.learning-breadcrumb a { color: var(--red-dark); font-weight: 700; }
.hero-module-meta { margin-top: 18px; }
.success-text { color: var(--success) !important; }
.learning-module-content { max-width: 940px; }
.learning-resource { margin: 34px 0; padding: 22px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.resource-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: white; color: var(--red); font-weight: 900; box-shadow: var(--shadow-sm); }
.learning-resource h2 { margin: 0 0 5px; font-size: 1.15rem; }
.learning-resource p { margin: 0; color: var(--muted); }
.learning-video { margin: 34px 0; overflow: hidden; border-radius: 18px; background: #090b0e; box-shadow: var(--shadow-md); }
.learning-video video { width: 100%; max-height: 620px; display: block; }
.transcript-panel { margin: 30px 0; border: 1px solid var(--line); border-radius: 16px; background: white; }
.transcript-panel summary { padding: 18px 22px; cursor: pointer; font-weight: 800; }
.transcript-panel > div { padding: 0 22px 22px; }
.quiz-section { margin-top: 42px; }
.quiz-form { display: grid; gap: 20px; }
.quiz-question { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.quiz-question legend { padding: 0 8px; font-size: 1.05rem; font-weight: 800; }
.quiz-question legend span { width: 30px; height: 30px; display: inline-grid; place-items: center; margin-right: 10px; border-radius: 50%; background: var(--red); color: white; font-size: .85rem; }
.quiz-instruction { margin: 2px 0 14px; color: var(--muted); font-size: .86rem; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options label { padding: 13px 15px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; align-items: start; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.quiz-options label:hover { border-color: #b7bbc3; background: var(--surface-2); }
.quiz-options input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.attempt-history { margin-top: 34px; }
.attempt-history h3 { margin-bottom: 12px; }
.module-completion-panel { margin-top: 40px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #a8d9bf; border-radius: 18px; background: #f4fbf7; }
.module-completion-panel p { margin: 5px 0 0; color: var(--muted); }
.module-neighbours { margin-top: 46px; padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); }
.module-neighbours > div:last-child { text-align: right; }
.module-neighbours span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.module-neighbours a { color: var(--red-dark); font-weight: 800; }
.member-course-grid { align-items: stretch; }
.member-course-card { align-items: start; }
.member-course-content { display: flex; min-height: 100%; flex-direction: column; }
.member-course-content > p { color: var(--muted); }
.member-course-content > .button, .member-course-content > form { margin-top: auto; }
.member-course-content form .button { width: 100%; }
.course-card-progress { margin: 12px 0 18px; }
.course-card-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.course-card-progress strong { font-size: 1.35rem; }
.course-card-progress span { color: var(--muted); font-size: .8rem; }
.course-detail-link { margin-top: 12px; color: var(--red-dark); font-size: .84rem; font-weight: 750; }
.course-access-reason { display: block; margin-top: 9px; color: var(--muted); line-height: 1.4; }

@media (max-width: 900px) {
    .learning-layout { grid-template-columns: 1fr; }
    .learning-progress-card { position: static; }
}
@media (max-width: 760px) {
    .learning-hero-grid { grid-template-columns: 1fr; }
    .learning-hero-grid img { width: 135px; }
    .module-card { grid-template-columns: 42px minmax(0, 1fr); }
    .module-card-action { grid-column: 2; }
    .learning-resource { grid-template-columns: 46px minmax(0, 1fr); }
    .learning-resource .button { grid-column: 1 / -1; }
    .module-completion-panel { align-items: stretch; flex-direction: column; }
}
@media (max-width: 560px) {
    .module-card { padding: 18px; grid-template-columns: 1fr; }
    .module-index { width: 38px; height: 38px; }
    .module-card-action { grid-column: auto; }
    .module-card-action .button { width: 100%; }
    .module-neighbours { grid-template-columns: 1fr; }
    .module-neighbours > div:last-child { text-align: left; }
}

/* Analytics PDF access panels */
.analytics-download-panel + .analytics-download-panel,
.analytics-download-panel + .restricted-panel,
.restricted-panel + .analytics-download-panel { margin-top: 18px; }
.pdf-mark-dark { background: #1d1f25; }
.analytics-report-panel { border-color: rgba(230, 31, 38, .20); }
