/* EquiSense — Kavach Deep-Dive Tab Styles */

/* ─── Kavach Deep-Dive Sections ──────────────────────────────────────── */
.kavach-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Score card — gauge left, verdict prose right */
.kavach-score-card {
  padding: 24px 28px;
}
.kavach-hero-row {
  display: flex;
  align-items: center;
  gap: 28px;
}
.kavach-hero-gauge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
/* Verdict ring — label-only, no score number */
.kavach-verdict-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kavach-verdict-label {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kavach-hero-symbol {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}
.kavach-hero-prose {
  flex: 1;
  min-width: 0;
}
.kavach-hero-prose .kavach-prose {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.kavach-hero-prose .kavach-prose strong {
  color: var(--text-primary);
}
.kavach-hero-prose .kavach-prose + .kavach-prose {
  margin-top: 6px;
}

/* Inline extend toggle */
.kavach-extend-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: inherit;
}
.kavach-extend-btn:hover {
  text-decoration: underline;
}

/* Section header */
.kavach-section-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tint-5);
}
.kavach-section-hdr h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 18px;
}
/* Sub-label (used inside sections) */
.kavach-sub-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
/* Accent-colored sub-labels for visual subsection breaks */
.kavach-sub-label-accent {
  color: var(--accent);
}

/* Prose / paragraph text — the soul of Kavach readability */
.kavach-prose {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}
.kavach-prose + .kavach-prose { margin-top: 10px; }
.kavach-prose strong {
  color: var(--text-primary);
  font-weight: 700;
}
.kavach-prose em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 600;
}

/* Core Business card — prose-focused, full-width */
.kavach-biz-card {
  padding: 20px 24px;
}
.kavach-biz-card .kavach-prose {
  font-size: 14px;
  line-height: 1.7;
}

/* Competitive Moat card */
.kavach-moat-card {
  padding: 20px 24px;
}
.kavach-moat-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.kavach-moat-strength {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Promoters card — compact inline */
.kavach-promoter-card {
  padding: 20px 24px;
}
/* Section header icons */
.kavach-section-icon {
  margin-right: 8px;
  font-size: 16px;
}

/* Section flags — labeled green/red groups */
.kavach-section-flags {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kavach-sf-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kavach-sf-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kavach-leadership-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.kavach-leadership-stats .kls-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kavach-leadership-stats .kls-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.kavach-leadership-stats .kls-value {
  font-size: 15px;
  font-weight: 700;
}

/* Company Verification card — clean grid with status indicators */
.kavach-team-card {
  padding: 20px 24px;
}
.kavach-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.kvt-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--tint-2);
  border-radius: 10px;
  border: 1px solid var(--tint-5);
  text-align: center;
  transition: border-color 0.15s;
}
.kvt-item:hover {
  border-color: var(--tint-10);
}
.kvt-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kvt-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
}

/* Executive summary blocks — breathing room between sections */

/* Metric grid: 3-col desktop, 1-col mobile */
.kavach-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kavach-metric-card {
  padding: 14px;
  background: var(--tint-3);
  border-radius: 10px;
  border: 1px solid var(--tint-4);
}
.kavach-metric-card .km-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.kavach-metric-card .km-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 2px;
}
.kavach-metric-card .km-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Financial metric rows inside cards */
.kavach-fin-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid var(--tint-3);
}
.kavach-fin-row:last-of-type { border-bottom: none; }
.kavach-fin-row .kfr-key {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
}
.kavach-fin-row .kfr-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.kavach-fin-trend {
  margin-top: 8px;
}
.kavach-fin-assessments {
  padding: 14px 16px;
  background: var(--tint-1);
  border-radius: 8px;
  border: 1px solid var(--tint-4);
}
.kavach-fin-assessments .kavach-prose { font-size: 14px; }

/* Segment / percentage bars */
.kavach-bar-group { display: flex; flex-direction: column; gap: 10px; }
.kavach-segment-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kavach-segment-bar .ksb-label {
  flex: 0 0 180px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kavach-segment-bar .ksb-track {
  flex: 1;
  height: 10px;
  background: var(--tint-5);
  border-radius: 5px;
  overflow: hidden;
}
.kavach-segment-bar .ksb-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}
.kavach-segment-bar .ksb-pct {
  flex: 0 0 48px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Executive cards grid */
.kavach-exec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.kavach-exec-card {
  padding: 14px 16px;
  background: var(--tint-3);
  border-radius: 10px;
  border: 1px solid var(--tint-4);
}
.kavach-exec-card .ke-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.kavach-exec-card .ke-role {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.kavach-exec-card .ke-bio {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}
.kavach-exec-card .ke-detail {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.kavach-exec-card .ke-boards {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.kavach-exec-card .ke-board-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent-tint-bg);
  color: var(--accent);
  font-weight: 600;
}

/* Board composition stat */
.kavach-board-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.kavach-board-stat .kbs-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.kavach-board-stat .kbs-label {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Moat assessment prose — slightly inset for visual break */

/* 2-column layout for flags, advantages/threats */
.kavach-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Flag items */
.kavach-flag-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
}
.kavach-flag-item .kf-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}
.kavach-flag-item .kf-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.7;
}
.kavach-flag-green {
  background: transparent;
  border: none;
  border-left: 3px solid var(--accent-border-vivid);
}
.kavach-flag-red {
  background: transparent;
  border: none;
  border-left: 3px solid var(--red-border-vivid);
}

/* Status badge in section headers — Clean / Caution / Risky */
.kavach-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.kavach-status-icon {
  font-size: 12px;
  line-height: 1;
}

/* List items for priorities, drivers, risks */
.kavach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kavach-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.kavach-list li .kl-num {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 11px;
  margin-top: 2px;
}

/* Promoter / board info rows */
.kavach-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--tint-4);
  font-size: 12px;
}
.kavach-info-row:last-child { border-bottom: none; }
.kavach-info-row .kir-label { color: var(--text-tertiary); }
.kavach-info-row .kir-value { color: var(--text-primary); font-weight: 700; }

/* Financial snapshot strip — REMOVED: Financial data now inline in section */

/* ─── Kavach Responsive: Tablet (≤768px) ───────────────────────── */
@media (max-width: 768px) {
  .kavach-metric-grid { grid-template-columns: 1fr 1fr; }
  .kavach-2col { grid-template-columns: 1fr; }
  .kavach-exec-grid { grid-template-columns: 1fr; }
  .kavach-segment-bar .ksb-label { flex: 0 0 110px; }
  .kavach-team-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Kavach Responsive: Mobile (≤480px) ───────────────────────── */
@media (max-width: 480px) {
  /* Sections: tighter rhythm */
  .kavach-sections { gap: 10px; }

  /* All cards: consistent compact padding */
  .kavach-score-card,
  .kavach-biz-card,
  .kavach-moat-card,
  .kavach-promoter-card,
  .kavach-team-card { padding: 14px 16px; }

  /* Hero: stack, center gauge only — prose stays left-aligned */
  .kavach-hero-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .kavach-hero-prose { text-align: left; align-self: stretch; }
  .kavach-verdict-ring { width: 72px; height: 72px; }
  .kavach-verdict-label { font-size: 14px; }
  .kavach-hero-prose .kavach-prose { font-size: 13px; line-height: 1.6; }

  /* Section headers: compact */
  .kavach-section-hdr { padding: 10px 14px; }
  .kavach-section-hdr h3 { font-size: 13px; }

  /* Metrics: single column, tight */
  .kavach-metric-grid { grid-template-columns: 1fr; gap: 8px; }
  .kavach-metric-card { padding: 10px 12px; }
  .kavach-metric-card .km-value { font-size: 16px; }
  .kavach-metric-card .km-label { font-size: 9px; margin-bottom: 4px; }

  /* Exec cards: single column, compact */
  .kavach-exec-grid { grid-template-columns: 1fr; gap: 8px; }
  .kavach-exec-card { padding: 12px 14px; }
  .kavach-exec-card .ke-name { font-size: 13px; }
  .kavach-exec-card .ke-role { font-size: 11px; }
  .kavach-exec-card .ke-bio { font-size: 12px; }
  .kavach-exec-card .ke-meta { font-size: 10px; }

  /* Flags: readable, tight */
  .kavach-flag-item { padding: 8px 10px; }
  .kavach-flag-item .kf-title { font-size: 12px; }
  .kavach-flag-item .kf-body { font-size: 12px; line-height: 1.5; }
  .kavach-sf-label { font-size: 10px; }

  /* Segment bars: short labels */
  .kavach-segment-bar .ksb-label { flex: 0 0 80px; font-size: 11px; }
  .kavach-segment-bar .ksb-pct { font-size: 12px; flex: 0 0 40px; }

  /* Financial rows */
  .kavach-fin-row .kfr-val { font-size: 13px; }
  .kavach-fin-row .kfr-key { font-size: 10px; }

  /* Board stats */
  .kavach-board-stat .kbs-num { font-size: 18px; }

  /* Team grid: single column */
  .kavach-team-grid { grid-template-columns: 1fr; gap: 8px; }
  .kvt-item { padding: 10px 12px; }

  /* Leadership stats */
  .kavach-leadership-stats { gap: 12px; }
  .kavach-leadership-stats .kls-value { font-size: 14px; }

  /* Prose: readable */
  .kavach-prose { font-size: 13px; line-height: 1.6; }

  /* Extend button: bigger tap target */
  .kavach-extend-btn { padding: 8px 0; font-size: 13px; min-height: 44px; }

  /* Sub-labels */
  .kavach-sub-label { font-size: 10px; margin-bottom: 6px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Kavach Flags — Left-border accent (updated from full border)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Override: remove full border, use left-border accent */
