.artifact-shell {
  width: min(100% - 3rem, 58rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 7vw, 6rem);
}

.artifact-topnav,
.back-link { font-size: 0.8rem; }

h1 {
  max-width: 24ch;
  margin: 0;
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--ink);
  font: 700 clamp(1.75rem, 5.5vw, 4.4rem)/1.05 var(--font-display);
  letter-spacing: -0.045em;
}

.log-intro {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  font: 400 clamp(0.78rem, 1.3vw, 0.92rem)/1.65 var(--font-display);
}

.log-intro p { max-width: 76ch; }
.log-intro p + p { margin-top: 0.9rem; }

.log-document { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }

.log-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--ink); }

.log-document table {
  width: 100%;
  min-width: 84rem;
  border-collapse: collapse;
  background: var(--surface);
  font: 400 0.8rem/1.5 var(--font-display);
}

.log-document th,
.log-document td {
  min-width: 7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.log-document th {
  color: var(--surface);
  background: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.log-document td:first-child,
.log-document th:first-child { min-width: 6rem; }

/* Local one-off green: marks the 4 columns worth scanning first (PIR,
   название, статус, дата сообщения). Doesn't replace the site accent;
   dark --ink text keeps full contrast on the light tint. */
.log-document th.is-key { box-shadow: inset 0 -0.25rem 0 #3fa66b; }

.log-document td.is-key {
  background: #e6f4ea;
  font-weight: 500;
}

.log-caption {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font: 400 clamp(0.72rem, 1.2vw, 0.82rem)/1.5 var(--font-display);
}

@media (max-width: 620px) {
  .artifact-shell { width: min(100% - 2rem, 58rem); }
}
