:root {
  color-scheme: dark;
  --page: #131517;
  --header: #151719;
  --panel: #1b1d20;
  --panel-soft: #202225;
  --line: #303237;
  --ink: #f4f5f1;
  --muted: #a6a8ad;
  --subtle: #85888f;
  --accent: #d2fb53;
  --accent-ink: #1c2603;
  --heading: "Barlow Condensed", "Arial Narrow", "Impact", sans-serif;
  --body: Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; background: var(--page); color: var(--ink); font: 400 14px/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: var(--accent-ink); background: var(--accent); }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 96px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 12px; padding: 10px 16px; z-index: 20; background: var(--accent); color: var(--accent-ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--header); border-bottom: 1px solid #292b2e; }
.header-inner { height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { justify-self: start; display: inline-flex; gap: 11px; align-items: center; font: italic 800 35px/.8 var(--heading); letter-spacing: -.028em; white-space: nowrap; }
.brand-accent { color: var(--accent); margin-left: 3px; }
.brand-symbol { width: 27px; display: grid; justify-items: end; gap: 3px; transform: skewX(-22deg); }
.brand-symbol i { display: block; width: 25px; height: 4px; background: var(--accent); }
.brand-symbol i:nth-child(2) { width: 19px; margin-right: 6px; }
.brand-symbol i:nth-child(3) { width: 13px; margin-right: 12px; }
.main-nav { display: flex; gap: 34px; align-self: stretch; }
.main-nav a { display: grid; place-items: center; position: relative; color: var(--muted); font-size: 13px; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current=page] { color: var(--ink); }
.main-nav a[aria-current=page]::after { content: ""; position: absolute; background: var(--accent); height: 2px; left: 0; right: 0; bottom: -1px; }
.timezone { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; font-size: 11px; font-weight: 600; }
.timezone-offset { padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; font-variant-numeric: tabular-nums; }
.arg-flag { width: 18px; height: 12px; border-radius: 2px; position: relative; background: linear-gradient(#75baf1 33%, #fff 33% 67%, #75baf1 67%); }
.arg-flag::after { position: absolute; content: ""; width: 3px; height: 3px; border-radius: 50%; left: 7.5px; top: 4.5px; background: #e8a229; }
.flag { display: inline-grid; place-items: center; flex: 0 0 auto; width: 22px; height: 15px; position: relative; overflow: hidden; border-radius: 2px; background: #31343a; color: #f4f5f1; font-size: 8px; font-weight: 800; line-height: 1; }
.flag-us, .flag-br, .flag-qa, .flag-ae { color: transparent; }
.flag-us { background: repeating-linear-gradient(#bd303d 0 1.2px, #faf7f2 1.2px 2.4px); }
.flag-us::before { position: absolute; content: "···"; padding-top: 1px; color: #fff; font-size: 8px; letter-spacing: 0; width: 10px; height: 8px; inset: 0 auto auto 0; background: #243862; }
.flag-br { background: #22834b; }
.flag-br::before { position: absolute; content: ""; inset: 2px 3px; background: #f3d545; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.flag-br::after { position: absolute; content: ""; inset: 4px 8px; border-radius: 50%; background: linear-gradient(25deg, #304287 45%, #fff 46% 57%, #304287 58%); }
.flag-qa { background: #833250; }
.flag-qa::before { position: absolute; content: ""; inset: 0 auto 0 0; width: 8px; background: #fff; clip-path: polygon(0 0, 60% 0, 100% 10%, 60% 20%, 100% 30%, 60% 40%, 100% 50%, 60% 60%, 100% 70%, 60% 80%, 100% 90%, 60% 100%, 0 100%); }
.flag-ae { background: linear-gradient(90deg, #db3a3d 29%, transparent 29%), linear-gradient(#208d4b 33%, #fff 33% 67%, #141414 67%); }
#main { padding-top: 30px; min-height: 65vh; }
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); min-height: 346px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(140deg, #222629, #151719 73%); }
.hero-content { align-self: center; min-width: 0; padding: 34px clamp(20px, 3.8vw, 42px); }
.hero-visual { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-width: 0; margin: 0; border-left: 1px solid var(--line); background: #101214; }
.hero-photo-frame { position: relative; min-width: 0; min-height: 0; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-visual figcaption { padding: 7px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }
.hero-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 4px; color: var(--accent); background: #d2fb531b; border: 1px solid #d2fb534d; text-transform: uppercase; letter-spacing: .10em; font-size: 10px; font-weight: 800; }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.round-label { color: #e0dcdf; font-size: 11px; letter-spacing: .10em; font-weight: 700; text-transform: uppercase; }
.hero h1 { margin: 12px 0 13px; max-width: 7em; font: italic 800 clamp(44px, 6.1vw, 88px)/.89 var(--heading); letter-spacing: -.013em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.hero-info { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; color: #dfdee0; font-size: 12px; font-weight: 600; }
.hero-info .middot { opacity: .7; }
.primary-button, .secondary-button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: 10px; min-height: 39px; padding: 8px 13px; border-radius: 5px; font-size: 12px; font-weight: 750; }
.primary-button { margin-top: 21px; border: 1px solid var(--accent); color: var(--accent-ink); background: var(--accent); }
.primary-button:hover { background: #e2ff8d; border-color: #e2ff8d; }
.secondary-button { background: var(--panel-soft); border: 1px solid var(--line); }
.secondary-button:hover { border-color: var(--subtle); }
.icon { width: 15px; height: 15px; flex: 0 0 15px; }
.hero-circuit { margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.dashboard { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.dashboard-column { display: grid; gap: 25px; min-width: 0; }
.section-title { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.section-title h2 { font: 700 30px/.95 var(--heading); letter-spacing: .01em; text-transform: uppercase; }
.section-title h2::before { content: ""; display: inline-block; background: var(--accent); width: 4px; height: .63em; margin-right: 8px; border-radius: 1px; vertical-align: .05em; transform: skewX(-10deg); }
.section-meta, .table-footer a, .text-link { color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.table-footer a:hover, .text-link:hover { color: var(--accent); }
.panel { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); overflow: hidden; }
.weekend-nav { padding: 10px 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); background: var(--panel-soft); }
.weekend-nav label { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; min-width: 0; }
.weekend-nav select { border: 0; border-radius: 4px; background: transparent; max-width: calc(100% - 34px); padding: 4px; cursor: pointer; font-size: 13px; font-weight: 750; }
.weekend-nav option { background: var(--panel); }
.arrow-button { border: 1px solid #373a3e; border-radius: 5px; display: grid; place-items: center; padding: 0; height: 31px; background: #26282b; }
.arrow-button:not(:disabled):hover { color: var(--accent); border-color: var(--accent); }
.race-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.race-summary strong { display: block; font-size: 13px; }
.race-summary small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.pill { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 4px 7px; border-radius: 4px; background: #2b2d31; color: #c4c6ca; font-size: 9px; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; font-weight: 800; white-space: nowrap; }
.pill.next { background: #d2fb531a; color: var(--accent); }
.pill.cancelled { background: #f0776a22; color: #ffada5; }
.session-list { list-style: none; padding: 0; margin: 0; }
.session-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 54px; align-items: center; gap: 10px; padding: 11px 15px; min-height: 48px; border-bottom: 1px solid var(--line); }
.session-row:last-child { border-bottom: 0; }
.session-row.race-session { background: #25291d; }
.session-code { width: 29px; height: 23px; display: grid; place-items: center; border: 1px solid #42454a; border-radius: 4px; color: var(--muted); font-size: 9px; font-weight: 800; line-height: 1; }
.race-session .session-code { color: var(--accent); background: #d2fb5310; border-color: #d2fb5340; }
.session-name { font-size: 12px; font-weight: 650; }
.session-date { color: var(--muted); font-size: 11px; text-align: right; }
.session-time { text-align: right; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.race-session .session-time { color: var(--accent); }
.session-footer, .table-footer { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 8px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.session-footer button { background: transparent; border: 0; padding: 2px; color: var(--accent); font-size: 11px; font-weight: 750; }
.session-footer button:hover { text-decoration: underline; }
.tabs { display: flex; gap: 4px; padding: 7px; border-bottom: 1px solid var(--line); background: #181a1c; }
.tabs button { flex: 1; padding: 6px 10px; min-height: 32px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 700; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed=true] { background: #282c20; color: var(--accent); border-color: #434a32; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.data-table th { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.data-table thead { background: #202225; }
.data-table th, .data-table td { padding: 10px 13px; border-bottom: 1px solid var(--line); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { height: 45px; }
.data-table .rank { width: 40px; text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.data-table tbody tr:first-child .rank { color: var(--accent); }
.data-table .numeric { text-align: right; white-space: nowrap; }
.data-table .points { color: var(--ink); font-size: 13px; font-weight: 800; }
.data-table .team-cell { color: var(--muted); }
.data-table .driver-cell { min-width: 148px; font-weight: 700; font-size: 12px; }
.driver-cell small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }
.driver-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.driver-number { padding: 1px 4px; border: 1px solid #42454a; border-radius: 3px; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.argentine-row { background: #22292b; }
.result-table .tyre-cell { width: 44%; min-width: 176px; }
.tyre-steps, .tyre-legend { display: flex; flex-wrap: wrap; align-items: center; }
.tyre-steps { gap: 4px 6px; }
.tyre-step, .tyre-key { display: inline-flex; align-items: center; gap: 4px; }
.tyre-step { white-space: nowrap; padding: 2px 4px 2px 6px; border: 1px solid #393d42; border-radius: 4px; color: var(--muted); font-size: 10px; font-weight: 650; }
.tyre-badge { display: inline-grid; width: 17px; height: 17px; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--muted); font-size: 9px; line-height: 1; font-weight: 800; }
.tyre-soft { color: #ff9a98; }
.tyre-medium { color: #f5d474; }
.tyre-hard { color: #f0f1f0; }
.tyre-intermediate { color: #82e6a1; }
.tyre-wet { color: #8ec2ff; }
.tyre-note { color: var(--muted); font-size: 11px; }
.tyre-legend { gap: 5px 12px; padding: 8px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.team-stripe { display: inline-block; height: 12px; width: 3px; border-radius: 2px; margin-right: 7px; background: var(--team-color, #85888f); vertical-align: -1px; }
.table-footer { justify-content: flex-end; }
.table-footer a, .text-link { display: inline-flex; align-items: center; gap: 6px; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: var(--panel-soft); }
.panel-heading strong { font-size: 13px; }
.panel-heading small { margin-left: auto; color: var(--muted); font-size: 11px; }
.race-list { list-style: none; padding: 0; margin: 0; }
.race-list li + li { border-top: 1px solid var(--line); }
.race-link { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 15px; align-items: center; gap: 11px; padding: 12px 14px; min-height: 56px; }
.race-link:hover { background: #25272a; }
.race-link strong { display: block; font-size: 12px; }
.race-link small { display: block; font-size: 10px; color: var(--muted); }
.race-link .round-cell { color: var(--subtle); font-size: 10px; font-weight: 750; }
.race-link .calendar-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.race-link .icon { color: var(--subtle); }
.race-list .calendar-row { grid-template-columns: 26px minmax(0, 1.6fr) minmax(85px, .8fr) minmax(88px, .6fr) 15px; }
.calendar-row .calendar-date { color: var(--muted); font-size: 11px; }
.calendar-row .pill { justify-self: start; }
.page-title { margin: 3px 0 21px; }
.page-title h1 { font: italic 800 clamp(43px, 6vw, 70px)/.95 var(--heading); text-transform: uppercase; }
.page-title p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.view-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.detail-page { max-width: 940px; }
.detail-page .data-table th, .detail-page .data-table td { padding-inline: 17px; }
.detail-page .tabs { max-width: none; }
.empty-state { color: var(--muted); padding: 17px; font-size: 13px; }
.home-news { margin-top: 28px; }
.advertising-space { width: 100%; max-width: 970px; min-width: 0; margin: 24px auto; }
.advertising-label { display: block; margin-bottom: 6px; color: var(--subtle); font-size: 10px; line-height: 1.4; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.advertising-placeholder { display: grid; min-height: 90px; padding: 16px; place-items: center; border: 1px dashed var(--line); border-radius: 6px; background: #17191b; color: var(--subtle); text-align: center; font-size: 12px; }
@media (max-width: 760px) {
  .advertising-space { margin-block: 20px; }
  .advertising-placeholder { min-height: 100px; }
}
.news-tabs { justify-content: flex-start; }
.news-tabs button { flex: 0 1 140px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-compact .news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card + .news-card { border-top: 1px solid var(--line); }
.news-compact .news-card + .news-card { border-top: 0; border-left: 1px solid var(--line); }
.news-card a { display: flex; height: 100%; align-items: center; gap: 12px; padding: 13px 15px; border-left: 3px solid transparent; }
.news-card a:hover { background: var(--panel-soft); }
.news-card a:focus-visible { outline-offset: -3px; }
.news-card a > .icon { margin-left: auto; color: var(--subtle); }
.news-card a:hover > .icon { color: var(--accent); }
.news-featured a { border-left-color: var(--accent); background: #25291d; }
.news-featured a:hover { background: #2b3020; }
.news-card-body { min-width: 0; }
.news-title { display: block; font-size: 14px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.news-meta time, .news-status time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-meta .arg-flag { width: 13px; height: 9px; }
.news-meta .arg-flag::after { width: 2px; height: 2px; left: 5.5px; top: 3.5px; }
.news-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 40px; padding: 8px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.news-retry { margin-left: auto; padding: 2px; color: var(--accent); background: transparent; border: 0; font-weight: 750; }
.news-retry:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); margin-top: 31px; padding: 15px 0 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 18px; color: var(--muted); font-size: 10px; }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.privacy-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 24px; }
.privacy-page { max-width: 850px; overflow-wrap: anywhere; }
.privacy-page .page-title h1 { font-family: var(--body); font-size: clamp(30px, 5vw, 48px); font-style: normal; line-height: 1.15; text-transform: none; }
.privacy-intro { color: var(--muted); font-size: 16px; }
.privacy-index { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 20px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.privacy-page section { padding-block: 18px; scroll-margin-top: 18px; }
.privacy-page h2 { margin-bottom: 12px; font-size: 21px; line-height: 1.3; }
.privacy-page p + p { margin-top: 12px; }
.privacy-page ul { margin-block: 14px 0; padding-left: 22px; }
.privacy-page li + li { margin-top: 14px; }
.privacy-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1500px) {
  .hero { min-height: 372px; }
}
@media (max-width: 980px) {
  .shell { width: calc(100% - 52px); }
  .main-nav { gap: 23px; }
  .dashboard, .view-grid { gap: 17px; }
}
@media (max-width: 760px) {
  .header-inner { height: auto; grid-template-columns: 1fr auto; column-gap: 15px; row-gap: 0; padding-top: 17px; }
  .brand { font-size: 30px; }
  .timezone { grid-column: 2; grid-row: 1; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; margin-top: 8px; justify-content: space-between; gap: 9px; min-height: 44px; }
  .main-nav a { font-size: 12px; }
  .dashboard, .view-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-column { gap: 19px; }
  .view-grid .detail { grid-row: 1; }
  .hero { min-height: 310px; }
  .news-compact .news-list { grid-template-columns: minmax(0, 1fr); }
  .news-compact .news-card + .news-card { border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-content { padding: 22px 20px; }
  .hero-visual { border-top: 1px solid var(--line); border-left: 0; }
  .hero-photo-frame { height: clamp(180px, 62vw, 285px); }
}
@media (max-width: 450px) {
  .shell { width: calc(100% - 28px); }
  .main-nav { gap: 5px; }
  .main-nav a { font-size: 11px; }
  #main { padding-top: 15px; }
  .hero { border-radius: 8px; }
  .hero-content { padding-inline: 18px; }
  .hero h1 { font-size: clamp(46px, 11vw, 58px); }
  .hero-info { font-size: 11px; }
  .dashboard { margin-top: 19px; }
  .home-news { margin-top: 20px; }
  .section-title h2 { font-size: 26px; }
  .section-meta { font-size: 10px; }
  .session-row { gap: 7px; padding-inline: 10px; grid-template-columns: 26px minmax(0, 1fr) auto 39px; }
  .session-code { width: 25px; }
  .race-list .calendar-row { grid-template-columns: 22px minmax(0, 1fr) auto 15px; gap: 6px; }
  .calendar-row .calendar-date { display: none; }
  .detail-page .data-table th, .detail-page .data-table td { padding-inline: 8px; }
}
