.site-footer {
  margin-block-start: var(--section-space);
  padding: clamp(38px, 5vw, 72px) 0 22px;
  background: #201e24;
  border-top: 1px solid var(--rule);
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.45fr .85fr 1.05fr;
  gap: clamp(32px, 5vw, 76px);
}
.footer-identity > a:first-child { display: inline-flex; align-items: center; min-height: 44px; }
.footer-identity img { width: clamp(200px, 23vw, 288px); height: auto; }
.footer-identity p { color: var(--muted); margin: 6px 0 16px; }
.footer-contacts { display: grid; justify-items: start; font-style: normal; }
.footer-email { font-size: clamp(20px, 2vw, 27px); font-weight: 500; letter-spacing: -.025em; }
.footer-contact { color: var(--lilac); font-weight: 600; }
.footer-contact span, .footer-meta a span { margin-left: .2em; }
.footer-links h2 { font-size: 17px; letter-spacing: 0; line-height: 1.45; margin: 6px 0 12px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links a, .footer-contact, .footer-meta a { display: inline-block; padding-block: 5px; }
.footer-links a { color: var(--muted); }
.site-footer #privacy { font-size: inherit; margin: 0; color: var(--muted); }
.site-footer a:hover, .site-footer #privacy:hover, .document-page a:hover { color: var(--lime); }
.footer-meta {
  margin-top: clamp(32px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 12px 32px;
  color: var(--muted);
  font-size: .875rem;
}
.footer-ids { display: inline-flex; flex-wrap: wrap; gap: 0 1em; margin-left: 1em; font-variant-numeric: tabular-nums; }
.footer-ids span { white-space: nowrap; }
.footer-meta a { margin-left: auto; white-space: nowrap; }
.draft-note { margin: 0 0 12px; }
.draft-note a, .doc-body a { color: var(--lilac); text-decoration: underline; text-underline-offset: .18em; }

.document-page { min-height: 100vh; }
.doc-header, .doc-end { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.doc-header { min-height: 72px; border-bottom: 1px solid var(--rule); }
.doc-header img { width: clamp(145px, 20vw, 184px); height: auto; }
.doc-header > a { display: inline-flex; align-items: center; min-height: 44px; }
.doc-header a:last-child, .doc-end a { color: var(--lilac); }
.doc-layout { display: grid; grid-template-columns: minmax(0, 730px) minmax(178px, 228px); justify-content: space-between; gap: clamp(40px, 7vw, 108px); padding-block: clamp(36px, 6vw, 82px); }
.doc-nav { align-self: start; border-top: 1px solid var(--rule); }
.doc-nav h2 { padding: 12px 0; color: var(--muted); font-size: 1rem; letter-spacing: 0; }
.doc-nav ul { list-style: none; padding: 0; }
.doc-nav a { display: block; padding-block: 9px; line-height: 1.4; }
.doc-nav [aria-current="page"] { color: var(--lime); font-weight: 600; }
.doc-body { min-width: 0; }
.doc-body h1 { font-size: clamp(32px, 4vw, 62px); letter-spacing: -.04em; line-height: 1.05; overflow-wrap: break-word; }
.doc-body h2 { margin: 32px 0 10px; font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -.024em; line-height: 1.2; }
.doc-date { color: var(--muted); margin-bottom: 14px; font-size: .9rem; }
.doc-body p:not(.doc-date), .doc-body ul { margin-top: 12px; max-width: 72ch; }
.doc-body ul { padding-left: 1.3em; }
.doc-body li + li { margin-top: 8px; }
.doc-body .doc-lead { margin: 20px 0 28px; font-size: 1.125rem; }
.doc-facts { margin-block: 14px 24px; }
.doc-facts div { display: grid; grid-template-columns: minmax(10.5rem, .65fr) minmax(0, 1.35fr); gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--rule); }
.doc-facts dt { color: var(--muted); }
.doc-facts dd { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.doc-end { border-top: 1px solid var(--rule); color: var(--muted); padding-block: 20px; font-size: .9rem; }
@media (max-width: 760px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-sections { display: none; }
  .footer-meta { flex-wrap: wrap; justify-content: space-between; }
  .footer-meta p:nth-child(2) { order: 2; width: 100%; }
  .footer-ids { display: flex; margin-left: 0; }
  .doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .doc-nav { order: 2; margin-top: 16px; }
  .doc-body { order: 1; }
}
@media (max-width: 480px) {
  .footer-columns { grid-template-columns: minmax(0, 1fr); }
  .footer-links li a, .footer-contact, .footer-email { display: inline-flex; align-items: center; min-height: 44px; }
  .doc-facts div { grid-template-columns: 1fr; gap: 4px; }
}
@media print {
  :root, .document-page { background: white; color: black; }
  .doc-header, .doc-nav, .doc-end, .doc-action { display: none; }
  .doc-layout { display: block; width: 100%; padding: 0; }
  .doc-body h1 { font-size: 24pt; }
  .doc-body h2 { font-size: 15pt; break-after: avoid; }
  .doc-date, .doc-facts dt, .doc-body a { color: #333; }
  .doc-facts div { break-inside: avoid; }
}
