/* ==========================================================================
   TechIncome — main stylesheet (light theme, editorial / premium)
   Brand colours come from the Customizer (--ti-primary / --ti-accent / --ti-ink).
   No dependency on any other theme or builder.
   ========================================================================== */

:root {
	--ti-primary: #0a7a3c;
	--ti-primary-dark: #065c2c;
	--ti-primary-soft: #e6f3ea;
	--ti-accent: #f0a30a;
	--ti-ink: #0d1f16;

	--bg: #fbfaf6;
	--surface: #ffffff;
	--surface-2: #f4f1e8;
	--text: #101a14;
	--muted: #5e6a62;
	--line: #e7e3d6;
	--link: var(--ti-primary);

	--shadow-sm: 0 1px 2px rgba(13, 31, 22, .06), 0 2px 8px -2px rgba(13, 31, 22, .06);
	--shadow: 0 1px 2px rgba(13, 31, 22, .05), 0 18px 40px -22px rgba(13, 61, 34, .35);
	--shadow-lg: 0 30px 70px -30px rgba(13, 61, 34, .45);
	--radius: 18px;
	--radius-sm: 10px;
	--wrap: 1240px;
	--narrow: 760px;

	--font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	--font-display: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	color-scheme: only light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ti-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.16; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 600; color: var(--ti-ink); }
h1 { font-weight: 650; }
p { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ti-accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ti-primary); color: #fff; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--surface); clip: auto !important; clip-path: none; color: var(--text);
	display: block; font-weight: 700; height: auto; left: 8px; padding: 12px 18px; top: 8px;
	width: auto; z-index: 100000; box-shadow: var(--shadow); border-radius: 8px;
}
.skip-link:focus { position: fixed !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.ti-icon { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, .search-submit, input[type="submit"], .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.4em; border: 0; border-radius: 999px;
	background: var(--ti-primary); color: #fff; font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
	position: relative; overflow: hidden;
}
.btn:hover, .wp-block-button__link:hover, .wpcf7-submit:hover { background: var(--ti-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -14px var(--ti-primary); }
.btn--accent { background: var(--ti-accent); color: #1d1402; }
.btn--accent:hover { background: #d98d00; color: #1d1402; box-shadow: 0 14px 26px -14px var(--ti-accent); }
.btn--ghost { background: transparent; color: var(--ti-ink); box-shadow: inset 0 0 0 1.5px var(--ti-ink); }
.btn--ghost:hover { background: var(--ti-ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ti-ink); }
.btn--sm { padding: .55em 1.1em; font-size: .92rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; margin-top: 16px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ti-ink); color: #c8d6cd; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar__text { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.topbar a { color: #e7efe9; text-decoration: none; }
.topbar a:hover { color: var(--ti-accent); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--bg);
	box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(13, 31, 22, .35);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.site-brand { flex: none; display: flex; flex-direction: column; }
.site-brand .custom-logo { max-height: 46px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ti-ink); font-family: var(--font-display); font-size: 1.55rem; font-weight: 650; letter-spacing: -.03em; }
.wordmark:hover { color: var(--ti-ink); }
.wm-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--ti-primary), var(--ti-primary-dark)); color: #fff; box-shadow: 0 8px 16px -8px var(--ti-primary); }
.wm-text b { color: var(--ti-primary); font-weight: 700; font-style: italic; }
.site-tagline { margin: 2px 0 0; font-size: .75rem; color: var(--muted); }

.primary-nav { flex: 1; }
.primary-nav .menu, .mobile-panel .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.primary-nav .menu > li { position: relative; }
.primary-nav a {
	position: relative; display: block; padding: 10px 14px; color: var(--ti-ink);
	text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 10px;
}
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
	background: var(--ti-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.primary-nav .menu > li > a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current-menu-ancestor > a::after, .primary-nav .current_page_item > a::after { transform: scaleX(1); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--ti-primary); }
.primary-nav .menu-item-has-children > a { padding-right: 26px; }
.primary-nav .menu-item-has-children > a::before { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 230px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a:hover { background: var(--ti-primary-soft); }
.primary-nav .sub-menu .sub-menu { left: 100%; top: 0; }

.header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--ti-ink); }
.icon-btn:hover { background: var(--surface-2); }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }

.search-panel, .mobile-panel { border-top: 1px solid var(--line); background: var(--surface); padding-block: 18px; }
.search-panel[hidden], .mobile-panel[hidden] { display: none; }
.mobile-panel { display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-panel .menu { flex-direction: column; margin: 12px 0; }
.mobile-panel .menu a { display: block; padding: 13px 4px; color: var(--ti-ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-panel .sub-menu { list-style: none; padding-left: 16px; margin: 0; }

@media (max-width: 960px) {
	.primary-nav, .header__cta { display: none; }
	.nav-toggle { display: grid; }
	.mobile-panel:not([hidden]) { display: block; }
	.topbar__text { white-space: normal; font-size: .76rem; line-height: 1.35; padding-block: 6px; }
	.topbar .menu { display: none; }
}

/* Search form */
.search-form { position: relative; display: flex; max-width: 640px; }
.search-field {
	width: 100%; padding: 15px 60px 15px 22px; font: inherit; color: var(--text);
	background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.search-field:focus { outline: 0; border-color: var(--ti-primary); box-shadow: 0 0 0 5px var(--ti-primary-soft); }
.search-submit { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0; width: 46px; }

/* ---------- Typography helpers ---------- */
.eyebrow, .kicker {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
	font-family: var(--font); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ti-primary);
}
.eyebrow::before, .kicker::before { content: ""; width: 26px; height: 2px; background: var(--ti-accent); border-radius: 2px; }
.hl { background: none; color: inherit; font-style: italic; position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
	content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .34em; z-index: -1; border-radius: 6px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--ti-accent) 70%, transparent), color-mix(in srgb, var(--ti-accent) 35%, transparent));
	transform: skewX(-8deg);
}

/* ---------- Home: hero ---------- */
.home-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(72px, 9vw, 120px); background:
	radial-gradient(900px 480px at 88% -10%, color-mix(in srgb, var(--ti-primary) 16%, transparent), transparent 70%),
	radial-gradient(700px 420px at -5% 105%, color-mix(in srgb, var(--ti-accent) 18%, transparent), transparent 70%),
	var(--bg); }
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--ti-ink) 14%, transparent) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, transparent 78%); opacity: .5; pointer-events: none; }
.home-hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-hero__title { font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: .45em; max-width: 16ch; }
.home-hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; margin-bottom: 1.7em; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.home-hero .search-form { max-width: 520px; }

.home-hero__art { position: relative; min-height: 380px; display: grid; place-items: center; }
.art-card { position: relative; width: min(100%, 440px); padding: 18px 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); transform: rotate(-2.2deg); }
.art-card__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.art-card__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.art-card__bar i:first-child { background: #f4b9a8; } .art-card__bar i:nth-child(2) { background: #f6dd91; } .art-card__bar i:nth-child(3) { background: #b8e0c4; }
.art-chart { display: block; width: 100%; height: 190px; color: var(--ti-primary); background:
	linear-gradient(var(--line), var(--line)) 0 25% / 100% 1px no-repeat,
	linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat,
	linear-gradient(var(--line), var(--line)) 0 75% / 100% 1px no-repeat; }
.art-card__rows { display: grid; gap: 8px; margin-top: 16px; }
.art-card__rows span { height: 9px; border-radius: 6px; background: var(--surface-2); }
.art-card__rows span:nth-child(1) { width: 78%; } .art-card__rows span:nth-child(2) { width: 56%; } .art-card__rows span:nth-child(3) { width: 66%; }
.art-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 750; font-size: .92rem; color: var(--ti-ink); animation: ti-float 6s ease-in-out infinite; }
.art-chip .ti-icon { color: var(--ti-primary); }
.art-chip--1 { top: 6%; left: 2%; }
.art-chip--2 { bottom: 14%; left: -2%; animation-delay: -2s; }
.art-chip--3 { top: 22%; right: 0; background: var(--ti-accent); border-color: transparent; color: #1d1402; animation-delay: -4s; }
.art-chip--3 .ti-icon { color: #1d1402; }
@keyframes ti-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
	.home-hero__inner { grid-template-columns: 1fr; }
	.home-hero__art { min-height: 300px; order: -1; }
	.home-hero__title { max-width: none; }
}

/* ---------- Home: stats strip ---------- */
.stats { position: relative; z-index: 2; margin-top: -48px; }
.stats__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.stats__inner > div { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 12px; text-align: center; position: relative; }
.stats__inner > div + div::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stats strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; color: var(--ti-primary); font-weight: 650; }
.stats span { font-size: .85rem; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .stats { margin-top: -28px; } .stats__inner > div:nth-child(3)::before { display: none; } }

/* ---------- Home: sections ---------- */
.home-section { padding-block: clamp(56px, 8vw, 96px); }
.home-section--tint { background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-block: 1px solid var(--line); }
.home-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.home-section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0; }
.home-section__head--center { flex-direction: column; align-items: center; text-align: center; }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ti-ink); border-bottom: 2px solid var(--ti-accent); padding-bottom: 2px; }
.more-link:hover { color: var(--ti-primary); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 58px; border-top: 2px dashed color-mix(in srgb, var(--ti-primary) 40%, transparent); }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num { position: absolute; top: 14px; right: 20px; font-family: var(--font-display); font-size: 3.6rem; line-height: 1; font-weight: 650; color: color-mix(in srgb, var(--ti-primary) 14%, transparent); }
.step__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: var(--ti-primary); color: #fff; box-shadow: 0 12px 22px -12px var(--ti-primary); position: relative; }
.step h3 { font-size: 1.35rem; margin-bottom: .4em; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

.topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.topic { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ti-ink); transition: .25s ease; overflow: hidden; }
.topic::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--ti-primary-soft); transition: .35s ease; }
.topic:hover { border-color: var(--ti-primary); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ti-ink); }
.topic:hover::after { transform: scale(1.8); }
.topic > * { position: relative; z-index: 1; }
.topic__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.topic__count { font-size: .85rem; font-weight: 700; color: var(--ti-primary); }
.topic__desc { font-size: .92rem; color: var(--muted); }
.topic__go { margin-top: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ti-ink); color: #fff; transition: .25s ease; }
.topic:hover .topic__go { background: var(--ti-accent); color: #1d1402; transform: translateX(4px); }

.home-section--cta { padding-top: 0; }

/* ---------- Layout ---------- */
.site-main { min-height: 50vh; }
.layout { display: grid; gap: 44px; padding-block: 40px 72px; align-items: start; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 340px; }
.layout--full, .layout--narrow { grid-template-columns: minmax(0, 1fr); }
.layout--narrow .layout__main { max-width: var(--narrow); margin-inline: auto; width: 100%; }
@media (max-width: 1040px) { .layout--sidebar { grid-template-columns: minmax(0, 1fr); } }
.section-title { font-size: 1.6rem; margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.archive-header { margin-bottom: 30px; }
.archive-title { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: .3em; }
.archive-title span { color: var(--ti-primary); font-style: italic; }
.archive-desc { color: var(--muted); max-width: 70ch; font-size: 1.08rem; }
.empty { padding: 32px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
.layout--sidebar .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .layout--sidebar .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ti-primary) 35%, var(--line)); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13, 31, 22, .35)); opacity: 0; transition: opacity .3s ease; }
.card:hover .card__media::after { opacity: 1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media img { transform: scale(1.06); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ti-primary); background: linear-gradient(135deg, var(--ti-primary-soft), var(--surface-2)); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__title { font-size: 1.28rem; margin: 0; line-height: 1.25; }
.card__title a { color: var(--ti-ink); text-decoration: none; background: linear-gradient(var(--ti-accent), var(--ti-accent)) 0 100% / 0 2px no-repeat; transition: background-size .35s ease; }
.card:hover .card__title a { background-size: 100% 2px; }
.card__excerpt { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.6; }
.card__meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .82rem; display: flex; gap: 6px; font-weight: 500; }
.card--featured { grid-column: 1 / -1; flex-direction: row; }
.card--featured .card__media { flex: 1.15; aspect-ratio: auto; min-height: 320px; }
.card--featured .card__body { flex: 1; justify-content: center; padding: 36px; }
.card--featured .card__title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
@media (max-width: 760px) { .card--featured { flex-direction: column; } .card--featured .card__media { min-height: 0; aspect-ratio: 16/9; } .card--featured .card__body { padding: 20px 22px; } }
.badge { align-self: flex-start; display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ti-primary-soft); color: var(--ti-primary-dark); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.badge:hover { background: var(--ti-primary); color: #fff; }
.badge--lg { font-size: .78rem; padding: 5px 14px; }

/* ---------- Page / post hero ---------- */
.post-hero { position: relative; overflow: hidden; background:
	radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--ti-primary) 13%, transparent), transparent 70%),
	radial-gradient(500px 260px at 0% 100%, color-mix(in srgb, var(--ti-accent) 14%, transparent), transparent 70%),
	var(--bg);
	border-bottom: 1px solid var(--line); padding-block: 32px 44px; }
.post-hero__inner { max-width: calc(var(--narrow) + 48px); margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.post-hero__inner--wide { max-width: var(--wrap); }
.single:has(.layout--sidebar) .post-hero__inner { max-width: var(--wrap); }
.post-title { font-size: clamp(2rem, 4.8vw, 3.4rem); margin: 0; max-width: 22ch; line-height: 1.08; letter-spacing: -.03em; }
.single:has(.layout--narrow) .post-title, .post-hero__inner--wide .post-title { max-width: 26ch; }
.post-lead { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 62ch; line-height: 1.6; }
.post-lead p { margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.post-meta a { color: var(--ti-ink); font-weight: 650; text-decoration: none; }
.meta-author { display: inline-flex; align-items: center; gap: 8px; }
.avatar-sm, .author-box__avatar { border-radius: 50%; }
.meta-read { display: inline-flex; align-items: center; gap: 5px; }
.post-thumb { margin: 0 0 32px; }
.post-thumb img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }
.post-thumb figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }
.breadcrumbs { font-size: .86rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ti-primary); }
.breadcrumbs .separator { margin: 0 6px; opacity: .5; }

/* Reading progress */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; }
.admin-bar .read-progress { top: 32px; }
#read-progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ti-primary), var(--ti-accent)); transition: width .1s linear; }

/* ---------- Prose ---------- */
.prose { font-size: 1.1rem; line-height: 1.85; overflow-wrap: break-word; color: #1b2a21; }
.prose > * { max-width: 100%; }
.entry-content > p:first-of-type { font-size: 1.22rem; line-height: 1.7; color: var(--ti-ink); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-top: 2.1em; padding-top: .25em; position: relative; }
.prose h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ti-primary), var(--ti-accent)); margin-bottom: 14px; }
.prose h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-top: 1.8em; }
.prose h4 { font-size: 1.15rem; margin-top: 1.5em; }
.prose a { font-weight: 600; text-decoration-color: color-mix(in srgb, var(--ti-primary) 45%, transparent); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--ti-accent); }
.prose img { border-radius: var(--radius-sm); margin-inline: auto; }
.prose figure { margin: 1.8em 0; }
.prose figcaption, .wp-element-caption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose ul, .prose ol { margin: 0 0 1.5em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ti-primary); font-weight: 700; }
.prose blockquote { position: relative; margin: 2em 0; padding: 26px 30px 26px 34px; border-radius: var(--radius-sm); background: var(--ti-primary-soft); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; color: var(--ti-ink); border-left: 4px solid var(--ti-primary); }
.prose blockquote::before { content: "\201C"; position: absolute; top: -.1em; left: 12px; font-size: 4.5rem; line-height: 1; color: color-mix(in srgb, var(--ti-primary) 25%, transparent); }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--font); font-size: .9rem; font-style: normal; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .88em; padding: .15em .45em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.prose pre { background: var(--ti-ink); color: #e4efe8; padding: 20px 22px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .9rem; line-height: 1.65; box-shadow: var(--shadow-sm); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose table, .wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .96rem; margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.prose .wp-block-table, .prose figure.wp-block-table { overflow-x: auto; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose thead th, .prose th { background: var(--ti-ink); color: #fff; font-weight: 700; border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: var(--surface-2); }
.prose .alignwide { max-width: min(100vw - 48px, var(--wrap)); margin-inline: auto; }
.prose .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.prose .aligncenter { margin-inline: auto; }
.prose--wide { padding-block: 40px 80px; font-size: 1rem; max-width: none; }
.prose iframe { width: 100%; }
.wp-block-embed iframe, .wp-block-embed__wrapper iframe { max-width: 100%; }
.wp-block-image img { height: auto; }
.wp-block-separator, .prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* Legacy builder content (stays readable without the original plugin) */
.kb-img, .wp-block-kadence-image img { height: auto; border-radius: var(--radius-sm); }
.wp-block-kadence-image { margin: 1.8em 0; }
.wp-block-kadence-column, .kt-inside-inner-col { min-width: 0; }
.wp-block-kadence-infobox { margin: 1.6em 0; }
.kt-blocks-info-box-link-wrap { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; }
.kt-blocks-info-box-media-container img { margin-inline: 0; max-width: 72px; height: auto; }
.kt-blocks-info-box-title { font-family: var(--font-display); font-size: 1.25rem; margin: 0; color: var(--ti-ink); }
.kt-blocks-info-box-text { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.kt-svg-icon-list { list-style: none; padding: 0; margin: 1.4em 0; }
.kt-svg-icon-list-item-wrap { display: flex; align-items: flex-start; gap: 10px; margin-bottom: .6em; }
.kt-svg-icon-list-item-wrap .kb-svg-icon-wrap, .kt-svg-icon-list-item-wrap svg { flex: none; width: 1.1em; height: 1.1em; margin-top: .35em; color: var(--ti-primary); fill: currentColor; }
.kt-block-spacer, .kt-divider { border: 0; border-top: 1px solid var(--line); }
.kb-buttons-wrap { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.kb-button, .kt-button { display: inline-flex; align-items: center; padding: .8em 1.4em; border-radius: 999px; background: var(--ti-primary); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.kb-button:hover, .kt-button:hover { background: var(--ti-primary-dark); }

/* Table of contents */
.ti-toc { margin: 1.8em 0 2.2em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.ti-toc summary { cursor: pointer; font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; padding: 16px 22px; list-style: none; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, var(--ti-primary-soft), var(--surface)); }
.ti-toc summary::-webkit-details-marker { display: none; }
.ti-toc summary::after { content: "−"; font-size: 1.5rem; color: var(--ti-primary); line-height: 1; }
.ti-toc details:not([open]) summary::after { content: "+"; }
.ti-toc ol { margin: 0; padding: 14px 22px 18px 44px; font-size: .97rem; line-height: 1.5; }
.ti-toc li { margin-bottom: .5em; padding-left: 4px; }
.ti-toc li::marker { color: var(--ti-primary); font-weight: 800; }
.ti-toc li.lvl-3 { margin-left: 1.1em; list-style-type: circle; font-size: .93rem; }
.ti-toc a { color: var(--ti-ink); text-decoration: none; font-weight: 500; }
.ti-toc a:hover, .ti-toc a.is-active { color: var(--ti-primary); font-weight: 700; }

/* CTA box */
.ti-cta {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
	margin: 2.4em 0; padding: clamp(28px, 4vw, 44px); border-radius: 26px; color: #fff; isolation: isolate;
	background:
		radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--ti-accent) 42%, transparent), transparent 70%),
		linear-gradient(135deg, var(--ti-primary), #05401f);
	box-shadow: var(--shadow-lg);
}
.ti-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background:
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='160' viewBox='0 0 420 160' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 140 L70 112 L130 124 L200 76 L270 86 L340 36 L420 8'/%3E%3C/svg%3E") right bottom / 70% auto no-repeat; }
.ti-cta__title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 .4em; }
.ti-cta__text { margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.05rem; max-width: 52ch; }
.ti-cta__action { display: flex; justify-content: flex-end; }
.ti-cta__action > * { max-width: 100%; }
.ti-cta--compact { grid-template-columns: 1fr auto; padding: 20px 26px; border-radius: 18px; }
.ti-cta--compact .ti-cta__title { font-size: 1.2rem; }
.ti-cta--compact .ti-cta__text { font-size: .93rem; }
.ti-cta .btn--accent { white-space: nowrap; }
.ti-cta__action .lm-form-wrap, .ti-cta__action form { color: var(--ti-ink); background: #fff; border-radius: var(--radius-sm); padding: 14px; width: 100%; }
@media (max-width: 760px) { .ti-cta, .ti-cta--compact { grid-template-columns: 1fr; } .ti-cta__action { justify-content: flex-start; } }
.post-cta-widgets { margin: 2em 0; }

/* Tags, share */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 2em 0 0; }
.tag-list a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-decoration: none; }
.tag-list a:hover { background: var(--ti-primary-soft); color: var(--ti-primary-dark); border-color: transparent; }
.share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 30px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.share-label { font-weight: 800; font-size: .9rem; }
.share ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.share a, .share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ti-ink); text-decoration: none; transition: .2s ease; }
.share a:hover, .share button:hover { background: var(--ti-primary); border-color: var(--ti-primary); color: #fff; transform: translateY(-2px); }
.copy-link.is-copied { background: var(--ti-primary); color: #fff; }

/* Author box, post nav */
.author-box { display: flex; gap: 20px; align-items: flex-start; margin: 2.2em 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.author-box p { margin: 0; }
.author-box__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ti-primary); font-weight: 800; }
.author-box__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.author-box__name a { color: var(--ti-ink); text-decoration: none; }
.author-box__bio { margin-top: 6px !important; color: var(--muted); font-size: .96rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2em 0; }
.post-nav a { display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ti-ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; transition: .2s ease; }
.post-nav a:hover { border-color: var(--ti-primary); transform: translateY(-2px); }
.post-nav span { display: block; font-family: var(--font); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ti-primary); margin-bottom: 6px; font-weight: 800; }
.post-nav__next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { grid-column: 1; text-align: left; } }
.related { margin-top: 2.8em; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; padding-block: 44px 80px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: .25s ease; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ti-primary) 35%, var(--line)); }
.contact-card__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ti-primary-soft); color: var(--ti-primary); }
.contact-card h2 { font-size: 1.25rem; margin: 0 0 .35em; }
.contact-card p, .contact-card ul { margin: 0 0 .6em; color: var(--muted); font-size: .98rem; }
.contact-card ul { padding-left: 1.1em; }
.contact-card > .contact-card__body > :last-child { margin-bottom: 0; }
.contact-card a { font-weight: 700; }
.contact-form-card { position: sticky; top: 100px; padding: clamp(24px, 3.5vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
.contact-form-card h2 { font-size: 1.7rem; margin-bottom: .2em; }
.contact-form-card__sub { color: var(--muted); margin-bottom: 1.4em; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .contact-form-card { position: static; order: -1; } }

/* Forms: Contact Form 7 + generic */
.wpcf7-form p { margin: 0 0 1.1em; }
.wpcf7-form label { display: block; font-weight: 700; font-size: .93rem; color: var(--ti-ink); }
.wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 14px 16px; font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
	border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus, .comment-form input:focus, .comment-form textarea:focus { outline: 0; background: #fff; border-color: var(--ti-primary); box-shadow: 0 0 0 4px var(--ti-primary-soft); }
.wpcf7-submit { width: 100%; padding: 1em 1.6em; font-size: 1.05rem; cursor: pointer; }
.wpcf7-spinner { display: none !important; }
.wpcf7-not-valid-tip { color: #b42318; font-size: .85rem; margin-top: 4px; display: block; }
.wpcf7-not-valid { border-color: #e0534a !important; }
.wpcf7 form .wpcf7-response-output { margin: 1.2em 0 0; padding: 14px 18px; border-radius: 12px; border: 1.5px solid var(--line); font-size: .95rem; }
.wpcf7 form.sent .wpcf7-response-output { background: var(--ti-primary-soft); border-color: var(--ti-primary); color: var(--ti-primary-dark); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: #fdf0ee; border-color: #e0534a; color: #8a1c14; }

/* ---------- Comments ---------- */
.comments { margin-top: 2.8em; }
.comment-list, .comment-list ol { list-style: none; padding: 0; }
.comment-list .children { padding-left: 24px; margin-top: 16px; border-left: 2px solid var(--line); }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 16px; }
.comment-meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-author .fn { font-weight: 800; font-style: normal; }
.comment-reply-link { font-weight: 700; font-size: .85rem; }
.comment-respond { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }

/* ---------- Sidebar & widgets ---------- */
.sidebar__sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.admin-bar .sidebar__sticky { top: 132px; }
@media (max-width: 1040px) { .sidebar__sticky { position: static; } }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1.15rem; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ti-primary), var(--ti-accent)); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; display: flex; justify-content: space-between; gap: 10px; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ti-ink); text-decoration: none; font-weight: 500; }
.widget a:hover { color: var(--ti-primary); }
.widget .count { color: var(--muted); font-size: .85rem; }
.widget .search-form { max-width: none; }
.widget .search-field { padding: 11px 50px 11px 16px; font-size: .95rem; }
.widget .search-submit { width: 38px; }
.wp-block-latest-posts__list { padding: 0; }
.wp-block-tag-cloud a, .tagcloud a { display: inline-block; margin: 0 6px 8px 0; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: .85rem !important; }
.widget--promo { background: linear-gradient(135deg, var(--ti-primary), #05401f); border: 0; color: #fff; }
.widget--promo .widget-title { color: #fff; border-color: rgba(255, 255, 255, .2); }
.widget--promo p { color: rgba(255, 255, 255, .9); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 32px; background: var(--ti-ink); color: #b9c9be; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background:
	radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--ti-primary) 35%, transparent), transparent 70%),
	radial-gradient(500px 260px at 0% 100%, color-mix(in srgb, var(--ti-accent) 12%, transparent), transparent 70%); pointer-events: none; }
.footer__cols, .footer__bar { position: relative; }
.footer__cols { padding-block: 60px 40px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer__grid--default { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; }
@media (max-width: 860px) { .footer__grid--default { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid--default { grid-template-columns: 1fr; } }
.footer__col .widget { background: transparent; border: 0; padding: 0; color: #b9c9be; box-shadow: none; }
.footer__col .widget-title, .footer__title { color: #fff; font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; border: 0; margin: 0 0 16px; padding: 0; }
.footer__col .widget-title::after { display: none; }
.footer__col .widget li { border-color: rgba(255, 255, 255, .1); }
.footer__col a, .footer__nav a, .footer__list a, .footer__legal a { color: #dce8e0; text-decoration: none; }
.footer__col a:hover, .footer__nav a:hover, .footer__list a:hover, .footer__legal a:hover { color: var(--ti-accent); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .96rem; }
.footer__col .wordmark, .footer__col .wm-text { color: #fff; }
.footer__col .wm-text b { color: #6fdc9a; }
.footer__about { max-width: 38ch; margin: 16px 0; color: #9fb3a6; font-size: .96rem; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 20px; font-size: .88rem; }
.footer__copy { margin: 0; color: #8fa496; }
.footer__nav .menu, .footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.social-links { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #e2efe7; transition: .2s ease; }
.social-links a:hover { background: var(--ti-accent); color: #1d1402; transform: translateY(-2px); }

/* ---------- Pagination ---------- */
.pagination { margin: 40px 0 0; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ti-ink); text-decoration: none; font-weight: 700; }
.pagination a:hover { border-color: var(--ti-primary); color: var(--ti-primary); }
.pagination .current { background: var(--ti-primary); border-color: var(--ti-primary); color: #fff; }
.page-links { margin-top: 1.6em; font-weight: 700; }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0; }
.chips a, .chips li > a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ti-ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chips a:hover { border-color: var(--ti-primary); color: var(--ti-primary); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(56px, 9vw, 120px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nf-code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 10rem); font-weight: 650; line-height: 1; margin: 0; letter-spacing: -.05em; background: linear-gradient(135deg, var(--ti-primary), var(--ti-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found .search-form { width: 100%; margin: 12px 0 20px; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ti-ink); color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .25s ease; pointer-events: none; }
.to-top:hover { background: var(--ti-primary); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top[hidden] { display: none; }

/* ---------- LeadMagnet plugin: gentle theme harmony ---------- */
.lm-wrap, .lm-library, [class^="lm-"], [class*=" lm-"] { font-family: inherit; }
.prose .lm-library, .prose .lm-form-wrap { margin-block: 2em; }
.lm-modal, .lm-overlay { z-index: 9999; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
@media print {
	.topbar, .site-header, .site-footer, .sidebar, .share, .related, .ti-cta, .to-top, .read-progress, .comments, .post-nav { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.layout { display: block; padding: 0; }
	a { color: #000; }
}


/* ============================================================
   v1.2 — footer, tools, pages, responsive polish
   ============================================================ */
.wrap--narrow { max-width: 860px; }
.screen-reader-text:focus { z-index: 100; }

/* Topbar: links stay visible on phones as a scrolling row */
.topbar__nav { min-width: 0; }
@media (max-width: 960px) {
	.topbar__inner { flex-direction: column; align-items: stretch; gap: 0; padding-block: 6px; }
	.topbar .menu { display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
	.topbar .menu::-webkit-scrollbar { display: none; }
	.topbar__text { display: none; }
	.topbar__nav { border-top: 0; }
}

/* Footer */
.footer__band { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(120deg, color-mix(in srgb, var(--ti-primary) 55%, var(--ti-ink)), var(--ti-ink)); }
.footer__band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding-block: clamp(30px, 5vw, 48px); }
.footer__band-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ti-accent); }
.footer__band-title { margin: 0; max-width: 24ch; color: #fff; font-size: clamp(1.4rem, 3vw, 2.05rem); line-height: 1.2; }
.footer__band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.footer__btn-ghost:hover { background: #fff; color: var(--ti-ink); box-shadow: inset 0 0 0 1.5px #fff; }
.footer__chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer__chips li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #cfe0d5; font-size: .8rem; font-weight: 600; }
.footer__title--gap { margin-top: 28px; }
.footer__list--posts a { display: block; line-height: 1.4; }
.footer__mark { position: relative; z-index: 0; margin-top: 8px; text-align: center; font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: .8; font-size: clamp(3.5rem, 15vw, 12rem); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); user-select: none; overflow: hidden; white-space: nowrap; }
.footer__col { min-width: 0; }
.footer__bar-inner { position: relative; }
@media (max-width: 1000px) { .footer__grid--default { grid-template-columns: 1fr 1fr; } .footer__col--brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid--default { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .footer__grid--default .footer__col:nth-child(2) { grid-column: 1 / -1; } .footer__band-actions .btn { flex: 1 1 100%; justify-content: center; } .footer__bar-inner { flex-direction: column; align-items: flex-start; } }

/* Tools */
.tool-section { padding-block: clamp(28px, 5vw, 56px); }
.tool-section--tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.tool-section h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool__form, .tool__result { padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.tool__form h2, .tool__result h2 { margin: 0 0 18px; font-size: 1.3rem; }
.tool__result { background: linear-gradient(160deg, var(--ti-primary-soft), var(--surface)); border-color: color-mix(in srgb, var(--ti-primary) 25%, var(--line)); }
.tool label { display: block; margin-bottom: 16px; }
.tool label > span { display: block; margin-bottom: 6px; font-weight: 700; font-size: .92rem; color: var(--ti-ink); }
.tool input, .tool select, .tool textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; box-sizing: border-box; }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: 0; border-color: var(--ti-primary); box-shadow: 0 0 0 4px var(--ti-primary-soft); }
.tool__hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.result-big { display: flex; flex-direction: column; margin-bottom: 18px; }
.result-big span { font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.05; color: var(--ti-primary); font-weight: 650; overflow-wrap: anywhere; }
.result-big small { color: var(--muted); font-weight: 600; }
.result-list { margin: 0 0 14px; display: grid; gap: 0; }
.result-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.result-list dt { color: var(--muted); font-weight: 600; font-size: .95rem; }
.result-list dd { margin: 0; font-weight: 750; color: var(--ti-ink); text-align: right; }
.meter { display: block; margin-top: 6px; font-size: .82rem; font-weight: 600; }
.meter.is-ok { color: var(--ti-primary); } .meter.is-warn { color: #b45309; }
.serp-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--line); }
.serp-switch button { padding: 7px 16px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; }
.serp-switch button.is-active { background: var(--ti-primary); color: #fff; }
.serp { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-family: Arial, Helvetica, sans-serif; overflow: hidden; }
.serp--mobile { max-width: 380px; }
.serp__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .85rem; color: #202124; }
.serp__site b { display: block; font-weight: 400; font-size: .88rem; }
.serp__site small { display: block; color: #4d5156; font-size: .78rem; overflow-wrap: anywhere; }
.serp__fav { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .75rem; color: var(--ti-primary); }
.serp__title { color: #1a0dab; font-size: 1.25rem; line-height: 1.3; margin-bottom: 4px; overflow-wrap: anywhere; }
.serp__desc { color: #4d5156; font-size: .88rem; line-height: 1.58; overflow-wrap: anywhere; }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.checks .ok::before { content: "\2713"; color: var(--ti-primary); }
.checks .bad::before { content: "!"; color: #b45309; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); transition: .25s ease; }
.tool-card strong { color: var(--ti-ink); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.tool-card:hover { transform: translateY(-4px); border-color: var(--ti-primary); box-shadow: var(--shadow); }
.tool-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ti-primary-soft); color: var(--ti-primary); }
.tool-card__go { margin-top: auto; padding-top: 6px; color: var(--ti-primary); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.tool-note { margin-top: 24px; color: var(--muted); font-size: .92rem; }
.tool-cta { padding-bottom: clamp(32px, 6vw, 64px); }
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq__item summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; color: var(--ti-ink); list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--ti-primary); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0 0 16px; color: var(--muted); }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } }

/* Glossary */
.gloss-bar { position: sticky; top: 72px; z-index: 5; padding: 14px 0; background: var(--bg); }
.gloss-bar input { width: 100%; padding: 14px 18px; font: inherit; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); box-sizing: border-box; }
.gloss-bar input:focus { outline: 0; border-color: var(--ti-primary); box-shadow: 0 0 0 4px var(--ti-primary-soft); }
.gloss-az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.gloss-az a { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; background: var(--ti-primary-soft); color: var(--ti-primary); font-weight: 800; font-size: .85rem; text-decoration: none; }
.gloss-az a:hover { background: var(--ti-primary); color: #fff; }
.gloss-group { scroll-margin-top: 150px; }
.gloss-letter { margin: 28px 0 8px; font-size: 2.2rem; color: var(--ti-primary); }
.gloss-group dl { margin: 0; }
.gloss-item { padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.gloss-item dt { font-weight: 800; color: var(--ti-ink); font-size: 1.08rem; margin-bottom: 4px; }
.gloss-item dd { margin: 0; color: var(--muted); }
[hidden] { display: none !important; }

/* Start here roadmap */
.road { list-style: none; margin: 0 0 40px; padding: 0; position: relative; }
.road::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--ti-primary) 0 6px, transparent 6px 12px); opacity: .35; }
.road__stage { position: relative; display: flex; gap: 20px; padding-bottom: 28px; }
.road__num { flex: none; position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ti-primary); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; box-shadow: 0 0 0 6px var(--bg); }
.road__body { flex: 1; min-width: 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.road__body h2 { margin: 0 0 6px; font-size: 1.35rem; }
.road__body p { margin: 0 0 12px; color: var(--muted); }
.road__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.road__links a { font-weight: 650; }
.road__h { margin: 36px 0 16px; font-size: 1.5rem; }

/* Sitemap */
.sitemap { columns: 3 260px; column-gap: 32px; }
.sitemap__col { break-inside: avoid; margin-bottom: 28px; }
.sitemap__col h2 { font-size: 1.2rem; margin: 0 0 10px; }
.sitemap__col ul { margin: 0; padding-left: 1.1em; }
.sitemap__col li { margin-bottom: 6px; }

/* Contact fixes */
.contact-card__body { min-width: 0; overflow-wrap: anywhere; }
.contact-cards, .contact-form-card { min-width: 0; }
.contact-form-card { box-sizing: border-box; }
.contact-form-card .wpcf7 input:not([type="submit"]), .contact-form-card .wpcf7 textarea, .contact-form-card .wpcf7 select { max-width: 100%; box-sizing: border-box; }
@media (min-width: 901px) and (max-height: 760px) { .contact-form-card { position: static; } }
.post-lead p { margin: 0; }

/* ---------- Mobile polish ---------- */
html { -webkit-text-size-adjust: 100%; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
body { overflow-x: hidden; }
.prose table { display: block; overflow-x: auto; }
.prose pre { max-width: 100%; }
@media (max-width: 960px) {
	.header__inner { min-height: 62px; gap: 12px; }
	.site-brand .custom-logo { max-height: 38px; }
	.mobile-panel .menu a { padding: 15px 4px; font-size: 1.02rem; }
	.mobile-panel .btn--block { min-height: 48px; }
}
@media (max-width: 640px) {
	.wrap { padding-inline: 18px; }
	.post-hero__inner { padding-block: 28px 24px; }
	.post-title { font-size: clamp(1.7rem, 7.4vw, 2.3rem); overflow-wrap: anywhere; }
	.prose { font-size: 1.03rem; line-height: 1.75; }
	.home-hero__actions .btn { flex: 1 1 100%; justify-content: center; }
	.btn { min-height: 46px; }
	.home-hero__art { min-height: 240px; }
	.art-chip { font-size: .8rem; padding: 8px 12px; }
	.home-section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.road__stage { gap: 14px; } .road__body { padding: 18px; }
	.road::before { left: 17px; } .road__num { width: 36px; height: 36px; font-size: 1rem; }
	.tool-grid { grid-template-columns: 1fr; }
	.contact-layout { padding-block: 28px 56px; gap: 24px; }
	.contact-card { padding: 18px; gap: 14px; }
	.gloss-bar { top: 62px; }
	.to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 380px) { .stats__inner { grid-template-columns: 1fr 1fr; } .wordmark { font-size: 1.3rem; } }

/* Footer v1.2.1: pillars, topic tags, notice */
.footer__pillars { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.footer__pillars-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.footer__pillars-inner > div { display: flex; flex-direction: column; gap: 2px; padding: 24px 16px; text-align: center; }
.footer__pillars-inner > div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.footer__pillars strong { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; line-height: 1.1; }
.footer__pillars span { font-size: .85rem; color: #9fb3a6; font-weight: 600; }
.footer__notice { position: relative; z-index: 1; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 18px; }
.footer__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer__tags a { color: #dce8e0; text-decoration: none; display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 600; }
.footer__tags a:hover { background: var(--ti-accent); border-color: var(--ti-accent); color: #1d1402 !important; }
.footer__disclaimer { display: flex; gap: 10px; align-items: flex-start; margin: 0; max-width: 78ch; color: #8fa496; font-size: .85rem; line-height: 1.55; }
.footer__disclaimer .ti-icon { flex: none; margin-top: 2px; color: var(--ti-accent); }
@media (max-width: 640px) {
	.footer__pillars-inner { grid-template-columns: 1fr 1fr; }
	.footer__pillars-inner > div:nth-child(3) { border-left: 0; }
	.footer__pillars-inner > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
