/* ==========================================================================
   TechFixy: dark neon cyberpunk / glassmorphic theme
   Tokens
   ========================================================================== */
:root {
	--bg: #0B0E14;
	--bg-2: #0E1220;
	--glass: rgba(16, 21, 33, .72);
	--glass-solid: #101521;
	--line: rgba(255, 255, 255, .08);
	--bg-rgb: 11, 14, 20;
	--heading: #fff;
	--link: #06B6D4;
	--link-hover: #67E8F9;
	--content-link: #67E8F9;
	--tint: rgba(255, 255, 255, .04);
	--tint-2: rgba(255, 255, 255, .06);
	--header-bg: rgba(11, 14, 20, .78);
	--header-solid: rgba(11, 14, 20, .97);
	--footer-bg: rgba(8, 10, 16, .84);
	--panel: rgba(14, 18, 30, .96);
	--media: #0a0d15;
	--kbd-bg: #131a29;
	--code-fg: #F0ABFC;
	--tile-base: var(--tile-base);
	--card-shadow: none;
	--purple: #7C3AED;
	--purple-2: #A78BFA;
	--cyan: #06B6D4;
	--text: #E8ECF4;
	--text-2: #D3D9E6;
	--muted: #98A2B8;
	--radius: 16px;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 72px;
	--tf-overlay: .82;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--heading); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
::selection { background: var(--purple); color: #fff; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; padding: 12px 18px; background: var(--purple); color: #fff;
	left: 12px; top: 12px; z-index: 100000; border-radius: 8px;
}
.tf-hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }

.tf-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.tf-main { display: block; min-height: 50vh; }

/* ==========================================================================
   Animated background: aurora, 3D grid floor, optional looping video, glass
   ========================================================================== */
.tf-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; contain: strict; }
.tf-bg__aurora {
	position: absolute; inset: -20%;
	background:
		radial-gradient(40% 35% at 18% 22%, rgba(124, 58, 237, .34), transparent 70%),
		radial-gradient(34% 30% at 82% 18%, rgba(6, 182, 212, .2), transparent 70%),
		radial-gradient(46% 40% at 62% 92%, rgba(124, 58, 237, .24), transparent 70%);
	animation: tf-drift 30s ease-in-out infinite alternate;
	will-change: transform;
}
.tf-bg__grid {
	position: absolute; left: -60%; right: -60%; bottom: 0; height: 46%; overflow: hidden; opacity: .5;
	transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
	-webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
.tf-bg__grid::before {
	content: ""; position: absolute; left: 0; right: 0; top: -60px; bottom: 0;
	background-image: linear-gradient(rgba(124, 58, 237, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 182, 212, .4) 1px, transparent 1px);
	background-size: 60px 60px;
	animation: tf-grid 5s linear infinite; will-change: transform;
}
.tf-bg__video, .tf-bg__poster {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity 1.4s ease; transform: translateZ(0); backface-visibility: hidden;
}
.tf-bg__poster { background-size: cover; background-position: center; opacity: .55; }
.tf-bg__video.is-playing { opacity: .95; }
.tf-bg.is-video .tf-bg__aurora, .tf-bg.is-video .tf-bg__grid, .tf-bg.is-video .tf-bg__poster { animation-play-state: paused; opacity: 0; transition: opacity 1.4s ease; }
.tf-bg__glass {
	position: absolute; inset: 0;
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(124, 58, 237, .10), transparent 60%),
		linear-gradient(180deg, rgba(var(--bg-rgb), calc(var(--tf-overlay) - .1)) 0%, rgba(var(--bg-rgb), var(--tf-overlay)) 45%, rgba(var(--bg-rgb), calc(var(--tf-overlay) + .12)) 100%);
}
body.tf-lite .tf-bg__video, body.tf-lite .tf-bg__poster, body.tf-lite .tf-bg__grid { display: none; }
body.tf-lite .tf-bg__aurora { animation: none; }
body.tf-lite .tf-card, body.tf-lite .tf-box, body.tf-lite .tf-tile, body.tf-lite .tf-header, body.tf-lite .tf-footer { -webkit-backdrop-filter: none; backdrop-filter: none; }

@keyframes tf-drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes tf-grid { to { transform: translateY(60px); } }

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.tf-header {
	position: sticky; top: 0; z-index: 60;
	background: var(--header-bg); border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.admin-bar .tf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tf-header { top: 46px; } }
.tf-header__in { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.tf-logo { display: inline-flex; align-items: center; flex: none; }
.tf-logo__img { height: 44px; width: auto; max-width: 300px; }
.tf-logo--footer .tf-logo__img { height: 46px; }
.tf-nav { flex: 1; min-width: 0; }
.tf-menu, .tf-menu ul { list-style: none; margin: 0; padding: 0; }
.tf-menu { display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; }
.tf-menu > li { position: relative; }
.tf-menu a {
	display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px;
	color: var(--text); font-size: .94rem; font-weight: 500; position: relative;
}
.tf-menu a:hover { color: var(--heading); background: var(--tint-2); }
.tf-menu .current-menu-item > a, .tf-menu .current-menu-ancestor > a, .tf-menu .current-cat > a { color: var(--purple-2); }
.tf-menu > .current-menu-item > a::after, .tf-menu > .current-menu-ancestor > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.tf-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px; z-index: 5;
	background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(124, 58, 237, .18);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.tf-menu li:hover > .sub-menu, .tf-menu li:focus-within > .sub-menu, .tf-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tf-menu .sub-menu a { display: flex; width: 100%; }

.tf-actions { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.tf-iconbtn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
	background: transparent; border: 1px solid transparent; color: var(--text);
}
.tf-iconbtn:hover { background: var(--tint-2); border-color: var(--line); }
#tf-fx[aria-pressed="true"] { color: var(--cyan); }
.tf-burger { display: none; }

.tf-search { border-top: 1px solid var(--line); background: var(--header-solid); padding: 14px 0; }
.tf-search[hidden] { display: none; }

.tf-searchform { display: flex; gap: 8px; width: 100%; }
.tf-searchform input[type="search"] {
	flex: 1; min-width: 0; padding: 12px 16px; border-radius: 10px; background: var(--tint);
	border: 1px solid var(--line); color: var(--text);
}
.tf-searchform input[type="search"]::placeholder { color: var(--muted); }
.tf-searchform input[type="search"]:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, .25); }

@media (max-width: 1100px) {
	.tf-burger { display: inline-grid; }
	.tf-header__in { gap: 12px; }
	.tf-nav {
		position: absolute; top: 100%; left: 0; right: 0; display: none; flex: none;
		background: var(--header-solid); border-bottom: 1px solid var(--line); padding: 10px 24px 18px; max-height: calc(100vh - var(--header-h)); overflow: auto;
	}
	.tf-nav.is-open { display: block; }
	.tf-menu { display: block; }
	.tf-menu a { width: 100%; padding: 12px 8px; }
	.tf-menu > .current-menu-item > a::after { display: none; }
	.tf-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; }
	.tf-menu li.is-open > .sub-menu { display: block; }
	.tf-logo__img { height: 38px; }
}

/* ==========================================================================
   Buttons, chips, meta
   ========================================================================== */
.tf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 10px;
	font-weight: 600; font-size: .95rem; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: box-shadow .2s, background .2s, filter .2s;
}
.tf-btn--solid { background: linear-gradient(135deg, #7C3AED, #6D28D9); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 58, 237, .7); }
.tf-btn--solid:hover { color: #fff; filter: brightness(1.12); box-shadow: 0 10px 30px -6px rgba(124, 58, 237, .9); }
.tf-btn--ghost { color: var(--heading); border-color: var(--purple); background: rgba(124, 58, 237, .08); }
.tf-btn--ghost:hover { color: var(--heading); background: rgba(124, 58, 237, .2); box-shadow: 0 0 24px -4px rgba(124, 58, 237, .8); }

.tf-chip {
	display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: #fff; background: rgba(11, 14, 20, .72); border: 1px solid var(--c, var(--purple));
	box-shadow: 0 0 14px -4px var(--c, var(--purple)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tf-chip:hover { color: #fff; background: var(--c, var(--purple)); }

.tf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: .82rem; }
.tf-meta a { color: var(--text-2); font-weight: 600; }
.tf-meta__author { display: inline-flex; align-items: center; gap: 8px; }
.tf-meta__read { display: inline-flex; align-items: center; gap: 5px; }
.tf-avatar { border-radius: 50%; width: 28px; height: 28px; object-fit: cover; border: 1px solid var(--line); }
.tf-avatar--big { width: 96px; height: 96px; }

/* ==========================================================================
   Featured slider
   ========================================================================== */
.tf-hero { padding: 44px 0 22px; }
.tf-hero__stage { position: relative; }
.tf-hero__slides { display: grid; }
.tf-slide {
	grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; align-items: center;
	opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.tf-slide.is-active { opacity: 1; visibility: visible; }
.tf-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--link); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tf-kicker__box { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--purple), #4F46E5); color: #fff; }
.tf-slide__title { font-family: var(--serif); font-size: clamp(2rem, 4.1vw, 3.4rem); line-height: 1.07; letter-spacing: -.01em; font-weight: 700; margin-bottom: 16px; }
.tf-slide__title a { color: var(--heading); }
.tf-hl { color: var(--purple-2); }
.tf-slide__title a:hover { background: linear-gradient(90deg, #C4B5FD, #67E8F9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tf-slide__excerpt { color: var(--text-2); font-size: 1.05rem; max-width: 46ch; margin-bottom: 20px; }
.tf-slide__text .tf-meta { margin-bottom: 26px; }
.tf-slide__img {
	display: block; position: relative; border-radius: 22px; overflow: hidden; background: #05070c;
	box-shadow: 0 30px 90px -20px rgba(124, 58, 237, .55), 0 0 0 1px rgba(124, 58, 237, .35);
	transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease;
}
.tf-slide__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.tf-hero__ctrl { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.tf-hero__ctrl[hidden] { display: none; }
.tf-hero__dashes { display: flex; gap: 8px; margin-right: auto; }
.tf-dash { width: 34px; height: 3px; border-radius: 3px; background: rgba(140, 150, 175, .32); transition: background .3s, width .3s; }
.tf-dash.is-active { width: 52px; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.tf-hero__count { color: var(--purple-2); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.tf-arrow {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(124, 58, 237, .12);
	border: 1px solid rgba(124, 58, 237, .6); color: var(--heading);
}
.tf-arrow:hover { background: rgba(124, 58, 237, .35); box-shadow: 0 0 20px -4px rgba(124, 58, 237, .9); }
.tf-scrollhint {
	position: absolute; right: -2px; top: 40%; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted);
	font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl;
}
.tf-scrollhint svg { transform: rotate(90deg); }
@media (max-width: 1360px) { .tf-scrollhint { display: none; } }
@media (max-width: 899px) {
	.tf-hero { padding-top: 28px; }
	.tf-slide { grid-template-columns: 1fr; gap: 24px; }
	.tf-slide__img { order: -1; }
}

/* ==========================================================================
   Category tiles
   ========================================================================== */
.tf-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding-block: 10px 6px; }
.tf-tile {
	display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 92px; border-radius: 14px; color: var(--text);
	border: 1px solid var(--c); background: linear-gradient(145deg, var(--tint-2), var(--tile-base));
	border: 1px solid color-mix(in srgb, var(--c) 65%, transparent);
	background: linear-gradient(145deg, color-mix(in srgb, var(--c) 16%, transparent), var(--tile-base));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 14%, transparent), 0 0 26px -10px var(--c);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .22s ease, box-shadow .22s ease;
}
.tf-tile:hover { color: var(--heading); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 0 34px -6px var(--c); }
.tf-tile img { width: 52px; height: 52px; flex: none; border-radius: 12px; }
.tf-tile__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tf-tile__text strong { font-size: .98rem; }
.tf-tile__text small { color: var(--muted); font-size: .76rem; }
@media (max-width: 1100px) { .tf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tf-tile { flex-direction: column; text-align: center; padding: 14px 10px; } }

/* ==========================================================================
   Layout, section heads, grids
   ========================================================================== */
.tf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-block: 34px 10px; align-items: start; }
@media (max-width: 1040px) { .tf-layout { grid-template-columns: minmax(0, 1fr); } }

.tf-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tf-sechead h2 { font-family: var(--sans); font-size: .98rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.tf-link { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--link); }
.tf-subhead { font-family: var(--sans); font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 16px; }

.tf-filters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.tf-filters a { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); background: var(--tint); }
.tf-filters a:hover { color: var(--heading); border-color: var(--c); box-shadow: 0 0 16px -4px var(--c); }

.tf-grid { display: grid; gap: 18px; }
.tf-grid--home { grid-template-columns: 1.3fr 1fr 1fr; }
.tf-grid--home .tf-card--big { grid-row: span 2; }
.tf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-grid__full { grid-column: 1 / -1; }
@media (max-width: 1200px) and (min-width: 1041px), (max-width: 760px) {
	.tf-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tf-grid--home .tf-card--big { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 900px) { .tf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tf-grid--home, .tf-grid--2, .tf-grid--3 { grid-template-columns: minmax(0, 1fr); } }

.tf-strip { padding-block: 30px 6px; }
.tf-strip .tf-sechead { border-left: 3px solid var(--c); padding-left: 12px; }

/* ==========================================================================
   Cards
   ========================================================================== */
.tf-card {
	position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--glass);
	border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .22s ease, border-color .22s, box-shadow .22s;
}
.tf-card:hover { border-color: rgba(124, 58, 237, .65); box-shadow: 0 18px 50px -18px rgba(124, 58, 237, .6), 0 0 0 1px rgba(124, 58, 237, .25); }
.tf-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--media); }
.tf-card--big .tf-card__media { aspect-ratio: 16 / 10; }
.tf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tf-card:hover .tf-card__media img { transform: scale(1.04); }
.tf-card__chip { position: absolute; top: 12px; left: 12px; z-index: 2; }
.tf-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.tf-card__title { font-family: var(--serif); font-size: 1.04rem; line-height: 1.3; margin: 0; font-weight: 700; }
.tf-card--big .tf-card__title { font-size: 1.5rem; }
.tf-card__title a { color: var(--heading); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tf-card__title a:hover { color: var(--purple-2); }
.tf-card__excerpt { color: var(--text-2); font-size: .94rem; margin: 0; }
.tf-card .tf-meta { margin-top: auto; font-size: .76rem; }
.tf-card .tf-avatar { width: 22px; height: 22px; }
.tf-card .tf-meta__read { display: none; }
.tf-card--big .tf-meta__read { display: inline-flex; }

.tf-thumb-fallback { display: block; width: 100%; height: 100%; min-height: 56px; background:
	radial-gradient(60% 80% at 20% 20%, rgba(124, 58, 237, .6), transparent 70%),
	radial-gradient(60% 80% at 90% 90%, rgba(6, 182, 212, .45), transparent 70%), #0b0f19; }

.tf-rows { display: grid; gap: 16px; }
.tf-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 14px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tf-row:hover { border-color: rgba(124, 58, 237, .55); }
.tf-row__media { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--media); }
.tf-row__media img { width: 100%; height: 100%; object-fit: cover; }
.tf-row__title { font-family: var(--serif); font-size: 1.25rem; margin: 10px 0 6px; }
.tf-row__title a { color: var(--heading); }
.tf-row__title a:hover { color: var(--purple-2); }
.tf-row p { color: var(--text-2); font-size: .95rem; margin-bottom: 8px; }
@media (max-width: 640px) { .tf-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sidebar boxes, popular list, newsletter
   ========================================================================== */
.tf-layout__side { position: relative; }
.tf-box {
	padding: 20px; margin-bottom: 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tf-box__title { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .94rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.tf-box__title svg { color: var(--purple-2); }
.tf-popular { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tf-popular__item { display: flex; gap: 12px; align-items: center; color: var(--text); }
.tf-popular__thumb { flex: none; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: var(--media); border: 1px solid var(--line); }
.tf-popular__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tf-popular__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tf-popular__title { font-size: .9rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tf-popular__item:hover .tf-popular__title { color: var(--purple-2); }
.tf-popular__date { color: var(--muted); font-size: .76rem; }

.tf-news__text { color: var(--muted); font-size: .9rem; }
.tf-news__form { display: grid; gap: 10px; }
.tf-news input[type="email"], .tf-form input, .tf-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); color: var(--text);
}
.tf-news input:focus, .tf-form input:focus, .tf-form textarea:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, .25); }
.tf-news .tf-btn { width: 100%; }
.tf-notice { padding: 10px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 12px; }
.tf-notice--ok { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .5); color: #bbf7d0; }
.tf-notice--bad { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .5); color: #fecaca; }

.tf-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tf-widget a { color: var(--text-2); }
.tf-widget a:hover { color: var(--purple-2); }

/* ==========================================================================
   Quote banner
   ========================================================================== */
.tf-quote {
	position: relative; margin: 26px 0 0; min-height: 190px; display: flex; align-items: center; border-radius: var(--radius); overflow: hidden;
	background: #080a12; border: 1px solid rgba(124, 58, 237, .4); box-shadow: 0 0 40px -16px rgba(124, 58, 237, .8);
}
.tf-quote__bg {
	position: absolute; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; object-position: left center;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%);
}
.tf-quote blockquote { position: relative; margin: 0; padding: 28px 30px 28px 86px; max-width: 62%; }
.tf-quote blockquote::before {
	content: "\201C"; position: absolute; left: 26px; top: 8px; font-family: var(--serif); font-size: 5.2rem; line-height: 1; color: var(--purple-2);
	text-shadow: 0 0 22px rgba(124, 58, 237, .9);
}
.tf-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.3; margin: 0 0 10px; color: #fff; }
.tf-quote footer { color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) { .tf-quote blockquote { max-width: 100%; padding: 26px 22px 26px 66px; } .tf-quote__bg { width: 100%; opacity: .35; } }

/* ==========================================================================
   Ads (clearly labelled, space reserved, never overlay content)
   ========================================================================== */
.tf-ad { margin: 22px auto; text-align: center; min-height: 100px; clear: both; overflow: hidden; max-width: 100%; }
.tf-ad__label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.tf-ad__body { display: flex; justify-content: center; max-width: 100%; }
.tf-ad--header { max-width: 1280px; padding-inline: 24px; }
.tf-ad--side { margin-top: 0; }

/* ==========================================================================
   Page heads, breadcrumbs, pagination
   ========================================================================== */
.tf-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .84rem; color: var(--muted); }
.tf-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.tf-crumbs a { color: var(--text-2); }
.tf-crumbs a:hover { color: var(--cyan); }

.tf-pagehead { padding: 30px 0 4px; }
.tf-pagehead h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.tf-pagehead[style*="--c"] h1 { border-left: 4px solid var(--c); padding-left: 14px; }
.tf-pagehead__desc { color: var(--text-2); max-width: 70ch; }
.tf-pagehead__search { max-width: 560px; margin-top: 14px; }
.tf-pagehead--author { display: flex; align-items: center; gap: 22px; }
.tf-empty { color: var(--muted); padding: 30px 0; }

.pagination, .navigation.pagination { margin: 34px 0 10px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px; color: var(--text);
	background: var(--glass); border: 1px solid var(--line); font-weight: 600; font-size: .92rem;
}
a.page-numbers:hover { border-color: var(--purple); color: var(--heading); }
.page-numbers.current { background: linear-gradient(135deg, var(--purple), #6D28D9); border-color: transparent; color: #fff; }

/* ==========================================================================
   Single article and static pages
   ========================================================================== */
.tf-layout--single { padding-top: 26px; }
.tf-article { min-width: 0; }
.tf-article__head { margin-bottom: 22px; }
.tf-article__head .tf-chip { margin-bottom: 14px; }
.tf-article__title { font-family: var(--serif); font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 16px; }
.tf-article__hero { margin: 0 0 24px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(124, 58, 237, .35); box-shadow: 0 30px 80px -30px rgba(124, 58, 237, .5); }
.tf-article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tf-article__hero figcaption { padding: 10px 16px; font-size: .84rem; color: var(--muted); background: var(--panel); }
.tf-page .tf-article { max-width: 860px; margin-inline: auto; padding-block: 30px 10px; }

.tf-content { font-size: 1.07rem; line-height: 1.85; color: var(--text-2); overflow-wrap: break-word; }
.tf-content > * { max-width: 100%; }
.tf-content h2, .tf-content h3, .tf-content h4 { font-family: var(--serif); margin: 1.9em 0 .6em; }
.tf-content h2 { font-size: 1.7rem; padding-left: 14px; border-left: 3px solid var(--purple); }
.tf-content h3 { font-size: 1.35rem; }
.tf-content a { color: var(--content-link); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.tf-content a:hover { text-decoration-color: currentColor; }
.tf-content strong { color: var(--heading); }
.tf-content ul, .tf-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.tf-content li { margin-bottom: .4em; }
.tf-content img { border-radius: 12px; }
.tf-content figure { margin: 1.6em 0; }
.tf-content figcaption, .wp-caption-text { color: var(--muted); font-size: .86rem; text-align: center; margin-top: 8px; }
.tf-content blockquote { margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid var(--purple); background: rgba(124, 58, 237, .08); border-radius: 0 12px 12px 0; font-family: var(--serif); font-style: italic; color: var(--heading); }
.tf-content blockquote p:last-child { margin-bottom: 0; }
.tf-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--tint-2); color: var(--code-fg); }
.tf-content pre { overflow: auto; padding: 16px 18px; border-radius: 12px; background: #070a11; color: #C7D2FE; border: 1px solid var(--line); line-height: 1.6; }
.tf-content pre code { padding: 0; background: none; color: #C7D2FE; }
.tf-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 1.6em 0; }
.tf-content th, .tf-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.tf-content th { background: rgba(124, 58, 237, .16); color: var(--heading); }
.tf-content hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent); margin: 2.2em 0; }
.tf-content kbd { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--kbd-bg); font-size: .85em; color: var(--heading); }
.tf-content .wp-block-button__link { background: linear-gradient(135deg, #7C3AED, #6D28D9); color: #fff; border-radius: 10px; text-decoration: none; }
.tf-pages { margin-top: 20px; display: flex; gap: 8px; }

.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sticky .tf-card__title::after { content: ""; }
.bypostauthor > .comment-body .fn { color: var(--purple-2); }

.tf-toc { margin: 0 0 1.8em; padding: 18px 22px; border-radius: 14px; background: var(--glass); border: 1px solid rgba(124, 58, 237, .4); }
.tf-toc__title { margin: 0 0 10px; font-weight: 700; color: var(--heading); letter-spacing: .05em; text-transform: uppercase; font-size: .82rem; }
.tf-toc ol { margin: 0; padding-left: 1.3em; font-size: .96rem; line-height: 1.5; }
.tf-toc li { margin-bottom: .35em; }
.tf-toc__l3 { margin-left: 1em; list-style-type: circle; }
.tf-toc a { color: var(--text-2); text-decoration: none; }
.tf-toc a:hover { color: var(--cyan); }

.tf-article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 30px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.tf-tags a, .tagcloud a, .tf-footer .wp-tag-cloud a {
	display: inline-block; margin: 0 6px 8px 0; padding: 5px 12px; border-radius: 8px; font-size: .82rem !important; color: var(--text-2);
	background: var(--tint-2); border: 1px solid var(--line);
}
.tf-tags a:hover, .tagcloud a:hover, .tf-footer .wp-tag-cloud a:hover { color: var(--heading); border-color: var(--purple); background: rgba(124, 58, 237, .2); }
.tf-share { display: flex; align-items: center; gap: 8px; }
.tf-share__label { color: var(--muted); font-size: .84rem; margin-right: 4px; }
.tf-share__btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tint-2); border: 1px solid var(--line); color: var(--text-2); }
.tf-share__btn:hover { color: var(--heading); border-color: var(--cyan); box-shadow: 0 0 18px -4px var(--cyan); }
.tf-share__btn.is-done { color: #86efac; border-color: #22c55e; }

.tf-authorbox { display: flex; gap: 18px; align-items: flex-start; padding: 20px; margin-bottom: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.tf-authorbox img { border-radius: 50%; flex: none; border: 2px solid rgba(124, 58, 237, .6); }
.tf-authorbox__name { margin: 0 0 4px; font-weight: 700; }
.tf-authorbox__name a { color: var(--heading); }
.tf-authorbox p:last-child { margin: 0; color: var(--text-2); font-size: .94rem; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.post-navigation a { display: block; padding: 14px 18px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); color: var(--heading); height: 100%; }
.post-navigation a:hover { border-color: var(--purple); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-previous { grid-column: 1; }
.tf-nav__label { display: block; color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.tf-nav__title { font-family: var(--serif); font-weight: 700; line-height: 1.3; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: 1; text-align: left; } }

.tf-related { margin-bottom: 30px; }

/* ==========================================================================
   Comments and forms
   ========================================================================== */
.tf-comments { margin-top: 10px; }
.tf-comment-list, .tf-comment-list ol { list-style: none; margin: 0 0 24px; padding: 0; }
.tf-comment-list .children { margin-left: 28px; padding-left: 0; }
.tf-comment-list .comment-body { padding: 16px 18px; margin-bottom: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-bottom: 8px; font-size: .84rem; }
.comment-author { display: inline-flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--heading); font-style: normal; }
.comment-metadata a { color: var(--muted); }
.comment-content p:last-child { margin: 0; }
.reply a { font-size: .84rem; font-weight: 600; }
.comment-form label { display: block; font-size: .88rem; margin-bottom: 4px; color: var(--text-2); }
.comment-form p { margin-bottom: 14px; }
.comment-reply-title { font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent input { width: auto; margin-top: 5px; }
.comment-form-cookies-consent label { margin: 0; }

.tf-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 800px) { .tf-contact { grid-template-columns: 1fr; } }
.tf-form label { display: block; margin-bottom: 6px; font-size: .88rem; color: var(--text-2); }
.tf-form p { margin-bottom: 14px; }

/* ==========================================================================
   404
   ========================================================================== */
.tf-404 { text-align: center; padding-block: 70px 60px; }
.tf-404__code {
	font-family: var(--sans); font-weight: 800; font-size: clamp(5rem, 20vw, 11rem); line-height: 1; margin: 0 0 10px; letter-spacing: -.02em;
	background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 0 28px rgba(124, 58, 237, .55));
}
.tf-404 h1 { font-family: var(--serif); font-size: 2rem; }
.tf-404 p { color: var(--muted); }
.tf-404__search { max-width: 520px; margin: 24px auto; }

/* ==========================================================================
   Footer, social, back to top
   ========================================================================== */
.tf-footer { margin-top: 56px; background: var(--footer-bg); border-top: 1px solid rgba(124, 58, 237, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tf-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr 1.2fr; gap: 34px; padding-block: 44px 30px; }
.tf-footer__brand p { color: var(--muted); font-size: .9rem; margin: 16px 0; max-width: 34ch; }
.tf-footer__col h2 { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; color: var(--heading); }
.tf-footer__col p { color: var(--text-2); font-size: .92rem; margin-bottom: 10px; }
.tf-footer__col .tf-footer__follow { margin-top: 16px; }
.tf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tf-list a { color: var(--text-2); font-size: .92rem; }
.tf-list a:hover { color: var(--cyan); }
.tf-list .cat-item { display: block; }
.tf-footer__bottom { border-top: 1px solid var(--line); padding-block: 18px; text-align: center; color: var(--muted); font-size: .86rem; }
.tf-footer__bottom p { margin: 0; }
@media (max-width: 1100px) { .tf-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tf-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tf-footer__grid { grid-template-columns: 1fr; } }

.tf-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tf-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text); border: 1px solid rgba(124, 58, 237, .55); background: rgba(124, 58, 237, .1); }
.tf-social a:hover { color: #fff; background: linear-gradient(135deg, var(--purple), var(--cyan)); border-color: transparent; box-shadow: 0 0 20px -2px rgba(6, 182, 212, .8); }

.tf-totop {
	position: fixed; right: 22px; bottom: 22px; z-index: 50; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
	color: #fff; background: linear-gradient(145deg, #7C3AED, #5B21B6); border: 2px solid var(--cyan); box-shadow: 0 0 26px -4px rgba(6, 182, 212, .7);
}
.tf-totop[hidden] { display: none; }
.tf-totop:hover { filter: brightness(1.15); }

/* ==========================================================================
   Reduced motion / print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.tf-card, .tf-tile, .tf-slide__img { transform: none !important; }
}
@media print {
	.tf-bg, .tf-header, .tf-footer, .tf-ad, .tf-totop, .tf-layout__side, .tf-share, .tf-related, .tf-comments { display: none !important; }
	body { background: #fff; color: #000; }
	.tf-content, .tf-content * { color: #000 !important; }
}


/* ==========================================================================
   Logo variants, uppercase CTAs (as in the mockup)
   ========================================================================== */
.tf-logo__img--light { display: none; }
.tf-logo__img { height: 52px; }
.tf-logo--footer .tf-logo__img { height: 54px; }
@media (max-width: 1100px) { .tf-logo__img { height: 42px; } }
.tf-hero .tf-btn--ghost, .tf-news .tf-btn { text-transform: uppercase; letter-spacing: .06em; font-size: .88rem; }
.tf-iconbtn .tf-i-sun { display: none; }
.tf-iconbtn.tf-theme-btn { color: var(--text); }

/* ==========================================================================
   LIGHT THEME (white mode). Switched by html[data-theme="light"]
   ========================================================================== */
html[data-theme="light"] {
	color-scheme: light;
	--bg: #F3F5FA;
	--bg-rgb: 243, 245, 250;
	--glass: rgba(255, 255, 255, .86);
	--line: rgba(15, 23, 42, .11);
	--text: #1B2336;
	--text-2: #38425A;
	--muted: #62708A;
	--heading: #0B1020;
	--purple-2: #6D28D9;
	--link: #0E7490;
	--link-hover: #155E75;
	--content-link: #0E7490;
	--tint: rgba(15, 23, 42, .04);
	--tint-2: rgba(15, 23, 42, .06);
	--header-bg: rgba(255, 255, 255, .84);
	--header-solid: rgba(255, 255, 255, .98);
	--footer-bg: rgba(255, 255, 255, .88);
	--panel: rgba(255, 255, 255, .99);
	--media: #E4E8F2;
	--kbd-bg: #EEF1F8;
	--code-fg: #A21CAF;
	--tile-base: rgba(255, 255, 255, .88);
	--card-shadow: 0 10px 30px -18px rgba(30, 41, 80, .35);
}
html[data-theme="light"] .tf-logo__img--dark { display: none; }
html[data-theme="light"] .tf-logo__img--light { display: block; }
html[data-theme="light"] .tf-iconbtn .tf-i-moon { display: none; }
html[data-theme="light"] .tf-iconbtn .tf-i-sun { display: block; }
html[data-theme="light"] .tf-bg__aurora { opacity: .5; }
html[data-theme="light"] .tf-bg__grid { opacity: .16; }
html[data-theme="light"] .tf-card, html[data-theme="light"] .tf-box, html[data-theme="light"] .tf-row, html[data-theme="light"] .tf-toc, html[data-theme="light"] .tf-authorbox { box-shadow: var(--card-shadow); }
html[data-theme="light"] .tf-card:hover { box-shadow: 0 18px 44px -18px rgba(124, 58, 237, .45), 0 0 0 1px rgba(124, 58, 237, .25); }
html[data-theme="light"] .tf-header { box-shadow: 0 6px 24px -18px rgba(30, 41, 80, .4); }
html[data-theme="light"] .tf-menu .sub-menu { box-shadow: 0 18px 40px -16px rgba(30, 41, 80, .35), 0 0 0 1px rgba(124, 58, 237, .14); }
html[data-theme="light"] .tf-tile { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 14%, transparent), 0 10px 26px -14px color-mix(in srgb, var(--c) 70%, transparent); }
html[data-theme="light"] .tf-tile__text small { color: var(--muted); }
html[data-theme="light"] .tf-slide__title a:hover { background: linear-gradient(90deg, #6D28D9, #0E7490); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .tf-footer { border-top-color: rgba(124, 58, 237, .25); }
html[data-theme="light"] .tf-menu .current-menu-item > a, html[data-theme="light"] .tf-menu .current-menu-ancestor > a { color: #6D28D9; }
html[data-theme="light"] .tf-chip:hover { color: #fff; }
html[data-theme="light"] .tf-social a { color: var(--heading); }
html[data-theme="light"] .tf-social a:hover { color: #fff; }
html[data-theme="light"] .tf-share__btn:hover { box-shadow: 0 0 18px -6px var(--cyan); }
html[data-theme="light"] .tf-notice--ok { color: #166534; }
html[data-theme="light"] .tf-notice--bad { color: #991b1b; }
html[data-theme="light"] .tf-content blockquote { background: rgba(124, 58, 237, .07); }
html[data-theme="light"] .tf-btn--ghost { background: rgba(124, 58, 237, .06); }
html[data-theme="light"] .tf-quote blockquote footer { color: #C4CCDD; }
html[data-theme="light"] .tf-404__code { filter: drop-shadow(0 0 20px rgba(124, 58, 237, .3)); }
html[data-theme="light"] ::selection { color: #fff; }
