main .block.block-text:has(.article-title) { padding: 0 0 4rem; background: var(--background); }
main .block.block-text:has(.article-title) > .wrap { width: 100%; max-width: none; margin: 0; }

.article-title {
  display: flex;
  align-items: center;
  min-height: clamp(10rem, 18vw, 14rem);
  background: linear-gradient(120deg, color-mix(in srgb, var(--secondary) 9%, var(--background)) 0%, var(--background) 45%, color-mix(in srgb, var(--primary) 14%, var(--background)) 100%);
}
.article-title-in { width: min(1280px, calc(100% - 3rem)); margin-inline: auto; padding: 2.5rem 0; }
.article-pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--text) 14%, var(--background));
  border-radius: 999px;
  background: var(--background);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-title h1 { max-width: 22ch; margin: 0; color: var(--text); }

.article-cols {
  width: min(1280px, calc(100% - 3rem));
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.article-main { min-width: 0; }
.article-lead p { margin: 0 0 0.9rem; line-height: 1.7; font-size: 1.08rem; }
.article-part { scroll-margin-top: 6.5rem; }
.article-part h2 { margin: 2rem 0 0.75rem; }
.article-main > .article-part:first-child h2 { margin-top: 0; }
.article-part p { margin: 0 0 0.85rem; line-height: 1.7; }
.article-part ul { margin: 0.35rem 0 1rem; padding-left: 1.15rem; }
.article-part li { margin: 0.3rem 0; line-height: 1.55; }
.article-part li::marker { color: var(--primary); }
.article-photo { margin: 2rem 0 0; }
.article-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
}

.article-aside { position: sticky; top: 6rem; min-width: 0; }
.article-toc {
  background: var(--background);
  border: 1px solid color-mix(in srgb, var(--text) 10%, var(--background));
  border-radius: 1rem;
  padding: 1.35rem;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--text) 7%, transparent);
}
.article-toc-title {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-toc ul { list-style: none; margin: 0; padding: 0; }
.article-toc li + li { border-top: 1px solid color-mix(in srgb, var(--text) 8%, var(--background)); }
.article-toc a {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: break-word;
}
.article-toc a::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.42rem;
  background: var(--primary);
  transform: rotate(45deg);
}
.article-toc a:hover { color: var(--primary); }
.article-toc-inline { display: none; }
html { scroll-behavior: smooth; }

@media (max-width: 900px) {
  .article-cols { grid-template-columns: minmax(0, 1fr); margin-top: 1.75rem; }
  .article-aside { display: none; }
  .article-toc-inline { display: block; margin: 0 0 1.5rem; }
  .article-photo img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
