/* Simple variants copied from backups/theme-20261024-before-sand-navy.css.
   Selector guards isolate these styles from Royal Gold and Sandstone. */
/* Existing colors are retained as fallbacks in dark mode. Shared semantic tokens
   replace them in light mode, including components rendered after page load. */
:root:where([data-theme-variant=simple])[data-theme=light]{
  --theme-scheme:light;
  --theme-page:#f3f6fa;
  --theme-inset:#f5f8fc;
  --theme-panel:#ffffff;
  --theme-raised:#e8eef5;
  --theme-hover:#dce7f3;
  --theme-track:#cbd7e5;
  --theme-text:#172b42;
  --theme-secondary:#3e5570;
  --theme-muted:#52657c;
  --theme-link:#245b9e;
  --theme-success:#16634c;
  --theme-danger:#a92d49;
  --theme-warning:#795214;
  --theme-purple:#71409c;
  --theme-blue-soft:#e1edfc;
  --theme-green-soft:#e3f4ed;
  --theme-red-soft:#fce7ec;
  --theme-gold-soft:#fff1cc;
  --theme-purple-soft:#f0e7fa;
  --theme-border:#ccd7e4;
  --theme-blue-border:#8badd6;
  --theme-green-border:#8cbea9;
  --theme-red-border:#dda0ae;
  --theme-gold-border:#d9b665;
  --theme-purple-border:#bca1d5;
  --theme-shadow:#172b4214;
  --theme-grid:#ccd7e4;
  --theme-chart-label:#52657c;
  --theme-chart-blue:#2563a6;
  --theme-chart-teal:#087d70;
  --theme-chart-blue-fill:#2563a633;
  --theme-chart-teal-fill:#087d7033;
}
:root:where([data-theme-variant=simple])[data-theme=dark]{--theme-scheme:dark}
html:where([data-theme-variant=simple]){color-scheme:var(--theme-scheme,dark)}
html:where([data-theme-variant=simple])[data-theme=light],html:where([data-theme-variant=simple])[data-theme=light] body{background:var(--theme-page);color:var(--theme-text)}
/* Keep primary actions and tiny level markers legible on their saturated fills. */
html:where([data-theme-variant=simple])[data-theme=light] :is(.compare-button,.search-form button,.quick-search-input-row button,.quick-search-submit-row button,.donation-dialog-link,.join-clan-link,.cc-page button[type=submit]){color:#fff}
html:where([data-theme-variant=simple])[data-theme=light] .dashboard .bg-blue-600{color:#fff}
html:where([data-theme-variant=simple])[data-theme=light] .dashboard .join-clan-link{background:#1d694e;border-color:#227a58;color:#fff}
html:where([data-theme-variant=simple])[data-theme=light] .dashboard .join-clan-link:hover{background:#237c5a;color:#fff}
html:where([data-theme-variant=simple])[data-theme=light] .war-in{background:var(--theme-green-soft);border-color:var(--theme-green-border);color:var(--theme-success)}
html:where([data-theme-variant=simple])[data-theme=light] .war-out{background:var(--theme-red-soft);border-color:var(--theme-red-border);color:var(--theme-danger)}
html:where([data-theme-variant=simple])[data-theme=light] .war-unknown{background:var(--theme-raised);color:var(--theme-muted)}
html:where([data-theme-variant=simple])[data-theme=light] :is(.quick-search-input-row button,.quick-search-submit-row button){background:#2563b8;border-color:#2563b8}
html:where([data-theme-variant=simple])[data-theme=light] .dashboard .home-header-links>a:nth-of-type(1){--menu-bg:#e1edfc;--menu-border:#8badd6;--menu-text:#214e85;--menu-hover:#cbdff8}
html:where([data-theme-variant=simple])[data-theme=light] .dashboard .home-header-links>a:nth-of-type(2){--menu-bg:#f0e7fa;--menu-border:#bca1d5;--menu-text:#623c88;--menu-hover:#e4d5f4}
html:where([data-theme-variant=simple])[data-theme=light] .dashboard .home-header-links>a:nth-of-type(3){--menu-bg:#e0f2ef;--menu-border:#85b8ae;--menu-text:#205f58;--menu-hover:#c9e9e3}
html:where([data-theme-variant=simple])[data-theme=light] .dashboard .home-header-links>a:hover{color:var(--menu-text)}
html:where([data-theme-variant=simple])[data-theme=light] :is(.ranked-battle-card.ranked-attack.ranked-triple){background:#fff0bf;border-color:#c49a36;box-shadow:inset 0 1px #fff8dd}
html:where([data-theme-variant=simple])[data-theme=light] :is(.ranked-battle-card.ranked-defense.ranked-triple){background:#fce0e8;border-color:#d98fa4;box-shadow:inset 0 1px #fff2f6}
html:where([data-theme-variant=simple])[data-theme=light] :is(.ranked-battle-card.ranked-defense-bonus){background:#e9e8fa;border-color:#aaa4cf}
html:where([data-theme-variant=simple])[data-theme=light] .ranked-battle-stars .earned{color:#8c5f05;text-shadow:none}
html:where([data-theme-variant=simple])[data-theme=light] .ranked-battle-card.ranked-defense.ranked-triple .ranked-battle-stars .earned{color:#9d3557;text-shadow:none}
html:where([data-theme-variant=simple])[data-theme=light] :is(.ranked-battle-card.ranked-triple .ranked-battle-stars .earned){color:#8c5f05;text-shadow:none}
html:where([data-theme-variant=simple])[data-theme=light] .donation-fab{background:#234d85;color:#fff}
html:where([data-theme-variant=simple])[data-theme=light] .donation-fab:hover{background:#1d4ed8;color:#fff}
html:where([data-theme-variant=simple])[data-theme=light] .donation-fab-icon{background:#fbbf24;color:#422006}
html:where([data-theme-variant=simple])[data-theme=light] :is(.higher-mark){background:#bcebd9;color:#14513e}
html:where([data-theme-variant=simple])[data-theme=light] :is(.item-level.higher>span:first-child){color:#16634c}
html:where([data-theme-variant=simple])[data-theme=light] :is(.league-member.is-current,.league-player-rank){background:#dceaff;color:#173c6b;border-color:#7b9fce}
html:where([data-theme-variant=simple])[data-theme=light] .league-player-rank strong{color:#173c6b}
html:where([data-theme-variant=simple])[data-theme=light] :is(.dashboard table tbody tr.bg-blue-50,.dashboard table tbody tr[class*="bg-blue-"]){background:#dceaff;color:#173c6b}
html:where([data-theme-variant=simple])[data-theme=light] svg text{fill:var(--theme-chart-label)}
:where(html[data-theme-variant=simple]) .appearance-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;min-width:0;flex-shrink:0}
:where(html[data-theme-variant=simple]) .theme-control{display:inline-flex;align-items:center;gap:7px;color:var(--theme-muted,#a9bdd3);font-size:11px;font-weight:700;white-space:nowrap}
:where(html[data-theme-variant=simple]) .theme-control select{min-height:36px;max-width:120px;padding:6px 9px;border:1px solid var(--theme-border,#40536b);border-radius:7px;background:var(--theme-inset,#111c28);color:var(--theme-text,#e8edf5);font:inherit;cursor:pointer}
:where(html[data-theme-variant=simple]) .theme-control select:focus-visible{outline:2px solid var(--theme-link,#82b6ff);outline-offset:2px}
:where(html[data-theme-variant=simple]) .dashboard .home-header-links .appearance-controls{margin-left:8px;padding-left:14px;border-left:1px solid var(--theme-border,#334457)}
:where(html[data-theme-variant=simple]) .dashboard .home-header-links .appearance-controls .language-control{margin:0;padding:0;border:0}
:where(html[data-theme-variant=simple]) .site-header .header-inner{flex-wrap:wrap;gap:12px 16px}
:where(html[data-theme-variant=simple]) .cc-page header nav{flex-wrap:wrap}
@media(max-width:640px){:where(html[data-theme-variant=simple]) .dashboard .home-header-links .appearance-controls{grid-column:1/-1;justify-self:stretch;margin:2px 0 0;padding:0;border:0}:where(html[data-theme-variant=simple]) .appearance-controls{gap:10px}:where(html[data-theme-variant=simple]) .site-header .appearance-controls{margin-left:auto}:where(html[data-theme-variant=simple]) .theme-control select{min-height:38px}}

/* Section accents are reserved for small labels and active-tab indicators. */
:root:where([data-theme-variant=simple]){
  --section-blue-bg:#1b3048;--section-blue-edge:#426f9c;--section-blue-ink:#b4d7ff;
  --section-teal-bg:#183a35;--section-teal-edge:#3d7d6a;--section-teal-ink:#a6e3cf;
  --section-amber-bg:#3a2e1b;--section-amber-edge:#92733b;--section-amber-ink:#f0cf89;
  --section-purple-bg:#30243f;--section-purple-edge:#775b96;--section-purple-ink:#dcc3f3;
  --section-slate-bg:#263341;--section-slate-edge:#526a81;--section-slate-ink:#c4d6e8;
}
:root:where([data-theme-variant=simple])[data-theme=light]{
  --section-blue-bg:#e5effc;--section-blue-edge:#9ab9de;--section-blue-ink:#24558b;
  --section-teal-bg:#e1f3ed;--section-teal-edge:#9ec9b9;--section-teal-ink:#205f50;
  --section-amber-bg:#fff3d7;--section-amber-edge:#d9ba76;--section-amber-ink:#755117;
  --section-purple-bg:#f0e7fa;--section-purple-edge:#baa1d5;--section-purple-ink:#654186;
  --section-slate-bg:#e9eff5;--section-slate-edge:#afbfce;--section-slate-ink:#40566e;
}
:where(html[data-theme-variant=simple]) [data-section-tone=blue]{--section-bg:var(--section-blue-bg);--section-edge:var(--section-blue-edge);--section-ink:var(--section-blue-ink)}
:where(html[data-theme-variant=simple]) [data-section-tone=teal]{--section-bg:var(--section-teal-bg);--section-edge:var(--section-teal-edge);--section-ink:var(--section-teal-ink)}
:where(html[data-theme-variant=simple]) [data-section-tone=amber]{--section-bg:var(--section-amber-bg);--section-edge:var(--section-amber-edge);--section-ink:var(--section-amber-ink)}
:where(html[data-theme-variant=simple]) [data-section-tone=purple]{--section-bg:var(--section-purple-bg);--section-edge:var(--section-purple-edge);--section-ink:var(--section-purple-ink)}
:where(html[data-theme-variant=simple]) [data-section-tone=slate]{--section-bg:var(--section-slate-bg);--section-edge:var(--section-slate-edge);--section-ink:var(--section-slate-ink)}
/* Keep large surfaces neutral; section color appears only in small accents. */
html:where([data-theme-variant=simple]) :is(.panel,.cc-panel,.clan-overview,.clan-war-log,.clan-actions-card,.capital-district-panel,.rankings-panel,.landing-panel,.raid-panel)[data-section-tone],
html:where([data-theme-variant=simple]) .dashboard :is(#clan-war,#clan-activity){border-top:1px solid var(--theme-border,#304053)}
html:where([data-theme-variant=simple]) [data-section-tone]>.section-head,
html:where([data-theme-variant=simple]) [data-section-tone]>.cc-heading,
html:where([data-theme-variant=simple]) [data-section-tone]>.clan-war-log-head,
html:where([data-theme-variant=simple]) [data-section-tone]>.clan-overview-heading,
html:where([data-theme-variant=simple]) [data-section-tone]>.rankings-heading,
html:where([data-theme-variant=simple]) .dashboard :is(#clan-war,#clan-activity)>.border-b:first-child,
html:where([data-theme-variant=simple]) .raid-panel[data-section-tone]>summary{
  background:transparent;border-bottom:1px solid var(--theme-border,#304053);
}
html:where([data-theme-variant=simple]) [data-section-tone]>.section-head,html:where([data-theme-variant=simple]) [data-section-tone]>.cc-heading{
  padding:0 0 12px;margin-bottom:14px;border-radius:0;align-items:center;
}
html:where([data-theme-variant=simple]) [data-section-tone]>.section-head h2,
html:where([data-theme-variant=simple]) [data-section-tone]>.cc-heading h2,
html:where([data-theme-variant=simple]) [data-section-tone]>.clan-war-log-head h2,
html:where([data-theme-variant=simple]) [data-section-tone]>.clan-overview-heading h2,
html:where([data-theme-variant=simple]) [data-section-tone]>.rankings-heading h2,
html:where([data-theme-variant=simple]) .dashboard :is(#clan-war,#clan-activity)>.border-b:first-child h2,
html:where([data-theme-variant=simple]) .raid-panel[data-section-tone]>summary strong{color:var(--theme-text,#e8edf5)}
html:where([data-theme-variant=simple]) [data-section-tone]>.section-head .eyebrow,
html:where([data-theme-variant=simple]) [data-section-tone]>.clan-overview-heading .clan-overview-eyebrow,
html:where([data-theme-variant=simple]) [data-section-tone]>.clan-war-log-head .clan-war-log-eyebrow{color:var(--section-ink)}
html:where([data-theme-variant=simple]) :is(.cc-panel,.capital-district-panel)[data-section-tone]>h2{
  padding:0 0 12px;margin:0 0 14px;border-radius:0;border-bottom:1px solid var(--theme-border,#304053);background:transparent;color:var(--theme-text,#e8edf5);
}
html:where([data-theme-variant=simple]) [data-section-tone] :is(.clan-profile-details,.clan-detail-panel)>summary{
  background:transparent;color:var(--theme-text,#c9ddf6);
}
html:where([data-theme-variant=simple]) .tabs [data-section-tone][aria-selected=true]{
  background:transparent;border-bottom-color:var(--section-edge);color:var(--theme-text,#e8edf5);
}
html:where([data-theme-variant=simple]) .clan-primary-tabs a[data-section-tone][aria-selected=true]{
  background:var(--theme-inset,#172330);border-color:var(--theme-border,#40536b);box-shadow:inset 0 -2px var(--section-edge);color:var(--theme-text,#e8edf5);
}
html:where([data-theme-variant=simple]) .quick-search-tab[data-section-tone][aria-selected=true]{
  background:var(--theme-raised,#202c3a);border-bottom-color:var(--section-edge);color:var(--theme-text,#e8edf5);
}
@media(max-width:640px){html:where([data-theme-variant=simple]) [data-section-tone]>.section-head,html:where([data-theme-variant=simple]) [data-section-tone]>.cc-heading{gap:10px;flex-wrap:wrap}}
