.block-text:has(.article-guide) { background: var(--background); }
.article-guide {
  display: grid;
  grid-template-columns: minmax(15rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.article-toc {
  position: sticky;
  top: 6rem;
  min-width: 0;
  background: var(--background);
  border: 1px solid color-mix(in srgb, var(--text) 12%, var(--background));
  border-radius: 1rem;
  padding: 1.35rem;
}
.article-toc-kicker {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-toc-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.article-toc ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, var(--background));
}
.article-toc li { border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, var(--background)); }
.article-toc li a {
  display: block;
  padding: 0.6rem 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: break-word;
}
.article-toc li a:hover { color: var(--primary); }
.article-toc .button { width: 100%; justify-content: center; }
.article-read {
  min-width: 0;
  background: var(--background);
  border: 1px solid color-mix(in srgb, var(--text) 12%, var(--background));
  border-radius: 1rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
}
.article-read h1 { max-width: 20ch; margin: 0 0 1.1rem; }
.article-lead p { max-width: 44rem; margin: 0 0 0.9rem; line-height: 1.7; font-size: 1.08rem; }
.article-part { max-width: 46rem; scroll-margin-top: 6.5rem; }
.article-part h2 { margin: 2rem 0 0.75rem; }
.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;
}
html { scroll-behavior: smooth; }
.article-toc-inline { display: none; }
@media (max-width: 900px) {
  .article-guide { grid-template-columns: minmax(0, 1fr); }
  .article-toc { display: none; }
  .article-toc-inline {
    display: block;
    margin: 0 0 1.25rem;
    border: 1px solid color-mix(in srgb, var(--text) 12%, var(--background));
    border-radius: 1rem;
    padding: 1.1rem;
  }
  .article-toc-inline ul { list-style: none; margin: 0 0 1.1rem; padding: 0; border-top: 1px solid color-mix(in srgb, var(--text) 10%, var(--background)); }
  .article-toc-inline li { border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, var(--background)); }
  .article-toc-inline li a { display: block; padding: 0.6rem 0; color: var(--text); font-size: 0.94rem; line-height: 1.4; text-decoration: none; }
  .article-toc-inline .article-toc-kicker { margin: 0 0 0.35rem; color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
  .article-toc-inline .article-toc-title { margin: 0 0 0.85rem; font-family: var(--font-heading); font-size: 1.18rem; font-weight: 700; line-height: 1.25; color: var(--text); }
  .article-toc-inline .button { width: 100%; justify-content: center; }
  .article-photo img { aspect-ratio: 4 / 3; }
  .article-read { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
