/* Article-only layout. The approved index keeps its own composition. */
.article {
  --reading-width: 880px;
  width: min(var(--reading-width), calc(100% - 80px));
  max-width: none;
  margin: 0 auto;
  padding: 82px 0 90px;
}
.article-header {
  max-width: none;
  margin: 0 0 46px;
  padding: 0;
  border: 0;
}
.article--with-hero { width: 100%; }
.article--with-hero > .article-header,
.article--with-hero > .article-body,
.article--with-hero > .article-related,
.article--with-hero > .article-end {
  width: min(var(--reading-width), calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}
.article-hero { width: 100%; margin: 0 0 49px; }
.article-hero picture { display: block; background: #e8edf0; }
.article-hero img {
  display: block;
  width: 100%;
  height: clamp(300px, 23vw, 460px);
  object-fit: cover;
}
.article-hero figcaption {
  width: min(1344px, calc(100% - 80px));
  margin: 11px auto 0;
  font: 12px/1.5 var(--sans);
  color: var(--muted);
  text-align: right;
}
.article-hero figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.article-back {
  margin: 0 0 25px;
  font-size: 14px;
  color: var(--ink);
}
.article-header h1 {
  margin: 0 0 29px;
  font-size: 50px;
  line-height: 1.12;
  letter-spacing: -1.1px;
  color: #080d10;
}
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 30px;
}
.article-meta-row .metadata { font-size: 14px; gap: 9px; }
.article-tools { display: flex; align-items: center; gap: 18px; }
.article-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border: 0;
  background: none;
  font: 14px var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.article-tool svg { width: 17px; height: 17px; }
.article-tool:hover { color: var(--accent); }
.article-tool:focus-visible, .chart-dialog button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.standfirst {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  color: var(--ink);
}
.article-body {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: 20px;
  line-height: 1.75;
}
.article-body p { margin: 0 0 25px; }
.article-body h2 {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.35px;
  margin: 54px 0 22px;
  scroll-margin-top: 28px;
}
.article-body h3 {
  font-family: var(--sans);
  font-size: 23px;
  line-height: 1.35;
  margin: 38px 0 20px;
}
.article-body > h3:first-child { margin-top: 0; }
.article-body ul, .article-body ol { padding-left: 28px; margin: 25px 0; }
.article-body li { margin-bottom: 16px; }
.article-body blockquote {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.5;
  border-left: 2px solid var(--ink);
  margin: 42px 0;
  padding-left: 26px;
}
.article-body figure,
.article-body .flourish-embed {
  width: 100%;
  max-width: 100%;
  margin: 44px 0;
}
.article-body .article-exhibit {
  padding: 25px 0 0;
  border-top: 1px solid var(--line);
}
.article-body .article-exhibit .flourish-embed { margin: 0; }
.article-body .article-exhibit img { display: block; width: 100%; height: auto; }
.article-body figcaption, .article-body .exhibit-caption {
  font: 13px/1.55 var(--sans);
  color: var(--muted);
  margin: 13px 0 0;
}
.exhibit-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.exhibit-actions { display: flex; gap: 18px; align-items: baseline; }
.exhibit-actions button {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exhibit-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 16px;
  line-height: 1.5;
}
.article-body th, .article-body td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th { font-weight: 700; border-top: 1px solid var(--ink); }
.article-body .kg-width-wide { width: 100%; max-width: 100%; }
.article-body img { height: auto; }
.article-end { max-width: none; margin: 54px 0 0; padding-top: 24px; }
.article-related { margin: 65px 0 0; border-top: 1px solid var(--line); padding-top: 25px; }
.article-related > h2 { font: 600 19px/1.3 var(--sans); margin: 0 0 28px; }
.article-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.article-related h3 { font: 700 23px/1.3 var(--sans); margin: 0 0 12px; }
.article-related p { font: 14px/1.5 var(--sans); color: var(--muted); margin: 0; }
.chart-dialog {
  width: min(1320px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 0;
  color: var(--ink);
  background: white;
}
.chart-dialog::backdrop { background: #061c29d9; }
.chart-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 18px; }
.chart-dialog-bar h2 { font: 600 18px/1.3 var(--sans); margin: 0; }
.chart-dialog-bar button { font: 15px var(--sans); padding: 8px 14px; border: 1px solid var(--line); background: white; cursor: pointer; }
.chart-dialog-scroll { overflow: auto; max-height: calc(100dvh - 140px); }
.chart-dialog-scroll img { width: 100%; max-width: none; min-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width: 950px) {
  .article { width: calc(100% - 64px); padding-top: 58px; }
  .article--with-hero { width: 100%; }
  .article--with-hero > .article-header,
  .article--with-hero > .article-body,
  .article--with-hero > .article-related,
  .article--with-hero > .article-end { width: calc(100% - 64px); }
  .article-header h1 { font-size: 46px; }
}
@media(max-width: 640px) {
  .article { width: calc(100% - 40px); padding: 32px 0 54px; }
  .article--with-hero { width: 100%; }
  .article--with-hero > .article-header,
  .article--with-hero > .article-body,
  .article--with-hero > .article-related,
  .article--with-hero > .article-end { width: calc(100% - 40px); }
  .article-hero { margin-bottom: 32px; }
  .article-hero img { height: 250px; }
  .article-hero figcaption { width: calc(100% - 40px); font-size: 11px; }
  .article-back { margin-bottom: 24px; }
  .article-header { margin-bottom: 32px; }
  .article-header h1 { font-size: 36px; line-height: 1.13; letter-spacing: -.65px; margin-bottom: 23px; }
  .article-meta-row { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .article-meta-row .metadata { width: 100%; font-size: 13px; }
  .article-tools { gap: 24px; }
  .standfirst { font-size: 19px; line-height: 1.6; }
  .article-body { font-size: 18px; line-height: 1.7; }
  .article-body h2 { font-size: 25px; margin-top: 40px; }
  .article-body h3 { font-size: 22px; }
  .article-body blockquote { font-size: 23px; padding-left: 20px; }
  .article-body figure, .article-body .flourish-embed { margin: 33px 0; }
  .article-body .article-exhibit { padding-top: 20px; }
  .exhibit-caption { gap: 8px; }
  .exhibit-actions { gap: 20px; }
  .article-related-grid { grid-template-columns: 1fr; gap: 26px; }
  .article-related { margin-top: 45px; }
  .chart-dialog { padding: 14px; width: calc(100vw - 20px); }
}
@media print {
  .article { width: 100%; padding: 0; }
  .article-tools, .article-related, .exhibit-actions, .chart-dialog { display: none; }
  .article-header h1 { font-size: 30pt; }
  .standfirst { font-size: 13pt; }
  .article-body { font-size: 11pt; line-height: 1.6; }
  .article-body h2 { break-after: avoid; }
  .article-body figure { break-inside: avoid; }
  .article-hero { display: none; }
  .article--with-hero > .article-header,
  .article--with-hero > .article-body,
  .article--with-hero > .article-related,
  .article--with-hero > .article-end { width: 100%; }
}
