/* Content adapter for the shared V1802 dark production presentation.
   Shared catalog markup/runtime still owns discovery and reader navigation. */
body.adventure-premium {
  --premium-accent:#b4d8a4;
  --map-accent:var(--premium-accent);
  --catalog-ink:var(--premium-ink);
  --catalog-muted:var(--premium-muted);
  --catalog-line:var(--premium-line);
  --catalog-surface:var(--premium-surface);
  --catalog-reader-surface:var(--premium-surface);
  --adv-ink:var(--premium-ink);
  --adv-muted:var(--premium-muted);
  --adv-border:var(--premium-line);
  --adv-accent:var(--premium-accent);
  --premium-chrome-h:calc(var(--site-header-h,75px) + var(--disclaimer-h,52px));
}
/* Map existing component slots to common paint, never copy their behavior. */
html[data-map-product="adventure"] body.adventure-premium :is(.editorial-sheet,.sheet-bar,.editorial-az,.discovery-panel,.discovery-tabs a,.map-card,.discovery-card,.discovery-read,.discovery-category-intro,.catalog-standalone-article,.adv-card) {
  background:var(--premium-surface);
  color:var(--premium-ink);
  border-color:var(--premium-line);
  box-shadow:none;
}
html[data-map-product="adventure"] body.adventure-premium :is(.editorial-filters,.editorial-feedback,.discovery-category-all,.discovery-category-count,.catalog-standalone-related,.adv-alternatives>div,.adv-related) {
  background:var(--premium-panel);
  color:var(--premium-ink);
  border-color:var(--premium-line);
}
html[data-map-product="adventure"] body.adventure-premium :is(.discovery-tabs a[aria-current],.discovery-card:hover,.discovery-read:hover,.map-card:hover) {
  background:var(--premium-selected);
  border-color:var(--premium-accent);
}
html[data-map-product="adventure"] body.adventure-premium :is(.discovery-description,.discovery-examples,.discovery-read-summary,.discovery-reading-note,.adv-lead,.row-signal,.adv-facts dt) { color:var(--premium-muted); }
html[data-map-product="adventure"] body.adventure-premium :is(.editorial-sheet,.editorial-main,.catalog-standalone) :is(input,select,textarea,button):not(.studplan-add__button) {
  background-color:var(--premium-panel);
  color:var(--premium-ink);
  border-color:var(--premium-line);
}
html[data-map-product="adventure"] body.adventure-premium :is(.brand-stud,.catalog-standalone-category,.adv-kicker,.adv-plan-label,.adv-sources a,.row-open-label,.discovery-action,.discovery-read-action) { color:var(--premium-accent); }
html[data-map-product="adventure"] body.adventure-premium .brand-rest { color:#e8ddc8; }
html[data-map-product="adventure"] body.adventure-premium #main .brand-stud { color:var(--premium-accent)!important; }
html[data-map-product="adventure"] body.adventure-premium .adv-alternatives>div { border-left-color:var(--premium-accent); }
html[data-map-product="adventure"] body.adventure-premium .adv-card { background:var(--premium-surface); }
/* Both reading surfaces keep the full 18px prose and source hierarchy. */
html[data-map-product="adventure"] body.adventure-premium #main.editorial-main { width:100%; }
html[data-map-product="adventure"] body.adventure-premium #main.catalog-standalone { width:100%; max-width:900px!important; padding-top:24px!important; }
html[data-map-product="adventure"] body.adventure-premium main.catalog-standalone>.catalog-standalone-article { max-width:760px; margin-inline:auto; padding:0; border:0; background:transparent; }
html[data-map-product="adventure"] body.adventure-premium .adv-prose { color:var(--premium-ink); }
html[data-map-product="adventure"] body.adventure-premium :is(.adv-plan,.adv-takeaway,.adv-complete,.adv-facts) { border-color:var(--premium-line); }
html[data-map-product="adventure"] body.adventure-premium .editorial-sheet .adv-related { margin:32px 0 0; padding:24px 20px; border:1px solid var(--premium-line); }
html[data-map-product="adventure"] body.adventure-premium .editorial-sheet .catalog-standalone-related { padding:0; background:transparent; border:0; }
html[data-map-product="adventure"] body.adventure-premium .catalog-standalone .adv-sources :is(p,li) { font-size:14px; line-height:1.8; }
/* editorial-directory.mjs measures --site-header-h and --disclaimer-h.
   The older shared reader helper only uses the masthead; consume both existing
   measured values for this adapter without modifying that shared runtime. */
@media screen {
html[data-map-product="adventure"] body.adventure-premium dialog.editorial-sheet {
  top:var(--premium-chrome-h);
  max-height:calc(100dvh - var(--premium-chrome-h));
}
html[data-map-product="adventure"] body.adventure-premium dialog.editorial-sheet::backdrop { top:var(--premium-chrome-h); }
}
html[data-map-product="adventure"] body.adventure-premium #main [id] { scroll-margin-top:var(--catalog-anchor-offset,calc(var(--site-header-h,75px) + var(--disclaimer-h,52px) + 16px)); }
html[data-map-product="adventure"] body.adventure-premium .editorial-sheet [id] { scroll-margin-top:16px; }
@media print {
  html:has(body.adventure-premium),body.adventure-premium {
    --premium-paper:white;--premium-surface:white;--premium-panel:white;
    --premium-ink:#111;--premium-muted:#333;--premium-accent:#35552a;--premium-line:#777;
    background:white!important;color:#111!important;color-scheme:light;
  }
  body.adventure-premium #disclaimer-top { position:static; }
  html[data-map-product="adventure"] body.adventure-premium #main.catalog-standalone { max-width:none!important;width:100%!important;padding:0!important; }
  html[data-map-product="adventure"] body.adventure-premium .catalog-standalone-article { max-width:none; }
}
