/* F1 notes. Loaded after style.css. Racing red is the accent; telemetry stays on the site cyan. */

.f1-body {
  --f1-red: #e10600;
  --f1-red-text: #ff8a80;
  --f1-cyan: #67e8f9;
  background-image:
    radial-gradient(ellipse 70% 42% at 50% -18%, rgba(225, 6, 0, 0.16), transparent),
    radial-gradient(circle 520px at 100% 8%, rgba(56, 189, 248, 0.08), transparent),
    radial-gradient(circle 420px at 0% 28%, rgba(225, 6, 0, 0.05), transparent);
}

.f1-shell {
  max-width: 1040px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.8rem;
  background: var(--f1-red);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.f1-kicker {
  margin: 0 0 0.45rem;
  color: var(--f1-red-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.f1-byline,
.f1-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.f1-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin: 0.35rem 0 0.9rem;
}

.f1-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 68ch;
}

.f1-layout {
  display: block;
}

.toc {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1rem;
  background: rgba(17, 23, 38, 0.75);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.toc summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ol {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.toc a:hover {
  color: var(--f1-cyan);
}

.f1-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  min-width: 0;
}

.f1-prose h2,
.f1-prose h3 {
  scroll-margin-top: 5.5rem;
}

.f1-prose > p,
.f1-prose > ul,
.f1-prose > ol,
.f1-prose > h2,
.f1-prose > h3,
.f1-prose > .lede {
  max-width: 68ch;
}

.f1-prose ul,
.f1-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.f1-prose li {
  margin-bottom: 0.4rem;
}

.f1-prose li::marker {
  color: var(--f1-red-text);
}

.f1-prose a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.f1-prose :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.f1-prose pre {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: #0b1220;
  border: 1px solid var(--border);
  border-left: 3px solid var(--f1-cyan);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.f1-prose pre code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tyre compounds. Text carries the name; color is the second channel. */
.tyre {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: baseline;
}

.tyre-soft {
  background: rgba(225, 6, 0, 0.16);
  color: #ff8a80;
  border-color: rgba(225, 6, 0, 0.5);
}

.tyre-medium {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
}

.tyre-hard {
  background: rgba(248, 250, 252, 0.1);
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.38);
}

.tyre-inter {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.45);
}

.tyre-wet {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
}

.table-scroll {
  overflow-x: auto;
  margin: 1.35rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.f1-prose .table-scroll table {
  display: table;
  width: 100%;
  min-width: 32rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.f1-prose caption {
  caption-side: bottom;
  padding: 0.7rem 1rem 0.85rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.delta-fast {
  color: #6ee7b7;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.delta-slow {
  color: #ffb4a8;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.telemetry {
  margin: 1.5rem 0;
  padding: 0.35rem 0.35rem 0.15rem;
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.95), rgba(9, 13, 22, 0.9));
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.telemetry .table-scroll {
  margin: 0;
  border: 0;
  background: transparent;
}

.telemetry figcaption {
  padding: 0.7rem 0.85rem 0.35rem;
  color: var(--f1-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telemetry td,
.telemetry th {
  font-variant-numeric: tabular-nums;
}

.telemetry td {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

blockquote.radio {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem 0.9rem;
  max-width: 68ch;
  background: rgba(225, 6, 0, 0.06);
  border: 1px solid rgba(225, 6, 0, 0.28);
  border-left: 4px solid var(--f1-red);
  border-radius: 0 12px 12px 0;
}

.radio-label {
  margin: 0 0 0.35rem;
  color: var(--f1-red-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

blockquote.radio p {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

blockquote.radio footer {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: normal;
}

blockquote.radio cite {
  font-style: normal;
  color: var(--text);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin: 1.35rem 0 1.6rem;
}

.strategy-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 23, 38, 0.72) 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--f1-red);
  border-radius: 12px;
}

.strategy-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.strategy-kicker,
.strategy-laps,
.strategy-risk {
  margin: 0;
}

.strategy-kicker {
  color: var(--f1-red-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.strategy-laps {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--f1-cyan);
}

.strategy-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.strategy-risk {
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.f1-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.f1-list .card h3 {
  color: var(--text);
  font-size: 1.28rem;
}

.f1-topic {
  margin: 0 0 0.35rem;
  color: var(--f1-red-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.f1-end {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  max-width: 68ch;
}

@media (min-width: 960px) {
  .f1-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: 5.25rem;
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .f1-prose {
    font-size: 1rem;
  }

  .lede {
    font-size: 1.05rem;
  }
}

/* ==========================================================
   Wind Tunnel Airflow Simulation & Data Check Components
   ========================================================== */

.windtunnel-box {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.5rem;
  margin: 1.75rem 0;
  background: linear-gradient(180deg, #0b111e 0%, #080d17 100%);
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.windtunnel-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(56, 189, 248, 0.12) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.6;
}

.windtunnel-stream {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--f1-cyan), transparent);
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.8);
  animation: windflow 3.5s linear infinite;
}

.windtunnel-stream.stream-1 { top: 22%; width: 140px; animation-duration: 2.8s; animation-delay: 0s; }
.windtunnel-stream.stream-2 { top: 44%; width: 180px; animation-duration: 3.4s; animation-delay: 0.8s; }
.windtunnel-stream.stream-3 { top: 68%; width: 120px; animation-duration: 2.4s; animation-delay: 1.5s; }
.windtunnel-stream.stream-4 { top: 88%; width: 160px; animation-duration: 3.1s; animation-delay: 0.4s; }

.windtunnel-stream.red {
  background: linear-gradient(90deg, transparent, var(--f1-red), transparent);
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.7);
}

.windtunnel-stream.stream-red-1 { top: 35%; width: 110px; animation-duration: 3s; animation-delay: 1.1s; }
.windtunnel-stream.stream-red-2 { top: 78%; width: 150px; animation-duration: 2.6s; animation-delay: 1.9s; }

@keyframes windflow {
  0% {
    transform: translateX(-150px);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(1100px);
    opacity: 0;
  }
}

.windtunnel-content {
  position: relative;
  z-index: 2;
}

/* Data Check Pulsing Card */
.data-check {
  margin: 2rem 0;
  padding: 1.4rem 1.4rem 1.25rem;
  background: linear-gradient(180deg, #12090b 0%, #0a0608 100%);
  border: 1px solid rgba(225, 6, 0, 0.45);
  border-radius: 14px;
  position: relative;
  box-shadow: 0 0 25px rgba(225, 6, 0, 0.15);
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% {
    border-color: rgba(225, 6, 0, 0.45);
    box-shadow: 0 0 18px rgba(225, 6, 0, 0.15);
  }
  50% {
    border-color: rgba(225, 6, 0, 0.95);
    box-shadow: 0 0 35px rgba(225, 6, 0, 0.35);
  }
}

.data-check-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(225, 6, 0, 0.25);
}

.data-check-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--f1-red);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.data-check-sub {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--f1-red-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Technical Diagram Card */
.diagram-card {
  margin: 1.85rem 0;
  background: #090e18;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.diagram-screen {
  background: radial-gradient(circle at 50% 30%, #111a2d 0%, #060910 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.diagram-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(103, 232, 249, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(103, 232, 249, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.diagram-caption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

