:root {
  color-scheme: light;
  --bg: #f4f5f1;
  --panel: #ffffff;
  --ink: #202421;
  --muted: #66706a;
  --line: #d9ded6;
  --green: #2f7d59;
  --blue: #386f91;
  --amber: #a87721;
  --red: #a3483c;
  --soft: #fbfcf8;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
h1,
h2,
p,
dl,
dd {
  margin: 0;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top-links a,
.section-link,
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.top-links a,
.section-link {
  min-height: 36px;
  padding: 8px 12px;
  font-weight: 700;
}

.hero-panel,
.section-band {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 24px;
  align-items: end;
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-pill.active {
  border-color: rgba(47, 125, 89, .4);
  color: var(--green);
}

.status-pill.warn {
  border-color: rgba(168, 119, 33, .45);
  color: var(--amber);
}

.hero-panel p,
.section-copy p,
.item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-panel h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-stats div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.quick-stats dt {
  color: var(--muted);
  font-size: 13px;
}

.quick-stats dd {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.section-band {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
}

.section-copy {
  display: grid;
  gap: 8px;
}

.stock-band {
  border-left: 5px solid var(--green);
}

.wind-band {
  border-left: 5px solid var(--blue);
}

.pain-band {
  border-left: 5px solid var(--amber);
}

.panel-list {
  display: grid;
  gap: 10px;
}

.item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.section-link {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .topbar,
  .hero-panel,
  .section-band {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    align-items: start;
  }

  .top-links,
  .section-link {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100vw - 20px, 1280px);
    padding-top: 18px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-panel {
    padding: 18px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }
}
