@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/material-symbols-rounded.woff2') format('woff2');
}

.research-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: transparent;
  color: #f6f7fb;
  overflow-x: hidden;
}

.article-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 16px 36px;
  position: relative;
  z-index: 1;
}

.article-notice {
  margin: 0 0 9px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e8f9f0;
  font-weight: 600;
}

.article-skin {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.article-ad {
  width: min(100%, 820px);
  margin: 22px auto;
  display: flex;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
}

.article-ad--inline {
  padding: 8px 0;
}

.article-ad--bottom {
  margin-top: 18px;
}

.article-ad .adsbygoogle {
  width: 100%;
  min-height: 280px;
}

.article-html {
  width: 100%;
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
  --primary: #c4b5fd !important;
  --primary-dark: #a78bfa !important;
  --accent: #c4b5fd !important;
  --gray: #bdc7d8 !important;
  --gray-light: #d7deec !important;
  --text-primary: #e2e8f0 !important;
  --text-secondary: #cbd5e1 !important;
}

.article-html a {
  color: #e2e8f0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-html a:hover {
  color: #ffffff;
}

.article-html .meta-tag,
.article-html .comparison-table th,
.article-html .comparison-table thead th {
  color: #c4b5fd !important;
}

.article-html .page-subtitle,
.article-html .principle-card p,
.article-html .stat-label,
.article-html .section-description,
.article-html .section-tag,
.article-html .hero-badge,
.article-html .article-subtitle,
.article-html .author-details p,
.article-html .diagram-title,
.article-html .workflow-title {
  color: #cbd5e1 !important;
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.article-icon {
  margin-right: 6px;
  color: #ffd1dd;
  font-size: 1.15em;
  vertical-align: -0.2em;
}

.article-bottom-links {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.article-bottom-links h3 {
  margin-bottom: 12px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.links-grid a {
  display: block;
  min-height: 48px;
  padding: 14px 14px;
  line-height: 1.35;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e5e7ef;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.links-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 71, 105, 0.5);
}

.research-index-hero {
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 71, 105, 0.35);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.35);
  margin-bottom: 9px;
}

.research-index-hero h1 {
  margin: 4px 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.4px;
}

.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7ef;
  font-weight: 600;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffd1dd;
  font-weight: 700;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.research-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.research-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 71, 105, 0.45);
}

.research-card .badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  letter-spacing: 0.6px;
}

.research-card h3 {
  margin: 0;
}

.research-card p {
  color: #cfd3e0;
}

.research-card .meta {
  color: #9ca3b8;
  font-size: 0.92rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.12s ease, background 0.12s ease;
}

.btn-secondary:hover {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.data-notice {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e8f9f0;
  font-weight: 600;
}

@media (max-width: 780px) {
  .article-shell {
    padding: 41px 14px 32px;
  }

  .research-index-hero {
    padding: 10px;
  }

  .article-ad,
  .article-ad .adsbygoogle {
    min-height: 240px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .research-video-bg {
    display: none;
  }
}
