/* Thanksgiving Guide only. Keep this prototype isolated from other guides. */
body.guide-thanksgiving-page h1,
body.guide-thanksgiving-page h2,
body.guide-thanksgiving-page h3 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
/* Tablet contract: use a stable 2x2 card before the mobile stack. */
@media (min-width: 768px) and (max-width: 1100px) {
  body.homepage-v2.guides-page .christmas-guide-hero .guide-countdown-card > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 14px !important;
  }
  body.homepage-v2.guides-page .christmas-guide-hero .guide-countdown-card b {
    white-space: normal !important;
  }
}
body.guide-thanksgiving-page .christmas-guide-main::before {
  height: 590px !important;
  background: linear-gradient(180deg, #7928e8 0, #a344ef 470px, #f5f7fb 590px) !important;
}
body.guide-thanksgiving-page .christmas-guide-hero {
  min-height: 420px;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding: 36px;
}
body.guide-thanksgiving-page .christmas-guide-hero h1 {
  font-size: clamp(54px, 6vw, 82px);
  line-height: .94;
}
body.guide-thanksgiving-page .guide-hero-copy .guides-breadcrumb { margin-bottom: 18px; }
body.guide-thanksgiving-page .christmas-guide-hero p { font-size: 17px; }
body.guide-thanksgiving-page .guide-meta { margin-top: 18px; }
body.guide-thanksgiving-page .guide-countdown-card { padding: 20px; }
body.guide-thanksgiving-page .guide-countdown-card > div {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
}
body.guide-thanksgiving-page .guide-countdown-card p { min-width: 0 !important; }
body.guide-thanksgiving-page .guide-countdown-card b {
  font-size: clamp(18px, 2vw, 27px) !important;
  white-space: nowrap !important;
}
body.guide-thanksgiving-page .guide-countdown-card em { font-size: 11px !important; }

body.guide-thanksgiving-page .thanksgiving-master-content {
  position: relative;
  z-index: 1;
  width: min(var(--hp-v2-container), calc(100% - 48px));
  margin: 0 auto 40px;
  padding: 28px 0 0;
  color: #111827;
}

body.guide-thanksgiving-page .christmas-guide-main > .christmas-guide-layout { display: none !important; }
body.guide-thanksgiving-page .thanksgiving-master-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e7eb;
}

body.guide-thanksgiving-page .thanksgiving-master-content h2 {
  margin: 6px 0 14px;
  color: #111827;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;
}

body.guide-thanksgiving-page .thanksgiving-master-content p {
  max-width: 760px;
  margin: 0 0 12px;
  color: #374151;
  font-size: 16px;
  line-height: 1.68;
}

body.guide-thanksgiving-page .thanksgiving-master-content .lead {
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

body.guide-thanksgiving-page .thanksgiving-master-content .eyebrow {
  margin: 0 0 7px;
  color: #6d28d9 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.guide-thanksgiving-page .thanksgiving-master-facts {
  align-self: start;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
}
body.guide-thanksgiving-page .thanksgiving-master-facts h3 { margin: 0 0 8px; color: #111827; }
body.guide-thanksgiving-page .thanksgiving-master-facts dl { margin: 0; }
body.guide-thanksgiving-page .thanksgiving-master-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #e5e7eb;
}
body.guide-thanksgiving-page .thanksgiving-master-facts dt { color: #4b5563; font-size: 13px; }
body.guide-thanksgiving-page .thanksgiving-master-facts dd { margin: 0; color: #111827; font-size: 13px; font-weight: 700; text-align: right; }

body.guide-thanksgiving-page .thanksgiving-master-section {
  max-width: 920px;
  padding: 36px 0;
  border-bottom: 1px solid #e5e7eb;
}
body.guide-thanksgiving-page .thanksgiving-master-section a { color: #6d28d9; font-weight: 700; }

body.guide-thanksgiving-page .thanksgiving-meaning-grid,
body.guide-thanksgiving-page .thanksgiving-today-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 18px;
}
body.guide-thanksgiving-page .thanksgiving-today-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}
body.guide-thanksgiving-page .thanksgiving-meaning-grid > div,
body.guide-thanksgiving-page .thanksgiving-today-grid > div {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-top: 1px solid #e5e7eb;
}
body.guide-thanksgiving-page .thanksgiving-meaning-grid span,
body.guide-thanksgiving-page .thanksgiving-today-grid span,
body.guide-thanksgiving-page .thanksgiving-explore-grid small {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

body.guide-thanksgiving-page .thanksgiving-explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
body.guide-thanksgiving-page .thanksgiving-explore-grid a {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  text-decoration: none;
}
body.guide-thanksgiving-page .thanksgiving-explore-grid a:hover { border-color: #c4b5fd; box-shadow: 0 6px 16px rgba(109,40,217,.1); }
body.guide-thanksgiving-page .thanksgiving-explore-grid span { color: #4b5563; font-size: 14px; }
body.guide-thanksgiving-page .thanksgiving-explore-grid small { display: block; }
body.guide-thanksgiving-page .thanksgiving-explore-grid em { color: #6d28d9; font-style: normal; font-weight: 800; }

body.guide-thanksgiving-page .thanksgiving-master-facts-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding-left: 20px;
  color: #374151;
  line-height: 1.6;
}
body.guide-thanksgiving-page .thanksgiving-master-facts-list li { padding-left: 4px; }
body.guide-thanksgiving-page .thanksgiving-master-faq details { padding: 13px 0; border-top: 1px solid #e5e7eb; }
body.guide-thanksgiving-page .thanksgiving-master-faq summary { cursor: pointer; color: #111827; font-weight: 800; }
body.guide-thanksgiving-page .thanksgiving-master-faq p { margin: 8px 0 0; }

body.guide-thanksgiving-page .thanksgiving-master-planning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #fff;
}
body.guide-thanksgiving-page .thanksgiving-master-planning h2,
body.guide-thanksgiving-page .thanksgiving-master-planning p { color: #fff; }
body.guide-thanksgiving-page .thanksgiving-master-planning .eyebrow { color: #fff !important; }
body.guide-thanksgiving-page .thanksgiving-master-planning a { padding: 11px 16px; border-radius: 999px; background: #fff; color: #5b21b6; font-weight: 800; text-decoration: none; white-space: nowrap; }

body.guide-thanksgiving-page .thanksgiving-master-related { padding: 34px 0 0; }
body.guide-thanksgiving-page .thanksgiving-master-related > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
body.guide-thanksgiving-page .thanksgiving-master-related a { display: grid; gap: 5px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; color: #111827; text-decoration: none; }
body.guide-thanksgiving-page .thanksgiving-master-related a span { color: #4b5563; font-size: 14px; line-height: 1.45; }
body.guide-thanksgiving-page .thanksgiving-master-related a em { color: #6d28d9; font-style: normal; font-weight: 800; }

@media (max-width: 767px) {
  body.guide-thanksgiving-page .christmas-guide-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }
  body.guide-thanksgiving-page .christmas-guide-hero h1 { font-size: clamp(46px, 15vw, 68px); }
  body.guide-thanksgiving-page .thanksgiving-master-content { width: min(100% - 32px, 680px); padding-top: 24px; }
  body.guide-thanksgiving-page .thanksgiving-master-intro { display: block; }
  body.guide-thanksgiving-page .thanksgiving-master-facts { margin-top: 20px; }
  body.guide-thanksgiving-page .thanksgiving-meaning-grid,
  body.guide-thanksgiving-page .thanksgiving-today-grid,
  body.guide-thanksgiving-page .thanksgiving-explore-grid,
  body.guide-thanksgiving-page .thanksgiving-master-facts-list ul,
  body.guide-thanksgiving-page .thanksgiving-master-related > div { grid-template-columns: 1fr; }
  body.guide-thanksgiving-page .thanksgiving-master-planning { display: block; padding: 22px; }
  body.guide-thanksgiving-page .thanksgiving-master-planning a { display: inline-block; margin-top: 12px; }
}

/* Final visual-parity safeguards.
   Every generated guide also carries guide-thanksgiving-page, so define each
   holiday image after the legacy shared variables to prevent Thanksgiving's
   image from becoming an accidental fallback. */
body.guide-halloween-page { --guide-hero-image: url('/images/holidays/halloween-hero.jpg'); }
body.guide-diwali-page { --guide-hero-image: linear-gradient(135deg, #36106f, #7c2fd4 55%, #c13ca8); }
body.guide-hanukkah-page { --guide-hero-image: url('/images/holidays/hanukkah-eve-hero.png'); }
body.guide-mothers-day-page { --guide-hero-image: url('/assets/card-mothers-day-premium.png'); }
body.guide-fathers-day-page { --guide-hero-image: linear-gradient(135deg, #241052, #5530a4 55%, #9656d8); }
body.guide-new-year-page { --guide-hero-image: url('/images/holidays/new-year-hero.jpg'); }
body.guide-black-friday-page { --guide-hero-image: url('/images/holidays/black-friday-hero.jpg'); }
body.guide-easter-page { --guide-hero-image: url('/images/holidays/easter-hero.jpg'); }
body.guide-chinese-new-year-page { --guide-hero-image: url('/images/holidays/chinese-new-year-hero.png'); }
body.guide-valentines-day-page { --guide-hero-image: url('/assets/card-valentines-day-premium.png'); }
body.guide-cinco-de-mayo-page { --guide-hero-image: url('/images/holidays/cinco-de-mayo-hero.png'); }
body.guide-eid-al-fitr-page,
body.guide-eid-al-adha-page { --guide-hero-image: linear-gradient(135deg, #36106f, #7c2fd4 55%, #c13ca8); }

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .guide-countdown-card > strong,
body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .guide-countdown-card > span {
  color: #fff !important;
}

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .guide-countdown-card > a {
  color: #111827 !important;
  background: #fff !important;
}

body.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  max-width: none !important;
  margin: 32px 0 0 !important;
  padding: 24px 28px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #5b21b6, #7c3aed) !important;
  color: #fff !important;
}
body.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta :is(.eyebrow, h2, p) {
  color: #fff !important;
}
body.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta > a {
  flex: 0 0 auto !important;
  padding: 14px 22px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #5b21b6 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.guide-halloween-page .thanksgiving-master-content > .christmas-related-hubs {
  max-width: none !important;
  padding: 34px 0 0 !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  body.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  body.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta > a {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Thanksgiving-only: remove the duplicate seam between shared header and hero. */
body.guide-thanksgiving-page .shared-header-root { border-bottom: 0 !important; }
body.guide-thanksgiving-page .christmas-guide-main { padding-top: 18px !important; }

/* Generated Guide V2 mobile containment. Excludes the frozen Christmas and Thanksgiving pages. */
body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) { overflow-x: hidden; }
body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .christmas-guide-hero,
body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .guide-hero-copy,
body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .guide-countdown-card,
body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .thanksgiving-master-content,
body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .thanksgiving-master-intro,
body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .thanksgiving-master-section,
body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .thanksgiving-master-facts { min-width: 0; box-sizing: border-box; }
body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .guide-meta span { max-width: 100%; white-space: normal; }

@media (max-width: 767px) {
  body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .christmas-guide-main { width: 100%; max-width: 100%; overflow: hidden; }
  body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .christmas-guide-hero {
    width: calc(100% - 28px) !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 22px 20px !important;
  }
  body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .christmas-guide-hero h1 { font-size: clamp(38px, 11vw, 54px) !important; overflow-wrap: anywhere; }
  body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .christmas-guide-hero p,
  body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .thanksgiving-master-content p { overflow-wrap: anywhere; }
  body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .guide-countdown-card { width: 100%; max-width: 100%; }
  body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .thanksgiving-master-content {
    width: calc(100% - 28px) !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 28px 20px 34px !important;
  }
  body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .thanksgiving-master-section { width: 100%; max-width: 100%; }
  body.generated-guide-page.guide-thanksgiving-page:not(.christmas-guide-page):not(.guide-christmas-page) .thanksgiving-master-facts dd { overflow-wrap: anywhere; }
}

/* Keep the opening article and facts table in one calm reading panel. */
body.guide-thanksgiving-page .thanksgiving-master-content {
  width: min(var(--hp-v2-container), calc(100% - 48px));
  margin-top: 24px;
  padding: 34px 36px 40px;
  border: 1px solid #e2e5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, .08);
}
body.guide-thanksgiving-page .thanksgiving-master-intro {
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
  gap: 36px;
  padding-bottom: 0;
  border-bottom: 0;
}
body.guide-thanksgiving-page .thanksgiving-master-facts {
  align-self: stretch;
  padding: 18px 20px;
  border-color: #ddd6fe;
  background: #faf9ff;
  box-shadow: none;
}
body.guide-thanksgiving-page .thanksgiving-master-facts dl > div {
  padding: 8px 0;
}
body.guide-thanksgiving-page .thanksgiving-master-intro + .thanksgiving-master-section {
  margin-top: 28px;
}

@media (max-width: 767px) {
  body.guide-thanksgiving-page .thanksgiving-master-content {
    width: min(100% - 32px, 680px);
    margin-top: 20px;
    padding: 26px 20px 30px;
  }
  body.guide-thanksgiving-page .thanksgiving-master-intro { display: block; }
  body.guide-thanksgiving-page .thanksgiving-master-facts { margin-top: 22px; }
}

/* Holiday Main Guide Visual Standard V2.
   Thanksgiving remains untouched; these compatibility rules make every other
   main Guide honor the Thanksgiving layout contract despite legacy CSS. */
body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .christmas-guide-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px 0 32px !important;
  background: transparent !important;
}

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .christmas-guide-main::before {
  display: block !important;
  height: 590px !important;
  background: linear-gradient(180deg, #7928e8 0, #a344ef 470px, #f5f7fb 590px) !important;
}

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .christmas-guide-hero {
  width: min(var(--hp-v2-container), calc(100% - 48px)) !important;
  min-height: 420px !important;
  margin: 0 auto !important;
  padding: 36px !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 30px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 22px !important;
  color: #fff !important;
  background-color: #171022 !important;
  background-image: linear-gradient(90deg, rgba(11,8,25,.96), rgba(24,14,46,.70) 48%, rgba(20,12,36,.28)), var(--guide-hero-image) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 30px 86px rgba(20,8,44,.28) !important;
}

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .christmas-guide-hero::before { display: none !important; }

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .christmas-guide-hero h1 {
  max-width: 760px !important;
  color: #fff !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  font-size: clamp(54px, 6vw, 82px) !important;
  font-weight: 800 !important;
  line-height: .94 !important;
  text-shadow: 0 12px 36px rgba(0,0,0,.38) !important;
}

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .christmas-guide-hero p,
body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .christmas-guide-hero .guides-breadcrumb,
body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .christmas-guide-hero .guides-breadcrumb * { color: rgba(255,255,255,.9) !important; }

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .guide-countdown-card {
  padding: 20px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 22px !important;
  background: rgba(24,16,30,.72) !important;
  color: #fff !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.24) !important;
}

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .guide-countdown-card * { color: inherit; }

body.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .thanksgiving-master-content {
  width: min(var(--hp-v2-container), calc(100% - 48px)) !important;
  margin: 24px auto 40px !important;
  padding: 34px 36px 40px !important;
  border: 1px solid #e2e5ee !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: 0 10px 26px rgba(17,24,39,.08) !important;
}

/* Halloween content keeps its wording but uses the master section rhythm. */
body.guide-halloween-page .thanksgiving-master-content > .christmas-hub-section,
body.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta,
body.guide-halloween-page .thanksgiving-master-content > .christmas-related-hubs {
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 !important;
  padding: 36px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  box-shadow: none !important;
}
body.guide-halloween-page .thanksgiving-master-content .christmas-topic-card,
body.guide-halloween-page .thanksgiving-master-content .christmas-related-feature {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 0 !important;
  background: transparent !important;
}
body.guide-halloween-page .thanksgiving-master-content .christmas-topic-card a,
body.guide-halloween-page .thanksgiving-master-content .christmas-related-feature a {
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
  min-width: 0 !important;
  min-height: 132px !important;
  padding: 16px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #111827 !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  body.guide-thanksgiving-page:is(
    .guide-halloween-page,
    .guide-diwali-page,
    .guide-hanukkah-page,
    .guide-mothers-day-page,
    .guide-fathers-day-page,
    .guide-new-year-page,
    .guide-black-friday-page,
    .guide-easter-page,
    .guide-chinese-new-year-page,
    .guide-valentines-day-page
  ) .christmas-guide-hero {
    width: calc(100% - 28px) !important;
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding: 24px 20px !important;
  }
  body.guide-thanksgiving-page:is(
    .guide-halloween-page,
    .guide-diwali-page,
    .guide-hanukkah-page,
    .guide-mothers-day-page,
    .guide-fathers-day-page,
    .guide-new-year-page,
    .guide-black-friday-page,
    .guide-easter-page,
    .guide-chinese-new-year-page,
    .guide-valentines-day-page
  ) .christmas-guide-hero h1 { font-size: clamp(38px, 11vw, 54px) !important; }
  body.guide-thanksgiving-page:is(
    .guide-halloween-page,
    .guide-diwali-page,
    .guide-hanukkah-page,
    .guide-mothers-day-page,
    .guide-fathers-day-page,
    .guide-new-year-page,
    .guide-black-friday-page,
    .guide-easter-page,
    .guide-chinese-new-year-page,
    .guide-valentines-day-page
  ) .thanksgiving-master-content {
    width: calc(100% - 28px) !important;
    padding: 26px 20px 30px !important;
  }
  body.guide-halloween-page .thanksgiving-master-content .christmas-topic-card,
  body.guide-halloween-page .thanksgiving-master-content .christmas-related-feature { grid-template-columns: 1fr !important; }
}

/* Final cascade layer: explicit image ownership and legacy-color neutralizing. */
body.guides-page.guide-halloween-page { --guide-hero-image: url('/images/holidays/halloween-hero.jpg'); }
body.guides-page.guide-diwali-page { --guide-hero-image: linear-gradient(135deg, #36106f, #7c2fd4 55%, #c13ca8); }
body.guides-page.guide-hanukkah-page { --guide-hero-image: url('/images/holidays/hanukkah-eve-hero.png'); }
body.guides-page.guide-mothers-day-page { --guide-hero-image: url('/assets/card-mothers-day-premium.png'); }
body.guides-page.guide-fathers-day-page { --guide-hero-image: linear-gradient(135deg, #241052, #5530a4 55%, #9656d8); }
body.guides-page.guide-new-year-page { --guide-hero-image: url('/images/holidays/new-year-hero.jpg'); }
body.guides-page.guide-black-friday-page { --guide-hero-image: url('/images/holidays/black-friday-hero.jpg'); }
body.guides-page.guide-easter-page { --guide-hero-image: url('/images/holidays/easter-hero.jpg'); }
body.guides-page.guide-chinese-new-year-page { --guide-hero-image: url('/images/holidays/chinese-new-year-hero.png'); }
body.guides-page.guide-valentines-day-page { --guide-hero-image: url('/assets/card-valentines-day-premium.png'); }
body.guides-page.guide-martin-luther-king-jr-day-page { --guide-hero-image: url('/images/holidays/martin-luther-king-jr-day-hero.png'); }
body.guides-page.guide-juneteenth-page { --guide-hero-image: url('/images/holidays/juneteenth-hero.png'); }
body.guides-page.guide-earth-day-page,
body.guides-page.guide-constitution-day-page { --guide-hero-image: linear-gradient(135deg, #36106f, #7c2fd4 55%, #c13ca8); }
body.guides-page.guide-mardi-gras-page,
body.guides-page.guide-april-fools-day-page,
body.guides-page.guide-columbus-day-page,
body.guides-page.guide-indigenous-peoples-day-page { --guide-hero-image: linear-gradient(135deg, #36106f, #7c2fd4 55%, #c13ca8); }
body.guides-page.guide-flag-day-page,
body.guides-page.guide-pearl-harbor-remembrance-day-page,
body.guides-page.guide-groundhog-day-page,
body.guides-page.guide-kwanzaa-page { --guide-hero-image: linear-gradient(135deg, #36106f, #7c2fd4 55%, #c13ca8); }

body.homepage-v2.guides-page.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .christmas-guide-hero :is(.guides-breadcrumb, .guides-breadcrumb *, .guide-hero-copy > p, .guide-meta, .guide-meta span) {
  color: rgba(255,255,255,.9) !important;
}
body.homepage-v2.guides-page.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .guide-countdown-card :is(strong, span) {
  color: #fff !important;
}
body.homepage-v2.guides-page.guide-thanksgiving-page:is(
  .guide-halloween-page,
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .guide-countdown-card > a {
  display: block !important;
  width: 100% !important;
  margin-top: 18px !important;
  padding: 13px 18px !important;
  border-radius: 999px !important;
  color: #111827 !important;
  background: #fff !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
}
body.homepage-v2.guides-page.guide-thanksgiving-page:is(
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .guide-countdown-card > strong {
  display: block !important;
  margin-bottom: 7px !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  text-align: center !important;
}
body.homepage-v2.guides-page.guide-thanksgiving-page:is(
  .guide-diwali-page,
  .guide-hanukkah-page,
  .guide-mothers-day-page,
  .guide-fathers-day-page,
  .guide-new-year-page,
  .guide-black-friday-page,
  .guide-easter-page,
  .guide-chinese-new-year-page,
  .guide-valentines-day-page
) .guide-countdown-card > span {
  display: block !important;
  margin-top: 5px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: center !important;
}
body.homepage-v2.guides-page.guide-halloween-page .guide-countdown-card > div {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  row-gap: 14px !important;
}
body.homepage-v2.guides-page.guide-halloween-page .guide-countdown-card b {
  font-size: 18px !important;
  white-space: normal !important;
}

body.homepage-v2.guides-page.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  max-width: none !important;
  margin: 32px 0 0 !important;
  padding: 24px 28px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #5b21b6, #7c3aed) !important;
  color: #fff !important;
}
body.homepage-v2.guides-page.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta :is(.eyebrow, h2, p) { color: #fff !important; }
body.homepage-v2.guides-page.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta > a {
  flex: 0 0 auto !important;
  padding: 14px 22px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #5b21b6 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
body.homepage-v2.guides-page.guide-halloween-page .thanksgiving-master-content > .christmas-related-hubs {
  max-width: none !important;
  padding: 34px 0 0 !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  body.homepage-v2.guides-page.guide-thanksgiving-page:is(
    .guide-halloween-page,
    .guide-diwali-page,
    .guide-hanukkah-page,
    .guide-mothers-day-page,
    .guide-fathers-day-page,
    .guide-new-year-page,
    .guide-black-friday-page,
    .guide-easter-page,
    .guide-chinese-new-year-page,
    .guide-valentines-day-page
  ) .christmas-guide-hero,
  body.homepage-v2.guides-page.guide-thanksgiving-page:is(
    .guide-halloween-page,
    .guide-diwali-page,
    .guide-hanukkah-page,
    .guide-mothers-day-page,
    .guide-fathers-day-page,
    .guide-new-year-page,
    .guide-black-friday-page,
    .guide-easter-page,
    .guide-chinese-new-year-page,
    .guide-valentines-day-page
  ) .guide-countdown-card {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  body.homepage-v2.guides-page.guide-thanksgiving-page:is(
    .guide-halloween-page,
    .guide-diwali-page,
    .guide-hanukkah-page,
    .guide-mothers-day-page,
    .guide-fathers-day-page,
    .guide-new-year-page,
    .guide-black-friday-page,
    .guide-easter-page,
    .guide-chinese-new-year-page,
    .guide-valentines-day-page
  ) .christmas-guide-hero :is(h1, p, .guide-meta, .guide-meta span) {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }
  body.homepage-v2.guides-page.guide-thanksgiving-page:is(
    .guide-halloween-page,
    .guide-diwali-page,
    .guide-hanukkah-page,
    .guide-mothers-day-page,
    .guide-fathers-day-page,
    .guide-new-year-page,
    .guide-black-friday-page,
    .guide-easter-page,
    .guide-chinese-new-year-page,
    .guide-valentines-day-page
  ) .guide-meta span {
    white-space: normal !important;
  }
  body.homepage-v2.guides-page.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  body.homepage-v2.guides-page.guide-halloween-page .thanksgiving-master-content > .christmas-countdown-cta > a {
    width: 100% !important;
    text-align: center !important;
  }
}
