/* ─── DASHBOARD BAR (top-level tabs across pages) ─── */
.dashboard-bar {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: white;
  border-bottom: 3px solid var(--coral);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.dashboard-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
}
.dashboard-bar-brand {
  font-weight: 900;
  font-size: 0.95rem;
  color: white;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  padding: 8px 0 8px 24px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.dashboard-bar-brand .brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0;
  margin-top: 1px;
}
.dashboard-tabs {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.dashboard-tabs::-webkit-scrollbar { display: none; }
.dashboard-tab {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 18px 16px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-tab:hover { color: white; }
.dashboard-tab.active {
  color: white;
  border-bottom-color: var(--coral);
}
.dashboard-tab .tab-count {
  background: rgba(255,255,255,0.12);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.dashboard-tab.active .tab-count { background: var(--coral); }
@media (max-width: 768px) {
  .dashboard-bar-brand { font-size: 0.82rem; padding-left: 16px; }
  .dashboard-tab { padding: 14px 10px; font-size: 0.8rem; }
}

/* ─── DASHBOARD-PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: white;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(232,54,79,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 720px;
}
.page-hero-meta {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.page-hero-meta-item { display: flex; align-items: center; gap: 6px; }
.page-hero-meta-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}

/* ─── Q&A CARD (explanations) ─── */
.qa-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.qa-card-header {
  padding: 18px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}
.qa-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.qa-card-q {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}
.qa-card-body {
  padding: 22px 24px;
  font-size: 0.95rem;
  color: var(--gray-800);
}
.qa-card-body p { margin-bottom: 12px; }
.qa-card-body p:last-child { margin-bottom: 0; }
.qa-card-body ul, .qa-card-body ol { margin: 12px 0; padding-right: 22px; }
.qa-card-body li { margin-bottom: 6px; }
.qa-card-body strong { color: var(--navy); }
.qa-card-body code {
  font-family: monospace;
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  direction: ltr;
  display: inline-block;
}
.qa-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
@media (max-width: 640px) { .qa-options { grid-template-columns: 1fr; } }
.qa-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
}
.qa-option.recommended {
  border-color: var(--coral);
  background: #fdf6f7;
}
.qa-option-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.qa-option.recommended .qa-option-title { color: var(--coral); }
.qa-option-name { font-weight: 800; color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.qa-option-pro, .qa-option-con {
  display: flex; gap: 8px; padding: 4px 0;
  font-size: 0.85rem;
}
.qa-option-pro::before { content: '✓'; color: #16a34a; font-weight: 800; flex-shrink: 0; }
.qa-option-con::before { content: '✗'; color: var(--coral); font-weight: 800; flex-shrink: 0; }
.qa-recommendation {
  margin-top: 8px;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
}
.qa-recommendation strong { color: var(--coral); }

/* ─── FINDINGS — STAT TILES ─── */
.findings-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.finding-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.finding-tile.coral { border-top: 4px solid var(--coral); }
.finding-tile.navy { border-top: 4px solid var(--navy); }
.finding-tile-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.finding-tile.coral .finding-tile-num { color: var(--coral); }
.finding-tile-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 6px;
  font-weight: 600;
}

/* ─── PROGRESS TIMELINE ─── */
.timeline {
  position: relative;
  padding-right: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  position: relative;
  padding: 8px 0 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  right: -27px;
  top: 14px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-400);
}
.timeline-item.done::before { background: var(--navy); border-color: var(--navy); }
.timeline-item.active::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 4px rgba(232,54,79,0.15); }
.timeline-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}
.timeline-item.done .timeline-status { background: #dcfce7; color: #166534; }
.timeline-item.active .timeline-status { background: var(--coral-pale); color: var(--coral); }
.timeline-item.todo .timeline-status { background: var(--gray-100); color: var(--gray-600); }
.timeline-title { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.timeline-desc { font-size: 0.9rem; color: var(--gray-600); }
.timeline-meta { font-size: 0.8rem; color: var(--gray-400); margin-top: 6px; font-family: monospace; }

/* ─── ACTIVITY LOG ─── */
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-row {
  display: grid;
  grid-template-columns: 140px 110px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  align-items: start;
}
@media (max-width: 700px) {
  .activity-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
}
.activity-time {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--gray-400);
  direction: ltr;
  text-align: left;
}
.activity-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 12px;
  align-self: start;
  max-width: max-content;
}
.activity-cat.recon { background: #e0f2fe; color: #075985; }
.activity-cat.decision { background: var(--coral-pale); color: var(--coral); }
.activity-cat.code { background: #f0fdf4; color: #166534; }
.activity-cat.deploy { background: #f3e8ff; color: #6b21a8; }
.activity-cat.docs { background: #fef9c3; color: #854d0e; }
.activity-cat.infra { background: #e0e7ff; color: #3730a3; }
.activity-text { color: var(--gray-800); line-height: 1.6; }
.activity-text code {
  font-family: monospace;
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.84rem;
  direction: ltr;
  display: inline-block;
}
.activity-text a { color: var(--coral); text-decoration: none; }
.activity-text a:hover { text-decoration: underline; }
.activity-day-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
  padding: 16px 8px 8px;
  letter-spacing: 0.04em;
}

/* ─── INTRO BLOCK ─── */
.intro-block {
  background: var(--gray-50);
  border-right: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.7;
}
.intro-block strong { color: var(--navy); }
.intro-block p { margin-bottom: 8px; }
.intro-block p:last-child { margin-bottom: 0; }

/* ─── URL TABLE (used in findings) ─── */
.url-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
}
.url-list-table thead tr { background: var(--navy); color: white; }
.url-list-table th { padding: 12px 16px; font-weight: 700; text-align: right; font-size: 0.85rem; }
.url-list-table td { padding: 10px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.url-list-table tr:last-child td { border-bottom: none; }
.url-list-table tr:nth-child(even) td { background: var(--gray-50); }
.url-list-table .url-cell {
  font-family: monospace;
  font-size: 0.78rem;
  direction: ltr;
  text-align: left;
  color: var(--gray-600);
  word-break: break-all;
  max-width: 360px;
}
.url-list-table .badge-redirect { background: var(--coral-pale); color: var(--coral); padding: 2px 8px; border-radius: 12px; font-size: 0.72rem; font-weight: 800; }
.url-list-table .badge-410 { background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 12px; font-size: 0.72rem; font-weight: 800; }
