:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; padding: 0; line-height: 1.5; color: #111; }

/* Top bar */
.topbar {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar a {
  color: #782f40;
  text-decoration: none;
  font-weight: 600;
}
.topbar span { color: #782f40; font-weight: 600; }

/* Layout with sidebar */
.layout {
  display: flex;
  align-items: flex-start;
}

/* Sidebar */
.sidebar {
  width: 220px;
  padding: 16px;
  border-right: 1px solid #eee;
  background: #fafafa;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar h3 {
  color: #782f40;
  margin-top: 0;
}
.sidebar a {
  display: block;
  color: #782f40;
  text-decoration: none;
  margin: 6px 0;
}
.sidebar a:hover { text-decoration: underline; }

.textbox {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  background-color: #f9f9f9;
  border-radius: 5px;
}
.textbox h3 {
  color: #782f40;
  margin-top: 0;
}

/* Main content */
.content {
  flex: 1;
  padding: 24px;
}
h1, h2, h3 { color: #782f40; margin: 0 0 8px; line-height: 1.2; }
section { margin: 20px 0 28px; }
p { margin: 0 0 12px; }
ul { margin: 8px 0 0 20px; }

/* Hamburger button - hidden on desktop */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #782f40;
}

/* Responsive: stack layout on small screens */
@media (max-width: 800px) {
  .layout { flex-direction: column; }

  .sidebar {
    display: none;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #eee;

    /* slide-down effect */
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 160ms ease-out;
  }
  .sidebar.active {
    display: block;
    transform: scaleY(1);
  }

  .menu-toggle { display: block; }
}
