/* =====================
   BASE & RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fp-red:       #c8102e;
  --fp-navy:      #0d1b2a;
  --fp-gold:      #b8973a;
  --fp-gold-lt:   #d4af5a;
  --fp-dark:      #1a1a1a;
  --fp-gray:      #6b6b6b;
  --fp-light:     #f4f4f0;
  --fp-white:     #ffffff;
  --fp-border:    #e2e2dc;

  /* dimension colors */
  --col-threat:     #3b6fcf;
  --col-exposure:   #1aaa7e;
  --col-sens:       #7c4dcc;
  --col-resil:      #1aaa7e;

  /* risk badge colors */
  --badge-high:     #c8102e;
  --badge-elev:     #b8973a;
  --badge-mod:      #5a8a5a;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--fp-white);
  color: var(--fp-dark);
  font-size: 15px;
  line-height: 1.5;
}

/* =====================
   FP HEADER
   ===================== */
.fp-header {
  background: var(--fp-white);
  border-bottom: 3px solid var(--fp-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.fp-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.fp-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--fp-red);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.fp-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.fp-nav a {
  text-decoration: none;
  color: var(--fp-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
  transition: background 0.15s;
}

.fp-nav a:hover { background: var(--fp-light); }
.fp-nav a.active {
  color: var(--fp-red);
  border-bottom: 2px solid var(--fp-red);
}

.fp-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.fp-subscribe-btn {
  background: var(--fp-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
}

.fp-login {
  font-size: 12px;
  font-weight: 600;
  color: var(--fp-gray);
  cursor: pointer;
}

/* =====================
   OGV BANNER
   ===================== */
.ogv-banner {
  background: var(--fp-navy);
  padding: 10px 0;
}

.ogv-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ogv-badge {
  background: var(--fp-gold);
  color: var(--fp-navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 2px;
}

.ogv-banner-text {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 1;
}

.ogv-banner-date {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

/* =====================
   MAIN LAYOUT
   ===================== */
.main-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* =====================
   OGV PANEL (LEFT)
   ===================== */
.ogv-panel {
  background: var(--fp-navy);
  border-radius: 4px;
  padding: 24px;
  position: sticky;
  top: 76px;
  color: #fff;
}

.ogv-score-section {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ogv-score-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fp-gold);
  margin-bottom: 16px;
}

.ogv-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #c8102e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(200,16,46,0.2);
}

.score-number {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.score-word {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
}

.score-scale {
  margin-bottom: 14px;
}

.scale-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}

.scale-seg {
  flex: 1;
  margin-right: 2px;
  opacity: 0.35;
}
.scale-seg:last-child { margin-right: 0; }
.scale-seg.active-seg { opacity: 1; }

.scale-seg.low       { background: #2ecc71; }
.scale-seg.moderate  { background: var(--fp-gold); }
.scale-seg.elevated  { background: #e67e22; }
.scale-seg.high      { background: var(--fp-red); }

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}

.ogv-formula {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  line-height: 1.4;
}

/* Dimensions */
.ogv-dimensions {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ogv-dim {}

.dim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.dim-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.dim-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 2px;
}

.dim-tag.external { background: rgba(59,111,207,0.25); color: #7da4f0; }
.dim-tag.org      { background: rgba(26,170,126,0.2);  color: #4dd4a8; }

.dim-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
  line-height: 1.3;
}

.dim-bar-wrap {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 5px;
  overflow: visible;
}

.dim-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.dim-bar.threat      { background: var(--col-threat); }
.dim-bar.exposure    { background: var(--col-exposure); }
.dim-bar.sensitivity { background: var(--col-sens); }
.dim-bar.resilience  { background: var(--col-resil); }

.dim-avg {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 1px;
}

.dim-scores {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dim-val {
  font-size: 18px;
  font-weight: 700;
}

.threat-col      { color: #7da4f0; }
.exposure-col    { color: #4dd4a8; }
.sensitivity-col { color: #b08af0; }
.resilience-col  { color: #4dd4a8; }

.dim-avg-label {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}

/* Unlocks */
.ogv-unlocks {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.unlocks-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fp-gold);
  margin-bottom: 12px;
}

.unlock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.unlock-label {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.unlock-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
}

.unlock-badge.high           { background: var(--fp-red);    color: #fff; }
.unlock-badge.elevated-badge { background: #b8973a;           color: #fff; }
.unlock-badge.moderate-badge { background: #2e7d52;           color: #fff; }

/* AI Digest Button */
.ai-digest-btn {
  width: 100%;
  margin-top: 20px;
  background: var(--fp-gold);
  color: var(--fp-navy);
  border: none;
  border-radius: 3px;
  padding: 12px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.ai-digest-btn:hover { background: var(--fp-gold-lt); }

.ai-icon {
  background: var(--fp-navy);
  color: var(--fp-gold);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 2px;
}

/* AI Digest Panel */
.ai-digest-panel {
  display: none;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--fp-gold);
  border-radius: 0 3px 3px 0;
  padding: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.ai-digest-panel.visible { display: block; }

.digest-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fp-gold);
  margin-bottom: 10px;
}

.ai-digest-panel p { margin-bottom: 10px; }
.ai-digest-panel p:last-child { margin-bottom: 0; }

.digest-rec { color: rgba(255,255,255,0.6); font-style: italic; }

/* Upgrade */
.ogv-upgrade {
  margin-top: 20px;
  background: rgba(200,16,46,0.12);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 3px;
  padding: 14px;
  text-align: center;
}

.upgrade-text {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  line-height: 1.4;
}

.upgrade-btn {
  background: var(--fp-red);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 9px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.upgrade-btn:hover { opacity: 0.85; }

/* =====================
   FP CONTENT (RIGHT)
   ===================== */
.fp-content {}

.content-banner {
  background: var(--fp-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 3px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.star-icon { color: var(--fp-gold); font-size: 14px; }

/* Tabs */
.content-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--fp-border);
  padding-bottom: 0;
}

.tab {
  background: none;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-gray);
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}

.tab:hover { color: var(--fp-dark); }
.tab.active { color: var(--fp-red); border-bottom-color: var(--fp-red); }

/* Article grid */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.article-card.featured {
  grid-column: 1 / -1;
}

.article-card {
  background: var(--fp-light);
  border: 1px solid var(--fp-border);
  border-radius: 3px;
  transition: box-shadow 0.2s;
}

.article-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.card-inner { padding: 20px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.fp-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.fp-dot.fp  { background: var(--fp-red);  color: #fff; }
.fp-dot.fpa { background: var(--fp-navy); color: var(--fp-gold); }

.card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-gray);
}

.risk-flag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: auto;
}

.risk-flag.sanctions  { background: rgba(200,16,46,0.1);  color: var(--fp-red); }
.risk-flag.supply     { background: rgba(200,16,46,0.1);  color: var(--fp-red); }
.risk-flag.instability{ background: rgba(184,151,58,0.15); color: #8a6e1f; }

.card-headline {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fp-dark);
  margin-bottom: 10px;
}

.article-card.featured .card-headline { font-size: 26px; }

.card-deck {
  font-size: 13px;
  color: var(--fp-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--fp-border);
  padding-top: 12px;
  margin-top: auto;
}

.card-author { font-size: 11px; color: var(--fp-gray); font-weight: 600; }

.read-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--fp-red);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.read-link:hover { text-decoration: underline; }

/* FPA Card */
.fpa-card { background: #f0edf8; border-color: rgba(124,77,204,0.2); }

.fpa-headline { color: var(--fp-navy); font-size: 18px; }

.fpa-services {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fpa-services li {
  font-size: 13px;
  color: var(--fp-dark);
  line-height: 1.4;
}

.fpa-services small { color: var(--fp-gray); font-size: 11px; }

.explore-link {
  font-size: 12px;
  font-weight: 700;
  color: #7c4dcc;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.explore-link:hover { text-decoration: underline; }

/* =====================
   SCENARIO STRESS TEST
   ===================== */
.scenario-section {
  margin-bottom: 36px;
}

.scenario-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--fp-border);
}

.scenario-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-dark);
}

.scenario-sub {
  font-size: 12px;
  color: var(--fp-gray);
}

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

.scenario-card {
  background: var(--fp-light);
  border: 1px solid var(--fp-border);
  border-top: 3px solid var(--fp-navy);
  border-radius: 3px;
  padding: 16px;
}

.scenario-num {
  font-size: 28px;
  font-weight: 900;
  color: rgba(13,27,42,0.15);
  line-height: 1;
  margin-bottom: 6px;
}

.scenario-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--fp-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.scenario-impact {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.impact-high     { color: var(--fp-red); }
.impact-elevated { color: #b8973a; }

.scenario-desc {
  font-size: 12px;
  color: var(--fp-gray);
  line-height: 1.55;
}

/* =====================
   PEER BENCHMARKING
   ===================== */
.peer-section { margin-bottom: 48px; }

.peer-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--fp-border);
}

.peer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-dark);
}

.peer-sub { font-size: 12px; color: var(--fp-gray); }

.peer-table {
  border: 1px solid var(--fp-border);
  border-radius: 3px;
  overflow: hidden;
}

.peer-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--fp-border);
  align-items: center;
}

.peer-row:last-child { border-bottom: none; }

.peer-row.header-row {
  background: var(--fp-navy);
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.peer-row.highlight-row {
  background: rgba(200,16,46,0.04);
  border-left: 3px solid var(--fp-red);
}

.peer-company { font-weight: 600; display: flex; align-items: center; gap: 8px; }

.you-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--fp-red);
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
}

.peer-score { font-weight: 700; font-size: 16px; }
.elevated-score { color: #c8102e; }
.moderate-score { color: #b8973a; }

/* =====================
   FP FOOTER
   ===================== */
.fp-footer {
  background: var(--fp-dark);
  padding: 24px 0;
  margin-top: 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--fp-red);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a:hover { color: #fff; }

.footer-ogv {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .ogv-panel {
    position: static;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  .peer-row {
    grid-template-columns: 2fr 1fr 1fr;
    font-size: 12px;
  }
  .peer-row span:nth-child(4),
  .peer-row span:nth-child(5),
  .peer-row span:nth-child(6) { display: none; }
}
