/* Layout: an app-like news terminal. Phone first: a top bar that scrolls away (sticky from 960px), a bottom tab bar with the five main
   sections and a sheet for the rest; one page per hash route. From 960px the tabs move into the top bar
   and boards become 12-column grids. Single dark theme on purpose (the brand is a neon-on-black logo). */
:root {
  --bg: #070e0f;
  --surface: #0f1b1d;
  --surface-2: #142426;
  --line: rgba(222, 244, 240, .09);
  --line-2: rgba(222, 244, 240, .16);
  --fg: #ecf4f3;
  --soft: #bccdcb;
  --muted: #7f9695;
  --brand: #00f0ac;
  --brand-ink: #032419;
  --up: #10b981;
  --down: #ef4444;
  --gold: #d4a046;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 16px;
  --tabbar: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .gold { color: var(--gold); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 6.4vw, 46px); font-weight: 800; line-height: 1.05; }
h2 { font-size: 21px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 16px; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
.eyebrow { font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.muted { color: var(--muted); } .soft { color: var(--soft); }

/* ── top bar ── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img.logo { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(212,160,70,.35)); flex: none; }
.brand img.word { height: 15px; width: auto; filter: drop-shadow(0 0 8px rgba(0,240,172,.35)); }
.topnav { display: none; gap: 2px; margin-left: 18px; }
.topnav a { text-decoration: none; color: var(--soft); font-weight: 500; font-size: 14px; padding: 8px 11px; border-radius: 999px; }
.topnav a:hover { color: var(--fg); background: var(--surface); }
.topnav a[aria-current] { color: var(--brand); background: rgba(0,240,172,.08); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
/* language: one circle with the current language; tapping it drops the other languages down as circles */
.langs { position: relative; }
.langs summary, .langs nav a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  font: 600 11px/1 var(--font-mono); text-decoration: none; cursor: pointer;
}
.langs summary { list-style: none; color: var(--brand-ink); background: var(--brand); border: 1px solid var(--brand); user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs nav { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; display: grid; gap: 6px; }
.langs nav a { color: var(--fg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.langs nav a:hover { border-color: var(--brand); color: var(--brand); }
.langs[open] nav a { animation: lang-drop .18s ease-out both; }
.langs[open] nav a:nth-child(2) { animation-delay: .04s; }
@keyframes lang-drop { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .langs[open] nav a { animation: none; } }
@media (min-width: 960px) { .topnav { display: flex; } }
@media (max-width: 959px) { .top { position: relative; top: auto; margin-top: env(safe-area-inset-top, 0px); } }  /* scrolls away with the page */
@media (min-width: 960px) and (max-width: 1240px) { .topnav { gap: 0; margin-left: 10px; } .topnav a { font-size: 12.5px; padding: 7px 6px; white-space: nowrap; } }

/* ── bottom tab bar (phones) ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
}
.tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar [aria-current] { color: var(--brand); }
main { padding-bottom: calc(var(--tabbar) + 24px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) { .tabbar { display: none; } main { padding-bottom: 48px; } }

/* "More" sheet */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); border-top: 1px solid var(--line-2);
  border-radius: 22px 22px 0 0; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
}
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 12px; }
.sheet nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sheet nav a { display: grid; gap: 6px; justify-items: center; text-align: center; text-decoration: none; padding: 14px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 13px; }
.sheet nav a span:first-child { font-size: 22px; }

/* ── shared blocks ── */
.page { padding-top: 20px; }
.page-head { display: grid; gap: 10px; margin-bottom: 18px; }
.page-head .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sample { font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.panel { background: linear-gradient(180deg, rgba(20,36,38,.65), var(--surface)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; position: relative; overflow: hidden; }
@media (min-width: 600px) { .panel { padding: 20px; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head a { font-size: 13px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
/* home: the right column keeps its natural height, the live news fill exactly that much (site.js) */
#home-side { align-content: start; }
#live-news > li:nth-child(n+9) { display: none; }
.grid12 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }  /* phones: one column as wide as the screen, not as the widest content */
@media (min-width: 960px) {
  .grid12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
  .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
}
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 600 12px/1.45 var(--font-mono); white-space: nowrap; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); background: color-mix(in srgb, currentColor 13%, transparent); }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--soft); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"] { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 22px rgba(0,240,172,.25); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); }
.live { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--up); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 100% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } html { scroll-behavior: auto; } }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--soft); text-decoration: none; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 46px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: inherit; outline: none; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* news rows */
.news-list { display: grid; margin: 0; padding: 0; list-style: none; }
.news-row { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.news-row:first-child { border-top: 0; padding-top: 0; }
.news-row a.t { text-decoration: none; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.news-row a.t:hover { color: var(--brand); }
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.ago { font: 500 11.5px/1 var(--font-mono); color: var(--soft); background: var(--surface-2); border-radius: 6px; padding: 4px 6px; }
.hi { font: 700 10px/1 var(--font-mono); letter-spacing: .08em; color: var(--gold); border: 1px solid rgba(212,160,70,.45); border-radius: 6px; padding: 4px 6px; }
.impacts { display: flex; gap: 6px; flex-wrap: wrap; }
.impact { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); font: 600 12.5px/1.3 var(--font-mono); text-decoration: none; }
.impact b { color: var(--fg); font-weight: 600; }
.impact.idx { background: rgba(56,189,248,.12); color: #7dd3fc; }
/* the news source: an outlined badge, unlike the filled coin tags; opens our page about the source */
.src { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font: 500 11.5px/1.3 var(--font-body); color: var(--soft); text-decoration: none; white-space: nowrap; }
.src::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-right: 6px; opacity: .8; }
.src b { margin-left: 5px; color: var(--brand); font-weight: 600; }
.src .num { margin-left: 5px; color: var(--muted); }
.also { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.src:hover { color: var(--brand); border-color: var(--brand); }
@media (min-width: 760px) { .src-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { /* phones: the price columns must be visible without scrolling, "per day" is on the source's page */
  table.impact-table.src-table { min-width: 0; }
  .impact-table.src-table th:nth-child(3), .impact-table.src-table td:nth-child(3) { display: none; }
  .impact-table.src-table th { white-space: normal; line-height: 1.3; letter-spacing: 0; vertical-align: bottom; padding-inline: 4px; }
  .impact-table.src-table td { padding-inline: 4px; }
  .impact-table.src-table td:first-child { white-space: normal; }
}
.src-table td:first-child a { text-decoration: none; }
.src-table td:first-child a:hover { color: var(--brand); }
/* new since the last visit to this section, until the visitor leaves it (site.js) */
.is-new { background: rgba(0,240,172,.075); }
.news-row.is-new, .move-row.is-new, .fc-row.is-new, .ep.is-new, .timeline li.is-new { margin-inline: -10px; padding-inline: 10px; box-shadow: inset 3px 0 0 var(--brand); }
.news-row.is-new:first-child { padding-top: 11px; }
.post-card.is-new { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.news-row.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: rgba(0,240,172,.12); } to { background: transparent; } }

/* home */
.hero { display: grid; gap: 14px; padding-top: 22px; }
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-top img { width: 64px; height: 64px; filter: drop-shadow(0 0 18px rgba(212,160,70,.35)); }
.hero h1 em { font-style: normal; color: var(--brand); }
.statline { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.statline b { font: 600 15px/1 var(--font-mono); color: var(--fg); margin-right: 4px; }
.gauge svg { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.hot { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hot li { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7,14,15,.5); }
.hot .rk { font: 600 12px/1 var(--font-mono); color: var(--muted); }
.hot .tk { font: 700 17px/1 var(--font-display); }
.hot p { grid-column: 2 / 4; font-size: 13px; color: var(--soft); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 960px) { .hscroll { grid-auto-columns: minmax(250px, 1fr); } }

/* post cards */
.post-card { display: grid; gap: 10px; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface-2); max-width: 100%; }
.post-card .body { padding: 0 14px 14px; display: grid; gap: 6px; }
.post-card .kind { font: 600 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.post-card p { font-size: 13.5px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.posts-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* impact table on the news page */
.table-wrap { overflow-x: auto; }
table.impact-table { width: 100%; border-collapse: collapse; min-width: 520px; }
table.impact-table.compact { min-width: 0; }
.impact-table th { text-align: right; font: 600 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 8px 10px; }
.impact-table th:first-child, .impact-table td:first-child { text-align: left; }
.impact-table td { text-align: right; padding: 11px 8px; border-top: 1px solid var(--line); font: 600 13.5px/1 var(--font-mono); white-space: nowrap; }
.impact-table td:first-child { font: 700 15px/1 var(--font-display); }
.impact-table tr.btc td { color: var(--muted); font-weight: 500; }
.impact-table tr.vs td { font-size: 12.5px; }
.impact-table tr:target td { background: rgba(0,240,172,.1); }
.impact-table tr[id] { scroll-margin-top: 45vh; }
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1; min-width: 52px; border: 0; background: none; cursor: pointer; padding: 9px 8px; border-radius: 9px; font: 600 13px/1 var(--font-mono); color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* moves */
.move-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.move-row:first-child { border-top: 0; }
.move-row .rk { font: 600 13px/1 var(--font-mono); color: var(--muted); }
.move-row .big { font: 700 22px/1 var(--font-mono); text-align: right; }
.move-row .vs { grid-column: 3; text-align: right; font: 500 11.5px/1.2 var(--font-mono); color: var(--muted); }
.move-row .t { font-weight: 600; font-size: 14.5px; line-height: 1.35; text-decoration: none; }
.move-row .sub { grid-column: 2; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* coin page */
.coin-head { display: flex; align-items: center; gap: 14px; }
.coin-dot { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 22px/1 var(--font-display); color: var(--bg); background: #f4b728; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand), 0 0 22px rgba(0,240,172,.35); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); min-width: 0; }
.tile span { display: block; font-size: 12px; color: var(--muted); }
.tile b { display: block; font: 600 22px/1.15 var(--font-mono); margin-top: 6px; }

/* forecasts, listings, kevin */
.ring svg { width: 180px; height: auto; display: block; margin: 0 auto; }
.strat { display: inline-block; font: 600 11px/1 var(--font-mono); letter-spacing: .02em; padding: 4px 8px; border-radius: 6px; text-decoration: none; border: 1px solid currentColor; }
.strat-chart { color: var(--muted); } .strat-breakout { color: #38bdf8; } .strat-pullback { color: #a78bfa; } .strat-meanrev { color: #f59e0b; } .strat-dtrend { color: #34d399; } .strat-strend { color: #a78bfa; } .strat-thrust { color: #f59e0b; } .strat-relstr { color: #f472b6; } .strat-retest { color: #fde047; } .strat-aichart { color: #22d3ee; }
.grid12 > .panel { min-width: 0; }  /* a wide table scrolls inside its panel instead of widening the page */
.table-wrap { overflow-x: auto; max-width: 100%; }
.strat-doc { display: grid; gap: 10px; padding-bottom: 16px; }
.strat-doc p, .strat-doc li { color: var(--soft); font-size: 14.5px; line-height: 1.6; }
.strat-doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.strat-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.strat-table th { font: 600 10px/1.3 var(--font-mono); letter-spacing: 0; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 6px 10px 0; vertical-align: bottom; }
.strat-table td { padding: 9px 6px 9px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.strat-table .num { text-align: right; }
.strat-table td:last-child, .strat-table th:last-child { padding-right: 0; }
.strat-table td:last-child { font-weight: 700; }
.strat-table .st-m { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
/* the table fits its panel without a side scroll; phones keep the calls, hits, misses and the result */
.strat-wrap { container-type: inline-size; }
@container (max-width: 470px) {
  .strat-table th { font-size: 9px; padding-right: 5px; }
  .strat-table td { padding-right: 5px; }
  .strat-table .strat { white-space: normal; line-height: 1.25; }
}
@container (max-width: 380px) {
  .strat-table .st-x { display: none; }
  .strat-table th { font-size: 8.5px; }
}
.fc-link { text-decoration: none; color: inherit; border-radius: 10px; transition: background .15s; }
.fc-link:hover { background: rgba(255,255,255,.03); }
.fc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.fc-row:first-child { border-top: 0; }
/* A call's scale: the stop on the left, the entry in the middle, the targets on the right */
.fc-list { container-type: inline-size; }
.fc-now { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.fc-state { font: 600 11px var(--font-mono); color: var(--gold); }
.fc-state.k-hit { color: var(--brand); } .fc-state.k-partial { color: var(--up); } .fc-state.k-miss { color: var(--down); }
.fc-pct { font: 800 21px/1 var(--font-display); min-width: 68px; text-align: right; }
.t-up { --tone: var(--up); } .t-down { --tone: var(--down); } .t-best { --tone: var(--brand); }
.fc-pct.t-up, .fc-pct.t-down, .fc-pct.t-best { color: var(--tone); }
.fc-scale { grid-column: 1 / -1; padding: 7px 0 2px; }
.fc-scale.none { display: none; }
.fc-track { position: relative; height: 8px; border-radius: 99px; background: var(--line); --tone-x: var(--tone, var(--muted)); }
.fc-track i { position: absolute; display: block; }
.fc-fill { top: 0; height: 8px; border-radius: 99px; background: var(--tone-x); transition: left .6s, width .6s; }
.fc-mark { left: 50%; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: var(--fg); }
.fc-mark.tp1 { left: 75%; background: rgba(222, 244, 240, .45); }
.fc-dot { top: -4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--tone-x); border: 3px solid var(--surface); box-sizing: border-box; transition: left .6s; }
.fc-labels { position: relative; height: 16px; margin-top: 7px; font-size: 11px; line-height: 16px; color: var(--muted); }
.fc-labels span { position: absolute; white-space: nowrap; } .fc-labels em { font-style: normal; }
.fc-labels .mid { left: 50%; transform: translateX(-50%); } .fc-labels .tp1 { left: 75%; transform: translateX(-50%); } .fc-labels .end { right: 0; }
@container (max-width: 560px) { .fc-labels em { display: none; } .fc-now { flex-direction: column-reverse; align-items: flex-end; gap: 4px; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline li.muted { display: block; }
/* exchange badge of a listing */
.xch { font: 700 10.5px/1 var(--font-mono); letter-spacing: .04em; border-radius: 6px; padding: 4px 6px; border: 1px solid var(--line); color: var(--soft); }
.xch-binance { color: #f0b90b; border-color: rgba(240,185,11,.45); }
.xch-upbit { color: #4c8dff; border-color: rgba(76,141,255,.45); }
.xch-coinbase { color: #3d7bff; border-color: rgba(61,123,255,.45); }
.chip-sep { width: 1px; align-self: stretch; background: var(--line); margin: 4px 2px; }
.timeline time { font: 500 12px/1.4 var(--font-mono); color: var(--soft); }
.ep { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.ep:first-child { border-top: 0; }
.ep .n { font: 800 26px/1 var(--font-display); color: var(--gold); }
.diary { border-radius: 20px; padding: 22px; background: radial-gradient(380px 220px at 100% 0%, rgba(212,160,70,.25), transparent 70%), linear-gradient(160deg, #2a1d0c, #13100b 60%, var(--surface)); border: 1px solid rgba(212,160,70,.3); }
.diary blockquote { margin: 12px 0 0; font: 700 clamp(20px, 4.6vw, 28px)/1.2 var(--font-display); }
.post-text { white-space: pre-line; font-size: 15.5px; line-height: 1.6; color: var(--soft); }
.post-text .coin-link { color: var(--brand); text-decoration: none; font-weight: 600; }
.post-text .coin-link:hover, .real-chart figcaption a:hover { text-decoration: underline; }
.real-chart figcaption a { text-decoration: none; color: var(--brand); }
.post-text .post-img2 { display: block; width: 100%; height: auto; margin: 10px 0 4px; border-radius: 14px; }
.post-text .trade-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--gold); color: #111; font-weight: 700; text-decoration: none; }
.post-img { width: 100%; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); display: block; }
footer { border-top: 1px solid var(--line); margin-top: 32px; }
footer .wrap { padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px; border-radius: 999px; padding: 10px 16px; }
@media (min-width: 960px) { .toast { bottom: 28px; } }

/* ── news rows. Phones: headline on top, time left and coin tags right under it ── */
.news-list { container-type: inline-size; grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; }
.news-list > li { grid-column: 1 / -1; }
.news-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t t" "ago tags"; align-items: center; column-gap: 8px; }
.news-row .nr-body { display: contents; }
.news-row a.t { grid-area: t; }
.news-row .ago { grid-area: ago; justify-self: start; white-space: nowrap; }
.news-row .impacts { grid-area: tags; justify-content: flex-end; align-items: center; }
.news-row .impacts:empty { display: none; }
/* wide column: time, headline, tags on one line; the time column is as wide as the longest time in the list
   (subgrid), ~2-3 spaces to the headline, and only the headline wraps */
@container (min-width: 480px) {
  .news-row { grid-template-columns: subgrid; grid-template-areas: none; }
  .news-row .ago { grid-area: auto; grid-column: 1; }
  .news-row .nr-body { grid-column: 2; display: flex; align-items: center; gap: 14px; min-width: 0; }
  .news-row a.t { flex: 1; min-width: 0; }
  /* tags take at most ~45% of the row and wrap onto a second line, so the headline is never squeezed into a
     word-per-line column (the coin page's news column has room for only about two tags) */
  .news-row .impacts { flex: 0 1 auto; max-width: 45%; flex-wrap: wrap; justify-content: flex-end; white-space: nowrap; }
}
@container (min-width: 700px) { .news-row .impacts { max-width: 52%; } }
@media (min-width: 960px) { .news-row { padding: 11px 0; } }
/* /news/: the spare rows stay hidden until site.js finds room for them beside the right column */
#news-fill > li:nth-child(n+31) { display: none; }

/* ── side panels (wide screens) ── */
.side, .rail { display: none; }
.side h4, .rail h4 { font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--soft); font-weight: 500; font-size: 14px; }
.side-nav a svg { width: 18px; height: 18px; flex: none; }
.side-nav a .count { margin-left: auto; font: 500 11.5px/1 var(--font-mono); color: var(--muted); }
/* "+N" new since the last visit */
.new-badge { font: 700 10.5px/1 var(--font-mono); color: var(--bg); background: var(--brand); border-radius: 999px; padding: 3px 6px; }
.side-nav, .side-nav a { min-width: 0; }
.side-nav a { white-space: nowrap; gap: 9px; overflow: hidden; }
.side-nav a .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-nav a .new-badge { margin-left: auto; font-size: 10px; padding: 2px 5px; }
.side-nav a .new-badge + .count { margin-left: -4px; }
.tabbar a { position: relative; }
.tabbar .new-badge { position: absolute; top: 0; left: 50%; margin-left: 6px; font-size: 9.5px; padding: 2px 5px; }
.sheet nav a .new-badge { margin-left: auto; }
.tabbar button { position: relative; }
.tabbar button.has-new::after { content: ''; position: absolute; top: 4px; left: 50%; margin-left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.side-nav a:hover { background: var(--surface); color: var(--fg); }
.side-nav a[aria-current] { background: rgba(0,240,172,.09); color: var(--brand); }
.side-block { padding: 14px 12px 4px; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .chip { padding: 6px 10px; font-size: 12.5px; }
.watch { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.watch a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 8px 4px; border-radius: 8px; text-decoration: none; }
.watch a:hover { background: var(--surface); }
.watch b { font: 700 14px/1.2 var(--font-display); }
.watch .p { font: 500 12px/1.2 var(--font-mono); color: var(--muted); }
.watch .c { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 600 12.5px/1 var(--font-mono); }
.widget { background: linear-gradient(180deg, rgba(20,36,38,.65), var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.widget .wh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.widget .wh h4 { margin: 0; }
.widget .wh a { font-size: 12px; color: var(--brand); text-decoration: none; }
.market { display: grid; margin: 0; padding: 0; list-style: none; }
.market li { display: grid; grid-template-columns: 54px minmax(0, 1fr) 64px 58px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.market li:first-child { border-top: 0; }
.market b { font: 700 13.5px/1 var(--font-display); }
.market .p { font: 500 12.5px/1 var(--font-mono); text-align: right; }
.market .c { font: 600 12px/1 var(--font-mono); text-align: right; }
.market svg { width: 64px; height: 22px; display: block; }
.mini-hot { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mini-hot li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mini-hot b { font: 700 14px/1 var(--font-display); }
.mini-hot .pill { margin-left: auto; }
.cta { display: grid; gap: 8px; }
.cta .btn { width: 100%; min-height: 40px; font-size: 14px; }

@media (min-width: 1240px) {
  .shell {
    display: grid; grid-template-columns: 224px minmax(0, 1fr) 320px; gap: 14px; align-items: start;
    padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px));
  }
  .shell > main { min-width: 0; }  /* a grid item may not widen its column, or it slides under the rail */
  .shell > main .wrap { max-width: none; padding-left: 0; padding-right: 0; }
  /* No scrollbars of their own: the left panel stays in view, the right one scrolls with the page */
  .side, .rail { display: grid; align-content: start; gap: 14px; padding: 18px 2px 28px; }
  .side { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); }
  .side { gap: 0; }
  .side > .side-nav { padding-bottom: 12px; }
  .topnav { display: none; }
  .top .wrap, footer .wrap { max-width: none; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .side { padding-left: 0; }
  .rail { padding-right: 0; }
  .dup { display: none !important; }
}

/* ── server-rendered pages ── */
.tabs a { flex: 1; min-width: 52px; text-align: center; padding: 9px 8px; border-radius: 9px; font: 600 13px/1 var(--font-mono); color: var(--muted); text-decoration: none; }
.tabs a[aria-current] { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.narrow { max-width: 820px; }
.shell > main .wrap.narrow { max-width: 820px; }
/* partner ads: the strip under the header and a row in the news lists */
.ad-bar { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.ad-mark { flex: none; padding-left: max(14px, env(safe-area-inset-left, 0px)); font: 600 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-bar a { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 10px; min-height: 44px; padding: 8px 16px; text-decoration: none; }
.ad-bar img, .ad-row img { border-radius: 5px; flex: none; }
.ad-bar span, .ad-row a > span:last-child { color: var(--soft); }
.ad-bar em { font-style: normal; font-weight: 600; color: var(--brand); white-space: nowrap; }
.ad-bar a:hover b, .ad-row a:hover b { color: var(--brand); }
.ad-row { grid-column: 1 / -1; list-style: none; border-top: 1px solid var(--line); }
.ad-row a { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 44px; margin-inline: -10px; padding: 10px; background: rgba(0,240,172,.05); text-decoration: none; font-size: 14.5px; }
.ad-badge { flex: none; padding: 4px 7px; border-radius: 5px; background: rgba(0,240,172,.14); font: 700 10px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 639px) {
  .ad-bar { display: block; padding: 7px 16px; font-size: 13px; line-height: 1.4; }
  .ad-mark { float: left; padding: 0; margin: 4px 8px 0 0; }
  .ad-bar a { display: block; min-height: 0; padding: 0; }
  .ad-bar img { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
}

/* coins: icons, or a heat map of the last 24 hours */
.coins-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.coins-bar .search { flex: 1 1 260px; }
.coins-bar .search input::-webkit-search-cancel-button { display: none; }
.coins-bar .search button { border: 0; background: none; min-width: 44px; min-height: 44px; margin-right: -8px; font-size: 22px; color: var(--soft); cursor: pointer; }
.coins-view[hidden] { display: none; } .coins-view { flex: none; } .coins-view button { flex: 1 0 auto; padding: 9px 14px; white-space: nowrap; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 6px; }
.coin-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 10px 4px; border-radius: 14px; text-decoration: none; font-size: 13px; }
.coin-grid .coin-cell[hidden] { display: none; }
.coin-cell:hover { background: var(--surface); }
.coin-cell b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font: 700 16px/1.2 var(--font-display); }
.coin-cell .cp { color: var(--soft); line-height: 1.2; } .coin-cell .ch { font-weight: 600; line-height: 1.2; }
.coin-cell.up .ch { color: var(--up); } .coin-cell.down .ch { color: var(--down); }
.coin-cell.up b, .coin-cell.down b { color: var(--fg); }
.coin-cell.is-new { background: rgba(0,240,172,.075); box-shadow: inset 0 0 0 1px var(--brand); }
.coin-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.no-logo { display: grid; place-items: center; background: var(--surface-2); color: var(--brand); font: 800 26px/1 var(--font-display); }
.coin-grid.heat { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.heat .coin-cell { display: grid; grid-template: auto 1fr auto / 32px minmax(0, 1fr); align-items: center; justify-items: start; gap: 4px 9px; min-height: 112px; padding: 12px; border-radius: 12px; background: var(--surface); }
.heat .coin-cell.up { background: rgba(8,132,92,var(--h, .2)); } .heat .coin-cell.down { background: rgba(200,38,48,var(--h, .2)); }
.heat .coin-cell:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.heat .coin-cell.is-new { box-shadow: inset 0 0 0 1px var(--brand); }
.heat .coin-cell .coin-logo { width: 32px; height: 32px; } .heat .no-logo { font-size: 15px; }
.heat .coin-cell b { font-size: 17px; }
.heat .coin-cell .ch { grid-area: 2 / 1 / 3 / 3; align-self: end; font-size: 21px; color: var(--fg); }
.heat .coin-cell .cp { grid-area: 3 / 1 / 4 / 3; color: #d3e0de; }
@media (max-width: 639px) {
  .coins-view { flex: 1 1 100%; }
  .coin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 2px; }
  .coin-cell { padding: 8px 2px; } .coin-cell b { font-size: 15px; }
  .coin-grid:not(.heat) .cp { display: none; }
  .coin-logo { width: 56px; height: 56px; }
  .coin-grid.heat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .heat .coin-cell { grid-template-columns: 26px minmax(0, 1fr); gap: 4px 7px; min-height: 96px; padding: 10px; }
  .heat .coin-cell .coin-logo { width: 26px; height: 26px; }
  .heat .coin-cell b { font-size: 15px; } .heat .coin-cell .ch { font-size: 18px; } .heat .coin-cell .cp { font-size: 12px; }
}
img.coin-dot { background: none; object-fit: cover; }
.coin-dot.no-logo { background: var(--surface-2); color: var(--brand); }
.coin-name { font: 500 18px/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.rail .post-card .body { padding: 0 12px 12px; }
.impact-table tr.vs td.up { color: var(--up); } .impact-table tr.vs td.down { color: var(--down); }

/* ── our platforms inside news and post pages ── */
.follow-cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px;
  border-radius: var(--r); border: 1px solid rgba(0,240,172,.3);
  background: radial-gradient(420px 180px at 0% 0%, rgba(212,160,70,.16), transparent 70%), radial-gradient(420px 200px at 100% 100%, rgba(0,240,172,.12), transparent 70%), var(--surface);
}
.follow-cta img { width: 56px; height: 56px; filter: drop-shadow(0 0 12px rgba(212,160,70,.35)); }
.follow-text { display: grid; gap: 2px; }
.follow-text b { font: 700 18px/1.25 var(--font-display); }
.follow-text span { color: var(--soft); font-size: 14px; }
.follow-btns { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.follow-btns .btn { flex: 1 1 180px; }
/* buttons go beside the text only when the block's own column is wide enough */
.follow-wrap { container-type: inline-size; }
@container (min-width: 860px) {
  .follow-cta { grid-template-columns: auto minmax(0, 1fr) auto; }
  .follow-btns { grid-column: auto; }
  .follow-btns .btn { flex: 0 0 auto; }
}

.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row .btn svg { width: 17px; height: 17px; flex: none; }

.lede-news { font-size: 17px; line-height: 1.6; color: var(--soft); max-width: 70ch; }

/* post page: the card and its text in one column; the whole page is a centred narrow column (.narrow) */
.real-chart { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 0 12px; overflow: hidden; }
.real-chart figcaption { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 16px 8px; font-size: 13.5px; }
.real-chart .rc-state { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.real-chart svg { width: 100%; height: auto; display: block; }
.real-chart .legend { padding: 8px 16px 0; }
.real-chart .rc-story { margin: 10px 16px 2px; font-size: 15px; line-height: 1.5; }
.rc-t { font: 500 19px var(--font-mono); fill: #7f9695; }
.rc-t-now { fill: #04140f; font-weight: 700; }
@media (max-width: 639px) {  /* the end of the chart, large enough to read; the older candles are cut off on the left */
  .real-chart svg { width: 168%; margin-left: -68%; }
  .rc-t { font-size: 22px; }
}
.rc-entry { stroke: #ecf4f3; stroke-opacity: .6; } .rc-tp1, .rc-tp2 { stroke: #00f0ac; } .rc-tp2 { stroke-opacity: .55; } .rc-stop { stroke: #f59e0b; }
.rc-t-tp1, .rc-t-tp2 { fill: #00f0ac; } .rc-t-stop { fill: #f59e0b; } .rc-t-entry { fill: #ecf4f3; }
.legend i.rc-b-entry { background: #ecf4f3; } .legend i.rc-b-tp1 { background: #00f0ac; } .legend i.rc-b-tp2 { background: #00f0ac; opacity: .55; } .legend i.rc-b-stop { background: #f59e0b; }
.post-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }

/* home: on phones the logo beside the headline, the description under both; on wide screens both go to the header */
.hero-top { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px 16px; }
.hero-top h1 { margin: 0; }
.hero-top .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1239px) {
  .hero-top .ph-title { display: contents; }
  .hero-top .ph-title p { grid-column: 1 / -1; margin: 0; }
}
@media (min-width: 1240px) {
  .hero { padding-top: 0; }
  .hero-top { display: block; }
  .hero-top img { display: none; }
}

/* page title and its one-line description sit in the header bar on wide screens */
.ph-title { display: grid; gap: 10px; min-width: 0; }
@media (min-width: 1240px) {
  .ph-title {
    position: fixed; z-index: 25; top: env(safe-area-inset-top, 0px); left: 252px; right: 344px; height: 58px;
    display: flex; flex-direction: column; justify-content: center; gap: 3px; pointer-events: none;
  }
  .ph-title .row { flex-wrap: nowrap; gap: 10px; justify-content: flex-start; }
  .ph-title h1 { font-size: 19px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ph-title p.soft { font-size: 12.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-head:has(> .ph-title:only-child) { margin: 0; }
}

/* FAQ and disclaimer */
.doc { max-width: 760px; display: grid; gap: 12px; }
.doc h2 { font-size: 19px; margin-top: 18px; }
.doc p, .doc li { color: var(--soft); font-size: 15.5px; line-height: 1.65; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font: 600 18px/1 var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--soft); line-height: 1.6; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a { color: var(--soft); }

/* phones: no page title or description (they are explained in the FAQ); the h1 stays for search engines and screen readers */
@media (max-width: 959px) {
  .ph-title, .hero { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }
  .page-head:has(> .ph-title:only-child) { margin: 0; }
}

/* desktop: no search button in the header (the News page has its own search field) */
@media (min-width: 960px) { .search-btn { display: none; } }

/* Binance sign-up with our referral link: coin pages, listings, the side column, the footer */
.bn-btn { background: #f0b90b; color: #1e2026; border-color: #f0b90b; }
.bn-btn:hover { background: #fcd535; border-color: #fcd535; }
.bn-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, #f0b90b 35%, var(--line)); background: color-mix(in srgb, #f0b90b 6%, var(--surface)); }
.bn-text { display: grid; gap: 3px; flex: 1 1 260px; min-width: 0; }
.bn-text b { font-size: 15.5px; }
.bn-text span { font-size: 13px; color: var(--muted); }
.bn-cta .bn-btn { flex: 0 0 auto; min-height: 42px; font-size: 14.5px; }

/* ── the coin chart (coin and news pages) ── */
.cc-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cc-bar button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; min-height: 36px; min-width: 40px; padding: 0 12px; font: 600 13px/1 var(--font-mono); color: var(--soft); cursor: pointer; }
.cc-bar button:hover { color: var(--fg); border-color: var(--line-2); }
.cc-bar button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cc-bar .tabs, .cc-go { display: flex; gap: 6px; }
.cc-read { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 12.5px; min-height: 20px; margin-bottom: 4px; }
.cc-read i { font-style: normal; color: var(--muted); margin-right: 4px; }
.cc-box { position: relative; min-height: 340px; }
.cc-box.loading svg { opacity: .35; }
.cc-box svg { display: block; width: 100%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: opacity .2s; }
.cc-box svg.dragging { cursor: grabbing; }
.cc-grid { stroke: rgba(222,244,240,.07); }
.cc-t { font: 500 11px var(--font-mono); fill: var(--muted); }
.cc-now { fill: #04140f; font-weight: 700; }
.cc-col { fill: rgba(222,244,240,.05); }
.cc-cross { stroke: rgba(222,244,240,.28); stroke-dasharray: 3 4; }
.cc-n { font: 700 10px var(--font-mono); fill: #130b2b; pointer-events: none; }
.cc-dot, .cc-flag { cursor: pointer; }
.cc-dot:hover circle:last-of-type { fill-opacity: 1; }
.cc-flag:hover circle:nth-of-type(2) { stroke-width: 2.5; }
.cc-card { position: absolute; width: 320px; max-width: calc(100% - 16px); z-index: 5; background: rgba(15,27,29,.97); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; max-height: 398px; }
.cc-list { display: grid; gap: 4px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-right: 4px; }
.cc-card[hidden] { display: none; }
.cc-head { display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.cc-head b { font-weight: 600; }
.cc-x { margin-left: auto; border: 0; background: none; font-size: 20px; line-height: 1; min-width: 32px; min-height: 32px; color: var(--muted); cursor: pointer; }
.cc-item { display: grid; gap: 4px; padding: 9px 8px; border-radius: 10px; text-decoration: none; border-left: 3px solid #a78bfa; background: rgba(222,244,240,.035); }
.cc-item.big { border-left-color: var(--gold); }
.cc-item:hover { background: rgba(0,240,172,.08); }
.cc-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.cc-sub { display: flex; gap: 8px; flex-wrap: wrap; font: 500 11.5px/1.3 var(--font-mono); color: var(--soft); }
.cc-fc { cursor: pointer; }
.cc-fc .cc-page { transform-box: fill-box; transform-origin: center; transition: transform .15s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.cc-fc:hover .cc-page, .cc-fc.on .cc-page { transform: scale(1.3); }
.cc-legend .cc-l-fc svg { vertical-align: -2px; margin-right: 5px; }
.cc-item.cc-call { border-left-color: var(--up); } .cc-item.cc-call.is-down { border-left-color: var(--down); }
.cc-levels { margin: 6px 0 2px; padding: 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; font-size: 13px; }
.cc-levels div { min-width: 0; } .cc-levels dt { font-size: 11px; color: var(--muted); } .cc-levels dd { margin: 0; font-weight: 600; }
.cc-levels .tp dd { color: var(--brand); } .cc-levels .stop dd { color: #f59e0b; }
.cc-state { display: flex; gap: 10px; align-items: center; padding: 4px 8px 2px; font-size: 13px; }
.cc-state .st-open { color: var(--gold); } .cc-state .st-hit { color: var(--brand); } .cc-state .st-partial { color: var(--up); } .cc-state .st-miss { color: var(--down); }
.cc-wait { padding: 14px 8px; text-align: center; }
.cc-rest { font-size: 12px; padding-left: 8px; }
.cc-note { position: absolute; inset: 0; display: grid; place-items: center; }
.cc-note[hidden] { display: none; }
.cc-legend { margin-top: 8px; }
.cc-legend i { width: 10px; height: 10px; border-radius: 50%; }
.cc-l-news { background: #a78bfa; }
.cc-legend i.cc-l-mark { width: 3px; height: 13px; border-radius: 2px; background: var(--brand); }
.cc-legend i.cc-l-btc { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed #f7931a; }
.cc-mark { font: 700 11px var(--font-mono); fill: var(--brand-ink); }
.cc-check { font-weight: 700; }
.cc-btc { fill: none; stroke-width: 1.8; stroke-dasharray: 5 4; stroke-opacity: .85; }
.cc-l-big { background: var(--surface); border: 2px solid var(--gold); }
@media (max-width: 639px) {
  .cc-bar button { min-width: 38px; padding: 0 9px; }
  .cc-card { position: static; width: auto; max-width: none; max-height: 60vh; margin-top: 10px; box-shadow: none; }
}
