/*
 * Team Crack Platoon — site-wide styles
 *
 * Organization (source order):
 * 1. Design tokens, reset, shared layout, and homepage sections.
 * 2. Shared components, navigation, menus, and archive surfaces.
 * 3. Team directory, search, profiles, forms, and member dashboard.
 * 4. Consent, footer, themes, accessibility, and responsive refinements.
 * 5. Vehicle archives, cursor controls, and final scoped overrides.
 *
 * Keep the cascade order intact: later scoped rules intentionally refine earlier base styles.
 */

@font-face {
  font-family: "Light Sport";
  src: url("/public/fonts/light-sport-demo.otf") format("opentype");
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}

:root {
  --ink: #080908;
  --paper: #f1f2eb;
  --lime: #0d972b;
  --racing-red: #fe0504;
  --muted: #9aa098;
  --line: rgba(241, 242, 235, 0.2);
  --dark-line: rgba(8, 9, 8, 0.16);
  --display: "Light Sport", "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "DM Mono", monospace;
  --roster-designation-font: "EB Garamond", Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.35;
  overflow-x: hidden;
}
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.scroll-progress {
  position: fixed;
  z-index: 30;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: transparent;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}
.site-header {
  position: fixed;
  z-index: 25;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 4vw;
  mix-blend-mode: screen;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 12px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
}
.desktop-nav {
  display: flex;
  gap: 32px;
}
.desktop-nav a,
.social-links a {
  color: var(--paper);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}
.desktop-nav a:after,
.text-link:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.3s ease;
}
.desktop-nav a:hover:after,
.desktop-nav a:focus-visible:after,
.text-link:hover:after {
  width: 100%;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  touch-action: manipulation;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--paper);
  margin: 4px 0;
}
.menu-toggle b {
  font-weight: 400;
  display: block;
  margin-top: 7px;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 24;
  padding: 130px 8vw;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu a {
  font-size: clamp(40px, 11vw, 100px);
  line-height: 0.9;
  color: var(--paper);
  text-decoration: none;
}
.mobile-menu a:hover {
  color: var(--lime);
}
.mobile-menu p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-light {
  background: var(--paper);
  color: var(--ink);
}
.hero {
  height: 100svh;
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 9, 8, 0.95) 0%,
      rgba(8, 9, 8, 0.52) 45%,
      rgba(8, 9, 8, 0.18) 100%
    ),
    url("/manus-storage/async-images/WdVOQzoZNQg3zEMv3AqPQV/image-1.webp") center/cover no-repeat;
  animation: heroZoom 14s ease-out both;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    linear-gradient(rgba(13, 151, 43, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 151, 43, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 45%, rgba(13, 151, 43, 0.18), transparent 24%),
    linear-gradient(0deg, rgba(8, 9, 8, 0.92), transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin: 0 auto 8vh;
}
.eyebrow,
.kicker,
.section-label,
.section-index,
.hero-caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  margin-bottom: 24px;
}
.signal-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--lime);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(72px, 12vw, 190px);
  line-height: 0.79;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 900px;
}
h1 em,
h2 span {
  color: var(--lime);
  font-style: normal;
}
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 50px;
  max-width: 800px;
}
.hero-intro {
  width: 270px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  color: rgba(241, 242, 235, 0.7);
}
.circle-link {
  width: 66px;
  height: 66px;
  border: 1px solid rgba(241, 242, 235, 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  text-decoration: none;
  font-size: 24px;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}
.circle-link:hover {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-45deg);
}
.hero-coordinates,
.hero-caption {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(241, 242, 235, 0.55);
}
.hero-coordinates {
  right: 4vw;
  bottom: 8vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.hero-caption {
  left: 4vw;
  bottom: 3vh;
}
.marquee-strip {
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 13px 0;
}
.marquee-strip div {
  animation: marquee 24s linear infinite;
  padding-right: 2rem;
}
.section-pad {
  padding: 26px 4vw 10vw;
}
.section-top {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--dark-line);
  padding-top: 14px;
  margin-bottom: 11vw;
}
.section-dark .section-top {
  border-color: var(--line);
}
.section-line {
  height: 1px;
  background: var(--dark-line);
  flex: 1;
}
.section-dark .section-line {
  background: var(--line);
}
.section-index {
  color: var(--lime);
}
.section-label {
  opacity: 0.65;
}
.mission-layout,
.team-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8vw;
}
.kicker {
  margin-bottom: 20px;
  opacity: 0.65;
}
.mission h2,
.machine h2,
.team h2,
.contact h2 {
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.mission-copy,
.team-copy {
  align-self: end;
  max-width: 380px;
  padding-bottom: 8px;
}
.mission-copy > p,
.team-copy > p,
.machine-head > p,
.newsletter > p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}
.text-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  margin-top: 40px;
  font-size: 14px;
  position: relative;
}
.text-link span {
  color: var(--lime);
  margin-left: 8px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12vw;
  border-top: 1px solid var(--dark-line);
}
.stat {
  padding-top: 16px;
}
.stat strong {
  display: block;
  font-size: clamp(55px, 9vw, 130px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.stat span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.machine {
  padding-bottom: 14vw;
}
.machine-head {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 8vw;
  align-items: end;
  margin-bottom: 7vw;
}
.machine-head .kicker {
  grid-column: 1/-1;
  margin-bottom: 0;
}
.machine-head h2 {
  grid-column: 1;
}
.machine-head > p {
  grid-column: 2;
  max-width: 290px;
  color: var(--muted);
}
.machine-visual {
  position: relative;
  aspect-ratio: 16/8;
  overflow: hidden;
  background: #151814;
}
.machine-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.75) contrast(1.05);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.machine-visual:hover img {
  transform: scale(1.05);
}
.machine-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 8, 0.65), transparent 45%, rgba(8, 9, 8, 0.3));
}
.visual-tag {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--lime);
  letter-spacing: 0.1em;
}
.tag-a {
  top: 16%;
  left: 6%;
}
.tag-b {
  top: 55%;
  right: 7%;
}
.tag-c {
  bottom: 10%;
  left: 43%;
}
.visual-cross {
  position: absolute;
  z-index: 2;
  inset: 20% 12%;
  border: 1px solid rgba(13, 151, 43, 0.4);
}
.visual-cross:before,
.visual-cross:after {
  content: "";
  position: absolute;
  background: var(--lime);
}
.visual-cross:before {
  width: 1px;
  height: 100%;
  left: 50%;
}
.visual-cross:after {
  height: 1px;
  width: 100%;
  top: 50%;
}
.team {
  padding-bottom: 12vw;
}
.team-copy {
  max-width: 360px;
}
.discipline-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
  border-top: 1px solid var(--dark-line);
  margin-top: 40px;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.team-panel {
  margin-top: 12vw;
  padding: 32px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.team-panel:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  right: 13%;
  top: -80px;
  opacity: 0.6;
}
.panel-number {
  font-size: clamp(100px, 20vw, 280px);
  line-height: 0.65;
  color: var(--lime);
  font-weight: 600;
  letter-spacing: -0.09em;
}
.team-panel .kicker {
  margin-bottom: 6px;
}
.team-panel p:last-child {
  font-family: var(--mono);
  font-size: 12px;
}
.square-link {
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 242, 235, 0.4);
  color: var(--paper);
  text-decoration: none;
  font-size: 22px;
  transition: 0.3s;
}
.square-link:hover {
  background: var(--lime);
  color: var(--ink);
}
.contact {
  padding-bottom: 3vw;
}
.contact-layout {
  min-height: 420px;
}
.newsletter {
  align-self: end;
  max-width: 390px;
}
.newsletter form {
  margin-top: 52px;
}
.newsletter label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  color: var(--muted);
}
.input-row {
  display: flex;
  border-bottom: 1px solid rgba(241, 242, 235, 0.6);
}
.input-row input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  flex: 1;
  padding: 14px 0;
}
.input-row input::placeholder {
  color: #677064;
}
.input-row button {
  border: 0;
  background: none;
  color: var(--lime);
  font-size: 26px;
  cursor: pointer;
  padding: 0 6px;
}
.input-row:focus-within {
  border-color: var(--lime);
}
.form-message {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  min-height: 18px;
  margin-top: 12px;
}
.form-message.error {
  color: #ff807d;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 10vw;
  padding: 30px 0 10px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.4fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.footer-brand img {
  width: 28px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.footer-links a {
  color: var(--paper);
  text-decoration: none;
}
.social-links {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.social-links a {
  font-family: var(--mono);
  font-size: 10px;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 20px 6vw;
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    min-height: 720px;
  }
  .hero-content {
    width: 88vw;
    margin-bottom: 10vh;
  }
  .hero-intro {
    width: 200px;
  }
  .hero-coordinates {
    right: 6vw;
  }
  .section-pad {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .section-top {
    margin-bottom: 22vw;
    gap: 10px;
  }
  .section-top .section-label:last-child {
    display: none;
  }
  .mission-layout,
  .team-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 15vw;
  }
  .mission h2,
  .machine h2,
  .team h2,
  .contact h2 {
    font-size: clamp(60px, 18vw, 120px);
  }
  .stat-grid {
    margin-top: 24vw;
    gap: 8px;
  }
  .stat strong {
    font-size: 16vw;
  }
  .stat span {
    font-size: 8px;
  }
  .machine-head {
    display: block;
    margin-bottom: 16vw;
  }
  .machine-head > p {
    margin-top: 40px;
  }
  .machine-visual {
    aspect-ratio: 1/1.15;
  }
  .visual-tag {
    font-size: 7px;
  }
  .tag-b {
    right: 5%;
    top: 52%;
  }
  .tag-c {
    left: 33%;
  }
  .team-panel {
    margin-top: 24vw;
    min-height: 200px;
    padding: 20px;
  }
  .panel-number {
    font-size: 35vw;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 24vw;
  }
  .social-links {
    justify-content: flex-start;
  }
  .contact {
    padding-bottom: 8vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-media,
  .marquee-strip div {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .machine-visual img {
    transition: none;
  }
  .mobile-menu {
    transition: none;
  }
}

::selection {
  background: var(--lime);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
.roster-cockpit {
  margin-top: 7vw;
  border-top: 1px solid var(--dark-line);
  padding-top: 24px;
}
.roster-head,
.team-directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.roster-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.roster-filter {
  border: 1px solid var(--dark-line);
  background: transparent;
  color: inherit;
  padding: 8px 11px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 0.25s;
}
.section-dark .roster-filter {
  border-color: var(--line);
  color: var(--paper);
}
.roster-filter:hover,
.roster-filter.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-line);
  margin: 30px 0 18px;
}
.member-card {
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  position: relative;
  transition:
    background 0.25s,
    transform 0.25s;
}
.member-card:hover {
  background: #fff;
  transform: translateY(-3px);
}
.member-card > span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  color: #7c817a;
}
.member-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.member-card p,
.directory-card > p:last-of-type {
  font-family: var(--mono);
  font-size: 9px;
  color: #6f756d;
  margin: 4px 0 0;
}
.member-avatar,
.directory-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  flex: none;
}
.cookie-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(8, 9, 8, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.cookie-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-card {
  width: min(660px, 100%);
  background: #fff;
  color: var(--ink);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  transform: translateY(24px);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}
.cookie-backdrop.is-visible .cookie-card {
  transform: none;
}
.cookie-mark {
  position: relative;
  width: 168px;
  height: 36px;
  align-self: start;
  margin-top: 2px;
  overflow: hidden;
  display: block;
}
.cookie-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.cookie-mark .cookie-logo-inverted {
  filter: invert(1);
  clip-path: inset(0 0 50% 0);
}
.cookie-card h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 5px 0 14px;
}
.cookie-card > div > p:not(.kicker) {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  max-width: 460px;
}
.cookie-preferences {
  margin-top: 18px;
  border-top: 1px solid var(--dark-line);
  padding-top: 14px;
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
}
.cookie-preferences label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cookie-preferences input {
  accent-color: var(--lime);
}
.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.cookie-button {
  padding: 12px 15px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  cursor: pointer;
}
.cookie-primary {
  background: var(--lime);
  border-color: var(--lime);
}
.cookie-secondary {
  background: transparent;
}
.cookie-button:hover {
  transform: translateY(-2px);
}
.detail-page {
  min-height: 100vh;
}
.detail-hero {
  min-height: 55vh;
  padding: 160px 4vw 80px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.detail-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 8, 0.95), rgba(8, 9, 8, 0.3)),
    url("/manus-storage/async-images/WdVOQzoZNQg3zEMv3AqPQV/image-1.webp") center/cover no-repeat;
  opacity: 0.75;
}
.detail-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin: auto;
}
.detail-hero h1 {
  font-size: clamp(70px, 12vw, 180px);
  max-width: 900px;
}
.detail-hero-copy > p:last-child {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  max-width: 390px;
  color: var(--muted);
  margin-top: 36px;
}
.detail-section {
  padding: 58px 4vw 10vw;
}
.timeline-tabs {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  margin-bottom: 10vw;
}
.timeline-tab {
  min-width: 150px;
  flex: 1;
  border: 0;
  background: transparent;
  color: #9ca099;
  padding: 20px 12px;
  text-align: left;
  cursor: pointer;
  transition: 0.25s;
  position: relative;
}
.timeline-tab strong {
  display: block;
  font-size: 30px;
  font-style: italic;
}
.timeline-tab span {
  font-family: var(--mono);
  font-size: 10px;
}
.timeline-tab:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 4px;
  background: var(--lime);
  transition: 0.3s;
}
.timeline-tab:hover,
.timeline-tab.is-active {
  color: var(--ink);
}
.timeline-tab.is-active:after {
  width: 100%;
}
.car-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 8vw;
}
.car-copy h2,
.season-head h2,
.sponsor-intro h2 {
  font-size: clamp(70px, 13vw, 180px);
  line-height: 0.8;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.car-copy > p:not(.kicker) {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  max-width: 320px;
}
.car-visual {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: #dfe1da;
}
.car-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 1s ease;
}
.car-visual:hover img {
  transform: scale(1.04);
}
.car-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 45%;
  height: 1px;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
  opacity: 0.8;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8vw;
  background: var(--ink);
  color: var(--paper);
}
.spec-card {
  padding: 26px;
  border-right: 1px solid var(--line);
  min-height: 130px;
}
.spec-card span,
.achievement-bar span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.spec-card strong {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 500;
  color: var(--lime);
  letter-spacing: -0.04em;
}
.achievement-bar {
  margin-top: 1px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 26px;
}
.achievement-bar .kicker {
  margin: 0;
}
.achievement-bar > div strong {
  display: block;
  color: var(--lime);
  font-size: 40px;
}
.achievement-bar span {
  margin: 5px 0 0;
}
.season-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 8vw;
}
.season-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.season-pill {
  border: 1px solid var(--dark-line);
  background: transparent;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}
.season-pill.is-active,
.season-pill:hover {
  background: var(--ink);
  color: var(--paper);
}
.team-directory-head {
  border-top: 1px solid var(--dark-line);
  padding-top: 20px;
  margin-bottom: 22px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-line);
}
.directory-card {
  background: var(--paper);
  padding: 20px;
  min-height: 230px;
  position: relative;
  transition:
    transform 0.3s,
    background 0.3s;
}
.directory-card:hover {
  background: white;
  transform: translateY(-4px);
}
.directory-card[hidden] {
  display: none;
}
.directory-card .directory-avatar {
  margin-bottom: 35px;
}
.directory-card .kicker {
  margin: 0 0 7px;
}
.directory-card h3 {
  font-size: 30px;
  line-height: 0.9;
  margin: 0 0 8px;
}
.directory-card > p:last-of-type {
  color: #686e66;
}
.directory-card > a {
  position: absolute;
  bottom: 18px;
  right: 18px;
  color: var(--ink);
  font-size: 24px;
  text-decoration: none;
}
.team-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 25px;
  margin: 10vw 0 0;
  border-top: 1px solid var(--dark-line);
  padding-top: 25px;
  align-items: start;
}
.team-quote span {
  color: var(--lime);
  font-size: 100px;
  line-height: 0.5;
}
.team-quote p {
  font-size: clamp(38px, 5vw, 80px);
  line-height: 0.9;
  max-width: 850px;
}
.sponsor-intro {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 8vw;
  align-items: end;
  margin-bottom: 10vw;
}
.sponsor-intro h2 {
  grid-row: span 2;
}
.sponsor-intro > p:last-child {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  max-width: 350px;
}
.sponsor-group {
  margin-top: 8vw;
}
.sponsor-group .section-top {
  margin-bottom: 3vw;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-line);
}
.sponsor-card {
  background: var(--paper);
  color: var(--ink);
  min-height: 150px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}
.sponsor-card:hover {
  background: var(--lime);
  transform: translateY(-4px);
}
.sponsor-symbol {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.6;
}
.sponsor-card strong {
  font-size: 28px;
  line-height: 0.9;
  text-transform: uppercase;
}
.sponsor-card span:last-child {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}
.sponsor-cta {
  margin-top: 10vw;
  border-top: 1px solid var(--dark-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 760px) {
  .roster-head,
  .team-directory-head,
  .sponsor-cta {
    display: block;
  }
  .roster-filters {
    margin-top: 18px;
  }
  .roster-grid {
    grid-template-columns: 1fr;
  }
  .cookie-backdrop {
    padding: 14px;
  }
  .cookie-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .cookie-mark {
    width: 38px;
    height: 38px;
  }
  .cookie-actions {
    justify-content: stretch;
  }
  .cookie-button {
    flex: 1;
  }
  .detail-hero {
    min-height: 68vh;
    padding: 140px 6vw 60px;
  }
  .detail-section {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .timeline-tab {
    min-width: 112px;
  }
  .timeline-tab strong {
    font-size: 23px;
  }
  .car-detail,
  .sponsor-intro {
    grid-template-columns: 1fr;
    gap: 14vw;
  }
  .car-copy h2,
  .season-head h2,
  .sponsor-intro h2 {
    font-size: 24vw;
  }
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-card {
    padding: 18px;
    min-height: 110px;
  }
  .spec-card strong {
    font-size: 9vw;
  }
  .achievement-bar {
    grid-template-columns: 1fr 1fr;
    padding: 18px;
    gap: 18px;
  }
  .season-head {
    display: block;
    margin-bottom: 18vw;
  }
  .season-switcher {
    margin-top: 24px;
  }
  .directory-grid,
  .sponsor-grid {
    grid-template-columns: 1fr 1fr;
  }
  .directory-card {
    min-height: 205px;
    padding: 14px;
  }
  .directory-card h3 {
    font-size: 23px;
  }
  .sponsor-card {
    min-height: 130px;
    padding: 15px;
  }
  .sponsor-card strong {
    font-size: 22px;
  }
  .team-quote {
    margin-top: 20vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-card,
  .cookie-backdrop,
  .member-card,
  .directory-card,
  .sponsor-card,
  .car-visual img {
    transition: none;
  }
}

.intro-preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition:
    transform 0.38s cubic-bezier(0.77, 0, 0.18, 1),
    opacity 0.4s ease;
}
.intro-preloader.is-complete {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.preloader-mark {
  display: grid;
  place-items: center;
  gap: 18px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.preloader-mark img {
  width: 76px;
  height: 76px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%,
  100% {
    transform: scale(0.8);
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 22px var(--lime));
  }
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.nav-dropdown-trigger span {
  color: var(--lime);
  display: inline-block;
  transition: transform 0.25s;
}
.nav-dropdown-menu {
  position: absolute;
  top: 25px;
  right: -18px;
  width: 190px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px;
  display: grid;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-dropdown:hover .nav-dropdown-trigger span,
.nav-dropdown:focus-within .nav-dropdown-trigger span {
  transform: rotate(45deg);
}
.nav-dropdown-menu a {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--dark-line);
}
.nav-dropdown-menu a:hover {
  color: var(--lime);
}
.nav-dropdown-label,
.nav-dropdown-disabled {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}
.nav-dropdown-label {
  color: #778070;
}
.nav-dropdown-disabled {
  color: #a6aaa2;
  cursor: not-allowed;
}
.mobile-nav-group {
  font-size: clamp(40px, 11vw, 100px);
  line-height: 0.9;
  color: var(--paper);
}
.mobile-nav-sub {
  display: grid;
  gap: 8px;
  margin-top: -10px;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--lime);
}
.mobile-nav-sub a,
.mobile-nav-sub .nav-dropdown-disabled {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}
.mobile-nav-sub .nav-dropdown-disabled {
  color: var(--muted);
}
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  animation: transitionIn 0.18s ease both;
}
.page-transition-overlay img {
  width: 68px;
  animation: transitionMark 1s ease-in-out infinite alternate;
}
@keyframes transitionIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.recruitment-intro {
  padding-top: 160px;
  padding-bottom: 11vw;
}
.recruitment-kicker {
  font-family: var(--mono);
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12vw;
}
.recruitment-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8vw;
  align-items: end;
}
.recruitment-grid h2,
.registration-heading h2 {
  font-size: clamp(74px, 12vw, 180px);
  line-height: 0.78;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.recruitment-grid h2 span,
.registration-heading h2 span {
  color: var(--lime);
}
.recruitment-lede {
  max-width: 370px;
}
.recruitment-lede > p,
.registration-heading > p:last-child {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}
.recruitment-info {
  padding: 26px 4vw 10vw;
}
.recruitment-info-inner {
  max-width: 1180px;
  margin: auto;
}
.brief-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 10vw;
  align-items: start;
}
.brief-grid h3 {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.88;
  font-weight: 500;
  text-transform: uppercase;
}
.brief-grid h3 em {
  color: var(--lime);
  font-style: normal;
}
.brief-grid > div > p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 360px;
  margin-top: 44px;
}
.timeline-list {
  border-top: 1px solid var(--line);
}
.timeline-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 5px 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-list span {
  grid-row: span 2;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
}
.timeline-list strong {
  font-size: 20px;
  font-weight: 500;
}
.timeline-list small {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
.requirements-section {
  padding-bottom: 12vw;
}
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-line);
}
.requirements-grid article {
  background: var(--paper);
  padding: 28px;
  min-height: 240px;
}
.requirements-grid article > span {
  font-family: var(--mono);
  font-size: 10px;
  color: #75816e;
}
.requirements-grid h3 {
  font-size: 44px;
  text-transform: uppercase;
  margin: 65px 0 10px;
  font-weight: 500;
}
.requirements-grid p {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: #687067;
}
.registration-section {
  padding: 90px 4vw 12vw;
}
.registration-inner {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 9vw;
}
.registration-heading {
  align-self: start;
  position: sticky;
  top: 100px;
}
.registration-heading > p:last-child {
  margin-top: 32px;
}
.registration-form {
  background: #121712;
  padding: 28px;
  border: 1px solid var(--line);
}
.form-section-label {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.payment-label {
  margin-top: 36px;
}
.payment-label span {
  float: right;
  color: var(--muted);
  letter-spacing: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.registration-form label {
  display: grid;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  border: 1px solid rgba(241, 242, 235, 0.23);
  background: #0a0d0a;
  color: var(--paper);
  padding: 13px;
  font: 12px var(--mono);
  outline: 0;
  border-radius: 0;
}
.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  border-color: var(--lime);
}
.registration-form textarea {
  resize: vertical;
}
.full-field {
  margin-top: 17px;
}
.payment-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 14px;
  padding: 4px;
  border: 1px solid rgba(241, 242, 235, 0.2);
  border-radius: 999px;
  background: rgba(241, 242, 235, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.16);
}
.payment-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.payment-mode-option {
  position: relative;
  min-width: 92px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 9px 16px;
  font: 700 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.payment-mode-option:hover,
.payment-mode-option:focus-visible {
  color: var(--paper);
  outline: none;
}
.payment-mode-option.is-active {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(13, 151, 43, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.cash-payment-note {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(13, 151, 43, 0.35);
  border-radius: 8px;
  background: rgba(13, 151, 43, 0.08);
  color: var(--muted);
  font: 10px/1.6 var(--mono);
}
.cash-payment-panel {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}
.cash-payment-option {
  width: 100%;
  background: transparent;
  text-align: left;
}
.cash-payment-option[aria-pressed="true"] {
  border-color: var(--lime);
  background: rgba(13, 151, 43, 0.08);
  box-shadow: 0 0 0 1px rgba(13, 151, 43, 0.18), 0 10px 24px rgba(0, 0, 0, 0.12);
}
.cash-payment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cash-payment-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cash-payment-fields input {
  width: 100%;
  border: 1px solid rgba(241, 242, 235, 0.18);
  background: rgba(241, 242, 235, 0.06);
  color: var(--paper);
  padding: 12px;
  font: 12px var(--mono);
}
.cash-payment-fields input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(13, 151, 43, 0.14);
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.payment-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(241, 242, 235, 0.18);
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.payment-option:has(input:checked) {
  border-color: var(--lime);
  background: rgba(13, 151, 43, 0.06);
}
.payment-option input {
  width: auto;
  accent-color: var(--lime);
}
.payment-option > span:last-child {
  display: grid;
  gap: 3px;
}
.payment-option strong {
  color: var(--paper);
  font-size: 12px;
}
.payment-option small {
  font-size: 8px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.payment-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 28px;
  font: 700 11px var(--mono);
  color: var(--ink);
  background: #f6f6ee;
}
.bkash-logo {
  background: #e2136e;
  color: #fff;
}
.nagad-logo {
  background: #f58220;
  color: #fff;
}
.rocket-logo {
  background: #8d2bbd;
  color: #fff;
}
.card-logo {
  font-size: 8px;
  background: #eee;
  color: #172552;
}
.bank-logo {
  background: #0d972b;
}
.registration-submit {
  width: 100%;
  border: 0;
  background: var(--lime);
  color: var(--ink);
  padding: 16px;
  margin-top: 24px;
  font: 500 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.registration-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.registration-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.registration-submit span {
  float: right;
  font-size: 18px;
  line-height: 0.5;
}
.registration-message {
  min-height: 30px;
  margin-top: 15px;
  font: 11px/1.6 var(--mono);
  color: var(--muted);
}
.registration-message.success {
  color: var(--lime);
}
.registration-message.error {
  color: #ff807d;
}
.registration-message strong {
  word-break: break-all;
}
.payment-disclaimer {
  font: 9px/1.6 var(--mono);
  color: #778078;
  margin-top: 10px;
}
.registration-form.is-complete .payment-option,
.registration-form.is-complete .registration-submit {
  opacity: 0.55;
}
@media (max-width: 760px) {
  .nav-dropdown {
    display: none;
  }
  .payment-mode-switch {
    width: 100%;
  }
  .payment-mode-option {
    flex: 1;
  }
  .cash-payment-fields {
    grid-template-columns: 1fr;
  }
  .mobile-nav-group {
    font-size: clamp(38px, 11vw, 70px);
  }
  .intro-preloader {
    padding: 20px;
  }
  .recruitment-intro {
    padding-top: 135px;
    padding-bottom: 22vw;
  }
  .recruitment-kicker {
    margin-bottom: 20vw;
  }
  .recruitment-grid,
  .brief-grid,
  .registration-inner {
    grid-template-columns: 1fr;
    gap: 18vw;
  }
  .recruitment-grid h2,
  .registration-heading h2 {
    font-size: 22vw;
  }
  .recruitment-info {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .brief-grid h3 {
    font-size: 13vw;
  }
  .brief-grid > div > p {
    margin-top: 30px;
  }
  .timeline-list {
    margin-top: 10px;
  }
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  .requirements-grid article {
    min-height: 190px;
  }
  .requirements-grid h3 {
    margin-top: 42px;
    font-size: 12vw;
  }
  .registration-section {
    padding: 70px 6vw 22vw;
  }
  .registration-heading {
    position: static;
  }
  .registration-form {
    padding: 18px;
    margin-top: 0;
  }
  .form-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }
  .payment-label span {
    float: none;
    display: block;
    margin-top: 7px;
  }
  .page-transition-overlay img {
    width: 58px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-mark img,
  .page-transition-overlay img {
    animation: none;
  }
  .intro-preloader,
  .page-transition-overlay {
    transition: none;
    animation: none;
  }
}

/* Header refinement */
.desktop-nav {
  align-items: center;
  gap: 30px;
}
.desktop-nav a,
.nav-dropdown-trigger {
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.nav-dropdown {
  display: flex;
  align-items: center;
  height: 24px;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}
.nav-dropdown-menu {
  width: 250px;
  right: -26px;
  top: 31px;
  padding: 16px;
  background: rgba(13, 18, 14, 0.92);
  color: var(--paper);
  border: 1px solid rgba(13, 151, 43, 0.42);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(13, 151, 43, 0.08),
    0 14px 42px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(13, 151, 43, 0.11);
}
.nav-dropdown-menu:before {
  content: "";
  position: absolute;
  top: -5px;
  right: 28px;
  width: 9px;
  height: 9px;
  background: rgba(13, 18, 14, 0.98);
  border-left: 1px solid rgba(13, 151, 43, 0.42);
  border-top: 1px solid rgba(13, 151, 43, 0.42);
  transform: rotate(45deg);
}
.nav-dropdown-label {
  color: var(--lime);
  font-size: 9px;
}
.nav-dropdown-menu a {
  color: var(--paper);
  border-top-color: rgba(241, 242, 235, 0.16);
  padding-top: 11px;
}
.recruitment-current {
  display: grid;
  gap: 8px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(241, 242, 235, 0.16);
}
.recruitment-history {
  display: grid;
  gap: 8px;
  padding-top: 11px;
}
.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: rgba(241, 242, 235, 0.68);
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.archive-item small {
  color: rgba(241, 242, 235, 0.38);
  font-size: 8px;
  white-space: nowrap;
}
.nav-dropdown-disabled {
  font-size: 9px;
}
.file-drop {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px dashed rgba(13, 151, 43, 0.5);
  background: rgba(13, 151, 43, 0.035);
  color: var(--paper);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}
.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop > span {
  font: 11px var(--mono);
  color: var(--lime);
  text-transform: none;
  letter-spacing: 0;
}
.file-drop small {
  font: 8px var(--mono);
  text-transform: none;
  color: var(--muted);
  letter-spacing: 0;
}
.file-drop:hover {
  background: rgba(13, 151, 43, 0.1);
  border-color: var(--lime);
}
.registration-form label {
  min-width: 0;
}
@media (max-width: 760px) {
  .desktop-nav {
    gap: 0;
  }
  .nav-dropdown-menu {
    display: none;
  }
  .desktop-nav a,
  .nav-dropdown-trigger {
    font-size: 13px;
  }
  .mobile-nav-group {
    font-size: clamp(38px, 11vw, 70px);
  }
}

/* Header navigation correction — scoped to the fixed header only */
.site-header .desktop-nav {
  gap: 28px;
  align-items: center;
}
.site-header .desktop-nav > a,
.site-header .nav-dropdown-trigger {
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: 0.12em;
}
.site-header .nav-dropdown-trigger {
  padding: 4px 0;
}
.site-header .nav-dropdown-menu {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(8, 9, 8, 0.18);
  border-radius: 6px;
  backdrop-filter: none;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.site-header .nav-dropdown-menu:before {
  background: #fff;
  border-color: rgba(8, 9, 8, 0.18);
}
.site-header .organisation-menu {
  width: min(326px, calc(100vw - 32px));
  right: 0;
  padding: 8px;
}
.site-header .organisation-option {
  color: var(--ink) !important;
  display: flex !important;
  align-items: flex-start;
  gap: 15px;
  padding: 13px 12px !important;
  white-space: normal;
}
.site-header .organisation-option:hover {
  background: rgba(13, 151, 43, 0.12);
  color: var(--ink) !important;
  transform: none;
}
.site-header .organisation-option > span {
  display: block;
  min-width: 0;
  flex: 1;
}
.site-header .organisation-option strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.05;
  color: var(--ink);
}
.site-header .organisation-option small {
  display: block;
  margin-top: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 9px;
  line-height: 1.35;
  color: #70776e;
}
.site-header .organisation-option > b {
  flex: 0 0 auto;
  color: var(--lime);
}
.site-header .recruitment-current,
.site-header .recruitment-history {
  color: var(--ink);
}
.site-header .nav-dropdown-menu a {
  color: var(--ink);
}
@media (max-width: 980px) {
  .site-header .desktop-nav {
    gap: 15px;
  }
  .site-header .desktop-nav > a,
  .site-header .nav-dropdown-trigger {
    font-size: 13px;
    letter-spacing: 0.08em;
  }
}

/* Teams page — intentionally mirrors the Cars detail rhythm */
.teams-cars-layout {
  padding-top: 58px;
}
.teams-cars-layout .timeline-tabs {
  margin-bottom: 8vw;
}
.teams-cars-detail {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 8vw;
  align-items: end;
  background: var(--ink);
  color: var(--paper);
  padding: 32px 26px;
  min-height: 250px;
}
.team-cars-copy .kicker {
  color: var(--lime);
  margin-bottom: 18px;
}
.team-cars-copy h2 {
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.78;
  font-weight: 500;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  margin: 0;
}
.team-cars-copy > p:last-child {
  font: 11px/1.65 var(--mono);
  color: var(--muted);
  max-width: 340px;
  margin-top: 28px;
}
/* Premium four-metric season readout. */
.team-cars-readout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(13, 151, 43, 0.28);
  border-radius: 14px;
  background: rgba(13, 151, 43, 0.18);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.team-cars-readout::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lime),
    rgba(13, 151, 43, 0.28),
    transparent
  );
  content: "";
  pointer-events: none;
}
.team-cars-readout > div {
  position: relative;
  min-width: 0;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(150deg, #151a15, #080908 78%);
}
.team-cars-readout > div:not(:last-child)::after {
  position: absolute;
  top: 18px;
  right: 0;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(241, 242, 235, 0.16), transparent);
  content: "";
}
.team-cars-readout span {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 9px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 242, 235, 0.62);
  white-space: nowrap;
}
.team-cars-readout span::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(13, 151, 43, 0.5);
  content: "";
}
.team-cars-readout strong {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 0.9;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.team-cars-readout > div:last-child strong {
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--lime);
}
.team-cars-section {
  margin-top: 8vw;
}
.team-cars-section-head {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 30px 7vw;
  align-items: end;
  margin-bottom: 34px;
}
.team-cars-section-head .kicker {
  grid-column: 1/-1;
  margin: 0;
}
.team-cars-section-head h3 {
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.8;
  font-weight: 500;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  margin: 0;
}
.team-cars-section-head h3 span {
  color: var(--lime);
}
.team-cars-section-head > p:last-child {
  font: 11px/1.7 var(--mono);
  color: #6d756c;
  max-width: 300px;
}
.team-management-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-line);
}
.team-management-card {
  background: var(--paper);
  color: var(--ink);
  padding: 16px;
  min-height: 300px;
  position: relative;
}
.team-management-card:hover {
  background: #fff;
}
.team-member-placeholder {
  height: 150px;
  background: linear-gradient(135deg, #d8ded1, #f7f8f2);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.team-member-placeholder:before,
.team-member-placeholder:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(8, 9, 8, 0.18);
  border-radius: 50%;
}
.team-member-placeholder:before {
  width: 130px;
  height: 130px;
}
.team-member-placeholder:after {
  width: 210px;
  height: 210px;
}
.team-member-placeholder span {
  z-index: 1;
  font: 18px var(--mono);
  color: var(--lime);
}
.team-member-placeholder i {
  position: absolute;
  width: 1px;
  height: 100%;
  background: rgba(8, 9, 8, 0.2);
  left: 50%;
}
.team-management-card .kicker {
  font-size: 8px;
  margin: 0 0 7px;
  color: var(--lime);
}
.team-management-card h3 {
  font-size: 28px;
  line-height: 0.9;
  font-weight: 500;
  margin: 0;
}
.team-role {
  font: 15px var(--roster-designation-font);
  color: #717971;
  margin-top: 8px;
}
.modules-section {
  margin-top: 12vw;
}
.team-module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--dark-line);
}
.team-module-card {
  background: #e7e9e1;
  color: var(--ink);
  padding: 20px;
  min-height: 250px;
}
.team-module-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--dark-line);
  padding-bottom: 16px;
}
.team-module-top > span {
  font: 10px var(--mono);
  color: #7b8278;
}
.team-module-top strong {
  font-size: 27px;
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 500;
}
.team-module-top em {
  font: 8px var(--mono);
  font-style: normal;
  text-transform: uppercase;
  color: var(--lime);
}
.team-module-lead {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0;
}
.team-module-lead span {
  background: var(--lime);
  padding: 5px 7px;
  font: 8px var(--mono);
  text-transform: uppercase;
}
.team-module-lead strong {
  font-size: 15px;
}
.team-module-people {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.team-module-people small {
  width: 100%;
  font: 8px var(--mono);
  text-transform: uppercase;
  color: #7b8278;
  margin-bottom: 1px;
}
.team-module-people > span {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(8, 9, 8, 0.17);
  padding: 5px 8px;
  font: 9px var(--mono);
}
.team-module-people i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: var(--ink);
  color: var(--lime);
  font: 7px var(--mono);
  font-style: normal;
}
.team-module-people.freelancers {
  margin-top: 18px;
  opacity: 0.68;
}
.team-module-people.freelancers > span {
  border-style: dashed;
}
@media (max-width: 760px) {
  .site-header .desktop-nav > a,
  .site-header .nav-dropdown-trigger {
    font-size: 13px;
  }
  .teams-cars-detail {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 28px;
  }
  .team-cars-readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 166px;
  }
  .team-cars-readout > div {
    padding: 16px 12px 14px;
    gap: 12px;
  }
  .team-cars-readout span {
    gap: 6px;
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .team-cars-readout span::before {
    width: 4px;
    height: 4px;
    flex-basis: 4px;
  }
  .team-cars-readout strong {
    font-size: clamp(26px, 8vw, 34px);
  }
  .team-cars-readout > div:last-child strong {
    font-size: clamp(13px, 3.8vw, 17px);
  }
  .team-cars-section-head {
    display: block;
  }
  .team-cars-section-head > p:last-child {
    margin-top: 24px;
  }
  .team-management-grid,
  .team-module-grid {
    grid-template-columns: 1fr;
  }
  .team-management-card {
    min-height: 270px;
  }
  .team-module-card {
    min-height: 235px;
  }
}

/* Direct-entry preview: keep the brand mark in the header, but do not block the homepage with a splash screen. */
.intro-preloader {
  display: grid !important;
}

/* Final scoped navigation + Teams refinements */
.site-header .desktop-nav {
  gap: 30px;
  align-items: center;
}
.site-header .desktop-nav > a,
.site-header .nav-dropdown-trigger {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.09em;
  white-space: nowrap;
}
.site-header .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--display);
  text-transform: uppercase;
  cursor: pointer;
}
.site-header .nav-dropdown-menu {
  background: #fff !important;
  color: var(--ink) !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(8, 9, 8, 0.2);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  width: min(340px, calc(100vw - 32px));
  padding: 8px;
  overflow: hidden;
}
.site-header .organisation-option {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px 12px !important;
  color: var(--ink) !important;
  white-space: normal !important;
  text-align: left;
  line-height: 1.1;
}
.site-header .organisation-option > span {
  display: block;
  min-width: 0;
  flex: 1;
}
.site-header .organisation-option strong {
  display: block;
  margin: 0;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-header .organisation-option small {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  color: #70776e;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-header .organisation-option > b {
  flex: 0 0 auto;
  color: var(--lime);
  font-size: 15px;
}
.site-header .organisation-option:hover,
.site-header .organisation-option:focus-visible {
  background: rgba(13, 151, 43, 0.12);
  color: var(--ink) !important;
  transform: none;
}
.site-header .recruitment-current,
.site-header .recruitment-history {
  color: var(--ink);
  padding: 10px 12px;
}
.site-header .nav-dropdown-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}
.site-header .nav-dropdown-disabled,
.site-header .archive-item {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  color: #70776e;
  white-space: normal;
}
.site-header .recruitment-current > a {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
  white-space: normal;
}
.site-header .archive-item {
  padding: 4px 0;
}
.teams-cars-layout .timeline-tabs {
  margin-bottom: 6vw;
}
.teams-cars-layout .timeline-tab strong {
  font-size: clamp(20px, 2.8vw, 30px);
  font-style: normal;
  text-transform: uppercase;
  white-space: nowrap;
}
.teams-cars-layout .timeline-tab span {
  display: block;
  margin-top: 4px;
  color: inherit;
}
@media (max-width: 1100px) {
  .site-header .desktop-nav {
    gap: 20px;
  }
  .site-header .desktop-nav > a,
  .site-header .nav-dropdown-trigger {
    font-size: 16px;
    letter-spacing: 0.07em;
  }
}
@media (max-width: 760px) {
  .site-header .desktop-nav {
    display: none;
  }
  .teams-cars-layout .timeline-tabs {
    margin-bottom: 18vw;
  }
  .teams-cars-layout .timeline-tab {
    min-width: 145px;
  }
  .teams-cars-layout .timeline-tab strong {
    font-size: 21px;
  }
}

/* Dropdown bug fix: explicit opaque surfaces and contained two-line menu items. */
.site-header .nav-dropdown-menu,
.site-header .nav-dropdown-menu.organisation-menu {
  position: absolute;
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  background-color: #fff !important;
  background-image: none !important;
  color: #080908 !important;
  opacity: 1;
  isolation: isolate;
}
.site-header .nav-dropdown-menu::before,
.site-header .nav-dropdown-menu.organisation-menu::before {
  background: #fff !important;
  border-left-color: rgba(8, 9, 8, 0.2) !important;
  border-top-color: rgba(8, 9, 8, 0.2) !important;
}
.site-header .organisation-menu {
  padding: 8px !important;
  display: block !important;
}
.site-header .organisation-menu .organisation-option {
  display: flex !important;
  box-sizing: border-box;
  min-width: 0;
}
.site-header .organisation-menu .organisation-option > span {
  display: block !important;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.site-header .organisation-menu .organisation-option strong,
.site-header .organisation-menu .organisation-option small {
  display: block !important;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal !important;
}
.site-header .nav-dropdown:not(.organisation-dropdown) .nav-dropdown-menu {
  padding: 14px !important;
  display: grid !important;
  gap: 10px !important;
}
.site-header .nav-dropdown:not(.organisation-dropdown) .recruitment-current,
.site-header .nav-dropdown:not(.organisation-dropdown) .recruitment-history {
  display: grid !important;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  overflow: hidden;
}
.site-header .nav-dropdown:not(.organisation-dropdown) .nav-dropdown-label,
.site-header .nav-dropdown:not(.organisation-dropdown) .nav-dropdown-disabled,
.site-header .nav-dropdown:not(.organisation-dropdown) .archive-item,
.site-header .nav-dropdown:not(.organisation-dropdown) .archive-item small {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
}
.site-header .nav-dropdown:not(.organisation-dropdown) .archive-item {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
@media (max-width: 760px) {
  .site-header .nav-dropdown-menu {
    right: 0;
    max-width: calc(100vw - 24px);
  }
}

/* Teams archive: match the Cars timeline and detail rhythm. */
.teams-cars-layout .timeline-tabs {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  margin-bottom: 8vw;
}
.teams-cars-layout .timeline-tab {
  min-width: 150px;
  flex: 1;
  text-align: left;
  padding: 20px 12px;
}
.teams-cars-layout .timeline-tab strong {
  display: block;
  font-size: 30px;
  font-style: italic;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.teams-cars-layout .timeline-tab span {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
}
.teams-cars-layout .timeline-tab:after {
  height: 4px;
}
.teams-cars-layout #team-season-content {
  display: block;
}
.teams-cars-layout .team-cars-detail {
  margin-top: 0;
}
.teams-cars-layout .team-cars-copy h2 {
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .teams-cars-layout .timeline-tab {
    min-width: 150px;
  }
  .teams-cars-layout .timeline-tab strong {
    font-size: 24px;
  }
}

/* Footer system — AMZ-inspired information architecture, Team Crack Platoon visual language. */
.site-footer {
  margin-top: 10vw;
  padding: 52px 0 18px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.85fr 0.95fr 0.7fr;
  gap: 42px 34px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.footer-about {
  grid-column: span 1;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 0.88;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--paper);
}
.footer-brand img {
  width: 34px;
  height: 34px;
}
.footer-about > p,
.footer-column > p:not(.footer-heading) {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 250px;
  margin: 24px 0 0;
}
.footer-heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 20px;
}
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.footer-column a {
  color: var(--paper);
  text-decoration: none;
  transition:
    color 0.2s,
    transform 0.2s;
}
.footer-column a:hover {
  color: var(--lime);
  transform: translateX(4px);
}
.footer-action {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
  border-bottom: 1px solid var(--lime);
  padding-bottom: 7px;
  width: max-content;
}
.footer-action span {
  color: var(--lime);
}
.footer-socials {
  display: flex;
  gap: 9px;
  margin-top: 26px;
}
.footer-social-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 242, 235, 0.35);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.footer-social-icon:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.footer-legal {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 1050px) {
  .site-footer {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px 28px;
  }
  .footer-pages {
    grid-column: 3;
  }
  .footer-legal {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 38px 22px;
    margin-top: 24vw;
    padding-top: 34px;
  }
  .footer-about,
  .footer-newsletter {
    grid-column: 1/-1;
  }
  .footer-pages {
    grid-column: auto;
  }
  .footer-legal {
    grid-column: 1/-1;
    display: grid;
    gap: 8px;
  }
  .footer-about > p {
    max-width: 330px;
  }
}

/* Sponsor / partner logo rails — supplied Team Crack Platoon sponsor assets with uniform animated presentation. */
.footer-logo-rails {
  grid-column: 1/-1;
  display: grid;
  gap: 18px;
  margin-top: 18px;
  overflow: hidden;
}
.footer-logo-rail {
  min-width: 0;
  border-top: 1px solid rgba(241, 242, 235, 0.16);
  padding-top: 13px;
}
.footer-rail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-rail-heading i {
  height: 1px;
  background: var(--line);
  flex: 1;
}
.footer-rail-heading small {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.footer-logo-track {
  display: flex;
  width: max-content;
  animation: footerLogoRail 30s linear infinite;
}
.footer-logo-track-reverse {
  animation-name: footerLogoRailReverse;
  animation-duration: 34s;
}
.footer-logo-set {
  display: flex;
  gap: 10px;
  padding-right: 10px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  min-width: 158px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(13, 151, 43, 0.28);
  color: rgba(241, 242, 235, 0.82);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.footer-logo b {
  color: var(--lime);
  font-weight: 600;
  margin-left: 5px;
}
.footer-logo:hover {
  background: rgba(13, 151, 43, 0.1);
  border-color: var(--lime);
  color: var(--paper);
}
.footer-logo-rail:hover .footer-logo-track,
.footer-logo-track:focus-within {
  animation-play-state: paused;
}
@keyframes footerLogoRail {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes footerLogoRailReverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-logo-track,
  .footer-logo-track-reverse {
    animation: none;
  }
}
@media (max-width: 760px) {
  .footer-rail-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
  }
  .footer-rail-heading i {
    display: none;
  }
  .footer-rail-heading small {
    width: 100%;
  }
  .footer-logo {
    min-width: 142px;
    height: 44px;
    font-size: 13px;
    padding: 0 14px;
  }
}

/* Mobile header + footer rail hardening. */
@media (max-width: 760px) {
  .mobile-menu {
    overflow-y: auto;
    overflow-x: hidden;
  }
  .organisation-mobile-sub {
    width: min(100%, 360px);
    max-width: 100%;
    box-sizing: border-box;
  }
  .organisation-mobile-sub a {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }
  .organisation-mobile-sub a small {
    display: block;
    width: 100%;
    max-width: 100%;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.35;
    color: var(--muted);
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .footer-logo-rails {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .footer-logo-track {
    max-width: none;
  }
  .footer-logo-set {
    flex-shrink: 0;
  }
}

/* Carousel resilience: prevent flex compression and preserve the moving rails at every width. */
.footer-logo-rail {
  display: block;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.footer-logo-track {
  display: flex;
  flex: none;
  width: max-content;
  min-width: max-content;
  will-change: transform;
  animation-fill-mode: both;
}
.footer-logo-set {
  display: flex;
  flex: 0 0 auto;
  min-width: max-content;
}
.footer-logo {
  flex: 0 0 158px;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  .footer-logo-rail {
    width: 100%;
    overflow: hidden;
  }
  .footer-logo-track {
    width: max-content;
    min-width: max-content;
  }
  .footer-logo-set {
    flex: 0 0 auto;
  }
  .footer-logo {
    flex-basis: 142px;
  }
}

/* Uploaded payment brand assets */
.payment-option .payment-logo {
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 34px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  border-radius: 4px;
  background: #fff;
}
.payment-option .bkash-logo {
  background: #fff;
}
.payment-option .nagad-logo {
  background: #fff;
}
.payment-option .rocket-logo {
  background: #fff;
}
.payment-option .card-logo {
  background: #fff;
}
.payment-option .bank-logo {
  background: #fff;
}
.payment-option:has(input:checked) .payment-logo {
  box-shadow: 0 0 0 1px rgba(13, 151, 43, 0.45);
}
@media (max-width: 760px) {
  .payment-option .payment-logo {
    flex-basis: 52px;
    width: 52px;
    height: 38px;
    padding: 4px;
  }
}

/* Team leadership portraits and designation hierarchy. */
.team-member-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  position: relative;
  z-index: 1;
  filter: saturate(0.9) contrast(1.03);
}
.team-management-card .team-role {
  font: 700 16px/1.35 var(--roster-designation-font);
  color: #000;
  margin-top: 9px;
  letter-spacing: 0.02em;
}
.team-management-card h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .team-member-placeholder {
    height: 180px;
  }
  .team-management-card .team-role {
    font-size: 15px;
  }
}

/* Full portrait presentation: shared by current and future season leadership cards. */
.team-member-placeholder {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  align-items: stretch;
}
.team-member-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(135deg, #d8ded1, #f7f8f2);
}
@media (max-width: 760px) {
  .team-member-placeholder {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* Team Crack Platoon permanent racing system. */
:root {
  --racing-red: #fe0504;
}
.preloader-mark img {
  width: min(360px, 70vw);
  height: auto;
  clip-path: inset(0 100% 0 0);
  animation:
    tcpLogoReveal 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) both,
    tcpLogoGlow 1.8s ease-in-out 1.2s infinite alternate;
}
.preloader-mark span {
  color: var(--racing-red);
  letter-spacing: 0.22em;
}
.brand img {
  width: 170px;
  height: auto;
  max-height: 38px;
  object-fit: contain;
}
.brand span,
.footer-brand span {
  display: none;
}
.footer-brand img {
  width: min(230px, 100%);
  height: auto;
  max-height: 52px;
  object-fit: cover;
}
.marquee-strip {
  background: var(--racing-red);
  color: #fff;
}
.text-link span,
.footer-action span {
  color: var(--racing-red);
}
.team-panel:before {
  border-color: var(--racing-red);
}
.footer-logo {
  min-width: 158px;
  height: 58px;
  padding: 8px 18px;
  border-color: rgba(13, 151, 43, 0.35);
  background: rgba(255, 255, 255, 0.035);
  justify-content: center;
}
.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 132px;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.88;
  transition:
    filter 0.25s,
    opacity 0.25s,
    transform 0.25s;
}
.footer-logo:hover {
  border-color: var(--racing-red);
  background: rgba(254, 5, 4, 0.1);
}
.footer-logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
@keyframes tcpLogoReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}
@keyframes tcpLogoGlow {
  from {
    filter: drop-shadow(0 0 4px rgba(13, 151, 43, 0.25));
  }
  to {
    filter: drop-shadow(0 0 22px rgba(254, 5, 4, 0.55));
  }
}
@media (max-width: 760px) {
  .brand img {
    width: 142px;
    max-height: 32px;
  }
  .footer-brand img {
    width: min(250px, 100%);
  }
  .site-footer > div:nth-of-type(3) {
    padding-right: 10px;
  }
  .site-footer > div:nth-of-type(4) {
    padding-left: 10px;
  }
  .footer-logo {
    min-width: 142px;
    height: 52px;
    padding: 7px 13px;
  }
  .footer-logo img {
    max-width: 116px;
    max-height: 36px;
  }
}

/* Shared payment interaction and Allowance form states. */
.registration-submit {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}
.registration-submit:hover {
  background: var(--racing-red);
  color: #fff;
  filter: none;
}
.registration-form .field-missing input,
.registration-form .field-missing select,
.registration-form .field-missing textarea,
.registration-form .field-missing .file-drop,
.registration-form .field-missing.payment-option {
  border-color: var(--racing-red) !important;
  box-shadow:
    0 0 0 1px rgba(254, 5, 4, 0.25),
    0 0 16px rgba(254, 5, 4, 0.12);
}
.validation-badge {
  display: inline-block;
  border: 1px solid var(--racing-red);
  padding: 8px 10px;
  color: var(--racing-red) !important;
  background: rgba(254, 5, 4, 0.08);
  animation: validationPulse 0.35s ease;
}
.allowance-date-label {
  margin-top: 36px;
}
.allowance-date-label span {
  float: right;
  color: var(--muted);
  letter-spacing: 0;
}
.date-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 17px;
}
.date-grid input[readonly] {
  color: var(--lime);
  border-color: rgba(13, 151, 43, 0.38);
  cursor: default;
}
@keyframes validationPulse {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-3px);
  }
  70% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}
@media (max-width: 760px) {
  .allowance-date-label span {
    float: none;
    display: block;
    margin-top: 7px;
  }
  .date-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Premium radial dial navigation — presentation-only override; existing links/state remain unchanged. */
@media (max-width: 760px) {
  html.menu-open,
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  .site-header {
    z-index: 35;
  }
  .menu-toggle {
    position: relative;
    z-index: 36;
    display: block;
    cursor: pointer;
    will-change: transform;
  }
  .mobile-menu {
    z-index: 30;
    inset: 0;
    padding: 112px 8vw 34px;
    display: flex;
    background:
      radial-gradient(circle at 100% 0%, rgba(13, 151, 43, 0.16), transparent 42%),
      radial-gradient(circle at 78% 84%, rgba(254, 5, 4, 0.07), transparent 36%), #080908;
    clip-path: circle(0% at 100% 0%);
    transform: none;
    visibility: hidden;
    pointer-events: none;
    transition:
      clip-path 0.72s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.72s;
    will-change: clip-path;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
    max-height: 100dvh;
    scrollbar-width: none;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu::-webkit-scrollbar {
    display: none;
  }
  .mobile-menu:before,
  .mobile-menu:after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(13, 151, 43, 0.25);
    border-radius: 50%;
    transform: translate3d(0, 0, 0);
  }
  .mobile-menu:before {
    width: 84vw;
    height: 84vw;
    right: -40vw;
    top: -35vw;
    box-shadow:
      0 0 0 1px rgba(254, 5, 4, 0.08),
      0 0 80px rgba(13, 151, 43, 0.08);
  }
  .mobile-menu:after {
    width: 58vw;
    height: 58vw;
    right: -27vw;
    top: -22vw;
    border-color: rgba(254, 5, 4, 0.26);
  }
  .mobile-menu.is-open {
    clip-path: circle(150% at 100% 0%);
    visibility: visible;
    pointer-events: auto;
    transition:
      clip-path 0.78s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0s;
  }
  .mobile-menu nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 12px;
    perspective: 900px;
    transform: translate3d(0, 0, 0);
  }
  .mobile-menu nav > a,
  .mobile-menu nav > .mobile-nav-group {
    position: relative;
    display: block;
    width: max-content;
    max-width: 92vw;
    font-size: clamp(30px, 9.4vw, 68px);
    line-height: 0.88;
    letter-spacing: -0.04em;
    text-shadow: 0 0 0 transparent;
    opacity: 0;
    transform: translate3d(72px, -28px, 0) rotate(10deg) scale(0.86);
    transition:
      transform 0.72s cubic-bezier(0.16, 1.25, 0.3, 1),
      opacity 0.34s ease,
      color 0.22s ease,
      text-shadow 0.22s ease;
    will-change: transform, opacity;
  }
  .mobile-menu nav > a:after,
  .mobile-menu nav > .mobile-nav-group:after {
    content: "";
    position: absolute;
    inset: -10px -18px;
    border: 1px solid transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-8deg) scaleX(0.25);
    opacity: 0;
    transition:
      transform 0.28s ease,
      opacity 0.22s ease,
      border-color 0.22s ease;
    pointer-events: none;
  }
  .mobile-menu nav > a:hover,
  .mobile-menu nav > a:focus-visible,
  .mobile-menu nav > .mobile-nav-group:hover {
    color: #0d972b;
    text-shadow: 0 0 18px rgba(13, 151, 43, 0.62);
  }
  .mobile-menu nav > a:hover:after,
  .mobile-menu nav > a:focus-visible:after,
  .mobile-menu nav > .mobile-nav-group:hover:after {
    border-left-color: #fe0504;
    border-top-color: #fe0504;
    opacity: 1;
    transform: rotate(-8deg) scaleX(1);
  }
  .mobile-menu.is-open nav > a,
  .mobile-menu.is-open nav > .mobile-nav-group {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
  .mobile-menu.is-open nav > a:nth-child(1),
  .mobile-menu.is-open nav > .mobile-nav-group:nth-child(1) {
    transition-delay: 0.05s;
    margin-left: 2vw;
  }
  .mobile-menu.is-open nav > a:nth-child(2) {
    transition-delay: 0.1s;
    margin-left: 10vw;
  }
  .mobile-menu.is-open nav > a:nth-child(3) {
    transition-delay: 0.15s;
    margin-left: 18vw;
  }
  .mobile-menu.is-open nav > a:nth-child(4) {
    transition-delay: 0.2s;
    margin-left: 24vw;
  }
  .mobile-menu.is-open nav > .mobile-nav-group:nth-child(5) {
    transition-delay: 0.25s;
    margin-left: 18vw;
  }
  .mobile-menu.is-open nav > .mobile-nav-group:nth-child(7) {
    transition-delay: 0.3s;
    margin-left: 10vw;
  }
  .mobile-menu.is-open nav > a:nth-child(9) {
    transition-delay: 0.35s;
    margin-left: 2vw;
  }
  .mobile-menu nav > .mobile-nav-sub {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 7px;
    width: min(74vw, 330px);
    margin: -6px 0 3px 28vw;
    padding: 8px 0 8px 14px;
    border-left: 1px solid #0d972b;
    opacity: 0;
    transform: translate3d(34px, -10px, 0) rotate(3deg);
    transition:
      transform 0.52s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease;
    will-change: transform, opacity;
  }
  .mobile-menu.is-open nav > .mobile-nav-sub {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
  }
  .mobile-menu.is-open nav > .mobile-nav-sub:nth-child(6) {
    transition-delay: 0.34s;
  }
  .mobile-menu.is-open nav > .mobile-nav-sub:nth-child(8) {
    transition-delay: 0.39s;
  }
  .mobile-menu nav > .mobile-nav-sub a,
  .mobile-menu nav > .mobile-nav-sub .nav-dropdown-disabled {
    font: 10px/1.2 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper);
    text-decoration: none;
    transition:
      color 0.2s ease,
      transform 0.2s ease;
  }
  .mobile-menu nav > .mobile-nav-sub a:hover,
  .mobile-menu nav > .mobile-nav-sub a:focus-visible {
    color: #fe0504;
    transform: translateX(5px);
  }
  .mobile-menu nav > .mobile-nav-sub a small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.02em;
    text-transform: none;
  }
  .mobile-menu p {
    position: relative;
    z-index: 1;
    color: rgba(241, 242, 235, 0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none !important;
  }
  .mobile-menu nav > a,
  .mobile-menu nav > .mobile-nav-group,
  .mobile-menu nav > .mobile-nav-sub {
    transition: none !important;
    transform: none !important;
  }
}

/* Smart shutter header: fixed out of document flow to preserve CLS at every state. */
.site-header-shell {
  --shutter-rail-height: 30px;
  position: fixed;
  z-index: 35;
  inset: 0 0 auto;
  width: 100%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform 0.3s ease-in-out;
  will-change: transform;
  contain: layout paint;
}
.site-header-shell.is-hidden {
  transform: translate3d(0, -100%, 0);
}
.site-header-shell .site-header {
  position: relative;
  inset: auto;
  z-index: 2;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.3s ease-in-out,
    background-color 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}
.site-header-shell.is-top .site-header {
  mix-blend-mode: screen;
  background: transparent;
  border-bottom-color: transparent;
}
.site-header-shell.is-revealed .site-header {
  mix-blend-mode: normal;
  background: rgba(8, 9, 8, 0.9);
  border-bottom: 1px solid rgba(13, 151, 43, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header-shell.is-rail-visible .site-header {
  transform: translate3d(0, var(--shutter-rail-height), 0);
}
.sticky-sponsor-rail {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(8, 9, 8, 0.96);
  border-bottom: 1px solid transparent;
  transform: translate3d(0, -8px, 0);
  transition:
    height 0.3s ease-in-out,
    opacity 0.22s ease-in-out,
    transform 0.3s ease-in-out,
    border-color 0.3s ease;
  pointer-events: none;
}
.site-header-shell.is-rail-visible .sticky-sponsor-rail {
  height: var(--shutter-rail-height);
  opacity: 1;
  border-bottom-color: rgba(13, 151, 43, 0.28);
  transform: translate3d(0, 0, 0);
}
.sticky-sponsor-track {
  display: flex;
  width: max-content;
  height: var(--shutter-rail-height);
  align-items: center;
  animation: stickySponsorRail 30s linear infinite;
  will-change: transform;
}
.sticky-sponsor-set {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  flex: 0 0 auto;
  padding: 0 clamp(22px, 4vw, 64px);
}
.sticky-sponsor-logo {
  display: grid;
  place-items: center;
  flex: 0 0 76px;
  width: 76px;
  height: 18px;
  opacity: 0.78;
}
.sticky-sponsor-logo img {
  display: block;
  width: 76px;
  height: 18px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.88;
}
@keyframes stickySponsorRail {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@media (max-width: 760px) {
  .site-header-shell {
    --shutter-rail-height: 26px;
  }
  .sticky-sponsor-set {
    gap: 18px;
    padding: 0 20px;
  }
  .sticky-sponsor-logo,
  .sticky-sponsor-logo img {
    flex-basis: 58px;
    width: 58px;
    height: 15px;
  }
  .site-header-shell.is-rail-visible .site-header {
    transform: translate3d(0, var(--shutter-rail-height), 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header-shell,
  .site-header-shell .site-header,
  .sticky-sponsor-rail {
    transition: none;
  }
  .sticky-sponsor-track {
    animation: none;
  }
}

/* Premium shutter refinement: symmetric breathing room, 2.3x logos, and masked rail edges. */
.site-header-shell {
  --shutter-rail-height: 58px;
}
.site-header-shell .site-header {
  padding-top: 36px;
  padding-bottom: 36px;
}
.sticky-sponsor-rail {
  padding-inline: 4vw;
  border: 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 4vw,
    #000 calc(100% - 4vw),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 4vw,
    #000 calc(100% - 4vw),
    transparent 100%
  );
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}
.site-header-shell.is-rail-visible .sticky-sponsor-rail {
  border: 0;
}
.sticky-sponsor-rail::before,
.sticky-sponsor-rail::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 6vw;
  pointer-events: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.sticky-sponsor-rail::before {
  left: 0;
  background: linear-gradient(to right, rgba(8, 9, 8, 0.98), rgba(8, 9, 8, 0));
}
.sticky-sponsor-rail::after {
  right: 0;
  background: linear-gradient(to left, rgba(8, 9, 8, 0.98), rgba(8, 9, 8, 0));
}
.sticky-sponsor-track {
  animation-duration: 54s;
}
.sticky-sponsor-set {
  gap: clamp(20px, 3vw, 48px);
  padding-inline: 0;
}
.sticky-sponsor-logo,
.sticky-sponsor-logo img {
  flex-basis: 175px;
  width: 175px;
  height: 41px;
}
.sticky-sponsor-logo img {
  object-fit: contain;
  image-rendering: auto;
}
@media (max-width: 760px) {
  .site-header-shell {
    --shutter-rail-height: 48px;
  }
  .site-header-shell .site-header {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .sticky-sponsor-rail {
    padding-inline: 6vw;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 6vw,
      #000 calc(100% - 6vw),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 6vw,
      #000 calc(100% - 6vw),
      transparent 100%
    );
  }
  .sticky-sponsor-track {
    animation-duration: 60s;
  }
  .sticky-sponsor-set {
    gap: 18px;
    padding-inline: 0;
  }
  .sticky-sponsor-logo,
  .sticky-sponsor-logo img {
    flex-basis: 133px;
    width: 133px;
    height: 35px;
  }
  .sticky-sponsor-rail::before,
  .sticky-sponsor-rail::after {
    width: 9vw;
  }
}

/* Structural bug fix: sponsor rail and navigation occupy distinct stacked rows. */
.site-header-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  overflow: visible;
}
.site-header-shell.is-revealed::after {
  content: "";
  display: block;
  flex: 0 0 12px;
  width: 100%;
  background: rgba(8, 9, 8, 0.9);
}
.site-header-shell .sticky-sponsor-rail {
  position: relative;
  inset: auto;
  z-index: 10;
  order: 1;
  flex: 0 0 auto;
  width: 100%;
}
.site-header-shell .site-header {
  position: relative;
  z-index: 50;
  order: 2;
  flex: 0 0 auto;
  transform: none;
}
.site-header-shell.is-rail-visible .site-header {
  transform: none;
}
.site-header-shell .brand,
.site-header-shell .desktop-nav,
.site-header-shell .menu-toggle {
  position: relative;
  z-index: 50;
}
.site-header-shell .sticky-sponsor-rail::before,
.site-header-shell .sticky-sponsor-rail::after {
  display: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (max-width: 760px) {
  .site-header-shell.is-revealed::after {
    flex-basis: 10px;
  }
}

/* Dropdown visibility + native sponsor color restoration. */
.site-header-shell {
  z-index: 100;
  contain: layout;
  overflow: visible !important;
}
.site-header-shell .site-header,
.site-header-shell .desktop-nav,
.site-header-shell .nav-dropdown {
  overflow: visible !important;
}
.site-header-shell .site-header {
  z-index: 150;
}
.site-header-shell .nav-dropdown {
  position: relative;
  z-index: 200;
}
.site-header-shell .nav-dropdown-menu {
  z-index: 210 !important;
  overflow: visible !important;
}
.site-header-shell .nav-dropdown-menu,
.site-header-shell .nav-dropdown-menu.organisation-menu {
  isolation: isolate;
}
.site-header-shell .sticky-sponsor-logo img,
.site-header-shell .footer-logo img,
.footer-logo img,
.sponsor-logo-frame img {
  filter: none !important;
  opacity: 1 !important;
}
.sponsor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--dark-line);
}
.sponsor-logo-card {
  display: grid !important;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  min-height: 280px;
  background: var(--paper);
  color: var(--ink);
  padding: 16px;
  align-items: start;
}
.sponsor-logo-card:hover {
  background: #fff;
  color: var(--ink);
  transform: none;
}
.sponsor-logo-card .sponsor-symbol {
  font: 9px var(--mono);
  color: #788078;
  letter-spacing: 0.08em;
}
.sponsor-logo-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 112px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(8, 9, 8, 0.12);
}
.sponsor-logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 190px;
  max-height: 76px;
  object-fit: contain;
}
.sponsor-logo-card strong {
  font-size: 24px;
  line-height: 0.95;
  font-weight: 500;
  text-transform: uppercase;
}
.sponsor-logo-card > span:last-child {
  font: 9px var(--mono);
  color: #70776e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 760px) {
  .sponsor-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sponsor-logo-card {
    min-height: 230px;
    padding: 12px;
    gap: 10px;
  }
  .sponsor-logo-frame {
    height: 82px;
    padding: 12px;
  }
  .sponsor-logo-card strong {
    font-size: 17px;
  }
}

/* Final opaque shutter + standardized Teams profile grid. */
.site-header-shell,
.site-header-shell .site-header,
.site-header-shell .sticky-sponsor-rail,
.site-header-shell.is-revealed::after {
  background: #000 !important;
  background-color: #000 !important;
  background-image: none !important;
  mix-blend-mode: normal !important;
}
.site-header-shell .site-header,
.site-header-shell .sticky-sponsor-rail {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.site-header-shell.is-rail-visible .sticky-sponsor-rail {
  opacity: 1;
  background: #000 !important;
}
.site-header-shell.is-revealed .site-header {
  background: #000 !important;
}

.teams-cars-layout .team-management-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}
.teams-cars-layout .team-management-card {
  min-height: 0;
  padding: 14px;
}
.teams-cars-layout .team-member-placeholder {
  aspect-ratio: 4 / 5;
  height: auto;
  min-height: 0;
  margin-bottom: 16px;
  overflow: hidden;
}
.teams-cars-layout .team-member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #d8ded1;
}
.teams-cars-layout .team-management-card h3 {
  font-size: clamp(20px, 1.65vw, 28px);
  line-height: 0.92;
}
.teams-cars-layout .team-management-card .team-role {
  font-size: 14px;
  line-height: 1.35;
}
@media (max-width: 1100px) {
  .teams-cars-layout .team-management-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .teams-cars-layout .team-management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teams-cars-layout .team-management-card {
    padding: 12px;
  }
  .teams-cars-layout .team-member-placeholder {
    margin-bottom: 12px;
  }
  .teams-cars-layout .team-management-card h3 {
    font-size: 20px;
  }
}

/* Teams archive selector: fixed readable tracks for the 2017–2027 range. */
.teams-cars-layout .timeline-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: flex-start;
  scrollbar-width: thin;
}
.teams-cars-layout .timeline-tab {
  flex: 0 0 150px;
  min-width: 150px;
  box-sizing: border-box;
}
.teams-cars-layout .timeline-tab strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .teams-cars-layout .timeline-tab {
    flex-basis: 138px;
    min-width: 138px;
  }
  .teams-cars-layout .timeline-tab strong {
    font-size: 18px;
  }
}

/* Team contact overlays + mobile touch carousel. */
.teams-cars-layout .team-management-card {
  cursor: default;
}
.teams-cars-layout .team-member-placeholder {
  position: relative;
}
.team-email-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 7px;
  background: rgba(254, 5, 4, 0.25);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.team-email-overlay svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(8px);
  transition: transform 0.25s ease;
}
.team-email-overlay span {
  font: 9px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform 0.25s ease;
}
.team-management-card.has-photo:hover .team-email-overlay,
.team-management-card.has-photo:focus-within .team-email-overlay {
  opacity: 1;
  pointer-events: auto;
}
.team-management-card.has-photo:hover .team-email-overlay svg,
.team-management-card.has-photo:hover .team-email-overlay span,
.team-management-card.has-photo:focus-within .team-email-overlay svg,
.team-management-card.has-photo:focus-within .team-email-overlay span {
  transform: translateY(0);
}
.team-email-overlay:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -8px;
}
.teams-cars-layout .team-management-grid {
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.teams-cars-layout .team-management-card {
  scroll-snap-align: start;
}
.teams-cars-layout .timeline-tabs {
  gap: 1.5rem;
  padding-inline: 0.25rem;
  scroll-padding-inline: 0.25rem;
}
.teams-cars-layout .timeline-tab {
  flex: 0 0 150px;
  min-width: 150px;
  padding-inline: 4px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .teams-cars-layout .team-management-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 0 0 14px;
    background: transparent;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .teams-cars-layout .team-management-card {
    flex: 0 0 min(78vw, 320px);
    width: min(78vw, 320px);
    background: var(--paper);
    padding: 12px;
    box-sizing: border-box;
  }
  .teams-cars-layout .team-management-card:not(.has-photo) {
    display: none;
  }
  .teams-cars-layout .team-member-placeholder {
    aspect-ratio: 3 / 4;
    margin-bottom: 12px;
  }
  .teams-cars-layout .timeline-tabs {
    gap: 1.5rem;
    padding-bottom: 5px;
  }
  .teams-cars-layout .timeline-tab {
    flex-basis: 138px;
    min-width: 138px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .team-email-overlay,
  .team-email-overlay svg,
  .team-email-overlay span {
    transition: none;
  }
}

/* Requested portrait proportion: consistent 3:4 card media across desktop and mobile. */
.teams-cars-layout .team-member-placeholder {
  aspect-ratio: 3 / 4;
}
.teams-cars-layout .team-member-photo {
  object-fit: cover;
  object-position: top center;
}

/* International navigation selector. */
.language-dropdown {
  position: relative;
  margin-left: -16px;
}
.language-trigger {
  font-size: 14px !important;
  letter-spacing: 0.12em !important;
  padding: 5px 0;
}
.language-trigger span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--lime);
  transform: translateY(-1px);
}
.language-menu {
  min-width: 128px !important;
  width: 128px !important;
  right: 0 !important;
  left: auto !important;
  padding: 6px !important;
}
.language-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 9px;
  font: 700 14px var(--display);
  letter-spacing: 0.1em;
  text-align: left;
  cursor: pointer;
}
.language-option span {
  font: 8px var(--mono);
  color: #70776e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.language-option:hover,
.language-option:focus-visible,
.language-option.is-active {
  background: rgba(13, 151, 43, 0.12);
}
.language-option.is-active {
  color: var(--lime);
}

/* Teams: no painted empty grid cells and an accessible cross-season directory. */
.teams-cars-layout .team-management-grid {
  background: transparent;
}
.teams-cars-layout .team-management-card {
  background: #fff;
}
.team-member-placeholder {
  background: #fff;
}
.team-email-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding: 15px;
}
.team-email-overlay svg,
.team-email-overlay span {
  transform: translate(0, 0);
}
.team-email-overlay svg {
  width: 30px;
  height: 30px;
}
.team-email-overlay span {
  font-size: 8px;
}
.team-member-search {
  margin: 0 0 8vw;
  padding: 2rem !important;
  background-color: #fe0504 !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(8, 9, 8, 0.12);
}
.team-search-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.team-search-heading .kicker {
  margin: 0;
  color: #fff !important;
  font-weight: 800;
}
.team-search-heading > span {
  font: 700 10px var(--mono);
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.team-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: end;
}
.team-search-field,
.team-search-select {
  position: relative;
  display: grid;
  align-items: center;
  gap: 8px;
  border: 0 !important;
  background: transparent !important;
  min-height: 0;
  padding: 0 !important;
}
.team-search-field {
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto 48px;
}
.team-search-select {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 48px;
}
.team-search-field > .sr-only,
.team-search-select > .sr-only {
  position: static !important;
  grid-column: 1/-1;
  grid-row: 1;
  display: block;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  color: #fff !important;
  font: 700 10px/1.3 var(--mono);
  letter-spacing: 0.02em;
}
.team-search-field::before {
  content: "";
  grid-column: 1/-1;
  grid-row: 2;
  z-index: 0;
  width: 100%;
  height: 48px;
  border: 1px solid rgba(8, 9, 8, 0.18);
  border-radius: 8px;
  background: #fff;
  pointer-events: none;
}
.team-search-field svg {
  grid-column: 1;
  grid-row: 2;
  z-index: 1;
  justify-self: center;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #080908 !important;
  stroke-width: 2.4;
  flex: none;
}
.team-search-field input,
.team-search-select select {
  grid-row: 2;
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: #fff;
  color: #080908;
  font: 11px var(--mono);
  letter-spacing: 0.02em;
}
.team-search-field input {
  grid-column: 2;
  z-index: 1;
  height: 46px;
  padding: 0;
  background: transparent !important;
  color: #080908 !important;
  caret-color: #080908;
}
.team-search-field input::placeholder {
  color: #080908 !important;
  opacity: 1;
  font-weight: 500;
}
.team-search-field:focus-within::before {
  border-color: #080908;
  box-shadow: 0 0 0 2px rgba(8, 9, 8, 0.16);
}
.team-search-select select {
  grid-column: 1;
  padding: 0 13px;
  border: 1px solid rgba(8, 9, 8, 0.18);
  border-radius: 8px;
  background: #fff !important;
  color: #080908 !important;
  font-weight: 700;
  cursor: pointer;
}
.team-search-select:focus-within select {
  border-color: #080908;
  box-shadow: 0 0 0 2px rgba(8, 9, 8, 0.16);
}
.team-search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  background: transparent;
}
.team-search-empty {
  grid-column: 1/-1;
  padding: 14px 0;
  background: transparent !important;
  color: #fff !important;
  font: 700 10px var(--mono);
}
.team-search-result {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-height: 105px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  color: #080908;
}
.team-search-result-season,
.team-search-result small {
  display: block;
  font: 9px var(--mono);
  color: #70776e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.team-search-result strong {
  display: block;
  margin: 12px 0 5px;
  font-size: 22px;
  line-height: 0.9;
  text-transform: uppercase;
}
.team-search-result a,
.team-search-result-code {
  font: 16px var(--mono);
  color: var(--racing-red);
  text-decoration: none;
}
.team-search-result-code {
  font-size: 9px;
  color: var(--lime);
}
.section-light,
.section-light .team-module-card,
.teams-cars-layout .team-module-card,
.teams-cars-layout .team-management-card {
  background-color: #fff !important;
}
@media (max-width: 760px) {
  .language-dropdown {
    display: none;
  }
  .team-search-heading {
    display: block;
  }
  .team-search-heading > span {
    display: block;
    margin-top: 8px;
  }
  .team-member-search {
    padding: 18px !important;
  }
  .team-search-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .team-search-results {
    grid-template-columns: 1fr;
  }
}

/* Search avatars: photo-first, initials fallback, compact on every viewport. */
.team-search-result {
  align-items: center;
}
.team-search-avatar {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(8, 9, 8, 0.16);
  border-radius: 5px;
  background: #fff;
  color: var(--lime);
  font: 10px var(--mono);
}
.team-search-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-search-result-copy {
  min-width: 0;
  flex: 1;
}
.team-search-result-copy strong {
  overflow-wrap: anywhere;
}
.language-dropdown {
  margin-left: 0 !important;
  order: -1;
}
.language-trigger {
  font-size: 18px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.09em !important;
  padding: 0 !important;
}
.language-menu {
  left: 0 !important;
  right: auto !important;
}
@media (max-width: 1100px) {
  .language-trigger {
    font-size: 16px !important;
    letter-spacing: 0.07em !important;
  }
}
@media (max-width: 760px) {
  .team-search-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 4px;
  }
  .team-search-result {
    gap: 10px;
    padding: 12px;
  }
  .team-search-result strong {
    font-size: 18px;
  }
  .team-search-result a {
    flex: 0 0 auto;
  }
}

/* Persistent dark/light theme control. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: 600 18px/1.1 var(--display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.theme-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--lime);
  font: 16px/1 var(--mono);
}
.theme-toggle-label {
  font: inherit;
}
html[data-theme="light"] body {
  background: #fff;
  color: #080908;
}
html[data-theme="light"] .section-light {
  background: #fff;
  color: #080908;
}
html[data-theme="light"] .mobile-menu {
  background: #080908;
  color: #f1f2eb;
}
html[data-theme="light"] .theme-toggle {
  color: #fff;
}
html[data-theme="light"] .team-member-search,
html[data-theme="light"] .team-search-result,
html[data-theme="light"] .team-management-card,
html[data-theme="light"] .team-module-card {
  background: #fff;
}

/* Member profile modal. */
.member-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.member-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.member-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.member-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  width: min(860px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.member-modal.is-open .member-modal-card {
  transform: none;
}
.member-modal-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(8, 9, 8, 0.22);
  background: #fff;
  color: var(--ink);
  font: 24px/1 var(--display);
  cursor: pointer;
}
.member-modal-close:hover {
  background: var(--racing-red);
  color: #fff;
  border-color: var(--racing-red);
}
.member-modal-media {
  min-height: 360px;
  background: #dfe1da;
  position: relative;
  overflow: hidden;
}
.member-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: top center;
}
.member-modal-media img[hidden],
.member-modal-media span[hidden] {
  display: none;
}
.member-modal-media > span {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 360px;
  background: #080908;
  color: var(--lime);
  font: 42px var(--mono);
}
.member-modal-content {
  padding: 42px 42px 36px;
}
.member-modal-content .kicker {
  color: var(--lime);
  margin: 0 0 12px;
}
.member-modal-content h2 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.82;
  font-weight: 500;
  text-transform: uppercase;
  max-width: 480px;
}
.member-modal-role {
  margin-top: 14px;
  font: 11px var(--mono);
  color: #687067;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.member-modal-bio {
  margin-top: 26px;
  max-width: 470px;
  font: 12px/1.75 var(--mono);
  color: #4f584f;
}
.member-modal-columns {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 28px;
  margin-top: 30px;
  border-top: 1px solid rgba(8, 9, 8, 0.15);
  padding-top: 18px;
}
.member-modal-label {
  display: block;
  margin-bottom: 12px;
  font: 9px var(--mono);
  color: #70776e;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.member-modal-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.member-modal-columns li {
  font: 10px/1.35 var(--mono);
  color: var(--ink);
}
.member-modal-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.member-modal-socials a {
  color: var(--ink);
  font: 10px var(--mono);
  text-decoration: none;
  border-bottom: 1px solid var(--lime);
  padding-bottom: 3px;
}
.member-modal-socials a:hover {
  color: var(--racing-red);
  border-color: var(--racing-red);
}
@media (max-width: 760px) {
  .theme-toggle {
    font-size: 13px;
    letter-spacing: 0.07em;
  }
  .theme-toggle-label {
    display: none;
  }
  .member-modal {
    padding: 12px;
  }
  .member-modal-card {
    display: block;
    max-height: calc(100vh - 24px);
  }
  .member-modal-media,
  .member-modal-media img,
  .member-modal-media > span {
    min-height: 220px;
    height: 220px;
  }
  .member-modal-content {
    padding: 28px 22px 24px;
  }
  .member-modal-content h2 {
    font-size: 48px;
  }
  .member-modal-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .member-modal,
  .member-modal-card {
    transition: none;
  }
}

/* Vehicle archive route. */
.car-archive-layout .timeline-tabs {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  margin-bottom: 8vw;
  gap: 1.5rem;
  scrollbar-width: thin;
}
.car-archive-layout .timeline-tab {
  flex: 0 0 180px;
  min-width: 180px;
}
.car-archive-detail {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 7vw;
  background: var(--ink);
  color: var(--paper);
  padding: 34px 28px;
  min-height: 310px;
}
.car-archive-copy .kicker {
  color: var(--lime);
  margin-bottom: 18px;
}
.car-archive-copy h2 {
  font-size: clamp(82px, 13vw, 190px);
  line-height: 0.78;
  font-weight: 500;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  margin: 0;
}
.car-archive-copy > p:last-child {
  max-width: 330px;
  margin-top: 30px;
  color: var(--muted);
  font: 11px/1.7 var(--mono);
}
.car-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.car-spec-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: var(--ink);
}
.car-spec-grid span {
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.car-spec-grid strong {
  color: var(--lime);
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 500;
  line-height: 0.9;
}
.car-archive-note {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 7vw;
  margin-top: 8vw;
  border-top: 1px solid var(--dark-line);
  padding-top: 18px;
}
.car-archive-note .kicker {
  margin: 0;
  color: var(--lime);
}
.car-archive-note > p:last-child {
  max-width: 320px;
  color: #687067;
  font: 11px/1.7 var(--mono);
}
@media (max-width: 760px) {
  .car-archive-layout .timeline-tab {
    flex-basis: 145px;
    min-width: 145px;
  }
  .car-archive-detail {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 28px;
  }
  .car-spec-grid {
    min-height: 190px;
  }
  .car-archive-note {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18vw;
  }
}

/* Dynamic roster cards: data-backed portraits with a crisp editorial frame. */
.member-avatar {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}
.member-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.member-card {
  border-radius: 16px;
  overflow: hidden;
}
.member-card:focus-visible {
  outline: 2px solid var(--racing-red);
  outline-offset: -2px;
}

/* Recruitment 6.0 interaction layer. */
.form-progress {
  margin: -4px 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 151, 43, 0.34);
  background: linear-gradient(135deg, rgba(13, 151, 43, 0.11), rgba(13, 151, 43, 0.025));
  border-radius: 14px;
}
.form-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
}
.form-progress-head strong {
  color: var(--lime);
  font-size: 15px;
  font-weight: 500;
}
.form-progress-track {
  height: 5px;
  margin: 11px 0 9px;
  background: rgba(241, 242, 235, 0.14);
  border-radius: 999px;
  overflow: hidden;
}
.form-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(13, 151, 43, 0.55);
}
.form-progress small {
  display: block;
  color: var(--muted);
  font: 9px/1.5 var(--mono);
}
.field-count {
  display: block;
  text-align: right;
  color: var(--muted);
  font: 8px var(--mono);
  letter-spacing: 0.06em;
}
.file-drop span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cookies Consent: fixed viewport center, scroll-safe backdrop, premium curvature. */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  overscroll-behavior: contain;
}
.cookie-card {
  width: min(660px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(8, 9, 8, 0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}
.cookie-mark {
  border-radius: 0;
}
.cookie-actions {
  align-items: center;
}
.cookie-button {
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.cookie-button:focus-visible {
  outline: 2px solid var(--racing-red);
  outline-offset: 3px;
}
.cookie-primary {
  box-shadow: 0 8px 20px rgba(13, 151, 43, 0.22);
}
.cookie-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.cookie-primary:hover {
  background: var(--racing-red);
  border-color: var(--racing-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(254, 5, 4, 0.22);
}
@media (max-width: 760px) {
  .cookie-backdrop {
    padding: 16px;
  }
  .cookie-card {
    grid-template-columns: 1fr;
    gap: 14px;
    max-height: calc(100vh - 32px);
    padding: 20px;
    border-radius: 20px;
  }
  .cookie-mark {
    width: 144px;
    height: 31.5px;
    border-radius: 0;
  }
  .cookie-card h2 {
    font-size: clamp(30px, 10vw, 46px);
  }
  .cookie-actions {
    justify-content: stretch;
  }
  .cookie-button {
    flex: 1 1 140px;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-progress-track span,
  .cookie-button {
    transition: none;
  }
}

/* Command Layer sub-team portraits and role hierarchy. */
.team-module-lead {
  align-items: flex-start;
  flex-wrap: wrap;
}
.team-module-lead > span:first-child {
  flex: 0 0 auto;
}
.team-module-person {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  min-width: 0 !important;
  padding: 5px 8px !important;
}
.team-module-person img,
.team-module-person > i {
  grid-row: 1 / span 2;
  width: 30px;
  height: 36px;
  object-fit: cover;
  object-position: top center;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font: 7px var(--mono);
  font-style: normal;
}
.team-module-person b {
  font: 700 9px/1.1 var(--mono);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.team-module-person small {
  font: 8px/1.15 var(--mono);
  color: #70776e;
  overflow-wrap: anywhere;
}
.team-module-lead .team-module-person {
  border: 0;
  padding: 0 !important;
}
.team-module-lead .team-module-person img,
.team-module-lead .team-module-person > i {
  width: 38px;
  height: 46px;
}
.team-module-empty {
  border: 0 !important;
  color: #858b82;
  font: 8px var(--mono) !important;
  padding: 5px 0 !important;
}
.team-module-people.freelancers .team-module-person {
  opacity: 0.72;
}
@media (max-width: 760px) {
  .team-module-person b {
    font-size: 8px;
  }
  .team-module-person small {
    font-size: 7px;
  }
  .team-module-person img,
  .team-module-person > i {
    width: 26px;
    height: 32px;
  }
}

/* SUB-TEAMS: Command Layer portrait-card architecture. */
.teams-cars-layout .team-module-grid {
  display: block;
  background: transparent;
}
.team-subteam-block {
  border-top: 1px solid var(--dark-line);
  padding: 34px 0 0;
  margin-bottom: 5.5rem;
}
.team-subteam-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 2.5rem;
}
.team-subteam-heading .kicker {
  margin: 0;
  color: var(--lime);
  font: 700 10px var(--mono);
  letter-spacing: 0.14em;
}
.team-subteam-heading > span {
  font: 9px var(--mono);
  color: #70776e;
  letter-spacing: 0.12em;
}
.team-subteam-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}
.team-subteam-member-card {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 14px !important;
  background: #fff !important;
  color: var(--ink);
}
.team-subteam-member-card .team-member-placeholder {
  aspect-ratio: 3 / 4;
  height: auto !important;
  margin-bottom: 16px;
  background: #fff;
}
.team-subteam-member-card .team-member-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
}
.team-subteam-member-card .team-member-placeholder.no-photo {
  background: var(--ink);
}
.team-subteam-member-card .team-member-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font: clamp(30px, 5vw, 70px) var(--mono);
  color: var(--lime);
  letter-spacing: 0.08em;
}
.team-subteam-member-card .kicker {
  font-size: 8px;
  margin: 0 0 7px;
  color: var(--lime);
}
.team-subteam-member-card h3 {
  font-size: clamp(20px, 1.65vw, 28px);
  line-height: 0.92;
  font-weight: 500;
  overflow-wrap: anywhere;
  margin: 0;
}
.team-subteam-member-card .team-role {
  font-size: 14px;
  line-height: 1.35;
  margin-top: 9px;
}
.team-subteam-member-card .team-email-overlay {
  background: rgba(254, 5, 4, 0.25);
}
@media (max-width: 1100px) {
  .team-subteam-grid {
    gap: 1.25rem;
  }
  .team-subteam-member-card h3 {
    font-size: clamp(18px, 2.2vw, 25px);
  }
}
@media (max-width: 760px) {
  .team-subteam-block {
    padding-top: 26px;
    margin-bottom: 4rem;
  }
  .team-subteam-heading {
    margin-bottom: 1.25rem;
  }
  .team-subteam-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 0 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .team-subteam-member-card {
    flex: 0 0 min(78vw, 320px);
    width: min(78vw, 320px);
    scroll-snap-align: start;
  }
  .team-subteam-member-card h3 {
    font-size: 22px;
  }
  .team-subteam-member-card .team-member-placeholder {
    aspect-ratio: 3 / 4;
  }
}

/* Centered season dial band: shared by Cars and Teams. */
.car-archive-layout .timeline-tabs,
.teams-cars-layout .timeline-tabs {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-padding-inline: 1rem;
}
.car-archive-layout .timeline-tab,
.teams-cars-layout .timeline-tab {
  position: relative;
  z-index: 1;
  transform-origin: center center;
  will-change: transform;
  transition:
    transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.25s ease,
    background-color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .car-archive-layout .timeline-tab:hover,
  .teams-cars-layout .timeline-tab:hover {
    z-index: 3;
    transform: scale(1.2);
    color: var(--lime);
  }
  .car-archive-layout .timeline-tab:hover:after,
  .teams-cars-layout .timeline-tab:hover:after {
    background: var(--lime);
    box-shadow: 0 0 12px rgba(13, 151, 43, 0.45);
  }
}
@media (max-width: 760px) {
  .car-archive-layout .timeline-tabs,
  .teams-cars-layout .timeline-tabs {
    width: 100%;
    justify-content: flex-start;
    margin-inline: 0;
  }
  .car-archive-layout .timeline-tab,
  .teams-cars-layout .timeline-tab {
    transform-origin: left center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .car-archive-layout .timeline-tab,
  .teams-cars-layout .timeline-tab {
    transition: none;
  }
  .car-archive-layout .timeline-tab:hover,
  .teams-cars-layout .timeline-tab:hover {
    transform: none;
  }
}

/* Teams hierarchy labels: red luminous command markers. */
@keyframes tcpHeadPulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(254, 5, 4, 0);
    filter: brightness(1);
  }
  50% {
    text-shadow:
      0 0 9px rgba(254, 5, 4, 0.72),
      0 0 18px rgba(254, 5, 4, 0.32);
    filter: brightness(1.16);
  }
}
.teams-cars-layout .team-cars-section-head .kicker,
.teams-cars-layout .team-subteam-heading .kicker,
.teams-cars-layout .team-management-card > .kicker {
  color: var(--racing-red) !important;
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.teams-cars-layout .team-management-card > .kicker,
.teams-cars-layout .team-subteam-member-card.is-subteam-head .kicker,
.teams-cars-layout .team-subteam-member-card .is-head-role {
  animation: tcpHeadPulse 1.8s ease-in-out infinite;
}
.teams-cars-layout .team-subteam-member-card .is-head-role {
  display: block;
  color: var(--racing-red);
  font-weight: 800;
  text-transform: uppercase;
}
.teams-cars-layout .team-subteam-heading {
  border-bottom: 1px solid rgba(254, 5, 4, 0.3);
  padding-bottom: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .teams-cars-layout .team-management-card > .kicker,
  .teams-cars-layout .team-subteam-member-card.is-subteam-head .kicker,
  .teams-cars-layout .team-subteam-member-card .is-head-role {
    animation: none;
  }
}

/* Season dial spacing: keep each year visually separated while preserving overflow scroll. */
.car-archive-layout .timeline-tabs,
.teams-cars-layout .timeline-tabs {
  gap: 3rem;
}
@media (max-width: 760px) {
  .car-archive-layout .timeline-tabs,
  .teams-cars-layout .timeline-tabs {
    gap: 2rem;
  }
}

/* Supplied social logos: equal-size framed artwork, no placeholder lettering. */
.footer-social-icon {
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(241, 242, 235, 0.04);
}
.footer-social-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  object-position: center;
}
.footer-social-icon:hover {
  background: var(--lime);
  border-color: var(--lime);
}
.footer-social-icon:hover img {
  transform: scale(1.08);
}
.footer-social-icon img {
  transition: transform 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .footer-social-icon img {
    transition: none;
  }
}

/* Footer cleanup: native floating marks and box-less sponsor rails. */
.footer-socials {
  align-items: center;
  gap: 14px;
}
.footer-social-icon {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  padding: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
}
.footer-social-icon img {
  width: 26.4px;
  height: 26.4px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.footer-social-icon:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: 0 0 16px rgba(13, 151, 43, 0.35);
}
.footer-social-icon:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(13, 151, 43, 0.65));
}
.footer-logo-set {
  gap: 15px;
  padding-right: 15px;
}
.footer-logo {
  flex: 0 0 237px;
  min-width: 237px;
  height: 87px;
  padding: 12px 27px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
  justify-content: center;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  max-width: 198px;
  max-height: 60px;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}
.footer-logo:hover {
  border: 0 !important;
  background: transparent !important;
  box-shadow: 0 0 18px rgba(254, 5, 4, 0.22);
}
.footer-logo:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 7px rgba(254, 5, 4, 0.55)) !important;
}
@media (max-width: 760px) {
  .footer-socials {
    gap: 12px;
  }
  .footer-logo-set {
    gap: 12px;
    padding-right: 12px;
  }
  .footer-logo {
    flex-basis: 213px;
    min-width: 213px;
    height: 78px;
    padding: 10px 20px;
  }
  .footer-logo img {
    max-width: 174px;
    max-height: 54px;
  }
}

/* Rail speed tuning: faster top shutter, calmer footer sponsor/partner loops. */
.sticky-sponsor-track {
  animation-duration: 48s;
}
.footer-logo-track {
  animation-duration: 38s;
}
.footer-logo-track-reverse {
  animation-duration: 42s;
}
@media (max-width: 760px) {
  .sticky-sponsor-track {
    animation-duration: 56s;
  }
  .footer-logo-track {
    animation-duration: 44s;
  }
  .footer-logo-track-reverse {
    animation-duration: 48s;
  }
}

/* Global theme system: dark is the default; light mode keeps the racing accents intact. */
html[data-theme="light"] body {
  background: #fff;
  color: #080908;
}
html[data-theme="light"] .section-dark,
html[data-theme="light"] .detail-hero,
html[data-theme="light"] .recruitment-info,
html[data-theme="light"] .registration-section,
html[data-theme="light"] .contact,
html[data-theme="light"] .teams-cars-detail,
html[data-theme="light"] .car-archive-detail {
  background: #fff !important;
  color: #080908 !important;
}
html[data-theme="light"] .hero-media {
  opacity: 0.18;
  filter: grayscale(1);
}
html[data-theme="light"] .hero-glow {
  opacity: 0.22;
}
html[data-theme="light"] .section-dark .section-top {
  border-color: rgba(8, 9, 8, 0.16);
}
html[data-theme="light"] .section-dark .section-line {
  background: rgba(8, 9, 8, 0.16);
}
html[data-theme="light"] .hero-intro,
html[data-theme="light"] .hero-coordinates,
html[data-theme="light"] .hero-caption,
html[data-theme="light"] .detail-hero-copy > p:last-child {
  color: rgba(8, 9, 8, 0.62);
}
html[data-theme="light"] .circle-link,
html[data-theme="light"] .square-link {
  color: #080908;
  border-color: rgba(8, 9, 8, 0.35);
}
html[data-theme="light"] .input-row {
  border-color: rgba(8, 9, 8, 0.35);
}
html[data-theme="light"] .input-row input {
  color: #080908;
}
html[data-theme="light"] .input-row input::placeholder {
  color: #70776e;
}
html[data-theme="light"] .team-panel:before {
  border-color: var(--racing-red);
}
html[data-theme="light"] .mobile-menu {
  background: #fff;
  color: #080908;
}
html[data-theme="light"] .mobile-menu a {
  color: #080908;
}
html[data-theme="light"] .mobile-menu nav > .mobile-nav-sub a,
html[data-theme="light"] .mobile-menu nav > .mobile-nav-sub .nav-dropdown-disabled {
  color: #080908;
}
html[data-theme="light"] .mobile-menu p {
  color: rgba(8, 9, 8, 0.55);
}
html[data-theme="light"] .mobile-menu-actions {
  color: #080908;
}
html[data-theme="light"] .mobile-theme-toggle {
  color: #080908;
}
html[data-theme="light"] .sticky-sponsor-rail {
  background: #fff !important;
}
html[data-theme="light"] .sticky-sponsor-rail::before {
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}
html[data-theme="light"] .sticky-sponsor-rail::after {
  background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}
html[data-theme="light"] .sticky-sponsor-logo img {
  filter: none;
}
html[data-theme="light"] .footer-legal {
  border-color: rgba(8, 9, 8, 0.16);
}
html[data-theme="light"] .footer-logo-rail {
  border-color: rgba(8, 9, 8, 0.16);
}
.theme-toggle {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.theme-toggle:hover {
  color: var(--lime);
  transform: translateY(-1px);
}
.mobile-menu-actions {
  display: none;
}
@media (max-width: 760px) {
  .mobile-menu {
    padding: 96px 8vw 28px;
  }
  .mobile-menu-actions {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 10px 0 16px;
    border-bottom: 1px solid rgba(241, 242, 235, 0.22);
    margin-bottom: 10px;
  }
  .mobile-language-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 10px var(--mono);
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .mobile-language-picker > span {
    margin-right: 4px;
    color: var(--lime);
  }
  .mobile-language-option {
    border: 1px solid transparent;
    background: transparent;
    color: var(--paper);
    padding: 7px 8px;
    font: 10px var(--mono);
    letter-spacing: 0.1em;
    cursor: pointer;
  }
  .mobile-language-option.is-active {
    border-color: var(--lime);
    color: var(--lime);
  }
  .mobile-theme-toggle {
    font-size: 13px;
    letter-spacing: 0.07em;
    color: var(--paper);
  }
  .mobile-theme-toggle .theme-toggle-label {
    display: inline;
  }
  html[data-theme="light"] .mobile-menu-actions {
    border-color: rgba(8, 9, 8, 0.18);
  }
  html[data-theme="light"] .mobile-language-option {
    color: #080908;
  }
  html[data-theme="light"] .mobile-theme-toggle {
    color: #080908;
  }
}

/* Light mode form and archive surfaces. */
html[data-theme="light"] .registration-form {
  background: #f5f6f1 !important;
  color: #080908;
  border-color: rgba(8, 9, 8, 0.16);
}
html[data-theme="light"] .registration-form input,
html[data-theme="light"] .registration-form select,
html[data-theme="light"] .registration-form textarea {
  background: #fff;
  color: #080908;
  border-color: rgba(8, 9, 8, 0.22);
}
html[data-theme="light"] .registration-form input::placeholder,
html[data-theme="light"] .registration-form textarea::placeholder {
  color: #70776e;
}
html[data-theme="light"] .payment-option {
  border-color: rgba(8, 9, 8, 0.18);
}
html[data-theme="light"] .payment-option strong {
  color: #080908;
}
html[data-theme="light"] .timeline-list {
  border-color: rgba(8, 9, 8, 0.16);
}
html[data-theme="light"] .timeline-list > div {
  border-color: rgba(8, 9, 8, 0.16);
}
html[data-theme="light"] .cookie-backdrop {
  background: rgba(8, 9, 8, 0.38);
}
html[data-theme="light"] .cookie-card {
  background: #fff;
  color: #080908;
}

/* 2026 roster: high-contrast red cards on a pure-white field. */
#team.team.section-light {
  background: #fff !important;
  color: #080908;
}
#team .roster-cockpit {
  background: #fff;
}
#team .roster-grid {
  background: #fff;
  gap: 12px;
  grid-auto-rows: 90px;
  align-items: stretch;
}
#team .member-card {
  min-height: 86px;
  padding: 20px 24px;
  background: #fe0504 !important;
  color: #fff !important;
  border-radius: 16px;
  align-items: center;
  box-shadow: 0 10px 22px rgba(254, 5, 4, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
#team .member-card:hover {
  background: #fe0504 !important;
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(254, 5, 4, 0.22);
}
#team .member-card h3 {
  color: #fff !important;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}
#team .member-card p {
  color: #fff !important;
  font-weight: 400;
  line-height: 1.35;
  margin: 6px 0 0;
}
#team .member-card > span {
  color: #fff !important;
  font-weight: 500;
  opacity: 0.92;
}
#team .member-avatar {
  width: 50px;
  height: 50px;
  background: #080908;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
}
#team .member-avatar img {
  object-fit: cover;
  object-position: top center;
}
#team .roster-filter {
  color: #080908;
  border-color: rgba(8, 9, 8, 0.22);
}
#team .roster-filter:hover,
#team .roster-filter.is-active {
  background: #0d972b;
  color: #fff;
  border-color: #0d972b;
}
@media (max-width: 760px) {
  #team .roster-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    grid-auto-rows: 82px;
  }
  #team .member-card {
    min-height: 82px;
    padding: 18px 16px;
    border-radius: 14px;
  }
  #team .member-avatar {
    width: 48px;
    height: 48px;
  }
  #team .member-card h3 {
    font-size: 17px;
  }
  #team .member-card p {
    font-size: 9px;
  }
}

/* Roster alignment: flush full-height portrait rail on every red card. */
#team .member-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  height: 90px;
  min-height: 90px;
  overflow: hidden;
}
#team .member-avatar {
  align-self: stretch;
  width: 76px;
  height: auto;
  min-height: 90px;
  margin: 0;
  border: 0;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}
#team .member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
#team .member-card:not([data-member-group="leadership"]) .member-avatar img {
  object-fit: contain;
  object-position: center;
}
#team .member-card > div:not(.member-avatar) {
  min-width: 0;
  padding: 18px 18px 18px 22px;
}
#team .member-card > span {
  align-self: center;
  padding: 18px 20px 18px 10px;
}
@media (max-width: 760px) {
  #team .member-card {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    height: 82px;
    min-height: 82px;
  }
  #team .member-avatar {
    width: 68px;
    min-height: 82px;
    border-radius: 14px 0 0 14px;
  }
  #team .member-card > div:not(.member-avatar) {
    padding: 16px 12px 16px 18px;
  }
  #team .member-card > span {
    padding: 16px 14px 16px 6px;
  }
}

/* Graphite count panel and polished live-roster filter controls. */
#team .team-panel {
  border: 1px solid rgba(13, 151, 43, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(13, 151, 43, 0.13), transparent 38%),
    linear-gradient(135deg, #151915 0%, #090b09 62%, #101510 100%) !important;
  color: #f1f2eb !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}
#team .team-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 151, 43, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.24);
}
#team .team-panel:before {
  border-color: rgba(13, 151, 43, 0.34);
  opacity: 0.42;
  pointer-events: none;
}
#team .team-panel > * {
  position: relative;
  z-index: 1;
}
#team .panel-number {
  color: #52c968;
  text-shadow: 0 0 30px rgba(13, 151, 43, 0.25);
}
#team .team-panel .kicker {
  color: #7bd58a;
}
#team .team-panel p:last-child {
  color: rgba(241, 242, 235, 0.72);
  line-height: 1.6;
}
#team .team-panel .square-link {
  border-radius: 14px;
  border-color: rgba(241, 242, 235, 0.24);
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease;
}
#team .team-panel .square-link:hover {
  transform: translateY(-2px);
  border-color: #0d972b;
  background: #0d972b;
  color: #080908;
}
#team .roster-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  padding: 6px;
  border: 1px solid rgba(8, 9, 8, 0.12);
  border-radius: 999px;
  background: linear-gradient(145deg, #171a17, #080908 82%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 22px rgba(8, 9, 8, 0.14);
}
#team .roster-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(241, 242, 235, 0.72);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}
#team .roster-filter:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 151, 43, 0.34);
  background: rgba(13, 151, 43, 0.14);
  color: #fff;
}
#team .roster-filter.is-active,
#team .roster-filter.is-active:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 225, 132, 0.75);
  background: linear-gradient(135deg, #0d972b, #19ad3a);
  color: #080908;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 5px 15px rgba(13, 151, 43, 0.24);
}
#team .roster-filter:focus-visible {
  outline: 2px solid #0d972b;
  outline-offset: 3px;
}
#team .roster-filter:active {
  transform: scale(0.97);
}
@media (max-width: 760px) {
  #team .roster-filters {
    width: 100%;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding: 5px;
    border-radius: 16px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  #team .roster-filters::-webkit-scrollbar {
    display: none;
  }
  #team .roster-filter {
    flex: 0 0 auto;
    min-height: 38px;
    scroll-snap-align: start;
  }
}

/* Secure Member Panel + compact mobile header controls. Scoped to avoid global layout changes. */
.mobile-header-tools {
  display: none;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.mobile-header-language {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(241, 242, 235, 0.28);
  padding: 3px;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
}
.mobile-header-language-option {
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 5px 6px;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.mobile-header-language-option.is-active {
  background: var(--lime);
  color: var(--ink);
}
.member-panel-page {
  padding: 170px 4vw 12vw;
  min-height: 78vh;
}
.member-panel-shell {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 9vw;
  align-items: start;
}
.member-auth-intro {
  position: sticky;
  top: 150px;
}
.member-auth-intro h2,
.member-dashboard-head h2 {
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.8;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: -0.06em;
  margin: 28px 0;
}
.member-auth-intro h2 span,
.member-dashboard-head h2 span,
.member-dashboard-copy em {
  color: var(--lime);
  font-style: normal;
}
.member-auth-intro > p:last-child,
.member-dashboard-head > div > p:last-child,
.member-dashboard-copy > p:last-child {
  font: 12px/1.75 var(--mono);
  color: var(--muted);
  max-width: 360px;
}
.member-auth-card {
  background: #121712;
  border: 1px solid var(--line);
  padding: 28px;
}
.member-auth-card h3 {
  font-size: 42px;
  text-transform: uppercase;
  font-weight: 500;
  margin: 12px 0 24px;
}
.member-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.member-auth-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  padding: 12px 18px 12px 0;
  margin-right: 24px;
  font: 11px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.member-auth-tab.is-active {
  color: var(--lime);
  border-color: var(--lime);
}
.member-auth-form {
  display: grid;
  gap: 16px;
}
.member-auth-form.is-hidden {
  display: none;
}
.member-auth-form label {
  display: grid;
  gap: 7px;
  font: 9px var(--mono);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.member-auth-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(241, 242, 235, 0.23);
  background: #0a0d0a;
  color: var(--paper);
  padding: 13px;
  font: 12px var(--mono);
  outline: 0;
}
.member-auth-form input:focus {
  border-color: var(--lime);
}
.member-auth-form input.access-code-invalid {
  border-color: #fe0504 !important;
  box-shadow:
    0 0 0 1px rgba(254, 5, 4, 0.3),
    0 0 18px rgba(254, 5, 4, 0.15);
}
.member-dashboard {
  padding: 0;
}
.member-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line);
}
.member-dashboard-head h2 {
  font-size: clamp(56px, 8vw, 118px);
  margin: 22px 0;
}
.member-logout {
  border: 1px solid rgba(241, 242, 235, 0.35);
  background: transparent;
  color: var(--paper);
  padding: 12px 16px;
  font: 10px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.member-logout:hover {
  border-color: #fe0504;
  color: #fe0504;
}
.member-dashboard-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8vw;
  padding-top: 70px;
}
.member-dashboard-copy h3 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.86;
  text-transform: uppercase;
  font-weight: 500;
  margin: 22px 0;
}
.member-allowance-form {
  margin: 0;
}
@media (max-width: 760px) {
  .mobile-header-tools {
    display: flex;
  }
  .site-header > .mobile-header-tools .menu-toggle {
    display: block;
    margin: 0;
  }
  .site-header {
    display: flex;
    align-items: center;
  }
  .site-header .brand {
    min-width: 0;
  }
  .site-header .brand img {
    max-width: 88px;
  }
  .member-panel-page {
    padding: 135px 6vw 22vw;
  }
  .member-panel-shell,
  .member-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 15vw;
  }
  .member-auth-intro {
    position: static;
  }
  .member-auth-card {
    padding: 18px;
  }
  .member-auth-intro h2 {
    font-size: 22vw;
  }
  .member-dashboard-head {
    display: block;
    padding-bottom: 48px;
  }
  .member-dashboard-head h2 {
    font-size: 20vw;
  }
  .member-logout {
    margin-top: 12px;
  }
  .member-dashboard-grid {
    padding-top: 48px;
  }
}
@media (min-width: 761px) {
  .site-header > .mobile-header-tools {
    display: none !important;
  }
}

/* Dedicated authenticated dashboard: never inherit the auth shell's narrow column. */
.member-page-root {
  min-height: calc(100vh - 90px);
  background: #080908;
}
.member-page-root .member-panel-page {
  padding: clamp(110px, 12vw, 180px) clamp(20px, 5vw, 80px) clamp(80px, 10vw, 150px);
  min-height: calc(100vh - 90px);
  box-sizing: border-box;
}
.member-panel-shell.is-authenticated {
  display: block;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.member-panel-shell.is-authenticated .member-dashboard {
  width: 100%;
  background: transparent;
}
.member-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.member-dashboard-brand {
  position: sticky;
  top: 130px;
  min-width: 0;
  padding-top: 12px;
}
.member-dashboard-brand h2 {
  font-size: clamp(62px, 8vw, 128px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 28px 0;
}
.member-dashboard-brand h2 span {
  color: var(--lime);
}
.member-dashboard-brand > p:not(.kicker) {
  max-width: 340px;
  color: var(--muted);
  font: 12px/1.75 var(--mono);
  margin: 10px 0;
}
.member-dashboard-brand .member-logout {
  margin-top: 32px;
}
.member-dashboard-workplace {
  min-width: 0;
}
.member-workplace-heading {
  margin-bottom: 34px;
}
.member-workplace-heading h3 {
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 18px 0;
}
.member-workplace-heading h3 em {
  color: var(--lime);
  font-style: normal;
}
.member-workplace-heading > p:last-child {
  max-width: 540px;
  color: var(--muted);
  font: 12px/1.75 var(--mono);
}
.member-dashboard-workplace .member-allowance-form {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(22px, 3vw, 42px);
  display: block;
}
.member-dashboard-workplace .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.member-dashboard-workplace .form-grid label,
.member-dashboard-workplace .date-grid label {
  min-width: 0;
}
.member-dashboard-workplace input,
.member-dashboard-workplace select,
.member-dashboard-workplace textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.member-dashboard-workplace .date-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 22px;
}
.member-dashboard-workplace .payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.member-dashboard-workplace .payment-option {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "radio logo" "radio text";
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  padding: 14px;
}
.member-dashboard-workplace .payment-option > input {
  grid-area: radio;
  width: 17px;
  height: 17px;
}
.member-dashboard-workplace .payment-option .payment-logo {
  grid-area: logo;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
}
.member-dashboard-workplace .payment-option > span:last-child {
  grid-area: text;
  min-width: 0;
}
.member-dashboard-workplace .payment-option strong,
.member-dashboard-workplace .payment-option small {
  display: block;
  overflow-wrap: anywhere;
}
.member-dashboard-workplace .registration-submit {
  margin-top: 28px;
  width: 100%;
}
@media (max-width: 860px) {
  .member-page-root .member-panel-page {
    padding: 110px 20px 80px;
  }
  .member-dashboard-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .member-dashboard-brand {
    position: static;
  }
  .member-dashboard-brand h2 {
    font-size: clamp(58px, 18vw, 110px);
  }
  .member-dashboard-brand .member-logout {
    margin-top: 20px;
  }
  .member-dashboard-workplace .form-grid,
  .member-dashboard-workplace .payment-methods {
    grid-template-columns: 1fr;
  }
  .member-dashboard-workplace .date-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .member-dashboard-workplace .member-allowance-form {
    padding: 18px 14px;
  }
  .member-dashboard-workplace .payment-option {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }
  .member-workplace-heading h3 {
    font-size: 17vw;
  }
}

/* Auth-aware navigation and header action alignment. */
.member-desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
}
.member-desktop-nav[hidden],
.member-mobile-nav[hidden] {
  display: none !important;
}
.desktop-nav.has-member-controls-moved {
  display: none !important;
}
.site-header .member-desktop-nav > .language-dropdown {
  display: flex;
  align-items: center;
  position: relative;
}
.site-header .member-desktop-nav > .language-dropdown .language-trigger {
  padding: 8px 0;
  color: var(--paper);
}
.site-header .member-desktop-nav > .language-dropdown .language-trigger:hover,
.site-header .member-desktop-nav > .language-dropdown .language-trigger:focus-visible {
  color: var(--lime);
}
.site-header .member-desktop-nav > .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 8px 0;
  font: 10px var(--mono);
  cursor: pointer;
}
.site-header .member-desktop-nav > .theme-toggle:hover,
.site-header .member-desktop-nav > .theme-toggle:focus-visible {
  color: var(--lime);
}
.member-desktop-nav a,
.member-desktop-nav button {
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 8px 0;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.member-desktop-nav a:hover,
.member-desktop-nav button:hover {
  color: var(--lime);
}
.desktop-nav.is-member-state > a,
.desktop-nav.is-member-state > .nav-dropdown:not(.language-dropdown) {
  display: none !important;
}
.desktop-nav.is-member-state {
  gap: 16px;
}
.mobile-header-tools {
  gap: 10px;
}
.mobile-header-theme-toggle {
  border: 0 !important;
  background: transparent;
  color: var(--paper);
  padding: 5px 2px !important;
  font: 10px var(--mono) !important;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.mobile-header-theme-toggle .theme-toggle-label {
  display: none;
}
.mobile-header-theme-toggle .theme-toggle-icon {
  font-size: 16px;
}
.member-mobile-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 12px;
  perspective: 900px;
  transform: translate3d(0, 0, 0);
}
.member-mobile-nav a,
.member-mobile-nav button {
  position: relative;
  display: block;
  width: max-content;
  max-width: 92vw;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: clamp(30px, 9.4vw, 68px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.member-mobile-nav a:hover,
.member-mobile-nav a:focus-visible,
.member-mobile-nav button:hover,
.member-mobile-nav button:focus-visible {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(13, 151, 43, 0.62);
}
.member-dashboard-profile {
  position: sticky;
  top: 130px;
  min-width: 0;
  padding-top: 12px;
}
.member-dashboard-profile .member-avatar {
  width: clamp(112px, 12vw, 168px);
  height: clamp(112px, 12vw, 168px);
  border: 1px solid var(--lime);
  border-radius: 50%;
  padding: 8px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background: rgba(13, 151, 43, 0.08);
  box-shadow:
    0 0 0 8px rgba(13, 151, 43, 0.05),
    0 0 34px rgba(13, 151, 43, 0.16);
}
.member-dashboard-profile .member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}
.member-dashboard-profile h2 {
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 30px 0 12px;
  overflow-wrap: anywhere;
}
.member-dashboard-profile .member-role {
  font: 700 14px/1.4 var(--mono);
  color: var(--lime);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.member-dashboard-profile .member-profile-email {
  max-width: 340px;
  color: var(--muted);
  font: 11px/1.7 var(--mono);
  overflow-wrap: anywhere;
}
.member-dashboard-profile .member-logout {
  margin-top: 28px;
}
.member-dashboard-workplace .payment-option .payment-logo {
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(13, 151, 43, 0.35);
}
@media (min-width: 861px) {
  .member-mobile-nav {
    display: none !important;
  }
}
@media (max-width: 860px) {
  .member-dashboard-profile {
    position: static;
  }
  .member-desktop-nav {
    display: none;
  }
  .member-mobile-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 10vh 8vw;
  }
  .member-mobile-nav a,
  .member-mobile-nav button {
    font-size: clamp(32px, 10vw, 64px);
  }
}
/* Authenticated landing dashboard: profile only; allowance lives on its own route. */
.member-profile-page {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: clamp(90px, 12vw, 170px) 24px !important;
}
.member-dashboard-profile-only {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
}
.member-dashboard-profile-only .member-avatar {
  width: clamp(150px, 20vw, 240px);
  height: clamp(150px, 20vw, 240px);
  border: 1px solid var(--lime);
  border-radius: 50%;
  padding: 10px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background: rgba(13, 151, 43, 0.08);
  box-shadow:
    0 0 0 10px rgba(13, 151, 43, 0.05),
    0 0 42px rgba(13, 151, 43, 0.18);
}
.member-dashboard-profile-only .member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.member-dashboard-profile-only h2 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 32px 0 14px;
  overflow-wrap: anywhere;
}
.member-dashboard-profile-only .member-role {
  font: 700 14px var(--mono);
  color: var(--lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.member-dashboard-profile-only .member-profile-email {
  font: 11px var(--mono);
  color: var(--muted);
  margin: 10px 0 0;
}
.member-dashboard-profile-only .member-logout {
  margin-top: 30px;
}
.mobile-menu nav[hidden] {
  display: none !important;
}
@media (max-width: 860px) {
  .member-profile-page {
    padding: 100px 20px !important;
  }
  .member-dashboard-profile-only {
    min-height: 62vh;
  }
  .member-dashboard-profile-only h2 {
    font-size: 16vw;
  }
}
/* Member profile refinements: larger DP, camera upload affordance, and bio. */
.member-avatar-wrap {
  position: relative;
  display: inline-block;
}
.member-avatar-upload {
  position: absolute;
  right: -4px;
  top: -8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: #080908;
  color: var(--paper);
  padding: 6px 8px;
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 0 3px #080908;
}
.member-avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.member-avatar-upload span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  font-size: 14px;
  line-height: 1;
}
.member-avatar-upload b {
  font-weight: 500;
  white-space: nowrap;
}
.member-avatar-upload:hover {
  color: var(--lime);
  box-shadow:
    0 0 0 3px #080908,
    0 0 14px rgba(13, 151, 43, 0.35);
}
.member-dashboard-profile-only .member-avatar {
  width: clamp(170px, 22vw, 270px);
  height: clamp(170px, 22vw, 270px);
}
.member-dashboard-profile .member-avatar {
  width: clamp(132px, 14vw, 190px);
  height: clamp(132px, 14vw, 190px);
}
.member-profile-bio {
  max-width: 360px;
  margin: 12px auto 0;
  color: var(--muted);
  font: 11px/1.65 var(--mono);
}
.member-dashboard-profile .member-profile-bio {
  max-width: 340px;
  margin: 12px 0 0;
  color: var(--muted);
  font: 11px/1.65 var(--mono);
}
@media (max-width: 860px) {
  .member-avatar-upload {
    right: -10px;
    top: -10px;
  }
  .member-avatar-upload b {
    display: none;
  }
  .member-avatar-upload {
    padding: 7px;
  }
  .member-dashboard-profile-only .member-avatar {
    width: clamp(160px, 48vw, 230px);
    height: clamp(160px, 48vw, 230px);
  }
}

.member-camera-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.member-camera-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.member-camera-icon circle {
  fill: none;
}
/* Clean avatar fallback and Facebook-style floating camera action. */
.member-avatar {
  overflow: hidden;
  position: relative;
}
.member-avatar img[hidden],
.member-default-avatar[hidden] {
  display: none;
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: 50%;
}
.member-default-avatar {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: var(--lime);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.member-default-avatar circle {
  fill: rgba(13, 151, 43, 0.14);
  stroke: var(--lime);
}
.member-avatar-upload {
  right: -8px;
  top: auto;
  bottom: -8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #080908;
}
.member-avatar-upload b {
  display: none;
}
.member-avatar-upload .member-camera-icon {
  width: 20px;
  height: 20px;
}
.member-avatar-upload .member-camera-icon svg {
  width: 18px;
  height: 18px;
}
/* Authenticated mobile menu uses the same motion stack for every action, including Sign Out. */
.mobile-menu nav.member-mobile-nav > a,
.mobile-menu nav.member-mobile-nav > button {
  opacity: 0;
  transform: translate3d(72px, -28px, 0) rotate(10deg) scale(0.86);
  transition:
    transform 0.72s cubic-bezier(0.16, 1.25, 0.3, 1),
    opacity 0.34s ease,
    color 0.22s ease,
    text-shadow 0.22s ease;
  will-change: transform, opacity;
}
.mobile-menu.is-open nav.member-mobile-nav > a,
.mobile-menu.is-open nav.member-mobile-nav > button {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
}
.mobile-menu.is-open nav.member-mobile-nav > a:nth-child(1) {
  transition-delay: 0.05s;
  margin-left: 2vw;
}
.mobile-menu.is-open nav.member-mobile-nav > a:nth-child(2) {
  transition-delay: 0.1s;
  margin-left: 10vw;
}
.mobile-menu.is-open nav.member-mobile-nav > a:nth-child(3) {
  transition-delay: 0.15s;
  margin-left: 18vw;
}
.mobile-menu.is-open nav.member-mobile-nav > a:nth-child(4) {
  transition-delay: 0.2s;
  margin-left: 24vw;
}
.mobile-menu.is-open nav.member-mobile-nav > button:nth-child(5) {
  transition-delay: 0.25s;
  margin-left: 18vw;
}
.mobile-menu nav.member-mobile-nav > a:hover,
.mobile-menu nav.member-mobile-nav > a:focus-visible,
.mobile-menu nav.member-mobile-nav > button:hover,
.mobile-menu nav.member-mobile-nav > button:focus-visible {
  color: #fe0504;
  text-shadow: 0 0 18px rgba(254, 5, 4, 0.62);
}
.member-desktop-nav a,
.member-desktop-nav button {
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}
.member-desktop-nav a:hover,
.member-desktop-nav a:focus-visible,
.member-desktop-nav button:hover,
.member-desktop-nav button:focus-visible {
  color: #fe0504;
  text-shadow: 0 0 12px rgba(254, 5, 4, 0.55);
}
@media (max-width: 860px) {
  .member-avatar-upload {
    right: -8px;
    top: auto;
    bottom: -8px;
    width: 34px;
    height: 34px;
    padding: 0;
  }
  .member-mobile-nav {
    gap: 22px;
    padding-bottom: 48px;
  }
}
/* Precision avatar corrections: true 1:1 circles across dashboard and roster components. */
.member-dashboard-profile-only .member-avatar,
.member-dashboard-profile .member-avatar {
  width: clamp(170px, 22vw, 270px);
  height: clamp(170px, 22vw, 270px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  box-sizing: border-box;
}
.member-dashboard-profile .member-avatar {
  width: clamp(132px, 14vw, 190px);
  height: clamp(132px, 14vw, 190px);
}
.member-dashboard-profile-only .member-avatar img,
.member-dashboard-profile .member-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
.roster-grid .member-avatar,
.directory-grid .directory-avatar {
  width: clamp(48px, 5vw, 76px);
  height: clamp(48px, 5vw, 76px);
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  box-sizing: border-box;
}
.roster-grid .member-avatar img,
.directory-grid .directory-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
#team .member-card {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}
.section-light #team .member-avatar,
#team .member-avatar {
  background: #fff !important;
  color: #080908 !important;
  border: 0 !important;
  border-radius: 50% !important;
  width: 76px;
  height: 76px;
  min-height: 76px;
  aspect-ratio: 1 / 1;
  align-self: center;
  margin: 7px 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.section-light #team .member-avatar img,
#team .member-avatar img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
.member-avatar-upload {
  border: 1px solid #8e8e93 !important;
  color: #8e8e93 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px #080908 !important;
}
.member-avatar-upload:hover {
  border-color: #8e8e93 !important;
  color: #55565a !important;
  box-shadow: 0 0 0 3px #080908 !important;
}
.member-avatar-upload .member-camera-icon svg {
  stroke: #8e8e93 !important;
}
@media (max-width: 760px) {
  #team .member-card {
    grid-template-columns: 78px minmax(0, 1fr) auto;
  }
  .section-light #team .member-avatar,
  #team .member-avatar {
    width: 62px;
    height: 62px;
    min-height: 62px;
    margin: 6px 8px;
  }
  .roster-grid .member-avatar,
  .directory-grid .directory-avatar {
    width: 52px;
    height: 52px;
  }
}
.member-avatar .member-default-avatar {
  display: block !important;
  width: 58% !important;
  height: 58% !important;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  align-self: center;
  justify-self: center;
}
.member-avatar .member-default-avatar {
  width: clamp(96px, 12vw, 156px) !important;
  height: clamp(96px, 12vw, 156px) !important;
  flex: none !important;
}
/* Vanilla 1:1 profile cropper modal. */
.member-cropper-modal[hidden] {
  display: none;
}
.member-cropper-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.member-cropper-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 4, 0.82);
  backdrop-filter: blur(12px);
}
.member-cropper-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #101411;
  color: var(--paper);
  border: 1px solid rgba(13, 151, 43, 0.5);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  padding: 24px;
}
.member-cropper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.member-cropper-head h2 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 0.86;
  text-transform: uppercase;
  margin: 10px 0 0;
}
.member-cropper-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.member-cropper-close:hover {
  color: #fe0504;
}
.member-crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #050706;
  touch-action: none;
}
.member-crop-image {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.member-crop-selection {
  position: absolute;
  border: 2px solid var(--paper);
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(13, 151, 43, 0.7);
  cursor: move;
  touch-action: none;
}
.member-crop-selection:before,
.member-crop-selection:after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.45);
}
.member-crop-selection:before {
  left: 33.333%;
  right: 33.333%;
  top: 0;
  bottom: 0;
  width: 1px;
  box-shadow: calc(100% + 1px) 0 0 rgba(255, 255, 255, 0.45);
}
.member-crop-selection:after {
  top: 33.333%;
  bottom: 33.333%;
  left: 0;
  right: 0;
  height: 1px;
  box-shadow: 0 calc(100% + 1px) 0 rgba(255, 255, 255, 0.45);
}
.crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #8e8e93;
  border-radius: 50%;
  z-index: 2;
}
.crop-handle-nw {
  left: -8px;
  top: -8px;
  cursor: nwse-resize;
}
.crop-handle-ne {
  right: -8px;
  top: -8px;
  cursor: nesw-resize;
}
.crop-handle-sw {
  left: -8px;
  bottom: -8px;
  cursor: nesw-resize;
}
.crop-handle-se {
  right: -8px;
  bottom: -8px;
  cursor: nwse-resize;
}
.member-crop-hint {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
  margin: 14px 0;
}
.member-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.member-crop-actions button {
  padding: 12px 16px;
  border: 1px solid rgba(241, 242, 235, 0.28);
  background: transparent;
  color: var(--paper);
  font: 10px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.member-crop-actions .member-crop-save {
  background: #0d972b;
  border-color: #0d972b;
  color: #fff;
}
.member-crop-actions .member-crop-save:hover {
  background: #fe0504;
  border-color: #fe0504;
}
.member-crop-actions .member-crop-cancel:hover {
  color: #fe0504;
  border-color: #fe0504;
}
/* Homepage roster: portrait rail snapped to the red card's left edge. */
#team .member-card {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: stretch;
}
.section-light #team .member-avatar,
#team .member-avatar {
  width: 92px;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  align-self: stretch;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 16px 0 0 16px !important;
  overflow: hidden;
}
.section-light #team .member-avatar img,
#team .member-avatar img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 16px 0 0 16px;
}
.section-light #team .member-card > div:not(.member-avatar),
#team .member-card > div:not(.member-avatar) {
  padding: 18px 18px 18px 22px;
}
@media (max-width: 760px) {
  #team .member-card {
    grid-template-columns: 78px minmax(0, 1fr) auto;
  }
  .section-light #team .member-avatar,
  #team .member-avatar {
    width: 78px;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 14px 0 0 14px !important;
  }
  .section-light #team .member-avatar img,
  #team .member-avatar img {
    border-radius: 14px 0 0 14px;
  }
  .section-light #team .member-card > div:not(.member-avatar),
  #team .member-card > div:not(.member-avatar) {
    padding: 16px 12px 16px 18px;
  }
  .member-cropper-card {
    padding: 18px;
  }
  .member-crop-actions {
    justify-content: stretch;
  }
  .member-crop-actions button {
    flex: 1;
  }
}

/* Keep mobile menu labels below the moving header shutter without changing its reveal animation. */
@media (max-width: 760px) {
  .mobile-menu {
    padding-top: var(--mobile-menu-top-clearance, 112px);
  }
  .mobile-menu .organisation-course-placeholder {
    cursor: default;
    opacity: 0.62;
  }
}
.site-header .organisation-course-placeholder {
  cursor: default !important;
  opacity: 0.68;
}
.site-header .organisation-course-placeholder:hover {
  background: transparent !important;
  transform: none !important;
}

/* Larger brand mark and paired registration identity fields. */
.brand img {
  width: 220px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  flex: none;
}
.registration-name-row,
.registration-identity-row {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.registration-name-row > label,
.registration-identity-row > label,
.member-name-fields > label {
  min-width: 0;
}
.member-name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.member-auth-restriction {
  margin: -12px 0 20px;
  color: var(--muted);
  font: 9px/1.6 var(--mono);
  letter-spacing: 0.04em;
}
@media (max-width: 1200px) {
  .site-header-shell .brand {
    flex: 0 1 auto;
    min-width: 0;
  }
  .site-header-shell .brand img {
    width: clamp(180px, 20vw, 220px);
    max-width: calc(100vw - 150px);
    max-height: 48px;
  }
  .site-header-shell .desktop-nav,
  .site-header-shell .member-desktop-nav {
    display: none !important;
  }
  .site-header-shell .mobile-header-tools {
    display: flex;
  }
  .site-header-shell .site-header {
    flex-wrap: nowrap;
    gap: 8px 12px;
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle {
    display: block;
    margin: 0;
  }
  .mobile-menu {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu::-webkit-scrollbar {
    display: none;
  }
  html.menu-open,
  body.menu-open {
    overflow: hidden;
  }
}
@media (max-width: 760px) {
  .site-header-shell .site-header {
    column-gap: 8px;
    padding-inline: 4.5vw;
  }
  .site-header-shell .brand img {
    width: clamp(160px, 46vw, 190px);
    max-width: calc(100vw - 120px);
    max-height: 42px;
  }
  .site-header-shell .mobile-header-tools {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 6px;
  }
  .mobile-header-language-option {
    padding: 4px;
  }
  .registration-name-row,
  .registration-identity-row {
    gap: 10px;
  }
  .member-name-fields {
    gap: 10px;
  }
}

/* Shared form surfaces: consistent 8px geometry across Member Panel, Registration, and Allowance. */
:where(
  .member-auth-card,
  .member-auth-form input,
  .registration-form,
  .registration-form input,
  .registration-form select,
  .registration-form textarea,
  .registration-form .file-drop,
  .registration-form .payment-option
) {
  border-radius: 8px !important;
}

/* Member Panel sign-in: transparent button with cursor-tracked border-only glow. */
.member-auth-card {
  border: 1px solid rgba(13, 151, 43, 0.2) !important;
}
.edge-glow-button {
  --x: 50%;
  --y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(13, 151, 43, 0.3) !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  cursor: pointer;
}
.edge-glow-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(
    circle 96px at var(--x, 50%) var(--y, 50%),
    rgba(13, 151, 43, 1) 0%,
    rgba(13, 151, 43, 0.78) 28%,
    rgba(13, 151, 43, 0) 72%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(13, 151, 43, 0.65));
  transition: opacity 120ms ease-out;
  pointer-events: none;
}
.edge-glow-button > * {
  position: relative;
  z-index: 1;
}
.edge-glow-button.is-spotlight-active::before,
.edge-glow-button:hover::before,
.edge-glow-button:focus-visible::before {
  opacity: 1;
}
.edge-glow-button:hover,
.edge-glow-button:focus-visible {
  background: transparent !important;
  color: #ffffff !important;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .edge-glow-button::before {
    transition: none;
  }
}

/* Language control refinement: a compact desktop dropdown and tactile mobile segmented toggle. */
.site-header .language-dropdown {
  margin-left: -8px;
  z-index: 220;
}
.site-header .language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 72px;
  justify-content: space-between;
  padding: 9px 11px !important;
  border: 1px solid rgba(13, 151, 43, 0.42);
  border-radius: 999px;
  background: rgba(13, 151, 43, 0.08);
  color: var(--paper);
  font: 700 11px/1 var(--mono) !important;
  letter-spacing: 0.16em !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.site-header .language-trigger:hover,
.site-header .language-trigger:focus-visible,
.site-header .language-dropdown.is-open .language-trigger {
  border-color: var(--lime);
  background: rgba(13, 151, 43, 0.18);
  color: var(--lime);
  transform: translateY(-1px);
}
.site-header .language-trigger span {
  color: var(--lime);
  font: 14px/1 var(--mono);
  letter-spacing: 0;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}
.site-header .language-dropdown.is-open .language-trigger span {
  transform: rotate(180deg) translateY(1px);
}
.site-header .language-menu {
  top: calc(100% + 12px);
  width: 174px !important;
  min-width: 174px !important;
  padding: 7px !important;
  border: 1px solid rgba(13, 151, 43, 0.3) !important;
  border-radius: 14px !important;
  background: #101510 !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(13, 151, 43, 0.1);
}
.site-header .language-menu::before {
  background: #101510 !important;
  border-left-color: rgba(13, 151, 43, 0.3) !important;
  border-top-color: rgba(13, 151, 43, 0.3) !important;
}
.site-header .language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 10px 11px !important;
  border-radius: 9px;
  color: var(--paper) !important;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.12em;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.site-header .language-option b {
  color: inherit;
  font-weight: 700;
}
.site-header .language-option span {
  color: var(--muted);
  font: 9px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-header .language-option:hover,
.site-header .language-option:focus-visible,
.site-header .language-option.is-active {
  background: rgba(13, 151, 43, 0.16) !important;
  color: var(--lime) !important;
  transform: translateX(2px);
}
.site-header .language-option.is-active span {
  color: var(--lime);
}

@media (max-width: 760px) {
  .site-header-shell .mobile-header-language {
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: 76px;
    padding: 3px;
    border: 1px solid rgba(13, 151, 43, 0.42);
    border-radius: 999px;
    background: rgba(13, 151, 43, 0.07);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 16px rgba(13, 151, 43, 0.08);
  }
  .site-header-shell .mobile-header-language-option {
    position: relative;
    z-index: 1;
    pointer-events: none;
    min-width: 32px;
    min-height: 28px;
    padding: 7px 8px;
    border: 0;
    border-radius: 999px;
    color: rgba(241, 242, 235, 0.62);
    font: 700 10px/1 var(--mono);
    letter-spacing: 0.1em;
    transition:
      background 0.2s ease,
      color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }
  .site-header-shell .mobile-header-language-option:hover,
  .site-header-shell .mobile-header-language-option:focus-visible {
    color: var(--paper);
  }
  .site-header-shell .mobile-header-language-option.is-active {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 0 14px rgba(13, 151, 43, 0.38);
    transform: translateY(-1px);
  }
}

/* Minimal three-line menu and animated header controls. */
.site-header-shell .mobile-header-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.2vw, 30px);
  margin-left: auto;
}
.site-header-shell .theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px !important;
  border: 1px solid rgba(241, 242, 235, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(13, 151, 43, 0.05));
  color: var(--paper);
  overflow: hidden;
  transition:
    color 0.28s,
    border-color 0.28s,
    background 0.28s,
    box-shadow 0.28s,
    transform 0.28s;
}
.site-header-shell .theme-toggle::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  pointer-events: none;
  transition:
    border-color 0.28s,
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header-shell .theme-toggle-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--lime);
  font-size: 17px;
  line-height: 1;
  transition:
    color 0.28s,
    transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header-shell .theme-toggle-label {
  position: relative;
  z-index: 1;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-header-shell .theme-toggle:hover,
.site-header-shell .theme-toggle:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(13, 151, 43, 0.14);
  box-shadow:
    0 0 0 3px rgba(13, 151, 43, 0.08),
    0 0 22px rgba(13, 151, 43, 0.18);
  transform: translateY(-1px);
}
.site-header-shell .theme-toggle:hover .theme-toggle-icon,
.site-header-shell .theme-toggle:focus-visible .theme-toggle-icon {
  transform: rotate(180deg) scale(1.08);
}
html[data-theme="light"] .site-header-shell .theme-toggle {
  border-color: rgba(8, 9, 8, 0.2);
  background: linear-gradient(135deg, rgba(8, 9, 8, 0.06), rgba(13, 151, 43, 0.08));
  color: var(--ink);
}
@media (max-width: 1200px) {
  .site-header-shell .mobile-header-tools {
    gap: clamp(12px, 3.2vw, 22px);
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(241, 242, 235, 0.3);
    border-radius: 10px;
    background: rgba(8, 9, 8, 0.42);
    color: var(--paper);
    cursor: pointer;
    touch-action: manipulation;
    transition:
      border-color 0.28s,
      background 0.28s,
      box-shadow 0.28s,
      transform 0.28s;
  }
  .site-header-shell .menu-command-glyph {
    display: grid;
    gap: 5px;
    width: 20px;
  }
  .site-header-shell .menu-command-glyph i {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition:
      transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
      width 0.3s,
      opacity 0.24s,
      background 0.24s;
  }
  .site-header-shell .menu-command-glyph i:nth-child(2) {
    width: 14px;
    background: var(--lime);
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle:hover,
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle:focus-visible {
    border-color: var(--lime);
    background: rgba(13, 151, 43, 0.13);
    box-shadow:
      0 0 0 3px rgba(13, 151, 43, 0.08),
      0 0 20px rgba(13, 151, 43, 0.2);
    transform: translateY(-1px);
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle[aria-expanded="true"] {
    border-color: var(--racing-red);
    background: rgba(254, 5, 4, 0.1);
    box-shadow:
      0 0 0 3px rgba(254, 5, 4, 0.08),
      0 0 20px rgba(254, 5, 4, 0.18);
  }
  .site-header-shell .menu-toggle[aria-expanded="true"] .menu-command-glyph i {
    background: var(--racing-red);
  }
  .site-header-shell .menu-toggle[aria-expanded="true"] .menu-command-glyph i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header-shell .menu-toggle[aria-expanded="true"] .menu-command-glyph i:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .site-header-shell .menu-toggle[aria-expanded="true"] .menu-command-glyph i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
@media (max-width: 760px) {
  .site-header-shell .mobile-header-tools {
    gap: 13px;
  }
  .site-header-shell .mobile-header-language {
    margin-right: 2px;
  }
  .site-header-shell .mobile-header-theme-toggle {
    min-height: 36px;
    padding: 7px 9px !important;
  }
  .site-header-shell .mobile-header-theme-toggle .theme-toggle-label {
    display: none;
  }
  .site-header-shell .mobile-header-theme-toggle .theme-toggle-icon {
    width: 19px;
    height: 19px;
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle {
    margin-left: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header-shell .theme-toggle,
  .site-header-shell .theme-toggle::before,
  .site-header-shell .theme-toggle-icon,
  .site-header-shell .menu-toggle,
  .site-header-shell .menu-command-glyph i {
    transition: none !important;
    animation: none !important;
  }
}

/* Final mobile header polish: compact brand, balanced controls, centered command glyph. */
@media (max-width: 1200px) {
  .site-header-shell .site-header {
    gap: 0;
  }
  .site-header-shell .brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 150px;
  }
  .site-header-shell .brand img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    max-height: 34px;
    object-fit: contain;
  }
  .site-header-shell .mobile-header-tools {
    flex: 0 0 auto;
    gap: 16px;
    margin-left: auto;
  }
  .site-header-shell .mobile-header-language {
    flex: 0 0 auto;
  }
  .site-header-shell .mobile-header-theme-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0 !important;
    justify-content: center;
    border-radius: 12px;
  }
  .site-header-shell .mobile-header-theme-toggle .theme-toggle-icon {
    width: 20px;
    height: 20px;
    font-size: 18px;
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle {
    flex: 0 0 46px;
    width: 46px;
    height: 40px;
    border-radius: 12px;
    border-color: rgba(241, 242, 235, 0.34);
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.11),
      rgba(13, 151, 43, 0.07) 48%,
      rgba(8, 9, 8, 0.72)
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -7px 14px rgba(0, 0, 0, 0.18),
      0 0 0 1px rgba(13, 151, 43, 0.08);
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(13, 151, 43, 0.22);
    border-radius: 8px;
    pointer-events: none;
    transition:
      border-color 0.3s ease,
      transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .site-header-shell .menu-command-glyph {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 5px;
    width: 22px;
    height: 18px;
  }
  .site-header-shell .menu-command-glyph i {
    justify-self: center;
    width: 22px;
    height: 2px;
    border-radius: 99px;
    box-shadow: 0 0 7px rgba(241, 242, 235, 0.18);
  }
  .site-header-shell .menu-command-glyph i:nth-child(2) {
    width: 14px;
    margin-inline: auto;
    background: var(--lime);
    box-shadow: 0 0 8px rgba(13, 151, 43, 0.55);
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle:hover::before,
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle:focus-visible::before {
    border-color: rgba(13, 151, 43, 0.62);
    transform: rotate(90deg) scale(0.82);
  }
  .site-header-shell .menu-toggle[aria-expanded="true"]::before {
    border-color: rgba(254, 5, 4, 0.52);
    transform: rotate(90deg) scale(0.82);
  }
}
@media (max-width: 760px) {
  .site-header-shell .site-header {
    padding-inline: 4.5vw;
  }
  .site-header-shell .brand {
    max-width: 142px;
  }
  .site-header-shell .brand img {
    width: 142px;
    max-width: calc(100vw - 212px);
    max-height: 30px;
  }
  .site-header-shell .mobile-header-tools {
    gap: 14px;
  }
  .site-header-shell .mobile-header-language {
    min-width: 70px;
  }
  .site-header-shell .mobile-header-theme-toggle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    min-height: 38px;
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle {
    flex-basis: 44px;
    width: 44px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle::before {
    transition: none;
  }
}

/* Compact borderless header controls with animated SVG theme icon. */
.site-header-shell .theme-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header-shell .theme-icon-core {
  fill: currentColor;
  stroke: none;
  transform-origin: 50% 50%;
  transition:
    opacity 0.32s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header-shell .theme-icon-rays {
  stroke-width: 1.65;
  opacity: 1;
  transform-origin: 50% 50%;
  transition:
    opacity 0.28s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header-shell .theme-icon-moon {
  stroke: currentColor;
  stroke-width: 1.5;
  fill: currentColor;
  opacity: 0;
  transform: translate(3px, -3px) rotate(-28deg) scale(0.45);
  transform-origin: 50% 50%;
  transition:
    opacity 0.3s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header-shell .theme-toggle.is-light .theme-icon-core {
  opacity: 0;
  transform: scale(0.35);
}
.site-header-shell .theme-toggle.is-light .theme-icon-rays {
  opacity: 0;
  transform: rotate(65deg) scale(0.65);
}
.site-header-shell .theme-toggle.is-light .theme-icon-moon {
  opacity: 1;
  transform: translate(0, 0) rotate(0) scale(1);
}
.site-header-shell .theme-toggle .theme-icon {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header-shell .theme-toggle:hover .theme-icon,
.site-header-shell .theme-toggle:focus-visible .theme-icon {
  transform: rotate(18deg) scale(1.08);
}

@media (max-width: 1200px) {
  .site-header-shell .mobile-header-tools {
    gap: 12px;
  }
  .site-header-shell .mobile-header-language {
    min-width: 62px;
    padding: 2px;
    gap: 1px;
  }
  .site-header-shell .mobile-header-language-option {
    min-width: 27px;
    min-height: 24px;
    padding: 6px 5px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .site-header-shell .mobile-header-theme-toggle {
    flex: 0 0 31px;
    width: 31px;
    height: 29px;
    min-height: 29px;
    padding: 0 !important;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .site-header-shell .mobile-header-theme-toggle::before {
    display: none;
  }
  .site-header-shell .mobile-header-theme-toggle .theme-toggle-icon {
    width: 20px;
    height: 20px;
    font-size: 0;
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle {
    flex: 0 0 34px;
    width: 34px;
    height: 30px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    color: var(--lime);
  }
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle::before {
    display: none;
  }
  .site-header-shell .menu-speedometer {
    display: block;
    width: 44px;
    height: 33px;
    margin-inline: auto;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(13, 151, 43, 0.28));
  }
  .site-header-shell .speedometer-bezel {
    stroke-width: 2.2;
  }
  .site-header-shell .speedometer-arc {
    stroke: var(--lime);
    stroke-width: 1.2;
    opacity: 0.8;
  }
  .site-header-shell .speedometer-ticks {
    stroke-width: 1.45;
    opacity: 0.9;
  }
  .site-header-shell .speedometer-needle {
    stroke: var(--lime);
    stroke-width: 2.2;
    transform-box: view-box;
    transform-origin: 32px 36px;
    transform: rotate(0deg);
  }
  .site-header-shell .speedometer-hub {
    fill: currentColor;
    stroke: var(--lime);
    stroke-width: 1.1;
  }
  .site-header-shell .speedometer-label,
  .site-header-shell .speedometer-unit {
    fill: #ff6a00;
    stroke: none;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: 0;
    filter: none;
  }
  .site-header-shell .speedometer-unit {
    fill: #ff6a00;
    font-size: 5.8px;
    text-anchor: middle;
    letter-spacing: 0.08em;
  }
  .site-header-shell .speedometer-mid {
    text-anchor: middle;
  }
  .site-header-shell .speedometer-max {
    text-anchor: end;
  }
  .site-header-shell .menu-toggle.speedometer-ready[aria-expanded="true"] .speedometer-needle {
    animation: speedometer-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .site-header-shell .menu-toggle.speedometer-ready[aria-expanded="false"] .speedometer-needle {
    animation: speedometer-down 0.56s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .site-header-shell .menu-toggle.speedometer-cruising[aria-expanded="true"] .speedometer-needle {
    animation: speedometer-cruise 0.72s ease-in-out infinite alternate;
  }
  @keyframes speedometer-up {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(90deg);
    }
  }
  @keyframes speedometer-cruise {
    from {
      transform: rotate(90deg);
    }
    to {
      transform: rotate(108deg);
    }
  }
  @keyframes speedometer-down {
    from {
      transform: rotate(180deg);
    }
    to {
      transform: rotate(0deg);
    }
  }
  .site-header-shell .menu-toggle:hover,
  .site-header-shell .menu-toggle:focus-visible {
    background: transparent;
    transform: translateY(-1px);
  }
  .site-header-shell .menu-toggle[aria-expanded="true"] {
    background: transparent;
    color: var(--racing-red);
  }
  .site-header-shell .menu-toggle[aria-expanded="true"] .menu-speedometer {
    color: var(--racing-red);
    filter: drop-shadow(0 0 5px rgba(254, 5, 4, 0.42));
  }
  .site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-arc,
  .site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-needle,
  .site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-unit {
    stroke: var(--racing-red);
    color: var(--racing-red);
    fill: var(--racing-red);
  }
}
@media (max-width: 760px) {
  .site-header-shell .site-header {
    padding-inline: 4.5vw;
  }
  .site-header-shell .brand,
  .site-header-shell .brand img {
    max-width: 132px;
  }
  .site-header-shell .brand img {
    width: 132px;
    max-width: calc(100vw - 204px);
    max-height: 28px;
  }
  .site-header-shell .mobile-header-tools {
    gap: 11px;
  }
  .site-header-shell .mobile-header-language {
    min-width: 58px;
  }
  .site-header-shell .mobile-header-language-option {
    min-width: 25px;
    padding-inline: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header-shell .theme-icon-core,
  .site-header-shell .theme-icon-rays,
  .site-header-shell .theme-icon-moon,
  .site-header-shell .theme-icon,
  .site-header-shell .theme-toggle,
  .site-header-shell .speedometer-needle {
    transition: none !important;
    animation: none !important;
  }
}

/* Interaction cleanup: no browser focus boxes or touch flashes on pointer interaction. */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}
*:focus,
*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Keep the gauge readable while the menu is open; only 100 MPH signals the active state. */
.site-header-shell .menu-toggle[aria-expanded="true"] {
  color: var(--lime);
}
.site-header-shell .menu-toggle[aria-expanded="true"] .menu-speedometer {
  color: var(--lime);
  filter: drop-shadow(0 0 4px rgba(13, 151, 43, 0.28));
}
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-arc,
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-needle,
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-unit {
  stroke: var(--lime) !important;
  color: var(--lime) !important;
  fill: var(--lime) !important;
}
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-max {
  fill: var(--racing-red);
  filter: drop-shadow(0 0 5px rgba(254, 5, 4, 0.9));
}

/* Header controls: preserve the icon, remove colored click-state boxes. */
.site-header-shell .theme-toggle:focus,
.site-header-shell .theme-toggle:focus-visible,
.site-header-shell .theme-toggle:active,
.site-header-shell .site-header > .mobile-header-tools .menu-toggle:focus,
.site-header-shell .site-header > .mobile-header-tools .menu-toggle:focus-visible,
.site-header-shell .site-header > .mobile-header-tools .menu-toggle:active,
.site-header-shell .site-header > .mobile-header-tools .menu-toggle[aria-expanded="true"] {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.site-header-shell .theme-toggle:focus::before,
.site-header-shell .theme-toggle:focus-visible::before,
.site-header-shell .theme-toggle:active::before,
.site-header-shell .site-header > .mobile-header-tools .menu-toggle:focus::before,
.site-header-shell .site-header > .mobile-header-tools .menu-toggle:focus-visible::before,
.site-header-shell .site-header > .mobile-header-tools .menu-toggle:active::before,
.site-header-shell .site-header > .mobile-header-tools .menu-toggle[aria-expanded="true"]::before {
  border-color: transparent !important;
  transform: none !important;
}

/* Neutral speedometer sweep; the active red signal belongs only to the 100 MPH mark. */
.site-header-shell .speedometer-arc,
.site-header-shell .speedometer-needle,
.site-header-shell .speedometer-unit {
  stroke: currentColor;
}
.site-header-shell .menu-toggle[aria-expanded="true"] {
  color: var(--paper);
}
.site-header-shell .menu-toggle[aria-expanded="true"] .menu-speedometer {
  color: var(--paper);
  filter: drop-shadow(0 0 4px rgba(241, 242, 235, 0.24));
}
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-arc,
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-needle,
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-unit {
  stroke: currentColor !important;
  color: currentColor !important;
  fill: currentColor !important;
}
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-max {
  fill: var(--racing-red);
  filter: drop-shadow(0 0 5px rgba(254, 5, 4, 0.9));
}

/* Final gauge color: electric lime body, transparent interior, red 100 MPH active mark. */
.site-header-shell .menu-toggle .menu-speedometer {
  color: var(--lime);
  filter: drop-shadow(0 0 4px rgba(13, 151, 43, 0.28));
}
.site-header-shell .menu-toggle .speedometer-arc,
.site-header-shell .menu-toggle .speedometer-needle,
.site-header-shell .menu-toggle .speedometer-unit {
  stroke: var(--lime) !important;
  color: var(--lime) !important;
  fill: none !important;
}
.site-header-shell .menu-toggle[aria-expanded="true"] {
  color: var(--lime);
}
.site-header-shell .menu-toggle[aria-expanded="true"] .menu-speedometer {
  color: var(--lime);
  filter: drop-shadow(0 0 4px rgba(13, 151, 43, 0.38));
}
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-max {
  fill: var(--racing-red);
  filter: drop-shadow(0 0 5px rgba(254, 5, 4, 0.9));
}

/* Gauge geometry must stay stroke-only: never paint the interior of the dial. */
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-bezel,
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-arc,
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-ticks {
  fill: none !important;
}
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-needle {
  fill: none !important;
}
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-unit {
  fill: #ff6a00 !important;
}

/* Final label pass: all MPH and numeric marks stay readable neon yellow in every menu state. */
.site-header-shell .speedometer-label,
.site-header-shell .speedometer-unit,
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-label,
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-unit,
.site-header-shell .menu-toggle[aria-expanded="true"] .speedometer-max {
  fill: #ff6a00 !important;
  color: #ff6a00 !important;
  filter: none !important;
}

/* Header proportion pass: larger racing gauge, compact language selector. */
.site-header-shell .menu-speedometer {
  width: 62px;
  height: 46px;
}
.site-header-shell .mobile-header-language {
  transform: scale(0.5);
  transform-origin: right center;
}

/* Final header proportions: previous gauge size, 3/4 language switch, shared bottom baseline. */
.site-header-shell .mobile-header-tools {
  align-items: flex-end;
}
.site-header-shell .menu-speedometer {
  width: 44px;
  height: 33px;
}
.site-header-shell .mobile-header-language {
  transform: scale(0.75);
  transform-origin: right bottom;
}
.site-header-shell .mobile-header-theme-toggle {
  height: 33px !important;
  min-height: 33px !important;
  align-items: flex-end !important;
}
.site-header-shell .site-header > .mobile-header-tools .menu-toggle {
  height: 33px !important;
  align-self: flex-end;
}

/* Liquid language toggle: only the green active circle moves; labels and shell stay steady. */
.site-header-shell .mobile-header-language {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  backface-visibility: hidden;
}
.site-header-shell .mobile-header-language::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(13, 151, 43, 0.38);
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  will-change: transform, border-radius;
  transition:
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header-shell .mobile-header-language.is-bn::before {
  transform: translate3d(28px, 0, 0) scale(1.02);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
}
.site-header-shell .mobile-header-language-option {
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(241, 242, 235, 0.62);
  transition: color 0.22s ease;
}
.site-header-shell .mobile-header-language-option.is-active {
  background: transparent !important;
  color: var(--ink);
  box-shadow: none !important;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .site-header-shell .mobile-header-language::before {
    transition: none !important;
  }
  .site-header-shell .mobile-header-language.is-bn::before {
    transform: translate3d(28px, 0, 0) scale(1);
  }
}

/* Symmetric liquid travel: the active circle occupies exactly one half of the switch. */
.site-header-shell .mobile-header-language::before {
  left: 2px;
  top: 2px;
  width: calc(50% - 2.5px);
  height: calc(100% - 4px);
  transform: translate3d(0, 0, 0) scale(1);
}
.site-header-shell .mobile-header-language.is-language-initializing::before {
  transition: none !important;
  animation: none !important;
}
.site-header-shell .mobile-header-language.is-bn::before {
  transform: translate3d(calc(100% + 1px), 0, 0) scale(1.02);
}
@media (prefers-reduced-motion: reduce) {
  .site-header-shell .mobile-header-language.is-bn::before {
    transform: translate3d(calc(100% + 1px), 0, 0) scale(1);
  }
}

/* Best-effort privacy layer for Registration and Allowance pages. */
.privacy-protected-page main {
  position: relative;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
}
.privacy-protected-page input,
.privacy-protected-page textarea,
.privacy-protected-page select {
  user-select: text;
  -webkit-user-select: text;
}
.privacy-watermark {
  position: fixed;
  z-index: 9998;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  color: rgba(13, 151, 43, 0.12);
  font: 700 clamp(12px, 2vw, 22px) / 1 var(--mono);
  letter-spacing: 0.18em;
  text-align: center;
  transform: rotate(-24deg);
  white-space: nowrap;
  mix-blend-mode: screen;
}
.privacy-watermark::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: repeating-linear-gradient(
    -24deg,
    transparent 0 150px,
    rgba(13, 151, 43, 0.06) 151px 152px
  );
}
.privacy-protected-page.privacy-hidden main,
.privacy-protected-page.privacy-hidden .site-header,
.privacy-protected-page.privacy-hidden .privacy-watermark {
  visibility: hidden !important;
}
@media print {
  .privacy-protected-page body > * {
    display: none !important;
  }
  .privacy-protected-page::before {
    content: "Protected page — printing disabled";
    display: block;
    padding: 20vh 10vw;
    color: #080908;
    font: 700 18px var(--mono);
    text-align: center;
  }
}

/* Dynamic FSAE cursor: the image is visual-only; pointer hit testing uses the full car footprint. */
.tcp-cursor-switch {
  position: fixed;
  z-index: 2147483647;
  left: 0;
  top: 50%;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(241, 242, 235, 0.34);
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(145deg, rgba(24, 34, 28, 0.88), rgba(6, 10, 8, 0.84));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    8px 10px 30px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(13, 151, 43, 0.22),
    0 0 24px rgba(13, 151, 43, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--paper);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.32s,
    background 0.32s,
    box-shadow 0.32s;
}
.tcp-cursor-switch:before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(13, 151, 43, 0.34);
  border-left-color: transparent;
  border-radius: 0 15px 15px 0;
  transform: rotate(-12deg);
  pointer-events: none;
}
.tcp-cursor-switch:after {
  content: "PLAY";
  position: absolute;
  left: 70px;
  top: 50%;
  color: var(--lime);
  font: italic 900 18px/1 var(--display);
  letter-spacing: 0.12em;
  text-shadow:
    2px 2px 0 rgba(8, 9, 8, 0.8),
    0 0 12px rgba(13, 151, 43, 0.48);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-8px, -50%) skewX(-10deg);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.tcp-cursor-switch:hover,
.tcp-cursor-switch:focus-visible {
  width: 78px;
  border-color: var(--lime);
  background: linear-gradient(145deg, rgba(20, 86, 37, 0.9), rgba(5, 14, 8, 0.9));
  box-shadow:
    10px 10px 34px rgba(0, 0, 0, 0.48),
    0 0 0 4px rgba(13, 151, 43, 0.08),
    0 0 30px rgba(13, 151, 43, 0.4);
  outline: none;
}
.tcp-cursor-switch:hover:after,
.tcp-cursor-switch:focus-visible:after {
  opacity: 1;
  transform: translate(0, -50%);
}
.tcp-cursor-switch.is-active:after {
  content: "QUIT";
}
.tcp-cursor-switch-car,
.tcp-cursor-switch-pointer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    opacity 0.24s ease-in-out,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.tcp-cursor-switch-car img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 7px rgba(13, 151, 43, 0.4));
}
.tcp-cursor-switch-pointer {
  opacity: 0;
  transform: scale(0.55) rotate(-12deg);
}
.tcp-cursor-switch-pointer svg {
  width: 25px;
  height: 25px;
  fill: var(--paper);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.tcp-cursor-switch-pointer path {
  stroke: var(--lime);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.tcp-cursor-switch.is-active .tcp-cursor-switch-car {
  opacity: 0;
  transform: scale(0.55) rotate(12deg);
}
.tcp-cursor-switch.is-active {
  border-color: var(--racing-red);
  background: linear-gradient(145deg, rgba(91, 18, 17, 0.9), rgba(12, 7, 7, 0.9));
  box-shadow:
    8px 10px 34px rgba(0, 0, 0, 0.48),
    0 0 0 4px rgba(254, 5, 4, 0.08),
    0 0 30px rgba(254, 5, 4, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.tcp-cursor-switch.is-active:before {
  border-color: rgba(254, 5, 4, 0.48);
  border-left-color: transparent;
}
.tcp-cursor-switch.is-active .tcp-cursor-switch-pointer {
  opacity: 1;
  transform: none;
}
.tcp-fsae-cursor {
  position: fixed;
  z-index: 2147483646;
  left: 0;
  top: 0;
  width: 72px;
  height: 72px;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) rotate(0deg);
  transform-origin: 50% 50%;
  transition: opacity 0.18s ease;
}
.tcp-fsae-cursor.is-enabled {
  opacity: 1;
}
.tcp-fsae-cursor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.42));
}
.tcp-cursor-proxy-hover {
  --tcp-cursor-hover: 1;
}
@media (pointer: fine) {
  html.tcp-custom-cursor-active,
  html.tcp-custom-cursor-active body,
  html.tcp-custom-cursor-active body * {
    cursor: none !important;
  }
}
@media (pointer: coarse) {
  .tcp-cursor-switch {
    display: none;
  }
  .tcp-fsae-cursor {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tcp-fsae-cursor,
  .tcp-cursor-switch,
  .tcp-cursor-switch-car,
  .tcp-cursor-switch-pointer {
    transition: none;
  }
}
@keyframes tcpCursorOrbit {
  to {
    transform: rotate(338deg);
  }
}

/* Cursor selector: slightly larger car preview for the selected-cursor control. */
.tcp-cursor-switch-car img {
  width: 43px;
  height: 43px;
}

/* Cursor color carousel: wheel input is captured by the fixed selector, never the page. */
.tcp-cursor-switch {
  overscroll-behavior: contain;
  touch-action: none;
  cursor: grab;
}
.tcp-cursor-switch.is-dock-left {
  top: var(--dock-offset, 50%);
}
.tcp-cursor-switch.is-dock-right {
  left: auto;
  right: 0;
  top: var(--dock-offset, 50%);
  border-left: 1px solid rgba(241, 242, 235, 0.34);
  border-right: 0;
  border-radius: 20px 0 0 20px;
}
.tcp-cursor-switch.is-dock-right:before {
  border-left-color: rgba(13, 151, 43, 0.34);
  border-right-color: transparent;
  border-radius: 15px 0 0 15px;
}
.tcp-cursor-switch.is-dock-right .tcp-cursor-mode {
  left: auto;
  right: 70px;
  transform: translate(8px, -50%) skewX(10deg);
}
.tcp-cursor-switch.is-dock-right:hover .tcp-cursor-mode,
.tcp-cursor-switch.is-dock-right:focus-visible .tcp-cursor-mode {
  transform: translate(0, -50%) skewX(10deg);
}
.tcp-cursor-switch.is-dock-top {
  left: var(--dock-offset, 50%);
  top: 0;
  border-left: 1px solid rgba(241, 242, 235, 0.34);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  transform: translateX(-50%);
}
.tcp-cursor-switch.is-dock-top:before {
  border-left-color: rgba(13, 151, 43, 0.34);
  border-top-color: transparent;
  border-radius: 0 0 15px 15px;
}
.tcp-cursor-switch.is-dock-top .tcp-cursor-mode {
  left: 50%;
  top: 70px;
  transform: translate(-50%, -8px) skewX(-10deg);
}
.tcp-cursor-switch.is-dock-top:hover .tcp-cursor-mode,
.tcp-cursor-switch.is-dock-top:focus-visible .tcp-cursor-mode {
  transform: translate(-50%, 0) skewX(-10deg);
}
.tcp-cursor-switch.is-dock-bottom {
  left: var(--dock-offset, 50%);
  top: auto;
  bottom: 0;
  border-left: 1px solid rgba(241, 242, 235, 0.34);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  transform: translateX(-50%);
}
.tcp-cursor-switch.is-dock-bottom:before {
  border-left-color: rgba(13, 151, 43, 0.34);
  border-bottom-color: transparent;
  border-radius: 15px 15px 0 0;
}
.tcp-cursor-switch.is-dock-bottom .tcp-cursor-mode {
  left: 50%;
  top: auto;
  bottom: 70px;
  transform: translate(-50%, 8px) skewX(-10deg);
}
.tcp-cursor-switch.is-dock-bottom:hover .tcp-cursor-mode,
.tcp-cursor-switch.is-dock-bottom:focus-visible .tcp-cursor-mode {
  transform: translate(-50%, 0) skewX(-10deg);
}
.tcp-cursor-switch.is-dragging,
.tcp-cursor-switch.is-dragging:hover {
  width: 64px;
  height: 64px;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  border: 1px solid rgba(241, 242, 235, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%) !important;
  cursor: grabbing;
  transition: none;
  box-shadow:
    10px 14px 36px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(13, 151, 43, 0.12),
    0 0 30px rgba(13, 151, 43, 0.3);
}
.tcp-cursor-switch.is-dragging:before {
  inset: 7px;
  border-color: rgba(13, 151, 43, 0.34);
  border-radius: 50%;
}
.tcp-cursor-switch.is-dragging .tcp-cursor-mode {
  opacity: 0;
  pointer-events: none;
}
.tcp-cursor-switch.is-floating,
.tcp-cursor-switch.is-floating:hover {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(241, 242, 235, 0.38);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(145deg, rgba(35, 51, 42, 0.78), rgba(7, 13, 10, 0.84));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.38),
    0 2px 7px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(13, 151, 43, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    left 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background 0.28s ease;
}
.tcp-cursor-switch.is-floating:before {
  inset: 6px;
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transform: none;
}
.tcp-cursor-switch.is-floating:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.44),
    0 0 0 4px rgba(13, 151, 43, 0.08),
    0 0 26px rgba(13, 151, 43, 0.26),
    inset 0 1px 1px rgba(255, 255, 255, 0.24);
}
.tcp-cursor-switch.is-floating .tcp-cursor-switch-car img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.48));
}
.tcp-cursor-switch.is-floating .tcp-cursor-mode {
  opacity: 0 !important;
  pointer-events: none;
}
.tcp-cursor-switch.is-floating.is-dragging {
  transition: none;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.5),
    0 0 0 5px rgba(13, 151, 43, 0.12),
    0 0 30px rgba(13, 151, 43, 0.3);
}
.tcp-cursor-switch.is-flinging {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(241, 242, 235, 0.38);
  border-radius: 50%;
  transform: translate(-50%, -50%) !important;
  cursor: grabbing;
  transition: none;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.5),
    0 0 0 5px rgba(13, 151, 43, 0.12),
    0 0 30px rgba(13, 151, 43, 0.3);
}
.tcp-cursor-switch.is-flinging:before {
  inset: 6px;
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transform: none;
}
.tcp-cursor-switch.is-flinging .tcp-cursor-mode,
.tcp-cursor-switch[data-cursor-color="yellow"] .tcp-cursor-switch-car img,
.tcp-cursor-switch[data-cursor-color="cyan"] .tcp-cursor-switch-car img,
.tcp-cursor-switch[data-cursor-color="red"] .tcp-cursor-switch-car img {
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.58));
}
@keyframes tcpCursorEnterLeft {
  from {
    opacity: 0;
    transform: translate(-115%, -50%) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
}
@keyframes tcpCursorEnterRight {
  from {
    opacity: 0;
    transform: translate(115%, -50%) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
}
@keyframes tcpCursorEnterTop {
  from {
    opacity: 0;
    transform: translate(-50%, -115%) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}
@keyframes tcpCursorEnterBottom {
  from {
    opacity: 0;
    transform: translate(-50%, 115%) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}
@keyframes tcpCursorExitLeft {
  from {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-115%, -50%) scale(0.72);
  }
}
@keyframes tcpCursorExitRight {
  from {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(115%, -50%) scale(0.72);
  }
}
@keyframes tcpCursorExitTop {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -115%) scale(0.72);
  }
}
@keyframes tcpCursorExitBottom {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, 115%) scale(0.72);
  }
}
.tcp-cursor-switch.is-route-entering,
.tcp-cursor-switch.is-route-exiting {
  pointer-events: none;
  animation-duration: 0.48s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}
.tcp-cursor-switch.is-route-entering[data-route-edge="left"] {
  animation-name: tcpCursorEnterLeft;
}
.tcp-cursor-switch.is-route-entering[data-route-edge="right"] {
  animation-name: tcpCursorEnterRight;
}
.tcp-cursor-switch.is-route-entering[data-route-edge="top"] {
  animation-name: tcpCursorEnterTop;
}
.tcp-cursor-switch.is-route-entering[data-route-edge="bottom"] {
  animation-name: tcpCursorEnterBottom;
}
.tcp-cursor-switch.is-route-exiting[data-route-edge="left"] {
  animation-name: tcpCursorExitLeft;
}
.tcp-cursor-switch.is-route-exiting[data-route-edge="right"] {
  animation-name: tcpCursorExitRight;
}
.tcp-cursor-switch.is-route-exiting[data-route-edge="top"] {
  animation-name: tcpCursorExitTop;
}
.tcp-cursor-switch.is-route-exiting[data-route-edge="bottom"] {
  animation-name: tcpCursorExitBottom;
}
.tcp-cursor-switch-car img,
.tcp-fsae-cursor img {
  transition: filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .tcp-cursor-switch-car img,
  .tcp-fsae-cursor img {
    transition: none;
  }
}

/* PLAY / CIRCUITS mode label: its own wheel zone locks page scroll and cycles smoothly. */
.tcp-cursor-switch:after,
.tcp-cursor-switch.is-active:after {
  content: none;
}
.tcp-cursor-mode {
  position: absolute;
  left: 70px;
  top: 50%;
  z-index: 3;
  color: var(--lime);
  font: italic 900 18px/1 var(--display);
  letter-spacing: 0.12em;
  text-shadow:
    2px 2px 0 rgba(8, 9, 8, 0.8),
    0 0 12px rgba(13, 151, 43, 0.48);
  white-space: nowrap;
  opacity: 0;
  pointer-events: auto;
  cursor: ns-resize;
  transform: translate(-8px, -50%) skewX(-10deg);
  transition:
    opacity 0.25s,
    transform 0.25s,
    color 0.2s;
}
.tcp-cursor-mode-value {
  display: inline-block;
  min-width: 8ch;
  white-space: nowrap;
}
.tcp-cursor-switch:hover .tcp-cursor-mode,
.tcp-cursor-switch:focus-visible .tcp-cursor-mode {
  opacity: 1;
  transform: translate(0, -50%) skewX(-10deg);
}
.tcp-cursor-switch[data-cursor-mode="track"] .tcp-cursor-mode {
  color: var(--lime);
}
.tcp-cursor-mode::after {
  content: " ↕";
  font: 700 9px/1 var(--mono);
  letter-spacing: 0;
  opacity: 0.7;
  vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
  .tcp-cursor-mode {
    transition: none;
  }
}
.machine-car-visual {
  aspect-ratio: 16/9;
  background: #0a0d0a;
  border: 1px solid rgba(13, 151, 43, 0.22);
  box-shadow:
    0 0 0 1px rgba(8, 9, 8, 0.65),
    0 18px 50px rgba(0, 0, 0, 0.28);
}
.machine-car-visual:after {
  display: none;
}
.machine-car-visual img {
  object-fit: contain !important;
  opacity: 1 !important;
  filter: saturate(1.02) contrast(1.04) !important;
  transform: none !important;
}

/* One-car-at-a-time vehicle archive: transparent stage, autonomous RTL sweeps, and season readouts. */
.machine-car-visual.machine-car-carousel {
  --machine-car-slide-duration: 0.78s;
  --machine-car-slide-ease: cubic-bezier(0.68, 0, 0.26, 1);
  aspect-ratio: 16 / 9;
  min-height: clamp(320px, 43vw, 640px);
  height: auto;
  margin-top: clamp(28px, 5vw, 72px);
  overflow: visible;
  isolation: isolate;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.machine-car-stage {
  position: absolute;
  inset: 0 0 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}
.machine-car-carousel .machine-car-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  opacity: 1 !important;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28)) saturate(1.02) contrast(1.04) !important;
  transform: none !important;
  transition:
    opacity 0.54s ease,
    transform var(--machine-car-slide-duration) var(--machine-car-slide-ease),
    filter var(--machine-car-slide-duration) var(--machine-car-slide-ease) !important;
  will-change: opacity, transform;
}
.machine-car-carousel .machine-car-image.is-leaving {
  opacity: 0 !important;
  transform: translate3d(-112%, 0, 0) skewX(7deg) scale(0.96) !important;
  filter: blur(2px) brightness(1.12) !important;
}
.machine-car-carousel .machine-car-image.is-entering {
  opacity: 0 !important;
  transform: translate3d(112%, 0, 0) skewX(-7deg) scale(0.96) !important;
  transition: none !important;
}
.machine-car-motion-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
.machine-car-motion-lines::before,
.machine-car-motion-lines::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.machine-car-motion-lines::before {
  inset: -18%;
  background: repeating-linear-gradient(
    166deg,
    transparent 0 20px,
    rgba(13, 151, 43, 0.16) 21px,
    transparent 22px 42px
  );
  transform: translate3d(-22%, 0, 0) skewX(-18deg);
}
.machine-car-motion-lines::after {
  content: none;
  display: none;
}
.machine-car-carousel.is-changing .machine-car-motion-lines {
  opacity: 1;
}
.machine-car-carousel.is-changing .machine-car-motion-lines::before {
  animation: tcpCarSpeedLines 0.84s cubic-bezier(0.58, 0.02, 0.38, 0.98) both;
}
.machine-car-stamp {
  position: absolute;
  z-index: 2;
  top: 5%;
  right: 1%;
  padding-left: 10px;
  border-left: 1px solid var(--lime);
  color: rgba(241, 242, 235, 0.6);
  font: 9px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-2mm);
  pointer-events: none;
}
.machine-car-readout-bar {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding-top: 10px;
  pointer-events: none;
  user-select: none;
}
.machine-car-readout {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.machine-car-readout > span {
  color: rgba(241, 242, 235, 0.5);
  font: 8px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.machine-car-readout > strong {
  overflow: hidden;
  color: var(--paper);
  font: 500 13px/1.2 var(--display);
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.machine-car-count {
  flex: 0 0 auto;
  color: var(--lime);
  font: 8px/1.3 var(--mono);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
@keyframes tcpCarSpeedLines {
  0% {
    opacity: 0;
    transform: translate3d(28%, 0, 0) skewX(-18deg);
  }
  24% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: translate3d(-25%, 0, 0) skewX(-18deg);
  }
}
@media (max-width: 760px) {
  .machine-car-visual.machine-car-carousel {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: clamp(240px, 70vw, 340px);
    min-height: 0;
    margin-top: 32px;
  }
  .machine-car-stage {
    bottom: 58px;
  }
  .machine-car-readout-bar {
    min-height: 50px;
  }
  .machine-car-stamp {
    top: 3%;
    right: 2%;
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .machine-car-carousel .machine-car-image,
  .machine-car-carousel .machine-car-image.is-leaving,
  .machine-car-carousel .machine-car-image.is-entering {
    transition: none !important;
    animation: none !important;
  }
  .machine-car-motion-lines,
  .machine-car-motion-lines::before,
  .machine-car-motion-lines::after {
    animation: none !important;
  }
}

/* Model-name morph, visible season stamp offset, and restrained horizontal sweep. */
.machine-car-stamp {
  top: calc(5% - 3.2px);
  transform: translateY(-5mm);
}
.machine-car-carousel .machine-car-nameplate {
  position: absolute;
  z-index: 2;
  top: 5%;
  left: 2%;
  display: grid;
  justify-items: start;
  gap: 5px;
  max-width: 86%;
  color: rgba(241, 242, 235, 0.96);
  pointer-events: none;
  user-select: none;
  transform-origin: left center;
  opacity: 1;
  filter: blur(0);
  transition:
    top var(--machine-car-slide-duration) var(--machine-car-slide-ease),
    left var(--machine-car-slide-duration) var(--machine-car-slide-ease),
    opacity 0.54s ease,
    transform var(--machine-car-slide-duration) var(--machine-car-slide-ease),
    filter var(--machine-car-slide-duration) var(--machine-car-slide-ease);
}
.machine-car-carousel .machine-car-nameplate::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -9px;
  width: 2px;
  height: calc(100% - 2px);
  background: var(--lime);
  opacity: 0.9;
  transform: skewX(-16deg);
}
.machine-car-carousel .machine-car-nameplate::after {
  content: "";
  position: absolute;
  top: 0;
  right: -15px;
  width: 8px;
  height: 7px;
  border-top: 1px solid var(--lime);
  border-right: 1px solid var(--lime);
  opacity: 0.72;
  transform: skewX(-18deg);
}
.machine-car-nameplate-word {
  display: block;
  color: var(--paper);
  font: italic 800 clamp(28px, 4.8vw, 58px) / 0.88 var(--display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
  transition: letter-spacing var(--machine-car-slide-duration) var(--machine-car-slide-ease);
}
.machine-car-nameplate-slashes {
  display: flex;
  gap: 4px;
  height: 3px;
  margin-top: 1px;
}
.machine-car-nameplate-slashes i {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--lime);
  opacity: 0.88;
  transform: skewX(-32deg);
}
.machine-car-nameplate-slashes i:nth-child(2) {
  width: 9px;
  opacity: 0.6;
}
.machine-car-nameplate-slashes i:nth-child(3) {
  width: 4px;
  opacity: 0.32;
}
.machine-car-carousel .machine-car-nameplate.is-arriving {
  top: 52%;
  left: 73%;
  opacity: 0;
  transform: translateY(-50%) scale(0.76) skewX(-9deg);
  filter: blur(5px);
  transition: none;
}
.machine-car-nameplate.is-arriving .machine-car-nameplate-word {
  letter-spacing: 0.36em;
  transition: none;
}
.machine-car-carousel .machine-car-nameplate.is-departing {
  top: 5%;
  left: -42%;
  opacity: 0;
  transform: scale(0.82) skewX(8deg);
  filter: blur(4px);
}
.machine-car-nameplate.is-departing .machine-car-nameplate-word {
  letter-spacing: 0.32em;
}
.machine-car-motion-lines::after {
  content: "";
  display: block;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(13, 151, 43, 0.2) 20%,
    rgba(13, 151, 43, 0.7) 42%,
    rgba(241, 242, 235, 0.8) 50%,
    rgba(13, 151, 43, 0.7) 58%,
    rgba(13, 151, 43, 0.2) 80%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(13, 151, 43, 0.22);
  transform: translate3d(110%, 0, 0);
}
.machine-car-carousel.is-changing .machine-car-motion-lines {
  z-index: 2;
}
.machine-car-carousel.is-changing .machine-car-motion-lines::after {
  animation: tcpCarScanLine 0.76s cubic-bezier(0.34, 0.04, 0.5, 0.96) both;
}
.machine-car-carousel.is-changing .machine-car-motion-lines::before {
  background: repeating-linear-gradient(
    166deg,
    transparent 0 22px,
    rgba(13, 151, 43, 0.1) 23px,
    transparent 24px 46px
  );
}
@keyframes tcpCarScanLine {
  0% {
    opacity: 0;
    transform: translate3d(110%, 0, 0);
  }
  20% {
    opacity: 0.72;
  }
  82% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate3d(-110%, 0, 0);
  }
}
@media (max-width: 760px) {
  .machine-car-stamp {
    top: calc(3% - 1.74px);
    transform: translateY(-5mm);
  }
  .machine-car-nameplate-kicker {
    font-size: 7px;
  }
  .machine-car-nameplate-word {
    font-size: 28px;
  }
  .machine-car-carousel .machine-car-nameplate.is-arriving {
    top: 52%;
    left: 64%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .machine-car-carousel .machine-car-nameplate,
  .machine-car-nameplate-word,
  .machine-car-motion-lines::after {
    transition: none !important;
    animation: none !important;
  }
}

/* EB Garamond variable font: local Latin subset for roster designation labels. */
@font-face {
  font-family: "EB Garamond";
  src: url("/public/fonts/eb-garamond-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

/* Gutsand model lettering: local font, model-only scope, and graphic-only race marks. */
@font-face {
  font-family: "Gutsand";
  src: url("/public/fonts/gutsand.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --car-model-font: "Gutsand", "Barlow Condensed", "Arial Narrow", sans-serif;
}
.machine-car-carousel .machine-car-nameplate::before {
  top: -2px;
  left: -10px;
  height: calc(100% + 5px);
  background: linear-gradient(180deg, var(--paper) 0 18%, var(--lime) 18% 100%);
}
.machine-car-carousel .machine-car-nameplate::after {
  right: -18px;
  width: 12px;
  height: 10px;
  border-color: rgba(241, 242, 235, 0.76);
}
.machine-car-carousel .machine-car-nameplate-word {
  font: 400 clamp(25px, 4vw, 52px) / 0.96 var(--car-model-font);
  letter-spacing: 0.055em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
  font-kerning: normal;
}
.machine-car-nameplate-slashes {
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform var(--machine-car-slide-duration) var(--machine-car-slide-ease);
}
.machine-car-nameplate.is-arriving .machine-car-nameplate-slashes {
  transform: scaleX(0);
  transform-origin: right center;
  transition: none;
}
.machine-car-nameplate.is-departing .machine-car-nameplate-slashes {
  transform: scaleX(0.42);
  transform-origin: left center;
}
.car-archive-nameplate {
  position: relative;
  display: inline-grid;
  justify-items: start;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 10px 22px 12px 12px;
  isolation: isolate;
}
.car-archive-nameplate::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8px;
  left: 0;
  width: 2px;
  height: calc(100% - 16px);
  background: linear-gradient(180deg, var(--paper) 0 16%, var(--lime) 16% 100%);
  opacity: 0.9;
  transform: skewX(-15deg);
}
.car-archive-nameplate::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 10px;
  border-top: 1px solid var(--lime);
  border-right: 1px solid var(--lime);
  opacity: 0.76;
  transform: skewX(-18deg);
}
.car-archive-copy .car-archive-model {
  position: relative;
  z-index: 1;
  margin: 0;
  color: inherit;
  font: 400 clamp(30px, 4vw, 64px) / 0.86 var(--car-model-font);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: left center;
  font-kerning: normal;
  animation: tcpCarArchiveLockIn 0.72s cubic-bezier(0.16, 0.78, 0.24, 1) both;
}
.car-archive-nameplate-slashes {
  display: flex;
  gap: 5px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: tcpCarArchiveSlashIn 0.72s cubic-bezier(0.16, 0.78, 0.24, 1) 0.06s both;
}
.car-archive-nameplate-slashes i {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--lime);
  transform: skewX(-32deg);
}
.car-archive-nameplate-slashes i:nth-child(2) {
  width: 14px;
  opacity: 0.62;
}
.car-archive-nameplate-slashes i:nth-child(3) {
  width: 6px;
  opacity: 0.34;
}
@keyframes tcpCarArchiveLockIn {
  0% {
    opacity: 0;
    transform: translate3d(24px, 0, 0) skewX(-10deg) scale(0.94);
    filter: blur(4px);
    letter-spacing: 0.16em;
    clip-path: inset(0 0 0 24%);
  }
  58% {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
    letter-spacing: 0.035em;
    clip-path: inset(0);
  }
}
@keyframes tcpCarArchiveSlashIn {
  0% {
    opacity: 0.25;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}
@media (max-width: 760px) {
  .machine-car-carousel .machine-car-nameplate-word {
    font-size: 24px;
  }
  .car-archive-copy {
    min-width: 0;
  }
  .car-archive-nameplate {
    gap: 10px;
    min-width: 0;
    padding: 8px 12px 10px 8px;
  }
  .car-archive-copy .car-archive-model {
    font-size: clamp(28px, 8vw, 42px);
    letter-spacing: 0.015em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .machine-car-nameplate-slashes {
    transition: none !important;
  }
  .car-archive-copy .car-archive-model,
  .car-archive-nameplate-slashes {
    animation: none !important;
  }
}

/* Keep the moving image clipped to its stage while the nameplate floats above the stage without a frame. */
.machine-car-visual.machine-car-carousel {
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.machine-car-carousel .machine-car-stage {
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.machine-car-carousel .machine-car-nameplate {
  left: clamp(14px, 2%, 24px);
  max-width: calc(100% - 38px);
}
.machine-car-carousel .machine-car-nameplate.is-arriving {
  left: min(73%, calc(100% - 320px));
}

/* Matte monocoque archive panel: opaque graphite, chamfered corners and crisp race marks. */
.car-archive-detail {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: stretch;
  gap: clamp(26px, 4.5vw, 64px);
  padding: clamp(30px, 4vw, 48px);
  min-height: 510px;
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(138deg, #111411 0%, #090b09 54%, #101310 100%);
  border: 1px solid #343b34;
  border-radius: 0;
  clip-path: polygon(
    14px 0,
    calc(100% - 40px) 0,
    100% 40px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%,
    0 14px
  );
}
.car-archive-detail::before,
.car-archive-detail::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.car-archive-detail::before {
  top: 0;
  left: 28px;
  width: 112px;
  height: 3px;
  background: linear-gradient(90deg, #b3ed54, #f1f2eb);
}
.car-archive-detail::after {
  top: 18px;
  right: 20px;
  width: 46px;
  height: 3px;
  background: var(--lime);
  transform: skewX(-32deg);
}
.car-archive-copy,
.car-archive-detail .car-spec-grid {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.car-archive-nameplate {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}
.car-archive-copy .car-archive-model {
  max-width: 100%;
  white-space: nowrap;
}
.car-archive-vehicle {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(180px, 22vw, 252px);
  margin: 18px 0 22px;
  overflow: hidden;
  background: #080a08;
  border: 1px solid #303830;
  border-radius: 0;
  clip-path: polygon(
    0 12px,
    12px 0,
    calc(100% - 26px) 0,
    100% 26px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%
  );
}
.car-archive-vehicle::before,
.car-archive-vehicle::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  height: 2px;
}
.car-archive-vehicle::before {
  top: 0;
  left: 24px;
  width: 38px;
  background: var(--lime);
}
.car-archive-vehicle::after {
  right: 14px;
  bottom: 12px;
  width: 24px;
  background: var(--paper);
  transform: skewX(-32deg);
}
.car-archive-vehicle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.42));
  opacity: 1;
  transform: none;
  animation: none !important;
  transition: none !important;
}
.car-archive-detail .car-spec-grid {
  align-content: stretch;
  gap: 2px;
  background: #303830;
}
.car-archive-detail .car-spec-grid > div {
  position: relative;
  min-width: 0;
  min-height: 142px;
  padding: 22px 18px;
  background: #0c0f0c;
}
.car-archive-detail .car-spec-grid > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 22px;
  height: 2px;
  background: var(--lime);
}
.car-archive-detail .car-spec-grid span {
  color: #9ba397;
}
html[data-theme="light"] .car-archive-detail {
  color: var(--paper) !important;
  background: #0b0d0b !important;
  border-color: #343b34;
}
html[data-theme="light"] .car-archive-detail .car-spec-grid {
  background: #303830 !important;
}
html[data-theme="light"] .car-archive-detail .car-spec-grid > div {
  background: #0c0f0c !important;
}
@media (max-width: 760px) {
  .machine-car-carousel .machine-car-nameplate {
    left: 14px;
    max-width: calc(100% - 28px);
  }
  .machine-car-carousel .machine-car-nameplate.is-arriving {
    left: min(64%, calc(100% - 185px));
  }
  .machine-car-carousel .machine-car-nameplate-word {
    font-size: 24px;
  }
  .car-archive-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 22px 24px;
    min-height: 0;
    clip-path: polygon(
      12px 0,
      calc(100% - 28px) 0,
      100% 28px,
      100% calc(100% - 12px),
      calc(100% - 12px) 100%,
      0 100%,
      0 12px
    );
  }
  .car-archive-nameplate {
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px 10px 8px;
  }
  .car-archive-copy .car-archive-model {
    font-size: clamp(26px, 8vw, 42px);
    letter-spacing: 0.015em;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .car-archive-vehicle {
    height: clamp(182px, 60vw, 248px);
    margin: 14px 0 20px;
  }
  .car-archive-detail .car-spec-grid {
    min-height: 0;
  }
  .car-archive-detail .car-spec-grid > div {
    min-height: 116px;
    padding: 15px 14px;
  }
}
@media (max-width: 360px) {
  .car-archive-detail {
    padding-right: 18px;
    padding-left: 18px;
  }
  .car-archive-copy .car-archive-model {
    font-size: clamp(24px, 8vw, 31px);
  }
}

/* Cars archive: let the supplied transparent prototypes float, uncropped. */
.car-archive-vehicle {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(220px, 28vw, 340px);
  margin: 18px 0 22px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  clip-path: none;
}

.car-archive-vehicle::before,
.car-archive-vehicle::after {
  display: none;
}

.car-archive-vehicle img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.4));
}

@media (max-width: 760px) {
  .car-archive-vehicle {
    height: clamp(220px, 68vw, 300px);
    margin: 14px 0 20px;
  }
}
/* CP-C21 uses a portrait-oriented supplied photo; keep its transparent cutout clear of the card edge. */
.car-archive-vehicle-2021 img {
  width: 84%;
  height: 84%;
  transform: translateY(-20mm);
}
.machine-car-carousel[data-active-season="2021"] .machine-car-image {
  width: 86%;
  height: 86%;
  scale: 0.94;
}
@media (max-width: 760px) {
  .car-archive-vehicle-2021 img {
    width: 90%;
    height: 90%;
  }
  .machine-car-carousel[data-active-season="2021"] .machine-car-image {
    width: 90%;
    height: 90%;
    scale: 0.96;
  }
}

/* F1-calibrated motion telemetry above the active side-docked cursor selector. */
.tcp-cursor-speed {
  position: absolute;
  left: 8px;
  bottom: calc(100% + 8px);
  width: 150px;
  color: var(--lime);
  font: 800 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(13, 151, 43, 0.55);
  transition:
    opacity 0.2s,
    color 0.2s;
}
.tcp-cursor-switch.is-dock-right .tcp-cursor-speed {
  left: auto;
  right: 8px;
  text-align: right;
}
.tcp-cursor-switch.is-active.is-dock-left .tcp-cursor-speed,
.tcp-cursor-switch.is-active.is-dock-right .tcp-cursor-speed {
  opacity: 1;
}
.tcp-cursor-switch.is-active.is-dock-left .tcp-cursor-speed::before,
.tcp-cursor-switch.is-active.is-dock-right .tcp-cursor-speed::before {
  content: "SPEED / ";
  color: var(--paper);
  opacity: 0.64;
}
@media (prefers-reduced-motion: reduce) {
  .tcp-cursor-speed {
    transition: none;
  }
}

/* Keep F1 velocity telemetry visible above the selector in every active dock state. */
.tcp-cursor-switch.is-active .tcp-cursor-speed {
  opacity: 1;
}
.tcp-cursor-switch.is-floating .tcp-cursor-speed {
  left: 50%;
  right: auto;
  bottom: calc(100% + 10px);
  width: 180px;
  text-align: center;
  transform: translateX(-50%);
}
.tcp-cursor-switch.is-floating.is-active .tcp-cursor-speed::before {
  content: "SPEED / ";
  color: var(--paper);
  opacity: 0.64;
}

/* Cursor telemetry typography: supplied Gutsand display font. */
.tcp-cursor-speed {
  font-family: "Gutsand", "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* Compact telemetry: show only the live value and KM/H unit. */
.tcp-cursor-speed::before {
  content: none !important;
}
.tcp-cursor-speed {
  font-size: 9px;
}


/* Smooth, solid management profile with standalone SVG contact marks. */
.member-modal-card {
  width: min(980px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(22, 31, 24, 0.1);
  border-radius: 22px;
  background: #f7f8f5;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36), 0 8px 24px rgba(0, 0, 0, 0.12);
  clip-path: none;
  scrollbar-width: thin;
}
.member-modal-card::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  height: 2px;
  width: auto;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--lime), #b5d7a9 56%, #e3b3aa 82%, var(--racing-red));
  opacity: 0.72;
  pointer-events: none;
}
.member-modal-card::after {
  display: none;
}
.member-modal-media {
  min-height: 400px;
  background: #111411;
}
.member-modal-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(0deg, rgba(8, 9, 8, 0.28), transparent);
  pointer-events: none;
}
.member-modal-content {
  position: relative;
  padding: 44px 48px 38px;
  background: #f7f8f5;
}
.member-modal-content .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.16em;
}
.member-modal-content .kicker::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}
.member-modal-content h2 {
  max-width: 560px;
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.member-modal-columns {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  margin-top: 28px;
  border-top-color: rgba(8, 9, 8, 0.13);
  padding-top: 20px;
}
.member-modal-label {
  margin-bottom: 14px;
  color: #727b72;
  letter-spacing: 0.16em;
}
.member-modal-socials {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 17px;
}
.member-modal-socials .member-modal-social-link {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #19201b;
  clip-path: none;
  box-shadow: none;
  transition: transform 180ms ease, filter 180ms ease, color 180ms ease;
}
.member-modal-socials .member-modal-social-link:hover {
  transform: translateY(-2px) scale(1.12);
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.16));
}
.member-modal-socials .member-modal-social-link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
.member-modal-social-link > svg,
.member-modal-social-link > img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.member-modal-social-link > svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.member-modal-social-link[title="Email"]:hover {
  color: #0d972b;
}
.member-modal-social-link[data-label]::after {
  display: none;
}
.member-modal-close {
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eef0eb;
  color: #202720;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.member-modal-close:hover {
  border: 0;
  background: var(--racing-red);
  color: #fff;
}
@media (max-width: 760px) {
  .member-modal {
    padding: 10px;
  }
  .member-modal-card {
    max-height: calc(100vh - 20px);
    border-radius: 17px;
  }
  .member-modal-card::before {
    border-radius: 17px 17px 0 0;
  }
  .member-modal-media,
  .member-modal-media img,
  .member-modal-media > span {
    height: clamp(190px, 48vw, 250px);
    min-height: clamp(190px, 48vw, 250px);
  }
  .member-modal-content {
    padding: 28px 22px 26px;
  }
  .member-modal-content h2 {
    padding-right: 26px;
    font-size: clamp(40px, 10vw, 54px);
    line-height: 0.92;
  }
  .member-modal-columns {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 14px;
  }
  .member-modal-socials {
    gap: 14px;
  }
}
@media (max-width: 460px) {
  .member-modal-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .member-modal-socials {
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .member-modal-socials .member-modal-social-link {
    transition: none;
  }
}


/* Keep a decoded circuit layer ready so PLAY / TRACK changes crossfade without waiting for a URL swap. */
.tcp-cursor-switch-track {
  position: absolute;
  inset: 4px 5px 20px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(-4px) scale(0.94);
  pointer-events: none;
  transition:
    opacity 0.24s ease-in-out,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.tcp-cursor-switch-track img {
  width: 50px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.34));
}
.tcp-cursor-switch[data-cursor-mode="track"] .tcp-cursor-switch-car {
  inset: 4px 5px 20px;
  opacity: 0;
  transform: translateX(-4px) scale(0.94);
  transition:
    opacity 0.24s ease-in-out,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.tcp-cursor-switch[data-cursor-mode="track"] .tcp-cursor-switch-track {
  opacity: 1;
  transform: none;
}
.tcp-cursor-switch-track-name {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 8px;
  left: 4px;
  display: block;
  color: #f4f6f1;
  font: 700 7px/1 var(--mono);
  letter-spacing: 0.1em;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  pointer-events: none;
  transition:
    opacity 0.22s ease-in-out,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.24s;
}
.tcp-cursor-switch[data-cursor-mode="track"] .tcp-cursor-switch-track-name {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s, 0s, 0s;
}
.tcp-cursor-switch[data-track-name="BRANDS HATCH"] .tcp-cursor-switch-track-name {
  font-size: 6px;
  letter-spacing: 0.04em;
}
.tcp-cursor-switch[data-cursor-mode="track"].is-track-changing .tcp-cursor-switch-track img {
  animation: tcpTrackPreviewEnter 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tcp-cursor-switch[data-cursor-mode="track"].is-track-changing .tcp-cursor-switch-track-name {
  animation: tcpTrackNameEnter 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tcpTrackPreviewEnter {
  from {
    opacity: 0.15;
    transform: translateX(3px) scale(0.96);
    filter: blur(0.35px) drop-shadow(0 0 3px rgba(255, 255, 255, 0.28));
  }
  to {
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.34));
  }
}
@keyframes tcpTrackNameEnter {
  from { opacity: 0.35; transform: translateX(2px); }
  to { opacity: 1; transform: none; }
}
/* Keep PLAY/TRACK reachable after the selector is dragged into its floating position. */
.tcp-cursor-switch.is-floating .tcp-cursor-mode {
  right: auto;
  bottom: auto;
  left: 50%;
  top: calc(100% + 8px);
  transform: translate(-50%, -5px) skewX(-10deg);
  opacity: 0 !important;
  pointer-events: none;
}
.tcp-cursor-switch.is-floating:hover .tcp-cursor-mode,
.tcp-cursor-switch.is-floating:focus-visible .tcp-cursor-mode {
  opacity: 1 !important;
  transform: translate(-50%, 0) skewX(-10deg);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .tcp-cursor-switch-car,
  .tcp-cursor-switch-track,
  .tcp-cursor-switch[data-cursor-mode="track"] .tcp-cursor-switch-car,
  .tcp-cursor-switch-track-name,
  .tcp-cursor-mode-value,
  .tcp-cursor-switch[data-cursor-mode="track"].is-track-changing .tcp-cursor-switch-track img,
  .tcp-cursor-switch[data-cursor-mode="track"].is-track-changing .tcp-cursor-switch-track-name {
    transition: none;
    animation: none;
  }
}

/* Liquid roster filter: the active pill stretches into a soft dumbbell while traveling. */
#team .roster-filters{position:relative;isolation:isolate;overflow:hidden}
#team .roster-filters::before{content:"";position:absolute;z-index:0;left:var(--liquid-x,6px);top:var(--liquid-y,6px);width:var(--liquid-w,0px);height:var(--liquid-h,36px);border-radius:999px;background:linear-gradient(135deg,#0d972b,#19ad3a);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 5px 15px rgba(13,151,43,.24);pointer-events:none;transition:left .58s cubic-bezier(.16,1,.3,1),top .58s cubic-bezier(.16,1,.3,1),width .58s cubic-bezier(.16,1,.3,1),height .58s cubic-bezier(.16,1,.3,1)}
#team .roster-filters.is-liquid-moving::before{animation:rosterLiquidDumbbell .66s cubic-bezier(.2,.8,.2,1) both}
#team .roster-filter{position:relative;z-index:1;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
#team .roster-filter.is-active,#team .roster-filter.is-active:hover{color:#080908;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
@keyframes rosterLiquidDumbbell{0%,100%{transform:scale(1);border-radius:999px}28%{transform:scaleX(1.14) scaleY(.78);border-radius:48% 52% 48% 52% / 70% 35% 70% 35%}52%{transform:scaleX(.9) scaleY(1.12);border-radius:38% 62% 42% 58% / 38% 70% 30% 62%}76%{transform:scaleX(1.06) scaleY(.9);border-radius:999px}}
@media (prefers-reduced-motion:reduce){#team .roster-filters::before{transition:none}#team .roster-filters.is-liquid-moving::before{animation:none}}

/* Mobile EN/BN liquid toggle: active language stretches into a soft dumbbell while sliding. */
@media (max-width:760px){
  .site-header-shell .mobile-header-language{position:relative;isolation:isolate;overflow:hidden}
  .site-header-shell .mobile-header-language::before{content:"";position:absolute;z-index:0;left:var(--lang-liquid-x,3px);top:var(--lang-liquid-y,3px);width:var(--lang-liquid-w,32px);height:var(--lang-liquid-h,28px);border-radius:999px;background:linear-gradient(135deg,#0d972b,#19ad3a);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 14px rgba(13,151,43,.38);pointer-events:none;transition:left .56s cubic-bezier(.16,1,.3,1),top .56s cubic-bezier(.16,1,.3,1),width .56s cubic-bezier(.16,1,.3,1),height .56s cubic-bezier(.16,1,.3,1)}
  .site-header-shell .mobile-header-language.is-liquid-moving::before{animation:mobileLanguageDumbbell .62s cubic-bezier(.2,.8,.2,1) both}
  .site-header-shell .mobile-header-language-option{background:transparent!important;box-shadow:none!important}
  .site-header-shell .mobile-header-language-option.is-active{background:transparent!important;color:#080908;box-shadow:none!important;transform:none}
}
@keyframes mobileLanguageDumbbell{0%,100%{transform:scale(1);border-radius:999px}28%{transform:scaleX(1.18) scaleY(.76);border-radius:48% 52% 48% 52% / 70% 35% 70% 35%}52%{transform:scaleX(.9) scaleY(1.12);border-radius:38% 62% 42% 58% / 38% 70% 30% 62%}76%{transform:scaleX(1.06) scaleY(.9);border-radius:999px}}
@media (prefers-reduced-motion:reduce){.site-header-shell .mobile-header-language::before{transition:none}.site-header-shell .mobile-header-language.is-liquid-moving::before{animation:none}}

/* Mobile fixes: keep BN aligned with the calculated liquid pill and restore touch scrolling for filters. */
@media (max-width:760px){
  .site-header-shell .mobile-header-language.is-bn:not(.is-liquid-moving)::before{transform:none!important;border-radius:999px}
  #team .roster-filters{overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;-ms-overflow-style:none;touch-action:pan-x}
  #team .roster-filters::-webkit-scrollbar{display:none;width:0;height:0}
}


/* LIVE ROSTER INDEX: vertical ferris-wheel card deck. */
#team .roster-grid.is-roster-wheel {
  display: block;
  position: relative;
  height: min(390px, 52vh);
  min-height: 280px;
  margin: 30px 0 18px;
  padding: var(--wheel-side-space, 100px) 14px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
  perspective: 900px;
  background:
    linear-gradient(90deg, rgba(8, 9, 8, 0.035), transparent 18%, transparent 82%, rgba(8, 9, 8, 0.035)),
    #fff;
}
#team .roster-grid.is-roster-wheel::-webkit-scrollbar { display: none; width: 0; height: 0; }
#team .roster-grid.is-roster-wheel::before,
#team .roster-grid.is-roster-wheel::after {
  content: "";
  position: sticky;
  z-index: 12;
  left: 0;
  display: block;
  width: 100%;
  height: 42px;
  pointer-events: none;
}
#team .roster-grid.is-roster-wheel::before {
  top: calc(var(--wheel-side-space, 100px) - 1px);
  margin-bottom: -42px;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0));
}
#team .roster-grid.is-roster-wheel::after {
  bottom: calc(var(--wheel-side-space, 100px) - 1px);
  margin-top: -42px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
#team .roster-grid.is-roster-wheel .member-card {
  min-height: 86px;
  margin: 10px 0;
  scroll-snap-align: center;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: box-shadow 0.28s ease, filter 0.28s ease;
  filter: saturate(0.88);
}
#team .roster-grid.is-roster-wheel .member-card.is-wheel-center {
  filter: saturate(1.08) brightness(1.02);
  box-shadow: 0 16px 30px rgba(254, 5, 4, 0.2);
}
#team .roster-grid.is-roster-wheel .member-card:hover {
  transform: none;
}
@media (max-width: 760px) {
  #team .roster-grid.is-roster-wheel {
    height: min(360px, 60vh);
    min-height: 260px;
    padding-inline: 8px;
  }
  #team .roster-grid.is-roster-wheel .member-card {
    margin: 8px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #team .roster-grid.is-roster-wheel { scroll-behavior: auto; }
  #team .roster-grid.is-roster-wheel .member-card { transition: none; }
}


/* Continuous wheel refinement: one centered column with seamless recycled copies. */
#team .roster-grid.is-roster-wheel {
  display: block;
  padding-inline: 0;
  scroll-snap-type: y mandatory;
  scroll-padding-block: var(--wheel-side-space, 100px);
}
#team .roster-grid.is-roster-wheel .member-card {
  width: min(100%, 760px);
  margin-inline: auto;
  transform-origin: center center;
  rotate: none;
}
#team .roster-grid.is-roster-wheel .member-card:hover {
  transform: none;
}
@media (max-width: 760px) {
  #team .roster-grid.is-roster-wheel .member-card {
    width: 100%;
  }
}

/* Never animate or snap the wheel during initial positioning; movement begins only from user input. */
#team .roster-grid.is-roster-wheel.is-roster-initializing {
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}
#team .roster-grid.is-roster-wheel {
  scroll-behavior: auto;
  scroll-snap-type: y proximity;
}


/* Light-touch depth: keep every roster card readable while preserving quiet distance cues. */
#team .roster-grid.is-roster-wheel {
  perspective: none;
}
#team .roster-grid.is-roster-wheel .member-card {
  filter: none;
  transition: box-shadow 0.18s ease;
  backface-visibility: hidden;
  contain: layout paint style;
}
#team .roster-grid.is-roster-wheel .member-card.is-wheel-center {
  filter: none;
  box-shadow: 0 6px 14px rgba(254, 5, 4, 0.08);
}

/* Floating roster surface: no visible scrolling box, only a soft white edge fade. */
#team .roster-grid.is-roster-wheel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
#team .roster-grid.is-roster-wheel::before,
#team .roster-grid.is-roster-wheel::after {
  display: none;
}
#team .roster-grid.is-roster-wheel .member-card {
  background: #fe0504 !important;
  box-shadow: 0 8px 18px rgba(8, 9, 8, 0.08);
}
#team .roster-grid.is-roster-wheel .member-card.is-wheel-center {
  box-shadow: 0 10px 22px rgba(8, 9, 8, 0.12);
}


/* Desktop roster rollback: the ferris-wheel interaction is mobile-only. */
@media (min-width: 761px) {
  #team .roster-grid.is-roster-wheel,
  #team .roster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 90px;
    align-items: stretch;
    gap: 12px;
    height: auto;
    min-height: 0;
    margin: 30px 0 18px;
    padding: 0;
    overflow: visible;
    background: #fff !important;
    border: 0;
    box-shadow: none;
    scroll-snap-type: none;
    scroll-padding: 0;
    scroll-behavior: auto;
    mask-image: none;
    -webkit-mask-image: none;
    perspective: none;
  }
  #team .roster-grid.is-roster-wheel::before,
  #team .roster-grid.is-roster-wheel::after {
    display: none;
  }
  #team .roster-grid .member-card[data-wheel-copy]:not([data-wheel-copy="2"]) {
    display: none;
  }
  #team .roster-grid.is-roster-wheel .member-card,
  #team .roster-grid .member-card {
    width: auto;
    min-height: 86px;
    margin: 0;
    transform: none !important;
    opacity: 1 !important;
    filter: none;
    box-shadow: 0 10px 22px rgba(254, 5, 4, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  #team .roster-grid.is-roster-wheel .member-card.is-wheel-center {
    box-shadow: 0 10px 22px rgba(254, 5, 4, 0.12);
  }
  #team .roster-grid .member-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 28px rgba(254, 5, 4, 0.22);
  }
}


/* Exclusive full-directory action for the live roster. */
#team .roster-directory-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 9px 10px 9px 18px;
  border: 1px solid rgba(8, 9, 8, 0.9);
  border-radius: 999px;
  background: #080908;
  color: #fff;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(8, 9, 8, 0.12);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease;
}
#team .roster-directory-link::after { display: none; }
#team .roster-directory-label { color: inherit; }
#team .roster-directory-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--racing-red);
  color: #fff;
  font: 700 16px/1 var(--display);
  letter-spacing: 0;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), background 0.35s ease, color 0.35s ease;
}
#team .roster-directory-link:hover,
#team .roster-directory-link:focus-visible {
  background: var(--racing-red);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(254, 5, 4, 0.2);
}
#team .roster-directory-link:hover .roster-directory-arrow,
#team .roster-directory-link:focus-visible .roster-directory-arrow {
  background: #fff;
  color: var(--racing-red);
  transform: rotate(45deg);
}
@media (max-width: 760px) {
  #team .roster-directory-link {
    width: 100%;
    justify-content: space-between;
    margin-top: 24px;
  }
}

/* Compact header shutter: standard vertical breathing room without the oversized lower gap. */
.site-header-shell .site-header {
  padding-top: 22px;
  padding-bottom: 22px;
}
@media (max-width: 760px) {
  .site-header-shell .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}


/* Standard compact directory action: left-sided at every viewport width. */
#team .roster-directory-link {
  width: fit-content;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 7px 8px 7px 14px;
  font-size: 9px;
  letter-spacing: 0.1em;
}
#team .roster-directory-arrow {
  width: 24px;
  height: 24px;
  font-size: 14px;
}
@media (max-width: 760px) {
  #team .roster-directory-link {
    width: fit-content;
    justify-content: flex-start;
    margin-top: 20px;
  }
}


/* Three-quarter scale directory action. */
#team .roster-directory-link {
  gap: 7px;
  margin-top: 18px;
  padding: 5px 6px 5px 10px;
  font-size: 8px;
}
#team .roster-directory-arrow {
  width: 18px;
  height: 18px;
  font-size: 11px;
}
@media (max-width: 760px) {
  #team .roster-directory-link { margin-top: 16px; }
}

/* Equal payment tiles: every option gets a true 1:1 logo box with optical sizing. */
.payment-option .payment-logo,
.member-dashboard-workplace .payment-option .payment-logo {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  padding: 3px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
}
.payment-option .bkash-logo,
.payment-option .nagad-logo {
  object-fit: cover;
  padding: 0;
}
.payment-option .rocket-logo {
  object-fit: contain;
  padding: 2px;
}
@media (max-width: 760px) {
  .payment-option .payment-logo,
  .member-dashboard-workplace .payment-option .payment-logo {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
  }
}

/* Member home: social-profile structure translated into the TCP visual system. */
.member-profile-interface {
  width: min(1100px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(13, 151, 43, 0.28);
  border-radius: 18px;
  background: #0d120e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
.member-profile-cover {
  position: relative;
  height: clamp(230px, 31vw, 360px);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(254, 5, 4, 0.44), transparent 28%),
    linear-gradient(125deg, #101a12 0%, #122e1d 42%, #080908 100%);
}
.member-profile-cover::before,
.member-profile-cover::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.member-profile-cover::before {
  inset: 0;
  opacity: 0.26;
  background: repeating-linear-gradient(135deg, transparent 0 36px, rgba(241, 242, 235, 0.13) 37px 38px, transparent 39px 74px);
}
.member-profile-cover::after {
  width: 48%;
  height: 180%;
  right: 7%;
  top: -42%;
  border: 1px solid rgba(254, 5, 4, 0.38);
  transform: rotate(24deg);
  box-shadow: 0 0 0 14px rgba(13, 151, 43, 0.08), 0 0 0 30px rgba(254, 5, 4, 0.06);
}
.member-profile-cover-art,
.member-profile-cover-grid {
  position: absolute;
  inset: 0;
}
.member-profile-cover-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.7;
  filter: saturate(0.72) contrast(1.05);
}
.member-profile-cover-art img[hidden] { display: none; }
.member-profile-cover-grid {
  opacity: 0.35;
  background: linear-gradient(90deg, transparent 0 49.8%, rgba(241, 242, 235, 0.25) 50%, transparent 50.2%), linear-gradient(0deg, transparent 0 49.8%, rgba(241, 242, 235, 0.18) 50%, transparent 50.2%);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 74%, transparent);
}
.member-profile-cover-caption {
  position: absolute;
  z-index: 2;
  inset: 22px 26px auto;
  display: flex;
  justify-content: space-between;
  color: rgba(241, 242, 235, 0.72);
  font: 9px var(--mono);
  letter-spacing: 0.14em;
}
.member-cover-upload {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  background: rgba(8, 9, 8, 0.84);
  color: var(--lime);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(8, 9, 8, 0.35);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.member-cover-upload:hover { transform: translateY(-3px); background: var(--lime); color: #080908; }
.member-cover-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.member-profile-identity {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 150px;
  gap: 24px;
  padding: 24px 34px 18px 238px;
  background: #0d120e;
}
.member-profile-avatar {
  position: absolute;
  z-index: 5;
  left: 34px;
  top: -104px;
  width: 178px;
  height: 178px;
  padding: 7px;
  border-radius: 50%;
  background: #0d120e;
  box-shadow: 0 0 0 3px var(--lime), 0 0 0 8px #0d120e, 0 18px 38px rgba(0, 0, 0, 0.4);
}
.member-profile-avatar .member-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  background: #17251a;
}
.member-profile-avatar .member-avatar-upload { right: -7px; bottom: 1px; top: auto; }
.member-profile-identity-copy h2 {
  margin: 6px 0 7px;
  color: var(--paper);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.member-profile-identity-copy .member-profile-email { margin: 8px 0 0; color: var(--muted); font: 10px var(--mono); }
.member-profile-identity-copy .member-role { margin: 0; color: var(--lime); font: 10px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.member-profile-status { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; align-self: flex-start; color: var(--lime); font: 9px var(--mono); letter-spacing: 0.12em; }
.member-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(13, 151, 43, 0.8); }
.member-profile-bio { max-width: 680px; margin: 0; padding: 0 34px 20px 238px; color: var(--muted); font: 11px/1.7 var(--mono); }
.member-profile-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0 34px 26px 238px; color: rgba(241, 242, 235, 0.54); font: 8px var(--mono); letter-spacing: 0.1em; }
.member-profile-actions { display: flex; align-items: center; gap: 12px; padding: 0 34px 26px 238px; }
.member-profile-primary-action,
.member-profile-secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font: 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.member-profile-primary-action { gap: 15px; background: var(--lime); color: #080908; }
.member-profile-primary-action span { font-size: 16px; }
.member-profile-primary-action:hover { transform: translateY(-3px); background: var(--racing-red); color: #fff; }
.member-profile-secondary-action { margin: 0; border: 1px solid rgba(241, 242, 235, 0.26); background: transparent; color: var(--paper); }
.member-profile-secondary-action:hover { transform: translateY(-3px); border-color: var(--racing-red); color: var(--racing-red); }
.member-profile-tabs { display: flex; gap: 26px; padding: 0 34px; border-top: 1px solid rgba(241, 242, 235, 0.12); border-bottom: 1px solid rgba(241, 242, 235, 0.12); }
.member-profile-tabs button { position: relative; padding: 16px 0 14px; border: 0; background: transparent; color: var(--muted); font: 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.member-profile-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.member-profile-tabs button.is-active, .member-profile-tabs button:hover { color: var(--lime); }
.member-profile-tabs button.is-active::after { background: var(--lime); }
.member-profile-details { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; padding: 36px 34px 44px; }
.member-profile-details h3 { margin: 14px 0 0; color: var(--paper); font-size: clamp(28px, 4vw, 52px); line-height: 0.9; letter-spacing: -0.06em; text-transform: uppercase; }
.member-profile-details h3 em { color: var(--lime); font-style: normal; }
.member-profile-detail-list { display: grid; gap: 0; border-top: 1px solid rgba(241, 242, 235, 0.13); }
.member-profile-detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(241, 242, 235, 0.13); }
.member-profile-detail-list span { color: var(--muted); font: 8px var(--mono); letter-spacing: 0.1em; }
.member-profile-detail-list strong { color: var(--paper); font: 11px var(--mono); text-align: right; }
.member-dashboard-workplace .registration-submit.edge-glow-button { background: var(--lime); color: #080908; }
.member-dashboard-workplace .registration-submit.edge-glow-button:hover { background: var(--racing-red); color: #fff; }
@media (max-width: 760px) {
  .member-profile-cover { height: 220px; }
  .member-profile-cover-caption { inset: 16px 16px auto; font-size: 8px; }
  .member-cover-upload { right: 16px; bottom: 16px; width: 38px; height: 38px; }
  .member-profile-identity { display: block; min-height: 0; padding: 76px 18px 18px; }
  .member-profile-avatar { left: 18px; top: -78px; width: 132px; height: 132px; }
  .member-profile-status { position: absolute; right: 18px; top: 20px; }
  .member-profile-identity-copy h2 { font-size: 10vw; }
  .member-profile-bio, .member-profile-meta, .member-profile-actions { padding-left: 18px; padding-right: 18px; }
  .member-profile-actions { flex-wrap: wrap; }
  .member-profile-primary-action { flex: 1 1 100%; }
  .member-profile-secondary-action { min-width: 110px; }
  .member-profile-tabs { gap: 20px; padding: 0 18px; overflow-x: auto; }
  .member-profile-details { grid-template-columns: 1fr; gap: 28px; padding: 28px 18px 34px; }
  .member-profile-detail-list div { display: block; }
  .member-profile-detail-list strong { display: block; margin-top: 7px; text-align: left; }
}

/* Floating member profile: preserve the structure without a surrounding card. */
.member-profile-interface {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.member-profile-cover {
  border-radius: 0;
  border-top: 1px solid rgba(13, 151, 43, 0.24);
  border-bottom: 1px solid rgba(13, 151, 43, 0.24);
}
.member-profile-identity,
.member-profile-details {
  background: transparent;
}
.member-profile-identity {
  border-bottom: 0;
}

/* Full-bleed member home: the profile begins immediately below the site header. */
.member-page-root .member-panel-page {
  padding: 0 0 clamp(70px, 9vw, 130px);
  min-height: calc(100vh - 90px);
}
.member-panel-shell.is-authenticated {
  max-width: none;
  width: 100%;
}
.member-profile-interface {
  width: 100%;
  max-width: none;
  margin: 0;
}
.member-profile-cover {
  height: clamp(280px, 36vw, 480px);
}
@media (max-width: 760px) {
  .member-page-root .member-panel-page {
    padding: 0 0 70px;
  }
  .member-profile-cover {
    height: 250px;
  }
}

/* Edge-to-edge member route: no gutter against the header or viewport walls. */
html:has(.member-page-root),
body:has(.member-page-root) {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html:has(.member-page-root)::-webkit-scrollbar,
body:has(.member-page-root)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.member-page-root {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  overflow-x: hidden;
}
.member-page-root .member-panel-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}
/* Auth intro also clears the fixed shutter; authenticated profile routes override this below. */
.member-page-root .member-panel-page:not(:has(.member-panel-shell.is-authenticated)) {
  padding-top: calc(var(--tcp-real-header-height, 0px) + clamp(24px, 4vw, 52px)) !important;
}
.member-profile-interface {
  width: 100%;
  margin: 0 !important;
}
.member-profile-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: none;
}
@media (max-width: 760px) {
  .member-profile-cover {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Final mobile profile bleed: cover touches the header and both viewport walls. */
body:has(.member-page-root) .site-header-shell.is-revealed::after {
  display: none !important;
}
.member-page-root .member-profile-cover {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: 0;
  border-left: 0;
  border-right: 0;
}
.member-page-root .member-profile-bio,
.member-page-root .member-profile-meta,
.member-page-root .member-profile-actions {
  padding-left: clamp(14px, 3vw, 34px);
}
.member-page-root .member-profile-avatar {
  left: clamp(12px, 3vw, 34px);
}
@media (max-width: 760px) {
  .member-page-root .member-profile-identity {
    padding-left: 12px;
    padding-right: 12px;
  }
  .member-page-root .member-profile-avatar {
    left: 12px;
  }
  .member-page-root .member-profile-bio,
  .member-page-root .member-profile-meta,
  .member-page-root .member-profile-actions {
    padding-left: 12px;
    padding-right: 12px;
  }
  .member-page-root .member-profile-details {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Profile cover starts at the real header bottom, not at a shutter animation offset. */
.member-page-root .member-profile-page {
  padding-top: var(--tcp-real-header-height, 0px) !important;
  margin-top: 0 !important;
}
.member-page-root .member-profile-page > .member-profile-interface {
  margin-top: 0 !important;
}
body:has(.member-profile-page) .site-header-shell.is-revealed::after {
  display: none !important;
}

/* Interactive member image controls: clear affordances for click, focus, and drop. */
.member-profile-cover[data-member-cover-drop],
.member-profile-avatar[data-member-avatar-drop] {
  transition: box-shadow 0.32s ease, transform 0.32s ease;
}
.member-profile-cover[data-member-cover-drop].is-dragging {
  box-shadow: inset 0 0 0 2px var(--lime), inset 0 0 48px rgba(13, 151, 43, 0.24);
}
.member-profile-avatar[data-member-avatar-drop].is-dragging {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 0 3px var(--lime), 0 0 0 9px #0d120e, 0 0 30px rgba(13, 151, 43, 0.6);
}
.member-cover-upload:focus-within,
.member-avatar-upload:focus-within {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}
.member-cover-upload:hover .member-camera-icon,
.member-avatar-upload:hover .member-camera-icon {
  transform: scale(1.12) rotate(-6deg);
}
.member-cover-upload .member-camera-icon,
.member-avatar-upload .member-camera-icon {
  transition: transform 0.28s cubic-bezier(.16, 1, .3, 1);
}
.member-upload-toast {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(13, 151, 43, 0.72);
  border-radius: 999px;
  background: rgba(8, 9, 8, 0.88);
  color: var(--lime);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(.16, 1, .3, 1);
}
.member-upload-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 760px) {
  .member-upload-toast {
    bottom: 14px;
    font-size: 8px;
  }
}

/* DP upload control: solid lime camera glyph, no secondary circular badge. */
.member-profile-avatar .member-avatar-upload {
  width: auto;
  height: auto;
  right: -2px;
  bottom: 3px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--lime);
  box-shadow: none !important;
}
.member-profile-avatar .member-avatar-upload:hover,
.member-profile-avatar .member-avatar-upload:focus-within {
  background: transparent !important;
  color: #32d451;
  box-shadow: none !important;
}
.member-profile-avatar .member-avatar-upload .member-camera-icon,
.member-profile-avatar .member-avatar-upload .member-camera-icon svg {
  width: 25px;
  height: 25px;
}
.member-profile-avatar .member-avatar-upload .member-camera-icon svg {
  fill: var(--lime);
  stroke: none;
}
.member-profile-avatar .member-avatar-upload .member-camera-icon svg path {
  fill: currentColor;
  stroke: none;
}
.member-profile-avatar .member-avatar-upload .member-camera-icon svg circle {
  fill: #080908;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* DP camera badge: smooth white circle with the requested solid green camera glyph. */
.member-profile-avatar .member-avatar-upload {
  width: 36px;
  height: 36px;
  right: -8px;
  bottom: -8px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: #f1f2eb !important;
  color: var(--lime);
  box-shadow: 0 0 0 4px #0d120e !important;
}
.member-profile-avatar .member-avatar-upload:hover,
.member-profile-avatar .member-avatar-upload:focus-within {
  background: #ffffff !important;
  color: #0d972b;
  box-shadow: 0 0 0 4px #0d120e, 0 0 18px rgba(13, 151, 43, 0.42) !important;
}
.member-profile-avatar .member-avatar-upload .member-camera-icon,
.member-profile-avatar .member-avatar-upload .member-camera-icon svg {
  width: 22px;
  height: 22px;
}
/* Do not let the desktop cover grow beyond its exact 16:9 geometry. */
.member-page-root .member-profile-cover {
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  max-height: none !important;
}
@media (max-width: 760px) {
  .member-page-root .member-profile-cover {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }
}

/* The white DP badge remains; remove the green ring around the camera lens. */
.member-profile-avatar .member-avatar-upload .member-camera-icon svg circle {
  fill: #080908;
  stroke: none;
}
/* Authenticated desktop navigation uses the same system as Mission / Cars / Teams. */
.site-header .member-desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.site-header .member-desktop-nav > a,
.site-header .member-desktop-nav > button {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 0;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.site-header .member-desktop-nav > a:hover,
.site-header .member-desktop-nav > a:focus-visible,
.site-header .member-desktop-nav > button:hover,
.site-header .member-desktop-nav > button:focus-visible {
  color: var(--lime);
}
@media (max-width: 1100px) and (min-width: 861px) {
  .site-header .member-desktop-nav {
    gap: 20px;
  }
  .site-header .member-desktop-nav > a,
  .site-header .member-desktop-nav > button {
    font-size: 16px;
    letter-spacing: 0.07em;
  }
}

/* Cover crop editor uses a landscape 16:9 workspace. */
.member-crop-stage.is-cover-crop {
  aspect-ratio: 16 / 9;
}
.member-crop-stage.is-cover-crop .member-crop-selection {
  aspect-ratio: 16 / 9;
}
/* On desktop, show only the upper half of the cover panel; the stored crop stays 16:9. */
@media (min-width: 761px) {
  .member-page-root .member-profile-cover {
    height: calc(100vw * 9 / 32) !important;
    aspect-ratio: auto !important;
    max-height: none !important;
  }
}
/* No DP edit affordance appears on allowance or other non-home member pages. */
.member-allowance-page .member-avatar-upload {
  display: none !important;
}

/* Compact cover treatment on every viewport: show the upper half of the stored 16:9 image. */
.member-page-root .member-profile-cover {
  height: calc(100vw * 9 / 32) !important;
  aspect-ratio: auto !important;
  max-height: none !important;
}
/* Uploaded covers stay clean: remove the built-in artwork overlay without removing the upload affordance. */
.member-page-root .member-profile-cover.has-cover-photo::before,
.member-page-root .member-profile-cover.has-cover-photo::after,
.member-page-root .member-profile-cover.has-cover-photo .member-profile-cover-grid {
  display: none !important;
}
.member-page-root .member-profile-cover.has-cover-photo .member-profile-cover-art img {
  opacity: 1;
  filter: none;
}
/* Rounded, soft separator behind the overlapping DP. */
.member-page-root .member-profile-cover {
  border-bottom: 0 !important;
}
.member-page-root .member-profile-cover-grid::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: clamp(12px, 3vw, 34px);
  right: clamp(12px, 3vw, 34px);
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(13, 151, 43, 0.34);
  box-shadow: 0 0 12px rgba(13, 151, 43, 0.12);
}
@media (max-width: 760px) {
  .member-page-root .member-profile-cover {
    height: calc(100vw * 9 / 32) !important;
  }
  .member-page-root .member-profile-cover-grid::after {
    left: 12px;
    right: 12px;
  }
}

/* Roll back the standalone soft separator line; restore the cover's original edge. */
.member-page-root .member-profile-cover-grid::after {
  display: none !important;
}
.member-page-root .member-profile-cover {
  border-bottom: 1px solid rgba(13, 151, 43, 0.24) !important;
}
/* The solid black profile panel that overlaps the cover has soft top corners. */
.member-page-root .member-profile-identity {
  border-radius: 24px 24px 0 0;
  overflow: visible;
}
/* Mobile shows 75% of the stored 16:9 cover instead of the desktop half-panel. */
@media (max-width: 760px) {
  .member-page-root .member-profile-cover {
    height: calc(100vw * 27 / 64) !important;
  }
}

/* Task and Allowance pages begin exactly below the rendered header. */
.member-page-root .member-allowance-page {
  padding-top: var(--tcp-real-header-height, 0px) !important;
  margin-top: 0 !important;
  box-sizing: border-box;
}
.member-page-root .member-allowance-page .member-dashboard-layout {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-left: clamp(18px, 4vw, 60px);
  padding-right: clamp(18px, 4vw, 60px);
}
.member-page-root .member-allowance-page .member-dashboard-workplace,
.member-page-root .member-allowance-page .member-dashboard-profile {
  min-width: 0;
  overflow-wrap: anywhere;
}
.member-page-root .member-task-page .member-task-workplace {
  padding-bottom: 80px;
}
@media (max-width: 860px) {
  .member-page-root .member-allowance-page .member-dashboard-layout {
    padding-left: 18px;
    padding-right: 18px;
  }
  .member-page-root .member-allowance-page .member-dashboard-profile h2,
  .member-page-root .member-allowance-page .member-workplace-heading h3 {
    overflow-wrap: anywhere;
  }
}

/* Shared member DP treatment: Task and Allowance use the same fallback as Member Home. */
.member-page-root .member-dashboard-profile .member-avatar {
  display: grid;
  place-items: center;
  padding: 7px;
  border: 3px solid var(--lime);
  border-radius: 50%;
  box-sizing: border-box;
  background: #17251a;
  box-shadow: 0 0 0 5px #0d120e, 0 18px 38px rgba(0, 0, 0, 0.32);
}
.member-page-root .member-dashboard-profile .member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
.member-page-root .member-dashboard-profile .member-default-avatar {
  display: block;
  width: 58% !important;
  height: 58% !important;
  min-width: 0;
  min-height: 0;
  fill: none;
  stroke: var(--lime);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.member-page-root .member-dashboard-profile .member-default-avatar circle {
  fill: rgba(13, 151, 43, 0.14);
  stroke: var(--lime);
}
/* The fallback must disappear when the saved home-panel photo is active. */
.member-page-root .member-avatar .member-default-avatar[hidden] {
  display: none !important;
}

/* Task and Allowance use the exact Home DP wrapper geometry without absolute positioning. */
.member-page-root .member-dashboard-profile .member-profile-avatar {
  position: relative;
  left: auto;
  top: auto;
  width: clamp(132px, 14vw, 190px);
  height: clamp(132px, 14vw, 190px);
  padding: 7px;
  border-radius: 50%;
  background: #0d120e;
  box-shadow: 0 0 0 3px var(--lime), 0 0 0 8px #0d120e, 0 18px 38px rgba(0, 0, 0, 0.4);
}
.member-page-root .member-dashboard-profile .member-profile-avatar .member-avatar {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  padding: 0;
  background: #17251a;
}
@media (max-width: 860px) {
  .member-page-root .member-dashboard-profile .member-profile-avatar {
    width: clamp(132px, 48vw, 190px);
    height: clamp(132px, 48vw, 190px);
  }
}

/* Do not flash the sign-in form while the authenticated member session is restored. */
#member-panel-content.session-pending {
  min-height: 48vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#member-panel-content:not(.session-pending) {
  animation: member-session-reveal 0.28s ease both;
}
@keyframes member-session-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Keep the fallback DP SVG square; percentage height collapsed inside the dashboard grid. */
.member-page-root .member-dashboard-profile .member-default-avatar {
  width: 58% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  max-height: 58%;
}

/* Explicit square dimensions prevent SVG percentage-height collapse in Task/Allowance avatars. */
.member-page-root .member-dashboard-profile .member-default-avatar {
  width: 96px !important;
  height: 96px !important;
  max-width: 58%;
  max-height: 58%;
}
@media (max-width: 860px) {
  .member-page-root .member-dashboard-profile .member-default-avatar {
    width: 76px !important;
    height: 76px !important;
  }
}

/* Do not constrain the fallback SVG with a percentage max-height; it collapses in the dashboard grid. */
.member-page-root .member-dashboard-profile .member-default-avatar {
  max-height: none !important;
}

/* Dedicated member Task workspace: list first, then a focused progress submission. */
.member-task-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.member-task-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(241, 242, 235, 0.14);
}
.member-task-item:last-child { border-bottom: 1px solid rgba(241, 242, 235, 0.14); }
.member-task-index,
.member-task-status {
  color: var(--lime);
  font: 9px var(--mono);
  letter-spacing: 0.12em;
}
.member-task-status { color: var(--muted); }
.member-task-item h4 { margin: 0 0 8px; color: var(--paper); font-size: clamp(16px, 2vw, 23px); line-height: 1; text-transform: uppercase; }
.member-task-item p { margin: 0; color: var(--muted); font: 11px/1.65 var(--mono); }
.member-task-submit {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(13, 151, 43, 0.26);
  background: rgba(13, 151, 43, 0.045);
}
.member-task-submit label { display: grid; gap: 10px; color: var(--muted); font: 9px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.member-task-submit textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 120px; padding: 14px; border: 1px solid rgba(241, 242, 235, 0.2); background: rgba(0, 0, 0, 0.24); color: var(--paper); font: 12px/1.6 var(--mono); }
.member-task-submit textarea:focus { border-color: var(--lime); outline: none; }
.member-task-submit .registration-submit { margin-top: 18px; width: auto; }
.member-task-submit .registration-message.success { color: var(--lime); }
@media (max-width: 760px) {
  .member-task-item { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .member-task-status { grid-column: 2; }
  .member-task-submit { padding: 16px; }
}

/* Cursor selector startup stability: reveal after the first settled home layout frame. */
.tcp-cursor-switch.is-cursor-initializing {
  visibility: hidden !important;
  opacity: 0 !important;
  animation: none !important;
}
.tcp-cursor-switch.is-cursor-ready {
  animation: tcpCursorReady 0.16s ease-out both;
}
@keyframes tcpCursorReady {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Fast circuit wheel input should never be throttled by a selector transition. */
.tcp-cursor-switch[data-cursor-mode="track"] .tcp-cursor-switch-track,
.tcp-cursor-switch[data-cursor-mode="track"] .tcp-cursor-switch-car {
  will-change: opacity, transform;
}

/* Final mobile header alignment: language, theme, and speedometer controls share one baseline. */
@media (max-width: 760px) {
  .site-header-shell .mobile-header-tools {
    display: flex;
    align-items: center !important;
    gap: 8px;
    height: 33px;
  }
  .site-header-shell .mobile-header-language {
    height: 29px;
    min-width: 58px;
    transform: none;
    transform-origin: center;
  }
  .site-header-shell .mobile-header-theme-toggle,
  .site-header-shell .site-header > .mobile-header-tools .menu-toggle {
    height: 33px !important;
    min-height: 33px !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
  }
}

/* Mobile menu room + compact language control: keep the shutter clear and scrolling chrome invisible. */
@media (max-width: 760px) {
  .site-header-shell .mobile-header-language {
    transform: scale(0.7);
    transform-origin: center;
    align-self: center;
  }
  .site-header-shell .mobile-header-tools {
    align-items: center !important;
  }
  .site-header-shell .mobile-menu {
    padding-top: max(148px, calc(var(--mobile-menu-top-clearance, 148px) + 18px));
    padding-bottom: 64px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .site-header-shell .mobile-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  .site-header-shell .mobile-menu nav {
    justify-content: flex-start;
    min-height: max-content;
    padding-top: 8px;
    padding-bottom: 36px;
  }
}

/* Keep the first mobile menu option visibly below the header shutter. */
@media (max-width: 760px) {
  .site-header-shell .mobile-menu {
    padding-top: calc(var(--mobile-menu-top-clearance, 176px) + 24px);
    padding-bottom: 72px;
  }
  .site-header-shell .mobile-menu nav {
    padding-top: 12px;
  }
}

/* Correct scope: the mobile menu is a sibling of the header shell, not its child. */
@media (max-width: 760px) {
  .mobile-menu {
    top: 0;
    bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: calc(var(--mobile-menu-top-clearance, 176px) + 24px) !important;
    padding-bottom: 72px !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent;
  }
  .mobile-menu nav {
    justify-content: flex-start;
    min-height: max-content;
    padding-top: 12px;
    padding-bottom: 36px;
  }
}

/* Skeuomorphic cookie consent: tactile paper, inset well, and pressable controls. */
.cookie-backdrop {
  background: rgba(12, 14, 12, 0.62);
  backdrop-filter: blur(12px) saturate(0.86);
}
.cookie-card {
  position: relative;
  background: linear-gradient(145deg, #fdfdf8 0%, #ecece5 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 30px;
  box-shadow:
    16px 18px 28px rgba(0, 0, 0, 0.28),
    -8px -8px 18px rgba(255, 255, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(8, 9, 8, 0.08);
}
.cookie-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(8, 9, 8, 0.08);
  border-radius: 16px;
  pointer-events: none;
}
.cookie-card > * {
  position: relative;
  z-index: 1;
}
.cookie-preferences {
  border-top: 0;
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(8, 9, 8, 0.055);
  box-shadow:
    inset 3px 3px 7px rgba(8, 9, 8, 0.12),
    inset -2px -2px 5px rgba(255, 255, 255, 0.72);
}
.cookie-preferences label {
  min-height: 28px;
  cursor: pointer;
}
.cookie-preferences input {
  appearance: none;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 0;
  border: 1px solid rgba(8, 9, 8, 0.32);
  border-radius: 5px;
  background: linear-gradient(145deg, #dfe0d8, #fafaf4);
  box-shadow:
    inset 2px 2px 4px rgba(8, 9, 8, 0.18),
    2px 2px 4px rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.cookie-preferences input:hover {
  transform: translateY(-1px);
}
.cookie-preferences input:checked {
  border-color: #087d23;
  background: linear-gradient(145deg, #19ad3a, #087d23);
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(13, 151, 43, 0.28);
}
.cookie-preferences input:checked::after {
  content: "✓";
  display: block;
  color: #fff;
  font: 700 14px/17px Arial, sans-serif;
  text-align: center;
}
.cookie-actions {
  gap: 10px;
}
.cookie-button {
  min-height: 43px;
  border: 1px solid rgba(8, 9, 8, 0.28);
  border-radius: 10px;
  background: linear-gradient(145deg, #fbfcf5, #d8d9d1);
  color: var(--ink);
  box-shadow:
    4px 5px 8px rgba(8, 9, 8, 0.18),
    -3px -3px 7px rgba(255, 255, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.cookie-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}
.cookie-button:active {
  transform: translateY(1px);
  box-shadow:
    inset 3px 3px 6px rgba(8, 9, 8, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.65);
}
.cookie-primary {
  border-color: #087d23;
  background: linear-gradient(145deg, #1ab83f, #087d23);
  color: #fff;
  box-shadow:
    4px 5px 9px rgba(13, 151, 43, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.cookie-secondary {
  background: linear-gradient(145deg, #ffffff, #dfe0d8);
}
@media (max-width: 760px) {
  .cookie-card {
    padding: 24px;
    border-radius: 20px;
  }
  .cookie-card::before {
    inset: 7px;
    border-radius: 14px;
  }
}

/* Slightly reduced menu offset after confirming full viewport scrolling. */
@media (max-width: 760px) {
  .mobile-menu {
    padding-top: calc(var(--mobile-menu-top-clearance, 160px) + 16px) !important;
  }
}

/* Cookie copy refinement: compact display typography with stronger hierarchy. */
.cookie-card > div > p:not(.kicker) {
  font: 600 11px/1.65 var(--mono);
  letter-spacing: 0.025em;
  color: #343930;
}
.cookie-preferences,
.cookie-preferences label {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.cookie-preferences label {
  color: #252a25;
}
.cookie-button {
  font: 800 11px/1 var(--display);
  letter-spacing: 0.1em;
}

/* Light Sport readability pass: restore comfortable character and word spacing. */
body {
  letter-spacing: 0.015em;
  word-spacing: 0.06em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0.02em !important;
  word-spacing: 0.08em;
}

/* Teams roster names: +3px across every season and responsive layout. */
.team-subteam-member-card h3 {
  font-size: clamp(29px, calc(1.65vw + 9px), 37px);
}
@media (max-width: 1100px) {
  .team-subteam-member-card h3 {
    font-size: clamp(27px, calc(2.2vw + 9px), 34px);
  }
}
@media (max-width: 760px) {
  .team-subteam-member-card h3 {
    font-size: 31px;
  }
}

/* Menu typography: match the readable Light Sport spacing used across page text. */
.desktop-nav > a,
.desktop-nav .nav-dropdown-trigger,
.desktop-nav .nav-dropdown-menu a,
.mobile-menu nav > a,
.mobile-menu nav > .mobile-nav-group,
.mobile-menu nav > .mobile-nav-sub a,
.mobile-menu nav > .mobile-nav-sub .nav-dropdown-disabled {
  letter-spacing: 0.02em;
  word-spacing: 0.08em;
}

/* Desktop navigation refinement: +40% type scale and a touch more tracking. */
@media (min-width: 761px) {
  .site-header .desktop-nav > a,
  .site-header .desktop-nav > .nav-dropdown > .nav-dropdown-trigger {
    font-size: 25.2px;
    letter-spacing: 0.04em;
    word-spacing: 0.1em;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header .desktop-nav > a,
  .site-header .desktop-nav > .nav-dropdown > .nav-dropdown-trigger {
    font-size: 22.4px;
  }
}

/* Narrow desktop safeguard: preserve the larger navigation without crowding 761–820px widths. */
@media (min-width: 761px) and (max-width: 820px) {
  .site-header .desktop-nav {
    gap: 12px;
  }
  .site-header .desktop-nav > a,
  .site-header .desktop-nav > .nav-dropdown > .nav-dropdown-trigger {
    font-size: 18px;
    letter-spacing: 0.03em;
    word-spacing: 0.08em;
  }
}

/* Preview Apply: align the mobile member-panel intro and auth card with the supplied edits. */
@media (max-width: 760px) {
  .member-page-root .member-auth-intro > .kicker,
  .member-page-root .member-auth-intro > h2,
  .member-page-root .member-auth-intro > p:last-child {
    padding-left: 10px;
  }
  .member-page-root .member-auth-card {
    padding-left: 15px;
    margin-left: 15px;
    margin-right: 15px;
  }
}

/* Cursor controls: make car colour selection move at the same pace as circuit selection. */
.tcp-cursor-switch[data-cursor-mode="play"].is-cursor-changing .tcp-cursor-switch-car img {
  animation: tcpCursorPreviewEnter 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tcpCursorPreviewEnter {
  from { opacity: 0.15; transform: translateX(3px) scale(0.96); filter: blur(0.35px) drop-shadow(0 0 3px rgba(13, 151, 43, 0.28)); }
  to { opacity: 1; transform: none; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 7px rgba(13, 151, 43, 0.4)); }
}

/* Cursor GUIDE: anchored, translucent control console with high-contrast instructions. */
.tcp-cursor-guide {
  position: fixed;
  z-index: 2147483644;
  left: var(--guide-left, 86px);
  top: var(--guide-top, 12px);
  width: min(330px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 18px 18px 17px;
  border: 1px solid rgba(188, 255, 202, 0.28);
  border-radius: 18px;
  color: #f4f7f1;
  background: linear-gradient(145deg, rgba(24, 48, 32, 0.76), rgba(6, 13, 9, 0.7)), rgba(8, 16, 11, 0.66);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(13, 151, 43, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -18px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: center left;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.22s;
}
.tcp-cursor-guide::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(13, 151, 43, 0.2); border-radius: 12px; pointer-events: none; }
.tcp-cursor-guide.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s, 0s, 0s; }
.tcp-cursor-guide > * { position: relative; z-index: 1; }
.tcp-cursor-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tcp-cursor-guide-kicker { color: var(--lime); font: 700 9px/1 var(--mono); letter-spacing: 0.16em; }
.tcp-cursor-guide-close { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid rgba(241, 242, 235, 0.25); border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--paper); font: 18px/1 Arial, sans-serif; cursor: pointer; }
.tcp-cursor-guide-close:hover, .tcp-cursor-guide-close:focus-visible { border-color: var(--lime); color: var(--lime); outline: none; }
.tcp-cursor-guide h2 { margin: 0 0 7px; color: #fff; font: 500 30px/0.95 var(--display); letter-spacing: 0.02em; word-spacing: 0.08em; }
.tcp-cursor-guide-copy { max-width: 270px; margin: 0 0 15px; color: rgba(241, 242, 235, 0.78); font: 11px/1.55 var(--mono); letter-spacing: 0.02em; }
.tcp-cursor-guide-grid { display: grid; gap: 8px; }
.tcp-cursor-guide-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 48px; padding: 8px 9px; border: 1px solid rgba(241, 242, 235, 0.12); border-radius: 10px; background: rgba(255, 255, 255, 0.055); }
.tcp-cursor-guide-item strong { display: block; margin-bottom: 3px; color: #fff; font: 700 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.tcp-cursor-guide-item small { display: block; color: rgba(241, 242, 235, 0.72); font: 9px/1.45 var(--mono); letter-spacing: 0.015em; }
.tcp-cursor-guide-icon { display: flex; align-items: center; justify-content: center; min-height: 30px; color: var(--lime); }
.tcp-mouse-icon svg { width: 21px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tcp-key-icon { display: grid; grid-template-columns: repeat(2, 17px); grid-template-rows: repeat(2, 17px); gap: 3px; }
.tcp-key-icon kbd { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid rgba(188, 255, 202, 0.5); border-radius: 4px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(13, 151, 43, 0.14)); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); color: #fff; font: 700 12px/1 Arial, sans-serif; }
.tcp-wheel-icon { font: 26px/1 var(--mono); text-shadow: 0 0 12px rgba(13, 151, 43, 0.5); }
@media (max-width: 520px) { .tcp-cursor-guide { width: min(300px, calc(100vw - 20px)); padding: 16px 15px; } .tcp-cursor-guide h2 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .tcp-cursor-switch[data-cursor-mode="play"].is-cursor-changing .tcp-cursor-switch-car img, .tcp-cursor-guide { animation: none; transition: none; } }

/* Roster card names: user-requested +10px on Home and Teams cards. */
.team-management-card h3 {
  font-size: 38px;
}
.teams-cars-layout .team-management-card h3 {
  font-size: clamp(30px, calc(1.65vw + 10px), 38px);
}
.team-subteam-member-card h3 {
  font-size: clamp(39px, calc(1.65vw + 19px), 47px);
}
#team .member-card h3 {
  font-size: 28px;
}
@media (max-width: 1100px) {
  .teams-cars-layout .team-management-card h3 {
    font-size: clamp(30px, calc(2.2vw + 10px), 35px);
  }
  .team-subteam-member-card h3 {
    font-size: clamp(37px, calc(2.2vw + 19px), 44px);
  }
}
@media (max-width: 760px) {
  .teams-cars-layout .team-management-card h3 {
    font-size: 30px;
  }
  .team-management-card h3 {
    font-size: 38px;
  }
  .team-subteam-member-card h3 {
    font-size: 41px;
  }
  #team .member-card h3 {
    font-size: 27px;
  }
}

/* Teams page roster names: requested blue accent only. */
.teams-cars-layout .team-management-card h3,
.teams-cars-layout .team-subteam-member-card h3 {
  color: #2171b5 !important;
}
/* Payment tabs mirror the live roster's liquid green selector. */
.payment-mode-switch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: fit-content;
  min-width: 190px;
  background: linear-gradient(145deg, #171a17, #080908 82%);
}
.payment-mode-switch::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: var(--payment-liquid-x, 4px);
  top: var(--payment-liquid-y, 4px);
  width: var(--payment-liquid-w, 92px);
  height: var(--payment-liquid-h, 34px);
  border-radius: 999px;
  background: linear-gradient(135deg, #0d972b, #19ad3a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 5px 15px rgba(13, 151, 43, 0.24);
  pointer-events: none;
  transition: left 0.58s cubic-bezier(0.16, 1, 0.3, 1), top 0.58s cubic-bezier(0.16, 1, 0.3, 1), width 0.58s cubic-bezier(0.16, 1, 0.3, 1), height 0.58s cubic-bezier(0.16, 1, 0.3, 1);
}
.payment-mode-switch.is-payment-liquid-initializing::before { transition: none !important; animation: none !important; }
.payment-mode-switch.is-liquid-moving::before { animation: paymentLiquidDumbbell 0.66s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.payment-mode-switch .payment-mode-option {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 92px;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: rgba(241, 242, 235, 0.72);
  transform: none;
}
.payment-mode-switch .payment-mode-option:hover,
.payment-mode-switch .payment-mode-option.is-active { color: #080908; background: transparent !important; border-color: transparent !important; box-shadow: none !important; transform: none; }
.payment-mode-panel[hidden] { display: none !important; }
.cash-logo { object-fit: contain; padding: 3px; background: #f6f6ee; color: #080908; font-size: 9px; letter-spacing: 0.03em; }
.payment-gate {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  opacity: 0;
  transform: translateY(14px);
}
.payment-gate.is-unlocked {
  animation: paymentGateReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.payment-gate.is-relocking {
  animation: paymentGateRelock 0.18s ease both;
}
.payment-gate .payment-label {
  display: block;
  width: 100%;
  margin: 0 0 9px;
  padding: 0;
  color: inherit;
  font: 800 19px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cash-payment-option .cash-logo {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  object-fit: contain;
  border-radius: 6px;
}
.transaction-id-field {
  margin-top: 14px;
  animation: paymentGateReveal 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.transaction-id-field[hidden] { display: none !important; }
.transaction-id-field label {
  display: grid;
  gap: 7px;
  color: var(--paper);
  font: 800 11px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.transaction-id-field input { width: 100%; }
@keyframes paymentGateReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes paymentGateRelock {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}
@keyframes paymentLiquidDumbbell {
  0%, 100% { transform: scale(1); border-radius: 999px; }
  28% { transform: scaleX(1.14) scaleY(0.78); border-radius: 48% 52% 48% 52% / 70% 35% 70% 35%; }
  52% { transform: scaleX(0.9) scaleY(1.12); border-radius: 38% 62% 42% 58% / 38% 70% 30% 62%; }
  76% { transform: scaleX(1.06) scaleY(0.9); border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) {
  .payment-mode-switch::before, .payment-mode-switch.is-liquid-moving::before { transition: none; animation: none; }
}
@media (max-width: 760px) {
  .payment-mode-switch { width: 100%; }
  .payment-mode-switch .payment-mode-option { flex: 1 1 50%; }
}
