:root {
  color-scheme: light;
  --page: #f7f5f2;
  --section: #f7f4f1;
  --surface: #fff;
  --panel: #efeeeb;
  --text: #2c0d00;
  --text-secondary: #3a2117;
  --text-soft: #5b4a42;
  --muted: #747775;
  --footer-text: #888;
  --link: #0c282f;
  --vision: #40343f;
  --success: #238823;
  --line-rgb: 44,13,0;
  --link-line-rgb: 12,40,47;
  --shadow-rgb: 44,13,0;
  --nav-bg: rgba(247,245,242,0.93);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #151310;
  --section: #1a1714;
  --surface: #1f1c18;
  --panel: #24201b;
  --text: #f1ebe2;
  --text-secondary: #e1d7cb;
  --text-soft: #d4cbc1;
  --muted: #b7ada2;
  --footer-text: #a99d90;
  --link: #8adbd2;
  --vision: #bfa0c4;
  --success: #86d68c;
  --line-rgb: 171,153,135;
  --link-line-rgb: 101,192,186;
  --shadow-rgb: 0,0,0;
  --nav-bg: rgba(21,19,16,0.93);
}

:root[data-theme="dark"] .nav-summit-logo,
:root[data-theme="dark"] .pl-card [role="img"] {
  background-color: #efeeeb;
  border-radius: 2px;
}

:root[data-theme="dark"] .nav-summit-logo {
  box-shadow: 0 0 0 4px #efeeeb;
}

:root[data-theme="dark"] .pl-card [role="img"] {
  padding: 5px;
  background-origin: content-box;
}

.theme-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--text-secondary);
  font: 1.25rem/1 Arial, sans-serif;
  cursor: pointer;
}

.theme-toggle:hover { color: var(--link); }
:root[data-theme="dark"] .theme-toggle { color: #f0c987; }
.theme-toggle::before { content: '☾' / ''; }
:root[data-theme="dark"] .theme-toggle::before { content: '☀' / ''; }

.theme-toggle:focus-visible,
.poster-card:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.nav-inner { gap: 22px; }
.nav-brand { gap: 32px; }
.nav-links { margin-inline-start: auto; }

#contact .poster-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poster-card img {
  flex-shrink: 0;
  width: min(46%, 112px);
  height: auto;
  border: 1px solid rgba(var(--line-rgb),0.22);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-inner { gap: 8px; }
  .nav-brand { gap: 12px; }
  .pl-arrow { align-self: center; pointer-events: none; }
}

@media (max-width: 420px) {
  .nav-brand-text { display: none; }
}
