/* ===================================================================
   FPV Drone Racing theme: "Gate Run". Loaded after main.css on drones.thegearsports.com only.
   Night flying: a dark night nav and hero, a run of LED race gates drawn in a band below the
   hero text, and an on-screen-display feel for labels. Gate cyan is a mark colour on dark
   only; magenta (darkened) carries links on light. No telemetry figures are drawn: anything
   that looks like a reading could be taken for data.
   =================================================================== */
html:root {
  --paper:       #f7f7fa;
  --paper-2:     #ecedf3;
  --ink:         #12141c;
  --ink-soft:    #3b3f4b;
  --ink-faint:   #5f6470;
  --line:        #dcdee6;
  --accent:      #a3166b;   /* gate magenta, darkened for text: links and eyebrows on light */
  --accent-deep: #7e1053;
  --accent-soft: #f8e6f0;
  --white:       #ffffff;
  --night:       #10121a;
  --night-2:     #171a26;
  --gate-cyan:   #2ee6ff;   /* marks on dark only */
  --gate-magenta:#ff3fb4;   /* marks on dark only */
  --display: 'Chakra Petch', 'Arial Black', sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'Fragment Mono', ui-monospace, monospace;
  --radius:  6px;
}
html:root[data-theme="dark"] {
  --paper:       #0e0f16;
  --paper-2:     #151722;
  --ink:         #eef0f6;
  --ink-soft:    #c5c9d4;
  --ink-faint:   #959bab;
  --line:        #262a38;
  --accent:      #ff8fcf;
  --accent-deep: #ffbfe3;
  --accent-soft: #2a1424;
  --white:       #151722;
}

body { font-size: 1.04rem; }
body::before { display: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h1 { line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); }
h3 { font-size: 1.14rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
.eyebrow { color: var(--accent); font-family: var(--mono); letter-spacing: .12em; }

/* Nav: night with a cyan gate line */
.nav { background: var(--night); border-bottom: 3px solid var(--gate-cyan); backdrop-filter: none; }
html[data-theme="dark"] .nav { background: #08090e; }
.brand { color: #f2f4f8; white-space: nowrap; }
.brand .rev { color: var(--gate-cyan); }
.brand__mark { background: var(--gate-cyan); color: var(--night); }
.brand__sub { color: #aab1bf; }
.nav__links a { color: #f2f4f8; font-weight: 600; font-size: .93rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gate-cyan); }
.nav__cta { background: var(--gate-cyan); color: var(--night) !important; }
.nav__cta:hover { background: #f2f4f8; color: var(--night) !important; }
.nav__toggle span { background: #f2f4f8; }
.nav .iconbtn { background: transparent; border-color: #2c3142; color: #f2f4f8; }
.nav .iconbtn:hover { color: var(--gate-cyan); border-color: var(--gate-cyan); }
@media (max-width: 1120px) {
  .nav__links { background: var(--night); border-bottom-color: #2c3142; }
  .nav__links a { border-bottom-color: #1d2130; }
}

/* Hero: night, with three LED gates in a band below the text, nearest to farthest */
.hero {
  background-color: var(--night-2); color: #f2f4f8;
  background-image:
    linear-gradient(90deg, transparent 0 8%, var(--gate-cyan) 8% calc(8% + 4px), transparent calc(8% + 4px) calc(30% - 4px), var(--gate-cyan) calc(30% - 4px) 30%, transparent 30%),
    linear-gradient(90deg, transparent 0 8%, var(--gate-cyan) 8% 30%, transparent 30%),
    linear-gradient(90deg, transparent 0 40%, var(--gate-magenta) 40% calc(40% + 3px), transparent calc(40% + 3px) calc(56% - 3px), var(--gate-magenta) calc(56% - 3px) 56%, transparent 56%),
    linear-gradient(90deg, transparent 0 40%, var(--gate-magenta) 40% 56%, transparent 56%),
    linear-gradient(90deg, transparent 0 66%, var(--gate-cyan) 66% calc(66% + 2px), transparent calc(66% + 2px) calc(76% - 2px), var(--gate-cyan) calc(76% - 2px) 76%, transparent 76%),
    linear-gradient(90deg, transparent 0 66%, var(--gate-cyan) 66% 76%, transparent 76%),
    linear-gradient(180deg, #171a26 0%, #10121a 100%);
  background-size: 100% 60px, 100% 4px, 100% 44px, 100% 3px, 100% 30px, 100% 2px, 100% 100%;
  background-position: 0 calc(100% - 14px), 0 calc(100% - 74px), 0 calc(100% - 22px), 0 calc(100% - 66px), 0 calc(100% - 30px), 0 calc(100% - 60px), 0 0;
  background-repeat: no-repeat;
  padding-bottom: calc(clamp(2.5rem,6vw,4rem) + 90px);
}
html[data-theme="dark"] .hero { background-color: #0c0d14; }
.hero::after { display: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #ffffff; }
.hero h1 .spin { color: var(--gate-cyan); }
.hero h1 .hero__brand { color: #c9cfdb; font-family: var(--mono); font-size: .2em; letter-spacing: .22em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gate-cyan); }
.hero .lede { color: #d9dde6; }
.hero .btn--solid { background: var(--gate-cyan); border-color: var(--gate-cyan); color: var(--night); }
.hero .btn--solid:hover { background: #f2f4f8; border-color: #f2f4f8; }
.hero .btn--ghost { border-color: #f2f4f8; color: #f2f4f8; }
.hero .btn--ghost:hover { background: #f2f4f8; color: var(--night); }

.btn { font-weight: 700; }

/* Cards: OSD-style numbers in square brackets of light */
.card::before { display: none; }
.card:hover { border-color: var(--accent); }
a.card > .card__num { display: inline-grid; place-items: center; align-self: flex-start; justify-self: start; width: auto; min-width: 3rem; height: 2.4rem; padding: 0 .6rem;
  background: var(--night); color: var(--gate-cyan); border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--gate-cyan);
  font-family: var(--mono); font-size: 1.05rem; letter-spacing: .1em; line-height: 1; }
html[data-theme="dark"] a.card > .card__num { background: #08090e; }
.card__tag { color: var(--accent); font-weight: 700; }

/* Section headings: a small gate outline */
.shead { border-bottom: 2px solid var(--line); }
.shead h2::before { content: ""; display: inline-block; width: .6em; height: .55em; margin-right: .5em; vertical-align: .02em;
  border: 3px solid var(--accent); border-bottom: 0; border-radius: 1px; }

/* Callouts: the Get coaching box must be seen */
.callout { background: var(--accent-soft); border: 0; border-left: 4px solid var(--accent); }

/* Tables: night headers with a cyan line */
.facts thead th { background: var(--night); color: #f2f4f8; border-bottom: 3px solid var(--gate-cyan); letter-spacing: .02em; }
html[data-theme="dark"] .facts thead th { background: #1b1f2c; }
.facts tbody tr:nth-child(even) td { background: #f2f3f8; }
html[data-theme="dark"] .facts tbody tr:nth-child(even) td { background: #12141d; }

/* Gear box */
.gearline { background: var(--white); border: 2px solid var(--night); border-bottom: 6px solid var(--accent); }
html[data-theme="dark"] .gearline { border-color: #2c3142; }
.gearline__t { color: var(--night); }
html[data-theme="dark"] .gearline__t { color: #eef0f6; }
.gearline a.btn { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .gearline a.btn { color: #1a0a14; }

.footer { background: var(--night); border-top: 3px solid var(--gate-cyan); }
.footer, .footer a, .footer__bottom a { color: #d9dde6; }
.footer__brand .rev { color: var(--gate-cyan); }
.footer h4 { color: var(--gate-cyan); }

.pick__cta .btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick__cta .btn--solid:hover { background: var(--night); border-color: var(--night); }
html[data-theme="dark"] .pick__cta .btn--solid { color: #1a0a14; }
