/* =========================================================================
   SEO Box — Sports Interaction league/sport pages (NFL first; NHL + Soccer
   via the same template). Built from Rodrigo's approved wireframe (v0) with
   the 15/10 feedback from Aayush applied: SEO Box section only, no province
   selector, "How to bet" steps as H3, real content structure, PowerPlay-style
   sectioning (cards, alternating backgrounds, scannable).

   Same visual kit as the other SI widgets (picks.css): Saira Condensed for
   display headings, Inter for text, JetBrains Mono for odds/data. SI stadium
   navy + sportsbook orange. Single light theme on purpose — it mirrors the
   live sportsbook page (si-light), not an embeddable widget.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:ital,wght@0,600;0,700;0,800;1,800;1,900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --sb-navy: #0B2234;
  --sb-navy-2: #102C42;
  --sb-orange: #FE4000;
  --sb-orange-ink: #FFFFFF;
  --sb-teal: #027496;
  --sb-gold: #FFBC00;
  --sb-paper: #FFFFFF;
  --sb-alt: #F2EFE9;          /* alternating section background (stadium-100) */
  --sb-stadium-200: #E7E3DB;
  --sb-line: #D7DDE2;
  --sb-line-strong: #C3CBD2;
  --sb-ink: #0B2234;
  --sb-ink-2: #44545F;
  --sb-ink-faint: #6C7A84;
  --sb-win: #138A4E;
  --sb-r: 14px;
  --sb-r-sm: 10px;
  --sb-shadow: 0 1px 2px rgba(11,34,52,.05), 0 10px 26px -14px rgba(11,34,52,.28);
  --sb-disp: 'Saira Condensed', 'Arial Narrow', system-ui, sans-serif;
  --sb-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sb-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sb-maxw: 1000px;
}

/* page shell (demo context — the real block lives on the sportsbook page) */
.sb-page { margin: 0; background: var(--sb-paper); color: var(--sb-ink); font-family: var(--sb-body); line-height: 1.55; }
.sb-page *, .sb-page *::before, .sb-page *::after { box-sizing: border-box; }

/* ---- review mode (off by default): heading annotations + a context note, for
   Rodrigo/André to review the hierarchy. Never shown in the clean/production view.
   Toggled by `body.sb-review` (button bottom-right). ---- */
.sb-reviewbtn {
  position: fixed; bottom: 16px; right: 16px; z-index: 50; font-family: var(--sb-mono); font-size: 12px;
  background: var(--sb-navy); color: #fff; border: 0; border-radius: 999px; padding: 9px 15px; cursor: pointer;
  box-shadow: 0 6px 20px -6px rgba(11,34,52,.5);
}
.sb-reviewnote { display: none; }
body.sb-review .sb-reviewnote {
  display: block; max-width: var(--sb-maxw); margin: 16px auto 0; padding: 12px 16px;
  background: #FFF9EC; border: 1px solid #F0D98A; border-radius: var(--sb-r-sm);
  color: #7a6415; font-size: 13px;
}
body.sb-review .sb-reviewnote b { color: #5f4e10; }
.sb-hann {
  display: none; font-family: var(--sb-mono); font-size: 10px; font-weight: 700; letter-spacing: .02em;
  background: var(--sb-navy); color: #fff; border-radius: 5px; padding: 2px 6px; margin-left: 8px; vertical-align: middle;
}
.sb-sec--dark .sb-hann { background: #fff; color: var(--sb-navy); }
body.sb-review .sb-hann { display: inline-block; }

/* The hub nav is sticky + translucent by default (nav.css); on this content
   preview that overlaps the SEO sections as you scroll. Pin it static here only
   (seo-box.css loads on this page alone — other hub pages keep the sticky nav). */
.si-topnav { position: static; }

/* ---- the SEO box ---- */
.sb-box { border-top: 1px solid var(--sb-line); }
.sb-sec { padding: clamp(24px,4vw,34px) clamp(16px,4vw,32px); }
.sb-sec--alt { background: var(--sb-alt); }
.sb-sec--dark { background: var(--sb-navy); color: #fff; }
.sb-in { max-width: var(--sb-maxw); margin: 0 auto; }

.sb-h2 {
  font-family: var(--sb-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(20px, 2.8vw, 27px); line-height: 1.04; margin: 0 0 6px; text-wrap: balance;
}
.sb-sec--dark .sb-h2 { color: #fff; }
.sb-lead { margin: 0 0 18px; color: var(--sb-ink-2); max-width: 64ch; font-size: 15px; }
.sb-sec--dark .sb-lead { color: #C4D2DC; }
.sb-h3 { font-family: var(--sb-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; margin: 0; }
.sb-h4 { font-family: var(--sb-disp); font-weight: 800; font-size: 16px; letter-spacing: .01em; margin: 0; }

/* sport switcher (demo control: shows the NFL template adapting to NHL / Soccer) */
.sb-sportbar {
  background: var(--sb-alt); border-bottom: 1px solid var(--sb-line);
}
.sb-sportbar-in {
  max-width: var(--sb-maxw); margin: 0 auto; padding: 12px clamp(16px,4vw,32px);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.sb-sportbar-lbl {
  font-family: var(--sb-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  font-size: 11px; color: var(--sb-ink-faint);
}
.sb-sportseg {
  display: inline-flex; gap: 3px; background: #fff; border: 1px solid var(--sb-line);
  border-radius: 999px; padding: 4px;
}
.sb-sportseg button {
  font-family: var(--sb-disp); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  font-size: 13px; border: 0; background: none; color: var(--sb-ink-2); padding: 8px 18px;
  border-radius: 999px; cursor: pointer;
}
.sb-sportseg button[aria-pressed="true"] { background: var(--sb-navy); color: #fff; }

/* anchor / guide card */
.sb-guide {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 18px 20px; background: #fff; box-shadow: var(--sb-shadow);
}
.sb-guide-l { min-width: 240px; flex: 1; }
.sb-eyebrow { font-family: var(--sb-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--sb-orange); }
.sb-guide h2 { font-family: var(--sb-disp); font-weight: 800; text-transform: uppercase; font-size: 23px; margin: 3px 0 5px; letter-spacing: .01em; }
.sb-guide p { margin: 0; font-size: 14px; color: var(--sb-ink-2); }
.sb-cred { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--sb-ink-faint); margin-top: 9px; }
.sb-cred i { width: 6px; height: 6px; border-radius: 50%; background: var(--sb-teal); display: inline-block; }

/* section-nav chips */
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sb-chip {
  font-family: var(--sb-disp); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px;
  color: var(--sb-navy); background: #fff; border: 1px solid var(--sb-line-strong); border-radius: 999px;
  padding: 7px 13px; text-decoration: none; white-space: nowrap;
}
.sb-chip:hover, .sb-chip:focus-visible { border-color: var(--sb-orange); color: var(--sb-orange); }

/* CTAs */
.sb-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sb-disp); font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: 13px; text-decoration: none; border-radius: 9px;
  padding: 11px 17px; cursor: pointer; border: 0; }
.sb-cta--primary { background: var(--sb-orange); color: var(--sb-orange-ink); }
.sb-cta--primary:hover { background: #e23900; }
.sb-cta--ghost { background: transparent; color: var(--sb-orange); border: 1.5px solid var(--sb-orange); }
.sb-sec--dark .sb-cta--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.sb-cta--link { padding: 0; background: none; color: var(--sb-teal); font-family: var(--sb-body); font-weight: 700;
  text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.sb-cta--link:hover { color: var(--sb-orange); }
.sb-sec--dark .sb-cta--link { color: #5FC7E3; }
.sb-sec--dark .sb-cta--link:hover { color: #FF8257; }
.sb-cta::after { content: "→"; font-weight: 700; }
.sb-cta--link::after { content: " →"; }

/* steps (How to bet — each title an H3) */
.sb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.sb-step { background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 15px; display: flex; flex-direction: column; gap: 9px; }
.sb-step .sb-num { width: 27px; height: 27px; border-radius: 50%; background: var(--sb-orange); color: #fff;
  font-family: var(--sb-disp); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.sb-step p { margin: 0; font-size: 13px; color: var(--sb-ink-2); }

/* odds-format toggle + example */
.sb-oddsgrid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; align-items: start; }
.sb-seg { display: inline-flex; background: var(--sb-alt); border: 1px solid var(--sb-line); border-radius: 999px; padding: 4px; gap: 2px; }
.sb-sec--alt .sb-seg { background: #fff; }
.sb-seg button { font-family: var(--sb-disp); font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  font-size: 12px; border: 0; background: none; color: var(--sb-ink-2); padding: 8px 15px; border-radius: 999px; cursor: pointer; }
.sb-seg button[aria-pressed="true"] { background: var(--sb-navy); color: #fff; }
.sb-ex { border: 1px solid var(--sb-line); border-radius: var(--sb-r); background: #fff; overflow: hidden; }
.sb-exrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; }
.sb-exrow + .sb-exrow { border-top: 1px solid var(--sb-line); }
.sb-ex .side { display: flex; flex-direction: column; }
.sb-ex .side b { font-family: var(--sb-disp); font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.sb-ex .side span { font-size: 12.5px; color: var(--sb-ink-faint); }
.sb-ex .price { font-family: var(--sb-mono); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--sb-navy); }
.sb-exrow.dog .price { color: var(--sb-teal); }
.sb-exnote { font-size: 11px; color: var(--sb-ink-faint); margin: 9px 2px 0; }

/* bet-type cards (H4) */
.sb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.sb-card { background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 16px;
  display: flex; flex-direction: column; gap: 9px; box-shadow: var(--sb-shadow); }
.sb-card .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(254,64,0,.1); color: var(--sb-orange); font-size: 16px; }
.sb-card p { margin: 0; font-size: 13.5px; color: var(--sb-ink-2); }
.sb-mini { font-family: var(--sb-mono); font-size: 12px; background: var(--sb-alt); border: 1px solid var(--sb-line);
  border-radius: 7px; padding: 6px 9px; color: var(--sb-navy); align-self: flex-start; }

/* why-bet cards (H3) — dark band */
.sb-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.sb-whycard { background: var(--sb-navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--sb-r);
  padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sb-whycard .ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(254,64,0,.18); color: #FF8257; font-size: 16px; }
.sb-whycard h3 { color: #fff; font-size: 14px; }
.sb-whycard p { margin: 0; font-size: 13px; color: #AFC0CB; }

/* live card */
.sb-live { border: 1px solid rgba(255,255,255,.14); border-radius: var(--sb-r); background: var(--sb-navy-2); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sb-live .side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sb-live .side b { color: #fff; font-family: var(--sb-disp); font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.sb-live .side b .sb-livedot { color: #FF5C5C; }
.sb-live .side span { color: #AFC0CB; font-size: 13px; }
.sb-live .price { color: #FF8257; font-family: var(--sb-mono); font-weight: 700; font-size: 18px; white-space: nowrap; }

/* promos */
.sb-promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sb-promo { border: 1px solid var(--sb-line); border-radius: var(--sb-r); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sb-promo .top { background: linear-gradient(120deg, var(--sb-navy), var(--sb-teal)); color: #fff; padding: 14px 16px; }
.sb-promo .top .tag { font-family: var(--sb-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--sb-gold); }
.sb-promo .top b { display: block; font-family: var(--sb-disp); font-weight: 800; font-size: 19px; text-transform: uppercase; margin-top: 3px; }
.sb-promo .bd { padding: 13px 16px; font-size: 13px; color: var(--sb-ink-2); flex: 1; }
.sb-promo .ft { padding: 0 16px 14px; font-size: 11px; color: var(--sb-ink-faint); }

/* news */
.sb-news { display: flex; flex-direction: column; gap: 10px; }
.sb-art { display: flex; gap: 14px; align-items: center; border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 12px 14px; background: #fff; }
.sb-art .thumb {
  width: 78px; height: 64px; border-radius: 9px; flex: none; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sb-navy), var(--sb-teal));
}
.sb-art .thumb::before {
  content: attr(data-ico); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 26px; color: rgba(255,255,255,.9);
}
.sb-art .thumb::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--sb-orange); z-index: 2;
}
.sb-art .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; display: block; }
.sb-art .nb { flex: 1; min-width: 0; }
.sb-art .date { font-family: var(--sb-mono); font-size: 11px; color: var(--sb-ink-faint); }
.sb-art h3 { font-family: var(--sb-body); font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none; margin: 3px 0 4px; }

/* tips */
.sb-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sb-tip { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 14px; }
.sb-tip .n { font-family: var(--sb-disp); font-weight: 800; font-size: 22px; color: var(--sb-orange); line-height: 1; }
.sb-tip p { margin: 0; font-size: 13.5px; color: var(--sb-ink-2); }

/* faq accordion */
.sb-faq { border: 1px solid var(--sb-line); border-radius: var(--sb-r); overflow: hidden; background: #fff; }
.sb-faq details { border-top: 1px solid var(--sb-line); }
.sb-faq details:first-child { border-top: 0; }
.sb-faq summary { list-style: none; cursor: pointer; padding: 15px 17px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; }
.sb-faq summary::-webkit-details-marker { display: none; }
.sb-faq summary h3 { margin: 0; font-family: var(--sb-disp); font-weight: 700; font-size: 15px; letter-spacing: .01em; text-transform: none; }
.sb-faq summary .pm { font-family: var(--sb-mono); font-weight: 400; color: var(--sb-orange); font-size: 18px; }
.sb-faq details[open] summary .pm { color: var(--sb-ink-faint); }
.sb-faq .ans { padding: 0 17px 16px; font-size: 14px; color: var(--sb-ink-2); }
.sb-faq .ans a { color: var(--sb-teal); }

/* AI-generation disclosure (compliance — always visible, with a date) */
.sb-disclosure { padding: 14px clamp(16px,4vw,32px); background: var(--sb-alt); border-top: 1px solid var(--sb-line); }
.sb-disclosure .sb-in { font-size: 12px; color: var(--sb-ink-faint); display: flex; align-items: center; gap: 8px; }
.sb-disclosure .sb-in::before { content: "✦"; color: var(--sb-teal); font-size: 12px; }

/* responsible-gambling footer strip */
.sb-rg { padding: 16px clamp(16px,4vw,32px); background: var(--sb-navy); color: #9FB2BD; font-size: 12px; }
.sb-rg-in { max-width: var(--sb-maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.sb-rg .plus { font-family: var(--sb-disp); font-weight: 800; color: #fff; border: 1.5px solid #4A5B66; border-radius: 5px; padding: 1px 7px; font-size: 12px; }
.sb-rg .upd { margin-left: auto; font-family: var(--sb-mono); font-size: 11px; }

a.sb-chip:focus-visible, .sb-cta:focus-visible, .sb-seg button:focus-visible,
.sb-sportseg button:focus-visible, .sb-faq summary:focus-visible {
  outline: 2px solid var(--sb-orange); outline-offset: 2px;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .sb-cards, .sb-why, .sb-promos { grid-template-columns: 1fr 1fr; }
  .sb-steps { grid-template-columns: 1fr 1fr; }
  .sb-oddsgrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sb-cards, .sb-why, .sb-promos, .sb-tips, .sb-steps { grid-template-columns: 1fr; }
  .sb-guide { flex-direction: column; align-items: flex-start; }
  .sb-guide .sb-cta { width: 100%; justify-content: center; }
}
/* Mobile carousels: the two tallest card groups (bet types, Why bet) become a
   horizontal swipe row instead of a long stack, so the page stays compact and
   scannable on phones (Aayush). Content stays in the DOM — SEO/crawlability
   unaffected. */
@media (max-width: 560px) {
  .sb-cards, .sb-why {
    display: flex; grid-template-columns: none; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    margin: 16px -16px 0; padding: 2px 16px 12px; -webkit-overflow-scrolling: touch;
  }
  .sb-cards > .sb-card, .sb-why > .sb-whycard {
    flex: 0 0 80%; scroll-snap-align: start;
  }
  .sb-cards::-webkit-scrollbar, .sb-why::-webkit-scrollbar { height: 6px; }
  .sb-cards::-webkit-scrollbar-thumb, .sb-why::-webkit-scrollbar-thumb {
    background: var(--sb-line-strong); border-radius: 999px;
  }
  .sb-sec--dark .sb-why::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
