/* ==========================================================================
   Tasa BCV Hoy — theme styles v2 (premium SaaS look)
   Light by default; [data-theme="dark"] on <html> switches every colour.
   Every size/colour below can be changed in Customizer → Diseño.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff") format("woff"); }

:root {
	/* Brand */
	--primary: #0E7C70;
	--primary-2: #14B8A6;
	--on-primary: #FFFFFF;
	/* Surfaces */
	--bg: #F7FAF9;
	--surface: #FFFFFF;
	--surface-2: #F1F6F5;
	--text: #0A1F1C;
	--muted: #5A6B68;
	--line: #E3EBE9;
	--up: #15803D;
	--down: #B91C1C;
	--ink: #06201C;
	--footer-bg: #06201C;
	--footer-text: #A9C2BD;
	/* Derived */
	--primary-text: color-mix(in srgb, var(--primary) 82%, #000);
	--soft: color-mix(in srgb, var(--primary) 9%, var(--surface));
	--ring: color-mix(in srgb, var(--primary) 22%, transparent);
	--grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
	--grad-text: linear-gradient(100deg, var(--primary) 10%, color-mix(in srgb, var(--primary-2) 65%, var(--primary)) 90%);
	--glow-a: color-mix(in srgb, var(--primary-2) 22%, transparent);
	--glow-b: color-mix(in srgb, #38BDF8 14%, transparent);
	--shadow-sm: 0 1px 2px rgba(6, 32, 28, .04), 0 2px 8px rgba(6, 32, 28, .04);
	--shadow: 0 1px 2px rgba(6, 32, 28, .04), 0 12px 32px -12px rgba(6, 32, 28, .14);
	--shadow-lg: 0 30px 60px -24px rgba(6, 32, 28, .28);
	/* Type and layout (Diseño panel) */
	--fs: 16px;
	--h1: 40px;
	--h2: 28px;
	--h3: 19px;
	--hw: 600;
	--lh: 1.7;
	--rate-size: 50px;
	--wrap: 1380px;
	--radius: 20px;
	--section-space: 96px;
	--ticker-speed: 40s;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ease: cubic-bezier(.22, .61, .36, 1);

	/* Tasa Core components */
	--tc-bg: var(--surface-2);
	--tc-surface: var(--surface);
	--tc-surface-2: var(--surface-2);
	--tc-text: var(--text);
	--tc-muted: var(--muted);
	--tc-border: var(--line);
	--tc-primary: var(--primary);
	--tc-on-primary: var(--on-primary);
	--tc-primary-text: var(--primary-text);
	--tc-soft: var(--soft);
	--tc-up: var(--up);
	--tc-down: var(--down);
	--tc-grid: color-mix(in srgb, var(--line) 70%, transparent);
	--tc-chart-a: var(--primary);
	--tc-chart-b: #EA580C;
	--tc-chart-c: #7C3AED;
	--tc-radius: var(--radius);
	--tc-radius-sm: calc(var(--radius) * .6);
	color-scheme: light;
}

[data-theme="dark"] {
	--primary: #2DD4BF;
	--primary-text: var(--primary);
	--primary-2: #67E8F9;
	--on-primary: #042420;
	--bg: #070F0E;
	--surface: #0D1917;
	--surface-2: #12211F;
	--text: #E8F1EF;
	--muted: #93A7A3;
	--line: #1D2E2B;
	--up: #4ADE80;
	--down: #F87171;
	--footer-bg: #040B0A;
	--footer-text: #8EA5A0;
	--glow-a: color-mix(in srgb, var(--primary) 14%, transparent);
	--glow-b: color-mix(in srgb, #38BDF8 10%, transparent);
	--shadow-sm: none;
	--shadow: 0 0 0 1px rgba(255, 255, 255, .02);
	--shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .6);
	--tc-chart-b: #FDBA74;
	--tc-chart-c: #C4B5FD;
	color-scheme: dark;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary-text); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.022em; margin: 0 0 .55em; font-weight: var(--hw); color: var(--text); }
h2 { font-size: clamp(calc(var(--h2) * .8), 1.2vw + 1rem, var(--h2)); }
h3 { font-size: clamp(calc(var(--h3) * .9), .4vw + .9rem, var(--h3)); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tbh-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.tbh-skip:focus { top: 12px; }

.tbh-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.tbh-wrap--narrow { max-width: 800px; }
.tbh-wrap--wide { max-width: 1040px; }
@media (min-width: 768px) { .tbh-wrap { padding: 0 32px; } }

.tbh-main { padding: 0 0 72px; min-height: 60vh; }
.tbh-h1 { font-size: clamp(calc(var(--h1) * .72), 2.2vw + 1rem, var(--h1)); letter-spacing: -0.032em; line-height: 1.1; margin: 0 0 10px; }
.tbh-sub { color: var(--muted); font-size: .98rem; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tbh-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-text); }
.tbh-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.tbh-eyebrow--light { color: #A7F3D0; }
.tbh-grad-text { color: var(--primary-text); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tbh-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.tbh-icon { flex: none; transition: transform .3s var(--ease); }
.tbh-live { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex: none; }
.tbh-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: #22C55E; opacity: .35; animation: tbh-ping 1.8s var(--ease) infinite; }
@keyframes tbh-ping { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }

.tbh-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* -------------------------------------------------------------- Buttons */
.tbh-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .92rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s; }
.tbh-btn:hover { transform: translateY(-2px); }
.tbh-btn:hover .tbh-icon { transform: translateX(3px); }
.tbh-btn--primary { background: var(--grad); color: #FFFFFF; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
[data-theme="dark"] .tbh-btn--primary { color: var(--on-primary); }
.tbh-btn--primary:hover { color: #FFFFFF; box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--primary) 80%, transparent); }
[data-theme="dark"] .tbh-btn--primary:hover { color: var(--on-primary); }
.tbh-btn--primary::after, .tbh-btn--light::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.tbh-btn--primary:hover::after, .tbh-btn--light:hover::after { left: 120%; }
.tbh-btn--soft { background: var(--soft); color: var(--primary-text); border-color: color-mix(in srgb, var(--primary) 18%, transparent); }
.tbh-btn--soft:hover { color: var(--primary-text); border-color: var(--primary); }
.tbh-btn--light { background: #FFFFFF; color: #06201C; }
.tbh-btn--light:hover { color: #06201C; }
.tbh-btn--glass { background: rgba(255, 255, 255, .1); color: #FFFFFF; border-color: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tbh-btn--glass:hover { color: #FFFFFF; background: rgba(255, 255, 255, .18); }
.tbh-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.tbh-iconbtn { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; line-height: 0; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.tbh-iconbtn:hover { border-color: var(--primary); color: var(--primary-text); }
.tbh-iconbtn__in { display: grid; place-items: center; width: 20px; height: 20px; line-height: 0; grid-area: 1 / 1; }
.tbh-iconbtn__in .tbh-icon { display: block; }
.tbh-themebtn.is-spin .tbh-icon { animation: tbh-spin .55s var(--ease); }
@keyframes tbh-spin { from { transform: rotate(-90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* -------------------------------------------------------------- Ticker */
.tbh-tickerbar { background: linear-gradient(90deg, #04201C, #073A33 50%, #04201C); color: #DDEFEB; padding: 8px 0; overflow: hidden; font-size: .8rem; }
.tbh-tickerbar .tc-up { color: #86EFAC; }
.tbh-tickerbar .tc-down { color: #FCA5A5; }
.tbh-tickerbar .tc-flat { color: #DDEFEB; }
.tbh-tickerbar .tc-ticker__name { opacity: .72; }
.tbh-tickerbar .tc-ticker__track { animation-duration: var(--ticker-speed); }

/* -------------------------------------------------------------- Header */
.tbh-header { position: relative; z-index: 50; background: var(--surface); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.tbh-sticky .tbh-header { position: sticky; top: 0; }
.tbh-glass .tbh-header { background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.tbh-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -18px rgba(6, 32, 28, .25); }
.admin-bar.tbh-sticky .tbh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.tbh-sticky .tbh-header { top: 0; position: relative; } }
.tbh-header__inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }

/* Logo */
.tbh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.tbh-logo:hover { color: var(--text); }
.tbh-mark { display: block; flex: none; overflow: visible; }
.tbh-logo__word { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.035em; }
.tbh-logo__pill { position: relative; overflow: hidden; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: #FFFFFF; background: var(--grad); padding: 3px 9px; border-radius: 999px; }
[data-theme="dark"] .tbh-logo__pill { color: var(--on-primary); }
.tbh-logo .tbh-mark { transition: transform .45s var(--ease); }
.tbh-logo:hover .tbh-mark { transform: rotate(-8deg) scale(1.06); }
.tbh-logo--anim .tbh-mark { animation: tbh-mark-in .8s var(--ease) both; }
.tbh-logo--anim .tbh-mark__shine { animation: tbh-shine 4.5s var(--ease) 1s infinite; }
.tbh-logo--anim .tbh-mark__arrow { animation: tbh-arrow 2.6s var(--ease) infinite; }
.tbh-logo--anim .tbh-logo__pill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: tbh-pill 4.5s var(--ease) 1.4s infinite; }
@keyframes tbh-mark-in { from { transform: scale(.6) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tbh-shine { 0% { transform: rotate(20deg) translateX(0); } 35%, 100% { transform: rotate(20deg) translateX(190px); } }
@keyframes tbh-arrow { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(3px, -3px); } 60% { transform: translate(0, 0); } }
@keyframes tbh-pill { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.custom-logo-link img { max-height: 44px; width: auto; }

/* Nav */
.tbh-nav { margin-left: 8px; display: none; }
.tbh-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.tbh-nav__list a { position: relative; display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s, background-color .2s; }
.tbh-nav__list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.tbh-nav__list a:hover { color: var(--text); }
.tbh-nav__list a:hover::after { transform: scaleX(1); }
.tbh-nav__list .current-menu-item > a, .tbh-nav__list .current_page_item > a { color: var(--text); font-weight: 600; }
.tbh-nav__list .current-menu-item > a::after, .tbh-nav__list .current_page_item > a::after { transform: scaleX(1); }
.tbh-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tbh-show-dark, .tbh-menubtn__close { display: none !important; }
[data-theme="dark"] .tbh-show-dark { display: grid !important; }
[data-theme="dark"] .tbh-show-light { display: none !important; }
.tbh-menubtn[aria-expanded="true"] .tbh-menubtn__open { display: none !important; }
.tbh-menubtn[aria-expanded="true"] .tbh-menubtn__close { display: grid !important; }

/* Calculators button */
.tbh-calc { position: relative; }
.tbh-calc__btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 5px; border-radius: 12px; border: 0; background: var(--grad); color: #FFFFFF; font-weight: 600; font-size: .88rem; cursor: pointer; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 80%, transparent); transition: transform .2s var(--ease), box-shadow .2s; }
[data-theme="dark"] .tbh-calc__btn { color: var(--on-primary); }
.tbh-calc__btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--primary) 90%, transparent); }
.tbh-calc__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .2); line-height: 0; }
[data-theme="dark"] .tbh-calc__ico { background: rgba(4, 36, 32, .18); }
.tbh-calc__btn:hover .tbh-calc__ico .tbh-icon { animation: tbh-wiggle .5s ease; }
.tbh-calc__chev { display: grid; place-items: center; line-height: 0; opacity: .85; }
.tbh-calc__btn[aria-expanded="true"] .tbh-calc__chev .tbh-icon { transform: rotate(180deg); }
.tbh-calc__menu { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 60; animation: tbh-pop .22s var(--ease); }
.tbh-calc__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background-color .2s; }
.tbh-calc__item:hover { background: var(--soft); color: var(--text); }
.tbh-calc__item:hover .tbh-calc__icon { background: var(--grad); color: #FFFFFF; }
.tbh-calc__icon { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--soft); color: var(--primary-text); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.tbh-calc__item strong { display: block; font-weight: 600; font-size: .92rem; }
.tbh-calc__item small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
@keyframes tbh-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }
@keyframes tbh-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Mobile nav */
.tbh-mobile-nav { border-top: 1px solid var(--line); padding: 10px 0 18px; background: var(--surface); animation: tbh-pop .22s var(--ease); }
.tbh-mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.tbh-mobile-nav__list a { display: block; padding: 13px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 1rem; }
.tbh-mobile-nav__list a:hover { background: var(--soft); }
@media (min-width: 1100px) {
	.tbh-nav { display: block; }
	.tbh-menubtn { display: none; }
	.tbh-mobile-nav { display: none !important; }
}
@media (max-width: 520px) {
	.tbh-header__inner { gap: 10px; min-height: 64px; }
	.tbh-calc__label, .tbh-calc__chev { display: none; }
	.tbh-calc__btn { width: 44px; padding: 0; justify-content: center; }
	.tbh-calc__ico { background: transparent; }
	.tbh-calc__menu { position: fixed; left: 12px; right: 12px; width: auto; top: 112px; }
	.tbh-logo__word { font-size: 1.05rem; }
	.tbh-logo .tbh-mark { width: 34px; height: 34px; }
}

/* ----------------------------------------------------------------- Hero */
.tbh-hero, .tbh-page-hero { position: relative; isolation: isolate; }
.tbh-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 4vw, 56px); }
.tbh-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tbh-blob { position: absolute; border-radius: 50%; will-change: transform; }
.tbh-blob--a { width: 760px; height: 760px; top: -380px; right: -120px; background: radial-gradient(closest-side, var(--glow-a), transparent); animation: tbh-drift 22s ease-in-out infinite alternate; }
.tbh-blob--b { width: 620px; height: 620px; top: -160px; left: -260px; background: radial-gradient(closest-side, var(--glow-b), transparent); animation: tbh-drift 28s ease-in-out infinite alternate-reverse; }
.tbh-hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); }
@keyframes tbh-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.08); } }
.tbh-hero__intro { max-width: 760px; margin-bottom: clamp(24px, 3vw, 36px); animation: tbh-rise .7s var(--ease) both; }
.tbh-hero__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
.tbh-hero__side .tc-card { height: 100%; margin: 0; }
.tbh-hero__main .tc-hero { height: 100%; }
@media (min-width: 960px) { .tbh-hero__cols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; } }
@keyframes tbh-rise { from { transform: translateY(14px); } to { transform: none; } }

/* ----------------------------------------------- Tasa Core, premium skin */
.tc-card, .tc-hero { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 30px); }
.tc-card__title, .tc-manana__title { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }
.tc-hero__label { font-size: .84rem; font-weight: 600; }
.tc-hero__rate { font-size: clamp(calc(var(--rate-size) * .72), 3.4vw + 1rem, var(--rate-size)); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; color: var(--text); }
.tc-hero__change { font-size: .9rem; font-weight: 600; }
.tc-hero__meta { font-size: .82rem; }
.tc-pill { font-size: .72rem; font-weight: 500; background: var(--surface-2); border-color: var(--line); }
.tc-mini { border-radius: calc(var(--radius) * .7); background: var(--surface-2); border: 1px solid transparent; padding: 14px 16px; transition: border-color .2s, transform .25s var(--ease), background-color .2s; }
a.tc-mini:hover { outline: 0; border-color: color-mix(in srgb, var(--primary) 40%, transparent); transform: translateY(-2px); background: var(--surface); }
.tc-mini__name { font-size: .76rem; font-weight: 500; }
.tc-mini__value { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }
.tc-mini__sub { font-size: .74rem; font-weight: 500; }
.tc-seg { border-radius: 14px; padding: 5px; }
.tc-seg button { font-size: .86rem; font-weight: 600; border-radius: 10px; transition: background-color .2s, color .2s; }
.tc-label { font-size: .8rem; font-weight: 500; }
.tc-input { border-radius: 12px; background: var(--surface-2); border-color: var(--line); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.tc-input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--ring); }
.tc-input--big { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; border-width: 1px; }
.tc-results__label { font-size: .88rem; }
.tc-results__value { font-size: 1.02rem; font-weight: 600; }
.tc-btn { border-radius: 999px; font-weight: 600; font-size: .9rem; }
.tc-btn--primary { background: var(--grad); border-color: transparent; color: #FFFFFF; }
[data-theme="dark"] .tc-btn--primary { color: var(--on-primary); }
.tc-table-wrap { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow-sm); }
.tc-table { font-size: .92rem; }
.tc-table thead th { font-size: .7rem; font-weight: 600; letter-spacing: .08em; }
.tc-table tbody th { font-weight: 600; }
.tc-table tbody tr { transition: background-color .2s; }
.tc-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.tc-strong { font-weight: 600; }
.tc-stat strong { font-size: 1.2rem; font-weight: 600; }
.tc-amount__main { font-weight: 600; }
.tc-updated { font-size: .82rem; display: inline-block; margin-bottom: 10px; }
.tc-manana { position: relative; overflow: hidden; }
.tc-manana::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.tc-chips a { font-weight: 500; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.tc-chips a:hover { border-color: var(--primary); color: var(--primary-text); transform: translateY(-1px); }
@media (max-width: 640px) { .tc-table tbody tr { border-radius: 16px; } }

/* ----------------------------------------------------------- Sections */
.tbh-home > .tbh-ad:first-child { margin-top: 8px; }
.tbh-section { margin-top: calc(var(--section-space) * .62); }
@media (min-width: 900px) { .tbh-section { margin-top: var(--section-space); } }
.tbh-section--tight { margin-top: 28px !important; }
.tbh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.tbh-head h2 { margin: 0; }
.tbh-head__text { max-width: 680px; }
.tbh-head__desc { margin: 10px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.tbh-head--center { justify-content: center; text-align: center; }
.tbh-head--center .tbh-head__text { margin: 0 auto; }
.tbh-head--center .tbh-eyebrow { justify-content: center; }

.tbh-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tbh-grid--3, .tbh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.tbh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.tbh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Stats */
.tbh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.tbh-stat { padding: clamp(18px, 2.4vw, 28px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tbh-stat:nth-child(2n) { border-right: 0; }
.tbh-stat:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 900px) {
	.tbh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tbh-stat { border-bottom: 0; }
	.tbh-stat:nth-child(2n) { border-right: 1px solid var(--line); }
	.tbh-stat:last-child { border-right: 0; }
}
.tbh-stat__num { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--primary-text); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.tbh-stat__label { margin: 6px 0 2px; font-weight: 600; font-size: .92rem; }
.tbh-stat__sub { margin: 0; font-size: .82rem; color: var(--muted); }

/* Tools */
.tbh-tool { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.tbh-tool::before, .tbh-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--primary-2) 12%, transparent), transparent 65%); transition: opacity .35s; pointer-events: none; }
.tbh-tool:hover { color: var(--text); transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: var(--shadow); }
.tbh-tool:hover::before, .tbh-card:hover::before { opacity: 1; }
.tbh-tool__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--primary-text); display: grid; place-items: center; margin-bottom: 6px; transition: background-color .3s, color .3s, transform .35s var(--ease); }
.tbh-tool:hover .tbh-tool__icon { background: var(--grad); color: #FFFFFF; transform: scale(1.05) rotate(-4deg); }
[data-theme="dark"] .tbh-tool:hover .tbh-tool__icon { color: var(--on-primary); }
.tbh-tool__title { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; }
.tbh-tool__desc { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.tbh-tool__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .86rem; font-weight: 600; color: var(--primary-text); }
.tbh-tool:hover .tbh-tool__go .tbh-icon, .tbh-link:hover .tbh-icon { transform: translateX(4px); }

/* Feature with photo */
.tbh-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 1024px) { .tbh-feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; } }
.tbh-feature__media { position: relative; padding: 0 0 28px; }
.tbh-feature__img, .tbh-feature__ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) * 1.3); box-shadow: var(--shadow-lg); }
.tbh-feature__ph { display: grid; place-items: center; background: var(--grad); }
.tbh-float { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: tbh-bob 6s ease-in-out infinite; }
.tbh-float strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tbh-float__label { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 500; color: var(--muted); }
.tbh-float--a { left: -14px; bottom: 0; }
.tbh-float--b { right: -10px; top: 24px; animation-delay: -3s; }
@media (max-width: 640px) { .tbh-float--a { left: 10px; } .tbh-float--b { right: 10px; } }
@keyframes tbh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tbh-feature__body h2 { font-size: clamp(calc(var(--h2) * .85), 1.6vw + 1rem, calc(var(--h2) * 1.15)); }
.tbh-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.tbh-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.tbh-checks__ico { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--primary-text); }

/* CTA with photo */
.tbh-cta { position: relative; overflow: hidden; isolation: isolate; margin-top: var(--section-space); border-radius: calc(var(--radius) * 1.3); background: linear-gradient(135deg, #04201C, #0B5E55 60%, #0E7C70); color: #FFFFFF; }
.tbh-cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .6; transform: scale(1.04); transition: transform 8s var(--ease); }
.tbh-cta:hover .tbh-cta__img { transform: scale(1.1); }
.tbh-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(4, 32, 28, .95) 0%, rgba(4, 32, 28, .75) 45%, rgba(11, 94, 85, .25) 100%); }
.tbh-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 64px); }
.tbh-cta h2 { margin: 0 0 8px; color: #FFFFFF; font-size: clamp(1.4rem, 2vw + .6rem, 2rem); }
.tbh-cta p { margin: 0; color: rgba(255, 255, 255, .82); }
.tbh-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* SEO text */
.tbh-seo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.tbh-seo > *:last-child { margin-bottom: 0; }
.tbh-seo h2:first-child { margin-top: 0; }

/* FAQ */
.tbh-faqwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 64px; }
@media (min-width: 1024px) { .tbh-faqwrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); } .tbh-faqwrap__head { position: sticky; top: 110px; align-self: start; } }
.tbh-faq { display: flex; flex-direction: column; gap: 10px; }
.tbh-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s, box-shadow .25s; }
.tbh-faq__item[open] { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.tbh-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 16px 20px; font-weight: 600; font-size: .98rem; }
.tbh-faq__item summary::-webkit-details-marker { display: none; }
.tbh-faq__item summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C70' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.tbh-faq__item[open] summary::after { transform: rotate(45deg); }
.tbh-faq__item p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* Daily list */
.tbh-daylist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 768px) { .tbh-daylist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tbh-daylist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tbh-daylist a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; transition: border-color .2s, transform .25s var(--ease); }
.tbh-daylist a > span:nth-child(2) { flex: 1; }
.tbh-daylist a:hover { border-color: var(--primary); transform: translateX(3px); color: var(--text); }
.tbh-daylist__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--primary-text); flex: none; }

/* ------------------------------------------------------------ Ads */
.tbh-ad { margin: 40px 0; min-height: 100px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.tbh-ad--empty { border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 768px) { .tbh-ad { min-height: 120px; } }

/* ------------------------------------------------------------ Cards */
.tbh-card { position: relative; isolation: isolate; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--primary) 3%, var(--surface)); border: 1px solid var(--line); color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.tbh-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.tbh-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.tbh-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tbh-card:hover .tbh-card__media img { transform: scale(1.06); }
.tbh-card__ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--grad); }
.tbh-card__pill { position: absolute; top: 14px; right: 14px; padding: 5px 12px; border-radius: 999px; background: var(--primary); color: #FFFFFF; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
[data-theme="dark"] .tbh-card__pill { color: var(--on-primary); }
.tbh-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 22px 20px; }
.tbh-card__title { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.tbh-card__title a { color: var(--text); text-decoration: none; }
.tbh-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tbh-card__title a:focus-visible { outline: 0; }
.tbh-card:has(a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.tbh-card:hover .tbh-card__title a { color: var(--primary-text); }
.tbh-card__excerpt { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tbh-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: auto 0 0; padding-top: 10px; font-size: .78rem; color: var(--muted); }
.tbh-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); }
.tbh-card:hover .tbh-card__more .tbh-icon { transform: translateX(4px); }

/* --------------------------------------------- Page heroes and crumbs */
.tbh-page-hero { padding: clamp(28px, 4vw, 52px) 0 clamp(24px, 3vw, 40px); margin-bottom: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.tbh-page-hero .tbh-blob--a { width: 620px; height: 620px; top: -320px; }
.tbh-page-hero .tbh-sub { margin-top: 4px; }
.tbh-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); }
.tbh-crumbs li { display: inline-flex; align-items: center; }
.tbh-crumbs li + li::before { content: ""; width: 14px; height: 14px; margin: 0 6px 0 2px; background: currentColor; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.tbh-crumbs a { color: var(--muted); text-decoration: none; }
.tbh-crumbs a:hover { color: var(--primary-text); }
.tbh-crumbs [aria-current] { color: var(--text); font-weight: 500; }
.tbh-page__head, .tbh-article__head { margin-bottom: 18px; }

/* Post hero with featured photo behind */
.tbh-post-hero { position: relative; isolation: isolate; overflow: hidden; color: #FFFFFF; background: linear-gradient(135deg, #04201C, #0B4F47); padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 4.5vw, 56px); margin-bottom: clamp(28px, 4vw, 52px); }
.tbh-post-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: tbh-zoom 18s ease-out both; }
.tbh-post-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 28, 25, .95) 0%, rgba(4, 28, 25, .86) 45%, rgba(4, 28, 25, .55) 100%), linear-gradient(0deg, rgba(4, 28, 25, .6), transparent 40%); }
@keyframes tbh-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.tbh-post-hero__in { position: relative; }
.tbh-post-hero .tbh-crumbs ol { display: inline-flex; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); margin-bottom: 26px; max-width: 100%; }
.tbh-post-hero .tbh-crumbs a { color: rgba(255, 255, 255, .85); }
.tbh-post-hero .tbh-crumbs a:hover { color: #FFFFFF; }
.tbh-post-hero .tbh-crumbs [aria-current] { color: #FFFFFF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; display: inline-block; }
.tbh-post-hero__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tbh-chip { display: inline-block; padding: 7px 16px; border-radius: 999px; background: #D1FAE5; color: #065F46; font-size: .8rem; font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.tbh-chip:hover { color: #064E3B; background: #FFFFFF; transform: translateY(-1px); }
.tbh-post-hero__title { max-width: 920px; margin: 0 0 24px; color: #FFFFFF; font-size: clamp(calc(var(--h1) * .7), 2.4vw + 1rem, calc(var(--h1) * 1.1)); line-height: 1.14; letter-spacing: -0.03em; text-wrap: balance; }
.tbh-post-hero__author { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tbh-post-hero__avatar img, .tbh-post-hero__avatar svg { width: 44px; height: 44px; border-radius: 50%; display: block; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.tbh-post-hero__by { display: block; font-size: .8rem; color: #6EE7B7; }
.tbh-post-hero__name { display: block; font-size: .92rem; font-weight: 600; }
.tbh-post-hero__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .84rem; color: rgba(255, 255, 255, .86); }
.tbh-post-hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.tbh-post-hero__meta li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .22); }

/* ------------------------------------------------------- Layout + sidebar */
.tbh-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) {
	.tbh-layout { grid-template-columns: minmax(0, 820px) 340px; gap: 56px; justify-content: space-between; }
	.tbh-sidebar { position: sticky; top: 100px; align-self: start; }
	.admin-bar .tbh-sidebar { top: 132px; }
}
.tbh-layout__main { min-width: 0; }

/* Article */
.tbh-lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 28px; line-height: 1.65; padding-left: 18px; border-left: 3px solid; border-image: var(--grad) 1; }
.tbh-toc { margin: 0 0 32px; padding: 18px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tbh-toc summary { cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; list-style: none; }
.tbh-toc summary .tbh-icon { color: var(--primary-text); }
.tbh-toc summary::-webkit-details-marker { display: none; }
.tbh-toc ol { margin: 14px 0 0; padding-left: 1.3em; font-size: .92rem; }
.tbh-toc li { margin: 7px 0; }
.tbh-toc li::marker { color: var(--primary-text); font-weight: 600; }
.tbh-toc a { color: var(--text); text-decoration: none; }
.tbh-toc a:hover { color: var(--primary-text); }

.tbh-prose { font-size: 1rem; line-height: var(--lh); }
.tbh-prose > *:first-child { margin-top: 0; }
.tbh-prose h2 { margin: 1.9em 0 .6em; scroll-margin-top: 100px; }
.tbh-prose h3 { margin: 1.6em 0 .5em; }
.tbh-prose p, .tbh-prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.tbh-prose ul, .tbh-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.tbh-prose li { margin-bottom: .45em; }
.tbh-prose li::marker { color: var(--primary-text); }
.tbh-prose strong { font-weight: 600; color: var(--text); }
.tbh-prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: 0 14px 14px 0; border-left: 3px solid var(--primary); background: var(--soft); color: var(--text); }
.tbh-prose img { border-radius: 14px; }
.tbh-prose table:not(.tc-table) { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.6em; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tbh-prose table:not(.tc-table) th, .tbh-prose table:not(.tc-table) td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; }
.tbh-prose table:not(.tc-table) thead th { background: var(--surface-2); border-top: 0; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.tbh-prose .tc-card, .tbh-prose .tc-hero, .tbh-prose .tc-table-wrap { margin-bottom: 24px; font-size: 1rem; line-height: 1.6; }
.tbh-prose .tc-small { margin-top: -8px; margin-bottom: 20px; }
.tbh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.tbh-tags a { padding: 6px 13px; border-radius: 999px; background: var(--soft); color: var(--primary-text); text-decoration: none; font-size: .82rem; font-weight: 500; transition: background-color .2s, color .2s; }
.tbh-tags a:hover { background: var(--primary); color: #FFFFFF; }
.tbh-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.tbh-share__label { font-weight: 600; font-size: .9rem; margin-right: 6px; }
.tbh-share__btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.tbh-share__btn:hover { transform: translateY(-3px); background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.tbh-share__btn.is-copied { background: var(--up); color: #FFFFFF; border-color: var(--up); }

/* Author box */
.tbh-author { display: flex; gap: 20px; align-items: flex-start; margin: 40px 0 0; padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, var(--soft), var(--surface) 70%); border: 1px solid var(--line); }
.tbh-author__avatar { flex: none; }
.tbh-author__avatar img, .tbh-author__avatar svg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.tbh-author__label { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-text); }
.tbh-author__name { margin: 2px 0 6px; font-size: 1.1rem; font-weight: 600; }
.tbh-author__bio { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
@media (max-width: 520px) { .tbh-author { flex-direction: column; } }

/* Related posts (full width) */
.tbh-related { margin-top: clamp(56px, 7vw, 96px); }
.tbh-bar-title { position: relative; margin: 0 0 28px; padding-left: 16px; }
.tbh-bar-title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 4px; background: var(--grad); }

/* Sidebar widgets */
.tbh-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tbh-widget { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tbh-widget__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .98rem; font-weight: 600; }
.tbh-widget__title .tbh-icon { color: var(--primary-text); }
.tbh-widget__foot { margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
.tbh-ratelist, .tbh-toollist, .tbh-postlist { list-style: none; margin: 0; padding: 0; }
.tbh-ratelist a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tbh-ratelist li:last-child a { border-bottom: 0; }
.tbh-ratelist__name { font-size: .88rem; color: var(--muted); }
.tbh-ratelist__val { text-align: right; }
.tbh-ratelist__val strong { display: block; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.tbh-ratelist__val small { font-size: .74rem; font-weight: 500; }
.tbh-toollist a { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .9rem; transition: background-color .2s; }
.tbh-toollist a:hover { background: var(--soft); }
.tbh-toollist a > span:nth-child(2) { flex: 1; }
.tbh-toollist a:hover > .tbh-icon:last-child { transform: translateX(4px); }
.tbh-toollist__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--primary-text); display: grid; place-items: center; flex: none; }
.tbh-postlist a { display: flex; gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.tbh-postlist li:last-child a { border-bottom: 0; }
.tbh-postlist__img { flex: none; overflow: hidden; border-radius: 12px; }
.tbh-postlist__img img { width: 68px; height: 68px; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.tbh-postlist a:hover .tbh-postlist__img img { transform: scale(1.08); }
.tbh-postlist__title { display: block; font-weight: 500; font-size: .88rem; line-height: 1.4; }
.tbh-postlist a:hover .tbh-postlist__title { color: var(--primary-text); }
.tbh-postlist__date { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }
.tbh-widget--cta { position: relative; overflow: hidden; background: linear-gradient(135deg, #04201C, #0B5E55); border: 0; color: #FFFFFF; }
.tbh-widget--cta::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(closest-side, rgba(45, 212, 191, .4), transparent); }
.tbh-widget--cta p { margin: 0; color: rgba(255, 255, 255, .82); font-size: .9rem; }
.tbh-widget--cta .tbh-widget__title { color: #FFFFFF; }

/* Social icons */
.tbh-social { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tbh-social__link { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text); background: var(--surface); transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.tbh-social__link:hover { transform: translateY(-3px); background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.tbh-social--footer .tbh-social__link, .tbh-social--light .tbh-social__link { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #FFFFFF; }
.tbh-social--footer .tbh-social__link:hover, .tbh-social--light .tbh-social__link:hover { background: #FFFFFF; color: #06201C; text-decoration: none; }
.tbh-social--menu { margin: 12px 12px 4px; }
.tbh-social--light { position: relative; z-index: 1; }

/* Contact page */
.tbh-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .tbh-contact { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } .tbh-contact__side { position: sticky; top: 100px; align-self: start; } }
.tbh-contact__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.tbh-contact__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.tbh-contact__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.tbh-contact__list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.tbh-contact__ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #FFFFFF; }
[data-theme="dark"] .tbh-contact__ico { color: var(--on-primary); }
.tbh-contact .tc-contact { box-shadow: var(--shadow); }

/* Misc */
.tbh-box { margin: 32px 0; padding: 24px; border-radius: var(--radius); background: var(--soft); }
.tbh-box__title { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.tbh-search { display: flex; gap: 8px; margin: 18px 0 24px; max-width: 560px; }
.tbh-search .tc-input { flex: 1; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; font-size: .9rem; transition: border-color .2s; }
.nav-links .page-numbers:hover { border-color: var(--primary); }
.nav-links .page-numbers.current { background: var(--grad); border-color: transparent; color: #FFFFFF; }
.tbh-404 { text-align: center; padding: 48px 0; }
.tbh-404 .tbh-search { margin: 24px auto; }

/* --------------------------------------------------------------- Footer */
.tbh-footer { position: relative; overflow: hidden; background: var(--footer-bg); color: var(--footer-text); font-size: .9rem; }
.tbh-footer::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(45, 212, 191, .16), transparent); pointer-events: none; }
.tbh-footer a { color: var(--footer-text); text-decoration: none; transition: color .2s; }
.tbh-footer a:hover { color: #FFFFFF; }
.tbh-footer__grid { position: relative; display: grid; gap: 32px; padding-top: 56px; padding-bottom: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tbh-footer__brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 900px) {
	.tbh-footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); padding-top: 72px; }
	.tbh-footer__brand { grid-column: auto; }
}
.tbh-footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #FFFFFF; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.035em; }
.tbh-footer__mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 500; }
.tbh-footer__title { margin: 0 0 14px; color: #FFFFFF; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.tbh-footer__list { list-style: none; margin: 0; padding: 0; }
.tbh-footer__list li { margin-bottom: 4px; }
.tbh-footer__list a { display: inline-block; padding: 5px 0; }
.tbh-footer__list a:hover { transform: translateX(3px); }
.tbh-footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.tbh-footer__bottom p { margin: 0 auto; padding-top: 18px; padding-bottom: 18px; font-size: .78rem; line-height: 1.6; color: color-mix(in srgb, var(--footer-text) 85%, transparent); }

/* --------------------------------------------------------------- Motion */
.tbh-reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
.tbh-reveal-on [data-reveal].is-in:not(.is-instant) { animation: tbh-reveal .8s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes tbh-reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
body:not(.tbh-motion) .tbh-blob, body:not(.tbh-motion) .tbh-float, body:not(.tbh-motion) .tbh-post-hero__img { animation: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.tbh-reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
	.tbh-header, .tbh-tickerbar, .tbh-footer, .tbh-ad, .tbh-cta, .tbh-sidebar, .tbh-related { display: none; }
	.tbh-post-hero { background: none; color: #000; }
	.tbh-post-hero__img, .tbh-post-hero__shade { display: none; }
	.tbh-post-hero__title { color: #000; }
}

/* Small-screen refinements */
.tbh-crumbs li + li::before { display: inline-block; vertical-align: -2px; flex: none; }
@media (max-width: 640px) {
	.tbh-post-hero .tbh-crumbs [aria-current] { display: none; }
	.tbh-post-hero__meta { gap: 6px 16px; }
	.tbh-post-hero__meta li + li { padding-left: 0; border-left: 0; }
	.tbh-hero__intro .tbh-sub { font-size: .9rem; }
	.tbh-head { margin-bottom: 20px; }
}
