.article-shell {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.article-breadcrumbs {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-breadcrumbs a,
.article-shell a {
  color: var(--mustard-deep);
}

.article-hero,
.article-section,
.article-endnote {
  margin: 0 0 1rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.article-kicker {
  margin: 0 0 0.55rem;
  color: var(--mustard-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 23ch;
  margin: 0 0 0.8rem;
  color: var(--plum);
  font-size: clamp(1.85rem, 6vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.article-lead {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.article-section h2 {
  margin: 0 0 0.65rem;
  color: var(--plum);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  line-height: 1.35;
}

.article-section h3 {
  margin: 1.1rem 0 0.35rem;
  color: var(--plum);
  font-size: 1rem;
}

.article-section p:last-child,
.article-endnote p:last-child {
  margin-bottom: 0;
}

.article-section ol,
.article-section ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.4rem;
}

.article-sample {
  margin: 0.85rem 0;
  padding: 0.9rem 1rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: #f2ede3;
  border-left: 4px solid var(--mustard);
  border-radius: 0.35rem;
}

.article-sample p:last-child {
  margin-bottom: 0;
}

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.article-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.82rem;
}

.article-table caption {
  padding: 0.65rem;
  color: var(--muted);
  text-align: left;
  background: #f2ede3;
}

.article-table th,
.article-table td {
  padding: 0.62rem 0.7rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: var(--plum);
  background: #fbf8f1;
}

.article-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}

.article-download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.8rem;
  padding: 0.55rem 0.9rem;
  color: #fff !important;
  background: var(--plum);
  border-radius: 0.55rem;
  font-weight: 700;
  text-decoration: none;
}

.article-download:hover {
  background: var(--mustard-deep);
}

.article-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.9rem;
}

.article-endnote {
  color: var(--muted);
  font-size: 0.82rem;
}

.article-site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-site-footer a {
  color: var(--mustard-deep);
}

@media (max-width: 480px) {
  .article-shell {
    width: min(100% - 1rem, 860px);
    padding-top: 0.8rem;
  }

  .article-table {
    min-width: 570px;
  }
}
