/* IDEI — Shared Stylesheet
   Used by all sub-pages (companies, sectors, people)
   index.html uses its own inline styles (kept separate for landing page)
*/

::selection { background: rgba(245,158,11,0.35); color: #fff; }

:root {
  --black:   #0d1117;
  --black-2: #161b22;
  --black-3: #1c2430;
  --amber:   #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);
  --green:   #239f40;
  --white:   #e8e8e8;
  --red:     #da0000;
  --slate:   #4a6278;
  --mist:    #6b7c8a;
  --text:    #c9d1d9;
  --border:  #1e2a34;
  --border-light: #21303e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin-bottom: 16px; line-height: 1.75; color: #b0bec5; }
p:last-child { margin-bottom: 0; }
strong { color: #e2e8f0; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 56px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: 6px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--amber); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--amber); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 230px;
  padding: 6px 0;
  margin-top: 12px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: none;
  color: var(--text);
  text-decoration: none;
  transition: color 0.1s, background 0.1s;
}
.nav-dropdown-menu a:hover { color: var(--amber); background: var(--black-3); }
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.nav-dropdown-label {
  padding: 6px 20px 2px;
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
}
.nav-cta {
  background: var(--amber) !important;
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  transition: opacity 0.15s !important;
}
.nav-cta:hover { opacity: 0.88; color: #000 !important; }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 56px;
  background: var(--black-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: var(--slate);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--slate); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--amber); text-decoration: none; }
.breadcrumb-sep { color: var(--border-light); }
.breadcrumb-current { color: var(--text); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 56px 56px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.page-header-eyebrow {
  font-family: 'Roboto Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 3px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 14px;
}
.page-header-sub {
  font-size: 16px;
  color: var(--mist);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}
.page-header-tags {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--slate);
  text-transform: uppercase;
}
.tag-amber { border-color: var(--amber); color: var(--amber); }
.tag-green { border-color: var(--green); color: var(--green); }

/* ── QUICK FACTS PANEL ── */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: var(--black-2);
  border-bottom: 1px solid var(--border);
}
.fact-item {
  padding: 20px 28px;
  border-right: 1px solid var(--border);
}
.fact-item:last-child { border-right: none; }
.fact-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 5px;
}
.fact-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.fact-value a { color: var(--amber); text-decoration: none; }
.fact-value a:hover { text-decoration: underline; }

/* ── CONTENT LAYOUT ── */
.content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.content-main {}
.content-sidebar {}

/* ── SECTION LABELS ── */
.section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 3px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── CONTENT SECTIONS ── */
.content-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.content-section h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
  line-height: 1.15;
}
.content-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 10px;
  margin-top: 24px;
}

/* ── DATA TABLE ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 20px 0;
}
.data-table th {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--black-2);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #b0bec5;
  vertical-align: top;
  line-height: 1.5;
}
.data-table td:first-child { color: #e2e8f0; font-weight: 500; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--black-2); }

/* ── METRICS GRID ── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}
.metric-item {
  background: var(--black);
  padding: 24px 20px;
}
.metric-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 5px;
}
.metric-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.4;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  padding: 18px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--black-2);
  transition: background 0.15s;
  list-style: none;
  user-select: none;
}
.faq-q:hover { background: var(--black-3); }
.faq-q::after {
  content: '+';
  color: var(--amber);
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}
details[open] .faq-q::after { content: '−'; }
.faq-a {
  padding: 4px 24px 20px;
  background: var(--black);
  font-size: 14px;
  color: #b0bec5;
  line-height: 1.75;
}
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ── SIDEBAR ── */
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-card-header {
  background: var(--black-2);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-card-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
}
.sidebar-card-body {
  padding: 16px 20px;
  background: var(--black);
}
.sidebar-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-link-list a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}
.sidebar-link-list a:hover { color: var(--amber); }
.sidebar-link-list a::before {
  content: '→';
  color: var(--amber);
  font-size: 11px;
  flex-shrink: 0;
}
.sidebar-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat-label { color: var(--slate); }
.sidebar-stat-value { color: #e2e8f0; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }

/* ── CTA BOX ── */
.cta-box {
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 28px 24px;
  background: var(--amber-dim);
  text-align: center;
  margin-top: 8px;
}
.cta-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.cta-box p {
  font-size: 13px;
  color: var(--mist);
  margin-bottom: 18px;
}
.btn-cta {
  display: inline-block;
  background: var(--amber);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-cta:hover { opacity: 0.88; text-decoration: none; }

/* ── COMPANY CARD (for directories) ── */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 40px 56px;
}
.company-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  background: var(--black-2);
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, background 0.15s;
}
.company-card:hover {
  border-color: var(--amber);
  background: var(--black-3);
  text-decoration: none;
}
.company-card-letter {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--black-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--amber);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.company-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.company-card-sector {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.company-card-desc {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.6;
}
.company-card-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--slate);
  display: flex;
  gap: 16px;
}

/* ── SECTOR CARD (for directories) ── */
.sector-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 40px 56px;
}
.sector-hub-card {
  background: var(--black);
  padding: 32px 28px;
  text-decoration: none;
  display: block;
  transition: background 0.15s;
}
.sector-hub-card:hover { background: var(--black-2); text-decoration: none; }
.sector-hub-icon { font-size: 28px; margin-bottom: 14px; }
.sector-hub-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.sector-hub-desc {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.6;
  margin-bottom: 14px;
}
.sector-hub-stat {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--amber);
}

/* ── PAGE-LEVEL SECTION ── */
.page-section {
  padding: 56px 56px;
  border-bottom: 1px solid var(--border);
}
.page-section-header {
  margin-bottom: 32px;
}
.page-section h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.page-section-intro {
  font-size: 15px;
  color: var(--mist);
  max-width: 600px;
  line-height: 1.75;
  font-weight: 300;
}

/* ── FULL-WIDTH SECTIONS ── */
.full-section {
  padding: 56px;
  border-bottom: 1px solid var(--border);
}

/* ── SIGNAL ROW (sector pages) ── */
.signal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.signal-row {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.signal-row:last-child { border-bottom: none; }
.signal-score {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #000;
  background: var(--amber);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.signal-text { font-size: 13.5px; color: #b0bec5; line-height: 1.65; }
.signal-text strong { color: #e2e8f0; }

/* ── FOOTER ── */
footer {
  padding: 44px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: 5px;
}
.footer-tagline {
  font-size: 11px;
  color: var(--slate);
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--amber); text-decoration: none; }
.footer-copy { font-size: 11px; color: var(--mist); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .breadcrumb { padding: 12px 24px; }
  .page-header { padding: 40px 24px 32px; }
  .content-wrap { grid-template-columns: 1fr; padding: 32px 24px; gap: 40px; }
  .company-grid { padding: 24px; grid-template-columns: 1fr; }
  .sector-hub-grid { grid-template-columns: 1fr 1fr; margin: 24px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .page-section { padding: 40px 24px; }
  .full-section { padding: 40px 24px; }
  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .sector-hub-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
}
