/* THC Promo CTA — scoped sidebar conversion boxes only.
   Table styling and in-body promo-code colors are owned by Piper (piper.css).
   Scoped to promo pages. Must not change the homepage, header, scoreboard,
   recap ad, or card spacing. */

body.thc-promos,
body.category-promos,
body.page-id-1123,
body.postid-1119,
body.postid-1120 {
  --thc-promo-cardinal: #9d2235;
  --thc-promo-paper: #fffdf8;
  --thc-promo-bg: #f3efe8;
  --thc-promo-ink: #161214;
  --thc-promo-line: #e4d8cf;
  --thc-promo-muted: #6a5f5c;
  --thc-promo-green: #1f7a3a;
  --thc-promo-green-bg: #e8f5ec;
}

body.thc-promos .thc-promo-cta,
body.category-promos .thc-promo-cta,
body.page-id-1123 .thc-promo-cta,
body.postid-1119 .thc-promo-cta,
body.postid-1120 .thc-promo-cta {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "badge" "body" "stub";
  align-content: start;
  background: var(--thc-promo-paper);
  color: var(--thc-promo-ink);
  border: 1px solid var(--thc-promo-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 18, 20, 0.04), 0 8px 22px rgba(22, 18, 20, 0.08);
  margin: 0 0 1.25rem;
  max-width: 100%;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

body.thc-promos .thc-promo-cta__badge {
  grid-area: badge;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.85rem 0.75rem 0.7rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 253, 248, 0.16), transparent 58%),
    var(--thc-promo-cardinal);
  color: #fff;
  text-align: center;
}

body.thc-promos .thc-promo-cta__amount-kicker,
body.thc-promos .thc-promo-cta__amount-sub {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #ffd7dc;
}

body.thc-promos .thc-promo-cta__amount {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  font-size: 2.15rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}

body.thc-promos .thc-promo-cta__body {
  grid-area: body;
  padding: 0.9rem 1rem 0.35rem;
}

body.thc-promos .thc-promo-cta__eyebrow {
  margin: 0 0 0.35rem;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--thc-promo-cardinal);
}

body.thc-promos .thc-promo-cta__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem 0.7rem;
}

body.thc-promos .thc-promo-cta__title {
  margin: 0;
  flex: 1 1 auto;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--thc-promo-ink);
}

body.thc-promos .thc-promo-cta__code {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.28rem 0.55rem 0.28rem 0.5rem;
  border: 1px solid var(--thc-promo-line);
  border-radius: 999px;
  background: var(--thc-promo-green-bg);
  color: var(--thc-promo-green);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

body.thc-promos .thc-promo-cta__code:hover,
body.thc-promos .thc-promo-cta__code:focus-visible {
  border-color: var(--thc-promo-green);
  outline: 2px solid var(--thc-promo-green);
  outline-offset: 2px;
}

body.thc-promos .thc-promo-cta__code-label {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thc-promo-muted);
}

body.thc-promos .thc-promo-cta__code-value {
  font-family: ui-monospace, "Source Code Pro", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--thc-promo-green);
}

body.thc-promos .thc-promo-cta__code[data-copied="true"] {
  background: var(--thc-promo-green);
  border-color: var(--thc-promo-green);
  color: #fff;
}
body.thc-promos .thc-promo-cta__code[data-copied="true"] .thc-promo-cta__code-label,
body.thc-promos .thc-promo-cta__code[data-copied="true"] .thc-promo-cta__code-value {
  color: #fff;
}

body.thc-promos .thc-promo-cta__code svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
}

body.thc-promos .thc-promo-cta__offer {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--thc-promo-ink);
}

body.thc-promos .thc-promo-cta__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

body.thc-promos .thc-promo-cta__facts li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 5.5rem;
}

body.thc-promos .thc-promo-cta__facts span {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thc-promo-muted);
}

body.thc-promos .thc-promo-cta__facts strong {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

body.thc-promos .thc-promo-cta__stub {
  grid-area: stub;
  padding: 0.85rem 1rem 1rem;
}

body.thc-promos .thc-promo-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background: var(--thc-promo-cardinal);
  color: #fff !important;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  text-align: center;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
}

body.thc-promos .thc-promo-cta__btn:hover,
body.thc-promos .thc-promo-cta__btn:focus-visible {
  background: #7d1a2b;
  color: #fff !important;
}

body.thc-promos .thc-promo-cta__legal {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--thc-promo-muted);
}

/* Hub: one box per offer, under the intro, above the card grid. */
body.page-id-1123 .thc-promo-cta-row,
body.thc-promos.thc-sportpage .thc-promo-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px 0 8px;
  max-width: 100%;
}

body.page-id-1123 .thc-promo-cta-row .thc-promo-cta-slot,
body.thc-promos.thc-sportpage .thc-promo-cta-row .thc-promo-cta-slot {
  min-width: 0;
}

body.page-id-1123 .thc-promo-cta-row .thc-promo-cta,
body.thc-promos.thc-sportpage .thc-promo-cta-row .thc-promo-cta {
  height: 100%;
  margin: 0;
}

/* Single-article layout: a tall, invisible slot in column 2 holds a
   content-sized sticky card. Widens main.thc-article on promo singles
   only (760px -> 1080px). Does not touch sport pages or the homepage. */
@media (min-width: 1040px) {
  body.thc-promos.single main.thc-article,
  body.postid-1119 main.thc-article,
  body.postid-1120 main.thc-article {
    width: min(1080px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 28px;
    align-items: start;
  }
  body.thc-promos.single main.thc-article > *:not(.thc-promo-cta-slot),
  body.postid-1119 main.thc-article > *:not(.thc-promo-cta-slot),
  body.postid-1120 main.thc-article > *:not(.thc-promo-cta-slot) {
    grid-column: 1;
  }
  /* kicker, h1, byline are rows 1-3; slot starts at the featured image. */
  body.thc-promos.single main.thc-article > .thc-promo-cta-slot,
  body.postid-1119 main.thc-article > .thc-promo-cta-slot,
  body.postid-1120 main.thc-article > .thc-promo-cta-slot {
    grid-column: 2;
    grid-row: 4 / span 80;
    align-self: stretch;
  }
  body.thc-promos.single main.thc-article > .thc-promo-cta-slot > .thc-promo-cta,
  body.postid-1119 main.thc-article > .thc-promo-cta-slot > .thc-promo-cta,
  body.postid-1120 main.thc-article > .thc-promo-cta-slot > .thc-promo-cta {
    position: sticky;
    top: 104px;
    z-index: 5;
    margin: 0 0 1.25rem;
    width: 100%;
  }
  body.thc-promos.single .thc-promo-cta__title-row,
  body.postid-1119 .thc-promo-cta__title-row,
  body.postid-1120 .thc-promo-cta__title-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 800px) {
  body.page-id-1123 .thc-promo-cta-row,
  body.thc-promos.thc-sportpage .thc-promo-cta-row {
    grid-template-columns: 1fr;
  }
}

/* If a featured image is present, keep it inside the article column. */
body.thc-promos .thc-article img.thc-article-hero,
body.page-id-1123 .thc-article img.thc-article-hero,
body.postid-1119 .thc-article img.thc-article-hero,
body.postid-1120 .thc-article img.thc-article-hero {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* -------------------------------------------------------------------------
   v1.0.2 — Promos hub (page-id-1123) only.
   Do not change article sidebar boxes on postid-1119 / postid-1120.
   ------------------------------------------------------------------------- */

/* Hub intro, card teaser, meta, and other light gray text: ink, larger type. */
body.page-id-1123 .thc-sport-intro,
body.page-id-1123 .thc-sport-intro p {
  color: #161214;
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 760px;
}

body.page-id-1123 .thc-sport-grid .thc-card .thc-kicker,
body.page-id-1123 .thc-card .thc-kicker {
  /* Beat a sitewide .thc-kicker { color:#222 !important; font-weight:500 !important } rule. */
  color: #9d2235 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.3;
}

body.page-id-1123 .thc-sport-grid .thc-card h3,
body.page-id-1123 .thc-sport-grid .thc-card h3 a,
body.page-id-1123 .thc-card h3,
body.page-id-1123 .thc-card h3 a {
  color: #161214;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

body.page-id-1123 .thc-sport-grid .thc-card .thc-dek,
body.page-id-1123 .thc-card .thc-dek {
  /* Beat a sitewide .thc-dek { color:#333 !important } rule. Hub only. */
  color: #161214 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

/* Show the full 16:9 promo image, headline included. The 16/10 cover crop
   (and the 800x520 thc-card file) was clipping the left-aligned type. */
body.page-id-1123 .thc-sport-grid .thc-card-media,
body.page-id-1123 .thc-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #9d2235;
}

body.page-id-1123 .thc-sport-grid .thc-card-media img,
body.page-id-1123 .thc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Hub CTA type: weight 700 (no 800 faux bold), no negative tracking,
   readable sizes while fonts are 400-only. Article boxes keep 1.0.1 values. */
body.page-id-1123 .thc-promo-cta__amount-kicker,
body.page-id-1123 .thc-promo-cta__amount-sub {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

body.page-id-1123 .thc-promo-cta__amount {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

body.page-id-1123 .thc-promo-cta__eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
}

body.page-id-1123 .thc-promo-cta__title {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

body.page-id-1123 .thc-promo-cta__code-label {
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
}

body.page-id-1123 .thc-promo-cta__code-value {
  font-size: 0.85rem;
}

body.page-id-1123 .thc-promo-cta__offer {
  font-size: 1rem;
  line-height: 1.5;
  color: #161214;
}

body.page-id-1123 .thc-promo-cta__facts span {
  font-weight: 700;
  font-size: 0.78rem;
  color: #3a3332;
  line-height: 1.2;
}

body.page-id-1123 .thc-promo-cta__facts strong {
  font-weight: 700;
  letter-spacing: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #161214;
}
