/* 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: #0f1622; color: #ece6dd; }
html[data-theme="dark"] body { background-color: #0f1622; color: #ece6dd; }
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: #22314c !important; color: #ece6dd !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: #111a28;
  color: #c5d3e9;
}
html[data-theme="dark"] .skip-link {
  background: #0f1622;
}
html[data-theme="dark"] .site-header {
  border-bottom: 1px solid rgba(181,199,227,0.16);
  background: rgba(17,26,40,0.95);
}
html[data-theme="dark"] .brand small {
  color: #8e9ba9;
}
html[data-theme="dark"] .brand-mark {
  border: 1px solid #c5d3e9;
}
html[data-theme="dark"] .top-nav a:not(.nav-cta):hover {
  color: #d88364;
}
html[data-theme="dark"] .nav-cta {
  color: #fff;
}
html[data-theme="dark"] .menu-button {
  border: 1px solid #c5d3e9;
}
html[data-theme="dark"] .hero-new {
  background: radial-gradient(circle at 82% 20%,#372a1a 0,transparent 30%),#151e2e;
}
html[data-theme="dark"] .eyebrow {
  color: #d88364;
}
html[data-theme="dark"] .hero-new h1 em,
html[data-theme="dark"] .final-cta em {
  color: #d88364;
}
html[data-theme="dark"] .hero-lede {
  color: #99a7bc;
}
html[data-theme="dark"] .button.primary {
  color: #fff;
}
html[data-theme="dark"] .button.text {
  border-bottom: 1px solid #c5d3e9;
}
html[data-theme="dark"] .hero-proof {
  border-top: 1px solid #42372b;
}
html[data-theme="dark"] .hero-proof span {
  color: #8e9ba9;
}
html[data-theme="dark"] .hero-proof strong {
  color: #c5d3e9;
}
html[data-theme="dark"] .portrait-note {
  background: #111a28;
}
html[data-theme="dark"] .portrait-note small {
  color: #8e9ba9;
}
html[data-theme="dark"] .status-dot {
  color: #16243a;
}
html[data-theme="dark"] .trust-strip {
  color: #fff;
}
html[data-theme="dark"] .intro-section>div:last-child,
html[data-theme="dark"] .about-section>div:last-child {
  color: #99a7bc;
}
html[data-theme="dark"] .services-section {
  background: #302618;
}
html[data-theme="dark"] .section-heading>p:last-child {
  color: #8e9ba9;
}
html[data-theme="dark"] .service-grid {
  background: #362d22;
}
html[data-theme="dark"] .service-card {
  background: #111a28;
}
html[data-theme="dark"] .service-card>span {
  color: #8f9aa8;
}
html[data-theme="dark"] .service-icon {
  color: #d88364;
}
html[data-theme="dark"] .service-card p {
  color: #8e9ba9;
}
html[data-theme="dark"] .service-card ul {
  border-top: 1px solid #2a323f;
}
html[data-theme="dark"] .service-card li:before {
  color: #d88364;
}
html[data-theme="dark"] .work-section {
  color: #fff;
}
html[data-theme="dark"] .section-heading.light .eyebrow {
  color: #c99a69;
}
html[data-theme="dark"] .cases {
  border-top: 1px solid rgba(42,42,42,0.2);
}
html[data-theme="dark"] .case {
  border-bottom: 1px solid rgba(42,42,42,0.2);
}
html[data-theme="dark"] .case-meta b {
  color: #c99a69;
}
html[data-theme="dark"] .case-tags span {
  border: 1px solid rgba(42,42,42,0.2);
}
html[data-theme="dark"] .ai-section {
  background: #372a1a;
}
html[data-theme="dark"] .ai-core {
  color: white;
}
html[data-theme="dark"] .orbit {
  border: 1px solid #40444b;
}
html[data-theme="dark"] .ai-copy>p {
  color: #96a4b9;
}
html[data-theme="dark"] .ai-list>div {
  border-top: 1px solid #2f3643;
}
html[data-theme="dark"] .ai-list span {
  color: #d88364;
}
html[data-theme="dark"] .ai-list strong {
  color: #c5d3e9;
}
html[data-theme="dark"] .button.dark {
  color: #fff;
}
html[data-theme="dark"] .about-section {
  background: #111a28;
}
html[data-theme="dark"] .credentials span {
  background: #302618;
}
html[data-theme="dark"] .final-cta {
  color: #fff;
}
html[data-theme="dark"] .button.coral {
  color: white;
}
html[data-theme="dark"] .final-cta small a {
  color: #ffffff;
}
html[data-theme="dark"] footer {
  color: #fff;
}
html[data-theme="dark"] footer>p {
  border-top: 1px solid rgba(42,42,42,0.133);
}
html[data-theme="dark"] .sidebar {
  color: #fff;
}
html[data-theme="dark"] .sidebar .avatar {
  border: 3px solid #4e3c2a;
}
html[data-theme="dark"] .sidebar .social-links a {
  border: 1px solid rgba(42,42,42,0.267);
}
html[data-theme="dark"] .sidebar-nav {
  border-top: 1px solid rgba(42,42,42,0.133);
}
html[data-theme="dark"] .sidebar-nav a {
  border-bottom: 1px solid rgba(42,42,42,0.133);
}
html[data-theme="dark"] .sidebar-nav a.active {
  color: #c99a69;
}
html[data-theme="dark"] .lede {
  color: #8e9ba9;
}
html[data-theme="dark"] .pub-item,
html[data-theme="dark"] .blog-item {
  border-bottom: 1px solid #2a323f;
}
html[data-theme="dark"] .year-tag,
html[data-theme="dark"] .blog-date {
  color: #d88364;
}
html[data-theme="dark"] .authors,
html[data-theme="dark"] .venue {
  color: #8e9cad;
}
html[data-theme="dark"] .read-more,
html[data-theme="dark"] .back-link {
  color: #d88364;
}
html[data-theme="dark"] .post-meta {
  color: #8e9ba9;
}
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .card {
  border: 1px solid #2a323f;
}
html[data-theme="dark"] .cta-band {
  color: #fff;
}
html[data-theme="dark"] .page-main .page-header {
  border-bottom: 1px solid #2a323f;
}
html[data-theme="dark"] .page-main .pub-section h2 {
  border-bottom: 1px solid #c5d3e9;
}
html[data-theme="dark"] .page-main .doi {
  color: #d88364;
}
html[data-theme="dark"] .top-nav a.active {
  color: #d88364;
}
html[data-theme="dark"] .research-metrics {
  border: 1px solid #2a323f;
  background: #151e2e;
}
html[data-theme="dark"] .research-metrics div {
  border-right: 1px solid #2a323f;
}
html[data-theme="dark"] .research-metrics strong {
  color: #d88364;
}
html[data-theme="dark"] .research-metrics span {
  color: #8e9ba9;
}
html[data-theme="dark"] .topic-nav a,
html[data-theme="dark"] .story-tags span {
  border: 1px solid #2a323f;
}
html[data-theme="dark"] .topic-nav a:hover {
  border-color: #d88364;
  color: #d88364;
}
html[data-theme="dark"] .research-story {
  border: 1px solid #2a323f;
  background: #111a28;
}
html[data-theme="dark"] .story-featured {
  color: #fff;
}
html[data-theme="dark"] .story-number {
  color: #d88364;
}
html[data-theme="dark"] .story-topic {
  color: #c99a69;
}
html[data-theme="dark"] .research-story p:not(.story-topic) {
  color: #8e9ba9;
}
html[data-theme="dark"] .story-tags span {
  border-color: rgba(42,42,42,0.2);
}
html[data-theme="dark"] .story-link {
  color: #d88364;
}
html[data-theme="dark"] .research-story-grid {
  background: #332c23;
}
html[data-theme="dark"] .complete-record {
  border-top: 1px solid #c5d3e9;
  border-bottom: 1px solid #2a323f;
}
html[data-theme="dark"] .complete-record>p {
  color: #8e9ba9;
}
html[data-theme="dark"] .insights-hero {
  background: #151e2e;
}
html[data-theme="dark"] .insights-hero>div:last-child {
  color: #8e9ba9;
}
html[data-theme="dark"] .featured-insights {
  color: #fff;
}
html[data-theme="dark"] .featured-insights-grid {
  background: rgba(15,22,34,0.169);
}
html[data-theme="dark"] .insight-tags span {
  color: #c99a69;
}
html[data-theme="dark"] .insight-link {
  color: #d88364;
}
html[data-theme="dark"] .insights-library {
  background: #302618;
}
html[data-theme="dark"] .insights-filters button {
  border: 1px solid #2c3442;
  color: #c5d3e9;
}
html[data-theme="dark"] .insights-filters button.active,
html[data-theme="dark"] .insights-filters button:hover {
  color: #fff;
  border-color: #c5d3e9;
}
html[data-theme="dark"] .insight-card {
  background: #111a28;
}
html[data-theme="dark"] .insight-card p {
  color: #8e9ba9;
}
html[data-theme="dark"] .insight-card-footer {
  border-top: 1px solid #2a323f;
  color: #8e9ba9;
}
html[data-theme="dark"] .insight-card-footer a {
  color: #d88364;
}
html[data-theme="dark"] .insights-cta {
  background: #372a1a;
}
html[data-theme="dark"] .contact-hero {
  background: radial-gradient(circle at 85% 15%,#372a1a 0,transparent 29%),#151e2e;
}
html[data-theme="dark"] .contact-hero h1 em {
  color: #d88364;
}
html[data-theme="dark"] .contact-hero-copy>p:not(.eyebrow) {
  color: #99a7bc;
}
html[data-theme="dark"] .contact-direct {
  color: #fff;
}
html[data-theme="dark"] .contact-status {
  border-bottom: 1px solid rgba(42,42,42,0.157);
}
html[data-theme="dark"] .contact-detail {
  border-bottom: 1px solid rgba(42,42,42,0.157);
}
html[data-theme="dark"] .contact-detail>span {
  color: #c99a69;
}
html[data-theme="dark"] .contact-detail a,
html[data-theme="dark"] .contact-detail p {
  color: #ffffff;
}
html[data-theme="dark"] .contact-detail a:hover {
  color: #d88364;
}
html[data-theme="dark"] .contact-fit {
  background: #111a28;
}
html[data-theme="dark"] .contact-section-heading>p:last-child {
  color: #8e9ba9;
}
html[data-theme="dark"] .contact-fit-grid {
  background: #332c23;
}
html[data-theme="dark"] .contact-fit-grid article {
  background: #151e2e;
}
html[data-theme="dark"] .contact-fit-grid article>span {
  color: #d88364;
}
html[data-theme="dark"] .contact-fit-grid p {
  color: #8e9ba9;
}
html[data-theme="dark"] .contact-process {
  color: #fff;
}
html[data-theme="dark"] .contact-process .eyebrow {
  color: #c99a69;
}
html[data-theme="dark"] .contact-process li {
  border-top: 1px solid rgba(42,42,42,0.169);
}
html[data-theme="dark"] .contact-process li:last-child {
  border-bottom: 1px solid rgba(42,42,42,0.169);
}
html[data-theme="dark"] .contact-process li>span {
  color: #d88364;
}
html[data-theme="dark"] .contact-closing {
  background: #372a1a;
}
html[data-theme="dark"] .contact-closing>div:last-child>p {
  color: #96a4b9;
}
html[data-theme="dark"] .research-story .story-topic,
html[data-theme="dark"] .insight-card .insight-tags span {
  color: #d88364;
}
html[data-theme="dark"] .story-featured .story-topic {
  color: #c99a69;
}
@media(max-width:980px) {
  html[data-theme="dark"] .top-nav {
    background: #111a28;
  }
  html[data-theme="dark"] .research-metrics div:nth-child(-n+2) {
    border-bottom: 1px solid #2a323f;
  }
}

/* ---- inline style="" attributes ---- */
html[data-theme="dark"] [style="margin-top:2.5em; color: var(--muted); font-size: 0.9rem;"] {
  color: #8e9ba9 !important;
}

/* ---- client-rendered inline styles (browser-serialized form) ---- */
html[data-theme="dark"] [style^="color: rgb(89, 102, 117)"],
html[data-theme="dark"] [style*="; color: rgb(89, 102, 117)"] { color: rgb(142, 155, 169) !important; }

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

/* Whitepapers: styled by the Tailwind CDN at runtime (colors from its inline config),
   so build-theme.cjs can't see them. Dark values for each color class they use. */
html[data-theme="dark"] .bg-white { background-color: #151e2d; }
html[data-theme="dark"] .bg-slate-50 { background-color: #131c29; }
html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .hover\:bg-slate-100:hover { background-color: #1a2435; }
html[data-theme="dark"] .bg-blue-50 { background-color: #2a1e19; }
html[data-theme="dark"] .text-navy,
html[data-theme="dark"] .text-slate-800 { color: #ece6dd; }
html[data-theme="dark"] .text-slate-700 { color: #d3d9e2; }
html[data-theme="dark"] .text-slate-600 { color: #b8c1cd; }
html[data-theme="dark"] .text-slate-500 { color: #a0abb9; }
html[data-theme="dark"] .text-academic { color: #e9ad87; }
html[data-theme="dark"] .hover\:text-blue-800:hover { color: #f3c6a8; }
html[data-theme="dark"] .border-slate-200 { border-color: #2a3546; }
html[data-theme="dark"] .border-slate-300 { border-color: #36435a; }
html[data-theme="dark"] .border-blue-200 { border-color: #5c3d2c; }
html[data-theme="dark"] .border-navy { border-color: #ece6dd; }
html[data-theme="dark"] ::selection { background: #5c3d2c; color: #fff; }
