* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111827;
  min-height: 100vh;
  padding: 0 0 72px;
}

a { color: inherit; }

.accent { color: #87afc7; }

.rei-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rei-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.rei-nav-logo img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.rei-nav-logo span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #0f172a;
}

.rei-nav-cta,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.rei-nav-cta:hover,
.cta-button:hover {
  opacity: 0.86;
}

.rei-page {
  width: 100%;
  min-width: 0;
}

.rei-layout {
  display: flex;
  min-height: 100vh;
}

.rei-main {
  flex: 1;
  min-width: 0;
  margin-left: 228px;
}

.rei-toc {
  position: fixed;
  top: 55px;
  left: 0;
  width: 228px;
  height: calc(100vh - 55px);
  overflow-y: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafbfd;
  z-index: 90;
}

.rei-toc-inner {
  padding: 20px 14px 24px;
}

.rei-toc-title {
  padding: 8px 10px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9ca3af;
}

.rei-toc-list {
  list-style: none;
  display: grid;
  gap: 2px;
}

.rei-toc-link {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: none;
  padding: 9px 10px;
  text-align: left;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.rei-toc-link:hover {
  background: rgba(0, 0, 0, 0.035);
  color: #0f172a;
}

.rei-toc-link.active {
  background: rgba(135, 175, 199, 0.12);
  color: #0f172a;
  box-shadow: inset 2px 0 0 #87afc7;
}

.rei-header {
  padding: 48px 48px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.rei-hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4f8;
  color: #4a7d99;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-signal-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdfe 0%, #f5f9fb 100%);
  padding: 16px 16px 15px;
}

.hero-signal-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.hero-signal-value {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.hero-signal-card p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7280;
}

.rei-header h1 {
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.8px;
  font-weight: 800;
  color: #0f172a;
}

.rei-header .subtitle {
  margin-top: 16px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.65;
  color: #6b7280;
}

.rei-header .updated {
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.jump-links {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 48px 28px;
}

.jump-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.jump-links a:hover {
  border-color: #87afc7;
  color: #0f172a;
  background: #f6fafc;
}

.filter-bar {
  padding: 0 48px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 14px;
  border-radius: 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #87afc7;
  color: #0f172a;
  background: #f6fafc;
}

.filter-btn.active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.stats {
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: #ffffff;
}

.stat-num {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.stat-label {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
  color: #9ca3af;
}

.section-block {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  scroll-margin-top: 78px;
}

.section-block.no-divider {
  border-top: none;
  padding-top: 0;
}

.section-header {
  padding: 0 48px 28px;
}

.section-header h2 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.5px;
  font-weight: 800;
  color: #0f172a;
}

.section-header p {
  margin-top: 8px;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.6;
  color: #9ca3af;
}

.insight-grid,
.wedge-grid,
.source-grid {
  padding: 0 48px;
  display: grid;
  gap: 14px;
}

.insight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.wedge-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-card,
.wedge-card,
.source-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.insight-card h3,
.wedge-card h3,
.source-card h3 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.insight-card p,
.wedge-card p,
.source-card li,
.change-card p,
.state-card p,
.fact-card p,
.story-card p,
.channel-card p,
.detail-text p,
.method-note,
.section-note,
.cta-panel p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: #6b7280;
}

.market-control-grid {
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.market-table-grid {
  padding: 18px 48px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.market-control-card {
  background: linear-gradient(180deg, #fbfdfe 0%, #f5f9fb 100%);
  border: 1px solid #dce7ee;
  border-radius: 18px;
  padding: 20px 20px 18px;
}

.market-table-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.market-table-head {
  padding: 18px 18px 0;
}

.market-table-head h3 {
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
  color: #0f172a;
}

.market-table-head p,
.market-table-source-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
}

.market-table-source-note {
  padding: 14px 48px 0;
}

.market-control-card h3 {
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
  color: #0f172a;
}

.market-control-card p,
.market-control-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
}

.company-chip-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #d7e3ea;
  background: #ffffff;
  color: #4a7d99;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.company-chip:hover,
.detail-list-card a:hover {
  border-color: #87afc7;
  background: #eef4f8;
  color: #0f172a;
}

.market-company-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.market-company-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #eef2f5;
  padding: 4px;
}

.change-grid,
.state-grid,
.fact-grid,
.story-grid,
.channel-grid {
  padding: 0 48px;
  display: grid;
  gap: 14px;
}

.change-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.change-card,
.state-card,
.fact-card,
.story-card,
.channel-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.change-card:hover,
.state-card:hover,
.fact-card:hover,
.story-card:hover,
.channel-card:hover,
.surface-card:hover,
.wedge-choice-card:hover {
  border-color: #87afc7;
  box-shadow: 0 4px 18px rgba(135, 175, 199, 0.16);
  transform: translateY(-2px);
}

.change-card .eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4f8;
  color: #4a7d99;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.change-card h3,
.state-card h3,
.fact-card h3,
.story-card h3,
.channel-card h3 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.change-card .change-signal,
.state-card .state-signal {
  color: #4b5563;
}

.surface-summary {
  padding: 0 48px 18px;
}

.surface-summary-main {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.surface-summary-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #9ca3af;
}

.surface-lanes {
  padding: 0 48px;
  display: grid;
  gap: 12px;
}

.surface-lane {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
}

.surface-lane:hover,
.surface-lane.active {
  border-color: #87afc7;
  background: #f8fbfd;
  box-shadow: 0 8px 24px rgba(135, 175, 199, 0.16);
  transform: translateY(-1px);
}

.surface-lane-main,
.surface-lane-trail {
  min-width: 0;
}

.surface-lane-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.surface-lane-title-row h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.surface-lane-trail {
  display: grid;
  gap: 12px;
}

.surface-lane-read {
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
}

.surface-detail-panel {
  margin: 18px 48px 0;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: #f5f9fb;
  border: 1px solid #dce7ee;
}

.surface-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.surface-detail-header h3 {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 800;
  color: #0f172a;
}

.surface-detail-header p {
  margin-top: 10px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.surface-detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.surface-detail-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.surface-detail-points {
  margin-top: 4px;
  display: grid;
  gap: 12px;
}

.surface-detail-points span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.surface-detail-points strong {
  font-size: 13px;
  line-height: 1.5;
  color: #0f172a;
}

.detail-card-copy {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
}

.surface-scroll {
  padding: 0 48px;
  overflow-x: auto;
}

.surface-grid {
  display: flex;
  gap: 14px;
  min-width: max-content;
  padding-bottom: 12px;
}

.surface-card {
  width: 300px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  flex-shrink: 0;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.surface-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.surface-stage,
.surface-priority,
.badge,
.pill-tag,
.product-summary-pill,
.strength-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.surface-stage {
  padding: 5px 10px;
  background: #f3f4f6;
  color: #6b7280;
}

.surface-priority {
  padding: 5px 10px;
  background: #eef4f8;
  color: #4a7d99;
}

.surface-card h3 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}

.surface-product {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4a7d99;
}

.surface-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill-tag {
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e5e9ee;
  color: #6b7280;
}

.surface-signal,
.surface-read {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #6b7280;
}

.surface-signal {
  color: #374151;
}

.surface-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f5;
}

.surface-footer-label {
  font-size: 10px;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.surface-examples {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #4a7d99;
}

.state-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.state-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge {
  padding: 5px 10px;
  background: #f3f4f6;
  color: #6b7280;
}

.badge-tier {
  background: #eef4f8;
  color: #4a7d99;
}

.state-angle {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4a7d99;
}

.state-stress {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f5;
}

.state-stress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
}

.state-stress-label strong {
  color: #0f172a;
}

.state-stress-track {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: #eef2f5;
  overflow: hidden;
}

.state-stress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #87afc7 0%, #0f172a 100%);
}

.state-why {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f5;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.wedge-choice-grid {
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.wedge-choice-card {
  text-align: left;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  font-family: inherit;
}

.wedge-choice-card.active {
  border-color: #87afc7;
  background: #f7fbfd;
  box-shadow: 0 4px 18px rgba(135, 175, 199, 0.16);
}

.wedge-choice-rank {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4f8;
  color: #4a7d99;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wedge-choice-card h3 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.wedge-choice-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7280;
}

.wedge-detail-panel {
  margin: 18px 48px 0;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: #f5f9fb;
  border: 1px solid #dce7ee;
}

.wedge-detail-main {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
}

.wedge-detail-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #0f172a;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
}

.wedge-detail-main h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.wedge-detail-main p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.wedge-detail-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-list-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.detail-list-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-list-card ul {
  margin-top: 12px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.detail-list-card li {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.detail-list-card a {
  display: inline-flex;
  align-items: center;
  color: #4a7d99;
  text-decoration: none;
  border-radius: 8px;
  padding: 1px 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-summary-bar {
  padding: 0 48px 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-summary-pill {
  padding: 7px 12px;
  background: #eef4f8;
  color: #4a7d99;
}

.product-summary-pill strong {
  color: #0f172a;
}

.matrix-shell {
  padding: 0 48px 22px;
}

.matrix-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.matrix-legend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.matrix-legend-pill.strong {
  background: #eaf7ef;
  color: #247a46;
}

.matrix-legend-pill.some {
  background: #eef4f8;
  color: #4a7d99;
}

.matrix-legend-pill.weak {
  background: #faf3e8;
  color: #a56424;
}

.matrix-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 220px repeat(6, minmax(108px, 1fr));
  gap: 10px;
  min-width: 920px;
}

.matrix-corner,
.matrix-column-header,
.matrix-row-header,
.matrix-cell {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.matrix-corner {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  background: #fbfcfd;
  color: #6b7280;
  font-size: 11px;
}

.matrix-corner strong {
  font-size: 15px;
  color: #0f172a;
}

.matrix-column-header {
  padding: 14px 10px;
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.matrix-column-header:hover,
.matrix-column-header.active {
  border-color: #87afc7;
  background: #f5f9fb;
  color: #0f172a;
}

.matrix-row-header {
  padding: 14px;
  background: #ffffff;
}

.matrix-row-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.matrix-row-owner {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #6b7280;
}

.matrix-cell {
  padding: 14px 10px;
  background: #ffffff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.matrix-cell:hover {
  border-color: #87afc7;
  transform: translateY(-1px);
}

.matrix-cell.active-col {
  box-shadow: inset 0 0 0 1px #87afc7;
}

.matrix-cell.strong {
  background: #f1faf4;
  color: #247a46;
}

.matrix-cell.some {
  background: #f5f9fb;
  color: #4a7d99;
}

.matrix-cell.weak {
  background: #fdf7ef;
  color: #a56424;
}

.matrix-cell.empty {
  background: #fbfcfd;
  color: #c7cdd4;
}

.channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.channel-owner {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4a7d99;
}

.strength-badge {
  padding: 6px 10px;
  background: #f3f4f6;
  color: #6b7280;
}

.strength-badge.strong {
  background: #eaf7ef;
  color: #247a46;
}

.strength-badge.some {
  background: #eef4f8;
  color: #4a7d99;
}

.strength-badge.weak {
  background: #faf3e8;
  color: #a56424;
}

.story-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.story-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4f8;
  color: #4a7d99;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.wedge-card {
  position: relative;
  padding-top: 22px;
}

.wedge-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #87afc7;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.table-wrap {
  padding: 0 48px;
  overflow-x: auto;
}

.market-table-card .table-wrap {
  padding: 16px 18px 18px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #ffffff;
}

.table-wrap th {
  text-align: left;
  vertical-align: bottom;
  padding: 12px 14px;
  border-bottom: 2px solid #e5e9ee;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9ca3af;
}

.table-wrap td {
  padding: 14px;
  border-bottom: 1px solid #eef2f5;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.table-wrap tbody tr:hover td {
  background: #fafcfd;
}

.detail-grid {
  padding: 0 48px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.detail-text {
  display: grid;
  gap: 10px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-stat {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 16px;
  background: #fbfcfd;
}

.mini-stat-value {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.mini-stat-label {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  color: #9ca3af;
}

.section-note,
.method-note {
  padding: 14px 48px 0;
}

.source-card ul {
  list-style: none;
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.source-card li {
  margin-top: 0;
}

.source-card a {
  color: #4a7d99;
  text-decoration: none;
}

.source-card a:hover {
  text-decoration: underline;
}

.cta-panel {
  margin: 72px 48px 0;
  padding: 28px 28px 30px;
  border-radius: 18px;
  background: #f5f9fb;
  border: 1px solid #dce7ee;
}

.cta-panel h2 {
  max-width: 780px;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.cta-button {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .rei-main {
    margin-left: 0;
  }

  .rei-toc {
    display: none;
  }

  .jump-links {
    display: flex;
  }

  .rei-header {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .change-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insight-grid,
  .market-control-grid,
  .market-table-grid,
  .source-grid,
  .state-grid,
  .fact-grid,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wedge-choice-grid,
  .wedge-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .surface-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .rei-nav {
    padding: 12px 20px;
  }

  .rei-header,
  .jump-links,
  .filter-bar,
  .section-header,
  .stats,
  .insight-grid,
  .market-control-grid,
  .market-table-grid,
  .change-grid,
  .state-grid,
  .fact-grid,
  .story-grid,
  .channel-grid,
  .matrix-shell,
  .wedge-grid,
  .wedge-choice-grid,
  .source-grid,
  .surface-summary,
  .surface-lanes,
  .surface-scroll,
  .surface-detail-panel,
  .product-summary-bar,
  .detail-grid,
  .section-note,
  .method-note,
  .market-table-source-note {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-panel {
    margin-left: 20px;
    margin-right: 20px;
  }

  .rei-header h1 {
    font-size: 34px;
  }

  .detail-grid,
  .wedge-choice-grid,
  .wedge-detail-grid,
  .surface-detail-grid,
  .wedge-grid,
  .market-control-grid,
  .market-table-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .change-grid,
  .state-grid,
  .fact-grid,
  .story-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .surface-lane {
    grid-template-columns: 1fr;
  }

  .surface-detail-header {
    flex-direction: column;
  }

  .wedge-detail-main {
    grid-template-columns: 1fr;
  }

  .wedge-detail-rank {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .stats,
  .insight-grid,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .rei-nav {
    gap: 12px;
  }

  .rei-nav-cta {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-header h2,
  .cta-panel h2 {
    font-size: 24px;
  }

  .rei-header {
    padding-top: 36px;
  }

  .surface-lane {
    padding: 16px;
  }

  .matrix-grid {
    grid-template-columns: 180px repeat(6, minmax(96px, 1fr));
    min-width: 820px;
  }
}
