/* The Verifier 2026: base layer. Active only under body.tv-2026. */

/* Brand band at the top of the page: a visual sign that the switch is on */
body.tv-2026::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  top: var(--wp-admin--admin-bar--height, 0px); /* below the admin bar, which otherwise covers the band */
  height: 4px;
  background: var(--tv-band);
  z-index: 100001;
  pointer-events: none;
}
/* Phones: WordPress's admin bar is not fixed under 600px, it scrolls away.
   Below the bar the band would float 46px down the page; on phones it sits at the very top. */
@media (max-width: 600px) {
  body.tv-2026::before, .tvstory-progress { top: 0; }
}

/* Background with the dot grid */
body.tv-2026 {
  background-color: var(--tv-bg);
  background-image: radial-gradient(var(--tv-dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
  font-family: var(--tv-font);
}

/* Headlines: Heebo 700 */
body.tv-2026 h1, body.tv-2026 h2, body.tv-2026 h3,
body.tv-2026 .entry-title, body.tv-2026 .p-title {
  font-family: var(--tv-font);
  font-weight: 700;
}

/* Helper: 45° cut at the bottom-left corner */
body.tv-2026 .tv-cut {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--tv-cut-md) 100%, 0 calc(100% - var(--tv-cut-md)));
}
/* text for screen readers and search engines only */
body.tv-2026 .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The browser's own UI (scrollbars, form fields) in the same scheme as the page. The <meta name="color-scheme"> set in
   <head> covers the first paint; these follow body[data-theme] after that, whoever flips it (ours or Foxiz's toggle). */
html:has(> body.tv-2026[data-theme="dark"]) { color-scheme: dark; }
html:has(> body.tv-2026:not([data-theme="dark"])) { color-scheme: light; }
