.redirect-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(190, 18, 60, 0.3), transparent 55%),
    var(--bg);
}

.redirect-card {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-16);
  transform: rotate(-0.8deg);
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 3px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ad-flag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #120609;
  background: var(--secondary);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.redirect-card h1 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.redirect-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.redirect-card .notes {
  font-size: 0.8rem;
  margin-top: 16px;
}

.redirect-card a {
  color: var(--accent);
}

.error-page {
  max-width: 640px;
  margin: 60px auto;
  padding: 0 20px 60px;
  text-align: center;
}

.error-page .paper-sheet {
  padding: 40px 28px;
  transform: rotate(-1deg);
}

.error-page h1 {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 20px;
}

.topic-hero {
  padding: 36px 20px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.topic-hero .strip {
  background: var(--primary);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: var(--shadow-12);
  transform: rotate(-0.8deg);
}

.topic-hero .strip h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.topic-hero .strip p {
  color: rgba(255, 241, 242, 0.85);
  max-width: 60ch;
}

.topic-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

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

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.stat-band .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-4);
}

.stat-band .stat:nth-child(1) { transform: rotate(-1deg); }
.stat-band .stat:nth-child(2) { transform: rotate(0.8deg); }
.stat-band .stat:nth-child(3) { transform: rotate(-0.5deg); }

.stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--secondary);
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.pull-quote {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--secondary);
  color: #120609;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-8);
  transform: rotate(1deg);
}

.side-rail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-8);
  transform: rotate(1.2deg);
  position: sticky;
  top: 96px;
}

.side-rail h3 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 1rem;
}

.side-rail ul {
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.side-rail li {
  margin-bottom: 8px;
}

.image-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
  justify-content: flex-start;
}

.mosaic-band {
  margin: 24px 0;
  min-height: 180px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-8);
  border: 1px solid var(--border);
  overflow: hidden;
}

.prose-block h2 {
  color: var(--secondary);
  font-size: 1.25rem;
  margin: 28px 0 10px;
}

.prose-block h3 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
}

.prose-block p {
  color: var(--muted);
  margin-bottom: 14px;
}

.prose-block ul,
.prose-block ol {
  color: var(--muted);
  padding-left: 1.2rem;
  margin-bottom: 14px;
}

.prose-block li {
  margin-bottom: 6px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 0.92rem;
  background: var(--surface);
  box-shadow: var(--shadow-4);
  border-radius: 6px;
  overflow: hidden;
}

.mini-table th,
.mini-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
}

.mini-table th {
  background: rgba(190, 18, 60, 0.25);
  color: var(--text);
}

@media (max-width: 900px) {
  .layout-sidebar,
  .layout-split,
  .stat-band {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    transform: none;
  }

  .image-rail,
  .mosaic-band,
  .decor-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-width: 100%;
    max-height: 220px;
  }
}

@media (max-width: 375px) {
  .decor-img {
    max-width: 100%;
    max-height: 180px;
  }

  .mosaic-band {
    min-height: 140px;
    max-width: 100%;
    overflow: hidden;
  }
}
