.topic-hero-strip {
  background: var(--logistics-orange);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.topic-hero-strip span {
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.topic-split {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.topic-rail {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem;
}

.topic-rail h3 {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--logistics-orange);
  margin-bottom: 1rem;
}

.topic-rail ul {
  list-style: none;
  padding: 0;
}

.topic-rail li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.topic-content h1 {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.topic-content h2 {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
  text-transform: uppercase;
}

.topic-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.topic-img-inline {
  max-width: 480px;
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  border: 2px solid var(--navigation-slate);
  margin: 1.5rem 0;
}

.topic-img-band {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  margin: 2rem 0;
  border: 2px solid var(--logistics-orange);
}

@media (max-width: 768px) {
  .topic-split {
    grid-template-columns: 1fr;
  }
  .topic-rail {
    position: static;
  }
}

@media (max-width: 375px) {
  .topic-split,
  .topic-sidebar-layout,
  .topic-columns,
  .topic-live-layout {
    overflow: hidden;
    max-width: 100%;
  }

  .topic-img-inline,
  .topic-img-band,
  .topic-sidebar img,
  .topic-columns__hero {
    max-width: 100%;
    overflow: hidden;
  }

  .topic-img-band {
    max-height: 160px;
    width: 100%;
    object-fit: cover;
  }

  .topic-columns__hero {
    background-size: cover;
    min-height: 140px;
  }
}

.topic-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.topic-sidebar {
  background: repeating-linear-gradient(0deg, var(--raw-grid) 0px, var(--raw-grid) 1px, transparent 1px, transparent 24px);
  border-left: 3px solid var(--logistics-orange);
  padding-left: 1.5rem;
}

.topic-sidebar img {
  max-width: 100%;
  max-height: 280px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--border);
}

.topic-stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.topic-stat-band div {
  text-align: center;
}

.topic-stat-band strong {
  font-family: ui-monospace, monospace;
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
}

.topic-stat-band span {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .topic-sidebar-layout {
    grid-template-columns: 1fr;
  }
  .topic-stat-band {
    grid-template-columns: 1fr;
  }
}

.topic-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.topic-columns__hero {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.topic-columns__hero h1 {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  text-transform: uppercase;
  background: rgba(17, 24, 39, 0.85);
  padding: 0.75rem 1.25rem;
}

.topic-columns__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.topic-columns h2 {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin: 1.5rem 0 0.75rem;
  text-transform: uppercase;
}

.topic-columns p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.topic-pullquote {
  grid-column: 1 / -1;
  padding: 1.5rem 2rem;
  border: 2px dashed var(--logistics-orange);
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .topic-columns__grid {
    grid-template-columns: 1fr;
  }
}

.topic-live-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.topic-live-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--logistics-orange);
}

.topic-live-header h1 {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  text-transform: uppercase;
}

.topic-live-badge {
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  background: var(--primary);
  padding: 4px 10px;
  text-transform: uppercase;
}

.topic-live-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.topic-live-main p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.topic-live-aside {
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
}

.topic-live-aside h3 {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--logistics-orange);
  margin-bottom: 1rem;
}

.topic-live-aside ul {
  list-style: none;
  padding: 0;
}

.topic-live-aside li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.topic-live-aside li::before {
  content: "→ ";
  color: var(--accent);
}

@media (max-width: 768px) {
  .topic-live-grid {
    grid-template-columns: 1fr;
  }
}

.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-404 h1 {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 4rem;
  color: var(--logistics-orange);
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 400px;
}

.go-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--bg);
}

.go-page__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.go-page h1 {
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.go-page p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 400px;
  margin-bottom: 0.5rem;
}

.go-page__ad {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--logistics-orange);
  margin-top: 1.5rem;
}

.go-page a {
  color: var(--accent);
}
