:root {
  --bg: #eef3f4;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #102226;
  --muted: #5a6c71;
  --line: rgba(16, 34, 38, 0.12);
  --brand: #0d5a6d;
  --brand-soft: #d8eef4;
  --accent: #c97a20;
  --high: #114b5f;
  --medium: #2f7a68;
  --selective: #9a6c23;
  --ecosystem: #6f4f7f;
  --warning: #9c4f2e;
  --pilot: #0f766e;
  --shadow: 0 20px 40px rgba(10, 28, 34, 0.08);
  --radius: 22px;

  /* ESG Risk Colors */
  --esg-critical: #b91c1c;
  --esg-critical-soft: #fee2e2;
  --esg-high: #c2410c;
  --esg-high-soft: #ffedd5;
  --esg-medium: #a16207;
  --esg-medium-soft: #fef9c3;
  --esg-low: #166534;
  --esg-low-soft: #dcfce7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(13, 90, 109, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(201, 122, 32, 0.12), transparent 24%),
    linear-gradient(180deg, #f6fafb 0%, #edf2f3 100%);
}

.backdrop {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 90, 109, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 90, 109, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.45;
}

.hero,
.strip,
.cohort,
.layout,
.sectors,
.roadmap,
.home-primer,
.footer {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  padding: 28px 0 18px;
}

.hero-copy,
.hero-metrics,
.panel,
.strip-card,
.footer {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--brand-soft);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero h1,
.panel h2,
.strip-card h2,
.section-header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.02;
}

.hero p {
  margin: 14px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.target-band-callout {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(13, 90, 109, 0.28);
  background: linear-gradient(135deg, rgba(216, 238, 244, 0.9), rgba(243, 250, 252, 0.9));
  padding: 12px 14px;
}

.target-band-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.target-band-text {
  margin-top: 6px;
  color: #19424b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.target-band-meta {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.target-band-meta strong {
  font-family: "Sora", sans-serif;
  color: var(--text);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

button,
select,
input {
  font: inherit;
}

input[type="checkbox"] {
  accent-color: var(--brand);
}

button {
  cursor: pointer;
  border: none;
}

.ghost,
.primary {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.primary {
  background: linear-gradient(135deg, var(--brand), #0f7a86);
  color: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.metric {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 34, 38, 0.08);
}

.metric-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-value {
  margin-top: 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 6px;
}

.cohort {
  margin-top: 20px;
}

.strip-card {
  padding: 22px;
}

.brief-list,
.cluster-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.brief-item,
.cluster-item {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 34, 38, 0.08);
  color: var(--muted);
  line-height: 1.55;
}

.cluster-title {
  color: var(--text);
  font-weight: 700;
}

.cluster-category {
  margin-top: 4px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
}

.cluster-why {
  margin-top: 8px;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.panel {
  padding: 22px;
}

body.profile-open {
  overflow: hidden;
}

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  -webkit-overflow-scrolling: touch;
}

.profile-backdrop-scrim {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 24, 0.58);
  backdrop-filter: blur(5px);
}

.profile-dialog {
  position: relative;
  z-index: 1;
  width: min(1500px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 28px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(246, 250, 251, 0.98), rgba(235, 242, 244, 0.98));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.profile-dialog-shell {
  display: block;
  min-height: 100%;
}

.profile-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(13, 90, 109, 0.1);
  border-bottom: 1px solid rgba(16, 34, 38, 0.1);
}

.profile-toolbar-label {
  font-family: "Sora", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.profile-toolbar-copy {
  margin-top: 3px;
  font-size: 0.88rem;
  color: var(--muted);
}

.profile-close {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(16, 34, 38, 0.16);
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.profile-panel {
  overflow: visible;
  padding: 16px 16px 72px;
  scroll-padding-bottom: 72px;
}

.profile-empty {
  border-radius: 18px;
  border: 1px dashed rgba(16, 34, 38, 0.24);
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.profile-company {
  display: grid;
  gap: 12px;
}

.profile-company-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.profile-title-block,
.profile-score-card {
  border-radius: 20px;
  border: 1px solid rgba(16, 34, 38, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
}

.profile-title-block h2 {
  margin: 8px 0 2px;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.profile-service-lens {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(13, 90, 109, 0.22);
  background: rgba(13, 90, 109, 0.08);
  color: var(--brand);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 11px;
}

.profile-link:hover {
  background: rgba(13, 90, 109, 0.14);
}

.profile-score-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.profile-score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
}

.profile-score-number {
  font-family: "Sora", sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
}

.profile-score-track {
  border-radius: 999px;
  height: 9px;
  background: rgba(16, 34, 38, 0.1);
  overflow: hidden;
}

.profile-score-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.profile-score-fill.esg-critical { background: linear-gradient(90deg, var(--esg-critical), #ef4444); }
.profile-score-fill.esg-high { background: linear-gradient(90deg, var(--esg-high), #f97316); }
.profile-score-fill.esg-medium { background: linear-gradient(90deg, var(--esg-medium), #eab308); }
.profile-score-fill.esg-low { background: linear-gradient(90deg, var(--esg-low), #22c55e); }

.profile-score-subtext {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.profile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.profile-metric {
  border-radius: 14px;
  border: 1px solid rgba(16, 34, 38, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  min-height: 110px;
}

.profile-metric-good {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(236, 253, 249, 0.8);
}

.profile-metric-warn {
  border-color: rgba(156, 79, 46, 0.25);
  background: rgba(255, 246, 240, 0.88);
}

.profile-metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.profile-metric-value {
  margin-top: 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.profile-metric-note {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.profile-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.signal-bar-card {
  border-radius: 14px;
  border: 1px solid rgba(16, 34, 38, 0.1);
  background: rgba(255, 255, 255, 0.82);
  padding: 10px 12px;
}

.signal-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.8rem;
}

.signal-bar-head strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.signal-track {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 34, 38, 0.1);
  overflow: hidden;
}

.signal-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.signal-fill-neutral { background: linear-gradient(90deg, #0d5a6d, #0891b2); }
.signal-fill-high { background: linear-gradient(90deg, #c2410c, #f97316); }
.signal-fill-critical { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.signal-fill-medium { background: linear-gradient(90deg, #a16207, #eab308); }
.signal-fill-low { background: linear-gradient(90deg, #166534, #22c55e); }

.profile-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.profile-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.profile-stack > .outreach-hook,
.profile-stack > .esg-score-block,
.profile-stack > .panel-block {
  margin-top: 0;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  padding: 13px 14px;
  color: var(--text);
}

.toggle-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.toggle-list-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(13, 90, 109, 0.12);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 90, 109, 0.24);
  box-shadow: 0 10px 20px rgba(13, 90, 109, 0.08);
}

.toggle input {
  margin-top: 3px;
}

.toggle-body {
  display: grid;
  gap: 4px;
}

.toggle-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.toggle-desc {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.results-header,
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.results-header p,
.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.legend,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  max-height: 780px;
  overflow: auto;
  padding-right: 4px;
}

.row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(16, 34, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
  transition:
    transform 130ms ease,
    border-color 130ms ease,
    box-shadow 130ms ease;
}

.row-rank {
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: center;
  border-radius: 16px;
  padding: 10px 8px;
  border: 1px solid rgba(16, 34, 38, 0.08);
  background: rgba(245, 249, 250, 0.88);
}

.row-rank-number {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.row-rank-copy {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-rank-priority-a {
  background: rgba(17, 75, 95, 0.08);
  color: var(--high);
}

.row-rank-priority-b {
  background: rgba(47, 122, 104, 0.08);
  color: var(--medium);
}

.row-rank-priority-c {
  background: rgba(154, 108, 35, 0.08);
  color: var(--selective);
}

.row:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 90, 109, 0.35);
}

.row.is-selected {
  border-color: rgba(13, 90, 109, 0.52);
  box-shadow: 0 10px 24px rgba(13, 90, 109, 0.14);
  background: rgba(235, 247, 250, 0.92);
}

.row-main {
  min-width: 0;
}

.row-name {
  font-weight: 700;
}

.row-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.row-side {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
  flex-shrink: 0;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge {
  background: rgba(16, 34, 38, 0.08);
  color: var(--text);
}

.chip-high {
  background: rgba(17, 75, 95, 0.12);
  color: var(--high);
}

.chip-priority-a {
  background: rgba(17, 75, 95, 0.12);
  color: var(--high);
}

.chip-priority-b {
  background: rgba(47, 122, 104, 0.12);
  color: var(--medium);
}

.chip-priority-c {
  background: rgba(154, 108, 35, 0.12);
  color: var(--selective);
}

.chip-medium {
  background: rgba(47, 122, 104, 0.12);
  color: var(--medium);
}

.chip-selective {
  background: rgba(154, 108, 35, 0.12);
  color: var(--selective);
}

.chip-ecosystem {
  background: rgba(111, 79, 127, 0.12);
  color: var(--ecosystem);
}

.chip-warning {
  background: rgba(156, 79, 46, 0.12);
  color: var(--warning);
}

.chip-pilot {
  background: rgba(15, 118, 110, 0.12);
  color: var(--pilot);
}

.chip-target {
  background: rgba(13, 90, 109, 0.14);
  color: var(--brand);
}

.chip-watch {
  background: rgba(156, 79, 46, 0.14);
  color: var(--warning);
}

/* ESG Risk Chips */
.chip-esg-critical {
  background: var(--esg-critical-soft);
  color: var(--esg-critical);
}

.chip-esg-high {
  background: var(--esg-high-soft);
  color: var(--esg-high);
}

.chip-esg-medium {
  background: var(--esg-medium-soft);
  color: var(--esg-medium);
}

.chip-esg-low {
  background: var(--esg-low-soft);
  color: var(--esg-low);
}

.chip-xs {
  font-size: 0.7rem;
  padding: 4px 8px;
}

.row-score-badge {
  background: rgba(13, 90, 109, 0.08);
  color: var(--brand);
}

/* ESG Score Mini (cohort cards) */
.esg-score-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
}

.esg-score-mini-num {
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  min-width: 42px;
}

.esg-score-mini-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 34, 38, 0.1);
  overflow: hidden;
}

.esg-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.4s ease;
}

/* ESG color text/fill classes */
.esg-critical { color: var(--esg-critical); }
.esg-high { color: var(--esg-high); }
.esg-medium { color: var(--esg-medium); }
.esg-low { color: var(--esg-low); }

.esg-bar-fill.esg-critical { background: var(--esg-critical); }
.esg-bar-fill.esg-high { background: var(--esg-high); }
.esg-bar-fill.esg-medium { background: var(--esg-medium); }
.esg-bar-fill.esg-low { background: var(--esg-low); }

/* Sector grid: 3-col metric row */
.sector-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* ESG Score Block in detail panel */
.esg-score-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.esg-score-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.esg-score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid currentColor;
}

.esg-score-circle.esg-critical { border-color: var(--esg-critical); background: var(--esg-critical-soft); }
.esg-score-circle.esg-high { border-color: var(--esg-high); background: var(--esg-high-soft); }
.esg-score-circle.esg-medium { border-color: var(--esg-medium); background: var(--esg-medium-soft); }
.esg-score-circle.esg-low { border-color: var(--esg-low); background: var(--esg-low-soft); }

.esg-score-num {
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.esg-score-sub {
  font-size: 0.65rem;
  color: var(--muted);
}

.esg-rationale {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Outreach Hook */
.outreach-hook {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 90, 109, 0.07), rgba(13, 90, 109, 0.03));
  border-left: 3px solid var(--brand);
}

.hook-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 6px;
}

.hook-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

/* NGT/PCB Flags */
.block-alert {
  border-color: var(--esg-high) !important;
  background: var(--esg-high-soft) !important;
}

.block-gaps {
  border-color: rgba(161, 98, 7, 0.3) !important;
  background: rgba(254, 249, 195, 0.5) !important;
}

.ngt-flag {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  border: 1px solid rgba(16, 34, 38, 0.08);
}

.flag-critical {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: var(--esg-critical) !important;
}

.flag-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--esg-critical);
}

.flag-desc {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}

.flag-status {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* Compliance Gaps */
.gaps-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.gap-item {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-left: 3px solid var(--esg-medium);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

/* Applicable Regulations */
.reg-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.reg-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 34, 38, 0.08);
}

.reg-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.reg-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  align-items: center;
}

.reg-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(13, 90, 109, 0.1);
  color: var(--brand);
}

.reg-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Export Compliance */
.export-markets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.market-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(13, 90, 109, 0.1);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}

.export-list {
  display: grid;
  gap: 8px;
}

.export-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 34, 38, 0.08);
}

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

.export-market {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.urgency-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.urgency-critical { background: var(--esg-critical-soft); color: var(--esg-critical); }
.urgency-high { background: var(--esg-high-soft); color: var(--esg-high); }
.urgency-medium { background: var(--esg-medium-soft); color: var(--esg-medium); }
.urgency-low { background: var(--esg-low-soft); color: var(--esg-low); }

.export-req {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.export-gap {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Financial Signals */
.fin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.fin-item {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 34, 38, 0.08);
}

.fin-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.fin-value {
  margin-top: 5px;
  font-weight: 700;
  font-size: 0.92rem;
}

.fin-value.ok { color: var(--medium); }

.fin-note {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Domain link in detail */
.domain-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: none;
}

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

.small { font-size: 0.88rem !important; }

/* Sector bar fill with ESG coloring */
.sector-bar-fill.esg-critical { background: linear-gradient(90deg, var(--esg-critical), #ef4444); }
.sector-bar-fill.esg-high { background: linear-gradient(90deg, var(--esg-high), #f97316); }
.sector-bar-fill.esg-medium { background: linear-gradient(90deg, var(--esg-medium), #eab308); }
.sector-bar-fill.esg-low { background: linear-gradient(90deg, var(--esg-low), #22c55e); }

/* Panel block h4 */
.panel-block h4 {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.details-empty {
  color: var(--muted);
}

.details h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.2;
}

.detail-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 34, 38, 0.08);
}

.detail-section h4 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-header h3 {
  margin: 6px 0 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  padding: 12px;
}

.card-label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-value {
  margin-top: 6px;
  font-weight: 700;
}

.card-value.ok {
  color: var(--medium);
}

.card-value.warn {
  color: var(--warning);
}

.card-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-block {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  padding: 14px;
  margin-top: 14px;
}

.target-scope-block {
  border-color: rgba(13, 90, 109, 0.25);
  background: rgba(216, 238, 244, 0.42);
}

.target-scope-text {
  margin-top: 8px;
  color: #1a434d;
  line-height: 1.55;
  font-size: 0.9rem;
}

.evidence-hub {
  background: rgba(216, 238, 244, 0.42);
  border-color: rgba(13, 90, 109, 0.2);
}

.evidence-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}

.evidence-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.evidence-empty {
  font-size: 0.84rem;
  color: var(--muted);
}

.source-footnote {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.source-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 90, 109, 0.2);
  background: rgba(13, 90, 109, 0.09);
  color: var(--brand);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.source-chip:hover {
  background: rgba(13, 90, 109, 0.16);
}

.source-empty {
  font-size: 0.82rem;
  color: var(--muted);
}

.panel-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.spark-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #13a0aa);
  min-width: 14%;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 34, 38, 0.06);
  color: var(--text);
  font-weight: 600;
}

.pill-empty {
  background: rgba(16, 34, 38, 0.04);
  color: var(--muted);
}

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

.grid-2 > .source-footnote {
  grid-column: 1 / -1;
}

.cohort {
  position: relative;
  z-index: 5;
}

.cohort-grid {
  display: grid;
  gap: 18px;
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cohort-card {
  cursor: pointer;
  position: relative;
  z-index: 6;
  pointer-events: auto;
  display: block;
}

.sectors,
.roadmap {
  margin-top: 20px;
}

.sectors,
.roadmap {
  margin-top: 20px;
}

.home-primer {
  margin-top: 20px;
}

.cohort-grid,
.sector-grid,
.roadmap-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

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

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

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

.cohort-card,
.sector-card,
.roadmap-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
}

.cohort-card {
  width: 100%;
  text-align: left;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.cohort-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(10, 28, 34, 0.1);
  border-color: rgba(13, 90, 109, 0.22);
}

.cohort-card.is-selected {
  border-color: rgba(13, 90, 109, 0.55);
  box-shadow: 0 18px 30px rgba(13, 90, 109, 0.15);
  background: rgba(235, 247, 250, 0.88);
}

.cohort-card h3,
.sector-card h3,
.roadmap-card h3 {
  margin: 14px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.cohort-top,
.sector-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cohort-sector,
.cohort-domain,
.sector-metric-label,
.roadmap-status,
.roadmap-phase {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cohort-sector {
  margin-top: 8px;
}

.cohort-overlay {
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cohort-domain {
  margin-top: 12px;
  color: var(--brand);
  text-transform: none;
  word-break: break-word;
}

.sector-metric-value {
  margin-top: 6px;
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.sector-bar {
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(16, 34, 38, 0.08);
  overflow: hidden;
}

.sector-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #13a0aa);
}

.cohort-card p,
.sector-card p,
.roadmap-card p,
.sector-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.metric-explain-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric-explain-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.metric-explain-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-explain-value {
  margin-top: 6px;
  font-family: "Sora", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.metric-explain-note {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.primer-subhead {
  margin-top: 18px;
}

.primer-subhead h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
  font-size: 1.14rem;
}

.primer-subhead p {
  margin: 6px 0 0;
  color: var(--muted);
}

.sector-bucket-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sector-bucket-tile {
  border-radius: 14px;
  border: 1px solid rgba(13, 90, 109, 0.16);
  background: rgba(216, 238, 244, 0.34);
  padding: 12px;
}

.sector-bucket-name {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.sector-bucket-meta {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.readiness-note {
  margin: 16px 0 0;
  border-radius: 14px;
  border: 1px solid rgba(13, 90, 109, 0.2);
  background: rgba(13, 90, 109, 0.08);
  padding: 12px 14px;
  color: #18434d;
  font-weight: 600;
  line-height: 1.5;
}

.footer {
  margin: 22px auto 28px;
  padding: 16px 18px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .hero,
  .strip,
  .layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .profile-content-grid {
    grid-template-columns: 1fr;
  }

  .profile-stack {
    align-content: initial;
  }
}

@media (max-width: 760px) {
  .hero,
  .strip,
  .cohort,
  .layout,
  .sectors,
  .roadmap,
  .home-primer,
  .footer {
    width: min(100% - 20px, 1380px);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy,
  .panel,
  .strip-card {
    padding: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .cohort-grid,
  .sector-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .results-header,
  .section-header {
    flex-direction: column;
    align-items: start;
  }

  .metric-explain-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-overlay {
    padding: 6px;
  }

  .profile-dialog {
    width: min(100%, 1500px);
    margin: 0 auto;
    min-height: calc(100vh - 12px);
    border-radius: 18px;
  }

  .profile-toolbar {
    padding: 12px;
  }

  .profile-panel {
    padding: 12px 12px 48px;
  }

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

  .evidence-row {
    grid-template-columns: 1fr;
  }

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

  .profile-link-row {
    gap: 6px;
  }

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

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

  .row-rank {
    justify-items: start;
  }

  .row-side {
    align-items: start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
