.subpage-hero {
  background: linear-gradient(135deg, var(--lab-blue) 0%, #152E4A 100%);
  color: #fff;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.subpage-hero .container {
  position: relative;
  z-index: 1;
}

.subpage-hero h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.subpage-hero p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 600px;
}

.subpage-body {
  padding: 48px 0 64px;
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar-rail {
  position: sticky;
  top: 70px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px;
}

.sidebar-rail h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lab-blue);
  margin-bottom: 12px;
}

.sidebar-rail ul {
  list-style: none;
}

.sidebar-rail li {
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.sidebar-rail li:last-child {
  border-bottom: none;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--lab-blue);
  margin: 32px 0 14px;
  letter-spacing: -0.02em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
  color: var(--text);
}

.article-content ul {
  margin: 0 0 16px 20px;
  font-size: 15px;
}

.article-content li {
  margin-bottom: 8px;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 28px 0;
}

.stat-band-item {
  background: var(--lab-white);
  padding: 20px;
  text-align: center;
  transition: transform 0.15s;
}

.stat-band-item:hover {
  transform: scale(1.03);
  z-index: 1;
}

.stat-band-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.stat-band-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.callout-box {
  background: var(--lab-blue-light);
  border: 1px solid rgba(30, 58, 95, 0.15);
  padding: 20px 24px;
  border-radius: 3px;
  margin: 24px 0;
}

.callout-box p {
  margin-bottom: 0;
  font-size: 14px;
}

.image-rail {
  float: right;
  margin: 0 0 20px 28px;
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.image-rail img {
  width: 100%;
  max-width: 320px;
  max-height: 240px;
  object-fit: cover;
}

.image-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.image-mosaic img {
  width: 100%;
  max-width: 500px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-rail {
    position: static;
  }

  .image-rail {
    float: none;
    margin: 0 0 20px;
    max-width: 100%;
    overflow: hidden;
  }

  .stat-band {
    grid-template-columns: 1fr;
  }

  .image-mosaic {
    grid-template-columns: 1fr;
    overflow: hidden;
    max-width: 100%;
  }

  .image-mosaic img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
  }
}

@media (max-width: 375px) {
  .subpage-body,
  .image-mosaic,
  .article-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}
