/* DRS site layout — page-level layout only (bands, grids, panels), taken from drs-design-system/examples/homepage.html.
   All colours, fonts, spacing and component styles come from tokens.css + drs-components.css. */
/* Sticky footer: on short pages the footer stays at the bottom of the viewport. */
body { padding: 0; min-height: 100vh; display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }
.drs-skip { position: absolute; left: -9999px; top: var(--space-4); z-index: 100; }
.drs-skip:focus { left: var(--space-4); background: var(--bg); padding: var(--space-2) var(--space-4); }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.band { padding-top: var(--space-24); }
/* Breathing room between the last content band and the footer. */
#main > .band:last-child, #main > section.band:last-of-type { padding-bottom: var(--space-24); }

/* Hero */
.hero-band { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); padding-bottom: var(--space-16); }
.hero-band .tracks { position: absolute; right: -180px; bottom: -60px; width: 820px; transform: rotate(-16deg); opacity: .9; pointer-events: none; }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 6fr 6fr; gap: var(--space-12); align-items: center; padding-top: var(--space-16); }
.hero h1 { margin: 0 0 var(--space-6); font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: .9; text-transform: uppercase; }
.hero h1 .drs-grad-text { display: block; font-style: italic; }
.hero .lead { margin: 0 0 var(--space-8); font-size: 22px; line-height: 30px; font-weight: 600; color: var(--ink-muted); max-width: 30ch; }
.hero .ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .drs-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.hero-media .drs-lower { position: absolute; left: -24px; bottom: 28px; }
.hero-media .drs-sticker { position: absolute; right: -10px; top: -14px; z-index: 1; }
.pillars { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--space-12); margin-top: var(--space-12); flex-wrap: wrap; }
.pillar { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.pillar .drs-icon { color: var(--brand); }
.pillars .drs-flags { margin-left: auto; }

/* Grids & panels */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6); }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: 1 / -1; }
.panel { background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-6); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap; }
.panel-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 30px; text-transform: uppercase; }
.panel-foot { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.panel-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.drs-tab { display: inline-flex; align-items: center; text-decoration: none; }
.drs-tabs { flex-wrap: wrap; }
.drs-podium__name { text-decoration: none; }
a.drs-driver__name { text-decoration: none; }
a.drs-driver__name:hover, a.drs-podium__name:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Community band */
.meme { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-6); align-items: center; }
.meme-media { position: relative; }
.meme-media .drs-sticker { position: absolute; left: -8px; bottom: 12px; }
.meme q { display: block; margin-bottom: var(--space-4); font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 36px; line-height: 1; text-transform: uppercase; }
.soft { background: var(--surface); padding-bottom: var(--space-24); margin-top: var(--space-24); }
.slogan { margin: 0 0 var(--space-8); padding-top: var(--space-24); font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: .9; text-transform: uppercase; }
.slogan .drs-grad-text { font-style: italic; }
.community { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); height: 100%; }
.community h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; }
.community p { margin: 0; color: var(--ink-muted); }
.fame { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.fame li { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.fame__season { display: block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.fame__name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; text-transform: uppercase; text-decoration: none; }
.fame__pts { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 18px; color: var(--brand-text); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .span-7, .span-5, .span-6 { grid-column: 1 / -1; }
  .news { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .band { padding-top: var(--space-16); }
  #main > .band:last-child, #main > section.band:last-of-type { padding-bottom: var(--space-16); }
  .hero h1, .slogan { font-size: 56px; }
  .hero .lead { font-size: 18px; line-height: 26px; }
  .hero-media .drs-lower { position: static; display: flex; width: 100%; margin-top: var(--space-3); }
  .hero-media .drs-lower { height: auto; min-height: 56px; }
  .hero-media .drs-lower__id { min-width: 0; flex: 1; padding: 6px var(--space-3) 6px var(--space-6); }
  .hero-media .drs-lower__name { white-space: nowrap; font-size: 22px; line-height: 24px; }
  .hero-media .drs-lower__time { font-size: 22px; padding: 0 var(--space-3); }
  .hero-band .tracks { width: 520px; right: -200px; }
  .pillars { gap: var(--space-4) var(--space-8); }
  .pillars .drs-flags { margin-left: 0; }
  .news, .fame, .meme { grid-template-columns: 1fr; }
  .meme q { font-size: 28px; }
  .soft { margin-top: var(--space-16); }
  .slogan { padding-top: var(--space-16); }
}

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); padding: var(--space-16) 0 var(--space-12); }
.page-hero .tracks { position: absolute; right: -160px; bottom: -40px; width: 900px; transform: rotate(-16deg); opacity: .9; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: .9; text-transform: uppercase; }
.page-hero h1 .drs-grad-text { font-style: italic; }
.page-hero .lead { margin: var(--space-4) 0 0; font-size: 22px; line-height: 30px; font-weight: 600; color: var(--ink-muted); max-width: 46ch; }
.page-hero .drs-flags { margin-top: var(--space-8); }
.crumb { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-text); text-decoration: none; }
.crumb:hover { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); text-decoration: none; }
.tile__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }
.tile__meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.grid-drivers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-6); }
.pcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; }
.pcard__top { position: relative; display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-4); }
.pcard__photo { flex: none; width: 76px; height: 95px; border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--inverse) 0%, #3a3334 100%); }
.pcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__photo span { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 34px; color: var(--brand); letter-spacing: .02em; }
.pcard__id { min-width: 0; }
.pcard__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.pcard__nick { margin: 2px 0 0; font-size: 14px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 0; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.pcard__team { display: inline-flex; align-items: center; gap: 6px; }
.pcard__team img { width: 20px; height: 20px; object-fit: contain; }
.pcard__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: auto 0 0; border-top: 1px solid var(--line); background: var(--surface); }
.pcard__stats div { padding: var(--space-2) var(--space-4); }
.pcard__stats div + div { border-left: 1px solid var(--line); }
.pcard__stats dt { font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.pcard__stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; }
.pcard__stats dd { font-style: italic; display: inline-block; }
.pcard:hover .pcard__name, .pcard:focus-visible .pcard__name { color: var(--brand-text); }
.grid-seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-6); }
.scard, .ecard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; }
.scard__media, .ecard__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: linear-gradient(135deg, var(--inverse) 0%, #3a3334 100%); }
.scard__media img, .ecard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.scard:hover .scard__media img, .ecard:hover .ecard__media img { transform: scale(1.04); }
.scard__media::after, .ecard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,31,32,0) 40%, rgba(35,31,32,.55) 100%); }
.scard__num, .ecard__num { position: absolute; left: var(--space-4); bottom: var(--space-2); z-index: 1; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 56px; line-height: 1; color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.scard__media--empty .scard__num, .ecard__media--empty .ecard__num { filter: none; }
/* Orange gradient on the big numbers, initials and stat values (same as .drs-grad-text) */
.scard__num, .ecard__num, .pcard__photo span, .pcard__stats dd {
  background: linear-gradient(100deg, var(--gradient-orange-start), var(--gradient-orange-mid) 45%, var(--gradient-orange-end));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .08em;
}
.scard__num, .ecard__num { text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); }
.scard__tag { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 1; }
.scard__body { padding: var(--space-4); display: grid; gap: var(--space-1); }
.scard__eyebrow { margin: 0; }
.scard__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.scard:hover .scard__title, .ecard:hover .scard__title, .scard:focus-visible .scard__title, .ecard:focus-visible .scard__title { color: var(--brand-text); }
.scard__leader { margin: var(--space-1) 0 0; font-weight: 700; }
.scard__leader span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-right: var(--space-1); }
.scard__body { flex: 1; align-content: start; }
.ecard.is-cancelled { opacity: .6; }
/* About page + homepage summary */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.about-intro p { color: var(--ink-muted); line-height: 1.7; max-width: 62ch; }
.about-intro .about-lead { color: var(--ink); font-size: 20px; line-height: 30px; font-weight: 600; }
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: 0; }
.about-stats div { padding: var(--space-4) var(--space-6); background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); border-top: 3px solid var(--brand); }
.about-stats dt { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.about-stats dd { display: inline-block; margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 48px; line-height: 1;
  background: linear-gradient(100deg, var(--gradient-orange-start), var(--gradient-orange-mid) 45%, var(--gradient-orange-end)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .08em; }
.about-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-6); }
.about-champ { display: grid; gap: var(--space-2); padding: var(--space-6); border-left: 6px solid var(--brand); }
.about-champ .drs-eyebrow, .about-champ .tile__meta { margin: 0; }
.about-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-6); }
.about-steps li { counter-increment: step; display: grid; gap: var(--space-2); padding: var(--space-6); background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.about-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 48px; line-height: 1;
  background: linear-gradient(100deg, var(--gradient-orange-start), var(--gradient-orange-mid) 45%, var(--gradient-orange-end)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; justify-self: start; padding-right: .08em; }
.about-steps strong { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.about-steps span { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.about-h3 { margin: var(--space-8) 0 var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; }
.about-timeline { list-style: none; margin: 0; padding: 0 0 0 var(--space-6); border-left: 3px solid var(--line); display: grid; gap: var(--space-4); }
.about-timeline--milestones { margin-bottom: var(--space-4); }
.about-timeline--milestones li::before { background: var(--inverse); }
.about-timeline li { position: relative; display: flex; gap: var(--space-6); align-items: baseline; }
.about-timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--space-6) - 9px); top: 10px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--bg); }
.about-timeline__year { flex: none; width: 3.2em; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 32px; line-height: 1; }
.about-timeline__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.about-timeline__name:hover { color: var(--brand-text); }
.about-timeline .tile__meta { margin: 2px 0 0; }
.about-faq { display: grid; gap: var(--space-3); max-width: 900px; }
.about-faq details { background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4) var(--space-6); }
.about-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.about-faq summary::-webkit-details-marker { display: none; }
.about-faq summary::after { content: "+"; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--brand); }
.about-faq details[open] summary::after { content: "–"; }
.about-faq p { margin: var(--space-3) 0 0; color: var(--ink-muted); line-height: 1.7; }
.about-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-6); padding: var(--space-8); background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); border-left: 6px solid var(--brand); }
.about-cta .drs-eyebrow, .about-cta .tile__meta { margin: 0; }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; gap: var(--space-8); } .about-stats dd { font-size: 40px; } }
.tile--event { flex-direction: row; align-items: center; gap: var(--space-4); }
.tile__num { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 56px; line-height: .85; min-width: 1.4em; }
.tile__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.note { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) var(--space-6); border-left: 6px solid var(--brand); background: var(--bg); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.note p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.note strong { display: block; color: var(--ink); font-size: 16px; line-height: 24px; }
.stack > * + * { margin-top: var(--space-6); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.class-block + .class-block { margin-top: var(--space-12); }
.class-block__head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.class-block__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }
.is-fastest { color: var(--brand-text); }
.is-dropped { color: var(--ink-muted); text-decoration: line-through; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.entry-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--space-6); }
.entry-list li { break-inside: avoid; padding: var(--space-1) 0; font-size: 14px; line-height: 20px; }
.entry-list a { text-decoration: none; font-weight: 600; }
.entry-list a:hover { text-decoration: underline; }
.search { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; margin-top: var(--space-8); }
.search input { height: 52px; min-width: min(420px, 100%); padding: 0 var(--space-4); border: 2px solid var(--ink); border-radius: var(--radius-sm); font: 600 16px/24px var(--font-sans); background: var(--bg); color: var(--ink); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-12); }
.pager__info { font-size: 14px; color: var(--ink-muted); }
.prose { font-size: 18px; line-height: 30px; }
.prose p { margin: 0 0 var(--space-6); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.prose a { color: var(--brand-text); font-weight: 600; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1; }
.article { max-width: 760px; }
.comment { padding: var(--space-4) var(--space-6); }
.comment__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; }

@media (max-width: 960px) {
  .cards, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .page-hero { padding: var(--space-12) 0 var(--space-8); }
  .page-hero h1 { font-size: 56px; }
  .page-hero .lead { font-size: 18px; line-height: 26px; }
  .page-hero .tracks { width: 520px; right: -200px; bottom: -40px; }
  .cards, .cards--4 { grid-template-columns: 1fr; }
  .entry-list { columns: 1; }
  .prose { font-size: 16px; line-height: 26px; }
}

/* ---------- Forms & account ---------- */
.auth { max-width: 560px; margin-left: auto; margin-right: auto; }
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-1); }
/* Two fields side by side (one column on mobile). */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.field label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=file], .field input[type=datetime-local], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--bg);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--focus); outline-offset: 2px; }
.field__error { margin: 0; font-size: 14px; line-height: 20px; color: var(--negative); font-weight: 600; }
.field__hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 14px; line-height: 20px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.flash { padding: var(--space-4) var(--space-6); border-left: 6px solid var(--positive); background: var(--bg); box-shadow: var(--shadow-card); border-radius: var(--radius-sm); font-weight: 600; }
.flash--error { border-left-color: var(--negative); }
.auth__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-6); margin: 0; }
.kv dt { font-size: 12px; line-height: 24px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.kv dd { margin: 0; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* Live center (S3E): full page width, not the 1200px container */
.live-center [hidden] { display: none !important; }
.live-center { padding: var(--space-6) var(--space-6) var(--space-16); background: var(--surface); }
.lc-kicker { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; font-style: italic; text-transform: uppercase; }
.lc-label { margin: 0; font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.lc-label strong { color: var(--ink); letter-spacing: .06em; }
.lc-big { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1.05; font-style: italic; font-variant-numeric: tabular-nums; }
.lc-big small { font-size: 24px; color: var(--ink-muted); }
.lc-h { margin: var(--space-6) 0 var(--space-2); font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.lc-top { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: var(--space-6); background: var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.lc-top > * { flex: 1 1 170px; background: var(--bg); padding: var(--space-4) var(--space-6); display: flex; flex-direction: column; justify-content: center; gap: var(--space-1); min-width: 0; }
.lc-top__stage { flex: 1.6 1 280px; border-left: 6px solid var(--brand); align-items: flex-start; }
.lc-top__name { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.lc-top__sub { margin: 0; font-size: 14px; color: var(--ink-muted); }
.lc-bar { height: 6px; margin-top: var(--space-2); background: var(--surface); border-radius: var(--radius-pill); overflow: hidden; }
.lc-bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .4s ease; }
.lc-timer { color: var(--brand-text); }
.lc-meme { flex: 0 0 260px !important; position: relative; padding: 0 !important; display: block !important; text-decoration: none; }
.lc-meme img { width: 100%; height: 100%; min-height: 120px; max-height: 150px; object-fit: cover; display: block; }
.lc-meme__tag { position: absolute; left: var(--space-3); top: var(--space-3); padding: 2px var(--space-2); background: var(--inverse); color: var(--on-inverse); font-family: var(--font-display); font-weight: 800; font-size: 16px; text-transform: uppercase; border-radius: var(--radius-sm); }
.lc-grid { display: grid; grid-template-columns: minmax(440px, 1.15fr) minmax(0, 2fr) minmax(300px, .9fr); gap: var(--space-6); align-items: start; }
.lc-timing { padding: var(--space-4); min-width: 0; }
.lc-tabs { margin-bottom: var(--space-3); flex-wrap: wrap; }
.lc-status { margin-bottom: var(--space-3); }
.lc-updated { margin-top: var(--space-3); font-size: 12px; }
.lc-table td { white-space: nowrap; padding: 0 var(--space-2); font-size: 13px; }
.lc-table th { padding: 0 var(--space-2) var(--space-1); }
.lc-table td:first-child { width: 36px; }
.lc-table .drs-posnum { font-size: 20px; }
.lc-table__gap { display: block; font-size: 11px; line-height: 14px; color: var(--ink-muted); font-weight: 600; }
.lc-class + .lc-class { margin-top: var(--space-2); }
.lc-class .lc-h { margin-top: var(--space-4); }
.lc-kv > div { display: contents; }
.lc-main { display: grid; gap: var(--space-6); min-width: 0; }
.lc-video { position: relative; aspect-ratio: 16 / 9; background: var(--inverse); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.lc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lc-video__empty { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: var(--space-8); color: var(--on-inverse); }
.lc-video__empty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.lc-video__empty div { position: relative; display: grid; gap: var(--space-1); }
.lc-video__empty strong { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; font-style: italic; }
.lc-video__empty span { font-size: 16px; opacity: .85; }
.lc-last { display: grid; grid-template-columns: auto auto minmax(140px, 1fr) repeat(3, auto); gap: var(--space-6); align-items: center; padding: 0 var(--space-6) 0 0; overflow: hidden; }
.lc-last__num { align-self: stretch; display: flex; align-items: center; padding: 0 var(--space-4); background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 40px; }
.lc-last__num[hidden] { display: none; }
.lc-last__photo { padding: var(--space-3) 0; }
.lc-last__img { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: var(--radius-md); object-fit: cover; background: var(--surface); font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--ink-muted); }
.lc-last__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }
.lc-last__cell .lc-big { font-size: 34px; }
.lc-gap { color: var(--negative); }
.lc-gap.is-best { color: var(--positive); }
.lc-side { display: grid; gap: var(--space-6); min-width: 0; }
.lc-card .panel-title { font-size: 24px; line-height: 26px; }
.lc-driver { display: flex; gap: var(--space-4); align-items: center; }
.lc-driver + .lc-driver { margin-top: var(--space-3); }
.lc-driver__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; }
.lc-num { color: var(--brand-text); font-style: italic; }
.lc-avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius-md); object-fit: cover; background: var(--surface); font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--ink-muted); }
.lc-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-6); }
.lc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: var(--space-3); margin: var(--space-4) 0 0; }
.lc-facts dt { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.lc-facts dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lc-track__map { display: block; width: 100%; max-height: 180px; object-fit: contain; }
.lc-weather__now { display: flex; align-items: center; gap: var(--space-4); }
.lc-weather__icon { flex: none; width: 56px; height: 56px; color: var(--brand); }
.lc-weather__icon svg { width: 100%; height: 100%; }
.lc-chat iframe { display: block; width: 100%; height: 520px; border: 0; border-radius: var(--radius-sm); background: var(--surface); }
.lc-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-top: var(--space-8); padding: var(--space-4) var(--space-6); background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.lc-sponsors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); flex: 1; }
.lc-sponsors a { display: flex; align-items: center; height: 48px; color: var(--ink); font-weight: 700; text-decoration: none; }
.lc-sponsors img { max-height: 44px; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .15s ease, opacity .15s ease; }
.lc-sponsors a:hover img, .lc-sponsors a:focus-visible img { filter: none; opacity: 1; }
.lc-channels { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-left: auto; }
@media (max-width: 1500px) {
  .lc-grid { grid-template-columns: minmax(400px, 1fr) minmax(0, 1.6fr); }
  .lc-side { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
  .lc-meme { display: none !important; }
}
@media (max-width: 1500px) {
  .lc-last { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); padding: 0 var(--space-4) var(--space-4) 0; }
  .lc-last__num { grid-row: 1; grid-column: 1; justify-content: center; }
  .lc-last__photo { display: none; }
  .lc-last__who { grid-row: 1; grid-column: 2 / -1; padding-top: var(--space-3); min-width: 0; }
  .lc-last__cell { grid-row: 2; padding-left: var(--space-4); }
  .lc-last__name { overflow-wrap: anywhere; }
}
@media (max-width: 1000px) {
  .live-center { padding: var(--space-4) var(--space-4) var(--space-12); }
  .lc-grid { grid-template-columns: 1fr; }
  .lc-main { order: -1; }
  .lc-grid { grid-template-columns: minmax(0, 1fr); }
  .lc-side { grid-template-columns: minmax(0, 1fr); }
  .lc-top > * { flex-basis: 40%; }
  .lc-top__stage { flex-basis: 100%; }
  .lc-big { font-size: 32px; }
}
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: 16px; line-height: 24px; }
.live-list--next { list-style: decimal; padding-left: var(--space-6); }
.is-muted { color: var(--ink-muted); }
.is-mono { font-variant-numeric: tabular-nums; }
.mb { margin-bottom: var(--space-6); }

/* Confirmation modal (public/js/drs-confirm.js) */
.drs-confirm { border: 0; padding: 0; width: min(460px, calc(100vw - 2 * var(--space-4))); background: var(--bg); color: var(--ink);
  border-radius: var(--radius-lg); border-top: 4px solid var(--brand); box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(var(--space-2)) scale(.98); transition: opacity .15s ease, transform .15s ease; }
.drs-confirm.is-open { opacity: 1; transform: none; }
.drs-confirm--danger { border-top-color: var(--negative); }
.drs-confirm::backdrop { background: rgba(35,31,32,0.55); }
.drs-confirm__body { padding: var(--space-6) var(--space-6) var(--space-2); }
.drs-confirm__title { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: 32px; line-height: 1; font-weight: 800; text-transform: uppercase; }
.drs-confirm__msg { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.drs-confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-6) var(--space-6); }
@media (prefers-reduced-motion: reduce) { .drs-confirm { transition: none; } }

/* ---------- News: blog layout with category sidebar ---------- */
.blog { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-12); align-items: start; }
.blog__main { grid-column: 1; grid-row: 1; min-width: 0; }
.blog__side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: var(--space-6); }
.blog .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog .article { max-width: none; }
.blog__filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-6); }
.side-box > summary { list-style: none; cursor: pointer; }
.side-box > summary::-webkit-details-marker { display: none; }
.side-box__title { margin: 0 0 var(--space-3); font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.side-group { margin: var(--space-6) 0 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.side-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.side-list a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; }
.side-list a:hover, .side-list a[aria-current] { color: var(--brand-text); }
.side-list a[aria-current] { box-shadow: inset 3px 0 0 var(--brand); padding-left: var(--space-3); }
.side-list--sub { margin: 0; padding-left: var(--space-4); }
.side-list--sub a { font-weight: 400; }
.side-list--posts a { flex-direction: column; gap: var(--space-1); }
.side-count { flex: none; color: var(--ink-muted); font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; }
.news-cats { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.news-cats a { text-decoration: none; }
@media (max-width: 960px) {
  .blog { grid-template-columns: 1fr; gap: var(--space-8); }
  .blog__side { grid-column: 1; grid-row: auto; }
  .blog--article .blog__side { order: 2; }
  .blog__side .side-box[data-collapse-mobile]:not([open]) .side-box__title { margin: 0; }
  .side-box > summary.side-box__title::after { content: " +"; color: var(--brand-text); }
  .side-box[open] > summary.side-box__title::after { content: " −"; }
}
@media (min-width: 961px) { .side-box > summary { pointer-events: none; } }
@media (max-width: 768px) { .blog .news { grid-template-columns: 1fr; } }

/* ---------- Article embeds (App\Support\NewsEmbeds) ---------- */
.prose::after { content: ""; display: table; clear: both; }
.news-figure, .news-video { margin: var(--space-8) 0; }
.news-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.news-figure figcaption, .news-video figcaption { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.news-figure--centru { max-width: 70%; margin-inline: auto; }
.news-figure--stanga { float: left; width: 45%; margin: var(--space-1) var(--space-6) var(--space-4) 0; }
.news-figure--dreapta { float: right; width: 45%; margin: var(--space-1) 0 var(--space-4) var(--space-6); }
.news-video { clear: both; }
.news-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--inverse); }
.news-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 768px) {
  .news-figure--stanga, .news-figure--dreapta { float: none; width: 100%; margin: var(--space-6) 0; }
  .news-figure--centru { max-width: 100%; }
}

/* Conditional blocks (data-show-if) must stay hidden whatever their layout class. */
[data-show-if][hidden] { display: none !important; }

/* Sponsors: homepage logo strip and the /sponsori page */
.sponsor-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-4); }
.sponsor-strip a { display: flex; align-items: center; justify-content: center; height: 96px; padding: var(--space-4); background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink); font-weight: 700; text-align: center; transition: transform .15s ease; }
.sponsor-strip a:hover, .sponsor-strip a:focus-visible { transform: translateY(-2px); }
.sponsor-strip img { max-width: 100%; max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .15s ease, opacity .15s ease; }
.sponsor-strip a:hover img, .sponsor-strip a:focus-visible img { filter: none; opacity: 1; }
.sponsors { display: grid; gap: var(--space-6); }
.sponsor { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-6); align-items: center; padding: var(--space-6); scroll-margin-top: 96px; }
.sponsor__logo { display: flex; align-items: center; justify-content: center; height: 140px; padding: var(--space-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sponsor__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor__initial { font-family: var(--font-display); font-weight: 800; font-size: 56px; color: var(--ink-muted); }
.sponsor__body { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.sponsor__text { margin: 0; color: var(--ink-muted); line-height: 1.6; }
.sponsor:target { box-shadow: 0 0 0 3px var(--brand), var(--shadow-card); }
@media (max-width: 720px) {
  .sponsor { grid-template-columns: 1fr; }
  .sponsor__logo { height: 110px; }
  .sponsor-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Account tabs */
.account-tabs { margin-bottom: var(--space-2); }
[data-account-pane][hidden] { display: none !important; }
.account-pane { scroll-margin-top: 96px; }

/* Article footer: author box and previous / next article */
.author-box { position: relative; margin-top: var(--space-16); padding: 56px var(--space-6) var(--space-8); border-top: 1px solid var(--line); text-align: center; }
.author-box__avatar { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 4px var(--bg), var(--shadow-card); display: flex; align-items: center; justify-content: center; }
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__avatar span { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--ink-muted); }
.author-box__kicker { margin: 0 0 var(--space-2); font-style: italic; color: var(--ink-muted); }
.author-box__name { margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.author-box__bio { margin: 0 auto; max-width: 620px; color: var(--ink-muted); line-height: 1.6; white-space: pre-line; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: var(--space-6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-nav__link { display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; color: var(--ink); }
.post-nav__link--next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-nav__dir { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.post-nav__title { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav__link:hover .post-nav__title, .post-nav__link:focus-visible .post-nav__title { text-decoration: underline; }
@media (max-width: 720px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { grid-column: 1; }
}

/* Washed-out race photo behind the page headers and the homepage hero (random image from Hillclimb season 3 news) */
.hero-photo { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .32; filter: saturate(.75) blur(1px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.8) 45%, #000 75%), linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.8) 45%, #000 75%), linear-gradient(180deg, #000 70%, transparent 100%); mask-composite: intersect; }
.hero-band .wrap { position: relative; z-index: 1; }
@media (max-width: 720px) { .hero-photo { opacity: .22; } }

/* Next-stage strip with the stage photo as a washed-out backdrop */
.drs-event__photo { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: .35; filter: saturate(.8);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.85) 50%, #000 100%); mask-image: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.85) 50%, #000 100%); pointer-events: none; }

/* Homepage: classes and cars of the current season (old-site style: dark text panel + photo with the class name) */
.class-rows { display: grid; gap: var(--space-6); }
.class-row { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; border-radius: var(--radius-md); overflow: hidden; background: #1f1f20; color: #fff; box-shadow: var(--shadow-card); }
.class-row--flip .class-row__text { order: 2; }
.class-row__text { display: flex; flex-direction: column; justify-content: center; padding: var(--space-12); }
.class-row__name { margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1; text-transform: uppercase; }
.class-row__desc { margin: 0 0 var(--space-6); color: rgba(255,255,255,.82); line-height: 1.6; max-width: 56ch; }
.class-row__label { margin: 0 0 var(--space-4); color: rgba(255,255,255,.82); }
.class-row__cars { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--space-8); }
.class-row__cars li { position: relative; break-inside: avoid; padding-left: 28px; margin-bottom: var(--space-3); line-height: 1.35; }
.class-row__cars li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%231f1f20' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.class-row__media { position: relative; display: flex; align-items: center; overflow: hidden; background: #2b2b2d center / cover no-repeat; }
.class-row__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,31,32,.55), rgba(31,31,32,.1) 60%); }
.class-row--flip .class-row__media::before { background: linear-gradient(270deg, rgba(31,31,32,.55), rgba(31,31,32,.1) 60%); }
.class-row__big { position: relative; padding-left: var(--space-12); white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 120px; line-height: .9; text-transform: uppercase; color: var(--brand); text-shadow: 0 6px 24px rgba(0,0,0,.35); }
@media (max-width: 900px) {
  .class-row { grid-template-columns: 1fr; min-height: 0; }
  .class-row--flip .class-row__text { order: 0; }
  .class-row__media { min-height: 220px; }
  .class-row__text { padding: var(--space-8) var(--space-6); }
  .class-row__big { font-size: 72px; padding-left: var(--space-6); }
}
@media (max-width: 480px) { .class-row__cars { columns: 1; } }

/* Social media: Discord QR on the homepage and the /comunitate page */
.community__qr { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-2) 0 var(--space-4); }
.community__qr img, .community__qr svg { flex: none; width: 140px; height: 140px; padding: 8px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); object-fit: contain; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6); }
.social-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.social-card .drs-eyebrow, .social-card .tile__name, .social-card .tile__meta { margin: 0; }
.social-card__qr { align-self: center; width: 200px; height: 200px; padding: 10px; margin: var(--space-2) 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.social-card__qr img, .social-card__qr svg { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Guide (/ghid): numbered steps with a sticky table of contents */
.guide__toc { position: sticky; top: 96px; }
.guide-toc { margin: 0; padding-left: 1.4em; display: grid; gap: var(--space-2); }
.guide-toc a { text-decoration: none; color: var(--ink); font-weight: 600; }
.guide-toc a:hover { color: var(--brand-text); }
.guide__steps { display: grid; gap: var(--space-8); }
.guide-step { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-8); background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); scroll-margin-top: 96px; }
.guide-step__num { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 72px; line-height: .85; background: linear-gradient(135deg, #ff8a3d, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide-step__body h2 { margin-top: 0; }
.guide-step__body .drs-img, .guide-step__body .note { margin-top: var(--space-6); }
.guide-step__body code { padding: 1px 6px; border-radius: 4px; background: var(--surface); font-size: .92em; word-break: break-all; }
.car-packs { list-style: none; margin: var(--space-3) 0 var(--space-6); padding: 0; display: grid; gap: var(--space-3); }
.car-packs__item { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.car-packs__item > div { display: flex; flex-direction: column; gap: var(--space-1); }
.car-packs__item.is-mine { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.car-packs__season { margin: var(--space-4) 0 0; font-weight: 700; }
@media (max-width: 960px) {
  .guide__toc { position: static; }
  .guide-step { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-6); }
  .guide-step__num { font-size: 48px; }
  .car-packs__item { flex-direction: column; align-items: flex-start; }
}

/* Guide: DRS Starter download */
.starter-download { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; }
.starter-notes { margin: 0 0 var(--space-3); }
.starter-notes summary { cursor: pointer; font-weight: 600; }
.starter-notes p { white-space: pre-line; margin: var(--space-2) 0 0; }
.starter-install-note { white-space: pre-line; }

/* Rulebooks (/regulament) */
.rb-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-6); }
.rb-card { display: grid; gap: var(--space-2); padding: var(--space-6); border-left: 6px solid var(--brand); text-decoration: none; color: inherit; }
.rb-card .drs-eyebrow, .rb-card .tile__meta { margin: 0; }
.rb-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: var(--space-2) 0 0; color: var(--ink-muted); font-size: 14px; }
.rb-archive { list-style: none; margin: 0; padding: 0 0 0 var(--space-6); border-left: 3px solid var(--line); display: grid; gap: var(--space-4); }
.rb-archive li { position: relative; display: flex; gap: var(--space-6); align-items: baseline; }
.rb-archive li::before { content: ""; position: absolute; left: calc(-1 * var(--space-6) - 9px); top: 10px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--bg); }
.rb-archive__year { flex: none; width: 3.2em; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 32px; line-height: 1; }
.rb-archive .tile__meta { margin: 2px 0 0; }
.rb-hero h1 { font-size: clamp(32px, 4.2vw, 64px); line-height: 1.02; max-width: 22ch; overflow-wrap: break-word; }
.rb-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-top: var(--space-4); }
.rb-hero-actions .tile__meta { margin: 0; }
.rb-notice { margin-bottom: var(--space-8); padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); background: var(--bg); box-shadow: var(--shadow-card); border-left: 6px solid var(--ink-muted); }
.rb-notice a { color: var(--brand-text); font-weight: 700; }
.rb-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.rb-layout > .rb-body:only-child { grid-column: 1 / -1; }
.rb-toc { position: sticky; top: calc(var(--space-6) + 72px); max-height: calc(100vh - 120px); overflow: auto; padding: var(--space-4) var(--space-6); background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.rb-toc ol { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 6px; }
.rb-toc a { color: var(--ink-muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.rb-toc a:hover { color: var(--brand-text); }
.rb-toc__l2 a { color: var(--ink); font-weight: 700; }
.rb-toc__l3 { padding-left: var(--space-4); }
.rb-body { max-width: 860px; color: var(--ink); line-height: 1.75; font-size: 17px; }
.rb-body h2 { margin: var(--space-12) 0 var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.15; text-transform: uppercase; scroll-margin-top: 96px; }
.rb-body h2:first-child { margin-top: 0; }
.rb-body h3 { margin: var(--space-8) 0 var(--space-2); font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--brand-text); scroll-margin-top: 96px; }
.rb-body h4 { margin: var(--space-6) 0 var(--space-2); font-size: 17px; font-weight: 700; }
.rb-body p { margin: 0 0 var(--space-4); }
.rb-body ul, .rb-body ol { margin: 0 0 var(--space-4); padding-left: 1.4em; }
.rb-body li { margin-bottom: 6px; }
.rb-body a { color: var(--brand-text); font-weight: 600; }
.rb-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-6); font-size: 15px; }
.rb-body th, .rb-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.rb-body th { background: var(--bg-subtle, var(--bg)); font-weight: 700; }
.rb-source { margin-top: var(--space-12) !important; padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; font-style: italic; }
@media (max-width: 1000px) {
  .rb-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .rb-toc { position: static; max-height: none; }
  .rb-body { font-size: 16px; }
  .rb-body h2 { font-size: 24px; }
}

/* Legal pages + external video consent (/confidentialitate, /cookies) */
.drs-footer__legal { flex-wrap: wrap; justify-content: flex-start; }
.drs-footer__legal a { color: inherit; text-decoration: none; }
.drs-footer__legal a:hover { color: var(--brand); }
.drs-footer__legal > span:last-child { margin-left: auto; }
.legal-table { overflow-x: auto; margin: 0 0 var(--space-6); }
.legal-table table { min-width: 560px; }
.rb-body code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 14px; background: var(--bg-subtle, rgba(0,0,0,.05)); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.consent-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin: 0 0 var(--space-6); padding: var(--space-4) var(--space-6); background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); border-left: 6px solid var(--line); }
.consent-box.is-on { border-left-color: var(--brand); }
.consent-box .tile__meta { margin: 2px 0 0; }
/* First-visit cookie notice (layout + drs-site.js): floating card, does not block the page. */
.cookie-notice { position: fixed; left: var(--space-6); bottom: var(--space-6); z-index: 50; width: min(420px, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-6); background: var(--bg); color: var(--ink); border-radius: var(--radius-lg); border-top: 4px solid var(--brand); box-shadow: var(--shadow-lift); }
.cookie-notice[hidden] { display: none; }
.cookie-notice__title { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: 28px; line-height: 1.05; font-weight: 800; font-style: italic; text-transform: uppercase; }
.cookie-notice__msg { margin: 0 0 var(--space-4); font-family: var(--font-sans); font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.cookie-notice__msg a { color: var(--brand-text); }
.cookie-notice__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 600px) { .cookie-notice { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); width: auto; padding: var(--space-4); } .cookie-notice__title { font-size: 24px; } }
.consent-gate { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; justify-items: start; gap: var(--space-4); padding: var(--space-8); background: var(--inverse); color: var(--on-inverse); }
.consent-gate p { margin: 0; display: grid; gap: var(--space-1); max-width: 46ch; }
.consent-gate strong { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.consent-gate span { font-size: 15px; line-height: 1.5; opacity: .85; }
.consent-gate a { color: inherit; text-decoration: underline; }
.consent-gate__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.consent-gate .drs-btn--secondary { color: var(--on-inverse); }
.consent-gate .drs-btn--secondary::before { background: transparent; box-shadow: inset 0 0 0 2px var(--on-inverse); }
.consent-gate .drs-btn--secondary:hover::before { background: var(--on-inverse); }
.consent-gate .drs-btn--secondary:hover { color: var(--inverse); }
@media (max-width: 600px) {
  .consent-gate { padding: var(--space-4); gap: var(--space-2); }
  .consent-gate strong { font-size: 20px; }
  .consent-gate span { font-size: 13px; }
}

/* DiRT stage comments (event page, #comentarii) */
.stage-comments { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-4); }
.stage-comments .comment__name a { color: inherit; text-decoration: none; }
.stage-comments .comment__name a:hover { color: var(--brand-text); }
@media (max-width: 600px) { .stage-comments { grid-template-columns: minmax(0, 1fr); } }

/* Downloads (/descarcari) */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }
.dl-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); border-left: 6px solid var(--brand); }
.dl-card .drs-eyebrow, .dl-card .tile__meta, .dl-card .scard__title { margin: 0; }
.dl-card__foot { margin-top: auto; padding-top: var(--space-3); }
.dl-card--link { text-decoration: none; color: inherit; border-left-color: var(--ink); transition: border-color .15s; }
.dl-card--link:hover { border-left-color: var(--brand); }
.dl-hint { margin-top: var(--space-6); }
.dl-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-8); border-left: 6px solid var(--brand); }
.dl-app .drs-eyebrow, .dl-app .tile__meta { margin: 0 0 var(--space-1); }
.dl-app__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.dl-row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); }
.dl-row__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-subtle, rgba(0,0,0,.05)); color: var(--brand); }
.dl-row__body { flex: 1; min-width: 0; }
.dl-row__body .tile__meta { margin: 2px 0 0; }
.dl-row__meta { margin: 4px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 600px) {
  .dl-row { flex-wrap: wrap; }
  .dl-row__icon { display: none; }
  .dl-row__body { flex-basis: 100%; }
  .dl-app { padding: var(--space-6); }
}

/* Track records (/recorduri) */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6); }
.rec-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); border-left: 6px solid var(--ink); color: inherit; text-decoration: none; transition: border-color .15s; }
.rec-card:hover, .rec-card:focus-visible { border-left-color: var(--brand); }
.rec-card .drs-eyebrow, .rec-card .scard__title { margin: 0; overflow-wrap: break-word; }
.rec-card__time { margin: var(--space-2) 0 0; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.rec-card__meta { margin: auto 0 0; padding-top: var(--space-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.rec-hero { margin-top: var(--space-6); }
.rec-hero__time { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 8vw, 96px); line-height: 1; font-variant-numeric: tabular-nums; }
.rec-hero__who { margin: var(--space-3) 0 var(--space-1); font-size: 18px; font-weight: 700; }
.rec-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-4); margin: 0; }
.rec-facts div { padding: var(--space-4) var(--space-6); border-left: 4px solid var(--brand); background: var(--surface); }
.rec-facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.rec-facts dd { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; }
.player-records { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.player-records a { display: block; padding: var(--space-4) var(--space-6); border-left: 4px solid var(--brand); color: inherit; text-decoration: none; }
.player-records strong { display: block; }
.player-records .rec-card__time { font-size: 28px; margin-top: var(--space-1); }
.player-records a > span { display: block; }
.rec-page-hero h1 { font-size: clamp(36px, 7vw, 96px); overflow-wrap: anywhere; }
.rec-search { margin: 0 0 var(--space-6); }

/* Public statistics (/statistici) */
.st-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-kpis dd { font-size: 40px; }
.st-kpi-link { color: inherit; text-decoration: none; border-bottom: 3px solid var(--brand); }
.st-champions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.st-champions li { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-6); border-left: 6px solid var(--brand); }
.st-champions .drs-eyebrow { margin: 0; }
.st-champions__name { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.st-champions__name:hover { color: var(--brand); }
.st-columns { margin: 0; }
.st-columns__plot { display: flex; align-items: flex-end; gap: 2px; height: 220px; padding-top: var(--space-6); border-bottom: 1px solid var(--line, rgba(0,0,0,.15)); }
.st-col { position: relative; flex: 1 1 0; min-width: 3px; height: 100%; display: flex; align-items: flex-end; outline: none; }
.st-col::before { content: ''; display: block; width: 100%; height: var(--h); background: var(--brand); border-radius: 4px 4px 0 0; opacity: .85; transition: opacity .1s; }
.st-col:hover::before, .st-col:focus-visible::before { opacity: 1; background: var(--ink); }
.st-col__tip { display: none; position: absolute; bottom: calc(var(--h) + 8px); left: 50%; transform: translateX(-50%); z-index: 2; width: max-content; max-width: 240px; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 18px; pointer-events: none; }
.st-col:first-child .st-col__tip, .st-col:nth-child(2) .st-col__tip { left: 0; transform: none; }
.st-col:last-child .st-col__tip, .st-col:nth-last-child(2) .st-col__tip { left: auto; right: 0; transform: none; }
.st-col:hover .st-col__tip, .st-col:focus-visible .st-col__tip { display: block; }
.st-columns__axis { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.st-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); }
.st-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.st-lead { margin-bottom: var(--space-6); }
@media (max-width: 900px) {
  .st-two, .st-three { grid-template-columns: minmax(0, 1fr); }
  .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-columns__plot { height: 160px; }
}

/* Calendar (.ics) */
.cal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.cal-subscribe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-6); font-size: 14px; color: var(--ink-muted); }
.cal-subscribe svg { color: var(--brand); flex: none; }
time.is-local { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

/* Homepage: newest record + community numbers */
.home-rec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-6); align-items: stretch; }
.home-rec__main { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-8); border-left: 6px solid var(--brand); color: inherit; text-decoration: none; }
.home-rec__main .drs-eyebrow, .home-rec__main .tile__meta { margin: 0; }
.home-rec__track { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.home-rec__time { margin: var(--space-2) 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 7vw, 88px); line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.home-rec__who { margin: 0; font-size: 18px; }
.home-rec__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); align-content: start; }
.home-rec__list a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-left: 4px solid var(--ink); color: inherit; text-decoration: none; }
.home-rec__list a:hover, .home-rec__main:hover { border-left-color: var(--brand); }
.home-rec__name { display: flex; flex-direction: column; min-width: 0; }
.home-rec__name strong { overflow-wrap: anywhere; }
.home-rec__small { font-family: var(--font-display); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; }
.home-stats { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-8); padding: var(--space-8); }
.home-stats__chart .drs-eyebrow { margin: 0; }
.home-stats__kpis { display: grid; gap: var(--space-4); margin: 0; align-content: center; }
.home-stats__kpis div { padding-left: var(--space-4); border-left: 4px solid var(--brand); }
.home-stats__kpis dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.home-stats__kpis dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; }
.home-stats__name a { color: inherit; text-decoration: none; }
.home-stats__name a:hover { color: var(--brand); }
.home-stats__name span { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--ink-muted); }
@media (max-width: 900px) {
  .home-rec, .home-stats { grid-template-columns: minmax(0, 1fr); }
  .home-rec__main, .home-stats { padding: var(--space-6); }
}

/* /sponsori: media partners, logos only */
.media-partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-12); }
.media-partners a, .media-partners span { display: flex; align-items: center; height: 64px; color: var(--ink); font-weight: 700; text-decoration: none; }
.media-partners img { max-height: 56px; max-width: 170px; object-fit: contain; transition: transform .15s ease; }
.media-partners a:hover img, .media-partners a:focus-visible img { transform: scale(1.05); }
@media (max-width: 600px) { .media-partners { gap: var(--space-6) var(--space-8); } .media-partners img { max-height: 44px; max-width: 130px; } }

/* /fata-in-fata: head-to-head */
.h2h-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4) var(--space-6); padding: var(--space-6) var(--space-8); }
.h2h-field { display: flex; flex-direction: column; gap: var(--space-2); flex: 1 1 240px; min-width: 0; }
.h2h-field .drs-eyebrow { margin: 0; }
.h2h-field input { height: 52px; padding: 0 var(--space-4); border: 2px solid var(--ink); border-radius: var(--radius-sm); font: 600 16px/24px var(--font-sans); background: var(--bg); color: var(--ink); min-width: 0; }
.h2h-vs, .h2h-head__vs { font-family: var(--font-display); font-weight: 800; font-size: 32px; text-transform: uppercase; color: var(--brand); padding-bottom: 6px; }
.h2h-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-6); }
.h2h-head__vs { font-size: 56px; padding: 0; }
.h2h-driver { display: flex; flex-direction: column; gap: var(--space-3); }
.h2h-driver--b { align-items: flex-end; text-align: right; }
.h2h-driver__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: .95; text-transform: uppercase; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.h2h-driver__name:hover { color: var(--brand); }
.h2h-driver__stats { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); margin: 0; }
.h2h-driver--b .h2h-driver__stats { justify-content: flex-end; }
.h2h-driver__stats dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.h2h-driver__stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; }
.h2h-shared { margin: var(--space-6) 0; text-align: center; }
.h2h-scores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.h2h-scores li { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); }
.h2h-scores .drs-eyebrow, .h2h-scores .tile__meta { margin: 0; }
.h2h-score { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1; }
.h2h-score span { font-size: 28px; color: var(--ink-muted); }
.h2h-score strong { color: var(--ink-muted); }
.h2h-score strong.is-ahead { color: var(--brand); }
.h2h-split { display: flex; gap: 2px; height: 8px; }
.h2h-split span { display: block; height: 100%; border-radius: 4px; min-width: 2px; }
.h2h-split span:first-child { background: var(--brand); }
.h2h-split span:last-child { background: var(--ink); }
.h2h-win { color: var(--brand); font-weight: 800; }
@media (max-width: 700px) {
  .h2h-head { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .h2h-driver--b { align-items: flex-start; text-align: left; }
  .h2h-driver--b .h2h-driver__stats { justify-content: flex-start; }
  .h2h-head__vs { font-size: 32px; }
  .h2h-form { padding: var(--space-6); }
  .h2h-vs { display: none; }
}

/* Global search: magnifier in the menu, drop-down box with live suggestions, results page */
.drs-nav { position: sticky; }
.drs-nav__search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--ink); }
.drs-nav__search:hover, .drs-nav__search[aria-expanded="true"] { background: var(--surface); }
.drs-nav__search:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.drs-search { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.drs-search[hidden] { display: none; }
.drs-search__form { max-width: var(--container); margin: 0 auto; padding: var(--space-4) var(--space-6); display: flex; align-items: center; gap: var(--space-3); }
.drs-search__icon { color: var(--ink-muted); flex: none; }
.drs-search__form input { flex: 1; min-width: 0; height: 52px; padding: 0 var(--space-4); border: 2px solid var(--ink); border-radius: var(--radius-sm); font: 600 18px/24px var(--font-sans); background: var(--bg); color: var(--ink); }
.drs-search__form input:focus { outline: none; border-color: var(--brand); }
.drs-search__close { flex: none; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: var(--radius-sm); }
.drs-search__close:hover { background: var(--surface); }
.drs-search__results { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); max-height: min(60vh, 520px); overflow-y: auto; }
.drs-search__results:not(:empty) { padding-bottom: var(--space-4); }
.drs-search__group { padding: var(--space-2) 0; border-top: 1px solid var(--line); }
.drs-search__label { margin: var(--space-2) 0 var(--space-1); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.drs-search__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-3); padding: var(--space-2) var(--space-3); margin: 0 calc(-1 * var(--space-3)); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.drs-search__item:hover, .drs-search__item.is-active { background: var(--surface); }
.drs-search__item.is-active { box-shadow: inset 4px 0 0 var(--brand); }
.drs-search__title { font-weight: 700; font-size: 16px; line-height: 24px; }
.drs-search__meta { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.drs-search__all { margin-top: var(--space-2); border-top: 1px solid var(--line); border-radius: 0; font-weight: 700; color: var(--brand-text); }
@media (max-width: 960px) { .drs-nav__end { gap: var(--space-3); } }
@media (max-width: 600px) { .drs-search__form { padding: var(--space-3) var(--space-4); } .drs-search__results { padding: 0 var(--space-4); } .drs-search__icon { display: none; } }

.srch-form { margin-top: 0; margin-bottom: var(--space-8); }
.srch-form input { flex: 1 1 320px; min-width: 0; }
.srch-count { margin: 0 0 var(--space-6); color: var(--ink-muted); font-weight: 600; }
.srch-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-6); align-items: start; }
.srch-group { padding: var(--space-6); }
.srch-group h2 { margin: 0 0 var(--space-3); }
.srch-list { list-style: none; margin: 0; padding: 0; }
.srch-list li + li { border-top: 1px solid var(--line); }
.srch-list a { display: flex; flex-direction: column; padding: var(--space-3) 0; text-decoration: none; color: var(--ink); }
.srch-list a:hover .srch-title { color: var(--brand-text); }
.srch-title { font-weight: 700; font-size: 16px; line-height: 24px; }
.srch-meta { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.srch-more { display: inline-block; margin-top: var(--space-3); }
.drs-search__form input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
