/* The light theme uses the same Gold controls on every route. */
:root[data-theme="light"] {
  --accent: #765614;
  --accent-ink: #fffdf8;
  --cloth: #d4af37;
  --cloth-hover: #e1bf55;
  --cloth-wash: #d4af3715;
  --cloth-border: #b49750;
  --gold: #765614;
  --brand-button-ink: #252115;
  accent-color: #9e7828;
}

html[data-theme="light"] body :is(button, [role="button"], .btn, .rh-primary, .co-button, .rh-exclusive-cta, .next-player-access, .bh-text-link, .rh-header-menu > summary) {
  --control-fill: #fbf0d4;
  --control-text: #65480d;
  background: var(--control-fill);
  border-color: #b69a59;
  color: var(--control-text);
}

html[data-theme="light"] body :is(.btn.primary, .rh-primary, .co-button, .rh-exclusive-cta, .next-player-access, button[type="submit"], button[aria-pressed="true"], button[aria-selected="true"], .btn[aria-current="page"]) {
  --control-fill: #d4af37;
  --control-text: #252115;
}

html[data-theme="light"] body :is(button, [role="button"], .btn, .rh-primary, .co-button, .rh-exclusive-cta, .next-player-access, .bh-text-link, .rh-header-menu > summary):not(:disabled):hover {
  background: #e1bf55;
  border-color: #9e7828;
  color: #252115;
}

html[data-theme="light"] body :is(button, [role="button"], .btn, .rh-primary, .co-button, .rh-exclusive-cta, .next-player-access, .bh-text-link, .rh-header-menu > summary):focus-visible {
  outline: 2px solid #9e7828;
  outline-offset: 2px;
}

html[data-theme="light"] body :is(.account-space-symbol, .account-space-chevron, .account-space-symbol svg, .bh-device-nav) {
  color: #e8cb78;
}
html[data-theme="light"] body .account-connected { background: #d4af37; }
html[data-theme="light"] body .co-home { --co-accent: #d4af37; }
html[data-theme="light"] body .co-home .co-eyebrow { color: #765614; }
html[data-theme="light"] body .rh-exclusive-no-art { color: #e8cb78; }
html[data-theme="light"] body .qf-duel > strong { color: #f0d37d; }
html[data-theme="light"] body .qf-match-status.is-live { color: #e8cb78; }

html[data-theme="light"] body #header [data-action="logout"],
html[data-theme="light"] body:has(main .club-workspace-nav) main .btn:not(.primary):not(.danger) {
  background: #fbf0d4;
  border-color: #b69a59;
  color: #65480d;
}
html[data-theme="light"] body #header [data-action="logout"]:hover,
html[data-theme="light"] body:has(main .club-workspace-nav) main .btn:not(.primary):not(.danger):hover {
  background: #e1bf55;
  border-color: #9e7828;
  color: #252115;
}

/* Keep the tournament shortcuts and surrounding accents in the Gold palette. */
html[data-theme="light"] body .cj-follow .cj-follow-row {
  border-color: #d7c69d;
  border-inline-start-color: #b18b35;
}
html[data-theme="light"] body .cj-follow .cj-follow-row > .btn.primary {
  background: #d4af37;
  color: #252115;
  border-color: #b18b35;
}
html[data-theme="light"] body .cj-follow .cj-follow-row > .btn.primary:is(:hover, :active) {
  background: #e1bf55;
  border-color: #9e7828;
}
html[data-theme="light"] body .cj-follow .cj-follow-row > .btn.primary:focus-visible {
  outline-color: #9e7828;
}
html[data-theme="light"] body :is(.cj-follow-choice select, .co-home, .qf-scene, .bh-device, .account-space-panel, .account-space-symbol, .account-space-footer) {
  border-color: #a08652;
}
html[data-theme="light"] body .rh-directory-link {
  color: #765614;
}
html[data-theme="light"] body .qf-scene {
  background-image: radial-gradient(at 50% 100%, #8b672660, transparent 65%);
}
html[data-theme="light"] body .bh-mobile-section {
  background-image: radial-gradient(at 85% 100%, #b18b351c, transparent 65%);
}

html[data-theme="light"] body:has(.bh-home) #header {
  background: #202323;
  color: #fff6e4;
  border-bottom-color: #d4af37;
}
html[data-theme="light"] body:has(.bh-home) #header .rack-logo-dark {
  content: url("/images/royal-arena-logo.svg");
  object-fit: contain;
}
html[data-theme="light"] body .bh-home .rh-hero {
  background-color: #202323;
}
html[data-theme="light"] body .bh-home .rh-hero .rh-eyebrow {
  color: #f0d37d;
}
html[data-theme="light"] body .bh-home .fa-match-strip {
  --panel: #202323;
  --surface: #3e382c;
  --line: #746958;
  --text: #fff6e4;
  --muted: #e1d7c1;
  --accent: #d4af37;
}
html[data-theme="light"] body .bh-home .fa-strip-player > strong {
  color: #f0d37d;
}

/* Gold indicators for current navigation, selected tabs and filters. */
html[data-theme="light"] body.home-page #header .rh-header-nav a[aria-current="page"],
html[data-theme="light"] body #header .rh-menu-panel a[aria-current="page"] {
  color: #f0d37d;
}
html[data-theme="light"] body.home-page #header .rh-header-nav a[aria-current="page"]::after {
  background-color: #d4af37;
}
html[data-theme="light"] body :is(nav, .tabs, [role="tablist"]) :is(a.active, a[aria-current="page"], button[aria-selected="true"], [role="tab"][aria-selected="true"]):not(.rh-header-nav a):not(.rh-menu-panel a),
html[data-theme="light"] body :is(.toolbar, [role="group"], .competition-match-filters) :is(button[aria-pressed="true"], button[aria-selected="true"]) {
  background-color: #d4af37;
  border-color: #b18b35;
  color: #252115;
}

/* Warm Gold surfaces and readable mobile navigation. */
html[data-theme="light"] body #header :is(#language, .rh-header-menu > summary, .site-sidebar-toggle) {
  background: #fbf0d4;
  border-color: #b69a59;
  color: #52370f;
}
html[data-theme="light"] body #header #language option {
  background: #fff8e7;
  color: #52370f;
}
html[data-theme="light"] body #header .rh-header-menu > summary > span {
  color: #52370f;
}
html[data-theme="light"] body #header .site-sidebar-toggle > span,
html[data-theme="light"] body #header .site-sidebar-toggle > span::before,
html[data-theme="light"] body #header .site-sidebar-toggle > span::after {
  background-color: currentColor;
}
html[data-theme="light"] body #header .rh-menu-panel {
  background: #302516;
  border-color: #a08652;
  color: #fff4d8;
}
html[data-theme="light"] body #header .rh-menu-panel :is(a, p) {
  color: #fff4d8;
}
html[data-theme="light"] body #header .rh-menu-panel a:is(:hover, [aria-current="page"]) {
  color: #f0d37d;
  background: #49371f;
}
html[data-theme="light"] body .bh-home .rh-hero-copy h1 em {
  color: #f0d37d;
}
html[data-theme="light"] body :is(.co-page, .co-home) {
  --co-accent: #d4af37;
}
html[data-theme="light"] body :is(.co-page, .co-home) :focus-visible {
  outline-color: #9e7828;
}

html[data-theme="light"] body .competition-manager-menu {
  background: #fbf0d4;
  border-color: #d9c495;
}
html[data-theme="light"] body .competition-manager-menu > summary {
  color: #65480d;
}
html[data-theme="light"] body .competition-match-filters > :is(input, select),
html[data-theme="light"] body .competition-match-filters #match-tours > summary {
  background: #fff8e7;
  border-color: #b69a59;
  color: #52370f;
}
html[data-theme="light"] body .competition-match-filters > input::placeholder {
  color: #746043;
}
html[data-theme="light"] body .bd-duel-menu .bd-duel-links {
  background: #fff8e7;
  border-color: #b69a59;
}
html[data-theme="light"] body .bd-duel-menu .bd-duel-links a {
  color: #52370f;
}
html[data-theme="light"] body .bd-duel-menu .bd-duel-links a:hover {
  color: #765614;
  text-decoration: underline;
}
html[data-theme="light"] body :is(.bd-duel-actions, #match-tours) :focus-visible {
  outline-color: #9e7828;
}
