/* v4 core: theme button, quiet moment and Red Pen skeletons */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; padding: 0;
  border-radius: 50%; border: 1px solid var(--line, rgba(255,255,255,.18));
  background: var(--glass-strong, rgba(255,255,255,.08)); color: var(--cream, #fff1df);
  cursor: pointer;
}
.theme-btn:focus-visible { outline: 2px solid var(--teal, #3ee6e0); outline-offset: 2px; }
.theme-btn .ti-sun { display: none; }
.theme-btn[aria-pressed="true"] .ti-sun { display: block; }
.theme-btn[aria-pressed="true"] .ti-moon { display: none; }
@media (max-width: 480px) {
  .header-inner { gap: 6px; padding-right: var(--s-2, 8px); }
  .theme-btn { width: 40px; height: 40px; }
  .header-cta { padding-inline: var(--s-2, 8px); font-size: 0.82rem; }
  .wordmark { font-size: 0.9rem; }
}

[data-cmp-modes]:empty, [data-ed-street]:empty, [data-treats-slot]:empty,
[data-coco-slot]:empty, [data-visitor-badge]:empty { display: none; }

.quiet { position: relative; margin: 0; background: var(--bg-0); overflow: hidden; }
.quiet-img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.quiet .container { position: absolute; inset: auto 0 0 0; padding-block: var(--s-4, 16px);
  background: linear-gradient(0deg, rgba(7,20,22,.85), rgba(7,20,22,0)); }
.quiet-line { margin: 0; text-align: center; font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 3.4rem); line-height: 1.1; color: var(--cream, #fff1df); }

.redpen-form { max-width: 640px; margin: 0 auto; }
.redpen-form label { display: block; margin-bottom: var(--s-2, 8px); font-weight: 600; }
.redpen-row { display: flex; gap: var(--s-2, 8px); flex-wrap: wrap; }
.redpen-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 var(--s-3, 12px);
  border-radius: var(--r-m, 12px); border: 1px solid var(--line, rgba(255,255,255,.2));
  background: var(--bg-1, #0c2124); color: var(--cream, #fff1df); font: inherit; }
.redpen-note { margin: var(--s-2, 8px) 0 0; font-size: 0.88rem; opacity: 0.75; }
.redpen-out { max-width: 880px; margin: var(--s-4, 16px) auto 0; }
.redpen-out:empty { display: none; }

html.theme-day .theme-btn { color: #1a2a2c; border-color: rgba(0,0,0,.2); background: rgba(255,255,255,.7); }
html.theme-day .quiet-line { color: #fff; }
html.theme-day .redpen-row input { background: #fff; color: #1a2a2c; border-color: rgba(0,0,0,.25); }
