.hero,
.page-hero {
  background: var(--ck-paper);
  border: 1px solid rgba(23, 52, 95, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 30px;
}

.section-panel,
.article-body,
.quote-block,
.hero-note,
.sidebar-card,
.story-card,
.stat-card,
.feature-card,
.gallery-card,
.visual-card,
.footer-cta {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.page-hero {
  margin-bottom: 0;
}

.button {
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 11px 16px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.topbar-link:hover {
  box-shadow: 0 10px 20px rgba(23, 52, 95, 0.1);
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ck-red);
  color: #fff;
}

.button-secondary {
  background: #fff;
  border: 1px solid var(--ck-line);
  color: var(--ck-blue);
}

.hero .button-row {
  margin-top: 18px;
}

.home-hero-intro,
.page-hero-grid > div:first-child {
  max-width: 720px;
}

.home-gallery-header,
.section-header,
.article-layout,
.page-hero-grid,
.sidebar-column {
  margin: 0;
}

.stats-grid,
.article-grid,
.gallery-grid,
.story-grid,
.page-hero-grid,
.article-layout,
.hero-grid {
  display: grid;
  gap: 22px;
}

.page-hero-grid,
.article-layout,
.hero-grid {
  grid-template-columns: 1fr;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.home-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.gallery-grid.two,
.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-header {
  margin-top: 30px;
}

.visual-card img,
.gallery-card img,
.feature-card img {
  border-radius: 18px;
}

.gallery-card img {
  aspect-ratio: 1 / 1;
  background: #f7fafe;
  object-fit: contain;
  padding: 12px;
  width: 100%;
}

.feature-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.gallery-copy,
.feature-copy {
  padding-top: 12px;
}

.gallery-copy h3,
.feature-copy h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.card-band {
  display: none;
}

.tile-meta {
  margin-bottom: 6px;
}

.feature-card,
.gallery-card {
  text-decoration: none;
}

.stat-card {
  background: #fff;
  border: 1px solid rgba(23, 52, 95, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(23, 52, 95, 0.05);
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px 18px 16px 58px;
  position: relative;
}

.stat-card::before {
  background: #fff3ea;
  border-radius: 999px;
  content: "";
  height: 30px;
  left: 18px;
  position: absolute;
  top: 18px;
  width: 30px;
}

.stat-card:nth-child(2)::before {
  background: #eaf3ff;
}

.stat-card:nth-child(3)::before {
  background: #e9fbf2;
}

.stat-card:nth-child(4)::before {
  background: #f4efff;
}

.stat-card strong {
  color: #535353;
  display: block;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.visual-header span,
.story-card p,
.feature-card p,
.gallery-card p,
.sidebar-card p,
.stat-card span,
.quote-block,
.hero-note {
  color: var(--ck-muted);
}

.stat-card span {
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0;
}

.quote-block h3,
.hero-note h3 {
  color: var(--ck-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  margin-bottom: 8px;
}

.compact-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.compact-list li {
  border-top: 1px solid rgba(23, 52, 95, 0.08);
  padding-top: 8px;
}

.compact-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.quote-block p:last-child,
.hero-note p:last-child,
.sidebar-card p:last-child,
.gallery-copy p:last-child,
.feature-copy p:last-child,
.article-body p:last-child {
  margin-bottom: 0;
}

.repo-tree {
  background: #f7fafe;
  border-radius: 18px;
  color: var(--ck-blue);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 18px 0 0;
  overflow-x: auto;
  padding: 20px 22px;
  white-space: pre;
}

.tag {
  background: rgba(23, 52, 95, 0.06);
  border-radius: 999px;
  color: var(--ck-blue);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 10px;
}

.footer-cta {
  display: none;
}

@media (max-width: 980px) {
  .stats-grid,
  .article-grid,
  .gallery-grid,
  .gallery-grid.two,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .home-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
