/* Shared information-page color contract. Concatenate into each immutable
   product graph; no imports, external assets or homepage selector. Product
   adapters retain their established bright product accents. */
body.premium-production,
body.research-premium-page,
html[data-map-product="research"] body.topic-page{
  --premium-color-scheme:var(--stud-theme-color-scheme,dark);
  --premium-paper:var(--stud-theme-page,var(--stud-profile-premium-page,#0b1018));
  --premium-surface:var(--stud-theme-surface,var(--stud-profile-premium-surface,#121b28));
  --premium-panel:var(--stud-theme-raised,var(--stud-profile-premium-raised,#192436));
  --premium-ink:var(--stud-theme-ink,var(--stud-profile-premium-ink,#f1f0eb));
  --premium-muted:var(--stud-theme-muted,var(--stud-profile-premium-muted,#b1bdcf));
  --premium-line:var(--stud-theme-line,var(--stud-profile-premium-line,#34445a));
  --premium-control-line:var(--stud-theme-control-boundary,var(--stud-profile-premium-control-boundary,#71809a));
  --premium-accent:#8494ff;
  --premium-lilac:#25243d;
  --premium-tint:var(--premium-panel);
  --premium-selected:color-mix(in srgb,var(--premium-accent) 16%,var(--premium-panel));
  --premium-feature:var(--stud-theme-feature-surface,var(--stud-theme-raised,var(--stud-profile-premium-feature-surface,#202d43)));
  --premium-feature-ink:var(--stud-theme-feature-ink,var(--stud-theme-ink,var(--stud-profile-premium-feature-ink,#f1f0eb)));
  --premium-feature-muted:var(--stud-theme-feature-muted,var(--stud-theme-muted,var(--stud-profile-premium-feature-muted,#c2cddd)));
  --premium-tile-lilac:#25243d;
  --premium-tile-cyan:#152e38;
  --premium-tile-peach:#352a27;
  --premium-tile-sage:#21312e;
}

/* Form boundaries need stronger contrast than structural dividers. This
   priority layer also covers legacy important paint in fetched readers. */
@layer premium-form-boundaries {
  body.premium-production :is(input,select,textarea) {
    border-color:var(--premium-control-line)!important;
  }
}

/* The same content must reflow when the reader enlarges text. Keep intrinsic
   word/option widths from expanding the page; no clipping or hidden copy. */
@media screen {
 body.premium-production #main .topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.premium-production #main :is(.topic-card,.topic-card>*,.filters,.filters label) { min-width:0; overflow-wrap:anywhere; }
 body.premium-production #main .filters select { min-width:0; max-width:100%; }
 body.premium-production #main .intro h1 { overflow-wrap:anywhere; }
 body.premium-editorial #main h1.brand { max-width:100%; min-width:0; flex-wrap:wrap; overflow-wrap:anywhere; }
 body.premium-editorial #main h1.brand>* { min-width:0; max-width:100%; overflow-wrap:anywhere; }
 body.research-premium-page main.research-premium .research-local-header { flex-wrap:wrap; }
 body.research-premium-page main.research-premium .wordmark { min-width:0; max-width:100%; white-space:normal!important; overflow-wrap:anywhere!important; }
 body.research-premium-page main.research-premium .filters :is(label,select) { min-width:0; max-width:100%; }
 body.research-premium-page main.research-premium .filters select { width:100%; }
 body.research-premium-page main.research-premium .compound h4 { overflow-wrap:anywhere; }
}
@media screen and (max-width:760px) {
 body.premium-production #main .topic-grid { grid-template-columns:minmax(0,1fr); }
}

/* Information-product navigation surfaces; canonical shell geometry and
   behavior remain authoritative. Flat selectors support older Safari. */
:is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) {
  --premium-nav-surface: var(--stud-theme-nav-surface,var(--stud-theme-page,var(--stud-profile-premium-page,#0b1018)));
  --premium-nav-container: var(--stud-theme-nav-container,var(--stud-theme-surface,var(--stud-profile-premium-surface,#121b28)));
  --premium-nav-ink: var(--stud-theme-nav-ink,var(--stud-theme-ink,var(--stud-profile-premium-ink,#f1f0eb)));
  --premium-nav-muted: var(--stud-theme-nav-muted,var(--stud-theme-muted,var(--stud-profile-premium-muted,#b1bdcf)));
  --premium-nav-line: var(--stud-theme-nav-line,var(--stud-theme-line,var(--stud-profile-premium-line,#34445a)));
  --premium-nav-boundary: var(--stud-theme-nav-boundary,var(--stud-theme-control-boundary,var(--stud-profile-premium-nav-boundary,#63758d)));
  --premium-nav-accent: #8494ff;
  --premium-nav-brand: #c8f53f;
  --premium-nav-selected: color-mix(in srgb,var(--premium-nav-accent) 16%,var(--premium-nav-container));
  --premium-nav-hover: color-mix(in srgb,var(--premium-nav-accent) 9%,var(--premium-nav-container));
}

:is(body.research-premium-page, html[data-map-product="research"] body.topic-page) {
  --premium-nav-accent: #45dbf7;
}

body.premium-production.fit-premium {
  --premium-nav-accent: #ff735f;
}

body.premium-production.money-premium {
  --premium-nav-accent: #2fbe68;
}

body.premium-production.learn-premium {
  --premium-nav-accent: #f4bf46;
}

body.premium-production.skill-premium {
  --premium-nav-accent: #8dbaff;
}

body.premium-production.adventure-premium {
  --premium-nav-accent: #b4d8a4;
}

body.premium-production.motivation-premium {
  --premium-nav-accent: #ffc18b;
}

@layer premium-navigation {
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header, :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header:before, :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-wrap {
    background: var(--premium-nav-surface) !important;
    color: var(--premium-nav-ink) !important;
    border-color: var(--premium-nav-line) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header {
    box-shadow: 0 1px 0 var(--premium-nav-line) !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header:after {
    background: var(--premium-nav-line) !important;
    box-shadow: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .brandmark, :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .brand-copy strong, :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .header-origin, :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .header-origin span {
    color: var(--premium-nav-ink) !important;
    text-shadow: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .brand-name-stud {
    color: var(--premium-nav-brand) !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
    background: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .brand-tagline {
    color: var(--premium-nav-muted) !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .brand-symbol {
    border-color: var(--premium-nav-line) !important;
    box-shadow: 0 1px 4px #252b3714 !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav {
    background: var(--premium-nav-container) !important;
    border-color: var(--premium-nav-line) !important;
    box-shadow: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav :is(.shell-nav-link, .shell-nav-label) {
    color: var(--premium-nav-ink) !important;
    text-shadow: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link {
    box-shadow: none !important;
    background: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link:hover {
    background: var(--premium-nav-hover) !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link:is(.active, [aria-current]) {
    background: var(--premium-nav-selected) !important;
    box-shadow: inset 0 0 0 1px var(--premium-nav-accent) !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link.active:after {
    background: var(--premium-nav-accent) !important;
    box-shadow: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header :is(.shell-menu, .shell-menu-static) {
    color: var(--premium-nav-ink) !important;
    background: var(--premium-nav-container) !important;
    border-color: var(--premium-nav-boundary) !important;
    box-shadow: inset 0 1px #ffffff0a !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header :is(.shell-menu, .shell-menu-static):is(:hover, [aria-expanded="true"]) {
    color: var(--premium-nav-ink) !important;
    background: var(--premium-nav-selected) !important;
    border-color: var(--premium-nav-accent) !important;
    box-shadow: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header :is(.shell-menu, .shell-menu-static) :is(.shell-menu-glyph, [data-shell-menu-label]) {
    color: inherit !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-menu-glyph {
    background: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-menu-glyph i {
    background: currentColor !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) :is(.shell-mobile-nav, .shell-mobile-nav-static) {
    color: var(--premium-nav-ink) !important;
    background: var(--premium-nav-surface) !important;
    border-color: var(--premium-nav-line) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) :is(.shell-mobile-nav-body, .shell-mobile-secondary) {
    color: var(--premium-nav-ink) !important;
    background: var(--premium-nav-surface) !important;
    border-color: var(--premium-nav-line) !important;
    box-shadow: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-nav-intro p {
    color: var(--stud-theme-nav-ink,var(--stud-theme-ink,var(--premium-nav-brand))) !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) :is(.shell-mobile-nav-intro > small, .shell-mobile-product-copy em) {
    color: var(--premium-nav-muted) !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product {
    --premium-nav-product-ink: var(--premium-nav-brand);
    color: var(--premium-nav-ink) !important;
    border-color: var(--premium-nav-line) !important;
    box-shadow: none !important;
    background: var(--premium-nav-container) !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product:is(:hover, .active, [aria-current]) {
    background: var(--premium-nav-selected) !important;
    border-color: var(--premium-nav-accent) !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product .v4-door__name {
    color: var(--premium-nav-ink) !important;
    text-shadow: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--research {
    --premium-nav-product-ink: #45dbf7;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--self {
    --premium-nav-product-ink: #8494ff;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--fit {
    --premium-nav-product-ink: #ff735f;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--money {
    --premium-nav-product-ink: #2fbe68;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--learn {
    --premium-nav-product-ink: #f4bf46;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--study {
    --premium-nav-product-ink: #b9a6ff;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--plan {
    --premium-nav-product-ink: #83e3d8;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--motivation {
    --premium-nav-product-ink: #ffc18b;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--adventure {
    --premium-nav-product-ink: #b4d8a4;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--skill {
    --premium-nav-product-ink: #8dbaff;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--cards {
    --premium-nav-product-ink: #ffb99d;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--personalities {
    --premium-nav-product-ink: #f1b6cb;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--biohack {
    --premium-nav-product-ink: #d2e7a8;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product--token {
    --premium-nav-product-ink: #c99aff;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product .brand-stud {
    color: var(--premium-nav-product-ink) !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
    background: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-secondary a {
    color: var(--premium-nav-ink) !important;
    background: var(--premium-nav-container) !important;
    border-color: var(--premium-nav-line) !important;
    box-shadow: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-secondary a:hover {
    background: var(--premium-nav-selected) !important;
  }

  /* theme-state-colors:start
     Optional state pairs stay in the winning navigation layer. Defaults repeat
     its existing background/foreground roles; product-prefix colors stay intact. */
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link:hover {
    background: var(--stud-theme-nav-hover-surface,var(--premium-nav-hover)) !important;
  }
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link:is(.active, [aria-current]),
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header :is(.shell-menu, .shell-menu-static)[aria-expanded="true"],
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product:is(.active, [aria-current]) {
    background: var(--stud-theme-nav-selected-surface,var(--premium-nav-selected)) !important;
  }
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header :is(.shell-menu, .shell-menu-static):hover:not([aria-expanded="true"]),
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product:hover:not(.active):not([aria-current]),
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-secondary a:hover {
    background: var(--stud-theme-nav-hover-surface,var(--premium-nav-selected)) !important;
  }
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link:hover,
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link:hover .shell-nav-label,
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header :is(.shell-menu, .shell-menu-static):hover:not([aria-expanded="true"]),
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product:hover:not(.active):not([aria-current]),
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product:hover:not(.active):not([aria-current]) .v4-door__name,
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-secondary a:hover {
    color: var(--stud-theme-nav-hover-ink,var(--premium-nav-ink)) !important;
  }
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link:is(.active, [aria-current]),
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header .shell-nav .shell-nav-link:is(.active, [aria-current]) .shell-nav-label,
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header :is(.shell-menu, .shell-menu-static)[aria-expanded="true"],
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product:is(.active, [aria-current]),
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product:is(.active, [aria-current]) .v4-door__name {
    color: var(--stud-theme-nav-selected-ink,var(--premium-nav-ink)) !important;
  }
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product:hover:not(.active):not([aria-current]) .shell-mobile-product-copy em {
    color: var(--stud-theme-nav-hover-ink,var(--premium-nav-muted)) !important;
  }
  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) .shell-mobile-product:is(.active, [aria-current]) .shell-mobile-product-copy em {
    color: var(--stud-theme-nav-selected-ink,var(--premium-nav-muted)) !important;
  }
  /* theme-state-colors:end */

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #disclaimer-top {
    color: var(--premium-nav-ink) !important;
    background: var(--premium-nav-container) !important;
    border-color: var(--premium-nav-line) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #disclaimer-top :is(strong, a) {
    color: inherit !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #disclaimer-top .disclaimer-top__mark {
    color: var(--premium-nav-muted) !important;
    border-color: var(--premium-nav-muted) !important;
  }

  :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) #site-header :is(a, button):focus-visible, :is(body.premium-production, body.research-premium-page, html[data-map-product="research"] body.topic-page) :is(.shell-mobile-nav, .shell-mobile-nav-static) :is(a, button):focus-visible {
    outline: 3px solid var(--stud-theme-focus,var(--premium-nav-accent)) !important;
    outline-offset: 3px !important;
  }
}

/* Screen appearance must not turn printed reading into dark ink-heavy pages.
   Semantic roles remain intact, so specialized product print layouts still win. */
@media print {
  :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page) {
    --premium-color-scheme:light!important;
    --premium-paper:#fff!important;
    --premium-surface:#fff!important;
    --premium-panel:#f1f1f1!important;
    --premium-ink:#111!important;
    --premium-muted:#333!important;
    --premium-line:#777!important;
    --premium-control-line:#777!important;
    --premium-accent:#294d70!important;
    --premium-lilac:#f1f1f1!important;
    --premium-selected:#eee!important;
    --premium-feature:#eee!important;
    --premium-feature-ink:#111!important;
    --premium-feature-muted:#333!important;
    --premium-tile-lilac:#f1f1f1!important;
    --premium-tile-cyan:#f1f1f1!important;
    --premium-tile-peach:#f1f1f1!important;
    --premium-tile-sage:#f1f1f1!important;
    background:#fff!important;color:#111!important;color-scheme:light;
  }
}

/* Shared information-page palette. Product adapters retain their content and
   geometry; canonical dark portfolio chrome connects these pages to Home.
   Frozen dated previews retain their self-contained styles. */
body.premium-production{color-scheme:var(--premium-color-scheme)}
html:has(body.premium-production){color-scheme:var(--stud-theme-color-scheme,dark)}
@media print{html:has(body.premium-production){color-scheme:light}}
body.self-premium{--premium-accent:#8494ff}
body.fit-premium{--premium-accent:#ff735f}
body.money-premium{--premium-accent:#2fbe68}
.premium-production .studplan-add{max-width:100%}
.premium-production .studplan-add__saved{color:var(--premium-ink);background:var(--premium-surface)}
.premium-production .studplan-add__open{color:inherit!important;min-height:44px;display:inline-flex;align-items:center;text-decoration:underline}
.premium-production .studplan-add__open:focus-visible{outline:3px solid var(--stud-theme-focus,var(--premium-accent))!important;outline-offset:3px}
.premium-production .topic-directory{columns:2;column-gap:2rem;padding-left:1.3rem}
.premium-production .topic-directory li{break-inside:avoid;margin:.4rem 0}
.premium-production .topic-directory a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:640px){.premium-production .topic-directory{columns:1}}

/* A single scoped paint layer preserves the approved geometry and interactions. */
body.premium-production #main[data-topic]:not([data-topic=""]){background:var(--premium-surface)!important}
body.premium-production :is(.preview-reader,.reader-toolbar){background:var(--premium-surface)}
body.premium-production .preview-reader::backdrop{top:var(--premium-chrome-h,170px);background:var(--stud-theme-overlay,#020407b8)}
body.premium-production :is(main,.preview-reader) :is(button,select,input,textarea){background-color:var(--premium-panel);color:var(--premium-ink);border-color:var(--premium-line)}
body.premium-production :is(input,textarea)::placeholder{color:var(--premium-muted);opacity:1}
body.premium-production .search button{background:var(--premium-feature);color:var(--premium-feature-ink)}
body.premium-production .category{--premium-tile:var(--premium-tile-lilac);background:var(--premium-tile);border-color:color-mix(in srgb,var(--premium-accent) 22%,var(--premium-line));border-top-color:var(--premium-accent)}
body.premium-production .category:nth-child(3n+2){--premium-tile:var(--premium-tile-cyan)}
body.premium-production .category:nth-child(3n){--premium-tile:var(--premium-tile-peach)}
body.premium-production .category>.category-media{display:block;align-self:stretch;width:100%;max-width:none;aspect-ratio:2;overflow:hidden;border-radius:10px;margin:0 0 18px}
body.premium-production .category-media img{display:block;width:100%;height:100%;object-fit:cover}
body.premium-production .category>span:not(.category-number):not(.category-arrow){color:var(--premium-muted)}
body.premium-production .category-arrow{color:var(--premium-accent)}
body.premium-production .category[aria-pressed=true]{background:var(--premium-selected);border-color:var(--premium-accent)}
body.premium-production .topic-card{background:var(--premium-surface);border-color:var(--premium-line);border-top-color:color-mix(in srgb,var(--premium-accent) 65%,var(--premium-surface))}
body.premium-production .topic-card:hover{border-color:var(--premium-accent);background:var(--premium-panel)}
body.premium-production .category:hover{border-color:var(--premium-accent);background:color-mix(in srgb,var(--premium-tile) 78%,var(--premium-panel))}
body.premium-production .category[aria-pressed=true]:hover{background:var(--premium-selected)}
body.premium-production :is(.overview,.topic-actions,.compatibility-note){background:var(--premium-panel);border-color:var(--premium-line)}
/* Other destinations are a distinct navigation region after the full article,
   sources and saved actions. Dark emphasis connects to the portfolio shell. */
body.premium-production .related{background:var(--premium-feature);border-color:var(--premium-feature);color:var(--premium-feature-ink)}
body.premium-production :is(#main,#premium-reader) .related h2{color:var(--premium-feature-ink)!important}
body.premium-production :is(#main,#premium-reader) .related>.back-link{color:var(--premium-feature-ink)!important}
body.premium-production :is(#main,#premium-reader) .related>.eyebrow{color:var(--premium-feature-muted)!important}
body.premium-production .related>div a{background:var(--premium-surface);border:1px solid var(--premium-line)}
body.premium-production :is(#main,#premium-reader) .related>div a{color:var(--premium-ink)!important}
body.premium-production .original details,body.premium-production #premium-reader .original details{background:var(--premium-panel)!important;color:var(--premium-ink)!important;border-color:var(--premium-line)}
body.premium-production #empty{background:var(--premium-surface);border-color:var(--premium-line)}
body.premium-production .alphabet button:disabled{background:var(--premium-paper);color:#8795aa;border-color:var(--premium-line)}
body.premium-production #reset{background:transparent}
body.premium-production .reader-toolbar :is(button,select){background:var(--premium-panel);border-color:var(--premium-line)}
body.premium-production :is(#main .filters select,#premium-reader .reader-toolbar select){background-image:linear-gradient(45deg,transparent 50%,var(--premium-muted) 50%),linear-gradient(135deg,var(--premium-muted) 50%,transparent 50%)}
body.premium-production :is(.topic-actions button,.studplan-add__button){background:var(--premium-panel);color:var(--premium-ink);border-color:var(--premium-line)}
body.premium-production .studplan-add__button{border-color:var(--premium-accent);background:var(--premium-selected)}
body.premium-production .studplan-add__saved{border:1px solid var(--premium-line)}
body.premium-production :is(#main,#premium-reader) :is(.sources a,.source-chips a,.original>a,.section-nav a,.back-link){color:var(--premium-accent)!important;text-decoration:underline}
body.premium-production :focus-visible{outline:3px solid var(--stud-theme-focus,var(--premium-accent))!important;outline-offset:4px}
body.premium-production>.skip-link{background:var(--premium-panel)!important;color:var(--premium-ink)!important}
body.premium-production #disclaimer-top{background:#171e27;color:#e5eaf0;border-bottom-color:#465261}
body.premium-production .disclaimer-top__mark{border-color:#aebbc9;color:#e5eaf0}
body.premium-production :is(.original,.sources) :is(th,td){border-color:var(--premium-line);color:var(--premium-ink)}
body.premium-production :is(.original,.sources) th{background:var(--premium-panel)}

/* Skill/Adventure opt-in presentation. Canonical shared chrome, discovery
   behavior, reader controls and product teaching/outing content remain intact.
   Screen-only layout leaves the existing standalone and fetched print contracts. */
body.premium-editorial {
  --premium-accent:var(--map-accent);
  --catalog-ink:var(--premium-ink);
  --catalog-muted:var(--premium-muted);
  --catalog-surface:var(--premium-surface);
  --catalog-reader-surface:var(--premium-surface);
  --catalog-line:var(--premium-line);
  --catalog-reading-gutter:clamp(18px,4vw,36px);
  --font-ui:var(--stud-theme-font-ui,var(--stud-profile-premium-font-ui,"Avenir Next",Avenir,"Segoe UI",system-ui,sans-serif));
  --font-display:var(--font-ui);
  --brand-suffix:var(--premium-ink);
}
/* Reading and shared navigation retain each product's bright identity. */
body.premium-editorial.skill-premium { --premium-accent:#8dbaff; }
body.premium-editorial.adventure-premium { --premium-accent:#b4d8a4; }

/* Scope inherited reader paint to the common dark reading surfaces. */
@layer premium-editorial-reader {
 body.premium-editorial :is(#main,#editorial-sheet) select{appearance:none!important;height:44px!important;min-height:44px!important;box-sizing:border-box!important;background-color:var(--premium-panel)!important;background-image:linear-gradient(45deg,transparent 50%,var(--premium-muted) 50%),linear-gradient(135deg,var(--premium-muted) 50%,transparent 50%)!important;background-position:calc(100% - 17px) center,calc(100% - 12px) center!important;background-size:5px 5px!important;background-repeat:no-repeat!important;padding-right:32px!important;color:var(--premium-ink)!important;color-scheme:var(--premium-color-scheme)}
 body.premium-editorial .skill-diagram figcaption{background:var(--premium-surface)!important;color:var(--premium-ink)!important}
 body.premium-editorial .skill-diagram figcaption :is(p,strong){color:var(--premium-ink)!important}
 body.premium-editorial :is(.catalog-standalone,.editorial-sheet) :is(.catalog-standalone-breadcrumb a,.catalog-standalone-return a,a[data-back-library],a[data-library-back],.skill-sources a,.adv-sources a,.adv-open,.catalog-standalone-content a){color:var(--premium-accent)!important}
 body.premium-editorial :is(.catalog-standalone,.editorial-sheet) :is(.reading-section-control>span,.skill-example>span,.skill-practice>li>span){color:var(--premium-muted)!important}
 body.premium-editorial :is(.catalog-standalone-content,.editorial-sheet) :is(h4,dt,.skill-checkpoint strong,.skill-step-number){color:var(--premium-ink)!important}
 body.premium-editorial :is(.skill-card,.adv-card) :is(p,span,strong){color:var(--premium-ink)!important}
 body.premium-editorial .catalog-standalone-related>section>h2,
 body.premium-editorial .catalog-standalone-related>h2,
 body.premium-editorial #skill-related-title{color:var(--premium-feature-ink)!important}
}

@media screen {
  html.map-redesign[data-map-product] body.premium-editorial {
    background:var(--premium-paper)!important; background-image:none!important; color:var(--premium-ink); font-family:var(--font-ui);
  }
  html.map-redesign[data-map-product] body.premium-editorial #main.editorial-main {
    width:min(1120px,calc(100% - 64px)); max-width:none; margin:0 auto; padding:40px 0 64px!important;
  }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-title-row {
    align-items:baseline; gap:12px 24px; margin:0 0 20px;
  }
  html.map-redesign[data-map-product] body.premium-editorial h1.brand {
    font:450 clamp(40px,5vw,60px)/1.1 var(--font-display); letter-spacing:-.055em;
  }
  html.map-redesign[data-map-product] body.premium-editorial #main .brand-stud { font-weight:850; color:var(--premium-accent); text-shadow:none; }
  html.map-redesign[data-map-product] body.premium-editorial .brand-rest { font-weight:450; color:var(--brand-suffix); }
  html.map-redesign[data-map-product] body.premium-editorial [data-editorial-count] {
    font-size:13px; line-height:1.5; padding:7px 12px; border:1px solid var(--premium-line);
    border-radius:999px; color:var(--premium-muted); background:var(--premium-surface);
  }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-intro { max-width:780px; margin:0 0 28px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-intro h2 {
    font:750 clamp(24px,2.6vw,32px)/1.22 var(--font-display); letter-spacing:-.03em; margin:0 0 13px;
  }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-intro>p { max-width:680px; font-size:18px; line-height:1.65; color:var(--premium-muted); }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-intro .discovery-meta { font-size:13px; margin-top:15px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search { max-width:850px; margin:0 0 32px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search .search-row { align-items:flex-end; gap:10px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search .editorial-sr {
    position:static; display:block; width:auto; height:auto; padding:0; margin:0 0 8px; overflow:visible;
    clip:auto; white-space:normal; font:650 13px/1.4 var(--font-ui); color:var(--premium-ink);
  }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search :is(input,.btn-ghost) {
    min-height:50px; height:auto; border:1px solid var(--premium-line); border-radius:12px;
    background:var(--premium-surface); color:var(--premium-ink); box-shadow:none; font-family:var(--font-ui);
  }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search input { padding:13px 16px; font-size:16px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search .btn-ghost { padding:12px 18px; font-size:14px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-filters { padding:18px; gap:14px; border-radius:14px; background:var(--premium-surface); }
  html.map-redesign[data-map-product] body.premium-editorial :is(.editorial-filters,.editorial-list-tools) label { font-size:13px; line-height:1.4; color:var(--premium-muted); }
  html.map-redesign[data-map-product] body.premium-editorial :is(.editorial-filters,.editorial-list-tools) select {
    min-height:44px; border-radius:9px; border-color:var(--premium-line); background-color:var(--premium-panel); color:var(--premium-ink); font-size:15px;
  }

  /* The attached tabs still surround the complete category/result region. */
  html.map-redesign[data-map-product] body.premium-editorial .discovery-start { margin:0 0 28px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-tabs { margin:0; border-bottom:1px solid var(--premium-line); gap:6px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-tabs a {
    flex-basis:230px; min-height:60px; margin-bottom:-1px; padding:12px 18px;
    border:1px solid var(--premium-line); border-radius:12px 12px 0 0; background:var(--premium-paper); color:var(--premium-muted); font-size:15px;
  }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-tabs a[aria-current] {
    background:var(--premium-surface); border-top:3px solid var(--premium-accent); border-bottom-color:var(--premium-surface); color:var(--premium-ink);
  }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-panel {
    border:1px solid var(--premium-line); border-top:0; border-radius:0 0 18px 18px; background:var(--premium-surface);
  }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-categories { padding:26px 22px 24px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-selection { padding:26px 22px 0; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-results-body { padding:0 22px 24px; }
  html.map-redesign[data-map-product] body.premium-editorial :is(.discovery-categories>h2,.discovery-list-heading h2,.discovery-selection>h2) {
    font-size:25px; line-height:1.25; letter-spacing:-.03em; color:var(--premium-ink);
  }
  html.map-redesign[data-map-product] body.premium-editorial :is(.discovery-categories>p,.discovery-selection>p,.discovery-list-heading p) { color:var(--premium-muted); font-size:14px; line-height:1.6; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-card {
    border:1px solid var(--premium-line); border-top:3px solid var(--premium-accent); border-radius:14px;
    background:var(--premium-category-paint,var(--premium-tile-lilac)); box-shadow:none; color:var(--premium-ink); min-width:0;
  }
  /* Color varies the existing photo entrances without assigning new meanings. */
  html.map-redesign[data-map-product] body.premium-editorial .discovery-card:nth-child(3n+2) { --premium-category-paint:var(--premium-tile-cyan); }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-card:nth-child(3n) { --premium-category-paint:var(--premium-tile-peach); }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-image { height:148px; background:var(--premium-paper); }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-image::after {
    content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 65%,#23284726); pointer-events:none;
  }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-body { padding:20px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-body>strong { font-size:21px; line-height:1.22; letter-spacing:-.025em; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-description { font-size:14px; line-height:1.65; color:var(--premium-muted); margin-top:12px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-examples { font-size:12px; color:var(--premium-muted); margin:16px 0 12px; }
  html.map-redesign[data-map-product] body.premium-editorial :is(.discovery-action,.discovery-all) { color:var(--premium-accent); font-size:13px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-card:hover { border-color:var(--premium-accent); background:var(--premium-category-paint,var(--premium-tile-lilac)); transform:none; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-all { margin-top:22px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-list-tools { padding:20px 0; gap:12px 20px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-list-tools p { color:var(--premium-muted); font-size:12px; line-height:1.6; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-az { background:var(--premium-panel); box-shadow:none; border-radius:10px; border-color:var(--premium-line); }
  html.map-redesign[data-map-product] body.premium-editorial .learn-letter-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  html.map-redesign[data-map-product] body.premium-editorial .map-card {
    background:var(--premium-surface); border:1px solid var(--premium-line); border-top:2px solid color-mix(in srgb,var(--premium-accent) 60%,var(--premium-line));
    border-radius:14px; box-shadow:none; min-width:0; align-self:stretch; align-content:start;
  }
  html.map-redesign[data-map-product] body.premium-editorial .map-card::before { display:none; }
  html.map-redesign[data-map-product] body.premium-editorial .map-card:hover { border-color:var(--premium-accent); transform:none; }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .ledger-row { padding:22px 22px 0; }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .row-title { display:flex; flex-direction:column-reverse; gap:10px; }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .type-pill {
    align-self:flex-start; margin:0; padding:0; background:transparent; border:0; color:var(--premium-accent); font-size:12px; line-height:1.5;
  }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .row-name { display:block; font-size:23px; line-height:1.25; letter-spacing:-.025em; color:var(--premium-ink); }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .row-front { margin-top:14px; }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .row-blurb { font-size:17px; line-height:1.7; color:var(--premium-ink); }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .row-footer { display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin-top:16px; padding:0 0 17px; border:0; }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .row-signal { font-size:12px; line-height:1.6; color:var(--premium-muted); }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .row-open-label { font-size:13px; color:var(--premium-accent); }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-card-detail { margin:0 22px 10px; border-color:var(--premium-line); }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-card-detail summary { font-size:14px; color:var(--premium-muted); }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-card-detail p { color:var(--premium-ink); font-size:17px; line-height:1.7; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-note { max-width:780px; color:var(--premium-muted); font-size:14px; line-height:1.7; margin-top:28px; }

  /* A centered full-depth reader shares the directory's surfaces and measure. */
  html.map-redesign[data-map-product] body.premium-editorial main#main.catalog-standalone {
    width:min(960px,calc(100% - 48px)); max-width:960px!important; padding:24px 0 56px!important; color:var(--premium-ink);
  }
  html.map-redesign[data-map-product] body.premium-editorial main.catalog-standalone>article.catalog-standalone-article {
    padding:36px; border-radius:20px; background:var(--premium-surface); border-color:var(--premium-line); color:var(--premium-ink);
  }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-head h1 {
    font:800 clamp(32px,3.5vw,46px)/1.15 var(--font-display)!important; letter-spacing:-.035em; color:var(--premium-ink);
  }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-category { color:var(--premium-accent); font-size:13px; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone :is(.catalog-standalone-intro,.catalog-standalone-content) {
    max-width:760px; margin-inline:auto; font-size:17px; line-height:1.8;
  }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-intro>p { font-size:20px; line-height:1.65; color:var(--premium-ink); }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-content :is(p,li,dd) { font-size:17px; line-height:1.8; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-content :is(h2,.topic-section-heading) { font-size:28px; line-height:1.25; letter-spacing:-.025em; color:var(--premium-ink); }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-content h3 { font-size:21px; line-height:1.4; letter-spacing:-.015em; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-content>section,
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-content>.adv-prose>section { padding-top:24px; margin-top:30px; border-top:1px solid var(--premium-line); }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-navigation { background:var(--premium-surface); border-color:var(--premium-line); }
  html.map-redesign[data-map-product] body.premium-editorial :is(.catalog-standalone-share,.reading-section-control select) { background-color:var(--premium-panel); border-color:var(--premium-line); color:var(--premium-ink); }
  html.map-redesign[data-map-product] body.premium-editorial :is(.catalog-standalone-breadcrumb a,.catalog-standalone-return a,.catalog-standalone-navigation a) { color:var(--premium-accent); }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-related {
    padding:30px; margin-top:32px; background:var(--premium-feature); border:1px solid var(--premium-feature); border-top:3px solid var(--premium-accent); border-radius:18px;
  }
  html.map-redesign[data-map-product] body.premium-editorial :is(.skill-related,.adv-related) h2 { font-size:27px; line-height:1.25; }
  html.map-redesign[data-map-product] body.premium-editorial :is(.skill-card,.adv-card) { background:var(--premium-surface); border-color:var(--premium-line); color:var(--premium-ink); }
  html.map-redesign[data-map-product] body.premium-editorial dialog.editorial-sheet {
    inset:var(--premium-editorial-chrome-h,calc(var(--site-header-h,75px) + var(--disclaimer-h,52px))) 0 0;
    width:min(1060px,100%); max-width:100%; margin:0 auto;
    max-height:calc(100dvh - var(--premium-editorial-chrome-h,calc(var(--site-header-h,75px) + var(--disclaimer-h,52px))));
    border:1px solid var(--premium-line); border-radius:18px 18px 0 0; background:var(--premium-surface); color:var(--premium-ink);
  }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet::backdrop {
    top:var(--premium-editorial-chrome-h,calc(var(--site-header-h,75px) + var(--disclaimer-h,52px))); background:#020407bd;
  }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet .sheet-bar { padding:16px 28px; background:var(--premium-surface); border-color:var(--premium-line); }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet .sheet-title { font-size:19px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet :is(.sheet-share,.sheet-close,.reader-navigation-field select) { background-color:var(--premium-panel); border-color:var(--premium-line); color:var(--premium-ink); }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet .reader-navigation-field { font-size:12px; color:var(--premium-muted); }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet [data-editorial-reader] { width:100%; max-width:860px; margin:0 auto; padding:28px var(--catalog-reading-gutter); }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet .catalog-standalone-article { padding:0; border:0; background:transparent; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet :is(.skill-related,.adv-related) {
    margin:30px 0 0; padding:26px 22px; border:1px solid var(--premium-feature); border-top:3px solid var(--premium-accent); border-radius:16px; background:var(--premium-feature);
  }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-related :is(.skill-related,.adv-related) { background:transparent; }
  html.map-redesign[data-map-product] body.premium-editorial :is(.skill-related,.adv-related)>h2 { color:var(--premium-feature-ink); }
  html.map-redesign[data-map-product] body.premium-editorial :is(.skill-related,.adv-related)>:is(.skill-eyebrow,.adv-kicker,.adv-back) { color:var(--premium-feature-muted); }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-feedback { background:var(--premium-panel); color:var(--premium-ink); border-color:var(--premium-line); }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-feedback textarea { background:var(--premium-surface); color:var(--premium-ink); border-color:var(--premium-line); }
  html.map-redesign[data-map-product] body.premium-editorial :is(.editorial-main,.catalog-standalone,.editorial-sheet) :focus-visible { outline:3px solid var(--stud-theme-focus,var(--premium-accent))!important; outline-offset:4px; }
}

@media screen and (max-width:760px) {
  html.map-redesign[data-map-product] body.premium-editorial #main.editorial-main { width:calc(100% - 30px); padding:26px 0 44px!important; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-title-row { gap:10px; margin-bottom:20px; }
  html.map-redesign[data-map-product] body.premium-editorial h1.brand { font-size:44px; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-title-row [data-editorial-count] { font-size:12px; padding:5px 10px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-intro { margin-bottom:24px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-intro h2 { font-size:25px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-intro>p { font-size:16px; line-height:1.7; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search { margin-bottom:24px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-image { height:110px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-body { padding:15px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-body>strong { font-size:18px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-description { font-size:13px; line-height:1.65; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-action { font-size:12px; }
  html.map-redesign[data-map-product] body.premium-editorial .learn-letter-list { grid-template-columns:minmax(0,1fr); gap:12px; }
  html.map-redesign[data-map-product] body.premium-editorial main#main.catalog-standalone { width:calc(100% - 24px); padding-top:10px!important; }
  html.map-redesign[data-map-product] body.premium-editorial main.catalog-standalone>article.catalog-standalone-article { padding:24px 18px; border-radius:16px; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-head h1 { font-size:34px!important; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-intro>p { font-size:18px; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-content :is(p,li,dd) { font-size:17px; line-height:1.8; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-content h2 { font-size:26px; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-related { padding:24px 18px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet .sheet-bar { padding:12px 16px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet [data-editorial-reader] { padding:24px 18px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet .catalog-standalone-article { padding:0; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-sheet :is(.skill-related,.adv-related) { padding:22px 16px; }
}
@media screen and (max-width:600px) {
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search .search-row { flex-wrap:wrap; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search .search-wrap { flex-basis:100%; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-search .btn-ghost { min-height:44px; padding:10px 16px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-tabs { width:calc(100% + 16px); margin-inline:-8px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-tabs a { flex:1; padding:12px 10px; font-size:14px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-panel { margin-inline:-8px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-categories { padding:22px 8px 18px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-selection { padding:22px 14px 0; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-results-body { padding:0 8px 18px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-categories>p { margin-bottom:18px; }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .ledger-row { padding:20px 18px 0; }
  html.map-redesign[data-map-product] body.premium-editorial .map-card .row-name { font-size:22px; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-card-detail { margin-inline:18px; }
  html.map-redesign[data-map-product] body.premium-editorial .editorial-list-tools { padding:16px 4px; }
}
@media screen and (max-width:359px) {
  html.map-redesign[data-map-product] body.premium-editorial h1.brand { font-size:39px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-grid { grid-template-columns:minmax(0,1fr); }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-image { height:130px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-body { padding:18px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-body>strong { font-size:21px; }
  html.map-redesign[data-map-product] body.premium-editorial .discovery-description { font-size:14px; }
  html.map-redesign[data-map-product] body.premium-editorial .catalog-standalone-head h1 { font-size:30px!important; }
}
@media screen and (prefers-reduced-motion:reduce) {
  body.premium-editorial :is(.discovery-card,.map-card) { transition:none; }
}

@media print {
  body.premium-editorial .studplan-add { display:none!important; }
  body.premium-editorial.editorial-printing { overflow:visible!important; }
  html.map-redesign[data-map-product] body.premium-editorial.editorial-printing #editorial-sheet {
    inset:0 auto auto 0!important; margin:0!important; min-height:0; height:auto!important;
    max-height:none!important; overflow:visible!important;
  }
  body.premium-editorial.editorial-printing #editorial-sheet::backdrop { display:none; }
  body.premium-editorial.editorial-printing #editorial-sheet .sheet-scroll {
    height:auto!important; max-height:none!important; overflow:visible!important;
  }
}

/* One semantic control contract; secondary is the default action role. Product adapters supply identity accents;
   photo tiles, export artwork, print and storage models remain separate. */
:where(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page){
 --stud-ui-surface:var(--stud-theme-raised,var(--premium-panel,var(--stud-profile-controls-surface,#192436)));--stud-ui-ink:var(--stud-theme-ink,var(--stud-profile-controls-ink,#f1f0eb));
 --stud-ui-muted:var(--stud-theme-muted,var(--stud-profile-controls-muted,#b1bdcf));--stud-ui-boundary:var(--stud-theme-control-boundary,var(--stud-profile-controls-boundary,#71809a));
 --stud-ui-accent:var(--premium-accent,#8494ff);--stud-ui-selected:var(--stud-theme-control-selected-surface,color-mix(in srgb,var(--stud-ui-accent) 17%,var(--stud-ui-surface)));
 --stud-ui-primary:var(--stud-theme-action-surface,var(--stud-profile-controls-action-surface,#253b55));--stud-ui-primary-ink:var(--stud-theme-action-ink,var(--stud-theme-ink,var(--stud-profile-controls-action-ink,#f1f0eb)));
 --stud-ui-danger:#ffc1b8;--stud-ui-danger-surface:#38232a;
 --stud-ui-success:#b5e8c9;--stud-ui-success-surface:#15352b;
 --stud-ui-radius:12px;--stud-ui-target:44px;--stud-ui-gap:8px;
}
body.plan-page{--stud-ui-accent:var(--plan-mint,#83e3d8);--stud-ui-surface:var(--stud-theme-raised,var(--stud-profile-controls-plan-surface,#11161d))}
body.cards-page{--stud-ui-accent:var(--cards-accent,#ffb99d);--stud-ui-surface:var(--stud-theme-raised,var(--stud-profile-controls-cards-surface,#192436))}
body.research-premium-page,html[data-map-product="research"] body.topic-page{--stud-ui-accent:#45dbf7}
@media screen{
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) :is([data-stud-control],.reader-toolbar button,.sheet-bar-actions button,.directory-filter-summary button,.directory-filter-recovery button,.catalog-standalone-share,.production-link-actions button,.plan-button,.plan-text-button,.plan-icon-button,.cards-button,.cards-text-link){
  --stud-control-surface:var(--stud-ui-surface);--stud-control-ink:var(--stud-ui-ink);--stud-control-boundary:var(--stud-ui-boundary);box-sizing:border-box;min-height:var(--stud-ui-target);max-width:100%;border-radius:var(--stud-ui-radius);border:1px solid var(--stud-ui-boundary)!important;padding:10px 14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;background:var(--stud-ui-surface)!important;color:var(--stud-ui-ink)!important;cursor:pointer;
 }
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) :is([data-stud-control="primary"],.search button,.plan-button--primary,.studio-save,[data-share],[data-download]){--stud-control-surface:var(--stud-ui-primary);--stud-control-ink:var(--stud-ui-primary-ink);--stud-control-boundary:var(--stud-ui-accent);background:var(--stud-ui-primary)!important;color:var(--stud-ui-primary-ink)!important;border-color:var(--stud-ui-accent)!important}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) :is(button[data-stud-control="danger"],button.plan-button--danger,button.plan-text-button--danger,button.plan-quick-remove){--stud-control-surface:var(--stud-ui-danger-surface);--stud-control-ink:var(--stud-ui-danger);--stud-control-boundary:var(--stud-ui-danger);--stud-control-hover-surface:var(--stud-ui-danger-surface);--stud-control-hover-ink:var(--stud-ui-danger);background:var(--stud-ui-danger-surface)!important;color:var(--stud-ui-danger)!important;border-color:var(--stud-ui-danger)!important}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) :is([data-stud-control],.reader-toolbar button,.sheet-bar-actions button,.directory-filter-summary button,.directory-filter-recovery button,.catalog-standalone-share,.production-link-actions button,.plan-button,.plan-text-button,.cards-button,.cards-text-link,.search button,.studio-save,[data-share],[data-download]):hover:not(:disabled){border-color:var(--stud-theme-control-hover-boundary,var(--stud-ui-accent))!important}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) :is([data-stud-control],.reader-toolbar button,.sheet-bar-actions button,.directory-filter-summary button,.directory-filter-recovery button,.catalog-standalone-share,.production-link-actions button,.plan-button,.plan-text-button,.cards-button,.cards-text-link,.search button,.studio-save,[data-share],[data-download]):hover:not(:disabled):not([aria-pressed="true"]):not(.directory-filter-summary button){background:var(--stud-control-hover-surface,var(--stud-theme-control-hover-surface,var(--stud-control-surface)))!important;color:var(--stud-control-hover-ink,var(--stud-theme-control-hover-ink,var(--stud-control-ink)))!important;}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){--stud-control-surface:var(--stud-ui-surface);--stud-control-ink:var(--stud-ui-ink);--stud-control-boundary:var(--stud-ui-boundary);border-color:var(--stud-ui-boundary)!important;border-radius:var(--stud-ui-radius);color:var(--stud-ui-ink)!important;background-color:var(--stud-ui-surface)!important;min-height:var(--stud-ui-target)}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) :is([data-stud-control],button,input,select,textarea,a,summary):focus-visible{outline:3px solid var(--stud-theme-focus,var(--stud-ui-accent))!important;outline-offset:3px!important}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) :is([data-stud-control][aria-pressed="true"],.directory-filter-summary button){--stud-control-surface:var(--stud-ui-selected);--stud-control-ink:var(--stud-theme-control-selected-ink,var(--stud-ui-ink));--stud-control-boundary:var(--stud-theme-control-selected-boundary,var(--stud-ui-accent));background:var(--stud-ui-selected)!important;color:var(--stud-theme-control-selected-ink,var(--stud-ui-ink))!important;border-color:var(--stud-theme-control-selected-boundary,var(--stud-ui-accent))!important}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) [data-stud-feedback]{padding:10px 14px;border:1px solid var(--stud-ui-boundary)!important;border-radius:var(--stud-ui-radius);color:var(--stud-ui-ink)!important;background:var(--stud-ui-surface)!important;overflow-wrap:anywhere}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) [data-stud-feedback="success"]{color:var(--stud-ui-success)!important;background:var(--stud-ui-success-surface)!important;border-color:var(--stud-ui-success)!important}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) [data-stud-feedback="error"]{color:var(--stud-ui-danger)!important;background:var(--stud-ui-danger-surface)!important;border-color:var(--stud-ui-danger)!important}
 /* The retained map preview's #main prose rule uses important inherited ink. */
 body.premium-preview #main [data-stud-feedback]{color:var(--stud-ui-ink)!important}
 body.premium-preview #main [data-stud-feedback="success"]{color:var(--stud-ui-success)!important}
 body.premium-preview #main [data-stud-feedback="error"]{color:var(--stud-ui-danger)!important}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) :is([data-stud-control],.reader-toolbar button,.sheet-bar-actions button,.directory-filter-summary button,.directory-filter-recovery button,.catalog-standalone-share,.production-link-actions button,.plan-button,.plan-text-button,.plan-icon-button,.cards-button,.cards-text-link,.search button,.studio-save,[data-share],[data-download],input:not([type="checkbox"]):not([type="radio"]),select,textarea):disabled{background-color:var(--stud-theme-control-disabled-surface,var(--stud-control-surface))!important;color:var(--stud-theme-control-disabled-ink,var(--stud-control-ink))!important;border-color:var(--stud-theme-control-disabled-boundary,var(--stud-control-boundary))!important}
 :is(body.premium-production,body.research-premium-page,html[data-map-product="research"] body.topic-page,body.plan-page,body.cards-page) [data-stud-control]:disabled{cursor:not-allowed;opacity:.55}
}
@media(forced-colors:active){[data-stud-control],[data-stud-feedback]{border-color:ButtonText!important}[data-stud-control][aria-pressed="true"]{outline:2px solid Highlight}}
