/* ===================================================================
   Ski & Snowboard theme: "Corduroy". Loaded after main.css on ski.thegearsports.com only.
   Glacier-night navy and alpine blue on snow white, a hero of groomed-piste corduroy
   with a mountain ridge along its base, and race-bib cards.
   Gate red is a fill and small-mark colour only; text uses the alpine blue.
   Trail-difficulty symbols are deliberately not used as decoration: their meaning
   differs by country.
   =================================================================== */
html:root {
  --paper:       #f7fafc;
  --paper-2:     #edf3f8;
  --ink:         #0e1c2b;
  --ink-soft:    #3b4b5c;
  --ink-faint:   #5f6f80;
  --line:        #dbe5ee;
  --accent:      #0b5c99;   /* alpine blue: links and eyebrows on snow */
  --accent-deep: #08467a;
  --accent-soft: #e3eef7;
  --white:       #ffffff;
  --glacier:     #0f2236;
  --gate:        #d7263d;   /* fills and small marks only */
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body:    'Manrope', system-ui, sans-serif;
  --mono:    'Martian Mono', ui-monospace, monospace;
  --radius:  10px;
}
html:root[data-theme="dark"] {
  --paper:       #0b1622;
  --paper-2:     #11202f;
  --ink:         #eaf2f8;
  --ink-soft:    #c3d1dd;
  --ink-faint:   #94a6b6;
  --line:        #22364a;
  --accent:      #7cc2f2;
  --accent-deep: #a8d6f6;
  --accent-soft: #15283a;
  --white:       #11202f;
}

body { font-size: 1.03rem; }
body::before { display: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; }
h1 { line-height: 1.04; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; }
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: glacier night with a gate-red line */
.nav { background: var(--glacier); border-bottom: 3px solid var(--gate); backdrop-filter: none; }
html[data-theme="dark"] .nav { background: #081420; }
.brand { color: #f7fafc; white-space: nowrap; }
.brand .rev { color: #9fd2f5; }
.brand__mark { background: #f7fafc; color: var(--glacier); }
.brand__sub { color: #b9c9d8; }
.nav__links a { color: #f7fafc; font-weight: 600; font-size: .93rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #9fd2f5; }
.nav__cta { background: #f7fafc; color: var(--glacier) !important; }
.nav__cta:hover { background: #9fd2f5; color: var(--glacier) !important; }
.nav__toggle span { background: #f7fafc; }
.nav .iconbtn { background: transparent; border-color: #2c4560; color: #f7fafc; }
.nav .iconbtn:hover { color: #9fd2f5; border-color: #9fd2f5; }
@media (max-width: 1120px) {
  .nav__links { background: var(--glacier); border-bottom-color: #2c4560; }
  .nav__links a { border-bottom-color: #1b3149; }
}

/* Hero: groomed corduroy, with a mountain ridge along the base */
.hero {
  background-color: #eef4f9; color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(11,92,153,.045) 0 3px, rgba(255,255,255,0) 3px 9px),
    linear-gradient(180deg, #dcebf6 0%, #f7fafc 70%);
  padding-bottom: calc(clamp(2.5rem,6vw,4rem) + 70px);
}
html[data-theme="dark"] .hero { background-color: #0f2236; color: #eaf2f8;
  background-image:
    repeating-linear-gradient(90deg, rgba(124,194,242,.04) 0 3px, rgba(255,255,255,0) 3px 9px),
    linear-gradient(180deg, #0a1826 0%, #12293f 100%); }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: auto;
  width: auto; height: 70px; aspect-ratio: auto; transform: none; border-radius: 0; opacity: 1; filter: none;
  background: #c9dceb;
  clip-path: polygon(0 100%, 0 62%, 9% 38%, 16% 55%, 27% 12%, 36% 46%, 44% 30%, 55% 62%, 63% 22%, 72% 0, 81% 40%, 89% 28%, 100% 58%, 100% 100%);
}
html[data-theme="dark"] .hero::after { background: #1d3550; }
.hero h1 { color: var(--glacier); }
html[data-theme="dark"] .hero h1 { color: #f7fafc; }
.hero h1 .spin { color: var(--accent); }
html[data-theme="dark"] .hero h1 .spin { color: #9fd2f5; }
.hero h1 .hero__brand { color: var(--accent-deep); font-family: var(--mono); font-weight: 500; font-size: .2em; letter-spacing: .22em; text-transform: uppercase; }
html[data-theme="dark"] .hero h1 .hero__brand { color: var(--accent); }
.hero .lede { color: var(--ink-soft); }
.hero .btn--solid { background: var(--glacier); border-color: var(--glacier); color: #f7fafc; }
.hero .btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.hero .btn--ghost { border-color: var(--glacier); color: var(--glacier); }
html[data-theme="dark"] .hero .btn--solid { background: #f7fafc; border-color: #f7fafc; color: var(--glacier); }
html[data-theme="dark"] .hero .btn--ghost { border-color: #eaf2f8; color: #eaf2f8; }

.btn { font-weight: 700; }

/* Cards: race bibs (number on a white bib with a gate-red band) */
.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.6rem; padding: .3rem .55rem 0;
  background: var(--white); color: var(--glacier); border: 2px solid var(--line); border-top: 6px solid var(--gate); border-radius: 4px 4px 10px 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1; }
html[data-theme="dark"] a.card > .card__num { background: #eaf2f8; color: var(--glacier); border-color: #2c4560; border-top-color: var(--gate); }
.card__tag { color: var(--accent); font-weight: 700; }

/* Section headings: a small gate panel */
.shead { border-bottom: 2px solid var(--line); }
.shead h2::before { content: ""; display: inline-block; width: .32em; height: .7em; margin-right: .45em; background: var(--gate); vertical-align: -.02em; 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: glacier headers with a gate-red line */
.facts thead th { background: var(--glacier); color: #f7fafc; border-bottom: 3px solid var(--gate); letter-spacing: .02em; }
html[data-theme="dark"] .facts thead th { background: #17304a; }
.facts tbody tr:nth-child(even) td { background: #f9fbfd; }
html[data-theme="dark"] .facts tbody tr:nth-child(even) td { background: #0e1b29; }

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

.footer { background: var(--glacier); border-top: 3px solid var(--gate); }
.footer, .footer a, .footer__bottom a { color: #dfe8f0; }
.footer__brand .rev { color: #9fd2f5; }
.footer h4 { color: #9fd2f5; }

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