/* ===================================================================
   Fencing theme: "Scoring Lights". Loaded after main.css on fencing.thegearsports.com only.
   Steel and fencing whites, a piste drawn in a band below the hero text (centre line and
   on-guard lines, not to scale), and the two scoring lights as small marks.
   Red and green are fills and small marks only: never text, and never the only way
   something is shown (a reader who cannot tell them apart loses nothing).
   =================================================================== */
html:root {
  --paper:       #f8f8f6;
  --paper-2:     #eeeeea;
  --ink:         #171b1f;
  --ink-soft:    #3d454c;
  --ink-faint:   #5e666d;
  --line:        #dcdedf;
  --accent:      #8e1b1f;   /* scoring-light red, darkened for text: links and eyebrows on light */
  --accent-deep: #6c1418;
  --accent-soft: #f5e6e6;
  --white:       #ffffff;
  --steel:       #1c2329;
  --steel-2:     #2a333b;
  --light-red:   #e0282e;   /* fills and small marks only */
  --light-green: #2fae4f;   /* fills and small marks only */
  --display: 'Syne', 'Arial Black', sans-serif;
  --body:    'Source Sans 3', system-ui, sans-serif;
  --mono:    'Overpass Mono', ui-monospace, monospace;
  --radius:  6px;
}
html:root[data-theme="dark"] {
  --paper:       #111518;
  --paper-2:     #171c20;
  --ink:         #eef0f1;
  --ink-soft:    #c6ccd0;
  --ink-faint:   #97a0a6;
  --line:        #29313a;
  --accent:      #f29a9c;
  --accent-deep: #f7c0c1;
  --accent-soft: #2c1a1b;
  --white:       #171c20;
}

body { font-size: 1.04rem; }
body::before { display: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
h1 { line-height: 1.03; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
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); font-weight: 500; letter-spacing: .12em; }

/* Nav: dark steel with a white piste line */
.nav { background: var(--steel); border-bottom: 3px solid #f2f3f1; backdrop-filter: none; }
html[data-theme="dark"] .nav { background: #0c1013; border-bottom-color: #c9ced1; }
.brand { color: #f2f3f1; white-space: nowrap; }
.brand .rev { color: #c9ced1; }
.brand__mark { background: #f2f3f1; color: var(--steel); }
.brand__sub { color: #b4bcc2; }
.nav__links a { color: #f2f3f1; font-weight: 600; font-size: .93rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #ffffff; text-decoration: underline; text-underline-offset: 6px; }
.nav__cta { background: #f2f3f1; color: var(--steel) !important; }
.nav__cta:hover { background: #ffffff; color: var(--steel) !important; }
.nav__toggle span { background: #f2f3f1; }
.nav .iconbtn { background: transparent; border-color: #3a454f; color: #f2f3f1; }
.nav .iconbtn:hover { border-color: #f2f3f1; }
@media (max-width: 1120px) {
  .nav__links { background: var(--steel); border-bottom-color: #3a454f; }
  .nav__links a { border-bottom-color: #2a333b; }
}

/* Hero: steel, with a piste drawn in a band below the text and the two scoring lights */
.hero {
  background-color: var(--steel-2); color: #f2f3f1;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(242,243,241,.9) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(90deg, transparent calc(36% - 1px), rgba(242,243,241,.7) calc(36% - 1px) calc(36% + 1px), transparent calc(36% + 1px) calc(64% - 1px), rgba(242,243,241,.7) calc(64% - 1px) calc(64% + 1px), transparent calc(64% + 1px)),
    linear-gradient(180deg, rgba(242,243,241,.9) 0 3px, transparent 3px calc(100% - 3px), rgba(242,243,241,.9) calc(100% - 3px)),
    linear-gradient(180deg, #2a333b 0%, #232b32 100%);
  background-size: 92% 46px, 92% 46px, 92% 46px, 100% 100%;
  background-position: 50% calc(100% - 18px), 50% calc(100% - 18px), 50% calc(100% - 18px), 0 0;
  background-repeat: no-repeat;
  padding-bottom: calc(clamp(2.5rem,6vw,4rem) + 80px);
}
html[data-theme="dark"] .hero { background-color: #1a2127; }
.hero::after {
  content: ""; position: absolute; top: auto; bottom: 30px; left: 8%; right: auto;
  width: clamp(16px, 1.8vw, 22px); height: auto; aspect-ratio: 1; transform: none; opacity: 1; filter: none;
  border-radius: 50%; background: var(--light-red);
  box-shadow: calc(84vw - 2 * clamp(16px, 1.8vw, 22px)) 0 0 0 var(--light-green);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #ffffff; }
.hero h1 .spin { color: #ffffff; text-decoration: underline; text-decoration-color: var(--light-red); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.hero h1 .hero__brand { color: #c9ced1; font-family: var(--mono); font-weight: 500; font-size: .2em; letter-spacing: .22em; text-transform: uppercase; }
.hero .eyebrow { color: #c9ced1; }
.hero .lede { color: #dde1e3; }
.hero .btn--solid { background: #f2f3f1; border-color: #f2f3f1; color: var(--steel); }
.hero .btn--solid:hover { background: #ffffff; border-color: #ffffff; }
.hero .btn--ghost { border-color: #f2f3f1; color: #f2f3f1; }
.hero .btn--ghost:hover { background: #f2f3f1; color: var(--steel); }

.btn { font-weight: 700; }

/* Cards: numbers on a mask-mesh tile */
.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.5rem; padding: 0 .6rem;
  background-color: var(--steel); color: #ffffff; border-radius: 4px;
  background-image: radial-gradient(rgba(242,243,241,.16) 1px, transparent 1.2px); background-size: 5px 5px;
  font-family: var(--mono); font-weight: 500; font-size: 1.1rem; letter-spacing: .08em; line-height: 1; }
html[data-theme="dark"] a.card > .card__num { background-color: #0c1013; }
.card__tag { color: var(--accent); font-weight: 700; }

/* Section headings: a short blade with a guard */
.shead { border-bottom: 2px solid var(--line); }
.shead h2::before { content: ""; display: inline-block; width: .9em; height: 3px; margin-right: .5em; vertical-align: .28em;
  background: linear-gradient(90deg, var(--steel) 0 3px, transparent 3px 5px, var(--ink-faint) 5px); border-radius: 1px; }
html[data-theme="dark"] .shead h2::before { background: linear-gradient(90deg, #eef0f1 0 3px, transparent 3px 5px, var(--ink-faint) 5px); }

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

/* Tables: steel headers with a white line */
.facts thead th { background: var(--steel); color: #f2f3f1; border-bottom: 3px solid #f2f3f1; letter-spacing: .02em; }
html[data-theme="dark"] .facts thead th { background: #222b33; border-bottom-color: #c9ced1; }
.facts tbody tr:nth-child(even) td { background: #f3f3f1; }
html[data-theme="dark"] .facts tbody tr:nth-child(even) td { background: #141a1e; }

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

.footer { background: var(--steel); border-top: 3px solid #f2f3f1; }
.footer, .footer a, .footer__bottom a { color: #dde1e3; }
.footer__brand .rev { color: #c9ced1; }
.footer h4 { color: #ffffff; }

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