/* Dealsmaster v5.7.0 — Midnight Conservatory.
 *
 * A deliberate second art direction, not a colour inversion. Light mode keeps
 * the warm editorial edition. Dark mode shifts the same house into evening:
 * moss-black rooms, parchment type, aged brass, ember and a trace of blue
 * moonlight. Component geometry and article identity remain unchanged.
 */

/* --------------------------------------------------------------------------
   Theme tokens and early browser colour agreement
   -------------------------------------------------------------------------- */

:root {
  --dm-theme-page: #f6f1e8;
  --dm-theme-panel: #fcf8f1;
  --dm-theme-panel-2: #efe5d5;
  --dm-theme-panel-3: #eae1d4;
  --dm-theme-ink: #201d18;
  --dm-theme-muted: #5d574f;
  --dm-theme-line: rgba(50, 43, 36, .18);
  --dm-theme-deep: #24372e;
  --dm-theme-deep-2: #14281f;
  --dm-theme-link: #6d3025;
  --dm-theme-gold: #d9b65a;
  --dm-theme-ember: #c66349;
  --dm-theme-moon: #657693;
  --dm-theme-shadow: 0 22px 62px rgba(47, 35, 25, .12);
  --dm-theme-image-filter: none;
  --dm-theme-image-shadow: 0 18px 48px rgba(47, 35, 25, .15);
  --dm-theme-canvas: url("../images/texture-eggshell-v1.webp");
  --dm-theme-canvas-size: 640px 640px;
  --dm-theme-transition: cubic-bezier(.2, .78, .22, 1);
}

@media (prefers-color-scheme: dark) {
  :root[data-dm-theme="dark"] {
    --dm-theme-page: #101713;
    --dm-theme-panel: #17211c;
    --dm-theme-panel-2: #1d2a23;
    --dm-theme-panel-3: #26332b;
    --dm-theme-ink: #f1e8dc;
    --dm-theme-muted: #c1b4a5;
    --dm-theme-line: rgba(238, 226, 210, .16);
    --dm-theme-deep: #0d1914;
    --dm-theme-deep-2: #09110e;
    --dm-theme-link: #f0c978;
    --dm-theme-gold: #efc96d;
    --dm-theme-ember: #e17b5f;
    --dm-theme-moon: #9baac7;
    --dm-theme-shadow: 0 28px 80px rgba(0, 0, 0, .36);
    --dm-theme-image-filter: none;
    --dm-theme-image-shadow: 0 24px 66px rgba(0, 0, 0, .4);
    --dm-theme-canvas:
      radial-gradient(circle at 8% -4%, rgba(216, 120, 87, .14), transparent 31rem),
      radial-gradient(circle at 91% 5%, rgba(121, 143, 177, .13), transparent 34rem),
      radial-gradient(circle at 52% 84%, rgba(218, 180, 91, .055), transparent 40rem),
      linear-gradient(145deg, #101713, #111b16 48%, #0d1511),
      url("../images/texture-eggshell-v1.webp");
    --dm-theme-canvas-size: auto, auto, auto, auto, 640px 640px;

    --dm-paper: #101713;
    --dm-white: #17211c;
    --dm-ink: #f1e8dc;
    --dm-muted: #c1b4a5;
    --dm-line: rgba(238, 226, 210, .16);
    --dm-soft: #26332b;
    --dm-rust: #e17b5f;
    --dm-forest: #284b3d;
    --dm-gold: #ddb766;
    --dm-butter: #efc96d;
    --dm-coral: #e17b5f;
    --dm-blush: #66443f;
    --dm-blue: #9baac7;
    --dm-cream: #1d2a23;

    --dm-nav-cream: #17211c;
    --dm-nav-paper: #202b24;
    --dm-nav-ink: #f2e8db;
    --dm-nav-muted: #c2b4a4;
    --dm-nav-green: #efce82;
    --dm-nav-green-2: #d6b36a;
    --dm-nav-rust: #ee8a6d;
    --dm-nav-coral: #ee8a6d;
    --dm-nav-butter: #f0cb73;
    --dm-nav-line: rgba(239, 228, 213, .17);
    --dm-nav-shadow: 0 30px 86px rgba(0, 0, 0, .5);
  }
}

html[data-dm-theme="light"] {
  color-scheme: light;
  --dm-theme-page: #f6f1e8;
  --dm-theme-panel: #fcf8f1;
  --dm-theme-panel-2: #efe5d5;
  --dm-theme-panel-3: #eae1d4;
  --dm-theme-ink: #201d18;
  --dm-theme-muted: #5d574f;
  --dm-theme-line: rgba(50, 43, 36, .18);
  --dm-theme-deep: #24372e;
  --dm-theme-deep-2: #14281f;
  --dm-theme-link: #6d3025;
  --dm-theme-gold: #d9b65a;
  --dm-theme-ember: #c66349;
  --dm-theme-moon: #657693;
  --dm-theme-shadow: 0 22px 62px rgba(47, 35, 25, .12);
  --dm-theme-image-filter: none;
  --dm-theme-image-shadow: 0 18px 48px rgba(47, 35, 25, .15);
  --dm-theme-canvas: url("../images/texture-eggshell-v1.webp");
  --dm-theme-canvas-size: 640px 640px;

  --dm-paper: #f6f1e8;
  --dm-white: #fcf8f1;
  --dm-ink: #201d18;
  --dm-muted: #5d574f;
  --dm-line: #d8d0c4;
  --dm-soft: #eae1d4;
  --dm-rust: #7e3022;
  --dm-forest: #24372e;
  --dm-gold: #b38a4d;
  --dm-butter: #d9b65a;
  --dm-coral: #c66349;
  --dm-blush: #e4ccc2;
  --dm-blue: #657693;
  --dm-cream: #efe5d5;

  --dm-nav-cream: #fff9ef;
  --dm-nav-paper: #f6eadb;
  --dm-nav-ink: #211d18;
  --dm-nav-muted: #65594e;
  --dm-nav-green: #173b31;
  --dm-nav-green-2: #244a3d;
  --dm-nav-rust: #9b4a35;
  --dm-nav-coral: #d47759;
  --dm-nav-butter: #efc965;
  --dm-nav-line: rgba(41, 48, 39, .17);
  --dm-nav-shadow: 0 24px 70px rgba(38, 28, 20, .2);
}

html[data-dm-theme="dark"] {
  color-scheme: dark;
  --dm-theme-page: #101713;
  --dm-theme-panel: #17211c;
  --dm-theme-panel-2: #1d2a23;
  --dm-theme-panel-3: #26332b;
  --dm-theme-ink: #f1e8dc;
  --dm-theme-muted: #c1b4a5;
  --dm-theme-line: rgba(238, 226, 210, .16);
  --dm-theme-deep: #0d1914;
  --dm-theme-deep-2: #09110e;
  --dm-theme-link: #f0c978;
  --dm-theme-gold: #efc96d;
  --dm-theme-ember: #e17b5f;
  --dm-theme-moon: #9baac7;
  --dm-theme-shadow: 0 28px 80px rgba(0, 0, 0, .36);
  --dm-theme-image-filter: none;
  --dm-theme-image-shadow: 0 24px 66px rgba(0, 0, 0, .4);
  --dm-theme-canvas:
    radial-gradient(circle at 8% -4%, rgba(216, 120, 87, .14), transparent 31rem),
    radial-gradient(circle at 91% 5%, rgba(121, 143, 177, .13), transparent 34rem),
    radial-gradient(circle at 52% 84%, rgba(218, 180, 91, .055), transparent 40rem),
    linear-gradient(145deg, #101713, #111b16 48%, #0d1511),
    url("../images/texture-eggshell-v1.webp");
  --dm-theme-canvas-size: auto, auto, auto, auto, 640px 640px;

  --dm-paper: #101713;
  --dm-white: #17211c;
  --dm-ink: #f1e8dc;
  --dm-muted: #c1b4a5;
  --dm-line: rgba(238, 226, 210, .16);
  --dm-soft: #26332b;
  --dm-rust: #e17b5f;
  --dm-forest: #284b3d;
  --dm-gold: #ddb766;
  --dm-butter: #efc96d;
  --dm-coral: #e17b5f;
  --dm-blush: #66443f;
  --dm-blue: #9baac7;
  --dm-cream: #1d2a23;

  --dm-nav-cream: #17211c;
  --dm-nav-paper: #202b24;
  --dm-nav-ink: #f2e8db;
  --dm-nav-muted: #c2b4a4;
  --dm-nav-green: #efce82;
  --dm-nav-green-2: #d6b36a;
  --dm-nav-rust: #ee8a6d;
  --dm-nav-coral: #ee8a6d;
  --dm-nav-butter: #f0cb73;
  --dm-nav-line: rgba(239, 228, 213, .17);
  --dm-nav-shadow: 0 30px 86px rgba(0, 0, 0, .5);

  --wp--preset--color--ivory: #101713;
  --wp--preset--color--paper: #17211c;
  --wp--preset--color--ink: #f1e8dc;
  --wp--preset--color--forest: #efce82;
  --wp--preset--color--sage: #26332b;
  --wp--preset--color--terracotta: #e17b5f;
  --wp--preset--color--gold: #ddb766;
  --wp--preset--color--blush: #66443f;
  --wp--preset--color--butter: #efc96d;
  --wp--preset--color--coral: #e17b5f;
  --wp--preset--color--blue: #9baac7;
}

/* --------------------------------------------------------------------------
   Toggle: a small moving eclipse, with no non-functional no-JS control
   -------------------------------------------------------------------------- */

.dm-theme-toggle {
  position: relative;
  display: inline-grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  place-items: center;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--dm-shell-deep, var(--dm-theme-deep)) 22%, transparent);
  border-radius: 50%;
  color: var(--dm-shell-deep, var(--dm-theme-deep));
  background: color-mix(in srgb, var(--dm-shell-paper, var(--dm-theme-panel)) 88%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, .52), 0 8px 24px rgba(35, 31, 25, .08);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transform: translateY(2px);
  transition: color 280ms var(--dm-theme-transition), background-color 280ms var(--dm-theme-transition), border-color 280ms var(--dm-theme-transition), box-shadow 280ms var(--dm-theme-transition), opacity 180ms ease, transform 280ms var(--dm-theme-transition);
}

html.dm-theme-ready .dm-theme-toggle {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dm-theme-toggle:hover,
.dm-theme-toggle:focus-visible {
  border-color: var(--dm-theme-ember);
  color: var(--dm-theme-ember);
  background: var(--dm-theme-panel);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--dm-theme-ember) 12%, transparent), 0 12px 30px rgba(22, 21, 18, .14);
}

.dm-theme-toggle__orbit,
.dm-theme-toggle svg {
  display: block;
  width: 29px;
  height: 29px;
}

.dm-theme-toggle svg {
  overflow: visible;
  transform: rotate(-11deg);
  transition: transform 520ms var(--dm-theme-transition);
}

.dm-theme-toggle__ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-dasharray: 4 5;
  opacity: .42;
  transform-origin: 16px 16px;
}

.dm-theme-toggle__moon,
.dm-theme-toggle__sun,
.dm-theme-toggle__ray {
  transform-origin: 16px 16px;
  transition: opacity 320ms ease, transform 520ms var(--dm-theme-transition), fill 320ms ease, stroke 320ms ease;
}

.dm-theme-toggle__moon { fill: currentColor; opacity: 1; }
.dm-theme-toggle__sun { fill: var(--dm-theme-gold); opacity: 0; transform: scale(.48); }
.dm-theme-toggle__ray { fill: none; stroke: var(--dm-theme-gold); stroke-width: 1.35; stroke-linecap: round; opacity: 0; transform: scale(.55) rotate(-25deg); }

html[data-dm-theme="dark"] .dm-theme-toggle {
  border-color: rgba(239, 201, 109, .34);
  color: var(--dm-theme-gold);
  background: rgba(255, 248, 232, .055);
  box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 0 28px rgba(239, 201, 109, .08);
}

html[data-dm-theme="dark"] .dm-theme-toggle svg { transform: rotate(18deg); }
html[data-dm-theme="dark"] .dm-theme-toggle__ring { animation: dm-v20-orbit 12s linear infinite; }
html[data-dm-theme="dark"] .dm-theme-toggle__moon { opacity: 0; transform: scale(.45) rotate(35deg); }
html[data-dm-theme="dark"] .dm-theme-toggle__sun { opacity: 1; transform: scale(1); }
html[data-dm-theme="dark"] .dm-theme-toggle__ray { opacity: .84; transform: scale(1) rotate(0); }

.dm-theme-toggle::after {
  position: absolute;
  z-index: 12;
  top: calc(100% + .55rem);
  right: 0;
  width: max-content;
  max-width: 10rem;
  padding: .42rem .62rem;
  border: 1px solid var(--dm-theme-line);
  border-radius: 999px;
  color: var(--dm-theme-ink);
  background: color-mix(in srgb, var(--dm-theme-panel) 94%, transparent);
  box-shadow: var(--dm-theme-shadow);
  content: attr(data-dm-theme-tooltip);
  font: 760 .64rem/1 var(--dm-sans);
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 220ms var(--dm-theme-transition);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.dm-theme-toggle:hover::after,
.dm-theme-toggle:focus-visible::after { opacity: 1; transform: none; }

/* The third tool receives a real grid track rather than squeezing search. */
body.dm-human-warmth .dm-site-header .dm-brand-tools {
  display: grid !important;
  grid-template-columns: 48px minmax(230px, 340px) !important;
}

body.dm-human-warmth .dm-site-header .dm-theme-toggle { grid-column: 1; }
body.dm-human-warmth .dm-site-header .dm-header-search { width: 100% !important; min-width: 0; grid-column: 2; }

@media (min-width: 901px) {
  html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-brand-tools {
    grid-template-columns: auto 48px minmax(230px, 340px) !important;
  }
  html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-atmosphere-edition {
    display: inline-flex !important;
    grid-column: 1;
  }
  html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-theme-toggle { grid-column: 2; }
  html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-header-search { grid-column: 3; }
}

/* --------------------------------------------------------------------------
   Page and transition atmosphere
   -------------------------------------------------------------------------- */

html[data-dm-theme="dark"] body {
  color: var(--dm-theme-ink);
  background-color: var(--dm-theme-page) !important;
  background-image: var(--dm-theme-canvas) !important;
  background-size: var(--dm-theme-canvas-size) !important;
  background-blend-mode: screen, screen, screen, normal, soft-light;
}

html[data-dm-theme="dark"] body.dm-article-edition { overflow-x: clip; }

html[data-dm-theme="dark"] :is(a, button, input, textarea, select):focus-visible {
  outline-color: var(--dm-theme-gold);
  box-shadow: 0 0 0 6px rgba(10, 18, 14, .92);
}

html[data-dm-theme="dark"] ::selection {
  color: #101713;
  background: #efc96d;
}

html[data-dm-theme="dark"] main img {
  filter: var(--dm-theme-image-filter);
  transition: filter 360ms var(--dm-theme-transition), transform 420ms var(--dm-theme-transition), box-shadow 360ms ease;
}

html[data-dm-theme="dark"] main :is(a:hover, a:focus-visible) img,
html[data-dm-theme="dark"] main button:hover img { filter: brightness(1) saturate(1) contrast(1.02); }

html[data-dm-theme="dark"] :is(.dm-article-image, .dm-story-photo, .dm-edit-scene, .dm-library-card img, .dm-desk-story__image, .dm-experience-card__image) {
  box-shadow: var(--dm-theme-image-shadow);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 520ms;
  animation-timing-function: var(--dm-theme-transition);
}

::view-transition-old(root) { animation-name: dm-v20-fade-out; }
::view-transition-new(root) { animation-name: dm-v20-fade-in; }

/* --------------------------------------------------------------------------
   Midnight masthead and discovery layers
   -------------------------------------------------------------------------- */

html[data-dm-theme="dark"] .dm-site-header,
html[data-dm-theme="dark"] .dm-site-footer {
  --dm-shell-paper: #111a16;
  --dm-shell-soft: #26342c;
  --dm-shell-ink: #f2e8dc;
  --dm-shell-muted: #c2b5a6;
  --dm-shell-accent: #e17b5f;
  --dm-shell-accent-strong: #f2ad8f;
  --dm-shell-deep: #14251d;
  --dm-shell-deep-2: #09130f;
  --dm-shell-gold: #efc96d;
  --dm-shell-on-deep: #f6eee2;
  --dm-shell-on-deep-muted: #c9beb0;
  --dm-shell-line: rgba(239, 226, 210, .16);
}

html[data-dm-theme="dark"] .dm-site-header {
  overflow-x: clip;
  border-bottom-color: rgba(239, 201, 109, .12);
  background:
    radial-gradient(ellipse at 87% -18%, rgba(143, 161, 194, .17), transparent 30rem),
    radial-gradient(ellipse at 16% -36%, rgba(225, 123, 95, .16), transparent 29rem),
    linear-gradient(136deg, rgba(17, 27, 22, .97), rgba(12, 20, 16, .98)) !important;
  box-shadow: 0 1px rgba(239, 226, 210, .08), 0 18px 55px rgba(0, 0, 0, .18);
}

/* v16 deliberately hid the decorative masthead while the header was being
   rebuilt. Night mode brings the quiet line work back as its visual signature. */
html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header::before,
html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header::after,
html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-header-art {
  display: block !important;
}

html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header::before,
html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header::after {
  right: 0 !important;
  max-width: 100%;
}

html[data-dm-theme="dark"] .dm-site-header::before {
  border-color: rgba(239, 201, 109, .19);
  background: radial-gradient(circle at 37% 36%, rgba(225, 123, 95, .09), rgba(155, 170, 199, .045) 48%, transparent 70%);
  box-shadow: inset 0 0 5rem rgba(239, 201, 109, .025), 0 0 7rem rgba(143, 161, 194, .05);
  opacity: .88;
}

html[data-dm-theme="dark"] .dm-site-header::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 201, 109, .62), rgba(155, 170, 199, .32), transparent);
  opacity: .7;
}

html[data-dm-theme="dark"] .dm-site-header .dm-shell-art {
  color: var(--dm-theme-gold);
  filter: drop-shadow(0 0 20px rgba(239, 201, 109, .07));
  opacity: .76;
}

html[data-dm-theme="dark"] .dm-site-header .dm-art-field--one { fill: rgba(147, 164, 195, .12); }
html[data-dm-theme="dark"] .dm-site-header .dm-art-field--two { fill: rgba(225, 123, 95, .1); }
html[data-dm-theme="dark"] .dm-site-header .dm-logo-door { fill: #f1e8dc; }
html[data-dm-theme="dark"] .dm-site-header .dm-logo-light { fill: var(--dm-theme-gold); filter: drop-shadow(0 0 7px rgba(239, 201, 109, .42)); }

html[data-dm-theme="dark"] .dm-site-header .dm-topline-story > a,
html[data-dm-theme="dark"] .dm-site-header .dm-atmosphere-edition {
  border-color: rgba(239, 226, 210, .15);
  background: rgba(246, 238, 226, .045);
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 9px 26px rgba(0, 0, 0, .16);
}

html[data-dm-theme="dark"] .dm-site-header .dm-header-search .wp-block-search__inside-wrapper {
  border-color: rgba(239, 226, 210, .17);
  background: rgba(246, 238, 226, .055);
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 12px 32px rgba(0, 0, 0, .18);
}

html[data-dm-theme="dark"] .dm-site-header .dm-header-search:focus-within .wp-block-search__inside-wrapper {
  border-color: rgba(239, 201, 109, .6);
  background: #17211c;
  box-shadow: 0 0 0 4px rgba(239, 201, 109, .1), 0 18px 44px rgba(0, 0, 0, .3);
}

html[data-dm-theme="dark"] .dm-site-header .dm-header-search .wp-block-search__input,
html[data-dm-theme="dark"] .dm-site-header .dm-header-search .wp-block-search__input::placeholder { color: var(--dm-shell-ink); }
html[data-dm-theme="dark"] .dm-site-header .dm-header-search .wp-block-search__input::placeholder { opacity: .63; }

html[data-dm-theme="dark"] .dm-site-header .dm-nav-bar {
  border-bottom-color: rgba(239, 201, 109, .18);
  background:
    radial-gradient(circle at 16% 180%, rgba(225, 123, 95, .17), transparent 32%),
    radial-gradient(circle at 82% 160%, rgba(155, 170, 199, .13), transparent 31%),
    linear-gradient(112deg, #08120e, #10231a 55%, #182d23) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .065), 0 9px 28px rgba(0, 0, 0, .26);
}

html[data-dm-theme="dark"] .dm-nav-panel {
  border-color: rgba(239, 226, 210, .17);
  border-top-color: var(--dm-theme-gold);
  background:
    radial-gradient(circle at 95% 0, rgba(155, 170, 199, .12), transparent 18rem),
    radial-gradient(circle at 4% 100%, rgba(225, 123, 95, .1), transparent 19rem),
    linear-gradient(138deg, #18231d, #121b17) !important;
}

html[data-dm-theme="dark"] .dm-nav-panel :is(.dm-nav-panel__aside, .dm-nav-panel__latest, .dm-nav-panel-aside),
html[data-dm-theme="dark"] .dm-nav-panel li a:hover,
html[data-dm-theme="dark"] .dm-nav-panel li a:focus-visible {
  background: rgba(246, 238, 226, .055);
}

html[data-dm-theme="dark"] :is(.dm-nav-drawer__surface, .dm-reading-sheet) {
  color: var(--dm-nav-ink);
  background:
    radial-gradient(circle at 100% 0, rgba(155, 170, 199, .11), transparent 22rem),
    linear-gradient(145deg, #18231d, #121b17) !important;
}

html[data-dm-theme="dark"] :is(.dm-nav-drawer__search input, .dm-reading-sheet header button) {
  border-color: var(--dm-nav-line);
  color: var(--dm-nav-ink);
  background: rgba(246, 238, 226, .06);
}

html[data-dm-theme="dark"] .dm-nav-drawer__shortcuts a { background: rgba(246, 238, 226, .045); }

html[data-dm-theme="dark"] .dm-context-trail {
  border-color: var(--dm-theme-line);
  color: var(--dm-theme-muted);
  background: rgba(17, 27, 22, .9);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

html[data-dm-theme="dark"] .dm-context-trail__facets a {
  border-color: var(--dm-theme-line);
  background: rgba(246, 238, 226, .045);
}

html[data-dm-theme="dark"] .dm-context-trail__facets > span { background: transparent; }

/* --------------------------------------------------------------------------
   Home: inhabited night, not an empty black page
   -------------------------------------------------------------------------- */

html[data-dm-theme="dark"] .dm-home-page { color: var(--dm-theme-ink); background: transparent !important; }

html[data-dm-theme="dark"] :is(.dm-home-hero--alive, .dm-alive-hero, .dm-home-hero--human) {
  color: var(--dm-theme-ink);
  background:
    radial-gradient(ellipse at 74% 15%, rgba(155, 170, 199, .16), transparent 29rem),
    radial-gradient(ellipse at 16% 78%, rgba(225, 123, 95, .13), transparent 28rem),
    linear-gradient(135deg, #152019, #101713 54%, #17221c) !important;
}

html[data-dm-theme="dark"] :is(.dm-alive-hero, .dm-home-hero--human) :is(h1, h2, .dm-edition-title) { color: #f4eadf !important; }
html[data-dm-theme="dark"] :is(.dm-alive-hero__dek, .dm-alive-hero__note, .dm-home-hero__intro) { color: var(--dm-theme-muted) !important; }
html[data-dm-theme="dark"] .dm-alive-hero__welcome { color: var(--dm-theme-gold); }

html[data-dm-theme="dark"] .dm-alive-hero__actions > a:not(.dm-alive-hero__primary) {
  color: #efc96d !important;
  text-decoration-color: rgba(239, 201, 109, .54);
}

html[data-dm-theme="dark"] .dm-alive-hero__actions > a:not(.dm-alive-hero__primary):is(:hover, :focus-visible) {
  color: #fff4de !important;
  text-decoration-color: currentColor;
}

html[data-dm-theme="dark"] :is(.dm-alive-hero__story, .dm-alive-hero__detail, .dm-alive-hero__note) {
  border-color: var(--dm-theme-line) !important;
  color: var(--dm-theme-ink) !important;
  background: color-mix(in srgb, var(--dm-theme-panel) 94%, transparent) !important;
  box-shadow: var(--dm-theme-shadow) !important;
}

html[data-dm-theme="dark"] :is(.dm-alive-hero__story, .dm-alive-hero__detail, .dm-alive-hero__note) :is(h2, strong, a) { color: var(--dm-theme-ink) !important; }
html[data-dm-theme="dark"] :is(.dm-alive-hero__story, .dm-alive-hero__detail, .dm-alive-hero__note) :is(p, span) { color: var(--dm-theme-muted) !important; }

html[data-dm-theme="dark"] :is(.dm-lived-letter, .dm-useful-edit, .dm-field-notes, .dm-visual-library, .dm-my-rooms, .dm-guide-finder) {
  color: var(--dm-theme-ink);
  background-color: transparent !important;
  background-image: none !important;
}

html[data-dm-theme="dark"] :is(.dm-lived-letter__copy, .dm-lived-letter__aside, .dm-field-note-card, .dm-library-card, .dm-my-rooms__shell, .dm-finder-form, .dm-experience-card__body, .dm-useful-intro) {
  border-color: var(--dm-theme-line) !important;
  color: var(--dm-theme-ink);
  background: color-mix(in srgb, var(--dm-theme-panel) 94%, transparent) !important;
  box-shadow: var(--dm-theme-shadow);
}

html[data-dm-theme="dark"] :is(.dm-lived-letter__copy, .dm-field-note-card, .dm-library-card, .dm-my-rooms__shell, .dm-experience-card__body) :is(h2, h3, h4, strong) { color: var(--dm-theme-ink) !important; }

html[data-dm-theme="dark"] :is(.dm-lived-letter__copy, .dm-field-note-card, .dm-library-card, .dm-my-rooms__shell, .dm-experience-card__body) :is(p, small) { color: var(--dm-theme-muted); }

html[data-dm-theme="dark"] .dm-desk-stream {
  color: #f4eadf;
  background:
    radial-gradient(circle at 13% 4%, rgba(225, 123, 95, .13), transparent 30rem),
    radial-gradient(circle at 89% 52%, rgba(155, 170, 199, .11), transparent 32rem),
    linear-gradient(145deg, #09130f, #10231a 54%, #0c1813) !important;
}

html[data-dm-theme="dark"] .dm-desk-stream :is(h2, h3, .dm-desk-story__read) { color: #f4eadf !important; }
html[data-dm-theme="dark"] .dm-desk-stream :is(p, .dm-desk-story__excerpt) { color: #c8bcae !important; }

html[data-dm-theme="dark"] .dm-desk-story {
  border-color: rgba(239, 226, 210, .16) !important;
  background: rgba(246, 238, 226, .035) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

html[data-dm-theme="dark"] .dm-atmosphere-portal {
  color: #f3eade;
  background:
    radial-gradient(circle at 50% -5%, rgba(239, 201, 109, .12), transparent 30rem),
    linear-gradient(160deg, #0d1914, #111f18 48%, #0c1511) !important;
}

html[data-dm-theme="dark"] .dm-atmosphere-portal :is(h2, h3) { color: #f3eade !important; }
html[data-dm-theme="dark"] .dm-atmosphere-portal :is(p, small) { color: #c8bcae !important; }
html[data-dm-theme="dark"] .dm-atmosphere-portal__card { border-color: rgba(239, 226, 210, .16); background: rgba(246, 238, 226, .045); }

html[data-dm-theme="dark"] .dm-reset-lab {
  color: #f4eadf;
  background:
    radial-gradient(circle at 12% 12%, rgba(225, 123, 95, .13), transparent 26rem),
    radial-gradient(circle at 86% 78%, rgba(155, 170, 199, .13), transparent 27rem),
    linear-gradient(135deg, #0b1812, #173126 58%, #0c1b14) !important;
}

html[data-dm-theme="dark"] .dm-reset-lab :is(h2, h3, strong) { color: #f4eadf !important; }
html[data-dm-theme="dark"] .dm-reset-lab :is(p, label) { color: #cbbfb0 !important; }

html[data-dm-theme="dark"] :is(.dm-reset-lab__controls, .dm-reset-lab__result, .dm-project-list, .dm-my-rooms__board, .dm-my-rooms__empty) {
  border-color: rgba(239, 226, 210, .17) !important;
  color: var(--dm-theme-ink);
  background: rgba(246, 238, 226, .055) !important;
}

html[data-dm-theme="dark"] :is(.dm-finder-form, .dm-project-tool, .dm-contact-content) :is(input, textarea, select) {
  border-color: var(--dm-theme-line) !important;
  color: var(--dm-theme-ink) !important;
  background: #121d18 !important;
}

html[data-dm-theme="dark"] :is(.dm-finder-form, .dm-project-tool, .dm-contact-content) :is(input, textarea)::placeholder { color: var(--dm-theme-muted); opacity: .72; }

html[data-dm-theme="dark"] .dm-finder-form :is(label, label span) { color: var(--dm-theme-muted) !important; }

html[data-dm-theme="dark"] :is(.dm-section-head, .dm-finder-head, .dm-field-notes__header) :is(h2, h3) { color: var(--dm-theme-ink) !important; }
html[data-dm-theme="dark"] :is(.dm-section-head, .dm-finder-head, .dm-field-notes__header) p { color: var(--dm-theme-muted) !important; }

/* --------------------------------------------------------------------------
   Complete guide directory and general query surfaces
   -------------------------------------------------------------------------- */

html[data-dm-theme="dark"] .dm-guide-directory {
  color: var(--dm-nav-ink);
  background:
    radial-gradient(circle at 0 4%, rgba(239, 201, 109, .11), transparent 31rem),
    radial-gradient(circle at 100% 14%, rgba(225, 123, 95, .095), transparent 33rem),
    radial-gradient(circle at 52% 52%, rgba(155, 170, 199, .045), transparent 42rem),
    linear-gradient(180deg, #111a16, #0f1713 54%, #121c17) !important;
}

html[data-dm-theme="dark"] .dm-guide-directory__hero::after,
html[data-dm-theme="dark"] .dm-directory-hero::after { border-color: rgba(239, 201, 109, .25); box-shadow: 0 0 60px rgba(239, 201, 109, .045); }

html[data-dm-theme="dark"] .dm-guide-directory .dm-finder-form {
  border-color: var(--dm-nav-line) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(155, 170, 199, .09), transparent 20rem),
    rgba(24, 35, 29, .94) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .3);
}

html[data-dm-theme="dark"] .dm-guide-directory :is(input, select) {
  border-color: var(--dm-nav-line) !important;
  color: var(--dm-nav-ink) !important;
  background: #111b16 !important;
}

html[data-dm-theme="dark"] .dm-guide-directory__empty {
  border-color: var(--dm-nav-line);
  background: linear-gradient(115deg, #1b2720, #142019) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

html[data-dm-theme="dark"] .dm-guide-directory .dm-finder-footer {
  border-color: var(--dm-nav-line);
  color: var(--dm-nav-ink);
  background: rgba(18, 28, 23, .93);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .32);
}

html[data-dm-theme="dark"] :is(.dm-query-grid .wp-block-post, .wp-block-query .wp-block-post, .dm-empty-collection, .dm-empty-routes a) {
  border-color: var(--dm-theme-line) !important;
  color: var(--dm-theme-ink) !important;
  background: var(--dm-theme-panel) !important;
}

html[data-dm-theme="dark"] :is(.wp-block-post-title a, .dm-query-grid a, .dm-read-link) { color: var(--dm-theme-link); }

/* Search suggestions share the masthead but are created by the reader script. */
html[data-dm-theme="dark"] .dm-search-assist {
  border-color: var(--dm-theme-line);
  color: var(--dm-theme-ink);
  background: #17211c;
  box-shadow: 0 24px 62px rgba(0, 0, 0, .46);
}

html[data-dm-theme="dark"] .dm-search-assist :is(.dm-search-assist-label, small) { color: var(--dm-theme-muted); }
html[data-dm-theme="dark"] .dm-search-assist li + li { border-color: var(--dm-theme-line); }
html[data-dm-theme="dark"] .dm-search-assist a { color: var(--dm-theme-ink); }
html[data-dm-theme="dark"] .dm-search-assist a:hover,
html[data-dm-theme="dark"] .dm-search-assist a:focus-visible { background: var(--dm-theme-panel-3); }

/* --------------------------------------------------------------------------
   Articles: keep seven personalities, move every one into evening
   -------------------------------------------------------------------------- */

html[data-dm-theme="dark"] body.dm-article-edition.dm-atmosphere {
  --dm-atm-page: #101713;
  --dm-atm-paper: #18221d;
  --dm-atm-soft: #26332b;
  --dm-atm-ink: #f1e8dc;
  --dm-atm-muted: #c1b4a5;
  --dm-atm-accent-strong: color-mix(in srgb, var(--dm-atm-accent) 72%, #ffe7d3);
  --dm-atm-on-deep: #f6eee2;
  --dm-atm-on-deep-muted: #c9beb0;
  --dm-atm-line: rgba(239, 226, 210, .16);
  --dm-atm-shadow: rgba(0, 0, 0, .34);
  --dm-atm-opening-surface: #18221d;
  --dm-atm-opening-ink: #f1e8dc;
  --dm-atm-opening-muted: #c1b4a5;
  --dm-atm-opening-kicker: color-mix(in srgb, var(--dm-atm-accent) 72%, #ffe7d3);
  --dm-atm-opening-line: rgba(239, 226, 210, .16);
  --dm-atm-hero-texture: linear-gradient(118deg, rgba(255, 255, 255, .045), rgba(155, 170, 199, .025));
  --dm-atm-opening-texture: linear-gradient(118deg, rgba(255, 255, 255, .035), rgba(225, 123, 95, .018)), url("../images/texture-eggshell-v1.webp");
  --dm-atm-panel-texture: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  --dm-atm-diagram-texture: linear-gradient(120deg, rgba(255, 255, 255, .045), rgba(155, 170, 199, .025)), url("../images/texture-eggshell-v1.webp");
  --dm-v11-wash: #202c25;
  color: var(--dm-atm-ink);
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--dm-atm-accent) 10%, transparent), transparent 28rem),
    radial-gradient(circle at 92% 14%, color-mix(in srgb, var(--dm-atm-secondary) 8%, transparent), transparent 31rem),
    linear-gradient(150deg, #101713, #111a16 52%, #0d1511) #101713 !important;
}

html[data-dm-theme="dark"] body.dm-atmosphere--air { --dm-atm-paper: #172124; --dm-atm-soft: #253238; }
html[data-dm-theme="dark"] body.dm-atmosphere--gallery { --dm-atm-paper: #201c20; --dm-atm-soft: #342831; }
html[data-dm-theme="dark"] body.dm-atmosphere--glow { --dm-atm-paper: #211d17; --dm-atm-soft: #382f20; }
html[data-dm-theme="dark"] body.dm-atmosphere--studio { --dm-atm-paper: #171f1b; --dm-atm-soft: #28312b; }
html[data-dm-theme="dark"] body.dm-atmosphere--rhythm { --dm-atm-paper: #1b1d23; --dm-atm-soft: #2c2d39; }
html[data-dm-theme="dark"] body.dm-atmosphere--retreat { --dm-atm-paper: #1b2019; --dm-atm-soft: #2b3327; }
html[data-dm-theme="dark"] body.dm-atmosphere--outdoors { --dm-atm-paper: #132119; --dm-atm-soft: #233729; }

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-single, .dm-content-shell, .dm-article-opening, .dm-article-content) { color: var(--dm-atm-ink); background-color: transparent; }

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-article-title-group, .dm-article-intro, .dm-edition-opening, .dm-guide-experience, .dm-guide-context, .dm-edition-chapter, .dm-edition-diagram, .dm-edition-board, .dm-saveable-plate__paper, .dm-callout, .dm-faq, .dm-sources, .dm-production-note, .dm-checklist, .dm-mid-route, .dm-article-lab, .dm-pin-guide, .dealsmaster-voice-card) {
  border-color: var(--dm-atm-line) !important;
  color: var(--dm-atm-ink);
  background-color: color-mix(in srgb, var(--dm-atm-paper) 96%, transparent) !important;
  box-shadow: 0 22px 62px var(--dm-atm-shadow);
}

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-article-title-group, .dm-article-intro, .dm-edition-opening, .dm-guide-experience, .dm-guide-context, .dm-edition-chapter, .dm-edition-diagram, .dm-edition-board, .dm-saveable-plate__paper, .dm-callout, .dm-faq, .dm-sources, .dm-production-note, .dm-checklist, .dm-mid-route, .dm-article-lab, .dealsmaster-voice-card) :is(h1, h2, h3, h4, strong, summary) { color: var(--dm-atm-ink) !important; }

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-article-content, .dm-article-intro, .dm-edition-opening, .dm-edition-chapter, .dm-edition-diagram, .dm-edition-board, .dm-callout, .dm-faq, .dm-sources, .dm-production-note, .dm-checklist, .dm-article-lab, .dealsmaster-voice-card) :is(p, li, figcaption, small, td, th) { color: var(--dm-atm-muted); }

html[data-dm-theme="dark"] body.dm-article-edition .dm-article-content :is(h2, h3, h4) { color: var(--dm-atm-ink) !important; text-shadow: 0 1px rgba(0, 0, 0, .22); }
html[data-dm-theme="dark"] body.dm-article-edition .dm-article-content a { color: var(--dm-atm-accent-strong); text-decoration-color: color-mix(in srgb, var(--dm-atm-accent) 55%, transparent); }

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-edition-detail__media, .dm-story-route__media, .dm-edition-board__image, .dm-article-hero figure) {
  border-color: var(--dm-atm-line) !important;
  background: #0b120f !important;
  box-shadow: 0 24px 66px rgba(0, 0, 0, .38);
}

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-edition-diagram__plot, .dm-summary-table table, .dm-summary-table tr, .dm-edition-board__key li, .dm-unit-control button, .dm-guide-resume) {
  border-color: var(--dm-atm-line) !important;
  color: var(--dm-atm-ink) !important;
  background: color-mix(in srgb, var(--dm-atm-paper) 92%, #0c1410) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-summary-table :is(th, td) { border-color: var(--dm-atm-line) !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-summary-table th { color: var(--dm-atm-ink) !important; background: color-mix(in srgb, var(--dm-atm-soft) 78%, #0d1511) !important; }

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-reader-button, .dm-unit-control button, .dm-guide-quickbar a, .dm-guide-quickbar button) {
  border-color: var(--dm-atm-line) !important;
  color: var(--dm-atm-ink) !important;
  background: rgba(246, 238, 226, .055) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-reader-button:hover, .dm-reader-button:focus-visible, .dm-unit-control button[aria-pressed="true"]) {
  border-color: var(--dm-atm-secondary) !important;
  color: #111813 !important;
  background: var(--dm-atm-secondary) !important;
}

/* The companion was intentionally forced to light paper in v14. Recast the
   exact local tokens so its sticky instrument remains calm and readable. */
html[data-dm-theme="dark"] body .dm-guide-experience {
  --dm-guide-paper: #17211c !important;
  --dm-guide-paper-2: #202c25 !important;
  --dm-guide-ink: #f1e8dc !important;
  --dm-guide-muted: #c1b4a5 !important;
  --dm-guide-active: #efc96d !important;
  --dm-guide-deep: #0d1914 !important;
  --dm-guide-line: rgba(239, 226, 210, .18) !important;
  --dm-guide-tint: rgba(239, 201, 109, .1) !important;
  color: var(--dm-guide-ink) !important;
  background-color: var(--dm-guide-paper) !important;
  background-image: radial-gradient(circle at 94% -2%, rgba(155, 170, 199, .12), transparent 31%), linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 52%) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .38), 7px 7px 0 rgba(239, 201, 109, .045) !important;
}

html[data-dm-theme="dark"] body .dm-guide-experience :is(.dm-reader-button, .dm-unit-control button) {
  border-color: var(--dm-guide-line) !important;
  color: var(--dm-guide-ink) !important;
  background: rgba(246, 238, 226, .055) !important;
}

html[data-dm-theme="dark"] body .dm-guide-experience :is(.dm-reader-button, .dm-unit-control button):hover { background: var(--dm-guide-tint) !important; }
html[data-dm-theme="dark"] body .dm-guide-experience :is(.dm-reader-button, .dm-unit-control button)[aria-pressed="true"] { color: #101713 !important; background: var(--dm-theme-gold) !important; }

html[data-dm-theme="dark"] body.dm-article-edition.dm-atmosphere :is(.dm-edition-detail__label, .dm-edition-detail__eyebrow, .dm-edition-key li, .dm-edition-diagram__head h3) { color: var(--dm-atm-ink) !important; }

html[data-dm-theme="dark"] body.dm-article-edition.dm-atmosphere .dm-edition-board figcaption strong { color: var(--dm-atm-ink) !important; }

html[data-dm-theme="dark"] body.dm-article-edition :is(figcaption, .wp-element-caption) { color: var(--dm-atm-muted) !important; }

/* Later homepage repair sheets force this section back to cream. In night
   mode the same information becomes a raised, warm-black editorial plate. */
html[data-dm-theme="dark"] body.dm-human-warmth.home .dm-useful-edit,
html[data-dm-theme="dark"] body.dm-human-warmth.home .dm-useful-edit .dm-useful-intro {
  color: var(--dm-theme-ink) !important;
  background-color: transparent !important;
}

html[data-dm-theme="dark"] body.dm-human-warmth.home .dm-useful-edit .dm-useful-intro h2,
html[data-dm-theme="dark"] body.dm-human-warmth.home .dm-useful-edit .dm-edit-list strong { color: var(--dm-theme-ink) !important; }
html[data-dm-theme="dark"] body.dm-human-warmth.home .dm-useful-edit .dm-useful-intro > p:not(.dm-kicker),
html[data-dm-theme="dark"] body.dm-human-warmth.home .dm-useful-edit .dm-edit-list p { color: var(--dm-theme-muted) !important; }
html[data-dm-theme="dark"] body.dm-human-warmth.home .dm-useful-edit .dm-kicker,
html[data-dm-theme="dark"] body.dm-human-warmth.home .dm-useful-edit .dm-edit-list > li > span { color: var(--dm-theme-ember) !important; }
html[data-dm-theme="dark"] body.dm-human-warmth.home .dm-useful-edit .dm-useful-actions a { color: var(--dm-theme-gold) !important; }

/* These v19 components use --dm-nav-green as a filled surface. It is an
   accent text colour in night mode, so filled controls receive their own ink. */
html[data-dm-theme="dark"] :is(.dm-guide-directory__empty a, .dm-nav-drawer__search button, .dm-nav-drawer__latest) {
  color: #f6eee2;
  background: #173b31;
}

html[data-dm-theme="dark"] :is(.dm-nav-drawer__close, .dm-reading-sheet header button) {
  border-color: var(--dm-nav-line);
  color: var(--dm-theme-gold);
  background: rgba(246, 238, 226, .055);
}

html[data-dm-theme="dark"] .dm-reading-sheet__meter { background: rgba(246, 238, 226, .12); }
html[data-dm-theme="dark"] .dm-reading-sheet__meter span { background: linear-gradient(90deg, var(--dm-nav-coral), var(--dm-theme-gold)); }
html[data-dm-theme="dark"] .dm-reading-sheet a[aria-current="location"] { color: var(--dm-theme-gold); background: rgba(246, 238, 226, .065); }

html[data-dm-theme="dark"] body.dm-article-edition .dm-guide-progress { background: rgba(246, 238, 226, .11); }
html[data-dm-theme="dark"] body.dm-article-edition .dm-guide-progress span { background: linear-gradient(90deg, var(--dm-atm-accent), var(--dm-atm-secondary)); }

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-next-move--butter, .dm-next-move--sage, .dm-next-move--blush, .dm-next-move--blue) {
  border-color: var(--dm-atm-line) !important;
  color: var(--dm-atm-ink) !important;
  background: color-mix(in srgb, var(--dm-atm-soft) 72%, #101713) !important;
}

/* --------------------------------------------------------------------------
   Bespoke guide systems: translate their paper language, do not erase it
   -------------------------------------------------------------------------- */

/* Several finished guides carry their own local design tokens in the article
   body. These adapters preserve each accent family while moving its canvas,
   ink and raised sheets into the same after-hours house. */
html[data-dm-theme="dark"] body.dm-article-edition .dm-gr {
  --dm-gr-ink: #f1e8dc; --dm-gr-plum: #c78ca9; --dm-gr-rose: #e6a79b;
  --dm-gr-blue: #9fbec8; --dm-gr-cream: #151f1a; --dm-gr-card: #1d2922;
  --dm-gr-line: rgba(239, 226, 210, .17);
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-hp {
  --dm-hp-forest: #27473a; --dm-hp-leaf: #91ad8b; --dm-hp-ochre: #d9a062;
  --dm-hp-paper: #142019; --dm-hp-card: #1d2a22; --dm-hp-ink: #f1e8dc;
  --dm-hp-line: rgba(239, 226, 210, .17);
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-ps {
  --dm-ps-ink: #f1e8dc; --dm-ps-paper: #121c17; --dm-ps-wash: #29352d;
  --dm-ps-rust: #e17b5f; --dm-ps-sage: #95a697; --dm-ps-line: rgba(239, 226, 210, .17);
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-pet {
  --pet-ink: #f1e8dc; --pet-paper: #121c17; --pet-cream: #1c2821;
  --pet-clay: #e17b5f; --pet-sun: #efc96d; --pet-sage: #91a995;
  --pet-blue: #91abc0; --pet-line: rgba(239, 226, 210, .17);
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv {
  --tv-ink: #f1e8dc; --tv-paper: #111a16; --tv-warm: #1c2821;
  --tv-rust: #e17b5f; --tv-brass: #efc96d; --tv-blue: #8eaec0;
  --tv-mist: #26342c; --tv-line: rgba(239, 226, 210, .17);
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-hb {
  --ink: #f1e8dc; --muted: #c1b4a5; --paper: #121c17; --cream: #1d2922;
  --sage: #91a694; --clay: #df8469; --line: rgba(239, 226, 210, .17);
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-ns {
  --night: #0b1612; --ink: #f1e8dc; --paper: #121c17; --mist: #26342c;
  --gold: #efc96d; --coral: #df8469; --line: rgba(239, 226, 210, .17);
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-us {
  --ink: #f1e8dc; --paper: #121c17; --forest: #183d34; --red: #e17b5f;
  --amber: #e2b25b; --green: #86a88d; --line: rgba(239, 226, 210, .17); --white: #1c2821;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-tu {
  --ink: #f1e8dc; --paper: #141d18; --sand: #2d352d; --terra: #df8469;
  --olive: #9ca67b; --wine: #b97d76; --line: rgba(239, 226, 210, .17); --white: #1c2821;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-art01 {
  --dm-ink: #f1e8dc; --dm-muted: #c1b4a5; --dm-paper: #121c17;
  --dm-wash: #26342c; --dm-line: rgba(239, 226, 210, .17);
  --dm-accent: #df8469; --dm-sage: #91a694; --dm-gold: #efc96d;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 {
  --dm-ink: #f1e8dc; --dm-muted: #c1b4a5; --dm-cream: #121c17;
  --dm-butter: #efc96d; --dm-coral: #df8469; --dm-blue: #8faeb8;
  --dm-line: rgba(239, 226, 210, .17);
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 {
  --dm-ink: #f1e8dc; --dm-muted: #c1b4a5; --dm-paper: #141d18;
  --dm-plum: #c78ca9; --dm-rose: #df8f7e; --dm-teal: #86aaa8;
  --dm-gold: #efc96d; --dm-line: rgba(239, 226, 210, .17);
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-article-content,
html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-gr, .dm-hp, .dm-ps, .dm-five-pet, .dm-five-tv, .dm-hb, .dm-ns, .dm-us, .dm-tu, .dm-art01, .dm-art02, .dm-art03) {
  color: var(--dm-atm-ink) !important;
  background-color: transparent !important;
  background-image: none !important;
}

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-gr, .dm-hp, .dm-ps, .dm-five-pet, .dm-five-tv, .dm-hb, .dm-ns, .dm-us, .dm-tu, .dm-art01, .dm-art02, .dm-art03) :is(h2, h3, h4, legend) { color: #f1e8dc !important; }
html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-gr, .dm-hp, .dm-ps, .dm-five-pet, .dm-five-tv, .dm-hb, .dm-ns, .dm-us, .dm-tu, .dm-art01, .dm-art02, .dm-art03) a { color: #efc96d; }

html[data-dm-theme="dark"] body.dm-article-edition :is(
  .dm-ps__safety, .dm-ps__table-wrap, .dm-ps__light-cell,
  .dm-tu__sheet, .dm-tu__worked, .dm-tu__tally, .dm-tu__stop, .dm-tu__swatch, .dm-tu__column,
  .dm-ns__audit, .dm-ns__worked, .dm-ns__form, .dm-ns__sources, .dm-ns__option, .dm-ns__zone,
  .dm-us__form, .dm-us__case, .dm-us__sources, .dm-us__void, .dm-us__route,
  .dm-hb__passport, .dm-hb__case, .dm-hb__sources, .dm-hb__boundary, .dm-hb__connection,
  .dm-art01 .dm-panel, .dm-art01 .dm-answer, .dm-art01 .dm-note, .dm-art01 .dm-plan, .dm-art01 .dm-option, .dm-art01 .dm-state,
  .dm-art02 .dm-panel, .dm-art02 .dm-answer, .dm-art02 .dm-corner-plan, .dm-art02 .dm-shape, .dm-art02 .dm-scene,
  .dm-art03 .dm-panel, .dm-art03 .dm-answer, .dm-art03 .dm-door-plan, .dm-art03 .dm-surface, .dm-art03 .dm-choice, .dm-art03 .dm-note
) {
  border-color: var(--dm-atm-line) !important;
  color: #f1e8dc !important;
  background-color: #1c2821 !important;
  background-image: none !important;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .28) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-story-route, .dmtp-visual, .dm-article-lab__result) {
  border-color: var(--dm-atm-line) !important;
  color: var(--dm-atm-ink) !important;
  background: color-mix(in srgb, var(--dm-atm-paper) 96%, transparent) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-story-route, .dmtp-visual, .dm-article-lab__result) :is(h2, h3, h4, strong) { color: var(--dm-atm-ink) !important; }
html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-story-route, .dmtp-visual, .dm-article-lab__result) :is(p, li, figcaption, small) { color: var(--dm-atm-muted) !important; }

/* Some card lists arrive as adjacent strong/span nodes. Give every cue and
   explanation its own beat so the dark edition reads as edited, not glued. */
html[data-dm-theme="dark"] body.dm-article-edition .dmtp-visual__list li {
  padding-block: .18rem .58rem;
}

html[data-dm-theme="dark"] body.dm-article-edition .dmtp-visual__list :is(strong, span) {
  display: block;
}

html[data-dm-theme="dark"] body.dm-article-edition .dmtp-visual__list strong {
  margin-bottom: .2rem;
  color: var(--dm-theme-gold) !important;
}

/* The ten field-guide architectures use different nouns, but every item below
   is a complete worksheet, diagram, comparison or next-step plate. Their
   geometry stays unique; only the paper and type are translated. */
html[data-dm-theme="dark"] body.dm-article-edition :is(.dm10-vinyl, .dm10-shower, .dm10-mood, .dm10-craft, .dm10-holiday-table, .dm10-garage-field, .dm10-coffee-route, .dm10-books, .dm10-closet, .dm10-linen) {
  --ink: #f1e8dc; --muted: #c1b4a5; --paper: #141e19; --card: #1d2922;
  --wash: #26342c; --tile: #1d2922; --foam: #26342c; --line: rgba(239, 226, 210, .17);
  color: #f1e8dc !important;
  background-color: transparent !important;
  background-image: none !important;
}

html[data-dm-theme="dark"] body.dm-article-edition :is(
  .dm10-visual, .dm10-table-scroll, .dm10-ledger, .dm10-note, .dm10-limit,
  .dm10-mood-taskmap, .dm10-mood-rental, .dm10-mood-score, .dm10-mood-next, .dm10-mood-boundary,
  .dm10-vinyl-journey, .dm10-vinyl-signal, .dm10-vinyl-log, .dm10-vinyl-passport, .dm10-vinyl-bay, .dm10-vinyl-stability, .dm10-vinyl-next, .dm10-vinyl-boundary,
  .dm10-craft-sort, .dm10-craft-audit, .dm10-craft-pause, .dm10-craft-bench, .dm10-craft-cycle, .dm10-craft-next, .dm10-craft-boundary,
  .dm10-shower-layers, .dm10-shower-sheet, .dm10-shower-log, .dm10-shower-section, .dm10-shower-next, .dm10-shower-fullness, .dm10-shower-boundary, .dm10-shower-field,
  .dm10-three-act-check, .dm10-service-board, .dm10-sightline-lab, .dm10-backstage-map, .dm10-table-plan, .dm10-flame-note,
  .dm10-pressure-test, .dm10-buy-gate, .dm10-zone-matrix, .dm10-survey-sheet, .dm10-envelope-plan, .dm10-worked-garage, .dm10-stop-note,
  .dm10-drink-deck, .dm10-trip-sheet, .dm10-footprint, .dm10-route-map, .dm10-stock-ladder,
  .dm10-plan, .dm10-state, .dm10-states, .dm10-log, .dm10-elevation, .dm10-zone,
  .dm10-bookcase, .dm10-case-shelf, .dm10-meter, .dm10-safety, .dm10-grow,
  .dm10-shelfmap, .dm10-shelf, .dm10-choice, .dm10-band, .dm10-prime
) {
  border-color: rgba(239, 226, 210, .17) !important;
  color: #f1e8dc !important;
  background-color: #1c2821 !important;
  background-image: none !important;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .28) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm10-vinyl, .dm10-shower, .dm10-mood, .dm10-craft, .dm10-holiday-table, .dm10-garage-field, .dm10-coffee-route, .dm10-books, .dm10-closet, .dm10-linen) :is(h2, h3, h4, strong, legend, caption) { color: #f1e8dc !important; }
html[data-dm-theme="dark"] body.dm-article-edition :is(.dm10-vinyl, .dm10-shower, .dm10-mood, .dm10-craft, .dm10-holiday-table, .dm10-garage-field, .dm10-coffee-route, .dm10-books, .dm10-closet, .dm10-linen) :is(p, li, td, th, figcaption, small, label) { color: #c1b4a5; }
html[data-dm-theme="dark"] body.dm-article-edition :is(.dm10-vinyl, .dm10-shower, .dm10-mood, .dm10-craft, .dm10-holiday-table, .dm10-garage-field, .dm10-coffee-route, .dm10-books, .dm10-closet, .dm10-linen) a { color: #efc96d; }

/* High-contrast craft pass for systems that reuse their ink token as a dark
   fill in light mode. Direct white fills otherwise become washed-out islands
   after the token translation above. These remain distinctive raised pieces,
   now made from deep green paper, warm charcoal and restrained brass. */
html[data-dm-theme="dark"] body.dm-article-edition .dm-ps :is(
  .dm-ps__tool,
  .dm-ps__prompt-grid li,
  .dm-ps__light-cell,
  .dm-ps__table-wrap,
  .dm-ps__case,
  .dm-ps__safety,
  .dm-ps__safety-grid section,
  .dm-ps__brief,
  .dm-ps__next a
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background-color: #1c2821 !important;
  background-image: none !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-ps .dm-ps__case {
  background:
    radial-gradient(circle at 14% 8%, rgba(239, 201, 109, .1), transparent 18rem),
    linear-gradient(145deg, #132119, #1d2e24) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .32) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-ps :is(.dm-ps__dek, .dm-ps__caption, figcaption, .dm-ps__fill) {
  color: #c7baaa !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-ps :is(.dm-ps__meta li, .dm-ps__next a) {
  background: rgba(246, 238, 226, .055) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-pet :is(
  .pet-answer,
  .pet-boundary,
  .pet-field-card,
  .pet-panel,
  .pet-map-key > div,
  .pet-observe > div,
  .pet-plan,
  .pet-log > div,
  .pet-note,
  .pet-first-step,
  .pet-editorial-voice,
  .pet-score tr
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background-color: #1c2821 !important;
  background-image: none !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-pet .pet-field-card {
  border-color: rgba(239, 201, 109, .48) !important;
  background: linear-gradient(132deg, #16231c, #1f3026) !important;
  box-shadow: .7rem .7rem 0 rgba(239, 201, 109, .14), 0 25px 64px rgba(0, 0, 0, .3) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-pet .pet-field-card > div:first-child {
  background:
    radial-gradient(circle at 18% 10%, rgba(223, 132, 105, .15), transparent 16rem),
    #22342a !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-pet :is(.pet-first-step, .pet-editorial-voice__mark) {
  background: #122019 !important;
  color: #f1e8dc !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-pet :is(.pet-score th, .pet-observe > div:last-child) {
  color: #f1e8dc !important;
  background: #26382d !important;
}

/* The room map is a useful illustration rather than a generic content card.
   Keep its tactile coloured-paper vocabulary, but use true ink on every tile. */
html[data-dm-theme="dark"] body.dm-article-edition .dm-five-pet .pet-room-map {
  border-color: rgba(239, 201, 109, .44) !important;
  background: #18251f !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-pet .pet-room-map span {
  border-color: rgba(35, 56, 48, .3) !important;
  color: #233830 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-pet :is(figcaption, .pet-provenance) {
  color: #c7baaa !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm10-holiday-table {
  --pine: #8fa993;
  --berry: #df8469;
  --linen: #1c2821;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm10-holiday-table :is(
  .dm10-service-board section,
  .dm10-backstage-map li,
  .dm10-flame-note
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .045) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm10-holiday-table .dm10-service-board section {
  border-top-color: #8fa993 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm10-holiday-table :is(.dm10-service-board section, .dm10-backstage-map li, .dm10-flame-note) :is(p, li) {
  color: #c7baaa !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm10-holiday-table :is(.dm10-service-board section, .dm10-backstage-map li, .dm10-flame-note) :is(h3, strong) {
  color: #f1e8dc !important;
}

/* Five-guide field systems ------------------------------------------------ */
html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv :is(
  .tv-answer, .tv-boundary, .tv-scenes li, .tv-panel, .tv-reflections > div,
  .tv-option, .tv-stopgo > div, .tv-note, .tv-first-step, .tv-editorial-voice
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv :is(.tv-first-step, .tv-editorial-voice__mark) {
  color: #f1e8dc !important;
  background: #111d17 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv .tv-plan {
  border-color: rgba(239, 201, 109, .42) !important;
  background: #142119 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv .tv-plan span {
  border-color: rgba(239, 226, 210, .16) !important;
  color: #f1e8dc !important;
  background: #26362d !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv .tv-plan .tv-window { background: #28414a !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv .tv-plan .tv-sofa { background: #493a2d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv .tv-plan .tv-door { background: #5a4925 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv .tv-plan .tv-route { background: #2b432f !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dm-gr :is(
  .dm-gr__charter section, .dm-gr__mode-map, .dm-gr__mode, .dm-gr__detail,
  .dm-gr__permissions, .dm-gr__permission-grid div, .dm-gr__time,
  .dm-gr__table-wrap, .dm-gr__table th, .dm-gr__log, .dm-gr__log li,
  .dm-gr__next a
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-gr .dm-gr__worked {
  color: #f1e8dc !important;
  background: linear-gradient(142deg, #31232d, #1b2922) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-gr :is(.dm-gr__step-label, .dm-gr__switch) { color: #efc96d !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dm-hp :is(
  .dm-hp__passport, .dm-hp__map, .dm-hp__log, .dm-hp__matrix-wrap,
  .dm-hp__water-route, .dm-hp__route li, .dm-hp__safety,
  .dm-hp__safety-grid section, .dm-hp__worked section, .dm-hp__change-log,
  .dm-hp__change-grid div, .dm-hp__next a
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-hp :is(.dm-hp__passport, .dm-hp__light-figure) {
  color: #f1e8dc !important;
  background: linear-gradient(140deg, #163126, #1d2d25) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__room {
  border-color: rgba(239, 201, 109, .42) !important;
  background: #142119 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__room span {
  border-color: rgba(239, 226, 210, .15) !important;
  color: #f1e8dc !important;
  background: #27372e !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__room :is(.dm-hp__window, .dm-hp__glass) { background: #284249 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__room .dm-hp__door { background: #4b392b !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__room .dm-hp__point-a { background: #5b4d28 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__room .dm-hp__point-b { background: #2c412f !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__room .dm-hp__point-c { background: #57382c !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hp :is(.dm-hp__table th, .dm-hp__table caption) { color: #f1e8dc !important; background: #26382d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__map-label { color: #efc96d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__week-mark span { color: #efc96d !important; background: #1c2821 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__week-mark span:nth-child(2),
html[data-dm-theme="dark"] body.dm-article-edition .dm-hp .dm-hp__week-mark span:nth-child(5) { color: #101713 !important; background: #efc96d !important; }

/* Seven-guide architectural systems -------------------------------------- */
html[data-dm-theme="dark"] body.dm-article-edition .dm-hb :is(
  .dm-hb__visual-note, .dm-hb__boundary, .dm-hb__index a, .dm-hb__connection,
  .dm-hb__case, .dm-hb__passport, .dm-hb__sources, .dm-editorial-voice
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-hb :is(.dm-hb__profile, .dm-editorial-voice__mark) {
  color: #f1e8dc !important;
  background: #15231c !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-hb .dm-hb__materials dl { border-color: rgba(239, 226, 210, .18) !important; background: #1c2821 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hb .dm-hb__materials :is(dt, dd, strong) { color: #f1e8dc !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hb .dm-hb__materials dd { color: #c7baaa !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hb .dm-hb__wall-map span { border-color: rgba(239, 226, 210, .16) !important; color: #f1e8dc !important; background: #26362d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hb .dm-hb__wall-map .window { background: #284149 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hb .dm-hb__wall-map .bed { background: #4a392d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-hb .dm-hb__cta { color: #f1e8dc !important; background: linear-gradient(132deg, #3c241e, #542d23) !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dm-ns :is(
  .dm-ns__visual-note, .dm-ns__boundary, .dm-ns__timeline li, .dm-ns__zone,
  .dm-ns__worked, .dm-ns__option, .dm-ns__form, .dm-ns__audit,
  .dm-ns__audit fieldset, .dm-ns__sources, .dm-editorial-voice
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-ns .dm-editorial-voice__mark { color: #f1e8dc !important; background: #11201a !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dm-us :is(
  .dm-us__visual-note, .dm-us__boundary, .dm-us__sheet section,
  .dm-us__void, .dm-us__triangle::after, .dm-us__route,
  .dm-us__route span, .dm-us__matrix section, .dm-us__case,
  .dm-us__tree li, .dm-us__projection div, .dm-us__form,
  .dm-us__sources, .dm-editorial-voice
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-us :is(.dm-us__rule, .dm-us__cta, .dm-editorial-voice__mark) {
  color: #f1e8dc !important;
  background: #153126 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-tu .dm-tu__header {
  color: #f1e8dc !important;
  background:
    radial-gradient(circle at 82% 16%, rgba(223, 132, 105, .18), transparent 19rem),
    linear-gradient(116deg, #201b17, #30241d 62%, #5a2f25) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-tu :is(
  .dm-tu__visual-note, .dm-tu__stop, .dm-tu__column,
  .dm-tu__inventory section, .dm-tu__study section, .dm-tu__tally,
  .dm-tu__swatch, .dm-tu__worked, .dm-tu__sheet, .dm-tu__sources,
  .dm-editorial-voice
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #211f1a !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-tu .dm-editorial-voice__mark { color: #f1e8dc !important; background: #5a3025 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-tu :is(.dm-tu__eyebrow, .dm-tu__header .dm-tu__dek) { color: #e7c5aa !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-tu .dm-tu__cta { color: #f1e8dc !important; background: linear-gradient(132deg, #3b241e, #512b22) !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dm-art01 :is(
  .dm-jump, .dm-note, .dm-boundary, .dm-lane, .dm-frame, .dm-option,
  .dm-state, .dm-passport > div, .dm-cta, .dm-editorial-voice
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-art01 :is(.dm-cta, .dm-editorial-voice__mark) { background: #14231c !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art01 .dm-plan { border-color: rgba(239, 201, 109, .42) !important; background: #142119 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art01 .dm-plan > span { border-color: rgba(239, 226, 210, .16) !important; color: #f1e8dc !important; background: #26362d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art01 .dm-plan .dm-sofa { background: #4a392d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art01 .dm-plan .dm-return { background: #2b432f !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 .dm-cover {
  color: #f1e8dc !important;
  background:
    radial-gradient(circle at 82% 14%, rgba(239, 201, 109, .16), transparent 22rem),
    linear-gradient(128deg, #17221c, #25251d 62%, #493c21) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 :is(
  .dm-route li, .dm-shape, .dm-seat, .dm-score label, .dm-note,
  .dm-first-step, .dm-editorial-voice
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 :is(.dm-first-step, .dm-editorial-voice__mark) { background: #17221c !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 .dm-corner-plan { border-color: rgba(239, 201, 109, .42) !important; background: #142119 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 .dm-corner-plan span { border-color: rgba(239, 226, 210, .16) !important; color: #f1e8dc !important; background: #26362d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 .dm-corner-plan .dm-window { background: #284149 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 .dm-corner-plan .dm-heat { background: #4c312b !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 .dm-corner-plan .dm-table { background: #594a25 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art02 .dm-corner-plan .dm-passage { background: #2c402f !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 :is(
  .dm-timeline li, .dm-reset li, .dm-note, .dm-alert, .dm-surface,
  .dm-cta, .dm-editorial-voice
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 :is(.dm-cta, .dm-editorial-voice__mark) { background: #263b37 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 .dm-hero {
  color: #f1e8dc !important;
  background:
    radial-gradient(circle at 82% 14%, rgba(199, 140, 169, .18), transparent 21rem),
    linear-gradient(128deg, #211820, #35222f 64%, #422436) !important;
}
html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 .dm-door-plan { border-color: rgba(239, 201, 109, .42) !important; background: #171e1b !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 .dm-door-plan span { border-color: rgba(239, 226, 210, .16) !important; color: #f1e8dc !important; background: #2b2d28 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 .dm-door-plan .dm-door { background: #4a2b31 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 .dm-door-plan .dm-stand { background: #554623 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 .dm-door-plan .dm-sink { background: #24413f !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-art03 .dm-door-plan .dm-exit { background: #2c322d !important; }

/* Ten-guide worksheet systems ------------------------------------------- */
html[data-dm-theme="dark"] body.dm-article-edition :is(
  .dm10-linen .dm10-loop li, .dm10-linen .dm10-shelf,
  .dm10-linen .dm10-choice article, .dm10-linen .dm10-band div,
  .dm10-linen .dm10-checks li, .dm10-linen .dm10-note,
  .dm10-books .dm10-audit section, .dm10-books .dm10-case-shelf,
  .dm10-books .dm10-meter span, .dm10-books .dm10-safety,
  .dm10-books .dm10-stress li, .dm10-books .dm10-note,
  .dm10-closet .dm10-aperture, .dm10-closet .dm10-plan,
  .dm10-closet .dm10-route li, .dm10-closet .dm10-zone,
  .dm10-closet .dm10-state, .dm10-closet .dm10-log div,
  .dm10-closet .dm10-limit,
  .dm10-coffee-route .dm10-route-map li, .dm10-coffee-route .dm10-drink-deck section,
  .dm10-coffee-route .dm10-stock-ladder li, .dm10-coffee-route .dm10-note,
  .dm10-garage-field .dm10-survey-sheet li, .dm10-garage-field .dm10-envelope-plan li,
  .dm10-garage-field .dm10-zone-matrix section, .dm10-garage-field .dm10-stop-note,
  .dm10-craft .dm10-craft-boundary, .dm10-craft .dm10-craft-next,
  .dm10-mood .dm10-mood-diary section, .dm10-mood .dm10-mood-rental,
  .dm10-mood .dm10-mood-score, .dm10-mood .dm10-mood-boundary, .dm10-mood .dm10-mood-next,
  .dm10-shower .dm10-shower-field, .dm10-shower .dm10-shower-path div,
  .dm10-shower .dm10-shower-fullness, .dm10-shower .dm10-shower-fabric div,
  .dm10-shower .dm10-shower-boundary, .dm10-shower .dm10-shower-next,
  .dm10-vinyl .dm10-vinyl-chain span, .dm10-vinyl .dm10-vinyl-stability,
  .dm10-vinyl .dm10-vinyl-journey li, .dm10-vinyl .dm10-vinyl-bay-diagram div,
  .dm10-vinyl .dm10-vinyl-boundary, .dm10-vinyl .dm10-vinyl-next
) {
  border-color: rgba(239, 226, 210, .18) !important;
  color: #f1e8dc !important;
  background: #1c2821 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035) !important;
}

html[data-dm-theme="dark"] body.dm-article-edition .dm10-closet .dm10-elevation { background: #101914 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm10-closet .dm10-zone-top { background: #52452a !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm10-closet .dm10-zone-long { background: #284149 !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm10-closet .dm10-zone-centre { background: #26362d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm10-closet .dm10-zone-side { background: #3c302a !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm10-closet .dm10-zone-floor { background: #343427 !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dm10-closet .dm10-garments th { color: #f1e8dc !important; background: #26382d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm10-craft .dm10-craft-pause dt { color: #efc96d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm10-vinyl .dm10-vinyl-passport dt { color: #efc96d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm10-vinyl .dm10-vinyl-bay-diagram span[style] { color: #f1e8dc !important; background: rgba(17, 29, 23, .92) !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm10-mood .dm10-mood-swatches div:nth-child(3) { color: #f1e8dc !important; background: #5a4a2b !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv .tv-reflections dd { color: #c7baaa !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv .tv-ledger strong { color: #efc96d !important; }
html[data-dm-theme="dark"] body.dm-article-edition .dm-five-tv .tv-stopgo .tv-question { color: #c7baaa !important; }

html[data-dm-theme="dark"] body.dm-article-edition .dmtp-opening__phases li span {
  color: #101713 !important;
  background: #efc96d !important;
}

/* Shared publisher styles normally own these horizontal table shells. Keep a
   theme-level containment fallback so a delayed or optimised plugin sheet can
   never turn a wide worksheet into document-level mobile overflow. */
body.dm-article-edition :is(.dm10-table-scroll, .dm5-scorecard) {
  display: block !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden;
  contain: layout inline-size paint;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

html[data-dm-theme="dark"] body.dm-article-edition :is(.dm-gr, .dm-hp, .dm-ps, .dm-five-pet, .dm-five-tv, .dm-hb, .dm-ns, .dm-us, .dm-tu, .dm-art01, .dm-art02, .dm-art03, .dm10-vinyl, .dm10-shower, .dm10-mood, .dm10-craft, .dm10-holiday-table, .dm10-garage-field, .dm10-coffee-route, .dm10-books, .dm10-closet, .dm10-linen) :is(input, textarea, select) {
  border-color: rgba(239, 226, 210, .22) !important;
  color: #f1e8dc !important;
  background: #111b16 !important;
}

/* --------------------------------------------------------------------------
   Shared forms, utilities and footer close
   -------------------------------------------------------------------------- */

html[data-dm-theme="dark"] main :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  border-color: var(--dm-theme-line);
  color: var(--dm-theme-ink);
  background-color: #121d18;
}

html[data-dm-theme="dark"] main :is(input, textarea)::placeholder { color: var(--dm-theme-muted); opacity: .72; }

html[data-dm-theme="dark"] .dm-site-footer {
  background:
    radial-gradient(ellipse at 84% -4%, rgba(155, 170, 199, .12), transparent 32rem),
    radial-gradient(ellipse at 8% 108%, rgba(225, 123, 95, .12), transparent 31rem),
    linear-gradient(132deg, #07100c, #0e2118 52%, #14271e) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .075), 0 -24px 70px rgba(0, 0, 0, .18);
}

html[data-dm-theme="dark"] .dm-site-footer .dm-footer-route,
html[data-dm-theme="dark"] .dm-site-footer .dm-back-to-top { background: rgba(246, 238, 226, .045); }

html[data-dm-theme="dark"] * { scrollbar-color: rgba(239, 201, 109, .48) #101713; }

/* --------------------------------------------------------------------------
   Responsive, reduced motion, high contrast and print
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  body.dm-human-warmth .dm-site-header .dm-brand-tools { grid-template-columns: 48px minmax(210px, 320px) !important; }
  html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-brand-tools { grid-template-columns: auto 48px minmax(210px, 320px) !important; }
}

@media (max-width: 900px) {
  body.dm-human-warmth .dm-site-header .dm-brand-tools { display: grid !important; grid-template-columns: 46px minmax(200px, 285px) !important; }
  html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-brand-tools { grid-template-columns: 46px minmax(200px, 285px) !important; }
  body.dm-human-warmth .dm-site-header .dm-theme-toggle { grid-column: 1; }
  body.dm-human-warmth .dm-site-header .dm-header-search { grid-column: 2; }
  html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-atmosphere-edition { display: none !important; }
  .dm-theme-toggle { width: 46px; min-width: 46px; height: 46px; }
}

@media (max-width: 782px) {
  body.dm-human-warmth .dm-site-header .dm-brand-row { grid-template-columns: minmax(0, 1fr) 102px !important; }
  body.dm-human-warmth .dm-site-header .dm-brand-tools {
    display: grid !important;
    width: 102px !important;
    grid-template-columns: 48px 48px !important;
    gap: 6px;
  }
  html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-brand-tools { grid-template-columns: 48px 48px !important; }
  body.dm-human-warmth .dm-site-header .dm-theme-toggle { grid-column: 1; width: 48px; min-width: 48px; height: 48px; }
  body.dm-human-warmth .dm-site-header .dm-header-search { grid-column: 2; width: 48px !important; }
  .dm-theme-toggle::after { display: none; }

  html[data-dm-theme="dark"] .dm-site-header .dm-header-search.is-open { background: #111a16; }
  html[data-dm-theme="dark"] .dm-site-header .dm-header-search.is-open .wp-block-search__inside-wrapper { background: #17211c; }
}

@media (max-width: 900px) {
  html:not(.dm-has-js) body.dm-human-warmth .dm-site-header .dm-brand-row { grid-template-columns: minmax(0, 1fr) !important; }
  html:not(.dm-has-js) body.dm-human-warmth .dm-site-header .dm-brand-tools { display: block !important; width: 100% !important; grid-column: 1; }
  html:not(.dm-has-js) body.dm-human-warmth .dm-site-header .dm-header-search,
  html:not(.dm-has-js) body.dm-human-warmth .dm-site-header .dm-header-search .wp-block-search__inside-wrapper { position: relative; width: 100% !important; }
}

@media (max-width: 360px) {
  body.dm-human-warmth .dm-site-header .dm-brand-row { grid-template-columns: minmax(0, 1fr) 94px !important; gap: .42rem; }
  body.dm-human-warmth .dm-site-header .dm-brand-tools { width: 94px !important; grid-template-columns: 44px 46px !important; gap: 4px; }
  html[data-dm-theme="dark"] body.dm-human-warmth .dm-site-header .dm-brand-tools { grid-template-columns: 44px 46px !important; }
  body.dm-human-warmth .dm-site-header .dm-theme-toggle { width: 44px; min-width: 44px; height: 44px; }
  body.dm-human-warmth .dm-site-header .dm-monogram.dm-logo-mark { width: 40px !important; height: 40px !important; flex-basis: 40px !important; }
  body.dm-human-warmth .dm-site-header .dm-brand-name { font-size: 1.48rem !important; }
  body.dm-human-warmth .dm-site-header .dm-brand-tagline { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .dm-theme-toggle,
  .dm-theme-toggle *,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  html[data-dm-theme="dark"] {
    --dm-theme-muted: #ded4c8;
    --dm-theme-line: rgba(255, 246, 232, .42);
    --dm-nav-muted: #ded4c8;
    --dm-nav-line: rgba(255, 246, 232, .42);
  }
  .dm-theme-toggle { border-width: 2px; }
}

@media (forced-colors: active) {
  .dm-theme-toggle { color: ButtonText; background: ButtonFace; box-shadow: none; }
  .dm-theme-toggle__sun,
  .dm-theme-toggle__ray { fill: Highlight; stroke: Highlight; }
}

@media print {
  .dm-theme-toggle { display: none !important; }
  html[data-dm-theme="dark"] {
    --dm-paper: #fff;
    --dm-white: #fff;
    --dm-ink: #000;
    --dm-muted: #333;
    --dm-line: #777;
  }
  html[data-dm-theme="dark"] body { color: #000 !important; background: #fff !important; }
  html[data-dm-theme="dark"] main img { filter: none !important; }
}

@keyframes dm-v20-orbit { to { transform: rotate(360deg); } }
@keyframes dm-v20-fade-out { to { opacity: 0; filter: blur(2px) saturate(.82); transform: scale(.995); } }
@keyframes dm-v20-fade-in { from { opacity: 0; filter: blur(3px) saturate(.78); transform: scale(1.006); } }
