/* Article-specific illustration style; the existing website palette is retained. */
.page-article .article-example {
  max-width: 680px;
  margin: 32px 0 8px;
  padding: 28px 30px;
  border-top: 3px solid var(--green);
  background: var(--paper-light);
}
.article-example > header { margin-bottom: 22px; }
.article-example .eyebrow { font-size: 11px; margin-bottom: 8px; }
.article-example h3 { margin: 0; font-size: 27px; line-height: 1.22; }
.article-example p { max-width: none; font-size: 15px; line-height: 1.7; }
.article-example .example-result { margin-block: 22px; padding-block: 18px; border-block: 1px solid var(--line); color: var(--ink); }
.article-example .example-note { font-size: 13px; line-height: 1.65; margin-bottom: 10px; }
.article-example .example-basis-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; }
.example-table { width: 100%; margin-block: 24px; }
.example-table table { font-size: 13px; line-height: 1.55; }
.example-table th, .example-table td { padding: 13px 10px; }
.example-table th:first-child, .example-table td:first-child { padding-left: 0; }
.example-table th:last-child, .example-table td:last-child { padding-right: 0; }
.example-table th { background: transparent; }
.example-table :is(th, td):nth-child(n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.example-table td:first-child { width: 60%; }
.article-calculation-basis { max-width: 680px; margin-block: 0 30px; }
.article-calculation-basis summary { font-size: 14px; min-height: 36px; }
.article-calculation-basis p { font-size: 13px; line-height: 1.7; max-width: none; }
.article-calculation-basis:target { outline: 2px solid var(--accent); outline-offset: 8px; }
@media (max-width: 650px) {
  .page-article .article-example { padding: 24px 20px; margin-top: 26px; }
  .article-example h3 { font-size: 24px; }
  .example-table table, .example-table tbody { display: block; }
  .example-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .example-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding-block: 14px; border-top: 1px solid var(--line); }
  .example-table tr:last-child { border-bottom: 1px solid var(--line); }
  .example-table td, .example-table td:first-child, .example-table td:last-child { display: block; width: auto; padding: 0; border: 0; }
  .example-table td:first-child { grid-column: 1 / -1; margin-bottom: 3px; color: var(--ink); }
  .example-table td:nth-child(n+2) { text-align: left; }
  .example-table td:nth-child(n+2)::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
}
@media print {
  .article-example { break-inside: avoid; }
  .article-calculation-basis p { display: block; }
}
