/**
 * CoinTrenches — Single Article CSS
 *
 * Loaded conditionally on is_singular('post') via functions.php.
 * Uses theme.json tokens aliased in style.css :root
 * (--neon, --surface, --border, --radius, --font-h, etc.)
 */

/* Reading progress bar */
#ct-art-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--neon); z-index: 9999; width: 0;
  transition: width 120ms linear; pointer-events: none;
  box-shadow: 0 0 8px rgba(57,255,20,.5);
}

/* Breadcrumb (matches preview-single-guide chrome, theme-tokened) */
.ct-breadcrumb { background: var(--surface-low); border-bottom: 1px solid var(--border); padding: 10px 0; }
.ct-breadcrumb .ct-wrap { display: flex; align-items: center; gap: 7px; font-family: var(--font-d); font-size: 10px; }
.ct-breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color var(--dur-fast) var(--ease-out), text-shadow var(--dur-fast) var(--ease-out); }
.ct-breadcrumb a:hover { color: var(--neon); text-shadow: 0 0 8px rgba(57,255,20,.55); }
.ct-bc-sep { color: var(--muted); opacity: .7; }
.ct-bc-current { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }

/* Wrap */
.ct-wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--sp-6); position: relative; z-index: 1; }

/* Chips */
.ct-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-d); font-size: 8.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.ct-chip-green, .ct-chip-neon   { background: rgba(57,255,20,.10); color: var(--neon);  border: 1px solid rgba(57,255,20,.22); }
.ct-chip-red,   .ct-chip-scam   { background: rgba(255,61,90,.10); color: var(--scam);  border: 1px solid rgba(255,61,90,.22); }
.ct-chip-yellow,.ct-chip-gold   { background: rgba(248,190,0,.10); color: var(--gold);  border: 1px solid rgba(248,190,0,.22); }
.ct-chip-blue,  .ct-chip-guide  { background: rgba(79,195,247,.10); color: var(--guide); border: 1px solid rgba(79,195,247,.22); }
.ct-chip-purple,.ct-chip-meme   { background: rgba(155,109,255,.10); color: var(--meme); border: 1px solid rgba(155,109,255,.22); }
.ct-chip-whale                  { background: rgba(255,140,66,.10); color: var(--whale); border: 1px solid rgba(255,140,66,.22); }
.ct-chip-white                  { background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid rgba(255,255,255,.12); }
.ct-chip-live   { background: rgba(255,61,90,.10); color: var(--scam); border: 1px solid rgba(255,61,90,.24); }
.ct-chip-live::before { content: ''; width: 5px; height: 5px; background: var(--scam); border-radius: 50%; animation: ct-pulse 1.4s ease-in-out infinite; }
.ct-chip-resolved { background: rgba(57,255,20,.08); color: var(--neon); border: 1px solid rgba(57,255,20,.20); }
.ct-chip-sm { font-size: 8px; padding: 2px 8px; }

/* Article layout */
.ct-article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 36px 0 80px; align-items: stretch; }
.ct-article-main { min-width: 0; }
.ct-article-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ct-article-title {
  font-family: var(--font-h); font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  color: var(--text); margin-bottom: 22px;
}

/* Meta row + share */
.ct-art-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.ct-art-meta-item { font-family: var(--font-d); font-size: 10px; color: var(--muted); }
.ct-art-meta-item strong { color: var(--text); }
.ct-art-meta-sep { color: var(--muted); opacity: .55; }
.ct-share-row { display: flex; gap: 8px; margin-left: auto; }
.ct-share-btn {
  font-family: var(--font-d); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 6px 13px; border-radius: 20px; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; background: transparent;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ct-share-btn:hover { color: var(--neon); border-color: rgba(57,255,20,.35); box-shadow: 0 0 10px rgba(57,255,20,.18); }
.ct-share-copy.is-copied { color: var(--neon); border-color: rgba(57,255,20,.5); }

/* Featured image */
.ct-article-main .wp-block-post-featured-image { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.ct-article-main .wp-block-post-featured-image img { width: 100%; height: auto; display: block; }

/* TOC card */
.ct-toc { background: var(--surface-low); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 32px; }
.ct-toc-title {
  font-family: var(--font-d); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--muted);
  margin-bottom: 14px; display: flex; align-items: center; gap: 9px;
}
.ct-toc-title::before { content: ''; width: 3px; height: 12px; background: var(--neon); border-radius: 2px; flex-shrink: 0; }
.ct-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.ct-toc ol li {
  counter-increment: toc; padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted);
}
.ct-toc ol li:last-child { border-bottom: none; }
.ct-toc ol li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-d); font-size: 9px; color: var(--text-secondary); flex-shrink: 0; }
.ct-toc ol li a { color: var(--muted); text-decoration: none; transition: color var(--dur-fast) var(--ease-out), text-shadow var(--dur-fast) var(--ease-out); }
.ct-toc ol li a:hover { color: var(--neon); text-shadow: 0 0 8px rgba(57,255,20,.5); }

/* Stats bar */
.ct-stats-bar { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.ct-sb-4 { grid-template-columns: repeat(4, 1fr); }
.ct-sb-cell { background: var(--surface-low); padding: 14px 16px; text-align: center; }
.ct-sb-val { font-family: var(--font-h); font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.ct-sb-label { font-family: var(--font-d); font-size: 8.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }

/* Article body */
.ct-art-body { font-size: 15.5px; line-height: 1.88; color: var(--text-secondary); font-family: var(--font-b); }
.ct-art-body p { margin-bottom: 20px; }
.ct-art-body strong { color: var(--text); font-weight: 600; }
.ct-art-body a { color: var(--neon); text-decoration: none; transition: color var(--dur-fast) var(--ease-out), text-shadow var(--dur-fast) var(--ease-out); }
.ct-art-body a:hover { color: var(--neon); text-shadow: 0 0 8px rgba(57,255,20,.6); text-decoration: underline; }
.ct-art-body h2 {
  font-family: var(--font-h); font-size: 22px; font-weight: 800;
  color: var(--text); margin: 40px 0 16px; letter-spacing: -.025em;
  display: flex; align-items: center; gap: 13px; scroll-margin-top: 96px;
}
.ct-art-body h2::before { content: ''; width: 4px; height: 22px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }
.ct-art-body h3 { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--text); margin: 28px 0 12px; letter-spacing: -.015em; }
.ct-art-body ul { margin: 0 0 20px 22px; list-style: disc; }
.ct-art-body ul li { margin-bottom: 7px; }
.ct-art-body ol { margin: 0 0 20px 22px; }
.ct-art-body ol li { margin-bottom: 7px; }
.ct-art-body blockquote {
  border-left: 3px solid var(--gold); background: rgba(248,190,0,.05);
  padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0; font-style: italic; color: var(--text); font-size: 15.5px; line-height: 1.7;
}
.ct-art-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.ct-art-body figure { margin: 24px 0; }
.ct-art-body figcaption { font-family: var(--font-d); font-size: 10px; color: var(--muted); margin-top: 8px; text-align: center; }
.ct-art-body code { font-family: var(--font-d); font-size: 13px; background: var(--surface-high); padding: 2px 6px; border-radius: var(--radius-xs); color: var(--text); }
.ct-art-body pre { background: var(--surface-high); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; margin-bottom: 20px; }

/* Table responsive wrapper — JS injected */
.ct-art-body .ct-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.ct-art-body .ct-table-wrap > table { margin: 0; min-width: 560px; border: 0; border-radius: 0; }
.ct-art-body .ct-table-wrap::-webkit-scrollbar { height: 6px; }
.ct-art-body .ct-table-wrap::-webkit-scrollbar-thumb { background: var(--surface-high); border-radius: 3px; }
.ct-art-body .ct-table-wrap::-webkit-scrollbar-thumb:hover { background: var(--neon); }
.ct-art-body pre code { background: transparent; padding: 0; }

/* Table — matches preview (single-guide / single-meme-coin / single-prediction) */
.ct-art-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 22px;
  background: var(--surface-low); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.ct-art-body table th {
  background: var(--surface-high); padding: 11px 14px; text-align: left;
  font-family: var(--font-d); font-size: 10px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.ct-art-body table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-secondary);
}
.ct-art-body table tr:last-child td { border-bottom: none; }
.ct-art-body table tr:hover td { background: rgba(255,255,255,.03); }

/* Disclaimer (subtle red) */
.ct-disclaimer {
  padding: 14px 18px;
  background: rgba(255,61,90,.06);
  border: 1px solid rgba(255,61,90,.18);
  border-left: 3px solid var(--scam);
  border-radius: var(--radius-sm);
  font-family: var(--font-d); font-size: 10.5px; line-height: 1.75;
  color: var(--text-secondary);
  margin-top: 40px;
}
.ct-disclaimer a { color: var(--scam); text-decoration: none; transition: color var(--dur-fast) var(--ease-out), text-shadow var(--dur-fast) var(--ease-out); }
.ct-disclaimer a:hover { color: var(--neon); text-shadow: 0 0 8px rgba(57,255,20,.6); text-decoration: underline; }

/* Related posts — use homepage .ct-card shell */
.ct-related-wrap { margin-top: 56px; }
.ct-related-title {
  font-family: var(--font-h); font-size: 18px; font-weight: 800;
  color: var(--text); display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; letter-spacing: -.015em;
}
.ct-related-bar { display: inline-block; width: 3px; height: 18px; background: var(--neon); border-radius: 2px; }
/* Related grid — 3 cols desktop, 2 cols tablet, 1 col mobile */
.ct-related-grid { margin-bottom: 44px; }
.ct-related-grid.ct-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin: 0 0 44px;
}
.ct-related-grid.ct-post-grid > .ct-card { width: 100%; }

/* Related card: image on top, body below — always stacked vertically */
.ct-related-grid .ct-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.ct-related-grid .ct-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.ct-related-grid .ct-card-image img,
.ct-related-grid .ct-card-image .ct-card-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-normal) var(--ease-out);
}
.ct-related-grid .ct-card:hover .ct-card-image img { transform: scale(1.04); }
.ct-related-grid .ct-card-image-placeholder {
  display: block; width: 100%; height: 100%;
  background: var(--surface-high);
}
.ct-related-grid .ct-card-body {
  padding: var(--sp-4);
  display: flex; flex-direction: column; flex: 1;
}
.ct-related-grid .ct-card-title {
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: var(--sp-2);
  /* Clamp to 3 lines on small screens */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ct-related-grid .ct-card-excerpt {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--sp-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ct-related-grid .ct-card-meta {
  font-size: 0.58rem;
  margin-top: auto;
  padding-top: var(--sp-2);
}

/* ============================================
   SIDEBAR
   ============================================ */
.ct-sidebar-col {
  padding-top: 12px;
  display: flex; flex-direction: column; gap: var(--sp-4);
  align-self: stretch;
}

/* Quick Nav — sticky, inside .ct-widget shell */
.ct-sidebar-quicknav { position: sticky; top: 88px; z-index: 2; }
/* Sticky-stop: JS sets when disclaimer reaches top → drops to bottom of sidebar (after newsletter) */
.ct-sidebar-quicknav.ct-quicknav--unstick {
  position: relative !important; top: auto !important;
  order: 99;
  margin-top: auto;
}
.ct-sidebar-quicknav .ct-quicknav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  transition: max-height var(--dur-normal) var(--ease-out);
}

/* Collapsed mode — only items with data-window-visible stay shown */
.ct-sidebar-quicknav.ct-quicknav--collapsed .ct-quicknav-list > li { display: none; }
.ct-sidebar-quicknav.ct-quicknav--collapsed .ct-quicknav-list > li[data-window-visible] { display: block; }

/* Load-more button — visible only when collapsed */
.ct-quicknav-more {
  display: none;
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  background: var(--surface-high);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-d); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  cursor: pointer;
  align-items: center; justify-content: center; gap: 6px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.ct-sidebar-quicknav.ct-quicknav--collapsed .ct-quicknav-more,
.ct-sidebar-quicknav.ct-quicknav--user-expanded .ct-quicknav-more { display: inline-flex; }
.ct-quicknav-more:hover { color: var(--neon); border-color: rgba(57,255,20,.35); background: rgba(57,255,20,.06); }
.ct-quicknav-more .material-symbols-outlined { font-size: 14px; }
.ct-sidebar-quicknav.ct-quicknav--user-expanded .ct-quicknav-more { color: var(--neon); border-color: rgba(57,255,20,.25); }
.ct-quicknav-list li { padding: 0; }
.ct-quicknav-list a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-secondary);
  font-size: 12.5px; line-height: 1.4;
  border-left: 2px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), text-shadow var(--dur-fast) var(--ease-out), border-left-color var(--dur-fast) var(--ease-out);
}
.ct-quicknav-list a:hover { background: var(--surface-high); color: var(--neon); text-shadow: 0 0 8px rgba(57,255,20,.55); }
.ct-quicknav-list a.is-active { background: rgba(57,255,20,.08); color: var(--neon); border-left-color: var(--neon); }
.ct-quicknav-num { font-family: var(--font-d); font-size: 9px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.ct-quicknav-text { flex: 1; }

/* Sidebar Newsletter (compact) */
.ct-sidebar-news-sub { font-family: var(--font-b); font-size: 12px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 12px; }
.ct-sidebar-news-form { display: flex; gap: 6px; }
.ct-sidebar-news-form input[type="email"] {
  flex: 1; min-width: 0;
  background: var(--surface-high); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 12px; color: var(--text); font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ct-sidebar-news-form input[type="email"]::placeholder { color: var(--muted); }
.ct-sidebar-news-form input[type="email"]:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(57,255,20,.12); }
.ct-sidebar-news-form button {
  background: var(--neon); color: #053900; border: 0; border-radius: var(--radius-sm);
  padding: 8px 14px; font-family: var(--font-d); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ct-sidebar-news-form button:hover { background: var(--neon-dim); box-shadow: 0 0 12px rgba(57,255,20,.35); }

/* Sidebar widgets — link glow on Trending + Odds + Categories items */
.ct-sidebar-col .ct-trending-title:hover,
.ct-sidebar-col .ct-odds-item--link:hover .ct-odds-label {
  text-shadow: 0 0 8px rgba(57,255,20,.5);
}

/* sr-only helper */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Keyframes */
@keyframes ct-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,61,90,.4); }
  50%      { opacity: .7; box-shadow: 0 0 0 6px transparent; }
}

/* Responsive */
@media (max-width: 1100px) {
  .ct-article-layout { grid-template-columns: 1fr 270px; }
  .ct-related-grid.ct-post-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .ct-sidebar-col { position: static; max-height: none; overflow: visible; padding-top: 0; }
  .ct-related-grid.ct-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ct-wrap           { padding: 0 16px; }
  .ct-article-layout { grid-template-columns: 1fr; padding: 20px 0 44px; gap: 24px; }
  .ct-related-grid.ct-post-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .ct-art-meta       { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ct-share-row      { margin-left: 0; }
  .ct-sb-4           { grid-template-columns: repeat(2, 1fr); }
  .ct-article-title  { font-size: 26px; }
  .ct-art-body       { font-size: 15px; }
  .ct-art-body h2    { font-size: 20px; margin: 32px 0 14px; }
  .ct-art-body h3    { font-size: 16.5px; }
  .ct-art-body table { font-size: 12.5px; }
  .ct-art-body table th, .ct-art-body table td { padding: 9px 10px; }
}
@media (max-width: 540px) {
  /* Stack to single column earlier for small phones */
  .ct-related-grid.ct-post-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  /* Single-column cards: switch to horizontal layout (image left, text right) */
  .ct-related-grid .ct-card {
    flex-direction: row;
    align-items: stretch;
  }
  .ct-related-grid .ct-card-image {
    width: 110px;
    aspect-ratio: unset;
    flex-shrink: 0;
    border-radius: 0;
  }
  .ct-related-grid .ct-card-title {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
  .ct-related-grid .ct-card-excerpt { display: none; }
}
@media (max-width: 480px) {
  .ct-sb-4 { grid-template-columns: 1fr 1fr; }
}

/* ==============================================
   TABLE RATING STARS (auto-detected in "Rating" / "Score" columns)
   ============================================== */
.ct-art-body table td .ct-stars { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.ct-stars .ct-star { font-size: 17px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; line-height: 1; }
.ct-stars .ct-star--full  { color: #ffd34a; }
.ct-stars .ct-star--half  { color: #ffd34a; }
.ct-stars .ct-star--empty { color: rgba(255, 211, 74, .28); font-variation-settings: 'FILL' 0, 'wght' 500; }
.ct-stars-num { margin-left: 6px; font-family: 'Space Mono', monospace; font-size: 12px; color: rgba(255,255,255,.7); }

/* ==============================================
   FAQ ACCORDION (auto-rendered from H2 "FAQ" + H3 questions)
   ============================================== */
.ct-faq {
  margin: 44px 0 32px;
  padding: 26px 26px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(57,255,20,.04), rgba(6,6,6,.55));
  border: 1px solid rgba(57,255,20,.16);
  box-shadow: 0 0 0 1px rgba(57,255,20,.04) inset, 0 10px 30px rgba(0,0,0,.35);
}
.ct-faq-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.ct-faq-title::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green, #39ff14);
  box-shadow: 0 0 10px rgba(57,255,20,.6);
}
.ct-faq-list { display: flex; flex-direction: column; gap: 10px; }
.ct-faq-item {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}
.ct-faq-item[open] { border-color: rgba(57,255,20,.28); background: rgba(57,255,20,.03); }
.ct-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ct-faq-q::-webkit-details-marker { display: none; }
.ct-faq-q-text { flex: 1; }
.ct-faq-q-icon { font-size: 22px; color: rgba(255,255,255,.55); transition: transform .2s ease, color .2s ease; }
.ct-faq-item[open] .ct-faq-q-icon { transform: rotate(180deg); color: var(--green, #39ff14); }
.ct-faq-a {
  padding: 0 18px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}
.ct-faq-a p:first-child { margin-top: 0; }
.ct-faq-a p:last-child  { margin-bottom: 0; }

/* ==============================================
   WHALE PRICE SNIPPET ([ct_whale_price] in post body)
   ============================================== */
.ct-whale-price {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.08), rgba(6,6,6,.55));
  border: 1px solid rgba(14,165,233,.3);
  display: inline-flex; flex-direction: column; gap: 6px;
  min-width: 220px;
}
.ct-whale-price-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.ct-whale-price-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.ct-whale-price-chain {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14,165,233,.14);
  border: 1px solid rgba(14,165,233,.3);
  color: #7dd3fc;
}
.ct-whale-price-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.015em;
}
.ct-whale-price-change {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
}
.ct-whale-price-change--pos { color: var(--green, #39ff14); }
.ct-whale-price-change--neg { color: var(--red, #ff3d5a); }
.ct-whale-price-change-lbl { color: rgba(255,255,255,.5); font-weight: 500; margin-left: 4px; }

/* ==============================================
   POLYMARKET WIDGET [polymarket slug="..."]
   ============================================== */
.ct-pm-widget {
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0;
  max-width: 600px;
}
.ct-pm-widget--error {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; font-size: 13px; color: var(--muted);
}
.ct-pm-widget--error a { color: var(--neon); text-decoration: none; }
.ct-pm-widget--error .material-symbols-outlined { font-size: 1.1rem; color: var(--muted); }

/* Head */
.ct-pm-widget__head {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(57,255,20,.04) 0%, transparent 100%);
}
.ct-pm-widget__title-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
}
.ct-pm-widget__live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--scam); flex-shrink: 0;
  animation: ct-pm-pulse 1.5s ease-in-out infinite;
}
@keyframes ct-pm-pulse {
  0%,100%{ opacity:1; box-shadow: 0 0 0 0 rgba(255,61,90,.5); }
  50%    { opacity:.6; box-shadow: 0 0 0 5px transparent; }
}
.ct-pm-widget__live-label {
  font-family: var(--font-d); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--scam);
}
.ct-pm-widget__resolved-label {
  font-family: var(--font-d); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--neon);
}
.ct-pm-widget__vol {
  font-family: var(--font-d); font-size: 10px; color: var(--neon);
  background: rgba(57,255,20,.08); border: 1px solid rgba(57,255,20,.2);
  padding: 2px 9px; border-radius: 20px;
}
.ct-pm-widget__end {
  font-family: var(--font-d); font-size: 9px; color: var(--muted); margin-left: auto;
}
.ct-pm-widget__title {
  font-family: var(--font-h); font-size: 17px; font-weight: 700;
  color: var(--text); line-height: 1.3; letter-spacing: -.02em;
}

/* Chart + legend side-by-side */
.ct-pm-widget__body {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 20px 16px; flex-wrap: wrap;
}
.ct-pm-widget__chart-wrap {
  position: relative; width: 160px; height: 160px; flex-shrink: 0;
}
.ct-pm-widget__chart-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); text-align: center; pointer-events: none;
}
.ct-pm-widget__chart-pct {
  font-family: var(--font-h); font-size: 24px; font-weight: 800;
  color: var(--text); letter-spacing: -.02em; line-height: 1;
}
.ct-pm-widget__chart-name {
  font-family: var(--font-d); font-size: 9px; color: var(--muted);
  margin-top: 3px; text-align: center; line-height: 1.3; max-width: 68px;
}
.ct-pm-widget__legend { flex: 1; min-width: 160px; }
.ct-pm-widget__legend-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.ct-pm-widget__legend-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.ct-pm-widget__legend-name {
  flex: 1; font-size: 12.5px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ct-pm-widget__legend-pct {
  font-family: var(--font-d); font-size: 12px; font-weight: 700; flex-shrink: 0;
}

/* Outcome bars */
.ct-pm-widget__bars { padding: 0 20px 8px; border-top: 1px solid var(--border); padding-top: 14px; }
.ct-pm-widget__bar-item { margin-bottom: 11px; }
.ct-pm-widget__bar-item--hidden { display: none; }
.ct-pm-widget__bar-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ct-pm-widget__bar-name { font-size: 13px; color: var(--text-secondary); }
.ct-pm-widget__bar-right { display: flex; align-items: center; gap: 10px; }
.ct-pm-widget__bar-vol { font-family: var(--font-d); font-size: 10px; color: var(--muted); }
.ct-pm-widget__bar-pct { font-family: var(--font-d); font-size: 13px; font-weight: 700; min-width: 36px; text-align: right; }
.ct-pm-widget__bar-track { background: rgba(255,255,255,.05); border-radius: 4px; height: 5px; overflow: hidden; }
.ct-pm-widget__bar-fill { height: 5px; border-radius: 4px; transition: width .5s cubic-bezier(.16,1,.3,1); }

/* More button */
.ct-pm-widget__more-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: calc(100% - 40px); margin: 2px 20px 12px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-family: var(--font-d); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 0; border-radius: 8px; cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.ct-pm-widget__more-btn:hover {
  color: var(--neon); border-color: rgba(57,255,20,.35);
  background: rgba(57,255,20,.04);
}

/* Footer */
.ct-pm-widget__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; border-top: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.ct-pm-widget__trade-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-d); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--neon); text-decoration: none;
  transition: text-shadow 150ms ease;
}
.ct-pm-widget__trade-link:hover { text-shadow: 0 0 10px rgba(57,255,20,.6); }
.ct-pm-widget__powered {
  font-family: var(--font-d); font-size: 9px; color: var(--muted); opacity: .6;
}

/* ==============================================
   INLINE SHORTCODES [pm_odds] [pm_vol]
   ============================================== */
.ct-pm-inline {
  display: inline; font-weight: 700; font-size: .95em;
  white-space: nowrap; letter-spacing: .02em;
  font-family: var(--font-d);
}
.ct-pm-inline--up   { color: var(--neon); }
.ct-pm-inline--down { color: var(--scam); }
.ct-pm-inline--flat { color: var(--gold); }
.ct-pm-inline--vol  { color: var(--guide); }
.ct-pm-inline--na   { color: var(--muted); }

/* ==============================================
   F1 STANDINGS [f1_standings_2026]
   ============================================== */
.ct-f1-wrap {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ct-f1-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(57,255,20,.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.ct-f1-header__icon {
  font-size: 1.5rem; color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(248,190,0,.5));
}
.ct-f1-header__title {
  font-family: var(--font-h); font-size: 15px; font-weight: 700;
  color: var(--text); letter-spacing: -.01em;
}
.ct-f1-header__sub {
  font-family: var(--font-d); font-size: 9px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em; margin-top: 2px;
}
.ct-f1-header__badge {
  margin-left: auto; font-family: var(--font-d); font-size: 9px;
  color: var(--neon); background: rgba(57,255,20,.08);
  border: 1px solid rgba(57,255,20,.2); padding: 2px 9px; border-radius: 20px;
}
.ct-f1-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ct-f1-table {
  width: 100%; border-collapse: collapse; min-width: 360px;
}
.ct-f1-table thead tr {
  background: var(--surface-high);
}
.ct-f1-table thead th {
  padding: 10px 14px; font-family: var(--font-d); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  border-bottom: 1px solid var(--border); text-align: left;
}
.ct-f1-table__pos, .ct-f1-table__pts, .ct-f1-table__wins { text-align: center !important; }
.ct-f1-table__row { border-bottom: 1px solid var(--border); transition: background 120ms ease; }
.ct-f1-table__row:last-child { border-bottom: none; }
.ct-f1-table__row:nth-child(even) { background: rgba(255,255,255,.02); }
.ct-f1-table__row:hover { background: rgba(57,255,20,.04); }
.ct-f1-table__pos-cell {
  padding: 10px 14px; text-align: center;
  font-family: var(--font-d); font-size: 12px; font-weight: 700; color: var(--muted);
}
.ct-f1-table__trophy { font-size: 1rem; color: var(--gold); }
.ct-f1-table__driver-cell {
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
}
.ct-f1-table__bar {
  display: inline-block; width: 3px; height: 1.2em;
  border-radius: 2px; flex-shrink: 0;
}
.ct-f1-table__driver-cell strong { font-size: 13.5px; color: var(--text); }
.ct-f1-table__team-cell { padding: 10px 14px; font-size: 12.5px; color: var(--text-secondary); }
.ct-f1-table__pts-cell {
  padding: 10px 14px; text-align: center;
  font-family: var(--font-d); font-size: 14px; font-weight: 800; color: var(--text);
}
.ct-f1-table__wins-cell {
  padding: 10px 14px; text-align: center;
  font-family: var(--font-d); font-size: 12px; color: var(--muted);
}

@media (max-width: 480px) {
  .ct-pm-widget__body { gap: 16px; }
  .ct-pm-widget__chart-wrap { width: 130px; height: 130px; }
  .ct-pm-widget__chart-pct { font-size: 20px; }
  .ct-f1-header { flex-wrap: wrap; }
  .ct-f1-header__badge { margin-left: 0; }
}
