/*
Theme Name: CryptoNexa News
Theme URI: https://www.cryptonexa.com/
Author: WebBox
Description: Custom dark crypto newsroom theme for CryptoNexa. Ink ground, tile surfaces, lime signal colour, Hanken Grotesk with a mono data layer. Lightweight, Elementor compatible, Google News ready (schema from Rank Math).
Version: 1.0.6
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: cryptonexa-news
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0A0B0A;
	--ink-2: #111310;
	--tile: #1A1D18;
	--tile-2: #22261F;
	--line: rgba(242, 244, 238, .09);
	--line-2: rgba(242, 244, 238, .16);
	--paper: #F2F4EE;
	--paper-90: rgba(242, 244, 238, .9);
	--paper-70: rgba(242, 244, 238, .7);
	--paper-55: rgba(242, 244, 238, .58);
	--lime: #A3E635;
	--lime-dim: rgba(163, 230, 53, .14);
	--lime-glow: 0 0 0 1px rgba(163, 230, 53, .55), 0 0 28px -6px rgba(163, 230, 53, .45);
	--down: #FF7A6B;
	--sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--r: 14px;
	--r-sm: 9px;
	--wrap: 1320px;
	--gut: clamp(16px, 3vw, 32px);
	--head-h: 64px;
	--tick-h: 36px;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font: 400 16px/1.6 var(--sans);
	letter-spacing: -0.005em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; margin: 0 0 .5em; color: var(--paper); }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--lime); color: var(--ink); border-radius: 8px; font-weight: 600; }
.cx-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.cx-mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; text-transform: uppercase; }

/* Faint grid on the page ground: a quiet nod to a trading terminal. */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(242, 244, 238, .025) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(242, 244, 238, .025) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Reading progress ---------- */
.cx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.cx-progress span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(163, 230, 53, .7); }

/* ---------- Utility top bar ---------- */
.cx-topbar { background: var(--ink-2); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--paper-55); }
.cx-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; }
.cx-topbar__date { white-space: nowrap; }
.cx-topbar__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.cx-topbar__nav a { color: var(--paper-70); white-space: nowrap; }
.cx-topbar__nav a:hover { color: var(--lime); }
@media (max-width: 720px) { .cx-topbar { display: none; } }

/* ---------- Header ---------- */
.cx-head { position: sticky; top: 0; z-index: 100; background: rgba(10, 11, 10, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .cx-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .cx-head { top: 0; } }
.cx-head__in { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.cx-brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--paper); }
.cx-brand:hover { color: var(--paper); }
.cx-brand svg { width: 34px; height: 34px; }
.cx-brand__word { font-weight: 600; font-size: 1.42rem; letter-spacing: -0.04em; line-height: 1; }
.cx-brand:hover .cx-dot { fill: var(--lime); }

.cx-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.cx-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; white-space: nowrap; }
.cx-menu > li { position: relative; }
.cx-menu > li > a, .cx-menu > li > button { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--paper-90); transition: background .15s, color .15s; }
.cx-menu > li > a:hover, .cx-menu > li > button:hover, .cx-menu > li.current > a { background: var(--tile); color: var(--paper); }
.cx-menu > li.current > a { box-shadow: inset 0 0 0 1px var(--line-2); }
.cx-menu > li.current > a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.cx-menu .cx-caret { width: 10px; height: 10px; transition: transform .2s; }
.cx-sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px; background: var(--tile); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 10; }
.cx-sub a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: .92rem; color: var(--paper-90); }
.cx-sub a:hover { background: var(--tile-2); color: var(--lime); }
.has-sub.is-open > .cx-sub, .has-sub:focus-within > .cx-sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open .cx-caret { transform: rotate(180deg); }
@media (hover: hover) { .has-sub:hover > .cx-sub { opacity: 1; visibility: visible; transform: none; } }

.cx-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.cx-clock { font-family: var(--mono); font-size: .72rem; color: var(--paper-55); padding: 0 6px; white-space: nowrap; }
.cx-clock b { color: var(--paper); font-weight: 500; }
.cx-icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--paper); transition: border-color .15s, box-shadow .15s, color .15s; }
.cx-icon-btn:hover { color: var(--lime); border-color: rgba(163, 230, 53, .5); box-shadow: var(--lime-glow); }
.cx-icon-btn svg { width: 18px; height: 18px; }
.cx-burger { display: none; }
@media (max-width: 1180px) {
	.cx-nav, .cx-clock { display: none; }
	.cx-burger { display: grid; }
	.cx-head__in { justify-content: space-between; }
}

/* Search overlay */
.cx-search { position: fixed; inset: 0; z-index: 300; background: rgba(10, 11, 10, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: none; align-items: flex-start; justify-content: center; padding: 14vh var(--gut) 0; }
.cx-search.is-open { display: flex; }
.cx-search__box { width: 100%; max-width: 760px; }
.cx-search__label { display: block; margin-bottom: 14px; color: var(--lime); }
.cx-searchform { display: flex; gap: 10px; }
.cx-searchform input[type=search] { flex: 1; min-width: 0; height: 60px; padding: 0 20px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--tile); color: var(--paper); font: 500 1.25rem var(--sans); letter-spacing: -0.02em; }
.cx-searchform input[type=search]:focus { outline: none; border-color: var(--lime); box-shadow: var(--lime-glow); }
.cx-searchform button { height: 60px; padding: 0 22px; border-radius: var(--r); background: var(--lime); color: var(--ink); font-weight: 600; }
.cx-search__close { position: absolute; top: 20px; right: var(--gut); }

/* Mobile drawer */
.cx-drawer { position: fixed; inset: 0; z-index: 250; display: none; }
.cx-drawer.is-open { display: block; }
.cx-drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.cx-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--ink-2); border-left: 1px solid var(--line-2); padding: 18px 20px 40px; overflow-y: auto; }
.cx-drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cx-drawer ul { list-style: none; margin: 0; padding: 0; }
.cx-drawer li a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.08rem; font-weight: 500; letter-spacing: -0.02em; }
.cx-drawer li a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.cx-drawer li a:hover::after { background: var(--lime); }
.cx-drawer .cx-drawer__label { margin: 22px 0 6px; color: var(--paper-55); }

/* ---------- Market ticker ---------- */
.cx-ticker { height: var(--tick-h); border-bottom: 1px solid var(--line); background: var(--ink); overflow: hidden; position: relative; }
.cx-ticker__in { display: flex; align-items: center; height: 100%; }
.cx-ticker__tag { flex: none; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px 0 var(--gut); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); background: var(--ink); position: relative; z-index: 2; box-shadow: 12px 0 18px var(--ink); }
.cx-live { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(163, 230, 53, .6); animation: cx-pulse 2s infinite; }
@keyframes cx-pulse { 0% { box-shadow: 0 0 0 0 rgba(163, 230, 53, .55); } 70% { box-shadow: 0 0 0 8px rgba(163, 230, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); } }
.cx-ticker__viewport { flex: 1; overflow: hidden; height: 100%; mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.cx-ticker__track { display: flex; width: max-content; height: 100%; animation: cx-marquee 70s linear 2.5s infinite; }
.cx-ticker:hover .cx-ticker__track { animation-play-state: paused; }
.cx-ticker__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; height: 100%; }
.cx-tk { display: flex; align-items: baseline; gap: 8px; padding: 0 18px; font-family: var(--mono); font-size: .76rem; white-space: nowrap; border-right: 1px solid var(--line); line-height: var(--tick-h); }
.cx-tk__sym { color: var(--paper); font-weight: 500; }
.cx-tk__px { color: var(--paper-70); min-width: 7ch; }
.cx-tk__ch { min-width: 6ch; color: var(--paper-55); }
.cx-tk__ch.up { color: var(--lime); }
.cx-tk__ch.down { color: var(--down); }
@keyframes cx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Shared bits ---------- */
.cx-kicker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--lime); }
.cx-kicker::before { content: ""; width: 10px; height: 10px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M19 47V17l26 30' fill='none' stroke='%23A3E635' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='45' cy='17' r='7' fill='%23F2F4EE'/%3E%3C/svg%3E") center / contain no-repeat; }
a.cx-kicker:hover { color: var(--paper); }
.cx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .02em; color: var(--paper-55); text-transform: uppercase; }
.cx-meta > * + *::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.cx-meta a:hover { color: var(--lime); }

.cx-sec { padding-top: clamp(28px, 4vw, 56px); }
.cx-sec__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.cx-sec__title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.cx-sec__title svg { width: 26px; height: 26px; flex: none; }
.cx-sec__rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--line-2), transparent); position: relative; }
.cx-sec__rule::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.cx-sec__more { flex: none; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--paper-70); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); transition: color .15s, border-color .15s, box-shadow .15s; }
.cx-sec__more:hover { color: var(--lime); border-color: rgba(163, 230, 53, .5); box-shadow: var(--lime-glow); }

/* Cards */
.cx-card { position: relative; display: flex; flex-direction: column; background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.cx-card:hover, .cx-card:focus-within { border-color: rgba(163, 230, 53, .45); box-shadow: var(--lime-glow); }
.cx-card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tile-2); }
.cx-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; filter: saturate(.9) brightness(.92); }
.cx-card:hover .cx-card__img img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.cx-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.cx-card__title { margin: 0; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.03em; }
.cx-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cx-card__title a:hover { color: var(--paper); }
.cx-card:hover .cx-card__title a { color: var(--paper); }
.cx-card .cx-kicker { position: relative; z-index: 2; }
.cx-card__ex { margin: 0; color: var(--paper-70); font-size: .94rem; line-height: 1.55; }
.cx-card .cx-meta { margin-top: auto; }
.cx-card--flat { background: transparent; border: 0; border-radius: 0; flex-direction: row; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cx-card--flat:hover, .cx-card--flat:focus-within { box-shadow: none; }
.cx-card--flat .cx-card__img { width: 112px; flex: none; aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.cx-card--flat .cx-card__body { padding: 0; gap: 7px; }
.cx-card--flat .cx-card__title { font-size: 1rem; }
.cx-card--flat:hover .cx-card__title a { color: var(--lime); }

.cx-grid { display: grid; gap: 18px; }
.cx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cx-grid--4, .cx-grid--3, .cx-grid--2 { grid-template-columns: 1fr; } }

/* ---------- Home: hero bento ---------- */
.cx-hero { padding-top: clamp(18px, 3vw, 32px); }
.cx-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.cx-lead { grid-column: span 8; position: relative; min-height: 560px; border-radius: calc(var(--r) + 4px); overflow: hidden; background: var(--tile); border: 1px solid var(--line); display: flex; align-items: flex-end; isolation: isolate; transition: border-color .2s, box-shadow .2s; }
.cx-lead:hover, .cx-lead:focus-within { border-color: rgba(163, 230, 53, .45); box-shadow: var(--lime-glow); }
.cx-lead__img { position: absolute; inset: 0; z-index: -2; }
.cx-lead__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s ease; }
.cx-lead:hover .cx-lead__img img { transform: scale(1.03); }
.cx-lead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 11, 10, .1) 0%, rgba(10, 11, 10, .35) 35%, rgba(10, 11, 10, .93) 78%, var(--ink) 100%), linear-gradient(90deg, rgba(10, 11, 10, .55), transparent 60%); }
.cx-lead__body { padding: clamp(22px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.cx-lead__title { margin: 0; font-size: clamp(2rem, 4.4vw, 4.1rem); line-height: .98; letter-spacing: -0.045em; text-wrap: balance; }
.cx-lead__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.cx-lead__title a:hover { color: var(--paper); }
.cx-lead .cx-kicker { position: relative; z-index: 1; align-self: flex-start; background: rgba(10, 11, 10, .7); border: 1px solid rgba(163, 230, 53, .35); padding: 6px 10px; border-radius: 999px; }
.cx-lead__ex { margin: 0; max-width: 680px; color: var(--paper-90); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.cx-lead .cx-meta { position: relative; z-index: 1; color: var(--paper-70); }
.cx-lead__big-n { position: absolute; right: -40px; top: -30px; width: 360px; opacity: .08; z-index: -1; pointer-events: none; }
.cx-lead__big-n .cx-dot { fill: var(--lime); }
.cx-lead--long .cx-lead__title { font-size: clamp(1.8rem, 3.4vw, 3.1rem); line-height: 1.02; }

/* Latest rail */
.cx-rail { grid-column: span 4; background: var(--tile); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 20px 20px 8px; display: flex; flex-direction: column; min-height: 0; }
.cx-rail__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.cx-rail__head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.cx-rail__list { list-style: none; margin: 0; padding: 0; overflow: hidden; flex: 1; }
.cx-rail__item { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cx-rail__item:last-child { border-bottom: 0; }
.cx-rail__time { font-family: var(--mono); font-size: .7rem; color: var(--lime); padding-top: 3px; white-space: nowrap; }
.cx-rail__item a { font-weight: 500; font-size: .98rem; line-height: 1.3; letter-spacing: -0.02em; }
.cx-rail__item a::after { content: ""; position: absolute; inset: 0; }
.cx-rail__item:hover a { color: var(--lime); }
.cx-rail__item::before { content: ""; position: absolute; left: 49px; top: 19px; width: 1px; height: calc(100% - 6px); background: var(--line); }

.cx-row3 { grid-column: span 12; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

@media (max-width: 1100px) {
	.cx-lead, .cx-rail { grid-column: span 12; }
	.cx-lead { min-height: 480px; }
	.cx-rail__list { max-height: none; }
	.cx-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cx-row3 > :nth-child(3) { display: none; }
}
@media (max-width: 640px) {
	.cx-lead { min-height: 440px; border-radius: var(--r); }
	.cx-lead__ex { display: none; }
	.cx-lead__big-n { width: 180px; right: -20px; top: -10px; }
	.cx-row3 { grid-template-columns: 1fr; }
	.cx-row3 > :nth-child(3) { display: flex; }
}

/* Trending strip */
.cx-trend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--tile), var(--ink-2)); counter-reset: tr; }
.cx-trend li { position: relative; padding: 20px 20px 22px; border-right: 1px solid var(--line); counter-increment: tr; display: flex; flex-direction: column; gap: 10px; }
.cx-trend li:last-child { border-right: 0; }
.cx-trend li::before { content: counter(tr, decimal-leading-zero); font-family: var(--mono); font-size: 2.1rem; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(163, 230, 53, .75); }
.cx-trend li:hover::before { color: var(--lime); }
.cx-trend a { font-weight: 600; font-size: 1rem; line-height: 1.25; letter-spacing: -0.03em; }
.cx-trend a::after { content: ""; position: absolute; inset: 0; }
.cx-trend li:hover a { color: var(--lime); }
@media (max-width: 1100px) {
	.cx-trend { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.cx-trend::-webkit-scrollbar { display: none; }
	.cx-trend li { flex: 0 0 72%; max-width: 300px; scroll-snap-align: start; }
}

/* Desk bands */
.cx-desk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 28px; }
.cx-desk__main .cx-card__img { aspect-ratio: 16 / 10; }
.cx-desk__main .cx-card__title { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.1; }
.cx-desk__list { display: flex; flex-direction: column; }
.cx-desk__list .cx-card--flat:first-child { padding-top: 0; }
.cx-desk--flip .cx-desk__main { order: 2; }
@media (max-width: 900px) { .cx-desk { grid-template-columns: 1fr; } .cx-desk--flip .cx-desk__main { order: 0; } }

/* Signal band: two-up dark panel with lime frame */
.cx-panel { border: 1px solid var(--line-2); border-radius: calc(var(--r) + 4px); padding: clamp(18px, 3vw, 30px); background: radial-gradient(ellipse at 100% 0%, rgba(163, 230, 53, .08), transparent 55%), var(--ink-2); }

/* Guides / services tiles */
.cx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cx-tile { position: relative; padding: 22px; min-height: 170px; border-radius: var(--r); border: 1px solid var(--line); background: var(--tile); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.cx-tile:hover { border-color: rgba(163, 230, 53, .45); box-shadow: var(--lime-glow); }
.cx-tile h3 { margin: 0; font-size: 1.35rem; }
.cx-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.cx-tile p { margin: 0; color: var(--paper-70); font-size: .94rem; }
.cx-tile__arrow { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--lime); transition: background .2s, color .2s; }
.cx-tile:hover .cx-tile__arrow { background: var(--lime); color: var(--ink); }
.cx-tile svg.cx-tile__n { position: absolute; right: -18px; bottom: -26px; width: 130px; opacity: .06; }
@media (max-width: 900px) { .cx-tiles { grid-template-columns: 1fr; } }

/* ---------- Archive / search / author ---------- */
.cx-arch-head { padding: clamp(28px, 4vw, 54px) 0 clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--line); margin-bottom: 26px; position: relative; overflow: hidden; }
.cx-arch-head .cx-kicker { margin-bottom: 14px; }
.cx-arch-head h1 { font-size: clamp(2.2rem, 5.5vw, 4.6rem); margin: 0; line-height: .95; letter-spacing: -0.05em; }
.cx-arch-head__desc { margin: 16px 0 0; max-width: 760px; color: var(--paper-70); font-size: 1.05rem; }
.cx-arch-head__count { margin-top: 16px; }
.cx-arch-head__n { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 220px; opacity: .06; pointer-events: none; }
.cx-author-head { display: flex; gap: 22px; align-items: center; }
.cx-author-head img { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--lime); object-fit: cover; flex: none; }
.cx-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cx-socials a { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--paper-70); }
.cx-socials a:hover { color: var(--lime); border-color: rgba(163, 230, 53, .5); }
.cx-arch-lead { margin-bottom: 18px; }
.cx-arch-lead .cx-card { flex-direction: row; }
.cx-arch-lead .cx-card__img { width: 58%; aspect-ratio: 16 / 9; flex: none; }
.cx-arch-lead .cx-card__body { padding: clamp(18px, 3vw, 36px); justify-content: center; }
.cx-arch-lead .cx-card__title { font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.04; }
@media (max-width: 900px) { .cx-arch-lead .cx-card { flex-direction: column; } .cx-arch-lead .cx-card__img { width: 100%; } }

.cx-pager { margin: 40px 0 10px; }
.cx-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cx-pager .page-numbers { font-family: var(--mono); font-size: .82rem; min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); color: var(--paper-70); }
.cx-pager .page-numbers.current { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 600; }
.cx-pager a.page-numbers:hover { color: var(--lime); border-color: rgba(163, 230, 53, .5); box-shadow: var(--lime-glow); }
.cx-empty { padding: 40px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--paper-70); }

/* ---------- Single ---------- */
.cx-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: clamp(20px, 3vw, 40px); }
@media (max-width: 1100px) { .cx-article-wrap { grid-template-columns: 1fr; } .cx-aside { display: none; } }
.cx-crumbs { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--paper-55); margin-bottom: 18px; }
.cx-crumbs a:hover { color: var(--lime); }
.cx-crumbs .separator { margin: 0 6px; color: var(--line-2); }
.cx-art-head { margin-bottom: 26px; }
.cx-art-head .cx-kicker { margin-bottom: 16px; }
.cx-art-title { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 18px; text-wrap: balance; }
.cx-standfirst { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--paper-70); margin: 0 0 22px; max-width: 760px; letter-spacing: -0.015em; }
.cx-byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cx-byline__who { display: flex; align-items: center; gap: 12px; }
.cx-byline__who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.cx-byline__name { font-weight: 600; letter-spacing: -0.02em; display: block; line-height: 1.2; }
.cx-byline__name:hover { color: var(--lime); }
.cx-share { display: flex; gap: 6px; }
.cx-share a, .cx-share button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--paper-70); transition: color .15s, border-color .15s, box-shadow .15s; }
.cx-share a:hover, .cx-share button:hover { color: var(--lime); border-color: rgba(163, 230, 53, .5); box-shadow: var(--lime-glow); }
.cx-share svg { width: 15px; height: 15px; }
.cx-share .is-copied { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.cx-figure { margin: 26px 0 30px; }
.cx-figure img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.cx-figure figcaption { margin-top: 10px; font-family: var(--mono); font-size: .7rem; color: var(--paper-55); }

/* Long-form typography, tuned for light-on-dark reading */
.cx-prose { max-width: 740px; font-size: 1.125rem; line-height: 1.78; color: var(--paper-90); letter-spacing: -0.003em; overflow-wrap: anywhere; }
.cx-prose > * + * { margin-top: 1.15em; }
.cx-prose p { margin: 0; }
.cx-prose p + p { margin-top: 1.15em; }
.cx-prose h2 { font-size: 1.75rem; margin: 1.9em 0 .6em; color: var(--paper); letter-spacing: -0.035em; }
.cx-prose h3 { font-size: 1.38rem; margin: 1.7em 0 .5em; letter-spacing: -0.03em; }
.cx-prose h4 { font-size: 1.15rem; margin: 1.5em 0 .4em; letter-spacing: -0.02em; }
.cx-prose h2::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--lime); margin-bottom: 14px; }
.cx-prose a { color: var(--lime); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(163, 230, 53, .5); }
.cx-prose a:hover { color: var(--paper); text-decoration-color: var(--paper); }
.cx-prose strong, .cx-prose b { color: var(--paper); font-weight: 600; }
.cx-prose a strong, .cx-prose a b, .cx-prose a em { color: inherit; }
.cx-prose ul, .cx-prose ol { padding-left: 1.4em; }
.cx-prose li + li { margin-top: .45em; }
.cx-prose ul li::marker { color: var(--lime); }
.cx-prose ol li::marker { color: var(--lime); font-family: var(--mono); font-size: .9em; }
.cx-prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--lime); font-size: 1.3rem; line-height: 1.45; letter-spacing: -0.025em; color: var(--paper); font-weight: 500; }
.cx-prose blockquote p + p { margin-top: .6em; }
.cx-prose blockquote cite { display: block; margin-top: 10px; font: 400 .74rem var(--mono); text-transform: uppercase; color: var(--paper-55); font-style: normal; }
.cx-prose .wp-block-pullquote { border: 0; padding: 26px 0; margin: 2em 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-align: left; }
.cx-prose .wp-block-pullquote blockquote { border: 0; padding: 0; font-size: 1.7rem; font-weight: 600; letter-spacing: -0.04em; }
.cx-prose img { border-radius: var(--r-sm); height: auto; }
.cx-prose figure { margin: 1.8em 0; max-width: 100%; }
.cx-prose figcaption, .cx-prose .wp-caption-text { margin-top: 8px; font-family: var(--mono); font-size: .7rem; color: var(--paper-55); }
.cx-prose .wp-caption { max-width: 100%; }
.cx-prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.4em 0; }
.cx-prose code { font-family: var(--mono); font-size: .88em; background: var(--tile); border: 1px solid var(--line); padding: .1em .4em; border-radius: 5px; color: var(--lime); }
.cx-prose pre { font-family: var(--mono); font-size: .88rem; line-height: 1.6; background: var(--tile); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; overflow-x: auto; color: var(--paper-90); }
.cx-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.cx-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.cx-prose .wp-block-table { overflow-x: auto; }
.cx-prose .wp-block-table table { display: table; }
.cx-prose th, .cx-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cx-prose th { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--lime); font-weight: 500; background: var(--tile); }
.cx-prose tr:hover td { background: rgba(242, 244, 238, .025); }
.cx-prose iframe, .cx-prose embed, .cx-prose video { max-width: 100%; }
.cx-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.cx-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.cx-prose .aligncenter { margin-left: auto; margin-right: auto; }
.cx-prose::after { content: ""; display: table; clear: both; }
.cx-prose .wp-block-button__link { background: var(--lime); color: var(--ink); text-decoration: none; border-radius: 999px; font-weight: 600; }
.cx-endmark { display: flex; align-items: center; gap: 10px; margin: 34px 0 0; color: var(--paper-55); }
.cx-endmark svg { width: 20px; height: 20px; }
.cx-endmark::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.cx-tags a { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; padding: 6px 11px; border-radius: 999px; background: var(--tile); border: 1px solid var(--line); color: var(--paper-70); }
.cx-tags a::before { content: "#"; color: var(--lime); margin-right: 2px; }
.cx-tags a:hover { color: var(--lime); border-color: rgba(163, 230, 53, .5); }

.cx-authorbox { margin: 34px 0 0; padding: 24px; border-radius: var(--r); background: var(--tile); border: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr; gap: 18px; }
.cx-authorbox img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lime); }
.cx-authorbox h2 { font-size: 1.2rem; margin: 4px 0 6px; }
.cx-authorbox p { margin: 0; color: var(--paper-70); font-size: .95rem; }
.cx-authorbox .cx-socials { margin-top: 12px; }

.cx-aside { position: relative; }
.cx-aside__sticky { position: sticky; top: calc(var(--head-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.cx-aside .cx-rail { padding: 18px 18px 6px; }
.cx-aside .cx-rail__item a { font-size: .92rem; }

.cx-related { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }

/* ---------- Pages ---------- */
.cx-page { padding-top: clamp(24px, 4vw, 48px); }
.cx-page .cx-prose { max-width: 820px; }
.cx-page__title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: .98; letter-spacing: -0.05em; margin: 0 0 26px; max-width: 980px; }
.cx-elementor { width: 100%; }
/* Elementor content sits on the dark ground: keep its text legible where widgets have no explicit colour. */
.cx-elementor .elementor-widget-text-editor, .cx-elementor .elementor-widget-heading .elementor-heading-title { color: inherit; }

/* ---------- 404 ---------- */
.cx-404 { padding: clamp(40px, 8vw, 110px) 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cx-404__code { font-family: var(--mono); font-size: clamp(5rem, 16vw, 12rem); line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--lime); letter-spacing: -0.04em; }
.cx-404 h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); margin: 18px 0 12px; }
.cx-404 p { color: var(--paper-70); max-width: 560px; }
.cx-404 .cx-searchform { max-width: 560px; margin-top: 22px; }
.cx-404 .cx-searchform input[type=search], .cx-404 .cx-searchform button { height: 52px; font-size: 1rem; }
.cx-404__mark { width: clamp(140px, 22vw, 260px); }
.cx-404__mark .cx-n-path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: cx-draw 1.4s ease forwards .2s; }
@keyframes cx-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 700px) { .cx-404 { grid-template-columns: 1fr; } .cx-404__mark { display: none; } }

/* ---------- Footer ---------- */
.cx-foot { margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink)); position: relative; overflow: hidden; }
.cx-foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.cx-foot__brand p { color: var(--paper-70); max-width: 360px; margin: 16px 0 0; font-size: .95rem; }
.cx-foot h2 { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--lime); margin: 6px 0 14px; }
.cx-foot ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.cx-foot li + li { margin-top: 9px; }
.cx-foot li a { color: var(--paper-70); font-size: .95rem; }
.cx-foot li a:hover { color: var(--lime); }
.cx-foot__bar { border-top: 1px solid var(--line); padding: 18px 0 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--paper-55); }
.cx-foot__big { position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%); font-weight: 600; font-size: clamp(5rem, 17vw, 16rem); letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(242, 244, 238, .05); white-space: nowrap; pointer-events: none; user-select: none; }
.cx-foot__in, .cx-foot__bar { position: relative; z-index: 1; }
.cx-foot__disc { color: var(--paper-55); font-size: .8rem; max-width: 760px; line-height: 1.55; padding-bottom: 8px; }
@media (max-width: 900px) { .cx-foot__in { grid-template-columns: 1fr 1fr; } .cx-foot__brand { grid-column: span 2; } }
@media (max-width: 520px) { .cx-foot__in { grid-template-columns: 1fr; } .cx-foot__brand { grid-column: auto; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.cx-ticker__track { animation: none; overflow-x: auto; }
	.cx-ticker__viewport { overflow-x: auto; scrollbar-width: none; }
	.cx-ticker__list[aria-hidden=true] { display: none; }
	.cx-404__mark .cx-n-path { stroke-dashoffset: 0; }
}
