/* GENERATED by scripts/theme/build-theme.cjs from the site's own CSS — do not edit.
   Hand-tuned dark values go in theme.manual.css (appended at the end). Light mode is
   untouched: every rule below applies only under html[data-theme="dark"]. */
html[data-theme="dark"] { color-scheme: dark; background-color: #0b161c; color: #eceae2; }
html[data-theme="dark"] body { background-color: #0b161c; color: #eceae2; }
html[data-theme="dark"] :where(img:not([src$=".svg"]):not(.no-dim)) { filter: brightness(.92); }

/* Theme toggle button (theme-toggle.js) */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; margin: 0 0 0 4px; padding: 0; border: 1px solid currentColor !important; border-radius: 999px; background: transparent !important; color: inherit !important; cursor: pointer; opacity: .85; font: inherit; line-height: 1; }
.theme-toggle:hover { opacity: 1; }
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; opacity: 1; }
.theme-toggle .tt-sun { display: none; }
html[data-theme="dark"] .theme-toggle .tt-sun { display: block; }
html[data-theme="dark"] .theme-toggle .tt-moon { display: none; }
.theme-toggle--floating { position: fixed; right: 16px; bottom: 16px; z-index: 9999; margin: 0; background: #fff !important; color: #1f2937 !important; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
html[data-theme="dark"] .theme-toggle--floating { background: #1c3948 !important; color: #eceae2 !important; }
@media (max-width: 480px) { .theme-toggle { width: 32px; height: 32px; } }
@media print { .theme-toggle { display: none !important; } }

/* ---- from the site's stylesheets ---- */
html[data-theme="dark"] body {
  background: #0e1d25;
  color: #cee9f7;
}
html[data-theme="dark"] .site-header {
  border-bottom: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .brand>span>span {
  color: #acd35f;
}
html[data-theme="dark"] .brand-mark circle {
  stroke: #cee9f7;
}
html[data-theme="dark"] .header-cta {
  color: white;
}
html[data-theme="dark"] .header-cta span {
  color: #b4e64c;
}
html[data-theme="dark"] .hero:after {
  border: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .eyebrow span {
  color: #082331;
}
html[data-theme="dark"] .hero h1 em {
  color: #62d0c7;
}
html[data-theme="dark"] .hero-copy>p {
  color: #8fa1a8;
}
html[data-theme="dark"] .trust-line {
  border-top: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .calculator {
  background: #0b161c;
  border: 1px solid #cee9f7;
}
html[data-theme="dark"] .text-button {
  color: #8fa1a8;
}
html[data-theme="dark"] .field small {
  color: #8fa1a8;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select {
  border: 1px solid rgba(179,212,230,0.2);
  background: #0c1920;
  color: #cee9f7;
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus {
  border-color: #62d0c7;
}
html[data-theme="dark"] .input-suffix span {
  color: #8fa1a8;
}
html[data-theme="dark"] .segmented {
  border: 1px solid rgba(179,212,230,0.2);
  background: #0f1d25;
}
html[data-theme="dark"] .segment {
  color: #8fa1a8;
}
html[data-theme="dark"] .segment.active {
  color: white;
}
html[data-theme="dark"] .info {
  border: 1px solid rgba(179,212,230,0.2);
  background: #0b161c;
}
html[data-theme="dark"] .calculate-button {
  color: #082331;
}
html[data-theme="dark"] .calculate-button:hover {
  color: #082331;
}
html[data-theme="dark"] .error-message {
  color: #e28380;
}
html[data-theme="dark"] .result-section {
  color: white;
}
html[data-theme="dark"] .result-number-row strong {
  color: #b4e64c;
}
html[data-theme="dark"] .status-pill {
  border: 1px solid rgba(37,37,37,0.2);
}
html[data-theme="dark"] .status-pill span {
  color: #082331;
}
html[data-theme="dark"] .copy-button {
  border-bottom: 1px solid #374147;
  color: #ffffff;
}
html[data-theme="dark"] .chart-head small {
  color: #8ea2a9;
}
html[data-theme="dark"] .chart-head>strong {
  color: #b4e64c;
}
html[data-theme="dark"] .grid-lines line {
  stroke: rgba(11,22,28,0.12);
}
html[data-theme="dark"] .target-line {
  stroke: #0b161c;
}
html[data-theme="dark"] .point {
  fill: #cee9f7;
}
html[data-theme="dark"] .chart-labels .target-label {
  fill: #0b161c;
}
html[data-theme="dark"] .chart-note {
  border-top: 1px solid rgba(37,37,37,0.16);
}
html[data-theme="dark"] .chart-note>span {
  color: #082331;
}
html[data-theme="dark"] .chart-note strong {
  color: #ffffff;
}
html[data-theme="dark"] .section-intro p {
  color: #8fa1a8;
}
html[data-theme="dark"] .concepts {
  border-top: 1px solid #cee9f7;
}
html[data-theme="dark"] .concepts article {
  border-bottom: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .concepts article>span {
  color: #62d0c7;
}
html[data-theme="dark"] .concepts p {
  color: #8fa1a8;
}
html[data-theme="dark"] .method {
  border-top: 1px solid #cee9f7;
}
html[data-theme="dark"] .method-copy>p {
  color: #8fa1a8;
}
html[data-theme="dark"] .method li {
  border-top: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .method li span {
  color: #acd35f;
}
html[data-theme="dark"] .expert-cta {
  color: #082331;
}
html[data-theme="dark"] .expert-cta a {
  color: white;
}
html[data-theme="dark"] .expert-cta a span {
  color: #b4e64c;
}
html[data-theme="dark"] footer {
  background: #0b161c;
  color: #8fa1a8;
}
html[data-theme="dark"] .footer-brand {
  color: #cee9f7;
}
html[data-theme="dark"] .tooltip {
  color: white;
}
html[data-theme="dark"] .skip-link {
  color: #082331;
}
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] select:focus-visible,
html[data-theme="dark"] summary:focus-visible {
  outline: 3px solid #62d0c7;
}
html[data-theme="dark"] .faq {
  border-top: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .faq-list {
  border-top: 1px solid #cee9f7;
}
html[data-theme="dark"] .faq-list details {
  border-bottom: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .faq-list p {
  color: #8fa1a8;
}
html[data-theme="dark"] .page-hero {
  border-bottom: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .page-hero h1 em {
  color: #62d0c7;
}
html[data-theme="dark"] .page-hero p {
  color: #8fa1a8;
}
html[data-theme="dark"] .prose h2:not(:first-child) {
  border-top: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .prose p {
  color: #8fa1a8;
}
html[data-theme="dark"] .prose strong {
  color: #cee9f7;
}
html[data-theme="dark"] .prose ul {
  color: #8fa1a8;
}
html[data-theme="dark"] .prose li::marker {
  color: #acd35f;
}
html[data-theme="dark"] .prose .formula {
  color: #cee9f7;
  background: #0b161c;
  border: 1px solid rgba(179,212,230,0.2);
  border-left: 3px solid #acd35f;
}
html[data-theme="dark"] .prose code {
  color: #cee9f7;
}
html[data-theme="dark"] .prose th,
html[data-theme="dark"] .prose td {
  border-bottom: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .prose th {
  color: #8fa1a8;
}
html[data-theme="dark"] .prose td {
  color: #8fa1a8;
}
html[data-theme="dark"] .prose td:first-child {
  color: #cee9f7;
}
html[data-theme="dark"] .principles {
  border-top: 1px solid #cee9f7;
}
html[data-theme="dark"] .principles article {
  border-bottom: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .principles article:nth-child(odd) {
  border-right: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .principles span {
  color: #62d0c7;
}
html[data-theme="dark"] .page-callout {
  color: white;
}
html[data-theme="dark"] .page-callout a {
  color: #082331;
}
html[data-theme="dark"] .sitemap-list {
  border-top: 1px solid #cee9f7;
}
html[data-theme="dark"] .sitemap-group {
  border-bottom: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .dass-endorsement {
  border-left: 1px solid rgba(179,212,230,0.2);
  color: #8fa1a8;
}
html[data-theme="dark"] .dass-endorsement strong {
  color: #cee9f7;
}
html[data-theme="dark"] .assumption-note {
  border-left: 3px solid #62d0c7;
  background: #0e1b22;
}
html[data-theme="dark"] .assumption-note span {
  color: #cee9f7;
}
html[data-theme="dark"] .assumption-note p {
  color: #8fa1a8;
}
html[data-theme="dark"] .assumption-note a {
  color: #cee9f7;
}
html[data-theme="dark"] .expert-cta .grant-note {
  border-top: 1px solid rgba(179,211,230,0.29);
}
html[data-theme="dark"] .expert-cta .grant-note strong {
  color: #cee9f7;
}
html[data-theme="dark"] .shortform-feature {
  background: #102029;
  border-top: 1px solid rgba(179,212,230,0.2);
  border-bottom: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .shortform-feature h2 em {
  color: #8aeee7;
}
html[data-theme="dark"] .shortform-feature p {
  color: #8fa1a8;
}
html[data-theme="dark"] .shortform-feature-link {
  color: white;
}
html[data-theme="dark"] .shortform-feature-link span {
  color: #b4e64c;
}
html[data-theme="dark"] .shortform-feature small {
  color: #8fa1a8;
}
html[data-theme="dark"] .nav-tools summary:focus-visible,
html[data-theme="dark"] .nav-menu a:focus-visible {
  outline: 3px solid #62d0c7;
}
html[data-theme="dark"] .nav-menu {
  background: #0b161c;
  border: 1px solid rgba(179,212,230,0.2);
}
html[data-theme="dark"] .nav-menu a span {
  color: #8fa1a8;
}
html[data-theme="dark"] .nav-menu a:hover {
  background: #0e1d25;
}
html[data-theme="dark"] .nav-menu a[aria-current="page"] {
  border-left-color: #acd35f;
  background: #0e1d25;
}
html[data-theme="dark"] .sister-sites {
  background: #0c191f;
  border-top: 1px solid #1e2938;
  color: #d5ddf0;
}
html[data-theme="dark"] .sister-sites .ss-label {
  color: #94a1b2;
}
html[data-theme="dark"] .sister-sites a {
  color: #d5ddf0;
}
html[data-theme="dark"] .sister-sites .ss-line {
  color: #94a1b2;
}
html[data-theme="dark"] .sister-sites a:focus-visible {
  outline: 2px solid #8beee7;
}
@media(max-width:1250px) {
  html[data-theme="dark"] .site-header.open nav {
    background: #0e1d25;
    border-bottom: 1px solid rgba(179,212,230,0.2);
  }
  html[data-theme="dark"] .nav-menu {
    border-left: 1px solid rgba(179,212,230,0.2);
  }
}

/* ---- inline style="" attributes ---- */

/* ---- theme.manual.css ---- */
/* Hand-tuned dark-mode rules for StatPower (appended to dist/theme.css by
   scripts/theme/build-theme.cjs). Light mode is never affected. */

/* Short-form simulator chart (shortform.js draws stroke/fill attributes) */
html[data-theme="dark"] #curves polyline[stroke="#082331"] { stroke: #e6ecef; }
html[data-theme="dark"] #curves polyline[stroke="#965025"] { stroke: #e0a072; }
html[data-theme="dark"] #curves polyline[stroke="#087e76"] { stroke: #44c7bc; }
html[data-theme="dark"] #curves path[stroke="#68777c"] { stroke: #8fa1a8; }
html[data-theme="dark"] #curves rect[fill="#c7f36b"] { opacity: .22; }
html[data-theme="dark"] #curves text { fill: #c9d3d6; }

/* Text inside the aqua "expert" band keeps the light-mode ink (the band itself is unchanged). */
html[data-theme="dark"] .expert-cta .grant-note strong,
html[data-theme="dark"] .expert-cta .grant-note { color: #082331; }
