.article-view {
  color: var(--ink);
  background: var(--paper);
}

.article-header {
  padding-block: clamp(1.3rem, 2.8vw, 2.75rem) clamp(2.5rem, 5vw, 5rem);
  color: var(--paper);
  background: var(--ink);
}
.article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .65rem;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  line-height: 1.55;
}
.article-breadcrumb li + li::before {
  display: inline-block;
  width: 1px;
  height: .9em;
  margin-inline-end: .65rem;
  border-inline-start: 1px solid #989b8e;
  content: "";
  transform: rotate(15deg);
  vertical-align: -.05em;
}
.article-breadcrumb a,
.article-cite-jump {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.article-breadcrumb a { color: #d9dccf; }
.article-header a:hover { color: var(--yellow); }
.article-header :focus-visible { outline-color: var(--yellow); }

.article-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(13rem, 1fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
  margin-block-start: clamp(2.1rem, 4.8vw, 4.9rem);
}
.article-kicker { color: var(--yellow); }
.article-kicker::before {
  flex: none;
  width: 1.45rem;
  height: .25rem;
  background: currentColor;
  content: "";
}
.article-heading h1 {
  max-inline-size: 21ch;
  margin-block: .36em .33em;
  font-size: clamp(2.6rem, 4.8vw + .6rem, 5.65rem);
  font-weight: 520;
  letter-spacing: -.06em;
  line-height: 1.035;
  overflow-wrap: break-word;
}
.article-summary {
  max-inline-size: 60ch;
  color: #e1e2d6;
  font-size: clamp(1.03rem, 1.36vw, 1.36rem);
  line-height: 1.52;
}
.article-meta {
  min-width: 0;
  max-width: 24rem;
  padding-inline-start: clamp(1.45rem, 2.6vw, 2.8rem);
  border-inline-start: 1px solid #65685c;
}
.article-folio { color: var(--yellow); }
.article-credit {
  margin-block: .6rem .95rem;
  font-size: 1.075rem;
  font-weight: 570;
}
.article-dates div + div { margin-block-start: .5rem; }
.article-dates dt,
.article-meta-scope { color: #c5c8bc; font-size: .825rem; }
.article-dates dd { margin: .08rem 0 0; font-size: .975rem; }
.article-meta-scope { max-width: 31ch; margin-block-start: .9rem; }
.article-cite-jump {
  display: inline-block;
  margin-block-start: .5rem;
  padding-block: .35rem;
  color: var(--paper);
  font-size: .9rem;
  font-weight: 560;
}

.article-sheet {
  max-inline-size: 43.5rem;
  padding-block: clamp(2rem, 4.2vw, 4.5rem) clamp(3rem, 6vw, 6rem);
}
.article-contents {
  margin-block-end: clamp(1.55rem, 2.7vw, 2.85rem);
  border-block: 1px solid var(--line);
}
.article-contents summary {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.4rem;
  padding-block: .7rem;
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}
.article-contents summary::-webkit-details-marker { display: none; }
.article-toc-count { margin-inline-start: auto; color: var(--muted); }
.article-contents summary::after {
  flex: none;
  width: .55rem;
  height: .55rem;
  margin-inline: .3rem .15rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  transform: translateY(-.12rem) rotate(45deg);
}
.article-contents details[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.article-contents ol {
  margin: 0;
  padding: 0 0 1.3rem 1.7rem;
  columns: 2;
  column-gap: 2.3rem;
  font-size: .91rem;
  line-height: 1.5;
}
.article-contents li { break-inside: avoid; padding-inline-start: .15rem; }
.article-contents li::marker { color: var(--muted); font-family: var(--mono); }
.article-contents a {
  display: inline-block;
  padding: .22rem 0;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .18em;
}
.article-contents a:hover { text-decoration-color: currentColor; }

.article-prose {
  min-width: 0;
  font-size: clamp(1.0625rem, 1rem + .23vw, 1.1875rem);
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.article-prose > * + *,
.article-prose section > * + * { margin-block-start: 1em; }
.article-prose h2 {
  margin-block: 1.8em .48em;
  font-size: clamp(1.65rem, 2.5vw, 2.32rem);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1.13;
  text-wrap: pretty;
}
.article-prose h3 {
  margin-block: 1.5em .42em;
  font-size: clamp(1.25rem, 1.6vw, 1.53rem);
  letter-spacing: -.024em;
  line-height: 1.25;
}
.article-prose h4 {
  margin-block: 1.25em .4em;
  font-size: 1.06em;
  letter-spacing: -.012em;
  line-height: 1.35;
}
.article-prose h2 + p,
.article-prose h3 + p,
.article-prose > :first-child,
.article-prose section > :first-child { margin-block-start: 0; }
.article-prose ul,
.article-prose ol { padding-inline-start: 1.4em; }
.article-prose li + li { margin-block-start: .33em; }
.article-prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
}
.article-prose a:hover { color: #6c5100; text-decoration-thickness: 2px; }
.article-prose [id] { scroll-margin-block-start: 1.2rem; }

.article-callout,
.article-template,
.article-checklist {
  margin-block: 1.5em;
  padding: 1.1em 1.25em;
  border-inline-start: .2rem solid var(--yellow);
  background: var(--cream, #fffdf5);
}
.article-callout > * + *,
.article-template > * + * { margin-block-start: .55em; }
.article-prose .article-note-title {
  font-weight: 650;
  line-height: 1.35;
}
.article-checklist > :first-child { margin-top: 0; }
.article-checklist > :last-child { margin-bottom: 0; }
.article-checklist:has(> :only-child) {
  padding: 0;
  border: 0;
  background: transparent;
}
.article-caption,
.article-scope,
.article-record-note {
  color: var(--muted);
  font-size: .9em;
  line-height: 1.6;
}
.article-scope { padding-inline-start: 1em; border-inline-start: 1px solid var(--line); }

.article-table {
  max-inline-size: 100%;
  margin-block: 1.35em;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  scrollbar-color: var(--muted) var(--paper);
}
.article-table table {
  width: 100%;
  min-width: 31rem;
  border-collapse: collapse;
  background: var(--cream, #fffdf5);
  font-size: .89em;
  line-height: 1.5;
}
.article-table-compact table { min-width: 0; }
.article-table-wide table { min-width: 43rem; }
.article-table-ledger table { min-width: 53rem; }
.article-table :is(th, td) {
  padding: .75em .9em;
  border-block-end: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.article-table :is(th, td) + :is(th, td) { border-inline-start: 1px solid var(--line); }
.article-table thead th { color: var(--paper); background: var(--ink); font-weight: 560; }
.article-table tbody th[scope="rowgroup"] { background: var(--paper); font-weight: 650; }
.article-table tbody:last-child tr:last-child > * { border-block-end: 0; }
.article-table:focus-visible { outline: 3px solid #9c6800; outline-offset: 2px; }
.article-record {
  padding: clamp(1rem, 3.4vw, 1.8rem);
  border: 1px solid var(--line);
  border-block-start: 3px solid var(--ink);
  background: var(--cream, #fffdf5);
}
.article-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.article-record-wide { grid-column: 1 / -1; }
.article-record-field, .article-record-checks { min-width: 0; }
.article-record-field label,
.article-record-checks legend,
.article-record-manual label {
  display: block;
  margin-block-end: .35rem;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 570;
  line-height: 1.4;
}
.article-record-field :is(input, textarea),
.article-record-manual textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .55rem .65rem;
  border: 1px solid var(--muted);
  border-radius: 0;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
}
.article-record-field textarea { min-height: 5rem; resize: vertical; }
.article-record-field input::placeholder,
.article-record-field textarea::placeholder { color: var(--muted); opacity: 1; }
.article-field-hint {
  margin-block-start: .3rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
}
.article-record-checks { margin: 0; padding: .55rem .8rem; border: 1px solid var(--line); }
.article-record-checks legend { padding-inline: .25rem; }
.article-record-checks label {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  min-height: 2.5rem;
  padding-block: .4rem;
  font-size: .95rem;
  line-height: 1.45;
  cursor: pointer;
}
.article-record-checks input {
  flex: none;
  align-self: start;
  width: 1.1rem;
  height: 1.1rem;
  margin: .12rem 0 0;
  accent-color: var(--ink);
}
.article-record-results, .article-record-actions { display: none; }
.article-worksheets-ready .article-record-results { display: block; }
.article-record-results dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  padding-block: .9rem;
  border-block: 1px solid var(--line);
}
.article-record-results dt { font-size: .85rem; line-height: 1.4; color: var(--muted); }
.article-record-results dd { margin: .25rem 0 0; font-size: 1.06rem; font-weight: 600; }
.article-worksheets-ready .article-record-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.article-record-actions button {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: .95rem;
  font-weight: 570;
  cursor: pointer;
}
.article-record-actions button:first-child { color: var(--paper); background: var(--ink); }
.article-record-actions button:hover { color: var(--ink); background: var(--yellow); }
.article-record :is(input, textarea, button):focus-visible { outline: 3px solid #9c6800; outline-offset: 2px; }
.article-record-message, .article-record-status { font-size: .95rem; font-weight: 550; line-height: 1.45; }
.article-record-message:not(:empty) { margin-block-start: .6rem; }
.article-record .article-record-status:empty { margin: 0; }
.article-worksheets-ready .article-record-help,
.article-record-manual[hidden], .article-print-sheet { display: none; }
.article-record-help { color: var(--muted); font-size: .9rem; }
.article-record-manual textarea { resize: vertical; }
.article-record-note { padding-block-start: .65rem; border-block-start: 1px solid var(--line); }

.article-sources,
.article-related,
.article-review {
  margin-block-start: 2.65em;
  padding-block-start: 1.3em;
  border-block-start: 1px solid var(--line);
}
.article-sources li,
.article-related li { padding-inline-start: .13em; }
.article-sources a,
.article-related a { display: inline-block; }
.article-review p { font-size: .94em; }
.article-service {
  margin-block-start: 2.8rem;
  padding-block: 1.25rem 0;
  border-block-start: 2px solid var(--ink);
}
.article-service .eyebrow { color: var(--muted); }
.article-service-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-block-start: .65rem; }
.article-service-link { max-width: 100%; font-size: 1.05rem; }
.article-service-link span { color: #715600; }

@media (max-width: 52rem) {
  .article-header-grid { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .article-meta { max-width: none; padding: 1rem 0 0; border: 0; border-block-start: 1px solid #65685c; }
  .article-credit { margin-block: .35rem .8rem; }
  .article-dates { display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
  .article-dates div + div { margin: 0; }
  .article-meta-scope { max-width: none; margin-block-start: .65rem; }
  .article-cite-jump { margin-block-start: .2rem; }
}
@media (max-width: 36rem) {
  .article-record-grid, .article-record-results dl { grid-template-columns: minmax(0, 1fr); }
  .article-breadcrumb ol { font-size: .81rem; }
  .article-contents ol { columns: 1; }
  .article-callout, .article-template, .article-checklist { padding: .85em 1em; }
}
@media print {
  .article-record-actions, .article-record-status, .article-record-manual { display: none !important; }
  .article-print-path {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: white !important;
    color: black !important;
  }
  .article-print-path > :not(.article-print-path, .article-print-sheet) { display: none !important; }
  .article-print-path > .article-print-sheet {
    display: block;
    margin: 0;
    color: black;
    background: white;
    font: 11pt/1.45 system-ui, sans-serif;
  }
  .article-print-sheet h2 { margin: 0 0 .3em; font-size: 17pt; }
  .article-print-sheet p { margin: .6em 0; font-size: 10pt; }
  .article-print-sheet table { width: 100%; margin: 1em 0; border-collapse: collapse; table-layout: fixed; }
  .article-print-sheet tr { break-inside: avoid; }
  .article-print-sheet th, .article-print-sheet td {
    padding: .55em .65em;
    border-bottom: 1px solid #bbb;
    text-align: start;
    vertical-align: top;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .article-print-sheet th { width: 40%; }
  .article-print-sheet td:empty { height: 2.5em; }
  .article-header { padding: 0 0 1rem; color: black; background: white; border-bottom: 1px solid; }
  .article-header-grid { display: block; margin: 0; }
  .article-heading h1 { font-size: 26pt; }
  .article-view :is(.article-breadcrumb, .article-contents, .article-cite-jump, .article-service) { display: none; }
  .article-header :is(.article-kicker, .article-summary, .article-folio, .article-meta-scope, dt) { color: black; }
  .article-meta { max-width: none; margin-top: 1rem; padding: 0; border: 0; }
  .article-sheet { width: 100%; max-width: none; padding-block: 1rem; }
  .article-prose { font-size: 11pt; }
  .article-prose :is(h2, h3, h4) { break-after: avoid; }
  .article-table { overflow: visible; }
  .article-table table { min-width: 0; font-size: 9pt; }
  .article-table thead th { color: black; background: white; }
  .article-table tr { break-inside: avoid; }
}
