/* Accessibility: readable muted text.
 * Much of the quieter text in Groundwork (hints, notes, table headings, inactive tabs, the footer) was faded with
 * transparency, which took it below the WCAG AA contrast minimum (4.5:1). It now uses the soft text colour at full
 * strength instead: the same quiet look, but readable. Loaded last so it wins over the tools' own styles. */
.tabs .tab, .mobile-tabbar .tab, .gw-mode button, body.gw5 .tabs .gw-stage, body.gw5 .mobile-tabbar .gw-stage { opacity: 1 !important; }
.tabs .tab:not(.active), body.gw5 .tabs .gw-stage:not(.active), .gw-mode button:not(.active) { color: var(--fg-soft) !important; }
header p, .section-label, .locstatus, .valrow, .card .note, .card .formula-toggle summary, .formula, .site-context-addr,
.sc-item .sc-dist, .sc-empty, .sc-note, .checklist-intro, .cl-card ul, .resolve-stat .label, .resolve-detail, .resolve-check,
.optional, .steps p, body > footer, .case-details-body p, .handoff-intro p, .brief-doc .brief-sub, .brief-doc .brief-section h4,
.brief-doc td:first-child, .brief-doc .brief-formula, .brief-doc .brief-disclaimer, .ai-big-unit, .calc-method .formula,
.h-f label .u, .h-f .hint, .h-addr-fine, .gw-guide-item i, .gw-lead, .gw-note, .gwc-t th, .eng-none, .con-ticks, .yd-ex > span, .eng-g summary span, footer {
  opacity: 1 !important; color: var(--fg-soft) !important;
}
.con-head span, .con-ticks, .con-why, .con-cap, .con-big span, .con-fine, .oe-help-head small, .oe-help-note, .gws-map.empty,
.gwc-big small, .gw-std-where > span i { opacity: 1 !important; color: var(--fg-soft) !important; }
.chart-dl { opacity: 1 !important; }
summary span, .con-sum, .con-score { opacity: 1 !important; }
.src { opacity: 1 !important; color: var(--fg-soft) !important; }

/* Dark theme: the teal is lighter there, so selected buttons on teal use dark text (6:1) instead of white. */
:root[data-theme="dark"] :is(.gw-mode button.active, .gw-sub.active, .cad-tool-btn.active, .choice.active, .plan .ribbon.cur) { color: #10130F !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.gw-mode button.active, .gw-sub.active, .cad-tool-btn.active, .choice.active, .plan .ribbon.cur) { color: #10130F !important; }
  :root:not([data-theme="light"]) .gws-map.empty { background: var(--panel) !important; }
}
:root[data-theme="dark"] .gws-map.empty { background: var(--panel) !important; }
/* Links inside notes keep the site's link colour rather than the browser's default blue. */
.h-reader-note a, body > footer a { color: var(--steel); }
