/* IlluminateTourDetailsWcag.v1 — PDP tour-overview details cards WCAG
 * Root cause: IlluminateFaqAccordionContrast.v1 sets night .hw-product-body details :where(p,li)
 * to #b8c8d2 (FAQ dark-surface muted) while .tour-overview-simple__details cards stay white → wash.
 * Prefer themed After Dark cards (navy surface + cream/white ink). Seed copy unchanged.
 * MUST live in @layer legacy: layered !important beats unlayered !important (ModeSurfaces lesson).
 */
@layer legacy {
  /* ---- First Light: light surface + ink ≥4.5:1 ---- */
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .tour-overview-simple__details details,
  .theme-preview .tour-overview-simple__details details {
    background: #ffffff !important;
    color: #07131D !important;
    border-color: rgba(7, 19, 29, 0.13) !important;
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .tour-overview-simple__details summary,
  .theme-preview .tour-overview-simple__details summary {
    color: #07131D !important;
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .tour-overview-simple__details details :where(p, li, a),
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .tour-overview-simple__details details > *:not(summary),
  .theme-preview .tour-overview-simple__details details :where(p, li, a) {
    color: #2f4452 !important; /* ≈9.7:1 on white / #F7FBFC */
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .tour-overview-simple__details details ul,
  .theme-preview .tour-overview-simple__details details ul {
    padding-left: 1.25rem !important;
    overflow: visible !important;
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .tour-overview-simple__details details li,
  .theme-preview .tour-overview-simple__details details li {
    margin: 0.3rem 0 !important;
    overflow: visible !important;
  }

  /* Whale PDP extras siblings (tokenized FL) */
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .whale-plan-extras details,
  .theme-preview .whale-plan-extras details {
    background: #ffffff !important;
    color: #07131D !important;
    border-color: rgba(7, 19, 29, 0.13) !important;
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .whale-plan-extras summary,
  .theme-preview .whale-plan-extras summary {
    color: #07131D !important;
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .whale-plan-extras details :where(p, li, a),
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .whale-plan-extras details > *:not(summary),
  .theme-preview .whale-plan-extras details :where(p, li, a) {
    color: #2f4452 !important;
  }

  /* ---- After Dark: themed navy cards + cream/white ink (≥4.5:1) ---- */
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .tour-overview-simple__details details,
  html.illuminate-mode-night .tour-overview-simple__details details,
  html.illuminate-mode-night [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .tour-overview-simple__details details {
    background: #0D2332 !important;
    color: #F7FBFC !important;
    border-color: rgba(145, 238, 230, 0.28) !important;
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .tour-overview-simple__details summary,
  html.illuminate-mode-night .tour-overview-simple__details summary,
  html.illuminate-mode-night [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .tour-overview-simple__details summary {
    color: #F7FBFC !important;
  }

  /* Override FaqAccordionContrast night #b8c8d2-on-white wash: cream muted on navy card */
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .tour-overview-simple__details details :where(p, li),
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .hw-product-body .tour-overview-simple__details details :where(p, li),
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .tour-overview-simple__details details > *:not(summary),
  html.illuminate-mode-night .tour-overview-simple__details details :where(p, li),
  html.illuminate-mode-night .hw-product-body .tour-overview-simple__details details :where(p, li),
  html.illuminate-mode-night .tour-overview-simple__details details > *:not(summary),
  html.illuminate-mode-night [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .tour-overview-simple__details details :where(p, li) {
    color: #C5D1DA !important; /* ≈9+:1 on #0D2332 */
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .tour-overview-simple__details details a,
  html.illuminate-mode-night .tour-overview-simple__details details a {
    color: #91EEE6 !important; /* teal link on navy */
  }

  /* Whale PDP extras — keep themed dark cards (belt-and-suspenders vs Faq wash) */
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .whale-plan-extras details,
  html.illuminate-mode-night .whale-plan-extras details,
  html.illuminate-mode-night [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"] .whale-plan-extras details {
    background: #0D2332 !important;
    color: #F7FBFC !important;
    border-color: rgba(145, 238, 230, 0.28) !important;
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .whale-plan-extras summary,
  html.illuminate-mode-night .whale-plan-extras summary {
    color: #F7FBFC !important;
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .whale-plan-extras details :where(p, li),
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .hw-product-body .whale-plan-extras details :where(p, li),
  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .whale-plan-extras details > *:not(summary),
  html.illuminate-mode-night .whale-plan-extras details :where(p, li),
  html.illuminate-mode-night .hw-product-body .whale-plan-extras details :where(p, li),
  html.illuminate-mode-night .whale-plan-extras details > *:not(summary) {
    color: #C5D1DA !important;
  }

  [data-website-id="web_85b8192b-d816-469f-a4a6-be3227ba3985"][data-illuminate-mode="night"] .whale-plan-extras details a,
  html.illuminate-mode-night .whale-plan-extras details a {
    color: #91EEE6 !important;
  }
}
