.subpage-decor-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border: 2px solid var(--border);
}

@media (max-width: 375px) {
  .subpage-decor-img {
    max-height: 200px;
  }
}

.subpage-hero {
  background: var(--primary);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-stretch: expanded;
  position: relative;
  z-index: 2;
  text-shadow: 2px 0 rgba(192, 82, 43, 0.35), -2px 0 rgba(74, 55, 40, 0.25);
}

.subpage-hero::before {
  content: "glitch";
  position: absolute;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) skewX(-6deg);
  pointer-events: none;
}

.subpage-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.subpage-body h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--primary);
  font-stretch: expanded;
}

.subpage-body h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--secondary);
}

.subpage-body p {
  margin-bottom: 14px;
  line-height: 1.65;
}

.subpage-body ul {
  margin: 0 0 16px 20px;
}

.subpage-body li {
  margin-bottom: 6px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.guide-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--surface);
  padding: 24px;
  border-left: 3px solid var(--accent);
}

.guide-sidebar h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.guide-sidebar li {
  margin-bottom: 8px;
}

.guide-sidebar a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
}

.guide-sidebar a:hover {
  text-decoration: underline;
}

.guide-main h2 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin: 32px 0 14px;
  font-stretch: expanded;
}

.guide-main h2:first-child {
  margin-top: 0;
}

.guide-main p {
  margin-bottom: 14px;
  line-height: 1.65;
}

.guide-pullquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(192, 82, 43, 0.07);
  font-style: italic;
  color: var(--muted);
}

.guide-img-rail {
  float: right;
  margin: 0 0 20px 24px;
  max-width: 320px;
}

.guide-img-rail img {
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 2px solid var(--border);
  filter: drop-shadow(3px 0 0 rgba(192, 82, 43, 0.4));
}

.licens-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.licens-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.licens-band {
  background: var(--secondary);
  color: var(--surface);
  padding: 32px;
  margin: 32px 0;
  position: relative;
}

.licens-band p {
  color: rgba(239, 225, 197, 0.9);
}

.licens-band::after {
  content: "distorted";
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-size: 2rem;
  opacity: 0.1;
  font-weight: 900;
}

.licens-checklist {
  list-style: none;
  margin: 20px 0;
}

.licens-checklist li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.licens-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.licens-img-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.licens-img-mosaic img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.live-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.live-hero-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  padding: 32px;
  margin-bottom: 40px;
  border-bottom: 3px solid var(--accent);
}

.live-hero-strip img {
  max-width: 280px;
  max-height: 200px;
  object-fit: cover;
  filter: drop-shadow(-3px 0 0 rgba(192, 82, 43, 0.45));
}

.live-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.live-col h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 14px;
  font-stretch: expanded;
}

.live-col p {
  margin-bottom: 12px;
  line-height: 1.65;
}

.live-stat-row {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.live-stat {
  flex: 1;
  min-width: 120px;
  background: var(--primary);
  color: #fff;
  padding: 16px;
  text-align: center;
}

.live-stat strong {
  display: block;
  font-size: 1.3rem;
}

.live-stat span {
  font-size: 0.78rem;
  opacity: 0.85;
}

.not-found {
  text-align: center;
  padding: 80px 24px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.not-found h1 {
  font-size: 4rem;
  color: var(--accent);
  font-stretch: expanded;
  margin-bottom: 16px;
  transform: skewX(-3deg);
}

.not-found p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 400px;
}

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

  .guide-sidebar {
    position: static;
  }

  .guide-img-rail {
    float: none;
    margin: 0 0 20px;
    max-width: 100%;
  }

  .licens-split,
  .live-columns,
  .licens-img-mosaic {
    grid-template-columns: 1fr;
  }

  .live-hero-strip {
    flex-direction: column;
  }

  .live-hero-strip img,
  .guide-img-rail img,
  .licens-split img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .decor-wrap {
    overflow: hidden;
    max-width: 100%;
  }
}

@media (max-width: 375px) {
  .live-hero-strip img,
  .guide-img-rail img,
  .licens-split img {
    max-height: 200px;
    object-fit: cover;
  }
}
