/*
Theme Name: TechBotHQ
Theme URI: https://techbothq.com
Author: TechBotHQ
Description: Fast, SEO-ready affiliate theme for TechBotHQ — AI tools & automation for small businesses.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: techbothq
*/

/* ---------- Design tokens ---------- */
:root {
	--brand: #3b6fb0;
	--brand-600: #2c5a93;
	--brand-700: #234a7a;
	--brand-400: #5b8fd0;
	--brand-100: #dde9f7;
	--brand-50: #eff5fc;
	--ink: #0d1a2d;
	--ink-2: #24344b;
	--muted: #5a6b83;
	--line: #e2e8f1;
	--bg: #ffffff;
	--bg-soft: #f5f8fc;
	--accent: #ff7a1a;
	--accent-600: #e8630a;
	--ok: #15924a;
	--bad: #d0342c;
	--star: #f5b301;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(13, 26, 45, .06), 0 1px 3px rgba(13, 26, 45, .05);
	--shadow: 0 10px 30px -12px rgba(13, 26, 45, .18);
	--shadow-lg: 0 30px 60px -20px rgba(35, 74, 122, .35);
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.left { margin-left: 0; text-align: left; }
.hp { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(59, 111, 176, .7); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 122, 26, .75); }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-700); }
.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.tbh-cta { margin: 1.6em 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tbh-cta .btn { font-size: 1.05rem; padding: 15px 26px; }
.btn-note { font-size: .88rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(13, 26, 45, .4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .96rem; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-parent > a { color: var(--brand-700); background: var(--brand-50); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand-400); color: var(--brand); }
.menu-toggle { display: none; }
.menu-toggle .i-open, .menu-toggle .i-close { display: inline-grid; place-items: center; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline-grid; }
.search-panel { display: none; border-top: 1px solid var(--line); background: #fff; padding: 16px 0; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.search-form input[type="search"]:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-50); }

@media (max-width: 1200px) {
	.menu-toggle { display: inline-grid; }
	/* Full-screen overlay menu. The header (logo + close button) stays above it. */
	.brand, .header-actions { position: relative; z-index: 2; }
	.main-nav { position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff; padding: 88px var(--gutter) 40px; margin: 0; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
	.main-nav.open { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }
	.main-nav ul { flex-direction: column; gap: 2px; max-width: 640px; margin: 0 auto; }
	.main-nav a { padding: 14px 16px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	/* While open: solid header and no backdrop-filter (it would trap the fixed menu inside the header box). */
	html.menu-open { overflow: hidden; }
	html.menu-open .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
	html.menu-open .search-panel { display: none; }
	.header-actions .btn { display: none; }
	.header-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); background: radial-gradient(1200px 500px at 85% -10%, var(--brand-100), transparent 60%), linear-gradient(180deg, var(--brand-50), #fff 70%); }
.hero-circuit { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { background: linear-gradient(90deg, var(--brand), var(--brand-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-search { display: flex; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 7px; box-shadow: var(--shadow); max-width: 560px; }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; background: transparent; }
.hero-search input:focus { outline: none; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: .9rem; color: var(--muted); align-items: center; }
.hero-tags a { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.hero-tags a:hover { border-color: var(--brand-400); color: var(--brand-700); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: .92rem; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-trust svg { color: var(--ok); }
.hero-visual { position: relative; }
.hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; background: var(--brand-100); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 600; color: var(--ink); animation: float 6s ease-in-out infinite; }
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.float-card .fc-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.float-card.fc-1 { left: -28px; top: 14%; }
.float-card.fc-2 { right: -22px; top: 46%; animation-delay: -2s; }
.float-card.fc-3 { left: 8%; bottom: -22px; animation-delay: -4s; }
.float-card .fc-ico.ok { background: #e8f7ee; color: var(--ok); }
.float-card .fc-ico.ac { background: #fff1e6; color: var(--accent-600); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
	.float-card.fc-1 { left: -6px; }
	.float-card.fc-2 { right: -6px; }
}
@media (max-width: 520px) {
	.float-card { font-size: .8rem; padding: 9px 12px; }
	.float-card .fc-ico { width: 32px; height: 32px; }
	.hero-search { flex-direction: column; }
	.hero-search .btn { width: 100%; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); text-align: center; }
.stat strong { display: block; font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: -28px; } }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--ink-2); }
.cat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.cat-card h3 { margin: 4px 0 0; font-size: 1.08rem; }
.cat-card p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.55; }
.cat-card .more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--brand); }
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Quick picks ---------- */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pick { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: relative; }
.pick-badge { position: absolute; top: -11px; left: 20px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pick-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.pick-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, var(--brand), var(--brand-400)); flex-shrink: 0; }
.pick h3 { margin: 0; font-size: 1.12rem; }
.pick .cat { font-size: .82rem; color: var(--muted); font-weight: 600; }
.pick p { font-size: .94rem; color: var(--muted); margin: 0 0 16px; }
.pick .btn { margin-top: auto; }
.pick-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
@media (max-width: 1024px) { .picks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .picks { grid-template-columns: 1fr; } }

/* ---------- Stars ---------- */
.stars { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.stars-bar { position: relative; display: inline-block; width: 84px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9e0ea' d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") repeat-x; background-size: 16.8px 16px; }
.stars-bar i { position: absolute; inset: 0 auto 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b301' d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") repeat-x; background-size: 16.8px 16px; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.card h3 { margin: 8px 0 10px; font-size: 1.15rem; line-height: 1.35; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-700); }
.card p { font-size: .94rem; color: var(--muted); margin-bottom: 14px; }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); }
.card.featured { grid-column: span 2; flex-direction: row; }
.card.featured .card-img { aspect-ratio: auto; flex: 1.1; min-height: 100%; }
.card.featured .card-body { flex: 1; padding: 30px; justify-content: center; }
.card.featured h3 { font-size: 1.5rem; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } .card.featured { grid-column: span 2; } }
@media (max-width: 680px) { .post-grid { grid-template-columns: 1fr; } .card.featured { grid-column: auto; flex-direction: column; } .card.featured .card-img { aspect-ratio: 16 / 10; } .card.featured .card-body { padding: 20px 22px 22px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex-shrink: 0; color: var(--ok); margin-top: 4px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink) 0%, var(--brand-700) 100%); color: #cfdcef; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { color: #fff; margin-bottom: 10px; }
.newsletter p { margin: 0; }
.newsletter .hero-circuit { opacity: .18; }
.nl-form { position: relative; display: flex; gap: 8px; background: #fff; padding: 7px; border-radius: 14px; }
.nl-form input[type="email"] { flex: 1; min-width: 0; border: 0; padding: 10px 12px; border-radius: 10px; }
.nl-form input:focus { outline: none; }
.nl-msg { margin: 10px 0 0; font-weight: 600; font-size: .92rem; }
.nl-msg.ok { color: #7ee2a8; }
.nl-msg.err { color: #ffb4a8; }
.nl-small { font-size: .8rem; margin-top: 10px !important; opacity: .8; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .nl-form { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb0c8; padding: 64px 0 28px; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c4d1e3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .85rem; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.socials a:hover { background: var(--brand); }
.disclosure-mini { font-size: .82rem; opacity: .8; margin-top: 12px; max-width: 360px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* ---------- Single post ---------- */
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); z-index: 200; }
.post-hero { background: linear-gradient(180deg, var(--brand-50), #fff); padding: 36px 0 0; }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #b3bfcf; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.post-header { max-width: 820px; }
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.post-lead { font-size: 1.15rem; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .9rem; color: var(--muted); margin: 18px 0 26px; }
.post-meta .author { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.post-meta .author img { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); padding: 4px; object-fit: contain; }
.post-meta .dot::before { content: "•"; color: #b3bfcf; margin-right: 18px; }
.post-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7.5; box-shadow: var(--shadow); background: var(--brand-50); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 44px 0 72px; }
.post-side { position: relative; }
.side-sticky { position: sticky; top: 96px; display: grid; gap: 18px; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.toc strong { display: block; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--brand); }
.side-cta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); text-align: center; }
.side-cta h4 { margin: 4px 0 6px; }
.side-cta p { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.post-main, .post-side { min-width: 0; }
@media (max-width: 1024px) { .post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } .post-side { order: -1; } .side-sticky { position: static; } .side-cta { display: none; } .toc { display: none; } }

/* ---------- Entry content ---------- */
.entry-content { font-size: 1.08rem; max-width: 760px; }
.entry-content > * + * { margin-top: 0; }
.entry-content p:empty { display: none; }
@media (max-width: 1024px) { .post-main { max-width: 760px; margin: 0 auto; width: 100%; } }
.entry-content h2 { margin-top: 2em; padding-top: .2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 12px 12px 0; color: var(--ink); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content a:not(.btn) { font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 620px; }
.table-wrap th, .table-wrap td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--bg-soft); color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 700; color: var(--ink); }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: #fff8ec; border: 1px solid #fde3b5; margin: 1.6em 0; font-size: .98rem; }
.callout.info { background: var(--brand-50); border-color: var(--brand-100); }
.callout p:last-child { margin: 0; }
/* Tasknestly done-for-you CTA box */
.tn-cta { margin: 2em 0; padding: 26px 26px 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #10233f 0%, #1d3f6e 100%); color: #e8eef8; box-shadow: var(--shadow-sm); }
.tn-cta .tn-kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb27a; margin-bottom: 8px; }
.tn-cta .tn-title { font-size: 1.3rem; font-weight: 800; line-height: 1.3; color: #fff; margin: 0 0 8px; }
.tn-cta .tn-text p { margin: 0 0 16px; color: #d3def0; font-size: .98rem; }
.tn-cta .tn-btn { background: #fff; color: #10233f; font-weight: 700; }
.tn-cta .tn-btn:hover { background: var(--accent); color: #fff; }
.disclosure { font-size: .88rem; color: var(--muted); background: var(--bg-soft); border: 1px dashed var(--line); padding: 12px 16px; border-radius: 12px; margin-bottom: 28px; }

/* Review box */
.review-box { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 2em 0; box-shadow: var(--shadow-sm); }
.review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 22px 24px; background: linear-gradient(135deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); }
.review-top .pick-logo { width: 56px; height: 56px; font-size: 1.35rem; border-radius: 14px; }
.review-top h3 { margin: 0; font-size: 1.3rem; }
.review-top .tag { font-size: .8rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.score { margin-left: auto; text-align: center; background: var(--ink); color: #fff; border-radius: 14px; padding: 8px 14px; line-height: 1.1; }
.score strong { font-size: 1.6rem; display: block; }
.score span { font-size: .72rem; opacity: .75; }
.review-body { padding: 22px 24px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 18px; }
.proscons > div { border-radius: 12px; padding: 16px 18px; }
.proscons .pros { background: #eefaf2; }
.proscons .cons { background: #fdf0ef; }
.proscons h4 { font-size: .95rem; margin-bottom: 8px; }
.proscons ul { list-style: none; padding: 0 !important; margin: 0 !important; font-size: .95rem; }
.proscons li { position: relative; padding-left: 24px; }
.proscons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.proscons .cons li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }
.review-body .tbh-cta { margin: 6px 0 0; }
.best-for { font-size: .95rem; margin-bottom: 14px; }
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } .score { margin-left: 0; } }

/* FAQ */
.faq { margin: 1.4em 0; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-a { padding: 0 18px 16px; color: var(--ink-2); }
.faq .faq-a p:last-child { margin: 0; }

/* Author box + related */
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); margin-top: 40px; }
.author-box img { width: 64px; height: 64px; border-radius: 16px; background: #fff; padding: 8px; border: 1px solid var(--line); object-fit: contain; flex-shrink: 0; }
.author-box h4 { margin: 0 0 4px; }
.author-box p { margin: 0; font-size: .94rem; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.share a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); }
.share a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Archive / pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-50), #fff); padding: 48px 0 32px; }
.page-hero p { color: var(--muted); max-width: 680px; font-size: 1.08rem; }
.page-content { padding: 32px 0 80px; }
.page-content .entry-content { margin: 0 auto; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-pills a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.cat-pills a:hover, .cat-pills a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: 60px 0; }
.err-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(90deg, var(--brand), var(--brand-400)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 90; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}

/* WP core helpers */
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 8px; }
