/*
Theme Name: TheBlogWire
Theme URI: https://theblogwire.com/
Author: Muhammad Aqib
Author URI: https://www.fiverr.com/aqibarif74
Description: An editorial broadcast blog theme that delivers your posts like an agency news wire. TheBlogWire pairs industrial Archivo headlines with IBM Plex Serif body copy and monospaced datelines on a paper-grey canvas, accented in broadcast red and signal blue. Ships a red running-headline ticker, an all-caps wire hero with a derived transmission number, a timestamped "Latest Transmissions" list, an URGENT / STANDARD / BACKGROUND priority board computed from post age and discussion, broadcast channel sections built from your categories, a strict 620px reading column, a command-line search field, a CSS-only signal-lost 404 and a full flash-free dark mode across eleven purpose-built templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theblogwire
Tags: blog, news, custom-menu, custom-logo, featured-images, right-sidebar, two-columns, translation-ready, block-styles, wide-blocks, threaded-comments, footer-widgets, editorial
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--tbw-bg:          #f5f5f4;
	--tbw-surface:     #ffffff;
	--tbw-surface-alt: #ebebe9;
	--tbw-primary:     #171717;
	--tbw-accent:      #dc2626;
	--tbw-accent-deep: #b91c1c;
	--tbw-secondary:   #1e40af;
	--tbw-text:        #262626;
	--tbw-muted:       #57534e;
	--tbw-border:      #d6d3d1;
	--tbw-rule:        #a8a29e;
	--tbw-on-accent:   #ffffff;

	--tbw-font-head: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--tbw-font-body: "IBM Plex Serif", Georgia, "Times New Roman", serif;
	--tbw-font-ui:   "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--tbw-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--tbw-radius:    2px;
	--tbw-radius-lg: 3px;
	--tbw-gutter:    28px;
	--tbw-max:       1280px;
	--tbw-content:   620px;

	--tbw-shadow:    0 1px 0 rgba(23, 23, 23, .06), 0 12px 28px rgba(23, 23, 23, .08);
	--tbw-shadow-sm: 0 1px 2px rgba(23, 23, 23, .1);
}

[data-theme="dark"] {
	--tbw-bg:          #171717;
	--tbw-surface:     #262626;
	--tbw-surface-alt: #1f1f1f;
	--tbw-primary:     #f5f5f4;
	--tbw-accent:      #ef4444;
	--tbw-accent-deep: #f87171;
	--tbw-secondary:   #3b82f6;
	--tbw-text:        #e7e5e4;
	--tbw-muted:       #a8a29e;
	--tbw-border:      #3a3a3a;
	--tbw-rule:        #4a4a4a;
	--tbw-on-accent:   #ffffff;
	--tbw-shadow:      0 1px 0 rgba(0, 0, 0, .5), 0 12px 28px rgba(0, 0, 0, .5);
	--tbw-shadow-sm:   0 1px 2px rgba(0, 0, 0, .55);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--tbw-bg);
	color: var(--tbw-text);
	font-family: var(--tbw-font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background .2s ease, color .2s ease;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tbw-font-head);
	color: var(--tbw-primary);
	line-height: 1.08;
	margin: 0 0 .5em;
	font-weight: 800;
	letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }

a { color: var(--tbw-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

:focus-visible {
	outline: 2px solid var(--tbw-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Accessibility helpers */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--tbw-accent);
	color: var(--tbw-on-accent);
	font-family: var(--tbw-font-ui);
	font-weight: 700;
	padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.tbw-container {
	width: 100%;
	max-width: var(--tbw-max);
	margin-inline: auto;
	padding-inline: var(--tbw-gutter);
}

.tbw-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 316px;
	gap: 52px;
	align-items: start;
	padding-block: 48px;
}

.tbw-layout--full { grid-template-columns: minmax(0, 1fr); }

/* Grid children must be allowed to shrink, or long unbreakable strings
   (URLs, code) push the sidebar off the page. */
.tbw-content { min-width: 0; }

@media (max-width: 1000px) {
	.tbw-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Channel kicker */
.tbw-kicker {
	display: inline-block;
	font-family: var(--tbw-font-ui);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tbw-accent);
}
.tbw-kicker:hover { text-decoration: none; color: var(--tbw-accent-deep); }

/* Monospaced dateline strip */
.tbw-dateline {
	display: block;
	font-family: var(--tbw-font-mono);
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tbw-muted);
}

/* Priority flags */
.tbw-flag {
	display: inline-block;
	font-family: var(--tbw-font-mono);
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	padding: 3px 8px;
	border: 1px solid currentColor;
	line-height: 1.3;
}
.tbw-flag--urgent     { color: var(--tbw-accent); background: color-mix(in srgb, var(--tbw-accent) 10%, transparent); }
.tbw-flag--standard   { color: var(--tbw-secondary); background: color-mix(in srgb, var(--tbw-secondary) 10%, transparent); }
.tbw-flag--background { color: var(--tbw-muted); background: transparent; }

/* Wire break */
.tbw-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 48px 0;
	color: var(--tbw-rule);
}
.tbw-divider::before,
.tbw-divider::after {
	content: "";
	flex: 1;
	height: 0;
	border-top: 1px dashed var(--tbw-rule);
}
.tbw-divider__mark {
	font-family: var(--tbw-font-mono);
	font-size: .72rem;
	letter-spacing: .2em;
	line-height: 1;
}

/* Section heading */
.tbw-sectionhead {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 26px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--tbw-primary);
}
.tbw-sectionhead__title {
	margin: 0;
	font-size: clamp(1.1rem, 2.2vw, 1.55rem);
	font-weight: 900;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.tbw-sectionhead__sub {
	font-family: var(--tbw-font-mono);
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tbw-muted);
}
.tbw-sectionhead__more {
	margin-left: auto;
	font-family: var(--tbw-font-ui);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tbw-muted);
}
.tbw-sectionhead__more:hover { color: var(--tbw-accent); text-decoration: none; }

/* ==========================================================================
   4. Ticker — the running headline strip
   ========================================================================== */

.tbw-topbar {
	background: var(--tbw-accent);
	color: var(--tbw-on-accent);
	border-bottom: 1px solid rgba(0, 0, 0, .18);
}

.tbw-ticker {
	display: flex;
	align-items: center;
	gap: 0;
	min-height: 30px;
	overflow: hidden;
}

.tbw-ticker__label {
	flex: 0 0 auto;
	align-self: stretch;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0 14px 0 0;
	margin-right: 14px;
	border-right: 1px solid rgba(255, 255, 255, .38);
	font-family: var(--tbw-font-mono);
	font-size: .64rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	white-space: nowrap;
}
.tbw-ticker__label::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: currentColor;
	animation: tbw-pulse 1.8s ease-in-out infinite;
}

@keyframes tbw-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: .25; }
}

.tbw-ticker__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.tbw-ticker__track {
	display: flex;
	width: max-content;
	animation: tbw-marquee 48s linear infinite;
}
.tbw-ticker:hover .tbw-ticker__track,
.tbw-ticker:focus-within .tbw-ticker__track { animation-play-state: paused; }

@keyframes tbw-marquee {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

.tbw-ticker__set {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0 15px;
	flex: 0 0 auto;
}

.tbw-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	font-family: var(--tbw-font-ui);
	font-size: .76rem;
	font-weight: 500;
}
.tbw-ticker__code {
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	font-weight: 600;
	opacity: .72;
}
.tbw-ticker__item a { color: inherit; }
.tbw-ticker__item a:hover { text-decoration: underline; }
.tbw-ticker__item + .tbw-ticker__item::before {
	content: "\25CF";
	font-size: .4rem;
	opacity: .6;
	margin-right: 22px;
}

/* Mid-page "On the wire" strip inverts to the primary ink block. */
.tbw-ticker--wire {
	background: var(--tbw-primary);
	color: #fff;
	padding: 10px 18px;
	margin: 44px 0;
	border-left: 4px solid var(--tbw-accent);
}
[data-theme="dark"] .tbw-ticker--wire { background: #0d0d0d; color: var(--tbw-text); }
.tbw-ticker--wire .tbw-ticker__label {
	color: var(--tbw-accent);
	border-right-color: rgba(255, 255, 255, .26);
}

/* ==========================================================================
   5. Masthead & navigation
   ========================================================================== */

.tbw-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--tbw-bg);
	border-bottom: 3px solid var(--tbw-primary);
}

.tbw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 76px;
}

.tbw-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: var(--tbw-font-head);
	font-weight: 900;
	font-size: 1.55rem;
	line-height: 1;
	color: var(--tbw-primary);
	letter-spacing: -.035em;
	text-transform: uppercase;
}
.tbw-brand:hover { text-decoration: none; }

.tbw-brand__mark {
	width: 30px; height: 30px;
	flex: 0 0 auto;
	color: var(--tbw-accent);
}
.tbw-brand__mark svg { width: 100%; height: 100%; display: block; }

.tbw-brand__tagline {
	display: block;
	font-family: var(--tbw-font-mono);
	font-size: .6rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tbw-muted);
	margin-top: 5px;
}

/* Transmission stamps beside the brand */
.tbw-stamps {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--tbw-font-mono);
	font-size: .64rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tbw-muted);
	padding-left: 20px;
	margin-left: 4px;
	border-left: 1px solid var(--tbw-border);
	white-space: nowrap;
}
.tbw-stamps b { color: var(--tbw-primary); font-weight: 600; }
.tbw-stamps__live { color: var(--tbw-accent); font-weight: 600; }

@media (max-width: 1180px) { .tbw-stamps { display: none; } }

.tbw-brand-wrap { display: flex; align-items: center; min-width: 0; }

.tbw-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
}

.tbw-nav a {
	color: var(--tbw-primary);
	font-family: var(--tbw-font-ui);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 6px 0;
	position: relative;
}
.tbw-nav a:hover { text-decoration: none; color: var(--tbw-accent); }

.tbw-nav .current-menu-item > a,
.tbw-nav .current_page_item > a { color: var(--tbw-accent); }

.tbw-nav .current-menu-item > a::after,
.tbw-nav .current_page_item > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 3px;
	background: var(--tbw-accent);
}

/* Sub-menus */
.tbw-nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 216px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: var(--tbw-surface);
	border: 1px solid var(--tbw-primary);
	box-shadow: var(--tbw-shadow);
	padding: 6px;
	display: none;
	z-index: 20;
}
.tbw-nav li { position: relative; }
.tbw-nav li:hover > ul,
.tbw-nav li:focus-within > ul { display: flex; }
.tbw-nav ul ul a { display: block; padding: 9px 12px; }
.tbw-nav ul ul a::after { display: none; }
.tbw-nav ul ul a:hover { background: var(--tbw-surface-alt); }

.tbw-header__actions { display: flex; align-items: center; gap: 8px; }

.tbw-iconbtn {
	width: 40px; height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--tbw-border);
	background: var(--tbw-surface);
	color: var(--tbw-primary);
	cursor: pointer;
	padding: 0;
	border-radius: var(--tbw-radius);
	transition: border-color .15s, color .15s, background .15s;
}
.tbw-iconbtn:hover { border-color: var(--tbw-accent); color: var(--tbw-accent); }
.tbw-iconbtn svg { width: 17px; height: 17px; fill: currentColor; }

[data-theme="dark"] .tbw-iconbtn__sun  { display: block; }
[data-theme="dark"] .tbw-iconbtn__moon { display: none; }
.tbw-iconbtn__sun  { display: none; }
.tbw-iconbtn__moon { display: block; }

.tbw-menu-toggle { display: none; }

/* Header search drawer */
.tbw-searchdrawer {
	display: none;
	padding: 0 0 20px;
	border-top: 1px solid var(--tbw-border);
	background: var(--tbw-surface-alt);
}
.tbw-searchdrawer.is-open { display: block; }
.tbw-searchdrawer .tbw-container { padding-top: 20px; }

@media (max-width: 940px) {
	.tbw-menu-toggle { display: inline-flex; }
	.tbw-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--tbw-surface);
		border-bottom: 3px solid var(--tbw-primary);
		padding: 14px var(--tbw-gutter) 22px;
	}
	.tbw-nav.is-open { display: block; }
	.tbw-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.tbw-nav ul ul { position: static; display: flex; border: 0; box-shadow: none; padding-left: 16px; }
	.tbw-nav a { display: block; padding: 11px 0; }
	.tbw-brand { font-size: 1.25rem; }
}

/* ==========================================================================
   6. Wire hero
   ========================================================================== */

.tbw-hero { padding: 44px 0 8px; }

.tbw-hero__slug {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 12px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--tbw-primary);
}
.tbw-hero__code {
	font-family: var(--tbw-font-mono);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tbw-primary);
	background: var(--tbw-surface-alt);
	border: 1px solid var(--tbw-border);
	padding: 4px 10px;
}
.tbw-hero__lead {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 44px;
	align-items: start;
}
.tbw-hero__lead--solo { grid-template-columns: 1fr; }
.tbw-hero__lead--solo .tbw-hero__body { max-width: 26ch; }
.tbw-hero__lead--solo .tbw-hero__title { font-size: clamp(2.7rem, 7.5vw, 5rem); }
.tbw-hero__lead--solo .tbw-hero__dek { max-width: 54ch; }

@media (max-width: 900px) {
	.tbw-hero__lead { grid-template-columns: 1fr; gap: 26px; }
	.tbw-hero__lead--solo .tbw-hero__body { max-width: none; }
}

.tbw-hero__title {
	font-size: clamp(2.2rem, 5.2vw, 3.9rem);
	font-weight: 900;
	line-height: .98;
	letter-spacing: -.03em;
	text-transform: uppercase;
	margin: 10px 0 18px;
}
.tbw-hero__title a { color: var(--tbw-primary); }
.tbw-hero__title a:hover { color: var(--tbw-accent); text-decoration: none; }

.tbw-hero__dek {
	font-size: 1.16rem;
	line-height: 1.55;
	color: var(--tbw-text);
	margin: 0 0 20px;
	max-width: 50ch;
}

.tbw-hero__figure {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--tbw-surface-alt);
	border: 1px solid var(--tbw-border);
}
.tbw-hero__figure img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   7. Byline
   ========================================================================== */

.tbw-byline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--tbw-font-ui);
	font-size: .78rem;
	color: var(--tbw-muted);
}
.tbw-byline img { width: 32px; height: 32px; border-radius: 50%; filter: grayscale(1) contrast(1.15); }
.tbw-byline__name { color: var(--tbw-text); }
.tbw-byline__name a { color: var(--tbw-text); font-weight: 700; }
.tbw-byline__name a:hover { color: var(--tbw-accent); }
.tbw-byline__cred {
	font-family: var(--tbw-font-mono);
	font-size: .62rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tbw-secondary);
	border: 1px solid currentColor;
	padding: 2px 7px;
}
.tbw-byline__dot { color: var(--tbw-rule); }
.tbw-byline__time,
.tbw-byline__read { font-family: var(--tbw-font-mono); font-size: .7rem; letter-spacing: .04em; }

/* ==========================================================================
   8. Wire list — Latest Transmissions
   ========================================================================== */

.tbw-wirelist {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--tbw-border);
}

.tbw-wireitem {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 8px 24px;
	padding: 24px 0;
	border-bottom: 1px solid var(--tbw-border);
	position: relative;
}
.tbw-wireitem--urgent { border-left: 3px solid var(--tbw-accent); padding-left: 20px; }
.tbw-wireitem--standard { border-left: 3px solid var(--tbw-secondary); padding-left: 20px; }
.tbw-wireitem--background { border-left: 3px solid var(--tbw-border); padding-left: 20px; }

.tbw-wireitem__rail {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: var(--tbw-font-mono);
	font-size: .72rem;
	line-height: 1.4;
	color: var(--tbw-muted);
	padding-top: 2px;
}
.tbw-wireitem__stamp { color: var(--tbw-primary); font-weight: 600; font-size: .86rem; }
.tbw-wireitem__code { font-size: .66rem; letter-spacing: .08em; }

.tbw-wireitem__body { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }

.tbw-wireitem__title {
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	font-weight: 800;
	line-height: 1.13;
	letter-spacing: -.015em;
	margin: 0;
}
.tbw-wireitem__title a { color: var(--tbw-primary); }
.tbw-wireitem__title a:hover { color: var(--tbw-accent); text-decoration: none; }

.tbw-wireitem__dek { margin: 0; color: var(--tbw-text); font-size: 1rem; line-height: 1.6; }

.tbw-wireitem__thumb {
	grid-column: 2;
	width: 100%;
	max-width: 200px;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--tbw-surface-alt);
	border: 1px solid var(--tbw-border);
	order: -1;
}
.tbw-wireitem__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); transition: filter .3s ease; }
.tbw-wireitem:hover .tbw-wireitem__thumb img { filter: grayscale(0); }

@media (min-width: 781px) {
	.tbw-wireitem { grid-template-columns: 92px minmax(0, 1fr) auto; align-items: start; }
	.tbw-wireitem__thumb { grid-column: 3; grid-row: 1; order: 0; width: 200px; }
}
@media (max-width: 780px) {
	.tbw-wireitem { grid-template-columns: 1fr; gap: 10px; }
	.tbw-wireitem__rail { flex-direction: row; align-items: baseline; gap: 12px; }
	.tbw-wireitem__thumb { grid-column: 1; max-width: none; }
}

/* Compact variant used inside channel sections */
.tbw-wirelist--compact .tbw-wireitem { padding: 18px 0; }
.tbw-wirelist--compact .tbw-wireitem__title { font-size: 1.14rem; }
.tbw-wirelist--compact .tbw-wireitem__dek { font-size: .94rem; }

/* ==========================================================================
   9. Wire priority board
   ========================================================================== */

.tbw-board {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border: 1px solid var(--tbw-border);
	background: var(--tbw-surface);
}
@media (max-width: 900px) { .tbw-board { grid-template-columns: 1fr; } }

.tbw-board__col { border-left: 1px solid var(--tbw-border); padding: 0 0 18px; }
.tbw-board__col:first-child { border-left: 0; }
@media (max-width: 900px) {
	.tbw-board__col { border-left: 0; border-top: 1px solid var(--tbw-border); }
	.tbw-board__col:first-child { border-top: 0; }
}

.tbw-board__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 18px;
	font-family: var(--tbw-font-mono);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tbw-on-accent);
	background: var(--tbw-muted);
}
.tbw-board__col--urgent .tbw-board__head     { background: var(--tbw-accent); }
.tbw-board__col--standard .tbw-board__head   { background: var(--tbw-secondary); }
.tbw-board__col--background .tbw-board__head { background: var(--tbw-primary); color: var(--tbw-bg); }
[data-theme="dark"] .tbw-board__head { color: #0d0d0d; }
[data-theme="dark"] .tbw-board__col--background .tbw-board__head { color: #0d0d0d; }

.tbw-board__count { font-weight: 500; opacity: .85; }

.tbw-board__list { list-style: none; margin: 0; padding: 4px 18px 0; }

.tbw-board__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 2px 10px;
	padding: 13px 0;
	border-bottom: 1px dashed var(--tbw-border);
}
.tbw-board__item:last-child { border-bottom: 0; }

.tbw-board__code {
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	font-weight: 600;
	color: var(--tbw-muted);
	padding-top: 3px;
}
.tbw-board__title {
	font-family: var(--tbw-font-head);
	font-weight: 700;
	font-size: .99rem;
	line-height: 1.25;
	color: var(--tbw-primary);
}
.tbw-board__title:hover { color: var(--tbw-accent); text-decoration: none; }
.tbw-board__time {
	grid-column: 2;
	font-family: var(--tbw-font-mono);
	font-size: .64rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tbw-muted);
}
.tbw-board__empty {
	padding: 20px 18px;
	font-family: var(--tbw-font-mono);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tbw-muted);
}

/* ==========================================================================
   10. Broadcast channels
   ========================================================================== */

.tbw-chanrack {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0;
	border: 1px solid var(--tbw-border);
	background: var(--tbw-surface);
	margin-bottom: 40px;
}

.tbw-chan {
	display: block;
	padding: 18px 20px;
	border-left: 1px solid var(--tbw-border);
	color: var(--tbw-primary);
	transition: background .15s ease;
}
.tbw-chan:first-child { border-left: 0; }
.tbw-chan:hover { background: var(--tbw-surface-alt); text-decoration: none; }
.tbw-chan__name {
	display: block;
	font-family: var(--tbw-font-head);
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: -.01em;
}
.tbw-chan__meta {
	display: block;
	margin-top: 6px;
	font-family: var(--tbw-font-mono);
	font-size: .64rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tbw-muted);
}
.tbw-chan__meta::before {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-right: 7px;
	background: var(--tbw-accent);
	vertical-align: middle;
}

.tbw-channel { margin-bottom: 38px; }
.tbw-channel__head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px 14px;
	padding-bottom: 8px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--tbw-primary);
}
.tbw-channel__name {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 900;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.tbw-channel__count {
	font-family: var(--tbw-font-mono);
	font-size: .64rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tbw-muted);
}
.tbw-channel__more {
	margin-left: auto;
	font-family: var(--tbw-font-ui);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tbw-accent);
}

/* ==========================================================================
   11. Editor's curated feed
   ========================================================================== */

.tbw-desk {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 44px;
	align-items: start;
}
@media (max-width: 900px) { .tbw-desk { grid-template-columns: 1fr; gap: 28px; } }

.tbw-desk__note {
	border-left: 4px solid var(--tbw-accent);
	padding-left: 20px;
}
.tbw-desk__eyebrow {
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tbw-accent);
	margin: 0 0 12px;
}
.tbw-desk__quote {
	font-family: var(--tbw-font-head);
	font-size: 1.28rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.015em;
	color: var(--tbw-primary);
	margin: 0 0 16px;
}
.tbw-desk__sign {
	font-family: var(--tbw-font-mono);
	font-size: .68rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tbw-muted);
	margin: 0;
}
.tbw-desk__sign strong { color: var(--tbw-text); font-weight: 600; }

.tbw-desk__list { display: flex; flex-direction: column; }
.tbw-desk__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 6px 18px;
	padding: 16px 0;
	border-top: 1px solid var(--tbw-border);
}
.tbw-desk__item:first-child { padding-top: 0; border-top: 0; }
.tbw-desk__num {
	font-family: var(--tbw-font-mono);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--tbw-accent);
	line-height: 1.3;
}
.tbw-desk__title { font-size: 1.16rem; margin: 0 0 6px; line-height: 1.2; font-weight: 800; }
.tbw-desk__title a { color: var(--tbw-primary); }
.tbw-desk__title a:hover { color: var(--tbw-accent); text-decoration: none; }

/* ==========================================================================
   12. Buttons & newsletter
   ========================================================================== */

.tbw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border: 1px solid var(--tbw-accent);
	border-radius: var(--tbw-radius);
	background: var(--tbw-accent);
	color: var(--tbw-on-accent);
	font-family: var(--tbw-font-ui);
	font-weight: 700;
	font-size: .76rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.tbw-btn:hover { background: transparent; color: var(--tbw-accent); text-decoration: none; }

.tbw-btn--ghost {
	background: transparent;
	border-color: var(--tbw-primary);
	color: var(--tbw-primary);
}
.tbw-btn--ghost:hover { background: var(--tbw-primary); color: var(--tbw-bg); }

.tbw-textlink {
	font-family: var(--tbw-font-ui);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tbw-accent);
	border-bottom: 2px solid transparent;
	transition: border-color .15s;
}
.tbw-textlink:hover { text-decoration: none; border-color: var(--tbw-accent); }
.tbw-textlink::after { content: " \2192"; }

.tbw-newsletter {
	margin: 8px 0 0;
	padding: 44px 40px;
	background: var(--tbw-primary);
	color: var(--tbw-bg);
	border-left: 6px solid var(--tbw-accent);
}
[data-theme="dark"] .tbw-newsletter { background: #0d0d0d; color: var(--tbw-text); }

.tbw-newsletter__eyebrow {
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--tbw-accent);
	margin: 0 0 12px;
}
.tbw-newsletter h2 {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -.02em;
}
[data-theme="dark"] .tbw-newsletter h2 { color: var(--tbw-primary); }
.tbw-newsletter p { margin: 0 0 24px; max-width: 56ch; color: rgba(255, 255, 255, .78); }
[data-theme="dark"] .tbw-newsletter p { color: var(--tbw-muted); }

.tbw-newsletter__form {
	display: flex;
	gap: 10px;
	max-width: 520px;
	flex-wrap: wrap;
}
.tbw-newsletter input[type="email"] {
	flex: 1;
	min-width: 230px;
	padding: 13px 16px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: var(--tbw-radius);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-family: var(--tbw-font-mono);
	font-size: .9rem;
}
.tbw-newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, .45); }
.tbw-newsletter input[type="email"]:focus { outline: none; border-color: var(--tbw-accent); }

/* ==========================================================================
   13. Cards & grids
   ========================================================================== */

.tbw-card {
	display: flex;
	flex-direction: column;
	background: var(--tbw-surface);
	border: 1px solid var(--tbw-border);
	border-top: 3px solid var(--tbw-primary);
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tbw-card:hover { border-top-color: var(--tbw-accent); box-shadow: var(--tbw-shadow); transform: translateY(-2px); }

.tbw-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tbw-surface-alt);
}
.tbw-card__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: grayscale(.35);
	transition: filter .35s ease, transform .4s ease;
}
.tbw-card:hover .tbw-card__thumb img { filter: grayscale(0); transform: scale(1.03); }

.tbw-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; flex: 1; }
.tbw-card__title { font-size: 1.18rem; line-height: 1.2; margin: 0; font-weight: 800; }
.tbw-card__title a { color: var(--tbw-primary); }
.tbw-card__title a:hover { color: var(--tbw-accent); text-decoration: none; }
.tbw-card__excerpt { color: var(--tbw-muted); font-size: .95rem; margin: 0; }
.tbw-card .tbw-byline { margin-top: auto; padding-top: 6px; }

.tbw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

/* ==========================================================================
   14. Single transmission
   ========================================================================== */

.tbw-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	background: var(--tbw-accent);
	z-index: 200;
	transition: width .1s linear;
}

.tbw-breadcrumb {
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tbw-muted);
	padding: 22px 0 0;
}
.tbw-breadcrumb a { color: var(--tbw-muted); }
.tbw-breadcrumb a:hover { color: var(--tbw-accent); }
.tbw-breadcrumb span { margin: 0 8px; color: var(--tbw-rule); }

.tbw-posthead {
	max-width: 820px;
	padding: 26px 0 0;
}
.tbw-posthead__slug {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--tbw-primary);
	margin-bottom: 20px;
}
.tbw-posthead h1 {
	font-size: clamp(2rem, 4.8vw, 3.15rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -.03em;
	margin: 0 0 18px;
}
.tbw-lede {
	font-family: var(--tbw-font-body);
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--tbw-primary);
	margin: 0 0 20px;
	max-width: 54ch;
}
.tbw-stamprow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--tbw-border);
	font-family: var(--tbw-font-mono);
	font-size: .68rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tbw-muted);
}
.tbw-updated { color: var(--tbw-accent); font-weight: 600; }
.tbw-updated::before {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: currentColor;
	margin-right: 7px;
	vertical-align: middle;
}

.tbw-leadfigure { margin: 34px 0 0; }
.tbw-leadfigure img { width: 100%; border: 1px solid var(--tbw-border); }
.tbw-leadfigure figcaption {
	font-family: var(--tbw-font-mono);
	font-size: .68rem;
	letter-spacing: .06em;
	color: var(--tbw-muted);
	margin-top: 10px;
	padding-left: 12px;
	border-left: 3px solid var(--tbw-accent);
}

.tbw-article { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .tbw-article { grid-template-columns: minmax(0, 1fr); } }

.tbw-share {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: start;
}
@media (max-width: 860px) { .tbw-share { position: static; flex-direction: row; margin-bottom: 18px; } }
.tbw-share .tbw-iconbtn { font-family: var(--tbw-font-mono); font-weight: 600; font-size: .74rem; }

/* The strict wire column */
.tbw-entry {
	max-width: var(--tbw-content);
	font-size: 1.09rem;
	line-height: 1.78;
}
.tbw-entry > * + * { margin-top: 1.45em; }
.tbw-entry h2 {
	margin-top: 1.9em;
	font-size: 1.6rem;
	text-transform: uppercase;
	letter-spacing: -.01em;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--tbw-border);
}
.tbw-entry h3 { margin-top: 1.6em; font-size: 1.24rem; }
.tbw-entry figcaption {
	font-family: var(--tbw-font-mono);
	font-size: .68rem;
	color: var(--tbw-muted);
	margin-top: 9px;
	padding-left: 12px;
	border-left: 3px solid var(--tbw-accent);
}

/* Lede paragraph gets wire emphasis, not a decorative drop cap. */
.tbw-entry > p:first-of-type { font-size: 1.16rem; }
.tbw-entry > p:first-of-type::first-line { font-weight: 600; }

.tbw-entry blockquote,
.tbw-entry .wp-block-quote {
	margin: 1.7em 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--tbw-accent);
	font-family: var(--tbw-font-head);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.015em;
	color: var(--tbw-primary);
}
.tbw-entry .wp-block-pullquote {
	border-left: 4px solid var(--tbw-accent);
	border-top: 0; border-bottom: 0;
	padding: 4px 0 4px 24px;
	text-align: left;
}

.tbw-entry pre {
	background: var(--tbw-primary);
	color: #f5f5f4;
	padding: 18px;
	border-radius: var(--tbw-radius);
	overflow-x: auto;
	font-size: .86rem;
	font-family: var(--tbw-font-mono);
}
.tbw-entry code { font-family: var(--tbw-font-mono); font-size: .88em; }
.tbw-entry :not(pre) > code {
	background: var(--tbw-surface-alt);
	border: 1px solid var(--tbw-border);
	padding: 1px 5px;
}

.tbw-entry table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbw-entry th, .tbw-entry td { border: 1px solid var(--tbw-border); padding: 10px 13px; text-align: left; }
.tbw-entry th { font-family: var(--tbw-font-ui); background: var(--tbw-surface-alt); text-transform: uppercase; font-size: .76rem; letter-spacing: .08em; }

.tbw-authorcard {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: var(--tbw-surface);
	border: 1px solid var(--tbw-border);
	border-left: 4px solid var(--tbw-secondary);
	padding: 22px 24px;
	margin: 44px 0 0;
	max-width: var(--tbw-content);
}
.tbw-authorcard img { width: 68px; height: 68px; flex: 0 0 auto; filter: grayscale(1) contrast(1.15); }
.tbw-authorcard__eyebrow {
	font-family: var(--tbw-font-mono);
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tbw-secondary);
	margin: 0 0 6px;
}
.tbw-authorcard h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tbw-authorcard p { margin: 0; color: var(--tbw-muted); font-size: .95rem; }

.tbw-toc ol { margin: 0; padding-left: 20px; font-size: .88rem; font-family: var(--tbw-font-ui); }
.tbw-toc li { margin-bottom: 8px; }
.tbw-toc a { color: var(--tbw-text); }
.tbw-toc a:hover { color: var(--tbw-accent); }

.tbw-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 32px 0 0; max-width: var(--tbw-content); }
.tbw-tag {
	font-family: var(--tbw-font-mono);
	font-size: .7rem;
	letter-spacing: .05em;
	padding: 4px 11px;
	border: 1px solid var(--tbw-border);
	color: var(--tbw-muted);
}
.tbw-tag:hover { border-color: var(--tbw-accent); color: var(--tbw-accent); text-decoration: none; }

.tbw-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 22px 0 0;
	max-width: var(--tbw-content);
}
@media (max-width: 600px) { .tbw-postnav { grid-template-columns: 1fr; } }
.tbw-postnav a {
	display: block;
	padding: 18px 20px;
	border: 1px solid var(--tbw-border);
	background: var(--tbw-surface);
	color: var(--tbw-primary);
	font-family: var(--tbw-font-head);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	transition: border-color .15s;
}
.tbw-postnav a:hover { border-color: var(--tbw-accent); text-decoration: none; }
.tbw-postnav span {
	display: block;
	font-family: var(--tbw-font-mono);
	font-size: .62rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tbw-accent);
	margin-bottom: 8px;
	font-weight: 600;
}
.tbw-postnav .is-next { text-align: right; }

/* ==========================================================================
   15. Page heads, filters, wire room, author
   ========================================================================== */

.tbw-pagehead {
	border-bottom: 3px solid var(--tbw-primary);
	padding: 48px 0 22px;
}
.tbw-pagehead h1 {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -.03em;
	margin: 10px 0 12px;
}
.tbw-pagehead > p { margin: 0; color: var(--tbw-muted); font-size: 1.05rem; max-width: 62ch; }

.tbw-filterbar {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin: 22px 0 0;
	font-family: var(--tbw-font-mono);
}
.tbw-filter {
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tbw-muted);
	padding: 7px 13px;
	border: 1px solid var(--tbw-border);
}
.tbw-filter:hover { color: var(--tbw-accent); border-color: var(--tbw-accent); text-decoration: none; }
.tbw-filter.is-active {
	color: var(--tbw-on-accent);
	background: var(--tbw-primary);
	border-color: var(--tbw-primary);
}
[data-theme="dark"] .tbw-filter.is-active { color: #0d0d0d; }

/* The Wire Room (about pages) */
.tbw-wireroom__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 44px;
	align-items: start;
	padding: 32px 0 0;
}
@media (max-width: 900px) { .tbw-wireroom__intro { grid-template-columns: 1fr; gap: 28px; } }

.tbw-specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tbw-border); }
.tbw-specs li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px solid var(--tbw-border);
	font-family: var(--tbw-font-mono);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.tbw-specs span:first-child { color: var(--tbw-muted); }
.tbw-specs span:last-child { color: var(--tbw-primary); font-weight: 600; text-align: right; }

.tbw-deskteam {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}
.tbw-deskteam__member {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px;
	background: var(--tbw-surface);
	border: 1px solid var(--tbw-border);
	border-top: 3px solid var(--tbw-secondary);
}
.tbw-deskteam__member img { width: 52px; height: 52px; flex: 0 0 auto; filter: grayscale(1) contrast(1.15); }
.tbw-deskteam__name { display: block; font-family: var(--tbw-font-head); font-weight: 800; font-size: 1rem; color: var(--tbw-primary); }
.tbw-deskteam__name:hover { color: var(--tbw-accent); text-decoration: none; }
.tbw-deskteam__role {
	display: block;
	margin-top: 4px;
	font-family: var(--tbw-font-mono);
	font-size: .62rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tbw-muted);
}

/* Correspondent header */
.tbw-correspondent {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 26px;
	align-items: start;
}
@media (max-width: 640px) { .tbw-correspondent { grid-template-columns: 1fr; } }
.tbw-correspondent img { width: 104px; height: 104px; border: 1px solid var(--tbw-border); filter: grayscale(1) contrast(1.15); }
.tbw-correspondent h1 { margin: 6px 0 10px; }
.tbw-beats { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.tbw-beat {
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 5px 11px;
	border: 1px solid var(--tbw-secondary);
	color: var(--tbw-secondary);
}
.tbw-beat:hover { background: var(--tbw-secondary); color: #fff; text-decoration: none; }

.tbw-social { display: flex; gap: 8px; }
.tbw-social a {
	width: 38px; height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--tbw-border);
	color: var(--tbw-primary);
	font-family: var(--tbw-font-mono);
	font-size: .74rem;
	font-weight: 600;
}
.tbw-social a:hover { background: var(--tbw-accent); color: #fff; border-color: var(--tbw-accent); text-decoration: none; }

/* ==========================================================================
   16. 404 — signal lost
   ========================================================================== */

.tbw-404 { padding: 56px 0 88px; }

.tbw-static {
	position: relative;
	overflow: hidden;
	background: #0d0d0d;
	border: 1px solid var(--tbw-primary);
	padding: 74px 32px;
	text-align: center;
	isolation: isolate;
}
.tbw-static::before {
	content: "";
	position: absolute;
	inset: -60%;
	z-index: -1;
	background:
		repeating-linear-gradient(0deg, rgba(220, 38, 38, .38) 0 1px, transparent 1px 3px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 2px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px);
	opacity: .8;
	animation: tbw-snow .32s steps(3, end) infinite;
}
.tbw-static::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: 90px;
	z-index: -1;
	background: linear-gradient(180deg, transparent, rgba(220, 38, 38, .22), transparent);
	animation: tbw-sweep 4.5s linear infinite;
}

@keyframes tbw-snow {
	0%   { transform: translate3d(0, 0, 0); }
	33%  { transform: translate3d(-1.5%, 1.2%, 0); }
	66%  { transform: translate3d(1.2%, -1%, 0); }
	100% { transform: translate3d(0, 0, 0); }
}
@keyframes tbw-sweep {
	from { top: -90px; }
	to   { top: 100%; }
}

.tbw-404__code {
	font-family: var(--tbw-font-mono);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: #fca5a5;
	margin: 0 0 18px;
}
.tbw-404__title {
	font-family: var(--tbw-font-head);
	font-size: clamp(1.9rem, 6vw, 3.6rem);
	font-weight: 900;
	letter-spacing: -.02em;
	text-transform: uppercase;
	line-height: 1;
	color: #fff;
	margin: 0;
	text-shadow: 2px 0 0 rgba(220, 38, 38, .85), -2px 0 0 rgba(59, 130, 246, .6);
}
.tbw-404__sub {
	font-family: var(--tbw-font-mono);
	font-size: .72rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .68);
	margin: 18px 0 0;
}
.tbw-404__body { max-width: 60ch; margin: 34px 0 0; color: var(--tbw-muted); }
.tbw-404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ==========================================================================
   17. Sidebar & widgets
   ========================================================================== */

.tbw-sidebar { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 100px; }
@media (max-width: 1000px) { .tbw-sidebar { position: static; } }

.tbw-widget {
	background: var(--tbw-surface);
	border: 1px solid var(--tbw-border);
	border-top: 3px solid var(--tbw-primary);
	padding: 20px 22px 22px;
}

.tbw-widget__title,
.tbw-widget .widget-title,
.tbw-widget > h2,
.tbw-widget > h3,
.tbw-widget .wp-block-heading {
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tbw-accent);
	margin: 0 0 14px;
	font-weight: 600;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tbw-border);
	line-height: 1.3;
}
.tbw-widget .wp-block-search__label {
	display: block;
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tbw-accent);
	font-weight: 600;
	margin-bottom: 10px;
}

.tbw-widget ul { list-style: none; margin: 0; padding: 0; }
.tbw-widget li + li { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--tbw-border); }
.tbw-widget a { color: var(--tbw-text); font-size: .97rem; }
.tbw-widget a:hover { color: var(--tbw-accent); text-decoration: none; }
.tbw-widget select,
.tbw-widget input[type="text"],
.tbw-widget input[type="search"] { width: 100%; }

.tbw-widget .tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tbw-widget .tagcloud a {
	font-family: var(--tbw-font-mono);
	font-size: .7rem !important;
	padding: 4px 11px;
	border: 1px solid var(--tbw-border);
	color: var(--tbw-muted);
}
.tbw-widget .tagcloud a:hover { border-color: var(--tbw-accent); color: var(--tbw-accent); }

/* Ranked list used by the sidebar "most discussed" fallback */
.tbw-ranked { counter-reset: tbw-rank; }
.tbw-ranked li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.tbw-ranked li::before {
	counter-increment: tbw-rank;
	content: counter(tbw-rank, decimal-leading-zero);
	font-family: var(--tbw-font-mono);
	font-size: .74rem;
	font-weight: 600;
	color: var(--tbw-accent);
}

/* ==========================================================================
   18. Search form — command line
   ========================================================================== */

.tbw-searchform {
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid var(--tbw-primary);
	background: var(--tbw-surface);
}
.tbw-searchform__prompt {
	display: inline-flex;
	align-items: center;
	padding: 0 10px 0 12px;
	font-family: var(--tbw-font-mono);
	font-size: .95rem;
	font-weight: 600;
	color: var(--tbw-accent);
	background: var(--tbw-surface-alt);
	border-right: 1px solid var(--tbw-border);
}
/* The sidebar dispatch signup reuses this console shell with an email field. */
.tbw-searchform input[type="search"],
.tbw-searchform input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 12px 12px;
	border: 0;
	background: transparent;
	color: var(--tbw-text);
	font-family: var(--tbw-font-mono);
	font-size: .88rem;
	letter-spacing: .02em;
}
.tbw-searchform input::placeholder { color: var(--tbw-muted); }
.tbw-searchform input:focus { outline: none; }
.tbw-searchform:focus-within { outline: 2px solid var(--tbw-accent); outline-offset: 1px; }
.tbw-searchform .tbw-btn { border-radius: 0; border-width: 0 0 0 1px; }

/* ==========================================================================
   19. Comments
   ========================================================================== */

.tbw-comments { max-width: var(--tbw-content); margin: 52px 0 0; }
.tbw-comments ol { list-style: none; margin: 0; padding: 0; }
.tbw-comments .children { list-style: none; padding-left: 24px; margin-top: 18px; }
.tbw-comments .comment-body {
	background: var(--tbw-surface);
	border: 1px solid var(--tbw-border);
	border-left: 3px solid var(--tbw-border);
	padding: 20px 22px;
	margin-bottom: 18px;
}
.tbw-comments .comment-author { display: flex; align-items: center; gap: 12px; }
.tbw-comments .comment-author img { width: 40px; height: 40px; filter: grayscale(1) contrast(1.15); }
.tbw-comments .comment-author .fn { font-family: var(--tbw-font-head); font-weight: 800; font-style: normal; }
.tbw-comments .comment-metadata {
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tbw-muted);
	margin-top: 6px;
}
.tbw-comments .comment-metadata a { color: var(--tbw-muted); }
.tbw-comments .reply {
	font-family: var(--tbw-font-ui);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-top: 10px;
}

.comment-form label {
	display: block;
	font-family: var(--tbw-font-mono);
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--tbw-muted);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--tbw-border);
	border-radius: var(--tbw-radius);
	background: var(--tbw-surface);
	color: var(--tbw-text);
	font-family: var(--tbw-font-body);
	font-size: 1rem;
}
.comment-form textarea { min-height: 156px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--tbw-accent); }
.comment-form input[type="submit"] {
	background: var(--tbw-accent);
	color: var(--tbw-on-accent);
	border: 1px solid var(--tbw-accent);
	padding: 13px 28px;
	border-radius: var(--tbw-radius);
	font-family: var(--tbw-font-ui);
	font-weight: 700;
	font-size: .76rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	width: auto;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.comment-form input[type="submit"]:hover { background: transparent; color: var(--tbw-accent); }

/* ==========================================================================
   20. Pagination
   ========================================================================== */

.tbw-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 48px 0 0;
	flex-wrap: wrap;
	font-family: var(--tbw-font-mono);
}
.tbw-pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--tbw-border);
	color: var(--tbw-text);
	font-size: .82rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.tbw-pagination .page-numbers:hover { border-color: var(--tbw-accent); color: var(--tbw-accent); text-decoration: none; }
.tbw-pagination .page-numbers.current {
	background: var(--tbw-primary);
	border-color: var(--tbw-primary);
	color: var(--tbw-bg);
}

/* ==========================================================================
   21. Footer — broadcast credentials
   ========================================================================== */

.tbw-footer {
	margin-top: 80px;
	background: var(--tbw-primary);
	color: rgba(255, 255, 255, .7);
	padding: 56px 0 0;
	border-top: 6px solid var(--tbw-accent);
}
[data-theme="dark"] .tbw-footer { background: #0d0d0d; }

.tbw-footer__cols {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 44px;
	padding-bottom: 42px;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}
@media (max-width: 900px) { .tbw-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tbw-footer__cols { grid-template-columns: 1fr; } }

.tbw-footer h2, .tbw-footer h3, .tbw-footer .tbw-widget__title {
	color: var(--tbw-accent);
	border-color: rgba(255, 255, 255, .16);
}
.tbw-footer .tbw-brand { color: #fff; }
.tbw-footer .tbw-brand__mark { color: var(--tbw-accent); }
.tbw-footer a { color: rgba(255, 255, 255, .72); }
.tbw-footer a:hover { color: #fff; }
.tbw-footer ul { list-style: none; margin: 0; padding: 0; }
.tbw-footer li + li { margin-top: 10px; border: 0; padding: 0; }
.tbw-footer .tbw-widget { background: transparent; border: 0; padding: 0; }
.tbw-footer__about { margin: 14px 0 18px; max-width: 44ch; color: rgba(255, 255, 255, .64); }

.tbw-creds { list-style: none; margin: 0 0 20px; padding: 0; }
.tbw-creds li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, .16);
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-top: 0;
}
.tbw-creds li + li { margin-top: 0; }
.tbw-creds span:first-child { color: rgba(255, 255, 255, .5); }
.tbw-creds span:last-child { color: #fff; font-weight: 600; text-align: right; }

.tbw-footer__standards {
	font-family: var(--tbw-font-body);
	font-size: .92rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .64);
	margin: 0 0 14px;
	padding-left: 14px;
	border-left: 3px solid var(--tbw-accent);
}

.tbw-footer__social { display: flex; gap: 8px; }
.tbw-footer__social a {
	width: 38px; height: 38px;
	border: 1px solid rgba(255, 255, 255, .24);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--tbw-font-mono);
	font-size: .74rem;
	font-weight: 600;
}
.tbw-footer__social a:hover { background: var(--tbw-accent); border-color: var(--tbw-accent); }

.tbw-footer__bottom {
	padding: 20px 0;
	font-family: var(--tbw-font-mono);
	font-size: .66rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	display: flex;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
.tbw-footer__bottom ul { display: flex; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   22. WordPress core classes
   ========================================================================== */

.alignleft  { float: left;  margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { max-width: 1040px; margin-inline: auto; }
.alignfull  { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--tbw-font-mono); font-size: .7rem; color: var(--tbw-muted); }
.sticky .tbw-card { border-top-color: var(--tbw-accent); }
.bypostauthor > .comment-body { border-left-color: var(--tbw-accent); }
.gallery-caption { font-size: .88rem; }

.tbw-entry .wp-block-image { margin-block: 2em; }
.tbw-entry .wp-block-button__link { background: var(--tbw-accent); border-radius: var(--tbw-radius); }

/* Admin bar offset for the sticky header */
.admin-bar .tbw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tbw-header { top: 46px; } }

/* ==========================================================================
   23. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	/* With the marquee stopped, drop the duplicate headline set and let the
	   strip scroll by hand instead. */
	.tbw-ticker__track { animation: none; transform: none; width: auto; }
	.tbw-ticker__set[aria-hidden="true"] { display: none; }
	.tbw-ticker__viewport { overflow-x: auto; }

	.tbw-static::before,
	.tbw-static::after { animation: none; }
	.tbw-static::after { top: 40%; }
}
