/* ===================================================================
   Billiards theme: "Pool Hall". Loaded after main.css on billiards.thegearsports.com only.
   Baize green, rail brown, brass, chalk-blue links (owner feedback 2026-10-20):
   felt texture in the hero, a rail with diamond sights beneath it, pool-ball
   section markers on cards.
   =================================================================== */
html:root {
  --paper:       #f3efe6;
  --paper-2:     #ebe4d4;
  --ink:         #1a1a17;
  --ink-soft:    #4d4a42;
  --ink-faint:   #6b665a;
  --line:        #e0d8c6;
  --accent:      #0f5a3a;
  --accent-deep: #0d4a30;
  --accent-soft: #e3efe7;
  --gold:        #b08d57;
  --white:       #ffffff;
  --felt:        #0f5a3a;
  --rail:        #4a2c17;
  --brass:       #d9b77a;
  --chalk:       #1f6fae;
  --display: 'Bodoni Moda', Didot, Georgia, serif;
  --body:    'Work Sans', system-ui, sans-serif;
  --radius:  2px;
}
html:root[data-theme="dark"] {
  --paper:       #0c1a14;
  --paper-2:     #11241b;
  --ink:         #f3efe6;
  --ink-soft:    #cfc8b6;
  --ink-faint:   #a39c8a;
  --line:        #24392e;
  --accent:      #3fae78;
  --accent-deep: #6fd3a0;
  --accent-soft: #163527;
  --white:       #11241b;
  --chalk:       #7fb6e6;
}

body { font-size: 1.08rem; }
body::before { display: none; }
h1, h2 { font-weight: 900; letter-spacing: -.01em; }
h3, h4 { font-weight: 700; }
a { color: var(--chalk); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
.eyebrow { color: var(--chalk); font-family: var(--body); font-weight: 700; }

/* Nav: dark felt bar with a brass rule */
.nav { background: #0a2e1f; border-bottom: 4px solid var(--gold); backdrop-filter: none; }
html[data-theme="dark"] .nav { background: #0a2e1f; }
.brand { color: #f3efe6; }
.brand .rev { color: var(--brass); font-style: italic; }
.brand__mark { background: #1a1a17; color: #fff; }
.brand__sub { color: #b9d3c3; }
.nav__links a { color: #f3efe6; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--brass); }
.nav__cta { background: var(--brass); color: #0a2e1f !important; }
.nav__cta:hover { background: #f3efe6; }
.nav__toggle span { background: #f3efe6; }
.nav .iconbtn { background: transparent; border-color: #2c5a44; color: #f3efe6; }
.nav .iconbtn:hover { color: var(--brass); border-color: var(--brass); }
@media (max-width: 1120px) {
  .nav__links { background: #0a2e1f; border-bottom-color: #2c5a44; }
  .nav__links a { border-bottom-color: #1d4a35; }
}

/* Hero: felt with grain and lamp light, then the rail with diamond sights */
.hero {
  background-color: var(--felt); color: #f3efe6;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.12), rgba(0,0,0,0) 60%),
    radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.35), rgba(0,0,0,0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .02 0 0 0 0 .12 0 0 0 0 .07 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  padding-bottom: calc(clamp(2.5rem,6vw,4rem) + 26px);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: auto;
  width: auto; height: 26px; aspect-ratio: auto; transform: none; border-radius: 0; opacity: 1; filter: none;
  border-top: 2px solid #2e1a0c; border-bottom: 2px solid #6b4426;
  background: var(--rail) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Crect x='6' y='6' width='10' height='10' fill='%23efe4c8' stroke='%23b08d57' transform='rotate(45 11 11)'/%3E%3C/svg%3E") center / 22px 22px space;
}
.hero h1 { color: #fff; }
.hero h1 .spin { color: var(--brass); }
.hero h1 .hero__brand { color: #e3c48c; font-family: var(--body); font-weight: 700; font-style: normal; font-size: .24em; letter-spacing: .2em; text-transform: uppercase; }
.hero .lede { color: #d7e6dc; }
.hero .btn--solid { background: var(--brass); border-color: var(--brass); color: #0a2e1f; }
.hero .btn--ghost { border-color: var(--brass); color: #fff; }
.hero .btn--ghost:hover { background: var(--brass); color: #0a2e1f; }
.hero__media { border: 10px solid var(--rail); border-radius: 0; }

.btn { font-weight: 700; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }

/* Cards: numbered like pool balls (1 yellow, 2 blue, 3 red, 4 purple, 5 orange, 6 green, 7 maroon, 8 black) */
.card::before { display: none; }
.card:hover { border-color: var(--gold); }
a.card > .card__num {
  --ball: #f2c230;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #fff 0 12px, transparent 13px), var(--ball);
  color: #1a1a17; font-family: var(--body); font-weight: 700; font-size: .78rem;
  box-shadow: inset -4px -5px 0 rgba(0,0,0,.18);
}
a.card:nth-child(8n+2) > .card__num { --ball: #1d4fa3; }
a.card:nth-child(8n+3) > .card__num { --ball: #c42b23; }
a.card:nth-child(8n+4) > .card__num { --ball: #5b2d86; }
a.card:nth-child(8n+5) > .card__num { --ball: #e0731b; }
a.card:nth-child(8n+6) > .card__num { --ball: #1d7a45; }
a.card:nth-child(8n+7) > .card__num { --ball: #7a1f2b; }
a.card:nth-child(8n+8) > .card__num { --ball: #1a1a17; }
.card__tag { color: var(--chalk); }

/* Section headings: a chalk cube beside the title */
.shead h2::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .45em; background: var(--chalk); border-radius: 3px; box-shadow: inset 0 -.12em 0 rgba(0,0,0,.18); vertical-align: .08em; }
.shead { border-bottom: 1px solid var(--gold); }

.callout { background: var(--accent-soft); border: 0; border-left: 4px solid var(--accent); }

.facts thead th { background: #0a2e1f; color: #f3efe6; border-bottom: 3px solid var(--chalk); }
.facts tbody tr:nth-child(even) td { background: #faf7f0; }
html[data-theme="dark"] .facts tbody tr:nth-child(even) td { background: #0f2219; }

.gearline { background: var(--felt); border: 0; outline: 6px solid var(--rail); outline-offset: 0; color: #f3efe6; margin: 1.6rem 6px; }
.gearline__t { color: #e3c48c; }
.gearline a.btn { background: var(--brass); border-color: var(--brass); color: #0a2e1f; }

.footer { background: #0a2e1f; border-top: 4px solid var(--gold); }
.footer__brand .rev { color: var(--brass); }
.footer h4 { color: var(--brass); }

/* The tracked-caps nav is wider than the shared one: collapse to the menu button below 1380px
   (the shared breakpoint is 1120px), or the Gear Guides button runs off-screen at laptop widths. */
@media (max-width: 1380px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: .5rem clamp(1.1rem,4vw,2.5rem) 1.2rem;
    transform: translateY(-120%); transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: .7rem 0; width: 100%; }
  .nav__cta { margin-top: .6rem; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__actions { margin-left: auto; margin-right: .4rem; order: 2; }
  .nav__toggle { order: 3; }
  .search-trigger .search-trigger__label, .search-trigger .iconbtn__key { display: none; }
  .search-trigger { width: 38px; padding: 0; justify-content: center; }
}

@media (max-width: 1380px) { .nav__links { background: #0a2e1f; border-bottom: 1px solid #2c5a44; } .nav__links a { border-bottom: 1px solid #1d4a35; } }
/* QA fixes: footer is always dark felt; hero labels sit on green felt */
.footer, .footer a, .footer__bottom a { color: #f3efe6; }
.hero .eyebrow { color: #e3c48c; }
/* Buying-guide pick buttons in felt green */
.pick__cta .btn--solid { background: #0f5a3a; border-color: #0f5a3a; color: #fff; }
.pick__cta .btn--solid:hover { background: #0a2e1f; border-color: #0a2e1f; }
