/* InsideRAK shared theme — redesign handoff 2026-07-16 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,400;6..144,500;6..144,600;6..144,700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&family=Archivo:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500;600&display=swap');

:root {
  --paper: #FFFFFF;
  --panel: #F7F6F2;
  --ink: #16181A;
  --body: #4A4740;
  --muted: #8A8578;
  --hairline: #E3E0D6;
  --accent: #0E7C7B;
  --accent-light: #5BC4C2;
  --dark: #12242E;
  --dark-text: #DFE8EE;
  --dark-muted: #7FA3B5;
  --dark-soft: #9FB8C6;
  --input-bg: #0C1922;
  --up: #5BBB8E;
  --down: #E06A5A;
  --down-light: #C0392B;
  --max-width: 1240px;
  --side-pad: 32px;
  --side-pad-mobile: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
}
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* Utilities */
.sec {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

.t-display, .t-section, .t-card, .t-art, .t-hero, .t-stat,
h1, h2, h3, h4, .subhero h1, .article-head h1, .page-title-row .t-section,
.card .title, .news-card h3, .pipeline-list .name .title, .partner-card .title,
.mag-feature h3, .leader-body h4, .faq-item summary, .inline-related .title,
.hero-left .title, .side-card h4, .prop-card h3, .step-list h4, .pillar-card h4,
.mkt-card .mkt-name, .score .sec-name, .partner-card-new h4,
.rail-module a .title, .signal .title, .ranked-list .title, .wordmark span,
.article-head .t-art, .article-head .dek, .ticker .t-label, .live-badge {
  font-family: 'Google Sans Flex', Archivo, system-ui, sans-serif;
}

.label, .kicker, .meta, .tag, .chip, .view-all, .btn, .caption {
  font-family: Archivo, sans-serif;
}

.mono {
  font-family: 'Spline Sans Mono', monospace;
}

.label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Top bar */
.topbar-wrap {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
}

.wordmark span {
  font-family: 'Google Sans Flex', Archivo, system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.5px;
}

.wordmark .tagline {
  font-family: Archivo, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark .rak { color: var(--accent); }

.topnav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
}

.topnav a { color: var(--ink); }
.topnav a:hover { color: var(--accent); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.btn-dark:hover {
  background: var(--accent);
  color: #fff;
}

/* Ticker bar */
.ticker-wrap {
  background: var(--dark);
  color: var(--dark-text);
}

.ticker {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
}

.ticker .t-label {
  color: var(--dark-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ticker .t-value { font-weight: 600; }

.ticker .t-up { color: var(--up); }
.ticker .t-down { color: var(--down); }

.ticker .t-edition {
  margin-left: auto;
  color: var(--dark-muted);
}

/* Hero grid */
.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--side-pad) 36px;
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 32px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-left a {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-left img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-left .label { color: var(--accent); }

.hero-left .title {
  font-family: Newsreader, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.hero-left .meta {
  font-size: 11.5px;
  color: var(--muted);
}

.hero-left .rule {
  border-top: 1px solid var(--hairline);
}

.hero-lead {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-lead img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-lead .lead-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 0 24px;
}

.hero-lead .label { color: var(--accent); text-align: center; }

.hero-lead .t-hero {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.hero-lead .dek {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

.hero-lead .meta {
  font-size: 12px;
  color: var(--muted);
}

.hero-rail {
  border-left: 1px solid var(--hairline);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
}

.rail-head .t-section {
  font-size: 19px;
}

.live-badge {
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 7px;
  text-transform: uppercase;
}

.rail-rule {
  border-top: 2px solid var(--ink);
}

.brief-item {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.brief-item .num {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex: none;
}

.brief-item .text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brief-item .text span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.brief-item .text .meta {
  font-size: 11px;
  color: var(--muted);
}

.brief-more {
  padding-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Section headers */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-top: 2px solid var(--ink);
  padding: 10px 0 18px;
}

.section-head .t-section {
  font-size: 22px;
  font-weight: 700;
}

.section-head .desc {
  font-size: 11px;
  color: var(--muted);
}

.section-head .view-all {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card .label { color: var(--accent); }

.card .title {
  font-family: Newsreader, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.card .summary {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}

.card .meta {
  font-size: 11.5px;
  color: var(--muted);
}

.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.g2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}

/* Large horizontal card */
.card-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.card-large img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-large .body {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card-large .title {
  font-size: 22px;
}

/* Panel */
.panel {
  background: var(--panel);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel .label { color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.stat-grid .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-grid .stat .num {
  font-family: Newsreader, serif;
  font-size: 26px;
  font-weight: 700;
}

.stat-grid .stat .desc {
  font-size: 11.5px;
  color: var(--body);
}

/* Standalone stat rows in panels */
.panel > .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel > .stat .num {
  font-family: Newsreader, serif;
  font-size: 24px;
  font-weight: 700;
}

.panel > .stat .desc {
  font-size: 12px;
  color: var(--body);
  line-height: 1.5;
}

/* Dark band */
.band-dark {
  background: var(--dark);
  color: var(--dark-text);
}

.band-dark a { color: var(--dark-text); }
.band-dark a:hover { color: var(--accent-light); }

.band-dark .section-head { border-color: rgba(223,232,238,0.18); }
.band-dark .section-head .t-section { color: #fff; }
.band-dark .section-head .desc { color: var(--dark-muted); }
.band-dark .view-all { color: var(--accent-light); }

/* Market cards */
.mkt-card {
  border: 1px solid rgba(223,232,238,0.18);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mkt-card.spotlight {
  border-color: var(--accent-light);
}

.mkt-card .mkt-code {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 11px;
  color: var(--dark-muted);
}

.mkt-card .mkt-price {
  font-family: Newsreader, serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}

.mkt-card .mkt-change {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12.5px;
}

.mkt-card .mkt-meta {
  font-size: 11px;
  color: var(--dark-muted);
  margin-top: 6px;
}

.spotlight-chip {
  background: var(--accent-light);
  color: var(--dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.mkt-card .head {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Property pipeline list */
.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-list .label { padding-bottom: 10px; }

.pipeline-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 2px;
  border-bottom: 1px solid var(--hairline);
}

.pipeline-list .name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pipeline-list .name .title {
  font-family: Newsreader, serif;
  font-size: 16px;
  font-weight: 600;
}

.pipeline-list .name .desc {
  font-size: 11.5px;
  color: var(--muted);
}

.pipeline-list .status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  flex: none;
}

.pipeline-list .status.muted { color: var(--muted); }

.pipeline-list .foot {
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 12px;
}

/* Signal grid */
.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.signal-grid .signal {
  background: var(--paper);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signal-grid .signal .label { color: var(--muted); font-weight: 500; }

.signal-grid .signal .state {
  font-family: Newsreader, serif;
  font-size: 17px;
  font-weight: 700;
}

.signal-grid .signal .state.up { color: var(--accent); }

.signal-grid .signal .note {
  font-size: 11.5px;
  color: var(--body);
}

/* Ranked list */
.ranked-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ranked-list .label { padding-bottom: 10px; }

.ranked-list a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 2px;
  border-bottom: 1px solid var(--hairline);
}

.ranked-list .num {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  flex: none;
}

.ranked-list .title {
  font-size: 14px;
  font-weight: 600;
}

.ranked-list .meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  flex: none;
}

/* Partner cards */
.partner-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-card:hover {
  border-color: var(--accent);
}

.partner-card .source {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.partner-card .title {
  font-family: Newsreader, serif;
  font-size: 19px;
  font-weight: 700;
}

.partner-card .desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--body);
}

/* Newsletter band */
.newsletter-band {
  background: var(--dark);
  color: var(--dark-text);
}

.newsletter-band .newsletter-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--side-pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter-band .t-section {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.newsletter-band .desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dark-soft);
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid rgba(223,232,238,0.25);
  border-right: none;
  color: var(--dark-text);
  padding: 14px 18px;
  font-family: Archivo, sans-serif;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 26px;
  font-family: Archivo, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px var(--side-pad);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-col .wordmark {
  font-size: 22px;
}

.footer-col .blurb {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--body);
  max-width: 340px;
}

.footer-col .copy {
  font-size: 11px;
  color: var(--muted);
}

.footer-col .label { color: var(--muted); }

/* Article page */
.article-head {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px var(--side-pad) 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-head .t-art,
.article-head .dek {
  max-width: none;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .cat { color: var(--accent); font-weight: 600; }

.article-head .t-art {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.article-head .dek {
  font-family: Newsreader, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--body);
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.article-meta a.source {
  color: var(--accent);
  font-weight: 600;
}

.article-meta .actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

.article-meta .actions a { color: var(--muted); }

.article-lead {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--side-pad) 0;
}

.article-lead figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-lead img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.article-lead figcaption {
  font-size: 12px;
  color: var(--muted);
}

.article-body-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px var(--side-pad) 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
}

.prose {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: Newsreader, serif;
  font-size: 18.5px;
  line-height: 1.65;
  color: #26241F;
}

.prose p { margin: 0; }

.key-facts {
  background: var(--panel);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: Archivo, sans-serif;
}

.key-facts .label { color: var(--muted); }

.key-facts .facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.key-facts .fact {
  display: flex;
  flex-direction: column;
}

.key-facts .fact .num {
  font-family: Newsreader, serif;
  font-size: 24px;
  font-weight: 700;
}

.key-facts .fact .desc {
  font-size: 11.5px;
  color: var(--body);
}

.inline-related {
  display: flex;
  gap: 16px;
  align-items: center;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 2px;
  font-family: Archivo, sans-serif;
}

.inline-related img {
  width: 110px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  flex: none;
}

.inline-related .body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inline-related .label { color: var(--muted); }

.inline-related .title {
  font-family: Newsreader, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.inline-related .arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
  flex: none;
}

.prose .attribution {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.prose .attribution a { color: var(--accent); }

/* Article rail */
.rail {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rail-module {
  display: flex;
  flex-direction: column;
}

.rail-module .label { padding-bottom: 10px; }

.rail-module .rail-rule { border-top: 2px solid var(--ink); }

.rail-module a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.rail-module a .title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.rail-module a .meta {
  font-size: 11px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--ink);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.chip:hover {
  background: var(--ink);
  color: #fff;
}

.briefing-card-dark {
  background: var(--dark);
  color: var(--dark-text);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.briefing-card-dark .t-section {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.briefing-card-dark .desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--dark-soft);
}

.briefing-card-dark .newsletter-form input {
  padding: 10px 12px;
  font-size: 12.5px;
}

.briefing-card-dark .newsletter-form button {
  padding: 10px 14px;
  font-size: 11px;
}

.market-context {
  background: var(--panel);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.market-context .label {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.market-context .quote {
  font-size: 13px;
  font-weight: 600;
}

.market-context .quote .down { color: var(--down-light); }
.market-context .quote .up { color: var(--accent); }

.market-context a { color: var(--accent); font-size: 11.5px; font-weight: 600; }

/* You might also like */
.also-like {
  border-top: 2px solid var(--ink);
  background: var(--paper);
}

.also-like .sec {
  padding-top: 26px;
  padding-bottom: 44px;
}

.also-like-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 20px;
}

.also-like-head .t-section {
  font-size: 22px;
  font-weight: 700;
}

.also-like-head .view-all {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, button { transition: none; }
}

/* Responsive */
@media (max-width: 920px) {
  .sec {
    padding-left: var(--side-pad-mobile);
    padding-right: var(--side-pad-mobile);
  }

  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px 16px;
  }

  .topnav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .ticker {
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-lead { order: -1; }
  .hero-rail {
    border-left: none;
    padding-left: 0;
  }

  .g2, .article-body-wrap {
    grid-template-columns: 1fr;
  }

  .g3 { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .gmkt { grid-template-columns: 1fr 1fr; }
  .gfoot { grid-template-columns: 1fr 1fr; }

  .card-large { grid-template-columns: 1fr; }

  .t-hero { font-size: 28px; }
  .t-art { font-size: 30px; }

  .article-meta { flex-wrap: wrap; }

  .newsletter-grid { grid-template-columns: 1fr; }

  .signal-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .g3, .g4, .gmkt, .gfoot { grid-template-columns: 1fr; }
  .g3s, .key-facts .facts-grid { grid-template-columns: 1fr 1fr; }
  .t-hero { font-size: 24px; }
  .t-art { font-size: 26px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* === Hub / listing pages ==================================================== */

.subhero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px var(--side-pad) 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.subhero .eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}

.subhero h1 {
  font-family: Newsreader, serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  max-width: 780px;
}

.subhero .dek {
  font-family: Newsreader, serif;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--body);
  max-width: 740px;
}

.meta-row {
  display: flex;
  gap: 32px;
  padding-top: 10px;
}

.meta-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-row .v {
  font-family: Newsreader, serif;
  font-size: 24px;
  font-weight: 700;
}

.meta-row .l {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.page-section {
  padding: 28px 0 42px;
}

.page-section.alt { background: var(--panel); }

.page-section .sec { display: flex; flex-direction: column; gap: 18px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--accent);
}

.page-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 4px;
}

.page-title-row .t-section {
  font-size: 24px;
  font-weight: 700;
}

.page-title-row .desc {
  font-size: 12px;
  color: var(--muted);
}

.page-title-row .view-all {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.sdek {
  font-family: Newsreader, serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  max-width: 760px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

.filters button {
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 6px 12px;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* News grid card */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card .thumb {
  position: relative;
}

.news-card .thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  text-transform: uppercase;
}

.news-card .body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-card h3 {
  font-family: Newsreader, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.news-card .date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.news-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}

.news-card .src {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 6px;
}

.news-card .src a { color: var(--accent); }

/* Property cards */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prop-card {
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}

.prop-card .prop-media {
  position: relative;
  height: 160px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prop-card .prop-media svg { stroke: var(--muted); }

.prop-card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 7px;
  text-transform: uppercase;
}

.prop-card .status {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  color: var(--muted);
  background: var(--paper);
  padding: 2px 7px;
}

.prop-card .prop-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.prop-card h3 {
  font-family: Newsreader, serif;
  font-size: 18px;
  font-weight: 600;
}

.prop-card .loc {
  font-size: 12px;
  color: var(--muted);
}

.prop-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--hairline);
}

.prop-meta .k {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.prop-meta .v {
  font-size: 13px;
  font-weight: 600;
}

/* Side card */
.side-card {
  border: 1px solid var(--hairline);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: fit-content;
}

.side-card h4 {
  font-family: Newsreader, serif;
  font-size: 20px;
  font-weight: 700;
}

.side-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}

.side-card .row .k { color: var(--muted); }

.cta-mini {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* FAQ / details */
.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: Newsreader, serif;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .plus {
  font-family: Archivo, sans-serif;
  font-size: 18px;
  color: var(--accent);
  flex: none;
}

.faq-item p {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

/* Steps */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}

.step-list .step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.step-list .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex: none;
  width: 28px;
}

.step-list h4 {
  font-family: Newsreader, serif;
  font-size: 17px;
  font-weight: 600;
}

.step-list p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body);
}

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-section.alt .pillar-card { background: #fff; }

.pillar-card h4 {
  font-family: Newsreader, serif;
  font-size: 18px;
  font-weight: 600;
}

.pillar-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--body);
}

/* Markets */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mkt-card {
  border: 1px solid rgba(223,232,238,0.18);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mkt-card .mkt-name {
  font-family: Newsreader, serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.mkt-card .mkt-code {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 11px;
  color: var(--dark-muted);
}

.mkt-card .mkt-price {
  font-family: Newsreader, serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}

.mkt-card .mkt-change {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12.5px;
}

.mkt-card .spotlight-chip {
  background: var(--accent-light);
  color: var(--dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.mkt-card .spot-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding-top: 4px;
}

.mkt-card .spot-row .k { color: var(--dark-muted); }

.mkt-chart svg { display: block; width: 100%; }

.mkt-range .bar {
  position: relative;
  height: 3px;
  background: rgba(223,232,238,0.18);
  margin: 10px 0 6px;
}

.mkt-range .fill {
  position: absolute;
  height: 100%;
  background: var(--accent-light);
}

.mkt-range .lbls {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--dark-muted);
}

/* Invest */
.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.score-grid .score {
  background: var(--paper);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score .sec-name {
  font-family: Newsreader, serif;
  font-size: 18px;
  font-weight: 600;
}

.score .trend {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.score .note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}

.data-table th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--panel);
}

.mag-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.mag-feature {
  border: 1px solid rgba(223,232,238,0.18);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mag-feature .img {
  height: 160px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mag-feature h3 {
  font-family: Newsreader, serif;
  font-size: 22px;
  font-weight: 600;
}

.mag-feature p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dark-soft);
}

.mag-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mag-list .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(223,232,238,0.18);
  font-size: 13px;
}

.mag-list .row .t { color: var(--dark-text); }
.mag-list .row .v { color: var(--dark-soft); font-weight: 600; }

/* Search */
.search-hero {
  background: var(--panel);
  padding: 50px 0 36px;
}

.search-hero h1 {
  font-family: Newsreader, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  padding-top: 8px;
}

.search-box {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 14px 18px;
}

.search-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: Archivo, sans-serif;
  font-size: 16px;
  outline: none;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.search-result h3 {
  font-family: Newsreader, serif;
  font-size: 18px;
  font-weight: 600;
}

.search-result p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--body);
}

.search-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 24px 0;
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partner-card-new {
  border: 1px solid var(--hairline);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-card-new .mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-family: 'Spline Sans Mono', monospace;
  font-size: 14px;
  font-weight: 700;
}

.partner-card-new h4 {
  font-family: Newsreader, serif;
  font-size: 20px;
  font-weight: 600;
}

.partner-card-new p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--body);
}

.partner-card-new .out {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* Leaders */
.leaders-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.leader-card {
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}

.leader-photo {
  position: relative;
  height: 150px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-photo .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 7px;
  text-transform: uppercase;
}

.leader-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leader-body h4 {
  font-family: Newsreader, serif;
  font-size: 17px;
  font-weight: 600;
}

.leader-body .role {
  font-size: 12px;
  color: var(--muted);
}

.leader-body .src-line {
  font-size: 11px;
  color: var(--muted);
}

.leader-body .src-line a { color: var(--accent); }

blockquote {
  margin: 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  font-family: Newsreader, serif;
  font-size: 17px;
  font-style: italic;
  color: var(--body);
}

.page-section .prose blockquote { max-width: 100%; }

/* Tools: AI SEO + SEO Audit */
.tool-form {
  background: var(--panel);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.tool-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--muted);
}

.tool-form input,
.tool-form select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 14px;
  font-family: Archivo, sans-serif;
  font-size: 14px;
  outline: none;
  color: var(--ink);
}

.tool-form button {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-family: Archivo, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.tool-form button:hover { background: var(--dark); }

.tool-output {
  border: 1px solid var(--ink);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.tool-output h3 {
  font-family: Newsreader, serif;
  font-size: 22px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-field .tf-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-field .tf-value {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.tool-field .tf-value ul {
  margin: 4px 0 0 18px;
  padding: 0;
}

.audit-input {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.audit-note {
  font-size: 12px;
  color: var(--muted);
}

.audit-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.audit-scoreboard .sc {
  background: var(--paper);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.audit-scoreboard .sv {
  font-family: Newsreader, serif;
  font-size: 28px;
  font-weight: 700;
}

.audit-scoreboard .sl {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-item {
  border: 1px solid var(--hairline);
  padding: 14px 16px;
}

.audit-item.ok { border-left: 4px solid var(--up); }
.audit-item.bad { border-left: 4px solid var(--down); }

.audit-item .ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.audit-item .ai-head strong {
  font-weight: 700;
}

.audit-item .ai-detail {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.audit-item .ai-fix {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--body);
  line-height: 1.5;
}

.audit-item .pass { color: var(--up); font-weight: 700; }
.audit-item .fail { color: var(--down); font-weight: 700; }

/* Responsive hub pages */
@media (max-width: 920px) {
  .subhero h1 { font-size: 32px; }
  .news-grid, .prop-grid, .mkt-grid, .partners-grid, .pillar-grid { grid-template-columns: 1fr 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .leaders-row { grid-template-columns: 1fr 1fr; }
  .mag-grid { grid-template-columns: 1fr; }
  .meta-row { gap: 24px; }
}

@media (max-width: 600px) {
  .subhero h1 { font-size: 26px; }
  .news-grid, .prop-grid, .mkt-grid, .partners-grid, .pillar-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .leaders-row { grid-template-columns: 1fr; }
  .meta-row { flex-wrap: wrap; gap: 16px; }
}
