/*
Theme Name: 1001 TECH Signal
Theme URI: https://the1001tech.com/
Author: 1001 TECH
Author URI: https://the1001tech.com/
Description: قالب إخباري تقني لمنصة 1001 TECH. فاتح افتراضياً مع وضع ليلي، عربي RTL، سريع ومتوافق مع الهاتف. يشمل: شريط عاجل ذكي، تصفية الأخبار حسب القناة، قسم الفيديو، الشروحات، رادار الجزائر، عمود جانبي للتواصل، خلاصة TL;DR وفهرس تلقائي للمقالات.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tech1001
Tags: news, blog, rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--blue: #0A88FF;
	--fill: #0070E0;
	--fill-hover: #005FC2;
	--cyan: #5CC8FF;
	--wrap: 1360px;
	--gut: clamp(16px, 4vw, 48px);
	--f-d: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
	--f-b: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;
	--f-l: 'Unbounded', 'Alexandria', system-ui, sans-serif;
}

:root,
html.t-light {
	--bg: #F4F6FB;
	--sf: #FFFFFF;
	--sk: #EAF0FB;
	--ln: #E4E9F3;
	--bd: #DCE2EF;
	--bd2: #C7D1E6;
	--tx: #0A1022;
	--tx2: #2B3452;
	--mu: #5A6482;
	--bt: #0063CC;
	--dim: #B9C3DB;
	--chip: rgba(255, 255, 255, .94);
	--hdr: rgba(244, 246, 251, .88);
	--gh: rgba(10, 136, 255, .30);
	--gr: rgba(10, 136, 255, .09);
	--gl: rgba(10, 136, 255, .28);
	--tint: rgba(10, 136, 255, .10);
	--tk: #FFFFFF;
	color-scheme: light;
}

html.t-dark {
	--bg: #04060F;
	--sf: #0A0F1F;
	--sk: #070B18;
	--ln: #141B33;
	--bd: #1E2848;
	--bd2: #2A3766;
	--tx: #EAF0FF;
	--tx2: #C3CCE6;
	--mu: #8E9BBE;
	--bt: #4DA6FF;
	--dim: #2A3766;
	--chip: rgba(4, 6, 15, .85);
	--hdr: rgba(4, 6, 15, .86);
	--gh: rgba(110, 155, 255, .32);
	--gr: rgba(91, 140, 255, .08);
	--gl: rgba(10, 136, 255, .55);
	--tint: rgba(10, 136, 255, .16);
	--tk: #060A17;
	color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--tx);
	font-family: var(--f-b);
	font-size: 16px;
	line-height: 1.7;
	overflow-x: hidden;
	transition: background-color .3s, color .3s;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bt); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-d); line-height: 1.35; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only, .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;
}
.skip-link {
	position: absolute; inset-inline-start: 16px; top: -80px; z-index: 200;
	background: var(--fill); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 16px; color: #fff; }
.lat { font-family: var(--f-l); }
.eyebrow { font-family: var(--f-l); font-size: 10px; letter-spacing: 2px; color: var(--bt); text-transform: uppercase; }
.box-eyebrow { font-family: var(--f-l); font-size: 9px; letter-spacing: 1.5px; color: var(--mu); }
.scroll-x { overflow-x: auto; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* Decorative grid + outline type */
.ph {
	position: absolute; inset: 0; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	background-color: var(--sk);
	background-image: linear-gradient(var(--gr) 1px, transparent 1px), linear-gradient(90deg, var(--gr) 1px, transparent 1px);
	background-size: 28px 28px;
}
.bp {
	position: absolute; inset: 0; height: 900px; pointer-events: none; z-index: 0;
	background-image: linear-gradient(var(--gr) 1px, transparent 1px), linear-gradient(90deg, var(--gr) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.ghost {
	position: relative; direction: ltr; white-space: nowrap;
	font-family: var(--f-l); font-weight: 800; line-height: 1; letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1px var(--gh);
	font-size: clamp(56px, 7vw, 92px);
}

/* Icons */
.i { flex-shrink: 0; display: block; }
[dir="ltr"] .i-flip { transform: scaleX(-1); }
.i-sun { display: none; }
html.t-dark .i-sun { display: block; }
html.t-dark .i-moon { display: none; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
	font-family: var(--f-d); font-size: 14px; font-weight: 600; line-height: 1.2;
	cursor: pointer; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--fill); color: #fff; box-shadow: 0 8px 28px -8px var(--gl); }
.btn-primary:hover { background: var(--fill-hover); color: #fff; }
.btn-ghost { border-color: var(--bd2); background: transparent; color: var(--tx); font-weight: 500; }
.btn-ghost:hover { border-color: var(--fill); color: var(--bt); }
.btn-white { background: #fff; color: #0A1022; }
.btn-white:hover { background: #EAF0FF; color: #0A1022; }
.btn-block { width: 100%; justify-content: space-between; }
.icon-btn {
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--sf); border: 1px solid var(--bd); border-radius: 12px; color: var(--tx); cursor: pointer;
	transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--fill); color: var(--bt); }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
	display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
	font-family: var(--f-d); font-size: 12px; font-weight: 600; line-height: 1.4;
	background: var(--chip); border: 1px solid var(--bd2); color: var(--bt);
}
.chip-solid, a.chip-solid:hover { background: var(--fill); border-color: var(--fill); color: #fff; }

/* ==========================================================================
   Top bar, header, ticker
   ========================================================================== */
.topbar { border-bottom: 1px solid var(--ln); font-family: var(--f-l); font-size: 10px; letter-spacing: 1px; color: var(--mu); }
.topbar-in { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-live { display: flex; align-items: center; gap: 20px; direction: ltr; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--tx); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #2D9BFF; box-shadow: 0 0 10px var(--cyan); display: inline-block; }
.dot-w { width: 7px; height: 7px; background: #fff; box-shadow: none; }
.langs { display: flex; align-items: center; gap: 2px; }
.langs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 8px; }
.langs a[aria-current] { color: var(--bt); }

.site-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid var(--ln); background: var(--hdr);
	-webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.admin-bar .site-header { top: 32px; }
.header-in { min-height: 80px; padding-block: 10px; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand .logo-img { height: 48px; width: auto; display: block; }
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; order: 2; }
.nav { flex: 1 1 100%; min-width: 0; order: 3; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; counter-reset: nav; }
.nav li { flex-shrink: 0; }
.nav a {
	display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; border-radius: 10px;
	white-space: nowrap; font-family: var(--f-d); font-size: 14px; font-weight: 500; line-height: 1.3;
}
.nav a::before { counter-increment: nav; content: counter(nav, decimal-leading-zero); font-family: var(--f-l); font-size: 9px; color: var(--mu); }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current-post-ancestor > a, .nav .current-category-ancestor > a {
	color: var(--bt); box-shadow: inset 0 -2px 0 var(--fill);
}
.nav .current-menu-item > a::before { color: var(--bt); }
@media (min-width: 1240px) {
	.nav { flex: 1 1 auto; order: 1; }
	.hdr-actions { order: 2; }
}

.ticker { display: flex; align-items: stretch; overflow: hidden; border-bottom: 1px solid var(--ln); background: var(--tk); }
.ticker-label {
	flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 44px;
	background: var(--fill); color: #fff; font-family: var(--f-d); font-size: 13px; font-weight: 600;
}
.ticker-track { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker-run { display: flex; width: max-content; animation: tt-run-rtl 60s linear infinite; }
[dir="ltr"] .ticker-run { animation-name: tt-run-ltr; }
.ticker:hover .ticker-run, .ticker:focus-within .ticker-run { animation-play-state: paused; }
.ticker-group { display: flex; gap: 48px; padding-inline: 24px; white-space: nowrap; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--tx2); }
.ticker-item b { font-family: var(--f-l); font-size: 10px; font-weight: 500; color: var(--bt); }

/* Search dialog */
.search-dialog { border: 0; padding: 0; background: transparent; width: min(720px, calc(100% - 32px)); margin: 12vh auto auto; color: var(--tx); }
.search-dialog::backdrop { background: rgba(4, 6, 15, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-panel { background: var(--sf); border: 1px solid var(--bd); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .45); }
.search-panel-head { display: flex; align-items: center; justify-content: space-between; }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form input[type="search"] {
	flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 14px;
	border: 1px solid var(--bd2); background: var(--bg); color: var(--tx); font-size: 16px;
}
.search-form input[type="search"]:focus { border-color: var(--fill); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.search-form .btn { min-height: 52px; }

/* ==========================================================================
   Media
   ========================================================================== */
.media { position: relative; overflow: hidden; background: var(--sk); }
.media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media > .chips { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; }
.orbit { position: absolute; top: 50%; left: 50%; width: min(70%, 520px); aspect-ratio: 1 / 1; transform: translate(-50%, -50%); }
.orbit svg { width: 100%; height: 100%; display: block; animation: tt-spin 80s linear infinite; }
.orbit .o { stroke: var(--gh); }
.orbit .o-tick { stroke: var(--fill); stroke-width: 2; }
.orbit .o-dot { fill: #2D9BFF; }
.orbit .o-dot2 { fill: var(--fill); }

/* ==========================================================================
   Home: hero
   ========================================================================== */
.hero { position: relative; }
.hero-in { position: relative; display: flex; flex-wrap: wrap; gap: 48px; padding-top: 40px; }
.hero-main { flex: 999 1 620px; min-width: 0; }
.feat { display: block; }
.feat-media { aspect-ratio: 16 / 9; border-radius: 20px; border: 1px solid var(--bd); box-shadow: 0 40px 100px -40px var(--gl); }
.feat-media .ghost { font-size: clamp(64px, 10vw, 160px); }
.hero-main:hover .media-img { transform: scale(1.03); }
.hero-body { padding-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; color: var(--mu); }
.meta .cat { color: var(--bt); font-weight: 600; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-title { font-weight: 700; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.32; }
.hero-title a:hover { color: var(--bt); }
.lede { font-size: 18px; line-height: 1.9; color: var(--mu); max-width: 760px; }
.author-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.author-row .btn { margin-inline-start: auto; }
.who { display: flex; flex-direction: column; line-height: 1.4; }
.who b { font-family: var(--f-d); font-size: 15px; font-weight: 600; }
.who small { font-size: 13px; color: var(--mu); }
.avatar {
	width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
	background: linear-gradient(135deg, var(--fill), var(--cyan));
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--f-d); font-weight: 700; color: #fff;
}
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }

.side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid var(--fill); }
.side-head h2 { font-size: 16px; font-weight: 700; }
.sig { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--ln); }
.sig-n { font-family: var(--f-l); font-weight: 700; font-size: 26px; line-height: 1; color: var(--dim); flex-shrink: 0; }
.sig-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sig-cat { font-size: 12px; font-weight: 600; color: var(--bt); }
.sig-t { font-family: var(--f-d); font-weight: 600; font-size: 17px; line-height: 1.65; color: var(--tx); }
.sig:hover .sig-t { color: var(--bt); }
.sig-time { font-size: 13px; color: var(--mu); }
.side-more { margin-top: 20px; }

/* ==========================================================================
   Home: grid, sections, cards
   ========================================================================== */
.home-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 88px; scroll-margin-top: 100px; }
.home-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 80px; }
.home-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1100px) { .home-aside { position: sticky; top: 104px; } }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head .t, .partners-in .t { display: flex; flex-direction: column; gap: 10px; }
.sec-title { font-weight: 700; font-size: clamp(26px, 3vw, 40px); }
.sec-title-sm { font-size: clamp(22px, 2.4vw, 32px); }

.tabs { display: flex; gap: 4px; max-width: 100%; padding: 4px; border: 1px solid var(--bd); border-radius: 14px; background: var(--sf); }
.tab {
	min-height: 44px; padding: 0 16px; white-space: nowrap; border: 0; border-radius: 10px;
	background: transparent; color: var(--tx2); font-family: var(--f-d); font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--bt); }
.tab[aria-pressed="true"] { background: var(--fill); color: #fff; font-weight: 600; box-shadow: 0 6px 20px -6px var(--gl); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.cards[aria-busy="true"] { opacity: .45; pointer-events: none; transition: opacity .2s; }
.feed-more { display: flex; justify-content: center; margin-top: 28px; }
.empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; color: var(--tx2); border: 1px dashed var(--bd2); border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty .search-form { width: min(520px, 100%); }
.empty-home { margin-block: 64px; }

.card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--bd); border-radius: 20px; background: var(--sf);
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: var(--fill); box-shadow: 0 0 0 1px var(--fill), 0 18px 50px -20px var(--gl); transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; flex-grow: 1; color: inherit; }
.card-link:hover { color: inherit; }
.card-media { aspect-ratio: 16 / 10; }
.card:hover .media-img { transform: scale(1.04); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.card-title { font-family: var(--f-d); font-weight: 600; font-size: 18px; line-height: 1.65; color: var(--tx); transition: color .2s; }
.card:hover .card-title { color: var(--bt); }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ln); display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mu); }
.card-dz .card-media { aspect-ratio: 4 / 3; }
.card-dz .card-title { font-size: 20px; }
.card-dz .ghost { font-size: 96px; }

.v-media { aspect-ratio: 16 / 9; }
.play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
	width: 64px; height: 64px; border-radius: 50%; background: var(--fill); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 8px rgba(10, 136, 255, .16), 0 0 40px var(--gl);
}
.v-meta { font-size: 13px; color: var(--mu); }
.video .card-body { gap: 8px; }

.guides { display: flex; flex-direction: column; gap: 12px; }
.guide .card-link { flex-direction: row; align-items: center; gap: 20px; padding: 16px 20px; }
.guide-n { position: relative; width: 72px; height: 72px; flex-shrink: 0; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.guide-num { position: relative; font-family: var(--f-l); font-weight: 800; font-size: 22px; color: var(--bt); }
.guide-b { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.guide .card-title { font-size: 17px; line-height: 1.6; }
.guide-arrow { color: var(--mu); }
.guide:hover .guide-arrow { color: var(--bt); }

/* Sidebar boxes */
.box { border: 1px solid var(--bd); border-radius: 24px; background: var(--sf); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.box-title { font-family: var(--f-d); font-size: 17px; font-weight: 700; }
.box ul { margin: 0; padding-inline-start: 1.1em; }
.about-card {
	position: relative; overflow: hidden; border-radius: 24px; padding: 26px;
	background: var(--fill); color: #fff; display: flex; flex-direction: column; gap: 14px;
}
.about-card::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
	background-size: 28px 28px;
}
.about-card > * { position: relative; }
.about-card .logo-img { height: 60px; width: auto; align-self: flex-start; }
.about-tag { font-family: var(--f-d); font-weight: 700; font-size: 21px; line-height: 1.5; }
.about-text { font-size: 14px; line-height: 1.8; }
.award { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(4, 6, 15, .22); }
.award b, .award-chip b { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.award small, .award-chip small { display: block; font-size: 9px; letter-spacing: 1px; }
.row-link { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--bd); border-radius: 16px; transition: border-color .2s; }
.row-link:hover { border-color: var(--fill); color: inherit; }
.row-link.is-compact { padding: 10px; }
.ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--tint); color: var(--bt); display: flex; align-items: center; justify-content: center; }
.is-compact .ico { width: 38px; height: 38px; border-radius: 10px; }
.row-text { display: flex; flex-direction: column; line-height: 1.5; }
.row-text b { font-family: var(--f-d); font-size: 15px; font-weight: 600; }
.row-text small { font-size: 12px; color: var(--mu); }
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.social-grid a { height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bd); border-radius: 12px; transition: border-color .2s; }
.social-grid a:hover { border-color: var(--fill); }

/* Algeria radar */
.dz { margin-top: 88px; }
.dz-box { position: relative; overflow: hidden; border: 1px solid var(--bd); border-radius: 28px; background: var(--sf); }
.dz-box .bp { height: auto; }
.dz-in { position: relative; padding: clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; }
.dz-intro { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.dz-mark { font-size: clamp(100px, 13vw, 200px); line-height: .85; letter-spacing: -.06em; }
.dz-intro p { font-size: 17px; line-height: 1.9; color: var(--mu); max-width: 420px; }
.dz-posts { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; align-content: start; }
.dz .card { background: var(--bg); }

/* Newsletter */
.nl { margin-top: 88px; }
.nl-box {
	position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 64px);
	background: var(--fill); color: #fff; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.nl-box::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
	background-size: 40px 40px;
}
.nl-box > * { position: relative; }
.nl-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; }
.nl-text .eyebrow { color: #fff; }
.nl-title { font-weight: 700; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.3; }
.nl-text p { font-size: 17px; }
.nl-form { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.nl-form form { display: flex; flex-direction: column; gap: 10px; }
.nl-form label { font-size: 13px; }
.nl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-row input[type="email"], .nl-sc input[type="email"], .nl-sc input[type="text"] {
	flex: 1 1 220px; min-width: 0; min-height: 54px; padding: 0 18px; border-radius: 14px; border: 0;
	background: #fff; color: #0A1022; font-size: 15px;
}
.nl-row button, .nl-sc button, .nl-sc input[type="submit"] {
	min-height: 54px; padding: 0 30px; border-radius: 14px; border: 0; cursor: pointer;
	background: #0A1022; color: #fff; font-family: var(--f-d); font-weight: 600; font-size: 15px;
}
.nl-compact .nl-box { padding: clamp(24px, 4vw, 40px); border-radius: 24px; }
.nl-compact .nl-title { font-size: 24px; }
.nl-compact .nl-text p { display: none; }

/* Partners */
.partners { margin-top: 88px; border-block: 1px solid var(--ln); background: var(--sf); }
.partners-in { padding-block: 56px 36px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.awards { display: flex; flex-wrap: wrap; gap: 12px; }
.award-chip { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--bd); border-radius: 16px; background: var(--bg); }
.award-chip .i { color: var(--blue); }
.award-chip small { color: var(--mu); }
.marquee { overflow: hidden; padding-bottom: 48px; direction: ltr; }
.marquee-run { display: flex; width: max-content; animation: tt-run-ltr 45s linear infinite; }
.marquee-group { display: flex; gap: 56px; padding-inline: 28px; font-family: var(--f-l); font-size: 16px; font-weight: 700; letter-spacing: 1px; color: var(--dim); white-space: nowrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 88px; border-top: 1px solid var(--ln); overflow: hidden; }
body.home:not(.paged) .site-footer { margin-top: 0; border-top: 0; }
.foot-in { padding-block: 56px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot-brand { flex: 2 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-brand .logo-img { height: 72px; width: auto; display: block; }
.foot-brand p { font-size: 15px; line-height: 1.8; color: var(--mu); max-width: 340px; }
.foot-col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.foot-col h2 { font-size: 13px; font-weight: 700; color: var(--mu); margin-bottom: 4px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-social ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.foot-mark { display: block; text-align: center; font-size: clamp(56px, 14vw, 210px); line-height: .85; letter-spacing: -.03em; }
.foot-bottom { border-top: 1px solid var(--ln); }
.foot-bottom .wrap { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; font-size: 12px; color: var(--mu); }

/* ==========================================================================
   Single article
   ========================================================================== */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 100; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress span { display: block; height: 100%; background: var(--fill); box-shadow: 0 0 12px var(--gl); transform: scaleX(0); transform-origin: right center; }
[dir="ltr"] .progress span { transform-origin: left center; }
.post-hero { position: relative; }
.post-hero > .wrap { position: relative; padding-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--mu); }
.crumbs [aria-current] { color: var(--bt); }
.post-head { max-width: 980px; margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.post-title { font-weight: 700; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.3; letter-spacing: -.01em; }
.post-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.9; color: var(--tx2); max-width: 820px; }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.fact { background: var(--sf); border: 1px solid var(--bd); border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; min-height: 72px; }
.fact > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact dt { font-size: 12px; color: var(--mu); }
.fact dd { margin: 0; font-family: var(--f-d); font-size: 15px; font-weight: 600; }
.cover { margin: 32px 0 0; }
.cover .media { aspect-ratio: 21 / 9; border: 1px solid var(--bd); border-radius: 24px; box-shadow: 0 40px 100px -40px var(--gl); }
.cover .ghost { font-size: clamp(64px, 10vw, 150px); }
.cover figcaption { margin-top: 12px; font-size: 13px; color: var(--mu); }
.page-body .cover .media { aspect-ratio: 16 / 9; }

.post-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; margin-top: 56px; }
.post-main { flex: 999 1 600px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 32px; }
.rail { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1100px) { .rail { position: sticky; top: 104px; } }

.tldr { border: 1px solid var(--bd); border-radius: 20px; overflow: hidden; background: var(--sf); }
.tldr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--bd); }
.tldr-head h2 { font-size: 15px; font-weight: 700; }
.tldr-head .box-eyebrow { color: var(--bt); }
.tldr ol { list-style: none; margin: 0; padding: 6px 22px; }
.tldr li { display: flex; gap: 16px; padding: 14px 0; font-size: 17px; line-height: 1.8; }
.tldr li + li { border-top: 1px solid var(--ln); }
.tldr .n { flex-shrink: 0; width: 28px; height: 28px; margin-top: 2px; border-radius: 8px; background: var(--tint); color: var(--bt); display: flex; align-items: center; justify-content: center; font-family: var(--f-l); font-size: 10px; }

/* Article typography */
.entry { font-size: 19px; line-height: 2.05; color: var(--tx2); overflow-wrap: break-word; }
.entry > * { margin-block: 0 1.2em; }
.entry > *:last-child { margin-bottom: 0; }
.entry h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; color: var(--tx); margin-top: 1.6em; line-height: 1.4; scroll-margin-top: 120px; }
.entry h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; color: var(--tx); margin-top: 1.4em; scroll-margin-top: 120px; }
.entry h4 { font-size: 19px; color: var(--tx); }
.entry a { color: var(--bt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry img { border-radius: 16px; }
.entry figure { margin-inline: 0; }
.entry figcaption, .entry .wp-element-caption { font-size: 13px; line-height: 1.6; color: var(--mu); margin-top: 8px; text-align: center; }
.entry ul, .entry ol { padding-inline-start: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry li::marker { color: var(--blue); }
.entry strong { color: var(--tx); }
.entry blockquote, .entry .wp-block-pullquote {
	position: relative; margin: 1.6em 0; padding: 32px clamp(20px, 3vw, 40px); border: 1px solid var(--bd); border-radius: 24px;
	background: var(--sf); color: var(--tx); font-family: var(--f-d); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.6;
}
.entry .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; background: none; }
.entry blockquote::before {
	content: "”"; display: block; height: 40px; font-family: var(--f-d); font-weight: 900; font-size: 72px; line-height: .9;
	color: var(--fill); text-shadow: 0 0 30px var(--gl);
}
.entry .wp-block-pullquote blockquote::before { display: none; }
.entry blockquote p { margin: 0 0 .6em; }
.entry blockquote p:last-of-type { margin-bottom: 0; }
.entry cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--mu); font-family: var(--f-b); font-weight: 400; }
.entry code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--sk); padding: 2px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.entry pre { direction: ltr; text-align: left; background: #0A1022; color: #EAF0FF; padding: 20px; border-radius: 16px; overflow: auto; font-size: 14px; line-height: 1.7; }
.entry pre code { background: none; padding: 0; color: inherit; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.entry .wp-block-table { overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--bd); padding: 10px 14px; text-align: start; }
.entry th { background: var(--sf); color: var(--tx); font-family: var(--f-d); }
.entry hr { border: 0; border-top: 1px solid var(--bd); margin-block: 2em; }
.entry iframe, .entry .wp-block-embed { max-width: 100%; }
.entry .wp-block-image img { height: auto; }
.page-links { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--f-d); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--bd2); border-radius: 999px; font-size: 13px; }
.tags a::before { content: "#"; color: var(--bt); margin-inline-end: 2px; }
.tags a:hover { border-color: var(--fill); }
.author-box { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border: 1px solid var(--bd); border-radius: 24px; background: var(--sf); }
.author-box > div { display: flex; flex-direction: column; gap: 4px; }
.author-box small { font-size: 12px; color: var(--mu); }
.author-box b { font-family: var(--f-d); font-size: 20px; }
.author-box p { font-size: 15px; line-height: 1.8; color: var(--mu); }

.share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.share-grid a { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bd); border-radius: 12px; transition: border-color .2s; }
.share-grid a:hover { border-color: var(--fill); }
.toc { gap: 2px; }
.toc .box-title { margin-bottom: 8px; }
.toc a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.toc a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.toc a.is-active { background: var(--tint); color: var(--bt); }
.toc a.is-active::before { background: var(--fill); box-shadow: 0 0 8px var(--fill); }
.related { margin-top: 96px; }
.rule-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.rule-head::after { content: ""; flex: 1; height: 1px; background: var(--bd); }

/* Comments */
.comments { margin-top: 8px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comment-list .children { list-style: none; padding-inline-start: 24px; margin-top: 16px; }
.comment-body { padding: 16px; border: 1px solid var(--ln); border-radius: 16px; font-size: 15px; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--mu); }
.comment-meta img { border-radius: 10px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--bd2); background: var(--bg); color: var(--tx);
}
.comment-form label { display: block; font-size: 13px; color: var(--mu); margin-bottom: 4px; }

/* ==========================================================================
   Archives, pages, 404
   ========================================================================== */
.arch-head { position: relative; }
.arch-head .bp { height: 100%; }
.arch-head > .wrap { position: relative; padding-block: 56px 40px; display: flex; flex-direction: column; gap: 14px; }
.arch-title { font-weight: 700; font-size: clamp(30px, 4vw, 54px); line-height: 1.25; }
.arch-desc { color: var(--mu); font-size: 17px; max-width: 720px; }
.arch-search { max-width: 640px; margin-top: 8px; }
.arch-body { padding-bottom: 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.page-numbers {
	min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px;
	border: 1px solid var(--bd); border-radius: 12px; background: var(--sf); font-family: var(--f-d); font-size: 14px;
}
.page-numbers.current { background: var(--fill); border-color: var(--fill); color: #fff; }
.page-numbers.dots { border: 0; background: none; }
a.page-numbers:hover { border-color: var(--fill); }
.page-body { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 32px; }
.nf { position: relative; }
.nf .bp { height: 100%; }
.nf-in { position: relative; text-align: center; padding-block: 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.nf-mark { font-size: clamp(120px, 22vw, 280px); }
.nf-in p { color: var(--mu); font-size: 17px; max-width: 520px; }
.nf-search { width: min(560px, 100%); }

/* WordPress core classes */
.alignleft { float: left; margin-inline-end: 1.5em; }
.alignright { float: right; margin-inline-start: 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--mu); }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes tt-spin { to { transform: rotate(360deg); } }
@keyframes tt-run-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes tt-run-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pulse { animation: tt-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 782px) {
	.admin-bar .site-header, .admin-bar .progress { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	.admin-bar .progress { top: 0; }
}
@media (max-width: 760px) {
	.hide-sm { display: none !important; }
	.header-in { min-height: 64px; gap: 8px 16px; }
	.brand .logo-img { height: 40px; }
	.hdr-actions .btn { padding: 0 14px; }
	.hero-in { padding-top: 24px; gap: 36px; }
	.lede { font-size: 16px; }
	.author-row .btn { margin-inline-start: 0; width: 100%; }
	.home-grid { padding-top: 64px; }
	.home-main { gap: 64px; }
	.guide .card-link { gap: 14px; padding: 12px; }
	.guide-n { width: 56px; height: 56px; }
	.sig { gap: 14px; }
	.entry { font-size: 17px; line-height: 1.95; }
	.cover .media { aspect-ratio: 16 / 10; }
	.post-layout { margin-top: 40px; gap: 40px; }
	.author-box { padding: 20px; }
	.dz, .nl, .partners, .site-footer { margin-top: 64px; }
}
