/* Cybersecurity Trade Project - Estimator Modern Stylesheet */
:root {
  --bg-color: #0a0e17;
  --bg-surface: #0f172a;
  --card-bg: #161f30;
  --card-border: #1f2937;
  --border-subtle: #2e3a52;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent-blue: #2563eb;
  --accent-blue-hover: #3b82f6;
  --accent-cyan: #0ea5e9;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* WCAG 2.1 AA Focus-Visible Accessibility Standard */
:focus-visible {
  outline: 2px solid var(--accent-cyan, #0ea5e9);
  outline-offset: 2px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Portal Header & Ecosystem Navigation */
.portal-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.portal-brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.15s ease;
}

.portal-brand:hover .portal-brand-title,
.portal-brand-title:hover {
  color: var(--accent-cyan);
}

.portal-header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #1e293b;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  height: 32px;
  box-sizing: border-box;
  padding: 0 0.75rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
}

.tool-link:hover {
  background-color: #334155;
  color: #fff;
  border-color: var(--accent-cyan);
}

/* Mobile Header Layout (< 768px): 2-Row Clean Layout */
@media (max-width: 768px) {
  .portal-header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .portal-brand {
    justify-content: center;
    text-align: center;
  }

  .portal-brand-title {
    font-size: 0.95rem;
    font-weight: 800;
  }

  .portal-header-tools {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .tool-link {
    width: 100%;
    font-size: 0.75rem;
    height: 30px;
    padding: 0 0.2rem;
    text-align: center;
    justify-content: center;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    min-width: unset;
  }
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-arrow {
  font-size: 0.65rem;
  margin-left: 0.2rem;
  color: var(--text-muted);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  margin-top: 0;
  background-color: #0f172a;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
  min-width: 260px;
  z-index: 200;
  padding: 0.4rem;
}

/* Invisible hover bridge so mouse cursor never loses hover focus when transitioning */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.1s ease;
}

.dropdown-item:hover {
  background-color: #1e293b;
}

.dropdown-item.active {
  background-color: rgba(14, 165, 233, 0.12);
  border-left: 2px solid var(--accent-cyan);
}

.item-title {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.item-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Page Title Banner */
.page-title-banner {
  background-color: #0b1120;
  border-bottom: 1px solid var(--card-border);
  padding: 1.5rem 0 1.25rem;
}

.title-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.version-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background-color: #064e3b;
  border: 1px solid #059669;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.page-title-banner h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.page-title-banner .subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 900px;
}

/* Hero Banner */
.hero-banner {
  background: #0f172a;
  border-bottom: 1px solid var(--card-border);
  padding: 1.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
}

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

.hero-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #334155;
  background: #0b0f19;
}
.hero-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.photo-caption {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  background: #090d16;
  border-top: 1px solid #1e293b;
}

.hero-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.hero-text p {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.hero-subtext {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
}

/* Main Grid Layout */
.main-content {
  padding: 2rem 0;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

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

/* Card Structures */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.section-card {
  margin-bottom: 1.25rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

.step-num {
  background: var(--accent-blue);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.card-title h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Dropzone */
.dropzone {
  border: 2px dashed #374151;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  background-color: #0d1322;
  position: relative;
  transition: all 0.2s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-cyan);
  background-color: #111e38;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-upload {
  stroke: var(--accent-cyan);
  flex-shrink: 0;
}

.dropzone-body strong {
  display: block;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.dropzone-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.15rem;
}

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.field-badge {
  font-weight: 700;
  color: var(--accent-cyan);
  background: #111e38;
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.slider {
  width: 100%;
  height: 6px;
  background: #374151;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
}

.field-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.checkbox-card {
  background: #162032;
  border: 1px solid #1e293b;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.custom-checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  cursor: pointer;
}

.checkbox-text strong {
  display: block;
  font-size: 0.85rem;
  color: #f3f4f6;
}

.checkbox-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.group-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.4rem;
}

/* Checkbox Grid Tiles */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

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

.checkbox-tile {
  background: #162032;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkbox-tile:hover {
  background: #1e293b;
  border-color: #374151;
}

.tile-content strong {
  display: block;
  font-size: 0.78rem;
  color: #f3f4f6;
}

.tile-content small {
  display: block;
  font-size: 0.68rem;
  color: var(--accent-cyan);
}

/* Chip Buttons */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-btn {
  background: #1f2937;
  color: #cbd5e1;
  border: 1px solid #374151;
  padding: 0.3rem 0.65rem;
  border-radius: 16px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: #374151;
  color: #fff;
}

.chip-btn.selected {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  font-weight: 600;
}
.chip-btn.benchmark {
  background: #1e1b4b;
  color: #c7d2fe;
  border-color: #4338ca;
  font-weight: 600;
}

.chip-btn.benchmark:hover {
  background: #312e81;
  color: #fff;
}

.chip-btn.benchmark.selected {
  background: #4f46e5;
  border-color: #6366f1;
  color: #fff;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.group-hint {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-style: italic;
}
.board-notice-box {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: #0f172a;
  border-left: 3px solid var(--accent-cyan);
  border-radius: 4px;
}

.board-notice-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.board-notice-box p {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

/* Domain Grid */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

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

.domain-item-card {
  background: #162032;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
}

.domain-item-card:hover {
  background: #1e293b;
  border-color: #374151;
}

.domain-item-card.selected {
  background: #172554;
  border-color: #3b82f6;
}

.domain-item-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.domain-tier-tag {
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: #1f2937;
  color: var(--text-muted);
}

.domain-item-card.selected .domain-tier-tag {
  background: #1e3a8a;
  color: #93c5fd;
}
/* Track Selection Hub */
.track-selector-card {
  margin-bottom: 1.25rem;
}

.track-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.track-category-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.track-group-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-left: 0.2rem;
}

.track-tabs {
  display: grid;
  gap: 0.65rem;
}

.track-tabs.single-tab {
  grid-template-columns: 1fr;
}

.track-tabs.triple-tabs {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .track-tabs.triple-tabs {
    grid-template-columns: 1fr;
  }
}

.benchmark-gate-box {
  background: #0f172a;
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.25rem;
}

.benchmark-gate-box h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.benchmark-gate-box p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.track-tab {
  background: #0d1322;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: 0.85rem 0.75rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s ease;
  color: #e5e7eb;
}

.track-tab:hover {
  background: #1e293b;
  border-color: #475569;
}

.track-tab.active {
  background: #0f172a;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.track-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #1e293b;
  color: var(--text-muted);
}

.track-tab.active .track-pill {
  background: var(--accent-blue);
  color: #fff;
}

.track-tab strong {
  font-size: 0.88rem;
  color: #fff;
}

.track-tab small {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Track Panels (Tab switching) */
.track-panel {
  display: none;
}

.track-panel.active {
  display: block;
}

/* Verification Checklist (Track A) */
.verification-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.verification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #0d1322;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.verification-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #090d16;
  border-color: #1a2234;
}

.verification-item.disabled:hover {
  background: #090d16;
  border-color: #1a2234;
}

.verification-item.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.verification-item.disabled .verification-text strong {
  color: #64748b;
}

.verification-item:hover {
  background: #162032;
  border-color: #374151;
}

.verification-item input[type="checkbox"] {
  margin-top: 0.2rem;
  cursor: pointer;
}

.verification-text strong {
  display: block;
  font-size: 0.82rem;
  color: #f3f4f6;
}

.verification-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Track C Range Exam Card */
.range-exam-card {
  background: linear-gradient(135deg, #064e3b 0%, #062d22 100%);
  border: 1px solid #10b981;
  border-radius: 8px;
  padding: 1rem;
}

.range-badge-result {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}

.range-info-box {
  background: #0d1322;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.85rem;
  margin-top: 1.25rem;
}

.range-info-box h4 {
  font-size: 0.82rem;
  color: #93c5fd;
  margin-bottom: 0.35rem;
}

.range-info-box p {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Right Column: Dashboard Card */
.dashboard-card {
  position: sticky;
  top: 1.5rem;
  background: #111827;
  border: 1px solid #374151;
}

/* Milestone Banner & Stepper */
.milestone-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.milestone-badge {
  display: inline-block;
  background-color: var(--accent-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.milestone-badge.gate-locked {
  background-color: #d97706;
  color: #fff;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.5);
}

.milestone-next.gate-locked {
  color: #fde047;
}

.milestone-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.milestone-next {
  font-size: 0.92rem;
  color: var(--accent-cyan);
  font-weight: 500;
  line-height: 1.4;
}

.milestone-stepper {
  position: relative;
  margin-top: 1.25rem;
  padding: 1.25rem 2.8rem 1rem 2.8rem;
  background: #0d1322;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.stepper-bar-wrap {
  position: relative;
  height: 52px;
}

.stepper-track-bg {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 6px;
  background: #1f2937;
  border-radius: 3px;
  z-index: 1;
}

.stepper-track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), #3b82f6);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper-steps {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 2;
}

.step-item {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.45;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.step-item.completed {
  opacity: 0.9;
  color: var(--accent-cyan);
}

.step-item.active {
  opacity: 1;
  color: #fff;
  font-weight: 700;
  transform: translateX(-50%) scale(1.08);
}

.step-item .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #475569;
  transition: all 0.25s ease;
}

.step-item.completed .dot {
  background: var(--accent-cyan);
  border-color: #67e8f9;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.step-item.active .dot {
  background: #3b82f6;
  border-color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.9);
}

.step-item .step-lbl {
  font-size: 0.72rem;
  font-weight: 600;
}

/* Hours Audit Box */
.hours-audit-box {
  background: #0d1322;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.audit-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.audit-row.pla-capped {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.audit-row.pla-capped span {
  color: #fcd34d;
  font-weight: 600;
}

.audit-row.pla-capped strong {
  color: #fbbf24;
  font-weight: 700;
}

.pla-cap-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.76rem;
  color: #fcd34d;
  line-height: 1.4;
}

.total-audit-row {
  border-top: 1px solid #1f2937;
  padding-top: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--accent-cyan);
}

.meter-bar {
  background: #1f2937;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin: 0.6rem 0 0.2rem 0;
}

.meter-fill {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  height: 100%;
  transition: width 0.3s ease;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Endorsements Section */
.endorsements-section {
  margin-bottom: 1rem;
}

.endorsements-section h4, .authorities-section h4, .specs-nav-section h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.45rem;
}

.endorsements-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.endorsement-card {
  background: #162032;
  border: 1px solid #1f2937;
  border-radius: 5px;
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
}

.endorsement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.badge-primary {
  background: #047857;
  color: #d1fae5;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.65rem;
}

.badge-secondary {
  background: #374151;
  color: #d1d5db;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.65rem;
}

.total-comp-box {
  background: #064e3b;
  border: 1px solid #059669;
  border-radius: 5px;
  padding: 0.5rem 0.7rem;
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #d1fae5;
}

/* Authorities Section */
.authorities-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid #6366f1;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.authorities-section h4 {
  color: #a5b4fc;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.authorities-list {
  font-size: 0.82rem;
  padding-left: 1.25rem;
  color: #e0e7ff;
  line-height: 1.6;
}

.authorities-list li {
  margin-bottom: 0.35rem;
}

/* Path to Next Milestone Section */
.advancement-section {
  background: linear-gradient(135deg, #172554 0%, #0f172a 100%);
  border: 1px solid #3b82f6;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.advancement-section h4 {
  color: #93c5fd;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.advancement-list {
  font-size: 0.82rem;
  padding-left: 1.25rem;
  color: #dbeafe;
  line-height: 1.55;
}

.advancement-list li {
  margin-bottom: 0.35rem;
}

.advancement-list li strong {
  color: #fff;
}

/* Day 1 Submission Section */
.submission-section {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  border: 1px solid #059669;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.submission-section h4 {
  color: #6ee7b7;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.submission-list {
  font-size: 0.8rem;
  padding-left: 1.25rem;
  color: #d1fae5;
  line-height: 1.55;
}

.submission-list li {
  margin-bottom: 0.35rem;
}

/* Specs Nav Section */
.specs-nav-section {
  background: #111e38;
  border: 1px solid #1e3a8a;
  border-radius: 5px;
  padding: 0.65rem;
  margin-bottom: 1rem;
}

.specs-nav-section h4 {
  color: #93c5fd;
}

.spec-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spec-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  background: #0f172a;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  text-decoration: none;
  transition: all 0.15s ease;
}

.spec-link-item:hover {
  background: #1e293b;
  border-color: var(--accent-cyan);
  color: #fff;
}

.spec-link-tag {
  color: var(--accent-cyan);
  font-size: 0.68rem;
  font-weight: 600;
}

/* Actions */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn {
  padding: 0.5rem 0.9rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.4);
  flex: 1;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
  border-color: #60a5fa;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid #374151;
}

.btn-outline:hover {
  background: #1f2937;
  border-color: #4b5563;
}

/* Consolidated Governance & Privacy Box */
.governance-notice-box {
  background: #090d16;
  border: 1px solid #1e293b;
  border-left: 3px solid var(--accent-cyan);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}

.governance-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.governance-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  background: #111e38;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.governance-header h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}

.governance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0;
}

.governance-list li {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
  position: relative;
  padding-left: 0.9rem;
}

.governance-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.governance-list li strong {
  color: #cbd5e1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-footer p {
  margin-bottom: 0.3rem;
}

.site-footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-btn {
  background: #1f2937;
  color: var(--text-muted);
  border: 1px solid #374151;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: #374151;
  color: #fff;
}

.chip-btn.selected {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

/* Mobile & Tablet Responsiveness Enhancements */
@media (max-width: 960px) {
  .milestone-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 8px 8px;
    border-top: none;
    border-color: var(--accent-blue);
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  }

  .milestone-banner h2 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
  }

  .milestone-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.3rem;
  }

  .milestone-next {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .dashboard-card {
    position: static;
  }

  .milestone-stepper {
    padding: 1rem 1.25rem 0.75rem 1.25rem;
  }

  .stepper-steps .step-lbl {
    font-size: 0.62rem;
  }
}

@media (max-width: 600px) {
  .milestone-banner {
    padding: 0.6rem 0.75rem;
  }

  .milestone-banner h2 {
    font-size: 1.05rem;
  }

  .milestone-stepper {
    padding: 0.85rem 0.75rem 0.65rem 0.75rem;
  }

  .stepper-steps .step-lbl {
    font-size: 0.58rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
  }
}


/* Interactive Hover Glossary Tooltips */
.glossary-term {
  border-bottom: 1px dotted var(--accent-cyan);
  cursor: help;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}

.glossary-term:hover {
  color: var(--accent-cyan);
  background-color: rgba(14, 165, 233, 0.12);
  border-radius: 2px;
}

.glossary-tooltip-card {
  position: absolute;
  z-index: 2000;
  background-color: #0f172a;
  border: 1px solid #38bdf8;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.75), 0 8px 10px -6px rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  width: 300px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #e2e8f0;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.glossary-tooltip-card.active {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.35rem;
}

.tooltip-title {
  font-weight: 700;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.tooltip-category {
  font-size: 0.62rem;
  text-transform: uppercase;
  background-color: #1e293b;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tooltip-body {
  margin-bottom: 0.4rem;
  color: #cbd5e1;
}

.tooltip-citation {
  font-size: 0.72rem;
  color: var(--accent-green);
  border-top: 1px solid #1e293b;
  padding-top: 0.3rem;
  font-family: var(--font-mono);
}

/* Overview / How It Works Card */
.estimator-guide-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-blue);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.estimator-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.estimator-guide-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.estimator-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (max-width: 800px) {
  .estimator-guide-grid {
    grid-template-columns: 1fr;
  }
}

.guide-step-box {
  background: #0d1322;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem;
}

.guide-step-box h4 {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-step-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

