* { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  color-scheme: dark;
  --bg: #101116;
  --panel: #191b23;
  --line: #30333e;
  --muted: #b7bac6;
  --text: #f4f4f7;
  --accent: #ff6158;
  font: 100%/1.5 system-ui, sans-serif;
}

body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.header { background: #15161c; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; min-height: 5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; padding-block: .7rem; }
.brand strong { font-size: 1.1rem; letter-spacing: .075em; }
.brand small { display: block; font-size: .875rem; color: var(--muted); }
.brand-mark { display: block; width: 1.8rem; height: 1.65rem; transform: skew(-16deg); background: conic-gradient(var(--accent) 25%, transparent 0 50%, var(--accent) 0 75%, transparent 0) 0 0 / 1.2rem 1.1rem; }
nav { display: flex; flex-wrap: wrap; column-gap: 1.4rem; }
nav a { position: relative; padding-block: .7rem; text-decoration: none; color: var(--muted); font-size: .9375rem; font-weight: 650; }
nav a:hover, nav [aria-current] { color: var(--text); }
nav [aria-current]::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); }
.archive, .section-content { min-height: 60vh; padding-block: clamp(2rem, 5vw, 4rem); }
h1, h2 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 850; }
h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); }
.filters { display: grid; grid-template-columns: 1.5fr .85fr 1fr 1fr auto; gap: .8rem; align-items: end; margin-block: 2rem 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); }
.filters label { display: grid; gap: .35rem; min-width: 0; font-size: .875rem; font-weight: 650; }
input, select, button { font: inherit; color: inherit; }
input, select { width: 100%; min-width: 0; min-height: 2.75rem; background-color: var(--bg); border: 1px solid #414552; border-radius: .4rem; padding: .5rem .65rem; }
input::placeholder { color: var(--muted); }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.secondary { cursor: pointer; min-height: 2.75rem; border-radius: .4rem; padding: .5rem .85rem; border: 1px solid #505361; background: var(--panel); font-weight: 650; }
.secondary:hover { border-color: var(--accent); }
.notice button { cursor: pointer; }
.count, .notice { color: var(--muted); font-size: .9375rem; }
.race-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.race-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem .65rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.race-row:hover { background: var(--panel); }
.race-row:hover strong { color: var(--accent); }
.race-row small { display: block; font-size: .875rem; color: var(--muted); }
.race-row time { color: var(--muted); font-size: .875rem; }
.season { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.more { margin-top: 1.25rem; }
.back { display: inline-block; margin-bottom: 1.2rem; font-size: .9375rem; font-weight: 650; text-underline-offset: .2em; }
.detail-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
  margin-bottom: 1.2rem;
  font-size: .9375rem;
}

.detail-navigation .back { margin: 0; }
.detail-navigation .back::before { content: '← '; }
.detail-navigation > a:last-child { color: var(--muted); }
.hero-inner .detail-navigation { justify-content: center; }

.race-hero {
  background: linear-gradient(180deg, #101116ab, #10111615 47%, #101116b0 100%),
    var(--race-backdrop, url('./race-placeholder.jpg')) center 45% / cover;
  background-color: #2a323d;
}
.race-hero:not(:has(.podium)) { min-height: clamp(16rem, 35vw, 27rem); }
.hero-inner { padding-top: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.hero-inner > p { margin-top: .65rem; }
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  max-width: 68rem;
  gap: clamp(.2rem, .85vw, .65rem);
  margin: clamp(.9rem, 3vw, 2rem) auto 0;
  isolation: isolate;
}

.portrait { position: relative; height: clamp(3.6rem, 13vw, 8rem); overflow: hidden; }
.portrait::before, .portrait::after { position: absolute; content: ''; background: #323743; left: 50%; translate: -50%; }
.portrait::before { top: 5%; width: 37%; max-width: 3.5rem; height: 61%; border-radius: 48%; }
.portrait::after { bottom: -17%; width: 78%; max-width: 8rem; height: 65%; border-radius: 48% 48% 0 0; }

.podium .portrait {
  height: clamp(5.5rem, 31vw, 19rem);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.podium-1 .portrait { height: clamp(6.25rem, 34vw, 21rem); }

.podium .portrait::before { width: 42%; max-width: none; }
.podium .portrait::after { width: 96%; max-width: none; }

.podium-block {
  position: relative;
  display: grid;
  align-content: start;
  gap: .18rem;
  min-height: 5.25rem;
  margin-top: -.5rem;
  padding: .5rem .3rem .6rem;
  background: #232631;
  border-top: 3px solid #a2abb8;
  border-radius: .3rem .3rem 0 0;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.podium-1 .podium-block { min-height: 7rem; border-color: #edbd63; background: #362d25; }
.podium-3 .podium-block { min-height: 4.85rem; border-color: #d8896b; }
.podium-block b { font-size: clamp(1.05rem, 3.5vw, 1.6rem); }
.podium-block span { font-size: .875rem; color: var(--muted); }

@media (max-width: 38rem) {
  .podium-block { margin-top: -.3rem; padding-inline: .2rem; }
  .podium-block strong { font-size: clamp(.75rem, 3.4vw, .95rem); }
  .podium-block span { font-size: .72rem; }
}


.results { padding-block: 1rem 3rem; }
.table-scroll { margin-top: 1.25rem; overflow: auto; border: 1px solid var(--line); border-radius: .5rem; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
table :is(td, th) { padding: .75rem 1rem; }
thead { background: var(--panel); }
tbody tr { border-top: 1px solid var(--line); }
.footer { padding-block: 1.25rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
body:has(#home:not([hidden])) > .footer { display: none; }

@media (max-width: 62rem) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav { column-gap: 1rem; }
}

.nav-toggle { display: none; }

@media (max-width: 56rem) {
  .header-inner { gap: 0 .65rem; min-height: 4.25rem; }
  .header .brand { gap: .55rem; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .nav-toggle-icon {
    width: 1rem;
    height: .75rem;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }
  .nav-toggle[aria-expanded="true"] { border-color: var(--accent); }
  .header nav {
    flex: 0 0 100%;
    flex-direction: column;
    margin-bottom: .75rem;
    padding: .25rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: var(--panel);
  }
  .nav-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .header nav a { min-height: 2.75rem; padding: .65rem .85rem; border-radius: .3rem; }
  .header nav a:is(:hover, [aria-current]) { background: var(--bg); }
  .header nav [aria-current]::after { inset: .5rem auto .5rem 0; width: 3px; height: auto; }
}

@media (max-width: 38rem) {
  .shell { width: calc(100% - 1.5rem); }
  .archive, .section-content { padding-block: 1.75rem 2.5rem; }
  h1 { font-size: clamp(1.8rem, 7.5vw, 2.7rem); overflow-wrap: anywhere; }
  .race-hero { background-position: center, 9% center; }
  .filters { gap: .85rem; margin-top: 1.25rem; padding: .9rem; }
  .filters label:first-child { grid-column: 1 / -1; }
  .filters :is(input, select, button) { font-size: 1rem; }
  .filters button[type="reset"] { grid-column: 1 / -1; justify-self: start; }
  .race-row { grid-template-columns: 3rem minmax(0, 1fr); gap: .25rem .7rem; padding: .85rem .45rem; overflow-wrap: anywhere; }
  .table-scroll { max-width: 100%; }
  table :is(td, th) { padding: .65rem .7rem; }
  .race-row time { grid-column: 2; }
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 9rem;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.loader::before {
  content: '';
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loader-spin .8s linear infinite;
}

.loader-inline {
  justify-content: flex-start;
  min-height: 2.75rem;
}

.loader-inline::before {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

@keyframes loader-spin {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .loader::before { animation: none; }
}

.catalog-filters {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) auto;
}

.catalog-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.catalog-meta {
  color: var(--muted);
  font-size: .875rem;
}

.catalog-block {
  margin-top: 2.5rem;
}

.catalog-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: .85rem 1.5rem;
}

.circuit-profile-backdrop {
  display: grid;
  align-content: end;
  min-height: clamp(18rem, 34vw, 32rem);
  padding-block: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(0deg, #101116fa 0%, #101116ba 36%, #1011161a 80%),
    var(--circuit-backdrop) center / cover #2a323d;
}

.circuit-profile-backdrop h1 { font-size: clamp(1.9rem, 5vw, 4.25rem); }
.circuit-profile-backdrop .catalog-facts dt { color: #dddfe5; }
.circuit-profile-content > .catalog-block:first-child { margin-top: 0; }

.catalog-profile:has(.profile-portrait) {
  grid-template-columns: clamp(4rem, 16vw, 8rem) minmax(0, 1fr);
}

.catalog-profile h1 {
  overflow-wrap: anywhere;
}

.catalog-profile:has(.profile-portrait) h1 {
  align-self: center;
}

.profile-portrait {
  height: clamp(5rem, 18vw, 8rem);
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--panel);
}

.catalog-facts {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: .75rem 1.75rem;
  margin: 0;
}

.catalog-facts dt {
  color: var(--muted);
  font-size: .875rem;
}

.catalog-facts dd {
  margin: 0;
  font-weight: 650;
}

@media (max-width: 62rem) {
  .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 38rem) {
  .catalog-profile { gap: .85rem; }
  .catalog-row { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .catalog-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .catalog-block { margin-top: 1.75rem; }
}

@media (max-width: 23rem) {
  .filters, .catalog-filters { grid-template-columns: minmax(0, 1fr); }
}

.driver-seasons > :is(thead, tbody) > tr > :is(th, td) {
  vertical-align: middle;
}

.driver-season-year {
  color: var(--accent);
}

.driver-season-teams {
  width: 100%;
  min-width: 7rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.driver-seasons > tbody > tr > :last-child {
  white-space: normal;
}
.season-position { display: inline-flex; align-items: center; gap: .28rem; }

.standing-status {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.standing-status:hover { border-color: var(--accent); color: var(--text); }
.standing-status svg { width: 1rem; height: 1rem; }

.standing-status-dialog {
  width: min(25rem, calc(100% - 2rem));
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
  color: var(--text);
  white-space: normal;
}

.standing-status-dialog::backdrop { background: #101116b8; }


.season-action {
  min-height: 2.75rem;
  padding: .35rem .55rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--panel);
  cursor: pointer;
  line-height: 1.2;
}

.season-action:hover,
.season-action[aria-expanded="true"] {
  border-color: var(--accent);
}

.driver-season-races .table-scroll {
  margin-top: 0;
}

.driver-season-races table td:first-child {
  white-space: normal;
}

.standing-highlight {
  background: var(--panel);
  box-shadow: inset 3px 0 var(--accent);
}

@media (max-width: 42rem) {
  .driver-seasons { min-width: 27rem; font-size: .875rem; }
  .driver-seasons > thead > tr > th:first-child,
  .driver-season-year {
    position: sticky;
    left: 0;
    background: var(--bg);
    box-shadow: 1px 0 var(--line);
  }
  .driver-seasons .season-action { min-width: 2.75rem; }
}

.archive-entry {
  padding: .85rem .65rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.entry-title {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
}

.entry-title:hover,
.entry-context a:hover {
  color: var(--accent);
}

.entry-context {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .875rem;
}

.entry-context a { text-underline-offset: .2em; }

.race-table :is(th, td):nth-child(n+3) {
  white-space: normal;
  min-width: 8rem;
}
.title-seasons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
}

.title-seasons a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding-inline: .75rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
}

@media (max-width: 38rem) {
  .archive-entry { padding-inline: .45rem; }
}

.portrait-with-assets::before,
.portrait-with-assets::after { display: none; }

.portrait-layers {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 1 / 1.05;
  transform: translateX(-50%);
}

.portrait-layers img {
  position: absolute;
  left: 50%;
  height: auto;
  transform: translateX(-50%);
}

.portrait-suit { width: 100%; top: var(--suit-top); }
.portrait-suit:is([data-suit="williams-1993"], [data-suit="williams-1990s"]) {
  z-index: 1;
}

.portrait-head { width: var(--head-width, 68%); top: var(--head-top); }

.podium .portrait-layers:has(.portrait-suit) .portrait-head {
  top: calc(var(--head-top) + 2.5%);
  clip-path: inset(0 0 6% 0);
}

.portrait-suit-front { z-index: 1; }

.portrait-layers-historic .portrait-head,
.podium .portrait-layers-historic:has(.portrait-suit) .portrait-head {
  top: var(--head-top);
  clip-path: none;
}

.portrait-layers .portrait-head-photo {
  left: 53.3%;
  --photo-mask: polygon(43% 8.6%, 48% 7.9%, 54% 9%, 59% 11%, 62% 14%, 63.5% 19%, 62% 27%, 61.5% 28%, 60.5% 32%, 56.5% 36%, 52% 39%, 50% 45%, 40% 45%, 34% 40%, 31% 34%, 30% 29%, 31.7% 21%, 34.8% 15%, 38.5% 11%);
  transform-origin: 46% 28%;
  transform: translateX(-50%) rotate(-8deg);
  clip-path: var(--photo-mask);
}

.portrait-layers-historic .portrait-head-photo,
.podium .portrait-layers-historic:has(.portrait-suit) .portrait-head-photo {
  top: var(--head-top);
  clip-path: var(--photo-mask);
}

.portrait-credit { color: var(--muted); font-size: .75rem; margin-block: .6rem 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-hero {
  display: grid;
  align-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  min-height: calc(100svh - 5rem);
  padding-block: clamp(2.5rem, 7vw, 6rem);
  background: url('./home-hero-collage.jpg') center / cover #14151b;
}

.home-panel {
  display: grid;
  justify-items: center;
  gap: clamp(.85rem, 1.8vw, 1.65rem);
  max-width: 67rem;
  padding: clamp(1.05rem, 2.8vw, 2.5rem);
  border: 1px solid #ffffff2d;
  border-radius: 1.2rem;
  background: #101116a6;
  backdrop-filter: blur(6px);
}

.home-intro {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(.85rem, 1.8vw, 1.65rem);
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-shadow: 0 3px 6px #000d, 0 0 24px #000c;
}

.home-search { position: relative; width: min(100%, 38rem); }

.home-search::before {
  content: '';
  position: absolute;
  top: .95rem;
  left: 1rem;
  width: .68rem;
  height: .68rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}

.home-search::after {
  content: '';
  position: absolute;
  top: 1.68rem;
  left: 1.83rem;
  width: .45rem;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.home-search input {
  min-height: 3.125rem;
  padding-left: 2.65rem;
  background: var(--panel);
  box-shadow: 0 5px 22px #0009;
}

.home-results {
  position: absolute;
  inset: calc(100% + .35rem) 0 auto;
  z-index: 1;
  max-height: min(21rem, 52vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--panel);
  box-shadow: 0 .7rem 2rem #0008;
  text-align: left;
}

.home-results ul { margin: 0; padding: 0; list-style: none; }
.home-results li + li { border-top: 1px solid var(--line); }
.home-results p { margin: .75rem; }
.home-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  text-decoration: none;
}
.home-results a:hover, .home-results a:focus-visible { background: var(--bg); }
.home-results a:focus-visible { outline-offset: -2px; }
.home-results small { display: block; color: var(--muted); font-size: .875rem; }

.home-stats {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.home-stats:empty, .home-summary:empty { display: none; }
.home-summary { width: 100%; }

.home-stats a {
  display: grid;
  justify-items: center;
  gap: .2rem;
  padding: .65rem .5rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #191b23e8;
  text-align: center;
  text-decoration: none;
}
.home-stats a:hover { border-color: var(--accent); }
.home-stats strong {
  color: var(--accent);
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.home-latest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #191b23db;
}

.home-latest img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.6;
  object-fit: cover;
  border-radius: .35rem;
}

.home-latest h2 {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: normal;
}

.home-latest h3 { margin: .35rem 0 0; font-size: clamp(1.25rem, 3vw, 2rem); }
.home-latest h3 a { text-decoration: none; }
.home-latest p { margin: .15rem 0 .65rem; color: var(--muted); }
.home-race-link { color: var(--accent); font-weight: 650; }

@media (max-width: 38rem) {
  .home-hero {
    padding-block: clamp(6rem, 24vw, 8rem) 4rem;
    background-image: url('./home-hero-collage-mobile.jpg');
    background-position: center top;
  }
  .home-panel { border-radius: .8rem; }
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-latest { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}

.country-flag {
  display: inline-block;
  inline-size: 1.15em;
  block-size: .8625em;
  margin-inline-end: .36em;
  vertical-align: -.05em;
  border-radius: 2px;
  outline: 1px solid #fff3;
}

.constructor-logo {
  display: inline-grid;
  place-items: center;
  width: 2.65em;
  height: 1.5em;
  margin-inline-end: .36em;
  vertical-align: middle;
}

.constructor-logo-image {
  box-sizing: border-box;
  width: 82%;
  height: 84%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

:is(table, .entry-title) .constructor-logo {
  width: 2.15em;
  height: 1.2em;
}

:is(table, .entry-title) .constructor-logo-image { width: 74%; }


.catalog-profile h1 .constructor-logo {
  width: 1.7em;
  height: .75em;
}

.catalog-profile h1 .constructor-logo:empty { display: none; }

.podium-block .constructor-logo {
  width: 2em;
  height: 1.2em;
}

.constructor-logo-light-backing {
  padding: .12em .18em;
  border-radius: .2em;
  background: #dce0e7;
}

.constructor-logo-invert { filter: invert(1); }
.constructor-logo-compact { max-width: 50px; }

.with-car-history h1 .constructor-logo {
  width: 3.25rem;
  height: 1.5rem;
}

.car-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.car-period {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--panel);
}

.car-period img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: var(--bg);
}

.car-period-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .55rem;
  padding: 1rem;
}

.car-period-years {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
}

.car-period h3 { margin: 0; }
.car-period p { margin: 0; }
.car-model { color: var(--muted); font-size: .875rem; }

.car-period-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: auto;
  padding-top: .5rem;
  font-weight: 650;
}

.car-period-links a { padding-block: .35rem; }
