.sub-hero-strip {
  height: 100px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.sub-layout-sidebar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.sub-rail {
  position: sticky;
  top: 88px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.sub-rail img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 16px;
}

.sub-rail-nav a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.sub-rail-nav a:hover {
  color: var(--primary);
}

.sub-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.15;
}

.sub-article h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 14px;
  color: var(--text);
}

.sub-article p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.sub-article ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.sub-article li {
  color: var(--muted);
  margin-bottom: 8px;
}

.sub-img-inline {
  float: right;
  max-width: 320px;
  max-height: 240px;
  margin: 0 0 20px 24px;
  object-fit: cover;
}

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

  .sub-rail {
    position: static;
  }

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

@media (max-width: 375px) {
  .sub-layout-sidebar {
    padding: 32px 16px 48px;
    overflow-x: hidden;
  }

  .sub-rail {
    overflow: hidden;
  }

  .sub-rail img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
  }

  .sub-img-inline {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }
}
