:root {
  color-scheme: light;
  --paper: #ffffff;
  --canvas: #f6f6f7;
  --ink: #0f1013;
  --text: #3c4048;
  --muted: #8a8f99;
  --line: #ececee;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); text-decoration-color: rgba(15, 16, 19, .3); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
strong { color: var(--ink); font-weight: 700; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 40px; }

.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1200px; margin-inline: auto; padding: 32px 40px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 19px; font-weight: 800; letter-spacing: .06em; }
.pill { flex: 0 0 auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s; }
.pill:hover { background: var(--canvas); }

main { padding-bottom: 80px; }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 28px; color: var(--muted); font-size: 13px; }
.crumbs a { flex: 0 0 auto; color: var(--text); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main > h1:first-child { margin-top: 36px; }
h1 { margin: 12px 0 0; color: var(--ink); font-size: 30px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.document-id { white-space: nowrap; }

.article-body { max-width: 900px; margin-top: 28px; }
.article-body h2 { margin: 42px 0 0; color: var(--ink); font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: -.005em; }
.article-body section { scroll-margin-top: 24px; }
.article-body p { margin: 17px 0 0; color: var(--text); font-size: 16.5px; line-height: 1.75; }
.article-body > p.intro { margin-top: 0; }
.article-body .intro + section h2 { margin-top: 36px; }
.num { font-variant-numeric: tabular-nums; }

.article-body .sub { margin: 10px 0 0; padding: 0 0 0 26px; list-style: none; }
.article-body .sub li { position: relative; margin-top: 8px; color: var(--text); font-size: 16.5px; line-height: 1.75; }
.article-body .sub li::before { content: "—"; position: absolute; left: -24px; color: var(--muted); }

.article-body p.notice { padding: 16px 20px; border-radius: 16px; background: var(--canvas); }

.signature { margin-top: 42px; padding-top: 8px; border-top: 1px solid var(--line); }
.signature-line { display: inline-block; min-width: 250px; border-bottom: 1px solid var(--ink); }

.document-list { display: grid; gap: 12px; max-width: 900px; margin-top: 28px; }
.document-card { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none; transition: background .15s; }
.document-card:hover { background: var(--canvas); }
.document-card strong { display: block; font-size: 17px; font-weight: 800; }
.document-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { padding-top: 28px; padding-bottom: 48px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.footer-links a { color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.site-footer p a { color: var(--muted); }

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .site-header .bar { padding: 24px 16px 0; }
  h1 { font-size: 24px; }
  .article-body h2 { margin-top: 36px; font-size: 21px; }
  .article-body p, .article-body .sub li { font-size: 16px; line-height: 1.7; }
  .signature-line { min-width: 160px; }
}

@media print {
  @page { size: A4; margin: 18mm; }
  html, body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .crumbs { display: none !important; }
  .container { padding: 0; max-width: none; }
  main { padding: 0; }
  a { color: inherit; text-decoration: none; }
  .article-body { max-width: none; }
  .article-body p, .article-body .sub li { font-size: 11pt; line-height: 1.55; }
  .article-body h2 { break-after: avoid; }
  .article-body p.notice { border: 1px solid var(--line); }
}
