/* Temna različica. Na širokem zaslonu jo preklopi stikalo v glavi. */

html[data-theme="dark"] {
  color-scheme: dark;
  --cream: #100e0a;
  --paper: #1c1a15;
  --muted: #c4b89a;
  --line: rgba(255, 248, 230, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body {
  color: #f6f1e4;
  background: var(--cream);
}

html[data-theme="dark"] .stage {
  color: #14120b;
}

html[data-theme="dark"] body.has-ad .page {
  background: #16140f;
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

html[data-theme="dark"] .site-footer {
  background: #080705;
  box-shadow: inset 0 1px 0 rgba(255, 229, 0, 0.2);
}

html[data-theme="dark"] .search input {
  color: #f6f1e4;
  border-color: rgba(255, 248, 230, 0.28);
}

html[data-theme="dark"] .search input::placeholder { color: #8d846f; }

html[data-theme="dark"] .search button {
  background: var(--yellow);
  color: #14120b;
}

html[data-theme="dark"] .history time,
html[data-theme="dark"] .aside-note a {
  color: var(--yellow);
}

html[data-theme="dark"] .story-body :where(p, li, span, div, font, td, th, h2, h3, h4, blockquote) {
  color: #f6f1e4 !important;
}

html[data-theme="dark"] .story-body a,
html[data-theme="dark"] .story-body a :where(span, font) {
  color: var(--yellow) !important;
}

.theme-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #14120b;
  color: #ffe500;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.theme-btn:hover { background: #e10600; color: #fff; }

@media (max-width: 1040px) {
  .theme-btn { display: none; }
}

@media print {
  .theme-btn { display: none !important; }
}
