/*
Theme Name:        ChainTelegram
Theme URI:         https://github.com/zeon01/chaintelegram
Author:            ChainTelegram
Author URI:        https://chaintelegram.com
Description:       Custom classic, server-rendered theme for ChainTelegram — a crypto news + markets site. Dark/light toggle, live ticker, article/author/markets templates. Pairs with the ChainTelegram Markets plugin for live data.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.6
Requires PHP:      8.2
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       chaintelegram

Global Constraints (from the shared interface contract):
- PHP 8.2 (host default); WordPress latest 6.x; MySQL via cPanel.
- Host: cPanel user chaitfez, server premium73.web-hosting.com, SSH alias `ctel` (port 21098). Shell enabled.
  Available: WP-CLI /usr/local/sbin/wp, uapi, rsync, git, curl, unzip.
- Build + test on staging: subdomain staging.chaintelegram.com, docroot /home/chaitfez/staging.chaintelegram.com.
- Prefix every remote SSH command with `export LC_ALL=C LANG=C`.
- CoinGecko free Demo API: base https://api.coingecko.com/api/v3, key as header `x-cg-demo-api-key`.
  Attribution "Market data by CoinGecko" (linked) required in the markets footer. Fear & Greed: https://api.alternative.me/fng/?limit=1.
- Repo github.com/zeon01/chaintelegram; plans in docs/superpowers/plans/.
- Deploy via rsync -az -e 'ssh -p 21098' <local>/ chaitfez@premium73.web-hosting.com:<remote wp-content path>/.
*/

/* ===================== DESIGN TOKENS ===================== */
:root {
  /* Dark (default) — from the approved mockup */
  --ct-bg: #080b12;
  --ct-bg2: #0a0e17;
  --ct-card1: #0f1623;
  --ct-card2: #0c1119;
  --ct-chip: #0e1422;
  --ct-border: rgba(255,255,255,0.07);
  --ct-border2: rgba(255,255,255,0.045);
  --ct-hover: rgba(255,255,255,0.025);
  --ct-text: #f5f7fa;
  --ct-text2: #cdd4e0;
  --ct-text3: #a6afc0;
  --ct-sub: #8a94a7;
  --ct-faint: #5a6478;
  --ct-faint2: #2c3850;
  --ct-headerbg: rgba(10,14,23,0.82);
  --ct-accent: #00e6a8;
  --ct-up: #16c784;
  --ct-down: #ea3943;
  --ct-on-accent: #04130f;
  --ct-maxw: 1280px;
  --ct-radius: 16px;
}
[data-theme="light"] {
  --ct-bg: #eef1f6;
  --ct-bg2: #ffffff;
  --ct-card1: #ffffff;
  --ct-card2: #ffffff;
  --ct-chip: #eef1f6;
  --ct-border: rgba(15,23,42,0.10);
  --ct-border2: rgba(15,23,42,0.06);
  --ct-hover: rgba(15,23,42,0.035);
  --ct-text: #0f172a;
  --ct-text2: #334155;
  --ct-text3: #475569;
  --ct-sub: #64748b;
  --ct-faint: #94a3b8;
  --ct-faint2: #cbd5e1;
  --ct-headerbg: rgba(255,255,255,0.85);
}

/* ===================== BASE ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -200px, rgba(0,230,168,0.06), transparent 60%),
    radial-gradient(1000px 500px at 0% -100px, rgba(59,130,246,0.06), transparent 55%),
    var(--ct-bg);
  color: var(--ct-text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.4px; }
.ct-wrap { max-width: var(--ct-maxw); margin: 0 auto; padding: 0 28px; }
.ct-main { padding: 30px 28px 70px; max-width: var(--ct-maxw); margin: 0 auto; animation: ct-fade .4s ease; }
.ct-mono { font-family: 'JetBrains Mono', monospace; }
.ct-up { color: var(--ct-up); }
.ct-down { color: var(--ct-down); }
.ct-muted { color: var(--ct-sub); }
.ct-empty { color: var(--ct-sub); padding: 60px 0; text-align: center; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1c2638; border-radius: 8px; }
::-webkit-scrollbar-track { background: #0b101a; }
@keyframes ct-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ct-pulse { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes ct-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== TICKER ===================== */
.ct-ticker {
  height: 38px; overflow: hidden; display: flex; align-items: center;
  border-bottom: 1px solid var(--ct-border); background: var(--ct-bg2); position: relative;
}
.ct-ticker-live {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 100%;
  background: var(--ct-bg2); z-index: 2; border-right: 1px solid var(--ct-border); flex: none;
}
.ct-ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ct-up); display: inline-block; animation: ct-pulse 1.4s infinite; }
.ct-ticker-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--ct-up); font-family: 'JetBrains Mono', monospace; }
.ct-ticker-track { display: flex; width: max-content; animation: ct-ticker 40s linear infinite; white-space: nowrap; }
.ct-ticker-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; font-size: 12.5px; font-family: 'JetBrains Mono', monospace; }
.ct-ticker-item b { font-weight: 600; color: var(--ct-text2); }
.ct-ticker-price { color: var(--ct-text); }

/* ===================== NAV / HEADER ===================== */
.ct-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: var(--ct-headerbg); border-bottom: 1px solid var(--ct-border); }
.ct-header-inner { max-width: var(--ct-maxw); margin: 0 auto; padding: 0 28px; height: 66px; display: flex; align-items: center; gap: 28px; }
.ct-logo { display: flex; align-items: center; gap: 11px; flex: none; }
.ct-logo-img { height: 32px; width: auto; display: block; }
.ct-nav { display: flex; align-items: center; gap: 4px; flex: 1; list-style: none; margin: 0; padding: 0; }
.ct-nav li { list-style: none; margin: 0; padding: 0; }
.ct-nav a { display: inline-block; color: var(--ct-text2); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 9px; transition: color .15s, background .15s; }
.ct-nav a:hover { color: #fff; background: var(--ct-hover); }
.ct-nav .current-menu-item > a, .ct-nav .current_page_item > a { color: var(--ct-accent); background: rgba(0,230,168,0.10); }
.ct-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.ct-search { display: flex; align-items: center; gap: 8px; background: var(--ct-chip); border: 1px solid var(--ct-border); border-radius: 10px; padding: 8px 12px; width: 190px; }
.ct-search input { background: none; border: none; outline: none; color: var(--ct-text); font-family: 'Manrope', sans-serif; font-size: 13px; width: 100%; }
.ct-toggle { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: var(--ct-chip); border: 1px solid var(--ct-border); border-radius: 10px; color: var(--ct-text); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.ct-toggle:hover { border-color: var(--ct-accent); }
.ct-subscribe { background: linear-gradient(135deg, var(--ct-accent), #06c6e0); color: var(--ct-on-accent); font-weight: 700; font-size: 13.5px; border: none; padding: 10px 18px; border-radius: 10px; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,230,168,0.25); }
.ct-subscribe:hover { filter: brightness(1.08); }

/* ===================== HOMEPAGE HERO — 3 columns (Latest / Top Stories / Deep Dives) ===================== */
.ct-cat-chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ct-on-accent); background: var(--ct-accent); padding: 5px 11px; border-radius: 6px; }

/* Shared image slot + gradient placeholder for cards. */
.ct-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-img--ph { background: linear-gradient(150deg, #11324a 0%, #0f1d33 45%, #0c1119 100%); }
[data-theme="light"] .ct-img--ph { background: linear-gradient(150deg, #d7e6ef 0%, #e4ecf4 50%, #eef1f6 100%); }

.ct-hero { display: grid; grid-template-columns: 1fr 1.15fr 1.3fr; gap: 34px; margin-bottom: 50px; }
.ct-hero > section { min-width: 0; }
.ct-col-h2 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 16px; }

/* Col 1 — Latest: trending tag card + text list (no images) */
.ct-trend-card { background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 14px; padding: 16px 16px 18px; margin-bottom: 18px; }
.ct-trend-badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ct-on-accent); background: var(--ct-accent); padding: 4px 10px; border-radius: 5px; }
.ct-trend-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.ct-trend-tags a { background: var(--ct-chip); border: 1px solid var(--ct-border); color: var(--ct-text2); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 20px; }
.ct-trend-tags a:hover { border-color: var(--ct-accent); color: var(--ct-accent); }
.ct-latest-list { display: flex; flex-direction: column; }
.ct-latest-item { padding: 15px 0; border-top: 1px solid var(--ct-border); }
.ct-latest-item h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.32; margin: 0 0 6px; letter-spacing: -0.3px; }
.ct-latest-item .ct-meta { font-size: 12px; color: var(--ct-faint); font-weight: 600; }

/* Col 2 — Top Stories: one big image + 25px headline + text bullets */
.ct-feat-media { display: block; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 11; border: 1px solid var(--ct-border); }
.ct-feat-media .ct-cat-chip { position: absolute; top: 14px; left: 14px; }
.ct-feat h3 { font-family: 'Space Grotesk', sans-serif; font-size: 25px; font-weight: 700; line-height: 1.22; letter-spacing: -0.6px; margin: 16px 0 4px; text-wrap: balance; }
.ct-bullets { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.ct-bullet { display: flex; gap: 12px; align-items: flex-start; }
.ct-bullet .ct-dot6 { width: 6px; height: 6px; border-radius: 50%; background: var(--ct-accent); flex: none; margin-top: 8px; }
.ct-bullet span:last-child { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.2px; }
.ct-bullet:hover span:last-child { color: var(--ct-accent); }

/* Col 3 — Deep Dives: 2x2 image cards */
.ct-deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===================== HOME CARD PRIMITIVES (image-top, bottom-left badge) ===================== */
.ct-ncard { display: flex; flex-direction: column; background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 14px; overflow: hidden; }
.ct-ncard:hover { border-color: rgba(255,255,255,0.16); }
.ct-ncard-media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ct-ncard-body { display: block; }
.ct-badge-bl { position: absolute; left: 11px; bottom: 11px; font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ct-on-accent); background: rgba(255,255,255,0.92); padding: 3px 8px; border-radius: 5px; }
.ct-badge-bl--accent { background: var(--ct-accent); left: 12px; bottom: 12px; padding: 4px 9px; font-size: 10px; }
.ct-ncard-body { padding: 14px 15px 16px; }
.ct-ncard-body h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.3; margin: 0 0 7px; letter-spacing: -0.2px; }
.ct-ncard-body .ct-meta { font-size: 11.5px; color: var(--ct-faint); font-weight: 600; }
.ct-ncard--lg .ct-ncard-body { padding: 16px 18px 18px; }
.ct-ncard--lg .ct-ncard-body h3 { font-size: 17px; margin-bottom: 9px; letter-spacing: -0.3px; }
.ct-ncard--lg .ct-ncard-body .ct-meta { font-size: 12px; }
.ct-ncard--guide .ct-ncard-body { padding: 15px 16px 17px; }
.ct-ncard--guide .ct-ncard-body h3 { font-size: 15.5px; margin-bottom: 8px; }

/* ===================== HOME SECTION HEADERS + GRIDS ===================== */
.ct-sec { margin-bottom: 54px; }
.ct-sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ct-sec-head h2 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; margin: 0; }
.ct-sec-head .ct-rule { flex: 1; height: 1px; background: var(--ct-border); }
.ct-sec-head .ct-viewall { background: var(--ct-chip); border: 1px solid var(--ct-border); color: var(--ct-text2); font-weight: 600; font-size: 12.5px; padding: 7px 14px; border-radius: 20px; white-space: nowrap; }
.ct-sec-head .ct-viewall:hover { border-color: var(--ct-accent); color: var(--ct-accent); }
.ct-grid-6 { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
.ct-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* Sponsored / Press small card (image + small title, no card chrome) */
.ct-mini { display: block; }
.ct-mini-media { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--ct-border); }
.ct-mini .ct-sponsored { font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--ct-accent); margin-bottom: 5px; }
.ct-mini h3 { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; line-height: 1.32; letter-spacing: -0.2px; margin: 0; }

/* Leaderboard ad */
.ct-ad-leader { display: flex; justify-content: center; margin-bottom: 50px; }
.ct-ad-leader .ct-ad-box { width: 728px; max-width: 100%; height: 100px; border: 1px dashed var(--ct-border); border-radius: 12px; background: var(--ct-bg2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ct-ad-leader .ct-ad-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--ct-faint); font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.ct-ad-leader .ct-ad-dim { font-size: 12px; color: var(--ct-faint2); font-family: 'JetBrains Mono', monospace; }

/* Cryptocurrency News: 3 cards + 300px rail.
   Cards live in their own sub-grid so the tall rail can't inflate the card
   rows (which stretched cards and left dead space under their text). */
.ct-cn-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: start; }
.ct-cn-cards { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; align-content: start; }
.ct-cn-rail { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Follow social banner */
.ct-social-banner { display: flex; align-items: center; gap: 13px; background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; }
.ct-social-banner .ct-heart { color: var(--ct-accent); font-size: 18px; }
.ct-social-banner h2 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin: 0; flex: 1; }
.ct-social-chips { display: flex; gap: 9px; }
.ct-social-chips a { width: 34px; height: 34px; border-radius: 9px; background: var(--ct-chip); border: 1px solid var(--ct-border); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: var(--ct-sub); }
.ct-social-chips a:hover { color: var(--ct-accent); border-color: var(--ct-accent); }

/* About / SEO block */
.ct-ad-slot { display: flex; justify-content: center; align-items: center; min-height: 90px; }

.ct-about { max-width: 880px; margin: 0 auto 14px; text-align: center; padding-top: 40px; border-top: 1px solid var(--ct-border); }
.ct-about p { font-size: 13px; line-height: 1.75; color: var(--ct-sub); text-align: left; margin: 0; }
.ct-about p .ct-kw { color: var(--ct-accent); }

/* Home newsletter sign-up band (centered, matches design) */
.ct-signup { margin-top: 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--ct-border); background: linear-gradient(120deg, rgba(0,230,168,0.14), rgba(59,130,246,0.10)); padding: 48px 44px; text-align: center; }
.ct-signup h2 { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; margin: 0 0 22px; letter-spacing: -0.5px; }
.ct-signup-inner { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.ct-signup .ct-signup-form { min-width: 280px; }
.ct-signup .ct-signup-form .mc4wp-form-fields { display: flex; gap: 10px; }
.ct-signup .ct-signup-form input[type="email"] { background: var(--ct-bg2); border: 1px solid var(--ct-border); border-radius: 11px; padding: 13px 16px; color: var(--ct-text); font-family: 'Manrope', sans-serif; font-size: 14px; outline: none; width: 280px; max-width: 100%; }
.ct-signup .ct-signup-form input[type="submit"] { background: var(--ct-accent); color: var(--ct-on-accent); font-weight: 700; font-size: 14px; border: none; padding: 13px 24px; border-radius: 11px; cursor: pointer; white-space: nowrap; }
.ct-signup .ct-signup-form input[type="submit"]:hover { filter: brightness(1.08); }
.ct-signup .ct-signup-note { font-size: 13px; color: var(--ct-text2); line-height: 1.5; text-align: left; max-width: 240px; margin: 0; }

/* ===================== ARTICLE CARDS ===================== */
.ct-card { display: flex; flex-direction: column; background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: var(--ct-radius); overflow: hidden; }
.ct-card:hover { border-color: rgba(255,255,255,0.16); }
.ct-card-media { position: relative; overflow: hidden; background: var(--ct-chip); }
.ct-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-card-media .ct-cat-chip { position: absolute; left: 12px; top: 12px; margin: 0; }
.ct-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ct-card-body h3 { font-weight: 600; font-size: 18px; line-height: 1.3; margin: 0 0 9px; }
.ct-card-body p { font-size: 13px; color: var(--ct-sub); line-height: 1.5; margin: 0 0 14px; flex: 1; }
.ct-card-meta { font-size: 12px; color: var(--ct-faint); font-weight: 600; }

/* Section / author grids */
.ct-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ct-page-head { margin-bottom: 26px; }
.ct-eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--ct-accent); font-weight: 800; font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; text-transform: uppercase; }
.ct-page-head h1 { font-size: 34px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.8px; }
.ct-page-head p { color: var(--ct-sub); font-size: 15px; margin: 0; max-width: 560px; }

/* Home: latest feed + sidebar */
.ct-home-body { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.ct-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ct-section-head h2 { font-size: 20px; font-weight: 700; margin: 0; }
.ct-section-head .ct-rule { flex: 1; height: 1px; background: var(--ct-border); }
.ct-feed { display: flex; flex-direction: column; }
.ct-feed-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--ct-border); }
.ct-feed-row .ct-card-media { height: 118px; border-radius: 12px; }
.ct-feed-row h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.ct-feed-row p { font-size: 13.5px; color: var(--ct-sub); line-height: 1.5; margin: 0 0 9px; }
.ct-feed-tagline { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.ct-feed-tagline .ct-cat-link { font-size: 11px; font-weight: 700; color: var(--ct-accent); }
.ct-feed-tagline .ct-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ct-faint); }
.ct-feed-tagline .ct-read { font-size: 11px; color: var(--ct-faint); }
.ct-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 86px; }

/* ===================== ARTICLE (single) ===================== */
.ct-article-grid { display: grid; grid-template-columns: minmax(0,720px) 300px; gap: 48px; justify-content: center; align-items: start; }
.ct-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ct-sub); font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.ct-back:hover { color: var(--ct-accent); }
.ct-article h1 { font-size: 38px; font-weight: 700; line-height: 1.15; margin: 0 0 16px; letter-spacing: -1px; text-wrap: balance; }
.ct-article .ct-dek { font-size: 19px; color: var(--ct-text2); line-height: 1.5; margin: 0 0 24px; font-weight: 500; }
.ct-article-meta { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--ct-border); border-bottom: 1px solid var(--ct-border); margin-bottom: 28px; }
.ct-article-meta .ct-name { font-weight: 700; font-size: 14.5px; }
.ct-article-meta .ct-role { font-size: 12.5px; color: var(--ct-sub); }
.ct-article-meta .ct-when { margin-left: auto; text-align: right; }
.ct-article-meta .ct-when .ct-date { font-size: 12.5px; color: var(--ct-text2); font-weight: 600; }
.ct-article-meta .ct-when .ct-read { font-size: 12px; color: var(--ct-faint); }
.ct-article-hero { display: block; width: 100%; height: auto; border-radius: 16px; margin-bottom: 14px; }
.ct-figcaption { font-size: 12px; color: var(--ct-faint); margin-bottom: 28px; font-style: italic; }
.ct-content { font-size: 17px; line-height: 1.75; color: var(--ct-text2); overflow-wrap: break-word; }
.ct-content p { margin: 0 0 22px; }
.ct-content h2 { font-size: 23px; font-weight: 700; color: var(--ct-text); margin: 34px 0 14px; }
.ct-content h3 { font-size: 19px; font-weight: 700; color: var(--ct-text); margin: 28px 0 12px; }
.ct-content blockquote { margin: 30px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--ct-accent); font-family: 'Space Grotesk', sans-serif; font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--ct-text); }
.ct-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0 24px; }
.ct-content ul, .ct-content ol { margin: 0 0 22px; padding-left: 22px; }
.ct-content a { color: var(--ct-accent); text-decoration: underline; text-underline-offset: 3px; }
.ct-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.ct-tags a { font-size: 12.5px; color: var(--ct-text3); background: var(--ct-chip); border: 1px solid var(--ct-border); padding: 6px 13px; border-radius: 8px; font-weight: 600; }
.ct-tags a:hover { color: var(--ct-accent); border-color: var(--ct-accent); }

/* Author box */
.ct-author-box { display: flex; align-items: flex-start; gap: 16px; background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 16px; padding: 22px; }
.ct-author-box .ct-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 5px; }
.ct-author-box .ct-role { font-size: 12.5px; color: var(--ct-accent); font-weight: 700; margin-bottom: 6px; }
.ct-author-box p { font-size: 13.5px; color: var(--ct-sub); line-height: 1.55; margin: 0 0 8px; }
.ct-author-box .ct-author-link { color: var(--ct-accent); font-weight: 700; font-size: 13px; }

/* ===================== LIKE ===================== */
.ct-like { display: inline-flex; align-items: center; gap: 6px; background: var(--ct-chip); border: 1px solid var(--ct-border); border-radius: 20px; padding: 7px 14px; cursor: pointer; color: var(--ct-sub); font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 13px; transition: color .15s, border-color .15s; }
.ct-like:hover { border-color: var(--ct-accent); }
.ct-like .ct-heart { font-size: 14px; line-height: 1; }
.ct-like.is-liked { color: var(--ct-accent); border-color: rgba(0,230,168,0.4); }
.ct-like[disabled] { opacity: .6; cursor: default; }
.ct-article-actions { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; }

/* ===================== COMMENTS ===================== */
.ct-comments { margin-top: 42px; }
.ct-comments-head { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.ct-comments-head h3 { font-size: 21px; font-weight: 700; margin: 0; }
.ct-comments-count { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ct-sub); background: var(--ct-chip); padding: 3px 10px; border-radius: 20px; }
.ct-comment { display: flex; gap: 13px; }
.ct-comment + .ct-comment { margin-top: 22px; }
.ct-comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ct-comment-meta .ct-name { font-weight: 700; font-size: 14px; }
.ct-comment-meta .ct-time { font-size: 12.5px; color: var(--ct-faint); }
.ct-comment p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ct-text2); }
.ct-comment-actions { display: flex; align-items: center; gap: 18px; margin-top: 9px; }
.ct-comment-actions a, .ct-comment-actions button { background: none; border: none; padding: 0; cursor: pointer; color: var(--ct-sub); font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 12.5px; }
.ct-comment-actions a:hover { color: var(--ct-accent); }
.ct-children { list-style: none; margin: 14px 0 0; padding-left: 16px; border-left: 2px solid var(--ct-border); display: flex; flex-direction: column; gap: 14px; }
.ct-commentlist { list-style: none; margin: 0; padding: 0; }
.ct-respond textarea, .ct-respond input[type="text"], .ct-respond input[type="email"], .ct-respond input[type="url"] { width: 100%; box-sizing: border-box; background: var(--ct-chip); border: 1px solid var(--ct-border); border-radius: 12px; padding: 13px 15px; color: var(--ct-text); font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.55; outline: none; margin-bottom: 11px; }
.ct-respond .submit { background: var(--ct-accent); color: var(--ct-on-accent); font-weight: 700; font-size: 13.5px; border: none; padding: 9px 19px; border-radius: 10px; cursor: pointer; }

/* ===================== NEWSLETTER ===================== */
.ct-newsletter { margin-top: 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--ct-border); background: linear-gradient(120deg, rgba(0,230,168,0.14), rgba(59,130,246,0.10)); padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.ct-newsletter h2 { font-size: 28px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.6px; }
.ct-newsletter p { font-size: 15px; color: var(--ct-text2); margin: 0; line-height: 1.55; max-width: 520px; }
.ct-newsletter .ct-newsletter-form { flex: 1; min-width: 300px; max-width: 440px; }
.ct-newsletter--inline { margin-top: 42px; padding: 30px 32px; border-radius: 18px; display: block; }
/* Mailchimp form skin */
.ct-newsletter-form .mc4wp-form-fields { display: flex; gap: 10px; }
.ct-newsletter-form input[type="email"] { flex: 1; min-width: 0; background: var(--ct-bg2); border: 1px solid var(--ct-border); border-radius: 11px; padding: 13px 16px; color: var(--ct-text); font-family: 'Manrope', sans-serif; font-size: 14px; outline: none; }
.ct-newsletter-form input[type="submit"] { background: var(--ct-accent); color: var(--ct-on-accent); font-weight: 700; font-size: 14px; border: none; padding: 13px 24px; border-radius: 11px; cursor: pointer; white-space: nowrap; }
.ct-newsletter-form input[type="submit"]:hover { filter: brightness(1.08); }

/* ===================== SIDEBAR CARDS ===================== */
.ct-side-card { background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 16px; overflow: hidden; }
.ct-side-card--pad { padding: 18px; }
.ct-side-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.ct-side-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.ct-side-head a { color: var(--ct-accent); font-weight: 700; font-size: 12.5px; }
.ct-trending-row { display: flex; gap: 13px; padding: 11px 0; border-top: 1px solid var(--ct-border2); }
.ct-trending-row .ct-num { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--ct-faint2); flex: none; line-height: 1; }
.ct-trending-row .ct-t-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.ct-trending-row .ct-t-meta { font-size: 11px; color: var(--ct-faint); }

/* ===================== AUTHORS ===================== */
.ct-authors-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.ct-author-card { display: flex; align-items: center; gap: 18px; background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 16px; padding: 22px; }
.ct-author-card:hover { border-color: var(--ct-accent); }
.ct-author-card .ct-name { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.ct-author-card .ct-role-line { display: flex; align-items: center; gap: 9px; margin: 3px 0 8px; }
.ct-author-card .ct-role { font-size: 13px; color: var(--ct-text2); font-weight: 600; }
.ct-author-card .ct-count { font-size: 12px; color: var(--ct-sub); font-family: 'JetBrains Mono', monospace; }
.ct-author-card .ct-latest { font-size: 12.5px; color: var(--ct-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-author-card .ct-arrow { color: var(--ct-accent); font-size: 18px; flex: none; margin-left: auto; }
.ct-author-header { display: flex; align-items: flex-start; gap: 22px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--ct-border); }
.ct-author-header h1 { font-size: 34px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.8px; }
.ct-author-header .ct-role-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ct-author-header p { font-size: 15px; color: var(--ct-text3); line-height: 1.6; margin: 0; max-width: 620px; }

/* ===================== MARKETS / COIN (plugin output, styled here) ===================== */
.ct-snapshot { background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 16px; overflow: hidden; }
.ct-snap-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.ct-snap-head h3 { font-size: 14px; font-weight: 700; margin: 0; }
.ct-snap-all { color: var(--ct-accent); font-weight: 700; font-size: 12px; }
.ct-snap-row { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 8px 18px; border-top: 1px solid var(--ct-border2); }
.ct-snap-row:hover { background: var(--ct-hover); }
.ct-snap-sym { font-weight: 600; font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.ct-snap-name { font-size: 12px; color: var(--ct-sub); }
.ct-markets-title { font-size: 28px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.6px; }
.ct-markets-sub { color: var(--ct-sub); margin: 0 0 22px; font-size: 14px; }
.ct-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.ct-stat { background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 14px; padding: 16px 18px; }
.ct-stat-label { font-size: 12px; color: var(--ct-sub); font-weight: 600; margin-bottom: 8px; }
.ct-stat-value { font-family: 'JetBrains Mono', monospace; font-size: 21px; font-weight: 600; letter-spacing: -0.5px; }
.ct-stat-sub { font-size: 12.5px; font-weight: 600; margin-top: 4px; font-family: 'JetBrains Mono', monospace; }
.ct-mkt-table { background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 16px; overflow: hidden; }
.ct-mkt-head, .ct-mkt-row { display: grid; grid-template-columns: 40px 1.6fr 1.1fr 0.8fr 1fr 1.1fr 120px 40px; gap: 12px; align-items: center; padding: 13px 20px; }
.ct-mkt-head { font-size: 11px; color: var(--ct-faint); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border-bottom: 1px solid var(--ct-border); }
.ct-mkt-head span:nth-child(3), .ct-mkt-head span:nth-child(4), .ct-mkt-head span:nth-child(5), .ct-mkt-head span:nth-child(6), .ct-mkt-head span:nth-child(7) { text-align: right; }
.ct-mkt-row { position: relative; border-bottom: 1px solid var(--ct-border2); }
.ct-mkt-row:hover { background: var(--ct-hover); }
/* Stretched link covers the whole row for navigation; the star sits above it. */
.ct-mkt-rowlink { position: absolute; inset: 0; z-index: 1; }
.ct-mkt-rank { color: var(--ct-faint); font-size: 13px; font-family: 'JetBrains Mono', monospace; }
.ct-mkt-asset { display: flex; align-items: center; min-width: 0; }
.ct-mkt-asset b { font-weight: 600; font-size: 14px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ct-mkt-sym { font-size: 11.5px; color: var(--ct-faint); font-family: 'JetBrains Mono', monospace; margin-left: 7px; }
.ct-mkt-price, .ct-mkt-24h, .ct-mkt-cap, .ct-mkt-vol { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
/* 7d sparkline + watchlist star columns */
.ct-mkt-spark { display: flex; justify-content: flex-end; align-items: center; }
.ct-mkt-spark .ct-spark { width: 96px; height: 30px; }
.ct-mkt-star { display: flex; justify-content: center; align-items: center; position: relative; z-index: 2; }
.ct-watch-star { background: none; border: none; cursor: pointer; font-size: 16px; line-height: 1; color: #3a4458; padding: 4px; border-radius: 6px; transition: color .15s ease; }
.ct-watch-star:hover { color: var(--ct-accent); }
.ct-watch-star.is-watched { color: var(--ct-accent); }
.ct-coin { animation: ct-fade .4s ease; }
.ct-coin-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ct-sub); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.ct-coin-head h1 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -0.5px; }
.ct-coin-sym, .ct-coin-rank { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ct-faint); background: var(--ct-chip); padding: 3px 8px; border-radius: 6px; margin-left: 8px; }
.ct-coin-price { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.ct-coin-price-now { font-family: 'JetBrains Mono', monospace; font-size: 32px; font-weight: 600; letter-spacing: -0.8px; }
.ct-watch-btn { display: flex; align-items: center; gap: 8px; background: var(--ct-chip); border: 1px solid var(--ct-border); color: var(--ct-text2); font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 11px; cursor: pointer; }
.ct-watch-btn.is-watched { background: rgba(0,230,168,0.12); border-color: rgba(0,230,168,0.4); color: var(--ct-accent); }
.ct-coin-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; margin-top: 22px; }
.ct-coin-chart-wrap, .ct-coin-stats { background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 16px; padding: 18px 20px; }
/* Fixed-height box so Chart.js (responsive + maintainAspectRatio:false) sizes the
   canvas to the design's ~320px chart instead of ballooning to fill the page. */
.ct-coin-chart-box { position: relative; height: 320px; width: 100%; }
.ct-coin-chart-box canvas { display: block; width: 100% !important; height: 100% !important; }
.ct-range-tabs { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 8px; }
.ct-range-tab { background: var(--ct-hover); color: var(--ct-sub); border: none; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12.5px; padding: 6px 13px; border-radius: 8px; cursor: pointer; }
.ct-range-tab.is-active { background: var(--ct-accent); color: var(--ct-on-accent); }
.ct-coin-stat { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--ct-border2); }
.ct-coin-stat-label { font-size: 13px; color: var(--ct-sub); }
.ct-coin-stat-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.ct-coin-about { background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 16px; padding: 22px; margin-top: 18px; }
.ct-coin-about p { color: var(--ct-text3); line-height: 1.7; font-size: 14px; margin: 0 0 14px; }
.ct-coin-about p:last-child { margin-bottom: 0; }
@media (min-width: 1100px) { .ct-coin-about-body { column-count: 2; column-gap: 48px; } }
.ct-attribution { margin-top: 16px; font-size: 12px; color: var(--ct-faint); }
.ct-attribution a { color: var(--ct-sub); }
.ct-attribution a:hover { color: var(--ct-accent); }

/* ===================== FOOTER ===================== */
.ct-footer { border-top: 1px solid var(--ct-border); background: var(--ct-bg2); margin-top: 50px; }
.ct-footer-inner { max-width: var(--ct-maxw); margin: 0 auto; padding: 50px 28px 0; }
.ct-footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.ct-footer-logo { width: max-content; margin-bottom: 14px; }
.ct-footer-logo-img { height: 28px; }
.ct-footer p { font-size: 13.5px; color: var(--ct-sub); line-height: 1.6; margin: 0 0 18px; max-width: 330px; }
.ct-footer-newsletter { max-width: 330px; margin-bottom: 20px; }
.ct-footer-newsletter .mc4wp-form-fields { display: flex; gap: 8px; }
.ct-footer-newsletter input[type="email"] { flex: 1; min-width: 0; background: var(--ct-chip); border: 1px solid var(--ct-border); border-radius: 10px; padding: 10px 13px; color: var(--ct-text); font-family: 'Manrope', sans-serif; font-size: 13px; outline: none; }
.ct-footer-newsletter input[type="submit"] { background: var(--ct-accent); color: var(--ct-on-accent); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; border: none; padding: 10px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.ct-footer-newsletter input[type="submit"]:hover { filter: brightness(1.08); }
.ct-footer-socials { display: flex; gap: 9px; margin-bottom: 16px; }
.ct-footer-socials a { width: 36px; height: 36px; border-radius: 9px; background: var(--ct-chip); border: 1px solid var(--ct-border); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--ct-sub); }
.ct-footer-socials a:hover { color: var(--ct-accent); border-color: var(--ct-accent); }
.ct-footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ct-text); margin: 0 0 16px; }
.ct-footer-links { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
/* The Sections column renders wp_nav_menu with items_wrap '%3$s', so the menu
   <li>s land directly inside .ct-footer-col (no <ul>, no menu_class). Lay them out
   as a flat link list and kill the default disc markers. */
.ct-footer-col li, .ct-footer-links li { display: block; list-style: none; margin: 0 0 11px; padding: 0; }
.ct-footer-col li:last-child { margin-bottom: 0; }
.ct-footer-col li a { font-family: 'Manrope', sans-serif; font-size: 13.5px; color: var(--ct-sub); }
.ct-footer-col li a:hover { color: var(--ct-accent); }
.ct-footer-links a, .ct-footer-links span { font-family: 'Manrope', sans-serif; font-size: 13.5px; color: var(--ct-sub); text-align: left; cursor: pointer; }
.ct-footer-links a:hover, .ct-footer-links span:hover { color: var(--ct-accent); }
.ct-footer-bottom { margin-top: 44px; padding: 22px 0; border-top: 1px solid var(--ct-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.ct-footer-bottom span, .ct-footer-bottom a { font-size: 12.5px; color: var(--ct-faint); }
.ct-footer-bottom a:hover { color: var(--ct-accent); }
.ct-footer-bottom .ct-legal { display: flex; gap: 22px; }
.ct-footer-bottom .ct-legal li { display: inline; list-style: none; margin: 0; padding: 0; }
.ct-attribution { margin: 0; }

/* ===================== PAGINATION / SEARCH / 404 ===================== */
.ct-pagination { margin-top: 34px; display: flex; gap: 8px; justify-content: center; }
.ct-pagination .page-numbers { padding: 8px 13px; border-radius: 9px; background: var(--ct-chip); border: 1px solid var(--ct-border); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.ct-pagination .page-numbers.current { background: var(--ct-accent); color: var(--ct-on-accent); border-color: var(--ct-accent); }
.ct-search-page-form { display: flex; gap: 10px; max-width: 520px; margin: 0 0 30px; }
.ct-search-page-form input[type="search"] { flex: 1; background: var(--ct-chip); border: 1px solid var(--ct-border); border-radius: 11px; padding: 13px 16px; color: var(--ct-text); font-size: 14px; outline: none; }
.ct-search-page-form button { background: var(--ct-accent); color: var(--ct-on-accent); font-weight: 700; border: none; padding: 13px 22px; border-radius: 11px; cursor: pointer; }
.ct-404 { text-align: center; padding: 80px 0; }
.ct-404 .ct-code { font-family: 'Space Grotesk', sans-serif; font-size: 96px; font-weight: 700; color: var(--ct-faint2); line-height: 1; }
.ct-404 h1 { font-size: 26px; margin: 14px 0 8px; }
.ct-404 p { color: var(--ct-sub); margin: 0 0 22px; }
.ct-404 .ct-btn { display: inline-block; background: linear-gradient(135deg, var(--ct-accent), #06c6e0); color: var(--ct-on-accent); font-weight: 700; padding: 11px 22px; border-radius: 11px; }

/* ===================== EDITORIAL ARCHIVES (category / author / search) ===================== */
/* The design's section/author/search pages use 34px top padding and a full-width
   3-up grid with NO sidebar. */
.ct-main--archive { padding-top: 34px; }
.ct-page-head { margin-bottom: 26px; }

/* Grid card: WHITE category badge top-left (Category / Author / Search). The home
   cards keep the accent .ct-cat-chip; this modifier is only on the grid cards. */
.ct-card-media .ct-cat-chip--w { background: rgba(255,255,255,0.92); color: #04130f; font-size: 10px; padding: 4px 8px; border-radius: 5px; letter-spacing: .6px; }

/* Card footer: byline avatar row (Category / Search). */
.ct-card-byline { display: flex; align-items: center; gap: 9px; }
.ct-card-byline .ct-byline-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; color: #08111a; background: linear-gradient(135deg, var(--ct-accent), #3b82f6); }
.ct-card-byline .ct-byline-txt { font-size: 12px; color: var(--ct-faint); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== EMPTY STATE (search no-results + 404), per the design's
   empty-watchlist card pattern: centered gradient card, glyph, copy, gradient CTA. */
.ct-emptystate { max-width: 620px; margin: 30px auto 0; background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 16px; padding: 56px 40px; text-align: center; }
.ct-emptystate-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; background: var(--ct-chip); border: 1px solid var(--ct-border); color: var(--ct-faint); }
.ct-emptystate h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.3px; }
.ct-emptystate p { color: var(--ct-sub); font-size: 14px; line-height: 1.6; margin: 0 auto 22px; max-width: 420px; }
.ct-emptystate .ct-btn { display: inline-block; background: linear-gradient(135deg, var(--ct-accent), #06c6e0); color: var(--ct-on-accent); font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0,230,168,0.22); }
.ct-emptystate .ct-btn:hover { filter: brightness(1.08); }

/* 404 variant of the empty-state card */
.ct-emptystate--404 { max-width: 680px; padding: 60px 44px; }
.ct-emptystate--404 .ct-404-code { font-family: 'JetBrains Mono', monospace; font-size: 64px; font-weight: 600; letter-spacing: 4px; color: var(--ct-faint2); line-height: 1; margin-bottom: 10px; }
.ct-emptystate--404 h1 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.5px; }
.ct-emptystate--404 p { color: var(--ct-sub); font-size: 14.5px; line-height: 1.65; margin: 0 auto 22px; max-width: 460px; }
.ct-search-page-form--center { margin: 0 auto 18px; }
.ct-404-links { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ct-border2); }
.ct-404-links-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ct-faint); margin-bottom: 13px; }
.ct-404-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.ct-404-chips a { background: var(--ct-chip); border: 1px solid var(--ct-border); color: var(--ct-text2); font-weight: 600; font-size: 12.5px; padding: 7px 14px; border-radius: 20px; }
.ct-404-chips a:hover { border-color: var(--ct-accent); color: var(--ct-accent); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .ct-hero { grid-template-columns: 1fr 1fr; }
  .ct-hero > section:nth-child(3) { grid-column: 1 / -1; }
  .ct-cn-grid { grid-template-columns: 1fr; }
  .ct-cn-cards { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2,1fr); }
  .ct-cn-rail { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; }
  .ct-cn-rail > * { flex: 1; min-width: 260px; }
  .ct-grid-6 { grid-template-columns: repeat(3,1fr); }
  .ct-grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .ct-article-grid, .ct-coin-grid { grid-template-columns: minmax(0,1fr); }
  .ct-aside, .ct-article-grid > aside { position: static; }
  .ct-grid-3 { grid-template-columns: repeat(2,1fr); }
  .ct-stats { grid-template-columns: repeat(2,1fr); }
  .ct-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ct-header-inner { gap: 14px; height: auto; padding: 10px 16px; flex-wrap: wrap; }
  .ct-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .ct-search { width: 130px; }
  .ct-main { padding: 20px 16px 50px; }
  .ct-hero { grid-template-columns: 1fr; }
  .ct-deep-grid { grid-template-columns: 1fr 1fr; }
  .ct-cn-cards, .ct-grid-6, .ct-grid-4 { grid-template-columns: 1fr 1fr; }
  .ct-grid-3, .ct-authors-grid, .ct-stats { grid-template-columns: 1fr; }
  .ct-mkt-head { display: none; }
  .ct-mkt-head, .ct-mkt-row { grid-template-columns: 1fr auto auto 40px; gap: 10px; }
  .ct-mkt-cap, .ct-mkt-vol, .ct-mkt-rank, .ct-mkt-spark { display: none; }
  .ct-feed-row { grid-template-columns: 110px 1fr; }
  .ct-article h1 { font-size: 28px; }
  .ct-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  /* Newsletter / signup forms: the desktop min-width floors (280–300px) plus
     band padding exceed narrow phones (≤360px) and inflate the page width. */
  .ct-newsletter { padding: 26px 20px; }
  .ct-newsletter--inline { padding: 24px 20px; }
  .ct-newsletter .ct-newsletter-form { min-width: 0; width: 100%; max-width: none; }
  .ct-signup { padding: 32px 20px; }
  .ct-signup .ct-signup-form { min-width: 0; width: 100%; }
  .ct-signup .ct-signup-form input[type="email"] { width: 100%; min-width: 0; }
  .ct-newsletter-form .mc4wp-form-fields, .ct-signup .ct-signup-form .mc4wp-form-fields { flex-wrap: wrap; }
}

/* ===================== HOMEPAGE MARKETS RAIL + FEAR & GREED GAUGE =====================
   The Cryptocurrency-News rail's Markets mini-widget (ct_render_snapshot('home')):
   "Markets" header + "All →", a Total-cap line, 6 priced coin rows, and the colourful
   Fear & Greed semicircle gauge. Emitted by the markets plugin, styled here (same
   theme-owns-the-CSS pattern as .ct-snapshot / .ct-mkt-* / .ct-coin-*). */
.ct-rail-widget { background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2)); border: 1px solid var(--ct-border); border-radius: 16px; overflow: hidden; }
.ct-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.ct-rail-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -0.2px; }
.ct-rail-all { color: var(--ct-accent); font-weight: 700; font-size: 12px; }
.ct-rail-cap { display: flex; align-items: baseline; gap: 8px; padding: 0 18px 12px; border-bottom: 1px solid var(--ct-border2); }
.ct-rail-cap-label { font-size: 11px; color: var(--ct-sub); font-weight: 600; }
.ct-rail-cap-val { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--ct-text); }
.ct-rail-cap-ch { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; }
.ct-rail-rows { padding: 4px 0 6px; }
.ct-rail-row { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 9px; align-items: center; padding: 8px 18px; }
.ct-rail-row:hover { background: var(--ct-hover); }
.ct-rail-badge { display: flex; align-items: center; justify-content: center; }
.ct-rail-badge .ct-coin-logo { margin-right: 0 !important; width: 22px !important; height: 22px !important; }
.ct-rail-id { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.ct-rail-id b { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 600; color: var(--ct-text2); }
.ct-rail-name { font-size: 11.5px; color: var(--ct-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-rail-price { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--ct-text); text-align: right; }
.ct-rail-ch { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; text-align: right; min-width: 56px; }

/* Fear & Greed gauge */
.ct-fng { padding: 12px 18px 18px; border-top: 1px solid var(--ct-border2); text-align: center; }
.ct-fng-cap { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ct-faint); margin-bottom: 6px; }
.ct-fng-svg { display: block; margin: 0 auto; width: 210px; max-width: 100%; height: auto; }
.ct-fng-label { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; margin-top: -6px; letter-spacing: -0.2px; }
/* Light theme: the white needle/pivot would vanish on the light card — darken it. */
[data-theme="light"] .ct-fng-needle { stroke: #0f172a; }
[data-theme="light"] .ct-fng-pivot { fill: #0f172a; }

/* Empty sparkline placeholder keeps the 7d column aligned when a series is absent. */
.ct-spark--empty { background: transparent; }

/* ===================== CONTACT PAGE + CONTACT FORM 7 (scoped) =====================
   All selectors are nested under .ct-page (the default page-template wrapper) or
   .ct-page .wpcf7 (Contact Form 7's own wrapper) so nothing leaks to other pages.
   Uses the theme's design tokens, so it respects both dark + light themes. */
.ct-page { max-width: 680px; margin: 0 auto; }
.ct-page-body > *:first-child { margin-top: 0; }

.ct-contact-intro { margin-bottom: 26px; }
.ct-contact-intro h1 { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -0.8px; margin: 0 0 10px; }
.ct-contact-intro p { color: var(--ct-text3); font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 560px; }

/* Card that frames the form, matching the site's card gradient + border. */
.ct-page .wpcf7 {
    background: linear-gradient(160deg, var(--ct-card1), var(--ct-card2));
    border: 1px solid var(--ct-border);
    border-radius: 14px;
    padding: 30px 30px 28px;
}
.ct-page .wpcf7 form.wpcf7-form { margin: 0; }
.ct-page .wpcf7 p { margin: 0; }

/* Field rows + labels. */
.ct-page .wpcf7 .ct-cf7-field { margin-bottom: 18px; }
.ct-page .wpcf7 .ct-cf7-field > label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--ct-text2);
}
.ct-page .wpcf7 .ct-cf7-field > label br { content: ''; display: block; margin-bottom: 8px; }

/* Text inputs + textarea: dark card-tone fill, border, accent focus ring. */
.ct-page .wpcf7 input[type="text"],
.ct-page .wpcf7 input[type="email"],
.ct-page .wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--ct-bg2);
    border: 1px solid var(--ct-border);
    border-radius: 11px;
    padding: 13px 15px;
    color: var(--ct-text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.ct-page .wpcf7 textarea { min-height: 140px; resize: vertical; }
.ct-page .wpcf7 input[type="text"]::placeholder,
.ct-page .wpcf7 input[type="email"]::placeholder,
.ct-page .wpcf7 textarea::placeholder { color: var(--ct-faint); }
.ct-page .wpcf7 input[type="text"]:focus,
.ct-page .wpcf7 input[type="email"]:focus,
.ct-page .wpcf7 textarea:focus {
    border-color: var(--ct-accent);
    box-shadow: 0 0 0 3px rgba(0, 230, 168, 0.16);
}

/* Opt-in checkbox row. */
.ct-page .wpcf7 .ct-cf7-optin { margin: 4px 0 22px; }
.ct-page .wpcf7 .ct-cf7-optin .wpcf7-list-item { display: block; margin: 0; }
.ct-page .wpcf7 .ct-cf7-optin label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ct-text3);
    font-family: 'Manrope', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    cursor: pointer;
}
.ct-page .wpcf7 .ct-cf7-optin input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid var(--ct-border);
    border-radius: 5px;
    background: var(--ct-bg2);
    cursor: pointer;
    position: relative;
    transition: background .15s, border-color .15s;
}
.ct-page .wpcf7 .ct-cf7-optin input[type="checkbox"]:checked {
    background: var(--ct-accent);
    border-color: var(--ct-accent);
}
.ct-page .wpcf7 .ct-cf7-optin input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: solid var(--ct-on-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.ct-page .wpcf7 .ct-cf7-optin input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 230, 168, 0.16);
}

/* Submit button: accent fill, Space Grotesk, on-accent text. */
.ct-page .wpcf7 .ct-cf7-actions { margin-top: 4px; }
.ct-page .wpcf7 input[type="submit"].wpcf7-submit {
    background: var(--ct-accent);
    color: var(--ct-on-accent);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: -0.2px;
    border: none;
    padding: 13px 26px;
    border-radius: 11px;
    cursor: pointer;
    transition: filter .15s, transform .05s;
}
.ct-page .wpcf7 input[type="submit"].wpcf7-submit:hover { filter: brightness(1.08); }
.ct-page .wpcf7 input[type="submit"].wpcf7-submit:active { transform: translateY(1px); }

/* CF7's own AJAX spinner sits next to the button. */
.ct-page .wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }

/* Field-level validation tips + the form-level response banner. */
.ct-page .wpcf7 .wpcf7-not-valid {
    border-color: var(--ct-down) !important;
    box-shadow: 0 0 0 3px rgba(234, 57, 67, 0.14);
}
.ct-page .wpcf7 .wpcf7-not-valid-tip {
    display: block;
    margin-top: 7px;
    color: var(--ct-down);
    font-family: 'Manrope', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
}
.ct-page .wpcf7 .wpcf7-response-output {
    margin: 22px 0 0;
    padding: 13px 16px;
    border-radius: 11px;
    border: 1px solid var(--ct-border);
    background: var(--ct-chip);
    color: var(--ct-text2);
    font-family: 'Manrope', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
}
.ct-page .wpcf7 form.sent .wpcf7-response-output {
    border-color: rgba(0, 230, 168, 0.45);
    background: rgba(0, 230, 168, 0.10);
    color: var(--ct-text);
}
.ct-page .wpcf7 form.invalid .wpcf7-response-output,
.ct-page .wpcf7 form.failed .wpcf7-response-output,
.ct-page .wpcf7 form.spam .wpcf7-response-output {
    border-color: rgba(234, 57, 67, 0.45);
    background: rgba(234, 57, 67, 0.10);
    color: var(--ct-text);
}

@media (max-width: 560px) {
    .ct-page .wpcf7 { padding: 22px 20px 20px; }
    .ct-contact-intro h1 { font-size: 27px; }
}
