/* ===================================================================
   Racquet Sports theme: "Court Lines". Loaded after main.css on racquet.thegearsports.com only.
   Every racquet sport is played on a lined court, so the look is a court seen from above:
   court green with white lines in the hero and nav, clay for text accents, and
   optic yellow (the ball) as a fill and small-mark colour only, never for text on light.
   Scoreboard numbers on the cards. No single sport's court is drawn to scale.
   =================================================================== */
html:root {
  --paper:       #fbfaf6;
  --paper-2:     #f2f1ea;
  --ink:         #16201c;
  --ink-soft:    #3f4a45;
  --ink-faint:   #626d67;
  --line:        #e1e2d8;
  --accent:      #a3401a;   /* clay: links and eyebrows on light */
  --accent-deep: #7d2f12;
  --accent-soft: #f6e7df;
  --white:       #ffffff;
  --court:       #12372d;
  --court-2:     #1d4f3f;
  --ball:        #d9f24a;   /* fills and small marks only */
  --display: 'Outfit', 'Arial Black', sans-serif;
  --body:    'Instrument Sans', system-ui, sans-serif;
  --mono:    'Azeret Mono', ui-monospace, monospace;
  --radius:  8px;
}
html:root[data-theme="dark"] {
  --paper:       #0e1512;
  --paper-2:     #141e1a;
  --ink:         #eef2ec;
  --ink-soft:    #c8d0ca;
  --ink-faint:   #98a49d;
  --line:        #26342e;
  --accent:      #f0a07c;
  --accent-deep: #f7c2a8;
  --accent-soft: #2b1c15;
  --white:       #141e1a;
}

body { font-size: 1.03rem; }
body::before { display: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
h1 { line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); }
h3 { font-size: 1.14rem; 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: .1em; }

/* Nav: court green with a white baseline */
.nav { background: var(--court); border-bottom: 3px solid #f4f6ef; backdrop-filter: none; }
html[data-theme="dark"] .nav { background: #0b231c; border-bottom-color: #c9d3cc; }
.brand { color: #f4f6ef; white-space: nowrap; }
.brand .rev { color: var(--ball); }
.brand__mark { background: var(--ball); color: var(--court); }
.brand__sub { color: #bcd0c6; }
.nav__links a { color: #f4f6ef; font-weight: 600; font-size: .93rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ball); }
.nav__cta { background: var(--ball); color: var(--court) !important; }
.nav__cta:hover { background: #f4f6ef; color: var(--court) !important; }
.nav__toggle span { background: #f4f6ef; }
.nav .iconbtn { background: transparent; border-color: #2f5a4b; color: #f4f6ef; }
.nav .iconbtn:hover { color: var(--ball); border-color: var(--ball); }
@media (max-width: 1120px) {
  .nav__links { background: var(--court); border-bottom-color: #2f5a4b; }
  .nav__links a { border-bottom-color: #1d4639; }
}

/* Hero: a service box drawn in a band below the text (service line, centre line,
   sidelines), with a ball resting on it. Nothing is drawn behind the text. */
.hero {
  background-color: var(--court-2); color: #f4f6ef;
  background-image:
    linear-gradient(180deg, rgba(244,246,239,.85) 0 3px, transparent 3px),
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(244,246,239,.85) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(90deg, rgba(244,246,239,.85) 0 3px, transparent 3px calc(100% - 3px), rgba(244,246,239,.85) calc(100% - 3px)),
    linear-gradient(180deg, #1d4f3f 0%, #1a4738 100%);
  background-size: 88% 64px, 88% 64px, 88% 64px, 100% 100%;
  background-position: 50% 100%, 50% 100%, 50% 100%, 0 0;
  background-repeat: no-repeat;
  padding-bottom: calc(clamp(2.5rem,6vw,4rem) + 64px);
}
html[data-theme="dark"] .hero { background-color: #10302a; }
.hero::after {
  content: ""; position: absolute; top: auto; bottom: 16px; right: 22%; left: auto;
  width: clamp(30px, 3.4vw, 44px); height: auto; aspect-ratio: 1; transform: none; opacity: 1; filter: none;
  border-radius: 50%; background: var(--ball);
  box-shadow: inset -5px -6px 0 rgba(0,0,0,.12);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #ffffff; }
.hero h1 .spin { color: var(--ball); }
.hero h1 .hero__brand { color: #f4f6ef; font-family: var(--mono); font-weight: 500; font-size: .2em; letter-spacing: .22em; text-transform: uppercase; }
.hero .eyebrow { color: var(--ball); }
.hero .lede { color: #e3ebe6; }
.hero .btn--solid { background: var(--ball); border-color: var(--ball); color: var(--court); text-shadow: none; }
.hero .btn--solid:hover { background: #f4f6ef; border-color: #f4f6ef; }
.hero .btn--ghost { border-color: #f4f6ef; color: #f4f6ef; }
.hero .btn--ghost:hover { background: #f4f6ef; color: var(--court); }

.btn { font-weight: 700; }

/* Cards: scoreboard numbers (ball-yellow digits on a court-green 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: var(--court); color: var(--ball); border: 0; border-bottom: 3px solid #f4f6ef; border-radius: 4px;
  font-family: var(--mono); font-weight: 500; font-size: 1.15rem; letter-spacing: .08em; line-height: 1; }
html[data-theme="dark"] a.card > .card__num { background: #0b231c; border-bottom-color: #c9d3cc; }
.card__tag { color: var(--accent); font-weight: 700; }

/* Section headings: a small ball */
.shead { border-bottom: 2px solid var(--line); }
.shead h2::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .45em; background: var(--ball); border: 2px solid var(--court); border-radius: 50%; vertical-align: .05em; }
html[data-theme="dark"] .shead h2::before { border-color: #c9d3cc; }

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

/* Tables: court-green headers with a white line */
.facts thead th { background: var(--court); color: #f4f6ef; border-bottom: 3px solid var(--ball); letter-spacing: .02em; }
html[data-theme="dark"] .facts thead th { background: #17382f; }
.facts tbody tr:nth-child(even) td { background: #f7f7f1; }
html[data-theme="dark"] .facts tbody tr:nth-child(even) td { background: #111b17; }

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

.footer { background: var(--court); border-top: 3px solid var(--ball); }
.footer, .footer a, .footer__bottom a { color: #dfe8e2; }
.footer__brand .rev { color: var(--ball); }
.footer h4 { color: var(--ball); }

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