:root {
  --bg: #f4f2e9;
  --surface: #fffdf7;
  --ink: #1f241a;
  --muted: #67705f;
  --line: #dfdccb;
  --olive: #6f7d36;
  --green: #25725e;
  --gold: #c3913d;
  --deep: #263524;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.network-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.network-nav {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 22px;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fbfaf2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
}

.menu-button {
  display: none;
}

nav {
  display: grid;
  gap: 8px;
}

nav button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

nav .is-active {
  border-color: var(--olive);
  background: var(--olive);
  color: #fff;
}

main {
  padding: 26px;
}

.network-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  letter-spacing: 0;
}

p,
li,
span {
  color: var(--muted);
  line-height: 1.55;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.network-hero,
.network-grid,
.school-board {
  display: grid;
  gap: 18px;
}

.network-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  min-height: 520px;
}

.network-hero article,
.story-panel,
.kanban-panel,
.permission-panel,
.feed-panel,
.impact-panel,
.school-board,
.funnel article,
.network-photo {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(45, 55, 35, 0.08);
}

.network-photo {
  overflow: hidden;
  margin: 18px 0 0;
  height: 340px;
}

.network-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.network-hero article,
.story-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 48px);
  background: var(--deep);
  color: #fff;
}

.network-hero h2,
.story-panel h2 {
  max-width: 860px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
}

.network-hero article p:not(.eyebrow),
.story-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.actor-map {
  position: relative;
  min-height: 520px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(111, 125, 54, 0.2), transparent 32%),
    #eef1df;
  border: 1px solid var(--line);
}

.actor {
  position: absolute;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(45, 55, 35, 0.12);
}

.center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--green);
  color: #fff;
}

.a1 { left: 9%; top: 16%; }
.a2 { right: 10%; top: 12%; }
.a3 { right: 8%; bottom: 18%; }
.a4 { left: 12%; bottom: 13%; }
.a5 { left: 40%; top: 5%; }

.network-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
}

.kanban-panel,
.permission-panel,
.feed-panel,
.impact-panel,
.school-board {
  padding: 22px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.kanban section {
  min-height: 220px;
  padding: 14px;
  border-radius: 14px;
  background: #f5f4ea;
}

.kanban ul,
.permission-panel ul,
.feed-panel ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.kanban li,
.permission-panel li,
.feed-panel li {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
}

form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}

input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
}

form button,
.feed-panel button,
.school-board button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font-weight: 850;
}

.permission-panel li {
  display: flex;
  gap: 10px;
}

.permission-panel li span {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--green);
}

.school-board {
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(160px, 0.3fr));
  align-items: stretch;
}

.school-board .story-panel {
  min-height: 360px;
}

.impact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.impact-panel div {
  padding: 18px;
  border-radius: 14px;
  background: #f5f4ea;
}

.impact-panel strong {
  display: block;
  color: var(--green);
  font-size: 2.5rem;
}

.funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.funnel article {
  min-height: 280px;
  padding: 24px;
}

.funnel span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-weight: 850;
}

.module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.module-cloud span {
  padding: 12px 14px;
  border-radius: 999px;
  background: #f5f4ea;
  color: var(--ink);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #1f241a;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .network-shell,
  .network-hero,
  .network-grid,
  .school-board,
  .funnel {
    grid-template-columns: 1fr;
  }

  .network-nav {
    position: static;
    height: auto;
  }

  nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main,
  .network-nav {
    padding: 16px;
  }

  nav,
  .kanban,
  .impact-panel {
    grid-template-columns: 1fr;
  }

  .actor-map {
    min-height: 420px;
  }

  .actor {
    width: 94px;
    height: 94px;
    font-size: 0.86rem;
  }

  form {
    grid-template-columns: 1fr;
  }
}
