/*!
 * BullBridge News · crypto.html — page styles (tokens only; both themes).
 * Prefix: cx-. Reuses .page-hero, .qt, .stat, .table, .segmented, .fchip, .tile, .figure, .callout, .gauge, .tv-frame.
 */

/* ---------- hero ---------- */
/* a stable, top-anchored box for the copy column: the web-font swap re-wraps the lead but must not move the title or the CTAs */
@media (min-width: 1100px) {
  .page-hero--crypto .page-hero__grid { align-items: start; }
  .cx-hero__copy { display: flex; flex-direction: column; min-height: 392px; padding-top: 64px; box-sizing: content-box; }
  .cx-hero__copy > .cx-hero__ctas { margin-top: auto; padding-top: var(--sp-6); }
}
.page-hero--crypto .hl::after { background: color-mix(in srgb, var(--crypto) 46%, transparent); }
.cx-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-6); }
.cx-hero__tz { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.6; }

.cx-pulse {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px;
  border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}
html[data-theme="light"] .cx-pulse { background: color-mix(in srgb, var(--surface) 80%, transparent); }
.cx-pulse__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cx-pulse__title { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.3; }
.cx-pulse__title .icon { width: 22px; height: 22px; color: var(--crypto); }
.cx-src {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 2px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-2xs); font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.cx-src__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.cx-src[data-mode="live"] .cx-src__dot { background: var(--pos); }
.cx-src[data-mode="stale"] .cx-src__dot, .cx-src[data-mode="fallback"] .cx-src__dot { background: var(--warn); }
.cx-btc { min-height: 181px; }
.cx-btc .qt { height: 100%; min-height: 181px; }
.cx-btc .qt__spark { min-height: 62px; }
.cx-skel-btc { height: 181px; border-radius: 18px; }

.cx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cx-stats dd { margin: 0; }
.cx-stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.cx-stat .stat__value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; min-height: 30px; margin-top: 0; font-size: 22px; line-height: 1.3; }
.cx-stat .stat__sub { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-top: 0; }
.cx-stat .chg { height: 22px; padding: 0 7px; font-size: 12px; }
.cx-stat__when { font-size: 12px; white-space: nowrap; }
.cx-u { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.cx-stat .stat__value .na { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.cx-skel-val { display: inline-block; width: 72%; height: 22px; }
.cx-skel-sub { display: inline-block; width: 52%; height: 12px; }
.cx-meter { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.cx-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--crypto); }
.cx-pulse__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 24px; font-size: var(--fs-xs); color: var(--text-3); }
.cx-pulse__foot .btn, .cx-retry { --btn-h: 44px; padding: 0 14px; font-size: 13.5px; }

/* ---------- 01 market board ---------- */
.section-head__action.btn--sm, .cx-market .btn--sm { --btn-h: 44px; }
.cx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; }
.cx-toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.cx-toolbar .fchip { min-height: 44px; }
.cx-cur__sym { font-weight: 500; color: var(--text-3); margin-inline-start: 4px; }
.cx-cur > button[aria-pressed="true"] .cx-cur__sym { color: var(--text-2); }
.cx-cur > button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.cx-sort { display: none; min-width: 0; }
.cx-sort .select { min-height: 44px; font-size: 14.5px; font-weight: 600; }
.cx-stamp { align-items: flex-start; min-width: 0; }
.cx-stamp > span { min-width: 0; }
.cx-stamp > .icon { margin-top: 3px; }
.cx-refresh { --btn-h: 44px; padding: 0 16px; font-size: 14px; }
.cx-refresh .icon { width: 17px; height: 17px; }
@media (prefers-reduced-motion: no-preference) {
  .cx-refresh[aria-busy="true"] .icon { animation: tn-spin .9s linear infinite; }
}
.cx-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; padding: 12px 16px;
  border-radius: var(--radius); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  font-size: 14.5px; line-height: 1.75; color: var(--text-2);
}
.cx-note > .icon { color: var(--warn); flex: none; }
.cx-note p { flex: 1 1 320px; }
.cx-note b { color: var(--text); }
.cx-board { position: relative; transition: opacity var(--t-med) var(--ease); }
.cx-board.is-busy { opacity: .55; }
.cx-foot { margin-top: 12px; font-size: 13px; line-height: 1.75; color: var(--text-3); }

/* skeleton rows (same rhythm as the final rows) */
.cx-skel { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.cx-skel__row { display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.cx-skel__row:last-child { border-bottom: 0; }
.cx-skel__row i { display: block; flex: none; }
.cx-skel__dot { width: 28px; height: 28px; border-radius: 50%; }
.cx-skel__name { width: 22%; height: 14px; }
.cx-skel__px { width: 12%; height: 14px; margin-inline-start: auto; }
.cx-skel__chip { width: 64px; height: 22px; }
.cx-skel__wide { width: 26%; height: 14px; }
@media (max-width: 899px) { .cx-skel__row:nth-child(n + 11) { display: none; } }

/* desktop table */
.cx-table thead th { padding-block: 4px; }
.cx-table th, .cx-table td { padding-inline: 12px; }
.cx-table tbody th, .cx-table tbody td { padding-block: 9px; }
.cx-table .sort-btn { min-height: 44px; }
.cx-table .chg { min-width: 76px; justify-content: center; }
.cx-th-cur { font-weight: 500; }
.cx-c-rank { width: 52px; }
td.cx-c-rank { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.cx-c-coin { min-width: 200px; }
.cx-coin { display: flex; align-items: center; gap: 12px; min-height: 40px; color: inherit; text-decoration: none; }
.cx-coin__t { display: flex; flex-direction: column; min-width: 0; }
.cx-coin__t b { font-weight: 600; line-height: 1.4; }
.cx-coin__t small { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); line-height: 1.4; }
a.cx-coin:hover b { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.cx-px { font-weight: 600; }
.cx-logo { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-3); object-fit: cover; }
.cx-mono {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--accent-soft, var(--surface-3)); color: var(--accent-ink, var(--text-2));
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: -.06em; direction: ltr;
}
.cx-table td .na { font-size: 13px; }
@media (max-width: 1239px) {
  .cx-c-1h, .cx-c-vol { display: none; }
}

/* phone & small tablet list */
.cx-list, .cx-list-hint, .cx-more { display: none; }
.cx-list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.cx-list > li + li { border-top: 1px solid var(--border); }
.cx-item__sum {
  display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) 56px auto; align-items: center; gap: 10px;
  min-height: 64px; padding: 10px 14px; cursor: pointer; list-style: none; transition: background-color var(--t-fast);
}
.cx-item__sum::-webkit-details-marker { display: none; }
.cx-item__sum:hover { background: var(--surface-2); }
.cx-item[open] > .cx-item__sum { background: var(--surface-2); }
.cx-item__rank { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-align: center; }
.cx-item__id { display: flex; flex-direction: column; min-width: 0; }
.cx-item__id b { font-size: 15px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-item__id small { font-size: 12px; color: var(--text-3); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-item__id small .cx-u { font-size: 12px; font-weight: 500; }
.cx-item__spark { width: 56px; height: 30px; }
.cx-item__px { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cx-item__px b { font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.cx-item__px .chg { height: 22px; padding: 0 6px; font-size: 12px; }
.cx-item__more { padding: 4px 14px 14px; background: var(--surface-2); }
.cx-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.cx-kv > div { padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.cx-kv dt { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.cx-kv dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.cx-item__link { margin-top: 8px; min-height: 44px; }
.cx-list-hint { margin: 0 0 8px; font-size: 12.5px; color: var(--text-3); }
.cx-item__x { display: none; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.cx-item__x small { font-size: 12px; color: var(--text-3); line-height: 1.3; white-space: nowrap; }
.cx-item__x b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.cx-item__x .chg { height: 22px; padding: 0 6px; font-size: 12px; }
.cx-more { margin-top: 12px; }
@media (max-width: 899px) {
  .cx-table-wrap { display: none; }
  .cx-list { display: block; }
  .cx-list-hint { display: block; }
  .cx-more { display: flex; }
  .cx-list.is-collapsed > li:nth-child(n + 11) { display: none; }
  .cx-sort { display: block; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .cx-item__sum { grid-template-columns: 22px 28px minmax(0, 1fr) 96px 64px auto; gap: 12px; padding-inline: 16px; }
  .cx-item__x--d7 { display: flex; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .cx-item__sum { grid-template-columns: 22px 28px minmax(0, 1fr) 96px 128px 72px auto; }
  .cx-item__x--mc { display: flex; }
  .cx-item__mc { display: none; }
  .cx-item__spark { width: 72px; }
}
@media (max-width: 379px) {
  .cx-item__sum { grid-template-columns: 18px 28px minmax(0, 1fr) auto; gap: 8px; padding-inline: 10px; }
  .cx-item__spark { display: none; }
}

/* ---------- 02 fear & greed ---------- */
.cx-z1 { --z: var(--neg); }
.cx-z2 { --z: color-mix(in srgb, var(--neg) 50%, var(--warn)); }
.cx-z3 { --z: var(--warn); }
.cx-z4 { --z: color-mix(in srgb, var(--pos) 55%, var(--warn)); }
.cx-z5 { --z: var(--pos); }
.cx-fng__now, .cx-fng__hist { display: flex; flex-direction: column; }
.cx-fng .tile__head { flex-wrap: wrap; }
.cx-fng__gauge { display: grid; place-items: center; min-height: 236px; }
.cx-skel-gauge { width: min(300px, 100%); height: 200px; border-radius: 150px 150px 18px 18px; }
.cx-fng .gauge { width: 100%; max-width: 300px; }
/* market.js orders the end labels with the arc (fear under the red left end) and sets the value under the hub */
.cx-fng .gauge__value { font-size: 40px; }
.cx-fng .gauge__label { font-size: 15px; color: var(--text); }
.cx-fng__state { width: 100%; }
.cx-fng__cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.cx-fng__cmp:empty { display: none; }
.cx-fng__cmp > div { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.cx-fng__cmp dt { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.cx-fng__cmp dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin: 3px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cx-fng__cmp dd .num { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--text); }
.cx-zdot { width: 9px; height: 9px; border-radius: 50%; background: var(--z); flex: none; }
.cx-fng__src { margin-top: auto; padding-top: 16px; font-size: 12.5px; line-height: 1.7; color: var(--text-3); }
.cx-fng__readout { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 13.5px; color: var(--text-2); }
.cx-fng__readout b { font-family: var(--font-head); font-size: 17px; color: var(--text); }
.cx-fng__chart { position: relative; height: 230px; direction: ltr; border-radius: 12px; touch-action: pan-y; }
.cx-fng__chart:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.cx-fng__chart > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cx-skel-chart { position: absolute; inset: 8px 0; }
/* error state: let the box grow with its message, and drop the colour key that has no chart to explain */
.cx-fng__chart:has(> .cx-fng__state) { height: auto; }
.cx-fng__hist:has(.cx-fng__chart > .cx-fng__state) .cx-zones { display: none; }
.cx-fng__chart .cx-grid { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.cx-fng__chart .cx-tick { font-family: var(--font-num); font-size: 12px; fill: var(--text-3); }
.cx-fng__chart .cx-xl { font-family: var(--font-body); font-size: 12px; fill: var(--text-3); }
.cx-fbar { fill: var(--z); }
.cx-fsel { fill: var(--surface-3); }
.cx-fval { font-family: var(--font-head); font-size: 13px; font-weight: 700; fill: var(--text); }
.cx-zones { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--text-3); }
.cx-zones li { display: inline-flex; align-items: center; gap: 7px; }
.cx-zones i { width: 10px; height: 10px; border-radius: 3px; background: var(--z); }
.cx-fng__how { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.cx-fng__how h4 { font-size: 15px; line-height: 1.5; margin-bottom: 6px; }
.cx-fng__how p { font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.cx-fng__how p + p { margin-top: 8px; }

/* ---------- 03 charts ---------- */
.cx-chart { display: flex; flex-direction: column; }
.cx-chart__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.cx-chart .tabs__panel { margin-top: 18px; }
.cx-history { --chart-h: 464px; }
@media (max-width: 1099px) { .cx-history { --chart-h: 360px; } }
.cx-minis { display: grid; gap: var(--gap); align-content: stretch; }
.cx-mini { display: flex; flex-direction: column; }
.cx-mini .tile__sub { margin: 2px 0 12px; }
.cx-mini .tv-frame, .cx-chart .tv-frame, .cx-heat .tv-frame { border-color: transparent; box-shadow: none; border-radius: var(--radius); }
/* until TradingView draws its iframe the empty widget box has no height, so its copyright line would sit on the
   frame label at the top: show it only once the frame has loaded (see sharedIssues: style.css) */
.cx-mini .tv-frame:not(.is-loaded) .tradingview-widget-copyright, .cx-chart .tv-frame:not(.is-loaded) .tradingview-widget-copyright,
.cx-heat .tv-frame:not(.is-loaded) .tradingview-widget-copyright { visibility: hidden; }
.cx-heat__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.cx-heat__head .tile__sub { margin-top: 4px; max-width: 70ch; font-size: 13.5px; }

/* ---------- 04 news ---------- */
.cx-news > [data-layout="featured"] { display: flex; }
.cx-news > [data-layout="featured"] > * { flex: 1; }
.cx-news > [data-layout="latest"] > .latest { height: 100%; }
/* four cards: always a full row (4 up) or a 2 × 2 block, never 3 + 1 orphan */
@media (min-width: 1100px) { .cx-news-more .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1099px) { .cx-news-more .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 05 guide ---------- */
/* a chapter chip or deep link (#guide-wallets, #heat…) to a card still waiting for its reveal: drop the 16px slide before
   the jump is measured, so it lands under the header like every other anchor instead of 16px too high */
main .reveal--pending:target { transform: none; }
.cx-chapters ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--sp-6); padding: 0; list-style: none; }
.cx-chapters a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}
.cx-chapters a:hover { color: var(--text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.cx-chapters .num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.cx-chapters .icon { width: 16px; height: 16px; flex: none; color: var(--accent-ink); }
.cx-gcard { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2.2vw, 28px); }
.cx-gcard__kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--accent-ink); line-height: 1.4; }
.cx-gcard__num { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 6px; border-radius: 9px; background: var(--accent-soft); font-family: var(--font-mono); font-size: 12.5px; }
.cx-gcard__title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: clamp(20px, .5vw + 16px, 24px); line-height: 1.4; }
.cx-gcard__title .icon { color: var(--accent); }
.cx-figure { margin: 2px 0 0; }
.cx-figure .figure__frame { background: color-mix(in srgb, var(--accent) 5%, var(--surface-2)); box-shadow: none; }
.cx-figure .figure__frame svg.cx-ill { display: block; width: 100%; max-width: 400px; height: auto; margin-inline: auto; }
.cx-ill .ill-text { font-size: 15px; }
.cx-gcard__body p { font-size: 15.5px; line-height: 1.85; color: var(--text-2); }
.cx-gcard__body p + p { margin-top: 10px; }
.cx-gcard__body b { color: var(--text); font-weight: 600; }
.cx-gcard__note { font-size: 13.5px; line-height: 1.75; color: var(--text-3); }
.cx-gcard__link { align-self: flex-start; min-height: 44px; margin-top: auto; }
.cx-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cx-facts li { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14.5px; line-height: 1.75; color: var(--text-2); }
.cx-facts b { color: var(--text); font-weight: 600; }
.cx-facts--end { margin-top: auto; }

/* illustration classes (inline SVG, tokens only) */
.cx-blk { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.cx-strip { fill: var(--surface-2); }
.cx-strip--own { fill: var(--accent-soft); }
.cx-hex { font-family: var(--font-mono); fill: var(--text-3); }
.cx-hex--on { fill: var(--accent-ink); font-weight: 600; }
.cx-link { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cx-row-now { fill: var(--accent-soft); }
.cx-bar--past { fill: var(--text-3); opacity: .5; }
.cx-bar--now { fill: var(--accent); }
.cx-bar--next { fill: var(--accent); opacity: .45; }
.cx-val { font-weight: 600; fill: var(--text-2); }
.cx-val--now { fill: var(--text); font-weight: 700; }
.cx-coin { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.cx-coin-ring { fill: none; stroke: var(--accent); stroke-opacity: .5; stroke-dasharray: 3 4; }
.cx-coin-t { font-family: var(--font-head); font-size: 24px; font-weight: 700; fill: var(--text); }
.cx-ill .ill-text.cx-coin-t { font-size: 24px; }
.cx-bill { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.cx-bill-in { fill: none; stroke: var(--border-strong); stroke-dasharray: 3 3; }
.cx-arrow { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-arrow--soft { stroke: var(--text-3); stroke-dasharray: 3 3; }
.cx-vault { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.cx-chip { fill: var(--surface-2); stroke: var(--border-strong); }
.cx-node { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.cx-node--end { fill: var(--accent-soft); stroke: color-mix(in srgb, var(--accent) 60%, transparent); }
.cx-tag { fill: var(--accent-ink); font-weight: 600; }
.cx-sep { stroke-dasharray: 4 4; }
.cx-wave { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.cx-wave--off { stroke: var(--text-3); }
.cx-wave-x { fill: none; stroke: var(--text-2); stroke-width: 2.4; stroke-linecap: round; }
.cx-dev { fill: var(--surface); stroke: var(--text-2); stroke-width: 1.8; }
.cx-dev-screen { fill: var(--accent-soft); }
.cx-dev-key { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.cx-dev-dot { fill: var(--accent); }
.cx-dev-btn { fill: var(--surface-3); stroke: var(--text-3); stroke-width: 1.2; }
.cx-seed { fill: var(--warn-soft); stroke: color-mix(in srgb, var(--warn) 45%, transparent); stroke-width: 1.5; }
.cx-seed-warn { fill: var(--warn); font-weight: 700; }
.cx-seed-slots rect { fill: var(--surface); stroke: var(--border-strong); }
.cx-ill .cx-seed-t { font-family: var(--font-mono); font-size: 15px; fill: var(--text-3); }

/* live data lines inside guide cards */
.cx-live-block { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.cx-live-block__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--text-3); }
.cx-live-block__top b { font-size: 15.5px; font-weight: 700; color: var(--text); }
.cx-live-block .cx-meter { display: block; height: 8px; margin-top: 9px; }
.cx-live-block__sub { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.cx-live-line { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.cx-live-line b { color: var(--text); font-weight: 700; }
.cx-live-line .cx-src__dot { margin-top: .62em; background: var(--pos); }
.cx-live-line small { color: var(--text-3); font-size: 12.5px; }

/* GENIUS timeline */
.cx-timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.cx-timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 24px 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.cx-timeline li::before { content: ""; position: absolute; top: 3px; inset-inline-start: 0; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--surface); }
.cx-timeline li::after { content: ""; position: absolute; top: 9px; inset-inline: 0; height: 2px; background: var(--accent); }
.cx-timeline li:last-child::after { inset-inline-end: auto; width: 0; }
.cx-timeline li.is-next::before { background: var(--surface); border: 2.5px solid var(--accent); }
.cx-timeline li:nth-last-child(2)::after { background: repeating-linear-gradient(to left, var(--accent) 0 6px, transparent 6px 11px); }
.cx-timeline time { font-weight: 700; font-size: 13.5px; color: var(--text); }
.cx-timeline small { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }

/* risks */
.cx-risk-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cx-risk { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cx-risk:first-child { padding-top: 2px; }
.cx-risk:last-child { border-bottom: 0; padding-bottom: 0; }
.cx-risk__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.cx-risk__icon .icon { width: 19px; height: 19px; }
.cx-risk h4 { font-size: 15.5px; line-height: 1.5; }
.cx-risk h4 small { margin-inline-start: 6px; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--text-3); }
.cx-risk p { margin-top: 2px; font-size: 14.5px; line-height: 1.75; color: var(--text-2); }
.cx-risk p b { color: var(--text); }
.cx-dd .figure__frame { padding: 12px 12px 6px; }
.cx-dd__plot { position: relative; height: 172px; direction: ltr; }
.cx-dd__plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.cx-dd__plot .cx-dline { fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linejoin: round; }
.cx-dd__plot .cx-dline--dd { stroke: var(--neg); stroke-width: 2.2; }
.cx-dd__plot .cx-dfill { fill: var(--neg-soft); }
.cx-dd__plot .cx-dpeak { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 4; }
.cx-dd__plot .cx-ddim { stroke: var(--neg); stroke-width: 1.4; }
.cx-dd__plot .cx-ddot { fill: var(--surface); stroke-width: 2.5; }
.cx-dd__plot .cx-ddot--peak { stroke: var(--text-2); }
.cx-dd__plot .cx-ddot--low { stroke: var(--neg); }
.cx-dd__plot .cx-dt { font-family: var(--font-num); font-size: 12px; fill: var(--text-2); }
.cx-dd__plot .cx-dt--neg { fill: var(--neg); font-weight: 700; font-size: 13px; }
.cx-dd__plot .cx-dx { font-family: var(--font-body); font-size: 12px; fill: var(--text-3); }

/* before you start + Saudi position */
.cx-before { display: flex; flex-direction: column; gap: 16px; }
/* .checklist (style.css) draws the discs and the ✓ in the crypto accent; this card only sets its rhythm */
.cx-checks { gap: 12px; }
.cx-checks li { line-height: 1.8; }
.cx-before__tools { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.cx-before__label { font-size: 13px; font-weight: 700; color: var(--text-3); margin-bottom: 10px; }
.cx-before__links { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-before__links .lchip { min-height: 44px; padding: 0 14px; font-size: 13.5px; }
.cx-saudi { margin: 0; padding: 22px 22px 20px; }
.cx-saudi .callout__title { font-family: var(--font-head); font-size: 18px; line-height: 1.5; }
.cx-saudi .callout__body p { font-size: 15px; line-height: 1.85; }
.cx-saudi .callout__body b { color: var(--text); font-weight: 600; }
.cx-saudi .cx-saudi__src { font-size: 13px; color: var(--text-3); }

/* ---------- responsive ---------- */
.cx-hero__line { height: 112px; }
@media (max-width: 1099px) {
  .cx-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-chapters a { padding: 0 12px; gap: 7px; }
}
/* tablet landscape: the hero stacks, so pair blocks side by side instead of stretching them across 1000px */
@media (min-width: 900px) and (max-width: 1099px) {
  .cx-pulse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
  .cx-pulse__head, .cx-pulse__foot { grid-column: 1 / -1; }
  .cx-news > [data-layout="featured"], .cx-news > [data-layout="latest"] { grid-column: span 3; }
  .cx-guide > .cx-gcard, .cx-guide > .cx-before, .cx-guide > .cx-saudi { grid-column: span 3; }
}
@media (min-width: 600px) and (max-width: 1099px) {
  .cx-fng__now { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 28px; align-items: center; }
  .cx-fng__now > .tile__head { grid-column: 1 / -1; }
  .cx-fng__gauge { grid-row: span 2; min-height: 220px; }
  .cx-fng__cmp { grid-template-columns: minmax(0, 1fr); margin: 0; }
  .cx-fng__cmp > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .cx-fng__cmp dd { margin: 0; }
  .cx-fng__src { align-self: start; padding-top: 10px; margin-top: 0; }
}
@media (max-width: 699px) {
  .cx-lead-more { display: none; }
  /* the status pill fills in after load; keep the caption on its own line from the first paint so the panel below never jumps */
  .cx-hero__tz { flex-basis: 100%; }
  .cx-hero__ctas { margin-top: var(--sp-5); }
  .cx-hero__ctas .btn { flex: 1 1 0; padding-inline: 12px; }
  .cx-pulse { padding: 12px; gap: 10px; border-radius: 20px; }
  .cx-pulse__title { font-size: 18px; }
  .cx-btc, .cx-btc .qt { min-height: 158px; }
  .cx-skel-btc { height: 158px; }
  .cx-btc .qt__spark { min-height: 52px; }
  .cx-stats { gap: 8px; }
  .cx-stat { padding: 10px 12px; }
  .cx-stat .stat__value { font-size: 19px; min-height: 26px; }
  .cx-u { font-size: 12px; }
  .cx-toolbar { gap: 10px; }
  .cx-toolbar__group { width: 100%; }
  .cx-cur { flex: 1 1 auto; }
  .cx-cur > button { flex: 1; }
  .cx-sort { flex: 1 1 100%; }
  .cx-toolbar__meta { justify-content: space-between; }
  .cx-toolbar__meta .cx-stamp { flex: 1 1 0; }
  .cx-skel__row { height: 64px; padding: 0 14px; }
  .cx-skel__wide { display: none; }
  .cx-fng__gauge { min-height: 210px; }
  .cx-fng__cmp { gap: 6px; }
  .cx-fng__cmp > div { padding: 8px 9px; }
  .cx-fng__cmp dd .num { font-size: 17px; }
  .cx-fng__chart { height: 190px; }
  .cx-minis { grid-template-columns: minmax(0, 1fr); }
  .cx-history { --chart-h: 260px; }
  .cx-chart__head .tabs__list { width: 100%; }
  .cx-chart__head .tabs__tab { flex: 1; }
  .cx-hero__line { height: 84px; }
  .cx-hero__line .hero__line-label { display: none; }
  /* chapter chips: one swipeable row instead of four wrapped rows */
  .cx-chapters { margin-inline: calc(var(--gutter) * -1); }
  .cx-chapters ol { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px var(--gutter); scroll-padding-inline: var(--gutter); margin-bottom: var(--sp-4); }
  .cx-chapters ol::-webkit-scrollbar { display: none; }
  .cx-chapters li { flex: none; }
  .cx-gcard { padding: 16px; gap: 12px; }
  .cx-gcard .figure__frame { padding: 10px 6px; }
  .cx-gcard__body p { font-size: 15px; }
  .cx-timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cx-timeline li { padding: 0 26px 14px 0; padding-inline: 26px 0; }
  .cx-timeline li::after { top: 14px; bottom: -3px; inset-inline-start: 6px; inset-inline-end: auto; width: 2px; height: auto; }
  .cx-timeline li:nth-last-child(2)::after { background: repeating-linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px 11px); }
  .cx-timeline li:last-child { padding-bottom: 0; }
  .cx-saudi { padding: 16px; }
  .cx-news-more .ncard { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; align-items: start; }
  .cx-news-more .ncard__media { border-radius: 11px; aspect-ratio: 1 / 1; }
  .cx-news-more .ncard__body { padding: 0; gap: 6px; }
  .cx-news-more .ncard__title { font-size: 17px; -webkit-line-clamp: 3; }
  .cx-news-more .ncard__summary { display: none; }
  .cx-news-more .nfb__glyph { width: 30px; height: 30px; top: 6px; inset-inline-start: 6px; border-radius: 9px; }
  .cx-news-more .nfb__glyph .icon { width: 16px; height: 16px; }
  .cx-news-more .news-grid { gap: 10px; }
}
