/* ==========================================================================
   Alimul Fazal Nabil — Engineering Portfolio Archive Stylesheet
   Companion stylesheet for portfolio.html
   ========================================================================== */

/* 1. Archive Hero & Header Extensions */
.archive-hero {
  padding: 120px 0 40px;
  position: relative;
}

.back-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  margin-bottom: 24px;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.back-nav:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--cyan);
  transform: translateX(-2px);
}

.archive-title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.archive-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 0 36px;
}

/* Stats Ribbon */
.archive-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.archive-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-stat-number {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.archive-stat-label {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* 2. Search & Filter Bar */
.archive-controls {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: var(--bg);
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 36px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.search-bar-wrap {
  position: relative;
  margin-bottom: 18px;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}

.clear-search-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

/* Filter Groups */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.archive-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.archive-filter-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--line-strong);
}

.archive-filter-btn.active {
  background: var(--blue);
  color: #070913;
  font-weight: 600;
  border-color: var(--blue);
  box-shadow: 0 0 16px var(--blue-glow);
}

.filter-badge-count {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 11px;
}

.archive-filter-btn.active .filter-badge-count {
  background: rgba(0, 0, 0, 0.25);
  color: #070913;
}

/* Secondary Status Filters */
.status-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-subtle);
}

.status-filter-label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  margin-right: 4px;
}

.status-pill-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--line-faint);
  color: var(--text-subtle);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.status-pill-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.status-pill-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}

/* 3. Results Bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--text);
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-select {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.reset-all-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reset-all-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-style: solid;
}

/* 4. Project Archive Grid & Cards */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

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

.archive-domain-badge {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}

/* Status Badges */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-academic,
.badge-research {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.badge-academic .status-dot-sm,
.badge-research .status-dot-sm {
  background: #818cf8;
  box-shadow: 0 0 6px rgba(129, 140, 248, 0.6);
}

.badge-prototype {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.badge-prototype .status-dot-sm {
  background: #22d3ee;
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.6);
}

.badge-concept,
.badge-simulation,
.badge-in-development {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.badge-concept .status-dot-sm,
.badge-simulation .status-dot-sm,
.badge-in-development .status-dot-sm {
  background: #c084fc;
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.6);
}

.badge-learning {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.badge-learning .status-dot-sm {
  background: #94a3b8;
}

.badge-collection {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-collection .status-dot-sm {
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

.badge-deployment,
.badge-deployed,
.badge-production {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-deployment .status-dot-sm,
.badge-deployed .status-dot-sm,
.badge-production .status-dot-sm {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

.badge-private-repo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-full);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Card Body Content */
.archive-card-title {
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--text);
}

.archive-card-period {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.archive-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.archive-card-contribution {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  border-left: 2px solid var(--blue);
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
}

.archive-card-contribution strong {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

/* Tech Stack Chips */
.archive-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tech-chip {
  padding: 3px 8px;
  background: var(--surface);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-sm);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* Evidence Footer Note */
.archive-evidence-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-subtle);
  padding-top: 14px;
  margin-bottom: 16px;
  border-top: 1px solid var(--line-faint);
}

.evidence-icon {
  color: var(--green);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Card Actions */
.archive-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.card-link-primary {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--blue);
}

.card-link-primary:hover {
  background: var(--blue);
  color: #070913;
  border-color: var(--blue);
}

.card-link-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.card-link-secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--line-strong);
}

.card-link-paper {
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--violet);
}

.card-link-paper:hover {
  background: var(--violet);
  color: #070913;
  border-color: var(--violet);
}

/* 5. Empty State */
.archive-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text-subtle);
}

.empty-state-title {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 20px;
}

/* Light Theme Adjustments */
html[data-theme="light"] .archive-stats {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .archive-card {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .archive-card:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .archive-card-contribution {
  background: #f1f5f9;
}

html[data-theme="light"] .archive-filter-btn.active {
  color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .archive-hero {
    padding: 100px 0 30px;
  }
  .archive-controls {
    top: 64px;
  }
  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .archive-hero {
    padding: 90px 0 24px;
  }
  .archive-title {
    font-size: 28px;
  }
  .archive-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .archive-card {
    padding: 18px;
  }
  .results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .results-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .archive-card,
  .archive-filter-btn,
  .back-nav,
  .card-link-btn {
    transition: none !important;
  }
  .archive-card:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   6. CAREER & TECHNOLOGY KNOWLEDGE GRAPH STYLES
   ========================================================================== */

/* View Switcher */
.view-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  gap: 2px;
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-switch-btn:hover {
  color: var(--text);
}

.view-switch-btn.active {
  background: var(--surface);
  color: var(--cyan);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Graph View Container */
.archive-graph-view {
  margin: 20px 0 60px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.graph-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(7, 9, 19, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.graph-title-group h3 {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.graph-title-group p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Graph Filters & Toolbar */
.graph-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.graph-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.graph-filter-btn {
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.graph-filter-btn:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.graph-filter-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 600;
}

.graph-search-wrap {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}

.graph-search-input {
  padding: 5px 12px 5px 30px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  width: 180px;
  transition: all 0.2s ease;
}

.graph-search-input:focus {
  outline: none;
  border-color: var(--cyan);
  width: 220px;
}

.graph-search-icon {
  position: absolute;
  left: 9px;
  width: 14px;
  height: 14px;
  color: var(--text-subtle);
  pointer-events: none;
}

.graph-actions-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.graph-action-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.graph-action-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--line-strong);
}

/* SVG Canvas */
.career-graph-svg {
  display: block;
  width: 100%;
  height: 620px;
  background: radial-gradient(circle at center, rgba(14, 18, 34, 0.4) 0%, #070913 100%);
  cursor: grab;
  user-select: none;
}

.career-graph-svg:active {
  cursor: grabbing;
}

/* Edge & Node SVG Elements */
.graph-edge {
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
}

.graph-edge.edge-type-domain {
  stroke-width: 1.8;
}

.graph-edge.edge-type-role {
  stroke-dasharray: 4 2;
}

.graph-edge.edge-highlight {
  stroke: var(--cyan) !important;
  stroke-width: 2.5 !important;
  opacity: 1 !important;
}

.graph-edge.edge-dimmed {
  opacity: 0.08 !important;
}

.graph-node-group {
  cursor: pointer;
  outline: none;
}

.graph-node-group:focus-visible .node-halo {
  opacity: 0.8 !important;
  stroke-width: 3 !important;
}

.node-halo {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.graph-node-group:hover .node-halo,
.graph-node-group.node-highlight .node-halo {
  opacity: 0.6;
}

.node-circle {
  transition: transform 0.2s ease, opacity 0.2s ease, stroke-width 0.2s ease;
}

.graph-node-group.node-dimmed {
  opacity: 0.15;
}

.graph-node-group.node-highlight .node-circle {
  stroke-width: 3 !important;
  filter: drop-shadow(0 0 8px currentColor);
}

.graph-label {
  font-family: "DM Mono", monospace;
  font-size: 10.5px;
  fill: var(--text-muted);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.graph-label.label-cat-domain {
  font-size: 12px;
  font-weight: 600;
  fill: var(--text);
}

.graph-label.label-cat-role {
  font-size: 11px;
  font-weight: 600;
  fill: #f43f5e;
}

.graph-label.label-highlight {
  fill: var(--text) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.graph-label.label-dimmed {
  opacity: 0.08 !important;
}

/* Graph Node Inspector Drawer */
.graph-inspector {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 380px;
  max-width: calc(100% - 40px);
  max-height: 480px;
  overflow-y: auto;
  background: rgba(14, 18, 34, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  z-index: 10;
  animation: inspectorSlideUp 0.25s ease-out;
}

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

.inspector-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
}

.inspector-close-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.inspector-kicker {
  font-family: "DM Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.inspector-title {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  padding-right: 24px;
  line-height: 1.35;
}

.inspector-period {
  font-family: "DM Mono", monospace;
  font-size: 11.5px;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

.inspector-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 16px;
}

.inspector-chips-label {
  font-family: "DM Mono", monospace;
  font-size: 10.5px;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.inspector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.inspector-chip {
  padding: 4px 10px;
  border-radius: 12px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.inspector-chip:hover {
  background: var(--cyan);
  color: #070913;
  border-color: var(--cyan);
}

.inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Accessible Text Hierarchy View */
.graph-accessible-tree {
  padding: 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.graph-accessible-tree h3 {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.graph-accessible-tree p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.accessible-domain-group {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.accessible-domain-group summary {
  padding: 12px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}

.accessible-domain-group summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accessible-domain-group ul {
  padding: 12px 20px 16px 36px;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.accessible-domain-group li {
  margin-bottom: 8px;
}

.accessible-domain-group a {
  color: var(--cyan);
  text-decoration: underline;
}

/* Light Theme Overrides for Graph */
html[data-theme="light"] .archive-graph-view {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .graph-header-bar {
  background: rgba(248, 250, 252, 0.9);
  border-color: #e2e8f0;
}

html[data-theme="light"] .career-graph-svg {
  background: radial-gradient(circle at center, #f1f5f9 0%, #e2e8f0 100%);
}

html[data-theme="light"] .graph-edge {
  stroke: rgba(100, 116, 139, 0.25);
}

html[data-theme="light"] .node-circle {
  fill: #ffffff;
}

html[data-theme="light"] .graph-inspector {
  background: rgba(255, 255, 255, 0.96);
  border-color: #cbd5e1;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .inspector-close-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Mobile & Tablet Adjustments for Graph */
@media (max-width: 900px) {
  .career-graph-svg {
    height: 520px;
  }
  .graph-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .graph-search-wrap {
    margin-left: 0;
    width: 100%;
  }
  .graph-search-input {
    width: 100% !important;
  }
  .graph-inspector {
    width: calc(100% - 24px);
    right: 12px;
    bottom: 12px;
    max-height: 380px;
  }
}

@media (max-width: 640px) {
  .career-graph-svg {
    height: 440px;
  }
  .graph-header-bar {
    padding: 14px 16px;
  }
  .graph-toolbar {
    padding: 10px 16px;
  }
}
