/* ==========================================================================
   Coingsty — restored homepage design ("Wire Cyan")

   Tokens, type and layout below are the values recovered from pre-wipe
   captures of coingsty.com dated 2026-08-12, not invented approximations.

   Type system (all three were loaded from Google Fonts by the original):
     Archivo Narrow  — headlines. A heavy CONDENSED GROTESQUE. The original
                       stored it behind a token named "serif"; it is not one.
     Inter           — body, deks, nav, card titles.
     IBM Plex Mono   — every uppercase letterspaced label, all figures.

   Theme resolution has three states so the toggle wins in both directions:
     :root                                -> light palette (always defined)
     @media (prefers-color-scheme: dark)
       :root:not([data-theme="light"])    -> dark, unless light was chosen
     :root[data-theme="dark"]             -> dark, chosen explicitly
   No colour is defined only inside a media query.
   ========================================================================== */

:root {
  /* Brand — theme independent. "Wire Cyan" + lime. */
  --cg-brand-400: #22c7e0;
  --cg-brand-500: #06b6d4;
  --cg-brand-600: #0891ab;
  --cg-brand-700: #0e7490;
  --cg-brand-800: #0891ab;
  /* Lime reads as #D4FF3F on dark; on white it has to darken to stay legible. */
  --cg-lime: #5e7c0b;

  /* Light surfaces */
  --cg-bg:        #f7fafb;
  --cg-card:      #ffffff;
  --cg-rail:      #f1f5f7;
  --cg-strip:     #eff3f6;
  --cg-line:      #e2e8ea;
  --cg-line-soft: #edf1f3;
  --cg-ink:       #0f1417;
  --cg-ink-2:     #33414a;
  --cg-muted:     #6b7a83;

  /* Accent roles. brand-400 is too light for small text on white — the
     original used it for the hero kicker and it measured as a real contrast
     bug, so links and labels here use brand-700 instead. */
  --cg-accent:      var(--cg-brand-600);
  --cg-accent-ink:  var(--cg-brand-700);
  --cg-on-accent:   #ffffff;

  --cg-up:   #16a34a;
  --cg-down: #dc2626;

  --cg-r:    10px;
  --cg-wrap: 1200px;

  --cg-cond: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --cg-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --cg-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cg-lime:      #d4ff3f;
    --cg-brand-600: #0da0bd;
    --cg-brand-800: #22c7e0;
    --cg-bg:        #0f1417;
    --cg-card:      #171e23;
    --cg-rail:      #121619;
    --cg-strip:     #1b2329;
    --cg-line:      #26313a;
    --cg-line-soft: #1e272d;
    --cg-ink:       #e8eff5;
    --cg-ink-2:     #c3cfd7;
    --cg-muted:     #8d9ca6;
    --cg-accent:      var(--cg-brand-500);
    --cg-accent-ink:  var(--cg-brand-400);
    --cg-on-accent:   #04222a;
    --cg-up:   #34d27e;
    --cg-down: #f06c63;
  }
}

:root[data-theme="dark"] {
  --cg-lime:      #d4ff3f;
  --cg-brand-600: #0da0bd;
  --cg-brand-800: #22c7e0;
  --cg-bg:        #0f1417;
  --cg-card:      #171e23;
  --cg-rail:      #121619;
  --cg-strip:     #1b2329;
  --cg-line:      #26313a;
  --cg-line-soft: #1e272d;
  --cg-ink:       #e8eff5;
  --cg-ink-2:     #c3cfd7;
  --cg-muted:     #8d9ca6;
  --cg-accent:      var(--cg-brand-500);
  --cg-accent-ink:  var(--cg-brand-400);
  --cg-on-accent:   #04222a;
  --cg-up:   #34d27e;
  --cg-down: #f06c63;
}

/* ------------------------------------------------------------------ base */

body {
  background: var(--cg-bg);
  color: var(--cg-ink);
  font-family: var(--cg-sans);
}

.cg-wrap {
  max-width: var(--cg-wrap);
  margin: 0 auto;
  /* Inline padding only — a shorthand here would wipe the vertical padding
     each band sets for itself. */
  padding-left: 20px;
  padding-right: 20px;
}

.cg-up   { color: var(--cg-up); }
.cg-down { color: var(--cg-down); }
.cg-flat { color: var(--cg-muted); }

.cg-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cg-up);
  vertical-align: middle;
  flex-shrink: 0;
}
.cg-dot--lime { background: var(--cg-lime); }
@media (prefers-reduced-motion: no-preference) {
  .cg-dot { animation: cg-pulse 2.4s ease-in-out infinite; }
}
@keyframes cg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.cg-empty { font-size: 13px; line-height: 1.55; color: var(--cg-muted); margin: 6px 0 0; }
.cg-empty--band {
  border: 1px dashed var(--cg-line);
  border-radius: var(--cg-r);
  padding: 26px; text-align: center; margin: 0;
}

.cg-srcline {
  font-family: var(--cg-mono);
  font-size: 10.5px; letter-spacing: .05em;
  color: var(--cg-muted);
  margin: 12px 0 0;
}
.cg-srcline--r { text-align: right; }

/* ---------------------------------------------------------- wire ticker */

.cg-wire {
  background: var(--cg-rail);
  border-bottom: 1px solid var(--cg-line);
  font-family: var(--cg-mono);
  font-size: 10.5px;
}
.cg-wire-i {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  min-height: 34px;
  padding-top: 5px; padding-bottom: 5px;
}
.cg-wire-l { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cg-wire-brand {
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cg-ink);
}
.cg-wire-sep  { color: var(--cg-line); }
.cg-wire-date { color: var(--cg-muted); letter-spacing: .1em; white-space: nowrap; }

.cg-wire-r { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.cg-q { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.cg-q-s { color: var(--cg-muted); letter-spacing: .11em; font-size: 9.5px; }
.cg-q-p { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--cg-ink); font-size: 11.5px; }

.cg-icbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 6px;
  background: none;
  color: var(--cg-muted);
  cursor: pointer;
}
.cg-icbtn:hover { color: var(--cg-accent-ink); }

.cg-lang { position: relative; }
.cg-lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px;
  border: 1px solid var(--cg-line); border-radius: 6px;
  background: var(--cg-card);
  font: inherit; color: var(--cg-ink-2); cursor: pointer;
}
.cg-lang-btn:hover { color: var(--cg-accent-ink); border-color: var(--cg-accent); }
.cg-lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: var(--cg-card);
  border: 1px solid var(--cg-line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 20, 23, .16);
  display: none; z-index: 70;
}
.cg-lang:hover .cg-lang-menu,
.cg-lang:focus-within .cg-lang-menu { display: block; }
.cg-lang-menu a {
  display: block; padding: 7px 10px; border-radius: 6px;
  font-family: var(--cg-sans); font-size: 13px;
  color: var(--cg-ink); text-decoration: none;
}
.cg-lang-menu a:hover { background: var(--cg-rail); color: var(--cg-accent-ink); }

/* -------------------------------------------------------------- masthead */

.cg-mast { background: var(--cg-card); }
.cg-mast-i {
  display: flex; align-items: center; gap: 20px;
  padding-top: 14px; padding-bottom: 14px;
}

.cg-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.cg-brand:hover { text-decoration: none; }
.cg-logo { display: block; width: 42px; height: 42px; flex-shrink: 0; }
.cg-brand-t { display: flex; flex-direction: column; gap: 3px; }
.cg-wordmark {
  font-family: var(--cg-cond);
  font-size: 27px; font-weight: 700; line-height: 1;
  letter-spacing: -.01em;
  color: var(--cg-ink);
}
.cg-wordmark-a { color: var(--cg-accent-ink); }
.cg-brand-tag {
  font-family: var(--cg-mono);
  font-size: 8.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--cg-muted);
}

.cg-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 420px;
  margin-left: auto;
  /* Without min-width:0 the input's intrinsic width stops this flex item
     shrinking and the Subscribe pill gets pushed out of the row. */
  min-width: 0;
  display: flex; align-items: center;
}
.cg-search-ic { position: absolute; left: 12px; color: var(--cg-muted); pointer-events: none; }
.cg-search input {
  width: 100%; min-width: 0;
  padding: 9px 46px 9px 34px;
  font-family: var(--cg-sans); font-size: 13px;
  color: var(--cg-ink);
  background: var(--cg-card);
  border: 1px solid var(--cg-line);
  border-radius: 8px;
}
.cg-search input::placeholder { color: var(--cg-muted); }
.cg-search input:focus {
  outline: none;
  border-color: var(--cg-accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 171, .16);
}
.cg-kbd {
  position: absolute; right: 9px;
  font-family: var(--cg-mono); font-size: 9.5px;
  color: var(--cg-muted);
  background: var(--cg-rail);
  border: 1px solid var(--cg-line);
  border-radius: 4px;
  padding: 2px 5px;
  pointer-events: none;
}

.cg-sub {
  display: inline-flex; align-items: center; gap: 7px;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--cg-accent);
  color: var(--cg-on-accent);
  font-family: var(--cg-sans); font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.cg-sub:hover { background: var(--cg-brand-700); color: var(--cg-on-accent); text-decoration: none; }

.cg-burger { display: none; }

/* ------------------------------------------------------------------- nav */

.cg-nav { background: var(--cg-card); border-bottom: 1px solid var(--cg-line); }
.cg-nav-l {
  display: flex; align-items: stretch; gap: 28px;
  margin: 0; padding: 0; list-style: none;
}
.cg-nav-l > li { position: relative; }
.cg-nav-l > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 12px 0;
  font-family: var(--cg-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--cg-ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.cg-nav-l > li > a:hover,
.cg-nav-l > li > a[aria-current="page"] {
  color: var(--cg-ink);
  border-bottom-color: var(--cg-brand-500);
  text-decoration: none;
}

/* Inside the nav, .cg-subm is the dropdown panel. */
.cg-subm {
  position: absolute; left: 0; top: 100%;
  display: none;
  min-width: 210px; margin: 0; padding: 7px; list-style: none;
  background: var(--cg-card);
  border: 1px solid var(--cg-line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 20, 23, .16);
  z-index: 70;
}
.cg-nav-l > li:hover > .cg-subm,
.cg-nav-l > li:focus-within > .cg-subm { display: block; }
.cg-subm a {
  display: block; padding: 8px 11px; border-radius: 6px;
  font-family: var(--cg-sans); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0; text-transform: none;
  color: var(--cg-ink); text-decoration: none;
}
.cg-subm a:hover { background: var(--cg-rail); color: var(--cg-accent-ink); }
.cg-subm-d {
  display: block;
  font-family: var(--cg-sans); font-size: 11.5px; font-weight: 400;
  color: var(--cg-muted);
  margin-top: 1px;
}

/* --------------------------------------------------------- section heads */

.cg-sechead { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.cg-sechead-l { display: flex; align-items: baseline; gap: 16px; flex-shrink: 0; min-width: 0; }
.cg-lbl {
  display: inline-flex; align-items: center;
  font-family: var(--cg-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cg-ink);
  white-space: nowrap;
}
.cg-sechead-t {
  font-family: var(--cg-cond);
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.6rem);
  font-weight: 700; line-height: 1.15;
  margin: 0; letter-spacing: -.005em;
  color: var(--cg-ink);
}
.cg-rule { flex: 1 1 auto; height: 1px; background: var(--cg-line); min-width: 10px; }
.cg-more {
  flex-shrink: 0;
  font-family: var(--cg-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--cg-accent-ink);
  text-decoration: none; white-space: nowrap;
}
.cg-more:hover { text-decoration: underline; }

.cg-eyebrow {
  display: inline-block;
  font-family: var(--cg-mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cg-accent-ink);
  text-decoration: none;
}
.cg-eyebrow:hover { text-decoration: underline; }
.cg-eyebrow--sm { font-size: .56rem; letter-spacing: .1em; }

/* ------------------------------------------------------------------ bands */

.cg-band { padding-top: 44px; padding-bottom: 44px; }
.cg-band--alt { background: var(--cg-bg); }
.cg-band--card { background: var(--cg-card); }

/* ------------------------------------------------------------------ hero */

.cg-hero { padding-top: 46px; padding-bottom: 40px; background: var(--cg-card); }
.cg-hero-g {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 3.2rem;
  align-items: center;
}
.cg-hero-txt { min-width: 0; }
.cg-hero-h {
  font-family: var(--cg-cond);
  font-size: clamp(2rem, 1.2rem + 3vw, 2.85rem);
  font-weight: 700; line-height: 1.13;
  letter-spacing: -.01em;
  margin: 16px 0 0;
}
.cg-hero-h a { color: var(--cg-ink); text-decoration: none; }
.cg-hero-h a:hover { color: var(--cg-accent-ink); text-decoration: none; }
.cg-hero-dek {
  font-size: 1.05rem; line-height: 1.6;
  color: var(--cg-ink-2);
  margin: 18px 0 0;
  max-width: 38rem;
}

.cg-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.cg-byline-n { font-size: .98rem; font-weight: 700; color: var(--cg-ink); }
.cg-byline-m {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--cg-mono);
  font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--cg-muted);
  margin-top: 4px;
}
.cg-byline-m span + span::before { content: "·"; margin-right: 8px; color: var(--cg-line); }

.cg-avw { position: relative; flex-shrink: 0; line-height: 0; }
.cg-av {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cg-rail);
  color: var(--cg-ink-2);
  font-family: var(--cg-sans); font-weight: 600;
}
.cg-avb {
  position: absolute; right: -3px; bottom: -3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--cg-up);
  border: 2px solid var(--cg-card);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.cg-avb svg { width: 9px; height: 9px; display: block; }

.cg-hero-fig {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #37474f;
}
.cg-hero-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder panels. Every uploads/ file was lost in the 2026-08-13 disk
   loss, so a card with no image on disk shows this instead of a broken glyph. */
.cg-hero-fig:empty,
.cg-ts-th:empty,
.cg-lc-th:empty { background: linear-gradient(135deg, #22313a 0%, #2e4b55 55%, #1a2a31 100%); }

/* -------------------------------------------------------- top stories 2x2 */

.cg-tsg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.4rem;
  border-top: 1px solid var(--cg-line);
}
.cg-ts {
  display: flex; gap: 16px; min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--cg-line);
}
.cg-ts-th {
  display: block;
  width: 58px; height: 58px;
  border-radius: .5rem; overflow: hidden; flex-shrink: 0;
  background: var(--cg-rail);
}
.cg-ts-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-ts-b { min-width: 0; }
.cg-ts-h {
  font-family: var(--cg-cond);
  font-size: .95rem; font-weight: 600; line-height: 1.25;
  margin: 6px 0 0;
  letter-spacing: -.005em;
}
.cg-ts-h a { color: var(--cg-ink); text-decoration: none; }
.cg-ts-h a:hover { color: var(--cg-accent-ink); text-decoration: none; }
.cg-ts-f {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 9px;
  font-family: var(--cg-mono);
  font-size: .58rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--cg-muted);
}
.cg-ts-dot { color: var(--cg-line); }

/* ---------------------------------------------------------- intelligence */

.cg-intel-w {
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-r);
  overflow: hidden;
  background: var(--cg-card);
}
.cg-intel-hd {
  background: var(--cg-strip);
  border-bottom: 1px solid var(--cg-line);
  padding: 12px 18px;
}
.cg-intel {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1.06fr 1.14fr;
  gap: 1px;
  background: var(--cg-line);
}
.cg-intel-c {
  background: var(--cg-card);
  padding: 18px 20px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.cg-intel-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--cg-mono);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--cg-muted);
  margin-bottom: 14px;
}
.cg-intel-h--lime { color: var(--cg-lime); }
.cg-intel-h b { font-weight: 600; color: var(--cg-ink-2); letter-spacing: .1em; }

.cg-fg-track {
  position: relative;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #a3e635, #16a34a);
}
.cg-fg-knob {
  position: absolute; top: 50%;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--cg-card);
  border: 2px solid var(--cg-ink);
  transform: translate(-50%, -50%);
}
.cg-fg-ends {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline;
  margin-top: 10px;
}
.cg-fg-e {
  font-family: var(--cg-mono); font-size: 10px;
  letter-spacing: .06em;
  color: var(--cg-muted);
}
.cg-fg-e--r { text-align: right; }
.cg-fg-v {
  font-family: var(--cg-mono);
  font-size: 21px; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cg-ink);
  text-align: center;
}

.cg-mv { margin-top: 18px; }
.cg-mv-r { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--cg-line-soft); }
.cg-mv-r:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.cg-mv-l {
  font-family: var(--cg-mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cg-muted);
}
.cg-mv-b {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 4px;
}
.cg-mv-n {
  font-family: var(--cg-sans); font-size: 15px; font-weight: 700;
  color: var(--cg-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cg-mv-p { font-family: var(--cg-mono); font-size: 12.5px; font-weight: 600; flex-shrink: 0; }

.cg-stat {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--cg-line-soft);
}
.cg-stat:last-child { border-bottom: none; }
.cg-stat-l {
  font-family: var(--cg-mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cg-muted);
}
.cg-stat-v {
  font-family: var(--cg-mono);
  font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cg-ink);
  white-space: nowrap;
}
.cg-stat-d { font-size: 11px; font-weight: 500; margin-left: 8px; }

.cg-trend {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: baseline; gap: 10px;
  padding: 8px 0;
  font-family: var(--cg-mono); font-size: 11.5px;
}
.cg-trend-s { color: var(--cg-muted); letter-spacing: .06em; }
.cg-trend-n {
  font-family: var(--cg-sans); font-size: 13px; color: var(--cg-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cg-trend-n a { color: inherit; text-decoration: none; }
.cg-trend-n a:hover { color: var(--cg-accent-ink); text-decoration: underline; }
.cg-trend-p { font-variant-numeric: tabular-nums; text-align: right; }

.cg-res-t {
  font-family: var(--cg-cond);
  font-size: 17px; font-weight: 700; line-height: 1.25;
  margin: 0;
}
.cg-res-t a { color: var(--cg-ink); text-decoration: none; }
.cg-res-t a:hover { color: var(--cg-accent-ink); }
.cg-res-x { font-size: 13px; line-height: 1.6; color: var(--cg-ink-2); margin: 11px 0 0; }
.cg-res-go {
  margin-top: auto; padding-top: 14px;
  font-family: var(--cg-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em;
  color: var(--cg-accent-ink); text-decoration: none;
}
.cg-res-go:hover { text-decoration: underline; }

/* ----------------------------------------------------- prediction markets */

.cg-pm-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.cg-pm-hd-l { min-width: 0; }
.cg-pm-hd h2 {
  font-family: var(--cg-cond);
  font-size: 1.35rem;
  font-weight: 700; line-height: 1.1;
  margin: 8px 0 0; letter-spacing: -.01em;
}

.cg-pmg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.cg-pm {
  display: flex; flex-direction: column;
  min-width: 0;
  padding: 1rem 1.1rem;
  background: var(--cg-card);
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-r);
}
.cg-pm-q {
  font-family: var(--cg-sans);
  font-size: .82rem; font-weight: 600; line-height: 1.38;
  color: var(--cg-ink);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.28em;
}
.cg-pm-r { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.cg-pm-pct {
  font-family: var(--cg-mono);
  font-size: 1.55rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cg-accent-ink);
}
.cg-pm-o {
  font-family: var(--cg-mono); font-size: .6rem;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--cg-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cg-pm-bar-w { height: 3px; margin-top: 10px; background: var(--cg-line); border-radius: 2px; overflow: hidden; }
.cg-pm-bar   { height: 100%; background: var(--cg-brand-500); border-radius: 2px; }
.cg-spark { display: block; width: 100%; height: 28px; margin-top: 8px; }
.cg-pm-f {
  display: flex; gap: 14px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--cg-line-soft);
  font-family: var(--cg-mono); font-size: .6rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--cg-muted);
}

/* -------------------------------------------------------- stablecoin pulse */

.cg-splinks {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--cg-mono); font-size: .72rem;
  letter-spacing: .05em;
}
.cg-splinks a { color: var(--cg-accent-ink); text-decoration: none; }
.cg-splinks a:hover { text-decoration: underline; }

.cg-sp {
  display: grid;
  /* The peg-health cell holds five chips, so the original gave it 2fr. */
  grid-template-columns: repeat(3, minmax(0, 1fr)) 2fr;
  gap: 1px;
  background: var(--cg-line);
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-r);
  overflow: hidden;
}
.cg-sp-c { background: var(--cg-card); padding: 18px 20px; min-width: 0; }
.cg-sp-v {
  font-family: var(--cg-mono);
  font-size: 1.35rem; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--cg-ink);
  margin-top: 8px;
}
.cg-pegs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cg-peg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .32rem .6rem;
  border-radius: 999px;
  background: var(--cg-rail);
  border: 1px solid var(--cg-line);
  font-family: var(--cg-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .06em;
  color: var(--cg-ink-2);
}
.cg-peg-d { width: .55rem; height: .55rem; border-radius: 50%; background: var(--cg-muted); flex-shrink: 0; }
.cg-peg--ok   .cg-peg-d { background: var(--cg-up); }
.cg-peg--warn .cg-peg-d { background: #d97706; }
.cg-peg--bad  .cg-peg-d { background: var(--cg-down); }

/* ---------------------------------------------------------------- latest */

.cg-lat { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, .95fr); gap: 44px; }
.cg-lg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; }
.cg-lc { display: flex; gap: 14px; min-width: 0; }
.cg-lc-th {
  display: block;
  width: 92px; height: 68px;
  border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: var(--cg-rail);
}
.cg-lc-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-lc-b { min-width: 0; }
.cg-lc-h {
  font-family: var(--cg-sans);
  font-size: 14.5px; font-weight: 700; line-height: 1.32;
  margin: 5px 0 0;
}
.cg-lc-h a { color: var(--cg-ink); text-decoration: none; }
.cg-lc-h a:hover { color: var(--cg-accent-ink); text-decoration: none; }

.cg-side-hd {
  font-family: var(--cg-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cg-ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cg-line);
}
.cg-side-l { list-style: none; margin: 0; padding: 0; counter-reset: cg-h; }
.cg-side-l li {
  display: flex; gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--cg-line-soft);
}
.cg-side-n {
  font-family: var(--cg-mono); font-size: 10.5px;
  color: var(--cg-muted);
  flex-shrink: 0; padding-top: 2px;
}
.cg-side-l a {
  font-family: var(--cg-sans); font-size: 13.5px; font-weight: 600; line-height: 1.35;
  color: var(--cg-ink); text-decoration: none;
}
.cg-side-l a:hover { color: var(--cg-accent-ink); }
.cg-side-go {
  display: inline-block; margin-top: 14px;
  font-family: var(--cg-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--cg-accent-ink); text-decoration: none;
}
.cg-side-go:hover { text-decoration: underline; }

/* --------------------------------------------------------- cookie notice */

.cg-cookie {
  position: fixed; left: 20px; bottom: 20px;
  z-index: 90;
  width: min(360px, calc(100vw - 40px));
  padding: 16px 18px 18px;
  background: var(--cg-card);
  border: 1px solid var(--cg-line);
  border-top: 2px solid var(--cg-brand-500);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(15, 20, 23, .2);
}
.cg-cookie[hidden] { display: none; }
.cg-cookie-l {
  font-family: var(--cg-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cg-muted);
}
.cg-cookie p { margin: 9px 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--cg-ink-2); }
.cg-cookie a { color: var(--cg-accent-ink); }
.cg-cookie-b { display: flex; gap: 9px; }
.cg-btn {
  padding: 8px 20px;
  border: 1px solid var(--cg-line);
  border-radius: 8px;
  background: var(--cg-card);
  color: var(--cg-ink-2);
  font-family: var(--cg-sans); font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.cg-btn:hover { border-color: var(--cg-accent); color: var(--cg-accent-ink); }
.cg-btn--p {
  background: var(--cg-accent);
  border-color: var(--cg-accent);
  color: var(--cg-on-accent);
}
.cg-btn--p:hover { background: var(--cg-brand-700); border-color: var(--cg-brand-700); color: var(--cg-on-accent); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .cg-intel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-pmg   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-sp    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-lat   { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 860px) {
  .cg-hero-g { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .cg-hero-fig { order: -1; aspect-ratio: 16 / 9; }
  .cg-tsg { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cg-search { display: none; }
  .cg-sub { display: none; }
  .cg-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    margin-left: auto;
    width: 38px; height: 34px; padding: 0 8px;
    background: var(--cg-card);
    border: 1px solid var(--cg-line);
    border-radius: 8px;
    cursor: pointer;
  }
  .cg-burger span { display: block; height: 2px; background: var(--cg-ink); border-radius: 2px; }
  .cg-nav-l { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 620px) {
  .cg-wrap { padding-left: 16px; padding-right: 16px; }
  .cg-intel, .cg-sp { grid-template-columns: minmax(0, 1fr); }
  .cg-pmg, .cg-lg   { grid-template-columns: minmax(0, 1fr); }
  .cg-band { padding-top: 34px; padding-bottom: 34px; }
  .cg-hero { padding-top: 28px; padding-bottom: 28px; }
  .cg-wire-i { justify-content: flex-start; row-gap: 7px; }
  .cg-sechead, .cg-pm-hd { flex-wrap: wrap; row-gap: 10px; }
  .cg-splinks { width: 100%; }
  .cg-rule { min-width: 0; }
  .cg-cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cg-pm-q { min-height: 0; -webkit-line-clamp: 3; }
}

/* -------------------------------------------------------------- footer */
/* Restored 2026-08-18 from a photorec-carved compiled Blade fragment of
   resources/views/sections/footer.blade.php (see footer.php header comment
   for provenance). Ported to plain CSS on the live --cg-* tokens in place
   of the recovered var(--color-brand-400, #06B6D4) fallback pattern. */

.cg-ft { background: var(--cg-bg); color: var(--cg-ink-2); border-top: 1px solid var(--cg-line); margin-top: 48px; }
.cg-ft a { color: inherit; text-decoration: none; }
.cg-ft-i { padding: 44px 0 26px; }

/* 1.2fr brand column + 4 link columns (Research/Markets/Learn/Tools — Tools
   added 2026-08-18 alongside the extra Markets/Research links; widened from
   repeat(3,1fr) to repeat(4,1fr) so the new column gets its own track
   instead of wrapping into the brand-width cell). */
.cg-ft-main { display: grid; gap: 34px 28px; grid-template-columns: 1.1fr repeat(4, 1fr); }

.cg-ft-mark { display: inline-flex; align-items: center; gap: 10px; }
.cg-ft-word { font-family: var(--cg-cond); font-size: 22px; font-weight: 700; line-height: 1; color: var(--cg-ink); }
.cg-ft-word-a { color: var(--cg-accent); }
.cg-ft-tag { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--cg-muted); max-width: 34ch; }

.cg-ft-h {
  font-family: var(--cg-mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--cg-muted); margin: 0 0 12px;
}
.cg-ft-col ul { list-style: none; margin: 0; padding: 0; }
.cg-ft-col li { margin-bottom: 9px; }
.cg-ft-col a { font-size: 13.5px; color: var(--cg-ink-2); }
.cg-ft-col a:hover { color: var(--cg-accent-ink); }

.cg-ft-rule { height: 1px; background: var(--cg-line); margin: 34px 0 20px; }

.cg-ft-bot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; }
.cg-ft-meta { font-size: 12.5px; line-height: 1.6; color: var(--cg-muted); max-width: 62ch; }
.cg-ft-legal nav { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cg-ft-legal nav a { font-size: 12.5px; color: var(--cg-muted); }
.cg-ft-legal nav a:hover { color: var(--cg-ink); }

.cg-ft-side { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cg-ft-langs { display: flex; gap: 2px 10px; flex-wrap: wrap; font-family: var(--cg-mono); font-size: 11px; letter-spacing: .04em; }
.cg-ft-langs a { color: var(--cg-muted); text-transform: uppercase; }
.cg-ft-langs a:hover { color: var(--cg-ink); }
.cg-ft-langs a.is-current { color: var(--cg-accent-ink); }
.cg-ft-rss {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9999px; border: 1px solid var(--cg-line);
  color: var(--cg-muted); flex-shrink: 0;
}
.cg-ft-rss:hover { color: var(--cg-accent-ink); border-color: var(--cg-accent-ink); }

@media (max-width: 860px) {
  .cg-ft-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cg-ft-main { grid-template-columns: 1fr; gap: 26px; }
  .cg-ft-bot { flex-direction: column; }
}
