:root {
  --brown: #2E2219;
  --brown-soft: #3E2F22;
  --cream: #F5EEDC;
  --cream-soft: #FAF5E8;
  --gold-pale: #FFF8DC;
  --gold: #FFE066;
  --gold-strong: #FFCD00;
  --gold-deep: #EAB600;
  --yellow: #FFD968;
  --muted: #7a6647;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--brown);
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  color: var(--brown);
  display: flex;
  padding: 5px;
  min-height: 100vh;
  background: var(--brown);
}

.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border-radius: 22px;
  background:
    radial-gradient(135% 115% at 28% 32%, var(--gold-pale) 0%, #FFF1B8 38%, var(--gold-strong) 76%, var(--gold-deep) 100%);
}

.content {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  display: block;
  padding: 6px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(46, 34, 25, 0.25);
}

h1 {
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 8px;
}

.tagline {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 28px;
  line-height: 1.4;
}

.pill {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid var(--brown);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--cream);
  background: var(--brown);
  border-radius: 18px;
  padding: 16px 22px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 10px 24px rgba(46, 34, 25, 0.3);
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn[disabled] { opacity: 0.55; cursor: default; box-shadow: none; transform: none; filter: none; }

.greeting {
  font-size: 0.95rem;
  margin: 0 0 18px;
  color: var(--brown);
}
.greeting strong { font-weight: 800; }

details {
  margin-top: 22px;
  text-align: left;
}
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 6px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--brown); }

.alt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.alt button {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--brown);
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}
.alt button:hover { background: #fff; }
.alt button[disabled] { opacity: 0.5; cursor: default; }

.note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.footer {
  margin-top: 26px;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer a:hover { color: var(--brown); }

.hidden { display: none !important; }

@media (max-width: 520px) {
  body { padding: 4px; }
  .page { padding: 36px 22px; border-radius: 18px; }
  h1 { font-size: 1.8rem; }
}

@media (max-width: 640px) {
  .doc-layout {
    flex-direction: column;
  }
  .doc-nav {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    flex-basis: auto;
  }
}

.content.content--wide {
  max-width: 1040px;
  text-align: left;
}
.content--wide h1,
.content--wide .logo {
  text-align: center;
}
.content--wide h1 {
  margin-bottom: 32px;
}
.content--wide h2 {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.content--wide section {
  background: #fff;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 22px rgba(46, 34, 25, 0.12);
}
.content--wide section:last-of-type {
  margin-bottom: 0;
}
.content--wide p,
.content--wide li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--brown);
  text-align: justify;
}
.content--wide ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.doc-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 8px;
}
.doc-nav {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 24px;
}
.doc-nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brown);
  text-decoration: none;
  border: 1.5px solid transparent;
}
.doc-nav-link:hover {
  background: rgba(255, 255, 255, 0.5);
}
.doc-nav-link.is-active {
  background: #fff;
  border-color: var(--brown);
  box-shadow: 0 6px 16px rgba(46, 34, 25, 0.15);
}
.doc-panel {
  flex: 1;
  min-width: 0;
}
.doc-section {
  display: none;
}
.doc-section.is-active {
  display: block;
}

table.dep-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.88rem;
}
table.dep-table th,
table.dep-table td {
  border: 1px solid var(--muted);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
table.dep-table th {
  background: rgba(46, 34, 25, 0.06);
  font-weight: 800;
  color: var(--brown);
}
table.dep-table td {
  color: var(--brown);
}
table.dep-table code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
}
