/* Header theme toggle, logo swap, and a few dark-mode component fixes. */

.theme-toggle{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  margin:0;
  padding:0;
  border-radius:10px;
  border:1px solid var(--line-strong,var(--line));
  background:var(--panel,var(--bg));
  color:var(--ink);
  cursor:pointer;
  flex:none;
  box-sizing:border-box;
  box-shadow:none;
}
.theme-toggle svg{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.theme-toggle .icon-sun{display:none}
.theme-toggle .icon-moon{display:block}
html[data-theme="dark"] .theme-toggle .icon-sun{display:block}
html[data-theme="dark"] .theme-toggle .icon-moon{display:none}
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .theme-toggle .icon-sun{display:block}
  html:not([data-theme="light"]) .theme-toggle .icon-moon{display:none}
}
.theme-toggle:hover{border-color:var(--gold,var(--acc-txt,#E2B95A));color:var(--gold,var(--acc-txt,#E2B95A))}
.theme-toggle:focus{outline:none}
.theme-toggle:focus-visible{
  outline:2px solid var(--gold,var(--acc-txt,#E2B95A));
  outline-offset:2px;
}

/* Wordmark: charcoal mark on light, silver/gold mark on dark. Tile (white badge) reads on both. */
.wm-dark{display:none}
html[data-theme="dark"] .wm-light{display:none}
html[data-theme="dark"] .wm-dark{display:block}
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .wm-light{display:none}
  html:not([data-theme="light"]) .wm-dark{display:block}
}

/* Keep the toggle visible on narrow screens (there is no hamburger menu). */
@media (max-width: 720px){
  .nav .r{display:flex!important;align-items:center;gap:8px}
  .nav .r > .theme-toggle{display:inline-flex!important}
  .nav .r > a.btn{display:inline-flex!important}
}

/* Dark-mode component tweaks that still used light-only hardcoded values. */
html[data-theme="dark"] .bz-sum{background:var(--panel)!important}
html[data-theme="dark"] .foot{background:var(--bg2)}
html[data-theme="dark"] .form input,
html[data-theme="dark"] .form textarea,
html[data-theme="dark"] .form select{
  background:var(--panel2);
  color:var(--ink);
  border-color:var(--line-strong);
}
html[data-theme="dark"] .ghl-slot{background:var(--panel);border-color:var(--line-strong)}
html[data-theme="dark"] .draft-banner{color:var(--ink)}

/* Setup / Home film posters stay charcoal+gold in both themes (they are film frames). */
