/*
 * Public selectable themes, v36.
 *
 * This file is intended to load after editorial-public.css, editorial-pages.css,
 * reference-parity.css, and cookie-consent.css. It is intentionally scoped to
 * the two explicit theme attributes so the existing beige/no-attribute site is
 * byte-for-byte unaffected by these declarations.
 *
 * Colors only: no layout, spacing, font, image, gallery-control, or overlay
 * geometry is redefined here. The article-image-actions wrapper is deliberately
 * not styled; its fullscreen control and source badge keep their existing flow.
 */

body.live.editorial-public[data-public-theme="light"] {
  --public-theme-ground: #ffffff;
  --public-theme-surface: #ffffff;
  --public-theme-surface-2: #f1f5f9;
  --public-theme-border: #e2e8f0;
  --public-theme-text: #0f172a;
  --public-theme-muted: #64748b;
  --public-theme-accent: var(--ui-accent, #c91f2d);
  --edition-ink: #0f172a;
  --edition-muted: #64748b;
  --edition-rule: #e2e8f0;
  --edition-accent: var(--public-theme-accent);
  --page-ink: #0f172a;
  --page-muted: #64748b;
  --page-rule: #e2e8f0;
  --page-paper: #ffffff;
  --page-ground: #ffffff;
  --page-accent: var(--public-theme-accent);
  background-color: var(--public-theme-ground) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public[data-public-theme="dark"] {
  --public-theme-ground: #101316;
  --public-theme-surface: #191f26;
  --public-theme-surface-2: #202730;
  --public-theme-border: #39434f;
  --public-theme-text: #edf1f5;
  --public-theme-muted: #b5bec8;
  --public-theme-accent: var(--ui-accent, #c91f2d);
  --edition-ink: #edf1f5;
  --edition-muted: #b5bec8;
  --edition-rule: #39434f;
  --edition-accent: var(--public-theme-accent);
  --page-ink: #edf1f5;
  --page-muted: #b5bec8;
  --page-rule: #39434f;
  --page-paper: #191f26;
  --page-ground: #101316;
  --page-accent: var(--public-theme-accent);
  background-color: var(--public-theme-ground) !important;
  color: var(--public-theme-text) !important;
}

/* Shared public ground and header bands. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) main.wrap,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-shell,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-home-shell {
  background-color: var(--public-theme-ground) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-masthead-row {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public[data-public-theme="light"] .edition-breaking,
body.live.editorial-public[data-public-theme="dark"] .edition-breaking {
  background-color: #111417 !important;
  border-color: var(--public-theme-border) !important;
  color: #ffffff !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-breaking a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-breaking time {
  color: #ffffff !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-breaking-label {
  background-color: var(--public-theme-accent) !important;
  color: #ffffff !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-meta-band {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-meta-band__inner,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-date,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-context {
  color: var(--public-theme-muted) !important;
}

body.live.editorial-public[data-public-theme="light"] .top .site-logo-razzi,
body.live.editorial-public[data-public-theme="light"] .top .site-logo-wordmark,
body.live.editorial-public[data-public-theme="light"] .top > .top-in > a.logo,
body.live.editorial-public[data-public-theme="light"] .top .logo,
body.live.editorial-public[data-public-theme="light"] .edition-footer-wordmark .edition-footer-razzi,
body.live.editorial-public[data-public-theme="light"] .edition-footer-wordmark {
  color: #0f172a !important;
}

body.live.editorial-public[data-public-theme="dark"] .top .site-logo-razzi,
body.live.editorial-public[data-public-theme="dark"] .top .site-logo-wordmark,
body.live.editorial-public[data-public-theme="dark"] .top > .top-in > a.logo,
body.live.editorial-public[data-public-theme="dark"] .top .logo,
body.live.editorial-public[data-public-theme="dark"] .edition-footer-wordmark .edition-footer-razzi,
body.live.editorial-public[data-public-theme="dark"] .edition-footer-wordmark {
  color: #ffffff !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-logo-ja,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-logo-tagline,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-strap,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-footer-wordmark .edition-footer-ja {
  color: var(--public-theme-accent) !important;
}

/* Header navigation, search, and mobile drawer surfaces. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-main-nav.wrap.cats {
  background-color: transparent !important;
  border-color: var(--public-theme-border) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-main-nav.wrap.cats > a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-main-nav.wrap.cats > a.nav-home,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-main-nav.wrap.cats > a[aria-current="page"] {
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-main-nav.wrap.cats > a:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-main-nav.wrap.cats > a:focus-visible,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-main-nav.wrap.cats > a[aria-current="page"],
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-main-nav.wrap.cats > a.nav-blog {
  color: var(--public-theme-accent) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-search,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-search input,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-search button,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top-blog-link,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .menu-toggle {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-search:focus-within,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-search button:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top-blog-link:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .menu-toggle:hover {
  border-color: var(--public-theme-accent) !important;
  color: var(--public-theme-accent) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-search input::placeholder,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .notfound-search input::placeholder {
  color: var(--public-theme-muted) !important;
  opacity: 1;
}

@media (max-width: 700px) {
  body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .top .site-main-nav.wrap.cats,
  body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-main-nav::before,
  body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-main-nav > a:not(.top-blog-link),
  body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-main-nav .site-search,
  body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .site-main-nav .menu-close {
    background-color: var(--public-theme-surface) !important;
    border-color: var(--public-theme-border) !important;
    color: var(--public-theme-text) !important;
  }

  body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .mobile-menu-backdrop {
    background: rgba(15, 23, 42, .48) !important;
  }
}

/* Home hero fallbacks: photo pixels and their existing text overlays are untouched. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-hero-grid :is(.edition-lead, .edition-hero-story, .edition-image-link),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-home-shell :is(.edition-image-link, .edition-hero-story) {
  background-color: var(--public-theme-surface-2) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-card,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-blog-card,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-trend-story,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-story-card,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-card,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-lead,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-list,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-sidebar-panel {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-card .edition-title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-blog-card .edition-title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-trend-story .edition-title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-story-card .edition-story-title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-card .edition-title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-lead .edition-title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-story-row .edition-title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-blog-sidebar-item .edition-title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-card .edition-card-category,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-card .edition-time,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-blog-card .edition-time,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-trend-story .edition-time,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-card .edition-summary,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-story-row .edition-summary {
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-card .edition-time,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-blog-card .edition-time,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-trend-story .edition-time,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-card .edition-summary,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-story-row .edition-summary,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-sidebar-empty,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-section-note {
  color: var(--public-theme-muted) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-section-heading,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-sidebar-heading,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-trend-sidebar,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-blog-latest,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-story-row,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-side-story {
  border-color: var(--public-theme-border) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-section-heading h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-sidebar-heading h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-page-heading h1,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-heading h1 {
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-section-link,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-sidebar-heading a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-heading .eyebrow,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-breadcrumb a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-page .edition-breadcrumb a {
  color: var(--public-theme-accent) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-heading,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-page .edition-category-heading,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-empty,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .preview-banner {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-heading > p,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-page .edition-breadcrumb,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-category-page .edition-category-heading > p,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-breadcrumb,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .preview-banner {
  color: var(--public-theme-muted) !important;
}

/* Listing/search cards and pagination. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .stories .story,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .story,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .editor-profile,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .empty,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .pagenavi a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .profile-pagination a {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .story > img,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .story > .story-image-empty,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .related-news-card > img,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .related-news-card__empty,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .related-blog-card > img {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .story-title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .story strong,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .editor-profile h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .profile-list h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .story p,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .profile-list,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .editor-profile p {
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .story .meta,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .story small,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .empty,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .profile-pagination > span {
  color: var(--public-theme-muted) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .pagenavi a.current,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .pagenavi a[aria-current="page"],
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .profile-pagination a.current,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .profile-pagination a[aria-current="page"],
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .pagenavi a:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .profile-pagination a:hover {
  background-color: var(--public-theme-accent) !important;
  border-color: var(--public-theme-accent) !important;
  color: #ffffff !important;
}

/* Article reading canvas and explicit neutral content surfaces. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page main.wrap {
  background-color: var(--public-theme-ground) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-main,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-header,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-body,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-content,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .page-head,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .static-page {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article h1,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article h3,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article h4,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-main .breadcrumbs,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-editor strong,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-date,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body p,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body li,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .static-page :is(h1, h2, h3, p, li, td, th),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .page-head h1 {
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .breadcrumbs a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .static-page a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-references a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .edition-detail-copy h3 a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .edition-detail-all {
  color: var(--public-theme-accent) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-main .lead,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body blockquote,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .contact-direct {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body blockquote,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body hr,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body h3,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body h4,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .page-head,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .static-page :is(h2, h3),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-aside__label,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .edition-detail-panel > h2 {
  border-color: var(--public-theme-border) !important;
}

/* Google source callout and FAQ/references. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .google-source-card {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  border-left-color: var(--public-theme-accent) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .google-source-card:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .google-source-card:focus-visible {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-accent) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .google-source-card__title,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .google-source-card__arrow {
  color: var(--public-theme-accent) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .google-source-card__description {
  color: var(--public-theme-muted) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-faq,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-references,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-faq details {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-faq :is(h2, summary),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-references summary,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-faq__item summary {
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-faq__item p,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-references p,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-references li {
  color: var(--public-theme-muted) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-faq summary::after,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-faq__item summary::after,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-references summary::after {
  color: var(--public-theme-accent) !important;
}

/* Tables: the scroll wrapper and cells are separate intentional surfaces. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body .article-table-wrap {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  box-shadow: none !important;
  border-radius: 6px !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body :is(table, .article-table),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body :is(table, .article-table) :is(th, td) {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body :is(table, .article-table) th,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-grid > .body :is(table, .article-table) tbody tr:nth-child(even) td {
  background-color: var(--public-theme-surface-2) !important;
  color: var(--public-theme-text) !important;
}

/* Sidebar panels and related cards. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article > .article-aside:not(.edition-detail-sidebar),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-sidebar,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .edition-detail-panel {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-aside :is(.related-news-grid, .related-blog-grid),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related-news-grid,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related-blog-grid {
  background-color: transparent !important;
  border-color: var(--public-theme-border) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page :is(.related-news-inline, .related-blog-inline, .inline-related-news, .inline-related-blogs),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related-news-card,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related-blog-card {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related b,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related-news-card strong,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related-blog-card strong,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .edition-detail-copy h3,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .edition-detail-panel > h2 {
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related-news-card small,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .related-blog-card small,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .edition-detail-meta {
  color: var(--public-theme-muted) !important;
  border-color: var(--public-theme-border) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-aside :is(.related-news-card, .related-blog-card) {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
}

/* Article image fallback stages only; source credits remain white/black badges. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article-visual .article-image-stage,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .photo-carousel-stage,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .photo-carousel-stage:fullscreen,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .photo-carousel-stage.is-fullscreen-fallback {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
}

body.live.editorial-public[data-public-theme="dark"].editorial-page .photo-carousel-stage:fullscreen,
body.live.editorial-public[data-public-theme="dark"].editorial-page .photo-carousel-stage.is-fullscreen-fallback {
  background-color: #111417 !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-main > :is(.image-credit, .image-caption-credit),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-image-source {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: var(--public-theme-border) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .image-caption-credit > span,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .article .article-image-source * {
  color: #0f172a !important;
}

/* Do not style .article-image-actions: it only groups existing controls and badge. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .photo-carousel :is(.gallery-arrow, .gallery-expand, .gallery-lightbox-button),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .photo-carousel :is(.gallery-arrow, .gallery-expand, .gallery-lightbox-button):hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .photo-carousel :is(.gallery-arrow, .gallery-expand, .gallery-lightbox-button):focus-visible,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .photo-carousel :is(.gallery-counter, .gallery-lightbox-counter) {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: var(--public-theme-border) !important;
}

/* Static/legal/contact surfaces and controls. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .contact-form {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .contact-form label,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .contact-form :is(input, textarea, select),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .rss-reader-address :is(input, button) {
  color: var(--public-theme-text) !important;
  border-color: var(--public-theme-border) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .contact-form :is(input, textarea, select),
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .rss-reader-address input,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .rss-reader-address button {
  background-color: var(--public-theme-surface) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .contact-form .btn,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-button-primary,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-search button {
  background-color: var(--public-theme-accent) !important;
  border-color: var(--public-theme-accent) !important;
  color: #ffffff !important;
}

/* 404: the special red visual/illustration is intentionally not recolored. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-hero {
  background: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-copy,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-copy h1,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-copy > p,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-search label,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-links h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-latest h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-latest-item strong,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-latest-item span,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-links p[style] {
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-search-row,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-search input,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-button-secondary,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-links,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-latest-item,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-category-list a {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-kicker,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-kicker span,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-copy h1 span,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-links h2 span,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-latest h2 span {
  color: var(--public-theme-accent) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-kicker span {
  background-color: var(--public-theme-accent) !important;
  color: #ffffff !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-latest-item small {
  color: var(--public-theme-muted) !important;
}

/* Cookie banner, preferences dialog, and preference link. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-banner {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-settings {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-settings h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-settings p,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-settings label,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-cookie-settings-link {
  color: var(--public-theme-text) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-banner button,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-settings button,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) [data-consent-action="settings"] {
  background-color: var(--public-theme-surface) !important;
  border-color: var(--public-theme-border) !important;
  color: var(--public-theme-text) !important;
  border-radius: 6px;
}

/* The footer preferences launch remains a transparent text link in both themes. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) > .edition-cookie-settings-link[data-consent-action="settings"] {
  background-color: transparent !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-banner button:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-settings button:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) [data-consent-action="settings"]:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) .edition-cookie-settings-link:is(:hover, :focus-visible) {
  border-color: var(--public-theme-accent) !important;
  color: var(--public-theme-accent) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-banner button:focus-visible,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) #jarazzi-cookie-settings button:focus-visible,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) [data-consent-action="settings"]:focus-visible {
  outline-color: var(--public-theme-accent) !important;
}

/* Footer remains transparent; only its readable ink, rules, and identity colors change. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-inner,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-brand,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-navigation,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-bottom {
  color: var(--public-theme-text) !important;
  border-color: var(--public-theme-border) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-description,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-navigation a,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-bottom,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-bottom a {
  color: var(--public-theme-muted) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-navigation a:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-navigation a:focus-visible,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-bottom a:hover,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-bottom a:focus-visible {
  color: var(--public-theme-accent) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-column h2,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-kicker,
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-location {
  color: var(--public-theme-muted) !important;
}

body.live.editorial-public[data-public-theme="light"] footer.edition-footer .edition-footer-wordmark .edition-footer-razzi {
  color: #0f172a !important;
}

body.live.editorial-public[data-public-theme="dark"] footer.edition-footer .edition-footer-wordmark .edition-footer-razzi {
  color: #ffffff !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]) footer.edition-footer .edition-footer-wordmark .edition-footer-ja {
  color: var(--public-theme-accent) !important;
}

/* Gallery thumbnail rails: preserve overflow/thumb geometry, theme only the track. */
body.live.editorial-public[data-public-theme="light"].editorial-page :is(.photo-carousel-thumbs, .bg-kucukler) {
  scrollbar-color: var(--public-theme-accent) #ffffff;
}

body.live.editorial-public[data-public-theme="light"].editorial-page :is(.photo-carousel-thumbs, .bg-kucukler)::-webkit-scrollbar,
body.live.editorial-public[data-public-theme="light"].editorial-page :is(.photo-carousel-thumbs, .bg-kucukler)::-webkit-scrollbar-track {
  background: #ffffff;
}

body.live.editorial-public[data-public-theme="dark"].editorial-page :is(.photo-carousel-thumbs, .bg-kucukler) {
  scrollbar-color: var(--public-theme-accent) var(--public-theme-surface);
}

body.live.editorial-public[data-public-theme="dark"].editorial-page :is(.photo-carousel-thumbs, .bg-kucukler)::-webkit-scrollbar,
body.live.editorial-public[data-public-theme="dark"].editorial-page :is(.photo-carousel-thumbs, .bg-kucukler)::-webkit-scrollbar-track {
  background: var(--public-theme-surface);
}

/* Active thumbnail frames keep the user accent; only non-active frames blend into the surface. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .photo-carousel .gallery-thumb:is([aria-current="true"], .is-active, .aktif) {
  border-color: var(--public-theme-accent) !important;
  background-color: color-mix(in srgb, var(--public-theme-accent) 10%, var(--public-theme-surface)) !important;
}

body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .photo-carousel .gallery-thumb:not(.is-active):not([aria-current="true"]):not(.aktif) {
  border-color: var(--public-theme-surface) !important;
  background-color: var(--public-theme-surface) !important;
}

/* Match the legacy 404 specificity so its beige hero cannot leak into themes. */
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-page .notfound-hero {
  background: var(--public-theme-surface) !important;
  color: var(--public-theme-text) !important;
}
body.live.editorial-public:is([data-public-theme="light"], [data-public-theme="dark"]).editorial-page .notfound-page :is(.notfound-search-row,.notfound-links,.notfound-latest-item,.notfound-button-secondary,.notfound-category-list a) {
  background: var(--public-theme-surface-2) !important;
  color: var(--public-theme-text) !important;
}

/* v37 light theme: let the page ground continue through the masthead. */
body.live.editorial-public[data-public-theme="light"] .top,
body.live.editorial-public[data-public-theme="light"] .edition-masthead-row {
  background-color: transparent !important;
}

body.live.editorial-public[data-public-theme="light"] .top .edition-masthead-row > .top-in,
body.live.editorial-public[data-public-theme="light"] .top .edition-masthead-row > .site-main-nav.wrap.cats {
  background-color: var(--public-theme-ground) !important;
}

@media (max-width: 700px) {
  body.live.editorial-public[data-public-theme="light"] .top .edition-masthead-row > .site-main-nav.wrap.cats,
  body.live.editorial-public[data-public-theme="light"] .top .edition-masthead-row > .site-main-nav.wrap.cats::before,
  body.live.editorial-public[data-public-theme="light"] .top .edition-masthead-row > .site-main-nav.wrap.cats::after,
  body.live.editorial-public[data-public-theme="light"] .top .edition-masthead-row > .site-main-nav.wrap.cats > a,
  body.live.editorial-public[data-public-theme="light"] .top .edition-masthead-row > .site-main-nav.wrap.cats .menu-close {
    /* Keep the mobile drawer's existing fill when the page ground is white. */
    background-color: #f8fafc !important;
  }
}

/* v37 light theme: every shared news/blog related block uses the UI gray. */
body.live.editorial-public[data-public-theme="light"].editorial-page .article .body .related,
body.live.editorial-public[data-public-theme="light"].editorial-page .article .article-grid > .body .related,
body.live.editorial-public[data-public-theme="light"].editorial-page .article .related.edition-bottom-related {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
}

/* v37 light theme: red links are regular; logo red glyphs and black headlines stay unchanged. */
body.live.editorial-public[data-public-theme="light"] .top .site-main-nav.wrap.cats > a:is(.nav-blog, [aria-current="page"], :hover, :focus-visible),
body.live.editorial-public[data-public-theme="light"] .top-blog-link:is(:hover, :focus-visible),
body.live.editorial-public[data-public-theme="light"] :is(
  .edition-section-link,
  .edition-sidebar-heading a,
  .edition-breadcrumb a,
  .edition-category-page .edition-breadcrumb a,
  .article .breadcrumbs a,
  .article-grid > .body a,
  .static-page a,
  .article-references a,
  .edition-detail-copy h3 a,
  .edition-detail-all,
  .related a,
  .google-source-card,
  .google-source-card__title,
  .google-source-card__arrow,
  .edition-footer a:not(.edition-footer-wordmark):is(:hover, :focus-visible)
) {
  font-weight: 400 !important;
}

body.live.editorial-public[data-public-theme="light"] :is(
  .edition-section-link,
  .edition-sidebar-heading a,
  .edition-breadcrumb a,
  .edition-category-page .edition-breadcrumb a,
  .article .breadcrumbs a,
  .article-grid > .body a,
  .static-page a,
  .article-references a,
  .edition-detail-copy h3 a,
  .edition-detail-all,
  .related a,
  .google-source-card
) :is(b, strong) {
  font-weight: inherit !important;
}

/* v38: the light reading page shows the page ground through the article shell. */
body.live.editorial-public[data-public-theme="light"].editorial-page .article,
body.live.editorial-public[data-public-theme="light"].editorial-page .article .article-main,
body.live.editorial-public[data-public-theme="light"].editorial-page .article .article-header,
body.live.editorial-public[data-public-theme="light"].editorial-page .article .article-body,
body.live.editorial-public[data-public-theme="light"].editorial-page .article .article-content,
body.live.editorial-public[data-public-theme="light"].editorial-page .article .article-grid,
body.live.editorial-public[data-public-theme="light"].editorial-page .article .article-grid > .body {
  background-color: transparent !important;
}

/* v38: only the footer Cookie設定 launcher loses the theme button fill. */
body.live.editorial-public .edition-cookie-settings-link[data-consent-action="settings"],
body.live.editorial-public .edition-cookie-settings-link[data-consent-action="settings"]:hover,
body.live.editorial-public .edition-cookie-settings-link[data-consent-action="settings"]:focus-visible {
  background-color: transparent !important;
}

/* v38: preserve the reference wordmark's 900 weight in every interaction state. */
body.live.editorial-public .edition-footer .edition-footer-wordmark,
body.live.editorial-public .edition-footer .edition-footer-wordmark:is(:hover, :focus-visible),
body.live.editorial-public .edition-footer .edition-footer-wordmark > :is(.edition-footer-ja, .edition-footer-razzi),
body.live.editorial-public .edition-footer .edition-footer-wordmark:is(:hover, :focus-visible) > :is(.edition-footer-ja, .edition-footer-razzi) {
  font-weight: 900 !important;
}

/* v39: sidebar story links are neutral, not the site's accent color. */
body.live.editorial-public.editorial-page .article .article-aside.edition-detail-sidebar a,
body.live.editorial-public.editorial-page .article .article-aside.edition-detail-sidebar a:is(:hover, :focus-visible, :visited) {
  color: var(--edition-ink, #111417) !important;
}

/* v39: the Google preferred-source card no longer changes fill or border on hover. */
body.live.editorial-public.editorial-page:is([data-public-theme="light"], [data-public-theme="dark"]) .google-source-card:hover {
  background-color: var(--public-theme-surface-2) !important;
  border-color: var(--public-theme-border) !important;
  border-left-color: var(--public-theme-accent) !important;
  color: var(--public-theme-text) !important;
  transform: none !important;
}
body.live.editorial-public.editorial-page[data-public-theme="beige"] .google-source-card:hover {
  background-color: #e8e3d7 !important;
  border: 0 !important;
  border-left: 4px solid var(--page-accent) !important;
  color: #111417 !important;
  transform: none !important;
}
body.live.editorial-public.editorial-page[data-public-theme="beige"] .google-source-card:hover .google-source-card__title { color: #111417 !important; }
body.live.editorial-public.editorial-page[data-public-theme="beige"] .google-source-card:hover .google-source-card__description { color: #51514f !important; }
body.live.editorial-public.editorial-page .google-source-card:hover .google-source-card__title,
body.live.editorial-public.editorial-page .google-source-card:hover .google-source-card__arrow {
  color: var(--ui-accent, #c91f2d) !important;
}
body.live.editorial-public.editorial-page .google-source-card:hover .google-source-card__description {
  color: var(--public-theme-muted, #736b6c) !important;
}

/* v39: related-article links use the neutral reading ink, not the accent color. */
body.live.editorial-public.editorial-page .article .article-grid > .body :is(.related, .edition-bottom-related) a,
body.live.editorial-public.editorial-page .article .article-grid > .body :is(.related, .edition-bottom-related) a:is(:hover, :focus-visible, :visited),
body.live.editorial-public.editorial-page .article :is(.related, .edition-bottom-related) a,
body.live.editorial-public.editorial-page .article :is(.related, .edition-bottom-related) a:is(:hover, :focus-visible, :visited) {
  color: var(--edition-ink, #111417) !important;
}

/* v40: article introductions sit directly on the page ground in every theme. */
body.live.editorial-public.editorial-page[data-public-theme] .article .article-main > .lead {
  background: transparent !important;
}

/* v41: shared category/blog folios use the light theme, not legacy beige/accent. */
body.live.editorial-public[data-public-theme="light"] .edition-pagination {
  background-color: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #374151 !important;
}
body.live.editorial-public[data-public-theme="light"] .edition-pagination :is(.edition-page-number, .edition-pagination-step) {
  background-color: #ffffff !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}
body.live.editorial-public[data-public-theme="light"] .edition-pagination :is(.edition-page-number, .edition-pagination-step):is(:hover, :focus-visible),
body.live.editorial-public[data-public-theme="light"] .edition-pagination .edition-page-number:is(.is-current, [aria-current="page"]) {
  background-color: #e5e7eb !important;
  border-color: #9ca3af !important;
  color: #111827 !important;
}
body.live.editorial-public[data-public-theme="light"] .edition-pagination a:focus-visible {
  outline: 2px solid #9ca3af;
  outline-offset: 2px;
}
body.live.editorial-public[data-public-theme="light"] .edition-pagination :is(.edition-pagination-label, .edition-pagination-position, .edition-pagination-ellipsis) {
  color: #6b7280 !important;
}
body.live.editorial-public[data-public-theme="light"] .edition-pagination .edition-pagination-position strong {
  color: #374151 !important;
}

/* v42: shared masthead category links stay bold in every state without width jumps. */
body.live.editorial-public[data-public-theme] .top .edition-masthead-row > .site-main-nav.wrap.cats > a,
body.live.editorial-public[data-public-theme] .top .edition-masthead-row > .site-main-nav.wrap.cats > a:is(:hover, :focus, :focus-visible, :active, [aria-current="page"]),
body.live.editorial-public[data-public-theme] .top .edition-masthead-row > .site-main-nav.wrap.cats > a > span,
body.live.editorial-public[data-public-theme] .top .edition-masthead-row > .site-main-nav.wrap.cats > a:is(:hover, :focus, :focus-visible, :active, [aria-current="page"]) > span {
  font-weight: 700 !important;
}

/* v43: both Lettid wordmarks use Inter's real Black weight (Manrope stops at 800). */
body.live.editorial-public .top .site-logo-brand,
body.live.editorial-public .top .site-logo-brand > :is(.site-logo-ja, .site-logo-razzi),
body.live.editorial-public .edition-footer .edition-footer-wordmark,
body.live.editorial-public .edition-footer .edition-footer-wordmark > :is(.edition-footer-ja, .edition-footer-razzi) {
  font-family: "Inter", Arial, sans-serif !important;
  font-weight: 900 !important;
}
