:root {
  color-scheme: light;
  --ink: #151917;
  --muted: #5b6460;
  --line: #d8dfdc;
  --paper: #ffffff;
  --surface: #f3f7f5;
  --surface-strong: #e7eeea;
  --green: #116b4f;
  --green-dark: #0d4f3c;
  --red: #a33b32;
  --yellow: #b67b13;
  --cyan: #11728a;
  --shadow: 0 16px 50px rgba(21, 25, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 24px;
  overflow: auto;
  background: #13231e;
  color: #f8fbfa;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: #f8fbfa;
  color: #13231e;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.section-nav small {
  color: rgba(248, 251, 250, 0.72);
}

.search-label {
  color: rgba(248, 251, 250, 0.78);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.search-input::placeholder {
  color: rgba(248, 251, 250, 0.55);
}

.search-input:focus {
  border-color: #91d4ba;
  box-shadow: 0 0 0 3px rgba(145, 212, 186, 0.18);
}

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

.section-nav a {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a.active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.content {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.overview-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #ffffff 0%, #f2f8f4 68%, #eef7f8 100%);
  box-shadow: var(--shadow);
}

.overview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.action-link--subtle {
  background: transparent;
  color: var(--green-dark);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: 2.25rem;
  line-height: 1.1;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.overview-image,
.section-image {
  margin: 0;
}

.overview-image img,
.section-image img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.overview-image figcaption,
.section-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.status-strip article {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.status-strip strong {
  color: var(--green-dark);
}

.status-strip span {
  color: var(--muted);
  line-height: 1.4;
}

.search-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.search-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.search-head span {
  color: var(--muted);
}

.result-list {
  display: grid;
}

.result-list a,
.result-list p {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.result-list a:last-child {
  border-bottom: 0;
}

.result-list a:hover {
  background: var(--surface);
}

.result-list span {
  color: var(--muted);
  line-height: 1.4;
}

.section-panel {
  display: grid;
  gap: 22px;
}

.section-header {
  display: grid;
  gap: 2px;
  max-width: 920px;
}

.section-image img {
  height: 320px;
}

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

.info-card {
  min-height: 174px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
}

.info-card:nth-child(2n) {
  border-top-color: var(--cyan);
}

.info-card:nth-child(3n) {
  border-top-color: var(--yellow);
}

.info-card:nth-child(4n) {
  border-top-color: var(--red);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.flow-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--green-dark);
  font-weight: 800;
}

.flow-list strong {
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.detail-band span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1f372d;
  background: var(--surface);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.source-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.source-list h2 {
  font-size: 1.2rem;
}

.source-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.source-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.source-list a {
  color: var(--green-dark);
  font-weight: 800;
}

.source-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .card-grid,
  .flow-list,
  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .content {
    padding: 18px;
  }

  .overview-band {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .card-grid,
  .flow-list,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .overview-image img,
  .section-image img {
    height: 220px;
  }
}

@media (max-width: 520px) {
  .section-nav {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 14px;
  }

  .overview-band {
    padding: 16px;
  }

  h1 {
    font-size: 1.55rem;
  }
}
