:root {
  color-scheme: dark;
  --background: #111114;
  --surface: #19191f;
  --line: #32323f;
  --text: #f5f5fa;
  --muted: #a8a8bd;
  --blue: #a8baff;
  --purple: #a8baff;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.75 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #5579ed, #a8baff);
}
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: #c0edff; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; border-radius: 3px; }
.skip { position: absolute; left: 16px; top: -100px; padding: 12px 18px; background: var(--surface); z-index: 1; }
.skip:focus { top: 12px; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 750; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #6679ae; border-radius: 10px; color: var(--blue); }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; line-height: 1.25; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { border-radius: 8px; padding: 7px 14px; text-decoration: none; color: var(--muted); font-size: 14px; }
.tabs a:hover { background: var(--surface); color: var(--text); }
.tabs a[aria-current="page"] { color: var(--blue); background: #262747; }
.hero { padding: 54px 0 38px; max-width: 800px; }
.eyebrow { color: var(--purple); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 750; }
.lead { color: var(--muted); font-size: 18px; max-width: 690px; margin: 0 0 18px; }
.date { color: var(--muted); font-size: 13px; }
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 44px; padding-bottom: 64px; }
.contents { position: sticky; top: 24px; font-size: 14px; }
.contents-title { margin: 0 0 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contents a { display: block; color: var(--muted); text-decoration: none; padding: 7px 0; }
.contents a:hover { color: var(--blue); }
article { min-width: 0; }
section + section { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 26px; }
h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 22px; margin: 12px 0; }
li { margin: 8px 0; padding-left: 3px; }
code { font-size: .9em; background: #262747; border: 1px solid #525994; border-radius: 5px; padding: 2px 5px; color: #d9d6ff; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 18px 0; }
.card p + p { margin-top: 8px; }
.card address { font-style: normal; }
.note { border-left: 3px solid var(--purple); padding: 16px 20px; background: #252138; border-radius: 0 10px 10px 0; margin: 18px 0; }
.note strong { color: #a8baff; }
.data-list { margin: 0; }
.data-list dt { color: var(--blue); font-weight: 650; margin: 20px 0 4px; }
.data-list dd { margin: 0; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 13px; }
.footer p { margin: 0; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .topbar { align-items: flex-start; flex-direction: column; gap: 16px; padding: 20px 0; }
  .tabs { gap: 4px; }
  .tabs a { padding: 7px 12px; }
  .hero { padding: 34px 0 28px; }
  .lead { font-size: 16px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 40px; }
  .contents { position: static; background: var(--surface); border-radius: 12px; padding: 16px 20px; }
  .contents-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .card { padding: 20px; }
}
@media print {
  :root { color-scheme: light; --text: #182030; --muted: #404b60; --line: #cbd1da; --surface: #f4f6f9; --blue: #155481; --purple: #513383; }
  body { background: white; font-size: 10pt; }
  body::before, .skip, .tabs, .contents { display: none; }
  .shell { width: 100%; }
  .hero { padding: 24px 0; }
  h1 { font-size: 28pt; }
  .lead { font-size: 11pt; }
  .layout { display: block; padding-bottom: 20px; }
  h2, h3 { break-after: avoid; }
  .card { break-inside: avoid; }
  .note { background: #f3effa; }
  .note strong { color: #513383; }
  code { color: #182030; background: #eef1f5; border-color: #cbd1da; }
  a { color: #155481; }
}

.brand { color: var(--text); text-decoration: none; }
body::before { background: linear-gradient(90deg, #29a6e9, #5579ed 40%, #a749fc 76%, #e570db); }
