html { scroll-behavior: smooth; }

.article-page .page-shell { overflow: hidden; }

.article-hero {
  margin: -4px 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--brd);
}

.article-page .article-kicker {
  margin-bottom: 10px;
  color: var(--acc-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-page h1 {
  max-width: 18ch;
  margin-bottom: 16px;
  text-wrap: balance;
}

.article-page .article-meta {
  margin-top: 12px;
  color: var(--mut);
  font-size: 12px;
}

.article-page .article-byline {
  margin: 0 0 3px;
  font-size: 15px;
}

.article-page .article-author-description {
  margin: 0;
  color: var(--mut);
  font-size: 13px;
  line-height: 1.55;
}

.article-page .article-author-description a,
.article-page article a,
.article-page .article-publication-notes a {
  color: var(--acc-strong);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.article-page .article-author-description a:hover,
.article-page article a:hover,
.article-page .article-publication-notes a:hover {
  color: var(--acc);
  text-decoration-color: currentColor;
}

.article-page .article-author-description a:focus-visible,
.article-page article a:focus-visible,
.article-page .article-publication-notes a:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.article-page .article-lead {
  margin: 0 0 22px;
  color: var(--txt);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 650;
  line-height: 1.5;
}

.article-page .toc {
  margin: 0 0 34px;
  padding: 18px 20px;
  border: 1px solid var(--brd);
  border-radius: 16px;
  background: var(--surf2);
  box-shadow: var(--shadow-soft);
}

.article-page .toc h2 {
  margin: 0 0 10px;
  color: var(--mut);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-page .toc ol {
  columns: 2 250px;
  margin: 0;
  padding-left: 20px;
}

.article-page .toc li {
  break-inside: avoid;
  margin: 4px 0;
  font-size: 13px;
}

.article-page .toc-subitem { margin-left: 14px; }
.article-page .pdf-page { display: flow-root; }
.article-page .pdf-page + .pdf-page { margin-top: 1.2rem; }

.article-page .page-number {
  height: 0;
  margin: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.article-page .pdf-page h2 {
  margin: 2.1em 0 0.6em;
  color: var(--txt);
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.2;
  text-wrap: balance;
}

.article-page .pdf-page h3 {
  margin: 1.8em 0 0.55em;
  color: var(--acc-strong);
  font-size: clamp(17px, 2.5vw, 21px);
  line-height: 1.25;
}

.article-page .pdf-page h4 {
  margin: 1.4em 0 0.4em;
  font-size: 15px;
}

.article-page .pdf-page p {
  margin-bottom: 0.95em;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.72;
  hyphens: auto;
}

.article-page .caption,
.article-page figcaption {
  color: var(--mut);
  font-size: 11px;
  line-height: 1.5;
}

.article-page .list-item {
  position: relative;
  padding-left: 1.35rem;
}

.article-page .list-item::before {
  position: absolute;
  left: 0;
  color: var(--acc);
  content: "•";
}

.article-page figure { margin: clamp(24px, 5vw, 42px) 0; }

.article-page figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--brd);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.article-page img[data-gallery-image] {
  cursor: zoom-in;
  transition: filter 180ms ease, transform 180ms ease;
}

.article-page img[data-gallery-image]:hover {
  filter: brightness(1.05);
  transform: scale(1.008);
}

.article-page img[data-gallery-image]:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 3px;
}

.article-page .figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.article-page .figure-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-page figcaption {
  max-width: 68ch;
  margin: 9px auto 0;
  text-align: center;
}

.article-page .info-box {
  margin: 26px 0;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid color-mix(in srgb, var(--acc) 48%, var(--brd));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surf2) 78%, var(--acc) 4%);
  box-shadow: var(--shadow-soft);
}

.article-page .info-box h4 {
  margin: 0 0 10px;
  color: var(--acc-strong);
  font-size: 14px;
}

.article-page .info-box p {
  font-size: 13px;
  line-height: 1.6;
}

.article-page .article-publication-notes {
  margin-top: 44px;
  padding: clamp(18px, 3vw, 24px);
  border-top: 1px solid var(--brd);
  border-radius: 14px;
  background: var(--surf2);
}

.article-page .article-publication-notes h2 {
  margin: 0 0 10px;
  color: var(--mut);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-page .article-publication-notes p {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.article-page .page-fallback {
  padding: 8px;
  border: 1px solid var(--brd);
  border-radius: 14px;
  background: #fff;
}

.article-page .scan-notice {
  padding: 12px 14px;
  border-left: 4px solid var(--con);
  border-radius: 8px;
  background: var(--surf2);
  color: var(--mut);
  font-size: 12px;
}

.article-page .table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--brd);
  border-radius: 12px;
}

.article-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}

.article-page th,
.article-page td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--brd);
  text-align: left;
  vertical-align: top;
}

.article-page th {
  background: var(--surf2);
  font-weight: 700;
}

.article-page tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 620px) {
  .article-page .toc ol { columns: 1; }
  .article-page figure { margin-inline: -6px; }
  .article-page .figure-grid { grid-template-columns: 1fr; }
}

@media print {
  .article-page .site-header,
  .article-page .site-footer,
  .article-page .toc { display: none; }

  .article-page .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .article-page figure { break-inside: avoid; }
}
