:root {
    color-scheme: light;
    --bg: #eef6ff;
    --surface: #ffffff;
    --ink: #102033;
    --muted: #59708a;
    --line: #c9d9eb;
    --primary: #1d4ed8;
    --primary-dark: #123a8c;
    --accent: #0ea5e9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 18px clamp(20px, 5vw, 72px);
    position: sticky;
    top: 0;
    z-index: 2;
}

.brand {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
    text-decoration: none;
}

.brand img {
    display: block;
    height: 62px;
    object-fit: contain;
    width: auto;
}

.main-nav {
    align-items: center;
    display: flex;
    gap: 18px;
}

.main-nav a,
.logout-form button {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: none;
}

.logout-form {
    margin: 0;
}

.auth-page {
    align-items: center;
    display: grid;
    min-height: calc(100vh - 78px);
    padding: 40px clamp(20px, 5vw, 72px);
}

.auth-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 430px;
    padding: 28px;
    width: 100%;
}

.auth-panel h1 {
    font-size: 2rem;
    line-height: 1.1;
}

.auth-panel label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-panel input {
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    margin-bottom: 16px;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.form-error {
    background: #eef6ff;
    border: 1px solid #9cc8f2;
    border-radius: 8px;
    color: #123a8c;
    margin-bottom: 16px;
    padding: 10px 12px;
}

.hero {
    align-items: center;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 58%, #ffffff 100%);
    display: grid;
    min-height: 430px;
    padding: 60px clamp(20px, 5vw, 72px);
}

.hero > div,
.page-title {
    max-width: 880px;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    line-height: 1.02;
    margin-bottom: 18px;
}

.hero p,
.page-title p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 680px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    align-items: center;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary-dark);
    display: inline-flex;
    font-weight: 800;
    min-height: 42px;
    padding: 10px 16px;
    text-decoration: none;
}

.button.primary {
    background: var(--primary);
    color: #ffffff;
}

.button.small {
    font-size: 0.92rem;
    min-height: 36px;
    padding: 8px 12px;
}

.section,
.page-title,
.video-player-wrap {
    padding: 52px clamp(20px, 5vw, 72px);
}

.section.alt {
    background: #e0f2fe;
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-heading a {
    color: var(--primary-dark);
    font-weight: 800;
}

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.resource-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.card h2,
.card h3,
.resource-row h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card p,
.resource-row p,
.empty {
    color: var(--muted);
}

.video-card img {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    display: block;
    margin-bottom: 14px;
    object-fit: cover;
    width: 100%;
}

.video-player {
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    display: block;
    max-height: 76vh;
    object-fit: contain;
    width: 100%;
}

.resource-list {
    display: grid;
    gap: 14px;
}

.resource-row {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.pill {
    background: #dbeafe;
    border-radius: 999px;
    color: #123a8c;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 8px;
    padding: 4px 10px;
}

@media (max-width: 640px) {
    .site-header,
    .resource-row,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .resource-row .button {
        justify-content: center;
        width: 100%;
    }
}
