/**
 * Toolzio design system + layout.
 * Mobile-first, accessible, light/dark, dependency-free.
 */

/* =====================================================================
 * 1. Design tokens
 * ================================================================== */
:root {
	--tz-accent: #2563eb;
	--tz-accent-2: #7c3aed;
	--tz-cyan: #06b6d4;

	--tz-bg: #f6f8fc;
	--tz-surface: #ffffff;
	--tz-surface-2: #eef2f9;
	--tz-text: #0b1020;
	--tz-muted: #5b647a;
	--tz-border: #e3e8f1;

	--tz-success: #16a34a;
	--tz-error: #dc2626;
	--tz-warning: #d97706;

	--tz-shadow: 0 10px 30px -12px rgba(16, 24, 40, .18);
	--tz-shadow-lg: 0 26px 60px -22px rgba(16, 24, 40, .30);
	--tz-glow: 0 0 0 1px rgba(37, 99, 235, .08), 0 8px 24px -10px rgba(37, 99, 235, .35);

	--tz-radius: 16px;
	--tz-radius-sm: 12px;
	--tz-radius-lg: 24px;

	--tz-container: 1160px;
	--tz-narrow: 760px;

	--tz-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
	--tz-space: clamp(48px, 7vw, 84px);
	--tz-fast: 160ms;
}

[data-theme="dark"] {
	--tz-bg: #070b15;
	--tz-surface: #0e1422;
	--tz-surface-2: #151d2e;
	--tz-text: #eef2fb;
	--tz-muted: #9aa6bf;
	--tz-border: #232d44;

	--tz-accent: #5b8cff;
	--tz-accent-2: #a78bfa;
	--tz-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
	--tz-shadow-lg: 0 26px 60px -22px rgba(0, 0, 0, .7);
	--tz-glow: 0 0 0 1px rgba(91, 140, 255, .12), 0 8px 24px -10px rgba(91, 140, 255, .4);
}

/* =====================================================================
 * 2. Reset & base
 * ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--tz-font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--tz-text);
	background: var(--tz-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background var(--tz-fast) ease, color var(--tz-fast) ease;
}
body.tz-no-scroll { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tz-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tz-accent) 55%, transparent); outline-offset: 2px; border-radius: 4px; }

.tz-container { width: 100%; max-width: var(--tz-container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.tz-narrow { max-width: var(--tz-narrow); }
.tz-center { text-align: center; }
.tz-left { text-align: left; }
.tz-main { display: block; min-height: 50vh; }

.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;
}
.tz-skip {
	position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
	top: 8px; z-index: 1000; background: var(--tz-accent); color: #fff;
	padding: 10px 18px; border-radius: 999px; transition: transform var(--tz-fast) ease;
}
.tz-skip:focus { transform: translateX(-50%) translateY(0); }

/* =====================================================================
 * 3. Header & navigation
 * ================================================================== */
.tz-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--tz-surface) 86%, transparent);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--tz-fast) ease, box-shadow var(--tz-fast) ease;
}
.tz-header.is-scrolled { border-bottom-color: var(--tz-border); box-shadow: var(--tz-shadow); }
.tz-header-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }

.tz-logo { font-weight: 850; font-size: 1.35rem; letter-spacing: -.03em; color: var(--tz-text); }
.tz-logo:hover { text-decoration: none; }
.tz-logo span { color: var(--tz-accent); }
.custom-logo-link { display: inline-flex; }

.tz-nav { margin-inline-start: auto; }
.tz-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tz-menu a {
	display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 10px;
	color: var(--tz-text); font-weight: 600; font-size: .95rem; transition: background var(--tz-fast) ease, color var(--tz-fast) ease;
}
.tz-menu a:hover, .tz-menu .current-menu-item > a { background: var(--tz-surface-2); color: var(--tz-accent); text-decoration: none; }

.tz-header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: 8px; }
.tz-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 12px; border: 1px solid transparent;
	background: transparent; color: var(--tz-text); cursor: pointer; transition: background var(--tz-fast) ease, color var(--tz-fast) ease;
}
.tz-icon-btn:hover { background: var(--tz-surface-2); color: var(--tz-accent); }

.tz-theme-toggle .tz-icon-sun { display: none; }
.tz-theme-toggle .tz-icon-moon { display: inline-flex; }
[data-theme="dark"] .tz-theme-toggle .tz-icon-sun { display: inline-flex; }
[data-theme="dark"] .tz-theme-toggle .tz-icon-moon { display: none; }

.tz-hamburger { display: none; }

/* Mobile menu drawer */
.tz-mobile {
	position: fixed; inset: 66px 0 0 auto; width: min(86vw, 340px); z-index: 120;
	background: var(--tz-surface); border-left: 1px solid var(--tz-border);
	padding: 16px; overflow-y: auto; transform: translateX(100%);
	transition: transform 240ms ease; box-shadow: var(--tz-shadow-lg);
}
.tz-mobile.is-open { transform: translateX(0); }
.tz-mobile-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tz-mobile-menu a {
	display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border-radius: 12px;
	color: var(--tz-text); font-weight: 650; font-size: 1.05rem;
}
.tz-mobile-menu a:hover { background: var(--tz-surface-2); color: var(--tz-accent); text-decoration: none; }
.tz-overlay-backdrop {
	position: fixed; inset: 0; z-index: 110; background: rgba(7, 11, 21, .45);
	opacity: 0; transition: opacity 240ms ease;
}
.tz-overlay-backdrop.is-open { opacity: 1; }

/* =====================================================================
 * 4. Search
 * ================================================================== */
.tz-search { position: relative; width: 100%; }
[data-tz-search-root] { position: relative; }
.tz-search-field {
	display: flex; align-items: center; gap: 10px; background: var(--tz-surface);
	border: 1px solid var(--tz-border); border-radius: 999px; padding: 0 18px;
	box-shadow: var(--tz-shadow); transition: border-color var(--tz-fast) ease, box-shadow var(--tz-fast) ease;
}
.tz-search-field:focus-within { border-color: var(--tz-accent); box-shadow: var(--tz-glow); }
.tz-search-field svg { color: var(--tz-muted); flex: none; }
.tz-search-field input {
	flex: 1; border: 0; background: transparent; font: inherit; color: var(--tz-text);
	min-height: 54px; padding: 0; outline: none;
}
.tz-search-results {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 130;
	background: var(--tz-surface); border: 1px solid var(--tz-border); border-radius: var(--tz-radius);
	box-shadow: var(--tz-shadow-lg); padding: 8px; max-height: min(70vh, 460px); overflow-y: auto;
}
.tz-search-list { display: flex; flex-direction: column; }
.tz-sr {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--tz-text);
}
.tz-sr:hover, .tz-sr.is-active { background: var(--tz-surface-2); text-decoration: none; }
.tz-sr-icon {
	flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px; background: color-mix(in srgb, var(--tz-accent) 10%, transparent); color: var(--tz-accent);
}
.tz-sr-body { display: flex; flex-direction: column; min-width: 0; }
.tz-sr-name { font-weight: 700; }
.tz-sr-meta { font-size: .82rem; color: var(--tz-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-sr-empty, .tz-sr-head { padding: 12px; color: var(--tz-muted); font-size: .85rem; }
.tz-sr-head { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.tz-sr-group { padding: 4px 0; }
.tz-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.tz-chip {
	border: 1px solid var(--tz-border); background: var(--tz-surface-2); color: var(--tz-text);
	padding: 7px 14px; border-radius: 999px; font: inherit; font-size: .85rem; cursor: pointer;
}
.tz-chip:hover { border-color: var(--tz-accent); color: var(--tz-accent); }

/* Search overlay (header) */
.tz-search-overlay {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--tz-surface); border-bottom: 1px solid var(--tz-border);
	box-shadow: var(--tz-shadow); padding: 16px 0; opacity: 0; transform: translateY(-8px);
	transition: opacity 180ms ease, transform 180ms ease;
}
.tz-search-overlay.is-open { opacity: 1; transform: none; }
.tz-search-overlay-inner { display: flex; align-items: center; gap: 12px; }
.tz-search-overlay-inner .tz-search { flex: 1; }

/* =====================================================================
 * 5. Hero
 * ================================================================== */
.tz-hero {
	position: relative; text-align: center; padding: clamp(40px, 8vw, 84px) 0 clamp(28px, 5vw, 48px);
	overflow: hidden;
}
.tz-hero::before {
	content: ""; position: absolute; inset: -40% 50% auto; width: 120%; height: 480px;
	transform: translateX(-50%);
	background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--tz-accent) 18%, transparent), transparent 70%),
		radial-gradient(40% 50% at 75% 10%, color-mix(in srgb, var(--tz-accent-2) 16%, transparent), transparent 70%);
	z-index: -1; pointer-events: none;
}
.tz-hero-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
	padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 650;
	color: var(--tz-accent); background: color-mix(in srgb, var(--tz-accent) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--tz-accent) 22%, transparent);
}
.tz-hero-eyebrow svg { color: var(--tz-accent); }
.tz-hero-title { margin: 0 0 16px; font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 850; }
.tz-hero-sub { max-width: 620px; margin: 0 auto 26px; color: var(--tz-muted); font-size: clamp(1rem, 2.2vw, 1.18rem); }
.tz-hero-search { max-width: 640px; margin: 0 auto; }
.tz-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 22px 0 0; padding: 0; color: var(--tz-muted); font-size: .9rem; font-weight: 600; }
.tz-trust li { display: inline-flex; align-items: center; gap: 7px; }
.tz-trust svg { color: var(--tz-success); }

/* =====================================================================
 * 6. Sections, grids & cards
 * ================================================================== */
.tz-section { padding-block: clamp(34px, 5vw, 56px); }
.tz-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.tz-section-head.tz-center { justify-content: center; }
.tz-section-head h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.tz-section-head h2 svg { color: var(--tz-accent); }
.tz-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--tz-accent); }
.tz-clear { border: 0; background: none; cursor: pointer; font: inherit; }

.tz-grid { display: grid; gap: 16px; }
.tz-grid-tools { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.tz-grid-cats { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.tz-grid-features { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tz-grid-posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tz-grid-related { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.tz-card {
	display: flex; align-items: flex-start; gap: 14px; padding: 18px;
	background: var(--tz-surface); border: 1px solid var(--tz-border); border-radius: var(--tz-radius);
	color: var(--tz-text); transition: transform var(--tz-fast) ease, border-color var(--tz-fast) ease, box-shadow var(--tz-fast) ease;
	position: relative; min-height: 96px;
}
.tz-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tz-accent) 50%, var(--tz-border)); box-shadow: var(--tz-shadow); text-decoration: none; }
.tz-card:active { transform: translateY(0); }
.tz-card-icon {
	flex: none; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px; color: #fff;
	background: linear-gradient(135deg, var(--tz-accent), var(--tz-accent-2));
	box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--tz-accent) 80%, transparent);
}
.tz-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tz-card-title { font-weight: 750; font-size: 1.02rem; }
.tz-card-desc { color: var(--tz-muted); font-size: .88rem; line-height: 1.45; }
.tz-card-cat { color: var(--tz-accent); font-size: .76rem; font-weight: 650; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.tz-card-arrow { margin-inline-start: auto; color: var(--tz-muted); align-self: center; transition: transform var(--tz-fast) ease, color var(--tz-fast) ease; }
.tz-card:hover .tz-card-arrow { color: var(--tz-accent); transform: translateX(3px); }
.tz-cat-card .tz-card-icon { background: linear-gradient(135deg, color-mix(in srgb, var(--tz-accent) 16%, var(--tz-surface-2)), color-mix(in srgb, var(--tz-accent-2) 16%, var(--tz-surface-2))); color: var(--tz-accent); }

/* Features */
.tz-feature { padding: 24px; background: var(--tz-surface); border: 1px solid var(--tz-border); border-radius: var(--tz-radius); }
.tz-feature-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; color: var(--tz-accent); background: color-mix(in srgb, var(--tz-accent) 10%, transparent); margin-bottom: 14px; }
.tz-feature h3 { margin: 0 0 6px; }
.tz-feature p { margin: 0; color: var(--tz-muted); font-size: .92rem; }

/* Privacy banner */
.tz-privacy-banner {
	display: flex; align-items: center; gap: 20px; padding: clamp(20px, 4vw, 34px);
	border-radius: var(--tz-radius-lg); border: 1px solid var(--tz-border);
	background: linear-gradient(135deg, color-mix(in srgb, var(--tz-accent) 9%, var(--tz-surface)), color-mix(in srgb, var(--tz-accent-2) 9%, var(--tz-surface)));
}
.tz-privacy-icon { flex: none; width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--tz-accent), var(--tz-accent-2)); }
.tz-privacy-banner h2 { margin: 0 0 6px; font-size: 1.3rem; }
.tz-privacy-banner p { margin: 0; color: var(--tz-muted); }

/* =====================================================================
 * 7. Buttons (shared tokens with the tools plugin)
 * ================================================================== */
.tz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-weight: 650; cursor: pointer; border: 1px solid transparent;
	border-radius: var(--tz-radius-sm); padding: 0 22px; min-height: 48px;
	transition: transform .12s ease, box-shadow var(--tz-fast) ease, background var(--tz-fast) ease;
}
.tz-btn:hover { text-decoration: none; }
.tz-btn:active { transform: translateY(1px); }
.tz-btn-primary { background: linear-gradient(135deg, var(--tz-accent), var(--tz-accent-2)); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--tz-accent) 70%, transparent); }
.tz-btn-secondary { background: var(--tz-surface-2); color: var(--tz-text); border-color: var(--tz-border); }

/* =====================================================================
 * 8. Breadcrumb, tool & category pages
 * ================================================================== */
.tz-breadcrumb { padding: 20px 0 6px; }
.tz-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .85rem; color: var(--tz-muted); }
.tz-breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--tz-border); }
.tz-breadcrumb a { color: var(--tz-muted); }
.tz-breadcrumb a:hover { color: var(--tz-accent); }
.tz-breadcrumb [aria-current="page"] { color: var(--tz-text); font-weight: 650; }

.tz-tool-layout { max-width: 880px; padding-bottom: var(--tz-space); }
.tz-tool-head { margin: 8px 0 22px; }
.tz-tool-titlebar { display: flex; align-items: center; gap: 12px; }
.tz-tool-title { margin: 0; }
.tz-tool-sub { color: var(--tz-muted); font-size: 1.08rem; margin: 8px 0 0; }
.tz-tool-note { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .85rem; color: var(--tz-success); font-weight: 600; }
.tz-tool-note svg { color: var(--tz-success); }
.tz-fav-btn {
	flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--tz-border);
	background: var(--tz-surface); color: var(--tz-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	transition: color var(--tz-fast) ease, border-color var(--tz-fast) ease, background var(--tz-fast) ease;
}
.tz-fav-btn:hover { color: var(--tz-warning); border-color: var(--tz-warning); }
.tz-fav-btn.is-fav { color: #fff; background: var(--tz-warning); border-color: var(--tz-warning); }
.tz-fav-btn.is-fav svg { fill: currentColor; }

.tz-tool-article > .tz-section { padding-block: clamp(20px, 3vw, 30px); border-top: 1px solid var(--tz-border); margin-top: 24px; }
.tz-tool-article > .tz-section h2 { font-size: 1.3rem; }
.tz-prose { color: var(--tz-text); }
.tz-prose p { color: var(--tz-text); }
.tz-steps { padding-inline-start: 20px; }
.tz-steps li { margin-bottom: 8px; }
.tz-list-check { list-style: none; padding: 0; margin: 0; }
.tz-list-check li { position: relative; padding-inline-start: 28px; margin-bottom: 10px; }
.tz-list-check li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--tz-accent); }

/* Comparison & content tables */
.tz-table-wrap { overflow-x: auto; margin: 4px 0; }
.tz-ctable { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 420px; }
.tz-ctable th, .tz-ctable td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--tz-border); }
.tz-ctable thead th { background: var(--tz-surface-2); font-weight: 700; }
.tz-ctable tbody th { font-weight: 650; color: var(--tz-text); }
.tz-prose table { width: 100%; border-collapse: collapse; }
.tz-prose th, .tz-prose td { padding: 10px 12px; border-bottom: 1px solid var(--tz-border); text-align: left; }

/* Explore-category link + references */
.tz-explore { margin: 18px 0 0; }
.tz-explore a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--tz-accent); }
.tz-references .tz-ref-list { padding-inline-start: 20px; margin: 0; }
.tz-references .tz-ref-list li { margin-bottom: 8px; }
.tz-references a { word-break: break-word; }

.tz-tool-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--tz-border); }
.tz-disclaimer { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--tz-muted); padding: 14px 16px; background: var(--tz-surface-2); border-radius: var(--tz-radius-sm); }
.tz-disclaimer svg { flex: none; color: var(--tz-muted); margin-top: 2px; }
.tz-meta-line { font-size: .8rem; color: var(--tz-muted); margin: 12px 0 0; }

.tz-page-head { padding: 24px 0; }
.tz-page-head-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--tz-accent), var(--tz-accent-2)); margin-bottom: 14px; }
.tz-page-head p { color: var(--tz-muted); }
.tz-count { color: var(--tz-accent); font-weight: 650; }

/* FAQ */
.tz-faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin-inline: auto; }
.tz-faq-item { background: var(--tz-surface); border: 1px solid var(--tz-border); border-radius: var(--tz-radius-sm); overflow: hidden; }
.tz-faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tz-faq-item summary::-webkit-details-marker { display: none; }
.tz-faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--tz-accent); transition: transform var(--tz-fast) ease; }
.tz-faq-item[open] summary::after { transform: rotate(45deg); }
.tz-faq-a { padding: 0 18px 16px; color: var(--tz-muted); }
.tz-faq-a p { margin: 0; }

/* =====================================================================
 * 9. All-tools toolbar / filters
 * ================================================================== */
.tz-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 20px; flex-wrap: wrap; }
.tz-filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tz-filter {
	flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--tz-border); background: var(--tz-surface); color: var(--tz-text);
	font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all var(--tz-fast) ease;
}
.tz-filter span { font-size: .78rem; color: var(--tz-muted); }
.tz-filter:hover { border-color: var(--tz-accent); color: var(--tz-accent); }
.tz-filter.is-active { background: var(--tz-accent); border-color: var(--tz-accent); color: #fff; }
.tz-filter.is-active span { color: rgba(255, 255, 255, .8); }
.tz-sort select { font: inherit; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--tz-border); background: var(--tz-surface); color: var(--tz-text); }
.tz-grid-item[hidden] { display: none; }

/* =====================================================================
 * 10. Posts, footer, misc
 * ================================================================== */
.tz-post-card { background: var(--tz-surface); border: 1px solid var(--tz-border); border-radius: var(--tz-radius); overflow: hidden; transition: transform var(--tz-fast) ease, box-shadow var(--tz-fast) ease; }
.tz-post-card:hover { transform: translateY(-3px); box-shadow: var(--tz-shadow); }
.tz-post-link { display: flex; flex-direction: column; color: var(--tz-text); height: 100%; }
.tz-post-link:hover { text-decoration: none; }
.tz-post-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tz-post-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tz-post-meta { font-size: .8rem; color: var(--tz-muted); }
.tz-post-title { font-weight: 750; font-size: 1.1rem; }
.tz-post-excerpt { color: var(--tz-muted); font-size: .9rem; }
.tz-post-hero img { width: 100%; border-radius: var(--tz-radius); margin-bottom: 18px; }

.tz-notice { padding: 18px; border-radius: var(--tz-radius); background: color-mix(in srgb, var(--tz-warning) 10%, transparent); border: 1px solid color-mix(in srgb, var(--tz-warning) 30%, transparent); color: var(--tz-text); }
.tz-empty { text-align: center; color: var(--tz-muted); padding: 40px 0; }
.tz-pagination { margin-top: 30px; }
.tz-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tz-pagination a, .tz-pagination .current { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--tz-border); color: var(--tz-text); }
.tz-pagination .current { background: var(--tz-accent); color: #fff; border-color: var(--tz-accent); }

.tz-footer { margin-top: var(--tz-space); background: var(--tz-surface); border-top: 1px solid var(--tz-border); padding: clamp(36px, 6vw, 60px) 0 0; }
.tz-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding-bottom: 32px; }
.tz-footer-tag { color: var(--tz-muted); max-width: 360px; margin-top: 10px; }
.tz-footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; gap: 24px; }
.tz-footer-menu li { margin-bottom: 10px; break-inside: avoid; }
.tz-footer-menu a { color: var(--tz-muted); font-weight: 600; }
.tz-footer-menu a:hover { color: var(--tz-accent); }
.tz-footer-title { font-size: .95rem; }
.tz-footer-bottom { border-top: 1px solid var(--tz-border); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--tz-muted); }
.tz-footer-bottom p { margin: 0; }

/* =====================================================================
 * 11. Responsive
 * ================================================================== */
@media (max-width: 900px) {
	.tz-nav, .tz-search-toggle-desktop { display: none; }
	.tz-hamburger { display: inline-flex; }
	.tz-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
	.tz-footer-menu { columns: 1; }
	.tz-privacy-banner { flex-direction: column; text-align: center; }
	.tz-section-head { flex-direction: column; align-items: flex-start; }
	.tz-section-head.tz-center { align-items: center; }
}

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