/* ==========================================================================
   TechStormX — main stylesheet
   ========================================================================== */

:root {
	--bg: #070b14;
	--bg-2: #0b1120;
	--surface: #0f172a;
	--surface-2: #131c33;
	--line: rgba(148, 163, 184, .14);
	--line-2: rgba(148, 163, 184, .24);
	--text: #e6edf7;
	--muted: #94a3b8;
	--dim: #64748b;
	--cyan: #22d3ee;
	--violet: #8b5cf6;
	--red: #f43f5e;
	--green: #34d399;
	--grad: linear-gradient(120deg, #22d3ee 0%, #8b5cf6 100%);
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 10px 40px -12px rgba(0, 0, 0, .55);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1240px;
	--header-h: 68px;
	color-scheme: dark;
}

[data-theme="light"] {
	--bg: #f6f8fc;
	--bg-2: #eef2f9;
	--surface: #ffffff;
	--surface-2: #f3f6fb;
	--line: rgba(15, 23, 42, .09);
	--line-2: rgba(15, 23, 42, .16);
	--text: #0b1220;
	--muted: #475569;
	--dim: #64748b;
	--shadow: 0 10px 30px -14px rgba(15, 23, 42, .25);
	color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; background: var(--cyan); color: #000; border-radius: 8px; }

.tsx-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.tsx-wrap--narrow { max-width: 860px; }
.tsx-icon { flex: none; vertical-align: middle; }

[data-theme="light"] .tsx-only-light,
:root:not([data-theme="light"]) .tsx-only-dark { display: inline-flex; }
[data-theme="light"] .tsx-only-dark,
:root:not([data-theme="light"]) .tsx-only-light { display: none; }

/* ---------- Progress ---------- */
.tsx-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.tsx-progress span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--cyan); }

/* ---------- Header ---------- */
.tsx-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .tsx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tsx-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tsx-header { top: 0; } }

.tsx-header__inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }

.tsx-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; font-size: 19px; white-space: nowrap; }
.tsx-brand__text b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.custom-logo-link img { max-height: 44px; width: auto; }

.tsx-nav { margin-left: auto; }
.tsx-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tsx-menu > li { position: relative; }
.tsx-menu a {
	display: block; padding: 8px 12px; border-radius: 10px;
	font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; white-space: nowrap;
}
.tsx-menu a:hover,
.tsx-menu .current-menu-item > a,
.tsx-menu .current-category-ancestor > a,
.tsx-menu .current-post-ancestor > a { color: var(--text); background: var(--surface-2); }
.tsx-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 8px 0 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.tsx-menu > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; }
.tsx-menu .sub-menu a { padding: 9px 12px; }
.tsx-menu li:hover > .sub-menu,
.tsx-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.tsx-header__actions { display: flex; align-items: center; gap: 6px; }
.tsx-iconbtn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
	background: transparent; border: 1px solid var(--line); color: var(--muted); transition: .2s;
}
.tsx-iconbtn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.tsx-burger { display: none; }

@media (max-width: 1060px) {
	.tsx-burger { display: inline-grid; }
	.tsx-header__actions { margin-left: auto; }
	.tsx-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 14px 18px 22px;
		background: var(--bg); border-bottom: 1px solid var(--line);
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s; max-height: calc(100vh - var(--header-h)); overflow: auto;
	}
	.admin-bar .tsx-nav { top: calc(var(--header-h) + 46px); }
	.tsx-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.tsx-menu { flex-direction: column; align-items: stretch; }
	.tsx-menu a { padding: 13px 14px; font-size: 16px; }
	.tsx-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; margin: 0; background: transparent; }
}

/* ---------- Search overlay ---------- */
.tsx-search-overlay {
	position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding: 14vh 18px 0;
	background: rgba(3, 6, 12, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tsx-search-overlay[hidden] { display: none; }
.tsx-search-overlay__box { position: relative; width: min(720px, 100%); }
.tsx-search-overlay form,
.tsx-hero__search {
	display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow);
}
.tsx-search-overlay input,
.tsx-hero__search input {
	flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 500 17px var(--font); padding: 12px 0;
}
.tsx-search-overlay form button,
.tsx-hero__search button {
	display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 11px; padding: 12px 18px;
	background: var(--grad); color: #04121a; font-weight: 700; font-size: 15px;
}
.tsx-search-close { position: absolute; right: 0; top: -54px; color: #fff; }
.tsx-prompt { font-family: var(--font-mono); color: var(--cyan); font-size: 15px; }

/* ---------- Hero + threat map ---------- */
.tsx-hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 72px);
	background:
		radial-gradient(60% 70% at 75% 30%, rgba(139, 92, 246, .16), transparent 70%),
		radial-gradient(50% 60% at 15% 80%, rgba(34, 211, 238, .12), transparent 70%),
		var(--bg);
	border-bottom: 1px solid var(--line);
}
.tsx-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 85%);
	-webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 85%);
	opacity: .45;
}
.tsx-map { position: absolute; inset: 0; z-index: -1; }
.tsx-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tsx-map__dots { fill: none; stroke: var(--cyan); stroke-width: 3.4; stroke-linecap: round; opacity: .32; }
[data-theme="light"] .tsx-map__dots { stroke: #0e7490; opacity: .22; }
.tsx-map__arc { fill: none; stroke: url(#tsx-arc); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(244, 63, 94, .8)); }
.tsx-map__node { fill: var(--cyan); }
.tsx-map__ring { fill: none; stroke: var(--cyan); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: tsx-ring 2.4s ease-out infinite; }
.tsx-map__hit { fill: #fde68a; }
.tsx-map__hitring { fill: none; stroke: var(--red); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: tsx-hit 1.2s ease-out forwards; }
@keyframes tsx-ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes tsx-hit { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(4); opacity: 0; } }
.tsx-map__scan {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, .08) 48%, rgba(34, 211, 238, .22) 50%, transparent 52%);
	background-size: 200% 100%; animation: tsx-scan 7s linear infinite; mix-blend-mode: screen;
}
@keyframes tsx-scan { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.tsx-hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 40px; align-items: end; }
.tsx-hero__inner > * { min-width: 0; }
.tsx-hero__copy { max-width: 680px; }
.tsx-kicker {
	display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line-2);
	font: 500 12.5px var(--font-mono); letter-spacing: .04em; color: var(--muted); backdrop-filter: blur(6px); max-width: 100%;
}
.tsx-live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); animation: tsx-pulse 1.8s infinite; display: inline-block; }
@keyframes tsx-pulse { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); } 70% { box-shadow: 0 0 0 9px rgba(244, 63, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); } }

.tsx-hero__title {
	margin: 20px 0 16px; font: 700 clamp(34px, 5.2vw, 62px)/1.04 var(--font-display); letter-spacing: -.025em;
	text-wrap: balance;
	background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 60%, var(--cyan)) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.tsx-hero__text { margin: 0 0 28px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 580px; }
.tsx-hero__search { max-width: 600px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); }
.tsx-hero__search--inline { margin-top: 22px; }
.tsx-hero__stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 30px; }
.tsx-hero__stats div { display: flex; flex-direction: column; }
.tsx-hero__stats b { font: 700 28px var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tsx-hero__stats span { font-size: 13px; color: var(--dim); }

/* Console */
.tsx-console {
	background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--line-2); border-radius: var(--radius);
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	font-family: var(--font-mono); font-size: 12.5px; overflow: hidden;
}
.tsx-console__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.tsx-console__head > span:nth-child(2) { display: inline-flex; align-items: center; gap: 6px; }
.tsx-console__dots { display: inline-flex; gap: 6px; }
.tsx-console__dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.tsx-console__dots i:nth-child(1) { background: #f43f5e; }
.tsx-console__dots i:nth-child(2) { background: #fbbf24; }
.tsx-console__dots i:nth-child(3) { background: #34d399; }
.tsx-console__count b { color: var(--green); }
.tsx-console__feed { list-style: none; margin: 0; padding: 8px 0; height: 236px; overflow: hidden; display: flex; flex-direction: column-reverse; }
.tsx-console__feed li { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; padding: 6px 14px; color: var(--muted); animation: tsx-in .4s ease both; white-space: nowrap; }
.tsx-console__feed li span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.tsx-console__feed time { color: var(--dim); }
.tsx-console__feed em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: rgba(52, 211, 153, .12); color: var(--green); }
.tsx-console__feed em.is-crit { background: rgba(244, 63, 94, .14); color: var(--red); }
.tsx-console__foot { padding: 9px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
@keyframes tsx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
	.tsx-hero__inner { grid-template-columns: 1fr; }
	.tsx-console__feed { height: 170px; }
}
@media (max-width: 560px) {
	.tsx-console { display: none; }
	.tsx-kicker { font-size: 11px; }
	.tsx-hero__search { padding-left: 14px; }
	.tsx-hero__search button { padding: 12px 14px; }
	.tsx-hero__search button span { display: none; }
}

/* ---------- Ticker ---------- */
.tsx-ticker { display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.tsx-ticker__label {
	flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px;
	font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; border-right: 1px solid var(--line); background: var(--bg-2); z-index: 1;
}
.tsx-ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tsx-ticker__move { display: inline-flex; gap: 44px; padding-left: 24px; white-space: nowrap; animation: tsx-marquee 60s linear infinite; }
.tsx-ticker:hover .tsx-ticker__move { animation-play-state: paused; }
.tsx-ticker__move a { font-size: 14px; color: var(--muted); position: relative; }
.tsx-ticker__move a::before { content: "◆"; color: var(--cyan); font-size: 9px; margin-right: 12px; vertical-align: 2px; }
.tsx-ticker__move a:hover { color: var(--text); }
@keyframes tsx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.tsx-section { padding-top: clamp(44px, 6vw, 72px); }
.tsx-section:last-child { padding-bottom: clamp(48px, 6vw, 80px); }
.tsx-main > .tsx-section:last-of-type { padding-bottom: clamp(48px, 6vw, 80px); }
.tsx-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tsx-h2 { margin: 0; display: flex; align-items: baseline; gap: 12px; font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--font-display); letter-spacing: -.015em; }
.tsx-h2 span { font: 500 13px var(--font-mono); color: var(--c, var(--cyan)); }
.tsx-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c, var(--cyan)); white-space: nowrap; }
.tsx-more:hover .tsx-icon { transform: translateX(3px); }
.tsx-more .tsx-icon { transition: transform .2s; }

.tsx-grid { display: grid; gap: 22px; }
.tsx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tsx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tsx-grid--3 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.tsx-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.tsx-card::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .25s;
	background: linear-gradient(140deg, var(--c), transparent 55%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tsx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c) 45%, transparent); }
.tsx-card:hover::before { opacity: 1; }
.tsx-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.tsx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.tsx-card:hover .tsx-card__media img { transform: scale(1.045); }
.tsx-card__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center; color: var(--c);
	background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), var(--surface-2);
}
.tsx-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.tsx-card__title { margin: 0; font: 600 18.5px/1.32 var(--font-display); letter-spacing: -.01em; }
.tsx-card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.tsx-card__title a:hover { background-size: 100% 1px; }
.tsx-card__title a::after { content: ""; position: absolute; inset: 0; }
.tsx-card__excerpt { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.tsx-card__meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--dim); }
.tsx-card__top { position: relative; z-index: 1; }
.tsx-read { display: inline-flex; align-items: center; gap: 5px; }
.tsx-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); display: inline-block; }
.tsx-date__label { color: var(--green); font-weight: 600; }

.tsx-pill {
	position: relative; z-index: 1;
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 8px;
	font: 600 11.5px var(--font-mono); letter-spacing: .02em; text-transform: uppercase;
	color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
	transition: background .2s;
}
.tsx-pill:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
[data-theme="light"] .tsx-pill { color: color-mix(in srgb, var(--c) 70%, #000); }

/* Large card */
.tsx-card--large .tsx-card__title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
.tsx-card--large .tsx-card__body { padding: 22px 26px 26px; }
.tsx-card--large .tsx-card__excerpt { font-size: 16px; }

/* Row card */
.tsx-card--row { flex-direction: row; align-items: stretch; }
.tsx-card--row .tsx-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 118px; }
.tsx-card--row .tsx-card__body { padding: 14px 16px; gap: 8px; }
.tsx-card--row .tsx-card__title { font-size: 16px; }
.tsx-card--row .tsx-card__excerpt { display: none; }

.tsx-featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; }
.tsx-featured__main .tsx-card { height: 100%; }
.tsx-featured__side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) {
	.tsx-featured { grid-template-columns: 1fr; }
	.tsx-featured__side { grid-template-rows: none; }
}
@media (max-width: 480px) {
	.tsx-card--row .tsx-card__media { flex-basis: 34%; min-height: 96px; }
	.tsx-card--row .tsx-card__meta .tsx-read,
	.tsx-card--row .tsx-card__meta .tsx-dot { display: none; }
}

/* ---------- Topic hubs ---------- */
.tsx-hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tsx-hub {
	position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: .25s;
}
.tsx-hub::after {
	content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); opacity: .5; transition: .3s;
}
.tsx-hub:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-3px); }
.tsx-hub:hover::after { opacity: 1; transform: scale(1.2); }
.tsx-hub__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); margin-bottom: 6px; }
.tsx-hub__name { font: 600 18px var(--font-display); }
.tsx-hub__desc { font-size: 14px; color: var(--muted); line-height: 1.55; }
.tsx-hub__count { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--font-mono); color: var(--c); }

/* ---------- Archive header ---------- */
.tsx-archive-head { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0 clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line); --c: var(--cyan); }
.tsx-archive-head__bg {
	position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(55% 90% at 85% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), var(--bg-2);
}
.tsx-archive-head__bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(color-mix(in srgb, var(--c) 40%, transparent) 1px, transparent 1.5px); background-size: 22px 22px;
	mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); opacity: .5;
}
.tsx-archive-head, .tsx-hero, .tsx-article__head { isolation: isolate; }
.tsx-archive-head__row { display: flex; gap: 20px; align-items: flex-start; }
.tsx-archive-head__icon { flex: none; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.tsx-archive-head__title { margin: 0 0 8px; font: 700 clamp(30px, 4.2vw, 48px)/1.1 var(--font-display); letter-spacing: -.02em; }
.tsx-archive-head__desc { color: var(--muted); max-width: 720px; font-size: 17px; }
.tsx-archive-head__desc p { margin: 0; }
.tsx-archive-head__meta { margin-top: 18px; font: 500 13px var(--font-mono); color: var(--dim); }
.tsx-archive-head__meta b { color: var(--c); }
.tsx-archive-head--page { padding-bottom: 30px; }
@media (max-width: 600px) { .tsx-archive-head__icon { width: 54px; height: 54px; } .tsx-archive-head__row { gap: 14px; } }

.tsx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.tsx-crumbs a { color: var(--muted); }
.tsx-crumbs a:hover { color: var(--text); }

/* ---------- Single article ---------- */
.tsx-article__head { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 60px) 0 32px; }
.tsx-article__head-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 75%); }
.tsx-article__title { margin: 16px 0 14px; font: 700 clamp(30px, 4.6vw, 52px)/1.1 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.tsx-article__lead { margin: 0 0 18px; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); }
.tsx-article__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.tsx-byline { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text); }
.tsx-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #04121a; font: 700 11px var(--font-mono); }
.tsx-avatar--lg { width: 56px; height: 56px; font-size: 15px; flex: none; }
.tsx-article__figure { margin: 0 auto 8px; }
.tsx-article__figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }

.tsx-article__layout {
	display: grid; gap: 40px; padding-top: 28px; padding-bottom: 20px;
	grid-template-columns: 230px minmax(0, 1fr) 250px;
	grid-template-areas: "aside main toc";
	align-items: start;
}
.tsx-article__layout--notoc { grid-template-columns: 230px minmax(0, 1fr); grid-template-areas: "aside main"; }
.tsx-article__main { grid-area: main; max-width: 760px; min-width: 0; width: 100%; margin: 0 auto; }
.tsx-article__toc { grid-area: toc; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.admin-bar .tsx-article__toc { top: calc(var(--header-h) + 56px); }
.tsx-article__aside { grid-area: aside; min-width: 0; }
.tsx-article__aside > * + * { margin-top: 18px; }
.tsx-article__sticky-ad { position: sticky; top: calc(var(--header-h) + 24px); }
.tsx-article__sticky-ad:empty { display: none; }

.tsx-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px 12px; }
.tsx-toc__toggle { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 0 4px 12px; font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); border-bottom: 1px solid var(--line); margin-bottom: 8px; cursor: default; }
.tsx-toc__list { list-style: none; margin: 0; padding: 0 2px 0 0; max-height: calc(100vh - var(--header-h) - 140px); overflow-y: auto; scrollbar-width: thin; }
.tsx-toc__list a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--muted); transition: .2s; }
.tsx-toc__l3 a { padding-left: 24px; font-size: 13px; }
.tsx-toc__list a:hover { color: var(--text); }
.tsx-toc__list a.is-active { color: var(--c); border-left-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }

/* Sidebar widgets (WordPress block widgets) */
.tsx-sidebar .tsx-widget { padding: 16px; }
.tsx-sidebar .wp-block-heading,
.tsx-sidebar .widget-title,
.tsx-sidebar h2 { margin: 0 0 12px; font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.tsx-sidebar .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.tsx-sidebar .wp-block-search__label { display: none; }
.tsx-sidebar .wp-block-search__input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.tsx-sidebar .wp-block-search__button { border: 0; border-radius: 10px; padding: 9px 12px; background: var(--grad); color: #04121a; font-weight: 700; font-size: 13px; cursor: pointer; }
.tsx-sidebar ul { list-style: none; margin: 0; padding: 0; }
.tsx-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.tsx-sidebar li:last-child { border-bottom: 0; }
.tsx-sidebar a { color: var(--muted); }
.tsx-sidebar a:hover { color: var(--text); }

@media (max-width: 1280px) {
	.tsx-article__layout { grid-template-columns: minmax(0, 1fr) 250px; grid-template-areas: "main toc" "aside aside"; }
	.tsx-article__layout--notoc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "aside"; }
	.tsx-article__aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }
	.tsx-article__aside > * + * { margin-top: 0; }
	.tsx-article__sticky-ad { position: static; }
}
@media (max-width: 1080px) {
	.tsx-article__layout,
	.tsx-article__layout--notoc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "main" "aside"; gap: 0; }
	.tsx-article__toc { position: static; max-width: 760px; width: 100%; margin: 0 auto 22px; }
	.tsx-toc { padding: 14px 16px; }
	.tsx-toc__toggle { cursor: pointer; border: 0; padding: 0; margin: 0; color: var(--text); }
	.tsx-toc__list { display: none; padding-top: 12px; max-height: none; }
	.tsx-toc.is-open .tsx-toc__list { display: block; }
	.tsx-article__aside { max-width: 760px; width: 100%; margin: 26px auto 0; }
	.tsx-sidebar { display: none; }
}

/* Content typography */
.tsx-content { font-size: 18px; line-height: 1.8; color: color-mix(in srgb, var(--text) 90%, var(--muted)); overflow-wrap: break-word; }
.tsx-content > * { margin-top: 0; margin-bottom: 1.3em; }
.tsx-content h2, .tsx-content h3, .tsx-content h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -.015em; line-height: 1.25; }
.tsx-content h2 { font-size: clamp(25px, 2.8vw, 31px); margin-top: 2em; padding-top: .3em; position: relative; }
.tsx-content h2::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--c, var(--cyan)); margin-bottom: 16px; }
.tsx-content h3 { font-size: clamp(20px, 2.2vw, 23px); margin-top: 1.7em; }
.tsx-content h4 { font-size: 19px; margin-top: 1.5em; }
.tsx-content a { color: var(--c, var(--cyan)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tsx-content a:hover { text-decoration-thickness: 2px; }
.tsx-content strong { color: var(--text); }
.tsx-content ul, .tsx-content ol { padding-left: 1.3em; }
.tsx-content li { margin-bottom: .5em; }
.tsx-content li::marker { color: var(--c, var(--cyan)); }
.tsx-content blockquote {
	margin-left: 0; margin-right: 0; padding: 18px 22px; border-left: 3px solid var(--c, var(--cyan));
	background: color-mix(in srgb, var(--c, var(--cyan)) 7%, var(--surface)); border-radius: 0 12px 12px 0; font-size: 1.05em; color: var(--text);
}
.tsx-content blockquote p:last-child { margin-bottom: 0; }
.tsx-content img { border-radius: 12px; }
.tsx-content figure { margin-left: 0; margin-right: 0; }
.tsx-content figcaption { font-size: 14px; color: var(--dim); text-align: center; margin-top: 8px; }
.tsx-content code { font-family: var(--font-mono); font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.tsx-content pre { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; padding: 18px 20px; border-radius: 12px; background: #050810; color: #e2e8f0; border: 1px solid var(--line-2); overflow: auto; }
.tsx-content pre code { background: none; border: 0; padding: 0; }
.tsx-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.tsx-content th, .tsx-content td { padding: 11px 14px; border: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.tsx-content th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.tsx-content tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.tsx-content hr { border: 0; height: 1px; background: var(--line-2); margin: 2.4em 0; }
.tsx-content .wp-block-table { overflow-x: auto; }
.tsx-content .alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.tsx-content .alignleft { float: left; margin: 0 1.4em 1em 0; }
.tsx-content .alignright { float: right; margin: 0 0 1em 1.4em; }
.tsx-content .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.tsx-content .key-takeaways,
.tsx-content .wp-block-group.is-style-takeaways {
	padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--c, var(--cyan)) 30%, transparent); border-radius: 14px;
	background: color-mix(in srgb, var(--c, var(--cyan)) 6%, var(--surface));
}
@media (max-width: 640px) { .tsx-content { font-size: 17px; } .tsx-content .alignwide { margin-left: 0; margin-right: 0; } }

.tsx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 20px; }
.tsx-tags a { padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); font: 500 13px var(--font-mono); color: var(--muted); transition: .2s; }
.tsx-tags a:hover { color: var(--text); border-color: var(--c, var(--cyan)); }

.tsx-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tsx-share__label { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-right: 6px; }
.tsx-share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--muted); transition: .2s; }
.tsx-share__btn:hover { color: var(--text); border-color: var(--c, var(--cyan)); }
.tsx-copy.is-copied { color: var(--green); border-color: var(--green); }

.tsx-authorbox { display: flex; gap: 18px; padding: 24px; margin: 28px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tsx-authorbox strong { font-family: var(--font-display); font-size: 17px; }
.tsx-authorbox p { margin: 6px 0 8px; color: var(--muted); font-size: 15px; }
.tsx-authorbox a { color: var(--c, var(--cyan)); font-weight: 600; font-size: 14px; }

.tsx-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.tsx-prevnext__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: .2s; }
.tsx-prevnext__item:hover { border-color: var(--c, var(--cyan)); }
.tsx-prevnext__item span { font: 500 12px var(--font-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.tsx-prevnext__item b { font: 600 15.5px/1.4 var(--font-display); }
.tsx-prevnext__item--next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .tsx-prevnext { grid-template-columns: 1fr; } .tsx-prevnext__item--next { grid-column: auto; } }

.tsx-related { padding-bottom: clamp(48px, 6vw, 80px); }

/* Widgets */
.tsx-widget { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 14.5px; }
.tsx-widget + .tsx-widget { margin-top: 16px; }
.tsx-widget__title { margin: 0 0 12px; font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.tsx-widget ul { list-style: none; margin: 0; padding: 0; }
.tsx-widget li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.tsx-widget li:last-child { border-bottom: 0; }
.tsx-widget a:hover { color: var(--cyan); }

/* Comments */
.tsx-comments { margin-top: 36px; }
.tsx-comments__title, .comment-reply-title { font: 700 22px var(--font-display); }
.tsx-comments__list { list-style: none; padding: 0; }
.tsx-comments__list .children { list-style: none; padding-left: 24px; }
.tsx-comments__list .comment-body { padding: 18px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tsx-comments__list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.tsx-comments__list .comment-metadata { font-size: 12.5px; color: var(--dim); }
.comment-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 11px; font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--cyan); }
.tsx-btn, .comment-form .submit { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 11px; padding: 12px 22px; background: var(--grad); color: #04121a; font-weight: 700; cursor: pointer; }

/* Pagination */
.tsx-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.tsx-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; }
.tsx-pagination .page-numbers:hover { color: var(--text); border-color: var(--cyan); }
.tsx-pagination .current { background: var(--grad); color: #04121a; border-color: transparent; }
.tsx-pagination .dots { border: 0; }

.tsx-empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.tsx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* 404 */
.tsx-404 { max-width: 760px; text-align: center; padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(50px, 7vw, 100px); }
.tsx-terminal { text-align: left; background: #050810; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: #cbd5e1; }
.tsx-terminal pre { margin: 0; padding: 20px 22px; font: 500 14px/1.8 var(--font-mono); white-space: pre-wrap; }
.tsx-c-dim { color: #64748b; } .tsx-c-red { color: #f43f5e; } .tsx-c-green { color: #34d399; }
.tsx-caret { animation: tsx-blink 1s steps(1) infinite; color: var(--cyan); }
@keyframes tsx-blink { 50% { opacity: 0; } }
.tsx-404__title { font: 700 clamp(28px, 4vw, 42px)/1.15 var(--font-display); margin: 36px 0 10px; }
.tsx-404 > p { color: var(--muted); }
.tsx-404 .tsx-hero__search { margin: 24px auto 0; }

/* ---------- Footer ---------- */
.tsx-footer { position: relative; overflow: hidden; margin-top: 20px; border-top: 1px solid var(--line); background: var(--bg-2); isolation: isolate; }
.tsx-footer__grid-bg { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(34, 211, 238, .18) 1px, transparent 1.5px); background-size: 26px 26px; mask-image: linear-gradient(180deg, transparent, #000 80%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 80%); opacity: .35; }
.tsx-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.tsx-footer__about p { color: var(--muted); font-size: 14.5px; margin: 16px 0; max-width: 360px; }
.tsx-footer h4 { margin: 4px 0 16px; font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.tsx-footer ul { list-style: none; margin: 0; padding: 0; }
.tsx-footer li { margin-bottom: 10px; font-size: 14.5px; }
.tsx-footer li a { color: var(--muted); display: inline-flex; align-items: center; gap: 9px; transition: color .2s; }
.tsx-footer li a:hover { color: var(--text); }
.tsx-footer__latest a { display: block !important; line-height: 1.45; }
.tsx-sq { width: 8px; height: 8px; border-radius: 2px; background: var(--c); display: inline-block; }
.tsx-social { display: flex; flex-wrap: wrap; gap: 8px; }
.tsx-social a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 13px; color: var(--muted); }
.tsx-social a:hover { color: var(--text); border-color: var(--cyan); }
.tsx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.tsx-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; }
.tsx-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
@media (max-width: 900px) { .tsx-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tsx-footer__inner { grid-template-columns: 1fr; gap: 28px; } }

.tsx-totop {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 44px; height: 44px; border-radius: 13px;
	background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: 18px;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; box-shadow: var(--shadow);
}
.tsx-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
body.tsx-has-anchor .tsx-totop { bottom: 110px; }

/* Ad containers (TechStormX Ads plugin) */
.tsx-adslot { margin: 28px auto; text-align: center; max-width: var(--wrap); padding: 0 22px; }
.tsx-content .tsx-adslot { padding: 0; margin: 2em 0; }
.tsx-adslot__label { display: block; font: 500 10.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.tsx-ticker__move { animation: none; }
}

/* ---------- Tech Companies directory ---------- */
.tsx-kicker--sm { padding: 4px 11px; font-size: 11px; margin-bottom: 10px; color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.tsx-dir-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.tsx-dir-stats div { display: flex; flex-direction: column; padding: 12px 18px; min-width: 130px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); border-radius: 14px; }
.tsx-dir-stats b { font: 700 24px var(--font-display); color: var(--c); }
.tsx-dir-stats span { font-size: 12.5px; color: var(--dim); }
.tsx-dir__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; padding: 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; }
.tsx-dir__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tsx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 500; transition: .2s; }
.tsx-chip i { font: 500 11px var(--font-mono); font-style: normal; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--dim); }
.tsx-chip:hover { color: var(--text); }
.tsx-chip.is-active { color: #1a0d03; background: var(--c); border-color: transparent; }
.tsx-chip.is-active i { background: rgba(0, 0, 0, .15); color: #1a0d03; }
.tsx-dir__tools { display: flex; gap: 8px; }
.tsx-dir__search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--dim); }
.tsx-dir__search input { background: transparent; border: 0; outline: 0; color: var(--text); font: 500 14px var(--font); padding: 9px 0; width: 190px; }
#tsx-dir-sort { border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--text); padding: 0 12px; font: 500 14px var(--font); }
@media (max-width: 720px) { .tsx-dir__bar { position: static; } .tsx-dir__tools { width: 100%; } .tsx-dir__search { flex: 1; } .tsx-dir__search input { width: 100%; } }

.tsx-dir__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tsx-co { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, border-color .25s, box-shadow .25s; }
.tsx-co[hidden] { display: none; }
.tsx-co:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c, #f97316) 45%, transparent); box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--c, #f97316) 50%, transparent); }
.tsx-co__top { display: flex; align-items: center; gap: 14px; }
.tsx-co__logo { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; font: 700 18px var(--font-display); letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 75% 52%), hsl(calc(var(--h) + 50) 70% 38%)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -8px hsl(var(--h) 70% 40%); }
.tsx-co__id { min-width: 0; }
.tsx-co__name { margin: 0; font: 700 19px/1.2 var(--font-display); }
.tsx-co__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tsx-co__sector { display: inline-block; margin-top: 4px; font: 500 11.5px var(--font-mono); color: var(--c, #f97316); }
.tsx-co__sub { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); opacity: .85; line-height: 1.45; }
.tsx-co__excerpt { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.tsx-co__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.tsx-co__go { display: inline-flex; align-items: center; gap: 6px; color: var(--c, #f97316); font-weight: 600; }
