/*
 * CryptoToday — Core Theme CSS (loaded first, highest priority)
 * All critical layout, light/dark, nav, overlay rules here.
 */

/* ============================================================
   1. GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Barlow+Condensed:wght@600;700;800&family=Roboto+Mono:wght@400;500&display=swap');

/* ============================================================
   2. DARK TOKENS (default)
   ============================================================ */
:root {
  --gold:         #D4A017;
  --gold-light:   #F0C040;
  --gold-dim:     #8a6610;
  --red:          #E53E3E;
  --green:        #38A169;
  --blue:         #1a6fd4;

  --bg:           #0A0B0D;
  --bg-deep:      #0A0B0D;
  --bg-card:      #111318;
  --bg-card2:     #161920;
  --bg-stripe:    #0D0F13;

  --border:       rgba(212,160,23,0.18);
  --border-dim:   rgba(255,255,255,0.07);

  --text:         #E8E8E8;
  --text-muted:   #888;
  --text-dim:     #555;
  --text-sub:     #aaa;

  --shadow:       0 4px 30px rgba(0,0,0,0.5);
  --logo-text:    #fff;
  --transition:   0.2s ease;
  --radius:       0px;
}

/* ============================================================
   3. LIGHT TOKENS
   ============================================================ */
html[data-theme="light"] {
  --gold:         #B8860B;
  --gold-light:   #D4A017;
  --gold-dim:     #8a6610;
  --red:          #C53030;
  --green:        #276749;
  --blue:         #1558b0;

  --bg:           #F4F3EE;
  --bg-deep:      #F4F3EE;
  --bg-card:      #FFFFFF;
  --bg-card2:     #F0EFE9;
  --bg-stripe:    #EAEAE4;

  --border:       rgba(184,134,11,0.22);
  --border-dim:   rgba(0,0,0,0.09);

  --text:         #1A1A1A;
  --text-muted:   #666;
  --text-dim:     #999;
  --text-sub:     #444;

  --shadow:       0 2px 16px rgba(0,0,0,0.1);
  --logo-text:    #1A1A1A;
}

/* ============================================================
   4. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   5. TOPBAR
   ============================================================ */
.topbar {
  background: var(--bg-stripe);
  border-bottom: 1px solid var(--border-dim);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  transition: background-color 0.25s;
}
.topbar__links { display: flex; gap: 16px; }
.topbar__links a { font-size: 12.5px; color: var(--text-dim); transition: color 0.2s; }
.topbar__links a:hover { color: var(--gold); }
.topbar__right { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-muted); }
.topbar__sep { color: var(--border-dim); }

/* ============================================================
   6. THEME TOGGLE BUTTON
   ============================================================ */
.ct-theme-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  padding: 4px 10px;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.ct-theme-btn:hover { border-color: var(--gold); color: var(--gold); }

.ct-theme-track {
  display: inline-block;
  width: 28px; height: 14px;
  background: rgba(128,128,128,0.3);
  border-radius: 7px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s;
}
.ct-theme-track.on { background: var(--gold); }
.ct-theme-thumb {
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ct-theme-track.on .ct-theme-thumb { transform: translateX(14px); }

/* ============================================================
   7. BREAKING BAR
   ============================================================ */
.breaking-bar {
  background: var(--red);
  display: flex; align-items: center;
  height: 40px; overflow: hidden;
}
.breaking-bar__label {
  background: rgba(0,0,0,0.2);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0; color: #fff;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.breaking-bar__scroll { overflow: hidden; flex: 1; }
.breaking-bar__track {
  display: flex;
  animation: ct-ticker 45s linear infinite;
  white-space: nowrap;
}
.breaking-bar__track:hover { animation-play-state: paused; }
.breaking-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 28px; font-size: 12.5px; font-weight: 600;
  color: #fff; text-decoration: none; transition: color 0.2s;
}
.breaking-item:hover { color: #ffe; }
.breaking-sep { color: rgba(255,255,255,0.3); }
.breaking-bar__counter {
  flex-shrink: 0; padding: 0 14px;
  border-left: 1px solid rgba(255,255,255,0.15);
  font-size: 10.5px; color: rgba(255,255,255,0.7);
  white-space: nowrap; display: flex; align-items: center; gap: 5px;
  font-family: 'Barlow Condensed', sans-serif;
}
.pulse-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor;
  animation: ct-pulse 1.2s ease-in-out infinite;
}
@keyframes ct-ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes ct-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* ============================================================
   8. SITE HEADER
   ============================================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 500;
  box-shadow: var(--shadow);
  transition: background-color 0.25s, border-color 0.25s;
}
.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px; height: 70px;
  border-bottom: none;
}
.site-header__left  { display: flex; align-items: center; gap: 8px; }
.site-header__center { display: flex; justify-content: center; align-items: center; }
.site-header__right { display: flex; align-items: center; gap: 10px; }

/* Logo — Gold Bar (03) */
.ct-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
  transition: opacity 0.2s;
}
.ct-logo:hover { opacity: 0.82; text-decoration: none; }
.ct-logo svg { display: block; overflow: visible; }
/* Light mode: CRYPTO text goes dark */
.ct-logo-crypto { fill: #ffffff; }
html[data-theme="light"] .ct-logo-crypto { fill: #111111; }

/* Header actions */
.btn-icon {
  background: transparent; border: 1px solid var(--border-dim);
  color: var(--text-muted); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }
.btn-subscribe {
  background: var(--gold); color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 18px; border: none; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-subscribe:hover { background: var(--gold-light); color: #000; }

/* ============================================================
   9. PRIMARY NAVIGATION
   ============================================================ */
.primary-nav {
  display: flex; align-items: stretch;
  justify-content: flex-start;
  padding: 0 28px; height: 46px;
  background: var(--bg);
  border-top: 1px solid var(--border-dim);
  border-bottom: 2px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
  transition: background-color 0.25s;
  -webkit-overflow-scrolling: touch;
}
.primary-nav::-webkit-scrollbar { display: none; }

.nav-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13.5px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 14px; height: 48px;
  display: inline-flex; align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap; text-decoration: none; cursor: pointer;
}
.nav-item:hover, .nav-item.active {
  color: var(--gold); border-bottom-color: var(--gold);
}
.nav-breaking {
  margin-left: auto; flex-shrink: 0;
  background: var(--red); color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0 15px; height: 44px;
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}

/* ============================================================
   10. SEARCH OVERLAY
   ============================================================ */
#ct-search-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(5,5,8,0.95);
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
#ct-search-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.search-overlay__inner {
  width: 100%; max-width: 620px;
  padding: 0 24px; position: relative;
}
.search-overlay__label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 12px;
}
#ct-search-close {
  position: absolute; top: -56px; right: 24px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 26px; cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
#ct-search-close:hover { color: #fff; }
.search-form { display: flex; }
.search-form__input {
  flex: 1; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15); border-right: none;
  color: #fff; padding: 13px 18px; font-size: 16px;
  outline: none; transition: border-color 0.2s;
}
.search-form__input::placeholder { color: rgba(255,255,255,0.3); }
.search-form__input:focus { border-color: var(--gold); }
.search-form__btn {
  background: var(--gold); border: none; color: #000;
  padding: 13px 20px; font-size: 16px; cursor: pointer;
  transition: background 0.2s;
}
.search-form__btn:hover { background: var(--gold-light); }

/* ============================================================
   11. HERO GRID
   ============================================================ */
.hero-section { padding: 24px 0 0; }
.hero-section__header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before { content:''; width:20px; height:2px; background:var(--gold); }
.section-line { flex:1; height:1px; background:var(--border-dim); }

.hero-grid {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  gap: 3px !important;
}
.hero-main {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  display: block; min-height: 440px;
}
.hero-main__img, .hero-main img.wp-post-image {
  width: 100% !important; height: 460px !important;
  object-fit: cover !important; display: block !important;
  transition: transform 0.4s ease;
}
.hero-main:hover .hero-main__img,
.hero-main:hover img.wp-post-image { transform: scale(1.02); }

.hero-main__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 25%, rgba(0,0,0,0.92) 100%);
}
.hero-main__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 28px; z-index: 2;
}
.hero-main__title {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 36px; line-height: 1.15;
  color: #fff; margin: 10px 0 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.85);
}
.hero-main__title a { color: #fff; }
.hero-main__title a:hover { color: var(--gold-light); }
.hero-main__excerpt {
  font-size: 16px; color: rgba(255,255,255,0.82);
  line-height: 1.55; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hero-side {
  display: flex !important; flex-direction: column !important;
  gap: 3px !important;
}
.hero-side-card {
  flex: 1; position: relative; overflow: hidden;
  background: var(--bg-card); display: block;
  min-height: 218px; transition: filter 0.2s;
}
.hero-side-card:hover { filter: brightness(1.07); }
.hero-side-card__img, .hero-side-card img.wp-post-image {
  width: 100% !important; height: 100% !important;
  min-height: 218px !important;
  object-fit: cover !important; display: block !important;
  transition: transform 0.35s;
}
.hero-side-card:hover .hero-side-card__img,
.hero-side-card:hover img.wp-post-image { transform: scale(1.04); }
.hero-side-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 15%, rgba(0,0,0,0.88) 100%);
}
.hero-side-card__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 14px; z-index: 2;
}
.hero-side-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 18px; line-height: 1.25; color: #fff;
  margin-top: 6px;
}
.hero-side-card__title a { color: #fff; }

/* ============================================================
   12. BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 8px; line-height: 1.6;
}
.badge-gold  { background: var(--gold);  color: #000; }
.badge-red   { background: var(--red);   color: #fff; }
.badge-blue  { background: var(--blue);  color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }

/* ============================================================
   13. ART META
   ============================================================ */
.art-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 7px; font-size: 13px;
}
.art-meta--light { color: rgba(255,255,255,0.5); }
.art-meta--dark  { color: var(--text-dim); }
.art-meta a { color: var(--gold); }

/* ============================================================
   14. BLOCK HEADERS
   ============================================================ */
.block-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border-dim);
  position: relative;
}
.block-header::after {
  content:''; position:absolute; bottom:-2px; left:0;
  width:50px; height:2px; background:var(--gold);
}
.block-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 21px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.view-all {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s; text-decoration: none; cursor: pointer;
}
.view-all:hover { gap: 8px; color: var(--gold); }
.gradient-line {
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 24px 0;
}

/* ============================================================
   15. NEWS CARD GRID
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.news-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit;
}
.news-card:hover {
  border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit;
}
.news-card__img-wrap, .news-card__image-wrap { height: 190px; overflow: hidden; position: relative; }
.news-card__img, .news-card__img-wrap img, .news-card__image-wrap img {
  width: 100%; height: 155px; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.news-card:hover .news-card__img,
.news-card:hover .news-card__img-wrap img,
.news-card:hover .news-card__image-wrap img { transform: scale(1.05); }
.news-card__body {
  padding: 14px 15px; flex: 1; display: flex; flex-direction: column;
}
.news-card__title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 17px; line-height: 1.35;
  color: var(--text); margin: 8px 0 auto;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.news-card:hover .news-card__title { color: var(--gold); }
.news-card__meta {
  display: flex; gap: 7px;
  font-size: 13px; color: var(--text-dim);
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid var(--border-dim); flex-wrap: wrap;
}

/* ============================================================
   16. TRENDING LIST
   ============================================================ */
.trending-list { display: flex; flex-direction: column; }
.trending-item {
  display: grid; grid-template-columns: 46px 1fr 80px;
  gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border-dim);
  cursor: pointer; transition: background 0.15s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: rgba(212,160,23,0.04); }
.trend-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 26px;
  color: rgba(255,255,255,0.07); line-height: 1; text-align: center;
}
html[data-theme="light"] .trend-num { color: rgba(0,0,0,0.07); }
.trend-num.hi { color: rgba(212,160,23,0.4); }
.trend-title {
  font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s;
}
.trending-item a { color: inherit; text-decoration: none; }
.trending-item:hover .trend-title { color: var(--gold); }
.trend-sub { font-size: 13px; color: var(--text-dim); display: flex; gap: 5px; margin-top: 4px; }
.trend-views {
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px;
  color: var(--text-dim); text-align: right; white-space: nowrap;
}

/* ============================================================
   17. MORE STORIES LIST
   ============================================================ */
.more-stories-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--border-dim);
  background: var(--bg-card); overflow: hidden;
}
.more-story-item {
  display: grid; grid-template-columns: 108px 1fr 30px;
  align-items: center; border-bottom: 1px solid var(--border-dim);
  text-decoration: none; color: inherit;
  transition: background 0.15s; min-height: 80px;
}
.more-story-item:last-child { border-bottom: none; }
.more-story-item:hover { background: rgba(212,160,23,0.04); color: inherit; }
.more-story-item__thumb {
  width: 108px; height: 80px; overflow: hidden; flex-shrink: 0;
  border-right: 1px solid var(--border-dim);
}
.more-story-item__thumb img {
  width: 100%; height: 80px; object-fit: cover; display: block;
  transition: transform 0.35s;
}
.more-story-item:hover .more-story-item__thumb img { transform: scale(1.06); }
.more-story-item__body { padding: 10px 14px; }
.more-story-item__title {
  font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px;
  transition: color 0.15s;
}
.more-story-item:hover .more-story-item__title { color: var(--gold); }
.more-story-item__meta { font-size: 13px; color: var(--text-dim); display: flex; gap: 6px; margin-top: 5px; }
.more-story-item__arrow {
  color: var(--gold-dim); font-size: 18px; padding-right: 14px;
  text-align: center; transition: color 0.15s, transform 0.15s;
}
.more-story-item:hover .more-story-item__arrow { color: var(--gold); transform: translateX(3px); }

/* ============================================================
   18. EDITOR'S PICK
   ============================================================ */
.editors-pick {
  background: var(--bg-stripe); border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--border-dim); padding: 28px 0;
  transition: background-color 0.25s;
}
.editors-pick__inner {
  display: grid; grid-template-columns: 260px 1fr 1fr;
  gap: 20px; align-items: start;
}
.editors-pick__label-col {
  display: flex; flex-direction: column; gap: 12px;
  padding-right: 20px; border-right: 1px solid var(--border-dim);
}
.editors-pick__headline {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 23px; line-height: 1.2; color: var(--text);
}
.editors-pick__headline em { color: var(--gold); font-style: normal; }
.editors-pick__desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.ep-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  overflow: hidden; display: block;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit;
}
.ep-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.ep-card__img-wrap { height: 140px; overflow: hidden; position: relative; display: block; }
.ep-card__img-wrap img { width:100%; height:140px; object-fit:cover; display:block; transition:transform .4s; }
.ep-card:hover .ep-card__img-wrap img { transform: scale(1.05); }
.ep-card__gradient { position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.3),transparent); }
.ep-card__body { padding: 14px 16px; }
.ep-card__title {
  font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--text) !important;
  margin: 8px 0 10px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.ep-card:hover .ep-card__title { color: var(--gold); }
.ep-card__meta { font-size: 13px; color: var(--text-dim); display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   19. FEATURE STRIP
   ============================================================ */
.feature-strip {
  background: var(--bg-stripe); border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim); padding: 38px 0; margin-bottom: 36px;
  transition: background-color 0.25s;
}
.feature-strip__inner { display:grid; grid-template-columns:1fr 380px; gap:36px; align-items:center; }
.feature-strip__eyebrow {
  font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:13px;
  letter-spacing:2px; text-transform:uppercase; color:var(--gold);
  margin-bottom:14px; display:flex; align-items:center; gap:10px;
}
.feature-strip__eyebrow::before { content:''; width:28px; height:1px; background:var(--gold); }
.feature-strip__title {
  font-family:'Playfair Display',serif; font-weight:900; font-size:36px;
  line-height:1.12; color:var(--text); margin-bottom:16px;
}
.feature-strip__excerpt { font-size:16px; color:var(--text-muted); line-height:1.7; margin-bottom:22px; }
.feature-strip__img-wrap { height:240px; overflow:hidden; }
.feature-strip__img-wrap img { width:100%; height:240px; object-fit:cover; display:block; }

/* ============================================================
   20. ANALYSIS GRID
   ============================================================ */
.analysis-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.analysis-card {
  background:var(--bg-card); border:1px solid var(--border-dim);
  overflow:hidden; display:block;
  transition:border-color .2s,box-shadow .2s; text-decoration:none; color:inherit;
}
.analysis-card:hover { border-color:var(--gold-dim); box-shadow:var(--shadow); color:inherit; }
.analysis-card__img-wrap { height:165px; overflow:hidden; }
.analysis-card__img-wrap img { width:100%; height:165px; object-fit:cover; display:block; transition:transform .4s; }
.analysis-card:hover .analysis-card__img-wrap img { transform:scale(1.04); }
.analysis-card__body { padding:15px 16px; }
.analysis-card__title {
  font-weight:700; font-size:17px; line-height:1.3; color:var(--text);
  margin:9px 0 8px; display:-webkit-box; -webkit-line-clamp:3;
  -webkit-box-orient:vertical; overflow:hidden; transition:color .2s;
}
.analysis-card:hover .analysis-card__title { color:var(--gold-light); }
.analysis-card__excerpt { font-size:14px; color:var(--text-muted); line-height:1.6; }

/* ============================================================
   21. CONTENT LAYOUT
   ============================================================ */
.content-wrapper {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 28px; padding: 32px 0; align-items: start;
}
.content-area { min-width: 0; }
.content-block { margin-bottom: 36px; }

/* ============================================================
   22. SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 120px; }
.widget {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  margin-bottom: 20px; overflow: hidden;
  transition: background-color 0.25s, border-color 0.25s;
}
.widget__hdr {
  padding: 10px 15px; border-bottom: 1px solid var(--border-dim);
  display: flex; align-items: center; justify-content: space-between;
}
.widget__hdr--gold { background: var(--gold); }
.widget__hdr--gold .widget-title { color: #000; }
.widget-title {
  font-family:'Barlow Condensed',sans-serif; font-weight:800;
  font-size:12px; letter-spacing:1.5px; text-transform:uppercase; color:var(--gold);
}
.sidebar-post {
  display:flex; gap:10px; padding:11px 14px;
  border-bottom:1px solid var(--border-dim);
  text-decoration:none; color:inherit; transition:background .15s;
}
.sidebar-post:last-child { border-bottom:none; }
.sidebar-post:hover { background:rgba(212,160,23,0.05); color:inherit; }
.sidebar-post__num {
  font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:20px;
  color:var(--gold); opacity:.4; flex-shrink:0; line-height:1; min-width:26px;
}
.sidebar-post__title {
  font-size:13px; font-weight:600; line-height:1.3; color:var(--text);
  margin-bottom:3px; transition:color .2s;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.sidebar-post:hover .sidebar-post__title { color:var(--gold); }
.sidebar-post__meta { font-size:10.5px; color:var(--text-dim); display:flex; gap:5px; }

/* Newsletter */
.newsletter-box {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 20px 16px; margin-bottom: 20px; text-align: center;
  transition: background-color 0.25s;
}
.newsletter-box__title {
  font-family:'Playfair Display',serif; font-size:19px; font-weight:700; color:var(--text); margin-bottom:5px;
}
.newsletter-box__sub { font-size:12px; color:var(--text-muted); margin-bottom:14px; line-height:1.5; }
.newsletter-box input[type="email"] {
  background:rgba(128,128,128,0.1); border:1px solid var(--border-dim); color:var(--text);
  padding:9px 13px; width:100%; font-size:13px; margin-bottom:9px;
  outline:none; transition:border-color .2s;
}
.newsletter-box input:focus { border-color:var(--gold); }
.newsletter-box input::placeholder { color:var(--text-dim); }
.newsletter-box__btn {
  background:var(--gold); color:#000; width:100%; padding:9px; border:none; cursor:pointer;
  font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:13px;
  letter-spacing:1.5px; text-transform:uppercase; transition:background .2s;
}
.newsletter-box__btn:hover { background:var(--gold-light); }
.newsletter-box__note { font-size:10px; color:var(--text-dim); margin-top:8px; }

/* Tags */
.tags-cloud { display:flex; flex-wrap:wrap; gap:6px; padding:12px; }
.tag {
  background:var(--bg-stripe); border:1px solid var(--border-dim); color:var(--text-muted);
  font-size:11px; padding:4px 8px; cursor:pointer;
  font-family:'Barlow Condensed',sans-serif; font-weight:600; letter-spacing:.5px; text-transform:uppercase;
  transition:background .15s,color .15s,border-color .15s; text-decoration:none; display:inline-block;
}
.tag:hover { background:rgba(212,160,23,.1); color:var(--gold); border-color:var(--gold-dim); }

/* ============================================================
   23. BTN OUTLINE
   ============================================================ */
.btn-outline {
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--gold); color:var(--gold);
  font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:12px;
  letter-spacing:1.5px; text-transform:uppercase;
  padding:9px 20px; cursor:pointer; background:transparent;
  transition:background .2s,color .2s; text-decoration:none;
}
.btn-outline:hover { background:var(--gold); color:#000; }

/* ============================================================
   24. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-stripe); border-top: 1px solid var(--border);
  padding: 44px 0 20px; margin-top: 20px;
  transition: background-color 0.25s;
}
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:36px; margin-bottom:36px; }
.footer-brand__tagline { font-size:12.5px; color:var(--text-muted); line-height:1.6; margin:12px 0 16px; }
.social-links { display:flex; gap:8px; }
.social-btn {
  width:33px; height:33px; border:1px solid var(--border-dim);
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color:var(--text-muted);
  cursor:pointer; transition:border-color .2s,color .2s; text-decoration:none;
}
.social-btn:hover { border-color:var(--gold); color:var(--gold); }
.footer-col__title {
  font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:12px;
  letter-spacing:1.5px; text-transform:uppercase; color:var(--gold);
  margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid var(--border-dim);
}
.footer-col ul li {
  font-size:12.5px; color:var(--text-muted); padding:5px 0; cursor:pointer;
  border-bottom:1px solid var(--border-dim);
  display:flex; align-items:center; gap:6px; transition:color .15s,padding-left .15s;
}
.footer-col ul li a { color:inherit; text-decoration:none; transition:color .15s; }
.footer-col ul li:hover { color:var(--gold); padding-left:4px; }
.footer-col ul li:hover a { color:var(--gold); }
.footer-bottom {
  border-top:1px solid var(--border-dim); padding-top:16px;
  display:flex; align-items:center; justify-content:space-between;
  font-size:11px; color:var(--text-dim); flex-wrap:wrap; gap:8px;
}
.footer-bottom__links { display:flex; gap:16px; }
.footer-bottom__links a { color:var(--text-dim); transition:color .15s; }
.footer-bottom__links a:hover { color:var(--gold); }

/* ============================================================
   25. RESPONSIVE
   ============================================================ */
@media(max-width:1100px) {
  .hero-grid { grid-template-columns: 1fr 300px !important; }
  .analysis-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:900px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-side { flex-direction: row !important; }
  .hero-side-card { min-height: 180px !important; }
  .content-wrapper { grid-template-columns: 1fr; }
  .editors-pick__inner { grid-template-columns: 1fr; }
  .editors-pick__label-col { border-right: none; border-bottom: 1px solid var(--border-dim); padding-right: 0; padding-bottom: 16px; }
  .feature-strip__inner { grid-template-columns: 1fr; }
  .feature-strip__img-wrap { display: none; }
  .analysis-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
@media(max-width:640px) {
  .topbar { padding: 0 16px; }
  .site-header__top { padding: 0 16px; }
  .primary-nav { padding: 0 16px; }
  .container { padding: 0 16px; }
  .hero-side { flex-direction: column !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .breaking-bar__counter { display: none; }
}

/* EP Card — kill WP link color inheritance */
.ep-card, .ep-card *, .ep-card a,
.ep-card__title, .ep-card__title a,
.ep-card__body, .ep-card__body a {
  color: var(--text) !important;
  text-decoration: none !important;
}
.ep-card:hover .ep-card__title,
.ep-card:hover .ep-card__title a { color: var(--gold) !important; }

/* Same for news-card, hero */
.news-card__title a { color: var(--text) !important; }
.news-card:hover .news-card__title a { color: var(--gold) !important; }
.hero-side-card__title a { color: #fff !important; }
.hero-main__title a { color: #fff !important; }
.hero-main__title a:hover { color: var(--gold-light) !important; }
.more-story-item__title a { color: var(--text) !important; }
.more-story-item:hover .more-story-item__title a { color: var(--gold) !important; }
.trend-title a { color: var(--text) !important; }
.trending-item:hover .trend-title a { color: var(--gold) !important; }
.sidebar-post__title a { color: var(--text) !important; }
.sidebar-post:hover .sidebar-post__title a { color: var(--gold) !important; }
.analysis-card__title a { color: var(--text) !important; }
.analysis-card:hover .analysis-card__title a { color: var(--gold-light) !important; }

/* Kill all default WordPress link colors inside cards */
.news-card a, .ep-card a, .analysis-card a,
.more-story-item a, .trending-item a, .sidebar-post a,
.hero-side-card a, .feature-strip a {
  color: inherit !important;
}

/* ============================================================
   SINGLE POST — Full EEAT Article Design
   ============================================================ */

/* Layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 20px 0 60px;
  align-items: start;
}
.single-article { min-width: 0; }

/* ── Article Header ── */
.article-header { margin-bottom: 26px; }

.article-cat-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.article-cat-badge {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--gold); color: #000; padding: 4px 10px;
  display: inline-block; text-decoration: none;
}
.article-cat-badge:hover { background: var(--gold-light); color: #000; text-decoration: none; }

.article-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 42px; line-height: 1.12;
  color: var(--text); margin-bottom: 18px; letter-spacing: -0.5px;
}
.article-deck {
  font-size: 21px; font-weight: 300; line-height: 1.6;
  color: rgba(232,232,232,0.65); margin-bottom: 24px;
  border-left: 3px solid var(--gold); padding-left: 16px;
}
html[data-theme="light"] .article-deck { color: rgba(26,26,26,0.65); }

/* ── Author Bar (EEAT) ── */
.author-bar {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--gold);
  transition: background-color .25s;
}
.author-bar__info { display: flex; align-items: flex-start; gap: 11px; }
.author-bar__avatar { flex-shrink: 0; }
.author-bar__avatar-img,
.author-bar__avatar img {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--border); object-fit: cover; display: block;
}
.author-bar__name {
  font-weight: 700; font-size: 14px; color: var(--text);
  display: block; text-decoration: none; transition: color .15s;
}
.author-bar__name:hover { color: var(--gold); text-decoration: none; }
.author-bar__role {
  font-size: 11.5px; color: var(--text-muted); display: block; margin-top: 2px;
}
.author-bar__creds { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.credential-badge {
  font-family: 'Barlow Condensed', sans-serif; font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 7px; background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.2); color: var(--gold);
}

.author-bar__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-top: 2px;
}
.meta-pill {
  font-size: 11.5px; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  padding: 3px 8px;
}
.meta-pill--upd { color: var(--green); border-color: rgba(56,161,105,0.2); background: rgba(56,161,105,0.06); }
html[data-theme="light"] .meta-pill { background: rgba(0,0,0,0.04); }

/* ── Fact-Check Ribbon (EEAT) ── */
.fact-check-ribbon {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(56,161,105,0.07);
  border: 1px solid rgba(56,161,105,0.18);
  border-left: 3px solid var(--green);
  padding: 10px 14px; margin-bottom: 22px;
  font-size: 12px;
}
.fact-check-ribbon > span { color: var(--green); font-size: 16px; line-height: 1.3; flex-shrink: 0; }
.fact-check-ribbon strong {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green); margin-right: 8px;
}
.fact-check-ribbon span:not(:first-child) { color: var(--text-muted); }

/* ── Hero Image ── */
.article-hero { margin-bottom: 30px; background: var(--bg-card); }
.article-hero__img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.article-hero__caption {
  padding: 9px 14px; font-size: 12px; color: var(--text-dim);
  background: var(--bg-card); border-top: 1px solid var(--border-dim);
  font-style: italic; line-height: 1.5;
}

/* ── Key Takeaways ── */
.key-takeaway {
  background: var(--bg-stripe);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 18px 20px; margin-bottom: 28px;
}
.key-takeaway__label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.key-takeaway__label::after { content: ''; flex: 1; height: 1px; background: rgba(212,160,23,0.2); }
.key-takeaway ul { list-style: none; padding: 0; }
.key-takeaway ul li {
  font-size: 14px; color: var(--text);
  padding: 6px 0 6px 20px; position: relative;
  border-bottom: 1px solid var(--border-dim); line-height: 1.5;
}
.key-takeaway ul li:last-child { border-bottom: none; }
.key-takeaway ul li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 8px; }

/* ── Article Body ── */
.article-body {
  font-size: 18px; line-height: 1.85;
  color: rgba(232,232,232,0.85);
  margin-bottom: 32px;
}
html[data-theme="light"] .article-body { color: rgba(26,26,26,0.82); }

.article-body p  { margin-bottom: 22px; }
.article-body ul,
.article-body ol { margin: 0 0 22px 20px; }
.article-body li { margin-bottom: 7px; }
.article-body img { max-width: 100%; height: auto; margin: 24px 0; }
.article-body figure { margin: 28px 0; }
.article-body figcaption { font-size: 12px; color: var(--text-dim); font-style: italic; margin-top: 7px; }

.article-body a { color: var(--gold); border-bottom: 1px solid rgba(212,160,23,0.3); }
.article-body a:hover { border-bottom-color: var(--gold); text-decoration: none; }

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 30px; line-height: 1.2;
  color: var(--text); margin: 44px 0 16px;
  padding-top: 30px; border-top: 1px solid var(--border-dim);
  position: relative;
}
.article-body h2::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 40px; height: 2px; background: var(--gold);
}
.article-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 21px; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--gold);
  margin: 32px 0 12px;
}
.article-body blockquote {
  border: none; border-left: 3px solid var(--gold);
  background: var(--bg-card);
  padding: 18px 22px; margin: 28px 0;
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-style: italic;
  color: rgba(232,232,232,0.78); line-height: 1.6;
}
html[data-theme="light"] .article-body blockquote { color: rgba(26,26,26,0.75); background: #fff; }
.article-body blockquote cite {
  display: block; margin-top: 11px;
  font-style: normal; font-family: 'Barlow', sans-serif;
  font-size: 12px; color: var(--text-muted); font-weight: 600;
}

/* ── Disclaimer ── */
.article-disclaimer {
  background: rgba(229,83,62,0.06);
  border: 1px solid rgba(229,83,62,0.15);
  padding: 14px 16px; margin: 28px 0;
  font-size: 12.5px; color: var(--text-muted); line-height: 1.6;
}
.article-disclaimer strong {
  color: #e0816a; font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}

/* ── Author Bio Box (EEAT) ── */
.author-bio-box {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 22px; margin: 28px 0;
  transition: background-color .25s;
}
.author-bio-box__avatar { flex-shrink: 0; }
.author-bio-box__avatar-img,
.author-bio-box__avatar img {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--border); object-fit: cover; display: block;
}
.author-bio-box__name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 18px; letter-spacing: 0.5px; color: var(--text);
  display: block; margin-bottom: 2px; text-decoration: none;
  transition: color .15s;
}
.author-bio-box__name:hover { color: var(--gold); text-decoration: none; }
.author-bio-box__role { font-size: 12px; color: var(--gold); margin-bottom: 8px; display: block; }
.author-bio-box__bio { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.author-bio-box__bio p { margin-bottom: 0; }
.author-bio-box__stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-dim);
}
.author-bio-box__stats strong { color: var(--text-muted); }
.author-bio-box__stats a { color: var(--text-dim); }
.author-bio-box__stats a:hover { color: var(--gold); }

/* ── Article Footer Bar ── */
.article-footer-bar {
  padding-top: 26px; margin-top: 28px;
  border-top: 1px solid var(--border-dim);
  display: flex; flex-direction: column; gap: 18px;
}
.article-tags-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.article-tags-row__label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim);
  flex-shrink: 0;
}
.share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-bar__label {
  font-size: 11px; font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim);
}
.share-btn {
  height: 32px; padding: 0 13px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--border-dim); color: var(--text-muted);
  background: none; cursor: pointer; transition: border-color .15s, color .15s;
  text-decoration: none;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.share-btn--tw { border-color: rgba(29,161,242,0.25); }
.share-btn--tw:hover { border-color: #1da1f2; color: #1da1f2; }

/* ── Related Articles ── */
.related-articles { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-dim); }
.related-articles__title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border-dim); position: relative;
}
.related-articles__title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 40px; height: 2px; background: var(--gold);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  overflow: hidden; display: block; text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); color: inherit; text-decoration: none; }
.related-card__img-wrap { height: 116px; overflow: hidden; }
.related-card__img { width: 100%; height: 116px; object-fit: cover; display: block; transition: transform .4s; }
.related-card:hover .related-card__img { transform: scale(1.05); }
.related-card__img-placeholder { width: 100%; height: 116px; background: linear-gradient(135deg, var(--bg-card2), var(--bg-stripe)); }
.related-card__body { padding: 11px 13px; }
.related-card__cat {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 5px;
}
.related-card__title {
  font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.related-card:hover .related-card__title { color: var(--gold-light); }
.related-card__meta { font-size: 11px; color: var(--text-dim); margin-top: 7px; }

/* ── Single Sidebar ── */
.single-sidebar { position: sticky; top: 90px; }

/* Reading Progress */
.reading-progress-track {
  background: var(--border-dim); height: 4px; position: relative; margin-bottom: 9px;
}
.reading-progress-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transition: width .4s ease;
}
.reading-progress-label { font-size: 12px; color: var(--text-dim); }

/* TOC */
.toc-list { padding: 6px 0; }
.toc-item {
  padding: 7px 16px; font-size: 12.5px; color: var(--text-muted);
  border-left: 2px solid transparent;
  display: flex; align-items: flex-start; gap: 8px;
  cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.toc-item:hover, .toc-item.active {
  color: var(--gold); border-left-color: var(--gold);
  background: rgba(212,160,23,0.06); text-decoration: none;
}
.toc-item--sub { padding-left: 28px; font-size: 12px; }
.toc-item__num {
  font-family: 'Roboto Mono', monospace; font-size: 10px;
  color: var(--text-dim); flex-shrink: 0; margin-top: 2px;
}

/* Newsletter inputs */
.nl-input {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-dim);
  color: var(--text); padding: 9px 12px; width: 100%; font-size: 13px;
  margin-bottom: 8px; outline: none; transition: border-color .2s;
}
html[data-theme="light"] .nl-input { background: rgba(0,0,0,0.04); }
.nl-input:focus { border-color: var(--gold); }
.nl-input::placeholder { color: var(--text-dim); }
.nl-btn {
  background: var(--gold); color: #000; width: 100%; padding: 9px;
  border: none; cursor: pointer; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  transition: background .2s;
}
.nl-btn:hover { background: var(--gold-light); }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-title { font-size: 28px; }
}
@media (max-width: 640px) {
  .article-title { font-size: 24px; }
  .article-deck { font-size: 15px; }
  .author-bio-box { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .share-bar { gap: 6px; }
  .share-btn { font-size: 10px; padding: 0 10px; }
}

/* ============================================================
   LIVE PRICE TICKER BAR
   ============================================================ */
.price-ticker-bar {
  background: #060708;
  border-bottom: 1px solid var(--border-dim);
  display: flex; align-items: center;
  height: 36px; overflow: hidden;
  font-family: 'Roboto Mono', monospace;
}
.price-ticker-bar__label {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 10px; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase;
  border-right: 1px solid var(--border-dim);
  flex-shrink: 0; height: 100%;
  white-space: nowrap;
}
.price-ticker-bar__track-wrap {
  flex: 1; overflow: hidden; position: relative;
}
.price-ticker-bar__track-wrap::before,
.price-ticker-bar__track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none;
}
.price-ticker-bar__track-wrap::before { left: 0; background: linear-gradient(to right, #060708, transparent); }
.price-ticker-bar__track-wrap::after  { right: 0; background: linear-gradient(to left, #060708, transparent); }
.price-ticker-bar__track {
  display: flex; align-items: center; gap: 0;
  animation: ct-ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.price-ticker-bar:hover .price-ticker-bar__track { animation-play-state: paused; }
@keyframes ct-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ct-ticker-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 20px; border-right: 1px solid var(--border-dim);
  font-size: 12px; cursor: default;
}
.ct-ticker-sym {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 12px; letter-spacing: 0.5px;
  color: var(--text);
}
.ct-ticker-price { color: var(--text); font-size: 11.5px; }
.ct-ticker-change { font-size: 11px; }
.price-ticker-bar__cta {
  padding: 0 14px; flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 10px; letter-spacing: 1px;
  color: var(--gold); text-transform: uppercase;
  border-left: 1px solid var(--border-dim); height: 100%;
  display: flex; align-items: center; white-space: nowrap;
  transition: background .15s;
}
.price-ticker-bar__cta:hover { background: rgba(212,160,23,0.08); text-decoration: none; }

/* Live dot */
.live-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  animation: ct-pulse 1.5s infinite;
}
.live-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 10px; letter-spacing: 2px; color: var(--green);
}
@keyframes ct-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56,161,105,0.4); }
  50%       { opacity: .7; box-shadow: 0 0 0 5px rgba(56,161,105,0); }
}

/* Flash animation on price update */
@keyframes ct-flash-anim {
  0%   { background: rgba(212,160,23,0.2); }
  100% { background: transparent; }
}
.ct-flash { animation: ct-flash-anim 0.6s ease; }

/* Up/down colors (global) */
.ct-up   { color: var(--green) !important; }
.ct-down { color: var(--red)   !important; }

/* ============================================================
   MARKET WIDGET (updated)
   ============================================================ */
.market-widget .widget__hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border-dim);
}
.widget-live-badge {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green);
}
.coin-icon-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 13px; flex-shrink: 0;
}

/* ============================================================
   CRYPTO PRICES PAGE
   ============================================================ */
.prices-page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 28px 0 20px;
}
.prices-page-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 32px; color: var(--text); margin-bottom: 6px;
}
.prices-page-sub { font-size: 14px; color: var(--text-muted); }
.prices-meta-bar { display: flex; align-items: center; gap: 10px; }

/* Market overview strip */
.market-overview-strip {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  margin-bottom: 24px;
}
.overview-coin {
  background: var(--bg-card); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  transition: background .15s;
}
.overview-coin:hover { background: var(--bg-card2); }
.overview-coin__icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 16px; flex-shrink: 0;
}
.overview-coin__sym {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 14px; color: var(--text); letter-spacing: 0.5px;
}
.overview-coin__price {
  font-family: 'Roboto Mono', monospace; font-size: 13px; color: var(--text);
}
.overview-coin__change {
  font-family: 'Roboto Mono', monospace; font-size: 12px;
  margin-left: auto; flex-shrink: 0;
}

/* Table controls */
.prices-table-wrap { margin-bottom: 24px; }
.prices-table-controls {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
}
.prices-search-input {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  color: var(--text); padding: 9px 14px; font-size: 13px;
  width: 240px; outline: none; transition: border-color .2s;
}
.prices-search-input:focus { border-color: var(--gold); }
.prices-search-input::placeholder { color: var(--text-dim); }
html[data-theme="light"] .prices-search-input { background: #fff; }
.prices-filter-btns { display: flex; gap: 6px; }
.pf-btn {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid var(--border-dim);
  background: none; color: var(--text-muted); cursor: pointer; transition: all .15s;
}
.pf-btn:hover, .pf-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* Prices table */
.prices-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; background: var(--bg-card);
  border: 1px solid var(--border-dim);
}
.prices-table thead th {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); background: var(--bg-stripe);
  padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--border-dim);
  white-space: nowrap; user-select: none;
}
.prices-table th.th-coin,
.prices-table th.th-rank { text-align: left; }
.prices-table th.sortable { cursor: pointer; transition: color .15s; }
.prices-table th.sortable:hover { color: var(--gold); }
.prices-table th.active-sort { color: var(--gold); }
.sort-icon { opacity: 0.5; }

.price-row {
  border-bottom: 1px solid var(--border-dim);
  transition: background .12s;
}
.price-row:hover { background: rgba(212,160,23,0.03); }
.price-row td { padding: 11px 14px; vertical-align: middle; text-align: right; }
.price-row td:first-child,
.price-row td.td-coin { text-align: left; }

.rank-num {
  font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--text-dim);
}
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-cell__img, .coin-cell__icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
}
.coin-cell__icon {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 13px;
}
.coin-cell__name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.coin-cell__sym  { font-size: 11px; color: var(--text-dim); font-family: 'Barlow Condensed',sans-serif; letter-spacing: 0.5px; }

.price-val {
  font-family: 'Roboto Mono', monospace; font-size: 13px; color: var(--text); font-weight: 500;
}
.change-val {
  font-family: 'Roboto Mono', monospace; font-size: 12px;
  padding: 2px 6px; border-radius: 2px;
}
.change-val.ct-up   { background: rgba(56,161,105,0.1); }
.change-val.ct-down { background: rgba(229,62,62,0.08); }

.td-mcap span, .td-vol span {
  font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--text-muted);
}

.prices-disclaimer {
  font-size: 12px; color: var(--text-dim); padding: 16px 0 32px;
  border-top: 1px solid var(--border-dim);
}
.prices-disclaimer a { color: var(--text-dim); }
.prices-disclaimer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .market-overview-strip { grid-template-columns: repeat(3,1fr); }
  .th-ch1h, .th-ch7d, .td-ch1h, .td-ch7d,
  .th-mcap, .td-mcap, .th-vol, .td-vol { display: none; }
  .prices-search-input { width: 100%; }
}
@media (max-width: 600px) {
  .market-overview-strip { grid-template-columns: repeat(2,1fr); }
  .overview-coin:nth-child(5) { display: none; }
  .price-ticker-bar { display: none; }
}

/* ============================================================
   SIDEBAR — Shared Widget Styles
   ============================================================ */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  margin-bottom: 18px;
  overflow: hidden;
  transition: background-color .25s;
}
.sidebar-widget__hdr {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-dim);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; justify-content: space-between;
}

/* Market rows */
.market-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-bottom: 1px solid var(--border-dim);
  transition: background .12s;
}
.market-row:last-of-type { border-bottom: none; }
.market-row:hover { background: rgba(212,160,23,0.04); }
.market-coin { display: flex; align-items: center; gap: 9px; }
.coin-name   { font-size: 14.5px; font-weight: 700; color: var(--text); }
.coin-symbol { font-family: 'Barlow Condensed',sans-serif; font-size: 10.5px; color: var(--text-dim); letter-spacing: .5px; }
.market-price { text-align: right; }
.price-value  { font-family: 'Roboto Mono',monospace; font-size: 13.5px; color: var(--text); font-weight: 500; }
.price-change { font-family: 'Roboto Mono',monospace; font-size: 11px; margin-top: 2px; }
.price-change--up   { color: var(--green); }
.price-change--down { color: var(--red); }

/* Widget footer */
.widget__footer {
  padding: 10px 14px; border-top: 1px solid var(--border-dim);
}
.view-all {
  font-family: 'Barlow Condensed',sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); display: flex; align-items: center; gap: 4px;
  transition: color .15s;
}
.view-all:hover { color: var(--gold); text-decoration: none; }

/* Sidebar posts list */
.sidebar-post {
  display: flex; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--border-dim);
  text-decoration: none; transition: background .12s; align-items: flex-start;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { background: rgba(212,160,23,0.04); }
.sidebar-post__num {
  font-family: 'Barlow Condensed',sans-serif; font-weight: 800;
  font-size: 20px; color: var(--gold); opacity: .3;
  flex-shrink: 0; line-height: 1; min-width: 24px;
}
.sidebar-post__title {
  font-size: 14px; font-weight: 600; line-height: 1.35;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-post:hover .sidebar-post__title { color: var(--gold); }
.sidebar-post__meta { font-size: 10.5px; color: var(--text-dim); margin-top: 3px; }

/* Category rows */
.sidebar-cat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-dim); text-decoration: none;
  transition: color .12s, background .12s;
}
.sidebar-cat-row:last-child { border-bottom: none; }
.sidebar-cat-row:hover { color: var(--gold); background: rgba(212,160,23,0.04); text-decoration: none; }
.sidebar-cat-count {
  font-family: 'Roboto Mono',monospace; font-size: 10px; color: var(--text-dim);
}

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: 'Barlow Condensed',sans-serif; font-size: 11px;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg-card);
  border: 1px solid var(--border-dim); padding: 4px 9px;
  text-decoration: none; transition: all .12s; cursor: pointer;
}
.tag:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */

/* Hero */
.page-hero {
  padding: 28px 0 0;
  border-bottom: 1px solid var(--border-dim);
  margin-bottom: 44px;
}
.page-hero__eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero__eyebrow::before { content:''; width:28px; height:2px; background:var(--gold); }
.page-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 900; line-height: 1.1;
  color: var(--text); margin-bottom: 18px; letter-spacing: -1px;
  max-width: 760px;
}
.page-hero__excerpt {
  font-size: 19px; font-weight: 300;
  color: rgba(232,232,232,0.6); line-height: 1.6;
  max-width: 640px; margin-bottom: 24px;
}
html[data-theme="light"] .page-hero__excerpt { color: rgba(26,26,26,0.6); }
.page-hero__meta {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border-dim);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; color: var(--text-dim); letter-spacing: 0.5px;
}
.page-hero__meta-item { display: flex; align-items: center; gap: 6px; }

/* Hero image */
.page-hero-image {
  width: 100%; height: 420px;
  overflow: hidden; position: relative; margin-bottom: 48px;
}
.page-hero-image__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Two-column layout */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  padding-bottom: 80px;
  align-items: start;
}
.page-sidebar { position: sticky; top: 90px; }

/* Body text — reuse article-body styles */
.page-body { font-size: 18px; line-height: 1.82; }

/* Latest articles section */
.page-latest { margin-top: 44px; }
.page-latest__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 0;
}
.page-latest__title-bar { width: 24px; height: 2px; background: var(--gold); flex-shrink: 0; }
.page-latest__list { margin-top: 4px; }

/* Article cards in page */
.lat-card {
  display: grid; grid-template-columns: 110px 1fr;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.15s;
}
.lat-card:first-child { border-top: 1px solid var(--border-dim); }
.lat-card:hover { background: rgba(212,160,23,0.04); }
.lat-card__img {
  height: 88px; position: relative;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-card2);
}
.lat-card__img-el, .lat-card__img-placeholder {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lat-card__img-placeholder { background: var(--bg-card2); }
.lat-card__cat {
  position: absolute; top: 7px; left: 7px;
  background: var(--gold); color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 900;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 2px 7px;
}
.lat-card__body {
  padding: 14px 18px;
  display: flex; flex-direction: column; justify-content: center;
}
.lat-card__title {
  font-size: 15px; font-weight: 700; line-height: 1.35;
  color: var(--text); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.15s;
}
.lat-card:hover .lat-card__title { color: var(--gold); }
.lat-card__meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; color: var(--text-dim); letter-spacing: 0.5px;
}

/* Share bar */
.share-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim); margin-right: 4px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-dim);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim);
  background: transparent; transition: all 0.15s; cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* TOC link styles for pages */
.toc-link {
  display: block; padding: 8px 14px;
  border-bottom: 1px solid var(--border-dim);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; color: var(--text-muted); letter-spacing: 0.5px;
  transition: color 0.15s; text-decoration: none;
}
.toc-link:last-child { border-bottom: none; }
.toc-link:hover { color: var(--gold); text-decoration: none; }
.toc-link--sub { padding-left: 26px; font-size: 12px; color: var(--text-dim); }

/* Responsive */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; gap: 40px; }
  .page-sidebar { position: static; }
  .page-hero__title { font-size: 36px; }
  .page-hero-image { height: 260px; }
}
