/* Detail UI-01: shared purple theme for Guide and Country detail pages. */
:root {
  --detail-purple-700: #6d28d9;
  --detail-purple-600: #7c3aed;
  --detail-purple-500: #8b5cf6;
  --detail-purple-400: #a78bfa;
  --detail-light-bg: #f5f6f8;
  --detail-light-bg-alt: #eef0f4;
  --detail-light-surface: #ffffff;
  --detail-light-text: #171a2b;
  --detail-light-muted: #62677a;
  --detail-light-border: #dde1e8;
  --detail-shell: 1160px;
}

body.detail-purple-theme {
  min-width: 320px;
  margin: 0;
  background: var(--detail-light-bg) !important;
  color: var(--detail-light-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

body.detail-purple-theme::before {
  display: none !important;
}

body.detail-purple-theme a {
  color: inherit;
}

body.detail-purple-theme .site-header:not(.shared-header-root) {
  display: none;
}

body.detail-purple-theme .christmas-guide-main,
body.detail-purple-theme .us-country-main,
body.detail-purple-theme .holiday-list-main.country-generated {
  width: 100% !important;
  margin: 0;
  padding: 0;
  background: var(--detail-light-bg);
}

body.detail-purple-theme .christmas-guide-main::before,
body.detail-purple-theme .us-country-main::before,
body.detail-purple-theme .holiday-list-main.country-generated::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0 0 auto;
  height: clamp(520px, 58vw, 680px);
  z-index: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .14), transparent 32%),
    radial-gradient(circle at 10% 8%, rgba(255, 255, 255, .1), transparent 25rem),
    linear-gradient(135deg, var(--detail-purple-700) 0%, var(--detail-purple-600) 40%, #9333ea 72%, #a855f7 100%);
  pointer-events: none;
}

body.detail-purple-theme .christmas-guide-main > *,
body.detail-purple-theme .us-country-main > *,
body.detail-purple-theme .holiday-list-main.country-generated > * {
  position: relative;
  z-index: 1;
}

body.detail-purple-theme .guides-breadcrumb,
body.detail-purple-theme .us-breadcrumb,
body.detail-purple-theme .holiday-breadcrumb {
  width: min(var(--detail-shell), calc(100% - 56px));
  margin: 0 auto;
  padding: 22px 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, .42) !important;
  font-size: 13px;
}

body.detail-purple-theme .guides-breadcrumb a,
body.detail-purple-theme .us-breadcrumb a,
body.detail-purple-theme .holiday-breadcrumb a {
  color: rgba(255, 255, 255, .72) !important;
  text-decoration: none;
}

body.detail-purple-theme .guides-breadcrumb span:last-child,
body.detail-purple-theme .us-breadcrumb span:last-child,
body.detail-purple-theme .holiday-breadcrumb span:last-child {
  color: #fff !important;
}

body.detail-purple-theme .christmas-guide-hero,
body.detail-purple-theme .us-hero,
body.detail-purple-theme .popular-hero.country-hero {
  width: min(var(--detail-shell), calc(100% - 56px)) !important;
  margin: 0 auto 54px;
  min-height: clamp(420px, 38vw, 500px);
  display: grid;
  align-items: center;
  gap: 34px;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  border-radius: 26px !important;
  box-shadow: 0 24px 60px rgba(67, 26, 130, .22) !important;
  overflow: hidden;
}

body.detail-purple-theme .christmas-guide-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  padding: clamp(30px, 4vw, 46px);
  background:
    linear-gradient(90deg, rgba(22, 10, 42, .9), rgba(37, 16, 70, .58) 56%, rgba(18, 9, 36, .74)),
    url("/assets/card-halloween-premium.png") left bottom / 28% auto no-repeat,
    url("/assets/card-thanksgiving-premium.png") 48% bottom / 31% auto no-repeat,
    url("/assets/card-easter-premium.png") 71% bottom / 28% auto no-repeat,
    url("/assets/card-christmas-premium.png") right bottom / 34% auto no-repeat,
    rgba(31, 15, 56, .86) !important;
}

body.detail-purple-theme .us-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  padding: clamp(30px, 4vw, 46px);
  background:
    linear-gradient(110deg, rgba(22, 10, 42, .9), rgba(45, 20, 84, .62) 56%, rgba(18, 9, 36, .78)),
    url("/assets/hero-aurora-cabin.png") center / cover no-repeat !important;
}

body.detail-purple-theme .popular-hero.country-hero {
  padding: clamp(34px, 5vw, 54px);
  background:
    linear-gradient(110deg, rgba(22, 10, 42, .9), rgba(45, 20, 84, .58) 58%, rgba(18, 9, 36, .76)),
    url("/assets/hero-aurora-cabin.png") center / cover no-repeat !important;
}

body.detail-purple-theme .guide-hero-copy h1,
body.detail-purple-theme .us-hero-copy h1,
body.detail-purple-theme .popular-hero-copy h1 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(3.1rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: 0;
  text-shadow: 0 12px 32px rgba(0, 0, 0, .34);
}

body.detail-purple-theme .guide-hero-copy > p:not(.eyebrow),
body.detail-purple-theme .us-hero-copy p,
body.detail-purple-theme .popular-hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, .84) !important;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.58;
}

body.detail-purple-theme .eyebrow {
  color: #f8d8a8 !important;
}

body.detail-purple-theme .guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body.detail-purple-theme .guide-meta span {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 760;
}

body.detail-purple-theme .guide-countdown-card,
body.detail-purple-theme .us-next-card {
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: 22px !important;
  background: rgba(53, 23, 98, .62) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 42px rgba(28, 12, 55, .2) !important;
  backdrop-filter: blur(18px) saturate(130%);
}

body.detail-purple-theme .guide-countdown-card {
  padding: 24px;
}

body.detail-purple-theme .guide-countdown-card strong,
body.detail-purple-theme .us-next-card h2,
body.detail-purple-theme .us-next-card strong,
body.detail-purple-theme .us-next-card .time-unit strong {
  color: #fff !important;
}

body.detail-purple-theme .guide-countdown-card span,
body.detail-purple-theme .guide-countdown-card em,
body.detail-purple-theme .us-next-card p,
body.detail-purple-theme .us-next-card span,
body.detail-purple-theme .next-meta {
  color: rgba(255, 255, 255, .74) !important;
}

body.detail-purple-theme .guide-countdown-card div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

body.detail-purple-theme .guide-countdown-card p,
body.detail-purple-theme .us-next-card .time-unit {
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .1) !important;
}

body.detail-purple-theme .guide-countdown-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--detail-purple-700) !important;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

body.detail-purple-theme .us-hero-copy .button,
body.detail-purple-theme .popular-hero-copy .button {
  min-height: 42px;
  border-radius: 999px;
  padding-inline: 18px;
}

body.detail-purple-theme .button.primary {
  background: #fff !important;
  color: var(--detail-purple-700) !important;
}

body.detail-purple-theme .button.ghost {
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

body.detail-purple-theme .christmas-guide-layout,
body.detail-purple-theme .us-holiday-grid,
body.detail-purple-theme .us-bottom-grid,
body.detail-purple-theme .popular-card-grid,
body.detail-purple-theme .bottom-link-grid {
  width: min(var(--detail-shell), calc(100% - 56px)) !important;
  margin-left: auto;
  margin-right: auto;
}

body.detail-purple-theme .christmas-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding-bottom: 64px;
}

body.detail-purple-theme .guide-article-card,
body.detail-purple-theme .guide-side-card,
body.detail-purple-theme .us-panel,
body.detail-purple-theme .bottom-link-card,
body.detail-purple-theme .popular-holiday-card,
body.detail-purple-theme .us-holiday-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--detail-light-border) !important;
  background-color: var(--detail-light-surface) !important;
  color: var(--detail-light-text) !important;
  box-shadow: 0 10px 28px rgba(23, 26, 43, .07) !important;
}

body.detail-purple-theme .guide-article-card,
body.detail-purple-theme .guide-side-card,
body.detail-purple-theme .us-panel {
  border-radius: 20px !important;
}

body.detail-purple-theme .guide-article-card {
  padding: clamp(22px, 3vw, 34px);
}

body.detail-purple-theme .guide-intro {
  align-items: start;
}

body.detail-purple-theme .guide-intro img {
  border-radius: 16px;
}

body.detail-purple-theme .guide-article-card h2,
body.detail-purple-theme .guide-side-card h2,
body.detail-purple-theme .us-panel h2 {
  color: var(--detail-light-text) !important;
}

body.detail-purple-theme .guide-article-card p,
body.detail-purple-theme .guide-side-card p,
body.detail-purple-theme .us-panel p,
body.detail-purple-theme .compact-faq p {
  color: var(--detail-light-muted) !important;
}

body.detail-purple-theme .guide-row,
body.detail-purple-theme .related-guide-links a,
body.detail-purple-theme .country-mini-grid a,
body.detail-purple-theme .upcoming-list p,
body.detail-purple-theme .bottom-link-card {
  border: 1px solid var(--detail-light-border) !important;
  background: #fff !important;
  color: var(--detail-light-text) !important;
  box-shadow: none !important;
}

body.detail-purple-theme .guide-row strong,
body.detail-purple-theme .related-guide-links strong,
body.detail-purple-theme .country-mini-grid strong,
body.detail-purple-theme .bottom-link-card strong,
body.detail-purple-theme .popular-holiday-card strong,
body.detail-purple-theme .us-holiday-card strong {
  color: var(--detail-light-text) !important;
}

body.detail-purple-theme .guide-row em,
body.detail-purple-theme .related-guide-links em,
body.detail-purple-theme .country-mini-grid em,
body.detail-purple-theme .bottom-link-card p,
body.detail-purple-theme .popular-holiday-card small,
body.detail-purple-theme .popular-holiday-card em,
body.detail-purple-theme .us-holiday-card small,
body.detail-purple-theme .us-holiday-card em {
  color: var(--detail-light-muted) !important;
}

body.detail-purple-theme .guide-row b,
body.detail-purple-theme .view-all-guides,
body.detail-purple-theme .panel-link,
body.detail-purple-theme .bottom-link-card em {
  color: var(--detail-purple-700) !important;
}

body.detail-purple-theme .quick-guide-facts dl div {
  border-top-color: var(--detail-light-border) !important;
}

body.detail-purple-theme .quick-guide-facts dt {
  color: var(--detail-light-muted) !important;
}

body.detail-purple-theme .quick-guide-facts dd {
  color: var(--detail-light-text) !important;
}

body.detail-purple-theme .popular-card-grid,
body.detail-purple-theme .us-holiday-grid {
  margin-top: 0;
  padding-bottom: 52px;
}

body.detail-purple-theme .popular-holiday-card,
body.detail-purple-theme .us-holiday-card {
  border-radius: 16px !important;
  overflow: hidden;
}

body.detail-purple-theme .popular-holiday-card::before,
body.detail-purple-theme .us-holiday-card::before {
  opacity: .88;
}

body.detail-purple-theme .badge,
body.detail-purple-theme .us-holiday-card .badge {
  background: rgba(124, 58, 237, .12) !important;
  color: var(--detail-purple-700) !important;
}

body.detail-purple-theme .arrow {
  background: #fff !important;
  color: var(--detail-purple-700) !important;
}

body.detail-purple-theme .us-bottom-grid,
body.detail-purple-theme .bottom-link-grid {
  padding-bottom: 64px;
}

body.detail-purple-theme details {
  border-color: var(--detail-light-border) !important;
  background: #fff !important;
}

body.detail-purple-theme summary {
  color: var(--detail-light-text) !important;
}

body.detail-purple-theme summary::marker {
  color: var(--detail-purple-700);
}

body.detail-purple-theme .footer.site-footer {
  margin-top: 0;
  border-top: 1px solid #d9dde5 !important;
  background: var(--detail-light-bg-alt) !important;
  color: var(--detail-light-muted) !important;
}

body.detail-purple-theme .footer-shell {
  width: min(var(--detail-shell), calc(100% - 56px)) !important;
}

body.detail-purple-theme .us-next-card {
  width: min(100%, 430px) !important;
  justify-self: end;
}

body.detail-purple-theme .guide-article-card,
body.detail-purple-theme .guide-sidebar,
body.detail-purple-theme .guide-side-card {
  min-width: 0;
}

body.detail-purple-theme .footer a,
body.detail-purple-theme .footer h3,
body.detail-purple-theme .footer .brand {
  color: var(--detail-purple-700) !important;
}

body.detail-purple-theme .footer p,
body.detail-purple-theme .footer span {
  color: var(--detail-light-muted) !important;
}

body.detail-purple-theme :focus-visible {
  outline: 3px solid rgba(109, 40, 217, .72);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  body.detail-purple-theme .christmas-guide-hero,
  body.detail-purple-theme .us-hero {
    grid-template-columns: 1fr;
  }

  body.detail-purple-theme .christmas-guide-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.detail-purple-theme .guides-breadcrumb,
  body.detail-purple-theme .us-breadcrumb,
  body.detail-purple-theme .holiday-breadcrumb,
  body.detail-purple-theme .christmas-guide-hero,
  body.detail-purple-theme .us-hero,
  body.detail-purple-theme .popular-hero.country-hero,
  body.detail-purple-theme .christmas-guide-layout,
  body.detail-purple-theme .us-holiday-grid,
  body.detail-purple-theme .us-bottom-grid,
  body.detail-purple-theme .popular-card-grid,
  body.detail-purple-theme .bottom-link-grid,
  body.detail-purple-theme .footer-shell {
    width: min(100% - 32px, var(--detail-shell)) !important;
  }

  body.detail-purple-theme .christmas-guide-hero,
  body.detail-purple-theme .us-hero,
  body.detail-purple-theme .popular-hero.country-hero {
    min-height: 0;
    margin-bottom: 42px;
    padding: 24px;
    border-radius: 22px !important;
  }

  body.detail-purple-theme .guide-hero-copy h1,
  body.detail-purple-theme .us-hero-copy h1,
  body.detail-purple-theme .popular-hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.1rem);
  }

  body.detail-purple-theme .guide-countdown-card div,
  body.detail-purple-theme .us-next-card .time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.detail-purple-theme .us-next-card {
    width: 100% !important;
    justify-self: stretch;
  }
}

@media (max-width: 390px) {
  body.detail-purple-theme .guides-breadcrumb,
  body.detail-purple-theme .us-breadcrumb,
  body.detail-purple-theme .holiday-breadcrumb,
  body.detail-purple-theme .christmas-guide-hero,
  body.detail-purple-theme .us-hero,
  body.detail-purple-theme .popular-hero.country-hero,
  body.detail-purple-theme .christmas-guide-layout,
  body.detail-purple-theme .us-holiday-grid,
  body.detail-purple-theme .us-bottom-grid,
  body.detail-purple-theme .popular-card-grid,
  body.detail-purple-theme .bottom-link-grid,
  body.detail-purple-theme .footer-shell {
    width: calc(100% - 24px) !important;
  }

  body.detail-purple-theme .christmas-guide-hero,
  body.detail-purple-theme .us-hero,
  body.detail-purple-theme .popular-hero.country-hero,
  body.detail-purple-theme .guide-article-card,
  body.detail-purple-theme .guide-side-card,
  body.detail-purple-theme .us-panel {
    border-radius: 18px !important;
  }
}

/* Food family regression guard: detail-theme is injected after the page
   stylesheet, so keep the approved Food editorial geometry intact. */
@media (min-width: 1025px) {
  body.homepage-v2.guides-page.generated-guide-page.food-guide-page .christmas-guide-main > .christmas-guide-layout {
    padding: 0 !important;
    grid-template-columns: minmax(0, 760px) 260px !important;
    gap: 48px !important;
  }
  body.homepage-v2.guides-page.generated-guide-page.food-guide-page .christmas-guide-main > .christmas-guide-layout > .guide-article-card,
  body.homepage-v2.guides-page.generated-guide-page.food-guide-page .christmas-guide-main > .christmas-guide-layout > .guide-sidebar {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.homepage-v2.guides-page.generated-guide-page.food-guide-page:not(.guide-christmas-page):not(.guide-halloween-page) .guide-intro { display: block !important; }
}
body.homepage-v2.guides-page.generated-guide-page.food-guide-page .guide-intro > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}
