/*
Theme Name: TPTHubGuide Automated Authority Theme
Theme URI: https://tpthubguide.com/
Author: TPTHubGuide Developer
Author URI: https://tpthubguide.com/
Version: 3.1.0
Description: Hyper-optimized, automated ultra-long form theme for Teachers Pay Teachers resource guides.
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tpthubguide
Tags: blog, education, custom-menu, featured-images, custom-logo
*/

/* ---------- Design tokens ---------- */
:root {
	--primary: #2d6a4f;
	--primary-dark: #1b4332;
	--primary-soft: #e8f3ee;
	--accent: #ff9f1c;
	--accent-dark: #e8870a;
	--ink: #1a1a1a;
	--muted: #4b5563;
	--line: #e2e8f0;
	--bg: #f8fafc;
	--white: #ffffff;
	--slate-900: #0f172a;
	--slate-700: #334155;
	--slate-400: #94a3b8;
	--radius: 12px;
	--shadow-soft: 0 2px 12px rgba(15, 23, 42, 0.06);
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--wrap: 1200px;
	--read: 880px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.reading { max-width: var(--read); width: 100%; margin-left: auto; margin-right: auto; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 2000; width: auto; height: auto; clip: auto;
	background: var(--white); padding: 10px 16px; border-radius: 6px; box-shadow: var(--shadow-soft);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); margin: 0 0 1.4rem; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem); margin: 2.2rem 0 0.7rem; }
p { margin: 0 0 1.1rem; color: var(--muted); }
ul, ol { color: var(--muted); padding-left: 1.3rem; margin: 0 0 1.2rem; }
li { margin-bottom: 0.5rem; }
strong { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(160%) blur(8px);
	box-shadow: var(--shadow-soft);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand .custom-logo { max-height: 44px; width: auto; }
.brand-mark {
	width: 36px; height: 36px; border-radius: 9px; background: var(--primary); color: var(--white);
	display: grid; place-items: center; font-weight: 800; font-size: 15px; font-family: var(--font-body);
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--primary-dark); }

.menu-toggle {
	display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
	padding: 8px 12px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer;
}
.menu-toggle .bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 6px; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav-links li { margin: 0; position: relative; }
.nav-links a {
	display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
	font-weight: 500; font-size: 15px; color: var(--muted); transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links .current-menu-item > a, .nav-links .current-menu-ancestor > a, .nav-links .current_page_item > a { color: var(--primary-dark); background: var(--primary-soft); }
.nav-links .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--white); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.2s;
}
.nav-links li:hover > .sub-menu, .nav-links li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-block; }
	.main-navigation { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); display: none; }
	.main-navigation.is-open { display: block; }
	.nav-links { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
	.nav-links .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; text-align: center;
	padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
	background:
		radial-gradient(circle at 15% 20%, rgba(255, 159, 28, 0.14), transparent 40%),
		radial-gradient(circle at 85% 80%, rgba(45, 106, 79, 0.16), transparent 45%),
		linear-gradient(180deg, #f1f7f4 0%, var(--bg) 100%);
}
.hero-eyebrow {
	display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--primary-dark); background: var(--white); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
	font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); color: var(--primary-dark);
	max-width: 900px; margin: 0 auto 20px; letter-spacing: -0.01em;
}
.hero-sub { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 720px; margin: 0 auto 32px; color: var(--muted); }

.btn-official {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--accent); color: var(--slate-900); font-weight: 700; font-size: 16px;
	padding: 15px 30px; border-radius: 10px; text-decoration: none;
	box-shadow: 0 8px 22px rgba(255, 159, 28, 0.35); transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-official:hover { background: var(--accent-dark); color: var(--slate-900); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 159, 28, 0.4); }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.quick-facts {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
	max-width: 900px; margin: 46px auto 0;
}
.quick-facts div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; }
.quick-facts strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--primary); }
.quick-facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .quick-facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Table of contents ---------- */
.toc { background: var(--white); border-bottom: 1px solid var(--line); }
.toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 16px 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.toc a:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ---------- Content sections ---------- */
.section { padding: clamp(52px, 7vw, 84px) 0; }
.section.alt { background: var(--white); }
.section-head { max-width: var(--read); }
.section-head h2 { position: relative; padding-left: 18px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 0.18em; bottom: 0.18em; width: 5px; border-radius: 3px; background: var(--accent); }
.section-lead { font-size: 1.08rem; color: var(--ink); }

.content-card {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(22px, 3vw, 34px); margin-top: 22px; box-shadow: var(--shadow-soft);
}
.section.alt .content-card { background: var(--bg); box-shadow: none; }
.content-card > h3:first-child { margin-top: 0; }

.callout { border-left: 4px solid var(--accent); background: #fff7eb; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }
.callout p { margin: 0; color: var(--ink); }
.callout.green { border-color: var(--primary); background: var(--primary-soft); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 1.2rem 0; }
.stat { background: var(--primary-soft); border-radius: 10px; padding: 16px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--primary-dark); }
.stat span { font-size: 14px; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--primary); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- Blog loop ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-top: 30px; }
.blog-card {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1); }
.blog-thumb { aspect-ratio: 16 / 9; background: var(--primary-soft); overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb.placeholder { display: grid; place-items: center; font-family: var(--font-head); font-size: 2rem; color: var(--primary); background: linear-gradient(135deg, var(--primary-soft), #fff3e0); }
.blog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: 13px; color: var(--slate-400); margin-bottom: 6px; }
.blog-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.blog-card h3 a { color: var(--ink); text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 15px; flex: 1; }
.read-more { font-weight: 600; text-decoration: none; color: var(--primary); }
.read-more:hover { color: var(--accent-dark); }
.blog-empty { text-align: center; padding: 40px 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--white); }

/* ---------- FAQ ---------- */
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.faq-list summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 48px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 20px 16px; margin: 0; }

/* ---------- Generic posts/pages ---------- */
.entry { padding: 56px 0; }
.entry-header h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin: 0 0 10px; }
.entry-meta { color: var(--slate-400); font-size: 14px; margin-bottom: 26px; }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.entry-content h2 { margin-top: 2.4rem; }
.entry-content blockquote { border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: 4px 20px; }
.archive-list .blog-grid { margin-top: 0; }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--white); }
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: var(--slate-400); padding: 64px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 18px; }
.footer-col p { color: var(--slate-400); font-size: 14.5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--slate-400); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-brand { color: var(--white); font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 12px; display: block; }
.disclaimer { border: 1px solid var(--slate-700); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; line-height: 1.6; }
.disclaimer strong { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--slate-700); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; }


/* ---------- Native WordPress menu classes ---------- */
.nav-links .menu-item-has-children > a::after { content: "▾"; font-size: 11px; margin-left: 6px; opacity: 0.7; }
.nav-links .current-menu-item > a, .nav-links .current_page_item > a { font-weight: 600; }
.nav-links .sub-menu .menu-item a { padding: 8px 12px; }
.footer-col .menu-item { margin-bottom: 10px; }
.footer-col .current-menu-item > a { color: var(--white); }

/* ---------- Long-form helpers ---------- */
.content-card h4 { font-family: var(--font-body); font-size: 1.02rem; margin: 1.6rem 0 0.5rem; color: var(--primary-dark); }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--white); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.2rem 0; }
.split > div { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--white); }
.split h4 { margin-top: 0; }
.split .yes h4 { color: var(--primary); }
.split .no h4 { color: #b45309; }
@media (max-width: 640px) { .split { grid-template-columns: 1fr; } }
.section-toc { font-size: 15px; background: var(--primary-soft); border-radius: 10px; padding: 14px 18px; margin-top: 16px; }
.section-toc a { font-weight: 500; }


/* =================================================================
   v1.3 PREMIUM LAYER — micro-interactions + homepage tools
   ================================================================= */
:root {
	--grad-brand: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
	--grad-accent: linear-gradient(135deg, #ffb347 0%, #ff9f1c 55%, #f08a00 100%);
	--grad-soft: linear-gradient(135deg, #f1f8f4 0%, #fff8ee 100%);
	--good: #2d6a4f;
	--bad: #b42318;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--shadow-lift: 0 18px 40px -12px rgba(27, 67, 50, 0.28);
}

/* ---------- Header: shadow deepens on scroll ---------- */
.site-header { transition: box-shadow .35s var(--ease), background .35s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.18); background: rgba(255, 255, 255, 0.92); }
.nav-links > .menu-item > a { position: relative; }
.nav-links > .menu-item > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links > .menu-item > a:hover::after,
.nav-links > .current-menu-item > a::after { transform: scaleX(1); }
.nav-links .sub-menu { box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.22); }

/* ---------- Buttons ---------- */
.btn-official { background: var(--grad-accent); position: relative; overflow: hidden; }
.btn-official::after {
	content: ""; position: absolute; inset: 0; transform: translateX(-120%);
	background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
	transition: transform .7s var(--ease);
}
.btn-official:hover::after { transform: translateX(120%); }
.btn-official:hover { background: var(--grad-accent); }

/* ---------- Cards: lift + scale ---------- */
.quick-facts div, .stat, .split > div {
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.quick-facts div:hover, .stat:hover, .split > div:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-lift); }
.content-card { transition: box-shadow .4s var(--ease); }
.content-card:hover { box-shadow: 0 16px 40px -18px rgba(27, 67, 50, 0.25); }
.stat { background: var(--grad-soft); border: 1px solid var(--line); }

.blog-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.blog-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-lift); }
.blog-thumb img { transition: transform .6s var(--ease), opacity .4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.read-more { display: inline-flex; align-items: center; gap: 4px; }
.blog-card:hover .read-more { color: var(--accent-dark); }

/* Blog skeleton: shimmer shows behind each thumbnail until the image arrives */
.blog-thumb {
	position: relative;
	background: linear-gradient(90deg, #e8f3ee 25%, #f6fbf8 37%, #e8f3ee 63%);
	background-size: 400% 100%;
	animation: tpthubguide-shimmer 1.4s ease infinite;
}
.blog-thumb.placeholder { animation: none; }
.blog-thumb img.is-pending { opacity: 0; }
@keyframes tpthubguide-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Section head gradient underline */
.section-head h2::before { background: linear-gradient(180deg, var(--accent), var(--primary)); }

/* ---------- Shared bar ---------- */
.bar { height: 10px; border-radius: 999px; background: #e7ece9; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-brand); transition: width .6s var(--ease), background .3s; }

/* =================================================================
   1. SEARCH STEPPER
   ================================================================= */
.search-stepper {
	--progress: 16.66%;
	border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 3vw, 24px);
	background: var(--grad-soft); margin: 1rem 0 1.6rem;
}
.search-mock { display: none; }
.is-enhanced .search-mock {
	display: grid; gap: 12px; background: var(--white); border: 1px solid var(--line);
	border-radius: 12px; padding: 14px; box-shadow: var(--shadow-soft); margin-bottom: 18px;
}
.search-mock-bar {
	display: flex; align-items: center; gap: 10px; border: 2px solid var(--primary); border-radius: 10px;
	padding: 8px 12px; font-size: 15px; min-width: 0;
}
.search-mock-icon { color: var(--primary); font-size: 18px; line-height: 1; }
.search-mock-query { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.search-mock-placeholder { color: var(--slate-400); display: none; }
.search-mock-placeholder.is-on { display: inline; }
.search-mock-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; }
.chip {
	font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
	background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #cfe5da;
}
.search-mock-result { display: flex; gap: 12px; align-items: center; }
.mock-thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--grad-accent); flex-shrink: 0; }
.mock-lines { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.mock-line { height: 10px; border-radius: 5px; background: #e5ebe8; width: 100%; }
.mock-line.short { width: 60%; }
.mock-badge { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: #fff3e0; color: #92400e; }
.mock-badge.rating { background: var(--primary-soft); color: var(--primary-dark); }
.search-mock-count { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* data-min / data-max elements animate in */
.is-enhanced [data-min] { opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.is-enhanced [data-min].is-on { opacity: 1; transform: none; }
.is-enhanced .search-mock-query[data-min] { transform: none; }

.stepper-tabs { display: none; }
.is-enhanced .stepper-tabs {
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; position: relative; padding-bottom: 14px;
}
.is-enhanced .stepper-tabs::before, .is-enhanced .stepper-tabs::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 4px;
}
.is-enhanced .stepper-tabs::before { right: 0; background: #e2e8e5; }
.is-enhanced .stepper-tabs::after { width: var(--progress); background: var(--grad-accent); transition: width .45s var(--ease); }
.stepper-tab {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; cursor: pointer;
	background: transparent; border: 0; border-radius: 10px; font: inherit; color: var(--muted);
	transition: background .25s, color .25s, transform .25s var(--ease);
}
.stepper-tab:hover { background: rgba(45, 106, 79, 0.07); transform: translateY(-2px); }
.stepper-num {
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
	background: var(--white); border: 2px solid #cfdcd5; color: var(--primary); transition: all .3s var(--ease);
}
.stepper-label { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.25; }
.stepper-tab.is-done .stepper-num { background: var(--primary-soft); border-color: var(--primary); }
.stepper-tab.is-active { color: var(--primary-dark); }
.stepper-tab.is-active .stepper-num { background: var(--grad-brand); border-color: transparent; color: var(--white); box-shadow: 0 6px 16px -4px rgba(45, 106, 79, .55); transform: scale(1.1); }

.stepper-panels { list-style: none; padding: 0; margin: 0; counter-reset: sp; }
.stepper-panel { counter-increment: sp; position: relative; padding-left: 46px; margin-bottom: 14px; color: var(--muted); }
.stepper-panel::before {
	content: counter(sp); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
	background: var(--primary); color: var(--white); font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.is-enhanced .stepper-panels { margin-top: 16px; min-height: 96px; }
.is-enhanced .stepper-panel { display: none; padding: 16px 18px; margin: 0; background: var(--white); border-radius: 12px; border-left: 4px solid var(--accent); }
.is-enhanced .stepper-panel::before { display: none; }
.is-enhanced .stepper-panel.is-active { display: block; animation: tpthubguide-panel-in .45s var(--ease); }
@keyframes tpthubguide-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.stepper-nav { display: none; }
.is-enhanced .stepper-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.stepper-btn {
	font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 10px 18px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--white); color: var(--ink);
	transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.stepper-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.stepper-btn:disabled { opacity: .45; cursor: not-allowed; }
.stepper-btn.primary { background: var(--grad-brand); color: var(--white); border-color: transparent; }

@media (max-width: 640px) {
	.is-enhanced .stepper-tabs { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
	.stepper-label { font-size: 12px; }
}

/* =================================================================
   2. PROFIT CALCULATOR
   ================================================================= */
.fee-calc {
	margin: 1.8rem 0; border-radius: 18px; overflow: hidden; border: 1px solid #cfe1d8;
	background: var(--white); box-shadow: 0 24px 50px -28px rgba(27, 67, 50, 0.45);
}
.fee-calc-head { background: var(--grad-brand); color: var(--white); padding: 20px 22px; position: relative; overflow: hidden; }
.fee-calc-head::after {
	content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 159, 28, .55), transparent 70%);
}
.fee-calc-head h4 { margin: 0 0 4px; color: var(--white); font-family: var(--font-head); font-size: 1.3rem; }
.fee-calc-head p { margin: 0; color: #d6ebe1; font-size: 14.5px; }
.fee-calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 20px 22px 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.field input, .field select {
	font: inherit; font-size: 16px; font-weight: 500; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line);
	background: var(--bg); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(45, 106, 79, .15); background: var(--white); }
.check-inline { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--primary); }

.fee-calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 22px; }
.plan-result {
	border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg);
	transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, background .35s; min-width: 0;
}
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.plan-name { font-weight: 700; color: var(--ink); }
.plan-meta { font-size: 12px; color: var(--muted); }
.plan-amount { font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.plan-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.plan-result.basic .bar-fill { background: linear-gradient(90deg, #94a3b8, #64748b); }
.plan-result.exclusive .bar-fill { background: var(--grad-brand); }
.plan-result.is-winner { border-color: var(--primary); background: var(--white); box-shadow: 0 14px 30px -16px rgba(45, 106, 79, .55); transform: translateY(-3px); }
.plan-result.is-winner .plan-amount { color: var(--primary); }
.plan-result.basic.is-winner .bar-fill { background: var(--grad-accent); }
.plan-result.is-negative .plan-amount { color: var(--bad); }
.is-bump { animation: tpthubguide-bump .4s var(--ease); }
@keyframes tpthubguide-bump { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }

.fee-calc-verdict {
	margin: 4px 22px 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 15px;
	background: #f1f5f3; color: var(--ink); transition: background .3s, color .3s;
}
.fee-calc-verdict[data-winner="exclusive"] { background: var(--primary-soft); color: var(--primary-dark); }
.fee-calc-verdict[data-winner="basic"] { background: #fff3e0; color: #92400e; }
.fee-calc-note { font-size: 13px; padding: 10px 22px 18px; margin: 0; }

@media (max-width: 600px) {
	.fee-calc-inputs, .fee-calc-results { grid-template-columns: 1fr; }
}

/* =================================================================
   3. "IS MY RESOURCE SAFE?" CHECKLIST
   ================================================================= */
.safe-check {
	border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 3vw, 24px);
	background: var(--grad-soft); margin: 1rem 0 0.5rem;
}
.safe-progress { margin-bottom: 14px; }
.safe-progress-text { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.safe-check .bar-fill { background: var(--grad-accent); }
.safe-check.is-complete .bar-fill { background: var(--grad-brand); }

.check-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-list li { margin: 0; min-width: 0; }
.check-node {
	position: relative; display: flex; gap: 12px; align-items: flex-start; height: 100%; cursor: pointer; padding: 14px;
	border-radius: 12px; background: var(--white); border: 1.5px solid var(--line);
	transition: border-color .25s, transform .25s var(--ease), box-shadow .25s, background .25s;
}
.check-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: #bcd6c9; }
.check-node input { position: absolute; left: 14px; top: 14px; opacity: 0; width: 1px; height: 1px; margin: 0; }
.check-box {
	flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #b8cbc1; background: var(--white);
	display: grid; place-items: center; transition: all .25s var(--ease); margin-top: 1px;
}
.check-box::after {
	content: ""; width: 6px; height: 11px; border: solid var(--white); border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .25s var(--ease);
}
.check-node input:checked + .check-box { background: var(--grad-brand); border-color: var(--primary); }
.check-node input:checked + .check-box::after { transform: rotate(45deg) scale(1); }
.check-node input:focus-visible + .check-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.check-node:has(input:checked) { border-color: var(--primary); background: #f6fbf8; }
.check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-text strong { font-size: 14.5px; line-height: 1.35; }
.check-text small { font-size: 13px; color: var(--muted); line-height: 1.45; }

.safe-result {
	display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; margin-bottom: 12px;
	background: #fff3e0; border: 1px solid #fde1b5; transition: background .4s, border-color .4s;
}
.safe-result p { margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.safe-result-icon {
	flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 800; background: var(--grad-accent); color: var(--slate-900); transition: background .4s;
}
.safe-check.is-complete .safe-result { background: var(--primary-soft); border-color: #b9dccb; animation: tpthubguide-success .6s var(--ease); }
.safe-check.is-complete .safe-result-icon { background: var(--grad-brand); color: var(--white); }
@keyframes tpthubguide-success { 0% { opacity: .2; transform: translateY(8px) scale(.98); } 100% { opacity: 1; transform: none; } }

@media (max-width: 640px) { .check-list { grid-template-columns: 1fr; } }

/* Long emails/URLs (e.g. the DMCA address) wrap instead of widening the page */
.content-card p, .content-card li, .faq-list p { overflow-wrap: anywhere; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.blog-thumb { animation: none; }
	.blog-card:hover, .quick-facts div:hover, .stat:hover, .split > div:hover, .check-node:hover { transform: none; }
	.is-enhanced .stepper-panel.is-active, .safe-check.is-complete .safe-result, .is-bump { animation: none; }
}


/* =================================================================
   v1.4 MODULES — notice bar, quality auditor, keyword generator
   ================================================================= */

/* ---------- Notice bar (above the sticky header) ---------- */
.notice-bar {
	background: linear-gradient(90deg, #1b4332 0%, #2d6a4f 60%, #3f7d5f 100%);
	color: #e8f3ee; font-size: 14px; line-height: 1.45;
	transition: opacity .25s ease, transform .25s ease;
}
.notice-bar.tone-warn { background: linear-gradient(90deg, #0f172a 0%, #1b4332 100%); }
.notice-bar.is-closing { opacity: 0; transform: translateY(-6px); }
.notice-inner { display: flex; align-items: center; gap: 12px; padding-block: 9px; min-height: 44px; }
.notice-badge {
	flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; color: var(--slate-900); background: var(--accent);
	padding: 4px 10px; border-radius: 999px;
}
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-900); animation: tpthubguide-pulse 1.8s ease-in-out infinite; }
@keyframes tpthubguide-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.notice-text { margin: 0; color: #e8f3ee; flex: 1; min-width: 0; }
.notice-count {
	display: inline-block; margin-left: 6px; color: var(--accent); font-weight: 700; white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.notice-cta {
	flex-shrink: 0; color: var(--white); font-weight: 600; text-decoration: none; white-space: nowrap;
	border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 5px 12px; transition: background .2s, border-color .2s;
}
.notice-cta:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: var(--white); }
.notice-close {
	flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent;
	color: #cfe3d9; font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.notice-close:hover { background: rgba(255,255,255,.12); color: var(--white); }
@media (max-width: 720px) {
	.notice-inner { flex-wrap: wrap; gap: 8px 10px; position: relative; padding-right: 36px; }
	.notice-text { flex-basis: 100%; order: 3; font-size: 13.5px; }
	.notice-close { position: absolute; right: 0; top: 7px; }
}

/* ---------- Quality auditor ---------- */
.auditor {
	--tier: #94a3b8; --tier-soft: #f1f5f9;
	display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start;
	border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 24px);
	background: var(--grad-soft); margin: 1rem 0 1.8rem;
}
.auditor.tier-red { --tier: #d92d20; --tier-soft: #fef3f2; }
.auditor.tier-amber { --tier: #f08a00; --tier-soft: #fff6e6; }
.auditor.tier-green { --tier: #2d6a4f; --tier-soft: #e8f3ee; }
.auditor.tier-gold { --tier: #d99a00; --tier-soft: #fff8e1; }
.auditor-gauge { display: flex; flex-direction: column; align-items: center; gap: 16px; position: sticky; top: 100px; }
.gauge {
	--score: 0; width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center;
	background: conic-gradient(var(--tier) calc(var(--score) * 1%), #e3e9e6 0);
	box-shadow: 0 18px 40px -18px rgba(27, 67, 50, .45); transition: background .3s;
}
.auditor.tier-gold .gauge { background: conic-gradient(#ffb347, #ff9f1c calc(var(--score) * .5%), #d99a00 calc(var(--score) * 1%), #e3e9e6 0); }
.gauge-inner {
	width: 148px; height: 148px; border-radius: 50%; background: var(--white);
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	box-shadow: inset 0 2px 8px rgba(15, 23, 42, .06);
}
.gauge-num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--tier); font-variant-numeric: tabular-nums; transition: color .3s; }
.gauge-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
.auditor-verdict { text-align: center; }
.tier-badge {
	display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	padding: 6px 14px; border-radius: 999px; background: var(--tier-soft); color: var(--tier); border: 1.5px solid var(--tier);
	transition: all .3s var(--ease);
}
.auditor.tier-gold .tier-badge { background: var(--grad-accent); color: var(--slate-900); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(255, 159, 28, .8); }
.auditor-verdict p { margin: 10px 0 0; font-size: 14px; color: var(--ink); }

.toggle-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.toggle-list li { margin: 0; }
.toggle-row {
	position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
	padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1.5px solid var(--line); cursor: pointer;
	transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.toggle-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.toggle-row:has(input:checked) { border-color: var(--primary); background: #f6fbf8; }
.toggle-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toggle-copy strong { font-size: 14.5px; }
.toggle-copy small { font-size: 13px; color: var(--muted); }
.toggle-pts { font-size: 12.5px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.toggle-row input { position: absolute; left: 16px; top: 16px; opacity: 0; width: 1px; height: 1px; margin: 0; }
.toggle-switch { width: 46px; height: 26px; border-radius: 999px; background: #cbd5d0; position: relative; transition: background .25s; }
.toggle-switch::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--white); box-shadow: 0 2px 6px rgba(15, 23, 42, .25); transition: transform .3s var(--ease);
}
.toggle-row input:checked ~ .toggle-switch { background: var(--primary); }
.toggle-row input:checked ~ .toggle-switch::after { transform: translateX(20px); }
.toggle-row input:focus-visible ~ .toggle-switch { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
	.auditor { grid-template-columns: 1fr; }
	.auditor-gauge { position: static; }
}

/* ---------- Keyword generator ---------- */
.kw-app {
	border-radius: 18px; overflow: hidden; margin: 1rem 0 .4rem; background: var(--white);
	border: 1px solid #cfe1d8; box-shadow: 0 24px 50px -28px rgba(27, 67, 50, .45);
}
.kw-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--slate-900); }
.kw-dot { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.kw-dot:nth-child(1) { background: #ff9f1c; }
.kw-dot:nth-child(2) { background: #f4d35e; }
.kw-dot:nth-child(3) { background: #52b788; }
.kw-title { margin-left: 8px; color: #cbd5e1; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.kw-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; padding: 20px; background: var(--grad-soft); }
.kw-generate {
	font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; border: 0; border-radius: 10px; padding: 12px 20px;
	background: var(--grad-accent); color: var(--slate-900); box-shadow: 0 10px 22px -10px rgba(255, 159, 28, .8);
	transition: transform .2s var(--ease), box-shadow .2s; white-space: nowrap;
}
.kw-generate:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(255, 159, 28, .9); }
.kw-generate:active { transform: translateY(0) scale(.98); }
.kw-results { list-style: none; margin: 0; padding: 16px 20px 6px; display: grid; gap: 10px; counter-reset: kw; }
.kw-empty { color: var(--slate-400); font-size: 14.5px; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; margin: 0; }
.kw-item {
	counter-increment: kw; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
	padding: 12px 14px; margin: 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
	animation: tpthubguide-kw-in .45s var(--ease) both; transition: border-color .2s, background .2s;
}
.kw-item:hover { border-color: #bcd6c9; background: var(--white); }
.kw-item::before {
	content: counter(kw); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
	font-size: 13px; font-weight: 700; color: var(--white); background: var(--grad-brand);
}
@keyframes tpthubguide-kw-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kw-text { font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; user-select: all; }
.kw-len { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kw-copy {
	font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 12px; border-radius: 8px;
	border: 1px solid var(--line); background: var(--white); color: var(--primary-dark); transition: all .2s; white-space: nowrap;
}
.kw-copy:hover { border-color: var(--primary); }
.kw-copy.is-copied { background: var(--primary); color: var(--white); border-color: var(--primary); }
.kw-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 20px 20px; }
.kw-status { font-size: 13.5px; font-weight: 600; color: var(--primary); }
@media (max-width: 640px) {
	.kw-controls { grid-template-columns: 1fr; }
	.kw-item { grid-template-columns: auto 1fr auto; }
	.kw-len { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.notice-dot, .kw-item { animation: none; }
	.toggle-row:hover { transform: none; }
}


/* =================================================================
   v1.5 LAYOUT BALANCE — centered column, centered section heads
   Running text stays left-aligned inside the centered column because
   centered paragraphs are hard to read; everything else is centered.
   ================================================================= */
.section-head {
	max-width: var(--read); margin-left: auto; margin-right: auto; text-align: center;
	display: flex; flex-direction: column; align-items: center;
}
.section-head h2 { padding-left: 0; margin-bottom: 1rem; text-wrap: balance; }
.section-head h2::before { display: none; }
.section-head h2::after {
	content: ""; display: block; width: 72px; height: 5px; border-radius: 3px; margin: 14px auto 0;
	background: linear-gradient(90deg, var(--accent), var(--primary));
}
.section-head p { max-width: 720px; }
.section-lead { font-size: 1.12rem; }
.section-toc { display: inline-block; text-align: center; }
.content-card.reading { margin-top: 30px; }
.bottom-line { text-align: center; margin-top: 30px; }
.blog-grid { justify-content: center; }
.blog-empty { max-width: var(--read); margin-left: auto; margin-right: auto; }
.faq-list { margin-top: 10px; }
h3 { text-wrap: balance; }

/* Widgets fill the centered column edge to edge */
.search-stepper, .fee-calc, .safe-check, .auditor, .kw-app, .lic-calc, .ai-check { width: 100%; margin-left: auto; margin-right: auto; }

/* =================================================================
   LICENSE ESTIMATOR
   ================================================================= */
.lic-calc {
	border-radius: 18px; border: 1px solid #cfe1d8; background: var(--white); overflow: hidden;
	box-shadow: 0 24px 50px -28px rgba(27, 67, 50, 0.45); margin: 1rem 0 1.6rem;
}
.lic-inputs { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; padding: 20px 22px; background: var(--grad-soft); align-items: start; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 4px; }
.counter-btn {
	width: 40px; height: 38px; border-radius: 8px; border: 0; cursor: pointer; font-size: 20px; font-weight: 600;
	background: var(--primary-soft); color: var(--primary-dark); transition: background .2s, transform .15s;
}
.counter-btn:hover:not(:disabled) { background: #d4eadf; }
.counter-btn:active:not(:disabled) { transform: scale(.94); }
.counter-btn:disabled { opacity: .4; cursor: not-allowed; }
.counter-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.range {
	--fill: 10%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; margin-top: 12px;
	background: linear-gradient(90deg, var(--primary) var(--fill), #dfe7e3 var(--fill)); cursor: pointer;
}
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--primary); box-shadow: 0 2px 6px rgba(15,23,42,.2); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--primary); }
.range:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.field input.range { padding: 0; border: 0; border-radius: 999px; height: 6px; box-shadow: none; background: linear-gradient(90deg, var(--primary) var(--fill), #dfe7e3 var(--fill)); }
.field input.range:focus { box-shadow: none; }
.lic-breakdown { padding: 18px 22px 6px; display: grid; gap: 10px; }
.lic-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.lic-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.lic-row.total { border-bottom: 0; font-size: 16.5px; color: var(--ink); font-weight: 600; }
.lic-row.total strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--primary); }
.lic-compare { display: grid; gap: 10px; background: var(--bg); border-radius: 12px; padding: 14px; }
.lic-bar-row { display: grid; grid-template-columns: 110px 1fr 80px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.lic-bar-row strong { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-fill.alt { background: linear-gradient(90deg, #94a3b8, #64748b); }
.lic-save {
	padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 15px;
	background: var(--primary-soft); color: var(--primary-dark); transition: background .3s, color .3s;
}
.lic-save.neutral { background: #f1f5f3; color: var(--ink); }
@media (max-width: 720px) {
	.lic-inputs { grid-template-columns: 1fr; }
	.lic-bar-row { grid-template-columns: 90px 1fr 70px; }
}

/* =================================================================
   AI CONTENT VERIFIER
   ================================================================= */
.ai-check { border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 24px); background: var(--grad-soft); margin: 1rem 0 1.6rem; }
.ai-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; counter-reset: ai; }
.ai-row {
	counter-increment: ai; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 0;
	padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1.5px solid var(--line);
	transition: border-color .25s, background .25s;
}
.ai-row::before {
	content: counter(ai); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	font-size: 13px; font-weight: 700; background: #e7ece9; color: var(--muted); transition: all .25s;
}
.ai-row[data-answer="yes"] { border-color: #9cc9b2; }
.ai-row[data-answer="yes"]::before { content: "✓"; background: var(--primary); color: var(--white); }
.ai-row[data-answer="unsure"] { border-color: #f5c46b; }
.ai-row[data-answer="unsure"]::before { content: "?"; background: var(--accent); color: var(--slate-900); }
.ai-row[data-answer="no"] { border-color: #f1a49d; background: #fffafa; }
.ai-row[data-answer="no"]::before { content: "✕"; background: #d92d20; color: var(--white); }
.ai-q { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-q strong { font-size: 14.5px; }
.ai-q small { font-size: 13px; color: var(--muted); }
.ai-answers { display: inline-flex; background: #eef2f0; border-radius: 10px; padding: 3px; gap: 2px; }
.ai-btn {
	font: inherit; font-size: 13px; font-weight: 600; border: 0; cursor: pointer; padding: 7px 12px; border-radius: 8px;
	background: transparent; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap;
}
.ai-btn:hover { color: var(--ink); }
.ai-btn[aria-checked="true"][data-val="yes"] { background: var(--primary); color: var(--white); box-shadow: 0 4px 10px -4px rgba(45,106,79,.6); }
.ai-btn[aria-checked="true"][data-val="unsure"] { background: var(--accent); color: var(--slate-900); }
.ai-btn[aria-checked="true"][data-val="no"] { background: #d92d20; color: var(--white); }

.ai-result {
	text-align: center; padding: 18px; border-radius: 14px; margin-bottom: 12px; background: var(--white);
	border: 1.5px solid var(--line); transition: background .4s, border-color .4s;
}
.ai-meter { height: 8px; border-radius: 999px; background: #e3e9e6; overflow: hidden; margin-bottom: 12px; }
.ai-meter-fill { display: block; height: 100%; width: 0; background: var(--grad-brand); border-radius: inherit; transition: width .5s var(--ease); }
.ai-title { display: block; font-size: 1.1rem; }
.ai-text { margin: 6px auto 0; font-size: 14.5px; max-width: 560px; color: var(--ink); }
.ai-result[data-state="risk"] { background: #fef3f2; border-color: #f1a49d; animation: tpthubguide-shake .45s ease; }
.ai-result[data-state="risk"] .ai-title { color: #b42318; }
.ai-result[data-state="risk"] .ai-meter-fill { background: linear-gradient(90deg, #f97066, #d92d20); }
.ai-result[data-state="check"] { background: #fff6e6; border-color: #f5c46b; }
.ai-result[data-state="check"] .ai-title { color: #92400e; }
.ai-result[data-state="pass"] { background: var(--primary-soft); border-color: #9cc9b2; animation: tpthubguide-success .6s var(--ease); }
.ai-result[data-state="pass"] .ai-title { color: var(--primary-dark); }
@keyframes tpthubguide-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 640px) {
	.ai-row { grid-template-columns: auto 1fr; }
	.ai-answers { grid-column: 1 / -1; justify-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.ai-result[data-state="risk"], .ai-result[data-state="pass"] { animation: none; }
}


/* =================================================================
   v2.1 — INFO PAGES (About, Contact, Disclaimer, Privacy)
   ================================================================= */
.page-hero {
	text-align: center; padding: clamp(48px, 7vw, 84px) 0 clamp(20px, 3vw, 32px);
	background:
		radial-gradient(circle at 12% 20%, rgba(255, 159, 28, 0.13), transparent 40%),
		radial-gradient(circle at 88% 80%, rgba(45, 106, 79, 0.15), transparent 45%),
		linear-gradient(180deg, #f1f7f4 0%, var(--bg) 100%);
}
.page-hero .container { display: flex; flex-direction: column; align-items: center; }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); color: var(--primary-dark); margin: 0 0 12px; text-wrap: balance; }
.page-hero .hero-sub { margin-bottom: 0; }
.page-hero + .section { padding-top: 24px; }
.info-page h2 {
	font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); margin: 2.4rem 0 .8rem; padding-top: 1.6rem;
	border-top: 1px solid var(--line);
}
.info-page h3 { font-size: 1.12rem; margin-top: 1.8rem; }
.info-lead { font-size: 1.08rem; color: var(--ink); line-height: 1.8; }
.info-lead a, .info-page p a { overflow-wrap: anywhere; }
.info-toc { text-align: center; font-weight: 600; padding: 12px; background: var(--primary-soft); border-radius: 10px; margin: 1rem 0; }
.notice-box {
	border: 2px solid var(--accent); background: #fff8ee; border-radius: 14px; padding: 18px 20px;
}
.notice-box p { margin: 0; color: var(--ink); }
.contact-card {
	display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
	padding: 26px 20px; margin: 1.6rem 0; border-radius: 16px; background: var(--grad-brand); color: var(--white);
	box-shadow: 0 24px 50px -28px rgba(27, 67, 50, .6);
}
.contact-label { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #cfe3d9; font-weight: 700; }
.contact-email {
	font-family: var(--font-head); font-size: clamp(1.25rem, 1rem + 1.4vw, 1.8rem); font-weight: 700; color: var(--white);
	text-decoration: none; overflow-wrap: anywhere; border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.contact-email:hover { color: #ffe2b8; }
.contact-meta { font-size: 13.5px; color: #cfe3d9; }

/* Footer legal links */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.legal-links a { color: var(--slate-400); text-decoration: none; font-size: 13.5px; }
.legal-links a:hover { color: var(--white); }
.footer-bottom { align-items: center; }

/* =================================================================
   FULLY CENTERED MODE (default) — body.align-centered
   Customize → Layout & Alignment → "Balanced" turns this off.
   Tables, forms and widgets keep their own internal alignment.
   ================================================================= */
.align-centered .content-card > h2,
.align-centered .content-card > h3,
.align-centered .content-card > h4,
.align-centered .content-card > p,
.align-centered .content-card > .info-lead,
.align-centered .split > div,
.align-centered .callout,
.align-centered .notice-box p,
.align-centered .stat,
.align-centered .faq-list summary,
.align-centered .faq-list details p,
.align-centered .entry-content > p { text-align: center; }

.align-centered .content-card > ul,
.align-centered .content-card > ol:not(.steps),
.align-centered .split ul {
	list-style-position: inside; padding-left: 0; text-align: center;
}
.align-centered .content-card > ul li,
.align-centered .content-card > ol:not(.steps) li { margin-bottom: .6rem; }

/* Numbered step lists: number sits above the text, centered */
.align-centered .content-card > .steps > li { padding-left: 0; padding-top: 40px; text-align: center; }
.align-centered .content-card > .steps > li::before { left: 50%; transform: translateX(-50%); }

/* Callouts: accent line moves to the top so the box reads centered */
.align-centered .callout { border-left: 0; border-top: 4px solid var(--accent); border-radius: 10px; }
.align-centered .callout.green { border-top-color: var(--primary); }

/* FAQ: plus/minus icon stays on the right, question centered */
.align-centered .faq-list summary { padding-left: 48px; }

/* Centered stat tiles and split boxes */
.align-centered .split h4 { text-align: center; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--slate-400); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
