/* ============================================================
   TOKENIST v2 — Per-template styles
   (consolidated from the design bundle: homepage, post, category,
    author, page, 404) + WordPress prose/content styles
   ============================================================ */

/* ===================== HOMEPAGE ===================== */
.hero { display: grid; grid-template-columns: 320px minmax(0,1fr) 312px; gap: 26px; padding-top: 26px; }
@media (max-width: 1180px){ .hero { grid-template-columns: minmax(0,1fr) 300px; } .hero .feed-col { display: none; } }
@media (max-width: 880px){ .hero { grid-template-columns: 1fr; } .hero .rail-col { display: none; } }

.feed { padding: 16px; }
.feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.feed-head .eyebrow { font-size: 11px; }
.feed-item { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.feed-item:last-of-type { border-bottom: 0; }
.feed-item .top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.feed-item .ago { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.feed-item h4 { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; line-height: 1.22; color: var(--text); transition: color .15s; }
.feed-item:hover h4 { color: var(--accent); }

.lead { display: flex; flex-direction: column; }
.lead .figure { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 18px; background: var(--surface-3); }
.lead .figure img { width: 100%; height: 100%; object-fit: cover; }
.lead .figure .img-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.lead .badges { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.lead h1 { font-family: var(--font-display); font-size: clamp(30px, 3.7vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; margin-bottom: 18px; }
.lead h1 a:hover { color: var(--accent); }
.lead .dek { font-size: 16px; color: var(--text-2); line-height: 1.5; max-width: 60ch; margin-bottom: 14px; }
.lead .byline { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.lead .byline .av { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line); overflow: hidden; }
.lead .byline .av img { width: 100%; height: 100%; object-fit: cover; }

.secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.secondary h3 { font-size: 18px; }

.movers .tabs { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; margin-bottom: 4px; }
.movers .tabs button { flex: 1; font-size: 12px; font-weight: 600; color: var(--text-3); background: transparent; border: 0; border-radius: 6px; padding: 6px; transition: all .15s; }
.movers .tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.mover { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line-2); }
.mover:last-child { border-bottom: 0; }
.mover .nm { font-weight: 600; font-size: 13px; }
.mover .nm small { display: block; color: var(--text-3); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; }
.mover .px { font-family: var(--font-mono); font-size: 12.5px; text-align: right; }

.gauge-wrap { display: flex; align-items: center; gap: 16px; }
.gauge { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.gauge .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .val b { font-family: var(--font-mono); font-size: 26px; font-weight: 600; line-height: 1; }
.gauge .val small { font-size: 9px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }

.news-cta { background: linear-gradient(160deg, var(--accent-soft), transparent); border-color: var(--accent-line); }
.news-cta h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.news-cta p { font-size: 12.5px; color: var(--text-2); margin: 0 0 12px; }
.news-cta .field { display: flex; gap: 7px; }
.news-cta input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; height: 38px; color: var(--text); font-family: inherit; font-size: 13px; outline: none; }
.news-cta input:focus { border-color: var(--accent-line); }

.markets-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: start; }
@media (max-width: 980px){ .markets-grid { grid-template-columns: 1fr; } }
.spotlight { display: grid; gap: 12px; }
.spot { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.spot .lab { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; }
.spot .px { font-family: var(--font-mono); font-size: 17px; font-weight: 600; }

.ever-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-color: var(--line); transition: border-color .15s, transform .15s; position: relative; overflow: hidden; }
.ever-card::before { content:""; position: absolute; left:0; top:0; bottom:0; width: 3px; background: var(--gold); opacity: .8; }
.ever-card:hover { transform: translateY(-2px); border-color: var(--gold-line); }
.ever-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--gold); font-weight: 600; }
.ever-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.2; }
.ever-card p { font-size: 13px; color: var(--text-2); margin: 0; }
.ever-card .foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); margin-top: auto; padding-top: 8px; }

section.block { padding-top: 48px; }
.pr-band { display: grid; grid-template-columns: 1fr; gap: 0; }
.pr-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.pr-item .src { width: 38px; height: 38px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; color: var(--text-3); font-size: 14px; overflow: hidden; }
.pr-item .src img { width: 100%; height: 100%; object-fit: cover; }
.pr-item h4 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pr-item h4:hover { color: var(--accent); }
.pr-item .when { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }

.analysis-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.analysis-row:hover .a-title { color: var(--accent); }
.a-thumb { width: 132px; height: 88px; flex-shrink: 0; border-radius: 9px; overflow: hidden; position: relative; background: var(--surface-3); }
.a-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a-thumb .img-ph { position: absolute; inset: 0; }
.a-body { display: flex; flex-direction: column; min-width: 0; }
.a-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.22; letter-spacing: -.015em; margin: 0 0 8px; transition: color .15s; }
.a-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
@media (max-width:560px){ .a-thumb { width: 96px; height: 68px; } .a-title { font-size: 16px; } }

/* ===================== SINGLE POST ===================== */
.article-wrap { display: grid; grid-template-columns: minmax(0,1fr) 332px; gap: 48px; padding-top: 26px; align-items: start; }
@media (max-width: 1040px){ .article-wrap { grid-template-columns: 1fr; } .article-side { display: none; } }

.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { transition: color .15s; } .breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-faint); }

.art-head .badges { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.art-head h1 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 18px; }
.art-head .dek { font-size: 19px; line-height: 1.5; color: var(--text-2); margin-bottom: 24px; max-width: 62ch; }
.art-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.art-byline .av { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line); flex-shrink: 0; overflow: hidden; }
.art-byline .av img { width: 100%; height: 100%; object-fit: cover; }
.art-byline .who b { font-size: 14.5px; font-weight: 600; }
.art-byline .who small { display: block; font-size: 12px; color: var(--text-3); }
.art-byline .when { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.art-byline .share { margin-left: auto; display: flex; gap: 7px; }
.share-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); transition: all .15s; }
.share-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.share-btn svg { width: 15px; height: 15px; }

.art-hero { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; position: relative; margin: 26px 0; background: var(--surface-3); }
.art-hero img { width: 100%; height: 100%; object-fit: cover; }
.art-hero .img-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.art-hero figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--text-2); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(6px); }

.quick-take { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius); padding: 22px 24px; margin: 4px 0 30px; }
.quick-take h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.qt-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 9px 0; align-items: start; }
.qt-item .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; padding-top: 2px; }
.qt-item p { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--text); line-height: 1.45; }

/* prose / article content */
.prose { font-size: 17px; line-height: 1.72; color: var(--text); max-width: 70ch; }
.prose > p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.4em; line-height: .82; float: left; padding: 6px 12px 0 0; color: var(--accent); font-weight: 600; }
.prose p { margin: 0 0 22px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin: 40px 0 16px; line-height: 1.2; scroll-margin-top: 120px; }
.prose h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 30px 0 12px; scroll-margin-top: 120px; }
.prose h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.prose blockquote { margin: 28px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 22px; line-height: 1.4; color: var(--text); font-style: italic; }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose figure { margin: 30px 0; }
.prose img { border-radius: var(--radius-sm); }
.prose figcaption, .prose .cap { font-size: 12.5px; color: var(--text-3); margin-top: 8px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; }
.prose table th, .prose table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose table th { background: var(--surface-2); font-weight: 600; }
.prose iframe { max-width: 100%; border-radius: var(--radius-sm); }
.prose .wp-block-image { margin: 28px 0; }
.prose .alignright { float: right; margin: 6px 0 18px 24px; max-width: 50%; }
.prose .alignleft { float: left; margin: 6px 24px 18px 0; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .alignwide { width: min(100%, 1000px); max-width: none; }
.prose .alignfull { max-width: none; }

.data-callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; background: var(--surface); }
.data-callout .dc-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; margin-bottom: 14px; }
.dc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.dc-grid .k { font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.dc-grid .v { font-family: var(--font-mono); font-size: 19px; font-weight: 600; }
@media (max-width: 560px){ .dc-grid { grid-template-columns: 1fr 1fr; } }

.art-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 34px 0; }
.art-tags a { font-size: 12.5px; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; transition: all .15s; }
.art-tags a:hover { color: var(--accent); border-color: var(--accent-line); }

.author-bio { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 8px 0 36px; }
.author-bio .av { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line); flex-shrink: 0; overflow: hidden; }
.author-bio .av img { width: 100%; height: 100%; object-fit: cover; }
.author-bio h4 { font-size: 17px; margin-bottom: 3px; display: flex; align-items: center; gap: 7px; }
/* constrain inline verified/check icons so they don't blow up */
.author-bio h4 svg, .profile h1 svg, .reviewed-band .verified svg { width: 18px; height: 18px; flex-shrink: 0; }
.author-bio .av img, .profile .av img, .art-byline .av img { width: 100%; height: 100%; object-fit: cover; }
.author-bio .role { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.author-bio p { font-size: 13.5px; color: var(--text-2); margin: 0; max-width: 60ch; }
.author-bio .author-bio__links { display: flex; gap: 10px; margin-top: 10px; }
.author-bio .author-bio__links a { color: var(--text-3); }
.author-bio .author-bio__links a:hover { color: var(--accent); }
.author-bio .author-bio__links svg { width: 16px; height: 16px; }

/* article sidebar */
.article-side { position: sticky; top: 116px; display: flex; flex-direction: column; gap: 18px; }

/* coin slider (sidebar) */
.coin-slider { position: relative; }
.coin-slider__dots { position: absolute; top: 14px; right: 16px; z-index: 3; display: flex; gap: 6px; }
.coin-slider__dot { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--line-strong); transition: background .15s, transform .15s; }
.coin-slider__dot:hover { transform: scale(1.2); }
.coin-slider__dot.on { background: var(--accent); }
.coin-slider__slide { display: none; }
.coin-slider__slide.on { display: block; }
.coin-widget { padding: 18px; }
.coin-widget .cw-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.coin-widget .cw-name { font-weight: 700; font-size: 17px; }
.coin-widget .cw-name span { color: var(--text-3); font-family: var(--font-mono); font-size: 12px; font-weight: 500; margin-left: 4px; }
.cw-price { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-bottom: 6px; }
.cw-change { font-family: var(--font-mono); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.cw-chart { height: 96px; margin: 6px 0 12px; }
.cw-chart svg { width: 100%; height: 96px; }
.cw-stat { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.cw-stat:last-of-type { border-bottom: 0; }
.cw-stat .k { color: var(--text-3); white-space: nowrap; }
.cw-stat .v { font-family: var(--font-mono); font-weight: 500; }

.side-card { padding: 16px; }
.side-card h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.entity { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.entity:last-child { border-bottom: 0; }
.entity .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.entity .nm { font-size: 13px; font-weight: 600; } .entity .nm small { display: block; color: var(--text-3); font-weight: 400; font-size: 11px; }

.learn-side { background: linear-gradient(160deg, var(--gold-soft), transparent); border-color: var(--gold-line); }
.learn-side .eyebrow.gold { margin-bottom: 8px; }
.learn-side h4.t { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: -.01em; margin-bottom: 6px; line-height: 1.25; }
.learn-side p { font-size: 12px; color: var(--text-2); margin: 0; }

.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width:760px){ .related-grid { grid-template-columns: 1fr; } }

/* ===================== CATEGORY (news + evergreen) ===================== */
.cat-hero { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 40px; align-items: end; padding: 30px 0 24px; border-bottom: 1px solid var(--line); }
@media (max-width: 940px){ .cat-hero { grid-template-columns: 1fr; gap: 20px; } .cat-hero .cat-stats { display: none; } }
.cat-hero .eyebrow { margin-bottom: 12px; }
.cat-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; }
.cat-hero p { font-size: 16px; color: var(--text-2); max-width: 56ch; margin: 0; }
.cat-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-stats .cell { background: var(--surface); padding: 16px 18px; }
.cat-stats .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; margin-bottom: 6px; }
.cat-stats .v { font-family: var(--font-mono); font-size: 22px; font-weight: 600; }

.filter-bar { display: flex; align-items: center; gap: 10px; padding: 16px 0; position: sticky; top: 102px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); z-index: 30; flex-wrap: wrap; }
.subnav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { font-size: 13px; font-weight: 600; color: var(--text-3); padding: 7px 13px; border-radius: 8px; white-space: nowrap; transition: all .15s; border: 1px solid transparent; }
.subnav a:hover { color: var(--text); background: var(--surface-2); }
.subnav a.on { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); flex-shrink: 0; }
.sort select { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 12.5px; padding: 6px 8px; }

.cat-layout { display: grid; grid-template-columns: minmax(0,1fr) 312px; gap: 40px; padding-top: 8px; align-items: start; }
@media (max-width: 940px){ .cat-layout { grid-template-columns: 1fr; } .cat-side { display: none; } }

.cat-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
@media (max-width: 680px){ .cat-feature { grid-template-columns: 1fr; } }
.cat-feature .lead-fig { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; position: relative; display: block; background: var(--surface-3); }
.cat-feature .lead-fig img { width: 100%; height: 100%; object-fit: cover; }
.cat-feature .lead-fig .img-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.cat-feature .feat-body { display: flex; flex-direction: column; align-items: flex-start; }
.cat-feature h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.16; letter-spacing: -.02em; margin: 12px 0 0; }
.cat-feature h2 a:hover { color: var(--accent); }
.cat-feature p { font-size: 14.5px; color: var(--text-2); line-height: 1.5; margin: 12px 0 0; }
.cat-feature .feat-body .r-meta { margin-top: 14px; }
.r-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }

.art-list { display: flex; flex-direction: column; }
.art-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
@media (max-width: 560px){ .art-row { grid-template-columns: 120px 1fr; gap: 14px; } }
.art-row .r-thumb { aspect-ratio: 16/11; border-radius: var(--radius-sm); overflow: hidden; position: relative; display: block; background: var(--surface-3); }
.art-row .r-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-row .r-thumb .img-ph { position: absolute; inset: 0; }
.art-row .r-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.art-row h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.22; letter-spacing: -.015em; margin-bottom: 9px; transition: color .15s; }
.art-row:hover h3 { color: var(--accent); }
.art-row p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin: 0 0 11px; }

.load-more { display: flex; justify-content: center; margin: 32px 0; }

.cat-side { position: sticky; top: 160px; display: flex; flex-direction: column; gap: 18px; }
.trend-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.trend-item:last-child { border-bottom: 0; }
.trend-item .rk { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); font-weight: 600; padding-top: 1px; }
.trend-item h5 { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; line-height: 1.3; transition: color .15s; }
.trend-item:hover h5 { color: var(--accent); }
.trend-item .tm { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.mini-coin { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.mini-coin:last-child { border-bottom: 0; }
.mini-coin .nm { font-size: 13px; font-weight: 600; flex: 1; }
.mini-coin .px { font-family: var(--font-mono); font-size: 12.5px; }

/* evergreen scope (gold accent) */
.ev-scope { --accent: var(--gold); --accent-soft: var(--gold-soft); --accent-line: var(--gold-line); }
.ev-hero { padding: 36px 0 28px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center; }
@media (max-width: 800px){ .ev-hero { grid-template-columns: 1fr; } .ev-hero .ev-badge { display: none; } }
.ev-hero .eyebrow { margin-bottom: 14px; }
.ev-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 58px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 16px; }
.ev-hero p { font-size: 16.5px; color: var(--text-2); max-width: 60ch; margin: 0; }
.ev-badge { width: 120px; height: 120px; border-radius: 24px; background: var(--gold-soft); border: 1px solid var(--gold-line); display: grid; place-items: center; color: var(--gold); }
.ev-badge svg { width: 52px; height: 52px; }
.ev-subnav { display: flex; gap: 4px; padding: 18px 0; overflow-x: auto; scrollbar-width: none; }
.ev-subnav::-webkit-scrollbar { display: none; }
.ev-subnav a { font-size: 13px; font-weight: 600; color: var(--text-3); padding: 7px 14px; border-radius: 8px; white-space: nowrap; transition: all .15s; border: 1px solid transparent; }
.ev-subnav a:hover { color: var(--text); background: var(--surface-2); }
.ev-subnav a.on { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-line); }
.guides-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px){ .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .guides-grid { grid-template-columns: 1fr; } }
.guide-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, border-color .15s; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--gold-line); }
.guide-card .g-fig { aspect-ratio: 16/9; position: relative; background: var(--surface-3); }
.guide-card .g-fig img { width: 100%; height: 100%; object-fit: cover; }
.guide-card .g-fig .img-ph { position: absolute; inset: 0; }
.guide-card .g-fig .badge { position: absolute; left: 12px; top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: blur(6px); padding: 4px 9px; border-radius: 7px; border: 1px solid var(--gold-line); }
.guide-card .g-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.22; letter-spacing: -.015em; transition: color .15s; }
.guide-card:hover h3 { color: var(--gold); }
.guide-card p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.5; }
.guide-card .g-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); margin-top: auto; padding-top: 8px; }
.ev-section { padding-top: 48px; }

/* ===================== AUTHOR ===================== */
.author-top { display: grid; grid-template-columns: 380px minmax(0,1fr); gap: 26px; padding-top: 26px; align-items: stretch; }
@media (max-width: 920px){ .author-top { grid-template-columns: 1fr; } }
.profile { padding: 24px; display: flex; flex-direction: column; }
.profile .id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile .av { width: 76px; height: 76px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--accent-line); flex-shrink: 0; position: relative; overflow: hidden; }
.profile .av img { width: 100%; height: 100%; object-fit: cover; }
.profile h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.14; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile .role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-top: 7px; }
.profile .bio { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 0 0 18px; }
.profile .socials { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.profile .socials a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; transition: all .15s; }
.profile .socials a:hover { color: var(--text); border-color: var(--line-strong); }
.profile .socials svg { width: 14px; height: 14px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-top: auto; }
.stat-grid .cell { background: var(--surface); padding: 14px 16px; display: flex; align-items: center; gap: 11px; }
.stat-grid .ic { color: var(--text-3); flex-shrink: 0; } .stat-grid .ic svg { width: 17px; height: 17px; }
.stat-grid .k { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.stat-grid .v { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.auth-feature { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px){ .auth-feature { grid-template-columns: 1fr; } }
.auth-feature .ft-body { padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.auth-feature .ft-fig { position: relative; min-height: 280px; background: var(--surface-3); }
.auth-feature .ft-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-feature .ft-fig .img-ph { position: absolute; inset: 0; }
.auth-feature .eyebrow { margin-bottom: 14px; }
.auth-feature h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.14; letter-spacing: -.02em; margin: 0 0 12px; }
.auth-feature:hover h2 { color: var(--accent); }
.auth-feature p { font-size: 14px; color: var(--text-2); line-height: 1.5; margin: 0 0 18px; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; padding-top: 8px; align-items: start; }
@media (max-width: 920px){ .auth-layout { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px){ .auth-grid { grid-template-columns: 1fr; } }
.auth-side { position: sticky; top: 160px; display: flex; flex-direction: column; gap: 18px; }
.beat { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.beat:last-child { border-bottom: 0; }
.beat .nm { font-size: 13.5px; font-weight: 600; flex: 1; }
.beat .ct { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.beat .bar-track { height: 4px; border-radius: 2px; background: var(--surface-3); width: 70px; overflow: hidden; }
.beat .bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.toplink { display: block; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; line-height: 1.3; padding: 10px 0; border-bottom: 1px solid var(--line-2); transition: color .15s; }
.toplink:hover { color: var(--accent); }

/* ===================== PAGE (generic) ===================== */
.page-hero { padding: 40px 0 30px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 18px; }
.page-hero p { font-size: 18px; color: var(--text-2); max-width: 64ch; line-height: 1.5; margin: 0; }
.page-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 48px; padding-top: 36px; align-items: start; }
@media (max-width: 880px){ .page-layout { grid-template-columns: 1fr; } .page-toc { display: none; } }
.page-toc { position: sticky; top: 160px; }
.page-toc h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; margin-bottom: 14px; }
.page-toc a { display: block; font-size: 13.5px; color: var(--text-2); padding: 7px 0 7px 14px; border-left: 2px solid var(--line); transition: all .15s; }
.page-toc a:hover, .page-toc a.on { color: var(--accent); border-color: var(--accent); }
.doc { max-width: 72ch; }
.doc.prose h2 { margin-top: 48px; }
.doc.prose h2:first-child { margin-top: 0; }
.reviewed-band { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 26px; font-size: 13px; color: var(--text-3); }
.reviewed-band .who { display: flex; align-items: center; gap: 10px; }
.reviewed-band .av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); }
.reviewed-band .av img { width: 100%; height: 100%; object-fit: cover; }
.reviewed-band b { color: var(--text); font-weight: 600; }
.reviewed-band .verified { color: var(--accent); display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.reviewed-band .verified svg { width: 15px; height: 15px; }

.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 36px; }
@media (max-width: 620px){ .stat-band { grid-template-columns: 1fr 1fr; } }
.stat-band .cell { background: var(--surface); padding: 22px 20px; }
.stat-band .v { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.stat-band .k { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.cta-band { margin-top: 48px; padding: 32px; text-align: center; background: linear-gradient(160deg, var(--accent-soft), transparent); border-color: var(--accent-line); }
.cta-band h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.cta-band p { color: var(--text-2); font-size: 14.5px; margin: 0 0 18px; }

/* ===================== 404 ===================== */
.nf-wrap { min-height: calc(100vh - 220px); display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 56px; align-items: center; padding: 48px 0; }
@media (max-width: 920px){ .nf-wrap { grid-template-columns: 1fr; gap: 36px; } .nf-side { display: none; } }
.nf-code { font-family: var(--font-display); font-size: clamp(96px, 16vw, 200px); font-weight: 600; line-height: .85; letter-spacing: -.04em; margin-bottom: 22px; display: flex; align-items: center; }
.nf-code .zero { color: var(--accent); position: relative; }
.nf-eyebrow { margin-bottom: 20px; }
.nf-wrap h1 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.nf-wrap .lead { font-size: 16.5px; color: var(--text-2); max-width: 52ch; line-height: 1.55; margin: 0 0 26px; }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.nf-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 50px; max-width: 460px; margin-bottom: 30px; transition: border-color .15s; }
.nf-search:focus-within { border-color: var(--accent-line); }
.nf-search svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.nf-search input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-family: inherit; font-size: 15px; }
.nf-search input::placeholder { color: var(--text-3); }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-links a { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px; transition: all .15s; }
.nf-links a:hover { color: var(--accent); border-color: var(--accent-line); }
.nf-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.nf-item:last-child { border-bottom: 0; }
.nf-item .rk { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); font-weight: 600; }
.nf-item h5 { font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.3; transition: color .15s; }
.nf-item:hover h5 { color: var(--accent); }
.nf-item .tm { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 3px; }

/* ===================== TOC (sticky, scrollable, mobile collapsible) ===================== */
.page-toc { max-height: calc(100vh - 190px); overflow-y: auto; padding-right: 4px; }
.page-toc__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 0; cursor: default; color: inherit; }
.page-toc__toggle .chev { width: 16px; height: 16px; color: var(--text-3); transition: transform .2s; display: none; }
.page-toc__list { display: block; }

@media (max-width: 880px) {
	/* hide the TOC entirely on mobile to save space */
	.page-toc { display: none !important; }
}

/* ===================== Mobile table scroll wrapper ===================== */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.table-scroll > table { margin: 0; min-width: 560px; }
.markets-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===================== Homepage Analysis/Learn two-col -> stack on mobile ===================== */
.home-two-col { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 40px; }
@media (max-width: 900px) { .home-two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ===================== Evergreen tabbed section ===================== */
.ever-tabs__nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding-bottom: 2px; }
.ever-tabs__nav::-webkit-scrollbar { display: none; }
.ever-tabs__btn { font-size: 13px; font-weight: 600; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; white-space: nowrap; cursor: pointer; transition: all .15s; }
.ever-tabs__btn:hover { color: var(--text); border-color: var(--line-strong); }
.ever-tabs__btn.on { background: var(--gold); color: var(--accent-ink); border-color: transparent; }
.ever-tabs__panel { display: none; }
.ever-tabs__panel.on { display: grid; }

/* ===================== Mobile sidebar accordion ===================== */
.side-accordion__toggle { display: none; }
@media (max-width: 1040px) {
	/* article + category + author sidebars: collapsible on mobile instead of hidden */
	.article-side, .cat-side, .auth-side {
		display: block !important; position: static; width: 100%;
		border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
		margin-top: 24px; padding: 0; max-height: none;
	}
	.side-accordion__toggle {
		display: flex; align-items: center; justify-content: space-between; width: 100%;
		background: none; border: 0; padding: 14px 16px; cursor: pointer; color: var(--text);
		font-family: var(--font-display); font-size: 16px; font-weight: 600;
	}
	.side-accordion__toggle .chev { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s; }
	.article-side.open .side-accordion__toggle .chev,
	.cat-side.open .side-accordion__toggle .chev,
	.auth-side.open .side-accordion__toggle .chev { transform: rotate(180deg); }
	.side-accordion__body { display: none; padding: 0 12px 12px; max-height: 70vh; overflow-y: auto; }
	.article-side.open .side-accordion__body,
	.cat-side.open .side-accordion__body,
	.auth-side.open .side-accordion__body { display: flex; flex-direction: column; gap: 16px; }
}

/* ===================== Mobile: prevent horizontal overflow + paddings ===================== */
html, body { overflow-x: clip; max-width: 100%; }
/* nothing should ever exceed the viewport width */
img, video, iframe, embed, object { max-width: 100%; height: auto; }
.prose, .doc, .entry-content { overflow-wrap: anywhere; word-break: break-word; }
.prose iframe, .prose embed, .prose video { max-width: 100%; }
/* long URLs / unbreakable strings must wrap, never force the page wide */
.prose a, .doc a, .prose code, .doc code, .prose li, .doc li, .prose p, .doc p { overflow-wrap: anywhere; word-break: break-word; }
/* content tables stay inside the screen (fixed-layout tables get a hard 100%) */
.prose table, .doc table { max-width: 100%; }
.prose .has-fixed-layout, .doc .has-fixed-layout { width: 100% !important; table-layout: fixed; }
@media (max-width: 760px) {
	.site-header .nav { gap: 12px; }
	main.wrap, .wrap, .doc, .prose, .article-wrap, .page-layout, .cat-layout, .auth-layout { max-width: 100vw; }
	main.wrap, .wrap { padding-inline: 16px; }
	.prose, .doc { font-size: 16px; }
	.prose > p:first-of-type::first-letter { font-size: 2.8em; }
	.footer-top, .footer-bottom, .footer-disclaimer { padding-inline: 16px; }
	/* the live ticker can be very wide; keep it clipped to the strip */
	.stats-strip, .stats-inner, .ticker { max-width: 100vw; overflow: hidden; }
	/* force every multi-column grid to ONE column. Use minmax(0,1fr) (NOT 1fr):
	   a plain 1fr track has implicit min-width:auto = min-content, so a wide child
	   (min-width table, long URL, the BM block) expands the track past the viewport.
	   minmax(0,1fr) lets the track shrink so children scroll/wrap instead. */
	.hero, .markets-grid, .home-two-col, .page-layout, .article-wrap, .cat-layout, .auth-layout, .secondary, .related-grid, .grid.g-2, .grid.g-3, .grid.g-4, .auth-grid, .guides-grid { grid-template-columns: minmax(0,1fr) !important; }
	/* allow grid/flex children to shrink below their content's min width */
	main.wrap, .page-layout, .doc, .prose, .article-wrap > *, .cat-layout > *, .hero > * { min-width: 0; }
}

/* hide the Google reCAPTCHA floating badge site-wide */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 600px) {
	.lead h1 { font-size: 28px; }
	.art-head h1 { font-size: 30px; }
}

/* ===================== GLOSSARY ===================== */
.glossary-az { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 103px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); padding: 14px 0; margin: 8px 0 16px; border-bottom: 1px solid var(--line); }
.glossary-az a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-family: var(--font-mono); font-weight: 600; font-size: 13px; transition: all .15s; }
.glossary-az a:hover { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.glossary-group { padding-top: 18px; scroll-margin-top: 150px; }
.glossary-letter { font-size: 28px; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; }
.glossary-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
@media (max-width: 760px){ .glossary-list { grid-template-columns: 1fr; } }
.glossary-term h3 { font-size: 17px; margin-bottom: 5px; }
.glossary-term h3 a:hover { color: var(--accent); }
.glossary-def { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* ===================== SEARCH ===================== */
.search-results-head { padding: 30px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.search-results-head h1 { font-family: var(--font-display); font-size: clamp(28px,4vw,44px); font-weight: 600; letter-spacing: -.02em; }
.search-results-head p { color: var(--text-2); margin: 8px 0 0; }
