/* regulatory.html page-specific styles - extracted from inline */
/* ── Hero ── */
.regulatory-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1628 100%);
}

/* ── Timeline ── */
.reg-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.reg-timeline-entry {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: flex-start;
  transition: background 0.2s;
}
.reg-timeline-entry:hover {
  background: rgba(255,255,255,0.02);
}
.reg-timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 16px;
  padding-top: 4px;
}
.reg-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.reg-timeline-line {
  width: 2px;
  flex-grow: 1;
  min-height: 20px;
  background: rgba(255,255,255,0.08);
  margin-top: 4px;
}
.reg-timeline-body {
  flex: 1;
  min-width: 0;
}
.reg-timeline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.reg-timeline-date {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}
.reg-timeline-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-fda { background: rgba(59,130,246,0.2); color: #60a5fa; }
.badge-nrc { background: rgba(34,197,94,0.2); color: #4ade80; }
.badge-faa { background: rgba(249,115,22,0.2); color: #fb923c; }
.badge-doe { background: rgba(168,85,247,0.2); color: #c084fc; }
.badge-fedreg { background: rgba(156,163,175,0.2); color: #9ca3af; }
.badge-trial { background: rgba(236,72,153,0.2); color: #f472b6; }
.reg-timeline-agency {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}
.reg-timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 4px;
  line-height: 1.4;
}
.reg-timeline-company {
  color: var(--accent, #f59e0b);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.reg-timeline-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.5;
}
.reg-timeline-more {
  text-align: center;
  padding: 24px 0;
}
.btn-load-more {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 10px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-load-more:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ── FDA Pipeline Tracker ── */
.fda-tracker-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fda-company-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}
.fda-company-card:hover {
  border-color: rgba(59,130,246,0.3);
}
.fda-company-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 6px;
}
.fda-company-count {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.fda-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  position: relative;
}
.fda-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.fda-stage-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  transition: all 0.3s;
}
.fda-stage-circle.active {
  background: rgba(59,130,246,0.25);
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59,130,246,0.3);
}
.fda-stage-circle.completed {
  background: rgba(34,197,94,0.2);
  border-color: #22c55e;
  color: #4ade80;
}
.fda-stage-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}
.fda-stage-label.active {
  color: #60a5fa;
  font-weight: 600;
}
.fda-stage-label.completed {
  color: #4ade80;
}
.fda-pipeline-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  min-width: 20px;
}
.fda-pipeline-connector.active {
  background: linear-gradient(90deg, #22c55e, #3b82f6);
}
.fda-pipeline-connector.completed {
  background: #22c55e;
}
.fda-products-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fda-product-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
}
.fda-product-date {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.fda-product-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fda-product-status {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.fda-status-sese { background: rgba(34,197,94,0.15); color: #4ade80; }
.fda-status-deng { background: rgba(239,68,68,0.15); color: #f87171; }
.fda-status-sesu { background: rgba(245,158,11,0.15); color: #fbbf24; }

/* ── Agency Overview ── */
.agency-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.agency-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.agency-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.agency-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.agency-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.agency-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.agency-card-focus {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.agency-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}
.agency-stat {
  text-align: center;
}
.agency-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.agency-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.agency-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.agency-company-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
}

/* ── Regulatory Risk Heatmap ── */
.reg-risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.risk-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s;
}
.risk-card:hover {
  border-color: rgba(255,255,255,0.15);
}
.risk-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.risk-body {
  flex: 1;
  min-width: 0;
}
.risk-sector-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}
.risk-level-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.risk-high { background: rgba(239,68,68,0.2); color: #f87171; }
.risk-medium { background: rgba(245,158,11,0.2); color: #fbbf24; }
.risk-low { background: rgba(34,197,94,0.2); color: #4ade80; }
.risk-reason {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* ── Federal Register Monitor ── */
.fed-register-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fed-filter-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  appearance: auto;
}
.fed-filter-select option {
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
}
.fed-register-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.fed-register-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px;
  transition: border-color 0.2s;
}
.fed-register-card:hover {
  border-color: rgba(255,255,255,0.15);
}
.fed-reg-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.fed-reg-type-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
}
.type-rule { background: rgba(59,130,246,0.2); color: #60a5fa; }
.type-proposed-rule { background: rgba(245,158,11,0.2); color: #fbbf24; }
.type-notice { background: rgba(156,163,175,0.2); color: #9ca3af; }
.fed-reg-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.fed-reg-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  margin-bottom: 6px;
}
.fed-reg-agency {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.fed-reg-sectors {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.fed-reg-sector-tag {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(168,85,247,0.12);
  color: rgba(168,85,247,0.8);
}

/* ── Clinical Trials ── */
.clinical-trials-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ct-company-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.ct-company-card:hover {
  border-color: rgba(236,72,153,0.25);
}
.ct-company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}
.ct-company-header:hover {
  background: rgba(255,255,255,0.02);
}
.ct-company-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ct-company-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.ct-trial-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.ct-phase-badges {
  display: flex;
  gap: 4px;
}
.ct-phase-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.phase-1 { background: rgba(96,165,250,0.15); color: #60a5fa; }
.phase-2 { background: rgba(168,85,247,0.15); color: #c084fc; }
.phase-3 { background: rgba(34,197,94,0.15); color: #4ade80; }
.phase-na { background: rgba(156,163,175,0.15); color: #9ca3af; }
.ct-expand-icon {
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.ct-company-card.expanded .ct-expand-icon {
  transform: rotate(180deg);
}
.ct-trials-body {
  display: none;
  padding: 0 20px 18px;
}
.ct-company-card.expanded .ct-trials-body {
  display: block;
}
.ct-phase-group {
  margin-bottom: 14px;
}
.ct-phase-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ct-trial-item {
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  margin-bottom: 6px;
}
.ct-trial-title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  margin-bottom: 4px;
}
.ct-trial-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ct-trial-status {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.status-recruiting { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-active { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-completed { background: rgba(156,163,175,0.15); color: #9ca3af; }
.status-not-recruiting { background: rgba(245,158,11,0.15); color: #fbbf24; }
.ct-trial-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}
.ct-trial-nct {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  font-family: monospace;
}
.ct-trial-conditions {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}
.ct-trial-enrollment {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* ── Empty state ── */
.reg-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}

/* ── FAA / NRC Certification Tracker ── */
.faa-grid, .nrc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.cert-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s;
}
.cert-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.cert-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cert-card-header .cert-company-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.94);
}
.cert-card-header .cert-status-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.status-approved { background: rgba(34,197,94,0.18); color: #4ade80; }
.status-review { background: rgba(59,130,246,0.18); color: #60a5fa; }
.status-pending { background: rgba(245,158,11,0.18); color: #fbbf24; }

.cert-card-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  line-height: 1.45;
}

.cert-progress {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.cert-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.cert-progress-fill.faa-fill {
  background: linear-gradient(90deg, #f97316, #f59e0b);
}
.cert-progress-fill.nrc-fill {
  background: linear-gradient(90deg, #22c55e, #10b981);
}

.cert-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cert-progress-label span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.cert-progress-label .cert-progress-pct {
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}

.cert-current-milestone {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border-left: 3px solid #8b5cf6;
}
.cert-current-milestone strong {
  color: rgba(255,255,255,0.9);
}

.cert-milestone-timeline {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
}
.cert-milestone-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(255,255,255,0.08);
}

.cert-milestone {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.45;
}
.cert-milestone::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.1);
  z-index: 1;
}

.cert-milestone.completed::before {
  background: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
}
.cert-milestone.in-progress::before {
  background: #f97316;
  border-color: #f97316;
  box-shadow: 0 0 6px rgba(249,115,22,0.4);
  animation: certPulse 2s ease-in-out infinite;
}
.cert-milestone.pending::before {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

@keyframes certPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(249,115,22,0.4); }
  50% { box-shadow: 0 0 14px rgba(249,115,22,0.7); }
}

.cert-milestone .cert-milestone-icon {
  margin-right: 4px;
}
.cert-milestone .cert-milestone-date {
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  margin-right: 6px;
  font-family: monospace;
}
.cert-milestone .cert-milestone-event {
  color: rgba(255,255,255,0.7);
}
.cert-milestone.completed .cert-milestone-event {
  color: rgba(255,255,255,0.55);
}
.cert-milestone.in-progress .cert-milestone-event {
  color: #fb923c;
  font-weight: 500;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: 6px;
}
.cert-meta .cert-docket {
  font-family: monospace;
  letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .agency-overview-grid {
    grid-template-columns: 1fr;
  }
  .reg-risk-grid {
    grid-template-columns: 1fr;
  }
  .fed-register-grid {
    grid-template-columns: 1fr;
  }
  .faa-grid, .nrc-grid {
    grid-template-columns: 1fr;
  }
  .fda-pipeline {
    flex-wrap: wrap;
    justify-content: center;
  }
  .fda-pipeline-connector {
    min-width: 10px;
  }
  .fda-stage-circle {
    width: 26px;
    height: 26px;
    font-size: 0.6rem;
  }
  .reg-timeline-entry {
    gap: 10px;
  }
  .ct-phase-badges {
    display: none;
  }
}
