.article-body {
  background: #fffaf5;
}

.article-header {
  border-bottom: 1px solid var(--cf-border);
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--cf-soft), #fff);
}

.article-hero,
.article-shell,
.article-list {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.article-hero {
  padding: 48px 0 52px;
}

.article-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  word-break: keep-all;
}

.article-deck {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.72;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 48px;
  padding: 44px 0 80px;
}

.article-content {
  min-width: 0;
  font-size: 18px;
  line-height: 1.82;
}

.article-content h2 {
  margin: 58px 0 16px;
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: 20px;
  text-wrap: balance;
  word-break: keep-all;
}

.article-content h3 {
  margin: 34px 0 12px;
  font-size: 22px;
  line-height: 1.35;
  scroll-margin-top: 20px;
  text-wrap: balance;
  word-break: keep-all;
}

.article-content p,
.article-content li {
  color: #374151;
}

.article-content a:not(.button) {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content figure {
  margin: 30px 0;
}

.article-content img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.1);
}

.article-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.article-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.article-toc strong {
  display: block;
  margin-bottom: 10px;
}

.article-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.notice {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #eff6ff;
}

.notice.warning {
  border-left-color: var(--cf-orange);
  background: var(--cf-soft);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.spec-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.spec-grid dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.spec-grid dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.table-region {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.result-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.result-table caption {
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.result-table th,
.result-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.result-table th {
  background: #f9fafb;
}

.pending {
  color: #9a3412;
  font-weight: 800;
}

.commercial-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button.unavailable {
  color: var(--muted);
  background: #f3f4f6;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .article-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-toc {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding: 34px 0 38px;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
