/* ==========================================================================
   ИССЛЕДОВАТЕЛЬСКИЙ ЦЕНТР СМОЛЬНИКОВА - СТИЛЕВАЯ СИСТЕМА
   Бренд-бук v1.0 (30.10.2026):
     Основной зелёный: #106F55
     Тёмный фон / чернила: #14130F
     Светлая бумага: #EFEBE0
     Мята на тёмном: #3ECF9A
     Белый: #FFFFFF
   Шрифты: Manrope (заголовки), Inter (текст), JetBrains Mono (код)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  /* Brand Palette */
  --brand-green: #106F55;
  --brand-green-hover: #0d5944;
  --brand-green-subtle: rgba(16, 111, 85, 0.14);
  --brand-green-glow: rgba(16, 111, 85, 0.35);

  --brand-ink: #14130F;
  --brand-ink-elevated: #1a1914;
  --brand-ink-card: #201e19;
  --brand-ink-card-hover: #26241e;

  --brand-paper: #EFEBE0;
  --brand-paper-subtle: #f7f5ed;
  --brand-mint: #3ECF9A;
  --brand-mint-subtle: rgba(62, 207, 154, 0.15);
  --brand-white: #FFFFFF;

  /* Default Dark Theme (Academic Deep Night) */
  --bg-body: #14130F;
  --bg-surface: #1a1914;
  --bg-surface-elevated: #201e19;
  --bg-card: rgba(26, 25, 20, 0.88);
  --bg-card-hover: rgba(36, 34, 27, 0.95);
  --bg-header: rgba(20, 19, 15, 0.92);

  --text-main: #f5f4f0;
  --text-muted: #aba79d;
  --text-faint: #736f66;
  --text-inverse: #14130F;

  --border-subtle: rgba(239, 235, 224, 0.08);
  --border-medium: rgba(239, 235, 224, 0.16);
  --border-strong: rgba(239, 235, 224, 0.28);
  --border-brand: rgba(16, 111, 85, 0.55);
  --border-mint: rgba(62, 207, 154, 0.45);

  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 6px 20px rgba(16, 111, 85, 0.25);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1220px;
  --header-height: 76px;
}

/* Light Theme support using official Paper colors */
[data-theme="light"] {
  --bg-body: #FAF8F2;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #EFEBE0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F6EF;
  --bg-header: rgba(250, 248, 242, 0.94);

  --text-main: #14130F;
  --text-muted: #5e594d;
  --text-faint: #8a8373;
  --text-inverse: #FFFFFF;

  --border-subtle: rgba(20, 19, 15, 0.08);
  --border-medium: rgba(20, 19, 15, 0.16);
  --border-strong: rgba(20, 19, 15, 0.28);
  --border-brand: rgba(16, 111, 85, 0.6);
  --border-mint: rgba(16, 111, 85, 0.4);

  --shadow-sm: 0 1px 3px rgba(20, 19, 15, 0.06);
  --shadow-md: 0 4px 14px rgba(20, 19, 15, 0.08);
  --shadow-lg: 0 12px 30px rgba(20, 19, 15, 0.1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 1.025rem;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand-mint);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

[data-theme="light"] a {
  color: var(--brand-green);
}

a:hover {
  text-decoration: none;
  opacity: 0.85;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 3.25rem;
  max-width: 800px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-mint);
  margin-bottom: 0.75rem;
}

[data-theme="light"] .section-tag {
  color: var(--brand-green);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--brand-green);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 111, 85, 0.35);
  opacity: 1;
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main) !important;
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main) !important;
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand-mint);
  color: var(--brand-mint) !important;
  background-color: var(--brand-green-subtle);
  opacity: 1;
}

[data-theme="light"] .btn-outline:hover {
  border-color: var(--brand-green);
  color: var(--brand-green) !important;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 0.95rem;
  min-height: 36px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.9rem 1.85rem;
  min-height: 50px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.badge-green {
  background: var(--brand-green-subtle);
  color: var(--brand-mint);
  border: 1px solid var(--border-brand);
}

[data-theme="light"] .badge-green {
  color: var(--brand-green);
}

.badge-neutral {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.badge-mint {
  background: var(--brand-mint-subtle);
  color: var(--brand-mint);
  border: 1px solid var(--border-mint);
}

[data-theme="light"] .badge-mint {
  color: var(--brand-green);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 250px;
  display: block;
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 34px;
    max-width: 200px;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
  opacity: 1;
}

.nav-link.active {
  color: var(--brand-mint);
  background-color: var(--brand-green-subtle);
}

[data-theme="light"] .nav-link.active {
  color: var(--brand-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background-color: var(--bg-surface-elevated);
}

/* Burger Button */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .burger-btn {
    display: flex;
  }
}

/* Mobile Slide-Out Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-body);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--brand-green-subtle);
  border-color: var(--border-brand);
  color: var(--brand-mint);
  opacity: 1;
}

[data-theme="light"] .mobile-nav-link:hover, [data-theme="light"] .mobile-nav-link.active {
  color: var(--brand-green);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(16, 111, 85, 0.18) 0%, transparent 65%);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0 2rem;
  }
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 980px;
}

.hero-title .highlight {
  color: var(--brand-mint);
}

[data-theme="light"] .hero-title .highlight {
  color: var(--brand-green);
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
  }
}

/* Hero Stats Bar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-item:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-mint);
  line-height: 1;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .stat-number {
  color: var(--brand-green);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.4;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 680px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-accent-border {
  border-left: 3px solid var(--brand-green);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESEARCH PUBLICATION PAPERS (Scientific style)
   ========================================================================== */
.paper-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin-bottom: 1.75rem;
  transition: all 0.2s ease;
  position: relative;
}

@media (max-width: 640px) {
  .paper-card {
    padding: 1.5rem 1.25rem;
  }
}

.paper-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.paper-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 0.85rem;
}

.paper-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.paper-title a {
  color: var(--text-main);
}

.paper-title a:hover {
  color: var(--brand-mint);
}

[data-theme="light"] .paper-title a:hover {
  color: var(--brand-green);
}

.paper-abstract {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.paper-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.paper-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Article Page Reading Layout */
.article-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
}

.article-body {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body h2 {
  font-size: 1.85rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 3px solid var(--brand-green);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--brand-green-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-main);
}

/* Responsive Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background-color: var(--bg-surface-elevated);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

.data-table tr:hover td {
  background-color: var(--brand-green-subtle);
}

/* Code Blocks */
.code-block-wrapper {
  position: relative;
  margin: 1.75rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #0d0c0a;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #181713;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.code-block {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  color: #e6e4df;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-subtle);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  font-size: 0.825rem;
  color: var(--text-faint);
  margin-top: 0.35rem;
}

/* ==========================================================================
   MANIFESTO STYLING
   ========================================================================== */
.manifesto-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .manifesto-box {
    padding: 1.75rem 1.25rem;
  }
}

.manifesto-lead {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 2rem;
  border-left: 4px solid var(--brand-green);
  padding-left: 1.5rem;
}

.manifesto-principle {
  margin-bottom: 2.5rem;
}

.manifesto-principle-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brand-mint);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

[data-theme="light"] .manifesto-principle-number {
  color: var(--brand-green);
}

.manifesto-principle-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   TEAM & LAB STYLES
   ========================================================================== */
.team-member-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-member-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-brand);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 2px solid var(--brand-green);
}

.team-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.team-role {
  font-size: 0.9rem;
  color: var(--brand-mint);
  font-weight: 600;
  margin-bottom: 1rem;
}

[data-theme="light"] .team-role {
  color: var(--brand-green);
}

.team-bio {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 360px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.925rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--brand-mint);
  opacity: 1;
}

[data-theme="light"] .footer-link:hover {
  color: var(--brand-green);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ACADEMIC ARTICLE SPECIFIC STYLES
   ========================================================================== */
.paper-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}

.paper-authors {
  margin: 1.25rem 0 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.paper-abstract-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--brand-green);
  border-radius: var(--radius-sm);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}

.paper-abstract-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-mint);
  margin-bottom: 0.75rem;
}

[data-theme="light"] .paper-abstract-title {
  color: var(--brand-green);
}

.paper-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.paper-body h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.paper-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.paper-body p {
  margin-bottom: 1.35rem;
  color: var(--text-muted);
}

.paper-body ul, .paper-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.paper-body li {
  margin-bottom: 0.5rem;
}

.architecture-diagram {
  background: #0d0c0a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.35;
  color: #3ECF9A;
  white-space: pre;
}

.bibtex-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin-top: 3.5rem;
}

.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bibtex-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.bibtex-code {
  background: #0d0c0a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.5;
  color: #EFEBE0;
  white-space: pre;
}

/* Utility for mobile responsiveness */
@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}
