﻿/* Weazel News theme - our own styles in the style of the GTA V news network (Constitution VII). */

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("../fonts/oswald-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600.woff2") format("woff2"); }

:root {
	--wz-red: #d0021b;
	--wz-red-dark: #9e0014;
	--wz-ink: #111214;
	--wz-ink-soft: #2a2c30;
	--wz-paper: #f4f4f2;
	--wz-muted: #6b6e75;
	--wz-rule: #c8c9cc;
	--wz-surface: #fff; /* cards, panels, the story sheet */
	--wz-night: #111214; /* bands that stay dark in both themes: breaking strip, lead story, footer, profile band */
	--wz-on-ink: #fff; /* words on an ink background */
	--wz-red-text: #d0021b; /* red words; a lighter red in dark mode so it can be read */
	/* news categories (008): each desk has its own colour; red stays reserved for Breaking.
	   Keep in sync with ArticleCategories.GetColor (link-preview theme-color). */
	--wz-cat-news: #111214;
	--wz-cat-government: #1d3b6e;
	--wz-cat-opinion: #5e3a8c;
	--wz-cat-events: #0f7b6c;
	--wz-cat-fashion: #b0136f;
	--wz-cat-announcement: #f0b400;
	--wz-tint-amber: #fff8e1; /* correction box */
	--wz-tint-grey: #e6e6e3; /* poll result bar */
	--wz-tint-red: #f8d7da; /* your poll answer */
	--wz-headline-font: "Oswald", "Arial Narrow", Impact, sans-serif;
	--wz-body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--bs-primary: var(--wz-red);
	--bs-primary-rgb: 208, 2, 27;
	--bs-link-color: var(--wz-red);
	--bs-link-hover-color: var(--wz-red-dark);
	--bs-link-color-rgb: 208, 2, 27; /* Bootstrap 5.3 colours links from the -rgb variables */
	--bs-link-hover-color-rgb: 158, 0, 20;
	--bs-body-font-family: var(--wz-body-font);
	--bs-body-bg: var(--wz-paper);
	--bs-body-color: var(--wz-ink);
}

body { background: var(--wz-paper); }

h1, h2, h3, h4, h5, .wz-headline {
	font-family: var(--wz-headline-font);
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	line-height: 1.1;
}

.btn-primary { --bs-btn-bg: var(--wz-red); --bs-btn-border-color: var(--wz-red); --bs-btn-hover-bg: var(--wz-red-dark); --bs-btn-hover-border-color: var(--wz-red-dark); --bs-btn-active-bg: var(--wz-red-dark); }
.btn-outline-primary { --bs-btn-color: var(--wz-red-text); --bs-btn-border-color: var(--wz-red); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--wz-red); --bs-btn-hover-border-color: var(--wz-red); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--wz-red-dark); --bs-btn-active-border-color: var(--wz-red-dark); }
.form-check-input:checked { background-color: var(--wz-red); border-color: var(--wz-red); } /* checkboxes and radios: brand red, not the template blue */
.validation-message { margin-top: 0.125rem; color: var(--bs-form-invalid-color); font-size: 0.75rem; } /* EditForm messages outside Hx inputs, same as Hx's invalid-feedback */
.toastui-editor-defaultUI { isolation: isolate; } /* its layers (z-index 20-40) stay inside it, under the sticky save bar */
.wz-editor-invalid .toastui-editor-defaultUI { border-color: var(--bs-form-invalid-border-color); }

/* Header */
.wz-header { background: var(--wz-red); color: #fff; border-bottom: 3px solid var(--wz-night); }
.wz-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; }
.wz-logo { display: inline-flex; align-items: stretch; text-decoration: none; font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.wz-logo-weazel { color: #fff; padding: 0.15em 0.2em 0.1em 0; letter-spacing: 0.02em; }
.wz-logo-news { background: #fff; color: var(--wz-red); padding: 0.15em 0.3em 0.1em; letter-spacing: 0.06em; transform: skewX(-8deg); }
.wz-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.wz-nav > a, .wz-nav-toggle { color: #fff; text-decoration: none; font-family: var(--wz-headline-font); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.9; white-space: nowrap; }
.wz-nav-toggle { padding: 0; border: 0; background: none; line-height: inherit; }
.wz-nav-toggle:hover, .wz-nav-toggle.active, .wz-nav-toggle.show { opacity: 1; }
.wz-nav-staff .dropdown-menu { padding: 0; border-radius: 0; border: 1px solid var(--wz-ink); box-shadow: none; margin-top: 0.6rem !important; }
.wz-nav-staff .dropdown-item.active, .wz-nav-staff .dropdown-item:active { background: var(--wz-red); color: #fff; }
.wz-nav > a:hover, .wz-nav > a.active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.wz-header-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.wz-header-right a, .wz-header-right .text-secondary { color: #fff !important; }
.character-switcher, .character-switcher > span, .character-switcher .btn { white-space: nowrap; }
.character-switcher { flex-wrap: nowrap; }
.wz-header .login-display .initials { background: #fff !important; color: var(--wz-red) !important; }
.wz-header .login-display-nickname { color: #fff !important; }

/* Breaking strip */
.wz-breaking { background: var(--wz-night); color: #fff; overflow: hidden; white-space: nowrap; }
.wz-breaking .container { display: flex; align-items: center; gap: 1rem; min-height: 40px; }
.wz-breaking-label { background: var(--wz-red); color: #fff; font-family: var(--wz-headline-font); font-weight: 700; text-transform: uppercase; padding: 0.2rem 0.6rem; letter-spacing: 0.08em; flex: none; animation: wz-pulse 1.6s ease-in-out infinite; }
.wz-breaking-items { overflow: hidden; flex: 1; }
.wz-breaking-track { display: inline-block; padding-left: 100%; animation: wz-ticker 30s linear infinite; }
.wz-breaking-track a { color: #fff; text-decoration: none; margin-right: 3rem; font-weight: 600; }
.wz-breaking-track a:hover { text-decoration: underline; }
@keyframes wz-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes wz-pulse { 50% { background: var(--wz-red-dark); } }
@media (prefers-reduced-motion: reduce) { .wz-breaking-track { animation: none; padding-left: 0; } .wz-breaking-label { animation: none; } }

/* Main + footer */
.wz-main { padding-top: 1.5rem; padding-bottom: 3rem; min-height: 70vh; }
.wz-footer { background: var(--wz-night); color: #c8c9cc; padding: 2rem 0; font-size: 0.875rem; }
.wz-footer a { color: #fff; }
.wz-footer .wz-logo { font-size: 1.3rem; margin-bottom: 0.75rem; }

/* Article cards */
.wz-lead { position: relative; background: var(--wz-night); color: #fff; display: block; text-decoration: none; overflow: hidden; margin-bottom: 1.5rem; }
.wz-lead img { width: 100%; max-height: 460px; object-fit: cover; opacity: 0.75; display: block; }
.wz-lead-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; background: rgba(17, 18, 20, 0.88); }
.wz-lead-noimage .wz-lead-text { position: static; background: none; }
.wz-lead h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0.25rem 0 0.5rem; }
.wz-lead p { color: #e2e3e5; margin-bottom: 0.25rem; }
.wz-kicker { display: inline-block; background: var(--wz-red); color: #fff; font-family: var(--wz-headline-font); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; padding: 0.1rem 0.5rem; }
.wz-card { background: var(--wz-surface); border-top: 4px solid var(--wz-red); height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--wz-ink); transition: transform 0.15s ease; }
.wz-card:hover { transform: translateY(-2px); color: var(--wz-ink); }
.wz-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wz-card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.wz-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.wz-card p { color: var(--wz-ink-soft); font-size: 0.95rem; flex: 1; }
.wz-meta { color: var(--wz-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.wz-meta a { color: var(--wz-red-text); text-decoration: none; font-weight: 600; }
.wz-section-title { border-bottom: 3px solid var(--wz-ink); padding-bottom: 0.25rem; margin: 2rem 0 1rem; font-size: 1.3rem; }

/* Article page */
.wz-article { background: var(--wz-surface); padding: 2rem; max-width: 860px; margin: 0 auto; }
.wz-article h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.wz-article .wz-summary { font-size: 1.2rem; color: var(--wz-ink-soft); font-weight: 600; margin: 1rem 0; }
.wz-article .wz-cover { width: 100%; margin: 1rem 0; }
.wz-article-body { font-size: 1.08rem; line-height: 1.7; }
.wz-article .wz-article-body :is(h1, h2, h3, h4) { margin-top: 1.5rem; margin-bottom: 0.5rem; }
/* body headings stay clearly below the article headline */
.wz-article .wz-article-body h1 { font-size: 1.6rem; }
.wz-article .wz-article-body h2 { font-size: 1.35rem; }
.wz-article .wz-article-body h3 { font-size: 1.15rem; }
.wz-article .wz-article-body :is(h4, h5, h6) { font-size: 1rem; }
.wz-article-body blockquote { border-left: 4px solid var(--wz-red); padding-left: 1rem; color: var(--wz-ink-soft); font-style: italic; }
.wz-article-body img { max-width: 100%; }
.wz-comments { max-width: 860px; margin: 2rem auto 0; }
.wz-comment { background: var(--wz-surface); padding: 0.75rem 1rem; margin-bottom: 0.5rem; border-left: 3px solid var(--wz-ink); }
.wz-comment-author { font-weight: 600; }

/* Editor profile */
.wz-profile { display: flex; gap: 1.5rem; align-items: flex-start; background: var(--wz-surface); padding: 1.5rem; }
.wz-portrait { width: 160px; height: 160px; object-fit: cover; background: var(--wz-night); flex: none; }
.wz-portrait-placeholder { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--wz-headline-font); font-size: 3rem; }

/* Back-office pages keep a neutral card look */
.wz-panel { background: var(--wz-surface); padding: 1.5rem; }

.wz-comment-deleted { border-left-color: var(--wz-rule); background: transparent; }

/* Toast UI editor inside the newsroom panel */
.toastui-editor-defaultUI { font-family: var(--wz-body-font); }
.toastui-editor-contents { font-family: var(--wz-body-font); font-size: 1rem; }

.wz-icon { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; vertical-align: middle; }
.wz-icon-placeholder { background: var(--wz-ink); color: var(--wz-on-ink); font-family: var(--wz-headline-font); display: inline-flex; align-items: center; justify-content: center; }

/* Page structure (style guide §3-4) */
.wz-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.25rem; }
.wz-page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.wz-back-link { display: inline-block; font-size: 0.85rem; text-decoration: none; margin-bottom: 0.25rem; color: var(--wz-muted); }
.wz-back-link:hover { color: var(--wz-red-text); }
.wz-page-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wz-panel-title { font-size: 1.05rem; margin-bottom: 0.75rem; }
.wz-section-title:first-child { margin-top: 0; }

/* Widths - no inline max-width (style guide §4) */
.wz-form { max-width: 40rem; }
.wz-form-narrow { max-width: 24rem; }
.wz-searchbar { max-width: 32rem; }
.wz-readable { max-width: 860px; margin-left: auto; margin-right: auto; }
.wz-prose-pre { white-space: pre-line; }
.wz-image-preview { max-width: 100%; max-height: 220px; }
.wz-input-wide { min-width: 16rem; }
.wz-report { border-top: 1px solid var(--wz-rule); padding-top: 1rem; }
/* header account area: name + square outline button (no avatar dropdown) */
.wz-header-user { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.wz-header-user-name { color: #fff; font-weight: 600; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.wz-header-user-name:hover { text-decoration: underline; }
.wz-header-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border: 1px solid #fff; background: transparent; color: #fff; font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease); }
.wz-header-session { color: rgba(255, 255, 255, 0.8); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wz-header-session.is-low { color: var(--wz-cat-announcement); font-weight: 600; } /* under 5 minutes left */
.wz-header-right .wz-header-btn { color: #fff !important; text-decoration: none; }
.wz-header-right .wz-header-btn:hover { background: #fff; color: var(--wz-red) !important; }

/* Administration: tab bar, attention counters, tool groups */
.wz-subnav { display: flex; margin-bottom: 1.5rem; border-bottom: 2px solid var(--wz-ink); overflow-x: auto; scrollbar-width: none; }
.wz-subnav::-webkit-scrollbar { display: none; }
.wz-subnav a { padding: 0.5rem 0.9rem; color: var(--wz-ink); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease); }
.wz-subnav a:hover { color: var(--wz-red-text); }
.wz-subnav a.active { background: var(--wz-ink); color: var(--wz-on-ink); }
/* tab rows wider than the screen (TabRow): a fade on the side where more tabs are */
.wz-subnav.has-more-end, .wz-cat-tabs.has-more-end { mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
.wz-subnav.has-more-start, .wz-cat-tabs.has-more-start { mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent); }
.wz-subnav.has-more-start.has-more-end, .wz-cat-tabs.has-more-start.has-more-end { mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); }
.wz-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.wz-stat { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.25rem; background: var(--wz-surface); border-top: 4px solid var(--wz-rule); color: var(--wz-ink); text-decoration: none; transition: border-color var(--wz-fast) var(--wz-ease), transform var(--wz-fast) var(--wz-ease); }
a.wz-stat:hover { border-top-color: var(--wz-ink); transform: translateY(-2px); }
.wz-stat.is-hot { border-top-color: var(--wz-red); }
.wz-stat-value { font-family: var(--wz-headline-font); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.wz-stat.is-hot .wz-stat-value { color: var(--wz-red-text); }
.wz-stat-label { color: var(--wz-muted); font-family: var(--wz-headline-font); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.wz-list-group-title { margin: 1rem 0 0.25rem; color: var(--wz-muted); font-family: var(--wz-headline-font); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.wz-admin-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; align-items: start; }
.wz-admin-groups .wz-panel { margin: 0; }
.wz-tool { display: flex; align-items: center; gap: 0.85rem; width: 100%; padding: 0.75rem 0; border: 0; border-top: 1px solid var(--wz-rule); background: none; color: var(--wz-ink); text-align: left; text-decoration: none; }
.wz-panel-title + .wz-tool { border-top: 0; }
.wz-tool-icon { flex-shrink: 0; color: var(--wz-red-text); font-size: 1.5rem; }
.wz-tool-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.wz-tool-title { font-weight: 600; transition: color var(--wz-fast) var(--wz-ease); }
.wz-tool-desc { color: var(--wz-muted); font-size: 0.875rem; }
.wz-tool-chevron { color: var(--wz-muted); transition: transform var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease); }
.wz-tool:hover .wz-tool-title { color: var(--wz-red-text); }
.wz-tool:hover .wz-tool-chevron { color: var(--wz-ink); transform: translateX(3px); }

.wz-footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.wz-agreement { border-left: 3px solid var(--wz-ink); padding: 0.75rem 1rem; background: var(--wz-surface); }
.wz-textarea-tall { height: auto; min-height: 10rem; }

/* ===== News categories (008) ===== */
.wz-cat-news { --wz-cat: var(--wz-cat-news); --wz-cat-text: var(--wz-on-ink); }
.wz-cat-government { --wz-cat: var(--wz-cat-government); --wz-cat-text: #fff; }
.wz-cat-opinion { --wz-cat: var(--wz-cat-opinion); --wz-cat-text: #fff; }
.wz-cat-events { --wz-cat: var(--wz-cat-events); --wz-cat-text: #fff; }
.wz-cat-fashion { --wz-cat: var(--wz-cat-fashion); --wz-cat-text: #fff; }
.wz-cat-announcements { --wz-cat: var(--wz-cat-announcement); --wz-cat-text: var(--wz-night); }
.wz-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.wz-labels > a { text-decoration: none; }
.wz-cat-label { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.5rem; background: var(--wz-cat); color: var(--wz-cat-text); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; }
.wz-cat-label .wz-sicon { font-size: 1.1em; }
.wz-cat-label-sm { font-size: 0.7rem; }
/* on dark bands the black News tag flips to white */
.wz-lead .wz-cat-label.wz-cat-news { background: #fff; color: var(--wz-night); }
.wz-card[class*="wz-cat-"] { border-top-color: var(--wz-cat); }
.wz-card[class*="wz-cat-"]:hover { border-top-color: var(--wz-cat); }
.wz-lead[class*="wz-cat-"] { border-left: 6px solid var(--wz-cat); }
.wz-article[class*="wz-cat-"] { border-top: 6px solid var(--wz-cat); }
.wz-cat-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--wz-ink); overflow-x: auto; scrollbar-width: none; }
.wz-cat-tabs::-webkit-scrollbar { display: none; }
.wz-cat-tabs a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border-top: 3px solid var(--wz-cat, var(--wz-ink)); color: var(--wz-ink); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease); }
.wz-cat-tabs a:hover { background: var(--wz-surface); }
.wz-cat-tabs a.active { background: var(--wz-cat, var(--wz-ink)); color: var(--wz-cat-text, var(--wz-on-ink)); }

/* embedded YouTube player in article bodies (008) */
.wz-video { position: relative; aspect-ratio: 16 / 9; margin: 1.25rem 0; background: var(--wz-night); }
.wz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* out-of-character note on in-character pages */
.wz-ooc { position: relative; margin: 1.5rem 0; padding: 1.4rem 1.25rem 1.1rem; background: var(--wz-surface); border: 2px dashed var(--wz-muted); }
.wz-ooc-tag { position: absolute; top: -0.75rem; left: 1rem; padding: 0.1rem 0.55rem; background: var(--wz-ink); color: var(--wz-on-ink); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; }
.wz-ooc-body { color: var(--wz-ink-soft); }
.wz-ooc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.wz-ooc-btn { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.3rem 0.5rem 0.3rem 0.75rem; border: 1px solid var(--wz-ink); color: var(--wz-ink); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; transition: background-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease); }
.wz-ooc-btn:hover { background: var(--wz-ink); color: var(--wz-on-ink); }
.wz-ooc-btn .wz-sicon { transition: transform var(--wz-fast) var(--wz-ease); }
.wz-ooc-btn:hover .wz-sicon { transform: translateX(2px); }

/* house rules page */
.wz-rules { max-width: 52rem; }
.wz-rules strong { font-weight: 700; color: var(--wz-ink); }
.wz-rules-intro { margin-bottom: 1.5rem; font-size: 1.15rem; line-height: 1.6; color: var(--wz-ink-soft); }
.wz-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.wz-dodont-col { padding: 1rem 1.25rem; background: var(--wz-surface); border-top: 5px solid var(--wz-ink); }
.wz-dodont-col.is-dont { border-top-color: var(--wz-red); }
.wz-dodont-title { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; font-size: 1.4rem; }
.wz-dodont-col.is-do .wz-dodont-title .wz-sicon { color: var(--bs-success); }
.wz-dodont-col.is-dont .wz-dodont-title { color: var(--wz-red-text); }
.wz-dodont-col ul { margin: 0; padding: 0; list-style: none; }
.wz-dodont-col li { padding: 0.35rem 0; border-top: 1px solid var(--wz-rule); }
.wz-dodont-col li:first-child { border-top: 0; }
.wz-dodont-col.is-dont strong { color: var(--wz-red-text); }
.wz-rule-list { counter-reset: rule; margin: 0 0 2rem; padding: 0; list-style: none; }
.wz-rule { counter-increment: rule; position: relative; margin-bottom: 0.75rem; padding: 1rem 1.25rem 1rem 4.5rem; background: var(--wz-surface); border-left: 5px solid var(--wz-ink); animation: wz-fade-up var(--wz-medium) var(--wz-ease) backwards; }
.wz-rule::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 1rem; top: 0.85rem; color: var(--wz-rule); font-family: var(--wz-headline-font); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.wz-rule.is-strict { border-left-color: var(--wz-red); background: var(--wz-surface); }
.wz-rule.is-strict::before { color: var(--wz-red-text); }
.wz-rule.is-strict strong { color: var(--wz-red-text); }
.wz-rule-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.wz-rule-title { margin: 0; font-size: 1.2rem; }
.wz-rule-tag { padding: 0.05rem 0.45rem; background: var(--wz-red); color: #fff; font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wz-rules-enforcement { margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; background: var(--wz-night); color: #e2e3e5; border-left: 5px solid var(--wz-red); }
.wz-rules-enforcement h2 { margin-bottom: 0.6rem; color: #fff; font-size: 1.4rem; }
.wz-rules-enforcement strong { color: #fff; }
.wz-rules-footer { color: var(--wz-muted); }
/* Terms, privacy, report a bug: the house-rules layout, quieter (thin grey rule, no hard lines) */
.wz-rule-list.is-quiet .wz-rule { border-left: 3px solid var(--wz-rule); }
.wz-rule-list.is-quiet .wz-rule-title { font-size: 1.1rem; }
.wz-rule-list.is-quiet .wz-rule > :last-child { margin-bottom: 0; }
.wz-rule-list.is-quiet ul { padding-left: 1.1rem; list-style: square; }
.wz-legal-card { border-left: 3px solid var(--wz-rule); }

/* careers page and admin notes (011) */
.wz-careers-hero { background: var(--wz-night); color: #fff; padding: 2rem 2rem 1.75rem; margin-bottom: 1.5rem; border-left: 6px solid var(--wz-red); }
.wz-careers-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0.6rem 0 0.5rem; }
.wz-careers-hero p { color: #e2e3e5; font-size: 1.15rem; max-width: 46rem; margin: 0; }
.wz-careers-list, .wz-careers-steps { padding-left: 1.25rem; }
.wz-careers-list li, .wz-careers-steps li { margin-bottom: 0.5rem; }
.wz-careers-steps li::marker { font-family: var(--wz-headline-font); font-weight: 700; color: var(--wz-red-text); }
.wz-interviewer { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1rem; background: var(--wz-surface); border-top: 4px solid var(--wz-red); }
.wz-interviewer-text { min-width: 0; }
.wz-interviewer-name { font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; line-height: 1.2; }
.wz-interviewer-name a { color: var(--wz-ink); text-decoration: none; }
.wz-interviewer-name a:hover { color: var(--wz-red-text); }
.wz-interviewer-phone { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; font-family: var(--wz-headline-font); font-weight: 500; font-size: 1.2rem; letter-spacing: 0.04em; white-space: nowrap; }
.wz-interviewer-phone .wz-sicon { color: var(--wz-red-text); }
.wz-input-phone { width: 11rem; }
.wz-note { padding: 0.75rem 0; border-top: 1px solid var(--wz-rule); }

/* ===== Newsroom features (012) ===== */
/* live coverage */
.wz-live-label { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.5rem; background: var(--wz-red); color: #fff; font-family: var(--wz-headline-font); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; }
.wz-live { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 2px solid var(--wz-red); background: var(--wz-surface); }
.wz-live-dot { width: 0.65rem; height: 0.65rem; background: var(--wz-red); animation: wz-pulse 1.6s ease-in-out infinite; }
.wz-live-hint { color: var(--wz-muted); font-family: var(--wz-body-font); font-size: 0.8rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.wz-live-update { padding: 0.75rem 0; border-top: 1px solid var(--wz-rule); animation: wz-fade-up var(--wz-medium) var(--wz-ease) backwards; }
.wz-live-update:first-of-type { border-top: 0; }
.wz-live-update .wz-article-body { font-size: 1rem; }
.wz-live-update .wz-article-body > :last-child { margin-bottom: 0; }
.wz-live-time { display: block; margin-bottom: 0.25rem; color: var(--wz-red-text); font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* photos: captions and credits */
.wz-figure { margin: 1rem 0; }
.wz-figure img { display: block; width: 100%; }
.wz-figure figcaption { padding-top: 0.4rem; color: var(--wz-ink-soft); font-size: 0.875rem; }
.wz-credit { color: var(--wz-muted); font-size: 0.8rem; letter-spacing: 0.02em; }
.wz-figure figcaption .wz-credit { margin-left: 0.35rem; }
.wz-gallery { margin: 2rem 0 1rem; }
.wz-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.wz-gallery-grid .wz-figure { margin: 0; }
.wz-gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; transition: opacity var(--wz-fast) var(--wz-ease); }
.wz-gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.wz-gallery-open:hover img { opacity: 0.85; }
/* gallery photo viewer: the photo over a dark backdrop */
.wz-viewer { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem 1.5rem; background: rgba(17, 18, 20, 0.94); color: #fff; outline: none; cursor: zoom-out; }
body:has(.wz-viewer) { overflow: hidden; }
.wz-viewer-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem 0.5rem 1.25rem; cursor: default; }
.wz-viewer-count { font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.08em; }
.wz-viewer-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.wz-viewer-figure img { display: block; max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; cursor: default; }
.wz-viewer-figure figcaption { padding-top: 0.6rem; color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; text-align: center; cursor: default; }
.wz-viewer-figure .wz-credit { margin-left: 0.35rem; color: rgba(255, 255, 255, 0.6); }
.wz-viewer-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; transition: background-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease); }
.wz-viewer-btn:hover { background: #fff; color: var(--wz-night); }
.wz-viewer-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wz-viewer-prev, .wz-viewer-next { position: absolute; top: 50%; transform: translateY(-50%); }
.wz-viewer-prev { left: 1rem; }
.wz-viewer-next { right: 1rem; }
.wz-gallery-edit { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--wz-rule); }
.wz-gallery-edit img { width: 6rem; aspect-ratio: 4 / 3; object-fit: cover; flex-shrink: 0; }
/* cover focus point (story editor): the picture whole, a square marker where crops keep their view, the crops it gives */
.wz-focus-picker { position: relative; display: inline-block; max-width: 100%; padding: 0; border: 0; background: none; vertical-align: top; }
button.wz-focus-picker { cursor: crosshair; }
.wz-focus-picker img { display: block; max-width: 100%; max-height: 220px; }
.wz-focus-marker { position: absolute; width: 1rem; height: 1rem; transform: translate(-50%, -50%); border: 2px solid #fff; outline: 2px solid var(--wz-night); pointer-events: none; }
.wz-focus-crops { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
.wz-focus-crop { margin: 0; }
.wz-focus-crop img { display: block; height: 4rem; object-fit: cover; border: 1px solid var(--wz-rule); background: var(--wz-paper); }
.wz-focus-crop.is-print img { aspect-ratio: 2.6 / 1; }
.wz-focus-crop.is-card img { aspect-ratio: 16 / 9; }
.wz-focus-crop figcaption { font-size: 0.75rem; color: var(--wz-muted); }

/* corrections */
.wz-correction { margin: 1.25rem 0; padding: 0.75rem 1rem; border-left: 4px solid var(--wz-cat-announcement); background: var(--wz-tint-amber); }
.wz-correction strong { font-family: var(--wz-headline-font); letter-spacing: 0.05em; text-transform: uppercase; }

/* polls */
.wz-poll { margin: 2rem 0; padding: 1.25rem; background: var(--wz-paper); border-top: 4px solid var(--wz-ink); }
.wz-poll-option { position: relative; display: flex; justify-content: space-between; gap: 1rem; width: 100%; margin-bottom: 0.5rem; padding: 0.6rem 0.85rem; border: 1px solid var(--wz-ink); background: var(--wz-surface); color: var(--wz-ink); text-align: left; overflow: hidden; transition: border-color var(--wz-fast) var(--wz-ease); }
.wz-poll-option:hover:not(:disabled) { border-color: var(--wz-red); }
.wz-poll-option:disabled { cursor: default; }
.wz-poll-option.is-mine { border-width: 2px; border-color: var(--wz-red); }
.wz-poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--wz-tint-grey); transition: width var(--wz-medium) var(--wz-ease); }
.wz-poll-option.is-mine .wz-poll-bar { background: var(--wz-tint-red); }
.wz-poll-text, .wz-poll-percent { position: relative; }
.wz-poll-percent { font-family: var(--wz-headline-font); font-weight: 700; }

/* topics */
/* the story as phone pictures (1:2.3 pages) */
.wz-phone-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.wz-phone-page { margin: 0; }
.wz-phone-page img { display: block; width: 100%; aspect-ratio: 1 / 2.3; object-fit: contain; background: var(--wz-paper); border: 1px solid var(--wz-rule); }
.wz-phone-page figcaption { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.35rem; font-size: 0.85rem; }
/* a story's credits, by role (Written by, Photos, Sources...) */
.wz-credits { margin-top: 2rem; }
.wz-credits-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; margin: 0; }
.wz-credits-list dt { color: var(--wz-muted); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.15rem; }
.wz-credits-list dd { margin: 0; }
.wz-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0 1rem; }
.wz-tag { padding: 0.15rem 0.6rem; border: 1px solid var(--wz-ink); color: var(--wz-ink); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.04em; text-decoration: none; transition: background-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease); }
.wz-tag:hover { background: var(--wz-ink); color: var(--wz-on-ink); }

/* share */
.wz-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 1rem 0; }
.wz-share-label { margin-right: 0.25rem; color: var(--wz-muted); font-family: var(--wz-headline-font); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.wz-share-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.65rem; border: 1px solid var(--wz-rule); background: var(--wz-surface); color: var(--wz-ink); font-size: 0.85rem; text-decoration: none; transition: border-color var(--wz-fast) var(--wz-ease); }
.wz-share-btn:hover { border-color: var(--wz-ink); color: var(--wz-ink); }

/* front page: search with suggestions and the topics, one quiet row under the desks */
.wz-home-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: -0.25rem 0 1.25rem; }
.wz-searchbox { position: relative; flex: 1 1 16rem; max-width: 22rem; }
.wz-searchbox .form-control { min-height: 2.4rem; padding-left: 2.1rem; }
.wz-searchbox-icon { position: absolute; left: 0.65rem; top: 50%; transform: translateY(-50%); color: var(--wz-muted); font-size: 1.1rem; pointer-events: none; }
.wz-search-suggest { position: absolute; top: calc(100% + 0.25rem); left: 0; right: 0; z-index: 30; min-width: min(28rem, 90vw); max-height: 70vh; overflow-y: auto; background: var(--wz-surface); border: 1px solid var(--wz-ink); border-top: 3px solid var(--wz-red); }
.wz-search-story { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.6rem; align-items: baseline; padding: 0.55rem 0.85rem; border-top: 1px solid var(--wz-rule); color: var(--wz-ink); text-decoration: none; }
.wz-search-story:hover, .wz-search-story:focus-visible { background: var(--wz-paper); color: var(--wz-ink); }
.wz-search-headline { font-family: var(--wz-headline-font); font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.wz-search-story .wz-meta { grid-column: 2; }
.wz-search-topics { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.6rem 0.85rem; }
.wz-search-topics + .wz-search-story, .wz-search-empty + .wz-search-story { border-top: 1px solid var(--wz-rule); }
.wz-search-suggest > .wz-search-story:first-child { border-top: 0; }
.wz-search-empty { margin: 0; padding: 0.75rem 0.85rem; color: var(--wz-muted); }
.wz-search-all { display: flex; align-items: center; justify-content: flex-end; gap: 0.15rem; padding: 0.5rem 0.85rem; border-top: 1px solid var(--wz-rule); color: var(--wz-red-text); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.wz-topics { display: flex; flex: 1 1 20rem; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
/* topics in the desk tabs' type: headline font, uppercase, the count small beside it */
.wz-topics-label, .wz-topic, .wz-topics-more { font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.wz-topics-label { margin-right: 0.15rem; color: var(--wz-muted); }
.wz-topic { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.1rem; padding: 0 0.7rem; border: 1px solid var(--wz-rule); background: var(--wz-surface); color: var(--wz-ink); line-height: 1; text-decoration: none; white-space: nowrap; transition: border-color var(--wz-fast) var(--wz-ease), background-color var(--wz-fast) var(--wz-ease); }
.wz-topic:hover { border-color: var(--wz-ink); color: var(--wz-ink); }
.wz-topic-count { font-size: 0.75em; opacity: 0.65; font-variant-numeric: tabular-nums; }
.wz-topic.is-active { border-color: var(--wz-ink); background: var(--wz-ink); color: var(--wz-on-ink); }
.wz-topics-more { min-height: 2.1rem; padding: 0 0.4rem; border: 0; background: none; color: var(--wz-red-text); }
.wz-topics-more:hover { text-decoration: underline; }
.wz-topic-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: -0.5rem 0 1rem; font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; }
.wz-topic-heading a { font-family: var(--wz-body-font); font-size: 0.85rem; letter-spacing: 0; text-transform: none; }

/* front page: counts and most read */
.wz-cat-count { margin-left: 0.15rem; font-size: 0.75em; opacity: 0.65; }
.wz-most-read { counter-reset: most-read; margin: 0; padding: 0; list-style: none; background: var(--wz-surface); }
.wz-most-read li { counter-increment: most-read; display: grid; grid-template-columns: 2.25rem 1fr; padding: 0.75rem 1rem 0.75rem 0.75rem; border-top: 1px solid var(--wz-rule); }
.wz-most-read li:first-child { border-top: 0; }
.wz-most-read li::before { content: counter(most-read); grid-row: span 2; color: var(--wz-red-text); font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.wz-most-read a { color: var(--wz-ink); font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-transform: uppercase; text-decoration: none; }
.wz-most-read a:hover { color: var(--wz-red-text); }
@media (min-width: 992px) { .wz-sticky-aside { position: sticky; top: 1rem; } }
.wz-header-search { display: inline-flex; color: #fff; font-size: 1.35rem; text-decoration: none; }
.wz-header-search:hover { color: #fff; opacity: 0.8; }

/* planning board: who is writing how much */
.wz-workload { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1.25rem; padding: 0.75rem 1rem; background: var(--wz-surface); border-left: 4px solid var(--wz-ink); }
.wz-workload-title { margin: 0; font-size: 0.95rem; }
.wz-workload-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.wz-workload-list li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.3rem 0.2rem 0.6rem; border: 1px solid var(--wz-rule); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.wz-workload-count { min-width: 1.5rem; padding: 0 0.35rem; background: var(--wz-ink); color: var(--wz-on-ink); text-align: center; font-variant-numeric: tabular-nums; }
.wz-workload-list li.is-free { color: var(--wz-muted); }
.wz-workload-list li.is-free .wz-workload-count { background: var(--wz-tint-grey); color: var(--wz-muted); }

/* assignments board */
.wz-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (min-width: 768px) and (max-width: 1199.98px) { .wz-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wz-board-column { min-width: 0; }
.wz-board-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--wz-ink); font-size: 1.1rem; }
.wz-board-card { margin-bottom: 0.75rem; padding: 0.85rem 1rem; background: var(--wz-surface); border-left: 4px solid var(--wz-cat, var(--wz-ink)); animation: wz-fade-up var(--wz-medium) var(--wz-ease) backwards; }
.wz-board-card-title { margin: 0.5rem 0 0.35rem; font-size: 1.05rem; }
.wz-board-card-title a { color: var(--wz-ink); text-decoration: none; }
.wz-board-card-title a:hover { text-decoration: underline; }
.wz-board-add { margin-bottom: 0.75rem; padding: 0.85rem 1rem; background: var(--wz-surface); border-left: 4px solid var(--wz-red); }
.wz-board-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }

/* ===== Sharp, flat UI (style guide §2a) ===== */
:root {
	--bs-border-radius: 0;
	--bs-border-radius-sm: 0;
	--bs-border-radius-lg: 0;
	--bs-border-radius-xl: 0;
	--bs-border-radius-xxl: 0;
	--bs-border-radius-2xl: 0;
	--bs-border-radius-pill: 0;
	--bs-box-shadow: none;
	--bs-box-shadow-sm: none;
	--bs-box-shadow-lg: none;
	--bs-box-shadow-inset: none;
	--bs-focus-ring-width: 0;
	--wz-focus: 2px solid var(--wz-ink);
	--wz-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--wz-fast: 120ms;
	--wz-medium: 220ms;
}

*, *::before, *::after { border-radius: 0 !important; box-shadow: none !important; text-shadow: none !important; }
/* the only round shapes: radio buttons and spinners */
.form-check-input[type="radio"], .spinner-border, .spinner-grow { border-radius: 50% !important; }

/* visible, non-blurred focus for keyboard users */
:focus-visible { outline: var(--wz-focus); outline-offset: 2px; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--wz-ink); outline: var(--wz-focus); outline-offset: 0; }
.wz-header :focus-visible, .wz-breaking :focus-visible, .wz-footer :focus-visible, .wz-lead:focus-visible { outline-color: #fff; }

/* buttons: flat, uppercase headline font, press feedback */
.btn { font-family: var(--wz-headline-font); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; transition: background-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease), border-color var(--wz-fast) var(--wz-ease), transform var(--wz-fast) var(--wz-ease); }
.btn { white-space: nowrap; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-link { text-transform: none; font-family: var(--wz-body-font); letter-spacing: 0; }
.badge { font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* sharp SVG icons (SharpIcon) sit on the text baseline like a glyph */
.wz-sicon { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.btn .wz-sicon, .dropdown-item .wz-sicon { font-size: 1.15em; }

/* vote control (article like/dislike, comment like): joined square buttons, ink frame */
.wz-vote { display: inline-flex; border: 1px solid var(--wz-ink); background: var(--wz-surface); }
.wz-vote-btn { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 1.75rem; padding: 0.1rem 0.5rem; border: 0; background: transparent; color: var(--wz-ink); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.875rem; line-height: 1; transition: background-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease); }
.wz-vote-btn + .wz-vote-btn { border-left: 1px solid var(--wz-ink); }
.wz-vote-btn .wz-sicon { font-size: 1.15em; }
.wz-vote-btn:hover:not(:disabled) { background: var(--wz-ink); color: var(--wz-on-ink); }
.wz-vote-up.is-active, .wz-vote-up.is-active:hover:not(:disabled) { background: var(--bs-success); color: #fff; }
.wz-vote-down.is-active, .wz-vote-down.is-active:hover:not(:disabled) { background: var(--wz-red); color: #fff; }
.wz-vote-btn:disabled { color: var(--wz-muted); cursor: default; }
.wz-vote-btn:active:not(:disabled) { transform: translateY(1px); }
.wz-vote-sm { border-color: var(--wz-rule); }
.wz-vote-sm .wz-vote-btn { min-height: 1.5rem; padding: 0 0.4rem; font-size: 0.8rem; }

/* square character icons */
.wz-icon { border: 1px solid var(--wz-ink); }

/* ===== Ads (026): newspaper-style ad boxes; rails beside the content on wide screens, a banner above the footer ===== */
.wz-rail { display: none; }
.wz-ad { display: block; }
.wz-ad-label { display: block; margin-bottom: 0.3rem; color: var(--wz-muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.wz-ad-body { display: flex; background: var(--wz-surface); border: 1px solid var(--wz-rule); border-top: 3px solid var(--wz-ink); color: var(--wz-ink); text-decoration: none; transition: border-color var(--wz-fast) var(--wz-ease); }
a.wz-ad-body:hover { border-color: var(--wz-ink); color: var(--wz-ink); }
.wz-ad-image { display: block; object-fit: contain; background: #fff; } /* posters are never cropped or stretched; white shows around them */
.wz-ad-copy { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.75rem; min-width: 0; }
.wz-ad-headline { font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.05rem; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }
.wz-ad-text { color: var(--wz-ink-soft); font-size: 0.85rem; line-height: 1.35; overflow-wrap: anywhere; }
.wz-ad-cta { display: inline-flex; align-items: center; gap: 0.15rem; margin-top: auto; color: var(--wz-red-text); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.wz-ad-house { background: var(--wz-paper); border-style: dashed; border-top-style: solid; }
.wz-ad-house-mark { display: flex; align-items: center; justify-content: center; color: var(--wz-red-text); font-size: 2rem; }
.wz-ad-loading { background: var(--wz-surface); }
/* rail: narrow and tall */
.wz-ad-rail .wz-ad-body { flex-direction: column; }
.wz-ad-rail .wz-ad-image { width: 100%; height: auto; max-height: 24rem; }
.wz-ad-rail .wz-ad-house-mark { padding-top: 1rem; }
.wz-ad-rail .wz-ad-loading { min-height: 18rem; }
/* banner: wide and short */
.wz-ad-footer { padding-bottom: 2rem; }
.wz-input-time { width: 8.5rem; flex: none; }
.wz-ad-lead { margin: 1.5rem 0 2rem; }
.wz-ad-banner .wz-ad-body { flex-direction: row; min-height: 7.5rem; }
.wz-ad-banner .wz-ad-poster { width: 9rem; } /* the text sets the height; the poster fits inside it */
.wz-ad-banner .wz-ad-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.wz-ad-banner .wz-ad-house-mark { width: 6rem; flex-shrink: 0; border-right: 1px solid var(--wz-rule); }
.wz-ad-banner .wz-ad-copy { flex-grow: 1; justify-content: center; padding: 0.85rem 1.25rem; }
.wz-ad-banner .wz-ad-headline { font-size: 1.3rem; }
/* a banner with a poster: the poster across the whole width, the sponsor's text under it */
.wz-ad-banner:not(.wz-ad-block) .wz-ad-body:has(.wz-ad-poster) { flex-direction: column; }
.wz-ad-banner:not(.wz-ad-block) .wz-ad-poster { width: 100%; border-bottom: 1px solid var(--wz-rule); }
.wz-ad-banner:not(.wz-ad-block) .wz-ad-image { position: static; width: 100%; height: auto; max-height: 28rem; }
/* a poster opens in full (AdViewer): the zoom mark says so */
a.wz-ad-body:has(.wz-ad-poster) { cursor: zoom-in; }
.wz-ad-poster { position: relative; display: flex; flex-shrink: 0; }
.wz-ad-zoom { position: absolute; right: 0.4rem; bottom: 0.4rem; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: rgba(17, 18, 20, 0.75); color: #fff; font-size: 1.25rem; transition: background-color var(--wz-fast) var(--wz-ease); }
a.wz-ad-body:hover .wz-ad-zoom { background: var(--wz-red); }
.wz-ad-viewer-body { display: flex; align-items: center; gap: 1.5rem; max-width: 100%; max-height: 100%; cursor: default; }
.wz-ad-viewer-poster { display: block; min-width: 0; max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; }
.wz-ad-viewer-info { flex: 0 0 20rem; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem; background: var(--wz-surface); color: var(--wz-ink); border-top: 3px solid var(--wz-ink); }
.wz-ad-viewer-info .wz-ad-label { margin: 0; }
.wz-ad-viewer-info .wz-ad-headline { margin: 0; font-size: 1.5rem; }
.wz-ad-viewer-info .wz-ad-text { margin: 0; font-size: 1rem; }
.wz-ad-viewer-info .btn { display: inline-flex; align-items: center; gap: 0.2rem; align-self: flex-start; margin-top: 0.4rem; }
/* an ad with a full text: a wider, scrolling column beside the poster (or alone) */
.wz-ad-viewer-body.has-details .wz-ad-viewer-info { flex: 0 1 34rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.wz-ad-viewer-body.has-details .wz-ad-viewer-poster { max-width: min(50vw, 100%); }
.wz-ad-more { font-size: 0.8rem; font-weight: 600; color: var(--wz-red-text); }
.wz-ad-details { margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--wz-rule); font-size: 1rem; }
.wz-ad-details > :last-child { margin-bottom: 0; }
@media (max-width: 991.98px) {
	/* poster above, words below */
	.wz-viewer.wz-ad-viewer { padding-bottom: 1rem; } /* no previous / next buttons to make room for */
	.wz-ad-viewer-body { flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; }
	.wz-ad-viewer-poster { align-self: center; max-height: calc(100dvh - 19rem); }
	.wz-ad-viewer-info { flex: none; }
}
/* side-rail ads inside the content while the rails are hidden: cards among story cards, blocks elsewhere (InlineAd) */
.wz-ad-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.container.wz-ad-pair { padding-bottom: 1.5rem; }
.wz-ad-after-story { margin-top: 1.5rem; }
.wz-ad-block .wz-ad-body { min-height: 6.5rem; }
.wz-ad-block .wz-ad-poster { width: 6.5rem; }
.wz-ad-block .wz-ad-house-mark { width: 4.5rem; }
.wz-ad-block .wz-ad-copy { padding: 0.75rem 1rem; }
.wz-ad-block .wz-ad-headline { font-size: 1.05rem; }
.wz-ad-card { display: flex; flex-direction: column; height: 100%; }
.wz-ad-card .wz-ad-body { flex-grow: 1; }
.wz-ad-card .wz-ad-image { max-height: 20rem; }
@media (min-width: 768px) {
	/* tablets and up: as large as the stories around them */
	.wz-ad-block .wz-ad-body { min-height: 10rem; }
	.wz-ad-block .wz-ad-poster { width: 10rem; }
	.wz-ad-block .wz-ad-house-mark { width: 6.5rem; font-size: 2.6rem; }
	.wz-ad-block .wz-ad-copy { justify-content: center; gap: 0.5rem; padding: 1rem 1.25rem; }
	.wz-ad-block .wz-ad-headline { font-size: 1.3rem; }
	.wz-ad-block .wz-ad-text, .wz-ad-card .wz-ad-text { font-size: 0.95rem; }
	.wz-ad-card .wz-ad-copy { gap: 0.5rem; padding: 1rem; }
	.wz-ad-card .wz-ad-headline { font-size: 1.25rem; }
	.wz-ad-card .wz-ad-house-mark { font-size: 2.6rem; }
}
@media (min-width: 1500px) {
	/* the rails show from here up */
	.wz-ad-inline { display: none !important; }
	.wz-page.has-ads { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 13rem; gap: 1.5rem; max-width: calc(1320px + 29rem); margin: 0 auto; padding: 0 0.75rem; }
	.wz-page.has-ads .wz-rail { display: block; padding-top: 1.5rem; }
	.wz-rail-stack { display: flex; flex-direction: column; gap: 1.5rem; } /* two ads each side, one under the other */
	.wz-rail .wz-ad-copy { gap: 0.45rem; padding: 0.9rem; }
	.wz-rail .wz-ad-headline { font-size: 1.2rem; }
	.wz-rail .wz-ad-text { font-size: 0.9rem; }
	.wz-rail .wz-ad-house-mark { font-size: 2.4rem; }
	.wz-rail .wz-ad-loading { min-height: 22rem; }
	.wz-page.has-ads > .wz-main { max-width: none; }
}
@media (max-width: 575.98px) {
	/* a compact header: logo and tools on one line, the sections under them */
	.wz-header .container { gap: 0.35rem 0.75rem; min-height: 0; padding-top: 0.5rem; padding-bottom: 0.5rem; }
	.wz-logo { font-size: 1.45rem; }
	.wz-nav { order: 3; width: 100%; gap: 0.35rem 1rem; font-size: 0.9rem; padding-bottom: 0.4rem; }
	.wz-header-right { gap: 0.6rem; }
	.wz-header-user-name { max-width: 6rem; }
	.wz-ad-banner .wz-ad-poster { width: 6rem; }
	.wz-ad-banner .wz-ad-house-mark { width: 4rem; }
	.wz-ad-banner .wz-ad-copy { padding: 0.75rem; }
	.wz-ad-banner .wz-ad-headline { font-size: 1.05rem; }
}
/* sponsor page and Advertise page (026) */
.wz-sponsor-logo { width: 7rem; height: 7rem; object-fit: contain; flex: none; background: #fff; border: 2px solid #fff; } /* logos are drawn for white, also at night */
.wz-sponsor-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; }
.wz-sponsor-facts dt { color: var(--wz-muted); font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.wz-sponsor-facts dd { margin: 0; }
.wz-offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 0.75rem; }
.wz-offer-grid .wz-panel { display: flex; flex-direction: column; margin: 0; border-top: 4px solid var(--wz-ink); }
.wz-offer-price { margin: auto 0 0; padding-top: 0.75rem; border-top: 1px solid var(--wz-rule); font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
.wz-targeting-note { margin: 1rem 0 2rem; border-left: 4px solid var(--wz-red); }
/* the poster sizes on the Advertise page: the shapes at their proportions, and the guide as a phone picture */
.wz-poster-size { color: var(--wz-red-text); font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.wz-poster-shape { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; background: var(--wz-night); border-top: 5px solid var(--wz-red); color: #fff; font-family: var(--wz-headline-font); text-transform: uppercase; }
.wz-poster-shape strong { font-size: 2rem; line-height: 1; }
.wz-poster-shape span { color: #c8c9cc; font-size: 0.85rem; letter-spacing: 0.05em; }
.wz-poster-shape.is-banner { aspect-ratio: 3 / 1; max-width: 36rem; }
.wz-poster-shape.is-side { aspect-ratio: 2 / 3; width: 9rem; }
.wz-poster-picture { flex: none; width: 6rem; }
.wz-poster-picture img { display: block; width: 100%; aspect-ratio: 1 / 2.3; object-fit: cover; border: 1px solid var(--wz-rule); }
/* page drawing on the Advertise page: the highlighted part is where the ad goes */
.wz-slot-map { display: flex; flex-direction: column; gap: 0.25rem; aspect-ratio: 16 / 9; margin-bottom: 1rem; padding: 0.5rem; background: var(--wz-paper); border: 1px solid var(--wz-rule); }
.wz-slot-map-head { height: 0.6rem; background: var(--wz-red); }
.wz-slot-map-page { display: flex; flex: 1; gap: 0.25rem; min-height: 0; }
.wz-slot-map-rail { width: 14%; background: var(--wz-surface); border: 1px dashed var(--wz-rule); }
.wz-slot-map-content { display: flex; flex: 1; flex-direction: column; gap: 0.25rem; }
.wz-slot-map-content span { flex: 1; background: var(--wz-surface); }
.wz-slot-map-banner { height: 16%; background: var(--wz-surface); border: 1px dashed var(--wz-rule); }
.wz-slot-map.is-rails .wz-slot-map-rail, .wz-slot-map.is-banner .wz-slot-map-banner, .wz-slot-map.is-story .wz-slot-map-story { background: var(--wz-ink); border-color: var(--wz-ink); }
/* Roles page: grant/revoke buttons in equal columns, so they line up across accounts when they wrap */
.wz-role-badges { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.wz-role-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.35rem; min-width: 22rem; }
.wz-role-actions .btn { width: 100%; }
/* Advertising back office (026) */
.wz-advertiser-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 0; border-top: 1px solid var(--wz-rule); color: var(--wz-ink); text-decoration: none; }
.wz-advertiser-row:first-child { border-top: 0; padding-top: 0; }
.wz-advertiser-row:hover strong { text-decoration: underline; }
.wz-advertiser-row img, .wz-advertiser-row-mark { width: 2.5rem; height: 2.5rem; flex: none; object-fit: contain; border: 1px solid var(--wz-rule); }
.wz-advertiser-row img { background: #fff; }
.wz-advertiser-row-mark { display: flex; align-items: center; justify-content: center; color: var(--wz-muted); background: var(--wz-paper); }
.wz-report-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.wz-report-totals div { display: flex; flex-direction: column; }
.wz-report-totals strong { font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.wz-report-totals span { color: var(--wz-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.wz-ad-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem; align-items: start; }
.wz-ad-list-item:has(.wz-ad-banner) { grid-column: 1 / -1; }
/* in-game books (033): the fields to copy and the page pictures */
.wz-copy-field { padding: 0.6rem 0; border-top: 1px solid var(--wz-rule); }
.wz-copy-value { padding: 0.4rem 0.6rem; background: var(--wz-paper); font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.wz-book-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.wz-book-page img { display: block; width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border: 1px solid var(--wz-rule); background: var(--wz-paper); }
.wz-book-page a:hover img { border-color: var(--wz-ink); }
.wz-newsroom-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
.wz-newsroom-filters .form-check { margin-bottom: 0; }
/* the newspaper draft being finished: a quiet bar on top of the form; the open draft marked in the list */
.wz-draft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: -0.25rem 0 1rem; padding: 0 0 0.75rem; border-bottom: 1px solid var(--wz-rule); }
.wz-draft-label { padding: 0.05rem 0.45rem; background: var(--wz-ink); color: var(--wz-on-ink); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wz-mention-list li.is-open { border-left: 3px solid var(--wz-red); padding-left: 0.6rem; }
/* a newspaper's stories as phone pictures */
.wz-phone-story { padding: 0.6rem 0; border-top: 1px solid var(--wz-rule); }
.wz-phone-thumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.wz-phone-thumbs img { display: block; width: 3.2rem; aspect-ratio: 1 / 2.3; object-fit: cover; border: 1px solid var(--wz-rule); background: var(--wz-paper); }
.wz-newspaper-story { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--wz-rule); }
.wz-newspaper-story:first-child { border-top: 0; }
/* a planned story on the Releases page: on a phone its status and Move go under the headline */
.wz-release-story { flex-wrap: wrap; }
.wz-release-story > .flex-grow-1 { flex-basis: 12rem; min-width: 0; }
/* sponsored stories (026 FR-009) */
.wz-sponsored-label { display: inline-block; padding: 0.05rem 0.45rem; border: 1px solid var(--wz-ink); color: var(--wz-ink); background: var(--wz-surface); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* printed in a newspaper: a newspaper mark on cards, with words on the story */
.wz-print-mark { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.4rem; border: 1px solid var(--wz-ink); color: var(--wz-ink); background: var(--wz-surface); font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; }
.wz-print-mark .wz-sicon { font-size: 1.15em; }
.wz-sponsor-line { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding: 0.5rem 0.75rem; background: var(--wz-paper); border-left: 3px solid var(--wz-ink); font-size: 0.9rem; }
.wz-sponsor-line strong { font-weight: 600; }

/* ===== Motion (style guide §5a) ===== */
/* fill backwards, not both: a kept transform would trap position: fixed children (photo viewer) */
@keyframes wz-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wz-pop { 50% { transform: scale(1.12); } }
.wz-main > * { animation: wz-fade-up var(--wz-medium) var(--wz-ease) backwards; }
.wz-card, .wz-comment, .wz-panel { animation: wz-fade-up var(--wz-medium) var(--wz-ease) backwards; }
.wz-card { transition: transform var(--wz-fast) var(--wz-ease), border-color var(--wz-fast) var(--wz-ease); }
.wz-card:hover { transform: translateY(-3px); border-top-color: var(--wz-ink); }
/* Movement on hover/press is visual only (style guide §5a): an invisible strip fills the gap the element leaves,
   so its pointer area stays put. Otherwise a pointer at the edge makes a lifted card bounce in a loop, and a
   pressed button slides out from under the pointer and the click is lost. */
.wz-card, .wz-stat, .btn, .wz-vote-btn { position: relative; }
.wz-card::after, .wz-stat::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0; }
.wz-card:hover::after, a.wz-stat:hover::after { height: 4px; }
.btn::before, .wz-vote-btn::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 0; }
.btn:active::before, .wz-vote-btn:active::before { height: 2px; }
.wz-card img, .wz-lead img { transition: transform var(--wz-medium) var(--wz-ease), opacity var(--wz-medium) var(--wz-ease); }
.wz-card:hover img { transform: scale(1.03); }
.wz-card { overflow: hidden; }
.wz-lead:hover img { opacity: 0.85; }
.wz-nav > a, .wz-nav-toggle { position: relative; text-decoration: none !important; }
.wz-nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform var(--wz-fast) var(--wz-ease); }
.wz-nav > a:hover::after, .wz-nav > a.active::after { transform: scaleX(1); }
.wz-nav-toggle::before { content: ""; position: absolute; left: 0; right: 1.1em; bottom: -6px; height: 3px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform var(--wz-fast) var(--wz-ease); }
.wz-nav-toggle:hover::before, .wz-nav-toggle.active::before, .wz-nav-toggle.show::before { transform: scaleX(1); }
.wz-replies { margin-left: 1.5rem; padding-left: 0.75rem; border-left: 1px solid var(--wz-rule); }
.wz-react-active { animation: wz-pop var(--wz-medium) var(--wz-ease); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Responsive (style guide §4a) ===== */
@media (max-width: 1199.98px) {
	.wz-header .container { row-gap: 0.25rem; padding-top: 0.5rem; }
	.wz-header-right { order: 2; }
	.wz-nav { order: 3; width: 100%; padding-bottom: 0.6rem; }
}
@media (max-width: 991.98px) {
	.wz-header .container { gap: 0.75rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
	.wz-header-right { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 767.98px) {
	.wz-logo { font-size: 1.5rem; }
	.wz-nav { gap: 0.5rem 1rem; }
	.wz-main { padding-top: 1rem; }
	.wz-article { padding: 1.25rem 1rem; }
	.wz-article-body { font-size: 1rem; }
	.wz-lead img { max-height: 260px; }
	.wz-lead-text { position: static; background: var(--wz-night); padding: 1rem; }
	.wz-lead h2 { font-size: 1.6rem; }
	.wz-panel { padding: 1rem; }
	.wz-profile { flex-direction: column; }
	.wz-portrait { width: 120px; height: 120px; }
	.wz-page-header { align-items: flex-start; }
	.wz-page-actions { width: 100%; }
	.wz-breaking-label { font-size: 0.8rem; }
	.wz-searchbar, .wz-form, .wz-form-narrow { max-width: none; }
	.wz-input-wide { min-width: 0; width: 100%; }
	.wz-replies { margin-left: 0.5rem; }
	.wz-header-user-name { max-width: 9rem; }
	.wz-admin-groups { grid-template-columns: 1fr; }
	.wz-board { grid-template-columns: 1fr; }
	.wz-dodont { grid-template-columns: 1fr; }
	.wz-rule { padding-left: 3.5rem; }
	.wz-rule::before { font-size: 1.6rem; }
	.wz-gallery-grid { grid-template-columns: 1fr 1fr; }
	.wz-viewer { padding: 3.5rem 0.5rem 4.5rem; }
	.wz-viewer-figure img { max-height: calc(100vh - 11rem); }
	.wz-viewer-prev, .wz-viewer-next { top: auto; bottom: 1rem; transform: none; }
	.wz-viewer-prev { left: calc(50% - 3.25rem); }
	.wz-viewer-next { right: calc(50% - 3.25rem); }
	.wz-stat-value { font-size: 2rem; }
	.wz-article > h1 { font-size: 1.9rem; }
	.wz-article .wz-article-body h1 { font-size: 1.35rem; }
	.wz-article .wz-article-body h2 { font-size: 1.2rem; }
	.toastui-editor-toolbar { overflow-x: auto; }
}

/* Weekly active times (017), editor: one square cell per hour, red = active */
.wz-week { display: grid; grid-template-columns: 2rem repeat(7, minmax(0, 1fr)); max-width: 36rem; border-top: 1px solid var(--wz-rule); border-left: 1px solid var(--wz-rule); background: var(--wz-surface); user-select: none; -webkit-user-select: none; }
.wz-week > * { border-right: 1px solid var(--wz-rule); border-bottom: 1px solid var(--wz-rule); }
.wz-week-corner, .wz-week-day { background: var(--wz-paper); }
.wz-week-day { padding: 0.25rem 0; font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.05em; text-align: center; text-transform: uppercase; }
.wz-week-hour { padding: 0 0.3rem; background: var(--wz-paper); color: var(--wz-muted); font-size: 0.7rem; line-height: 1.1rem; text-align: right; font-variant-numeric: tabular-nums; }
.wz-week-cell { display: block; width: 100%; min-height: 1.1rem; padding: 0; border-top: 0; border-left: 0; border-radius: 0; background: var(--wz-surface); }
.wz-week-cell.is-active { background: var(--wz-red); }
.wz-week-cell { cursor: pointer; transition: background-color var(--wz-fast) var(--wz-ease); }
@media (hover: hover) {
	.wz-week-cell:hover { background: var(--wz-tint-red); }
	.wz-week-cell.is-active:hover { background: var(--wz-red-dark); }
}
.wz-week-cell:focus-visible { outline: 2px solid var(--wz-ink); outline-offset: -2px; }

/* Weekly active times (017), public: a row per day, 24 hour cells, times as text; today and the current hour marked */
.wz-weekstrip { display: grid; gap: 0.35rem; }
.wz-weekstrip-axis, .wz-weekstrip-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 11rem; gap: 0.75rem; align-items: center; }
.wz-weekstrip-ticks { position: relative; height: 1rem; color: var(--wz-muted); font-size: 0.7rem; font-variant-numeric: tabular-nums; }
.wz-weekstrip-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.wz-weekstrip-ticks span:nth-child(1) { left: 0; transform: none; }
.wz-weekstrip-ticks span:nth-child(2) { left: 25%; }
.wz-weekstrip-ticks span:nth-child(3) { left: 50%; }
.wz-weekstrip-ticks span:nth-child(4) { left: 75%; }
.wz-weekstrip-ticks span:nth-child(5) { left: 100%; transform: translateX(-100%); }
.wz-weekstrip-day { font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.wz-weekstrip-bar { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--wz-rule); }
.wz-weekstrip-bar span { height: 1.5rem; background: var(--wz-surface); }
.wz-weekstrip-bar span.is-active { background: var(--wz-red); }
.wz-weekstrip-bar span.is-now { outline: 2px solid var(--wz-ink); outline-offset: -2px; }
.wz-weekstrip-ranges { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.wz-weekstrip-ranges span { white-space: nowrap; }
.wz-weekstrip-ranges.is-empty { color: var(--wz-muted); }
.wz-weekstrip-row.is-today .wz-weekstrip-day { color: var(--wz-red-text); }
.wz-weekstrip-row.is-today .wz-weekstrip-ranges { font-weight: 600; }
/* A day of several people's active times (editors overview): the name takes the day's place */
.wz-weekstrip.is-people .wz-weekstrip-axis, .wz-weekstrip.is-people .wz-weekstrip-row { grid-template-columns: 12rem minmax(0, 1fr) 11rem; }
.wz-weekstrip-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Public character profile (017): ink band with the icon, name and whether they are usually in the city */
.wz-person { display: flex; gap: 1.5rem; align-items: center; padding: 2rem; background: var(--wz-night); color: #fff; border-bottom: 4px solid var(--wz-red); }
.wz-person .wz-icon { border: 2px solid #fff; }
.wz-person .wz-icon-placeholder { background: var(--wz-red); color: #fff; }
.wz-person .wz-live-dot { background: #fff; }
.wz-person-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.wz-person-name { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); overflow-wrap: anywhere; }
.wz-person-label { color: #c8c9cc; font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wz-person-status { color: #e2e3e5; font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.wz-person-btn { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3rem 0.5rem 0.3rem 0.8rem; border: 1px solid #fff; color: #fff; font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; transition: background-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease); }
.wz-person-btn:hover { background: #fff; color: var(--wz-night); }
.wz-person-bio { margin-top: 1rem; }
.wz-person-bio p { max-width: 52rem; font-size: 1.05rem; }

@media (max-width: 575.98px) {
	.wz-weekstrip-axis, .wz-weekstrip-row { grid-template-columns: 2.5rem minmax(0, 1fr); row-gap: 0.15rem; }
	.wz-weekstrip-ranges { grid-column: 2; font-size: 0.8rem; }
	.wz-weekstrip-bar span { height: 1.25rem; }
	.wz-weekstrip.is-people .wz-weekstrip-axis, .wz-weekstrip.is-people .wz-weekstrip-row { grid-template-columns: minmax(0, 1fr); }
	.wz-weekstrip.is-people .wz-weekstrip-axis > span:first-child { display: none; }
	.wz-weekstrip.is-people .wz-weekstrip-ranges { grid-column: 1; }
	.wz-person { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
}

/* In-person verification (019): the claim's interview code, big and spaced so it can be read out */
.wz-interview { border-top: 4px solid var(--wz-red); }
.wz-interview-code { font-family: var(--wz-headline-font); font-weight: 700; font-size: 3.5rem; letter-spacing: 0.3em; line-height: 1; }
.wz-interview-code.is-small { display: inline-block; padding: 0 0.4rem; background: var(--wz-ink); color: var(--wz-on-ink); font-size: 1.1rem; letter-spacing: 0.25em; line-height: 1.5; }
.wz-interview-note { margin-top: 0.35rem; }

/* Loading placeholders (PagePlaceholder): grey blocks in the shape of the page, static */
.wz-skeleton { background: var(--wz-tint-grey); }
.wz-skeleton-line { height: 0.9rem; margin-bottom: 0.65rem; }
.wz-skeleton-line.is-title { height: 1.5rem; }
.wz-skeleton-line.is-headline { height: 2.4rem; }
.wz-skeleton-img { aspect-ratio: 16 / 9; }
.wz-skeleton-lead { height: 380px; margin-bottom: 1.5rem; }
.wz-skeleton-tile { height: 5.75rem; } /* interviewer card */
.wz-skeleton-icon { width: 112px; height: 112px; flex: none; }
.wz-skeleton-card { border-top-color: var(--wz-rule); }
.wz-skeleton-page .wz-card, .wz-skeleton-page .wz-panel { animation: none; } /* only the real content fades in */
.wz-skeleton-card:hover { transform: none; border-top-color: var(--wz-rule); }
.wz-skeleton-row { display: grid; grid-template-columns: 2fr 1fr 3fr; gap: 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--wz-rule); }
.wz-skeleton-row:first-child { border-top: 0; }
.wz-person .wz-skeleton { background: #2a2c30; }
@media (max-width: 767.98px) {
	.wz-skeleton-lead { height: 260px; }
}

/* App start (App.razor #blazor-loading-ui): the channel comes on air. Logo wipes in, LIVE bug, a progress bar that follows
   Blazor's real download progress (--blazor-load-percentage), and a ticker. Hidden by site.css once the layout renders. */
.wz-boot { position: fixed; inset: 0; z-index: 1050; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: #111214; color: #fff; }
.wz-boot-live { position: absolute; top: 1.25rem; left: 1.25rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.6rem; background: var(--wz-red); font-family: var(--wz-headline-font); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.wz-boot-live .wz-live-dot { background: #fff; }
.wz-boot-center { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; width: min(26rem, 80vw); }
.wz-boot-logo { display: inline-flex; align-items: stretch; font-family: var(--wz-headline-font); font-weight: 700; font-size: clamp(2.6rem, 9vw, 4.5rem); line-height: 1; text-transform: uppercase; }
.wz-boot-logo .wz-logo-weazel { color: #fff; padding: 0.15em 0.2em 0.1em 0; letter-spacing: 0.02em; clip-path: inset(0 100% 0 0); animation: wz-boot-wipe 450ms var(--wz-ease) 150ms forwards; }
.wz-boot-logo .wz-logo-news { background: var(--wz-red); color: #fff; padding: 0.15em 0.3em 0.1em; letter-spacing: 0.06em; transform: skewX(-8deg) translateX(-0.4em); opacity: 0; animation: wz-boot-news 300ms var(--wz-ease) 550ms forwards; }
.wz-boot-progress { width: 100%; height: 4px; background: #2a2c30; }
.wz-boot-progress span { display: block; height: 100%; width: var(--blazor-load-percentage, 0%); background: var(--wz-red); transition: width var(--wz-fast) linear; }
.wz-boot-status { color: #c8c9cc; font-family: var(--wz-headline-font); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.wz-boot-status::after { content: "… " var(--blazor-load-percentage-text, ""); }
.wz-boot-ticker { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.55rem 0; background: var(--wz-red); white-space: nowrap; overflow: hidden; }
.wz-boot-ticker-track { display: inline-flex; animation: wz-boot-ticker 28s linear infinite; }
.wz-boot-ticker-track span { padding: 0 1.5rem; font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.wz-boot-ticker-track span::after { content: "•"; margin-left: 3rem; opacity: 0.7; }
@keyframes wz-boot-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes wz-boot-news { to { opacity: 1; transform: skewX(-8deg) translateX(0); } }
@keyframes wz-boot-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.wz-boot-logo .wz-logo-weazel { clip-path: none; }
	.wz-boot-logo .wz-logo-news { opacity: 1; transform: skewX(-8deg); }
}

/* Story thread (020): the story this one continues, and the follow-ups */
.wz-thread { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 1.25rem 0; padding: 0.75rem 1rem; border-left: 4px solid var(--wz-ink); background: var(--wz-paper); }
.wz-thread a { color: var(--wz-ink); font-weight: 600; }
.wz-thread a:hover { color: var(--wz-red-text); }
.wz-thread-label { font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--wz-red-text); }
.wz-thread.is-next { flex-direction: column; margin-top: 2rem; }
.wz-thread ul { margin: 0; padding: 0; list-style: none; }
.wz-thread li + li { margin-top: 0.25rem; }

/* Editor preview (020): the story in the article sheet, links switched off so unsaved edits are not left behind */
.wz-preview-bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; max-width: 860px; margin: 0 auto 1rem; padding: 0.6rem 1rem; background: var(--wz-night); color: var(--wz-on-ink); border-bottom: 3px solid var(--wz-red); }
.wz-preview a { pointer-events: none; }
/* the editor's short notes above the story text */
.wz-editor-notes { margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; background: var(--wz-surface); border: 1px solid var(--wz-rule); }

/* @mentions (021): link in story text, and the counts on a character's profile */
.wz-mention { font-weight: 600; text-decoration: none; }
.wz-mention:hover { text-decoration: underline; }
.wz-mention-stats { display: flex; gap: 2.5rem; margin-bottom: 1rem; }
.wz-mention-stats div { display: flex; flex-direction: column; }
.wz-mention-stats strong { font-family: var(--wz-headline-font); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.wz-mention-stats span { color: var(--wz-muted); font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.wz-mention-list { margin: 0; padding: 0; list-style: none; }
.wz-mention-list li { padding: 0.55rem 0; border-top: 1px solid var(--wz-rule); }
.wz-mention-list a { color: var(--wz-ink); font-weight: 600; }
.wz-mention-list a:hover { color: var(--wz-red-text); }

/* Editorial review (023): editors' notes on a story; open change requests stand out, resolved ones fade */
.wz-review-list { margin: 0 0 0.75rem; padding: 0; list-style: none; }
.wz-review-note { padding: 0.6rem 0 0.6rem 0.75rem; border-left: 3px solid var(--wz-rule); }
.wz-review-note + .wz-review-note { margin-top: 0.5rem; }
.wz-review-note.is-request { border-left-color: var(--wz-red); }
.wz-review-note.is-resolved { border-left-color: var(--wz-rule); opacity: 0.7; }
.wz-review-tag { display: inline-block; white-space: nowrap; margin-left: 0.35rem; padding: 0 0.35rem; background: var(--wz-red); color: #fff; font-family: var(--wz-headline-font); font-weight: 500; letter-spacing: 0.05em; }
.wz-review-note.is-resolved .wz-review-tag { background: var(--wz-muted); }

/* Story editor (025): numbered sections, a sticky save bar, a publishing checklist, folded extras */
.wz-editor-section { margin-bottom: 1rem; }
.wz-editor-step { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-size: 1.15rem; }
.wz-editor-step span { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; background: var(--wz-ink); color: var(--wz-on-ink); font-size: 0.95rem; }
.wz-editor-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 0.75rem; padding: 0.85rem 1.5rem; background: var(--wz-surface); border-top: 3px solid var(--wz-ink); }
.wz-checklist { margin: 0 0 1rem; padding: 0; list-style: none; }
.wz-checklist li { display: flex; align-items: flex-start; gap: 0.4rem; padding: 0.25rem 0; color: var(--wz-red-text); font-size: 0.9rem; }
.wz-checklist li.is-done { color: var(--wz-ink); }
.wz-publish-later { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--wz-rule); }
.wz-publish-later-title { margin-bottom: 0.5rem; font-size: 0.95rem; }
.wz-pending { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--wz-rule); }
.wz-disclosure { padding: 0; }
.wz-disclosure-toggle { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 1rem 1.5rem; border: 0; background: none; color: var(--wz-ink); text-align: left; }
.wz-disclosure-title { font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; text-transform: uppercase; }
.wz-disclosure-icon { transition: transform var(--wz-fast) var(--wz-ease); }
.wz-disclosure-toggle[aria-expanded="true"] .wz-disclosure-icon { transform: rotate(90deg); }
.wz-disclosure-body { padding: 0 1.5rem 1.25rem; }
@media (max-width: 767.98px) {
	.wz-editor-actions { padding: 0.75rem 1rem; }
}

/* ===== Dark mode: the newsroom at night. The switch in the header sets data-bs-theme on <html> (App.razor);
   Bootstrap's own dark theme covers its components, the tokens below cover ours. ===== */
:root[data-bs-theme="dark"] {
	--wz-ink: #ececea;
	--wz-ink-soft: #c4c6ca;
	--wz-paper: #121315;
	--wz-surface: #1c1d21;
	--wz-muted: #9a9ea6;
	--wz-rule: #3b3d43;
	--wz-on-ink: #121315;
	--wz-night: #24262b; /* the bands sit a step above the page so they still read as bands */
	--wz-red-text: #ff5468;
	--wz-cat-news: #ececea;
	--wz-cat-government: #5b8ad6;
	--wz-cat-fashion: #e04a9f;
	--wz-cat-opinion: #9a72d4;
	--wz-cat-events: #1fa08d;
	--wz-tint-amber: #3a3112;
	--wz-tint-grey: #2c2e33;
	--wz-tint-red: #4d1b23;
	--bs-link-color: var(--wz-red-text);
	--bs-link-hover-color: #ff8a98;
	--bs-link-color-rgb: 255, 84, 104;
	--bs-link-hover-color-rgb: 255, 138, 152;
	--bs-border-color: var(--wz-rule);
	--bs-border-color-translucent: rgba(255, 255, 255, 0.12);
	--bs-secondary-bg: var(--wz-surface);
	--bs-tertiary-bg: #24262b;
	--bs-emphasis-color: #fff;
	--bs-secondary-color: rgba(236, 236, 234, 0.7);
	--bs-form-invalid-color: #ff6b7b;
	--bs-form-invalid-border-color: #ff6b7b;
}
/* Bootstrap keeps its "dark" colours dark at night; ours turn into ink, which is light then */
[data-bs-theme="dark"] .btn-dark { --bs-btn-color: var(--wz-on-ink); --bs-btn-bg: var(--wz-ink); --bs-btn-border-color: var(--wz-ink); --bs-btn-hover-color: var(--wz-on-ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-active-color: var(--wz-on-ink); --bs-btn-active-bg: #fff; --bs-btn-active-border-color: #fff; --bs-btn-disabled-color: var(--wz-on-ink); --bs-btn-disabled-bg: var(--wz-muted); --bs-btn-disabled-border-color: var(--wz-muted); }
[data-bs-theme="dark"] .btn-outline-dark { --bs-btn-color: var(--wz-ink); --bs-btn-border-color: var(--wz-ink); --bs-btn-hover-color: var(--wz-on-ink); --bs-btn-hover-bg: var(--wz-ink); --bs-btn-hover-border-color: var(--wz-ink); --bs-btn-active-color: var(--wz-on-ink); --bs-btn-active-bg: var(--wz-ink); --bs-btn-active-border-color: var(--wz-ink); --bs-btn-disabled-color: var(--wz-muted); --bs-btn-disabled-border-color: var(--wz-muted); }
[data-bs-theme="dark"] .text-bg-dark, [data-bs-theme="dark"] .badge.bg-dark { color: var(--wz-on-ink) !important; background-color: var(--wz-ink) !important; }
[data-bs-theme="dark"] .text-secondary, [data-bs-theme="dark"] .text-muted { color: var(--wz-muted) !important; }
[data-bs-theme="dark"] .alert-light { --bs-alert-color: var(--wz-ink-soft); --bs-alert-bg: var(--wz-surface); --bs-alert-border-color: var(--wz-rule); }
[data-bs-theme="dark"] .wz-header-right .text-secondary { color: #fff !important; }
[data-bs-theme="dark"] .wz-lead img { opacity: 0.7; }
/* the story editor (Toast UI's own dark theme, toastui-editor-dark.css) on our surface */
[data-bs-theme="dark"] .toastui-editor-dark .toastui-editor-md-container, [data-bs-theme="dark"] .toastui-editor-dark .toastui-editor-ww-container { background-color: var(--wz-surface); }
[data-bs-theme="dark"] .toastui-editor-contents { color: var(--wz-ink); }
/* the read-only story text (Toast UI viewer, no dark theme of its own) */
[data-bs-theme="dark"] .toastui-editor-contents:not(.toastui-editor-defaultUI .toastui-editor-contents) :is(p, li, h1, h2, h3, h4, h5, h6, blockquote, td, th) { color: var(--wz-ink); }
.wz-header-tools { display: inline-flex; align-items: center; gap: 1rem; }
.wz-theme-toggle { padding: 0; border: 0; background: none; }

/* ===== Event calendar (042): a month of square day cells, each with its events and storms (the city's restarts);
   on phones the month becomes a list of the days from today on. ===== */
.wz-storm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1.5rem; padding: 0.75rem 1rem; background: var(--wz-night); color: #fff; }
.wz-storm-label { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--wz-red); padding: 0.15rem 0.5rem; font-family: var(--wz-headline-font); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.wz-storm-time { font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.wz-storm-in { opacity: 0.8; }
.wz-cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.wz-cal-month { flex-grow: 1; margin: 0; font-size: 1.3rem; }
.wz-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 3px solid var(--wz-ink); border-left: 1px solid var(--wz-rule); }
.wz-cal-head { padding: 0.35rem 0.5rem; border-right: 1px solid var(--wz-rule); border-bottom: 1px solid var(--wz-rule); color: var(--wz-muted); font-family: var(--wz-headline-font); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.wz-cal-day { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.3rem 0.5rem; min-width: 0; overflow-wrap: anywhere; min-height: 7.5rem; padding: 0.4rem 0.5rem; border-right: 1px solid var(--wz-rule); border-bottom: 1px solid var(--wz-rule); cursor: pointer; transition: background-color var(--wz-fast) var(--wz-ease); }
.wz-cal-day:hover { background: var(--wz-tint-grey); }
.wz-cal-day.is-outside { background: var(--wz-paper); }
.wz-cal-day.is-outside .wz-cal-date { color: var(--wz-muted); }
/* days gone by step back (phones leave them out) */
.wz-cal-day.is-past .wz-cal-date { color: var(--wz-muted); }
.wz-cal-day.is-past .wz-cal-event { opacity: 0.6; }
.wz-cal-day.is-today { outline: 2px solid var(--wz-red); outline-offset: -2px; }
.wz-cal-date { flex-basis: 100%; color: var(--wz-ink); font-family: var(--wz-headline-font); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; }
.wz-cal-date:hover { color: var(--wz-red-text); }
.wz-cal-day.is-today .wz-cal-date { color: var(--wz-red-text); }
.wz-cal-weekday { display: none; font-weight: 500; text-transform: uppercase; }
.wz-cal-event { display: block; flex-basis: 100%; padding-left: 0.35rem; border-left: 3px solid var(--wz-red); color: var(--wz-ink); font-size: 0.8rem; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
.wz-cal-event:hover { color: var(--wz-red-text); }
/* storms are short and daily: icon and time, side by side */
.wz-cal-event.is-storm { display: inline-flex; flex-basis: auto; align-items: center; gap: 0.15rem; padding-left: 0; border-left: 0; color: var(--wz-muted); font-size: 0.75rem; white-space: nowrap; }
.wz-cal-event.is-storm .wz-cal-time { margin-right: 0; font-weight: 500; }
.wz-cal-time { font-weight: 600; margin-right: 0.25rem; }
.wz-cal-list { margin: 0; padding: 0; list-style: none; }
.wz-cal-item { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--wz-rule); }
.wz-cal-item:first-child { border-top: 0; padding-top: 0; }
.wz-cal-item a { color: var(--wz-ink); font-weight: 600; text-decoration: none; }
.wz-cal-item a:hover { color: var(--wz-red-text); }
.wz-cal-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; padding: 0.35rem 0; border: 2px solid var(--wz-ink); font-family: var(--wz-headline-font); line-height: 1; text-transform: uppercase; }
.wz-cal-badge strong { font-size: 1.4rem; }
.wz-cal-badge span { font-size: 0.7rem; letter-spacing: 0.05em; }
.wz-day-list { margin: 0; padding: 0; list-style: none; }
.wz-day-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.9rem 0; border-top: 1px solid var(--wz-rule); }
.wz-day-item:first-child { border-top: 0; padding-top: 0; }
.wz-day-item:last-child { padding-bottom: 0; }
.wz-day-time { font-family: var(--wz-headline-font); font-weight: 700; font-size: 1.05rem; }
.wz-day-title { color: var(--wz-ink); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
a.wz-day-title:hover { color: var(--wz-red-text); }
.wz-day-item.is-storm .wz-day-time, .wz-day-item.is-storm .wz-day-title { color: var(--wz-muted); font-weight: 500; }
.wz-event-cover { margin-bottom: 1rem; }
.wz-event-cover img { display: block; width: 100%; max-height: 28rem; object-fit: cover; }
.wz-cal-item-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 0.5rem; }
.wz-day-event { overflow: hidden; }
.wz-day-cover { float: right; width: 9rem; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 0.5rem 1rem; }
.wz-event-presenters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.wz-event-presenter { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--wz-ink); font-weight: 600; text-decoration: none; }
.wz-event-presenter:hover { color: var(--wz-red-text); }
.wz-event-presenter img { width: 2rem; height: 2rem; object-fit: contain; border: 1px solid var(--wz-rule); background: var(--wz-surface); }
.wz-event-facts { display: flex; flex-direction: column; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; font-weight: 600; }
.wz-event-facts li { display: flex; align-items: center; gap: 0.5rem; }
.wz-pre-line { white-space: pre-line; }
/* tables with inputs in the cells (bank import): the inputs keep a usable width, the table scrolls */
.wz-input-table .form-control { min-width: 8rem; }
.wz-input-table .wz-note-cell { min-width: 12rem; }
@media (max-width: 767.98px) {
	.wz-cal { grid-template-columns: 1fr; border-left: 0; }
	.wz-cal-head, .wz-cal-day.is-outside, .wz-cal-day.is-past { display: none; }
	.wz-cal-day { min-height: 0; padding: 0.6rem 0.25rem; border-right: 0; }
	.wz-cal-weekday { display: inline; }
	.wz-day-item { grid-template-columns: 1fr; }
	.wz-day-cover { width: 6rem; }
}

/* ===== Lists put in order by dragging (ReorderList): a handle, a red line where the row lands, arrows for phones ===== */
.wz-reorder-item { position: relative; display: flex; align-items: center; gap: 0.75rem; }
.wz-reorder > div + div > .wz-reorder-item { border-top: 1px solid var(--wz-rule); }
.wz-reorder-item.is-dragged { opacity: 0.4; }
.wz-reorder-item.is-drop-before::before, .wz-reorder-item.is-drop-after::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--wz-red); }
.wz-reorder-item.is-drop-before::before { top: -2px; }
.wz-reorder-item.is-drop-after::after { bottom: -2px; }
.wz-drag-handle { display: inline-flex; color: var(--wz-muted); cursor: grab; }
.wz-drag-handle:active { cursor: grabbing; }
.wz-reorder-arrows { display: inline-flex; flex-shrink: 0; gap: 0.25rem; margin-left: auto; }

/* ===== Topic picker (story editor): picked topics as chips, existing topics suggested while typing ===== */
.wz-tags-picked { margin: 0 0 0.5rem; }
.wz-tag-chip { display: inline-flex; align-items: center; gap: 0.3rem; }
.wz-tag-remove { display: inline-flex; padding: 0; border: 0; background: none; color: inherit; }
.wz-tag-remove:hover { color: var(--wz-red-text); }
.wz-topic-menu { max-height: 20rem; overflow-y: auto; }
.wz-topic-create { font-weight: 600; }
.wz-tag-chip:hover { background: none; color: var(--wz-ink); }
.wz-topic-menu .dropdown-item.active, .wz-topic-menu .dropdown-item:active { background: var(--wz-ink); color: var(--wz-on-ink); }
.wz-input-count { width: 5rem; text-align: right; }

/* touch screens: small controls get a finger-sized target (44 px) without changing how they look on desktop */
@media (pointer: coarse) {
	.wz-vote-btn, .wz-vote-sm .wz-vote-btn, .wz-share-btn, .wz-header-search, .wz-theme-toggle, .wz-reorder-arrows .btn, .wz-drag-handle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
	.btn-sm { min-height: 44px; }
	.wz-topic { min-height: 44px; display: inline-flex; align-items: center; }
	.wz-subnav a, .wz-cat-tabs a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* sortable table headers: the header text is the button */
.wz-sort-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.wz-sort-btn:hover { text-decoration: underline; }
