*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.hai-page {
  --background: 45 35% 95%;
  --foreground: 222 40% 12%;
  --card: 45 50% 99%;
  --primary: 14 70% 44%;
  --secondary: 222 30% 22%;
  --secondary-foreground: 45 35% 96%;
  --accent: 38 78% 48%;
  --muted: 45 18% 88%;
  --muted-foreground: 222 15% 38%;
  --border: 222 15% 80%;
  --rule: 222 18% 75%;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}
.hai-page .wg-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  position: sticky; top: 0; z-index: 10;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.hai-page .wg-topbar-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hai-page .wg-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; color: hsl(var(--foreground)); text-decoration: none;
  font-size: 14px;
}
.hai-page .wg-brand-mark {
  width: 26px; height: 26px; border-radius: 4px;
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 12px;
}
.hai-page .wg-nav-tabs {
  display: flex; align-items: center; gap: 2px; margin-left: 18px;
  overflow-x: auto; scrollbar-width: none;
}
.hai-page .wg-nav-tabs::-webkit-scrollbar { display: none; }
.hai-page .wg-nav-tab {
  padding: 6px 10px; font-size: 12.5px; font-weight: 500;
  color: hsl(var(--muted-foreground)); border-radius: 4px;
  text-decoration: none; white-space: nowrap;
}
.hai-page .wg-nav-tab:hover { color: hsl(var(--foreground)); }
.hai-page .hai-main { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.hai-page h1 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 2.1rem; line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 16px;
}
.hai-page h2 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem; margin: 28px 0 8px;
}
.hai-page p { margin: 0 0 16px; }
.hai-page a { color: hsl(var(--primary)); }
.hai-page .hai-stub {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px; line-height: 1.45;
  color: hsl(var(--muted-foreground));
  border: 1px dashed hsl(var(--border));
  border-radius: 6px; padding: 10px 12px; margin: 0 0 16px;
}
.hai-page .hai-footer {
  margin-top: 40px; padding-top: 16px;
  border-top: 1px solid hsl(var(--border));
  font-size: 14px; color: hsl(var(--muted-foreground));
}
@media (max-width: 720px) {
  .hai-page h1 { font-size: 1.6rem; }
  .hai-page .wg-topbar { padding: 8px 12px; }
}
