:root {
  color-scheme: dark;
  --background: #101416;
  --surface: #171d20;
  --surface-elevated: #20272b;
  --text: #f6f1e8;
  --muted: #b8c0c2;
  --gold: #d8b35c;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

a {
  color: var(--gold);
}

.document-page {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.document-nav {
  display: grid;
  grid-template-columns: auto 1fr repeat(4, auto);
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.document-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.document-nav a[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}

.document-card {
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.document-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  margin-top: 32px;
  color: var(--gold);
  font-size: 1.2rem;
}

p,
li {
  color: var(--muted);
}

ul {
  padding-left: 1.25rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.support-box {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-elevated);
  color: inherit;
  text-decoration: none;
}

.support-box h2 {
  margin-top: 0;
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.notice {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-elevated);
}

.document-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 22px 0 0;
}

.document-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.document-footer a:hover,
.document-nav a:hover {
  color: var(--gold);
}

@media (max-width: 760px) {
  .document-nav {
    grid-template-columns: 1fr;
  }

  .document-nav span {
    display: none;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}
