/* ==========================================================================
   TutoBlog — design system
   Build. Fix. Learn.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
	/* Brand (teal sampled from the TutoBlog logo) */
	--tb-teal: #00b8b8;
	--tb-teal-strong: #00807f;
	--tb-teal-deep: #005f5f;
	--tb-teal-soft: #e9f8f8;
	--tb-teal-tint: #f4fbfb;

	/* Ink & surfaces */
	--tb-ink: #14313a;
	--tb-body: #4a5a63;
	--tb-muted: #77868d;
	--tb-bg: #ffffff;
	--tb-bg-soft: #f7fafa;
	--tb-surface: #ffffff;
	--tb-surface-2: #ffffff;
	--tb-border: #e6ecee;
	--tb-border-strong: #d5dee0;
	--tb-footer-bg: #0d1f24;
	--tb-footer-text: #aebcc1;

	/* Feedback */
	--tb-star: #f2a93b;

	/* Type */
	--tb-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tb-font-head: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--tb-fs-hero: clamp(2.4rem, 1.4rem + 4vw, 4.5rem);
	--tb-fs-h2: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
	--tb-fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
	--tb-fs-body: 1.0625rem;
	--tb-fs-meta: 0.8125rem;

	/* Layout */
	--tb-container: 1240px;
	--tb-gutter: clamp(1rem, 0.4rem + 2vw, 1.75rem);
	--tb-radius: 16px;
	--tb-radius-sm: 10px;
	--tb-radius-pill: 999px;

	/* Elevation */
	--tb-shadow-xs: 0 1px 2px rgba(16, 40, 48, 0.05);
	--tb-shadow-sm: 0 4px 14px rgba(16, 40, 48, 0.06);
	--tb-shadow-md: 0 14px 34px rgba(16, 40, 48, 0.1);
	--tb-shadow-teal: 0 12px 26px rgba(0, 128, 127, 0.22);

	--tb-ring: 0 0 0 3px rgba(0, 184, 184, 0.35);
	--tb-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--tb-speed: 200ms;
}

[data-theme="dark"] {
	--tb-teal: #26d0cf;
	--tb-teal-strong: #3ad7d5;
	--tb-teal-deep: #7ff0ee;
	--tb-teal-soft: #10302f;
	--tb-teal-tint: #0f2426;

	--tb-ink: #eef4f5;
	--tb-body: #b6c3c7;
	--tb-muted: #8b9ba1;
	--tb-bg: #0b1619;
	--tb-bg-soft: #0f2023;
	--tb-surface: #12262a;
	--tb-surface-2: #163034;
	--tb-border: #233c40;
	--tb-border-strong: #2f4d52;
	--tb-footer-bg: #081114;

	--tb-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
	--tb-shadow-md: 0 16px 38px rgba(0, 0, 0, 0.5);
	--tb-shadow-teal: 0 12px 26px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--tb-bg);
	color: var(--tb-body);
	font-family: var(--tb-font-body);
	font-size: var(--tb-fs-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--tb-teal-strong);
	text-decoration: none;
	transition: color var(--tb-speed) var(--tb-ease);
}

a:hover {
	color: var(--tb-teal-deep);
}

:focus-visible {
	outline: 3px solid var(--tb-teal);
	outline-offset: 2px;
	border-radius: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

p {
	margin: 0 0 1.1em;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

figure {
	margin: 0;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

::selection {
	background: var(--tb-teal);
	color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.tb-container {
	width: 100%;
	max-width: var(--tb-container);
	margin-inline: auto;
	padding-inline: var(--tb-gutter);
}

.tb-container--narrow {
	max-width: 760px;
}

.tb-section {
	padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem);
}

.tb-section--soft {
	background: var(--tb-bg-soft);
}

.tb-section--tint {
	background: var(--tb-teal-tint);
}

.tb-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.tb-section__titles {
	max-width: 44rem;
}

.tb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.6rem;
	color: var(--tb-teal-strong);
	font-family: var(--tb-font-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

[data-theme="dark"] .tb-eyebrow {
	color: var(--tb-teal);
}

.tb-section__title {
	margin: 0;
	font-size: var(--tb-fs-h2);
}

.tb-section__sub {
	margin: 0.6rem 0 0;
	color: var(--tb-muted);
	font-size: 1.0625rem;
}

.tb-link-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--tb-font-head);
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
}

.tb-link-more .tb-icon {
	transition: transform var(--tb-speed) var(--tb-ease);
}

.tb-link-more:hover .tb-icon {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. Buttons, badges, chips, forms
   -------------------------------------------------------------------------- */
.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.72rem 1.35rem;
	border: 1px solid transparent;
	border-radius: var(--tb-radius-pill);
	background: var(--tb-teal-strong);
	color: #fff;
	font-family: var(--tb-font-head);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	transition: transform var(--tb-speed) var(--tb-ease), background var(--tb-speed) var(--tb-ease), box-shadow var(--tb-speed) var(--tb-ease);
}

.tb-btn:hover {
	background: var(--tb-teal-deep);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--tb-shadow-teal);
}

.tb-btn:active {
	transform: translateY(0);
}

.tb-btn--ghost {
	background: transparent;
	border-color: var(--tb-border-strong);
	color: var(--tb-ink);
}

.tb-btn--ghost:hover {
	background: var(--tb-teal-soft);
	border-color: var(--tb-teal);
	color: var(--tb-teal-deep);
	box-shadow: none;
}

.tb-btn--sm {
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
}

.tb-btn--block {
	width: 100%;
}

.tb-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.28rem 0.7rem;
	border-radius: var(--tb-radius-pill);
	background: color-mix(in srgb, var(--tb-badge, var(--tb-teal)) 12%, transparent);
	color: var(--tb-badge, var(--tb-teal));
	font-family: var(--tb-font-head);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.tb-badge__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

[data-theme="dark"] .tb-badge {
	background: color-mix(in srgb, var(--tb-badge, var(--tb-teal)) 20%, transparent);
	color: color-mix(in srgb, var(--tb-badge, var(--tb-teal)) 80%, #fff);
}

.tb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 1rem 0 0;
}

.tb-chips__label {
	color: var(--tb-muted);
	font-size: 0.85rem;
	font-weight: 600;
}

.tb-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.32rem 0.85rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-pill);
	background: var(--tb-surface);
	color: var(--tb-body);
	font-size: 0.85rem;
	font-weight: 500;
	transition: all var(--tb-speed) var(--tb-ease);
}

.tb-chip:hover {
	border-color: var(--tb-teal);
	background: var(--tb-teal-soft);
	color: var(--tb-teal-deep);
}

.tb-field {
	display: block;
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--tb-border-strong);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-surface);
	color: var(--tb-ink);
	font-size: 1rem;
	transition: border-color var(--tb-speed) var(--tb-ease), box-shadow var(--tb-speed) var(--tb-ease);
}

.tb-field::placeholder {
	color: var(--tb-muted);
}

.tb-field:focus {
	border-color: var(--tb-teal);
	box-shadow: var(--tb-ring);
	outline: none;
}

.tb-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.1rem;
	margin: 0;
	list-style: none;
	color: var(--tb-muted);
	font-size: var(--tb-fs-meta);
}

.tb-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.tb-meta a {
	color: inherit;
}

.tb-meta a:hover {
	color: var(--tb-teal-strong);
}

.tb-meta .tb-icon {
	color: var(--tb-teal);
	flex: none;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.tb-skip-link {
	position: absolute;
	left: 1rem;
	top: -100%;
	z-index: 999;
	padding: 0.7rem 1.1rem;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-teal-strong);
	color: #fff;
	font-weight: 700;
	transition: top var(--tb-speed) var(--tb-ease);
}

.tb-skip-link:focus {
	top: 1rem;
	color: #fff;
}

.tb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--tb-bg) 92%, transparent);
	border-bottom: 1px solid var(--tb-border);
	backdrop-filter: saturate(1.4) blur(10px);
	transition: box-shadow var(--tb-speed) var(--tb-ease);
}

.tb-header.is-stuck {
	box-shadow: var(--tb-shadow-sm);
}

.tb-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.25rem;
	min-height: 84px;
}

.tb-brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.tb-brand__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}

.tb-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0.06em;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.tb-logo:hover {
	color: var(--tb-ink);
}

.tb-logo__text {
	display: inline-flex;
	align-items: baseline;
}

.tb-logo__mark {
	display: inline-flex;
	width: 0.72em;
	height: 0.72em;
	margin-inline: 0.05em;
	align-self: center;
	color: var(--tb-teal);
}

.tb-logo__mark svg {
	width: 100%;
	height: 100%;
}

.tb-logo__dot {
	display: inline-block;
	width: 0.16em;
	height: 0.16em;
	margin-left: 0.14em;
	margin-bottom: 0.14em;
	align-self: flex-end;
	background: var(--tb-teal);
}

.tb-brand__tagline {
	margin: 0.28rem 0 0;
	color: var(--tb-muted);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	display: block;
	width: auto;
	height: auto;
	/* Capped at 36px; eases down on narrow screens so it never crowds the
	   header icons. */
	max-height: clamp(30px, 3vw, 36px);
}

/* The dark footer (and any dark-mode surface: header, mobile drawer) needs a
   light logo mark. */
.tb-footer .custom-logo,
[data-theme="dark"] .custom-logo {
	filter: brightness(0) invert(1);
}

.tb-nav {
	justify-self: center;
}

.tb-nav__list {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	list-style: none;
}

.tb-nav__list > li {
	position: relative;
}

.tb-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.55rem 0.7rem;
	border-radius: var(--tb-radius-sm);
	color: var(--tb-body);
	font-family: var(--tb-font-head);
	font-size: 0.92rem;
	font-weight: 600;
	white-space: nowrap;
}

.tb-nav a:hover,
.tb-nav .current-menu-item > a,
.tb-nav .current_page_item > a,
.tb-nav .current-menu-ancestor > a {
	color: var(--tb-teal-strong);
	background: var(--tb-teal-soft);
}

[data-theme="dark"] .tb-nav a:hover,
[data-theme="dark"] .tb-nav .current-menu-item > a,
[data-theme="dark"] .tb-nav .current_page_item > a {
	color: var(--tb-teal);
}

.tb-nav .tb-icon {
	transition: transform var(--tb-speed) var(--tb-ease);
}

/* Dropdowns */
.tb-nav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 210px;
	padding: 0.5rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-surface);
	box-shadow: var(--tb-shadow-md);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: all var(--tb-speed) var(--tb-ease);
}

.tb-nav li:hover > .sub-menu,
.tb-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tb-nav .sub-menu a {
	display: block;
	padding: 0.5rem 0.7rem;
	font-size: 0.9rem;
	font-weight: 500;
}

.tb-nav__list > li.menu-item-has-children:hover > a .tb-icon,
.tb-nav__list > li.menu-item-has-children:focus-within > a .tb-icon {
	transform: rotate(180deg);
}

.tb-header__actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	justify-self: end;
}

.tb-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid transparent;
	border-radius: var(--tb-radius-sm);
	background: transparent;
	color: var(--tb-ink);
	transition: all var(--tb-speed) var(--tb-ease);
}

.tb-icon-btn:hover {
	background: var(--tb-teal-soft);
	color: var(--tb-teal-deep);
}

.tb-theme-toggle .tb-icon--sun {
	display: none;
}

[data-theme="dark"] .tb-theme-toggle .tb-icon--sun {
	display: block;
}

[data-theme="dark"] .tb-theme-toggle .tb-icon--moon {
	display: none;
}

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

/* --------------------------------------------------------------------------
   6. Mobile drawer + search overlay
   -------------------------------------------------------------------------- */
.tb-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	justify-content: flex-end;
	visibility: hidden;
}

.tb-drawer[hidden] {
	display: none;
}

.tb-drawer.is-open {
	visibility: visible;
}

.tb-drawer__scrim {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(9, 24, 28, 0.55);
	opacity: 0;
	transition: opacity var(--tb-speed) var(--tb-ease);
}

.tb-drawer.is-open .tb-drawer__scrim {
	opacity: 1;
}

.tb-drawer__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(380px, 88vw);
	height: 100%;
	background: var(--tb-surface);
	box-shadow: var(--tb-shadow-md);
	transform: translateX(100%);
	transition: transform 280ms var(--tb-ease);
}

.tb-drawer.is-open .tb-drawer__panel {
	transform: translateX(0);
}

.tb-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex: none;
	padding: 0.9rem 1.25rem;
	border-bottom: 1px solid var(--tb-border);
}

.tb-drawer__brand {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.tb-drawer__brand .custom-logo {
	max-height: 30px;
}

.tb-drawer__tagline {
	color: var(--tb-muted);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tb-drawer__close {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--tb-border-strong);
	border-radius: 50%;
	background: var(--tb-surface);
	color: var(--tb-body);
	cursor: pointer;
	transition: border-color var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-drawer__close:hover {
	border-color: var(--tb-teal);
	color: var(--tb-teal-deep);
}

.tb-drawer__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1.25rem;
}

.tb-drawer__search {
	margin-bottom: 1.25rem;
}

.tb-drawer__search .tb-search-form__submit {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 46px;
	min-height: 46px;
	border: 0;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-teal-strong);
	color: #fff;
	cursor: pointer;
	transition: background var(--tb-speed) var(--tb-ease);
}

.tb-drawer__search .tb-search-form__submit:hover {
	background: var(--tb-teal-deep);
}

.tb-drawer__nav {
	border-top: 1px solid var(--tb-border);
}

.tb-drawer__list {
	list-style: none;
}

.tb-drawer__list > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	border-bottom: 1px solid var(--tb-border);
}

.tb-drawer__list a {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0.5rem 0.25rem;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 1.05rem;
	font-weight: 700;
}

.tb-drawer__list a:hover,
.tb-drawer__list .current-menu-item > a,
.tb-drawer__list .current_page_item > a,
.tb-drawer__list .current-menu-ancestor > a {
	color: var(--tb-teal-strong);
}

.tb-drawer__toggle {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-sm);
	background: transparent;
	color: var(--tb-body);
	cursor: pointer;
	transition: border-color var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-drawer__toggle:hover,
.tb-drawer__toggle[aria-expanded="true"] {
	border-color: var(--tb-teal);
	color: var(--tb-teal-deep);
}

.tb-drawer__toggle .tb-icon {
	transition: transform var(--tb-speed) var(--tb-ease);
}

.tb-drawer__toggle[aria-expanded="true"] .tb-icon {
	transform: rotate(180deg);
}

.tb-drawer__list .sub-menu {
	flex-basis: 100%;
	margin: 0 0 0.6rem;
	padding: 0 0 0 0.9rem;
	border-left: 2px solid var(--tb-border);
	list-style: none;
}

.tb-drawer__list .sub-menu a {
	min-height: 46px;
	color: var(--tb-body);
	font-size: 0.95rem;
	font-weight: 500;
}

.tb-drawer__all {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-teal-soft);
	color: var(--tb-teal-deep);
	font-family: var(--tb-font-head);
	font-size: 0.95rem;
	font-weight: 700;
}

.tb-drawer__all span {
	flex: 1;
	min-width: 0;
}

.tb-drawer__all:hover {
	background: var(--tb-teal);
	color: #fff;
}

.tb-drawer__foot {
	flex: none;
	display: grid;
	gap: 0.9rem;
	padding: 1rem 1.25rem calc(1.15rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--tb-border);
	background: var(--tb-surface);
}

.tb-drawer__cta {
	justify-content: center;
	min-height: 44px;
}

.tb-drawer__rows {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
}

.tb-drawer__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--tb-border-strong);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-surface);
	color: var(--tb-body);
	font-family: var(--tb-font-head);
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-drawer__row:hover {
	border-color: var(--tb-teal);
	color: var(--tb-teal-deep);
}

.tb-drawer__social {
	display: flex;
	justify-content: center;
	gap: 0.35rem;
	list-style: none;
}

.tb-drawer__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--tb-muted);
	transition: background var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-drawer__social a:hover {
	background: var(--tb-bg-soft);
	color: var(--tb-teal-strong);
}

@media (prefers-reduced-motion: reduce) {
	.tb-drawer__panel {
		transition: none;
	}
}

.tb-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: grid;
	place-items: start center;
	padding-top: min(18vh, 160px);
	background: color-mix(in srgb, var(--tb-ink) 55%, transparent);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--tb-speed) var(--tb-ease), visibility var(--tb-speed);
}

.tb-search-overlay[hidden] {
	display: none;
}

.tb-search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.tb-search-overlay__box {
	width: min(680px, 92vw);
	padding: 1.5rem;
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
	box-shadow: var(--tb-shadow-md);
	transform: translateY(-10px);
	transition: transform 260ms var(--tb-ease);
}

.tb-search-overlay.is-open .tb-search-overlay__box {
	transform: translateY(0);
}

.tb-search-overlay__title {
	margin: 0 0 0.9rem;
	font-size: 1.1rem;
}

/* Search form */
.tb-search-form__row {
	display: flex;
	gap: 0.5rem;
}

.tb-search-form .tb-field {
	flex: 1;
}

.tb-search-form--hero .tb-search-form__row {
	position: relative;
}

.tb-search-form--hero .tb-field {
	padding: 1rem 3.5rem 1rem 1.15rem;
	border-radius: var(--tb-radius-pill);
	box-shadow: var(--tb-shadow-sm);
	border-color: transparent;
}

.tb-search-form--hero .tb-search-form__submit {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--tb-teal-strong);
	color: #fff;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tb-search-form--hero .tb-search-form__submit:hover {
	background: var(--tb-teal-deep);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.tb-hero {
	position: relative;
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
	background:
		radial-gradient(60% 80% at 85% 10%, var(--tb-teal-soft) 0%, transparent 60%),
		linear-gradient(180deg, var(--tb-teal-tint), var(--tb-bg));
	overflow: hidden;
}

.tb-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	align-items: center;
}

.tb-hero__title {
	margin: 0 0 1rem;
	font-size: var(--tb-fs-hero);
	line-height: 1.05;
}

.tb-hero__title .tb-hl {
	position: relative;
	color: var(--tb-teal-strong);
}

[data-theme="dark"] .tb-hero__title .tb-hl {
	color: var(--tb-teal);
}

.tb-hero__lead {
	max-width: 34rem;
	margin: 0 0 1.75rem;
	color: var(--tb-body);
	font-size: 1.125rem;
}

.tb-hero__search {
	max-width: 34rem;
}

.tb-hero__visual {
	position: relative;
}

.tb-hero__frame {
	position: relative;
	padding: 0.75rem;
	border-radius: calc(var(--tb-radius) + 6px);
	background: var(--tb-surface);
	border: 1px solid var(--tb-border);
	box-shadow: var(--tb-shadow-md);
}

.tb-hero__frame svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--tb-radius);
}

.tb-hero__stat {
	position: absolute;
	left: -0.5rem;
	bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.7rem 1rem;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-surface);
	border: 1px solid var(--tb-border);
	box-shadow: var(--tb-shadow-sm);
}

.tb-hero__stat-icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--tb-teal-soft);
	color: var(--tb-teal-strong);
}

.tb-hero__stat b {
	display: block;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 1rem;
}

.tb-hero__stat span {
	color: var(--tb-muted);
	font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   8. Category grid
   -------------------------------------------------------------------------- */
.tb-cats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
}

.tb-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
	transition: transform var(--tb-speed) var(--tb-ease), box-shadow var(--tb-speed) var(--tb-ease), border-color var(--tb-speed) var(--tb-ease);
}

.tb-cat:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--tb-cat, var(--tb-teal)) 45%, var(--tb-border));
	box-shadow: var(--tb-shadow-sm);
}

.tb-cat__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--tb-cat, var(--tb-teal)) 12%, transparent);
	color: var(--tb-cat, var(--tb-teal));
}

.tb-cat__name {
	margin: 0;
	font-size: 1.0625rem;
	color: var(--tb-ink);
}

.tb-cat__count {
	color: var(--tb-muted);
	font-size: 0.82rem;
}

.tb-cat__arrow {
	position: absolute;
	top: 1.1rem;
	right: 1.1rem;
	color: var(--tb-border-strong);
	transition: transform var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-cat:hover .tb-cat__arrow {
	color: var(--tb-cat, var(--tb-teal));
	transform: translate(3px, -3px);
}

/* All-categories index: cards balanced across columns */
.tb-catindex {
	column-count: 3;
	column-gap: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
}

.tb-catcard {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 0 0 clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
	padding: clamp(1.1rem, 1rem + 1vw, 1.5rem);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
	transition: border-color var(--tb-speed) var(--tb-ease), box-shadow var(--tb-speed) var(--tb-ease);
}

.tb-catcard:hover {
	border-color: color-mix(in srgb, var(--tb-cat, var(--tb-teal)) 40%, var(--tb-border));
	box-shadow: var(--tb-shadow-sm);
}

.tb-catcard__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-bottom: 0.9rem;
	margin-bottom: 0.35rem;
	border-bottom: 1px solid var(--tb-border);
}

.tb-catcard__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--tb-cat, var(--tb-teal)) 12%, transparent);
	color: var(--tb-cat, var(--tb-teal));
}

.tb-catcard__titles {
	min-width: 0;
}

.tb-catcard__title {
	margin: 0;
	font-size: 1.1rem;
}

.tb-catcard__title a {
	color: var(--tb-ink);
}

.tb-catcard__title a:hover {
	color: var(--tb-teal-strong);
}

.tb-catcard__meta {
	margin: 0.15rem 0 0;
	color: var(--tb-muted);
	font-size: 0.78rem;
}

.tb-catcard__list {
	display: grid;
	list-style: none;
}

.tb-catcard__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.5rem 0.55rem;
	border-radius: var(--tb-radius-sm);
	color: var(--tb-body);
	font-size: 0.9rem;
	transition: background var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-catcard__link:hover {
	background: var(--tb-bg-soft);
	color: var(--tb-teal-deep);
}

.tb-catcard__name {
	min-width: 0;
}

.tb-catcard__stats {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 0.45rem;
}

.tb-catcard__note {
	color: var(--tb-muted);
	font-size: 0.7rem;
}

.tb-catcard__count {
	min-width: 1.5rem;
	padding: 0.05rem 0.4rem;
	border-radius: var(--tb-radius-pill);
	background: var(--tb-bg-soft);
	color: var(--tb-muted);
	font-size: 0.7rem;
	text-align: center;
}

.tb-catcard__link:hover .tb-catcard__count {
	background: var(--tb-surface);
	color: var(--tb-teal-deep);
}

@media (max-width: 1080px) {
	.tb-catindex {
		column-count: 2;
	}
}

@media (max-width: 720px) {
	.tb-catindex {
		column-count: 1;
	}
}

/* --------------------------------------------------------------------------
   9. Thumbnails
   -------------------------------------------------------------------------- */
.tb-thumb {
	position: relative;
	aspect-ratio: var(--tb-ratio, 16 / 9);
	overflow: hidden;
	border-radius: var(--tb-radius);
	background: var(--tb-teal-tint);
}

.tb-thumb__img,
.tb-thumb .tb-cover__svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 500ms var(--tb-ease);
}

.tb-cover__svg {
	position: absolute;
	inset: 0;
}

.tb-thumb--hero {
	aspect-ratio: 16 / 10;
	border-radius: var(--tb-radius);
}

/* --------------------------------------------------------------------------
   10. Article card
   -------------------------------------------------------------------------- */
.tb-grid {
	display: grid;
	gap: 1.75rem;
}

.tb-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tb-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tb-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tb-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.tb-card__title {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.32;
}

.tb-card__title a {
	color: var(--tb-ink);
	background-image: linear-gradient(var(--tb-teal), var(--tb-teal));
	background-size: 0% 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-card:hover .tb-card__title a {
	background-size: 100% 2px;
	color: var(--tb-teal-deep);
}

.tb-card:hover .tb-thumb__img,
.tb-card:hover .tb-cover__svg {
	transform: scale(1.05);
}

.tb-card__excerpt {
	margin: 0;
	color: var(--tb-muted);
	font-size: 0.95rem;
}

.tb-card--wide {
	flex-direction: row;
	align-items: center;
	gap: 1.25rem;
}

.tb-card--wide .tb-thumb {
	flex: 0 0 42%;
}

/* Editorial (feature / picks) */
.tb-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(1.5rem, 1rem + 3vw, 3.25rem);
	align-items: center;
}

.tb-feature__body {
	max-width: 34rem;
}

.tb-feature__title {
	margin: 0.5rem 0 1rem;
	font-size: clamp(1.6rem, 1.15rem + 2vw, 2.35rem);
	line-height: 1.15;
}

.tb-feature__title a {
	color: var(--tb-ink);
}

.tb-feature__title a:hover {
	color: var(--tb-teal-deep);
}

.tb-feature__desc {
	margin: 0 0 1.25rem;
	color: var(--tb-body);
}

.tb-feature__cta {
	margin: 1.5rem 0 0;
}

.tb-feature__media .tb-thumb {
	aspect-ratio: 4 / 3;
}

@media (max-width: 1200px) {
	.tb-home-grid__main .tb-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Editor's picks: full-width feature + two text cards */
.tb-picks {
	display: grid;
	gap: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
}

.tb-pick-feature {
	position: relative;
	display: grid;
	min-height: clamp(320px, 32vw, 430px);
	overflow: hidden;
	border-radius: calc(var(--tb-radius) + 4px);
	background: var(--tb-teal-deep);
}

.tb-pick-feature__media {
	position: absolute;
	inset: 0;
	display: block;
}

.tb-pick-feature__media .tb-thumb {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: auto;
	border-radius: 0;
}

.tb-pick-feature__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
	padding: clamp(1.25rem, 1rem + 1.8vw, 2.25rem);
	/* Lets clicks fall through to the image link, but not the links inside. */
	pointer-events: none;
	/* A light scrim at the top keeps the white pill legible over pale cover
	   art, plus the heavier gradient at the bottom for the title. */
	background:
		linear-gradient(to bottom, rgba(6, 22, 26, 0.38) 0%, rgba(6, 22, 26, 0) 30%),
		linear-gradient(
			to top,
			rgba(6, 22, 26, 0.92) 0%,
			rgba(6, 22, 26, 0.55) 42%,
			rgba(6, 22, 26, 0) 72%
		);
}

.tb-pick-feature__body a {
	pointer-events: auto;
}

.tb-pick-feature__body .tb-badge--solid {
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 12px rgba(6, 22, 26, 0.3);
	color: #16323a;
}

.tb-pick-feature__body .tb-badge--solid:hover {
	background: #ffffff;
}

.tb-pick-feature__title {
	max-width: 34rem;
	margin: 0 0 0.55rem;
	font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
	line-height: 1.15;
}

.tb-pick-feature__title a {
	color: #ffffff;
}

.tb-pick-feature__title a:hover {
	color: #d8f6f6;
}

.tb-pick-feature__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--tb-fs-meta);
}

.tb-pick-feature__meta .tb-icon {
	color: #ffffff;
}

.tb-pick-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
}

.tb-pick-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	padding: clamp(1.25rem, 1rem + 1.5vw, 1.9rem);
	border: 1px solid var(--tb-border);
	border-radius: calc(var(--tb-radius) + 4px);
	background: var(--tb-surface);
	transition: border-color var(--tb-speed) var(--tb-ease), box-shadow var(--tb-speed) var(--tb-ease);
}

.tb-pick-card:hover {
	border-color: var(--tb-border-strong);
	box-shadow: var(--tb-shadow-sm);
}

.tb-pick-card__title {
	margin: 0;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
	line-height: 1.25;
}

.tb-pick-card__title a {
	color: var(--tb-ink);
}

.tb-pick-card__title a:hover {
	color: var(--tb-teal-strong);
}

.tb-pick-card__excerpt {
	margin: 0;
	color: var(--tb-muted);
	font-size: 0.95rem;
}

.tb-pick-card__foot {
	width: 100%;
	margin: auto 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--tb-border);
}

.tb-pick-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--tb-font-head);
	font-size: 0.92rem;
	font-weight: 700;
}

.tb-pick-card__link .tb-icon {
	transition: transform var(--tb-speed) var(--tb-ease);
}

.tb-pick-card__link:hover .tb-icon {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. Home layout (latest + sidebar)
   -------------------------------------------------------------------------- */
.tb-home-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(1.75rem, 1rem + 2vw, 3rem);
	align-items: start;
}

.tb-sidebar {
	position: sticky;
	top: 96px;
}

.tb-widget {
	padding: 1.35rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
}

.tb-widget + .tb-widget {
	margin-top: 1.5rem;
}

/* Article sidebar lists */
.tb-post-list {
	display: grid;
	list-style: none;
}

.tb-post-list__item {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 0.75rem;
	align-items: center;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--tb-border);
}

.tb-post-list__item:first-child {
	padding-top: 0;
}

.tb-post-list__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.tb-post-list__media {
	display: block;
	overflow: hidden;
	border-radius: var(--tb-radius-sm);
}

.tb-post-list__media .tb-thumb {
	border-radius: inherit;
}

.tb-post-list__title {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.35;
}

.tb-post-list__title a {
	color: var(--tb-ink);
}

.tb-post-list__title a:hover {
	color: var(--tb-teal-strong);
}

.tb-post-list__meta {
	margin: 0.3rem 0 0;
	color: var(--tb-muted);
	font-size: 0.76rem;
}

.tb-cat-list {
	display: grid;
	list-style: none;
}

.tb-cat-list__item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.5rem 0.4rem;
	border-radius: var(--tb-radius-sm);
	color: var(--tb-body);
	font-size: 0.92rem;
	transition: background var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-cat-list__item:hover {
	background: var(--tb-bg-soft);
	color: var(--tb-teal-deep);
}

.tb-cat-list__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: color-mix(in srgb, var(--tb-cat, var(--tb-teal)) 12%, transparent);
	color: var(--tb-cat, var(--tb-teal));
}

.tb-cat-list__name {
	flex: 1;
	min-width: 0;
	font-weight: 600;
}

.tb-cat-list__arrow {
	flex: none;
	color: var(--tb-muted);
	transition: transform var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-cat-list__item:hover .tb-cat-list__arrow {
	transform: translateX(3px);
	color: var(--tb-teal-strong);
}

.tb-widget__title {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 1rem;
	font-size: 1.05rem;
}

.tb-widget__title .tb-icon {
	color: var(--tb-star);
}

/* --------------------------------------------------------------------------
   12. Trending list
   -------------------------------------------------------------------------- */
.tb-widget--trending .tb-widget__title {
	margin-bottom: 0;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--tb-border);
}

.tb-trending {
	display: grid;
	list-style: none;
}

.tb-trending__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.9rem;
	align-items: start;
	padding: 1rem 0;
	border-top: 1px solid var(--tb-border);
}

.tb-trending__item:first-child {
	padding-top: 1rem;
	border-top: 0;
}

.tb-trending__item:last-child {
	padding-bottom: 0;
}

.tb-trending__rank {
	min-width: 1.9rem;
	/* Mixed toward white (not the surface) so it stays a light, decorative
	   teal in both colour schemes. */
	color: color-mix(in srgb, var(--tb-teal) 55%, #ffffff);
	font-family: var(--tb-font-head);
	font-size: 1.7rem;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

.tb-trending__body {
	display: grid;
	gap: 0.4rem;
	justify-items: start;
	min-width: 0;
}

.tb-trending__title {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.35;
}

.tb-trending__title a {
	color: var(--tb-ink);
}

.tb-trending__title a:hover {
	color: var(--tb-teal-strong);
}

.tb-trending__meta {
	margin: 0;
	color: var(--tb-muted);
	font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   13. Newsletter
   -------------------------------------------------------------------------- */
.tb-newsletter {
	position: relative;
	overflow: hidden;
	border-radius: calc(var(--tb-radius) + 8px);
	background: linear-gradient(135deg, var(--tb-teal-soft), var(--tb-teal-tint));
	border: 1px solid color-mix(in srgb, var(--tb-teal) 25%, var(--tb-border));
	padding: clamp(2rem, 1rem + 4vw, 3.5rem);
}

.tb-newsletter__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 2rem;
	align-items: center;
}

.tb-newsletter__title {
	margin: 0.4rem 0 0.75rem;
	font-size: var(--tb-fs-h2);
}

.tb-newsletter__desc {
	margin: 0 0 1.5rem;
	max-width: 34rem;
	color: var(--tb-body);
}

.tb-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	max-width: 30rem;
}

.tb-newsletter__form .tb-field {
	flex: 1 1 16rem;
}

.tb-newsletter__note {
	margin: 0.85rem 0 0;
	color: var(--tb-muted);
	font-size: 0.85rem;
}

.tb-newsletter__art {
	justify-self: center;
	width: 100%;
	max-width: 220px;
}

.tb-newsletter__art svg {
	width: 100%;
	height: auto;
}

.tb-newsletter__status {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--tb-teal-deep);
}

.tb-newsletter__status[hidden] {
	display: none;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.tb-footer {
	background: var(--tb-footer-bg);
	color: var(--tb-footer-text);
	padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 1.5rem;
}

.tb-footer a {
	color: var(--tb-footer-text);
}

.tb-footer a:hover {
	color: #fff;
}

.tb-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.tb-footer .tb-logo {
	color: #fff;
	font-size: 1.35rem;
}

.tb-footer__tagline {
	margin: 0.6rem 0 0.9rem;
	color: var(--tb-teal);
	font-family: var(--tb-font-head);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tb-footer__desc {
	max-width: 28rem;
	margin: 0 0 1.35rem;
	font-size: 0.95rem;
}

.tb-footer__contact {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1.35rem;
	list-style: none;
	color: var(--tb-footer-text);
	font-size: 0.9rem;
}

.tb-footer__contact li {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.tb-footer__contact .tb-icon {
	flex: none;
	opacity: 0.7;
}

.tb-footer__contact a {
	color: inherit;
	overflow-wrap: anywhere;
}

.tb-footer__contact a:hover {
	color: #fff;
}

.tb-social {
	display: flex;
	gap: 0.5rem;
	list-style: none;
}

.tb-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: #cfdadc;
	transition: all var(--tb-speed) var(--tb-ease);
}

.tb-social a:hover {
	background: var(--tb-teal);
	color: #05171a;
	transform: translateY(-2px);
}

.tb-footer__col h2 {
	margin: 0 0 1rem;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tb-footer__col ul {
	list-style: none;
	display: grid;
	gap: 0.55rem;
}

.tb-footer__col a {
	font-size: 0.95rem;
}

.tb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: clamp(2rem, 1rem + 3vw, 3rem);
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.85rem;
}

.tb-footer__heart {
	color: var(--tb-teal);
}

/* --------------------------------------------------------------------------
   15. Entry / single
   -------------------------------------------------------------------------- */
/* Article layout: reading column plus sidebar */
.tb-entry-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
	max-width: 1100px;
	margin-inline: auto;
	padding-block: clamp(1.25rem, 1rem + 1vw, 2rem) clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
	align-items: start;
}

.tb-entry__main {
	min-width: 0;
}

.single .tb-breadcrumbs {
	padding-top: clamp(1.25rem, 1rem + 1vw, 2rem);
}

/* Wider gutter on article pages: bare text needs more room than cards do. */
.single {
	--tb-gutter: clamp(1.375rem, 0.45rem + 2.6vw, 1.75rem);
}

.tb-entry__header {
	margin-bottom: 1.5rem;
}

.tb-entry__subtitle {
	margin: 0.85rem 0 0;
	color: var(--tb-muted);
	font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem);
	line-height: 1.6;
}

/* Byline: who wrote it, and the article actions */
.tb-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--tb-border);
}

.tb-byline__who {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.tb-byline__avatar img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.tb-byline__text {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.tb-byline__name {
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 0.98rem;
	font-weight: 700;
}

.tb-byline__name:hover {
	color: var(--tb-teal-strong);
}

.tb-byline__meta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--tb-muted);
	font-size: 0.83rem;
}

.tb-byline__actions {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.tb-byline__actions .tb-react__btn,
.tb-share {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--tb-border-strong);
	border-radius: 50%;
	background: var(--tb-surface);
	color: var(--tb-body);
	cursor: pointer;
	transition: border-color var(--tb-speed) var(--tb-ease), background var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-byline__actions .tb-react__btn:hover,
.tb-share:hover {
	border-color: var(--tb-teal);
	color: var(--tb-teal-deep);
}

.tb-byline__actions .tb-react.is-active .tb-react__btn,
.tb-share.is-done {
	border-color: var(--tb-teal);
	background: var(--tb-teal-soft);
	color: var(--tb-teal-deep);
}

.tb-entry__title {
	margin: 0.75rem 0 1rem;
	font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
	line-height: 1.12;
}

.tb-entry__thumb {
	margin-bottom: 2rem;
}

.tb-entry__thumb .tb-thumb {
	aspect-ratio: 16 / 9;
}

.tb-entry__content {
	font-size: 1.125rem;
	color: var(--tb-body);
}

.tb-entry__content > * {
	margin-bottom: 1.35em;
}

.tb-entry__content h2,
.tb-entry__content h3,
.tb-entry__content h4 {
	margin-top: 1.75em;
}

.tb-entry__content a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

.tb-entry__content img {
	border-radius: var(--tb-radius);
}

.tb-entry__content ul,
.tb-entry__content ol {
	padding-left: 15px;
}

.tb-entry__content blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.5em;
	border-left: 4px solid var(--tb-teal);
	background: var(--tb-bg-soft);
	border-radius: 0 var(--tb-radius-sm) var(--tb-radius-sm) 0;
	font-size: 1.1em;
	font-style: italic;
	color: var(--tb-ink);
}

.tb-entry__content code {
	padding: 0.15em 0.4em;
	border-radius: 5px;
	background: var(--tb-bg-soft);
	border: 1px solid var(--tb-border);
	font-size: 0.9em;
}

.tb-entry__content pre {
	overflow: auto;
	padding: 1.25rem;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-footer-bg);
	color: #e6f1f2;
}

.tb-entry__content pre code {
	background: none;
	border: 0;
	padding: 0;
}

/* Table of contents (easy-table-of-contents plugin) */
.tb-entry__content #ez-toc-container {
	margin: 2rem 0;
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-bg-soft);
	box-shadow: none;
}

.tb-entry__content #ez-toc-container .ez-toc-title {
	margin: 0 0 0.85rem;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.tb-entry__content #ez-toc-container ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-entry__content #ez-toc-container ul li {
	margin: 0.3rem 0;
}

.tb-entry__content #ez-toc-container ul li a {
	color: var(--tb-body);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
}

.tb-entry__content #ez-toc-container ul li a:hover {
	color: var(--tb-teal-strong);
	text-decoration: underline;
}

.tb-entry__content .ez-toc-list {
	column-width: 15rem;
	column-gap: 1.5rem;
}

/* Editorial callout inside the content */
.tb-tip {
	margin: 1.75rem 0;
	padding: 1.1rem 1.25rem;
	border-left: 3px solid var(--tb-teal);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-teal-soft);
}

.tb-tip__title {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.4rem;
	color: var(--tb-teal-deep);
	font-family: var(--tb-font-head);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tb-tip__title::before {
	content: "💡";
	font-size: 1rem;
	letter-spacing: 0;
}

.tb-tip p {
	margin: 0;
	font-size: 1rem;
}

.tb-tip > :last-child {
	margin-bottom: 0;
}

.tb-entry__footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tb-border);
}

.tb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
}

.tb-author-box {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
}

.tb-author-box img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
}

.tb-author-box__name {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
}

.tb-author-box__bio {
	margin: 0;
	color: var(--tb-muted);
	font-size: 0.95rem;
}

/* Post navigation */
.tb-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2rem;
}

.tb-post-nav a {
	display: block;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
	transition: all var(--tb-speed) var(--tb-ease);
}

.tb-post-nav a:hover {
	border-color: var(--tb-teal);
	box-shadow: var(--tb-shadow-sm);
}

.tb-post-nav__dir {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--tb-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tb-post-nav__title {
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-weight: 700;
}

.tb-post-nav .next {
	text-align: right;
}

/* --------------------------------------------------------------------------
   16. Archive
   -------------------------------------------------------------------------- */
.tb-archive-head {
	padding-block: clamp(2rem, 1rem + 3vw, 3.25rem);
	background: var(--tb-bg-soft);
	border-bottom: 1px solid var(--tb-border);
}

.tb-archive-head__title {
	margin: 0.5rem 0 0.6rem;
	font-size: var(--tb-fs-h2);
}

.tb-archive-head__desc {
	max-width: 44rem;
	margin: 0;
	color: var(--tb-muted);
}

.tb-archive-head__desc p:last-child {
	margin-bottom: 0;
}

.tb-archive-head__search {
	max-width: 32rem;
	margin-top: 1.25rem;
}

/* Author / user post archive */
.tb-author-hero {
	padding-block: clamp(2rem, 1rem + 3vw, 3.25rem);
	background:
		radial-gradient(70% 120% at 82% 0%, var(--tb-teal-soft) 0%, transparent 62%),
		var(--tb-bg-soft);
	border-bottom: 1px solid var(--tb-border);
}

.tb-author-hero__inner {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 1rem + 2.5vw, 2.5rem);
}

.tb-author-hero__avatar img {
	width: 116px;
	height: 116px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--tb-surface);
	box-shadow: var(--tb-shadow-sm);
	background: var(--tb-teal-soft);
}

.tb-author-hero__body {
	min-width: 0;
}

.tb-author-hero__name {
	margin: 0.35rem 0 0.6rem;
	font-size: var(--tb-fs-h2);
}

.tb-author-hero__bio {
	max-width: 46rem;
	margin: 0 0 1.1rem;
	color: var(--tb-body);
}

.tb-author-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.35rem;
	list-style: none;
	color: var(--tb-muted);
	font-size: var(--tb-fs-meta);
}

.tb-author-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.tb-author-hero__meta .tb-icon {
	color: var(--tb-teal);
	flex: none;
}

.tb-author-hero__meta a {
	color: var(--tb-muted);
}

.tb-author-hero__meta a:hover {
	color: var(--tb-teal-strong);
}

@media (max-width: 640px) {
	.tb-author-hero__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.tb-author-hero__avatar img {
		width: 88px;
		height: 88px;
	}
}

.tb-breadcrumbs {
	margin-bottom: 1rem;
	font-size: 0.82rem;
	color: var(--tb-muted);
}

.tb-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
}

.tb-breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.4rem;
	color: var(--tb-border-strong);
}

.tb-breadcrumbs a {
	color: var(--tb-muted);
}

.tb-breadcrumbs a:hover {
	color: var(--tb-teal-strong);
}

/* --------------------------------------------------------------------------
   17. Pagination
   -------------------------------------------------------------------------- */
.tb-pagination,
.tb-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	margin-top: clamp(2rem, 1rem + 3vw, 3rem);
}

.tb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-surface);
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-weight: 700;
	font-size: 0.9rem;
}

.tb-pagination .page-numbers:hover {
	border-color: var(--tb-teal);
	color: var(--tb-teal-deep);
}

.tb-pagination .page-numbers.current {
	background: var(--tb-teal-strong);
	border-color: var(--tb-teal-strong);
	color: #fff;
}

.tb-pagination .page-numbers.prev .tb-icon {
	transform: rotate(180deg);
}

.tb-pagination .page-numbers.dots {
	min-width: auto;
	border-color: transparent;
	background: transparent;
	color: var(--tb-muted);
}

.tb-pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* --------------------------------------------------------------------------
   18. Search & 404 & pages
   -------------------------------------------------------------------------- */
.tb-empty {
	max-width: 40rem;
	margin-inline: auto;
	padding: clamp(2rem, 1rem + 3vw, 3.5rem);
	border: 1px dashed var(--tb-border-strong);
	border-radius: var(--tb-radius);
	text-align: center;
	background: var(--tb-surface);
}

.tb-empty__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--tb-teal-soft);
	color: var(--tb-teal-strong);
}

.tb-empty h2 {
	margin-bottom: 0.5rem;
}

.tb-empty p {
	color: var(--tb-muted);
}

.tb-empty .tb-search-form {
	max-width: 26rem;
	margin: 1.25rem auto 0;
}

.tb-page {
	max-width: 760px;
	margin-inline: auto;
}

.tb-page__content {
	font-size: 1.125rem;
}

/* Contact page */
.tb-contact {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 2rem;
	align-items: start;
}

.tb-contact__panel {
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
}

.tb-contact__aside {
	display: grid;
	gap: 1.25rem;
}

.tb-contact__title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
}

.tb-contact__text {
	margin: 0 0 1.15rem;
	color: var(--tb-body);
	font-size: 0.95rem;
}

.tb-contact__note {
	margin: 0;
	color: var(--tb-muted);
	font-size: 0.82rem;
	line-height: 1.5;
}

.tb-contact__panel--cta {
	border-color: transparent;
	background: var(--tb-teal-soft);
}

.tb-contact__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
}

.tb-contact__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.tb-contact__actions .tb-contact__note {
	flex: 1;
	min-width: 13rem;
}

.tb-contact__list {
	display: grid;
	gap: 1rem;
	list-style: none;
}

.tb-contact__list li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.tb-contact__list .tb-icon {
	flex: none;
	margin-top: 2px;
	color: var(--tb-teal-strong);
}

.tb-contact__list a {
	color: var(--tb-body);
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.tb-contact__list a:hover {
	color: var(--tb-teal-strong);
}

.tb-contact .tb-social {
	display: flex;
	gap: 0.35rem;
	margin-bottom: 0.9rem;
	list-style: none;
}

.tb-contact .tb-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--tb-border);
	border-radius: 50%;
	color: var(--tb-body);
	transition: border-color var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-contact .tb-social a:hover {
	border-color: var(--tb-teal);
	color: var(--tb-teal-deep);
}

/* Before-you-write questions */
.tb-faq {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.tb-faq__item {
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-surface);
}

.tb-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 48px;
	padding: 1rem 1.15rem;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.tb-faq__item summary::-webkit-details-marker {
	display: none;
}

.tb-faq__item summary:hover {
	color: var(--tb-teal-strong);
}

.tb-faq__item summary .tb-icon {
	flex: none;
	color: var(--tb-muted);
	transition: transform var(--tb-speed) var(--tb-ease);
}

.tb-faq__item[open] summary .tb-icon {
	transform: rotate(180deg);
}

.tb-faq__item p {
	margin: 0;
	padding: 0 1.15rem 1.15rem;
	color: var(--tb-body);
	font-size: 0.95rem;
}

@media (max-width: 640px) {
	.tb-contact__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tb-form-row {
	display: grid;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.tb-form-row label {
	font-family: var(--tb-font-head);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--tb-ink);
}

.tb-notice {
	padding: 0.9rem 1.1rem;
	border-radius: var(--tb-radius-sm);
	font-size: 0.95rem;
	margin-bottom: 1.25rem;
}

.tb-notice--ok {
	background: color-mix(in srgb, #2fa36b 14%, transparent);
	color: #1d7048;
}

.tb-notice--err {
	background: color-mix(in srgb, #d9534f 14%, transparent);
	color: #a5352f;
}

.tb-notice a {
	font-weight: 700;
	text-decoration: underline;
	color: inherit;
}

/* --------------------------------------------------------------------------
   Front-end post submission
   -------------------------------------------------------------------------- */
.tb-submit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	align-items: start;
}

.tb-submit__side {
	display: grid;
	gap: 1.5rem;
}

.tb-submit-form {
	padding: clamp(1.25rem, 1rem + 2vw, 2rem);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
}

.tb-submit__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tb-submit-form fieldset.tb-form-row {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.tb-submit-form legend {
	margin-bottom: 0.4rem;
	padding: 0;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 0.9rem;
	font-weight: 700;
}

/* WordPress editor (TinyMCE) inside the submission form */
.tb-form-row--editor .wp-editor-wrap {
	margin-top: 0.35rem;
}

.tb-submit-form .wp-editor-container {
	border: 1px solid var(--tb-border-strong);
	border-radius: var(--tb-radius-sm);
	overflow: hidden;
	background: var(--tb-surface);
}

.tb-submit-form .wp-editor-wrap:focus-within .wp-editor-container {
	border-color: var(--tb-teal);
	box-shadow: var(--tb-ring);
}

.tb-form-row--error .wp-editor-container {
	border-color: #d9534f;
}

.tb-submit-form .wp-editor-tools {
	padding: 0.35rem 0.35rem 0;
}

.tb-submit-form div.mce-toolbar-grp {
	border-bottom: 1px solid var(--tb-border);
	background: var(--tb-bg-soft);
}

.tb-submit-form .mce-tinymce {
	border: 0;
	box-shadow: none;
}

.tb-submit-form .mce-edit-area {
	border-top: 1px solid var(--tb-border);
}

.tb-submit-form textarea.wp-editor-area {
	border: 0;
	padding: 1rem;
	color: var(--tb-body);
	font-family: var(--tb-font-body);
	font-size: 1rem;
	line-height: 1.7;
}

.tb-submit-form .wp-switch-editor {
	border-radius: 6px 6px 0 0;
	font-family: var(--tb-font-head);
	font-weight: 600;
}

.tb-submit-form .mce-btn,
.tb-submit-form .mce-btn.mce-listbox {
	border-radius: 6px;
}

.tb-field--file {
	padding: 0.6rem;
}

.tb-form-hint {
	margin: 0.35rem 0 0;
	color: var(--tb-muted);
	font-size: 0.82rem;
}

.tb-field-error {
	margin: 0.35rem 0 0;
	color: #a5352f;
	font-size: 0.85rem;
	font-weight: 600;
}

.tb-check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.4rem 0.9rem;
	max-height: 15rem;
	overflow-y: auto;
	padding: 0.75rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-bg-soft);
}

.tb-check {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}

.tb-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--tb-teal-strong);
	flex: none;
}

.tb-submit-form__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tb-border);
}

.tb-submit-form__actions .tb-form-hint {
	margin: 0;
}

.tb-submit-form__actions .tb-btn[aria-disabled="true"] {
	opacity: 0.6;
	pointer-events: none;
}

.tb-guidelines {
	display: grid;
	gap: 0.6rem;
	list-style: none;
	color: var(--tb-muted);
	font-size: 0.92rem;
}

.tb-guidelines li {
	position: relative;
	padding-left: 1.35rem;
}

.tb-guidelines li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tb-teal);
}

.tb-submit__list {
	display: grid;
	gap: 0.75rem;
	list-style: none;
}

.tb-submit__list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--tb-border);
}

.tb-submit__list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.tb-submit__post-title {
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.tb-submit__post-title:hover {
	color: var(--tb-teal-strong);
}

@media (max-width: 900px) {
	.tb-submit {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --------------------------------------------------------------------------
   User dashboard
   -------------------------------------------------------------------------- */
.tb-dash-head {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 1rem + 2vw, 1.75rem);
}

.tb-dash-head__avatar img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--tb-surface);
	box-shadow: var(--tb-shadow-sm);
	background: var(--tb-teal-soft);
}

.tb-dash-head__body {
	min-width: 0;
}

.tb-dash-head__body .tb-archive-head__title {
	margin: 0.25rem 0 0.4rem;
}

.tb-dash {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	align-items: start;
}

.tb-dash__nav {
	position: sticky;
	top: 96px;
}

.tb-dash-nav {
	display: grid;
	gap: 0.25rem;
	list-style: none;
	padding: 0.5rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
}

.tb-dash-nav__item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.7rem 0.8rem;
	border-radius: var(--tb-radius-sm);
	color: var(--tb-body);
	font-family: var(--tb-font-head);
	font-size: 0.95rem;
	font-weight: 600;
}

.tb-dash-nav__item .tb-icon {
	flex: none;
	color: var(--tb-muted);
}

.tb-dash-nav__item:hover {
	background: var(--tb-bg-soft);
	color: var(--tb-ink);
}

.tb-dash-nav__item.is-active {
	background: var(--tb-teal-soft);
	color: var(--tb-teal-deep);
}

.tb-dash-nav__item.is-active .tb-icon {
	color: var(--tb-teal-strong);
}

[data-theme="dark"] .tb-dash-nav__item.is-active {
	color: var(--tb-teal);
}

[data-theme="dark"] .tb-dash-nav__item.is-active .tb-icon {
	color: var(--tb-teal);
}

.tb-dash-nav__label {
	flex: 1;
}

.tb-dash-nav__count {
	padding: 0.1rem 0.5rem;
	border-radius: var(--tb-radius-pill);
	background: var(--tb-bg-soft);
	color: var(--tb-muted);
	font-size: 0.75rem;
}

.tb-dash-nav__item.is-active .tb-dash-nav__count {
	background: var(--tb-surface);
	color: var(--tb-teal-deep);
}

/* Notifications panel */
.tb-dash-notif__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.tb-dash-notif__title {
	margin: 0;
	font-size: 1.15rem;
}

.tb-dash-notif__pill {
	padding: 0.2rem 0.65rem;
	border-radius: var(--tb-radius-pill);
	background: var(--tb-teal-soft);
	color: var(--tb-teal-deep);
	font-size: 0.75rem;
	font-weight: 700;
}

.tb-dash-notif__list {
	display: grid;
	list-style: none;
}

.tb-dash-notif__item {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--tb-border);
}

.tb-dash-notif__item:last-child {
	border-bottom: 0;
}

.tb-dash-notif__item.is-unread {
	padding-inline: 0.65rem;
	border-radius: var(--tb-radius-sm);
	background: color-mix(in srgb, var(--tb-teal) 5%, transparent);
}

.tb-dash-notif__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--tb-notif, var(--tb-teal)) 14%, transparent);
	color: var(--tb-notif, var(--tb-teal));
}

.tb-dash-notif__body {
	flex: 1;
	min-width: 0;
}

.tb-dash-notif__text {
	display: block;
	color: var(--tb-ink);
	font-weight: 600;
}

.tb-dash-notif__text:hover {
	color: var(--tb-teal-strong);
}

.tb-dash-notif__time {
	margin: 0.25rem 0 0;
	color: var(--tb-muted);
	font-size: 0.8rem;
}

.tb-dash-notif__dot {
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: 0.5rem;
	border-radius: 50%;
	background: var(--tb-teal-strong);
}

.tb-dash-notif__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.35rem;
}

.tb-dash-notif__actions form {
	margin: 0;
}

#wpadminbar #wp-admin-bar-tb-notifications .ab-label {
	padding-left: 4px;
	font-weight: 700;
}

.tb-dash-nav__sep {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--tb-border);
}

.tb-dash__heading {
	margin: 0 0 1.25rem;
	font-size: 1.3rem;
}

.tb-dash__head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.tb-dash__head-row .tb-dash__heading {
	margin: 0;
}

.tb-dash__back {
	margin: 0 0 1.25rem;
}

.tb-dash__more {
	margin: 1.25rem 0 0;
}

.tb-dash-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.tb-stat {
	display: grid;
	gap: 0.25rem;
	padding: 1.1rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
	transition: transform var(--tb-speed) var(--tb-ease), border-color var(--tb-speed) var(--tb-ease), box-shadow var(--tb-speed) var(--tb-ease);
}

.tb-stat:hover {
	transform: translateY(-3px);
	border-color: var(--tb-teal);
	box-shadow: var(--tb-shadow-sm);
}

.tb-stat__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 0.35rem;
	border-radius: 12px;
	background: var(--tb-teal-soft);
	color: var(--tb-teal-strong);
}

.tb-stat__value {
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1;
}

.tb-stat__label {
	color: var(--tb-muted);
	font-size: 0.82rem;
}

.tb-dash-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--tb-border);
}

.tb-dash-posts {
	display: grid;
	gap: 0.75rem;
	list-style: none;
}

.tb-dash-post {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
}

.tb-dash-post__main {
	flex: 1 1 16rem;
	min-width: 0;
}

.tb-dash-post__title {
	display: block;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.35;
}

.tb-dash-post__title:hover {
	color: var(--tb-teal-strong);
}

.tb-dash-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.9rem;
	margin: 0.4rem 0 0;
	color: var(--tb-muted);
	font-size: var(--tb-fs-meta);
}

.tb-dash-post__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.tb-dash-post__actions form {
	margin: 0;
}

.tb-btn--danger {
	border-color: color-mix(in srgb, #d9534f 45%, var(--tb-border));
	background: transparent;
	color: #b8433f;
}

.tb-btn--danger:hover {
	border-color: #d9534f;
	background: #d9534f;
	color: #fff;
	box-shadow: none;
}

/* Like / read later */
.tb-react {
	margin: 0;
}

/* Icon-only variant used in the byline: the label is kept for assistive tech */
.tb-react--icon {
	position: relative;
}

.tb-react--icon .tb-react__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.tb-react__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--tb-border-strong);
	border-radius: var(--tb-radius-pill);
	background: var(--tb-surface);
	color: var(--tb-body);
	font-family: var(--tb-font-head);
	font-size: 0.9rem;
	font-weight: 600;
	transition: border-color var(--tb-speed) var(--tb-ease), background var(--tb-speed) var(--tb-ease), color var(--tb-speed) var(--tb-ease);
}

.tb-react__btn:hover {
	border-color: var(--tb-teal);
	color: var(--tb-teal-deep);
}

.tb-react.is-active .tb-react__btn {
	border-color: var(--tb-teal);
	background: var(--tb-teal-soft);
	color: var(--tb-teal-deep);
}

.tb-react.is-active .tb-react__btn .tb-icon {
	fill: currentColor;
}

.tb-react.is-busy .tb-react__btn {
	opacity: 0.6;
	pointer-events: none;
}

.tb-collection-item {
	display: grid;
	gap: 0.75rem;
	align-content: start;
}

.tb-react--inline .tb-react__btn {
	width: 100%;
	justify-content: center;
}

/* Profile form extras */
.tb-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1rem;
}

.tb-form-label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 0.9rem;
	font-weight: 700;
}

.tb-form-fieldset {
	margin: 0 0 1rem;
	padding: 1rem 1.1rem 0;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-sm);
}

.tb-form-fieldset legend {
	padding: 0 0.4rem;
	color: var(--tb-ink);
	font-family: var(--tb-font-head);
	font-size: 0.95rem;
	font-weight: 700;
}

.tb-avatar-row {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.tb-avatar-row__img img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--tb-teal-soft);
}

.tb-avatar-row__body {
	flex: 1;
	min-width: 0;
}

.tb-current-thumb {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.6rem;
}

.tb-current-thumb img {
	width: 88px;
	height: auto;
	border-radius: var(--tb-radius-sm);
}

.tb-field--short {
	min-height: 6rem;
	resize: vertical;
	font-family: inherit;
}

/* --------------------------------------------------------------------------
   Account: log in, sign up, lost & reset password
   -------------------------------------------------------------------------- */
.tb-account {
	max-width: 460px;
	margin-inline: auto;
}

.tb-account-tabs {
	position: relative;
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1.5rem;
	padding: 0.3rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-pill);
	background: var(--tb-surface);
}

/* Highlight that slides between the tabs. */
.tb-account-tabs__indicator {
	position: absolute;
	top: 0.3rem;
	left: 0;
	z-index: 0;
	width: 0;
	height: calc(100% - 0.6rem);
	border-radius: var(--tb-radius-pill);
	background: var(--tb-teal-soft);
	pointer-events: none;
}

.tb-account-tabs__indicator.is-ready {
	transition: transform 300ms var(--tb-ease), width 300ms var(--tb-ease);
}

.no-js .tb-account-tabs__indicator {
	display: none;
}

.tb-account-tab {
	position: relative;
	z-index: 1;
	flex: 1;
	padding: 0.55rem 0.6rem;
	border-radius: var(--tb-radius-pill);
	color: var(--tb-body);
	font-family: var(--tb-font-head);
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
}

.tb-account-tab:hover {
	background: var(--tb-bg-soft);
	color: var(--tb-ink);
}

.tb-account-tab.is-active {
	color: var(--tb-teal-deep);
}

/* With JS the sliding indicator paints the active background. */
.js .tb-account-tab.is-active,
.js .tb-account-tab.is-active:hover {
	background: transparent;
}

.no-js .tb-account-tab.is-active {
	background: var(--tb-teal-soft);
}

[data-theme="dark"] .tb-account-tab.is-active {
	color: var(--tb-teal);
}

.tb-account-form {
	padding: clamp(1.25rem, 1rem + 2vw, 2rem);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
}

.tb-account-form .tb-form-row:last-of-type {
	margin-bottom: 1.25rem;
}

.tb-account-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
}

.tb-account-alt {
	margin: 1.25rem 0 0;
	color: var(--tb-muted);
	font-size: 0.92rem;
	text-align: center;
}

.tb-account-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tb-account-signedin {
	padding: clamp(1.5rem, 1rem + 2vw, 2rem);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
	text-align: center;
}

.tb-account-signedin__avatar img {
	margin-bottom: 0.75rem;
	border-radius: 50%;
}

.tb-account-signedin__text {
	margin: 0 0 1.25rem;
	color: var(--tb-body);
}

.tb-account-signedin__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
}

/* Slide between account views */
@keyframes tb-account-in-right {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes tb-account-in-left {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes tb-account-in-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes tb-account-out-left {
	to {
		opacity: 0;
		transform: translateX(-22px);
	}
}

@keyframes tb-account-out-right {
	to {
		opacity: 0;
		transform: translateX(22px);
	}
}

.tb-account-panel.is-in-right {
	animation: tb-account-in-right 340ms var(--tb-ease) both;
}

.tb-account-panel.is-in-left {
	animation: tb-account-in-left 340ms var(--tb-ease) both;
}

.tb-account-panel.is-in-up {
	animation: tb-account-in-up 300ms var(--tb-ease) both;
}

/* Declared last so the exit animation wins if both classes are present. */
.tb-account-panel.is-leaving-left {
	animation: tb-account-out-left 170ms var(--tb-ease) both;
}

.tb-account-panel.is-leaving-right {
	animation: tb-account-out-right 170ms var(--tb-ease) both;
}

@media (max-width: 1080px) {
	.tb-dash-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.tb-dash {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-dash__nav {
		position: static;
	}

	.tb-dash-nav {
		grid-auto-flow: column;
		grid-auto-columns: max-content;
		overflow-x: auto;
	}

	.tb-dash-nav__sep {
		margin: 0;
		padding: 0 0 0 0.35rem;
		border-top: 0;
		border-left: 1px solid var(--tb-border);
	}
}

@media (max-width: 640px) {
	.tb-dash-stats {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-avatar-row {
		flex-direction: column;
	}

	.tb-dash-head {
		align-items: flex-start;
	}
}

/* --------------------------------------------------------------------------
   19. Comments
   -------------------------------------------------------------------------- */
.tb-comments {
	max-width: 760px;
	margin: 3rem auto 0;
}

.tb-comments__title {
	font-size: 1.35rem;
}

.tb-comments ol,
.tb-comments ul {
	list-style: none;
}

.tb-comments .comment-body {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--tb-border);
}

.tb-comments .children {
	padding-left: 1.5rem;
}

/* --------------------------------------------------------------------------
   20. Reveal animations
   -------------------------------------------------------------------------- */
.tb-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 600ms var(--tb-ease), transform 600ms var(--tb-ease);
}

.tb-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.tb-reveal {
		opacity: 1;
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   21. WordPress core / utilities
   -------------------------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.7rem 1rem;
	background: var(--tb-teal-strong);
	color: #fff;
	border-radius: var(--tb-radius-sm);
}

.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
.wp-block-image figcaption {
	color: var(--tb-muted);
	font-size: 0.85rem;
	text-align: center;
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-quote {
	border-left: 4px solid var(--tb-teal);
	padding-left: 1.25rem;
}

.sticky .tb-card__title::before {
	content: "★ ";
	color: var(--tb-star);
}

.tb-singular .tb-entry__content > p:first-of-type {
	font-size: 1.2em;
}

/* No-JS fallback: expose the primary nav inline, hide JS-only chrome. */
.no-js .tb-menu-toggle,
.no-js .tb-drawer,
.no-js .tb-search-overlay {
	display: none;
}

.no-js .tb-nav {
	overflow-x: auto;
}

@media (max-width: 1080px) {
	.no-js .tb-nav {
		display: block;
		grid-column: 1 / -1;
		padding-bottom: 0.5rem;
	}

	.no-js .tb-header__inner {
		flex-wrap: wrap;
	}
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	.tb-cats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tb-home-grid {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

@media (max-width: 1200px) {
	.tb-nav a {
		padding: 0.5rem 0.55rem;
		font-size: 0.875rem;
	}
}

@media (max-width: 1080px) {
	.tb-header__inner {
		grid-template-columns: auto 1fr;
		min-height: 74px;
	}

	.tb-nav {
		display: none;
	}

	.tb-menu-toggle {
		display: inline-flex;
	}
}

@media (max-width: 960px) {
	.tb-hero__grid,
	.tb-feature,
	.tb-newsletter__grid,
	.tb-contact {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-home-grid,
	.tb-entry-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-sidebar {
		position: static;
	}

	.tb-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tb-newsletter__art {
		display: none;
	}

	.tb-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	:root {
		--tb-radius: 14px;
	}

	.tb-header__inner {
		gap: 0.75rem;
	}

	.tb-header__actions {
		gap: 0.15rem;
	}

	.tb-icon-btn {
		width: 36px;
		height: 36px;
	}

	/* Keeps the account, write and search buttons on one row; the scheme
	   toggle stays available in the drawer. */
	.tb-header .tb-theme-toggle {
		display: none;
	}

	.tb-brand__tagline {
		display: none;
	}

	.tb-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tb-pick-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-pick-feature {
		min-height: 300px;
	}

	.tb-grid--3,
	.tb-grid--2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-card--wide {
		flex-direction: column;
		align-items: stretch;
	}

	.tb-card--wide .tb-thumb {
		flex-basis: auto;
	}

	.tb-post-nav {
		grid-template-columns: 1fr;
	}

	.tb-post-nav .next {
		text-align: left;
	}

	.tb-footer__grid {
		grid-template-columns: 1fr;
	}

	.tb-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.tb-hero__stat {
		left: 0;
	}
}
