/* Coin pages generated by scripts/build_coins.py. blog.css supplies the palette
   and the navbar; this adds the dials, the fact row, the vote tables and the
   live embeds. */

.coin-page { max-width: 1040px; margin: 0 auto; padding: 96px 24px 72px; }

.coin-page h1 {
    font-size: clamp(24px, 3.6vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 14px 0 12px;
    color: var(--text);
}

.coin-page h2 {
    font-size: 18px;
    margin: 40px 0 14px;
    color: var(--text);
}

.coin-page h3 { font-size: 14px; margin: 24px 0 10px; color: var(--text); }

.as-of { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; }

/* Facts first: the numbers a visitor came for, above everything that loads. */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.facts > div { background: var(--surface); padding: 14px 16px; }
.facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.facts dd { font-size: 17px; font-weight: 600; color: var(--text); margin: 0; font-variant-numeric: tabular-nums; }
.up { color: #4ade80; }
.down { color: #f43f5e; }

.gauges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin: 20px 0 28px;
}

.gauge {
    margin: 0;
    padding: 18px 16px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-align: center;
    color: var(--text-dim);
}

.gauge figcaption {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.gauge-dial { width: 100%; max-width: 210px; height: auto; display: block; margin: 0 auto 6px; }
.gauge strong { display: block; font-size: 17px; font-weight: 700; }
.gauge-counts { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

/* The verdict colours the needle and the word, nothing else: the arc already
   carries the scale, and a filled card would shout a forecast the page is
   careful not to make. */
.gauge--strong_buy { color: #4ade80; }
.gauge--buy { color: #86efac; }
.gauge--neutral { color: #94a3b8; }
.gauge--sell { color: #fb7185; }
.gauge--strong_sell { color: #f43f5e; }
.gauge--strong_buy strong, .gauge--buy strong { color: #4ade80; }
.gauge--neutral strong { color: #cbd5e1; }
.gauge--sell strong, .gauge--strong_sell strong { color: #f43f5e; }

.technicals p, .votes-section p { font-size: 15px; line-height: 1.75; color: var(--text-dim); margin-bottom: 16px; }
.vol-rank { font-size: 14px !important; color: var(--text-muted) !important; }

.votes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

.votes, .coin-index {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.votes caption {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 0 0 8px;
}

.votes th, .votes td, .coin-index th, .coin-index td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.votes th, .coin-index th {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface);
}

.votes td, .coin-index td { color: var(--text-dim); }
.votes tr:last-child td, .coin-index tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.sig { font-weight: 600; }
.sig--buy { color: #4ade80; }
.sig--sell { color: #f43f5e; }
.sig--neutral { color: #94a3b8; }

.coin-index a { color: var(--text); text-decoration: none; }
.coin-index a:hover { color: var(--accent); }

.live-note { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* Full width and tall. The panels used to sit three-across in a 4:3 box, which
   left each screener about 280px to render a dense table in — the content was
   there and unreadable. One panel per row, at most of the viewport height, is
   the smallest size at which these actually show anything. */
.live-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    padding: 18px 18px 18px;
    margin-bottom: 18px;
}

.live-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.live-card__head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--text); }
.live-card__head a { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.live-card__note { font-size: 12px; line-height: 1.55; color: var(--text-muted); margin: 0 0 14px; }

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
    animation: live-pulse 2.4s ease-out infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
    70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Fixed box so the embed cannot shift the page when it arrives. */
.live-slot {
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.live-slot--tall { height: clamp(460px, 72vh, 760px); }
.live-slot iframe { width: 100%; height: 100%; border: 0; display: block; }

.disclaimer {
    margin: 36px 0 24px;
    padding: 12px 16px;
    border-left: 2px solid var(--border);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

.coin-nav { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coin-nav h2 { width: 100%; margin: 0 0 6px; font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }

.coin-nav a {
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
}

.coin-nav a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 560px) {
    .coin-page { padding: 84px 18px 56px; }
    .votes-grid, .live-grid { grid-template-columns: 1fr; }
}

/* ── Hub at /coin/ ──────────────────────────────────────────────────────────
   Built in the landing page's language rather than the blog's: ambient blobs,
   a gradient heading and the same scroll reveal, so arriving from the homepage
   does not feel like leaving the site. */

.coin-hub { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 104px 24px 72px; }

.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob.b1 { width: 520px; height: 520px; top: -180px; left: -140px; background: radial-gradient(circle, rgba(74, 222, 128, .18), transparent 70%); }
.blob.b2 { width: 600px; height: 600px; top: -120px; right: -220px; background: radial-gradient(circle, rgba(56, 189, 248, .14), transparent 70%); }
.blob.b3 { width: 500px; height: 500px; top: 620px; left: 38%; background: radial-gradient(circle, rgba(129, 140, 248, .12), transparent 70%); }

.hub-hero { text-align: center; max-width: 720px; margin: 0 auto 44px; }

.hub-kicker {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(74, 222, 128, .25);
    border-radius: 100px;
    background: rgba(74, 222, 128, .08);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hub-hero h1 { font-size: clamp(30px, 5.4vw, 54px); line-height: 1.08; letter-spacing: -1.2px; margin: 0 0 18px; color: var(--text); }

.grad {
    background: linear-gradient(100deg, #4ade80, #2dd4bf 55%, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hub-intro { font-size: 16px; line-height: 1.7; color: var(--text-dim); margin: 0 auto 28px; max-width: 620px; }

.hub-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin: 0 0 14px; }
.hub-stats div { text-align: center; }
.hub-stats dt { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--text); }
.hub-stats dd { margin: 2px 0 0; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; }

.hub-updated { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }

.coin-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    text-decoration: none;
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), border-color .25s, box-shadow .25s;
}

.coin-card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 222, 128, .35);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.coin-card__head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.coin-card__ticker { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text); }
.coin-card__name { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.spark { width: 100%; height: 34px; display: block; }

.coin-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.coin-card__price { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); }
.coin-card__change { font-family: var(--mono); font-size: 12px; font-weight: 600; }

.coin-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coin-card__vol { font-family: var(--mono); font-size: 10px; color: var(--text-muted); }

.pill {
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

.pill--strong_buy, .pill--buy { color: #4ade80; background: rgba(74, 222, 128, .1); }
.pill--neutral { color: #94a3b8; background: rgba(148, 163, 184, .1); }
.pill--sell, .pill--strong_sell { color: #f43f5e; background: rgba(244, 63, 94, .1); }

.hub-more {
    margin: 44px 0 0;
    padding: 22px 26px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hub-more p { margin: 0; font-size: 14px; color: var(--text-dim); }
.hub-more a { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .coin-card { transition: none; }
    .coin-card:hover { transform: none; }
}

@media (max-width: 560px) {
    .coin-hub { padding: 88px 18px 56px; }
    .coin-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}


/* ── Coin page: the landing page's motion and palette ──────────────────────── */

.coin-page { position: relative; z-index: 1; }

.coin-hero { margin-bottom: 26px; }

.coin-badge {
    display: inline-block;
    padding: 5px 13px;
    border: 1px solid rgba(74, 222, 128, .28);
    border-radius: 100px;
    background: rgba(74, 222, 128, .08);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--accent);
    margin-bottom: 16px;
}

.coin-page h1 { font-size: clamp(27px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -1px; margin: 0 0 12px; }

/* Facts read as one instrument panel rather than six boxes. */
.facts { border-radius: 16px; }
.facts > div { padding: 16px 18px; }
.facts dd { font-size: 19px; }

.gauges { gap: 18px; margin: 22px 0 30px; }

.gauge {
    padding: 22px 18px 24px;
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
    transition: border-color .3s, box-shadow .3s;
}

.gauge:hover { border-color: rgba(148, 163, 184, .35); }
.gauge--strong_buy, .gauge--buy { box-shadow: inset 0 0 40px rgba(74, 222, 128, .07); }
.gauge--strong_sell, .gauge--sell { box-shadow: inset 0 0 40px rgba(244, 63, 94, .07); }
.gauge strong { font-size: 19px; margin-top: 2px; }
.gauge-dial { max-width: 240px; }
.gauge-counts i { font-style: normal; }
.gauge-counts .c-buy { color: #4ade80; }
.gauge-counts .c-sell { color: #f43f5e; }

.prose { max-width: 760px; }
.technicals h2, .votes-section h2, .live h2 { font-size: 20px; }


/* ── Readability pass ──────────────────────────────────────────────────────────
   The page inherited the landing page's greys, where text is short and mostly
   decorative. Here it is the content: --text-dim (#6b6b78) on #0a0a0f is about
   3.4:1 and --text-muted about 2:1, both below the 4.5:1 a paragraph needs. The
   page keeps its own two body greys and uses them for anything meant to be read;
   the original tokens stay for labels and chrome. */
.coin-page {
    --coin-body: #c3c3d0;   /* ~11:1 — paragraphs, table cells */
    --coin-soft: #9a9aab;   /* ~6.5:1 — notes, captions, secondary lines */
}

.technicals p,
.votes-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--coin-body);
    margin-bottom: 18px;
}

.coin-page .vol-rank { font-size: 15px !important; color: var(--coin-soft) !important; }
.as-of,
.live-note,
.live-card__note { color: var(--coin-soft); }
.as-of, .live-note { font-size: 14px; }
.live-card__note { font-size: 13px; }
.votes td, .coin-index td { color: var(--coin-body); }
.votes th, .coin-index th, .votes caption, .facts dt, .gauge figcaption { color: var(--coin-soft); }
.gauge-counts { color: var(--coin-soft); font-size: 12px; }
.disclaimer { color: var(--coin-soft); }

/* Visual hooks: the lead paragraph sets the verdict apart from the four that
   explain it, and each section heading gets a rule so the eye can find the
   seams without reading. */
.technicals .prose > p:first-child {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text);
    border-left: 2px solid var(--accent);
    padding-left: 16px;
    margin-bottom: 22px;
}

.technicals h2,
.votes-section h2,
.live h2,
.coin-page .votes-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.technicals h2::after,
.votes-section h2::after,
.live h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* Numbers inside the prose carry the argument, so they are allowed to stand
   out from the sentence around them. */
.technicals .prose strong,
.votes-section .prose strong { color: var(--text); font-weight: 600; }

/* ── Breadcrumb ────────────────────────────────────────────────────────────────
   It had no styles at all, so it rendered as default browser links: blue,
   underlined, purple once visited. */
.coin-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.coin-page .breadcrumb a {
    color: var(--coin-soft);
    text-decoration: none;
    transition: color .2s;
}

.coin-page .breadcrumb a:visited { color: var(--coin-soft); }
.coin-page .breadcrumb a:hover { color: var(--text); }
.coin-page .breadcrumb span[aria-current] { color: var(--text); }

/* The separator is drawn, not typed: no stray text node between the links. */
.coin-page .breadcrumb > *:not(:first-child)::before {
    content: "/";
    color: var(--border);
    margin-right: 8px;
    display: inline-block;
}
