/* ==========================================================================
   Coingsty — article (news post) single template.

   Reconstructed from the recovered content-single.blade.php compiled cache.
   Colour/type tokens are the ones the homepage restoration already
   established in cg-home.css (--cg-*), not the recovered file's own
   --color-* / --font-serif variable names — that file's "font-serif" token
   is Archivo Narrow under a misleading name on this site (see cg-home.css
   header comment); headings here use var(--cg-cond), never a real serif.
   ========================================================================== */

.cg-article { padding-bottom: 3rem; }

.cg-dotsep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--cg-muted); margin: 0 .5em; vertical-align: middle; }

/* ---------------------------------------------------------------- header */
.cg-art-head { padding: 34px 0 22px; border-bottom: 1px solid var(--cg-line); }
.cg-art-crumbs { font-family: var(--cg-mono); font-size: .68rem; letter-spacing: .03em; color: var(--cg-muted); margin-bottom: 1rem; }
.cg-art-crumbs a { color: var(--cg-muted); text-decoration: none; }
.cg-art-crumbs a:hover { color: var(--cg-accent-ink); }
.cg-art-crumbs span[aria-hidden] { margin: 0 .4em; opacity: .5; }
.cg-art-title { font-family: var(--cg-cond); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -.01em; color: var(--cg-ink); margin: 0; }
.cg-art-dek { font-family: var(--cg-sans); font-size: 1.08rem; line-height: 1.5; color: var(--cg-ink-2); margin: .9rem 0 0; max-width: 46rem; }

.cg-art-byline { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--cg-line); }
.cg-art-byline__av { flex: none; line-height: 0; }
.cg-art-byline__meta { display: flex; flex-direction: column; gap: .1rem; line-height: 1.3; }
.cg-art-byline__wb { font-family: var(--cg-mono); font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cg-muted); }
.cg-art-byline__name a { font-weight: 700; font-size: .98rem; color: var(--cg-ink); text-decoration: none; }
.cg-art-byline__name a:hover { color: var(--cg-accent-ink); }
.cg-art-byline__sub { font-family: var(--cg-mono); font-size: .74rem; color: var(--cg-muted); }

/* ------------------------------------------------------------------ grid */
.cg-art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.2rem; align-items: start; margin-top: 2rem; }
@media (max-width: 960px) { .cg-art-grid { grid-template-columns: minmax(0, 1fr); } }
.cg-art-main { min-width: 0; }

.cg-art-fig { margin: 0 0 1.8rem; border-radius: var(--cg-r); overflow: hidden; border: 1px solid var(--cg-line); }
.cg-art-fig img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }

/* ---------------------------------------------------------- key takeaways */
.cg-art-key { border: 1px solid var(--cg-line); border-left: 3px solid var(--cg-brand-500); border-radius: .9rem; background: var(--cg-card); padding: 1.3rem 1.4rem 1.4rem; margin: 0 0 2rem; }
.cg-art-key__h { font-family: var(--cg-mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cg-accent-ink); margin-bottom: .9rem; }
.cg-art-key ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.cg-art-key li { position: relative; padding-left: 1.5rem; font-size: 1rem; line-height: 1.55; color: var(--cg-ink); }
.cg-art-key li::before { content: ""; position: absolute; left: 0; top: .5em; width: .5rem; height: .5rem; background: var(--cg-brand-500); transform: rotate(45deg); }

/* -------------------------------------------------------------- body/faq */
.cg-art-body { font-size: 1.08rem; line-height: 1.75; color: var(--cg-ink-2); }
.cg-art-body h2 { font-family: var(--cg-cond); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--cg-ink); margin: 2.4rem 0 .8rem; }
.cg-art-body h3 { font-family: var(--cg-cond); font-weight: 700; font-size: 1.2rem; color: var(--cg-ink); margin: 1.8rem 0 .6rem; }
.cg-art-body p { margin: 0 0 1.15rem; }
.cg-art-body a { color: var(--cg-accent-ink); }
.cg-art-body img { max-width: 100%; height: auto; border-radius: .6rem; }

.cg-art-faq { margin-top: 2.2rem; }
.cg-art-faq h2 { font-family: var(--cg-cond); font-weight: 700; font-size: 1.5rem; color: var(--cg-ink); margin: 0 0 1rem; }
.cg-art-faq__item { border: 1px solid var(--cg-line); border-radius: .7rem; background: var(--cg-card); margin-bottom: .5rem; overflow: hidden; }
.cg-art-faq__item[open] { border-color: var(--cg-brand-500); }
.cg-art-faq__item summary { list-style: none; cursor: pointer; padding: .85rem 1.05rem; font-weight: 600; color: var(--cg-ink); font-size: .98rem; }
.cg-art-faq__item summary::-webkit-details-marker { display: none; }
.cg-art-faq__item > div { padding: 0 1.05rem 1rem; color: var(--cg-ink-2); font-size: .94rem; line-height: 1.6; }

/* --------------------------------------------------------------- author */
.cg-art-card { border: 1px solid var(--cg-line); border-radius: 1rem; background: var(--cg-card); padding: 1.1rem 1.2rem; }
.cg-art-author { margin-top: 2.2rem; }
.cg-art-author__top { display: flex; margin-bottom: .9rem; }
.cg-art-author__kick { font-family: var(--cg-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cg-muted); font-weight: 700; }
.cg-art-author__id { display: flex; gap: 1.1rem; align-items: flex-start; }
.cg-art-author__name { font-family: var(--cg-cond); font-weight: 700; font-size: 1.2rem; color: var(--cg-ink); text-decoration: none; }
.cg-art-author__name:hover { color: var(--cg-accent-ink); }
.cg-art-author__role { font-size: .86rem; color: var(--cg-muted); margin-top: .1rem; }
.cg-art-author__bio { font-size: .9rem; line-height: 1.6; color: var(--cg-ink-2); margin: .5rem 0 0; }
.cg-art-author__beats { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cg-line); }
.cg-art-author__more { display: inline-block; margin-top: 1rem; font-family: var(--cg-mono); font-size: .74rem; font-weight: 700; color: var(--cg-brand-600); text-decoration: none; }
.cg-art-author__more:hover { text-decoration: underline; }
.cg-art-about p { font-size: .92rem; line-height: 1.6; color: var(--cg-ink-2); margin: 0; }

.cg-art-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.cg-art-tag { font-family: var(--cg-mono); font-size: .72rem; padding: .3rem .7rem; border-radius: 9999px; background: var(--cg-strip); border: 1px solid var(--cg-line); color: var(--cg-ink-2); text-decoration: none; }
.cg-art-tag:hover { color: var(--cg-accent-ink); border-color: var(--cg-brand-500); }
.cg-art-tag--static { cursor: default; }

/* --------------------------------------------------------------- rail */
/*
 * Sticky rail. Shared by the coin template too (cg-coin.php's <aside
 * class="cg-art-rail"> — it reuses this exact class, confirmed by reading
 * cg-coin.php, rather than having its own rail class), and cg-coin.css
 * loads cg-article.css as a real dependency, so this one rule covers both
 * templates.
 *
 * top: 20px is a flat viewport breathing margin, NOT a sticky-header
 * clearance value. Verified live (2026-08-18) via CDP scroll + getBoundingClientRect
 * on an article page: .cg-head (wire+masthead+nav) computed position is
 * "static" and its rect.top moves 1:1 with scrollY (e.g. scrollY 1500 ->
 * headTop -1500), i.e. it scrolls away like ordinary content. The only
 * `position: sticky` rules anywhere in this theme's CSS are the dead
 * .am-masthead/.am-sidebar pair in style.css (top: 84px) left over from
 * before the rebrand — that 84px does not apply here.
 *
 * max-height + overflow-y guards a rail taller than the viewport (e.g. a
 * short article whose rail still has snapshot/trending/newsletter cards)
 * so it scrolls internally instead of clipping or fighting the page.
 * Sticky is dropped below the 960px breakpoint where .cg-art-grid already
 * collapses the rail under the main column.
 */
.cg-art-rail {
  display: flex; flex-direction: column; gap: 1.1rem;
  position: sticky; top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@media (max-width: 960px) {
  .cg-art-rail { position: static; top: auto; max-height: none; overflow-y: visible; }
}
.cg-art-rail .cg-art-card { padding: 1.1rem 1.15rem; }
.cg-art-card__h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; font-family: var(--cg-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cg-muted); }
.cg-art-card__h a { font-size: .68rem; color: var(--cg-brand-600); text-decoration: none; text-transform: none; letter-spacing: 0; }
.cg-art-card__more { display: inline-block; margin-top: .7rem; font-family: var(--cg-mono); font-size: .72rem; font-weight: 700; color: var(--cg-brand-600); text-decoration: none; }
.cg-art-card__more:hover { text-decoration: underline; }

.cg-art-trend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cg-art-trend li { display: flex; gap: .7rem; padding: .75rem 0; border-top: 1px solid var(--cg-line); }
.cg-art-trend li:first-child { border-top: 0; padding-top: 0; }
.cg-art-trend__n { font-family: var(--cg-mono); font-weight: 700; font-size: 1rem; color: var(--cg-brand-500); flex: none; min-width: 1.4rem; }
.cg-art-trend a { text-decoration: none; display: flex; flex-direction: column; gap: .18rem; }
.cg-art-trend__cat { font-family: var(--cg-mono); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cg-accent-ink); }
.cg-art-trend__t { font-size: .88rem; font-weight: 600; line-height: 1.3; color: var(--cg-ink); }
.cg-art-trend a:hover .cg-art-trend__t { color: var(--cg-accent-ink); }

.cg-art-fng { display: flex; align-items: baseline; justify-content: space-between; }
.cg-art-fng__v { font-family: var(--cg-cond); font-weight: 800; font-size: 1.4rem; }
.cg-art-fng__v small { font-weight: 400; color: var(--cg-muted); font-size: .7rem; }
.cg-art-fng__l { font-family: var(--cg-mono); font-size: .74rem; color: var(--cg-muted); }
.cg-art-fng__track { position: relative; height: .45rem; border-radius: 9999px; margin: .7rem 0 .3rem; background: linear-gradient(90deg, var(--cg-down), #fbbf24 50%, var(--cg-up)); }
.cg-art-fng__track span { position: absolute; top: 50%; width: .75rem; height: .75rem; border-radius: 9999px; background: #fff; border: 2px solid; transform: translate(-50%, -50%); }
.cg-art-fng__ends { display: flex; justify-content: space-between; font-family: var(--cg-mono); font-size: .6rem; color: var(--cg-muted); }

.cg-art-snap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.cg-art-snap li a { display: flex; align-items: center; gap: .5rem; padding: .4rem .1rem; text-decoration: none; border-radius: .4rem; }
.cg-art-snap li a:hover { background: var(--cg-strip); }
.cg-art-snap img { border-radius: 50%; flex: none; }
.cg-art-snap__sym { font-family: var(--cg-mono); font-size: .72rem; color: var(--cg-muted); text-transform: uppercase; }
.cg-art-snap__px { font-family: var(--cg-mono); font-size: .82rem; color: var(--cg-ink); margin-left: auto; }
.cg-art-snap__chg { font-family: var(--cg-mono); font-size: .72rem; min-width: 3.6rem; text-align: right; }
.cg-art-empty { font-size: .84rem; color: var(--cg-muted); text-align: center; padding: 1rem 0; }

.cg-art-news { border-radius: 1rem; background: linear-gradient(135deg, var(--cg-brand-700), var(--cg-brand-500)); padding: 1.4rem 1.4rem; color: #fff; }
.cg-art-news h3 { font-family: var(--cg-cond); font-weight: 700; font-size: 1.15rem; margin: 0; }
.cg-art-news p { font-size: .84rem; color: rgba(255,255,255,.9); margin: .5rem 0 1rem; line-height: 1.5; }
.cg-art-news a { display: inline-block; background: #fff; color: var(--cg-brand-700); font-weight: 700; font-size: .84rem; border-radius: 9999px; padding: .5rem 1.1rem; text-decoration: none; }

/* ---------------------------------------------------------------- more */
.cg-art-related { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--cg-line); }
.cg-art-related__h { font-family: var(--cg-cond); font-weight: 700; font-size: 1.35rem; color: var(--cg-ink); margin: 0 0 1.1rem; }
.cg-art-related__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.cg-art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--cg-line); }
.cg-art-navlink { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem; border: 1px solid var(--cg-line); border-radius: .7rem; text-decoration: none; }
.cg-art-navlink:hover { border-color: var(--cg-brand-500); }
.cg-art-navlink span { font-family: var(--cg-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cg-muted); }
.cg-art-navlink strong { font-family: var(--cg-cond); font-size: .95rem; color: var(--cg-ink); font-weight: 700; }
.cg-art-navlink--next { text-align: right; align-items: flex-end; }

/*
 * 2026-08-21: .am-notice is a <p>, so it carries the UA default 1em top
 * margin. .cg-art-grid uses align-items:start, so when the notice is the top
 * of the left column (empty archive / empty search / 404) that margin pushes
 * the content 16px below the rail's first card. Scoped to a direct first
 * child so the notice keeps its normal spacing everywhere else.
 * .am-notice is used only by 404/archive/index/search — all rail templates
 * that enqueue this stylesheet.
 */
.cg-art-main > .am-notice:first-child {
  margin-top: 0;
}
