/* Native dark palette. Media is intentionally never filtered or inverted. */
body.aksk-dark {
  --aksk-ink: #f8fafc;
  --aksk-copy: #d5deea;
  --aksk-muted: #a7b4c5;
  --aksk-line: #334155;
  --aksk-soft: #1e293b;
  --aksk-bg: #0b1220;
  --aksk-white: #111827;
  --aksk-light-neutral: #0f172a;
  --aksk-shadow: 0 14px 38px rgba(0, 0, 0, .34);
  color: var(--aksk-copy);
  background: var(--aksk-bg);
  color-scheme: dark;
  overflow-x: clip;
}

body.aksk-dark :where(img, picture, video, iframe, canvas) { filter: none; }

body.aksk-dark .aksk-alert {
  border-bottom-color: var(--aksk-red);
  background: #25131a;
}
body.aksk-dark .aksk-alert__inner { color: #f8d8df; }

body.aksk-dark :where(
  .aksk-site-header,
  .aksk-language-switcher,
  .aksk-primary-nav .aksk-mega,
  .aksk-search__panel,
  .aksk-mobile-panel,
  .aksk-services,
  .aksk-stats,
  .aksk-notice,
  .aksk-entry,
  .aksk-loop-card,
  .aksk-card-share__menu,
  .aksk-card-share summary,
  .aksk-post-share__link,
  .aksk-a11y-panel
) {
  color: var(--aksk-copy);
  border-color: var(--aksk-line);
  background: var(--aksk-white);
}

body.aksk-dark .aksk-brand {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f8fafc;
}
body.aksk-dark .aksk-brand__logo { filter: none; }

body.aksk-dark :where(
  .aksk-primary-nav a,
  .aksk-primary-nav .aksk-mega__link,
  .aksk-mobile-nav a,
  .aksk-section-title,
  .aksk-arrow-link,
  .aksk-service-card h2,
  .aksk-news-feature,
  .aksk-news-feature h3,
  .aksk-news-card,
  .aksk-news-card h3,
  .aksk-notice h3,
  .aksk-loop-card h2 a,
  .aksk-post-navigation a,
  .aksk-a11y-panel h2,
  .aksk-a11y-panel h3
) { color: var(--aksk-ink); }

body.aksk-dark .aksk-primary-nav > div > ul > li.menu-item-has-children > a::after {
  filter: invert(1);
}
body.aksk-dark .aksk-primary-nav > div > ul > li:hover > a,
body.aksk-dark .aksk-primary-nav > div > ul > li:focus-within > a,
body.aksk-dark .aksk-primary-nav .aksk-mega__link:hover,
body.aksk-dark .aksk-primary-nav .aksk-mega__link:focus,
body.aksk-dark .aksk-primary-nav .aksk-mega__link.is-current {
  color: #fff;
  background: #243247;
}
body.aksk-dark .aksk-primary-nav .aksk-mega__column,
body.aksk-dark .aksk-primary-nav .aksk-mega__title { border-color: var(--aksk-line); }
body.aksk-dark .aksk-primary-nav .aksk-mega__divider { background: var(--aksk-line); }

body.aksk-dark :where(.aksk-icon-button, .aksk-menu-button, .aksk-a11y-control button, .aksk-a11y-grid button) {
  color: var(--aksk-ink);
  border-color: var(--aksk-line);
  background: var(--aksk-soft);
}

body.aksk-dark :where(.aksk-home-body, .aksk-notices, .aksk-content, .aksk-report, .aksk-report-body) {
  color: var(--aksk-copy);
  background: var(--aksk-bg);
}
body.aksk-dark :where(.aksk-service-card, .aksk-report-card, .content-box, .sidebar-box) {
  color: var(--aksk-copy) !important;
  border-color: var(--aksk-line) !important;
  background: var(--aksk-soft) !important;
}
body.aksk-dark :where(.aksk-news-feature__excerpt, .aksk-service-card p, .aksk-loop-card p, .aksk-post-meta) {
  color: var(--aksk-muted);
}

body.aksk-dark .aksk-partners { background: #0f1a2b; }
body.aksk-dark .aksk-partner {
  border-color: #cbd5e1;
  background: #fff;
}

body.aksk-dark :where(
  .aksk-entry-content,
  .aksk-entry-content p,
  .aksk-entry-content li,
  .aksk-entry-content td,
  .aksk-entry-content th,
  .aksk-template-shell,
  .post-body,
  .post-content,
  .post-excerpt
) { color: var(--aksk-copy); }
body.aksk-dark :where(
  .aksk-entry-content h1,
  .aksk-entry-content h2,
  .aksk-entry-content h3,
  .aksk-entry-content h4,
  .aksk-entry-content h5,
  .aksk-entry-content h6,
  .entry-title,
  .page-title,
  .post-title
) { color: var(--aksk-ink) !important; }
body.aksk-dark :where(
  .aksk-entry-content table,
  .aksk-entry-content blockquote,
  .aksk-entry-content pre,
  .aksk-entry-content .wp-block-group.has-background,
  .aksk-template-shell .post-body,
  .aksk-template-shell .content-box
) {
  border-color: var(--aksk-line) !important;
  background: var(--aksk-soft) !important;
}

body.aksk-dark :where(
  input:not([type="submit"]):not([type="button"]),
  textarea,
  select
) {
  color: var(--aksk-ink);
  border-color: #475569;
  background: #0f172a;
}
body.aksk-dark :where(input, textarea)::placeholder { color: #94a3b8; }

body.aksk-dark .aksk-report-alert {
  color: var(--aksk-copy);
  border-color: #c2410c;
  background: var(--aksk-white);
}
body.aksk-dark :where(.aksk-report-card h2, .aksk-report-card__link) { color: var(--aksk-ink); }
body.aksk-dark .aksk-report-card p { color: var(--aksk-muted); }

body.aksk-dark .aksk-a11y-panel__head { color: #fff; background: var(--aksk-navy); }
body.aksk-dark .aksk-a11y-grid button.is-active,
body.aksk-dark .aksk-a11y-control button.is-active {
  color: #fff;
  border-color: var(--aksk-teal);
  background: var(--aksk-teal);
}

body.aksk-dark .aksk-button--light,
body.aksk-dark .aksk-hero__link {
  color: var(--aksk-navy);
  background: #fff;
}

@media (max-width: 1200px) {
  body.aksk-dark .aksk-mobile-nav a { border-color: var(--aksk-line); }
  body.aksk-dark .aksk-mobile-nav .aksk-mega__link--sub { color: var(--aksk-muted); }
}
