/*
Theme Name: The Backlash
Theme URI: https://www.thebacklash.net
Description: Rumble-first show / podcast theme for The Backlash. Dark political-media layout; episode archive and embed-forward singles.
Author: Dave Reilly Media
Version: 0.5.0
License: GPL-2.0-or-later
Text Domain: the-backlash
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ---------- Tokens (dark default) ---------- */
:root,
[data-theme="dark"] {
	color-scheme: dark;
	--tbl-bg: #0b0b0c;
	--tbl-bg-elevated: #141416;
	--tbl-paper: #1a1a1d;
	--tbl-ink: #f3f3f4;
	--tbl-ink-soft: #c8c8cc;
	--tbl-muted: #8b8b93;
	--tbl-faint: #5c5c66;
	--tbl-rule: #2a2a30;
	--tbl-rule-strong: #3a3a42;
	--tbl-accent: #e10600;
	--tbl-accent-hover: #ff2a22;
	--tbl-accent-soft: rgba(225, 6, 0, 0.12);
	--tbl-focus: #6ea8fe;
	--tbl-success: #3dd68c;
	--tbl-header-bg: rgba(11, 11, 12, 0.92);
	--tbl-shadow: rgba(0, 0, 0, 0.35);
	--tbl-media-bg: #000;

	--tbl-font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tbl-font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

	--tbl-measure: 42rem;
	--tbl-wide: 72rem;
	--tbl-radius: 6px;
	--tbl-header-h: 4rem;
}

/* Light mode tokens */
[data-theme="light"] {
	color-scheme: light;
	--tbl-bg: #f3f3f5;
	--tbl-bg-elevated: #ffffff;
	--tbl-paper: #ffffff;
	--tbl-ink: #121214;
	--tbl-ink-soft: #3a3a42;
	--tbl-muted: #5c5c66;
	--tbl-faint: #8b8b93;
	--tbl-rule: #e0e0e6;
	--tbl-rule-strong: #c4c4ce;
	--tbl-accent: #e10600;
	--tbl-accent-hover: #c10500;
	--tbl-accent-soft: rgba(225, 6, 0, 0.09);
	--tbl-focus: #2563eb;
	--tbl-success: #0f8a4b;
	--tbl-header-bg: rgba(243, 243, 245, 0.92);
	--tbl-shadow: rgba(0, 0, 0, 0.1);
	--tbl-media-bg: #111114;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--tbl-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--tbl-ink);
	background: var(--tbl-bg);
	-webkit-font-smoothing: antialiased;
}

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

iframe,
video,
embed,
object {
	max-width: 100%;
}

a {
	color: var(--tbl-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}
a:hover { color: var(--tbl-accent-hover); }
:focus-visible { outline: 2px solid var(--tbl-focus); outline-offset: 2px; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.tbl-wrap {
	width: min(100% - 2rem, var(--tbl-wide));
	margin-inline: auto;
}

.tbl-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.tbl-main {
	flex: 1;
}

/* ---------- Header ---------- */
.tbl-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--tbl-header-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--tbl-rule);
}

.tbl-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--tbl-header-h);
}

.tbl-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--tbl-ink);
}

.tbl-brand__logo {
	width: 2.25rem;
	height: 2.25rem;
	object-fit: contain;
}

.tbl-brand__name {
	font-family: var(--tbl-font-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	text-transform: lowercase;
}

.tbl-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1rem;
}

.tbl-nav a {
	color: var(--tbl-ink-soft);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
}

.tbl-nav a:hover,
.tbl-nav .current-menu-item > a,
.tbl-nav .current_page_item > a {
	color: var(--tbl-ink);
}

.tbl-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
}

.tbl-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* Theme toggle (light / dark) */
.tbl-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--tbl-rule-strong);
	background: transparent;
	color: var(--tbl-ink);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	flex: 0 0 auto;
}
.tbl-theme-toggle:hover {
	border-color: var(--tbl-ink-soft);
	background: var(--tbl-accent-soft);
}
.tbl-theme-toggle__icon {
	display: none;
	width: 1.15rem;
	height: 1.15rem;
}
/* In dark mode show sun (switch to light); in light mode show moon */
[data-theme="dark"] .tbl-theme-toggle__icon--sun,
:root:not([data-theme]) .tbl-theme-toggle__icon--sun {
	display: block;
}
[data-theme="light"] .tbl-theme-toggle__icon--moon {
	display: block;
}

.tbl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	font-family: var(--tbl-font-display);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tbl-btn--primary {
	background: var(--tbl-accent);
	color: #fff;
}
.tbl-btn--primary:hover {
	background: var(--tbl-accent-hover);
	color: #fff;
}

.tbl-btn--ghost {
	background: transparent;
	color: var(--tbl-ink);
	border-color: var(--tbl-rule-strong);
}
.tbl-btn--ghost:hover {
	border-color: var(--tbl-ink-soft);
	color: var(--tbl-ink);
}

/* Support link inside the mobile dropdown — hidden on desktop (which has its
   own Support button in the header CTA cluster). */
.tbl-nav__cta {
	display: none;
}

/* Hamburger toggle — hidden on desktop, shown on mobile (see media query) */
.tbl-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--tbl-rule-strong);
	background: transparent;
	color: var(--tbl-ink);
	cursor: pointer;
	flex: 0 0 auto;
	transition: border-color 0.15s, background 0.15s;
}
.tbl-menu-toggle:hover {
	border-color: var(--tbl-ink-soft);
	background: var(--tbl-accent-soft);
}
/* Three-bar icon drawn with a span + pseudo-elements; animates to an X */
.tbl-menu-toggle__bars,
.tbl-menu-toggle__bars::before,
.tbl-menu-toggle__bars::after {
	content: "";
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.tbl-menu-toggle__bars {
	position: relative;
}
.tbl-menu-toggle__bars::before { position: absolute; left: 0; top: -6px; }
.tbl-menu-toggle__bars::after  { position: absolute; left: 0; top: 6px; }
.tbl-menu-toggle[aria-expanded="true"] .tbl-menu-toggle__bars { background: transparent; }
.tbl-menu-toggle[aria-expanded="true"] .tbl-menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.tbl-menu-toggle[aria-expanded="true"] .tbl-menu-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
	.tbl-menu-toggle { display: inline-flex; }
	.tbl-nav {
		display: none;
		position: absolute;
		left: 0; right: 0;
		top: var(--tbl-header-h);
		background: var(--tbl-bg-elevated);
		border-bottom: 1px solid var(--tbl-rule);
		padding: 1rem;
		flex-direction: column;
		align-items: stretch;
	}
	.tbl-nav.is-open { display: flex; }
	.tbl-nav ul { flex-direction: column; }
	/* Right-side cluster: theme toggle + hamburger, hugging the right edge */
	.tbl-header__cta {
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}
	/* Primary CTA lives inside the dropdown on mobile, not the top bar */
	.tbl-header__cta .tbl-btn--primary {
		display: none;
	}
	.tbl-nav__cta {
		display: inline-flex;
		margin-top: 0.5rem;
	}
}

/* ---------- Hero / home ---------- */
.tbl-hero {
	padding: 2.5rem 0 1.5rem;
	border-bottom: 1px solid var(--tbl-rule);
	background:
		radial-gradient(ellipse 80% 60% at 50% -20%, var(--tbl-accent-soft), transparent 60%),
		var(--tbl-bg);
}

.tbl-hero__kicker {
	font-family: var(--tbl-font-display);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tbl-accent);
	margin: 0 0 0.75rem;
}

.tbl-hero__title {
	font-family: var(--tbl-font-display);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.75rem;
	max-width: 22ch;
}

.tbl-hero__deck {
	color: var(--tbl-ink-soft);
	max-width: 40rem;
	margin: 0 0 1.25rem;
}

.tbl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.tbl-latest {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 800px) {
	.tbl-latest { grid-template-columns: 1fr; }
}

.tbl-player {
	background: var(--tbl-media-bg);
	border-radius: var(--tbl-radius);
	overflow: hidden;
	border: 1px solid var(--tbl-rule);
	aspect-ratio: 16 / 9;
}

.tbl-player iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.tbl-player__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Cards / grids ---------- */
.tbl-section {
	padding: 2.5rem 0;
}

.tbl-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.tbl-section__title {
	font-family: var(--tbl-font-display);
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0;
}

.tbl-section__link {
	font-size: 0.9rem;
	color: var(--tbl-muted);
	text-decoration: none;
}
.tbl-section__link:hover { color: var(--tbl-ink); }

.tbl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1.25rem;
}

.tbl-card {
	background: var(--tbl-paper);
	border: 1px solid var(--tbl-rule);
	border-radius: var(--tbl-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s;
}
.tbl-card:hover { border-color: var(--tbl-rule-strong); }

.tbl-card__media {
	aspect-ratio: 16 / 9;
	background: var(--tbl-media-bg);
	overflow: hidden;
}
.tbl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tbl-card__body {
	padding: 1rem 1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.tbl-card__meta {
	font-size: 0.75rem;
	color: var(--tbl-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.tbl-card__title {
	font-family: var(--tbl-font-display);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}
.tbl-card__title a {
	color: var(--tbl-ink);
	text-decoration: none;
}
.tbl-card__title a:hover { color: var(--tbl-accent); }

.tbl-card__excerpt {
	color: var(--tbl-muted);
	font-size: 0.9rem;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Single episode ---------- */
.tbl-single-header {
	padding: 2rem 0 1rem;
	border-bottom: 1px solid var(--tbl-rule);
}

.tbl-single-header__meta {
	font-size: 0.8rem;
	color: var(--tbl-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.tbl-single-header__title {
	font-family: var(--tbl-font-display);
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1rem;
	max-width: 28ch;
}

.tbl-single-player {
	margin: 1.5rem 0;
	background: var(--tbl-media-bg);
	border-radius: var(--tbl-radius);
	overflow: hidden;
	border: 1px solid var(--tbl-rule);
	aspect-ratio: 16 / 9;
}
.tbl-single-player iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.tbl-content {
	max-width: var(--tbl-measure);
	padding: 2rem 0 3rem;
	color: var(--tbl-ink-soft);
}
.tbl-content > *:first-child { margin-top: 0; }
.tbl-content h2,
.tbl-content h3 {
	font-family: var(--tbl-font-display);
	color: var(--tbl-ink);
}
.tbl-content a { color: var(--tbl-accent); }

/* Hide heavy Squarespace chrome leftovers when present */
.tbl-content .page-section,
.tbl-content [data-section-theme],
.tbl-content .sqs-block-button-container,
.tbl-content .newsletter-form-wrapper {
	/* keep content readable; full cleaner later */
}

/* ---------- Support strip ---------- */
.tbl-support {
	background: var(--tbl-bg-elevated);
	border-block: 1px solid var(--tbl-rule);
	padding: 2rem 0;
	text-align: center;
}
.tbl-support__title {
	font-family: var(--tbl-font-display);
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}
.tbl-support__text {
	color: var(--tbl-muted);
	margin: 0 0 1rem;
}
.tbl-support__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

/* ---------- Footer ---------- */
.tbl-footer {
	border-top: 1px solid var(--tbl-rule);
	padding: 2rem 0;
	color: var(--tbl-muted);
	font-size: 0.875rem;
}
.tbl-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}
.tbl-footer a {
	color: var(--tbl-ink-soft);
	text-decoration: none;
}
.tbl-footer a:hover { color: var(--tbl-ink); }
.tbl-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

/* ---------- Archive / page chrome ---------- */
.tbl-page-title {
	font-family: var(--tbl-font-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 2rem 0 1.25rem;
}

.tbl-pagination {
	display: flex;
	gap: 1rem;
	padding: 1.5rem 0 2.5rem;
}
.tbl-pagination a {
	color: var(--tbl-ink-soft);
	text-decoration: none;
}
.tbl-pagination a:hover { color: var(--tbl-accent); }

/* WP embeds */
.wp-block-embed,
.tbl-content iframe {
	max-width: 100%;
}

/* ---------- Forms (contact + donate) ---------- */
.tbl-form-panel {
	max-width: 36rem;
	margin: 0 0 3rem;
	padding: 1.5rem;
	background: var(--tbl-paper);
	border: 1px solid var(--tbl-rule);
	border-radius: var(--tbl-radius);
}

.tbl-form-notice {
	padding: 0.85rem 1rem;
	border-radius: var(--tbl-radius);
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}
.tbl-form-notice--success {
	background: rgba(61, 214, 140, 0.12);
	border: 1px solid rgba(61, 214, 140, 0.35);
	color: #b8f0d4;
}
.tbl-form-notice--error {
	background: var(--tbl-accent-soft);
	border: 1px solid rgba(225, 6, 0, 0.35);
	color: #ffc9c6;
}
[data-theme="light"] .tbl-form-notice--success {
	background: rgba(15, 138, 75, 0.1);
	border-color: rgba(15, 138, 75, 0.35);
	color: #0b5c34;
}
[data-theme="light"] .tbl-form-notice--error {
	background: rgba(225, 6, 0, 0.08);
	border-color: rgba(225, 6, 0, 0.3);
	color: #9b0a05;
}

.tbl-form__row {
	margin: 0 0 1rem;
}
.tbl-form__row label,
.tbl-form__label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--tbl-ink-soft);
	margin-bottom: 0.35rem;
}
.tbl-form__row input[type="text"],
.tbl-form__row input[type="email"],
.tbl-form__row input[type="number"],
.tbl-form__row textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border-radius: var(--tbl-radius);
	border: 1px solid var(--tbl-rule-strong);
	background: var(--tbl-bg);
	color: var(--tbl-ink);
	font: inherit;
}
.tbl-form__row input:focus,
.tbl-form__row textarea:focus {
	outline: 2px solid var(--tbl-focus);
	outline-offset: 1px;
}
.tbl-form__actions {
	margin: 1.25rem 0 0.5rem;
}
.tbl-form__meta {
	font-size: 0.8rem;
	color: var(--tbl-muted);
	margin: 0.75rem 0 0;
}
.tbl-form__hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.tbl-donate-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}
.tbl-donate-amount {
	cursor: pointer;
}
.tbl-donate-amount input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.tbl-donate-amount span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4rem;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--tbl-rule-strong);
	font-family: var(--tbl-font-display);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--tbl-ink-soft);
	background: var(--tbl-bg);
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.tbl-donate-amount input:checked + span,
.tbl-donate-amount:hover span {
	border-color: var(--tbl-accent);
	color: var(--tbl-ink);
	background: var(--tbl-accent-soft);
}
.tbl-donate-amount input:focus-visible + span {
	outline: 2px solid var(--tbl-focus);
	outline-offset: 2px;
}
.tbl-donate-frequency {
	margin-bottom: 1rem;
}
.tbl-donate-custom[hidden] {
	display: none !important;
}
.tbl-donate-custom {
	margin-top: 0.25rem;
}

button.tbl-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ---------- Archive / search / infinite scroll ---------- */
.tbl-archive-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 0.5rem;
}
.tbl-archive-head .tbl-page-title {
	margin-bottom: 0;
}
.tbl-archive-head__meta {
	width: 100%;
	margin: 0 0 1rem;
	font-size: 0.9rem;
}
.tbl-archive-head__meta a {
	color: var(--tbl-muted);
	text-decoration: none;
}
.tbl-archive-head__meta a:hover {
	color: var(--tbl-ink);
}

.tbl-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	flex: 1 1 16rem;
	max-width: 28rem;
}
.tbl-search__input {
	flex: 1 1 10rem;
	min-width: 0;
	padding: 0.55rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--tbl-rule-strong);
	background: var(--tbl-paper);
	color: var(--tbl-ink);
	font: inherit;
	font-size: 0.9rem;
}
.tbl-search__input:focus {
	outline: 2px solid var(--tbl-focus);
	outline-offset: 1px;
}
.tbl-search__submit {
	flex: 0 0 auto;
}
.tbl-search--compact {
	max-width: none;
	flex-wrap: nowrap;
}
.tbl-search--compact .tbl-search__input {
	min-width: 8rem;
	width: 10rem;
}

/* Header search removed — search lives on Episodes only */

.tbl-infinite-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1.75rem 0 1rem;
	color: var(--tbl-muted);
	font-size: 0.9rem;
}
.tbl-infinite-sentinel {
	height: 1px;
	width: 100%;
	pointer-events: none;
}

/* Transcript hook (future): .tbl-transcript */

/* ---------- Show notes ---------- */
.tbl-show-notes {
	max-width: var(--tbl-measure);
	padding: 0 0 3rem;
}
.tbl-show-notes .tbl-section__title {
	margin-bottom: 0.85rem;
}
.tbl-show-notes__body {
	color: var(--tbl-ink-soft);
	font-size: 1.02rem;
	line-height: 1.7;
}
.tbl-show-notes__body p {
	margin: 0 0 1rem;
}
.tbl-show-notes__body a {
	color: var(--tbl-red, #c41e3a);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	word-break: break-word;
}
.tbl-show-notes__body a:hover {
	color: var(--tbl-ink);
}
.tbl-episode-sponsors {
	margin: 0 0 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tbl-border, rgba(255, 255, 255, 0.08));
}
.tbl-episode-sponsors .tbl-affiliates__header {
	margin-top: 0.5rem;
}


/* ---------- BTCPay widget ---------- */
.tbl-btcpay__intro {
	color: var(--tbl-ink-soft);
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
}
.tbl-btcpay__crowdfund {
	margin: 1rem 0 0;
	text-align: center;
}

.btcpay-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	width: 100%;
}
.btcpay-custom-container {
	text-align: center;
	width: 100%;
}
.btcpay-custom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin-bottom: 0.65rem;
}
.btcpay-form .plus-minus {
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
	background: var(--tbl-rule-strong);
	color: var(--tbl-ink);
	height: 2.25rem;
	width: 2.75rem;
	border: none;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.btcpay-form .plus-minus:hover {
	background: var(--tbl-muted);
	color: #fff;
}
.btcpay-input-price {
	-moz-appearance: textfield;
	appearance: textfield;
	border: 1px solid var(--tbl-rule-strong);
	box-shadow: none;
	text-align: center;
	font-size: 1.5rem;
	font-family: var(--tbl-font-display);
	font-weight: 700;
	width: 5.5rem;
	margin: 0;
	border-radius: var(--tbl-radius);
	line-height: 2.1;
	background: var(--tbl-bg);
	color: var(--tbl-ink);
}
.btcpay-input-price::-webkit-outer-spin-button,
.btcpay-input-price::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.btcpay-form select {
	appearance: none;
	color: var(--tbl-ink-soft);
	background: var(--tbl-bg);
	border: 1px solid var(--tbl-rule-strong);
	display: block;
	padding: 0.35rem 0.75rem;
	margin: 0 auto;
	font-size: 0.85rem;
	cursor: pointer;
	border-radius: var(--tbl-radius);
}
.btcpay-form select option {
	color: #000;
	background: #fff;
}
.btcpay-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 13rem;
	min-height: 3.5rem;
	padding: 0.35rem 1rem;
	border-radius: var(--tbl-radius);
	border: none;
	background: #0f3b21;
	color: #fff;
	cursor: pointer;
	font-family: var(--tbl-font-display);
	font-weight: 600;
}
.btcpay-submit:hover {
	background: #14532d;
}
.btcpay-submit img {
	height: 2.25rem;
	width: auto;
	display: inline-block;
	vertical-align: middle;
}

.tbl-form-panel--wide {
	max-width: min(100%, 48rem);
}

.tbl-crypto-addresses__intro {
	color: var(--tbl-muted);
	font-size: 0.9rem;
	margin: 0 0 1.15rem;
}

.tbl-crypto-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
	gap: 0.85rem;
}

.tbl-crypto-address {
	padding: 0.9rem 1rem;
	background: var(--tbl-bg);
	border: 1px solid var(--tbl-rule);
	border-radius: var(--tbl-radius);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.tbl-crypto-address__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}
.tbl-crypto-address__badge {
	font-family: var(--tbl-font-display);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--tbl-ink);
}
.tbl-crypto-address__network {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tbl-muted);
}
.tbl-crypto-address__value {
	display: block;
	padding: 0.65rem 0.7rem;
	background: var(--tbl-paper);
	border: 1px solid var(--tbl-rule-strong);
	border-radius: var(--tbl-radius);
	font-size: 0.72rem;
	line-height: 1.45;
	word-break: break-all;
	color: var(--tbl-ink-soft);
	cursor: pointer;
}
.tbl-crypto-address__value:hover {
	border-color: var(--tbl-accent);
	color: var(--tbl-ink);
}
.tbl-crypto-address .tbl-form__meta {
	margin: 0;
	font-size: 0.75rem;
}

/* ---------- Guests page ---------- */
.tbl-guests-intro {
	color: var(--tbl-ink-soft);
	max-width: 40rem;
	margin: 0 0 1.75rem;
}
.tbl-guests-section {
	margin: 0 0 2.5rem;
}
.tbl-guests-section .tbl-section__title {
	margin-bottom: 1rem;
}
.tbl-guest-cloud {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}
.tbl-guest-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--tbl-rule-strong);
	background: var(--tbl-paper);
	color: var(--tbl-ink);
	text-decoration: none;
	font-size: 0.9rem;
	transition: border-color 0.15s, background 0.15s;
}
.tbl-guest-chip:hover {
	border-color: var(--tbl-accent);
	background: var(--tbl-accent-soft);
	color: var(--tbl-ink);
}
.tbl-guest-chip__name {
	font-weight: 600;
	font-family: var(--tbl-font-display);
}
.tbl-guest-chip__count {
	font-size: 0.72rem;
	color: var(--tbl-muted);
	font-weight: 500;
}
.tbl-archive-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.85rem;
}
.tbl-archive-kicker a {
	color: var(--tbl-muted);
	text-decoration: none;
}
.tbl-archive-kicker a:hover {
	color: var(--tbl-ink);
}

/* ---------- Affiliates (centered, 3 columns) ---------- */
.tbl-wrap--affiliates {
	max-width: min(100% - 2rem, 56rem);
	margin-inline: auto;
	padding-bottom: 3rem;
}
.tbl-affiliates {
	text-align: center;
}
.tbl-affiliates__header {
	max-width: 36rem;
	margin: 2rem auto 2rem;
}
.tbl-affiliates__lead {
	font-family: var(--tbl-font-display);
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--tbl-ink);
	margin: 0 0 0.65rem;
}
.tbl-affiliates__sub {
	margin: 0;
	color: var(--tbl-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}
.tbl-affiliates__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem 1rem;
	align-items: stretch;
}
@media (max-width: 800px) {
	.tbl-affiliates__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 480px) {
	.tbl-affiliates__grid {
		grid-template-columns: 1fr;
	}
}
.tbl-affiliates__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.55rem;
	height: 100%;
	padding: 1.1rem 0.85rem 1.15rem;
	background: var(--tbl-paper);
	border: 1px solid var(--tbl-rule);
	border-radius: var(--tbl-radius);
	text-decoration: none;
	color: var(--tbl-ink);
	transition: border-color 0.15s, transform 0.15s;
}
.tbl-affiliates__card:hover {
	border-color: var(--tbl-accent);
	color: var(--tbl-ink);
	transform: translateY(-2px);
}
.tbl-affiliates__logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 7.5rem;
	background: #0a0a0a;
	border-radius: 4px;
	overflow: hidden;
	padding: 0.5rem;
}
/* Dark-line logos that need a white window on the dark site */
.tbl-affiliates__logo-wrap--light {
	background: #ffffff;
}
.tbl-affiliates__logo {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.tbl-affiliates__name {
	font-family: var(--tbl-font-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.25;
}
.tbl-affiliates__blurb {
	font-size: 0.78rem;
	color: var(--tbl-muted);
	line-height: 1.4;
	max-width: 16rem;
}

/* ---------- Support page ---------- */
.tbl-wrap--support {
	max-width: min(100% - 2rem, 48rem);
	margin-inline: auto;
	padding-bottom: 2rem;
}
.tbl-support-page__header {
	margin: 1.5rem 0 1.75rem;
}
.tbl-support-page__header .tbl-page-title {
	margin-bottom: 0.65rem;
}
.tbl-support-section {
	margin: 0 0 2rem;
}
.tbl-support-section .tbl-form-panel {
	margin: 0;
}
.tbl-support-links {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 0.65rem;
}
.tbl-support-link {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.85rem 1rem;
	background: var(--tbl-paper);
	border: 1px solid var(--tbl-rule);
	border-radius: var(--tbl-radius);
	text-decoration: none;
	color: var(--tbl-ink);
	transition: border-color 0.15s;
}
.tbl-support-link:hover {
	border-color: var(--tbl-accent);
	color: var(--tbl-ink);
}
.tbl-support-link__label {
	font-family: var(--tbl-font-display);
	font-weight: 700;
	font-size: 0.95rem;
}
.tbl-support-link__note {
	font-size: 0.78rem;
	color: var(--tbl-muted);
	line-height: 1.35;
}

/* Watch & subscribe — platform cards with icons */
.tbl-platform-grid {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
	gap: 0.85rem;
}
.tbl-platform-card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1rem 1rem 0.95rem;
	background: var(--tbl-paper);
	border: 1px solid var(--tbl-rule);
	border-radius: 10px;
	text-decoration: none;
	color: var(--tbl-ink);
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
	min-height: 4.75rem;
}
.tbl-platform-card:hover {
	border-color: var(--tbl-platform, var(--tbl-accent));
	color: var(--tbl-ink);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px var(--tbl-shadow);
}
.tbl-platform-card__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 12px;
	background: var(--tbl-platform-soft, rgba(255, 255, 255, 0.08));
	color: var(--tbl-platform, #fff);
}
.tbl-platform-icon {
	display: block;
}
.tbl-platform-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	text-align: left;
}
.tbl-platform-card__label {
	font-family: var(--tbl-font-display);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
}
.tbl-platform-card__note {
	font-size: 0.78rem;
	color: var(--tbl-muted);
	line-height: 1.35;
}
.tbl-platform-card__go {
	flex: 0 0 auto;
	color: var(--tbl-faint);
	font-size: 1.1rem;
	transition: color 0.15s, transform 0.15s;
}
.tbl-platform-card:hover .tbl-platform-card__go {
	color: var(--tbl-platform, var(--tbl-accent));
	transform: translateX(2px);
}

/* Brand accents */
.tbl-platform-card--rumble {
	--tbl-platform: #85c742;
	--tbl-platform-soft: rgba(133, 199, 66, 0.16);
}
.tbl-platform-card--youtube {
	--tbl-platform: #ff0033;
	--tbl-platform-soft: rgba(255, 0, 51, 0.14);
}
.tbl-platform-card--x {
	--tbl-platform: #e7e9ea;
	--tbl-platform-soft: rgba(231, 233, 234, 0.1);
}
[data-theme="light"] .tbl-platform-card--x {
	--tbl-platform: #0f1419;
	--tbl-platform-soft: rgba(15, 20, 25, 0.08);
}
.tbl-platform-card--instagram {
	--tbl-platform: #e1306c;
	--tbl-platform-soft: rgba(225, 48, 108, 0.14);
}
.tbl-platform-card--apple {
	--tbl-platform: #9933ff;
	--tbl-platform-soft: rgba(153, 51, 255, 0.14);
}
.tbl-platform-card--spotify {
	--tbl-platform: #1db954;
	--tbl-platform-soft: rgba(29, 185, 84, 0.14);
}
.tbl-platform-card--patreon {
	--tbl-platform: #ff424d;
	--tbl-platform-soft: rgba(255, 66, 77, 0.14);
}
.tbl-platform-card--subscribestar {
	--tbl-platform: #ff7a18;
	--tbl-platform-soft: rgba(255, 122, 24, 0.14);
}
