:root {
    --green: #0e7a4f;
    --green-dark: #0a5b3a;
    --gold: #d4af37;
    --gold-light: #f3d46b;
    --bg: #f6f9f7;
    --text: #0f1f1a;
}

* {
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--green-dark);
    color: white;
}

.topbar nav a {
    color: white;
    margin-left: 16px;
    text-decoration: none;
    font-weight: 600;
}

.logo {
    font-weight: 700;
    letter-spacing: 2px;
}

.container {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 16px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 22px;
    background: var(--gold);
    color: #1b1b1b;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #e2e7e4;
    color: #1b1b1b;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.btn-danger {
    display: inline-block;
    padding: 10px 20px;
    background: #c0392b;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table th, .table td {
    padding: 12px;
    border-bottom: 1px solid #e2e7e4;
}

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

.messages .message {
    background: var(--gold-light);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.footer {
    text-align: center;
    padding: 24px;
    background: var(--green-dark);
    color: white;
    margin-top: 40px;
}

.landing-body {
    background: #0b1f16;
    color: white;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-image: url("/static/core/img/hero-placeholder.svg");
    background-size: cover;
    background-position: center;
}

.hero-half {
    height: 55vh;
    min-height: 420px;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.hero-overlay h1 {
    font-size: 64px;
    margin-bottom: 12px;
    color: var(--gold);
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 40px;
    background: #0b1f16;
}

.hero-actions.compact {
    padding-top: 24px;
}

.action-card {
    background: var(--green);
    color: white;
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--gold);
}

.race-hub {
    padding: 40px;
    background: #0b1f16;
}

.race-hub h2 {
    color: var(--gold);
    font-size: 32px;
    margin-bottom: 20px;
}

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

.race-card {
    background: #0f2a1f;
    color: white;
    padding: 24px;
    border-radius: 18px;
    text-decoration: none;
    border: 2px solid rgba(212, 175, 55, 0.6);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.race-card--featured {
    min-height: 260px;
}

.race-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.6);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 26px;
    color: var(--gold);
    margin: 14px 0 8px;
}

.race-card__header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.race-cta {
    color: var(--gold);
    font-weight: 700;
    margin-top: 12px;
}

.race-more {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.pager-info {
    color: var(--gold-light);
    font-weight: 700;
}

.microsite-hero {
    position: relative;
    min-height: 70vh;
    background: #0b1f16;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
}

.microsite-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.microsite-hero__media img,
.microsite-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.microsite-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.microsite-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.microsite-section {
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.sponsor-box {
    background: #0f2a1f;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: white;
}
