/* wbb-light 1.0.0: We Bet Better, Direction B ("The Daily Card") on the light ground.
   Tokens from docs/wbb-light-b-handoff/HANDOFF.md. Gold #d4a84b is a fill only, never text
   on paper; dark gold #7d5a0c is gold as text. The theme never reads data-color-scheme. */

:root {
  --paper: #f3f3ef;
  --ink: #15171b;
  --text2: #454b55;
  --text3: #5d636d;
  --hair: #d2d2cb;
  --gold: #d4a84b;
  --gold-hover: #e3b95c;
  --dgold: #7d5a0c;
  --win: #1c7445;
  --loss: #b03626;
  --band: #0d0f13;
  --band-text: #f2f2f0;
  --band-nav: #c9cfd8;
  --band-copy: #a3abb8;
  --band-line: #3a4250;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wide: 1160px;   /* includes the 32px gutters: about 1100px of content */
  --read: 784px;    /* includes the 32px gutters: 720px reading column */
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--dgold); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--dgold); outline-offset: 2px; }

.wbb-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wbb-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.wbb-skip:focus { top: 8px; }

.wbb-wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wbb-read { width: 100%; max-width: var(--read); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.wbb-serif { font-family: var(--serif); }
.wbb-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- buttons */

.wbb-btn-gold, .wbb-btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 4px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.wbb-btn-gold { background: var(--gold); color: #14110a; border: 0; }
.wbb-btn-gold:hover { background: var(--gold-hover); color: #14110a; }
.wbb-btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.wbb-btn-line:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- masthead */

.wbb-mast { background: var(--band); color: var(--band-text); border-bottom: 3px solid var(--gold); }
.wbb-mast-in {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap;
}
.wbb-brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: var(--band-text); text-decoration: none;
}
.wbb-brand:hover { color: var(--band-text); }
.wbb-mark { display: block; width: 50px; height: 48px; object-fit: contain; }
.wbb-wordmark { font-weight: 700; font-size: 19px; letter-spacing: 1.2px; white-space: nowrap; }
.wbb-wm-gold { color: var(--gold); }

.wbb-menu { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.wbb-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.wbb-nav-list li { margin: 0; padding: 0; }
.wbb-navlink {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  color: var(--band-nav); text-decoration: none; font-size: 15px; font-weight: 500;
}
.wbb-navlink:hover, .nav-current .wbb-navlink { color: #ffffff; }
.nav-current .wbb-navlink { box-shadow: inset 0 -2px 0 var(--gold); }
.wbb-member { display: flex; align-items: center; gap: 8px 18px; }

.wbb-menu-btn {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; color: var(--band-text);
  border: 1px solid var(--band-line); border-radius: 4px; cursor: pointer;
}

/* ---------------------------------------------------------------- main column */

.wbb-main { flex: 1 0 auto; padding-top: 32px; padding-bottom: 56px; }
.wbb-main-wide { padding-top: 0; }  /* the home and card content opens with its own spacing */

.wbb-raw { min-width: 0; }
.wbb-raw img { max-width: 100%; height: auto; }

.wbb-kicker {
  margin: 0 0 8px; color: var(--dgold);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px;
}
.wbb-kicker a { color: var(--dgold); text-decoration: none; display: inline-block; padding: 14px 0; margin: -14px 0; }  /* 44px tap target */
.wbb-kicker a:hover { color: var(--ink); }

.wbb-article-head { padding-bottom: 16px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); }
.wbb-main-wide .wbb-article-head { padding-top: 32px; }
.wbb-title {
  margin: 0; color: var(--ink); font-weight: 600;
  font-size: 44px; line-height: 1.1; letter-spacing: -0.3px; text-wrap: balance;
}
.wbb-deck {
  margin: 12px 0 0; color: var(--text2);
  font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.45;
}
.wbb-meta { margin: 12px 0 0; color: var(--text3); font-size: 14px; }

.wbb-feature { margin: 0 0 28px; }
.wbb-feature img { display: block; width: 100%; }
.wbb-feature figcaption { margin-top: 8px; color: var(--text3); font-size: 14px; }

/* ---------------------------------------------------------------- prose (Learn posts, About, Terms, Betting Strategies) */

.wbb-prose { color: var(--text2); font-size: 18px; line-height: 1.7; }
.wbb-prose > * + * { margin-top: 1.1em; }
.wbb-prose p, .wbb-prose ul, .wbb-prose ol, .wbb-prose blockquote, .wbb-prose figure, .wbb-prose table, .wbb-prose pre { margin-bottom: 0; }
.wbb-prose > :first-child { margin-top: 0; }
.wbb-prose h1, .wbb-prose h2, .wbb-prose h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.2; }
.wbb-prose h1 { font-size: 36px; }   /* a second H1 inside content is the author's choice; the theme adds only one */
.wbb-prose h2 { font-size: 30px; margin: 1.6em 0 0; }
.wbb-prose h3 { font-size: 23px; margin: 1.4em 0 0; }
.wbb-prose h4, .wbb-prose h5, .wbb-prose h6 {
  font-family: var(--sans); color: var(--ink); font-weight: 700; margin: 1.4em 0 0;
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
}
.wbb-prose a { color: var(--dgold); text-decoration: underline; text-underline-offset: 2px; }
.wbb-prose a:hover { color: var(--ink); }
.wbb-prose strong, .wbb-prose b { color: var(--ink); font-weight: 600; }
.wbb-prose ul, .wbb-prose ol { padding-left: 1.4em; }
.wbb-prose li + li { margin-top: 0.4em; }
.wbb-prose blockquote {
  margin-left: 0; margin-right: 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink);
}
.wbb-prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }
.wbb-prose code { font-family: var(--mono); font-size: 0.88em; background: #e9e9e3; padding: 1px 5px; }
.wbb-prose pre { font-family: var(--mono); font-size: 14px; background: #e9e9e3; padding: 16px; overflow-x: auto; }
.wbb-prose pre code { background: none; padding: 0; }
.wbb-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.wbb-prose th, .wbb-prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--hair); }
.wbb-prose th { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--ink); }
.wbb-prose figcaption { color: var(--text3); font-size: 14px; margin-top: 8px; }
.wbb-prose img { display: block; margin: 0 auto; }

/* Ghost card widths (card_assets loads the card styles; the theme sets the widths) */
.kg-width-wide { position: relative; width: min(1040px, 100vw - 32px); left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full img, .kg-width-wide img { width: 100%; }
.wbb-main-wide .kg-width-wide, .wbb-main-wide .kg-width-full { width: 100%; left: auto; transform: none; }

/* ---------------------------------------------------------------- lists (index, tag, author) */

.wbb-list-head { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 4px; }
.wbb-rows { display: flex; flex-direction: column; }
.wbb-row { border-bottom: 1px solid var(--hair); padding: 20px 0; }
.wbb-row-meta { margin: 0 0 6px; color: var(--text3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }
.wbb-row-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; }
/* Clickable titles (Kevin, Nov 22): the normal heading color, underline on hover and keyboard
   focus; "Read more" below is the cue that there is more (Kevin's layout review, Nov 22). */
.wbb-row-title a { color: var(--ink); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.wbb-row-title a:hover, .wbb-row-title a:focus-visible { color: var(--ink); text-decoration: underline; }
.wbb-row-more { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.wbb-row-more a { color: var(--dgold); text-decoration: underline; text-underline-offset: 3px; }
.wbb-row-more a:hover, .wbb-row-more a:focus-visible { color: var(--ink); }
.wbb-row-excerpt { margin: 8px 0 0; color: var(--text2); font-size: 16px; line-height: 1.55; }
.wbb-empty { color: var(--text3); }
.wbb-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; flex-wrap: wrap; }
.wbb-page-num { color: var(--text3); font-size: 14px; }
.wbb-error .wbb-btn-line { margin-top: 12px; }

/* ---------------------------------------------------------------- footer */

.wbb-foot { background: var(--band); color: var(--band-text); border-top: 3px solid var(--gold); margin-top: auto; }
.wbb-foot-in { padding-top: 36px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 20px; }
.wbb-foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px 24px; flex-wrap: wrap; }
.wbb-foot-brand { display: inline-block; line-height: 0; }
.wbb-foot-brand img { display: block; width: 132px; height: 120px; object-fit: contain; }
.wbb-foot-nav .wbb-nav-list { gap: 0 20px; }
.wbb-foot-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }   /* Instagram sits right after the menu (Nov 24) */
.wbb-compliance { margin: 0; max-width: 860px; color: var(--band-copy); font-size: 13px; line-height: 1.65; }
.wbb-copy { margin: 0; color: var(--band-copy); font-size: 12px; }

/* ---------------------------------------------------------------- phone */

@media (max-width: 880px) {
  :root { --gutter: 16px; }
  .wbb-mast-in { min-height: 58px; padding-top: 6px; padding-bottom: 6px; }
  .wbb-mark { width: 42px; height: 40px; }
  .wbb-wordmark { font-size: 16px; letter-spacing: 0.8px; }
  .wbb-brand { gap: 10px; }
  .wbb-title { font-size: 31px; line-height: 1.12; }
  .wbb-deck { font-size: 18px; }
  .wbb-prose { font-size: 17px; }
  .wbb-prose h2 { font-size: 25px; }
  .wbb-prose h3 { font-size: 21px; }
  .wbb-row-title { font-size: 22px; }

  /* With script: one menu button opens the nav. Without script the nav simply wraps. */
  .wbb-js .wbb-menu-btn { display: inline-flex; }
  .wbb-js .wbb-menu { display: none; width: 100%; padding: 4px 0 12px; border-top: 1px solid var(--band-line); }
  .wbb-js .wbb-menu.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .wbb-js .wbb-menu .wbb-nav-list { flex-direction: column; gap: 0; }
  .wbb-js .wbb-menu .wbb-navlink { width: 100%; font-size: 17px; }
  .wbb-js .wbb-member { flex-direction: column; align-items: stretch; gap: 8px; }
  .wbb-js .wbb-member .wbb-btn-gold { width: 100%; }
  .wbb-foot-brand img { width: 110px; height: 100px; }
}

/* =================================================================
   Neutralize the old Ghost code injection (backups/code-injection-20261118/).
   It stays live for a few minutes after the switch, until the project chat clears it.
   Every rule here is scoped under html body.wbb-light, so it outranks the injection's
   !important rules on specificity. Once the injection is cleared these are harmless.
   The old footer disclaimer (foot injection) is left visible on purpose.
   ================================================================= */

/* (a) It sets its old sans face !important on body, h1-h6, p, a, span, li and b. That also beats the
   publisher's inline font-family styles, so: those tags inherit again, and any element whose
   inline style names one of our three families gets that family back. */
html body.wbb-light { font-family: var(--sans) !important; }
html body.wbb-light :is(h1, h2, h3, h4, h5, h6, p, a, span, li, b) { font-family: inherit !important; }
html body.wbb-light .wbb-serif,
html body.wbb-light .wbb-prose :is(h1, h2, h3),
html body.wbb-light .wbb-prose blockquote :is(p, span, a, b) { font-family: var(--serif) !important; }
html body.wbb-light .wbb-prose :is(h4, h5, h6) { font-family: var(--sans) !important; }
html body.wbb-light .wbb-mono,
html body.wbb-light .wbb-prose :is(code, pre) { font-family: var(--mono) !important; }
html body.wbb-light [style][style*="Inter"] { font-family: var(--sans) !important; }
html body.wbb-light [style][style*="Newsreader"] { font-family: var(--serif) !important; }
html body.wbb-light [style][style*="JetBrains"] { font-family: var(--mono) !important; }

/* (b) Gold headings: article.post h2/h3, .prose-theme h2/h3, .gh-article-title. The theme
   uses none of those classes; these keep anything that does carry them in ink. */
html body.wbb-light article.post :is(h2, h3):not([style*="color"]),
html body.wbb-light .prose-theme :is(h2, h3):not([style*="color"]),
html body.wbb-light .gh-article-title:not([style*="color"]) { color: var(--ink) !important; }

/* Logo: "header img[alt='We Bet Better']" is forced to 130px / 185px tall. */
html body.wbb-light .wbb-mast img.wbb-mark { width: 50px !important; height: 48px !important; max-height: none !important; }
@media (max-width: 880px) {
  html body.wbb-light .wbb-mast img.wbb-mark { width: 42px !important; height: 40px !important; }
}

/* Menu button: "header nav + div button, header [aria-expanded]" gets a gold box. */
html body.wbb-light .wbb-mast .wbb-menu-btn {
  background: transparent !important; border: 1px solid var(--band-line) !important;
  border-radius: 4px !important; padding: 0 !important; color: var(--band-text) !important;
}

/* "article header" gap and the meta-list rules, and "article ul:first-of-type", which would
   strip bullets and flex the first list in a post. */
html body.wbb-light .wbb-article-head { gap: 0 !important; }
html body.wbb-light .wbb-prose :is(ul, ol) {
  display: block !important; list-style: revert !important;
  margin: 1.1em 0 0 !important; padding: 0 0 0 1.4em !important; gap: 0 !important;
}
html body.wbb-light .wbb-prose > :is(ul, ol):first-child { margin-top: 0 !important; }
html body.wbb-light .wbb-prose li { display: list-item !important; margin: 0 !important; padding: 0 !important; }
html body.wbb-light .wbb-prose li + li { margin-top: 0.4em !important; }
html body.wbb-light .wbb-prose li::before { display: revert !important; }

/* ---------------------------------------------------------------- signup strip (signed-out only, Nov 23) */

.wbb-ask {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 20px 0 4px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--hair); border-left: 4px solid var(--gold); border-radius: 4px;
}
.wbb-ask-text { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.35; }
@media (max-width: 600px) {
  .wbb-ask { padding: 12px 14px; }
  .wbb-ask .wbb-btn-gold { width: 100%; }
}
