/* Dark surfaces for institutional, archive, author, newsletter pages. */
html[data-theme="dark"] :is(.legal-page-shell,.about-page-shell,.contact-layout,.newsletter-page-shell,.author-layout,.listing-layout){
  --ct-static-panel:#292622;
  --ct-static-inset:#24211f;
  --ct-static-field:#322e2a;
  --ct-static-line:#61574c;
  --ct-static-ink:#eee6d9;
  --ct-static-copy:#d8cebf;
  --ct-static-muted:#bdb1a0;
  --ct-static-red:#e58a86;
}
/* Legal: editorial policy, corrections, privacy and cookies. */
html[data-theme="dark"] .legal-paper{background:var(--ct-static-panel);color:var(--ct-static-ink);border-color:var(--ct-static-line);box-shadow:none}
html[data-theme="dark"] .legal-header{border-color:var(--ct-static-line)}
html[data-theme="dark"] .legal-header h1,
html[data-theme="dark"] .legal-section :is(h2,h3),
html[data-theme="dark"] .legal-data-card strong{color:var(--ct-static-ink)}
html[data-theme="dark"] .legal-lead,
html[data-theme="dark"] .legal-section :is(p,li),
html[data-theme="dark"] .legal-data-card,
html[data-theme="dark"] .legal-cookie-row,
html[data-theme="dark"] .legal-note{color:var(--ct-static-copy)}
html[data-theme="dark"] .legal-updated,
html[data-theme="dark"] .legal-small,
html[data-theme="dark"] .legal-toc a{color:var(--ct-static-muted)!important}
html[data-theme="dark"] :is(.legal-data-card,.legal-grid article,.legal-cookie-head){background:var(--ct-static-inset);border-color:var(--ct-static-line)}
html[data-theme="dark"] :is(.legal-section+.legal-section,.legal-cookie-row,.legal-note,.legal-toc,.legal-cookie-table){border-color:var(--ct-static-line)}
html[data-theme="dark"] .legal-section a,
html[data-theme="dark"] .legal-privacy-button{color:var(--ct-static-red)}
html[data-theme="dark"] .legal-privacy-button{border-color:var(--ct-static-red)}
html[data-theme="dark"] .legal-privacy-button:is(:focus-visible,:hover){color:#fff;background:#9c4248}

/* Contact form and details. */
html[data-theme="dark"] .contact-header p,
html[data-theme="dark"] .contact-details p,
html[data-theme="dark"] .contact-form-note,
html[data-theme="dark"] .contact-signature{color:var(--ct-static-copy)}
html[data-theme="dark"] .contact-paper{background:var(--ct-static-panel);border-color:var(--ct-static-line)}
html[data-theme="dark"] .contact-details{background:var(--ct-static-inset);border-color:var(--ct-static-line)}
html[data-theme="dark"] .contact-header,
html[data-theme="dark"] .contact-form-footer{border-color:var(--ct-static-line)}
html[data-theme="dark"] .contact-field label,
html[data-theme="dark"] .contact-email,
html[data-theme="dark"] .contact-social a{color:var(--ct-static-ink)}
html[data-theme="dark"] .contact-field :is(input,textarea){background:var(--ct-static-field);color:var(--ct-static-ink);border-color:var(--ct-static-line)}
html[data-theme="dark"] .contact-field :is(input,textarea):focus{background:#3a3530;border-color:var(--ct-static-red)}
html[data-theme="dark"] .contact-social a{background:var(--ct-static-field);border-color:var(--ct-static-line)}
html[data-theme="dark"] .contact-alert{background:var(--ct-static-inset);color:var(--ct-static-copy)}
html[data-theme="dark"] .contact-alert.success{background:#21352a;color:#d0ead5}

/* Newsletter signup and confirmation screens. */
html[data-theme="dark"] :is(.newsletter-page-hero,.newsletter-result-card){background:var(--ct-static-panel);border-color:var(--ct-static-line)}
html[data-theme="dark"] .newsletter-page-copy>p,
html[data-theme="dark"] .newsletter-page-form>label:not(.newsletter-honeypot),
html[data-theme="dark"] .newsletter-page-form small,
html[data-theme="dark"] .newsletter-edition-card p{color:var(--ct-static-copy)}
html[data-theme="dark"] .newsletter-page-form-row input{background:var(--ct-static-field);color:var(--ct-static-ink);border-color:var(--ct-static-line)}
html[data-theme="dark"] .newsletter-page-form-row input::placeholder{color:var(--ct-static-muted);opacity:1}
html[data-theme="dark"] .newsletter-page-alert{color:var(--ct-static-copy);background:var(--ct-static-inset)}
html[data-theme="dark"] .newsletter-page-alert.is-success{color:#d0ead5;background:#21352a}
html[data-theme="dark"] .newsletter-result-card>p{color:var(--ct-static-copy)}
html[data-theme="dark"] .newsletter-result-card .newsletter-result-note{color:var(--ct-static-muted)}
html[data-theme="dark"] .newsletter-edition-card,
html[data-theme="dark"] .newsletter-page-form{border-color:var(--ct-static-line)}

/* About publication / team / founding history. */
html[data-theme="dark"] .about-hero h1,
html[data-theme="dark"] :is(.about-intro-main,.about-section-heading,.about-closing) h2,
html[data-theme="dark"] .about-values-grid h3,
html[data-theme="dark"] .about-person h3,
html[data-theme="dark"] .about-origin-copy h2{color:var(--ct-static-ink)}
html[data-theme="dark"] .about-deck,
html[data-theme="dark"] .about-intro-main p,
html[data-theme="dark"] .about-section-heading>p,
html[data-theme="dark"] .about-closing-copy p,
html[data-theme="dark"] .about-values-grid p,
html[data-theme="dark"] .about-person p,
html[data-theme="dark"] .about-origin-copy p{color:var(--ct-static-copy)}
html[data-theme="dark"] :is(.about-quote-card,.about-values-grid article,.about-person,.about-contact-card,.about-origin-note){background:var(--ct-static-panel);border-color:var(--ct-static-line);box-shadow:none}
html[data-theme="dark"] .about-quote-card p,
html[data-theme="dark"] .about-contact-card a:first-of-type{color:var(--ct-static-ink)}
html[data-theme="dark"] .about-origin-year{color:var(--ct-static-red)}
html[data-theme="dark"] .about-contact-card small{color:var(--ct-static-muted)}
html[data-theme="dark"] .about-person figure{background:var(--ct-static-inset)}
html[data-theme="dark"] :is(.about-intro-grid,.about-rule::before,.about-rule::after){border-color:var(--ct-static-line)}

/* Authors: prestige header, stats, biography, citations and memorial. */
html[data-theme="dark"] .author-prestige{background:linear-gradient(135deg,#302b27,#24211f);border-color:var(--ct-static-line);box-shadow:none}
html[data-theme="dark"] .author-prestige:before{background:radial-gradient(circle at 84% 10%,rgba(229,138,134,.07),transparent 250px)}
html[data-theme="dark"] .author-prestige-mark{mix-blend-mode:normal;opacity:.035}
html[data-theme="dark"] .author-prestige-stats{background:var(--ct-static-inset);border-color:var(--ct-static-line)}
html[data-theme="dark"] .author-prestige-stats>div{border-color:var(--ct-static-line)}
html[data-theme="dark"] .author-prestige-deck,
html[data-theme="dark"] .author-dossier-card p,
html[data-theme="dark"] .author-dossier-card li,
html[data-theme="dark"] .author-prestige-memorial-note,
html[data-theme="dark"] .author-prestige-memorial-note p{color:var(--ct-static-copy)}
html[data-theme="dark"] .author-prestige-role,
html[data-theme="dark"] .author-prestige-stats span,
html[data-theme="dark"] .author-prestige-memorial-archive,
html[data-theme="dark"] .author-prestige-memorial-date,
html[data-theme="dark"] .author-prestige-memorial-date time{color:var(--ct-static-muted)}
html[data-theme="dark"] .author-prestige-tags span{background:var(--ct-static-field);color:var(--ct-static-copy);border-color:var(--ct-static-line)}
html[data-theme="dark"] .author-prestige-stamp{background:#36312c;color:var(--ct-static-ink);border-color:var(--ct-static-line)}
html[data-theme="dark"] .author-dossier-card{background:var(--ct-static-panel);border-color:var(--ct-static-line)}
html[data-theme="dark"] .author-dossier-card li{border-color:var(--ct-static-line)}
html[data-theme="dark"] .author-prestige-memorial-note{background:var(--ct-static-panel);border-color:var(--ct-static-line)}
html[data-theme="dark"] .author-prestige-memorial-badge{color:var(--ct-static-red);background:var(--ct-static-inset)}

/* Archive form and explanatory text (one legacy inline color). */
html[data-theme="dark"] .listing-header p[style]{color:var(--ct-static-copy)!important}
html[data-theme="dark"] .listing-main .big-search input{background:var(--ct-static-field)!important;color:var(--ct-static-ink)!important;border-color:var(--ct-static-line)!important;color-scheme:dark}
html[data-theme="dark"] .listing-main .big-search input::-webkit-calendar-picker-indicator{filter:invert(1)}

/* 50B: newsletter CTA contrast. */
html[data-theme="dark"] .newsletter-page-form-row button{background:#792c35;border:1px solid #a15a60;color:#fff;font-size:12px;font-weight:800;letter-spacing:0;min-height:48px}
html[data-theme="dark"] .newsletter-page-form-row button:hover{background:#963d48;border-color:#bd767e}
html[data-theme="dark"] .newsletter-page-form-row button:focus-visible{outline:2px solid #f1bdad;outline-offset:3px}
