:root {
  --navy: #0A2240;
  --gold: #C9A84C;
  --cream: #F7F3EA;
  --charcoal: #2B2B2B;

  --navy-light: #14335c;
  --gold-light: #ddc37c;
  --border-soft: rgba(10, 34, 64, 0.12);
  --red: #8C2F2F;
  --green: #2F6B4F;
}

* {
  box-sizing: border-box;
}

/* Shared utility used throughout the module JS (toggle-hide panels, output
   cards, modal backdrops) — this was referenced everywhere but never
   actually defined, which silently broke visibility toggles wherever the
   "hidden" element wasn't naturally zero-height (most severely: APA
   Studio's Add Reference modal, a full-viewport fixed overlay that stayed
   permanently open and click-blocking from page load). */
.hidden {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
}

button, input {
  font-family: inherit;
}

/* ---------- App footer (every screen) ---------- */
.tcc-footer {
  text-align: center;
  padding: 18px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--navy);
  opacity: 0.7;
}

/* ---------- Login screen ---------- */
.login-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 12px 32px rgba(10, 34, 64, 0.14);
  border-top: 5px solid var(--gold);
  text-align: center;
}

.login-wordmark {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.login-wordmark span {
  color: var(--gold);
}

.login-tagline {
  margin-top: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  font-style: italic;
  color: var(--charcoal);
  opacity: 0.85;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.login-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.login-form input[type="password"] {
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 15px;
  background: var(--cream);
  color: var(--charcoal);
}

.login-form input[type="password"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.login-error {
  min-height: 18px;
  font-size: 13px;
  color: #b3261e;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--navy-light);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- App shell ---------- */
.app-shell {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.sidebar-wordmark {
  font-size: 18px;
  font-weight: 700;
  padding: 0 24px 4px;
  letter-spacing: 0.02em;
}

.sidebar-wordmark span {
  color: var(--gold);
}

.sidebar-subtitle {
  padding: 0 24px 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-list a {
  display: block;
  padding: 11px 24px;
  text-decoration: none;
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  opacity: 0.82;
}

.nav-list a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.nav-list a.active {
  opacity: 1;
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.nav-section-label {
  padding: 18px 24px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

.sidebar-footer {
  padding: 16px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-logout {
  width: 100%;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.08);
}

.main-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 32px 40px 48px;
}

/* ---------- Shared page chrome ---------- */
.disclaimer-bar {
  background: var(--navy);
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 6px;
  border-left: 4px solid var(--gold);
  margin-bottom: 24px;
}

.page-title {
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
}

.page-subtitle {
  color: var(--charcoal);
  opacity: 0.75;
  font-size: 14px;
  margin: 0 0 28px;
}

/* ---------- Dashboard cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 22px;
  text-decoration: none;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tool-card:hover {
  box-shadow: 0 10px 24px rgba(10, 34, 64, 0.12);
  transform: translateY(-2px);
}

.tool-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.tool-card p {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.5;
}

.tool-card .tag {
  align-self: flex-start;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.tool-card.locked {
  opacity: 0.6;
}

.tool-card .locked-tag {
  background: var(--charcoal);
  color: #fff;
}

/* ---------- Placeholder module view ---------- */
.placeholder-panel {
  background: #fff;
  border: 1px dashed var(--border-soft);
  border-radius: 10px;
  padding: 36px;
  max-width: 640px;
}

.placeholder-panel h2 {
  margin-top: 0;
  color: var(--navy);
}

.placeholder-panel .phase-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--gold-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.placeholder-panel ul {
  padding-left: 20px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .sidebar-wordmark, .sidebar-subtitle, .nav-section-label {
    display: none;
  }
  .nav-list {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
  }
  .nav-list a {
    padding: 8px 12px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .nav-list a.active {
    border-left-color: transparent;
    border-bottom-color: var(--gold);
  }
  .sidebar-footer {
    border-top: none;
    padding: 8px 12px;
  }
  .main-content {
    padding: 24px 20px 40px;
  }
}

/* ==========================================================================
   Module components — mode tabs, holdings tables, generate button + timer,
   case output (number cards / portfolio snapshot / narrative), vault list.
   Shared across any module that follows the fiduciary-review output shape
   (Numbers Don't Lie now; Advisory Brief Builder will reuse most of this).
   ========================================================================== */

.module-thesis {
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal);
  opacity: 0.85;
  max-width: 760px;
  margin: 0 0 22px;
}

.modes {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.mode-btn {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

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

.panel {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
}

.panel h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: var(--cream);
}

table.holdings {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

table.holdings th {
  text-align: left;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  padding: 4px 6px;
}

table.holdings td {
  padding: 4px 6px;
}

table.holdings input {
  width: 100%;
  padding: 7px;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  font-size: 13px;
}

.row-actions {
  text-align: center;
}

.row-actions button {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 16px;
}

.fmp-status {
  font-size: 12px;
  color: #777;
  margin-top: 8px;
}

.btn-navy {
  background: var(--navy) !important;
  color: #fff !important;
}

/* Referenced throughout module JS (Download PDF/DOC/Excel/Sheets, File in
   Vault) but never had its own rule — buttons rendered as unstyled browser
   defaults. Harmless at 1-2 buttons; became visually broken once export
   rows grew to 4-5 buttons with no spacing between them. */
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--cream);
}

.export-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Shared "WORKING 00:14" generate button (Build Spec 3.4) */
.stamp-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0;
}

.btn-generate {
  min-width: 150px;
  padding: 16px 22px;
  border-radius: 8px;
  background: var(--gold);
  border: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-generate:disabled {
  opacity: 1;
  cursor: default;
  background: var(--navy);
  color: #fff;
}

.btn-generate .btn-timer {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.stamp-note {
  font-size: 13px;
  color: #555;
  max-width: 420px;
}

.loading {
  padding: 32px;
  text-align: center;
  color: var(--navy);
}

/* Case output */
.case-output {
  background: var(--navy);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
}

.case-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-header .gold {
  color: var(--gold);
  font-weight: 700;
}

.case-body {
  background: #fff;
  padding: 26px 30px;
  color: var(--charcoal);
  line-height: 1.6;
}

.case-body h2 {
  color: var(--navy);
  font-size: 16px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  margin-top: 26px;
}

.case-body h2:first-child {
  margin-top: 0;
}

.case-actions {
  background: #f2eee2;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-actions .soli {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #777;
}

.numgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 20px 30px 4px;
  background: #fff;
}

.numcard {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  background: var(--cream);
}

.numcard .value {
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.numcard .label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.numcard.tone-positive .value { color: var(--green); }
.numcard.tone-negative .value { color: var(--red); }
.numcard.tone-neutral .value { color: var(--navy); }

.holdingsSnapshot {
  padding: 6px 30px 20px;
  background: #fff;
  overflow-x: auto;
}

.holdingsSnapshot table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.holdingsSnapshot th {
  text-align: left;
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-soft);
}

.holdingsSnapshot td {
  padding: 8px;
  border-bottom: 1px solid #f2eee2;
}

.holdingsSnapshot td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.holdingsSnapshot .pos { color: var(--green); font-weight: 600; }
.holdingsSnapshot .neg { color: var(--red); font-weight: 600; }

/* Module vault (per-module saved-history list; the unified vault view arrives in Phase 7) */
.module-vault {
  margin-top: 30px;
}

.section-label {
  color: var(--navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.module-vault-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-vault-list li {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  background: #fff;
}

.module-vault-list li:hover {
  background: var(--cream);
}

.module-vault-list li.empty {
  color: #999;
  cursor: default;
}

.module-vault-list .date {
  color: #999;
}

@media (max-width: 640px) {
  .modes {
    flex-direction: column;
  }
  .stamp-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .numgrid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 16px 4px;
  }
  .case-body {
    padding: 20px 18px;
  }
}

/* ==========================================================================
   Advisory Brief Builder — category tabs, prompt cards, architecture
   preview, framing toggle, plugin chips. (Build Spec 5.1)
   ========================================================================== */

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.category-tab {
  padding: 9px 16px;
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

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

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.prompt-card {
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
}

.prompt-card:hover {
  border-color: var(--gold);
}

.prompt-card.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf7, #fbf5e6);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.prompt-card .pc-code {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--navy);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.prompt-card .pc-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 5px;
}

.prompt-card .pc-use {
  font-size: 12px;
  color: var(--charcoal);
  opacity: 0.75;
  line-height: 1.45;
}

.architecture {
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--gold);
  background: #fff;
  border-radius: 6px;
  margin-bottom: 22px;
  padding: 14px 18px;
}

.arch-layer {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.arch-layer:not(:last-child) {
  border-bottom: 1px dashed var(--border-soft);
}

.arch-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--navy);
  border-radius: 3px;
  padding: 1px 6px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.arch-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 3px;
}

.arch-text, .arch-body ul {
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.5;
  margin: 0;
  padding-left: 18px;
}

.arch-text {
  padding-left: 0;
}

.framing-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.framing-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border-soft);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.framing-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: left 0.15s ease;
}

.framing-switch.on {
  background: var(--gold);
}

.framing-switch.on .knob {
  left: 22px;
}

.framing-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 2px;
}

.framing-sub {
  font-size: 12px;
  color: var(--charcoal);
  opacity: 0.75;
  line-height: 1.4;
}

.plugin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.plugin-chip {
  padding: 7px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}

.plugin-chip.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.vi-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vi-code {
  font-size: 11px;
  color: #999;
}

.vi-del {
  background: none;
  border: none;
  color: var(--red);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}

.question-textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
  color: var(--charcoal);
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

/* ==========================================================================
   TAG The Match — resume upload, search form, and job result cards.
   (Build Spec 5.5)
   ========================================================================== */

.match-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 860px) {
  .match-grid {
    grid-template-columns: 1fr;
  }
}

.match-form-panel {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 22px;
}

.match-form-panel h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 14px;
}

.match-field {
  margin-bottom: 16px;
}

.match-field label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.match-field input, .match-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--cream);
}

.match-field .hint {
  font-size: 11px;
  color: var(--charcoal);
  opacity: 0.7;
  margin-top: 4px;
}

.file-upload-zone {
  border: 1px dashed var(--border-soft);
  border-radius: 6px;
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  background: var(--cream);
}

.file-upload-zone:hover {
  border-color: var(--gold);
}

.parse-status {
  font-size: 12px;
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: 6px;
  min-height: 16px;
}

.trust-banner {
  background: #fff8e6;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--charcoal);
  margin-bottom: 18px;
}

.quick-actions-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.6;
  font-weight: 700;
  margin-bottom: 8px;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.quick-action-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.quick-action-btn:hover {
  background: var(--cream);
}

.executive-greeting {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  color: #fff;
}
.executive-greeting .eg-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.executive-greeting .eg-greeting {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.executive-greeting .eg-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

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

.results-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.result-count {
  font-size: 12px;
  color: var(--charcoal);
  opacity: 0.7;
}

.job-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

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

.urgency-badge {
  font-size: 11px;
  color: var(--charcoal);
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
}

.job-title {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 16px;
}

.job-meta {
  font-size: 13px;
  color: var(--charcoal);
  opacity: 0.85;
}

.match-badge {
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.match-badge.low {
  background: var(--red);
}

.trust-narrative {
  background: var(--cream);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.trust-narrative h5 {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.trust-narrative p {
  margin: 0;
  font-size: 13px;
  color: var(--charcoal);
}

.skill-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

.skill-tag.missing {
  background: #fbe0c4;
  color: #7b341e;
}

.apply-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  margin-top: 4px;
}

.apply-btn:hover {
  background: var(--navy-light);
}

.diag-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--charcoal);
  opacity: 0.75;
}

.diag-block .diag-line {
  margin-top: 6px;
}
