/*
Theme Name: Cosmoscan Explorer
Description: Light explorer-style theme for Cosmoscan: network snapshot, explorer sections and newsroom.
Version: 2.3.1
Author: Cosmoscan
Requires PHP: 8.0
Text Domain: cosmoscan
*/

:root {
	--violet: #6d28a0;
	--violet-dk: #571e81;
	--teal: #1594a8;
	--navy: #0f172a;
	--slate: #454f5e;
	--mute: #6b7280;
	--lilac: #f2f0fe;
	--lilac-2: #e6e1fb;
	--rule: #e7e4f2;
	--page: #fbfaff;
	--up: #12805c;
	--down: #c2410c;
	--r: 14px;
	--r-sm: 10px;
	--f-head: 'Rubik', system-ui, sans-serif;
	--f-text: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--slate); font: 16.5px/1.65 var(--f-text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 600; line-height: 1.2; color: var(--navy); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.cx-wrap { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--navy); color: #fff; }
.cx-skip:focus { top: 12px; }

/* ---------- Small parts ---------- */
.cx-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border: 1px solid var(--violet); border-radius: 8px; background: var(--violet); color: #fff; font: 500 15px/1.2 var(--f-head); cursor: pointer; transition: background .2s, border-color .2s; }
.cx-btn:hover { background: var(--violet-dk); border-color: var(--violet-dk); color: #fff; }
.cx-btn--sm { padding: 9px 18px; font-size: 14px; }
.cx-btn--line { background: #fff; color: var(--violet); border-color: var(--lilac-2); }
.cx-btn--line:hover { background: var(--lilac); color: var(--violet); border-color: var(--lilac-2); }
.cx-btn--glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
.cx-btn--glass:hover { background: #fff; border-color: #fff; color: var(--navy); }
.cx-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; }
.cx-icon-btn:hover { color: var(--violet); border-color: var(--lilac-2); background: var(--lilac); }
.cx-kicker { display: inline-block; font: 600 12.5px/1.3 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.cx-tag { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--lilac); color: var(--violet); font: 500 12px/1.4 var(--f-head); letter-spacing: .04em; }
.cx-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--mute); }
.cx-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cx-meta svg { color: var(--violet); }
.cx-byline { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.cx-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cx-box { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 32px; }
.cx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.cx-head h2 { font-size: 1.45rem; }
.cx-more { display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--f-head); color: var(--violet); }

/* ---------- Header ---------- */
.cx-topline { margin: 0; padding: 8px 20px; background: var(--navy); color: #fff; font-size: 14px; text-align: center; }
.cx-topline a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cx-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rule); }
.admin-bar .cx-header { top: 32px; }
.cx-header.is-scrolled { box-shadow: 0 8px 24px -20px rgba(15, 23, 42, .5); }
.cx-header-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.cx-logo img { display: block; width: auto; height: 46px; }
.cx-logo a[rel="home"] { font: 700 1.4rem var(--f-head); color: var(--navy); }
.cx-nav { margin-left: auto; }
.cx-nav ul { margin: 0; padding: 0; list-style: none; }
.cx-nav > ul { display: flex; gap: 2px; }
.cx-nav li { position: relative; }
.cx-nav a { display: block; padding: 26px 12px; font: 500 13.5px/24px var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .2s, color .2s; }
.cx-nav > ul > li > a:hover, .cx-nav .current-menu-item > a, .cx-nav .current-menu-ancestor > a, .cx-nav .current_page_parent > a { color: var(--violet); box-shadow: inset 0 -2px 0 var(--violet); }
.cx-nav .menu-item-has-children > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.cx-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 190px; padding: 8px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm); box-shadow: 0 18px 36px -20px rgba(15, 23, 42, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.cx-nav li:hover > .sub-menu, .cx-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cx-nav .sub-menu a { padding: 9px 12px; border-radius: 6px; box-shadow: none; }
.cx-nav .sub-menu a:hover { background: var(--lilac); }
.cx-actions { display: flex; align-items: center; gap: 10px; }
.cx-burger { display: none; }
.cx-burger .i-close, .nav-open .cx-burger .i-open { display: none; }
.nav-open .cx-burger .i-close { display: block; }

.cx-search-dialog { width: min(100% - 32px, 620px); margin: 12vh auto auto; padding: 14px; border: 0; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .5); display: none; gap: 10px; align-items: center; }
.cx-search-dialog[open] { display: flex; }
.cx-search-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.cx-search-dialog .cx-search { flex: 1; }
.cx-search { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; color: var(--mute); }
.cx-search:focus-within { border-color: var(--violet); }
.cx-search input { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: none; color: var(--navy); }
.cx-search button { padding: 9px 14px; border: 0; border-radius: 7px; background: var(--navy); color: #fff; font: 500 14px var(--f-head); cursor: pointer; }
.cx-search button:hover { background: var(--violet); }

/* ---------- Hero ---------- */
.cx-hero { position: relative; display: grid; align-items: center; min-height: 540px; padding: 72px 0 120px; overflow: hidden; background: var(--navy); color: #e8e6f5; text-align: center; }
.cx-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-hero::after { content: ''; position: absolute; inset: 0; background: rgba(13, 10, 36, .66); }
.cx-hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
.cx-hero .cx-kicker { color: #c9b5ef; }
.cx-hero h1 { color: #fff; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cx-hero p { max-width: 62ch; margin: 0; font-size: 18.5px; }
.cx-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- Hub snapshot ---------- */
.cx-hub { position: relative; z-index: 2; margin-top: -64px; }
.cx-ticker { display: grid; grid-template-columns: 1fr 1fr 2fr 1fr .8fr; margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 24px 40px -32px rgba(15, 23, 42, .45); }
.cx-ticker > div { min-width: 0; padding: 18px 22px; border-left: 1px solid var(--rule); }
.cx-ticker > div:first-child { border-left: 0; }
.cx-ticker dt { font: 500 12px/1.3 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cx-ticker dd { margin: 6px 0 0; overflow: hidden; font: 600 16px/1.3 var(--f-head); color: var(--navy); white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cx-hub-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 32px; margin: 56px 0 22px; }
.cx-hub-head h2 { margin-top: 6px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.cx-hub-head p { max-width: 42ch; margin: 0; font-size: 15px; color: var(--mute); text-align: right; }
.cx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cx-tile { position: relative; display: grid; align-content: start; gap: 4px; min-height: 104px; padding: 18px 20px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
.cx-tile--trend { padding-right: 134px; }
.cx-tile-label { font-size: 14px; font-weight: 600; color: var(--slate); }
.cx-tile-value { font: 600 1.3rem/1.25 var(--f-head); color: var(--navy); font-variant-numeric: tabular-nums; }
.cx-delta { font-size: 13.5px; font-weight: 700; }
.cx-delta small { font-weight: 400; color: var(--mute); }
.cx-delta.is-up { color: var(--up); }
.cx-delta.is-down { color: var(--down); }
.cx-spark { position: absolute; right: 16px; bottom: 18px; width: 108px; height: 44px; overflow: visible; }
.cx-spark polyline { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; }
.cx-spark-area { fill: var(--lilac); }

.cx-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.cx-chart { margin: 0; padding: 22px 24px 18px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm); min-width: 0; }
.cx-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.cx-chart-head h3 { font-size: 1.1rem; }
.cx-chart-head span { font-size: 13.5px; color: var(--mute); }
.cx-plot { position: relative; height: 230px; margin-left: 52px; }
.cx-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cx-y span { position: absolute; right: calc(100% + 10px); transform: translateY(-50%); font-size: 12px; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cx-x { position: relative; height: 22px; margin: 8px 0 0 52px; }
.cx-x span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--mute); white-space: nowrap; }
.cx-grid { stroke: #eceaf3; stroke-width: 1; }
.cx-bar { fill: var(--teal); }
.cx-hit { fill: transparent; }
.cx-mark:hover .cx-bar { fill: #0f6f7e; }
.cx-line { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; }
.cx-area { fill: var(--lilac); }
.cx-cross { stroke: var(--violet); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.cx-mark:hover .cx-cross { opacity: .7; }
.cx-table { margin-top: 10px; font-size: 14px; }
.cx-table summary { width: fit-content; color: var(--violet); font-weight: 600; cursor: pointer; }
.cx-table table { width: 100%; margin-top: 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cx-table th, .cx-table td { padding: 6px 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.cx-table td:last-child, .cx-table th:last-child { text-align: right; }

/* ---------- Layout ---------- */
.cx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 28px; }
.cx-layout-main { display: grid; gap: 28px; min-width: 0; }
.cx-aside { display: grid; gap: 18px; position: sticky; top: 100px; }
.cx-widget { padding: 22px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); }
.cx-widget--search { padding: 10px; }
.cx-widget-title { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
.cx-mini { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cx-mini-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.cx-mini-media img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cx-mini-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 500 14.5px/1.35 var(--f-head); color: var(--navy); }
.cx-mini time { display: block; margin-top: 3px; font-size: 13px; color: var(--mute); }
.cx-sections { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cx-sections a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; font: 500 15px var(--f-head); color: var(--navy); }
.cx-sections svg { flex-shrink: 0; padding: 7px; width: 32px; height: 32px; border-radius: 8px; background: var(--lilac); color: var(--violet); }
.cx-sections a:hover, .cx-sections a[aria-current] { background: var(--lilac); color: var(--violet); }
.cx-sections a:hover svg, .cx-sections a[aria-current] svg { background: #fff; }
.cx-brand { display: grid; gap: 14px; background: var(--lilac); border-color: var(--lilac-2); }
.cx-brand img { width: 64px; height: 64px; border-radius: 50%; }
.cx-brand h2 { font-size: 1.15rem; }
.cx-brand p { margin: 6px 0 0; font-size: 14.5px; }
.cx-brand .cx-btn { justify-self: start; }

/* ---------- Posts ---------- */
.cx-posts { display: grid; gap: 0; }
.cx-box.cx-posts { padding: 8px 28px; }
.cx-newsroom .cx-posts { margin: 0 -4px; }
.cx-post { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px 0; border-top: 1px solid var(--rule); }
.cx-post:first-child { border-top: 0; }
.cx-newsroom .cx-post:first-child { padding-top: 4px; }
.cx-post-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: var(--lilac); }
.cx-post-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cx-post:hover .cx-post-media img { transform: scale(1.04); }
.cx-post-body { display: grid; justify-items: start; gap: 8px; }
.cx-post-title { font-size: 1.15rem; line-height: 1.3; }
.cx-post-title a::after { content: ''; position: absolute; inset: 0; }
.cx-post-excerpt { margin: 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-post--lead { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
.cx-post--lead .cx-post-title { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); }
.cx-post--lead .cx-post-excerpt { -webkit-line-clamp: 4; font-size: 16px; }

/* ---------- Page heads ---------- */
.cx-pagehead { padding: 44px 0 40px; background: var(--lilac); border-bottom: 1px solid var(--lilac-2); }
.cx-pagehead h1 { max-width: 24ch; margin-top: 12px; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; line-height: 1.12; }
.cx-pagehead p { max-width: 60ch; margin: 12px 0 0; font-size: 17px; }
.cx-pagehead--post .cx-meta { margin-top: 14px; }
.cx-pagehead--post .cx-byline { margin-top: 14px; }
.cx-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--mute); }
.cx-crumbs [aria-current] { color: var(--navy); }
.cx-crumbs-sep { opacity: .5; }
.cx-article { padding: 40px 48px; min-width: 0; }
.cx-cover { margin: 0 0 32px; border-radius: var(--r-sm); overflow: hidden; }
.cx-cover img { display: block; width: 100%; }
.cx-share { display: flex; align-items: center; gap: 8px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); font: 500 15px var(--f-head); color: var(--navy); }
.cx-share span { margin-right: auto; }
.cx-share a, .cx-share button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; }
.cx-share a:hover, .cx-share button:hover, .cx-share .is-done { background: var(--violet); border-color: var(--violet); color: #fff; }
.cx-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.cx-pager a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r-sm); }
.cx-pager a:hover { background: var(--lilac); border-color: var(--lilac-2); }
.cx-pager span { font: 500 12px var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.cx-pager strong { font: 500 15.5px/1.35 var(--f-head); color: var(--navy); }
.cx-pager-next { grid-column: 2; text-align: right; }

/* ---------- Prose ---------- */
.cx-prose { font-size: 17px; line-height: 1.8; }
.cx-prose > :first-child { margin-top: 0; }
.cx-prose > :last-child { margin-bottom: 0; }
.cx-prose p { margin: 0 0 1.25em; }
.cx-prose h2 { margin: 1.8em 0 .6em; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.cx-prose h3 { margin: 1.5em 0 .5em; font-size: 1.28rem; }
.cx-prose h4 { margin: 1.4em 0 .5em; font-size: 1.1rem; }
.cx-prose a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cx-prose ul, .cx-prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.cx-prose li { margin: .4em 0; }
.cx-prose li::marker { color: var(--violet); }
.cx-prose strong { color: var(--navy); font-weight: 700; }
.cx-prose img { border-radius: var(--r-sm); }
.cx-prose figure { max-width: 100%; margin: 1.8em auto; }
.cx-prose .aligncenter { display: block; margin-inline: auto; }
.cx-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--mute); text-align: center; }
.cx-prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-sm); }
.cx-prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--violet); font-style: italic; color: var(--navy); }
.cx-prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.cx-prose th, .cx-prose td { padding: 11px 14px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cx-prose thead th, .cx-prose tr:first-child th { background: var(--lilac); color: var(--navy); }
.cx-prose .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 1.5em; padding: 0; list-style: none; counter-reset: f; }
.cx-prose .feature-grid li { position: relative; margin: 0; padding: 20px 22px 20px 64px; border-radius: var(--r-sm); background: var(--lilac); font-size: 15.5px; line-height: 1.6; counter-increment: f; }
.cx-prose .feature-grid li::before { content: '0' counter(f); position: absolute; left: 20px; top: 20px; font: 700 15px/1.6 var(--f-head); color: var(--violet); }
.cx-prose .feature-grid li > strong:first-child { display: block; margin-bottom: 4px; font: 600 1.08rem var(--f-head); }
.cx-prose .wp-block-media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin: 0 0 1.5em; }
.cx-prose .wp-block-media-text__media { margin: 0; }
.cx-prose .wp-block-media-text__media img { display: block; width: 100%; }
.cx-prose .wp-block-media-text__content > :last-child { margin-bottom: 0; }
.cx-offer h2:first-child { font-size: 1.6rem; }

/* ---------- Forms (Forminator) ---------- */
.cx-prose .forminator-ui { margin: 0 !important; }
.cx-prose .forminator-row { margin-bottom: 14px; }
.cx-prose .forminator-label { display: block; margin-bottom: 6px; color: var(--navy); font-size: 15px; font-weight: 600; }
.cx-prose .forminator-required { color: var(--violet); }
.cx-prose .forminator-input, .cx-prose .forminator-textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--page); }
.cx-prose .forminator-textarea { min-height: 160px; resize: vertical; }
.cx-prose .forminator-input:focus, .cx-prose .forminator-textarea:focus { outline: 0; border-color: var(--violet); background: #fff; }
.cx-prose .forminator-error-message { margin-top: 5px; font-size: 13px; color: #b42318; }
.cx-prose .forminator-button-submit { padding: 13px 26px; border: 0; border-radius: 8px; background: var(--violet); color: #fff; font: 500 15px/1 var(--f-head); cursor: pointer; }
.cx-prose .forminator-button-submit:hover { background: var(--violet-dk); }
.cx-prose .forminator-response-message:not(:empty) { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--lilac); }

/* ---------- Empty / pagination ---------- */
.cx-empty { display: grid; justify-items: start; gap: 16px; max-width: 720px; margin: 48px auto; padding: 44px; }
.cx-empty .cx-search { width: 100%; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- Footer ---------- */
.cx-footer { margin-top: 80px; background: var(--navy); color: #b9bfd0; font-size: 15px; }
.cx-news-band { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 24px 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cx-news-band h2 { color: #fff; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.cx-news-band p { margin: 8px 0 0; max-width: 54ch; }
.cx-subscribe { display: flex; gap: 8px; }
.cx-subscribe input[type="email"] { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; background: rgba(255, 255, 255, .06); color: #fff; outline: 0; }
.cx-subscribe input[type="email"]:focus { border-color: #c9b5ef; }
.cx-subscribe input::placeholder { color: #8e95a8; }
.cx-subscribe button { padding: 13px 22px; border: 0; border-radius: 8px; background: var(--violet); color: #fff; font: 500 15px/1 var(--f-head); cursor: pointer; }
.cx-subscribe button:hover { background: #8240b8; }
.cx-subscribe-done { margin: 0; padding: 13px 18px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; }
.cx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.cx-fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr; gap: 40px; padding: 56px 0 44px; }
.cx-fcol h3 { margin-bottom: 16px; color: #fff; font: 500 13px var(--f-head); letter-spacing: .12em; text-transform: uppercase; }
.cx-fcol ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; line-height: 1.45; }
.cx-fcol a:hover { color: #fff; }
.cx-fcol p { margin: 14px 0 0; max-width: 36ch; line-height: 1.7; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 700 1.25rem var(--f-head); letter-spacing: .06em; text-transform: uppercase; }
.footer-logo img { width: 40px; height: 40px; border-radius: 50%; }
.footer-logo:hover { color: #fff; }
.cx-social { display: flex; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cx-social:empty { display: none; }
.cx-fbottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.cx-fbottom p { margin: 0; }
.cx-fbottom ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.cx-fbottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.cx-nav a { padding-inline: 9px; letter-spacing: .03em; }
	.cx-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
	.cx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cx-ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cx-ticker-wide { grid-column: span 2; }
	.cx-ticker > div:nth-child(4) { border-left: 0; }
	.cx-ticker > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
	.cx-article { padding: 34px; }
	.cx-fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.cx-burger { display: inline-grid; }
	.cx-actions { margin-left: auto; }
	.cx-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 8px 20px 18px; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 20px 30px -24px rgba(15, 23, 42, .4); }
	.nav-open .cx-nav { display: block; }
	.cx-nav > ul { flex-direction: column; }
	.cx-nav a { padding: 12px 6px; box-shadow: none !important; border-bottom: 1px solid var(--rule); }
	.cx-nav .sub-menu { position: static; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.cx-nav .menu-item-has-children > a::after { display: none; }
	.cx-layout { grid-template-columns: 1fr; }
	.cx-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cx-widget--search { grid-column: 1 / -1; }
	.cx-charts { grid-template-columns: 1fr; }
	.cx-news-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.cx-wrap { width: min(100% - 32px, var(--w)); }
	.cx-header-row { height: 64px; gap: 10px; }
	.cx-logo img { height: 36px; }
	.cx-header-cta { display: none; }
	.cx-hero { min-height: 0; padding: 48px 0 104px; }
	.cx-hero p { font-size: 16.5px; }
	.cx-hub { margin-top: -60px; }
	.cx-ticker { grid-template-columns: 1fr 1fr; }
	.cx-ticker > div { padding: 14px 16px; border-left: 0; border-top: 1px solid var(--rule); }
	.cx-ticker > div:first-child { border-top: 0; }
	.cx-ticker > div:nth-child(2) { border-top: 0; border-left: 1px solid var(--rule); }
	.cx-ticker > div:nth-child(5) { border-left: 1px solid var(--rule); }
	.cx-ticker-wide { grid-column: 1 / -1; }
	.cx-hub-head { display: grid; margin-top: 40px; }
	.cx-hub-head p { text-align: left; }
	.cx-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
	.cx-tile { min-height: 0; padding: 14px 16px; }
	.cx-tile--trend { grid-column: 1 / -1; padding-right: 134px; }
	.cx-tile-value { font-size: 1.12rem; }
	.cx-tile:last-child { grid-column: 1 / -1; }
	.cx-chart { padding: 18px 16px 14px; }
	.cx-plot { height: 190px; margin-left: 44px; }
	.cx-x { margin-left: 44px; }
	.cx-box, .cx-widget { padding: 20px; }
	.cx-box.cx-posts { padding: 4px 18px; }
	.cx-article { padding: 22px 18px; }
	.cx-aside { grid-template-columns: 1fr; }
	.cx-post, .cx-post--lead { grid-template-columns: 1fr; gap: 14px; }
	.cx-prose { font-size: 16.5px; line-height: 1.75; }
	.cx-prose .feature-grid { grid-template-columns: 1fr; }
	.cx-prose .wp-block-media-text { grid-template-columns: 1fr; gap: 18px; }
	.cx-prose table { display: block; overflow-x: auto; }
	.cx-pagehead { padding: 28px 0; }
	.cx-pager { grid-template-columns: 1fr; }
	.cx-pager-next { grid-column: auto; }
	.cx-subscribe { flex-direction: column; }
	.cx-fgrid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }
	.cx-fbottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
