:root {
    --ink: #1a1a2e;
    --ink-mid: #3a3a5c;
    --ink-light: #7070a0;
    --cream: #f7f5f0;
    --paper: #ffffff;
    --rule: #d8d4cc;
    --gold: #b08c5a;
    --gold-lt: #c9a97a;
    --accent: #2d4a7a;
    --accent-lt: #3d5f99;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    border-bottom: 2px solid var(--gold);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
}

.nav-brand {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    outline-offset: 4px;
}

.nav-brand span {
    color: var(--gold-lt);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #aab0c0;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cream);
    background: rgba(176, 140, 90, 0.18);
}

.nav-links a.active {
    color: var(--gold-lt);
}

/* HERO */
.hero {
    background: var(--ink);
    color: var(--cream);
    padding: 7rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(45, 74, 122, 0.35) 0%, transparent 70%),
        repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(176, 140, 90, 0.04) 80px);
    pointer-events: none;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-lt);
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-lt);
}

.hero-subtitle {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: #8899bb;
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-desc-orig {
    font-size: 1.05rem;
    color: #a0a8bc;
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.65rem 1.6rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}

.btn-gold:hover {
    background: var(--gold-lt);
}

.btn-outline {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--gold-lt);
    color: var(--gold-lt);
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(176, 140, 90, 0.25);
    border-radius: 6px;
    padding: 2rem;
}

.hero-card-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-bottom: 1.25rem;
}

.hero-stat {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hero-stat-val {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cream);
}

.hero-stat-label {
    font-size: 0.88rem;
    color: #7080a0;
    margin-top: 0.15rem;
    line-height: 1.4;
}

/* SECTIONS */
.section {
    padding: 5rem 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.08rem;
    color: var(--ink-mid);
    max-width: 680px;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* CARDS */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 2rem;
    transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.08);
    transform: translateY(-2px);
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(45, 74, 122, 0.08);
    color: var(--accent);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.card p {
    font-size: 0.95rem;
    color: var(--ink-mid);
    line-height: 1.75;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--ink-light);
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
}

/* PUBLICATIONS */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pub-item {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0;
    padding: 1.5rem 2rem;
    transition: box-shadow 0.2s;
}

.pub-item:hover {
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.07);
}

.pub-type {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pub-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.pub-title a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s;
}

.pub-title a:hover {
    border-color: var(--gold);
    color: var(--accent);
}

.pub-authors {
    font-size: 0.92rem;
    color: var(--ink-mid);
    margin-bottom: 0.25rem;
}

.pub-venue {
    font-size: 0.92rem;
    color: var(--ink-light);
    font-style: italic;
}

.pub-status {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.status-press {
    background: rgba(176, 140, 90, 0.12);
    color: #7a5c2a;
}

.status-submitted {
    background: rgba(45, 74, 122, 0.1);
    color: var(--accent);
}

.status-published {
    background: rgba(45, 122, 74, 0.1);
    color: #2a6e40;
}

.pub-year-header {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink-light);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
}

/* STANDARDS */
.std-item {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.std-badge {
    background: var(--ink);
    color: var(--gold-lt);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 3px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
}

.std-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.std-desc {
    font-size: 1rem;
    color: var(--ink-mid);
    line-height: 1.7;
}

.std-role {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(45, 74, 122, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-top: 0.6rem;
    margin-right: 0.4rem;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info p {
    font-size: 1rem;
    color: var(--ink-mid);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(45, 74, 122, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.contact-detail-text {
    font-size: 0.95rem;
    color: var(--ink-mid);
}

.contact-detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-light);
    display: block;
    margin-bottom: 0.15rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mid);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--paper);
    transition: border-color 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 3px;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--accent-lt);
}

.affil-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.affil-badge {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    color: var(--ink-mid);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.affil-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.alert-success {
    background: rgba(45, 122, 74, 0.1);
    border: 1px solid rgba(45, 122, 74, 0.3);
    color: #2a6e40;
    border-radius: 4px;
    padding: 0.9rem 1.25rem;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    display: none;
}

/* STATS STRIP */
.stats-strip {
    background: var(--ink);
    border-bottom: 2px solid var(--gold);
}

.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.stat-val {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--gold-lt);
    line-height: 1;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-plus {
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8899bb;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(176, 140, 90, 0.25);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: 45%;
        padding: 1.1rem 0.5rem;
    }

    .stats-inner {
        gap: 0;
        row-gap: 0;
    }
}

.edu-item {
    display: block;
    font-size: 0.92rem;
    color: var(--ink-mid);
    margin-top: 0.5rem;
    font-weight: 500;
}

.edu-inst {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-light);
    font-style: italic;
    margin-bottom: 0.1rem;
}

/* HIGHLIGHT */
.highlight-box {
    background: linear-gradient(135deg, rgba(45, 74, 122, 0.06), rgba(176, 140, 90, 0.06));
    border: 1px solid rgba(176, 140, 90, 0.25);
    border-radius: 6px;
    padding: 1.75rem 2.5rem;
    margin-bottom: 3rem;
}

.highlight-box p {
    font-size: 1rem;
    color: var(--ink-mid);
    line-height: 1.8;
}

.highlight-box p+p {
    margin-top: 1rem;
}

/* FOOTER */
footer {
    background: var(--ink);
    color: #6070a0;
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    border-top: 1px solid rgba(176, 140, 90, 0.2);
}

footer a {
    color: var(--gold-lt);
    text-decoration: none;
}

/* HAMBURGER / MOBILE NAV */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    outline-offset: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .bar1 {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar2 {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* TRAINING TABLE */
.training-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: var(--paper);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.training-table thead {
    background: var(--ink);
    color: var(--cream);
}

.training-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--gold-lt);
    white-space: nowrap;
}

.training-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: middle;
    color: var(--ink-mid);
}

.training-table td strong {
    color: var(--ink);
    font-weight: 500;
}

.training-table tbody tr:last-child td {
    border-bottom: none;
}

.training-table tbody tr:hover {
    background: #f0ede7;
}

.session-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-planning {
    background: #e8f0fb;
    color: var(--accent);
}

.badge-planned {
    background: #fdf3e3;
    color: #8a5c1a;
}

.badge-open {
    background: #e8f5ec;
    color: #2a6e3f;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--accent);
    font-size: inherit;
    text-decoration: underline;
    font-family: inherit;
}

.btn-link:hover {
    color: var(--accent-lt);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .std-item {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--ink);
        border-top: 1px solid rgba(176, 140, 90, 0.25);
        border-bottom: 2px solid var(--gold);
        flex-direction: column;
        gap: 0;
        z-index: 99;
        padding: 0.5rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 0;
        border-left: 3px solid transparent;
    }

    .nav-links a.active {
        border-left-color: var(--gold);
        background: rgba(176, 140, 90, 0.1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active .hero-inner,
.page.active .section-inner {
    animation: fadeUp 0.5s ease both;
}

.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;
}

/* ACCESSIBILITY */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--gold);
    color: var(--ink);
    padding: 0.6rem 1.2rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

/* RESOURCE CARDS */
.resource-card {
    display: flex;
    flex-direction: column;
}

.resource-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    gap: 0.5rem;
}

.resource-card-header .card-tag {
    margin-bottom: 0;
}

.resource-badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.resource-badge--free {
    background: rgba(45, 122, 74, 0.12);
    color: #2a6e40;
    border: 1px solid rgba(45, 122, 74, 0.25);
}

.resource-badge--paid {
    background: rgba(176, 140, 90, 0.15);
    color: #7a5e2a;
    border: 1px solid rgba(176, 140, 90, 0.35);
}

.resource-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--ink-light);
    letter-spacing: 0.03em;
}

.resource-meta span::before {
    content: '·';
    margin-right: 0.75rem;
}

.resource-meta span:first-child::before {
    content: none;
}

.resource-btn {
    margin-top: 1.25rem;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
}

.resource-card--soon {
    border-style: dashed;
    background: transparent;
}

/* ALERT BAR */
#alert-bar {
    background: var(--gold);
    overflow: hidden;
    max-height: 56px;
    transition: max-height 0.35s ease;
}

#alert-bar.alert-bar--hidden {
    max-height: 0;
}

.alert-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.alert-bar-msg {
    font-size: 0.875rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    line-height: 1.3;
}

.alert-bar-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--gold-lt);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
}

.alert-bar-msg a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.alert-bar-msg a:hover {
    opacity: 0.75;
}

.alert-bar-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    opacity: 0.65;
    border-radius: 3px;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.alert-bar-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .alert-bar-inner {
        padding: 0.5rem 1rem;
        height: auto;
        min-height: 42px;
        flex-wrap: wrap;
    }

    #alert-bar {
        max-height: 120px;
    }

    .alert-bar-msg a {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        background: var(--ink);
        color: var(--gold-lt);
        padding: 0.3rem 0.65rem;
        border-radius: 20px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }

    .alert-bar-msg a:hover {
        opacity: 0.85;
    }

    .alert-bar-arrow {
        font-style: normal;
    }
}

/* ── Utility modifiers ────────────────────────────── */

.text-gold { color: var(--gold-lt); }

.hero--page { padding: 5rem 2rem 4rem; }

.section--paper { background: var(--paper); }

.section--dark {
    background: var(--ink);
    color: var(--cream);
}

.section--pt { padding-top: 4rem; }

.section-inner--centered {
    text-align: center;
    max-width: 680px;
}

.section-inner--narrow { max-width: 680px; }

.section-label--centered { justify-content: center; }

.section-label--sub {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.section-title--light { color: var(--cream); }

.cta-body {
    font-size: 1.05rem;
    color: #a0a8bc;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.btn-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.card--compact { padding: 1.25rem 1.5rem; }

.section-block { margin-top: 4rem; }

.std-sub-group {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--rule);
}

.std-title--sm { font-size: 1rem; }

.svg-block {
    width: 100%;
    height: auto;
    display: block;
}

.form-note {
    font-size: 0.82rem;
    color: var(--ink-light);
    margin-top: 0.75rem;
}

.form-note a { color: var(--ink-light); }

.alert-error {
    background: rgba(180, 40, 40, 0.08);
    border-color: rgba(180, 40, 40, 0.25);
    color: #8a2020;
}

.alert-error a { color: inherit; }

/* ── Semantic element rules ───────────────────────── */

.section-lead a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
}

.section-lead a:hover { border-color: var(--accent); }

.contact-detail-text a {
    color: var(--accent);
    text-decoration: none;
}

.contact-detail-text a:hover { text-decoration: underline; }

footer p + p { margin-top: 0.4rem; }

.resource-card--soon .card-tag { opacity: 0.5; }

.resource-card--soon h3,
.resource-card--soon p { color: var(--ink-light); }

.resource-card--soon .resource-meta { opacity: 0; }

.module-list {
    list-style: none;
    margin-top: 0.5rem;
}

.module-list li {
    font-size: 0.95rem;
    color: var(--ink-mid);
    line-height: 1.75;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--rule);
}

.module-list li:last-child {
    border-bottom: none;
}

.module-list li::before {
    content: '→';
    color: var(--gold);
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

/* Visible focus rings for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.form-control:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}

/* Fix low-contrast text colours for WCAG AA */
.hero-desc {
    font-size: 1.05rem;
    color: #c8cfe0;
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-stat-label {
    font-size: 0.88rem;
    color: #9098b8;
    margin-top: 0.15rem;
    line-height: 1.4;
}

.hero-subtitle {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: #9aabcc;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}