/* One palette for the entire page. Brand source tokens remain in tokens.css. */
:root {
  color-scheme: light;
  --site-background: #FFFFFF;
  --site-surface: #F4F8FC;
  --site-portrait: #EDF4FB;
  --site-accent: #0757D9;
  --site-accent-hover: #0649B7;
  --site-accent-soft: #E6EFFB;
  --site-button-text: #FFFFFF;
  --site-bubble: #F1F7FF;
  --site-hover-line: #AFC9E8;
  --site-shadow: #10223A0D;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --site-background: #07111F;
  --site-surface: #101E30;
  --site-portrait: #132A40;
  --site-accent: #51DDF5;
  --site-accent-hover: #85E8F8;
  --site-accent-soft: #163748;
  --site-button-text: #07111F;
  --site-bubble: #12283B;
  --site-hover-line: #4C7B91;
  --site-shadow: #00000033;
  --yd-text: #EFF6FF;
  --yd-muted: #A3B4CB;
  --yd-line: #263B53;
}

html, body, .hero-shell, .section, .contact-section {
  color: var(--yd-text);
  background: var(--site-background);
}
.section, .contact-section { border-top: 1px solid var(--yd-line); }
.foundation { border-bottom: 0; }
.site-header, .hero-bottom, .principles-list article, .contact-status {
  border-color: var(--yd-line);
}
.site-footer { border-top: 1px solid var(--yd-line); }
.site-header nav > a, .site-header nav .nav-cta, .contact-status strong {
  color: var(--yd-text);
}
.site-header nav .nav-cta { border-color: var(--yd-line); }
.people-subtitle, .overseas-values, .hero-bottom, .channel-note,
.principles-list p, .contact-description, .contact-status p {
  color: var(--yd-muted);
}
.section-label, .people-intro .eyebrow, .people-intro h1 > span,
.principles h2 span, .principle-number, .people-link, .people-skills li::before,
.explain-heading h3, .speech-role,
.site-header nav > a:hover, .hero-bottom a:hover, .faq-list summary:hover {
  color: var(--site-accent);
}
.overseas-values li::before { background: var(--site-accent); }
.people-card { background: var(--site-surface); }

.people-portrait { background: linear-gradient(180deg, var(--site-portrait), var(--site-surface)); }
.speech-bubble, .speech-bubble::before {
  background: var(--site-bubble);
  border-color: var(--yd-line);
}
.speech-bubble .speech-aside { border-color: var(--yd-line); }
.button { color: var(--site-button-text); background: var(--site-accent); }
.button:hover { background: var(--site-accent-hover); }
.direction-choices label > span {
  color: var(--yd-text);
  background: var(--site-surface);
  border-color: var(--yd-line);
}
.direction-choices input:checked + span {
  color: var(--site-accent);
  background: var(--site-accent-soft);
  border-color: var(--site-accent);
}
.direction-choices input:hover + span { border-color: var(--site-accent); }
:focus-visible, .direction-choices input:focus-visible + span { outline-color: var(--site-accent); }
.skip-link { background: var(--site-accent); color: var(--site-button-text); }

/* The logo and the action icon follow the selected theme without a reload. */
.brand .logo-dark, .theme-icon-sun { display: none; }
[data-theme="dark"] .brand .logo-light, [data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .brand .logo-dark, [data-theme="dark"] .theme-icon-sun { display: block; }
.header-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-header { gap: 24px; }
.site-header nav { margin-left: auto; gap: 24px; }
.site-header nav .nav-cta { margin-left: 0; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--yd-line);
  border-radius: 8px;
  background: var(--site-surface);
  color: var(--yd-text);
  font-size: .8125rem;
  white-space: nowrap;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--site-accent); border-color: var(--site-hover-line); }
.menu-toggle { border-color: var(--yd-line); color: var(--yd-text); }
.menu-toggle span { background: currentColor; }
@media (max-width: 1100px) {
  .site-header, .site-header nav { gap: 18px; }
}
@media (max-width: 900px) {
  .header-controls { margin-left: auto; }
  .site-header nav { margin-left: 0; background: var(--site-background); border-color: var(--yd-line); box-shadow: 0 18px 24px var(--site-shadow); }
}
@media (max-width: 700px) {
  .theme-toggle-label { display: none; }
  .theme-toggle { width: 44px; padding: 0; }
}
@media (max-width: 380px) {
  .site-header { gap: 12px; }
  .site-header .brand img { width: 150px; }
  .header-controls { gap: 8px; }
}
