/* TGSN R1.2.1 targeted dark-mode contrast correction.
   Loaded after Network R1.2 and research-expansion styles. */
html[data-theme="dark"] body.tgsn-ui-polish-network .tn-exp h2,
html[data-theme="dark"] body.tgsn-ui-polish-network .tn-exp .tnr2-heading,
html[data-theme="dark"] body.tgsn-ui-polish-network .tn-exp h3,
html[data-theme="dark"] body.tgsn-ui-polish-network .tnr2 h2 {
  color: #f2f7ff !important;
}
html[data-theme="dark"] body.tgsn-ui-polish-network .tn-exp .tn-exp-card h3,
html[data-theme="dark"] body.tgsn-ui-polish-network .tn-exp .tn-exp-card h3 a {
  color: #cbe5ff !important;
}
html[data-theme="dark"] body.tgsn-ui-polish-network .hero-row p,
html[data-theme="dark"] body.tgsn-ui-polish-network .hero .hero-row p {
  color: #e2effe !important;
}
/* Preserve contrast of research summaries and subtle labels. */
html[data-theme="dark"] body.tgsn-ui-polish-network .tn-exp .tn-exp-label,
html[data-theme="dark"] body.tgsn-ui-polish-network .tn-exp .tn-exp-note {
  color: #d5e5f7 !important;
}
html[data-theme="dark"] body.tgsn-ui-polish-network .tn-exp .tn-exp-card p {
  color: #e5eefb !important;
}
/* Keyboard focus clarity in both modes. */
html[data-theme] .tgsn-theme-button:focus-visible,
html[data-theme] .hero .buttons a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
