:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f4f0;
  color: #17211c;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button { font: inherit; }

.shell { min-height: 100vh; }
.loading-panel { display: grid; min-height: 100vh; place-items: center; color: #536059; }
#app { display: grid; min-height: 100vh; grid-template-columns: 292px minmax(0, 1fr); }

.navigation {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 18px 20px;
  background: #173b30;
  color: #edf4ee;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #dc7250; color: #fff; }
.eyebrow { margin: 0; color: #7b877e; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.navigation .eyebrow { color: #9eb9aa; }

#document-list { display: grid; gap: 10px; overflow: auto; }
.nav-section { display: grid; gap: 3px; }
.nav-eyebrow { cursor: pointer; list-style: none; padding: 8px 8px 5px; }
.nav-eyebrow::-webkit-details-marker { display: none; }
.nav-eyebrow::before { content: "−"; display: inline-block; width: 14px; color: #dc7250; }
.nav-section:not([open]) .nav-eyebrow::before { content: "+"; }
.document-link { width: 100%; padding: 8px 11px; border: 0; border-radius: 7px; background: transparent; color: #dce9df; text-align: left; cursor: pointer; font-size: .86rem; line-height: 1.35; }
.document-link:hover, .document-link[aria-current="page"] { background: #285343; color: #fff; }

.account { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid #37604f; color: #bcd1c2; font-size: .78rem; }
.account button { width: fit-content; padding: 0; border: 0; background: transparent; color: #f0b39f; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.document-panel { max-width: 900px; padding: clamp(32px, 7vw, 88px) clamp(24px, 7vw, 96px); }
.document-header { padding-bottom: 22px; border-bottom: 1px solid #d9dbd4; }
.document-header h1 { max-width: 720px; margin: 0 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.2vw, 3.7rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.release { margin: 0; color: #66736a; font-size: .8rem; }
.metadata-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; margin: 0 0 12px; color: #647269; font-size: .76rem; }
.metadata-item b { margin-right: 3px; color: #35433a; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.metadata-reference { margin-left: auto; border-radius: 999px; padding: 3px 8px; background: #e8e9e4; color: #536059; font-family: "SFMono-Regular", Consolas, monospace; font-size: .7rem; }
.document-body { max-width: 760px; padding-top: 28px; font-size: 1rem; line-height: 1.7; }
.wiki-line { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; margin: 0; padding: 2px 5px 2px 0; border-radius: 4px; scroll-margin-top: 48px; }
.line-gutter { color: #a0aaa3; font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; line-height: 2.55; text-align: right; user-select: none; }
.line-content { min-width: 0; }
.document-body h1, .document-body h2, .document-body h3 { margin-top: 2.1em; margin-bottom: .65em; font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
.document-body h1 { font-size: 1.8rem; }.document-body h2 { font-size: 1.4rem; }.document-body h3 { font-size: 1.1rem; }
.document-body p, .document-body li { color: #35433a; }.document-body code { padding: 1px 4px; border-radius: 3px; background: #e8e9e4; font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; }.blank-line { min-height: 12px; }.list-line .line-content::before { content: "•"; margin-right: 8px; color: #dc7250; }.list-line.ordered { counter-increment: ordered-lines; }.list-line.ordered .line-content::before { content: ""; }
.wiki-table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: .88rem; scroll-margin-top: 48px; }.wiki-table th, .wiki-table td { padding: 8px 10px; border-bottom: 1px solid #d9dbd4; text-align: left; vertical-align: top; }.wiki-table th { color: #26372d; background: #ecece8; font-size: .73rem; letter-spacing: .03em; }.wiki-table .table-gutter { width: 42px; padding: 8px 6px 8px 0; background: transparent; color: #a0aaa3; font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; font-weight: 400; line-height: 1.6; text-align: right; }
.highlighted { background: #f9e8a7 !important; box-shadow: inset 3px 0 0 #dc7250; }

@media (max-width: 720px) { #app { grid-template-columns: 1fr; }.navigation { min-height: auto; }.account { margin-top: 0; }.document-panel { padding-top: 38px; }.wiki-line { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }.line-gutter { font-size: .62rem; }.metadata-reference { margin-left: 0; } }
