/* Every theme the site can wear, one line each. The list of themes and the live one are in
   themes.js. A theme's rules all start with [data-theme="<id>"], so only the chosen one applies.
   The Newsprint theme has no file: it is the look built into styles.css. */
@import url("pigeon-press.css");

/* The preview switch (themes.js shows it only after ?theme=<id>). It looks the same in every theme. */
.theme-preview {
  position: fixed;
  right: 12px;
  bottom: calc(var(--ticker-h) + 12px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  background: #1d1c1a;
  color: #f3f1eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font: 500 13px/1 system-ui, sans-serif;
}
.theme-preview span { margin-right: 4px; opacity: 0.7; }
.theme-preview button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.theme-preview button:hover { background: rgba(255, 255, 255, 0.14); }
.theme-preview button[aria-pressed="true"] { background: #f3f1eb; color: #1d1c1a; }
.theme-preview button:focus-visible { outline: 2px solid #f3f1eb; outline-offset: 2px; }
.theme-preview .theme-preview__close { width: 32px; padding: 0; font-size: 18px; }
@media (max-width: 480px) {
  .theme-preview { left: 12px; justify-content: space-between; }
  .theme-preview span { display: none; }
}
@media print {
  .theme-preview { display: none; }
}
