:root {
  --bg: #08111c;
  --deep: #03070c;
  --orange: #ff8a2b;
  --orange-soft: #ffb26d;
  --cream: #efe4cf;
  --muted: #b7aa94;
  --line: rgba(255, 138, 43, .24);
  --surface: rgba(255, 255, 255, .055);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 43, .1), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--deep));
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.72;
}
a { color: var(--orange-soft); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 32px);
  background: rgba(3, 7, 12, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 850;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.menu-button {
  display: none;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--orange);
  background: transparent;
  font-weight: 800;
}
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px) clamp(16px, 4vw, 32px) 72px;
}
.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100svh - 110px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}
.search-label {
  display: block;
  color: var(--orange-soft);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.search-input {
  width: 100%;
  min-height: 44px;
  margin: 8px 0 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(3, 7, 12, .58);
}
.search-results {
  display: none;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.search-results a {
  display: block;
  padding: 10px 12px;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 138, 43, .12);
}
.search-results a:hover { background: rgba(255, 138, 43, .12); }
.nav-group {
  margin: 16px 0;
}
.nav-group > span {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}
.nav-link {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
}
.nav-link.child { padding-left: 12px; }
.nav-link:hover,
.nav-link.active {
  color: var(--cream);
}
.content {
  min-width: 0;
  max-width: 780px;
}
h1, h2, h3 {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.12;
}
h1 {
  margin-top: 0;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  line-height: .98;
}
h2 { margin-top: 2.2rem; font-size: clamp(1.55rem, 4vw, 2.2rem); }
h3 { margin-top: 1.8rem; font-size: 1.35rem; }
p, li { color: rgba(239, 228, 207, .92); }
code {
  padding: .12rem .32rem;
  border-radius: 4px;
  color: var(--orange-soft);
  background: rgba(255, 255, 255, .075);
}
pre {
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 12, .72);
}
pre code { padding: 0; background: transparent; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
th, td {
  padding: .75rem;
  border-bottom: 1px solid rgba(255, 138, 43, .14);
  text-align: left;
}
th { color: var(--orange-soft); }
.bw-hero,
.bw-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}
.bw-hero {
  padding: clamp(1.25rem, 4vw, 2.4rem);
  margin-bottom: 2rem;
  background:
    linear-gradient(rgba(3, 7, 12, .72), rgba(8, 17, 28, .94)),
    radial-gradient(circle at top right, rgba(255, 138, 43, .16), transparent 24rem);
}
.bw-hero h1 {
  max-width: 12ch;
  margin: 0 0 .8rem;
}
.bw-kicker {
  margin: 0 0 .5rem;
  color: var(--orange-soft);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bw-links,
.bw-card-grid {
  display: grid;
  gap: .75rem;
}
.bw-links {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin-top: 1.4rem;
}
.bw-links a {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 138, 43, .35);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.bw-links a:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
  box-shadow: 0 0 24px rgba(255, 138, 43, .16);
}
.bw-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 1rem;
}
.bw-card {
  display: grid;
  gap: .35rem;
  min-height: 8rem;
  padding: 1rem;
  color: var(--cream);
  text-decoration: none;
}
.bw-card strong {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}
.bw-card span { color: var(--muted); }
@media (max-width: 860px) {
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: static;
    max-height: none;
  }
  .sidebar.open { display: block; }
}
