/* ===================================================================
   Cricket theme: "Scorebook". Loaded after main.css on cricket.thegearsports.com only.
   Cream scorebook paper and willow olive, a hero of mown pitch stripes with the
   white popping and bowling creases along its base, and scoreboard-tin card numbers.
   Willow tan is a fill colour only; text uses the dark olive.
   =================================================================== */
html:root {
  --paper:       #faf8f0;
  --paper-2:     #f1eedf;
  --ink:         #1b1f14;
  --ink-soft:    #464b3a;
  --ink-faint:   #6b705d;
  --line:        #e0dcc8;
  --accent:      #4f5d1e;   /* willow olive: links and eyebrows on paper */
  --accent-deep: #3c4716;
  --accent-soft: #eef0dc;
  --white:       #ffffff;
  --willow:      #d9c08a;   /* fills only */
  --scoreboard:  #1d2418;
  --cherry:      #8e1b1b;   /* the red ball: small marks only */
  --display: 'Libre Baskerville', Georgia, serif;
  --body:    'Figtree', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;
  --radius:  6px;
}
html:root[data-theme="dark"] {
  --paper:       #13160f;
  --paper-2:     #1b1f16;
  --ink:         #eff1e6;
  --ink-soft:    #cdd1bf;
  --ink-faint:   #a2a792;
  --line:        #2f3527;
  --accent:      #c5d17a;
  --accent-deep: #dbe49a;
  --accent-soft: #262a18;
  --white:       #1b1f16;
}

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.08; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); }
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: 700; letter-spacing: .1em; }

/* Nav: scoreboard green-black with a willow line */
.nav { background: var(--scoreboard); border-bottom: 3px solid var(--willow); backdrop-filter: none; }
.brand { color: #faf8f0; white-space: nowrap; }
.brand .rev { color: var(--willow); }
.brand__mark { background: var(--willow); color: var(--scoreboard); }
.brand__sub { color: #c9cdb8; }
.nav__links a { color: #faf8f0; font-weight: 600; font-size: .93rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--willow); }
.nav__cta { background: var(--willow); color: var(--scoreboard) !important; }
.nav__cta:hover { background: #faf8f0; color: var(--scoreboard) !important; }
.nav__toggle span { background: #faf8f0; }
.nav .iconbtn { background: transparent; border-color: #3b4532; color: #faf8f0; }
.nav .iconbtn:hover { color: var(--willow); border-color: var(--willow); }
@media (max-width: 1120px) {
  .nav__links { background: var(--scoreboard); border-bottom-color: #3b4532; }
  .nav__links a { border-bottom-color: #2a3323; }
}

/* Hero: mown pitch stripes, with the white creases along the base */
.hero {
  background-color: #d9e2bf; color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 64px, rgba(255,255,255,0) 64px 128px),
    linear-gradient(180deg, #e3eacb 0%, #cfd9ae 100%);
  padding-bottom: calc(clamp(2.5rem,6vw,4rem) + 40px);
}
html[data-theme="dark"] .hero { background-color: #1e2617; color: #eff1e6;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 64px, rgba(255,255,255,0) 64px 128px),
    linear-gradient(180deg, #24301c 0%, #1a2214 100%); }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: auto;
  width: auto; height: 40px; aspect-ratio: auto; transform: none; border-radius: 0; opacity: 1; filter: none;
  background:
    linear-gradient(90deg, transparent 0 calc(50% - 160px), #ffffff calc(50% - 160px) calc(50% - 156px), transparent calc(50% - 156px) calc(50% + 156px), #ffffff calc(50% + 156px) calc(50% + 160px), transparent calc(50% + 160px)) 0 0 / 100% 22px no-repeat,
    linear-gradient(180deg, transparent 0 8px, #ffffff 8px 11px, transparent 11px 20px, #ffffff 20px 23px, transparent 23px 28px, #c9b27a 28px 40px);
}
html[data-theme="dark"] .hero::after {
  background:
    linear-gradient(90deg, transparent 0 calc(50% - 160px), #d8dccb calc(50% - 160px) calc(50% - 156px), transparent calc(50% - 156px) calc(50% + 156px), #d8dccb calc(50% + 156px) calc(50% + 160px), transparent calc(50% + 160px)) 0 0 / 100% 22px no-repeat,
    linear-gradient(180deg, transparent 0 8px, #d8dccb 8px 11px, transparent 11px 20px, #d8dccb 20px 23px, transparent 23px 28px, #6e5f3c 28px 40px);
}
.hero h1 { color: var(--scoreboard); }
html[data-theme="dark"] .hero h1 { color: #faf8f0; }
.hero h1 .spin { color: var(--cherry); font-style: italic; }
html[data-theme="dark"] .hero h1 .spin { color: var(--willow); }
.hero h1 .hero__brand { color: var(--accent-deep); font-family: var(--mono); font-weight: 700; font-size: .2em; letter-spacing: .22em; text-transform: uppercase; }
html[data-theme="dark"] .hero h1 .hero__brand { color: var(--willow); }
.hero .lede { color: var(--ink-soft); }
.hero .btn--solid { background: var(--scoreboard); border-color: var(--scoreboard); color: #faf8f0; }
.hero .btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.hero .btn--ghost { border-color: var(--scoreboard); color: var(--scoreboard); }
html[data-theme="dark"] .hero .btn--solid { background: var(--willow); border-color: var(--willow); color: var(--scoreboard); }
html[data-theme="dark"] .hero .btn--ghost { border-color: #eff1e6; color: #eff1e6; }

.btn { font-weight: 700; }

/* Cards: scoreboard number tins */
.card::before { display: none; }
.card:hover { border-color: var(--accent); }
a.card > .card__num { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.4rem; padding: 0 .45rem;
  background: var(--scoreboard); color: #faf8f0; border-radius: 3px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35);
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem; line-height: 1; letter-spacing: .04em; }
html[data-theme="dark"] a.card > .card__num { background: #2c3622; }
.card__tag { color: var(--accent); font-weight: 700; }

/* Section headings: a willow rule with a red-ball dot */
.shead { border-bottom: 2px solid var(--line); }
.shead h2::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .4em; border-radius: 50%; background: var(--cherry); vertical-align: .08em; }
html[data-theme="dark"] .shead h2::before { background: #c4544f; }

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

/* Tables: scoreboard headers with a willow line */
.facts thead th { background: var(--scoreboard); color: #faf8f0; border-bottom: 3px solid var(--willow); letter-spacing: .03em; }
html[data-theme="dark"] .facts thead th { background: #232c1b; }
.facts tbody tr:nth-child(even) td { background: #fcfbf5; }
html[data-theme="dark"] .facts tbody tr:nth-child(even) td { background: #181c13; }

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

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

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