:root {
    --ink: #062b4e;
    --blue: #0067b1;
    --red: #e32229;
    --paper: #f4f6f7;
    --white: #ffffff;
    --line: #d1d9de;
    --muted: #587080;
}

* { box-sizing: border-box; }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Barlow', sans-serif; }

.event-header { background: var(--ink); border-top: 5px solid var(--red); color: var(--white); }

.header-inner { align-items: center; display: grid; gap: 24px; grid-template-columns: 110px 1fr auto; margin: 0 auto; max-width: 1180px; min-height: 190px; padding: 28px 32px; }

.f45-logo { background: var(--white); display: grid; height: 104px; overflow: hidden; place-items: center; width: 104px; }
.f45-logo img { height: 100%; object-fit: cover; width: 100%; }

.eyebrow, .section-kicker, .day-heading p { font-size: .78rem; font-weight: 700; letter-spacing: .12em; margin: 0; text-transform: uppercase; }
.eyebrow { color: #8ac8ec; }
.event-title h1 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; letter-spacing: .02em; line-height: .82; margin: 8px 0 16px; text-transform: uppercase; }
.event-title h1 span { color: var(--red); }
.event-detail { color: #dbe6ec; font-size: 1rem; font-weight: 600; margin: 0; }
.event-detail i { background: var(--red); display: inline-block; height: 5px; margin: 0 10px 2px; transform: rotate(45deg); width: 5px; }
.hyrox-mark { background: var(--white); color: var(--ink); font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; padding: 8px 11px; }

.page-shell { margin: 0 auto; max-width: 1180px; padding: 54px 32px 68px; }
.intro { align-items: end; border-bottom: 3px solid var(--ink); display: flex; justify-content: space-between; padding-bottom: 24px; }
.section-kicker { color: var(--red); }
.intro h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 3.1rem; line-height: .9; margin: 6px 0 0; text-transform: uppercase; }
.intro > p { color: var(--muted); font-size: 1rem; line-height: 1.45; margin: 0; max-width: 340px; }

.schedule-grid { display: grid; gap: 46px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 38px; }
.day-section { min-width: 0; }
.day-heading { border-left: 7px solid var(--red); padding: 1px 0 2px 13px; }
.day-heading p { color: var(--blue); }
.day-heading h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 2.25rem; line-height: .92; margin: 3px 0 0; text-transform: uppercase; }
.division-group { margin-top: 24px; }
.division-heading { align-items: baseline; background: var(--ink); color: var(--white); display: flex; gap: 12px; justify-content: space-between; padding: 10px 12px; }
.division-heading h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; letter-spacing: .03em; line-height: 1; margin: 0; text-transform: uppercase; }
.division-heading p { color: #a8d9f5; font-size: .72rem; font-weight: 700; letter-spacing: .04em; margin: 0; text-align: right; white-space: nowrap; }
.race-list { list-style: none; margin: 0; padding: 0; }
.race-entry { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: 108px minmax(0, 1fr) auto; min-height: 88px; padding: 13px 0; }
.time-block { border-right: 1px solid var(--line); padding-right: 12px; }
.time-block time { color: var(--ink); display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 1.36rem; font-weight: 700; line-height: 1; }
.time-block span { color: var(--muted); display: block; font-size: .65rem; font-weight: 700; letter-spacing: .065em; margin-top: 5px; text-transform: uppercase; }
.competitor-block h5 { font-size: 1.12rem; line-height: 1.12; margin: 0; }
.result-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: end; }
.result-button { border: 0; color: var(--white); cursor: pointer; font-family: inherit; font-size: .64rem; font-weight: 700; padding: 7px 8px; text-decoration: none; text-transform: uppercase; }
.hyrox-result { background: var(--red); }
.roxfit-result { background: var(--blue); }
.result-button:disabled { background: #aebcc5; color: #f6f8f9; cursor: not-allowed; }
.tbd-section { grid-column: 1 / -1; max-width: calc(50% - 16px); }
.tbd-section .day-heading { border-color: var(--blue); }

footer { background: var(--red); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .08em; padding: 16px 32px; text-align: center; text-transform: uppercase; }
footer span { background: var(--white); display: inline-block; height: 4px; margin: 0 10px 2px; transform: rotate(45deg); width: 4px; }

@media (max-width: 720px) {
    .header-inner { gap: 17px; grid-template-columns: 66px 1fr; min-height: 0; padding: 23px 20px 25px; }
    .f45-logo { height: 66px; width: 66px; }
    .hyrox-mark { display: none; }
    .event-title h1 { font-size: clamp(2.4rem, 15vw, 4.1rem); margin-bottom: 12px; }
    .event-detail { font-size: .84rem; }
    .event-detail i { margin: 0 5px 2px; }
    .page-shell { padding: 34px 20px 48px; }
    .intro { align-items: start; flex-direction: column; gap: 16px; padding-bottom: 20px; }
    .intro h2 { font-size: 2.6rem; }
    .intro > p { font-size: .9rem; }
    .schedule-grid { display: block; margin-top: 30px; }
    .day-section { margin-top: 38px; }
    .day-section:first-child { margin-top: 0; }
    .division-heading { align-items: start; flex-direction: column; gap: 4px; }
    .division-heading p { text-align: left; }
    .race-entry { gap: 12px; grid-template-columns: 90px minmax(0, 1fr); min-height: 80px; }
    .competitor-block h5 { font-size: 1rem; }
    .time-block time { font-size: 1.2rem; }
    .result-links { grid-column: 2; justify-content: start; }
    .tbd-section { max-width: none; }
    footer { font-size: .65rem; padding: 15px 20px; }
}