/* generated light overrides */

[data-theme="light"] .skip-to-content {
  color: #eef1fb;
}
[data-theme="light"] .container .accuracy-strip-text {
  color: #eef1fb;
}
[data-theme="light"] .award-card .award-icon {
  color: #eef1fb;
}
[data-theme="light"] .build-stat .build-stat-value {
  color: #141a2b;
}
[data-theme="light"] .accuracy-strip-text .strong {
  color: #eef1fb;
}
[data-theme="light"] .feedback-copy .eyebrow {
  color: #141a2b;
}
[data-theme="light"] .feedback-copy .section-description {
  color: #141a2b;
}
[data-theme="light"] .fz-spotlight-cta .btn {
  color: #141a2b;
}
[data-theme="light"] .section-header .eyebrow {
  color: #141a2b;
}
[data-theme="light"] .creator-teaser-content .eyebrow {
  color: #141a2b;
}
[data-theme="light"] .creator-teaser-badges .creator-teaser-badge {
  color: #141a2b;
}
[data-theme="light"] .creator-teaser-links .btn {
  color: #141a2b;
}
[data-theme="light"] .card .feature-card-desc {
  color: #141a2b;
}
[data-theme="light"] .card .feature-card-title {
  color: #141a2b;
}
[data-theme="light"] .card .feature-icon {
  color: #141a2b;
}
[data-theme="light"] .feature-card {
  background-color: #fef9f0;
}
[data-theme="light"] .fz-spotlight-extra .fz-spotlight-extra-icon {
  color: #141a2b;
}
[data-theme="light"] .fz-spotlight-card .fz-spotlight-icon {
  color: #141a2b;
}
[data-theme="light"] .fz-spotlight-card .fz-spotlight-tag {
  color: #141a2b;
}
[data-theme="light"] .moments-content .moments-heading {
  color: #eef1fb;
}
[data-theme="light"] .notice-board-head .notice-board-title {
  color: #141a2b;
}
[data-theme="light"] .notice-dismiss .notice-dismiss-text {
  color: #141a2b;
}
[data-theme="light"] .notice-item-body .notice-item-title {
  color: #141a2b;
}
[data-theme="light"] .notice-modal-close {
  color: #141a2b;
}
[data-theme="light"] .notice-modal-close:hover {
  color: #141a2b;
}
[data-theme="light"] .stat-item .stat-label {
  color: #141a2b;
}
[data-theme="light"] .stat-item .stat-number {
  color: #ef4360;
}
[data-theme="light"] .timeline-card .timeline-heading {
  color: #141a2b;
}
[data-theme="light"] .tour-glance-format-card .tour-glance-format-num {
  color: #141a2b;
}
[data-theme="light"] .tour-glance-host .tour-glance-host-detail {
  color: #141a2b;
}

[data-theme="light"] .th {
  color: #eef1fb;
}
[data-theme="light"] .advanced .td {
  color: #eef1fb;
}
[data-theme="light"] .award-card-body .award-card-detail {
  color: #eef1fb;
}
[data-theme="light"] .award-card-body .award-card-nation {
  color: #eef1fb;
}
[data-theme="light"] .award-card-body .award-card-trophy-label {
  color: #eef1fb;
}
[data-theme="light"] .award-stat-item .award-stat-label {
  color: #eef1fb;
}
[data-theme="light"] .award-stat-item .award-stat-value {
  color: #eef1fb;
}
[data-theme="light"] .bracket-match .bracket-match-venue {
  color: #eef1fb;
}
[data-theme="light"] .bracket-match-meta .bracket-match-date {
  color: #eef1fb;
}
[data-theme="light"] .bracket-match-meta .bracket-match-extra {
  color: #eef1fb;
}
[data-theme="light"] .bracket-team-row .bracket-team-name {
  color: #eef1fb;
}
[data-theme="light"] .confederation-card .confederation-best {
  color: #141a2b;
}
[data-theme="light"] .results-hero-inner .section-subtitle--dark {
  color: #eef1fb;
}
[data-theme="light"] .section-header .section-title {
  color: #141a2b;
}
[data-theme="light"] .tot-subs .tot-subs-title {
  color: #eef1fb;
}
[data-theme="light"] .group-match-teams .group-match-score {
  color: #141a2b;
}
[data-theme="light"] .group-match-teams .group-match-team {
  color: #141a2b;
}
[data-theme="light"] .group-match .group-match-date {
  color: #565d73;
}
[data-theme="light"] .group-match .group-match-link {
  color: #141a2b;
}
[data-theme="light"] .km-card .km-badge {
  color: #141a2b;
}
[data-theme="light"] .km-card .km-stat {
  color: #eef1fb;
}
[data-theme="light"] .km-mentions .km-mentions-label {
  color: #565d73;
}
[data-theme="light"] .km-mentions .md-player-link {
  color: #141a2b;
}
[data-theme="light"] .ranking-name .md-player-link {
  color: #141a2b;
}
[data-theme="light"] .ranking-info .ranking-meta {
  color: #565d73;
}
[data-theme="light"] .ranking-stat .ranking-stat-label {
  color: #565d73;
}
[data-theme="light"] .ranking-row .ranking-number {
  color: #141a2b;
}
[data-theme="light"] .ranking-row .ranking-reason {
  color: #565d73;
}
[data-theme="light"] .record-card .record-detail {
  color: #eef1fb;
}
[data-theme="light"] .record-card .record-label {
  color: #eef1fb;
}
[data-theme="light"] .record-card .record-value {
  color: #eef1fb;
}
[data-theme="light"] .podium-card .podium-label {
  color: #eef1fb;
}
[data-theme="light"] .podium-card .podium-name {
  color: #eef1fb;
}
[data-theme="light"] .hero-stat .hero-stat-label {
  color: #eef1fb;
}
[data-theme="light"] .hero-stat .hero-stat-value {
  color: #eef1fb;
}
[data-theme="light"] .results-section-nav-container .results-section-nav-link {
  color: #eef1fb;
}
[data-theme="light"] .round-stats-row .span {
  color: #eef1fb;
}
[data-theme="light"] .scorer-name .md-player-link {
  color: #141a2b;
}
[data-theme="light"] .scorer-row .scorer-meta {
  color: #565d73;
}
[data-theme="light"] .scorer-row .scorer-stat {
  color: #141a2b;
}
[data-theme="light"] .container .awards-subtitle {
  color: #eef1fb;
}
[data-theme="light"] .stat-tile .stat-tile-label {
  color: #565d73;
}
[data-theme="light"] .stat-tile .stat-tile-value {
  color: #141a2b;
}
[data-theme="light"] .timeline-content .timeline-desc {
  color: #eef1fb;
}
[data-theme="light"] .timeline-content .timeline-title {
  color: #eef1fb;
}
[data-theme="light"] .timeline-entry .timeline-dot {
  color: #141a2b;
}
[data-theme="light"] .tot-player .tot-player-name {
  color: #eef1fb;
}
[data-theme="light"] .tot-sub-info .tot-sub-meta {
  color: #eef1fb;
}
[data-theme="light"] .tot-sub-info .tot-sub-name {
  color: #eef1fb;
}
[data-theme="light"] .upset-shock-meter .upset-shock-label {
  color: #eef1fb;
}
[data-theme="light"] .upset-card .upset-description {
  color: #eef1fb;
}
[data-theme="light"] .upset-card .upset-meta {
  color: #eef1fb;
}
[data-theme="light"] .upset-card .upset-rank {
  color: #eef1fb;
}
[data-theme="light"] .upset-card .upset-title {
  color: #eef1fb;
}

[data-theme="light"] .trivia-face .trivia-hint {
  color: #eef1fb;
}
[data-theme="light"] .trivia-face .trivia-name {
  color: #eef1fb;
}

[data-theme="light"] .collectors-panel-header .collectors-panel-title {
  color: #eef1fb;
}
[data-theme="light"] .collectors-detail-row .bio-wiki-link {
  color: #eef1fb;
}
[data-theme="light"] .collectors-panel-header .collectors-panel-title {
  color: #eef1fb;
}
[data-theme="light"] .passport-header-bar .passport-nation {
  color: #eef1fb;
}
[data-theme="light"] .scoreboard-cell .scoreboard-value {
  color: #eef1fb;
}
[data-theme="light"] .section-bg-deco .section-bg-letter {
  color: #141a2b;
}
[data-theme="light"] .tc-back-section .tc-back-title {
  color: #eef1fb;
}
[data-theme="light"] .tc-card-header .tc-card-foil {
  color: #eef1fb;
}
[data-theme="light"] .tc-flip-button .tc-flip-text {
  color: #eef1fb;
}
[data-theme="light"] .tc-stat-mini .tc-stat-value {
  color: #eef1fb;
}

/* ===== HEADER + HERO — hand-authored light treatment ===== */
[data-theme="light"] .nav {
  background-color: rgba(247, 241, 228, 0.92);
  border-bottom-color: rgba(20, 26, 43, 0.12);
  box-shadow: 0 2px 16px rgba(20, 26, 43, 0.07);
}
[data-theme="light"] .nav-logo {
  color: #141a2b;
}
[data-theme="light"] .nav-logo .logo-accent {
  color: #b3243c;
}
[data-theme="light"] .nav-link {
  color: #4a5168;
}
[data-theme="light"] .nav-link:hover {
  color: #141a2b;
}
[data-theme="light"] .nav-link.active {
  color: #7a5a00;
  border-bottom-color: #7a5a00;
}
[data-theme="light"] .nav-search-input {
  background-color: #fffdf7;
  color: #141a2b;
  border-color: rgba(20, 26, 43, 0.18);
}
[data-theme="light"] .nav-search-input::placeholder {
  color: #6b7285;
}
[data-theme="light"] .nav-search-btn,
[data-theme="light"] .nav-toggle {
  color: #141a2b;
}
[data-theme="light"] .theme-toggle {
  color: #141a2b;
  border-color: rgba(20, 26, 43, 0.22);
}
[data-theme="light"] .theme-toggle:hover {
  color: #7a5a00;
  border-color: #b08a00;
}

[data-theme="light"] .retro-hero {
  background-color: #f6efe0;
  border-bottom-color: #b3243c;
  box-shadow: 0 24px 70px rgba(42, 57, 141, 0.1);
}
/* the dark hero used hard flag stripes under a night overlay; light mode gets
   the same brand glows on warm paper instead, so the section reads as daylight */
[data-theme="light"] .retro-hero-bg {
  background-image:
    radial-gradient(
      ellipse 55% 45% at 12% 8%,
      rgba(242, 183, 5, 0.3),
      transparent 58%
    ),
    radial-gradient(
      ellipse 55% 45% at 88% 10%,
      rgba(43, 207, 156, 0.24),
      transparent 58%
    ),
    radial-gradient(
      ellipse 65% 55% at 50% 118%,
      rgba(239, 67, 96, 0.18),
      transparent 62%
    ),
    linear-gradient(180deg, #fbf7ee 0%, #f2ecdf 100%);
  animation: none;
}
[data-theme="light"] .retro-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(251, 247, 238, 0.3) 0%,
    rgba(242, 236, 223, 0.62) 100%
  );
}
[data-theme="light"] .retro-hero-title {
  color: #0b0f1e;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .retro-hero-subtitle {
  color: #2a2f42;
}
[data-theme="light"] .retro-hero-eyebrow {
  color: #7a5a00;
}
[data-theme="light"] .retro-hero-summary {
  color: #2a2f42;
}
[data-theme="light"] .retro-hero-summary p {
  color: #2a2f42;
}

/* ===== TARGETED FIXES (measured) ===== */
[data-theme="light"] .timeline-step-final .timeline-card .timeline-body {
  color: #2a2f42;
}
[data-theme="light"] .timeline-step-final .timeline-marker {
  color: #141a2b;
}
[data-theme="light"] .accuracy-strip-text {
  color: #d5dae6;
}
[data-theme="light"] .accuracy-strip-text strong {
  color: #ffffff;
}
[data-theme="light"] .km-badge {
  color: #f7f1e4;
}
[data-theme="light"] .spotlight-link {
  color: #c9d3e6;
}

[data-theme="light"] .section-header .eyebrow,
[data-theme="light"] .content-section .eyebrow {
  color: var(--eyebrow);
}

/* ===== HEADINGS on light surfaces: dark charcoal ===== */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .section-title,
[data-theme="light"] .timeline-heading,
[data-theme="light"] .footer-title,
[data-theme="light"] .footer-heading {
  color: #2a2f42;
}
[data-theme="light"] .timeline-step-final .timeline-card .timeline-body {
  color: #2a2f42;
}
[data-theme="light"] .timeline-step-final .timeline-card h3 {
  color: #2a2f42;
}

[data-theme="light"] .award-card .eyebrow {
  color: #ef4360;
}
/* award cards sit on dark card art: keep their type light */
[data-theme="light"] .award-card .award-detail {
  color: var(--fwc-dark-charcoal-text);
}
[data-theme="light"] .award-card .eyebrow,
[data-theme="light"] .award-eyebrow {
  color: #f2839a;
}
/* .section--spotlight keeps a dark gradient in both themes, so its header stays light */
[data-theme="light"] .section--spotlight h2,
[data-theme="light"] .section--spotlight .section-title {
  color: #eef1fb;
}
[data-theme="light"] .section--spotlight .section-subtitle {
  color: #c8cddd;
}
[data-theme="light"] .section--spotlight .section-header .eyebrow {
  color: #f2839a;
}

/* ===== Hall of Fame: light section in light mode ===== */
[data-theme="light"] .section--spotlight {
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 0%,
      rgba(242, 183, 5, 0.16),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 60% at 50% 100%,
      rgba(230, 29, 37, 0.1),
      transparent 65%
    ),
    linear-gradient(180deg, #f9f4e9 0%, #efe6d2 100%);
  border-top-color: rgba(176, 138, 0, 0.28);
  border-bottom-color: rgba(180, 30, 50, 0.18);
  color: #2a2f42;
}
[data-theme="light"] .section--spotlight h2,
[data-theme="light"] .section--spotlight .section-title {
  color: #2a2f42;
}
[data-theme="light"] .section--spotlight .section-subtitle {
  color: #2a2f42;
}
[data-theme="light"] .section--spotlight .section-header .eyebrow {
  color: #a11d33;
}

/* ===== section subtitles on light surfaces ===== */
[data-theme="light"] .section-subtitle {
  color: #2a2f42;
}

/* ===== Get In Touch: light section, dark type ===== */
[data-theme="light"] .feedback-section {
  background-color: #ece3d1;
  color: #2a2f42;
}
[data-theme="light"] .feedback-section .section-title {
  color: #2a2f42;
}
[data-theme="light"] .feedback-section .eyebrow {
  color: #a11d33;
}
[data-theme="light"] .feedback-section .section-description {
  color: #2a2f42;
}
[data-theme="light"] .feedback-channel {
  background: #fffdf7;
  color: #141a2b;
  border-color: rgba(20, 26, 43, 0.14);
}
[data-theme="light"] .feedback-channel-text h3 {
  color: #141a2b;
}
[data-theme="light"] .feedback-channel-text p {
  color: #4a5168;
}
[data-theme="light"] .feedback-anonymous-note {
  color: #4a5168;
}

/* ===== footer social links: gold in light mode ===== */
[data-theme="light"] .social-btn {
  color: #8a6400;
  background-color: rgba(138, 100, 0, 0.08);
  border-color: rgba(138, 100, 0, 0.3);
}
[data-theme="light"] .social-btn:hover {
  color: #141a2b;
  background-color: #d8a800;
  border-color: #d8a800;
}

/* ===== award cards paint CREAM in light mode -> dark charcoal type ===== */
[data-theme="light"] .award-card {
  background-color: #fef9f0;
}
[data-theme="light"] .award-card .award-name {
  color: #1a2440;
}
[data-theme="light"] .award-card .award-detail {
  color: #2a2f42;
}
[data-theme="light"] .award-card .award-link {
  color: #12365a;
}
[data-theme="light"] .award-card .award-link:hover {
  color: #a11d33;
}
[data-theme="light"] .award-card .eyebrow,
[data-theme="light"] .award-eyebrow {
  color: #a11d33;
}

/* ===== ENCYCLOPEDIA DIRECTORY — lighter nation cards ===== */
[data-theme="light"] .nation-card {
  background: #fffdf7;
  border-color: rgba(20, 26, 43, 0.12);
  border-top-color: #b08a00;
  box-shadow: 0 2px 10px rgba(20, 26, 43, 0.06);
}
[data-theme="light"] .nation-card:hover {
  border-top-color: #a11d33;
  border-color: rgba(20, 26, 43, 0.2);
  box-shadow: 0 12px 32px rgba(20, 26, 43, 0.12);
}
[data-theme="light"] .nation-card .nation-name {
  color: #141a2b;
}
[data-theme="light"] .nation-card .nation-meta-label {
  color: #4a5168;
}
[data-theme="light"] .nation-card .nation-meta-value {
  color: #141a2b;
}
[data-theme="light"] .nation-card .nation-card-footer {
  border-top-color: rgba(20, 26, 43, 0.1);
}
[data-theme="light"] .nation-card .btn {
  color: #141a2b;
}
[data-theme="light"] .nation-flag-wrapper {
  background: #efe6d2;
}
[data-theme="light"] .nations-controls input,
[data-theme="light"] .nations-controls select {
  background: #fffdf7;
  color: #141a2b;
  border-color: rgba(20, 26, 43, 0.18);
}

/* ===== ENCYCLOPEDIA SLUG — surfaces that assumed a dark page ===== */
[data-theme="light"] .xi-card,
[data-theme="light"] .moment-card,
[data-theme="light"] .key-player-card,
[data-theme="light"] .rivalry-card,
[data-theme="light"] .legend-card,
[data-theme="light"] .timeline-card {
  background: #fffdf7;
  border-color: rgba(20, 26, 43, 0.12);
}
[data-theme="light"] .xi-card .xi-card-years,
[data-theme="light"] .xi-card .xi-card-position {
  color: #4a5168;
}
[data-theme="light"] .moment-card .moment-opponent {
  color: #4a5168;
}
[data-theme="light"] .moment-card .moment-title {
  color: #141a2b;
}
[data-theme="light"] .moment-card .moment-year {
  color: #a11d33;
}
[data-theme="light"] .key-player-card .key-player-name {
  color: #141a2b;
}
[data-theme="light"] .key-player-card .key-player-reason {
  color: #4a5168;
}
[data-theme="light"] .rivalry-card .rivalry-opponent {
  color: #141a2b;
}
[data-theme="light"] .legend-card .legend-name {
  color: #141a2b;
}
[data-theme="light"] .legend-card .legend-detail {
  color: #4a5168;
}

/* the nation hero keeps its photographic banner: light type on top */
[data-theme="light"] .nation-hero-title {
  color: #f7f1e4;
}
[data-theme="light"] .nation-hero-subtitle,
[data-theme="light"] .nation-hero-meta {
  color: rgba(247, 241, 228, 0.88);
}
[data-theme="light"] .nation-hero-tournament-badge {
  color: #141a2b;
}

/* roster table now sits on paper */
[data-theme="light"] .roster-table {
  background: #fffdf7;
}
[data-theme="light"] .roster-table th {
  color: #4a5168;
  background: #f6efe0;
  border-bottom-color: rgba(20, 26, 43, 0.14);
}
[data-theme="light"] .roster-table td {
  color: #141a2b;
  border-bottom-color: rgba(20, 26, 43, 0.08);
}
[data-theme="light"] .roster-table tbody tr:hover {
  background: #f6efe0;
}
[data-theme="light"] .roster-filters .filter-btn {
  color: #4a5168;
  background: #fffdf7;
  border-color: rgba(20, 26, 43, 0.16);
}
[data-theme="light"] .roster-filters .filter-btn.active {
  color: #141a2b;
  background: #f2b705;
  border-color: #f2b705;
}
[data-theme="light"] .player-cell-name {
  color: #141a2b;
}
[data-theme="light"] .player-cell-number {
  color: #6b7285;
}

/* formation pitch keeps its green field, so its labels stay light */
[data-theme="light"] .formation-player-name {
  fill: #eef1fb;
}
[data-theme="light"] .formation-player-pos {
  fill: #f7f1e4;
}
[data-theme="light"] .formation-badge {
  color: #141a2b;
  background: rgba(20, 26, 43, 0.08);
}

/* nation-coloured chips on paper cards */
[data-theme="light"] .key-player-avatar {
  color: #141a2b;
}
[data-theme="light"] .key-player-role-badge {
  color: #141a2b;
  background: rgba(20, 26, 43, 0.08);
}

[data-theme="light"] .legend-achievement {
  color: #4a5168;
}
[data-theme="light"] .rivalry-description,
[data-theme="light"] .rivalry-memorable {
  color: #2a2f42;
}
[data-theme="light"] .record-label {
  color: #4a5168;
}
[data-theme="light"] .record-stats,
[data-theme="light"] .record-value {
  color: #141a2b;
}
[data-theme="light"] .nation-squad-cta-sub {
  color: #4a5168;
}

/* the pitch pods are pale per-player colours on a green field; darken them
   so the light labels and position codes read in light mode */
[data-theme="light"] .formation-player-circle {
  fill: rgba(11, 15, 30, 0.78);
}
[data-theme="light"] .legend-legacy {
  color: #4a5168;
}
[data-theme="light"] .legend-position-badge {
  color: #141a2b;
  background: rgba(20, 26, 43, 0.08);
}
[data-theme="light"] .key-player-link {
  color: #12365a;
}
[data-theme="light"] .nation-squad-cta-sub {
  color: rgba(247, 241, 228, 0.85);
}

/* in-page nation nav reads better light on a light page */
[data-theme="light"] .nation-subnav,
[data-theme="light"] .nation-nav {
  background: rgba(247, 241, 228, 0.94);
  border-bottom-color: rgba(20, 26, 43, 0.12);
}
[data-theme="light"] .nation-nav-link {
  color: #4a5168;
}
[data-theme="light"] .nation-nav-link.active,
[data-theme="light"] .nation-nav-link:hover {
  color: #141a2b;
}

[data-theme="light"] .fun-fact-text {
  color: #2a2f42;
}
[data-theme="light"] .fun-fact-category {
  color: #7a5a00;
}
[data-theme="light"] .fun-fact-card {
  background: #fffdf7;
  border-color: rgba(20, 26, 43, 0.12);
}

[data-theme="light"] .timeline-badge {
  color: #f7f1e4;
}
[data-theme="light"] .moment-score {
  color: #12365a;
}
[data-theme="light"] .legend-era {
  color: #7a5a00;
}

/* roster sticky column sits on paper so its dark type is stable */
[data-theme="light"] .roster-table .col-sticky {
  background: #fffdf7;
}
[data-theme="light"] .roster-table tbody tr:hover .col-sticky {
  background: #f6efe0;
}

/* record cards keep their dark art */
[data-theme="light"] .record-card .record-label {
  color: #c8cddd;
}
[data-theme="light"] .record-card .record-stats,
[data-theme="light"] .record-card .record-value {
  color: #eef1fb;
}

[data-theme="light"] .path-card {
  background: #fffdf7;
  border-color: rgba(20, 26, 43, 0.12);
}
[data-theme="light"] .path-value,
[data-theme="light"] .path-card span {
  color: #2a2f42;
}
[data-theme="light"] .path-card-icon {
  color: #7a5a00;
}
[data-theme="light"] .timeline-badge {
  color: #4a5168;
  background: rgba(20, 26, 43, 0.05);
}

/* headings inside the card grids that are now cream */
[data-theme="light"] .xi-card h3,
[data-theme="light"] .moment-card h3,
[data-theme="light"] .key-player-card h3,
[data-theme="light"] .rivalry-card h3,
[data-theme="light"] .fun-fact-card h3,
[data-theme="light"] .path-card h3,
[data-theme="light"] .legend-card h3 {
  color: #141a2b;
}
[data-theme="light"] .xi-card h4,
[data-theme="light"] .moment-card h4,
[data-theme="light"] .key-player-card h4,
[data-theme="light"] .rivalry-card h4,
[data-theme="light"] .fun-fact-card h4,
[data-theme="light"] .legend-card h4 {
  color: #2a2f42;
}
[data-theme="light"] .summary-val {
  color: #141a2b;
}
[data-theme="light"] .summary-label {
  color: #4a5168;
}
[data-theme="light"] .culture-quote {
  color: #6d5202;
}
[data-theme="light"] .position-badge {
  color: #141a2b;
}

/* pitch labels: dark on the light analysis pitch, light on the green formation pitch */
[data-theme="light"] .formation-player-name {
  fill: #141a2b;
}
[data-theme="light"] .formation-player-pos {
  fill: #141a2b;
}
[data-theme="light"] .formation-pitch-wrap .formation-player-name {
  fill: #eef1fb;
}
[data-theme="light"] .formation-pitch-wrap .formation-player-pos {
  fill: #f7f1e4;
}

[data-theme="light"] .path-card span,
[data-theme="light"] .nation-history li,
[data-theme="light"] .history-timeline li,
[data-theme="light"] .summary-list li {
  color: #2a2f42;
}

/* scrim surfaces stay dark in light mode: give them light type */
[data-theme="light"] .tournament-summary-card .summary-label {
  color: #4a5168;
}
[data-theme="light"] .tournament-summary-card .summary-val {
  color: #141a2b;
}
[data-theme="light"] .rivalry-record .record-label {
  color: #4a5168;
}
[data-theme="light"] .rivalry-record .record-stats,
[data-theme="light"] .rivalry-record .record-value {
  color: #141a2b;
}
[data-theme="light"] .culture-narrative {
  color: #2a2f42;
}
[data-theme="light"] .manager-style-box {
  color: #2a2f42;
}

/* Path to 2026 meta spans were inheriting a surface token as text colour */
[data-theme="light"] #path span,
[data-theme="light"] #path .path-value {
  color: #4a5168;
}

/* ===== LIGHT MODE: no grey boxes — paper surfaces with charcoal type ===== */
[data-theme="light"] .tournament-summary-card,
[data-theme="light"] .match-card,
[data-theme="light"] .match-card-header,
[data-theme="light"] .manager-card,
[data-theme="light"] .manager-style-box,
[data-theme="light"] .manager-quote-box,
[data-theme="light"] .culture-detail-card,
[data-theme="light"] .culture-narrative,
[data-theme="light"] .record-card,
[data-theme="light"] .rivalry-card,
[data-theme="light"] .rivalry-record,
[data-theme="light"] .nation-hero-strip {
  background: #fffdf7;
  border-color: rgba(20, 26, 43, 0.12);
  color: #2a2f42;
  box-shadow: 0 1px 2px rgba(20, 26, 43, 0.04);
}
[data-theme="light"] .tournament-summary-card {
  border-top-color: #b08a00;
}

/* every descendant that was light-on-dark flips to charcoal */
[data-theme="light"] .tournament-summary-card *,
[data-theme="light"] .match-card *,
[data-theme="light"] .manager-card *,
[data-theme="light"] .manager-style-box *,
[data-theme="light"] .manager-quote-box *,
[data-theme="light"] .culture-detail-card *,
[data-theme="light"] .culture-narrative *,
[data-theme="light"] .record-card *,
[data-theme="light"] .rivalry-card *,
[data-theme="light"] .rivalry-record *,
[data-theme="light"] .nation-hero-strip * {
  color: #2a2f42;
}

[data-theme="light"] .summary-label,
[data-theme="light"] .record-label,
[data-theme="light"] .manager-meta-label,
[data-theme="light"] .culture-detail-label,
[data-theme="light"] .match-date,
[data-theme="light"] .match-venue,
[data-theme="light"] .moment-opponent {
  color: #4a5168;
}
[data-theme="light"] .summary-val,
[data-theme="light"] .record-value,
[data-theme="light"] .manager-name,
[data-theme="light"] .match-score,
[data-theme="light"] .match-result-badge {
  color: #141a2b;
}
[data-theme="light"] .culture-quote {
  color: #6d5202;
}
[data-theme="light"] .manager-style-desc,
[data-theme="light"] .culture-detail-text {
  color: #2a2f42;
}

/* ===== ICONIC MOMENTS — poster treatment on paper ===== */
[data-theme="light"] .nation-moments .carousel-viewport {
  box-shadow: 0 24px 60px rgba(20, 26, 43, 0.14);
}
[data-theme="light"] .moment-card {
  background:
    radial-gradient(
      115% 85% at 100% 0%,
      rgba(242, 183, 5, 0.22),
      transparent 58%
    ),
    linear-gradient(165deg, #fffdf7 0%, #f7efe0 58%, #f1e4cf 100%);
  border-color: rgba(176, 138, 0, 0.3);
  box-shadow: 0 18px 46px rgba(20, 26, 43, 0.12);
}
[data-theme="light"] .moment-card::after {
  color: rgba(20, 26, 43, 0.34);
}
[data-theme="light"] .moment-year {
  -webkit-text-stroke-color: rgba(161, 29, 51, 0.45);
}
[data-theme="light"] .moment-title {
  color: #141a2b;
}
[data-theme="light"] .moment-description {
  color: #2a2f42;
}
[data-theme="light"] .moment-details {
  border-top-color: rgba(20, 26, 43, 0.14);
}
[data-theme="light"] .moment-opponent {
  color: #4a5168;
}
[data-theme="light"] .moment-score {
  background: rgba(161, 29, 51, 0.1);
  border-color: rgba(161, 29, 51, 0.3);
  color: #a11d33;
}
[data-theme="light"] .nation-moments .carousel-btn {
  background: #fffdf7;
  border-color: rgba(20, 26, 43, 0.16);
  color: #141a2b;
}
[data-theme="light"] .nation-moments .carousel-btn:hover {
  background: #f2b705;
  border-color: #f2b705;
  color: #141a2b;
}
[data-theme="light"] .nation-moments .carousel-dot {
  background: rgba(20, 26, 43, 0.22);
}
[data-theme="light"] .nation-moments .carousel-dot.active {
  background: #b08a00;
}

/* section-scoped so they outrank encyclopedia.css */
[data-theme="light"] #records .record-value,
[data-theme="light"] #records .record-stats {
  color: #141a2b;
}
[data-theme="light"] #records .record-label {
  color: #4a5168;
}
[data-theme="light"] #records .record-card {
  background: #fffdf7;
  border-color: rgba(20, 26, 43, 0.12);
}
[data-theme="light"] #path .btn,
[data-theme="light"] #path .path-cta .btn {
  color: #141a2b;
  background: #f2b705;
  border-color: #f2b705;
}

[data-theme="light"] #key-players .position-badge,
[data-theme="light"] .nation-key-players .position-badge {
  color: #ffffff;
}

[data-theme="light"] .nation-roster .roster-table .col-sticky {
  background: #fffdf7;
}
[data-theme="light"] .nation-roster .roster-table tbody tr:hover .col-sticky {
  background: #f6efe0;
}
[data-theme="light"] .nation-key-players .key-player-card .position-badge {
  color: #ffffff;
}

/* ===== P26 PHASE 9b: results light ink guard ===== */
html[data-theme="light"] #results-index-view td{color:#141a2b}
html[data-theme="light"] #results-bracket .bracket-pill.active{color:#141a2b}
html[data-theme="light"] #results-index-view .tot-sub-name{color:#141a2b}
html[data-theme="light"] #results-index-view .tot-sub-meta{color:#565d73}
html[data-theme="light"] #results-index-view .upset-rank{color:#8a5a00}
html[data-theme="light"] #results-index-view .upset-title{color:#141a2b}
html[data-theme="light"] #results-index-view .upset-meta{color:#565d73}
html[data-theme="light"] #results-index-view .upset-description{color:#565d73}
html[data-theme="light"] #results-index-view .upset-shock-label{color:#565d73}
html[data-theme="light"] #results-index-view .awards-subtitle{color:#565d73}
html[data-theme="light"] #results-index-view .scoreline-label{color:#565d73}
html[data-theme="light"] #results-index-view .km-youtube-link{color:#141a2b}
html[data-theme="light"] #results-index-view .ranking-name{color:#141a2b}
html[data-theme="light"] #results-index-view .scorer-name{color:#141a2b}
html[data-theme="light"] #results-index-view .bracket-match-extra{color:#565d73}
html[data-theme="light"] #results-index-view .podium-label{color:#565d73}
html[data-theme="light"] #results-index-view .section-subtitle--dark{color:#141a2b}
html[data-theme="light"] #results-index-view .ranking-stat-value{color:#141a2b}
html[data-theme="light"] #results-index-view .tot-subs-title{color:#141a2b}
html[data-theme="light"] #results-index-view .data-freshness-badge{color:#141a2b}
html[data-theme="light"] #results-index-view .tot-sub-name{color:#141a2b}
html[data-theme="light"] #results-index-view .km-badge{color:#8a5a00}
html[data-theme="light"] #results-index-view .latest-result-suffix{color:#8a5a00}
/* ===== end phase 9b ===== */

/* ===== P26 PHASE 9c: match detail light ink ===== */
html[data-theme="light"] #match-detail-view .md-section-nav{background:#f2ecdf;border-color:#dcd5c4}
html[data-theme="light"] #match-detail-view .md-section-nav-link.active{color:#141a2b;border-color:#141a2b}
html[data-theme="light"] #match-detail-view .md-star-team,html[data-theme="light"] #match-detail-view .md-star-rating,html[data-theme="light"] #match-detail-view .md-form-team-name,html[data-theme="light"] #match-detail-view .md-back-link{color:#141a2b}
html[data-theme="light"] #match-detail-view .md-result-badge{color:#141a2b;background:#f2ecdf;border-color:#dcd5c4}
html[data-theme="light"] #match-detail-view .md-section-title{color:#141a2b}
html[data-theme="light"] #match-detail-view *:not([class]){color:#141a2b}
html[data-theme="light"] #match-detail-view [class=""]{color:#141a2b}
html[data-theme="light"] #match-detail-view .md-player-link,html[data-theme="light"] #match-detail-view .md-pitch-player-name,html[data-theme="light"] #match-detail-view .md-pitch-player-circle,html[data-theme="light"] #match-detail-view .md-stat-home,html[data-theme="light"] #match-detail-view .md-stat-away,html[data-theme="light"] #match-detail-view .md-sub-name,html[data-theme="light"] #match-detail-view .md-rating-value,html[data-theme="light"] #match-detail-view .md-rating-name,html[data-theme="light"] #match-detail-view .md-quote-text,html[data-theme="light"] #match-detail-view .md-quote-author,html[data-theme="light"] #match-detail-view .md-section-nav-link,html[data-theme="light"] #match-detail-view .md-event-player,html[data-theme="light"] #match-detail-view .md-h2h-result,html[data-theme="light"] #match-detail-view .md-h2h-record-value,html[data-theme="light"] #match-detail-view .md-h2h-record-team{color:#141a2b}
html[data-theme="light"] #match-detail-view .md-stat-label,html[data-theme="light"] #match-detail-view .md-sub-minute,html[data-theme="light"] #match-detail-view .md-sub-meta,html[data-theme="light"] #match-detail-view .md-event-minute,html[data-theme="light"] #match-detail-view .md-event-desc,html[data-theme="light"] #match-detail-view .md-event-type-label,html[data-theme="light"] #match-detail-view .md-rating-pos,html[data-theme="light"] #match-detail-view .md-rating-shirt,html[data-theme="light"] #match-detail-view .md-quote-role,html[data-theme="light"] #match-detail-view .md-h2h-date,html[data-theme="light"] #match-detail-view .md-h2h-competition,html[data-theme="light"] #match-detail-view .md-h2h-record-label,html[data-theme="light"] #match-detail-view .md-meta-label,html[data-theme="light"] #match-detail-view .md-lineup-manager{color:#565d73}
/* ===== end phase 9c ===== */

/* ===== P26 PHASE 11: light section gradients ===== */
html[data-theme="light"] #results-index-view > section{
  --p26-tint:242,183,5;
  background-image:radial-gradient(ellipse 70% 55% at 50% 0%,rgba(var(--p26-tint),.10),rgba(255,255,255,0) 62%),linear-gradient(180deg,#fffdf7 0%,#f6efe0 100%);
  border-top-color:rgba(20,26,43,.08);
}
html[data-theme="light"] #results-hero{--p26-tint:242,183,5}
html[data-theme="light"] #results-latest{--p26-tint:76,201,240}
html[data-theme="light"] #results-awards{--p26-tint:242,183,5}
html[data-theme="light"] #results-stats{--p26-tint:76,201,240}
html[data-theme="light"] #results-goals{--p26-tint:239,67,96}
html[data-theme="light"] #results-groups{--p26-tint:242,183,5}
html[data-theme="light"] #results-bracket{--p26-tint:120,150,190}
html[data-theme="light"] #results-rankings{--p26-tint:139,92,246}
html[data-theme="light"] #results-tot{--p26-tint:74,222,128}
html[data-theme="light"] #results-upsets{--p26-tint:249,115,22}
html[data-theme="light"] #results-confederations{--p26-tint:76,201,240}
html[data-theme="light"] #results-records{--p26-tint:168,85,247}
html[data-theme="light"] #results-timeline{--p26-tint:242,183,5}
html[data-theme="light"] #results-index-view .awards-table-block{background-image:none;background-color:transparent;border-color:rgba(20,26,43,.10)}
html[data-theme="light"] #results-index-view .upset-card{background-image:linear-gradient(135deg,rgba(239,67,96,.05),rgba(249,115,22,.03))}
html[data-theme="light"] #results-index-view .awards-titles,.awards-tables-wrapper{max-width:none}
html[data-theme="light"] #results-index-view .award-card-trophy-label{color:#4a3600}
/* ===== end phase 11 ===== */

/* ===== P26 PHASE 12: light refinements ===== */
html[data-theme="light"] #results-confederations .conf-stat-value,html[data-theme="light"] #results-records .conf-stat-value{color:var(--ink-text,#141a2b)}
html[data-theme="light"] #results-tot .tot-player-rating{color:#6f5200}
html[data-theme="light"] .tpm-overlay{background:rgba(20,26,43,.38)}
html[data-theme="light"] .tpm-modal{background:linear-gradient(180deg,#fffdf7 0%,#f6efe0 100%);color:#141a2b;border-color:rgba(20,26,43,.12);box-shadow:0 30px 80px rgba(20,26,43,.22)}
html[data-theme="light"] .tpm-close{background:rgba(20,26,43,.06);color:#141a2b}
html[data-theme="light"] .tpm-close:hover{background:rgba(20,26,43,.12)}
html[data-theme="light"] .tpm-header{background:linear-gradient(180deg,rgba(43,207,156,.07),transparent)}
html[data-theme="light"] .tpm-photo-wrap{background:#efe7d6}
html[data-theme="light"] .tpm-name{color:#141a2b}
html[data-theme="light"] .tpm-nation{color:#2a2f42}
html[data-theme="light"] .tpm-position{background:rgba(20,90,140,.12);color:#12516f}
html[data-theme="light"] .tpm-club{color:#565d73}
html[data-theme="light"] .tpm-tot-reason{color:#6f5200}
html[data-theme="light"] .tpm-stat-tile{background:rgba(20,26,43,.04);border-color:rgba(20,26,43,.08)}
html[data-theme="light"] .tpm-stat-value{color:#6f5200}
html[data-theme="light"] .tpm-stat-label{color:#565d73}
html[data-theme="light"] .tpm-section-title{color:#12516f}
html[data-theme="light"] .tpm-playing-style{color:#2a2f42}
html[data-theme="light"] .tpm-quote{color:#6f5200}
html[data-theme="light"] .tpm-match-row{background:rgba(20,26,43,.03)}
html[data-theme="light"] .tpm-match-opp{color:#141a2b}
html[data-theme="light"] .tpm-match-stats{color:#2a2f42}
html[data-theme="light"] .tpm-rating-high{color:#14603a}
html[data-theme="light"] .tpm-rating-mid{color:#6f5200}
html[data-theme="light"] .tpm-rating-low{color:#8f1f2d}
html[data-theme="light"] .tpm-ach-item{background:rgba(242,183,5,.12)}
html[data-theme="light"] .tpm-career-item{background:rgba(20,26,43,.03)}
html[data-theme="light"] .tpm-career-club{color:#141a2b}
html[data-theme="light"] #results-rankings .ranking-rating{color:#6f5200;border-color:rgba(111,82,0,.28);background:rgba(242,183,5,.16)}
html[data-theme="light"] #results-rankings .ranking-rating.is-high{color:#14603a;border-color:rgba(27,122,74,.30);background:rgba(43,207,156,.14)}
html[data-theme="light"] #results-rankings .ranking-rating.is-low{color:#565d73;border-color:rgba(86,93,115,.28);background:rgba(20,26,43,.05)}
html[data-theme="light"] #results-index-view .awards-subtitle{background:transparent;border-bottom-color:rgba(20,26,43,.10)}
html[data-theme="light"] #results-index-view .scorers-table{background:transparent}
html[data-theme="light"] #results-latest .latest-result-score{background:rgba(20,26,43,.06);color:#565d73}
/* ===== end phase 12 ===== */

/* ===== P26 PHASE 13: light head-to-head ===== */
html[data-theme="light"] .md-h2h-record-item{background:rgba(20,26,43,.04);border-color:rgba(20,26,43,.10)}
html[data-theme="light"] .md-h2h-record-item::before{opacity:.9}
html[data-theme="light"] .md-h2h-record-value{color:#141a2b}
html[data-theme="light"] .md-h2h-record-label{color:#565d73}
html[data-theme="light"] .md-h2h-record-team{color:#565d73}
html[data-theme="light"] .md-h2h-meeting{border-bottom-color:rgba(20,26,43,.10)}
html[data-theme="light"] .md-h2h-meeting:hover{background:rgba(20,26,43,.04)}
html[data-theme="light"] .md-h2h-competition{color:#2a2f42}
html[data-theme="light"] .md-h2h-result{color:#141a2b}
html[data-theme="light"] .md-h2h-winner{color:#6f5200}
html[data-theme="light"] .md-form-badge--W{color:#0d7a54;background:rgba(43,207,156,.22)}
html[data-theme="light"] .md-form-badge--D{color:#8a5f08;background:rgba(242,183,5,.22)}
html[data-theme="light"] .md-form-badge--L{color:#b91c3c;background:rgba(239,67,96,.22)}
/* ===== end phase 13 light ===== */

/* ===== P26 PHASE 13b: light motm ===== */
html[data-theme="light"] .md-motm{background:rgba(242,183,5,.12);border-color:rgba(111,82,0,.28)}
html[data-theme="light"] .md-motm-label,html[data-theme="light"] .md-motm-rating{color:#6f5200}
html[data-theme="light"] .md-motm-name{color:#141a2b}
html[data-theme="light"] .md-motm-reason{color:#565d73}
html[data-theme="light"] .nav-toggle{color:#141a2b;border-color:rgba(20,26,43,.22);background:rgba(20,26,43,.05)}
html[data-theme="light"] .nav-toggle:hover{color:#6f5200;border-color:#b08a00;background:rgba(242,183,5,.14)}
/* ===== end phase 13b light ===== */

/* ===== P26 PHASE 14: light modal links ===== */
html[data-theme="light"] .tpm-wiki-link{color:#0b6076}
html[data-theme="light"] .tpm-profile-link{color:#0d7a54}
html[data-theme="light"] .tpm-wiki-link:hover,html[data-theme="light"] .tpm-profile-link:hover{color:#141a2b}
/* ===== end phase 14 light ===== */
