/*
Theme Name: CryptoTelegraff Dark
Theme URI: https://cryptotelegraff.space
Author: CryptoTelegraff Team
Author URI: https://cryptotelegraff.space
Description: Dark editorial crypto news theme inspired by leading crypto media. Forklog-style layout with coin intelligence sidebar.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cryptotelegraff
Tags: news, dark, magazine, crypto, elementor, seo, responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   RESET & VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0C0E14;
  --bg2:      #111420;
  --bg3:      #161A28;
  --bg4:      #1C2235;
  --surface:  #1E2338;
  --surface2: #242A42;
  --border:   #252D45;
  --border2:  #2A3350;
  --accent:   #6C63FF;
  --accent2:  #8B7FFF;
  --accent3:  #4B43CC;
  --gold:     #E8B55A;
  --gold2:    #F5CC80;
  --red:      #FF4D4D;
  --red2:     #FF7070;
  --green:    #22C55E;
  --green2:   #4ADE80;
  --cyan:     #22D3EE;
  --btc:      #F7931A;
  --eth:      #8B5CF6;
  --sol:      #9945FF;
  --xrp:      #346AA9;
  --text:     #F0F2F8;
  --text2:    #A8B0CC;
  --text3:    #5A6482;
  --text4:    #3A4060;
  --ff-head:  'Unbounded', sans-serif;
  --ff-body:  'Inter', sans-serif;
  --ff-mono:  'JetBrains Mono', monospace;
  --max-w:    1300px;
  --pad:      20px;
  --r:        6px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.ct-topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.ct-topbar-left { display: flex; align-items: center; gap: 18px; }
.ct-topbar-link {
  font-size: 11px; font-weight: 500;
  color: var(--text3); letter-spacing: .04em;
  cursor: pointer; white-space: nowrap;
  padding: 3px 0; border-bottom: 2px solid transparent;
  transition: color .2s;
}
.ct-topbar-link:hover { color: var(--text2); }
.ct-topbar-link.hot { color: var(--gold); border-bottom-color: var(--gold); }
.ct-topbar-right { display: flex; align-items: center; gap: 12px; }
.ct-topbar-right a,
.ct-topbar-right span { font-size: 10px; color: var(--text3); cursor: pointer; font-family: var(--ff-mono); }
.ct-topbar-right a:hover,
.ct-topbar-right span:hover { color: var(--accent2); }
.ct-lang-btn {
  border: 1px solid var(--border2); padding: 2px 8px;
  border-radius: 3px; font-family: var(--ff-mono); font-size: 10px; color: var(--text3);
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.ct-masthead {
  background: var(--bg2);
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--border);
  position: relative;
}
.ct-masthead::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent3), var(--accent), var(--cyan), var(--accent), var(--accent3));
}
.ct-logo { display: flex; align-items: center; gap: 11px; }
.ct-logo-mark {
  width: 38px; height: 38px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ct-logo-mark svg { width: 22px; height: 22px; }
.ct-logo-name {
  font-family: var(--ff-head);
  font-size: 21px; font-weight: 900;
  color: var(--text); letter-spacing: -1.2px; line-height: 1;
}
.ct-logo-name a { color: inherit; }
.ct-logo-name span { color: var(--accent2); }
.ct-logo-sub { font-size: 9px; color: var(--text3); margin-top: 3px; font-family: var(--ff-mono); letter-spacing: .07em; }
.ct-masthead-center { flex: 1; text-align: center; }
.ct-masthead-tagline { font-size: 10px; color: var(--text3); font-family: var(--ff-mono); letter-spacing: .09em; }
.ct-masthead-right { display: flex; align-items: center; gap: 10px; }
.ct-tg-btn {
  background: transparent; color: var(--text2);
  font-size: 11px; font-weight: 500; padding: 8px 14px;
  border: 1px solid var(--border2); border-radius: var(--r);
  cursor: pointer; transition: all .2s; letter-spacing: .03em;
}
.ct-tg-btn:hover { border-color: var(--accent); color: var(--accent2); }
.ct-sub-cta {
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; padding: 8px 18px;
  border-radius: var(--r); cursor: pointer; transition: background .2s;
  white-space: nowrap; border: none;
}
.ct-sub-cta:hover { background: var(--accent2); }

/* ============================================================
   MAIN NAV
   ============================================================ */
.ct-nav {
  background: var(--bg3);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.ct-nav-items { display: flex; list-style: none; }
.ct-nav-items li a,
.ct-nav-item {
  display: block; padding: 13px 13px;
  font-size: 11px; font-weight: 600;
  color: var(--text3); letter-spacing: .05em;
  border-bottom: 2px solid transparent; transition: all .2s;
  white-space: nowrap; cursor: pointer;
}
.ct-nav-items li.current-menu-item > a,
.ct-nav-item.act { color: var(--text); border-bottom-color: var(--accent); }
.ct-nav-items li a:hover,
.ct-nav-item:hover { color: var(--text2); }
.ct-nav-search form { display: flex; align-items: center; gap: 8px; }
.ct-nav-search input[type="search"] {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: 11px; font-family: var(--ff-mono);
  padding: 6px 12px; border-radius: var(--r); width: 155px;
}
.ct-nav-search input[type="search"]:focus { outline: none; border-color: var(--accent); }
.ct-nav-search input[type="search"]::placeholder { color: var(--text3); }

/* ============================================================
   TICKER
   ============================================================ */
.ct-ticker-bar {
  background: var(--bg3); padding: 8px var(--pad);
  display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.ct-tick { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ct-tick-name { font-family: var(--ff-mono); font-size: 10px; font-weight: 500; color: var(--text3); letter-spacing: .05em; }
.ct-tick-val  { font-family: var(--ff-mono); font-size: 10px; color: var(--text); font-weight: 500; }
.ct-tick-chg  { font-family: var(--ff-mono); font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 500; }
.ct-tick-chg.up { background: rgba(34,197,94,.15); color: var(--green); }
.ct-tick-chg.dn { background: rgba(255,77,77,.12); color: var(--red); }
.ct-tick-sep { width: 1px; height: 14px; background: var(--border); flex-shrink: 0; }
.ct-ticker-link { font-family: var(--ff-mono); font-size: 10px; color: var(--accent2); margin-left: auto; white-space: nowrap; }
.ct-ticker-link:hover { text-decoration: underline; }

/* ============================================================
   BREAKING
   ============================================================ */
.ct-breaking {
  background: var(--red); padding: 8px var(--pad);
  display: flex; align-items: center; gap: 14px;
}
.ct-breaking-label {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,.65); letter-spacing: .12em; text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.2); padding-right: 14px; flex-shrink: 0;
}
.ct-breaking-text { font-size: 12px; color: #fff; font-weight: 500; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.ct-page { max-width: var(--max-w); margin: 0 auto; }
.ct-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  border-bottom: 1px solid var(--border);
}
.ct-main-col { border-right: 1px solid var(--border); min-width: 0; }
.ct-side-col { min-width: 0; }

/* ============================================================
   HERO
   ============================================================ */
.ct-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  border-bottom: 1px solid var(--border);
}
.ct-hero-featured { border-right: 1px solid var(--border); }
.ct-hero-img {
  width: 100%; height: 210px;
  background: var(--bg4);
  position: relative; overflow: hidden;
}
.ct-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,14,20,.98) 0%, rgba(12,14,20,.5) 50%, transparent 100%);
}
.ct-hero-img-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d1425 0%, #1a2540 50%, #0a1020 100%);
}
.ct-hero-img-chart {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px; opacity: .3;
}
.ct-hero-badge {
  position: absolute; top: 12px; left: 14px; z-index: 2;
  background: rgba(108,99,255,.9); color: #fff;
  font-family: var(--ff-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px;
}
.ct-hero-body { padding: 14px 18px 16px; }
.ct-hero-cat {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: 9px; font-weight: 500;
  color: var(--accent2); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 7px;
}
.ct-hero-cat-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ct-hero-title {
  font-family: var(--ff-head);
  font-size: 17px; font-weight: 700;
  color: var(--text); line-height: 1.28; letter-spacing: -.3px;
  margin-bottom: 8px;
}
.ct-hero-title:hover { color: var(--accent2); }
.ct-hero-deck { font-size: 12px; color: var(--text2); line-height: 1.65; margin-bottom: 12px; }
.ct-hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-hero-author { display: flex; align-items: center; gap: 6px; flex: 1; }
.ct-hero-av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ct-hero-author-name { font-size: 11px; color: var(--text2); }
.ct-hero-time { font-family: var(--ff-mono); font-size: 10px; color: var(--text3); }
.ct-hero-views { font-family: var(--ff-mono); font-size: 10px; color: var(--text3); display: flex; align-items: center; gap: 3px; }

/* Hero stack */
.ct-hero-stack { display: flex; flex-direction: column; }
.ct-stack-item {
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
  display: flex; flex-direction: column; gap: 5px; flex: 1;
}
.ct-stack-item:last-child { border-bottom: none; }
.ct-stack-item:hover { background: var(--bg4); }
.ct-stack-num {
  font-family: var(--ff-head); font-size: 26px; font-weight: 900;
  color: var(--border2); line-height: 1; margin-bottom: 2px;
}
.ct-stack-cat { font-family: var(--ff-mono); font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.ct-stack-cat.btc  { color: var(--btc); }
.ct-stack-cat.eth  { color: var(--eth); }
.ct-stack-cat.sol  { color: var(--sol); }
.ct-stack-cat.xrp  { color: var(--xrp); }
.ct-stack-cat.defi { color: var(--green); }
.ct-stack-cat.reg  { color: var(--red); }
.ct-stack-cat.ai   { color: var(--cyan); }
.ct-stack-cat.news { color: var(--text3); }
.ct-stack-title { font-family: var(--ff-head); font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.35; }
.ct-stack-meta { display: flex; align-items: center; gap: 7px; font-family: var(--ff-mono); font-size: 9px; color: var(--text3); }
.ct-stack-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border2); flex-shrink: 0; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.ct-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.ct-sec-title {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--text3);
  display: flex; align-items: center; gap: 8px;
}
.ct-sec-title::before {
  content: ''; width: 3px; height: 12px;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}
.ct-sec-all { font-family: var(--ff-mono); font-size: 10px; color: var(--accent2); cursor: pointer; }
.ct-sec-all:hover { text-decoration: underline; }

/* ============================================================
   NEWS FEED
   ============================================================ */
.ct-news-feed { display: flex; flex-direction: column; }
.ct-ni {
  display: grid; grid-template-columns: 1fr 90px; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s; align-items: start;
}
.ct-ni:hover { background: var(--bg4); }
.ct-ni.large { grid-template-columns: 1fr 112px; }
.ct-ni-cat { font-family: var(--ff-mono); font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.ct-ni-cat.btc  { color: var(--btc); }
.ct-ni-cat.eth  { color: var(--eth); }
.ct-ni-cat.sol  { color: var(--sol); }
.ct-ni-cat.defi { color: var(--green); }
.ct-ni-cat.reg  { color: var(--red); }
.ct-ni-cat.ai   { color: var(--cyan); }
.ct-ni-cat.news { color: var(--text3); }
.ct-ni-title { font-family: var(--ff-head); font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.32; margin-bottom: 6px; }
.ct-ni-title:hover { color: var(--accent2); }
.ct-ni-meta { display: flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 9px; color: var(--text3); flex-wrap: wrap; }
.ct-ni-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border2); flex-shrink: 0; }
.ct-ni-views { display: flex; align-items: center; gap: 3px; }
.ct-ni-img {
  border-radius: var(--r); overflow: hidden; background: var(--surface);
  height: 62px; flex-shrink: 0;
}
.ct-ni-img.tall { height: 76px; }
.ct-ni-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   LONGREADS GRID
   ============================================================ */
.ct-longreads {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
}
.ct-lr-card {
  background: var(--bg3); padding: 16px 18px;
  cursor: pointer; transition: background .15s;
}
.ct-lr-card:hover { background: var(--bg4); }
.ct-lr-img {
  width: 100%; height: 80px; border-radius: var(--r);
  background: var(--surface); margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ct-lr-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-lr-badge {
  font-family: var(--ff-mono); font-size: 8px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 3px;
  margin-bottom: 8px; display: inline-block;
}
.ct-lr-title { font-family: var(--ff-head); font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 6px; }
.ct-lr-title:hover { color: var(--accent2); }
.ct-lr-meta { font-family: var(--ff-mono); font-size: 9px; color: var(--text3); }

/* ============================================================
   SIDEBAR COMPONENTS
   ============================================================ */
.ct-sidebar { background: var(--bg2); display: flex; flex-direction: column; }
.ct-widget { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ct-widget:last-child { border-bottom: none; }
.ct-widget-title {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text3);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.ct-widget-title::before { content: ''; width: 3px; height: 10px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }

/* Editor's pick */
.ct-ep-item {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: opacity .15s;
}
.ct-ep-item:first-child { padding-top: 0; }
.ct-ep-item:last-child { border-bottom: none; padding-bottom: 0; }
.ct-ep-item:hover { opacity: .8; }
.ct-ep-label { font-family: var(--ff-mono); font-size: 8px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.ct-ep-title { font-family: var(--ff-head); font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 3px; }
.ct-ep-meta { font-family: var(--ff-mono); font-size: 9px; color: var(--text3); }

/* Rates */
.ct-rate-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.ct-rate-row:last-child { border-bottom: none; }
.ct-rate-coin { display: flex; align-items: center; gap: 8px; }
.ct-rate-icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 9px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.ct-rate-icon.btc { background: var(--btc); }
.ct-rate-icon.eth { background: var(--eth); }
.ct-rate-icon.bnb { background: #F3BA2F; }
.ct-rate-icon.xrp { background: var(--xrp); }
.ct-rate-icon.ada { background: #0033AD; }
.ct-rate-icon.sol { background: var(--sol); }
.ct-rate-name { font-size: 11px; font-weight: 500; color: var(--text2); line-height: 1.2; }
.ct-rate-sym  { font-family: var(--ff-mono); font-size: 9px; color: var(--text3); }
.ct-rate-right { text-align: right; }
.ct-rate-price { font-family: var(--ff-mono); font-size: 11px; color: var(--text); font-weight: 500; }
.ct-rate-chg { font-family: var(--ff-mono); font-size: 9px; }
.ct-rate-chg.up { color: var(--green); }
.ct-rate-chg.dn { color: var(--red); }

/* FM block */
.ct-fm-block {
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a1440, #0d1230);
  border-bottom: 1px solid var(--border);
}
.ct-fm-label { font-family: var(--ff-mono); font-size: 9px; color: var(--accent2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.ct-fm-title { font-family: var(--ff-head); font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.ct-fm-sub { font-size: 11px; color: rgba(255,255,255,.35); margin-bottom: 10px; }
.ct-fm-btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600; font-family: var(--ff-mono);
  padding: 6px 14px; border-radius: 5px; letter-spacing: .04em; cursor: pointer;
  transition: background .2s;
}
.ct-fm-btn:hover { background: var(--accent2); }

/* Tags */
.ct-tags-wrap { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ct-tag-pill {
  font-family: var(--ff-mono); font-size: 9px;
  background: var(--surface); color: var(--text3);
  border: 1px solid var(--border2);
  padding: 3px 9px; border-radius: 20px; cursor: pointer; transition: all .2s;
}
.ct-tag-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   COIN WIDGET (sidebar on single.php)
   ============================================================ */
.ct-coin-sidebar { background: var(--bg2); }
.ct-cw-header { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
.ct-cw-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ct-cw-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.ct-cw-icon.btc { background: var(--btc); }
.ct-cw-icon.eth { background: var(--eth); }
.ct-cw-icon.sol { background: var(--sol); }
.ct-cw-icon.xrp { background: var(--xrp); }
.ct-cw-icon.bnb { background: #F3BA2F; }
.ct-cw-icon.doge { background: #C2A633; }
.ct-cw-icon.ada { background: #0033AD; }
.ct-cw-icon.default { background: var(--accent); }
.ct-cw-coin-name { font-family: var(--ff-head); font-size: 13px; font-weight: 700; color: var(--text); }
.ct-cw-coin-sym { font-family: var(--ff-mono); font-size: 10px; color: var(--text3); }
.ct-cw-price-row { display: flex; align-items: baseline; gap: 10px; }
.ct-cw-price { font-family: var(--ff-head); font-size: 24px; font-weight: 900; color: var(--text); line-height: 1; }
.ct-cw-chg { font-family: var(--ff-mono); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.ct-cw-chg.up { background: rgba(34,197,94,.15); color: var(--green); }
.ct-cw-chg.dn { background: rgba(255,77,77,.12); color: var(--red); }

.ct-cw-chart { height: 110px; background: var(--bg); position: relative; overflow: hidden; }
.ct-cw-chart svg { width: 100%; height: 100%; }
.ct-cw-chart-label {
  position: absolute; bottom: 5px; left: 10px;
  font-family: var(--ff-mono); font-size: 8px; color: var(--text4); letter-spacing: .07em; text-transform: uppercase;
}

.ct-cw-stats { display: grid; grid-template-columns: 1fr 1fr; }
.ct-cw-stat { padding: 9px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ct-cw-stat:nth-child(2n) { border-right: none; }
.ct-cw-stat:nth-last-child(-n+2) { border-bottom: none; }
.ct-cw-stat-label { font-family: var(--ff-mono); font-size: 8px; color: var(--text3); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px; }
.ct-cw-stat-val { font-family: var(--ff-mono); font-size: 12px; font-weight: 500; color: var(--text); }

.ct-cw-related { padding: 12px 14px; }
.ct-cw-related-head {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text3);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.ct-cw-related-head::before { content: ''; width: 3px; height: 10px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.ct-cw-ri {
  display: flex; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: opacity .15s;
}
.ct-cw-ri:first-child { padding-top: 0; }
.ct-cw-ri:last-child { border-bottom: none; padding-bottom: 0; }
.ct-cw-ri:hover { opacity: .75; }
.ct-cw-ri-n {
  font-family: var(--ff-head); font-size: 15px; font-weight: 900;
  color: var(--border2); flex-shrink: 0; line-height: 1.2; width: 16px;
}
.ct-cw-ri-title { font-family: var(--ff-head); font-size: 11px; font-weight: 600; color: var(--text); line-height: 1.35; display: block; }
.ct-cw-ri-title:hover { color: var(--accent2); }
.ct-cw-ri-time { font-family: var(--ff-mono); font-size: 9px; color: var(--text3); margin-top: 2px; display: block; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.ct-single-layout {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px;
  border-bottom: 1px solid var(--border);
}
.ct-single-main { padding: 28px 32px; border-right: 1px solid var(--border); min-width: 0; }
.ct-single-aside { position: sticky; top: 40px; height: fit-content; }

.ct-progress-bar { height: 2px; background: var(--border); position: fixed; top: 40px; left: 0; right: 0; z-index: 199; }
.ct-progress-fill { height: 2px; background: var(--accent); width: 0; transition: width .1s linear; }

.ct-breadcrumb { font-family: var(--ff-mono); font-size: 10px; color: var(--text3); margin-bottom: 16px; }
.ct-breadcrumb a { color: var(--accent2); }
.ct-breadcrumb a:hover { text-decoration: underline; }

.ct-s-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ct-s-cat-badge {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(108,99,255,.15); color: var(--accent2);
  padding: 3px 10px; border-radius: 3px; border: 1px solid rgba(108,99,255,.3);
}

.ct-s-title {
  font-family: var(--ff-head);
  font-size: 28px; font-weight: 900;
  color: var(--text); line-height: 1.2; letter-spacing: -.5px;
  margin-bottom: 14px;
}
.ct-s-excerpt {
  font-size: 15px; color: var(--text2); line-height: 1.7;
  border-left: 3px solid var(--accent); padding-left: 16px;
  margin-bottom: 18px;
}
.ct-s-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.ct-s-author { display: flex; align-items: center; gap: 9px; }
.ct-s-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--accent3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ct-s-author-name { font-size: 12px; font-weight: 600; color: var(--text2); line-height: 1.2; }
.ct-s-author-role { font-family: var(--ff-mono); font-size: 9px; color: var(--text3); }
.ct-s-meta-right { display: flex; align-items: center; gap: 10px; }
.ct-s-date, .ct-s-read, .ct-s-views { font-family: var(--ff-mono); font-size: 10px; color: var(--text3); letter-spacing: .03em; }

.ct-s-featured { margin-bottom: 22px; border-radius: 8px; overflow: hidden; }
.ct-s-featured img { width: 100%; border-radius: 8px; }

/* Article content */
.ct-s-content { font-size: 15px; line-height: 1.8; color: var(--text2); }
.ct-s-content h2 { font-family: var(--ff-head); font-size: 20px; font-weight: 700; margin: 30px 0 12px; color: var(--text); line-height: 1.3; }
.ct-s-content h3 { font-family: var(--ff-head); font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.ct-s-content p { margin-bottom: 16px; }
.ct-s-content a { color: var(--accent2); border-bottom: 1px solid rgba(139,127,255,.3); }
.ct-s-content a:hover { border-bottom-color: var(--accent2); }
.ct-s-content blockquote {
  font-style: italic; font-size: 16px;
  border-left: 3px solid var(--accent); padding: 14px 18px;
  background: var(--surface); border-radius: 0 var(--r) var(--r) 0;
  margin: 22px 0; color: var(--text);
}
.ct-s-content ul, .ct-s-content ol { padding-left: 22px; margin-bottom: 16px; }
.ct-s-content li { margin-bottom: 5px; }
.ct-s-content img { border-radius: var(--r); margin: 18px 0; }
.ct-s-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13px; }
.ct-s-content th { background: var(--surface); padding: 9px 12px; text-align: left; font-weight: 600; border: 1px solid var(--border); color: var(--text); }
.ct-s-content td { padding: 8px 12px; border: 1px solid var(--border); color: var(--text2); }
.ct-s-content tr:nth-child(even) td { background: var(--bg4); }
.ct-s-content code { font-family: var(--ff-mono); font-size: 13px; background: var(--surface); color: var(--accent2); padding: 2px 6px; border-radius: 3px; }
.ct-s-content pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; overflow-x: auto; margin: 18px 0; }
.ct-s-content pre code { background: none; padding: 0; }

/* Post tags */
.ct-s-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.ct-s-tag {
  font-family: var(--ff-mono); font-size: 10px;
  background: var(--surface); color: var(--text3);
  border: 1px solid var(--border2);
  padding: 4px 10px; border-radius: 3px; transition: all .2s;
}
.ct-s-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Share */
.ct-s-share { display: flex; align-items: center; gap: 10px; margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--border); }
.ct-s-share-label { font-family: var(--ff-mono); font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.ct-s-share-btns { display: flex; gap: 7px; }
.ct-s-share-btn {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 500;
  padding: 6px 13px; border-radius: 4px; letter-spacing: .03em;
  border: 1px solid var(--border); color: var(--text3); transition: all .2s;
}
.ct-s-share-btn.tg:hover  { background: #229ED9; color: #fff; border-color: #229ED9; }
.ct-s-share-btn.tw:hover  { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }
.ct-s-share-btn.fb:hover  { background: #4267B2; color: #fff; border-color: #4267B2; }

/* Author box */
.ct-s-author-box {
  display: flex; gap: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin: 24px 0;
}
.ct-s-author-box img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--accent3); flex-shrink: 0; }
.ct-s-author-box h3 { font-family: var(--ff-head); font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.ct-s-author-box p { font-size: 12px; color: var(--text3); line-height: 1.6; margin-bottom: 7px; }
.ct-s-author-soc { display: flex; gap: 10px; }
.ct-s-author-soc a { font-family: var(--ff-mono); font-size: 10px; color: var(--accent2); }

/* Post nav */
.ct-s-postnav { margin: 22px 0; }
.ct-s-postnav .nav-links { display: flex; justify-content: space-between; gap: 12px; }
.ct-s-postnav .nav-previous, .ct-s-postnav .nav-next { flex: 1; }
.ct-s-postnav a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r); transition: border-color .2s;
}
.ct-s-postnav a:hover { border-color: var(--accent); }
.ct-s-postnav .nav-subtitle { font-family: var(--ff-mono); font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; }
.ct-s-postnav .nav-title { font-family: var(--ff-head); font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }

/* ============================================================
   ARCHIVE
   ============================================================ */
.ct-archive-hdr { padding: 28px var(--pad) 18px; max-width: var(--max-w); margin: 0 auto; border-bottom: 1px solid var(--border); }
.ct-archive-hdr h1 { font-family: var(--ff-head); font-size: 26px; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.ct-archive-hdr p { font-size: 13px; color: var(--text3); }
.ct-archive-body { max-width: var(--max-w); margin: 0 auto; }

/* ============================================================
   PAGINATION
   ============================================================ */
.ct-pagination { padding: 22px; text-align: center; border-top: 1px solid var(--border); }
.ct-pagination .nav-links { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.ct-pagination a, .ct-pagination span {
  font-family: var(--ff-mono); font-size: 11px;
  padding: 7px 13px; border: 1px solid var(--border);
  border-radius: 4px; color: var(--text3); transition: all .2s;
}
.ct-pagination a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.ct-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.ct-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ct-footer-logo { font-family: var(--ff-head); font-size: 17px; font-weight: 900; color: var(--text4); }
.ct-footer-logo span { color: var(--border2); }
.ct-footer-logo a { color: inherit; }
.ct-footer-copy { font-family: var(--ff-mono); font-size: 9px; color: var(--text4); letter-spacing: .05em; }
.ct-footer-links { display: flex; gap: 16px; }
.ct-footer-links a { font-family: var(--ff-mono); font-size: 9px; color: var(--text4); }
.ct-footer-links a:hover { color: var(--accent2); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { padding: 24px 0; }
.comments-title { font-family: var(--ff-head); font-size: 18px; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.comment-list { list-style: none; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-author img { border-radius: 50%; border: 1px solid var(--border); }
.comment-author b { font-size: 12px; font-weight: 600; color: var(--text2); }
.comment-metadata { font-family: var(--ff-mono); font-size: 9px; color: var(--text3); }
.comment-content p { font-size: 13px; line-height: 1.7; color: var(--text3); margin-top: 8px; }
.comment-form label { display: block; font-family: var(--ff-mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; color: var(--text3); margin: 12px 0 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%; padding: 9px 12px;
  font-size: 13px; font-family: var(--ff-body);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text);
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input[type="submit"] {
  margin-top: 12px; background: var(--accent); color: #fff; border: none;
  padding: 10px 22px; border-radius: var(--r); cursor: pointer;
  font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; transition: background .2s;
}
.comment-form input[type="submit"]:hover { background: var(--accent2); }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.searchform { display: flex; gap: 0; }
.searchform input[type="text"],
.searchform input[type="search"] {
  flex: 1; padding: 7px 12px; font-size: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-right: none; border-radius: var(--r) 0 0 var(--r);
  color: var(--text); font-family: var(--ff-body);
}
.searchform button {
  padding: 7px 14px; background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--ff-mono); font-size: 10px; font-weight: 500; cursor: pointer;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.ct-hero-featured { animation: fadeUp .4s ease both; }
.ct-hero-stack    { animation: fadeUp .4s .08s ease both; }
.ct-news-feed .ct-ni:nth-child(1) { animation: fadeUp .35s .05s ease both; opacity: 0; animation-fill-mode: both; }
.ct-news-feed .ct-ni:nth-child(2) { animation: fadeUp .35s .10s ease both; opacity: 0; animation-fill-mode: both; }
.ct-news-feed .ct-ni:nth-child(3) { animation: fadeUp .35s .15s ease both; opacity: 0; animation-fill-mode: both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1060px) {
  .ct-two-col { grid-template-columns: 1fr 260px; }
  .ct-single-layout { grid-template-columns: 1fr 260px; }
  .ct-hero { grid-template-columns: 1fr 220px; }
}

@media (max-width: 820px) {
  .ct-hero { grid-template-columns: 1fr; }
  .ct-hero-stack { flex-direction: row; flex-wrap: wrap; border-top: 1px solid var(--border); }
  .ct-stack-item { flex: 1 1 48%; border-right: 1px solid var(--border); }
  .ct-two-col { grid-template-columns: 1fr; }
  .ct-main-col { border-right: none; }
  .ct-single-layout { grid-template-columns: 1fr; }
  .ct-single-aside { position: relative; top: 0; border-top: 1px solid var(--border); }
  .ct-longreads { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --pad: 14px; }
  .ct-topbar { flex-wrap: wrap; height: auto; padding: 6px var(--pad); }
  .ct-ticker-bar { display: none; }
  .ct-masthead-center { display: none; }
  .ct-masthead-right { display: none; }
  .ct-logo-name { font-size: 17px; }
  .ct-s-title { font-size: 20px; }
  .ct-ni { grid-template-columns: 1fr; }
  .ct-ni-img { display: none; }
}
