/*
Theme Name: Hard Times Helper
Theme URI: https://hardtimeshelper.com/
Author: Mass Density, Inc.
Author URI: https://massdensity.com/
Description: A bold, colorful, hopeful portal theme for Hard Times Helper — money-saving tips, money-making ideas, free stuff, deals, discounts, cheaper health care, cheap gas, credit help and real assistance resources. Includes one-click demo setup (40+ pages, 20 illustrated blog posts, directories, 17 interactive tools, AI Money Helper, videos, top books), custom logo and branding.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: hth
Tags: blog, news, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--hth-deep: #0F5132;
	--hth-green: #16A34A;
	--hth-green-2: #22C55E;
	--hth-gold: #F59E0B;
	--hth-sun: #FDE047;
	--hth-orange: #EA580C;
	--hth-blue: #2563EB;
	--hth-purple: #7C3AED;
	--hth-pink: #DB2777;
	--hth-teal: #0D9488;
	--hth-red: #DC2626;
	--hth-ink: #1F2937;
	--hth-muted: #5B6472;
	--hth-line: #E7E1CF;
	--hth-bg: #FFFDF6;
	--hth-cream: #FFF7E0;
	--hth-mint: #ECFDF3;
	--hth-card: #FFFFFF;
	--hth-radius: 18px;
	--hth-radius-sm: 12px;
	--hth-shadow: 0 10px 30px rgba(15, 81, 50, .10), 0 2px 6px rgba(15, 81, 50, .06);
	--hth-shadow-lg: 0 24px 50px rgba(15, 81, 50, .16);
	--hth-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
	--hth-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--hth-max: 1200px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hth-bg); color: var(--hth-ink); font-family: var(--hth-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--hth-green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--hth-orange); }
h1, h2, h3, h4 { font-family: var(--hth-head); line-height: 1.2; color: var(--hth-deep); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--hth-gold); outline-offset: 2px; border-radius: 6px; }
.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: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
.hth-container { width: 100%; max-width: var(--hth-max); margin: 0 auto; padding: 0 20px; }
.hth-center { text-align: center; margin-top: 28px; }
.hth-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.2em; }
.hth-hp { position: absolute; left: -9999px; opacity: 0; }
.hth-mini { font-size: 13.5px; color: var(--hth-muted); margin: 8px 0 0; }
.hth-hidden { display: none !important; }
mark { background: #FEF3C7; color: #92400E; padding: 0 3px; border-radius: 4px; }

/* Color backgrounds */
.hth-bg-green  { background: linear-gradient(135deg, #16A34A, #0F5132); }
.hth-bg-orange { background: linear-gradient(135deg, #F97316, #C2410C); }
.hth-bg-gold   { background: linear-gradient(135deg, #F59E0B, #B45309); }
.hth-bg-blue   { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.hth-bg-purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.hth-bg-pink   { background: linear-gradient(135deg, #EC4899, #BE185D); }
.hth-bg-teal   { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.hth-bg-red    { background: linear-gradient(135deg, #EF4444, #B91C1C); }

/* ==========================================================================
   Buttons, inputs, chips
   ========================================================================== */
.hth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--hth-head); font-weight: 700; font-size: 16px; line-height: 1.2; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; background: var(--hth-green); color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; box-shadow: 0 6px 16px rgba(22, 163, 74, .25); }
.hth-btn:hover { color: #fff; transform: translateY(-2px); background: var(--hth-deep); box-shadow: 0 10px 22px rgba(15, 81, 50, .3); }
.hth-btn--gold { background: linear-gradient(135deg, var(--hth-sun), var(--hth-gold)); color: #3B2A00; box-shadow: 0 6px 16px rgba(245, 158, 11, .35); }
.hth-btn--gold:hover { background: linear-gradient(135deg, #FACC15, #D97706); color: #3B2A00; }
.hth-btn--orange { background: var(--hth-orange); box-shadow: 0 6px 16px rgba(234, 88, 12, .3); }
.hth-btn--orange:hover { background: #C2410C; }
.hth-btn--white { background: #fff; color: var(--hth-deep); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.hth-btn--white:hover { background: #FEF9C3; color: var(--hth-deep); }
.hth-btn--ghost { background: transparent; color: var(--hth-deep); border-color: var(--hth-green); box-shadow: none; }
.hth-btn--ghost:hover { background: var(--hth-mint); color: var(--hth-deep); }
.hth-btn--sm { font-size: 14px; padding: 8px 14px; }
.hth-btn--lg { font-size: 17px; padding: 15px 26px; }
.hth-btn .hth-icon { width: 20px; height: 20px; }
.hth-input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--hth-line); border-radius: var(--hth-radius-sm); background: #fff; color: var(--hth-ink); transition: border-color .15s, box-shadow .15s; }
.hth-input:focus { outline: none; border-color: var(--hth-green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
textarea.hth-input { resize: vertical; }
.hth-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; font-weight: 600; font-size: 14.5px; color: var(--hth-deep); }
.hth-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 16px; }
.hth-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.hth-chip { font: inherit; font-size: 14.5px; font-weight: 600; border: 2px solid var(--hth-line); background: #fff; color: var(--hth-ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.hth-chip:hover { border-color: var(--hth-green); color: var(--hth-deep); }
.hth-chip.is-active, .hth-chip[aria-pressed="true"] { background: var(--hth-green); border-color: var(--hth-green); color: #fff; }
.hth-pill { display: inline-block; font-family: var(--hth-head); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; color: #fff; text-decoration: none; background: var(--hth-green); }
.hth-pill:hover { color: #fff; filter: brightness(1.08); }
.hth-pill--orange { background: var(--hth-orange); } .hth-pill--gold { background: #D97706; } .hth-pill--blue { background: var(--hth-blue); }
.hth-pill--purple { background: var(--hth-purple); } .hth-pill--pink { background: var(--hth-pink); } .hth-pill--teal { background: var(--hth-teal); } .hth-pill--red { background: var(--hth-red); }
.hth-pill--white { background: #fff; color: var(--hth-deep); } .hth-pill--white:hover { color: var(--hth-deep); }
.hth-kicker { display: inline-block; font-family: var(--hth-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .18); color: #FEF3C7; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.hth-kicker--dark { background: #FEF3C7; color: #92400E; }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.hth-topbar { background: var(--hth-deep); color: #D1FAE5; font-size: 14px; }
.hth-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.hth-topbar__msg { margin: 0; display: flex; align-items: center; gap: 8px; }
.hth-topbar__msg .hth-icon { color: var(--hth-sun); }
.hth-toplinks { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.hth-toplinks a { color: #fff; text-decoration: none; font-weight: 600; }
.hth-toplinks a:hover { color: var(--hth-sun); }
.hth-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 246, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--hth-line); transition: box-shadow .2s; }
.hth-header.is-scrolled { box-shadow: 0 8px 24px rgba(15, 81, 50, .1); }
.hth-header__inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.hth-brand { flex-shrink: 0; }
.hth-brand img, .hth-logo img, .custom-logo { display: block; height: 54px; width: auto; }
.hth-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hth-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.hth-menu > li { position: relative; }
.hth-menu > li > a { display: block; padding: 10px 11px; font-family: var(--hth-head); font-weight: 600; font-size: 15px; color: var(--hth-deep); text-decoration: none; border-radius: 10px; white-space: nowrap; }
.hth-menu > li > a:hover, .hth-menu > li.current-menu-item > a, .hth-menu > li.current-menu-ancestor > a, .hth-menu > li.current-page-ancestor > a { background: var(--hth-mint); color: var(--hth-green); }
.hth-menu .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-radius: var(--hth-radius-sm); box-shadow: var(--hth-shadow-lg); border: 1px solid var(--hth-line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s; }
.hth-menu > li:hover > .sub-menu, .hth-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hth-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--hth-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.hth-menu .sub-menu a:hover { background: var(--hth-cream); color: var(--hth-orange); }
.hth-subtoggle { display: none; }
.hth-menu-toggle, .hth-search-toggle { background: none; border: 0; cursor: pointer; padding: 10px; color: var(--hth-deep); }
.hth-search-toggle .hth-icon { width: 24px; height: 24px; }
.hth-menu-toggle { display: none; flex-direction: column; gap: 5px; margin-left: auto; }
.hth-menu-toggle span:not(.screen-reader-text) { display: block; width: 26px; height: 3px; background: var(--hth-deep); border-radius: 3px; transition: transform .2s, opacity .2s; }
.hth-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hth-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hth-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hth-nav__cta { padding: 11px 18px; font-size: 15px; white-space: nowrap; flex-shrink: 0; }
.hth-searchbar { background: #fff; border-top: 1px solid var(--hth-line); padding: 14px 0; }
.hth-searchform { display: flex; gap: 10px; }
.hth-searchform .hth-input { flex: 1; }

@media (max-width: 1420px) {
	.hth-menu > li > a { padding: 10px 8px; font-size: 14.5px; }
	.hth-nav__cta { display: none; }
}
@media (max-width: 1024px) {
	.hth-menu-toggle { display: flex; }
	.hth-header { backdrop-filter: none; background: var(--hth-bg); }
	.hth-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 110px); height: calc(100dvh - 110px); background: var(--hth-bg); border-top: 1px solid var(--hth-line); box-shadow: 0 20px 40px rgba(15,81,50,.15); flex-direction: column; align-items: stretch; padding: 16px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease, visibility .25s; margin: 0; visibility: hidden; z-index: 60; }
	.hth-nav.is-open { transform: translateX(0); visibility: visible; }
	.hth-menu { flex-direction: column; align-items: stretch; }
	.hth-menu > li { border-bottom: 1px solid var(--hth-line); display: flex; flex-wrap: wrap; align-items: center; }
	.hth-menu > li > a { flex: 1; font-size: 17px; padding: 14px 4px; }
	.hth-subtoggle { display: block; background: var(--hth-mint); border: 0; border-radius: 8px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--hth-deep); }
	.hth-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; width: 100%; padding: 0 0 10px 10px; min-width: 0; }
	.hth-menu li.is-open > .sub-menu { display: block; }
	.hth-nav__cta { display: flex; margin-top: 18px; }
	.hth-search-toggle { order: 2; margin-left: 0; }
	.hth-menu-toggle { order: 3; margin-left: 0; }
	.hth-brand { margin-right: auto; }
	body.hth-nav-open { overflow: hidden; }
}
@media (max-width: 720px) {
	.hth-topbar__nav { display: none; }
	.hth-topbar__inner { justify-content: center; text-align: center; }
	.hth-header__inner { min-height: 66px; }
	.hth-brand img, .hth-logo img, .custom-logo { height: 42px; }
}

/* ==========================================================================
   Heroes
   ========================================================================== */
.hth-hero { position: relative; color: #fff; overflow: hidden; }
.hth-hero__title { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; text-shadow: 0 2px 20px rgba(0, 0, 0, .12); }
.hth-hero__sub { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .92); max-width: 680px; }
.hth-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; fill: var(--hth-bg); }
.hth-hero--page { padding: 46px 0 84px; }
.hth-hero--page::before, .hth-hero--post::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .09); right: -120px; top: -220px; }
.hth-hero--page::after, .hth-hero--post::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); left: -80px; bottom: -120px; }
.hth-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.hth-hero__icon { display: flex; align-items: center; justify-content: center; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 5px solid rgba(255, 255, 255, .5); box-shadow: 0 20px 50px rgba(0, 0, 0, .18); animation: hth-float 6s ease-in-out infinite; }
.hth-hero__icon .hth-icon { width: 96px; height: 96px; color: #fff; }
@keyframes hth-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hth-crumbs { font-size: 14px; margin-bottom: 14px; color: rgba(255, 255, 255, .85); }
.hth-crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.hth-crumbs a:hover { color: var(--hth-sun); }
.hth-crumbs span { margin: 0 4px; opacity: .7; }
@media (max-width: 720px) {
	.hth-hero__inner { grid-template-columns: 1fr; }
	.hth-hero__art { display: none; }
	.hth-hero--page { padding: 34px 0 70px; }
}

/* Home hero */
.hth-hero--home { background: radial-gradient(circle at 80% 10%, rgba(253, 224, 71, .35), transparent 40%), linear-gradient(135deg, #0F5132 0%, #15803D 45%, #16A34A 100%); padding: 64px 0 110px; }
.hth-hero__bg span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hth-hero__bg span:nth-child(1) { width: 600px; height: 600px; right: -200px; top: -260px; }
.hth-hero__bg span:nth-child(2) { width: 300px; height: 300px; left: -100px; bottom: -140px; background: rgba(253, 224, 71, .12); }
.hth-hero__bg span:nth-child(3) { width: 120px; height: 120px; left: 45%; top: 30px; background: rgba(249, 115, 22, .2); }
.hth-home-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; }
.hth-hero--home .hth-hero__title { font-size: clamp(36px, 5.4vw, 62px); }
.hth-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hth-hero__search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 600px; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.hth-hero__search .hth-icon { color: var(--hth-muted); }
.hth-hero__search input { flex: 1; border: 0; font: inherit; font-size: 16px; padding: 10px 0; outline: none; min-width: 0; background: transparent; }
.hth-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; font-weight: 600; font-size: 15px; color: #D1FAE5; }
.hth-trust li { display: flex; align-items: center; gap: 6px; }
.hth-trust .hth-icon { color: var(--hth-sun); }
.hth-home-hero__side { display: grid; gap: 14px; }
.hth-daily { background: #fff; color: var(--hth-ink); border-radius: var(--hth-radius); padding: 20px 22px; box-shadow: var(--hth-shadow-lg); position: relative; overflow: hidden; }
.hth-daily::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; opacity: .15; }
.hth-daily--free::after { background: var(--hth-purple); }
.hth-daily--deal::after { background: var(--hth-orange); }
.hth-daily--help { background: #FEF3C7; }
.hth-daily__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--hth-head); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--hth-purple); }
.hth-daily--deal .hth-daily__label { color: var(--hth-orange); }
.hth-daily--help .hth-daily__label { color: #92400E; }
.hth-daily h3 { font-size: 20px; margin: 6px 0 4px; }
.hth-daily p { font-size: 15px; margin: 0 0 6px; color: var(--hth-muted); }
.hth-daily--help p { color: #78350F; margin: 6px 0 0; }
.hth-daily a { font-weight: 700; text-decoration: none; }
@media (max-width: 960px) { .hth-home-hero { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
	.hth-hero--home { padding: 40px 0 90px; }
	.hth-hero__ctas .hth-btn { flex: 1 1 100%; }
	.hth-hero__search { border-radius: 16px; flex-wrap: wrap; padding: 10px; }
	.hth-hero__search .hth-btn { width: 100%; }
}

/* ==========================================================================
   Home bands
   ========================================================================== */
.hth-band { padding: 72px 0; }
.hth-band--cream { background: var(--hth-cream); }
.hth-band--mint { background: var(--hth-mint); }
.hth-band--dark { background: linear-gradient(135deg, #0B3D26, #0F5132); color: #D1FAE5; }
.hth-band--dark .hth-h2 { color: #fff; }
.hth-band__head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.hth-band__head p { color: var(--hth-muted); font-size: 18px; }
.hth-h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.hth-needs { padding: 34px 0 20px; }
.hth-needs .hth-h2 { font-size: 26px; text-align: center; }
.hth-needs__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hth-need { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 2px solid var(--hth-line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--hth-deep); text-decoration: none; transition: all .15s; }
.hth-need span { color: var(--hth-orange); transition: transform .15s; }
.hth-need:hover { border-color: var(--hth-green); background: var(--hth-mint); color: var(--hth-deep); }
.hth-need:hover span { transform: translateX(3px); }
.hth-need--quiz { background: var(--hth-sun); border-color: var(--hth-gold); }

/* Ladder */
.hth-ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; }
.hth-rung { border-radius: var(--hth-radius); box-shadow: var(--hth-shadow); transition: transform .2s; }
.hth-rung:nth-child(1) { min-height: 230px; } .hth-rung:nth-child(2) { min-height: 250px; } .hth-rung:nth-child(3) { min-height: 270px; }
.hth-rung:nth-child(4) { min-height: 290px; } .hth-rung:nth-child(5) { min-height: 310px; } .hth-rung:nth-child(6) { min-height: 330px; }
.hth-rung:hover { transform: translateY(-6px); }
.hth-rung a { display: flex; flex-direction: column; height: 100%; min-height: inherit; padding: 20px 18px; color: #fff; text-decoration: none; gap: 6px; position: relative; }
.hth-rung__num { position: absolute; top: 14px; right: 16px; font-family: var(--hth-head); font-weight: 800; font-size: 40px; opacity: .25; line-height: 1; }
.hth-rung__icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; margin-bottom: auto; }
.hth-rung__icon .hth-icon { width: 30px; height: 30px; }
.hth-rung strong { font-family: var(--hth-head); font-size: 18px; line-height: 1.2; margin-top: 18px; }
.hth-rung span:last-child { font-size: 14px; opacity: .92; line-height: 1.45; }
@media (max-width: 1024px) { .hth-ladder { grid-template-columns: repeat(3, 1fr); } .hth-rung { min-height: 200px !important; } }
@media (max-width: 560px) { .hth-ladder { grid-template-columns: 1fr 1fr; } }

/* Tool grid & topics */
.hth-toolgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hth-toolcard { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: var(--hth-radius); padding: 22px; text-decoration: none; color: var(--hth-ink); box-shadow: var(--hth-shadow); border-top: 5px solid var(--c, var(--hth-green)); transition: transform .18s, box-shadow .18s; }
.hth-toolcard:hover { transform: translateY(-4px); box-shadow: var(--hth-shadow-lg); color: var(--hth-ink); }
.hth-toolcard strong { font-family: var(--hth-head); color: var(--hth-deep); font-size: 17px; }
.hth-toolcard span:last-child { font-size: 14.5px; color: var(--hth-muted); }
.hth-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hth-topic { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--hth-radius); color: #fff; text-decoration: none; box-shadow: var(--hth-shadow); transition: transform .18s; }
.hth-topic:hover { transform: translateY(-4px) rotate(-.5deg); color: #fff; }
.hth-topic__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.hth-topic__icon .hth-icon { width: 26px; height: 26px; }
.hth-topic strong { font-family: var(--hth-head); font-size: 18px; }
.hth-topic span:last-child { font-size: 14px; opacity: .92; line-height: 1.45; }
@media (max-width: 1024px) { .hth-toolgrid, .hth-topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hth-toolgrid, .hth-topics { grid-template-columns: 1fr; } }

/* Split + promos + network */
.hth-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hth-split { grid-template-columns: 1fr; } }
.hth-duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hth-promo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px; border-radius: 22px; color: #fff; text-decoration: none; box-shadow: var(--hth-shadow-lg); transition: transform .18s; position: relative; overflow: hidden; }
.hth-promo::after { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; bottom: -60px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hth-promo:hover { transform: translateY(-5px); color: #fff; }
.hth-promo h3 { color: #fff; font-size: 24px; margin: 8px 0 2px; }
.hth-promo p { opacity: .95; }
.hth-promo .hth-btn { margin-top: auto; }
.hth-promo__icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; }
.hth-promo__icon .hth-icon { width: 30px; height: 30px; }
@media (max-width: 900px) { .hth-duo { grid-template-columns: 1fr; } }
.hth-network { text-align: center; }
.hth-network__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.hth-network__links a { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--hth-radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; transition: background .15s; }
.hth-network__links a:hover { background: rgba(255, 255, 255, .15); color: var(--hth-sun); }
.hth-network__links strong { font-family: var(--hth-head); font-size: 19px; }
.hth-network__links span { font-size: 14.5px; color: #BBF7D0; }
@media (max-width: 800px) { .hth-network__links { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page layout & sections
   ========================================================================== */
.hth-page { padding: 26px 20px 60px; }
.hth-toc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--hth-line); border-radius: var(--hth-radius); padding: 14px 18px; margin: 0 0 28px; font-size: 14.5px; box-shadow: var(--hth-shadow); }
.hth-toc strong { margin-right: 4px; color: var(--hth-deep); }
.hth-toc a { background: var(--hth-cream); color: var(--hth-deep); text-decoration: none; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.hth-toc a:hover { background: var(--hth-sun); }
.hth-page__intro { max-width: 820px; font-size: 18.5px; margin-bottom: 18px; }
.hth-section { margin: 46px 0; }
.hth-section__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; position: relative; padding-left: 18px; }
.hth-section__title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 6px; border-radius: 6px; background: linear-gradient(var(--hth-gold), var(--hth-orange)); }
.hth-section__intro { color: var(--hth-muted); max-width: 820px; margin-bottom: 18px; }

/* Cards */
.hth-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.hth-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: var(--hth-radius); padding: 24px 22px; text-decoration: none; color: var(--hth-ink); box-shadow: var(--hth-shadow); border: 1px solid rgba(15, 81, 50, .06); transition: transform .18s, box-shadow .18s; overflow: hidden; }
.hth-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--c, var(--hth-green)); }
a.hth-card:hover { transform: translateY(-5px); box-shadow: var(--hth-shadow-lg); color: var(--hth-ink); }
.hth-card__icon { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--cbg, var(--hth-mint)); color: var(--c, var(--hth-green)); margin-bottom: 6px; }
.hth-card__icon .hth-icon { width: 27px; height: 27px; }
.hth-card__title { font-size: 19px; margin: 0; }
.hth-card__text { color: var(--hth-muted); font-size: 15.5px; margin: 0; }
.hth-card__more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--c, var(--hth-green)); font-size: 15px; }
.hth-badge { position: absolute; top: 18px; right: 16px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #FEF3C7; color: #92400E; padding: 4px 10px; border-radius: 999px; }
.hth-card--c0, .hth-toolcard.hth-card--c0 { --c: #16A34A; --cbg: #DCFCE7; }
.hth-card--c1, .hth-toolcard.hth-card--c1 { --c: #EA580C; --cbg: #FFEDD5; }
.hth-card--c2, .hth-toolcard.hth-card--c2 { --c: #7C3AED; --cbg: #EDE9FE; }
.hth-card--c3, .hth-toolcard.hth-card--c3 { --c: #2563EB; --cbg: #DBEAFE; }
.hth-card--c4, .hth-toolcard.hth-card--c4 { --c: #DB2777; --cbg: #FCE7F3; }
.hth-card--c5, .hth-toolcard.hth-card--c5 { --c: #0D9488; --cbg: #CCFBF1; }

/* Directory */
.hth-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hth-dir__item { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--hth-line); border-left: 5px solid var(--hth-green); border-radius: var(--hth-radius-sm); padding: 16px 18px; text-decoration: none; color: var(--hth-ink); transition: all .15s; }
.hth-dir__item:nth-child(4n+2) { border-left-color: var(--hth-orange); }
.hth-dir__item:nth-child(4n+3) { border-left-color: var(--hth-purple); }
.hth-dir__item:nth-child(4n+4) { border-left-color: var(--hth-blue); }
.hth-dir__item:hover { transform: translateX(3px); box-shadow: var(--hth-shadow); color: var(--hth-ink); }
.hth-dir__name { font-family: var(--hth-head); font-weight: 700; color: var(--hth-deep); font-size: 16.5px; }
.hth-dir__desc { font-size: 14.5px; color: var(--hth-muted); line-height: 1.5; }
.hth-dir__host { font-size: 12.5px; color: var(--hth-green); font-weight: 600; margin-top: 2px; }
.hth-tag { display: inline-block; font-family: var(--hth-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; background: #E0F2FE; color: #075985; vertical-align: 2px; }
.hth-tag--free { background: #DCFCE7; color: #166534; } .hth-tag--gov { background: #DBEAFE; color: #1E40AF; }
.hth-tag--app { background: #EDE9FE; color: #5B21B6; } .hth-tag--nonprofit { background: #FCE7F3; color: #9D174D; }
.hth-tag--paid { background: #FEF3C7; color: #92400E; } .hth-tag--free-paid { background: #FFEDD5; color: #9A3412; }

/* Tips, steps */
.hth-tips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px 22px; }
.hth-tips li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: var(--hth-radius-sm); padding: 12px 14px; border: 1px solid var(--hth-line); }
.hth-tips .hth-icon { color: var(--hth-green); margin-top: 3px; }
.hth-split .hth-tips { grid-template-columns: 1fr; margin-bottom: 22px; }
.hth-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.hth-steps li { counter-increment: s; position: relative; background: #fff; border-radius: var(--hth-radius); padding: 20px 22px 18px 82px; box-shadow: var(--hth-shadow); }
.hth-steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--hth-sun), var(--hth-gold)); color: #3B2A00; font-family: var(--hth-head); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.hth-steps h3 { font-size: 18.5px; margin: 0 0 4px; }
.hth-steps p { margin: 0; color: var(--hth-muted); }

/* Checklist */
.hth-checklist { background: #fff; border-radius: var(--hth-radius); padding: 20px 22px; box-shadow: var(--hth-shadow); border: 1px solid var(--hth-line); }
.hth-checklist__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hth-checklist__bar .hth-bar { flex: 1; min-width: 140px; }
.hth-checklist__count { font-weight: 700; color: var(--hth-deep); font-size: 14.5px; }
.hth-bar { height: 12px; background: #EEF2E6; border-radius: 999px; overflow: hidden; }
.hth-bar__fill { height: 100%; background: linear-gradient(90deg, var(--hth-green-2), var(--hth-gold)); border-radius: 999px; transition: width .3s ease; }
.hth-check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 6px; border-bottom: 1px dashed var(--hth-line); cursor: pointer; font-weight: 500; }
.hth-check:last-child { border-bottom: 0; }
.hth-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--hth-green); flex-shrink: 0; cursor: pointer; }
.hth-check.is-done span { color: var(--hth-muted); text-decoration: line-through; text-decoration-color: var(--hth-green); }

/* Scripts */
.hth-scripts { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .hth-scripts { grid-template-columns: 1fr; } }
.hth-scriptcard { background: #fff; border-radius: var(--hth-radius); box-shadow: var(--hth-shadow); overflow: hidden; border: 1px solid var(--hth-line); }
.hth-scriptcard__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: linear-gradient(135deg, #F5F3FF, #FFF7E0); border-bottom: 1px solid var(--hth-line); }
.hth-scriptcard__head h3 { margin: 0; font-size: 17px; }
.hth-scriptcard__text { margin: 0; padding: 16px 18px; white-space: pre-wrap; font-family: var(--hth-body); font-size: 15px; line-height: 1.65; color: var(--hth-ink); max-height: 360px; overflow: auto; }

/* FAQ */
.hth-faq details { background: #fff; border-radius: var(--hth-radius-sm); border: 1px solid var(--hth-line); margin-bottom: 10px; overflow: hidden; }
.hth-faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-family: var(--hth-head); font-weight: 700; color: var(--hth-deep); list-style: none; position: relative; }
.hth-faq summary::-webkit-details-marker { display: none; }
.hth-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--hth-orange); }
.hth-faq details[open] summary::after { content: "–"; }
.hth-faq details > div { padding: 0 18px 14px; color: var(--hth-muted); }

/* Tables */
.hth-table-wrap { overflow-x: auto; border-radius: var(--hth-radius); box-shadow: var(--hth-shadow); background: #fff; }
.hth-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hth-table th { background: var(--hth-deep); color: #fff; text-align: left; padding: 13px 14px; font-family: var(--hth-head); font-weight: 600; white-space: nowrap; }
.hth-table td { padding: 12px 14px; border-bottom: 1px solid #F0EBDC; vertical-align: top; }
.hth-table tbody tr:nth-child(even) td { background: #FFFCF2; }
.hth-table tbody tr:hover td { background: var(--hth-mint); }
.hth-table td:first-child { font-weight: 700; color: var(--hth-deep); }
@media (max-width: 720px) {
	.hth-table-wrap .hth-table thead { display: none; }
	.hth-table-wrap .hth-table tr { display: block; border-bottom: 3px solid var(--hth-cream); padding: 6px 0; }
	.hth-table-wrap .hth-table td { display: grid; grid-template-columns: 110px 1fr; gap: 10px; border: 0; padding: 6px 14px; }
	.hth-table-wrap .hth-table td::before { content: attr(data-label); font-weight: 700; color: var(--hth-muted); font-size: 13px; }
}

/* Callouts */
.hth-callout { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--hth-radius); padding: 20px 22px; border: 2px solid; }
.hth-callout h3 { font-size: 19px; margin: 0 0 4px; }
.hth-callout p:last-child { margin-bottom: 0; }
.hth-callout__icon .hth-icon { width: 34px; height: 34px; }
.hth-callout--tip { background: #F0FDF4; border-color: #86EFAC; } .hth-callout--tip .hth-callout__icon { color: var(--hth-green); }
.hth-callout--warn { background: #FFF1F2; border-color: #FDA4AF; } .hth-callout--warn .hth-callout__icon, .hth-callout--warn h3 { color: #BE123C; }
.hth-callout--info { background: #EFF6FF; border-color: #93C5FD; } .hth-callout--info .hth-callout__icon { color: var(--hth-blue); }

/* Books */
.hth-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hth-book { display: flex; flex-direction: column; background: #fff; border-radius: var(--hth-radius); box-shadow: var(--hth-shadow); overflow: hidden; }
.hth-book__cover { position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px 18px 30px; color: #fff; background: var(--bk, linear-gradient(135deg, #16A34A, #0F5132)); }
.hth-book__cover::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 6px; background: rgba(255, 255, 255, .35); }
.hth-book__cover span { font-family: var(--hth-head); font-weight: 800; font-size: 20px; line-height: 1.15; }
.hth-book__cover small { opacity: .9; margin-top: 6px; }
.hth-book--c1 .hth-book__cover { --bk: linear-gradient(135deg, #F97316, #C2410C); }
.hth-book--c2 .hth-book__cover { --bk: linear-gradient(135deg, #8B5CF6, #5B21B6); }
.hth-book--c3 .hth-book__cover { --bk: linear-gradient(135deg, #3B82F6, #1E3A8A); }
.hth-book--c4 .hth-book__cover { --bk: linear-gradient(135deg, #EC4899, #9D174D); }
.hth-book--c5 .hth-book__cover { --bk: linear-gradient(135deg, #14B8A6, #115E59); }
.hth-book__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.hth-book__body h3 { font-size: 18px; margin: 0; }
.hth-book__author { color: var(--hth-orange); font-weight: 600; font-size: 14.5px; margin: 2px 0 8px; }
.hth-book__body p:not(.hth-book__author) { color: var(--hth-muted); font-size: 15px; }
.hth-book__body .hth-btn { margin-top: auto; align-self: flex-start; }
.hth-mini-link { font-size: 13.5px; margin-top: 8px; font-weight: 600; }

/* Videos */
.hth-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hth-video { display: flex; flex-direction: column; background: #fff; border-radius: var(--hth-radius); overflow: hidden; box-shadow: var(--hth-shadow); text-decoration: none; color: var(--hth-ink); transition: transform .18s; }
.hth-video:hover { transform: translateY(-4px); color: var(--hth-ink); }
.hth-video__thumb { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--vb, linear-gradient(135deg, #DC2626, #7F1D1D)); position: relative; }
.hth-video--c1 .hth-video__thumb { --vb: linear-gradient(135deg, #F59E0B, #B45309); }
.hth-video--c2 .hth-video__thumb { --vb: linear-gradient(135deg, #16A34A, #14532D); }
.hth-video--c3 .hth-video__thumb { --vb: linear-gradient(135deg, #7C3AED, #4C1D95); }
.hth-video--c4 .hth-video__thumb { --vb: linear-gradient(135deg, #2563EB, #1E3A8A); }
.hth-video--c5 .hth-video__thumb { --vb: linear-gradient(135deg, #DB2777, #831843); }
.hth-video__play { width: 66px; height: 66px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #DC2626; display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .18s; }
.hth-video:hover .hth-video__play { transform: scale(1.1); }
.hth-video__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.hth-video__body strong { font-family: var(--hth-head); color: var(--hth-deep); font-size: 17px; line-height: 1.3; }
.hth-video__body em { font-style: normal; font-weight: 600; font-size: 13.5px; color: var(--hth-red); }
.hth-video__body span { font-size: 14.5px; color: var(--hth-muted); }

/* Next rung */
.hth-nextrung { display: flex; align-items: center; gap: 18px; margin: 50px 0 10px; padding: 22px 26px; border-radius: 22px; background: linear-gradient(135deg, var(--hth-sun), var(--hth-gold)); color: #3B2A00; text-decoration: none; box-shadow: 0 16px 40px rgba(245, 158, 11, .3); transition: transform .18s; }
.hth-nextrung:hover { transform: translateY(-3px); color: #3B2A00; }
.hth-nextrung__icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hth-nextrung__icon .hth-icon { width: 30px; height: 30px; }
.hth-nextrung small { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.hth-nextrung strong { font-family: var(--hth-head); font-size: 21px; }
.hth-nextrung__arrow { margin-left: auto; font-size: 30px; font-weight: 800; }

/* ==========================================================================
   Interactive tools (shared)
   ========================================================================== */
.hth-tool { background: #fff; border-radius: 22px; box-shadow: var(--hth-shadow-lg); overflow: hidden; border: 1px solid var(--hth-line); scroll-margin-top: 100px; }
.hth-tool__head { padding: 22px 26px 18px; background: linear-gradient(135deg, #ECFDF3, #FFF7E0); border-bottom: 1px solid var(--hth-line); }
.hth-tool__badge { display: inline-block; background: var(--hth-green); color: #fff; font-family: var(--hth-head); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.hth-tool__title { font-size: 23px; margin: 0 0 4px; }
.hth-tool__desc { color: var(--hth-muted); margin: 0; }
.hth-tool__body { padding: 22px 26px 26px; }
.hth-tool__body > .hth-btn { margin: 4px 8px 4px 0; }
.hth-section--tool .hth-section__title { margin-bottom: 16px; }
.hth-result { margin-top: 18px; background: linear-gradient(135deg, #F0FDF4, #FEFCE8); border: 2px dashed #86EFAC; border-radius: var(--hth-radius); padding: 18px 20px; }
.hth-result:empty { display: none; }
.hth-result__big { font-family: var(--hth-head); font-weight: 800; font-size: clamp(30px, 5vw, 44px); color: var(--hth-green); line-height: 1.1; margin: 2px 0 6px; }
.hth-result p:last-child { margin-bottom: 0; }
.hth-list { padding-left: 20px; margin: 8px 0; }
.hth-list li { margin-bottom: 5px; }
.hth-table { background: #fff; }
.hth-tool .hth-table th { white-space: normal; }
.hth-tool .hth-table-wrap, .hth-tool table { box-shadow: none; }
.hth-tool .hth-table input.hth-input { padding: 8px 10px; min-width: 80px; }
.hth-tool table { width: 100%; border-collapse: collapse; }
.hth-tool td, .hth-tool th { padding: 8px 8px; }
.hth-tool .hth-table-wrap, .hth-tool > .hth-tool__body > div:has(> table) { overflow-x: auto; }
.hth-cards-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.hth-card-mini { background: #fff; border: 1px solid var(--hth-line); border-top: 4px solid var(--hth-gold); border-radius: var(--hth-radius-sm); padding: 14px 16px; }
.hth-card-mini:nth-child(3n+2) { border-top-color: var(--hth-green); }
.hth-card-mini:nth-child(3n+3) { border-top-color: var(--hth-purple); }
.hth-card-mini strong { font-family: var(--hth-head); color: var(--hth-deep); display: block; margin-bottom: 4px; }
.hth-card-mini p { font-size: 14.5px; color: var(--hth-muted); margin: 0 0 6px; }
.hth-card-mini a { font-weight: 700; font-size: 14.5px; }
.hth-steps-out { padding-left: 22px; }
.hth-steps-out li { margin-bottom: 8px; }
.hth-copy { cursor: pointer; }
button.hth-copy:not(.hth-btn) { font: inherit; font-weight: 600; font-size: 14px; background: var(--hth-mint); border: 0; border-radius: 999px; padding: 6px 14px; color: var(--hth-deep); }
@media (max-width: 560px) { .hth-tool__head, .hth-tool__body { padding-left: 16px; padding-right: 16px; } }

/* AI chat */
.hth-ai { background: #fff; border-radius: 22px; box-shadow: var(--hth-shadow-lg); border: 1px solid var(--hth-line); overflow: hidden; display: flex; flex-direction: column; }
.hth-ai__head { display: flex; gap: 12px; align-items: center; padding: 16px 20px; background: linear-gradient(135deg, #7C3AED, #DB2777); color: #fff; }
.hth-ai__head strong { font-family: var(--hth-head); display: block; font-size: 17px; }
.hth-ai__status { font-size: 13px; opacity: .9; }
.hth-ai__avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; }
.hth-ai__avatar .hth-icon { width: 26px; height: 26px; }
.hth-ai__log { height: 320px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #FBFAFF; }
.hth-ai__msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 15.5px; line-height: 1.55; }
.hth-ai__msg p { margin: 0 0 8px; } .hth-ai__msg p:last-child, .hth-ai__msg ul:last-child { margin-bottom: 0; }
.hth-ai__msg ul { margin: 4px 0 8px; padding-left: 18px; }
.hth-ai__msg--bot { background: #fff; border: 1px solid #EDE9FE; border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 2px 8px rgba(124, 58, 237, .06); }
.hth-ai__msg--me { background: var(--hth-purple); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.hth-ai__starters { padding: 10px 18px 0; margin: 0; }
.hth-ai__starters .hth-chip { font-size: 13px; padding: 6px 12px; }
.hth-ai__form { display: flex; gap: 8px; padding: 14px 18px 4px; }
.hth-ai__form .hth-input { flex: 1; }
.hth-ai > .hth-mini { padding: 0 18px 14px; }
.hth-typing i { display: inline-block; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: var(--hth-purple); animation: hth-bounce 1s infinite; }
.hth-typing i:nth-child(2) { animation-delay: .15s; } .hth-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hth-bounce { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   Posts
   ========================================================================== */
.hth-postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hth-latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hth-latest .hth-post-card--big { grid-column: span 2; flex-direction: row; }
.hth-latest .hth-post-card--big .hth-post-card__img { flex: 0 0 58%; aspect-ratio: 16 / 9; }
.hth-latest .hth-post-card--big .hth-post-card__body { justify-content: center; padding: 26px; }
.hth-latest .hth-post-card--big .hth-post-card__title { font-size: 26px; }
@media (max-width: 960px) { .hth-postgrid, .hth-latest { grid-template-columns: repeat(2, 1fr); } .hth-latest .hth-post-card--big { grid-column: span 2; flex-direction: column; } .hth-latest .hth-post-card--big .hth-post-card__img { flex: none; } }
@media (max-width: 620px) { .hth-postgrid, .hth-latest { grid-template-columns: 1fr; } .hth-latest .hth-post-card--big { grid-column: auto; } }
.hth-post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--hth-radius); overflow: hidden; box-shadow: var(--hth-shadow); transition: transform .18s, box-shadow .18s; }
.hth-post-card:hover { transform: translateY(-5px); box-shadow: var(--hth-shadow-lg); }
.hth-post-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hth-cream); }
.hth-post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hth-post-card:hover .hth-post-card__img img { transform: scale(1.04); }
.hth-post-card__ph { display: block; width: 100%; height: 100%; }
.hth-post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; align-items: flex-start; }
.hth-post-card__title { font-size: 19px; margin: 2px 0 0; line-height: 1.3; }
.hth-post-card__title a { color: var(--hth-deep); text-decoration: none; }
.hth-post-card__title a:hover { color: var(--hth-orange); }
.hth-post-card__ex { color: var(--hth-muted); font-size: 15px; margin: 0; }
.hth-post-card__meta { font-size: 13px; color: #8A93A0; margin-top: auto; font-weight: 500; }
.hth-post-card--page .hth-card__icon { --c: var(--hth-green); --cbg: var(--hth-mint); }

.hth-hero--post { padding: 44px 0 100px; }
.hth-post-hero { position: relative; z-index: 1; max-width: 900px; }
.hth-post-hero .hth-hero__title { font-size: clamp(30px, 4.4vw, 48px); margin-top: 14px; }
.hth-post-meta { font-size: 15px; color: rgba(255, 255, 255, .85); margin: 10px 0 0; }
.hth-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-bottom: 60px; }
@media (max-width: 1000px) { .hth-post-layout { grid-template-columns: 1fr; } }
.hth-article__img { margin: -70px 0 30px; border-radius: 22px; overflow: hidden; box-shadow: var(--hth-shadow-lg); position: relative; z-index: 2; }
.hth-article__img img { display: block; width: 100%; }

/* Prose */
.hth-prose { font-size: 18px; line-height: 1.75; }
.hth-prose h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.hth-prose h3 { font-size: 21px; margin: 1.3em 0 .4em; }
.hth-prose ul, .hth-prose ol { padding-left: 1.3em; }
.hth-prose li { margin-bottom: .45em; }
.hth-prose li::marker { color: var(--hth-orange); font-weight: 700; }
.hth-prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 5px solid var(--hth-gold); background: var(--hth-cream); border-radius: 0 var(--hth-radius-sm) var(--hth-radius-sm) 0; }
.hth-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.hth-prose th, .hth-prose td { border: 1px solid var(--hth-line); padding: 10px 12px; text-align: left; }
.hth-prose th { background: var(--hth-mint); }
.hth-box { border-radius: var(--hth-radius); padding: 20px 24px; margin: 1.8em 0; border: 2px solid; }
.hth-box h3 { margin-top: 0 !important; font-size: 20px; }
.hth-box ul { margin-bottom: 0; }
.hth-box--tip { background: #F0FDF4; border-color: #86EFAC; }
.hth-box--tip h3::before { content: "⚡ "; }
.hth-box--warn { background: #FFF1F2; border-color: #FDA4AF; }
.hth-box--warn h3 { color: #BE123C; }
.hth-box--warn h3::before { content: "🚩 "; }
.hth-box p:last-child { margin-bottom: 0; }
.hth-script { position: relative; background: #F5F3FF; border: 2px dashed #C4B5FD; border-radius: var(--hth-radius-sm); padding: 18px 20px; margin: 1.2em 0; font-size: 16.5px; }
.hth-script p:last-child { margin-bottom: 0; }
.hth-script .hth-copy { position: absolute; top: 10px; right: 10px; }
.hth-next { margin: 2em 0 1em; padding: 18px 22px; border-radius: var(--hth-radius); background: linear-gradient(135deg, var(--hth-sun), var(--hth-gold)); color: #3B2A00; font-size: 17px; }
.hth-next a { color: #3B2A00; font-weight: 700; }
.hth-disclaimer { font-size: 14px; color: var(--hth-muted); font-style: italic; border-top: 1px solid var(--hth-line); padding-top: 12px; }
.hth-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 30px 0 14px; padding: 16px 18px; background: var(--hth-mint); border-radius: var(--hth-radius); font-size: 15px; }
.hth-share a { font-weight: 700; text-decoration: none; background: #fff; padding: 6px 14px; border-radius: 999px; }
.hth-share button.hth-copy { background: #fff; }
.hth-tags a { display: inline-block; font-size: 14px; background: var(--hth-cream); padding: 4px 12px; border-radius: 999px; text-decoration: none; margin: 0 4px 6px 0; color: #92400E; font-weight: 600; }
.hth-postnav { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0; font-weight: 600; }
.hth-postnav a { text-decoration: none; }

/* Sidebar */
.hth-sidebar { display: flex; flex-direction: column; gap: 20px; }
.hth-sidebar .hth-widget { position: static; }
.hth-widget { background: #fff; border-radius: var(--hth-radius); padding: 22px; box-shadow: var(--hth-shadow); border: 1px solid var(--hth-line); }
.hth-widget__title { font-size: 18px; margin-bottom: 12px; }
.hth-widget--help { background: linear-gradient(135deg, #0F5132, #16A34A); color: #D1FAE5; border: 0; }
.hth-widget--help .hth-widget__title { color: #fff; }
.hth-widget--scam { background: #FFF1F2; border-color: #FDA4AF; }
.hth-catlist { list-style: none; margin: 0; padding: 0; }
.hth-catlist a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--hth-line); text-decoration: none; color: var(--hth-ink); font-weight: 500; }
.hth-catlist a:hover { color: var(--hth-orange); }
.hth-catlist em { margin-left: auto; font-style: normal; font-size: 13px; background: var(--hth-cream); padding: 1px 8px; border-radius: 999px; color: var(--hth-muted); }
.hth-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Archive */
.hth-archive { padding: 20px 20px 60px; }
.hth-catchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.hth-catchips a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--hth-line); text-decoration: none; color: var(--hth-deep); font-weight: 600; font-size: 14.5px; }
.hth-catchips a:hover, .hth-catchips a.is-active { background: var(--hth-green); border-color: var(--hth-green); color: #fff; }
.hth-pagination { margin-top: 36px; text-align: center; }
.hth-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 999px; margin: 0 3px; background: #fff; border: 2px solid var(--hth-line); text-decoration: none; font-weight: 700; padding: 0 12px; }
.hth-pagination .current { background: var(--hth-green); color: #fff; border-color: var(--hth-green); }
.hth-empty { text-align: center; max-width: 820px; margin: 30px auto; }
.hth-empty .hth-searchform { max-width: 560px; margin: 20px auto 30px; }

/* Signup + contact */
.hth-footer-cta { padding: 60px 0 0; background: var(--hth-bg); }
.hth-signup { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, #7C3AED, #DB2777 60%, #F97316); color: #fff; border-radius: 26px; padding: 34px 38px; box-shadow: var(--hth-shadow-lg); margin: 30px 0; position: relative; overflow: hidden; }
.hth-signup::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; top: -120px; background: rgba(255, 255, 255, .12); }
.hth-signup h3 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.hth-signup__art { width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; }
.hth-signup__art .hth-icon { width: 52px; height: 52px; }
.hth-signup__form { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.hth-signup__form .hth-input { flex: 1 1 200px; border-color: transparent; }
.hth-signup .hth-mini { color: rgba(255, 255, 255, .85); }
.hth-signup__ok { font-weight: 700; font-size: 18px; background: rgba(255, 255, 255, .2); padding: 12px 16px; border-radius: 12px; display: inline-block; }
@media (max-width: 640px) { .hth-signup { grid-template-columns: 1fr; padding: 26px 22px; } .hth-signup__art { width: 70px; height: 70px; } }
.hth-contact { background: #fff; border-radius: var(--hth-radius); padding: 26px; box-shadow: var(--hth-shadow); max-width: 760px; }

/* Footer */
.hth-footer { background: #0B3D26; color: #BBF7D0; padding: 60px 0 26px; margin-top: 60px; position: relative; font-size: 15.5px; }
.hth-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.hth-footer h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.hth-footer ul { list-style: none; margin: 0; padding: 0; }
.hth-footer li { margin-bottom: 9px; }
.hth-footer a { color: #fff; text-decoration: none; }
.hth-footer a:hover { color: var(--hth-sun); }
.hth-footer small { display: block; color: #86EFAC; font-size: 12.5px; }
.hth-footer .hth-logo img { height: 52px; margin-bottom: 14px; }
.hth-rungnum { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--hth-gold); color: #3B2A00; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; margin-right: 6px; }
.hth-social { display: flex; gap: 12px; flex-wrap: wrap; }
.hth-social a { background: rgba(255, 255, 255, .1); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.hth-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: 13.5px; color: #86EFAC; }
.hth-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0 0 12px; }
.hth-crisis { color: #FDE68A; }
.hth-totop { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--hth-gold); color: #3B2A00 !important; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; box-shadow: var(--hth-shadow-lg); z-index: 40; }
@media (max-width: 900px) { .hth-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hth-footer__grid { grid-template-columns: 1fr; } }

/* Comments */
.hth-comments { margin-top: 40px; }
.hth-comment-list { list-style: none; padding: 0; }
.hth-comment-list .comment-body { background: #fff; border-radius: var(--hth-radius-sm); padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--hth-line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: 12px; border: 2px solid var(--hth-line); border-radius: var(--hth-radius-sm); }
.comment-form .submit { font-family: var(--hth-head); font-weight: 700; background: var(--hth-green); color: #fff; border: 0; padding: 12px 22px; border-radius: 999px; cursor: pointer; }

/* WordPress core */
.alignwide { max-width: 1100px; } .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { display: block; margin: 0 auto; } .alignleft { float: left; margin: 0 1.5em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--hth-muted); text-align: center; }
.sticky .hth-post-card__title::before { content: "★ "; color: var(--hth-gold); }

/* Reveal animation */
.hth-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.hth-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.hth-reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
	.hth-topbar, .hth-header, .hth-footer, .hth-footer-cta, .hth-totop, .hth-toc, .hth-nextrung, .hth-hero .hth-wave, .hth-share, .hth-signup, .hth-sidebar, [data-hth-print], [data-hth-reset] { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.hth-hero { color: #000; background: none !important; padding: 0 0 10px; }
	.hth-hero__title, .hth-hero__sub, .hth-crumbs, .hth-kicker { color: #000; text-shadow: none; }
	.hth-hero__art { display: none; }
	body.hth-printing .hth-page > *:not(.hth-section--checklist), body.hth-printing .hth-section--checklist:not(:has(.hth-print-target)) { display: none !important; }
	.hth-card, .hth-dir__item, .hth-checklist, .hth-tool { box-shadow: none; break-inside: avoid; }
	.hth-reveal { opacity: 1 !important; transform: none !important; }
}

/* Row headers inside tool tables */
.hth-tool tbody th, .hth-table tbody th { background: transparent; color: var(--hth-deep); font-family: var(--hth-head); font-weight: 700; white-space: normal; text-align: left; vertical-align: top; }
.hth-tool tbody th .hth-mini, .hth-tool tbody th small { display: block; font-family: var(--hth-body); font-weight: 400; color: var(--hth-muted); }
.hth-tool tbody th a { color: var(--hth-green); }
