/*
Theme Name: TrendByMeet
Theme URI: https://trendbymeet.com
Author: TrendByMeet
Author URI: https://trendbymeet.com
Description: An original editorial theme for AI, SEO and digital-marketing publications. Magazine-style homepage, long-form article layouts, review boxes with affiliate disclosures, a secure guest-post workflow, contact form, e-mail and in-dashboard notifications, and a full settings panel under TrendByMeet in the admin menu. No third-party libraries, no remote fonts.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trendbymeet
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, editor-style, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   Colours, fonts, radius and width are printed from the admin panel
   (TrendByMeet → Theme Settings → Brand & Design). :where() keeps these
   fallbacks at zero specificity so the admin values always win.
   ========================================================================== */
:where(:root) {
	--accent: #C8321A;
	--accent-ink: #FFFFFF;
	--accent-soft: #F6E8E2;
	--secondary: #0E5A57;
	--secondary-ink: #FFFFFF;
	--secondary-soft: #E3EEEA;
	--ink: #17140F;
	--muted: #6B645A;
	--paper: #FAF7F2;
	--surface: #FFFFFF;
	--line: #E3DDD2;
	--radius: 2px;
	--container: 1240px;
	--font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fs-base: 17px;
	--fs-article: 19px;
}

:root {
	--gutter: clamp(16px, 4vw, 32px);
	--shadow: 0 1px 2px rgba(23, 20, 15, .06), 0 8px 24px -12px rgba(23, 20, 15, .18);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--foot-bg: #17140F;
	--foot-ink: #F4EFE7;
	--foot-muted: #B8AFA2;
	--foot-line: #3A342C;
	--foot-accent: #FF8F75;
	color-scheme: light;
}
:root[data-theme="dark"] {
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
	--foot-bg: #0D0B09;
	--foot-line: #2A2520;
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
figure { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus, .skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; overflow: visible;
	background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 100000; top: 8px; left: 8px; text-decoration: none; font-weight: 600;
}
.tb-wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.tb-main { min-height: 50vh; outline: none; }
.tb-icon { flex: none; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }

/* ==========================================================================
   3. Small shared pieces
   ========================================================================== */
.tb-kicker { font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.tb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .65em 1.3em;
	border: 1.5px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink);
	font: 700 .9rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.tb-btn:hover { background: var(--ink); color: var(--paper); }
.tb-btn:active { transform: translateY(1px); }
.tb-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tb-btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tb-btn[disabled], .tb-btn.is-busy { opacity: .65; cursor: progress; }
.tb-badge {
	display: inline-block; padding: .28em .6em; margin: 0 0 .6rem; background: var(--accent-soft); color: var(--accent);
	font: 700 .68rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius);
	transition: background-color .2s, color .2s;
}
.tb-badge:hover { background: var(--accent); color: var(--accent-ink); }
.tb-badge--alt { background: var(--secondary-soft); color: var(--secondary); }
.tb-badge--alt:hover { background: var(--secondary); color: var(--secondary-ink); }
.tb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .6em; margin: .6rem 0 0; font-size: .8rem; color: var(--muted); }
.tb-meta__by { font-weight: 600; color: var(--ink); }
.tb-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.tb-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.tb-chips a, .tb-chips span {
	display: inline-block; padding: .4em .9em; border: 1px solid var(--line); border-radius: 100px; background: var(--surface);
	color: var(--ink); font-size: .85rem; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s;
}
.tb-chips a:hover { border-color: var(--accent); color: var(--accent); }
.tb-more { display: inline-flex; align-items: center; gap: .35em; font: 700 .82rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.tb-more svg { transition: transform .25s var(--ease); }
.tb-more:hover { color: var(--accent); }
.tb-more:hover svg { transform: translateX(4px); }
.tb-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.4rem; padding-top: .9rem; border-top: 3px solid var(--ink); }
.tb-sechead__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.tb-sechead .tb-kicker { flex-basis: 100%; margin: 0; }

/* Placeholder when a post has no featured image */
.tb-ph { position: absolute; inset: 0; display: grid; place-items: center; background:
	repeating-linear-gradient(135deg, transparent 0 14px, rgba(0, 0, 0, .035) 14px 15px), var(--accent-soft); }
.tb-ph span { font: 700 clamp(2.5rem, 8vw, 4.5rem)/1 var(--font-head); color: var(--accent); opacity: .5; }

/* ==========================================================================
   4. Break strip, top bar, header, navigation
   ========================================================================== */
.tb-breaking { background: var(--accent); color: var(--accent-ink); font-size: .85rem; }
.tb-breaking__row { display: flex; align-items: center; gap: 1rem; min-height: 40px; }
.tb-breaking__label { display: inline-flex; align-items: center; gap: .5em; flex: none; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.tb-pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: tb-pulse 1.8s ease-out infinite; }
@keyframes tb-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.tb-breaking__list { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; white-space: nowrap; }
.tb-breaking__list::-webkit-scrollbar { display: none; }
.tb-breaking a { color: inherit; text-decoration: none; }
.tb-breaking a:hover { text-decoration: underline; }
.tb-breaking :focus-visible { outline-color: currentColor; }
.tb-breaking__close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; background: transparent; border: 0; color: inherit; border-radius: 50%; }
.tb-breaking__close:hover { background: rgba(255, 255, 255, .2); }
.tb-breaking[hidden] { display: none; }

.tb-topbar { border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.tb-topbar__row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.tb-topbar p { margin: 0; }

.tb-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-top: 4px solid var(--ink); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.tb-no-sticky .tb-header { position: relative; }
.tb-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(23, 20, 15, .35); }
.admin-bar .tb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tb-header { top: 46px; } }
.tb-header__row { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }
.tb-brand { flex: none; margin: 0; }
.tb-brand img { max-height: 44px; width: auto; }
.tb-wordmark { font: 800 clamp(1.45rem, 2.6vw, 1.9rem)/1 var(--font-head); letter-spacing: -.03em; color: var(--ink); text-decoration: none; display: inline-flex; }
.tb-wordmark b { color: var(--accent); font-style: italic; font-weight: 800; padding-inline: .02em; }
.tb-wordmark:hover { text-decoration: none; }

.tb-nav { display: flex; align-items: center; gap: 1.2rem; margin-left: auto; }
.tb-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.tb-menu a { position: relative; display: block; padding: .7em .75em; color: var(--ink); text-decoration: none; font: 600 .8rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tb-menu--primary > li > a::after { content: ""; position: absolute; left: .75em; right: .75em; bottom: .35em; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.tb-menu--primary > li > a:hover::after, .tb-menu--primary > li.current-menu-item > a::after, .tb-menu--primary > li.current-menu-ancestor > a::after, .tb-menu--primary > li.current-category-ancestor > a::after, .tb-menu--primary > li:focus-within > a::after { transform: scaleX(1); }
.tb-menu li { position: relative; }
.tb-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px; margin: 0; padding: .4rem 0; list-style: none; background: var(--surface);
	border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; z-index: 20;
}
.tb-menu li:hover > .sub-menu, .tb-menu li:focus-within > .sub-menu, .tb-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tb-menu .sub-menu a { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 500; padding: .6em 1em; white-space: normal; }
.tb-menu .sub-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.tb-subtoggle { display: none; }
.tb-actions { display: flex; align-items: center; gap: .25rem; }
.tb-iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; color: var(--ink); transition: background-color .2s; }
.tb-iconbtn:hover { background: var(--accent-soft); }
.tb-iconbtn > span:not(.screen-reader-text) { display: grid; place-items: center; grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease); }
.tb-iconbtn__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.tb-iconbtn[aria-expanded="true"] .tb-iconbtn__open { opacity: 0; transform: rotate(90deg) scale(.6); }
.tb-iconbtn[aria-expanded="true"] .tb-iconbtn__close { opacity: 1; transform: none; }
.tb-iconbtn.tb-themetoggle > .tb-iconbtn__sun { display: none; }
:root[data-theme="dark"] .tb-iconbtn.tb-themetoggle > .tb-iconbtn__sun { display: grid; }
:root[data-theme="dark"] .tb-iconbtn.tb-themetoggle > .tb-iconbtn__moon { display: none; }
.tb-menu-toggle { display: none; }
.no-js .tb-searchtoggle, .no-js .tb-themetoggle { display: none; }

.tb-searchpanel { border-top: 1px solid var(--line); background: var(--surface); padding-block: 1.4rem 1.2rem; animation: tb-drop .3s var(--ease); }
.tb-searchpanel[hidden] { display: none; }
.no-js .tb-searchpanel[hidden] { display: block; animation: none; }
@keyframes tb-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.tb-searchpanel__tags { margin: .9rem 0 0; font-size: .85rem; display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
.tb-searchpanel__tags span { color: var(--muted); }
.tb-searchpanel__tags a { color: var(--ink); }
.tb-searchform { display: flex; gap: .6rem; max-width: 760px; }
.tb-searchform input[type="search"] { flex: 1; min-width: 0; min-height: 48px; padding: .6em 1em; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); font-size: 1rem; }
.tb-searchform input[type="search"]:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.tb-live { list-style: none; margin: .8rem 0 0; padding: 0; max-width: 760px; border: 1px solid var(--line); background: var(--surface); }
.tb-live[hidden] { display: none; }
.tb-live li + li { border-top: 1px solid var(--line); }
.tb-live a { display: flex; justify-content: space-between; gap: 1rem; padding: .7em 1em; color: var(--ink); text-decoration: none; }
.tb-live a:hover, .tb-live a:focus-visible { background: var(--accent-soft); outline-offset: -3px; }
.tb-live small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; align-self: center; }
.tb-live .tb-live__empty { padding: .8em 1em; color: var(--muted); }

.tb-progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 99; pointer-events: none; }
.admin-bar .tb-progress { top: 32px; }
.tb-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

@media (max-width: 1020px) {
	/* backdrop-filter would turn the header into the containing block of the fixed mobile menu */
	.tb-header { backdrop-filter: none; background: var(--paper); }
	.tb-menu-toggle { display: grid; }
	.tb-nav {
		position: fixed; inset: 0; z-index: 40; top: var(--tb-head, 72px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1rem;
		padding: 1rem var(--gutter) 3rem; background: var(--paper); overflow-y: auto; margin: 0;
		left: 0; right: 0; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility .3s;
	}
	.tb-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.no-js .tb-nav { position: static; transform: none; opacity: 1; visibility: visible; flex-direction: row; flex-wrap: wrap; padding: 0; overflow: visible; }
	.no-js .tb-header__row { flex-wrap: wrap; }
	.tb-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.tb-menu > li { border-bottom: 1px solid var(--line); }
	.tb-menu a { font-size: 1rem; padding: .95em .2em; }
	.tb-menu--primary > li > a::after { display: none; }
	.tb-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; display: none; min-width: 0; background: transparent; }
	.tb-menu li.is-open > .sub-menu { display: block; }
	.tb-menu li:hover > .sub-menu { display: none; }
	.tb-menu li.is-open:hover > .sub-menu { display: block; }
	.tb-menu li.menu-item-has-children { display: grid; grid-template-columns: 1fr 48px; }
	.tb-menu li.menu-item-has-children > .sub-menu { grid-column: 1 / -1; }
	.tb-subtoggle { display: grid; place-items: center; width: 48px; height: 100%; min-height: 48px; background: transparent; border: 0; color: var(--ink); }
	.tb-subtoggle svg { transition: transform .25s var(--ease); }
	.is-open > .tb-subtoggle svg { transform: rotate(180deg); }
	.tb-nav__cta { width: 100%; }
	body.tb-nav-open { overflow: hidden; }
}
@media (min-width: 1021px) {
	.tb-subtoggle { display: none; }
	.tb-menu li.menu-item-has-children > a { padding-right: 1.3em; }
	.tb-menu li.menu-item-has-children > a::before { content: ""; position: absolute; right: .55em; top: 50%; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
}
@media (max-width: 560px) {
	.tb-topbar__date { display: none; }
	.tb-header__row { gap: .5rem; }
	.tb-actions { margin-left: auto; }
}

/* ==========================================================================
   5. Cards
   ========================================================================== */
.tb-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tb-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--accent-soft); border-radius: var(--radius); }
.tb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.tb-card:hover .tb-card__media img { transform: scale(1.04); }
.tb-card__play { position: absolute; left: .7rem; bottom: .7rem; }
.tb-card__play span { display: inline-block; padding: .3em .7em .3em 1.5em; background: rgba(0, 0, 0, .75); color: #fff; font: 700 .68rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; position: relative; border-radius: var(--radius); }
.tb-card__play span::before { content: ""; position: absolute; left: .6em; top: 50%; border: 4px solid transparent; border-left: 6px solid #fff; transform: translateY(-50%); }
.tb-card__body { padding-top: .9rem; min-width: 0; }
.tb-card__title { font-size: 1.15rem; line-height: 1.25; margin: 0; }
.tb-card__title a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; padding-bottom: 2px; }
.tb-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.tb-card:hover .tb-card__title a, .tb-card__title a:focus-visible { background-size: 100% 2px; color: var(--accent); }
.tb-card__body .tb-badge, .tb-card__body .tb-meta a { position: relative; z-index: 2; }
.tb-card__excerpt { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }
.tb-card:focus-within { outline: none; }

.tb-card--lead .tb-card__title { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; }
.tb-card--lead .tb-card__media { aspect-ratio: 16 / 10; }
.tb-card--lead .tb-card__excerpt { font-size: 1.05rem; max-width: 60ch; }

.tb-card--row { flex-direction: row; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.tb-card--row:first-child { padding-top: 0; }
.tb-card--row:last-child { border-bottom: 0; padding-bottom: 0; }
.tb-card--row .tb-card__media { flex: none; width: 112px; aspect-ratio: 4 / 3; align-self: flex-start; }
.tb-card--row .tb-card__body { padding-top: 0; }
.tb-card--row .tb-card__title { font-size: 1.02rem; }
.tb-card--row .tb-badge { margin-bottom: .35rem; }
.tb-card--row .tb-meta { margin-top: .4rem; }

.tb-card--wide { flex-direction: row; gap: 1.4rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.tb-card--wide .tb-card__media { flex: none; width: min(38%, 300px); }
.tb-card--wide .tb-card__body { padding-top: 0; }
.tb-card--wide .tb-card__title { font-size: 1.3rem; }

.tb-card--compact .tb-card__title { font-size: 1rem; }
.tb-card--compact .tb-card__body { padding: 0; }

.tb-card--num .tb-card__body { display: flex; gap: .9rem; padding: 0; }
.tb-card__num { flex: none; min-width: 2.2ch; font: 800 2.3rem/1 var(--font-head); color: var(--accent); opacity: .85; font-variant-numeric: tabular-nums; }
.tb-card--num .tb-card__text { min-width: 0; }
.tb-card--num .tb-badge { display: none; }
.tb-card--num .tb-card__title { font-size: 1.05rem; }

/* ==========================================================================
   6. Homepage sections
   ========================================================================== */
.tb-hero { padding-block: 2rem 1rem; }
.tb-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.tb-hero__label { margin: 0; font: 700 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.tb-hero__label::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--accent); vertical-align: middle; margin-right: .7em; }
.tb-hero__tags { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; font-size: .85rem; }
.tb-hero__tags span { color: var(--muted); }
.tb-hero__tags a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.tb-hero__tags a:hover { color: var(--accent); border-color: var(--accent); }
.tb-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); }
.tb-hero__grid--single { grid-template-columns: minmax(0, 1fr); }
.tb-hero__side { align-self: start; border-left: 1px solid var(--line); padding-left: clamp(1.2rem, 3vw, 2.5rem); }
.tb-hero__side .tb-card--row:first-child { padding-top: 0; }
.tb-hero__more { margin-top: 2rem; }

.tb-section { padding-block: 2.2rem; }
.tb-adrow { padding-block: 1rem; }
.tb-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); }
.tb-split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tb-split--flip .tb-split__main { order: 2; }
.tb-split--single { grid-template-columns: minmax(0, 1fr); }
.tb-split__side { align-self: start; }
.tb-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.tb-cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.tb-cols2 .tb-card--wide { padding-block: 1.1rem; }
.tb-ranklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; counter-reset: none; }
.tb-ranklist li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.tb-ranklist--side { display: block; }
.tb-ranklist--side li:last-child { border-bottom: 0; }

.tb-newsbox { padding-block: 2.5rem; }
.tb-newsbox__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: clamp(1.6rem, 4vw, 3rem); background: var(--secondary); color: var(--secondary-ink); border-radius: var(--radius); }
.tb-newsbox .tb-kicker { color: inherit; opacity: .8; }
.tb-newsbox h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.tb-newsbox__copy p:last-child { margin-bottom: 0; opacity: .9; }
.tb-newsbox a { color: inherit; }
.tb-news-form__row { display: flex; gap: .6rem; }
.tb-news-form input[type="email"] { flex: 1; min-width: 0; min-height: 48px; padding: .6em 1em; border: 1.5px solid transparent; border-radius: var(--radius); background: #fff; color: #17140F; }
.tb-newsbox .tb-btn--primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tb-newsbox .tb-btn--primary:hover { background: #fff; color: #17140F; border-color: #fff; }
.tb-news-form__consent, .tb-news-form__fine { display: flex; gap: .6rem; align-items: flex-start; margin: .9rem 0 0; font-size: .82rem; opacity: .92; }
.tb-news-form__consent input { margin-top: .25em; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.tb-newsbox :focus-visible { outline-color: #fff; }
.tb-news-inline { padding: 1.4rem; background: var(--secondary-soft); border-radius: var(--radius); }

.tb-contribute { padding-block: 1rem 3rem; }
.tb-contribute__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.4rem); border: 1.5px solid var(--ink); background: var(--surface); position: relative; }
.tb-contribute__inner::after { content: ""; position: absolute; inset: 6px -6px -6px 6px; border: 1.5px solid var(--accent); z-index: -1; }
.tb-contribute h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.tb-contribute p:last-child { margin-bottom: 0; color: var(--muted); max-width: 62ch; }

.tb-empty { padding-block: 3.5rem; }
.tb-empty__box { max-width: 760px; margin-inline: auto; padding: clamp(1.6rem, 4vw, 3rem); background: var(--surface); border: 1.5px dashed var(--line); text-align: center; }
.tb-empty__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.tb-empty__steps { text-align: left; max-width: 520px; margin: 1.2rem auto; line-height: 1.8; }
.tb-empty__note { font-size: .82rem; color: var(--muted); }
.tb-empty .tb-searchform { margin: 1.2rem auto 0; }

@media (max-width: 1020px) {
	.tb-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-hero__grid, .tb-split, .tb-split--flip { grid-template-columns: minmax(0, 1fr); }
	.tb-split--flip .tb-split__main { order: 0; }
	.tb-hero__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.4rem; }
	.tb-newsbox__inner, .tb-contribute__inner { grid-template-columns: minmax(0, 1fr); }
	.tb-ranklist, .tb-cols2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.tb-grid4 { grid-template-columns: minmax(0, 1fr); }
	.tb-card--wide { flex-direction: column; gap: 0; }
	.tb-card--wide .tb-card__media { width: 100%; }
	.tb-card--wide .tb-card__body { padding-top: .8rem; }
	.tb-card--row .tb-card__media { width: 96px; }
	.tb-news-form__row, .tb-searchform { flex-direction: column; }
	.tb-section { padding-block: 1.6rem; }
}

/* ==========================================================================
   7. Layout wrappers, archive heads, lists
   ========================================================================== */
.tb-page { padding-block: 1.5rem 3.5rem; }
.tb-page--narrow { max-width: calc(820px + var(--gutter) * 2); }
.tb-layout { display: block; }
.tb-layout--side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tb-sidebar { position: sticky; top: 92px; }
.admin-bar .tb-sidebar { top: 124px; }
.tb-crumbs { margin: 0 0 1.2rem; font-size: .8rem; color: var(--muted); }
.tb-crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.tb-crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.tb-crumbs a { color: var(--muted); text-decoration: none; }
.tb-crumbs a:hover { color: var(--accent); text-decoration: underline; }
.tb-crumbs [aria-current] { color: var(--ink); }

.tb-archhead { padding: 1.5rem 0 2rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tb-archhead__title { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.025em; margin-bottom: .3em; }
.tb-archhead__desc { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }
.tb-archhead__desc p:last-child { margin-bottom: 0; }
.tb-archhead__count { font: 600 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 0; }
.tb-archhead .tb-searchform { margin-top: 1.4rem; }
.tb-archhead--author { display: flex; gap: 1.6rem; align-items: flex-start; }
.tb-avatar { --s: 48px; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 calc(var(--s) * .36)/1 var(--font-head); letter-spacing: .02em; }
.tb-avatar--img { object-fit: cover; }

.tb-list { display: block; }
.tb-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.tb-list > .tb-card--lead { padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.tb-list--list .tb-card--wide .tb-card__media { width: min(30%, 220px); }
.tb-list .tb-card--wide:last-child { border-bottom: 0; }
.tb-none { padding: 2rem 0; max-width: 640px; }
.tb-none__title { font-size: 1.8rem; }

.tb-pagination { margin: 2.5rem 0 0; }
.tb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tb-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8em; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.tb-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.tb-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tb-pagination .prev svg { transform: rotate(180deg); }
.tb-pagination .dots { border: 0; background: transparent; }

.tb-widget { margin: 0 0 2.2rem; }
.tb-widget__title { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding-top: .8rem; border-top: 3px solid var(--ink); margin-bottom: 1rem; }
.tb-widget ul { padding-left: 1.1em; }
.tb-widget .tb-chips, .tb-widget .tb-catlist { padding: 0; }
.tb-widget--cta { padding: 1.3rem; background: var(--accent-soft); border: 1px solid var(--line); }
.tb-widget--cta .tb-widget__title { border-top: 0; padding-top: 0; color: var(--accent); }
.tb-catlist { list-style: none; margin: 0; }
.tb-catlist a { display: flex; justify-content: space-between; padding: .6em 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.tb-catlist a:hover { color: var(--accent); }
.tb-catlist small { color: var(--muted); }
.tb-sidebar .tb-chips { margin-top: 0; }

.tb-ad { margin: 1.6rem auto; text-align: center; clear: both; }
.tb-ad__label { display: block; margin-bottom: .4rem; font: 600 .65rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tb-ad__box { display: flex; justify-content: center; overflow: hidden; max-width: 100%; }
.tb-ad--preview { padding: 1.4rem; border: 2px dashed var(--line); color: var(--muted); font-size: .85rem; }

/* ==========================================================================
   8. Article
   ========================================================================== */
.tb-article__head { padding-top: 1.5rem; }
.tb-article__headtext { max-width: 860px; margin-bottom: 1.8rem; }
.tb-article__title { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.07; letter-spacing: -.028em; margin-bottom: .35em; }
.tb-article__sub { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; color: var(--muted); max-width: 52ch; }
.tb-byline { display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.tb-byline__text { display: flex; flex-direction: column; margin: 0; gap: .15rem; }
.tb-byline__name { font-weight: 700; }
.tb-byline__name a { color: var(--ink); text-decoration: none; }
.tb-byline__name a:hover { color: var(--accent); text-decoration: underline; }
.tb-byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .6em; font-size: .85rem; color: var(--muted); }
.tb-guesttag { font: 700 .62rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; font-style: normal; padding: .25em .5em; margin-left: .4em; background: var(--secondary-soft); color: var(--secondary); border-radius: var(--radius); vertical-align: .1em; }
.tb-article__media { margin-bottom: 2.2rem; }
.tb-article__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.tb-article__media--page { padding: 0; margin-bottom: 1.6rem; }
.tb-article__media figcaption { margin-top: .6rem; font-size: .82rem; color: var(--muted); }
.tb-embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.tb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tb-article__body { min-width: 0; }

.tb-prose { font-size: var(--fs-article); line-height: 1.72; max-width: 740px; overflow-wrap: break-word; }
.tb-layout--side .tb-prose { max-width: none; }
.tb-prose--wide { max-width: none; }
.tb-prose > * { margin-top: 0; margin-bottom: 1.35em; }
.tb-prose > p:first-of-type { font-size: 1.07em; }
.tb-prose h2 { font-size: 1.7em; margin-top: 1.9em; margin-bottom: .5em; letter-spacing: -.02em; }
.tb-prose h3 { font-size: 1.3em; margin-top: 1.6em; margin-bottom: .4em; }
.tb-prose h4 { font-size: 1.1em; margin-top: 1.4em; }
.tb-prose a { text-decoration: underline; }
.tb-prose ul, .tb-prose ol { padding-left: 1.4em; }
.tb-prose li { margin-bottom: .4em; }
.tb-prose li::marker { color: var(--accent); }
.tb-prose blockquote { margin-inline: 0; padding: .3em 0 .3em 1.3em; border-left: 4px solid var(--accent); font: italic 1.12em/1.5 var(--font-head); }
.tb-prose blockquote p:last-child { margin-bottom: 0; }
.tb-prose cite { display: block; margin-top: .6em; font: normal .8em var(--font-body); color: var(--muted); }
.tb-prose figure { margin-block: 1.8em; }
.tb-prose figcaption, .wp-element-caption { font-size: .82rem; color: var(--muted); margin-top: .5em; }
.tb-prose img { height: auto; border-radius: var(--radius); }
.tb-prose pre { overflow-x: auto; padding: 1.1em 1.3em; background: var(--ink); color: var(--paper); font-size: .85em; line-height: 1.6; border-radius: var(--radius); }
.tb-prose :not(pre) > code { padding: .12em .4em; background: var(--accent-soft); font-size: .88em; border-radius: 3px; }
.tb-prose table { width: 100%; border-collapse: collapse; font-size: .92em; display: block; overflow-x: auto; }
.tb-prose th, .tb-prose td { padding: .7em .9em; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.tb-prose thead th, .tb-prose tr:first-child th { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tb-prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tb-prose hr { margin-block: 2.4em; }
.tb-prose .alignwide { max-width: min(1000px, 100vw - 2 * var(--gutter)); }
.tb-prose .wp-block-button__link { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.tb-prose .wp-block-separator { border-color: var(--line); }
.tb-prose details { padding: .9em 1.1em; border: 1px solid var(--line); background: var(--surface); }
.tb-prose summary { font-weight: 700; cursor: pointer; }

.tb-takeaways { margin: 0 0 2rem; padding: 1.3rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.tb-takeaways h2 { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.tb-takeaways ul { margin: 0; padding-left: 1.2em; }
.tb-takeaways li { margin-bottom: .35em; }
.tb-takeaways li::marker { color: var(--accent); }
.tb-disclosure { display: flex; gap: .8rem; align-items: flex-start; margin: 0 0 1.6rem; padding: .95rem 1.1rem; background: var(--secondary-soft); border-left: 4px solid var(--secondary); font-size: .9rem; color: var(--ink); }
.tb-disclosure svg { color: var(--secondary); margin-top: .15em; }
.tb-disclosure p { margin: 0; }
.tb-toc { margin: 0 0 2rem; padding: 1.1rem 1.4rem; border: 1px solid var(--line); background: var(--surface); }
.tb-toc[hidden] { display: none; }
.tb-toc__title { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .7rem; }
.tb-toc ol { margin: 0; padding-left: 1.3em; font-size: .95rem; }
.tb-toc li { margin-bottom: .3em; }
.tb-toc a { color: var(--ink); text-decoration: none; }
.tb-toc a:hover { color: var(--accent); text-decoration: underline; }
.tb-toc li.is-sub { margin-left: 1em; list-style: circle; font-size: .92em; }
.tb-pagelinks { margin-top: 1.5rem; font-weight: 600; }

.tb-article__tags { margin-top: 2rem; }
.tb-share { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.2rem; margin: 1.8rem 0; padding-block: 1.1rem; border-block: 1px solid var(--line); }
.tb-share__label { margin: 0; font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.tb-share ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tb-share a, .tb-share button { display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: .4em .95em; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.tb-share a:hover, .tb-share button:hover { border-color: var(--accent); color: var(--accent); }
.no-js .tb-share__copy { display: none; }

.tb-authorbox { display: flex; gap: 1.1rem; margin: 2rem 0; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); }
.tb-authorbox .tb-kicker { margin-bottom: .3rem; }
.tb-authorbox__name { margin: 0 0 .4rem; font: 700 1.2rem/1.2 var(--font-head); }
.tb-authorbox__name a { color: var(--ink); text-decoration: none; }
.tb-authorbox__bio { margin: 0 0 .5rem; color: var(--muted); font-size: .95rem; }
.tb-authorbox__link { margin: 0; font-size: .88rem; }

.tb-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.tb-postnav a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease); }
.tb-postnav a:hover { border-color: var(--accent); transform: translateY(-2px); }
.tb-postnav span { display: block; font: 700 .68rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.tb-postnav strong { font: 700 1rem/1.3 var(--font-head); }
.tb-postnav__next { text-align: right; grid-column: 2; }
.tb-postnav__prev:only-child { grid-column: 1; }

.tb-article__after { padding-bottom: 3rem; }
.tb-related { margin-top: 2.5rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
.tb-related__title { font-size: 1.6rem; margin-bottom: 1.4rem; }
.tb-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }

.tb-review { margin: 0 0 2.2rem; padding: 1.5rem; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--accent-soft); }
.tb-review__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.tb-review__name { font: 800 1.7rem/1.1 var(--font-head); margin: 0 0 .4rem; }
.tb-review__best, .tb-review__price { margin: 0 0 .6rem; font-size: .95rem; }
.tb-review__rating { margin: 0; text-align: right; font: 400 .85rem/1 var(--font-body); color: var(--muted); }
.tb-review__rating strong { font: 800 2rem/1 var(--font-head); color: var(--ink); margin-left: .3em; }
.tb-review__stars { display: block; font-size: 1.1rem; color: var(--accent); letter-spacing: .1em; margin-bottom: .2rem; }
.tb-review__checked { display: inline-block; margin-left: .5em; padding: .15em .5em; background: var(--accent-soft); font-size: .75rem; color: var(--muted); }
.tb-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 1.2rem 0; }
.tb-proscons__col { padding: 1rem 1.2rem; border-top: 3px solid; background: var(--paper); }
.tb-proscons__col--pros { border-color: var(--secondary); }
.tb-proscons__col--cons { border-color: var(--accent); }
.tb-proscons h3 { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem; }
.tb-proscons ul { margin: 0; padding-left: 0; list-style: none; font-size: .95rem; }
.tb-proscons li { position: relative; padding-left: 1.5em; margin-bottom: .45em; }
.tb-proscons__col--pros li::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: var(--secondary); }
.tb-proscons__col--cons li::before { content: "−"; position: absolute; left: 0; font-weight: 800; color: var(--accent); }
.tb-review__verdict h3, .tb-review__alts h3 { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.tb-review__verdict p { font: italic 1.1rem/1.5 var(--font-head); margin: 0 0 1rem; }
.tb-review__cta { margin: 1rem 0 0; }
.tb-review__alts { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; }
.tb-review__alts ul { margin: 0; padding-left: 1.2em; }
.tb-review__alts span { color: var(--muted); }

.tb-comments { max-width: 760px; margin-top: 3rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
.tb-comments__title { font-size: 1.5rem; }
.tb-comments__list { list-style: none; padding: 0; margin: 0 0 2rem; }
.tb-comments__list .comment { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.tb-comments__list .children { list-style: none; padding-left: 1.4rem; border-left: 2px solid var(--line); margin-top: 1rem; }
.tb-comments .comment-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.tb-comments .fn { font-weight: 700; font-style: normal; color: var(--ink); }
.tb-comments .reply a { font: 700 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.tb-comments label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.tb-comments input[type="text"], .tb-comments input[type="email"], .tb-comments input[type="url"], .tb-comments textarea { width: 100%; min-height: 46px; padding: .6em .9em; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.tb-comments input:focus, .tb-comments textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.comment-form p { margin-bottom: 1rem; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: center; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }

@media (max-width: 1020px) {
	.tb-layout--side { grid-template-columns: minmax(0, 1fr); }
	.tb-sidebar { position: static; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
	.tb-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	:root { --fs-article: 18px; }
	.tb-related__grid, .tb-postnav, .tb-proscons, .tb-list--grid { grid-template-columns: minmax(0, 1fr); }
	.tb-postnav__next { grid-column: 1; }
	.tb-review__rating { text-align: left; }
	.tb-authorbox, .tb-archhead--author { flex-direction: column; }
	.tb-prose .alignleft, .tb-prose .alignright { float: none; margin: 1em auto; }
}

/* ==========================================================================
   9. Standard pages, Write for Us, Contact, Topics, 404
   ========================================================================== */
.tb-pagehero { padding: 1.2rem 0 2rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); max-width: 860px; }
.tb-pagehero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.028em; margin-bottom: .3em; }
.tb-pagehero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 58ch; margin: 0; }
.tb-twocol { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tb-twocol__side { position: sticky; top: 96px; }
.admin-bar .tb-twocol__side { top: 128px; }
.tb-panel { margin-bottom: 1.6rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); }
.tb-panel--soft { background: var(--accent-soft); border-color: transparent; }
.tb-panel__title { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 3px solid var(--ink); }
.tb-panel .tb-chips { margin-top: 0; }
.tb-twocol__main > .tb-prose { margin-bottom: 2rem; }
.tb-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.tb-steps li { position: relative; padding: 0 0 1.1rem 2.6rem; counter-increment: step; }
.tb-steps li:last-child { padding-bottom: 0; }
.tb-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 .85rem/1 var(--font-head); border-radius: 50%; }
.tb-steps strong, .tb-steps span { display: block; }
.tb-steps span { font-size: .9rem; color: var(--muted); }
.tb-rules { margin: 0; padding-left: 1.2em; font-size: .94rem; }
.tb-rules li { margin-bottom: .6em; }
.tb-rules li::marker { color: var(--accent); }

.tb-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 1rem; }
.tb-topic { padding-top: .9rem; border-top: 3px solid var(--ink); }
.tb-topic__title { font-size: 1.6rem; margin-bottom: .3rem; }
.tb-topic__title a { color: var(--ink); text-decoration: none; }
.tb-topic__title a:hover { color: var(--accent); }
.tb-topic__title small { font: 600 .8rem/1 var(--font-body); color: var(--muted); margin-left: .4em; }
.tb-topic__desc { color: var(--muted); font-size: .95rem; }
.tb-topic__list { padding-left: 1.2em; }
.tb-topic__list li { margin-bottom: .4em; }

.tb-404__head { padding: 2rem 0 2.5rem; max-width: 760px; }
.tb-404__code { font: 800 clamp(5rem, 18vw, 11rem)/.85 var(--font-head); color: var(--accent); margin: 0 0 .15em; letter-spacing: -.05em; }
.tb-404 .tb-searchform { margin-top: 1.5rem; }

@media (max-width: 900px) {
	.tb-twocol { grid-template-columns: minmax(0, 1fr); }
	.tb-twocol__side { position: static; }
	.tb-topics { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   10. Forms (guest post, contact, newsletter)
   ========================================================================== */
.tb-form { display: block; }
.tb-fieldset { margin: 0 0 1.6rem; padding: 0; border: 0; min-width: 0; }
.tb-fieldset legend { padding: 0; margin-bottom: .9rem; font: 700 1.15rem/1.2 var(--font-head); }
.tb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.tb-field { margin-bottom: 1.15rem; }
.tb-field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .92rem; }
.tb-field input[type="text"], .tb-field input[type="email"], .tb-field input[type="url"], .tb-field select, .tb-field textarea {
	width: 100%; min-height: 48px; padding: .65em .9em; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.tb-field textarea { resize: vertical; line-height: 1.55; }
.tb-field input:focus, .tb-field select:focus, .tb-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.tb-field.is-invalid input, .tb-field.is-invalid select, .tb-field.is-invalid textarea { border-color: #B3261E; }
.tb-field.is-invalid label { color: #B3261E; }
.tb-field__desc, .tb-count, .tb-form__note { margin: .35rem 0 0; font-size: .82rem; color: var(--muted); }
.tb-form__note { margin: 0 0 1.4rem; }
.tb-req { color: var(--accent); font-weight: 700; }
.tb-opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
.tb-field--check label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .92rem; line-height: 1.45; }
.tb-field--check input { flex: none; width: 20px; height: 20px; margin-top: .1em; accent-color: var(--accent); }
.tb-form__actions { margin-top: 1.4rem; }
.tb-form__actions .tb-btn { min-height: 52px; padding-inline: 1.8em; }
.tb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tb-notice { display: flex; gap: .8rem; align-items: flex-start; margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid; font-size: .95rem; scroll-margin-top: 110px; }
.tb-notice p { margin: 0; }
.tb-notice ul { margin: .4rem 0 0; padding-left: 1.2em; }
.tb-notice--ok { background: var(--secondary-soft); border-color: var(--secondary); }
.tb-notice--ok svg { color: var(--secondary); }
.tb-notice--err { background: #FBE9E7; border-color: #B3261E; color: #3B0D0A; }
:root[data-theme="dark"] .tb-notice--err { background: #3B1512; color: #FFD9D4; }
.tb-notice--info { background: var(--accent-soft); border-color: var(--accent); }
.tb-notice:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .tb-grid2 { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   11. Footer, social, back to top
   ========================================================================== */
.tb-footer { margin-top: 3rem; background: var(--foot-bg); color: var(--foot-ink); padding-block: 3.5rem 1.8rem; border-top: 4px solid var(--accent); }
.tb-footer a { color: var(--foot-ink); text-decoration: none; }
.tb-footer a:hover { color: var(--foot-accent); text-decoration: underline; }
.tb-footer :focus-visible { outline-color: var(--foot-accent); }
.tb-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.tb-footer__brand p { margin-top: 1rem; max-width: 40ch; color: var(--foot-muted); font-size: .95rem; }
.tb-footer .tb-wordmark { color: var(--foot-ink); }
.tb-footer .tb-wordmark b { color: var(--foot-accent); }
.tb-footer__title { font: 700 .75rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--foot-muted); margin-bottom: 1.1rem; }
.tb-footer .tb-menu { display: block; }
.tb-footer .tb-menu a { padding: .35em 0; font: 500 .95rem/1.4 var(--font-body); text-transform: none; letter-spacing: 0; white-space: normal; color: var(--foot-ink); }
.tb-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--foot-line); font-size: .85rem; color: var(--foot-muted); }
.tb-footer__base p { margin: 0; }
.tb-social { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.tb-social__link { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; font: 700 .78rem/1 var(--font-body); text-transform: uppercase; text-decoration: none; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.tb-social__link:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tb-social--footer .tb-social__link { border-color: var(--foot-line); color: var(--foot-ink); }
.tb-footer .tb-social__link:hover { background: var(--foot-accent); border-color: var(--foot-accent); color: #17140F; text-decoration: none; }
.tb-totop { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease), background-color .2s; }
.tb-totop.is-visible { opacity: 1; transform: none; }
.tb-totop:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 900px) { .tb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tb-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .tb-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   12. Motion (calm, optional, never blocks reading)
   Content is only hidden before it is revealed when JavaScript is running.
   ========================================================================== */
.js.tb-anim-full [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js.tb-anim-full [data-reveal].is-in { opacity: 1; transform: none; }
.tb-anim-none *, .tb-anim-none *::before, .tb-anim-none *::after { transition: none !important; animation: none !important; }
.tb-anim-minimal [data-reveal] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js.tb-anim-full [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   13. Print
   ========================================================================== */
@media print {
	.tb-topbar, .tb-header, .tb-breaking, .tb-footer, .tb-sidebar, .tb-share, .tb-related, .tb-comments, .tb-totop, .tb-progress, .tb-ad, .tb-postnav { display: none !important; }
	body { background: #fff; color: #000; }
	.tb-prose { font-size: 12pt; max-width: none; }
	a { color: #000; }
}

/* ==========================================================================
   14. Pattern blocks (inserted from the editor)
   ========================================================================== */
.tb-callout { padding: 1.2rem 1.4rem; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.tb-callout--teal { background: var(--secondary-soft); border-left-color: var(--secondary); }
.tb-callout > :last-child { margin-bottom: 0; }
.tb-callout h3 { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tb-pros, .tb-cons { padding: 1rem 1.2rem; background: var(--surface); border-top: 3px solid var(--secondary); height: 100%; }
.tb-cons { border-top-color: var(--accent); }
.tb-pros h3, .tb-cons h3 { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.tb-productbox { padding: 1.4rem; border: 1.5px solid var(--ink); background: var(--surface); box-shadow: 6px 6px 0 var(--accent-soft); }
.tb-productbox > :last-child { margin-bottom: 0; }
.tb-prose .wp-block-columns { gap: 1.2rem; }

/* A section with only one story: lay it out side by side instead of one giant image */
@media (min-width: 801px) {
	.tb-split--single .tb-card--lead { flex-direction: row; gap: 2rem; align-items: center; }
	.tb-split--single .tb-card--lead .tb-card__media { flex: 0 0 52%; }
	.tb-split--single .tb-card--lead .tb-card__body { padding-top: 0; }
}
