@font-face{font-family:TXR2;src:url('../fonts/txr2-caption.woff2') format('woff2');font-display:swap}
.content table{border-collapse:collapse;width:100%;margin:18px 0;font-size:14px}.content th,.content td{border:1px solid #555;padding:9px 11px;text-align:left;vertical-align:top}.content th{background:#393939;color:#eee}.content tr:nth-child(even){background:#171717}.image-placeholder{min-height:180px;border:1px solid #777;border-radius:6px;background:#181818;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#ddd;margin:20px 0}.image-placeholder strong{font:18px TXR2,Arial,sans-serif}.image-placeholder span{font:13px Arial,sans-serif;color:#aaa}.logo-placeholder{min-height:130px}.car-placeholder{min-height:200px}@media(max-width:500px){.content table{font-size:12px}.content th,.content td{padding:6px}}
.content table{border-collapse:separate;border-spacing:8px 7px;margin-left:-8px;width:calc(100% + 16px)}.content th,.content td{border:0;border-radius:9px;background:#3c3c3e;padding:7px 12px}.content th{color:#eee;font-family:TXR2,Arial,sans-serif;font-size:13px;font-weight:normal;text-align:center}.content td:first-child{width:42%;font-weight:bold;text-align:center;color:#dedede}.content td:not(:first-child){background:#29292b}.content tr:nth-child(even){background:transparent}.content td a{color:#fff}.content td a:hover,.content td a:focus-visible{color:#fff;background:#a61f20;outline:2px solid #eee;outline-offset:2px;border-radius:4px}
:root{color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:#000;color:#ccc;font-family:Arial,sans-serif;font-size:16px;line-height:1.65}.screen{max-width:960px;margin:0 auto;padding:22px clamp(20px,7vw,90px) 40px}.screen-header{text-align:center;border-bottom:2px solid #bbb}.screen-header h1{font:normal clamp(23px,4vw,33px)/1 TXR2,Arial,sans-serif;color:#b30000;margin:8px 0 4px;letter-spacing:.04em}.menu{width:min(100%,440px);margin:20px auto 17px;border:2px solid #bdbdbd;border-radius:7px;padding:17px 7px 10px;position:relative}.menu-title{position:absolute;left:50%;top:-17px;transform:translateX(-50%);min-width:220px;text-align:center;border:2px solid #bdbdbd;border-radius:7px;background:#000;font:24px/1.15 TXR2,Arial,sans-serif;color:#ddd;padding:2px 12px}.row{display:block;text-align:center;border-radius:9px;background:#3c3c3e;color:#ccc;text-decoration:none;margin:8px 0;font:18px/1.25 TXR2,Arial,sans-serif;padding:4px 10px}.row.selected{background:#a61f20;color:#eee}.row:hover{background:#676767;color:#fff}.row.selected:hover{background:#bd2728}.row:focus-visible{outline:2px solid #fff;outline-offset:3px}.help{border-top:2px solid #bdbdbd;text-align:center;padding:8px 0 15px;font:14px/1.45 TXR2,Arial,sans-serif;letter-spacing:.02em}.help span{display:inline-block;background:#343434;border-radius:5px;padding:2px 10px}.content{border:1px solid #777;border-radius:6px;padding:20px clamp(18px,4vw,34px);max-width:700px;margin:6px auto 0;color:#d1d1d1}.content h1,.content h2,.content h3{font-family:TXR2,Arial,sans-serif;line-height:1.3;color:#eee}.content h1{font-size:24px;margin:0 0 15px}.content h2{font-size:18px;margin:30px 0 10px}.content p{margin:0 0 14px}.content a{color:#fff;text-decoration-color:#b72b2b;text-underline-offset:3px}.content a:hover{color:#ff8e8e}.content blockquote{border-left:3px solid #ac2727;margin:18px 0;padding:2px 16px;color:#bbb}.content ul{padding-left:23px}footer{text-align:center;font-size:12px;color:#777;margin-top:25px}@media(max-width:500px){.screen{padding:16px}.row{font-size:15px}.menu-title{font-size:20px;min-width:180px;top:-14px}.content{font-size:15px}.screen-header h1{font-size:22px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* Use the project caption font across the complete documentation preview. */
body, .content, .content table, .content th, .content td, .image-placeholder span, footer { font-family: TXR2, Arial, sans-serif; }

/* Keep wide parts tables usable on smaller screens. */
.content table {
    display: block;
    overflow-x: auto;
}

/* Preserve image proportions and keep images inside the content panel. */
.content img {
    max-width: 100%;
    height: auto;
}

/* Frame car and rival captures while keeping their original proportions. */
.content img[src*="/assets/cars/"],
.content img[src*="/assets/rivals/"] {
    padding: 6px;
    border: 1px solid #aaa;
    border-radius: 10px;
    background: #000;
}

.content img[src*="/team-logos/"] {
    max-width: min(100%, 64px);
}

.content a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* World 1 road map: road segments and starts remain clickable. */
.course-map {
    display: block;
    width: min(100%, 560px);
    height: auto;
    max-height: 85vh;
    margin: 20px auto;
    background: #111;
    border: 1px solid #777;
}

.course-map path {
    fill: none;
    stroke: #bbb;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    pointer-events: stroke;
}

.course-map a:hover path,
.course-map a:focus-visible path {
    stroke: #f33;
    stroke-width: 4;
}

.course-map .course-start circle {
    fill: #c62122;
    stroke: white;
    stroke-width: 1;
}

.car-filters:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
}

.car-filters button {
    min-width: 44px;
    border: 1px solid #777;
    border-radius: 7px;
    padding: 6px 10px;
    background: #3c3c3e;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.car-filters button[aria-pressed="true"] {
    background: #a61f20;
}

.car-filters button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Give articles and tables room on large screens without widening the menu. */
.screen {
    max-width: 1520px;
    padding-inline: clamp(16px, 4vw, 60px);
}

.content {
    max-width: 1320px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.content td:first-child {
    width: auto;
}

.course-map {
    width: min(100%, 1000px);
}

@media (max-width: 500px) {
    .screen {
        padding-inline: 12px;
    }

    .content {
        padding-inline: 12px;
    }

    .content table {
        max-width: calc(100% + 16px);
    }
}

/* Keep detailed rival calculations available without overwhelming new players. */
.rival-technical-toggle {
    border: 1px solid #888;
    border-radius: 7px;
    padding: 7px 12px;
    background: #3c3c3e;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.rival-technical-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.part-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 18px 0 8px;
}

.part-filter select {
    max-width: 100%;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #888;
    border-radius: 7px;
    background: #3c3c3e;
    color: #fff;
    font: inherit;
}

.part-filter select:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Display each logo from the supplied sheet without stretching the artwork. */
.team-logo-sheet {
    display: block;
    width: min(100%, 64px);
    height: auto;
}

.sound-toggle:not([hidden]) {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #777;
    border-radius: 7px;
    background: #3c3c3e;
    color: #fff;
    cursor: pointer;
}

.screen-header { position: relative; }
.screen-header h1 { margin-inline: 48px; }
.sound-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle[aria-pressed="false"] .sound-on-icon,
.sound-toggle[aria-pressed="true"] .sound-off-icon { display: none; }
.sound-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.content .garage-launch {
  display: inline-block;
  padding: .65rem 1rem;
  border: 1px solid #aaa;
  border-radius: .4rem;
  background: #34343a;
  color: #fff;
  text-decoration: none;
}

.content .garage-launch:hover,
.content .garage-launch:focus-visible {
  background: #9a2028;
}
