/* zunidesign — dark theme.
   GENERATED block: dark twins of every colour rule in styles.css, scoped to
   html[data-theme="dark"] body.zh (made with gen_dark.py). Edit the
   HAND-TUNED block at the end, not the generated part. */

html[data-theme="dark"] body.zh .btn--secondary:hover {
  background: #242424;
}

html[data-theme="dark"] body.zh .contact-card {
  background: #2c2c2c;
}

html[data-theme="dark"] body.zh .cs__visitIcon {
  background: #2c2c2c;
}

html[data-theme="dark"] body.zh .cs__close {
  background: #2c2c2c;
}

html[data-theme="dark"] body.zh .cs__close:hover {
  background: #383838;
}

html[data-theme="dark"] body.zh .cs-split--soft .cs-split__b code {
  background: rgba(237, 237, 237, 0.06);
}

html[data-theme="dark"] body.zh .cs-feats {
  border-top: 1px solid rgba(237, 237, 237, 0.1);
}

html[data-theme="dark"] body.zh .cs-outro__cols {
  border-top: 1px solid rgba(237, 237, 237, 0.1);
}

html[data-theme="dark"] body.zh .cpop__book:hover {
  background: #1a1a1a;
}

html[data-theme="dark"] body.zh .cpop__rows {
  background: #1a1a1a;
}

html[data-theme="dark"] body.zh .cpop__copy:hover {
  background: rgba(237, 237, 237, 0.05);
}

html[data-theme="dark"] body.zh .cpop__row--split {
  border-top: 1px solid rgba(237, 237, 237, 0.07);
}

html[data-theme="dark"] body.zh .cpop__person:hover {
  background: #1a1a1a;
}

html[data-theme="dark"] body.zh .cpop__face {
  border: 1px solid rgba(237, 237, 237, 0.08);
}

html[data-theme="dark"] body.zh .cpop__copy.is-hint {
  background: rgba(237, 237, 237, 0.05);
}

html[data-theme="dark"] body.zh .expand {
  background: rgba(237, 237, 237, 0.05);
}

html[data-theme="dark"] body.zh .li__logo--blank {
  background: rgba(237, 237, 237, 0.06);
}

html[data-theme="dark"] body.zh .gal__logo--blank {
  background: rgba(237, 237, 237, 0.06);
}

html[data-theme="dark"] body.zh .gal__status {
  background: rgba(237, 237, 237, 0.05);
}

html[data-theme="dark"] body.zh .free-band--light:hover {
  background: #181818;
}

html[data-theme="dark"] body.zh .zh-nav {
  background: #181818;
}

html[data-theme="dark"] body.zh .zh-nav__brand {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zh-hero {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zh-row__type {
  color: rgba(237, 237, 237, 0.6);
}

html[data-theme="dark"] body.zh .zh-row__desc {
  color: rgba(237, 237, 237, 0.4);
}

html[data-theme="dark"] body.zh .zh-studio__photo {
  background: #282828;
}

html[data-theme="dark"] body.zh .zh-index__card {
  border: 1px solid #333333;
  background: #181818;
}

html[data-theme="dark"] body.zh a.zh-index__item:hover {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zh-foot__mark::after {
  border-top: 1px solid #e1e1e1;
}

html[data-theme="dark"] body.zh .zh-foot__row {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zc-head__title {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zc-head__visit:hover {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zc-head__visitIc {
  background: #2c2c2c;
}

html[data-theme="dark"] body.zh .zc-head__close {
  background: #2c2c2c;
}

html[data-theme="dark"] body.zh .zc-head__close:hover {
  background: #363636;
}

html[data-theme="dark"] body.zh .zc-meta {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zc-tile--eee {
  background: #1d1d1d;
}

html[data-theme="dark"] body.zh .zc-card--soft {
  background: #1c1c1c;
  color: #ededed;
}

html[data-theme="dark"] body.zh .zc-card--soft .zc-label,
html[data-theme="dark"] body.zh .zc-label--ink {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zc-h--ink {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zc-body-copy--ink {
  color: rgba(237, 237, 237, 0.7);
}

html[data-theme="dark"] body.zh .zc-small--tight {
  color: rgba(237, 237, 237, 0.78);
}

html[data-theme="dark"] body.zh a.za-post:hover {
  background: #1b1b1b;
}

html[data-theme="dark"] body.zh .za-post.is-current {
  background: #181818;
  border-color: #333333;
}

html[data-theme="dark"] body.zh .za-post__k {
  color: rgba(237, 237, 237, 0.4);
}

html[data-theme="dark"] body.zh .za-hero__t {
  color: #ededed;
}

html[data-theme="dark"] body.zh .za-hero__lead {
  color: #ededed;
}

html[data-theme="dark"] body.zh .za-hero__date {
  color: rgba(237, 237, 237, 0.4);
}

html[data-theme="dark"] body.zh .za-body h2 {
  color: #ededed;
}

html[data-theme="dark"] body.zh .za-quote {
  color: #ededed;
}

html[data-theme="dark"] body.zh .za-link {
  color: #ededed;
}

html[data-theme="dark"] body.zh .za-list li::marker {
  color: rgba(237, 237, 237, 0.3);
}

html[data-theme="dark"] body.zh .za-faq details {
  border-top: 1px solid #333333;
}

html[data-theme="dark"] body.zh .za-faq details:last-child {
  border-bottom: 1px solid #333333;
}

html[data-theme="dark"] body.zh .za-faq summary {
  color: #ededed;
}

html[data-theme="dark"] body.zh .zs-group {
  color: rgba(237, 237, 237, 0.4);
}

html[data-theme="dark"] body.zh .zs-hero__img {
  background: #1b1b1b;
}

html[data-theme="dark"] body.zh .zs-steps li::before {
  color: rgba(237, 237, 237, 0.35);
}

html[data-theme="dark"] body.zh .zs-steps strong {
  color: #ededed;
}

@media (max-width: 1100px) {
  html[data-theme="dark"] body.zh .zs-svc {
    border-color: #313131;
  }
  html[data-theme="dark"] body.zh .zs-svc.is-current {
    border-color: #e1e1e1;
  }
}

html[data-theme="dark"] body.zh .zh-soon {
  border: 1px solid #343434;
  color: rgba(237, 237, 237, 0.5);
}

html[data-theme="dark"] body.zh .zl-k {
  color: rgba(237, 237, 237, 0.4);
}

html[data-theme="dark"] body.zh .zl-date {
  color: rgba(237, 237, 237, 0.4);
}

html[data-theme="dark"] body.zh .z404__p {
  color: rgba(237, 237, 237, 0.6);
}

html[data-theme="dark"] body.zh .za-hero__media--drawing .za-hero__img {
  background: #1b1b1b;
}

html[data-theme="dark"] body.zh .za-body strong {
  color: #ededed;
}

html[data-theme="dark"] body.zh .za-body h3 {
  color: #ededed;
}

html[data-theme="dark"] body.zh .za-steps > li {
  border-top: 1px solid #333333;
}

html[data-theme="dark"] body.zh .za-steps > li:last-child {
  border-bottom: 1px solid #333333;
}

html[data-theme="dark"] body.zh .za-steps > li::before {
  color: rgba(237, 237, 237, 0.4);
}

html[data-theme="dark"] body.zh .za-list--num li::marker {
  color: rgba(237, 237, 237, 0.4);
}

html[data-theme="dark"] body.zh .za-sources {
  border-top: 1px solid #333333;
  color: rgba(237, 237, 237, 0.4);
}

html[data-theme="dark"] body.zh .za-link:hover {
  color: #ededed;
}

@media (max-width: 1100px) {
  html[data-theme="dark"] body.zh .za:not(.zs) .za-post {
    border-color: #313131;
    background: #181818;
  }
  html[data-theme="dark"] body.zh .za:not(.zs) .za-post.is-current {
    border-color: #e1e1e1;
  }
}

/* ===== HAND-TUNED ===== */
/* Tokens. Light mode values live in styles.css. */
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0e0e0f;
  --panel: #18181a;
  --soft: #18181a;
  --ink: #ededed;
  --ink-58: rgba(237, 237, 237, 0.6);
  --ink-40: rgba(237, 237, 237, 0.42);
  --ink-24: rgba(237, 237, 237, 0.26);
  --rule: #303034;
  --rule-soft: rgba(237, 237, 237, 0.1);
}
html[data-theme="dark"] body.zh {
  --zh-page: #0e0e0f;
  --zh-ink: #ededed;
  --zh-rule: #303034;
  --zh-grid: #232326;
  --zh-dash: rgba(120, 124, 135, 0.35);
  color: #ededed;
}

/* Nav */
html[data-theme="dark"] body.zh .zh-nav { background: rgba(14, 14, 15, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
html[data-theme="dark"] body.zh .zh-nav.nav-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07); }
html[data-theme="dark"] body.zh .zh-nav__brand { color: #ededed; }
html[data-theme="dark"] body.zh .pill { color: #ededed; }
html[data-theme="dark"] body.zh .pill:hover,
html[data-theme="dark"] body.zh .pill[aria-current="page"] { background: #ededed; color: #0e0e0f; }

/* The dark pills (Contact, Book a call) flip to light pills. */
html[data-theme="dark"] body.zh .zh-pill--dark { background: #ededed; color: #0e0e0f; }
html[data-theme="dark"] body.zh .zh-pill--dark:hover { background: #ffffff; color: #000; }

/* Selection and focus rings that read on dark. */
html[data-theme="dark"] body.zh ::selection { background: #00ff00; color: #000; }
html[data-theme="dark"] body.zh :focus-visible { outline-color: #ededed; }

/* Line drawings (services, agent tiles, post heroes) are dark-on-light art: invert them. */
html[data-theme="dark"] body.zh :is(img[src*="services/svc-"], img[src*="agent-widget"], img[src*="agent-voice"], img[src*="agent-content"], img[src*="insight-"], img[src*="cs-ic-"]) {
  filter: invert(0.92) hue-rotate(180deg);
}
html[data-theme="dark"] body.zh .zh-tile--art { background: #161618; }

/* Case studies: soft cards become dark panels; dark cards get a hairline so they separate from the page. */
html[data-theme="dark"] body.zh .zc-card--soft { background: #18181a; color: #ededed; }
html[data-theme="dark"] body.zh .zc-card--soft :is(.zc-label, .zc-h--ink, .zc-label--ink) { color: #ededed; }
html[data-theme="dark"] body.zh .zc-card--soft :is(.zc-small--tight, .zc-body-copy--ink) { color: rgba(237, 237, 237, 0.68); }
html[data-theme="dark"] body.zh .zc-card--dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }

/* Contact card in the CTA: lift it off the page a little. */
html[data-theme="dark"] body.zh .za-cta__card { background: #19191b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }

/* Footer rule */
html[data-theme="dark"] body.zh .zh-foot { border-color: #2a2a2d; }

/* ===== Theme toggle ===== */
.zt-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-right: 6px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: #000;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.zt-toggle:hover { background: rgba(0, 0, 0, 0.06); }
.zt-toggle:active { transform: scale(0.92); }
.zt-toggle svg { width: 18px; height: 18px; }
.zt-toggle .zt-sun { display: none; }
html[data-theme="dark"] .zt-toggle { color: #ededed; }
html[data-theme="dark"] .zt-toggle:hover { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .zt-toggle .zt-sun { display: block; }
html[data-theme="dark"] .zt-toggle .zt-moon { display: none; }
.zh-nav__inner > .zt-toggle { margin-left: auto; flex: none; }
.zt-foot { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.zt-foot:hover { color: var(--ink-58); }
@media (max-width: 430px) { .zh-nav .zt-toggle { display: none; } }

/* Theme switch: no colour transitions mid-swap, so nothing smears. */
html.zt-switching *, html.zt-switching *::before, html.zt-switching *::after { transition: none !important; }

/* Labels and copy that sit on the page (not on a dark card). */
html[data-theme="dark"] body.zh .za-cta__k { color: #ededed; }
html[data-theme="dark"] body.zh .zh-row__desc { color: rgba(237, 237, 237, 0.55); }
html[data-theme="dark"] body.zh .zh-studio__card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] body.zh .zh-index__card { border-color: #3a3a3e; }
