/* Shared Industry Pages Stylesheet */
:root {
  --bg: #0f1a1b;
  --surface: #182425;
  --surface-2: #1d2c2e;
  --text: #e8e6e2;
  --muted: #95a4a6;
  --border: rgba(255,255,255,.1);
  --primary: #7ecfda;
  --primary-2: #016b72;
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #0b1415;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.container { width: min(var(--max), 92%); margin-inline: auto; }

/* Index-style Header for detail pages */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 246, 242, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav {
  background: rgba(17, 18, 16, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #5c5d5e;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #1f2a2b;
}

[data-theme="dark"] .nav-links a {
  color: #b8b8b8;
}

[data-theme="dark"] .nav-links a:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-theme {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c5d5e;
}

[data-theme="dark"] .btn-theme {
  color: #b8b8b8;
}

.btn-nav {
  padding: 10px 18px;
  border-radius: 10px;
  background: #016b72;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-nav:hover {
  background: #01555b;
}

.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #5c5d5e;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #f7f6f2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px;
  z-index: 99;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  color: #5c5d5e;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

[data-theme="dark"] .nav-mobile {
  background: #141515;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .nav-mobile a {
  color: #d2d2d2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.with-index-header .hero {
  padding-top: 116px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* Topbar Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 18, 19, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 1rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-links a {
  font-size: .95rem;
  color: var(--muted);
  transition: color 0.2s;
}

.topbar-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--primary);
  transition: background 0.2s;
}

.btn:hover {
  background: rgba(255, 255, 255, .06);
}

/* Hero Section */
.hero {
  padding: 84px 0 56px;
  background: linear-gradient(180deg, #0f1a1b 0%, #0c1516 100%);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
}

h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.05;
  font-weight: 400;
  margin: 14px 0;
}

.lead {
  color: var(--muted);
  max-width: 74ch;
  font-size: 1.06rem;
  line-height: 1.75;
}

/* KPI Grid */
.kpis {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.kpi b {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.kpi-label {
  font-size: .9rem;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #10191a;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 14px;
}

.section p.intro {
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.7;
  margin: 0 0 24px;
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: .95rem;
}

.badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badges span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--primary);
  font-size: .77rem;
  font-weight: 500;
}

/* FAQ */
.faq {
  max-width: 900px;
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

.faq summary:hover {
  color: var(--primary);
}

.faq p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 10px;
}

/* CTA Section */
.cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 20px;
}

.cta h3 {
  margin: 0 0 8px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.cta p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Footer */
.footer {
  color: var(--muted);
  text-align: center;
  padding: 24px 0 40px;
  font-size: .9rem;
}

/* Responsive */
@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .topbar-links { gap: 12px; }
}

@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .topbar-links { width: 100%; }
}