/* ============================================================
   shortlist.css — Commexce AI Shortlist Static Frontend
   Extracted from React/Tailwind source. No framework required.
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --background:        hsl(225, 14%, 97%);
  --foreground:        hsl(222, 47%, 11%);

  --card:              hsl(0, 0%, 100%);
  --card-foreground:   hsl(222, 47%, 11%);

  --primary:           hsl(224, 56%, 42%);
  --primary-foreground: hsl(0, 0%, 100%);

  --muted:             hsl(220, 14%, 94%);
  --muted-foreground:  hsl(220, 9%, 46%);

  --accent:            hsl(224, 56%, 96%);
  --accent-foreground: hsl(224, 56%, 42%);

  --border:            hsl(220, 13%, 91%);

  --score-excellent:   hsl(152, 48%, 36%);
  --score-good:        hsl(224, 56%, 42%);
  --score-fair:        hsl(33,  65%, 48%);
  --score-weak:        hsl(0,   55%, 52%);

  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.25rem;
  --radius-2xl:  1.5rem;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ── Typography helpers ── */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* ── Layout ── */
.page-wrapper {
  min-height: 100vh;
  background-color: var(--background);
}

.container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1.5rem;

}

/* ── Hero Gradient Section ── */
.hero-gradient {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    hsl(224, 65%, 96%) 0%,
    hsl(230, 50%, 97%) 30%,
    hsl(250, 40%, 97%) 60%,
    var(--background) 100%
  );
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.glow-top-right {
  top: 0;
  right: 0;
  width: 700px;
  height: 500px;
  background: hsl(224, 56%, 42%, 0.04);
  filter: blur(150px);
  transform: translateY(-33%) translateX(25%);
}
.glow-bottom-left {
  bottom: 0;
  left: 0;
  width: 400px;
  height: 300px;
  background: hsl(224, 56%, 42%, 0.02);
  filter: blur(100px);
  transform: translateY(33%) translateX(-25%);
}

/* ── Top Bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, hsl(224, 56%, 42%), hsl(260, 40%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-dot {
  color: hsl(220, 9%, 46%, 0.2);
}

.brand-sub {
  font-size: 0.875rem;
  color: hsl(220, 9%, 46%, 0.5);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: hsl(224, 56%, 42%, 0.06);
  border: 1px solid hsl(224, 56%, 42%, 0.1);
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.badge-ai svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

a.badge-ai {
  text-decoration: none;
  color: inherit;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(220, 13%, 91%, 0.6);
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.btn-export:hover {
  color: var(--foreground);
  border-color: var(--border);
}

.btn-export svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── Hero Header ── */
.hero-header {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 14px;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.meta-dot {
  color: var(--border);
}

/* ── Key Insight Block ── */
.insight-block {
  max-width: 42rem;
  padding: 1.75rem;
  background: hsl(0, 0%, 100%, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.label-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(224, 56%, 42%, 0.6);
  margin-bottom: 0.75rem;
}

.insight-text {
  font-size: 17px;
  color: var(--foreground);
  line-height: 1.6;
  font-weight: 600;
}

.insight-text .text-primary {
  color: var(--primary);
}

.insight-list {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.insight-list li {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.insight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(224, 56%, 42%, 0.3);
}

/* ── Main Content ── */
.main-content {
  padding-bottom: 5rem;
}

/* ── Sections ── */
.section {
  margin-bottom: 5rem;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(220, 9%, 46%, 0.7);
  margin-bottom: 1.5rem;
}

/* ── Cards ── */
.card {
  border-radius: var(--radius-2xl);
  background: var(--card);
  border: 1px solid hsl(220, 13%, 91%, 0.6);
}

.card-elevated {
  box-shadow:
    0 1px 3px 0 hsl(220, 13%, 91%, 0.6),
    0 4px 16px -4px hsl(224, 56%, 42%, 0.06);
}

.card-elevated-lg {
  box-shadow:
    0 2px 4px 0 hsl(220, 13%, 91%, 0.5),
    0 8px 32px -8px hsl(224, 56%, 42%, 0.08),
    0 0 0 1px hsl(224, 56%, 42%, 0.02);
}

/* ── Executive Summary ── */
.exec-summary {
  position: relative;
  margin-top: -0.25rem;
}

.exec-summary-inner {
  padding: 2rem;
}

@media (min-width: 768px) {
  .exec-summary-inner {
    padding: 2.5rem;
  }
}

.exec-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

.exec-summary-text {
  flex: 1;
}

.exec-summary-headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.exec-summary-body {
  font-size: 15px;
  color: hsl(222, 47%, 11%, 0.7);
  line-height: 1.7;
  max-width: 32rem;
}

.exec-summary-ranks {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
}

.rank-item {
  text-align: center;
  min-width: 56px;
}

.rank-number {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.rank-name {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-top: 2px;
}

.rank-score {
  display: block;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: hsl(220, 9%, 46%, 0.4);
  margin-top: 2px;
}

/* ── Mini Insights Strip ── */
.mini-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid hsl(220, 13%, 91%, 0.4);
}

.label-mono-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(220, 9%, 46%, 0.5);
  margin-bottom: 0.5rem;
}

.mini-insight-value {
  font-size: 14px;
  color: hsl(222, 47%, 11%, 0.75);
  line-height: 1.6;
}

/* ── Score Badge ── */
.score-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  border: 1px solid;
  flex-shrink: 0;
  transition: all 0.2s;
}

.score-badge--lg {
  width: 72px;
  height: 72px;
  font-size: 2.25rem;
  border-radius: var(--radius-2xl);
}

.score-badge--md {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
  border-radius: var(--radius-xl);
}

.score-badge--sm {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  border-radius: var(--radius-xl);
}

/* Score colors applied via JS data-score attribute */
.score-badge[data-score-tier="excellent"] {
  color: var(--score-excellent);
  background: hsl(152, 48%, 36%, 0.08);
  border-color: hsl(152, 48%, 36%, 0.15);
}

.score-badge[data-score-tier="good"] {
  color: var(--score-good);
  background: hsl(224, 56%, 42%, 0.08);
  border-color: hsl(224, 56%, 42%, 0.15);
}

.score-badge[data-score-tier="fair"] {
  color: var(--score-fair);
  background: hsl(33, 65%, 48%, 0.08);
  border-color: hsl(33, 65%, 48%, 0.15);
}

.score-badge[data-score-tier="weak"] {
  color: var(--score-weak);
  background: hsl(0, 55%, 52%, 0.08);
  border-color: hsl(0, 55%, 52%, 0.15);
}

/* ── Score Breakdown ── */
.score-breakdown {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: hsl(224, 56%, 96%, 0.5);
  border: 1px solid hsl(220, 13%, 91%, 0.3);
}

.score-breakdown-bars {
  display: flex;
  gap: 1.5rem;
}

.score-bar-item {
  flex: 1;
}

.score-bar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.score-bar-header strong {
  font-weight: 600;
  color: var(--foreground);
}

.score-bar-header .score-denom {
  color: hsl(220, 9%, 46%, 0.6);
  font-weight: 400;
}

.score-bar-track {
  height: 6px;
  border-radius: 9999px;
  background: var(--muted);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: hsl(224, 56%, 42%, 0.4);
  transition: width 0.7s ease-out;
}

.score-explanation {
  font-size: 14px;
  color: hsl(220, 9%, 46%, 0.7);
  line-height: 1.6;
  font-style: italic;
  margin-top: 0.75rem;
}

/* ── Tags ── */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 11px;
  font-weight: 500;
}

/* ── Section Headers (inside cards) ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-header svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.section-header h3,
.section-header span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(220, 9%, 46%, 0.7);
  font-weight: 600;
}

.section-header--upside svg { color: hsl(152, 48%, 36%, 0.7); }
.section-header--risk svg    { color: hsl(33, 65%, 48%, 0.7); }
.section-header--tradeoff svg{ color: hsl(224, 56%, 42%, 0.5); }
.section-header--verdict svg { color: hsl(222, 47%, 11%, 0.5); }

/* ── Bullet Lists ── */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-list li {
  font-size: 14px;
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.bullet-list--strong li {
  color: hsl(222, 47%, 11%, 0.8);
}
.bullet-list--strong li::before {
  background: hsl(152, 48%, 36%, 0.5);
}

.bullet-list--risk li {
  color: hsl(222, 47%, 11%, 0.6);
}
.bullet-list--risk li::before {
  background: hsl(33, 65%, 48%, 0.5);
}

/* ── Hero Card ── */
.hero-card {
  padding: 2rem;
  animation: fadeIn 0.4s ease-out forwards;
}

@media (min-width: 768px) {
  .hero-card {
    padding: 2.5rem;
  }
}

.hero-card-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  background: hsl(224, 56%, 42%, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid hsl(224, 56%, 42%, 0.1);
  margin-bottom: 1.75rem;
}

.hero-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-card-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.hero-card-role {
  font-size: 15px;
  color: var(--muted-foreground);
  margin-top: 0.375rem;
}

.hero-card-info .tag-group {
  margin-top: 1rem;
}

.score-badge-wrapper {
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.score-badge-wrapper:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-2xl);
}

.score-hint {
  font-size: 9px;
  color: hsl(220, 9%, 46%, 0.4);
  text-align: center;
  margin-top: 6px;
  font-weight: 500;
  transition: color 0.15s;
}

.score-badge-wrapper:hover .score-hint {
  color: hsl(220, 9%, 46%, 0.6);
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .analysis-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tradeoff-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: hsl(224, 56%, 96%, 0.4);
  border: 1px solid hsl(220, 13%, 91%, 0.3);
}

.tradeoff-box p {
  font-size: 14px;
  color: hsl(222, 47%, 11%, 0.7);
  line-height: 1.6;
}

.verdict-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(220, 13%, 91%, 0.5);
}

.verdict-section p {
  font-size: 15px;
  color: hsl(222, 47%, 11%, 0.8);
  line-height: 1.7;
}

/* ── Runners-up Grid ── */
.runners-up-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .runners-up-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Compact Card ── */
.compact-card {
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease-out;
  user-select: none;
}

.compact-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px -8px hsl(224, 56%, 42%, 0.08),
    0 2px 8px -2px hsl(224, 56%, 42%, 0.04);
}

.compact-card.is-hovered {
  border-color: hsl(224, 56%, 42%, 0.2);
  box-shadow:
    0 2px 4px 0 hsl(220, 13%, 91%, 0.5),
    0 8px 32px -8px hsl(224, 56%, 42%, 0.08);
}

.compact-card.is-muted {
  opacity: 0.55;
  transform: scale(0.99);
}

.compact-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.compact-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.rank-label {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: hsl(220, 9%, 46%, 0.6);
}

.compact-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card-role {
  font-size: 13px;
  color: var(--muted-foreground);
}

.compact-card .tag-group {
  margin-bottom: 1rem;
}

.compact-strengths,
.compact-risks {
  margin-bottom: 0.75rem;
}

.compact-strengths-label,
.compact-risks-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.compact-strengths-label { color: hsl(152, 48%, 36%, 0.5); }
.compact-risks-label     { color: hsl(33, 65%, 48%, 0.5); }

.compact-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.compact-bullet-list li {
  font-size: 13px;
  line-height: 1.45;
  padding-left: 0.875rem;
  position: relative;
}

.compact-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.compact-strengths .compact-bullet-list li { color: hsl(222, 47%, 11%, 0.75); }
.compact-strengths .compact-bullet-list li::before { background: hsl(152, 48%, 36%, 0.5); }

.compact-risks .compact-bullet-list li { color: hsl(222, 47%, 11%, 0.5); }
.compact-risks .compact-bullet-list li::before { background: hsl(33, 65%, 48%, 0.5); }

.compact-tradeoff {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: hsl(224, 56%, 96%, 0.4);
  border: 1px solid hsl(220, 13%, 91%, 0.2);
  margin-bottom: 0.75rem;
}

.compact-tradeoff-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(220, 9%, 46%, 0.5);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.compact-tradeoff p {
  font-size: 12px;
  color: hsl(222, 47%, 11%, 0.6);
  line-height: 1.5;
}

.compact-summary {
  font-size: 12px;
  color: hsl(220, 9%, 46%, 0.6);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.compact-expanded {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(220, 13%, 91%, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInFast 0.2s ease-out;
}

.compact-expanded-verdict p {
  font-size: 14px;
  color: hsl(222, 47%, 11%, 0.7);
  line-height: 1.6;
}

.compact-expanded-verdict-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(222, 47%, 11%, 0.4);
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.chevron-toggle {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.chevron-toggle svg {
  width: 14px;
  height: 14px;
  color: hsl(220, 9%, 46%, 0.3);
  transition: transform 0.2s;
}

.chevron-toggle.is-open svg {
  transform: rotate(180deg);
}

/* ── Collapsed List (Other Candidates) ── */
.collapsed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.collapsed-card {
  border-radius: var(--radius-2xl);
  background: var(--card);
  border: 1px solid hsl(220, 13%, 91%, 0.6);
  overflow: hidden;
  transition: border-color 0.2s;
}

.collapsed-card:hover {
  border-color: hsl(224, 56%, 42%, 0.15);
}

.collapsed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
}

.collapsed-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.collapsed-card-left .rank-label {
  font-size: 10px;
}

.collapsed-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.collapsed-card-label {
  font-size: 12px;
  color: hsl(220, 9%, 46%, 0.6);
  margin-top: 2px;
}

.collapsed-card-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.collapsed-card-body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid hsl(220, 13%, 91%, 0.4);
  padding-top: 1.25rem;
  animation: fadeInFast 0.2s ease-out;
}

.collapsed-analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .collapsed-analysis-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── When Each Candidate Wins (Accordion) ── */
.when-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.when-item {
  border-radius: var(--radius-2xl);
  background: var(--card);
  border: 1px solid hsl(220, 13%, 91%, 0.6);
  overflow: hidden;
  transition: all 0.2s;
}

.when-item.is-open {
  border-color: hsl(224, 56%, 42%, 0.15);
  box-shadow:
    0 2px 4px 0 hsl(220, 13%, 91%, 0.5),
    0 8px 32px -8px hsl(224, 56%, 42%, 0.08);
}

.when-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
}

.when-item-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.when-indicator {
  width: 4px;
  height: 32px;
  border-radius: 9999px;
  background: hsl(224, 56%, 42%, 0.2);
  flex-shrink: 0;
}

.when-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.when-body {
  padding: 0 1.5rem 1.5rem;
  animation: fadeInFast 0.2s ease-out;
}

.when-scenario {
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: hsl(224, 56%, 96%, 0.5);
  border: 1px solid hsl(220, 13%, 91%, 0.3);
  margin-bottom: 1.25rem;
}

.label-when {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(224, 56%, 42%, 0.6);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.label-when svg,
.label-fit svg,
.label-risk svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.when-scenario p:last-child {
  font-size: 15px;
  color: var(--foreground);
  font-weight: 500;
  line-height: 1.6;
}

.when-fit {
  margin-bottom: 1rem;
}

.label-fit {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(152, 48%, 36%, 0.6);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.when-fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.when-fit-list li {
  font-size: 14px;
  color: hsl(222, 47%, 11%, 0.75);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.when-fit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(152, 48%, 36%, 0.4);
}

.label-risk {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(33, 65%, 48%, 0.6);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.when-risk-text {
  font-size: 14px;
  color: hsl(222, 47%, 11%, 0.55);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.when-risk-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(33, 65%, 48%, 0.4);
}

/* ── Comparison + Shortlist Grid ── */
.comparison-shortlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .comparison-shortlist-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.comparison-card-inner,
.shortlist-card-inner {
  padding: 1.75rem;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  border-radius: var(--radius-xl);
  background: hsl(220, 14%, 94%, 0.5);
  width: fit-content;
}

.tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab:hover {
  color: var(--foreground);
}

.tab.is-active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 3px 0 hsl(220, 13%, 91%, 0.6);
  border: 1px solid hsl(220, 13%, 91%, 0.4);
}

/* ── Comparison Rows ── */
.comparison-row {
  padding: 1rem 0;
  border-bottom: 1px solid hsl(220, 13%, 91%, 0.3);
}

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

.comparison-row-group {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(224, 56%, 42%, 0.4);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comparison-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.comparison-row-label {
  font-size: 14px;
  color: var(--muted-foreground);
}

.comparison-row-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.comparison-row-value.text-primary {
  color: var(--primary);
}

.comparison-row-insight {
  font-size: 14px;
  color: hsl(220, 9%, 46%, 0.6);
  line-height: 1.6;
}

/* ── Trade-off Items ── */
.tradeoff-item {
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: hsl(224, 56%, 96%, 0.4);
  border: 1px solid hsl(220, 13%, 91%, 0.3);
  margin-bottom: 0.75rem;
}

.tradeoff-item:last-child {
  margin-bottom: 0;
}

.tradeoff-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.tradeoff-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.tradeoff-item-score {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: hsl(220, 9%, 46%, 0.5);
}

.tradeoff-weakness {
  font-size: 14px;
  color: hsl(222, 47%, 11%, 0.7);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.tradeoff-weakness strong {
  color: hsl(33, 65%, 48%, 0.8);
  font-weight: 500;
}

.tradeoff-implication {
  font-size: 14px;
  color: hsl(220, 9%, 46%, 0.6);
  line-height: 1.6;
}

.tradeoff-implication strong {
  color: hsl(220, 9%, 46%, 0.8);
  font-weight: 500;
}

/* ── Final Shortlist ── */
.shortlist-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.shortlist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.shortlist-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(224, 56%, 42%, 0.7);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.shortlist-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.shortlist-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.shortlist-score {
  font-size: 12px;
  color: hsl(220, 9%, 46%, 0.5);
  font-family: 'JetBrains Mono', monospace;
}

.shortlist-reasoning {
  font-size: 14px;
  color: hsl(220, 9%, 46%, 0.7);
  margin-top: 0.25rem;
  line-height: 1.6;
}

.shortlist-conclusion {
  padding-top: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid hsl(220, 13%, 91%, 0.4);
  font-size: 15px;
  color: hsl(222, 47%, 11%, 0.7);
  line-height: 1.6;
  font-weight: 500;
}

/* ── Chevron shared ── */
.chevron svg {
  width: 16px;
  height: 16px;
  color: hsl(220, 9%, 46%, 0.3);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.chevron.is-open svg {
  transform: rotate(180deg);
}

/* ── Footer ── */
.page-footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid hsl(220, 13%, 91%, 0.4);
}

.page-footer p {
  font-size: 10px;
  color: hsl(220, 9%, 46%, 0.4);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInFast {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .exec-summary-top { flex-direction: column; }
  .exec-summary-ranks { justify-content: flex-start; }
  .mini-insights { grid-template-columns: 1fr; }
  .hero-card-header { flex-direction: column; }
  .score-badge--lg { width: 56px; height: 56px; font-size: 1.5rem; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .topbar-actions { flex-wrap: wrap; }
}
