/* The Hyder Index — Redesigned for executive audiences */
/* Reference: Economist data pages, FiveThirtyEight, Bloomberg, McKinsey */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  /* Backgrounds */
  --bg: #F5F5F3;
  --bg-white: #FFFFFF;
  --surface: #FFFFFF;
  --surface2: #F8F8F6;

  /* Borders */
  --border: #E4E4E0;
  --border-strong: #CACAC6;

  /* Text */
  --text: #111111;
  --text-muted: #5A5A5A;
  --text-dim: #9A9A9A;

  /* Brand — navy */
  --navy: #1B3A5C;
  --navy-light: #2A5280;
  --navy-bg: rgba(27,58,92,0.05);

  /* Zone colors — visually distinct at a glance on white */
  --green:        #16A34A;   /* true green — Keeping Up */
  --green-bg:     #F0FDF4;
  --green-border: #BBF7D0;

  --yellow:       #CA8A04;   /* golden amber — Moderate Gap */
  --yellow-bg:    #FEFCE8;
  --yellow-border:#FDE68A;

  --orange:       #EA580C;   /* true orange — Significant Gap */
  --orange-bg:    #FFF7ED;
  --orange-border:#FED7AA;

  --red:          #DC2626;   /* true red — Critical Gap */
  --red-bg:       #FEF2F2;
  --red-border:   #FECACA;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── SITE NAV ───────────────────────────────── */
.site-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  gap: 0;
}
.nav-link {
  display: inline-block;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.12s, border-color 0.12s;
  letter-spacing: 0.2px;
}
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--navy); border-bottom-color: var(--navy); }

@media (max-width: 680px) {
  .nav-inner { padding: 0 20px; }
  .nav-link { padding: 10px 14px; font-size: 12px; }
}

/* ─── HEADER ─────────────────────────────────── */
header {
  background: var(--bg-white);
  border-bottom: 2px solid var(--navy);
  padding: 0;
}

.header-top-bar {
  background: var(--navy);
  padding: 6px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top-bar span {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 500;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 48px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.header-brand h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  letter-spacing: -1.2px;
  color: var(--navy);
  line-height: 1;
}

.header-brand h1 em {
  font-style: normal;
  color: var(--navy);
}

.logo-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.logo-link:hover {
  opacity: 0.75;
}

.inline-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.inline-link:hover {
  opacity: 0.7;
}

.header-brand .tagline {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 520px;
  line-height: 1.5;
  font-weight: 400;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.updated-pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.2px;
  font-weight: 500;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-dot.green  { background: var(--green); }
.legend-dot.yellow { background: var(--yellow); }
.legend-dot.orange { background: var(--orange); }
.legend-dot.red    { background: var(--red); }

/* ─── INTRO BAR ──────────────────────────────── */
.intro-bar {
  background: var(--navy-bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 48px;
}

.intro-bar p {
  max-width: 1280px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.intro-bar strong { color: var(--text); font-weight: 600; }

/* ─── CONTROLS ───────────────────────────────── */
.controls-bar { padding: 24px 48px 0; }

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

.sort-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-right: 4px;
}

.sort-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.sort-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.sort-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.sort-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.industry-count {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ─── GRID ───────────────────────────────────── */
.grid-section { padding: 20px 48px 64px; }

.grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  header .header-top-bar,
  header .header-inner,
  .intro-bar,
  .controls-bar,
  .grid-section { padding-left: 20px; padding-right: 20px; }
  .header-top-bar { padding: 6px 20px; }
}

/* ─── INDUSTRY CARD ──────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: 6px;
  padding: 22px 24px 18px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  display: block;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card.green  { border-top-color: var(--green); }
.card.yellow { border-top-color: var(--yellow); }
.card.orange { border-top-color: var(--orange); }
.card.red    { border-top-color: var(--red); }

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  border-color: var(--border-strong);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.card-score-block { text-align: right; flex-shrink: 0; }

.card-score {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}

.card-score.green  { color: var(--green); }
.card-score.yellow { color: var(--yellow); }
.card-score.orange { color: var(--orange); }
.card-score.red    { color: var(--red); }

.card-zone {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
  text-align: right;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.score-bar-wrap { margin-bottom: 16px; }

.score-bar-bg {
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.score-bar-fill.green  { background: var(--green); }
.score-bar-fill.yellow { background: var(--yellow); }
.score-bar-fill.orange { background: var(--orange); }
.score-bar-fill.red    { background: var(--red); }

.card-sub {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: 4px;
}

.sub-stat { flex: 1; }

.sub-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
  font-weight: 600;
}

.sub-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.5px;
}

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

.card-trend {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.trend-icon.up     { color: var(--red); }
.trend-icon.down   { color: var(--green); }
.trend-icon.stable { color: var(--text-dim); }

.card-link {
  font-size: 11px;
  color: var(--navy);
  font-weight: 600;
  transition: color 0.12s;
  letter-spacing: 0.2px;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  border-top: 2px solid var(--navy);
  background: var(--bg-white);
  padding: 28px 48px;
  text-align: center;
}

footer p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}

footer a { color: var(--navy); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* ─── DETAIL PAGE ────────────────────────────── */
.back-nav { padding: 20px 48px 0; max-width: 1280px; margin: 0 auto; }
.back-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.12s;
}
.back-nav a:hover { text-decoration: underline; }

.detail-hero {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 36px 48px 32px;
}

.detail-hero-inner { max-width: 1100px; margin: 0 auto; }

.detail-industry-name {
  font-size: 11px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-score-row {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.detail-score {
  font-size: clamp(72px, 10vw, 108px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -5px;
}

.detail-score.green  { color: var(--green); }
.detail-score.yellow { color: var(--yellow); }
.detail-score.orange { color: var(--orange); }
.detail-score.red    { color: var(--red); }

.detail-score-meta { padding-bottom: 8px; }

.detail-zone-badge {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-zone-badge.green  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.detail-zone-badge.yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.detail-zone-badge.orange { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.detail-zone-badge.red    { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }

.detail-interpretation {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
}

.detail-updated {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ─── DETAIL BODY ────────────────────────────── */
.detail-summary {
  background: var(--navy-bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 48px;
}

.detail-summary-inner { max-width: 1100px; margin: 0 auto; }

.detail-summary p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 780px;
}

.detail-body { padding: 36px 48px 64px; }
.detail-body-inner { max-width: 1100px; margin: 0 auto; }

.detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) { .detail-cols { grid-template-columns: 1fr; } }

.section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}

/* Signal / Response Bars */
.signal-list { display: flex; flex-direction: column; gap: 20px; }

.signal-item {}

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

.signal-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.signal-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.signal-bar-bg {
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.signal-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--navy);
}

.signal-bar-fill.response { background: var(--text-dim); }

.signal-insight {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Gap Visualization */
.gap-section {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gap-section h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 20px;
}

.gap-bars { display: flex; flex-direction: column; gap: 16px; }

.gap-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  align-items: center;
  gap: 14px;
}

.gap-bar-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
}

.gap-bar-bg {
  height: 18px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.gap-bar-fill { height: 100%; border-radius: 3px; }
.gap-bar-fill.change   { background: var(--navy); }
.gap-bar-fill.response { background: var(--border-strong); }

.gap-bar-val {
  font-size: 15px;
  font-weight: 800;
}

.gap-bar-val.change   { color: var(--navy); }
.gap-bar-val.response { color: var(--text-muted); }

.gap-callout {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.gap-callout strong { color: var(--text); font-weight: 600; }

/* Kill Switch + Strategic Call */
.insight-boxes {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) { .insight-boxes { grid-template-columns: 1fr; } }

.kill-switch-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 20px 22px;
}

.strategic-call-box {
  background: var(--navy);
  border-radius: 6px;
  padding: 20px 22px;
}

.box-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
}

.kill-switch-box .box-label { color: var(--navy); }
.strategic-call-box .box-label { color: rgba(255,255,255,0.6); }

.box-question {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

.box-call {
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.7;
  font-weight: 500;
}

/* Back nav */
.back-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.back-bottom a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-bottom a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .back-nav,
  .detail-hero,
  .detail-summary,
  .detail-body { padding-left: 20px; padding-right: 20px; }
  .detail-score { font-size: 80px; letter-spacing: -3px; }
  .gap-bar-row { grid-template-columns: 100px 1fr 40px; }
}

/* ─── PROSE PAGES (methodology, creator) ────── */
.prose-hero {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 40px 48px 32px;
}
.prose-hero-inner { max-width: 820px; margin: 0 auto; }
.prose-page-label {
  font-size: 11px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 10px;
}
.prose-hero h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.prose-hero .subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 620px;
}

.prose-body { padding: 48px 48px 80px; }
.prose-body-inner { max-width: 820px; margin: 0 auto; }

.prose-body h2 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
.prose-body h2:first-child { margin-top: 0; }

.prose-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 8px;
}

.prose-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.prose-body p strong { color: var(--text); font-weight: 600; }

.prose-body ul {
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
}
.prose-body ul li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;
}
.prose-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

/* Signal/Indicator numbered list */
.signal-defs { margin: 0 0 24px; }
.signal-def {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.signal-def:last-child { border-bottom: none; }
.signal-num {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.signal-def-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.signal-def-body p {
  margin: 0;
  font-size: 14px;
}

/* Score table */
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}
.score-table th {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}
.score-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.score-table tr:last-child td { border-bottom: none; }
.score-table tr:nth-child(even) td { background: var(--surface2); }
.score-num { font-weight: 800; color: var(--text); font-size: 16px; }

/* Zone table */
.zone-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14px; }
.zone-table th {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}
.zone-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.zone-table tr:last-child td { border-bottom: none; }
.zone-badge-sm {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.zone-badge-sm.green  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.zone-badge-sm.yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.zone-badge-sm.orange { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.zone-badge-sm.red    { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }

/* Math steps */
.math-steps { margin: 20px 0 28px; counter-reset: step; }
.math-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.step-num {
  width: 28px;
  height: 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}
.step-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; padding-top: 2px; }
.step-text strong { color: var(--text); font-weight: 600; }

/* Comparison box */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 28px; }
@media (max-width: 680px) { .comparison-grid { grid-template-columns: 1fr; } }
.comparison-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  padding: 16px 18px;
}
.comparison-item h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.comparison-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* CTA box */
.cta-box {
  background: var(--navy);
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 48px;
}
.cta-box h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.3px; }
.cta-box p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 16px; }
.cta-box a {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  padding: 10px 22px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.12s;
}
.cta-box a:hover { opacity: 0.9; }

/* Creator page */
.creator-hero {
  background: var(--navy);
  padding: 52px 48px 44px;
}
.creator-hero-inner { max-width: 820px; margin: 0 auto; display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.creator-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 10px;
}
.creator-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1.1; margin-bottom: 8px; }
.creator-hero .creator-sub { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.6; max-width: 560px; }

.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.industry-tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 680px) {
  .prose-hero, .prose-body { padding-left: 20px; padding-right: 20px; }
  .creator-hero { padding-left: 20px; padding-right: 20px; }
}

/* ─── COMPREHENSIVE MOBILE FIXES ─────────────── */
@media (max-width: 680px) {

  /* Hide redundant URL in top bar */
  .header-top-bar span:last-child { display: none; }

  /* Stack header brand + meta vertically */
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 16px;
  }

  /* Legend flows left-aligned, 2-across on mobile */
  .header-meta {
    align-items: flex-start;
    width: 100%;
  }
  .legend {
    justify-content: flex-start;
    gap: 12px;
  }

  /* Nav: equal-width tabs, no overflow */
  .site-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-inner { gap: 0; }
  .nav-link { flex: 1; text-align: center; white-space: nowrap; }

  /* Methodology tables: scroll horizontally rather than bleed */
  .score-table,
  .zone-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Restore normal td white-space inside scrolling table */
  .score-table td,
  .zone-table td,
  .score-table th,
  .zone-table th { white-space: normal; min-width: 120px; }

  /* Industry detail: tighten gap bar labels */
  .gap-bar-label { font-size: 11px; }
  .gap-bar-score { font-size: 11px; }

  /* Reduce large score on industry detail page */
  .detail-score { font-size: 64px !important; letter-spacing: -2px; }

  /* Footer wraps cleanly */
  footer p { font-size: 12px; text-align: center; line-height: 1.8; }
}

/* ─── EXTRA SMALL (iPhone SE / 375px) ────────── */
@media (max-width: 400px) {
  .header-brand h1 { font-size: 24px; letter-spacing: -0.8px; }
  .card { padding: 16px 16px 14px; }
  .card-name { font-size: 14px; }
  .sort-btn { padding: 6px 10px; font-size: 11px; }
}
