/* schwimmtrainer.at V0.15.10.50.35 | DE/EN contrast and readability
 * Scope: pale/white presentation surfaces on otherwise dark pages.
 * Preserve white text inside navy inputs, dark nested widgets, navigation,
 * coloured status indicators and the V0.15.10.50.34 accordion chevrons.
 * Changes are visual only; no HTML, test or database semantics changed.
 */
:root {
  --st-light-ink: #173e53;
  --st-light-muted: #506b7c;
  --st-light-soft: #5d7889;
  --st-light-link: #086e85;
}

/* Light presentation surfaces must not inherit the dark site's pale body text.
 * Each selector below defines a genuinely light background in the MASTER CSS;
 * intentionally dark cards (e.g. .performance-module-card.is-primary or
 * .core-signature-visual) are specifically excluded or retain their own ink. */
:is(
  .shop-legal-notice,
  .performance-access-badge,
  .performance-kpis article,
  .performance-summary-grid article,
  .performance-module-card:not(.is-primary),
  .performance-panel,
  .performance-filter,
  .performance-chart,
  .performance-empty,
  .diagnostic-athlete-filter,
  .diagnostic-threshold-grid article,
  .diagnostic-chart,
  .diagnostic-threshold-editor,
  .race-physiology-card,
  .race-physiology-fields,
  .check-card,
  .meet-card.is-current,
  .anthro-summary,
  .reference-explainer p,
  .custom-reference-fields,
  .performance-workspace-tabs,
  .benchmark-set-card,
  .athletics-test-card,
  .athletics-detail-stats article,
  .athletics-history-chart-wrap,
  .athletics-history-row,
  .performance-area-filter,
  .pyne-protocol-strip article,
  .pyne-recovery-editor,
  .planner-month,
  .planner-day.has-events,
  .planner-week-day,
  .planner-start-row,
  .planned-start-card,
  .athletics-battery-card,
  .battery-card,
  .battery-picker-item,
  .planner-selected-summary,
  .planned-start-compact-list article,
  .planned-start-list-row,
  .swim-group-list,
  .dashboard-meet-item,
  .athletics-balance-card,
  .balance-detail,
  .balance-side-values article,
  .benchmark-compact-set,
  .test-workbench-progress,
  .test-workbench-row,
  .test-workbench-balance-grid article,
  .test-session-return,
  .anthro-metric-card,
  .anthro-metric-detail,
  .anthro-reference-context,
  .diagnostic-recent-card,
  .diagnostic-recent-kpis article,
  .battery-picker-section,
  .target-corridor-row,
  .test-session-picker-group,
  .reference-explainer-compact details,
  .performance-analysis-accordion,
  .group-performance-toggle,
  .report-panel,
  .report-preview-sheet,
  .athletics-model-info,
  .athlete-monitor-stats > div,
  .athletics-subinfo,
  .core-signature-workspace,
  .core-signature-kpi,
  .core-signature-metric,
  .core-signature-coach
) {
  color: var(--st-light-ink);
}

/* Cards/forms originally showed white form labels and athlete names on white. */
.check-card,
.check-card > span,
.check-card > small,
.performance-panel .check-grid .check-card,
.performance-panel .group-target-list .check-card {
  color: var(--st-light-ink);
}
.check-card :is(small,.field-help) { color: var(--st-light-muted); }
.performance-panel > form > label:not(.button),
.performance-panel > form > div > label:not(.button) {
  color: var(--st-light-muted);
}

/* Outlined controls were originally white-on-dark even on white panels.
 * Limit the override to light presentation cards, not dark navigation/forms. */
:is(.performance-panel,.performance-module-card:not(.is-primary),.battery-card,.report-panel,.planner-start-row) .button.button-outline {
  color: #0b5269;
  background: #eef8fb;
  border-color: #b7d9e4;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:is(.performance-panel,.performance-module-card:not(.is-primary),.battery-card,.report-panel,.planner-start-row) .button.button-outline:hover {
  color: #073e52;
  background: #dff1f7;
  border-color: #74c1d5;
}
:is(.performance-panel,.performance-module-card:not(.is-primary),.battery-card,.report-panel,.planner-start-row) .button.button-outline:disabled {
  color: #526d7a;
  background: #e6eef2;
  border-color: #c9dbe3;
  opacity: .83;
}

/* Only directly presented links are restyled. Links inside embedded dark
 * panels retain the navy component's original light foreground. */
:is(.performance-panel,.battery-card) > p > a:not(.button),
:is(.performance-panel,.battery-card) > a:not(.button) {
  color: var(--st-light-link);
}
:is(.performance-panel,.battery-card) > p > a:not(.button):hover,
:is(.performance-panel,.battery-card) > a:not(.button):hover {
  color: #06455a;
}

/* Missing foreground declarations on controls with pale backgrounds. */
.battery-filter :is(input,select),
.battery-picker-item,
.battery-picker-section > summary,
.report-preview-sheet,
.planner-step-switch a span,
.planner-day.has-events,
.planner-week-day,
.planner-day-event.event-athletics,
.planner-day-event.event-swim,
.planner-day-event.event-competition {
  color: var(--st-light-ink);
}

/* The few dark subpanels nested within pale parent cards continue to use
 * their original bright link and control colours. */
.performance-panel :is(.benchmark-monitor-details,.core-signature-visual) .button.button-outline {
  color: #f7fcff;
  background: rgba(3,20,38,.36);
  border-color: rgba(108,221,255,.68);
}

/* Chevron from V0.15.10.50.34 continues to be defined by its own stylesheet. */
