/* ==========================================================================
   ToolHub design system
   Chrome (header, cards, footer) is styled with .th-* classes only.
   The tool itself (.th-tool__embed) is deliberately left unstyled so
   existing inline tool CSS/JS keeps working exactly as before.
   ========================================================================== */

:root {
	--th-primary: #4f46e5;
	--th-primary-dark: #3730a3;
	--th-primary-deep: #1e1b4b;
	--th-accent: #7c3aed;
	--th-text: #1e293b;
	--th-muted: #64748b;
	--th-bg: #f8fafc;
	--th-surface: #ffffff;
	--th-border: #e2e8f0;
	--th-tint: #eef2ff;

	--th-font: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--th-radius-sm: 8px;
	--th-radius: 14px;
	--th-radius-lg: 20px;

	--th-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--th-shadow: 0 4px 16px rgba(15, 23, 42, .07);
	--th-shadow-lg: 0 12px 32px rgba(79, 70, 229, .14);

	--th-space-1: .25rem;
	--th-space-2: .5rem;
	--th-space-3: .75rem;
	--th-space-4: 1rem;
	--th-space-5: 1.5rem;
	--th-space-6: 2rem;
	--th-space-7: 3rem;
	--th-space-8: 4.5rem;

	--th-container: 1200px;
	--th-container-narrow: 820px;
	--th-header-h: 68px;
}

/* ---------- Base (scoped to body.th-site to beat parent customizer CSS) ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--th-header-h) + 16px); }
body.th-site {
	margin: 0;
	background: var(--th-bg);
	color: var(--th-text);
	font-family: var(--th-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.th-site *, .th-site *::before, .th-site *::after { box-sizing: border-box; }
.th-site img { max-width: 100%; height: auto; }
.th-site h1, .th-site h2, .th-site h3 { font-family: var(--th-font); color: var(--th-primary-deep); line-height: 1.2; letter-spacing: -.015em; }

.th-container { width: 100%; max-width: var(--th-container); margin: 0 auto; padding: 0 var(--th-space-5); }
.th-container--narrow { max-width: var(--th-container-narrow); }

.th-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	background: var(--th-primary-deep); color: #fff; padding: .6rem 1rem; border-radius: var(--th-radius-sm);
}
.th-skip:focus { left: 8px; }

:where(.th-header, .th-hero, .th-section, .th-footer, .th-card, .th-pagewrap, .th-tool__header, .th-panel, .th-consent) a:focus-visible,
.th-site button:focus-visible,
.th-site input:focus-visible,
.th-site summary:focus-visible {
	outline: 3px solid var(--th-accent);
	outline-offset: 2px;
}

.th-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.th-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 44px; padding: .6rem 1.2rem; border: 1px solid transparent; border-radius: 999px;
	font: 600 .95rem/1.2 var(--th-font); text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.th-btn--primary { background: var(--th-primary); color: #fff; box-shadow: var(--th-shadow-sm); }
.th-btn--primary:hover { background: var(--th-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--th-shadow); }
.th-btn--light { background: #fff; color: var(--th-primary-dark); border-color: var(--th-border); }
.th-btn--light:hover { background: var(--th-tint); color: var(--th-primary-dark); }
.th-btn--ghost { background: transparent; color: var(--th-text); border-color: var(--th-border); }
.th-btn--ghost:hover { background: var(--th-tint); }
.th-btn--lg { min-height: 50px; padding: .8rem 1.6rem; font-size: 1rem; }

/* ---------- Header ---------- */
.th-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--th-border); }
.admin-bar .th-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .th-header { top: 46px; } }
.th-header__inner { display: flex; align-items: center; gap: var(--th-space-5); min-height: var(--th-header-h); }

.th-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--th-primary-deep); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.th-brand__logo { display: block; max-height: 40px; width: auto; }
.th-brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--th-primary), var(--th-accent)); }
.th-brand__mark .th-icon { width: 20px; height: 20px; }

.th-nav { margin-left: auto; }
.th-menu { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.th-menu li { position: relative; margin: 0; }
.th-menu a { display: block; padding: .55rem .85rem; border-radius: 999px; color: var(--th-text); font-weight: 500; font-size: .95rem; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.th-menu a:hover, .th-menu .current-menu-item > a, .th-menu .current_page_item > a { background: var(--th-tint); color: var(--th-primary-dark); }
.th-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; margin: 0; padding: .4rem; list-style: none; background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius); box-shadow: var(--th-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.th-menu li:hover > .sub-menu, .th-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.th-menu .sub-menu a { border-radius: var(--th-radius-sm); }

.th-header__actions { display: flex; align-items: center; gap: .4rem; }
.th-iconbtn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 .8rem; border: 1px solid var(--th-border); border-radius: 999px; background: #fff; color: var(--th-text); font: 600 .9rem var(--th-font); cursor: pointer; transition: background-color .15s ease; }
.th-iconbtn:hover { background: var(--th-tint); }
.th-nav-toggle { display: none; padding: 0; }
.th-nav-toggle .th-nav-toggle__close { display: none; }
.th-nav-toggle[aria-expanded="true"] .th-nav-toggle__open { display: none; }
.th-nav-toggle[aria-expanded="true"] .th-nav-toggle__close { display: block; }

.th-search-panel { border-top: 1px solid var(--th-border); background: #fff; padding: var(--th-space-4) 0; }
.th-search-panel[hidden] { display: none; }

/* ---------- Search form ---------- */
.th-searchform, .th-filter { position: relative; display: flex; align-items: center; gap: .5rem; width: 100%; max-width: 640px; margin: 0 auto; padding: .35rem .35rem .35rem 1rem; background: #fff; border: 1px solid var(--th-border); border-radius: 999px; box-shadow: var(--th-shadow-sm); }
.th-searchform:focus-within, .th-filter:focus-within { border-color: var(--th-primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.th-searchform input[type="search"], .th-filter input[type="search"] { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; box-shadow: none; font: 400 1rem var(--th-font); color: var(--th-text); padding: 0 .25rem; }
.th-searchform__icon { color: var(--th-muted); }
.th-searchform input[type="search"]:focus, .th-filter input[type="search"]:focus { border: 0; background: transparent; box-shadow: none; outline: 0; }

/* ---------- Hero ---------- */
.th-hero { position: relative; overflow: hidden; padding: var(--th-space-8) 0 var(--th-space-7); text-align: center; color: #fff; background: radial-gradient(900px 400px at 85% -10%, rgba(124, 58, 237, .55), transparent 60%), radial-gradient(700px 380px at 5% 110%, rgba(79, 70, 229, .6), transparent 60%), linear-gradient(160deg, var(--th-primary-deep), var(--th-primary-dark)); }
.th-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.th-hero__inner { position: relative; max-width: 820px; }
.th-site .th-hero__title { margin: 0 0 var(--th-space-4); color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.th-hero__text { margin: 0 auto var(--th-space-6); max-width: 620px; color: #e0e7ff; font-size: clamp(1rem, 2vw, 1.15rem); }
.th-hero__search { margin-bottom: var(--th-space-5); }
.th-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Sections ---------- */
.th-section { padding: var(--th-space-7) 0; }
.th-section--tint { background: var(--th-tint); }
.th-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--th-space-4); margin-bottom: var(--th-space-5); flex-wrap: wrap; }
.th-site .th-section__title { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.th-link-arrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--th-primary); font-weight: 600; text-decoration: none; }
.th-link-arrow:hover { color: var(--th-primary-dark); }
.th-link-arrow .th-icon { transition: transform .15s ease; }
.th-link-arrow:hover .th-icon { transform: translateX(3px); }

/* ---------- Grid & cards ---------- */
.th-grid { display: grid; gap: var(--th-space-5); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.th-grid--cats { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.th-grid--benefits { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.th-card { display: flex; flex-direction: column; background: var(--th-surface); border: 1px solid var(--th-border); border-radius: var(--th-radius); overflow: hidden; box-shadow: var(--th-shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; margin: 0; }
.th-card:hover { transform: translateY(-3px); box-shadow: var(--th-shadow-lg); border-color: #c7d2fe; }
.th-card__media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--th-tint), #f5f3ff); overflow: hidden; }
.th-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--th-primary); box-shadow: var(--th-shadow-sm); }
.th-card__icon .th-icon { width: 30px; height: 30px; }
.th-card__body { display: flex; flex-direction: column; flex: 1; gap: .55rem; padding: var(--th-space-5); }
.th-site .th-card__title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.th-card__title a { color: var(--th-primary-deep); text-decoration: none; }
.th-card__title a:hover { color: var(--th-primary); }
.th-card__desc { margin: 0; color: var(--th-muted); font-size: .92rem; line-height: 1.55; }
.th-card__cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .4rem; color: var(--th-primary); font-weight: 600; text-decoration: none; }
.th-card__cta .th-icon { width: 1.1em; height: 1.1em; transition: transform .15s ease; }
.th-card:hover .th-card__cta .th-icon { transform: translateX(3px); }

.th-badge { align-self: flex-start; display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--th-tint); color: var(--th-primary-dark); font-size: .78rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
a.th-badge:hover { background: #e0e7ff; }

.th-cat { display: flex; flex-direction: column; gap: .35rem; padding: var(--th-space-5); background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius); text-decoration: none; color: var(--th-text); box-shadow: var(--th-shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.th-cat:hover { transform: translateY(-3px); box-shadow: var(--th-shadow-lg); border-color: #c7d2fe; }
.th-cat__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .35rem; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--th-primary), var(--th-accent)); }
.th-cat__name { font-weight: 700; font-size: 1.05rem; color: var(--th-primary-deep); }
.th-cat__count { color: var(--th-muted); font-size: .88rem; }

.th-benefit { padding: var(--th-space-5); background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius); }
.th-benefit__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .75rem; border-radius: 12px; background: var(--th-tint); color: var(--th-primary); }
.th-site .th-benefit h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.th-benefit p { margin: 0; color: var(--th-muted); font-size: .93rem; }

/* ---------- FAQ (native details/summary) ---------- */
.th-faq { display: grid; gap: .75rem; }
.th-faq details { background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius); padding: 0 var(--th-space-5); }
.th-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; cursor: pointer; font-weight: 600; color: var(--th-primary-deep); list-style: none; }
.th-faq summary::-webkit-details-marker { display: none; }
.th-faq summary .th-icon { transition: transform .2s ease; color: var(--th-muted); }
.th-faq details[open] summary .th-icon { transform: rotate(180deg); }
.th-faq details p { margin: 0 0 var(--th-space-4); color: var(--th-muted); }
.th-faq details a { color: var(--th-primary); }

/* ---------- Page heads, chips, empty states ---------- */
.th-pagewrap { padding-top: var(--th-space-5); padding-bottom: var(--th-space-7); }
.th-pagehead { margin: var(--th-space-5) 0 var(--th-space-5); }
.th-site .th-pagehead__title { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
.th-pagehead__intro { color: var(--th-muted); max-width: 720px; }
.th-pagehead__intro p:last-child { margin-bottom: 0; }

.th-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--th-space-5) 0; }
.th-chips--center { justify-content: center; }
.th-chip { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem 1rem; border: 1px solid var(--th-border); border-radius: 999px; background: #fff; color: var(--th-text); font-size: .9rem; font-weight: 500; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.th-chip:hover { background: var(--th-tint); border-color: #c7d2fe; }
.th-chip.is-active { background: var(--th-primary); border-color: var(--th-primary); color: #fff; }

.th-filter { max-width: 560px; margin: 0; }
.th-resultcount { margin: 0 0 var(--th-space-4); color: var(--th-muted); font-size: .92rem; }
.th-searchwrap { margin: var(--th-space-5) 0; }
.th-searchwrap .th-searchform { margin: 0; }

.th-empty { max-width: 560px; margin: var(--th-space-6) auto; padding: var(--th-space-6); text-align: center; background: #fff; border: 1px dashed #c7d2fe; border-radius: var(--th-radius-lg); display: grid; gap: var(--th-space-4); justify-items: center; }
.th-site .th-empty h1, .th-site .th-empty h2 { margin: 0; font-size: 1.6rem; }
.th-empty p { margin: 0; color: var(--th-muted); }
.th-empty .th-searchwrap { width: 100%; margin: 0; }
.th-empty .th-badge { align-self: center; }

/* ---------- Pagination ---------- */
.th-pagination { margin: var(--th-space-6) 0 0; }
.th-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.th-pagination a, .th-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--th-border); border-radius: 999px; background: #fff; color: var(--th-text); font-weight: 500; text-decoration: none; }
.th-pagination a:hover { background: var(--th-tint); }
.th-pagination .current { background: var(--th-primary); border-color: var(--th-primary); color: #fff; }
.th-pagination .dots { border: 0; background: transparent; }

/* ---------- Breadcrumbs ---------- */
.th-breadcrumbs { margin: var(--th-space-4) 0 0; font-size: .88rem; }
.th-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; color: var(--th-muted); }
.th-breadcrumbs li { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.th-breadcrumbs li:not(:last-child)::after { content: "/"; color: #cbd5e1; }
.th-breadcrumbs a { color: var(--th-muted); text-decoration: none; }
.th-breadcrumbs a:hover { color: var(--th-primary); text-decoration: underline; }
.th-breadcrumbs [aria-current="page"] span { color: var(--th-text); }

/* ---------- Tool page ---------- */
.th-tool { padding-bottom: var(--th-space-7); max-width: 1100px; }
.th-tool__header { display: grid; gap: .6rem; margin: var(--th-space-5) 0; }
.th-site .th-tool__title { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.th-lead { margin: 0; max-width: 760px; color: var(--th-muted); font-size: 1.05rem; }
/* .th-tool__embed intentionally has no visual rules: the tool brings its own styling. */
.th-tool__embed { min-width: 0; max-width: 100%; }
.th-panel { margin-top: var(--th-space-6); padding: var(--th-space-5) var(--th-space-6); background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius); }
.th-site .th-panel h2 { margin: 0 0 var(--th-space-4); font-size: 1.3rem; }
.th-steps, .th-checklist { margin: 0; padding-left: 1.25rem; display: grid; gap: .5rem; }
.th-checklist { list-style: none; padding-left: 0; }
.th-checklist li { position: relative; padding-left: 1.6rem; }
.th-checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .9rem; border-radius: 50%; background: var(--th-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 80% no-repeat; }
.th-related { margin-top: var(--th-space-7); }
.th-related .th-section__title { margin-bottom: var(--th-space-5); }

/* Ad slot: clearly separated and labelled, never inside the tool */
.th-ad { margin: var(--th-space-6) 0; padding: var(--th-space-4); text-align: center; border: 1px dashed var(--th-border); border-radius: var(--th-radius); background: #fff; overflow: hidden; }
.th-ad__label { display: block; margin-bottom: .4rem; color: var(--th-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Prose (generic pages) ---------- */
.th-article--page { background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius-lg); padding: var(--th-space-6); margin-top: var(--th-space-5); box-shadow: var(--th-shadow-sm); }
.th-article--page .th-pagehead { margin-top: 0; }
.th-prose { overflow-wrap: anywhere; }
.th-prose h2 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.th-prose h3 { margin: 1.5rem 0 .5rem; font-size: 1.15rem; }
.th-prose p, .th-prose ul, .th-prose ol { margin: 0 0 1rem; }
.th-prose ul, .th-prose ol { padding-left: 1.4rem; }
.th-prose a { color: var(--th-primary); }
.th-prose mark { background: #fef9c3; color: #713f12; padding: 0 .25em; border-radius: 4px; }
.th-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.th-prose th, .th-prose td { padding: .6rem .8rem; border: 1px solid var(--th-border); text-align: left; }

/* ---------- Footer ---------- */
.th-footer { margin-top: var(--th-space-7); background: var(--th-primary-deep); color: #c7d2fe; }
.th-footer__grid { display: grid; gap: var(--th-space-6); grid-template-columns: 1.6fr repeat(3, 1fr); padding-top: var(--th-space-7); padding-bottom: var(--th-space-6); }
.th-footer .th-brand { color: #fff; }
.th-footer__about p { margin: var(--th-space-4) 0 0; max-width: 340px; font-size: .93rem; color: #c7d2fe; }
.th-site .th-footer__title { margin: 0 0 var(--th-space-4); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.th-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.th-footer__list a { color: #c7d2fe; text-decoration: none; font-size: .93rem; }
.th-footer__list a:hover { color: #fff; text-decoration: underline; }
.th-footer a:focus-visible { outline-color: #fff; }
.th-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); padding: var(--th-space-4) 0; font-size: .86rem; }
.th-footer__bar p { margin: 0; color: #a5b4fc; }

/* Footer social links */
.th-social { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--th-space-4) 0 0; padding: 0; list-style: none; }
.th-social a { display: inline-flex; align-items: center; min-height: 36px; padding: .2rem .9rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; color: #fff; font-size: .85rem; text-decoration: none; }
.th-social a:hover { background: rgba(255, 255, 255, .12); }

/* Footer widgets */
.th-footer .widget { margin: 0 0 var(--th-space-5); font-size: .93rem; color: #c7d2fe; }
.th-footer .widget:last-child { margin-bottom: 0; }
.th-footer .widget a { color: #c7d2fe; }
.th-footer .widget a:hover { color: #fff; }
.th-footer .widget img { max-width: 100%; height: auto; border-radius: var(--th-radius-sm); }
.th-footer .widget ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.th-footer .widget p { margin: 0 0 .75rem; }
.th-footer .th-brand__logo { max-height: 48px; width: auto; }

/* ---------- Cookie consent ---------- */
.th-consent { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: var(--th-space-4); flex-wrap: wrap; padding: var(--th-space-4) var(--th-space-5); background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius); box-shadow: 0 12px 40px rgba(15, 23, 42, .2); }
.th-consent[hidden] { display: none; }
.th-consent p { flex: 1 1 280px; margin: 0; font-size: .9rem; }
.th-consent a { color: var(--th-primary); }
.th-consent__actions { display: flex; gap: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.th-footer__grid { grid-template-columns: 1fr 1fr; }
	.th-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.th-nav-toggle { display: inline-flex; }
	.th-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: var(--th-space-3) var(--th-space-5) var(--th-space-5); background: #fff; border-bottom: 1px solid var(--th-border); box-shadow: var(--th-shadow); display: none; max-height: calc(100vh - var(--th-header-h)); overflow-y: auto; }
	.th-nav.is-open { display: block; }
	.th-menu { flex-direction: column; align-items: stretch; gap: .15rem; }
	.th-menu a { padding: .8rem 1rem; border-radius: var(--th-radius-sm); }
	.th-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
	.th-header__actions { margin-left: auto; }
	.th-iconbtn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.th-iconbtn { padding: 0; width: 44px; }
}
@media (max-width: 600px) {
	.th-container { padding: 0 var(--th-space-4); }
	.th-hero { padding: var(--th-space-7) 0 var(--th-space-6); }
	.th-section { padding: var(--th-space-6) 0; }
	.th-footer__grid { grid-template-columns: 1fr; }
	.th-panel, .th-article--page { padding: var(--th-space-5); }
	.th-searchform .th-btn, .th-filter .th-btn { padding: .6rem 1rem; }
	.th-grid { grid-template-columns: 1fr; }
	.th-consent { left: 8px; right: 8px; bottom: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.th-site *, .th-site *::before, .th-site *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.th-card:hover, .th-cat:hover, .th-btn--primary:hover { transform: none; }
}
