/* SportsBadger home page (index.html): the carousel ("This week on SportsBadger") and "Everything on SportsBadger".
   Loaded after sb.css; light and dark follow its tokens. The slides are dark turf cards in both. */

.home { display: flex; flex-direction: column; gap: 26px; padding-block: 20px 44px; }

/* ---------- the carousel ---------- */
.hc { display: flex; flex-direction: column; gap: 10px; }
.hc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.hc-label { margin: 0; font: 700 .875rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--turf); }
.hc-preview { margin: 0; font-size: .85rem; color: var(--muted); }
.hc-preview a { color: var(--turf); font-weight: 600; }

/* one card at a time, as wide as the page; the others wait just past the screen's edges (no slivers), and a swipe,
   a dot or an arrow brings the next one in. The row reaches 16px past the page on each side, so the cards' shadows
   aren't cut off; the 40px gap keeps a neighbor (and its shadow) out of sight. */
.hc-viewport { width: min(1120px, 100% - 32px); margin-inline: auto; }
.hc-track {
  display: flex; gap: 40px; margin-inline: -16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 30px;
  scrollbar-width: none; min-height: 490px;   /* room held for the cards, so the page doesn't jump when they arrive */
}
.hc-track::-webkit-scrollbar { display: none; }
.hc-track:focus-visible { outline-offset: -3px; }
.hc-slide {
  position: relative; flex: none; width: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #0E1511;
  box-shadow: 0 10px 20px rgb(14 21 17 / .18);
}
.hc-art {
  position: relative; flex: none; height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-color: #24543A;
  background-image: radial-gradient(ellipse at 50% 42%, rgb(4 14 8 / 0) 38%, rgb(4 14 8 / .42) 100%),
    repeating-linear-gradient(100deg, rgb(255 255 255 / .045) 0 44px, rgb(0 0 0 / 0) 44px 88px);
}
.hc-art-in { transform: scale(.82); transform-origin: center; }
.hc-art-in svg { overflow: visible; }
.hc-tag {
  position: absolute; left: 14px; top: 14px; z-index: 1; padding: 6px 10px; border-radius: 999px;
  background: rgb(14 21 17 / .6); border: 1.5px solid rgb(238 242 238 / .3);
  font: 700 .6875rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #EEF2EE;
}
.hc-tag.is-new { background: #F2B01E; border-color: #C98A00; color: #1C2126; }
.hc-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.hc-kicker { margin: 0; font: 700 .9375rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: #EEF2EE; }
.hc-kicker span { color: #82C99D; }
.hc-title { margin: 0; font: 700 1.9375rem/1.02 var(--font-display); color: #F4F7F4; text-wrap: balance; }
.hc-text { margin: 0; max-width: 560px; font: 400 .9375rem/1.45 var(--font-body); color: #B9C6BE; text-wrap: pretty; }
.hc-cta {
  margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: #82C99D; color: #0E1511; text-decoration: none;
  font: 700 1rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase;
}
.hc-cta::after { content: ""; position: absolute; inset: 0; z-index: 2; }   /* the whole card opens it */
.hc-cta:hover { background: #9BD8B1; }
.hc-cta:focus-visible { outline: 3px solid #EEF2EE; outline-offset: 3px; }
.hc-slide:has(.hc-cta:focus-visible) { box-shadow: 0 0 0 3px var(--turf), 0 10px 20px rgb(14 21 17 / .18); }
.hc-credit { margin: 2px 0 0; font: 500 .6875rem/1.2 var(--font-body); color: #8B9A91; }

/* dots, arrows, Pause */
.hc-ctrl { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: -20px; }
.hc-ctrl[hidden] { display: none; }
.hc-dots { display: flex; align-items: center; }
.hc-dot { width: 30px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.hc-dot i { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--hc-dot); transition: width .25s ease, background-color .25s ease; }
.hc-dot[aria-current="true"] i { width: 22px; background: var(--turf); }
.hc-arrow { display: none; }
.hc-pause {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.hc-pause-ico { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--hc-ring); display: grid; place-items: center; }
.hc-pause svg { fill: currentColor; }
.hc-pause .i-play, .hc-pause.is-paused .i-pause { display: none; }
.hc-pause.is-paused .i-play { display: block; }
.hc-pause-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root { --hc-dot: #B7C3BA; --hc-ring: #9AA79F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hc-dot: #3A4A40; --hc-ring: #5E6E64; } }
:root[data-theme="dark"] { --hc-dot: #3A4A40; --hc-ring: #5E6E64; }
/* dark pages: the cards get an edge so they don't melt into the page */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hc-slide { background: #121B16; box-shadow: inset 0 0 0 1px #24322B; } }
:root[data-theme="dark"] .hc-slide { background: #121B16; box-shadow: inset 0 0 0 1px #24322B; }

@media (prefers-reduced-motion: reduce) { .hc-track { scroll-behavior: auto; } .hc-dot i { transition: none; } }

/* tablets: the same card, a little roomier */
@media (min-width: 641px) and (max-width: 899px) {
  .hc-art { height: 240px; }
  .hc-art-in { transform: scale(.95); }
  .hc-body { padding: 24px 28px 26px; }
}

/* bigger screens: one slide at a time, words on the left, the art on the right, arrows beside the dots */
@media (min-width: 900px) {
  .hc-track { padding-bottom: 40px; min-height: 470px; }
  .hc-slide { flex-direction: row-reverse; min-height: 420px; border-radius: 22px; box-shadow: 0 16px 24px -12px rgb(14 21 17 / .35); }   /* kept inside the row's 16px sides */
  .hc-art { flex: 1 1 50%; height: auto; }
  .hc-art-in { transform: scale(1.25); }
  .hc-tag { left: 20px; top: 20px; padding: 7px 12px; font-size: .75rem; }
  .hc-body { flex: 1 1 50%; justify-content: center; gap: 14px; padding: 52px 48px; }
  .hc-kicker { font-size: 1.125rem; }
  .hc-title { font-size: 3.5rem; line-height: 1; }
  .hc-text { max-width: 440px; font-size: 1.1875rem; }
  .hc-cta { margin-top: 10px; min-height: 52px; padding: 0 24px; gap: 10px; font-size: 1.1875rem; }
  .hc-credit { margin-top: 4px; font-size: .75rem; }
  .hc-ctrl { gap: 16px; margin-top: -24px; }
  .hc-arrow {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; padding: 0;
    border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .hc-arrow:hover { border-color: var(--muted); }
  .hc-pause { width: auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); font: 600 .875rem/1 var(--font-body); }
  .hc-pause:hover { border-color: var(--muted); }
  .hc-pause-ico { width: auto; height: auto; border: 0; }
  .hc-pause-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- Everything on SportsBadger ---------- */
.hl { display: flex; flex-direction: column; gap: 12px; }
.hl-title { font-size: 1.375rem; line-height: 1.1; color: var(--ink); }
.hl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hl-row {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 14px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; cursor: pointer;
}
a.hl-row:hover, .hl-group summary:hover { border-color: var(--muted); }
.hl-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #24543A; display: grid; place-items: center; }
.hl-ico svg { display: block; }
.hl-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.hl-txt b { font: 700 1.125rem/1.1 var(--font-display); color: var(--ink); }
.hl-txt span { font-size: .875rem; line-height: 1.35; color: var(--muted); text-wrap: pretty; }
.hl-chev { flex: none; color: var(--muted); transition: transform .2s ease; }
.hl-group summary { list-style: none; }
.hl-group summary::-webkit-details-marker { display: none; }
.hl-group[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hl-group[open] .hl-chev { transform: rotate(90deg); }
.hl-sub {
  display: flex; flex-direction: column; padding: 4px 14px 8px; background: var(--surface);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px;
}
.hl-sub a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; color: inherit; text-decoration: none; }
.hl-sub a + a { border-top: 1px solid var(--line); }
.hl-sub a > span { display: flex; flex-direction: column; gap: 1px; }
.hl-sub b { font: 700 1.0625rem/1.1 var(--font-display); color: var(--ink); }
.hl-sub a > span > span { font-size: .8125rem; line-height: 1.3; color: var(--muted); }
.hl-sub a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hl-mico { flex: none; margin-left: 10px; margin-right: 8px; fill: none; stroke: var(--turf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .hl-chev { transition: none; } }

@media (min-width: 900px) {
  .home { gap: 34px; padding-block: 32px 56px; }
  .hl { gap: 14px; }
  .hl-title { font-size: 1.75rem; }
  .hl-list { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
  .hl-list > li { flex: 1 1 300px; }
  .hl-row { min-height: 76px; }
  .hl-ico { width: 48px; height: 48px; }
  .hl-txt b { font-size: 1.25rem; }
  .hl-txt span { font-size: .9375rem; }
}
