/* Poverty Sux gold dashboard: one hand-written style sheet, no framework.
   Light and dark follow the visitor's system setting (prefers-color-scheme).
   Light colours are chosen for at least 4.5:1 text contrast on --bg, --bg-2, --card and their soft tints. */
:root {
  --bg: #fbfbfd; --bg-2: #f2f2f6; --card: #ffffff; --line: #e6e6ec; --ink: #111114; --ink-2: #4a4a52; --ink-3: #6b6b75;
  --gold: #8a6212; --gold-2: #f0c054; --gold-soft: #fbf1d9;
  --buy: #087a4d; --buy-soft: #e3f5ec; --sbuy: #067a4b;
  --sell: #b3342b; --sell-soft: #fde8e6; --ssell: #b0302a;
  --neutral: #5f5f69; --neutral-soft: #efeff3;
  --radius: 20px; --radius-s: 12px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c10; --bg-2: #15151b; --card: #16161d; --line: #2a2a33; --ink: #f4f4f7; --ink-2: #c2c2cc; --ink-3: #8c8c98;
    --gold: #f0c054; --gold-2: #f0c054; --gold-soft: #2a2312;
    --buy: #34d399; --buy-soft: #0f2a20; --sbuy: #4ade9b;
    --sell: #f87171; --sell-soft: #2e1515; --ssell: #ff8a80;
    --neutral: #a1a1ad; --neutral-soft: #22222a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
code, pre { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.label { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0; }
.h3, h3 { font-size: 1.15rem; letter-spacing: -.01em; margin: 0 0 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo { width: 38px; height: 45px; flex: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; }
.tagline { font-size: .82rem; color: var(--ink-2); font-weight: 500; margin-top: 3px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 10px 0 12px; overflow-x: auto; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a { display: block; white-space: nowrap; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.site-nav a:hover { background: var(--bg-2); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--gold); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .site-nav a[aria-current="page"] { color: #16130a; } }

/* page head */
main { padding: 28px 0 56px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.page-head { margin-bottom: 18px; }
.kicker { margin: 0 0 6px; color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -.035em; margin: 0; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin: 12px 0 0; max-width: 62ch; }
.updated { color: var(--ink-3); font-size: .85rem; margin: 0 0 18px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 4px var(--buy-soft); margin: 0 10px 1px 4px; vertical-align: middle; }

/* cards and layout */
.card, .hero { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 0 0 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > .card { margin: 0; }
.grid-2 { margin-bottom: 18px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 30px; }
.hero-sbuy, .hero-buy { background: linear-gradient(160deg, var(--buy-soft), var(--card) 70%); border-color: color-mix(in srgb, var(--buy) 25%, var(--line)); }
.hero-ssell, .hero-sell { background: linear-gradient(160deg, var(--sell-soft), var(--card) 70%); border-color: color-mix(in srgb, var(--sell) 25%, var(--line)); }
.hero-neutral { background: linear-gradient(160deg, var(--neutral-soft), var(--card) 70%); }
.verdict { font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1; font-weight: 700; letter-spacing: -.045em; margin: 10px 0 18px; }
.hero-sbuy .verdict { color: var(--sbuy); } .hero-buy .verdict { color: var(--buy); }
.hero-ssell .verdict { color: var(--ssell); } .hero-sell .verdict { color: var(--sell); } .hero-neutral .verdict { color: var(--neutral); }
.scale { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0; margin: 0 0 20px; max-width: 420px; }
.seg { height: 6px; border-radius: 4px; background: var(--line); position: relative; }
.seg span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg.on { height: 8px; margin-top: -1px; }
.seg-sbuy.on { background: var(--sbuy); } .seg-buy.on { background: var(--buy); } .seg-neutral.on { background: var(--neutral); }
.seg-sell.on { background: var(--sell); } .seg-ssell.on { background: var(--ssell); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0; }
.num { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chg { font-weight: 600; } .pos { color: var(--buy); } .neg { color: var(--sell); }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.tile { background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; }
.tile .pill { margin: 8px 0 4px; }
.tile p.muted { margin: 4px 0 0; font-size: .85rem; }
.tile-wide { grid-column: 1 / -1; }
.tf-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; }
.tf-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 22px; } }

/* pills */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; line-height: 1.4; text-decoration: none; }
.pill.sm { padding: 2px 9px; font-size: .78rem; }
.pill-sbuy { background: var(--sbuy); color: #fff; } .pill-buy { background: var(--buy-soft); color: var(--buy); }
.pill-ssell { background: var(--ssell); color: #fff; } .pill-sell { background: var(--sell-soft); color: var(--sell); }
.pill-neutral { background: var(--neutral-soft); color: var(--neutral); }
@media (prefers-color-scheme: dark) { .pill-sbuy, .pill-ssell { color: #0c0c10; } }
.header-signal { flex: none; }

/* outlook */
.outlook h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.02em; }
.bias { margin: 0 0 10px; color: var(--ink-2); }
.bias .label { display: inline; margin-right: 4px; }
.sep { color: var(--ink-3); margin: 0 6px; }
.joke { border-left: 3px solid var(--gold-2); padding-left: 14px; font-style: italic; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 16px 0 8px; }
.facts.tight { grid-template-columns: 1fr; gap: 10px; }
.facts div { min-width: 0; }
.facts dt { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 4px 0 0; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }
.lean { color: var(--ink-2); margin-top: 0; }

/* chart */
.chart { color: var(--buy); }
.chart-down { color: var(--sell); }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 10px; font-size: .85rem; }
.chart svg { display: block; width: 100%; height: 170px; }
figure { margin: 0 0 18px; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .93rem; }
caption { text-align: left; font-weight: 600; padding: 0 0 12px; color: var(--ink); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-2); }

/* prose */
.prose { max-width: 75ch; margin: 30px 0; }
.prose h2, .faq h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin: .3em 0; }
.glossary dt { font-weight: 600; margin-top: 12px; }
.glossary dd { margin: 2px 0 0; color: var(--ink-2); }
pre.code { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; overflow-x: auto; line-height: 1.5; white-space: pre; }
.legal-note { font-size: .88rem; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 10px 14px; }
mark.placeholder { background: var(--gold-soft); color: var(--gold); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.callout { background: var(--gold-soft); border-radius: var(--radius-s); padding: 14px 16px; }
.about-logo { border-radius: 22px; }
.sources li { margin: 6px 0; }

/* faq */
.faq { max-width: 75ch; margin: 30px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

/* related */
.related { margin: 36px 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.related-card { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: var(--radius-s);
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; transition: transform .15s ease, border-color .15s ease; }
.related-card:hover { transform: translateY(-2px); border-color: var(--gold); }

/* advertising slots: take no space until ads are enabled and consented (no layout shift on load) */
.ad-slot { display: none; }
.ads-on .ad-slot { display: block; min-height: 280px; margin: 0 0 18px; contain: layout; }
.ads-on .ad-slot::before { content: "Advertisement"; display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 90px; font-size: .9rem; color: var(--ink-2); }
.nfa { max-width: 80ch; margin: 0 0 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-h { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.site-footer li { margin: 0 0 6px; break-inside: avoid; }
.site-footer a, .linklike { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover, .linklike:hover { color: var(--gold); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .linklike { text-decoration: none; }
.copy { color: var(--ink-3); margin: 24px 0 0; font-size: .82rem; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr; } }

/* consent banner */
.consent { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); z-index: 20;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.18);
  padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: .9rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--ink-2); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.btn { font: inherit; font-weight: 600; border-radius: 999px; padding: 9px 18px; border: 1px solid var(--gold); background: var(--gold); color: #fff; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
@media (prefers-color-scheme: dark) { .btn { color: #16130a; } .btn.ghost { color: var(--ink); } }
@media (max-width: 600px) { .consent { flex-direction: column; align-items: stretch; } .consent-actions { justify-content: flex-end; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-nav, .ad-slot, .consent, .related { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Gold News (blog) ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 36px 0 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; white-space: nowrap; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-list { display: grid; gap: 16px; margin: 18px 0 28px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, border-color .15s ease; }
.post-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.post-card p { margin: 0; color: var(--ink-2); }
.post-meta { font-size: .85rem; color: var(--ink-3) !important; }
.post-title { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; margin: 0; }
.post-list .post-title { font-size: 1.45rem; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--gold); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; }
.chips li { margin: 0; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: .82rem; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.byline { color: var(--ink-3); font-size: .92rem; margin: -6px 0 6px; }
.nfa-inline { font-size: .88rem; color: var(--ink-3); margin: 0 0 22px; }
.post { max-width: 78ch; }
.takeaways { background: var(--gold-soft); border-color: transparent; box-shadow: none; }
.takeaways h2 { margin-top: 0; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { margin: .45em 0; }
.post-body { font-size: 1.06rem; line-height: 1.7; }
.post-body p { margin: 0 0 1.1em; }
.pull { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); }
.pull blockquote { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.pull blockquote p { margin: 0; }
.pull figcaption { color: var(--ink-3); font-size: .88rem; margin-top: 6px; }
.data-note { font-size: .88rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; margin: 26px 0; }
.cta { border-color: var(--gold); }
.cta h2 { margin-top: 0; }
.cta p { margin-bottom: 0; }
.sources { margin: 28px 0; }
.sources ol { padding-left: 1.3em; margin: 0; }
.sources li { margin: .5em 0; font-size: .92rem; color: var(--ink-2); overflow-wrap: anywhere; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0; }
.post-tags .chips { margin: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0; }
.pn { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); text-decoration: none; color: var(--ink); }
.pn:hover { border-color: var(--gold); }
.pn small { display: block; color: var(--ink-3); font-size: .8rem; margin-bottom: 4px; }
.pn.next { text-align: right; grid-column: 2; }
.related-posts { margin: 36px 0 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.pager ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.pager a, .pager span { display: inline-block; min-width: 38px; text-align: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.pager [aria-current="page"] { background: var(--gold); border-color: var(--gold); color: #16130a; }
.feeds { font-size: .9rem; color: var(--ink-3); }
.tag-cloud, .archive { margin: 36px 0 0; }
.archive ul { columns: 3 180px; padding-left: 1.1em; }
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .pn.next { grid-column: 1; }
  .post-body { font-size: 1rem; }
  .section-head { flex-direction: column; gap: 4px; }
}
.pn .label { display: block; margin-bottom: 4px; }
.pn span:last-child { font-weight: 600; }

/* Guides */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 24px 0; }
.guide-card { margin: 0; }
.guide-card h2 { margin: 0 0 8px; }
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a:hover { color: var(--gold); text-decoration: underline; }
.guide-card p { margin: 0; color: var(--ink-2); }
.guide h3 { margin: 1.4em 0 .4em; }
.guide pre.code { font-size: .85rem; }
.guide .table-wrap { margin: 16px 0; }
