/* NextGait design system. Loaded only for admin preview until the public gate is enabled. */
body.ng-design-v1 {
  --ng-ink: #142a28;
  --ng-text: #30413e;
  --ng-muted: #56635f;
  --ng-paper: #f9f8f3;
  --ng-surface: #fffefa;
  --ng-accent: #973724;
  --ng-accent-hover: #762819;
  --ng-line: #d9dfd9;
  --ng-mint: #dcece2;
  --ng-peach: #f4e8dc;
  --ng-font: Arial, Helvetica, sans-serif;
  background: var(--ng-paper);
  color: var(--ng-text);
  font-family: var(--ng-font);
  line-height: 1.55;
}

body.ng-design-v1 :where(button, input, select, textarea) { font-family: var(--ng-font); }
body.ng-design-v1 :where(p, li, blockquote) { color: inherit; }
body.ng-design-v1 :where(h1, h2, h3, h4, h5, h6) { color: var(--ng-ink); font-family: var(--ng-font); }
body.ng-design-v1 :where(.entry-title, .entry-content h1, .entry-content h2, .entry-content h3, .ngv2-archive h1, .ngv2-archive h2) { font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
body.ng-design-v1:not(.page-id-3905) :where(.entry-content, .ast-archive-description, .ngv2-archive) a { text-underline-offset: .16em; }
body.ng-design-v1:not(.page-id-3905) :where(.entry-content, .ast-archive-description, .ngv2-archive) a:hover { color: var(--ng-accent-hover); }
body.ng-design-v1 :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--ng-accent); outline-offset: 4px; }

/* Retain Astra Header Builder and its menu, including the native mobile toggle. */
body.ng-design-v1 .site-header { background: var(--ng-surface); border-bottom: 1px solid var(--ng-line); }
body.ng-design-v1 .site-header :where(.ast-primary-header-bar, .ast-above-header-bar, .ast-below-header-bar) { background: var(--ng-surface); }
body.ng-design-v1 .site-header .site-primary-header-wrap.ast-container { max-width: 1280px; }
body.ng-design-v1 #ast-desktop-header .ast-primary-header-bar { min-height: 76px; }
body.ng-design-v1 #ast-mobile-header .ast-primary-header-bar { min-height: 64px; }
body.ng-design-v1 .site-branding .ng-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ng-ink); font: 900 1.35rem/1 var(--ng-font); letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
body.ng-design-v1 .site-branding .ng-brand__mark { display: block; width: 36px; height: 36px; flex: none; }
body.ng-design-v1 .site-branding .ng-brand__wordmark > span { color: var(--ng-accent); }
body.ng-design-v1 .site-branding .ng-brand:hover { text-decoration: none; }
body.ng-design-v1 .site-header .main-header-menu .menu-link { color: var(--ng-ink); font: 800 .82rem/1.35 var(--ng-font); text-decoration: none; }
body.ng-design-v1 .site-header .main-header-menu .menu-link:hover,
body.ng-design-v1 .site-header .main-header-menu .current-menu-item > .menu-link { color: var(--ng-accent); text-decoration: underline; text-underline-offset: 5px; }
body.ng-design-v1 #ast-mobile-header .menu-toggle { color: var(--ng-ink); min-width: 44px; min-height: 44px; }
body.ng-design-v1 #ast-mobile-header .menu-toggle :where(.mobile-menu-toggle-icon, .ast-mobile-svg) { color: var(--ng-ink); fill: currentColor; }
body.ng-design-v1 #ast-mobile-header .ast-mobile-header-content { background: var(--ng-surface); border-top: 1px solid var(--ng-line); }
body.ng-design-v1 #ast-mobile-header .main-header-menu .menu-link { padding-block: 13px; font-size: .95rem; }

@media (min-width: 922px) {
  body.ng-design-v1 #ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row-has-sides.ast-builder-grid-row-no-center { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  body.ng-design-v1 #ast-desktop-header .site-header-primary-section-right { margin-left: auto; }
}

/* Shared page surfaces; article-specific layouts remain Astra's. */
body.ng-design-v1 .site-content { background: var(--ng-paper); }
body.ng-design-v1 :where(.ast-article-single, .ast-archive-description, .ast-separate-posts .post) { background: var(--ng-surface); }
body.ng-design-v1:not(.page-id-3905) :where(.entry-content, .ngv2-archive) a { color: var(--ng-accent); }
body.ng-design-v1 :where(.entry-meta, .ast-archive-meta) a { color: var(--ng-accent); }
body.ng-design-v1:not(.page-id-3905) .entry-content :where(.wp-block-button__link, button, input[type="submit"]) { background: var(--ng-accent); color: #fff; border-radius: 2px; font-weight: 800; }
body.ng-design-v1:not(.page-id-3905) .entry-content :where(.wp-block-button__link, button, input[type="submit"]):hover { background: var(--ng-accent-hover); color: #fff; }
body.ng-design-v1 .ngv2-archive { color: var(--ng-text); }
body.ng-design-v1 .ngv2-archive :where(.ngv2-start, .ngv2-topic-nav) { background: var(--ng-mint); border-radius: 4px; }
body.ng-design-v1 .ngv2-archive .ngv2-feed { border-color: var(--ng-line); }
body.ng-design-v1 .ngv2-archive .ngv2-article-list li { background: var(--ng-surface); border-color: var(--ng-line); border-radius: 4px; }
body.ng-design-v1 .ngv2-archive .ngv2-pagination :where(a, span) { border-color: var(--ng-line); border-radius: 2px; }
body.ng-design-v1 .ngv2-archive .ngv2-pagination a:hover { color: #fff; background: var(--ng-accent); }

/* Keep the existing native footer structure and make it legible on dark ink. */
body.ng-design-v1 .site-footer,
body.ng-design-v1 .site-footer :where(.site-above-footer-wrap, .site-primary-footer-wrap, .site-below-footer-wrap) { background: var(--ng-ink); color: var(--ng-paper); }
body.ng-design-v1 .site-footer :where(p, li, .ast-footer-copyright) { color: var(--ng-paper); }
body.ng-design-v1 .site-footer :where(a, a:visited) { color: var(--ng-paper); text-decoration: none; }
body.ng-design-v1 .site-footer a:hover { color: var(--ng-peach); text-decoration: underline; text-underline-offset: 4px; }
body.ng-design-v1 .site-footer a:focus-visible { outline-color: var(--ng-peach); }
body.ng-design-v1 .site-footer .ast-builder-social-element :where(svg, path) { color: var(--ng-paper); fill: currentColor; }
body.ng-design-v1 .site-footer .site-below-footer-wrap { border-top: 1px solid #47605a; }
body.ng-design-v1 .site-footer .ast-footer-copyright { font-size: .82rem; line-height: 1.6; }

@media (max-width: 921px) {
  body.ng-design-v1 .site-branding .ng-brand { font-size: 1.25rem; }
  body.ng-design-v1 .site-branding .ng-brand__mark { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  body.ng-design-v1 :where(.menu-link, .wp-block-button__link, .ngv2-pagination a) { transition: color .16s ease, background-color .16s ease; }
}

/* Single articles share the homepage paper instead of Astra's floating white card. */
body.single-post.ng-design-v1 .site-content > .ast-container {
  max-width: 750px;
}
body.single-post.ng-design-v1 .site-content .content-area {
  margin-block: 52px 88px;
}
body.single-post.ng-design-v1 .ast-article-single {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0 40px;
}
body.single-post.ng-design-v1 .entry-header {
  margin-bottom: 24px;
}
body.single-post.ng-design-v1 .entry-title {
  font-size: clamp(2.15rem, 3.3vw, 2.8rem);
  line-height: 1.13;
  margin-bottom: 14px;
}
body.single-post.ng-design-v1 .entry-meta {
  color: var(--ng-muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.5;
}
body.single-post.ng-design-v1 .entry-meta a,
body.single-post.ng-design-v1 .entry-meta a:visited {
  color: var(--ng-accent);
}
body.single-post.ng-design-v1 .entry-meta .author-name { color: var(--ng-accent); }
body.single-post.ng-design-v1 .entry-meta :where(.posted-on, .published, .updated) { color: var(--ng-muted); }
body.single-post.ng-design-v1 .entry-content {
  color: var(--ng-text);
  font-size: 1.0625rem;
  line-height: 1.68;
}
body.single-post.ng-design-v1 .entry-content .ngv2-breadcrumb {
  color: var(--ng-muted);
  font-size: .84rem;
  line-height: 1.55;
  margin-bottom: 28px;
}
body.single-post.ng-design-v1 .entry-content .ngv2-breadcrumb a,
body.single-post.ng-design-v1 .entry-content .ngv2-breadcrumb a:visited {
  color: var(--ng-accent);
}
body.single-post.ng-design-v1 .entry-content a:not(.wp-block-button__link):hover {
  color: var(--ng-accent-hover);
}

@media (max-width: 921px) {
  body.single-post.ng-design-v1 .site-content > .ast-container.ast-container { padding-inline: 20px !important; }
  body.single-post.ng-design-v1 .site-content .content-area.primary {
    margin: 0;
    padding-block: 38px 64px !important;
  }
  body.single-post.ng-design-v1 .ast-article-single { padding: 0; }
  body.single-post.ng-design-v1 .entry-title { font-size: clamp(1.9rem, 8vw, 2.35rem); }
  body.single-post.ng-design-v1 .entry-content { font-size: 16px; line-height: 1.65; }
}
