@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #183a32;
  --muted: #707a73;
  --line: #e0e5dc;
  --bg: #f7f8f3;
  --lime: #dff3a3;
  --green: #2d6455;
  --purple: #8072ab;
  --orange: #d68d47;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 "DM Sans",
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:hover {
  color: #426d39;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #72983d;
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 98px;
  padding: 0 4%;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-weight: 700;
  font-size: 19px;
}
.brandmark {
  font-size: 36px;
  letter-spacing: -3px;
  font-weight: 800;
}
.brandmark span {
  color: #7b974c;
  font-size: 36px;
  margin-left: 3px;
}
.brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 1px;
}
nav {
  display: flex;
  gap: 30px;
  height: 100%;
  align-items: center;
}
.nav {
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding: 0 2px;
}
.nav.active {
  border-color: var(--ink);
}
.prototype {
  font-size: 11px;
  letter-spacing: 1.4px;
  border: 1px solid #d5dec8;
  border-radius: 5px;
  padding: 7px 9px;
}
.prototype span {
  margin-left: 10px;
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 43px 4% 50px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #758168;
}
h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 2.7vw, 44px);
  letter-spacing: -1.9px;
  line-height: 1.25;
  margin: 10px 0 9px;
  font-weight: 600;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.scope {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.scope small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  margin-top: 3px;
}
.scope-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 620px;
}
.filters {
  padding: 22px 17px;
  border-right: 1px solid var(--line);
}
.search {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f8f5;
  border: 1px solid #e3e6de;
  border-radius: 5px;
  padding: 0 10px;
  margin-bottom: 29px;
}
.search > span {
  font-size: 24px;
  line-height: 1;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}
.search input:focus {
  outline: 0;
}
.search:focus-within {
  outline: 2px solid #72983d;
}
.filter-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #82897d;
  margin: 0 9px 13px;
}
.topic {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  border-radius: 5px;
  padding: 11px 10px;
  margin-bottom: 4px;
  text-align: left;
}
.topic .topic-icon {
  width: 17px;
  font-size: 18px;
}
.topic small {
  margin-left: auto;
  color: #879080;
  font-size: 11px;
}
.topic.active {
  background: #eaf0df;
  font-weight: 700;
}
.topic:hover {
  background: #f0f3e9;
}
.sidebar-note {
  display: flex;
  gap: 9px;
  border-top: 1px solid var(--line);
  margin: 24px 7px 0;
  padding-top: 16px;
}
.sidebar-note > span {
  font-size: 23px;
  color: #8d9d75;
}
.sidebar-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.sidebar-note strong {
  font-weight: 400;
}
.coverage {
  margin: 28px 8px 0;
}
.coverage > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.coverage strong {
  font-size: 29px;
  font-weight: 500;
}
.coverage > div span {
  font-size: 12px;
  color: var(--muted);
}
.coverage p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.coverage .eyebrow {
  font-size: 9px;
}
.graph-area {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.graph-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
  height: 70px;
  gap: 8px;
}
.graph-toolbar strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
#result-count {
  font-size: 11px;
  color: var(--muted);
}
.view-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px;
  gap: 2px;
}
.view-switch button {
  font-size: 13px;
  padding: 4px 9px;
  border-radius: 3px;
}
.view-switch button.selected {
  background: #eaf0df;
}
#canvas {
  position: relative;
  flex: 1;
  min-height: 490px;
  overflow: hidden;
  background-image: radial-gradient(#d5ddd0 0.7px, transparent 0.7px);
  background-size: 17px 17px;
}
#graph {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  min-height: 450px;
}
.graph-caption {
  position: absolute;
  left: 17px;
  bottom: 16px;
  color: #7c8478;
  font-size: 11px;
}
.zoom {
  position: absolute;
  bottom: 10px;
  right: 13px;
  display: flex;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  align-items: center;
}
.zoom button {
  padding: 7px 10px;
  font-size: 16px;
}
.zoom button:nth-child(2) {
  font-size: 11px;
  padding: 7px 4px;
}
.legend {
  padding: 15px 20px;
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.elected {
  background: var(--green);
}
.department {
  background: var(--purple);
}
.commission {
  background: var(--orange);
}
.edge {
  stroke: #c8d3c3;
  stroke-width: 1.3;
  fill: none;
  transition: opacity 0.2s;
}
.edge.selected {
  stroke: #769849;
  stroke-width: 2;
}
.node {
  cursor: pointer;
  transition: opacity 0.2s;
}
.node text {
  fill: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}
.node circle {
  stroke-width: 1.6;
  transition: stroke-width 0.15s;
}
.node:hover circle,
.node:focus circle {
  stroke-width: 4;
}
.node:focus {
  outline: none;
}
.node.selected .halo {
  fill: #e9f2d5;
  stroke: #c3d996;
  stroke-dasharray: 3 4;
}
.node .halo {
  fill: none;
  stroke: none;
}
.node.dim,
.edge.dim {
  opacity: 0.13;
}
.node .initials {
  font-size: 14px;
  font-weight: 600;
}
.node.central text {
  font-size: 15px;
  font-weight: 700;
}
.detail {
  border-left: 1px solid var(--line);
  padding: 25px 23px;
  background: #fcfdf9;
}
.detail-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.detail-icon {
  width: 49px;
  height: 49px;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-size: 25px;
  border-radius: 9px;
  margin: 29px 0 16px;
}
.detail h2 {
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.9px;
  margin: 0 0 7px;
}
.detail .jurisdiction {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 20px;
}
.detail .description {
  font-size: 14px;
  line-height: 1.7;
  color: #5a695f;
}
.detail h3 {
  font-size: 10px;
  letter-spacing: 1.4px;
  margin: 25px 0 10px;
  font-weight: 600;
  color: var(--muted);
}
.connection {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.connection span {
  display: block;
  font-size: 13px;
}
.connection small {
  font-size: 11px;
  color: var(--muted);
}
.detail .source-link {
  display: block;
  font-size: 13px;
  padding: 12px 0 0;
  margin-top: 17px;
}
.detail-note {
  font-size: 10px;
  color: #84907e;
  margin-top: 10px;
}
.under-map {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #7d8578;
  margin: 12px 1px 36px;
}
.under-map > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.under-map i {
  width: 5px;
  height: 5px;
  background: #7b9660;
  border-radius: 50%;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 22px;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin: 0;
}
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.pathway-grid > button {
  display: flex;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px 18px;
  gap: 14px;
  align-items: start;
}
.pathway-grid > button:hover {
  border-color: #8fa866;
  background: #f2f6e9;
}
.path-icon {
  width: 33px;
  height: 33px;
  background: #f0f3e8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
}
.pathway-grid small {
  font-size: 9px;
  letter-spacing: 1.4px;
  display: block;
  color: #7c876f;
  margin-bottom: 7px;
}
.pathway-grid strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.pathway-grid span span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.pathway-grid b {
  font-size: 17px;
  margin-left: auto;
  font-weight: 400;
}
footer {
  border-top: 1px solid var(--line);
  padding: 27px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  gap: 20px;
}
.footer-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.footer-brand strong {
  font-size: 13px;
  vertical-align: middle;
  margin-left: 6px;
}
footer button {
  font-size: 12px;
}
#directory {
  padding: 15px;
  max-height: 500px;
  overflow: auto;
  flex: 1;
}
.directory-row {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.directory-row:hover {
  background: #f1f5e8;
}
.directory-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.directory-row b {
  margin-left: auto;
}
.directory-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}
#empty {
  position: absolute;
  top: 45%;
  width: 100%;
  text-align: center;
  background: #fff;
  padding: 20px;
}
#empty button {
  display: block;
  margin: 10px auto;
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
.reading-page {
  max-width: 1150px;
  margin: 25px auto 60px;
  min-height: 600px;
}
.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 740px;
}
.budget-intro {
  background: var(--ink);
  color: #edf3e4;
  border-radius: 10px;
  padding: 40px;
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 25px;
  align-items: center;
  margin: 40px 0 25px;
}
.budget-intro > span {
  color: var(--lime);
  font-size: 13px;
}
.budget-intro h2 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
}
.budget-intro p {
  font-size: 15px;
  color: #c9d6c4;
}
.budget-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.budget-steps article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px 20px;
}
.budget-steps small {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.budget-steps h2 {
  font-size: 21px;
  font-weight: 500;
}
.budget-steps p {
  font-size: 14px;
  color: var(--muted);
  min-height: 85px;
}
.budget-steps button {
  font-size: 13px;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.source-link {
  font-weight: 600;
  text-underline-offset: 4px;
}
.source-link:hover {
  text-decoration: underline;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 45px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.about-grid h2 {
  font-size: 23px;
  font-weight: 500;
}
.about-grid p {
  color: #647163;
  line-height: 1.8;
}
.about-grid a {
  display: block;
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
}
@media (min-width: 1550px) {
  .workspace {
    grid-template-columns: 245px minmax(0, 1fr) 310px;
    min-height: 700px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr) 240px;
  }
  .filters {
    padding: 20px 10px;
  }
  .detail {
    padding: 23px 17px;
  }
  main {
    padding: 32px 3%;
  }
  #canvas {
    min-height: 470px;
  }
  .pathway-grid > button {
    padding: 18px 12px;
    gap: 8px;
  }
  .path-icon {
    display: none;
  }
  .scope {
    display: none;
  }
  .graph-caption {
    max-width: 160px;
  }
  .legend {
    gap: 10px;
    padding: 13px;
  }
  .graph-toolbar {
    padding: 15px 12px;
  }
  .view-switch button {
    padding: 4px 6px;
  }
  .view-switch span {
    display: none;
  }
}
@media (max-width: 850px) {
  header {
    height: 80px;
    padding: 0 4%;
  }
  nav {
    gap: 17px;
  }
  .nav {
    font-size: 12px;
  }
  .prototype {
    display: none;
  }
  .workspace {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .detail {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 24px;
    display: block;
  }
  .detail-icon {
    margin: 12px 0;
  }
  .detail .description {
    max-width: 650px;
  }
  .detail h3 {
    margin-top: 18px;
  }
  .connection {
    display: inline-block;
    width: calc(50% - 10px);
    margin-right: 10px;
    vertical-align: top;
  }
  .detail .source-link {
    margin-top: 10px;
  }
  .under-map > span:last-child {
    display: none;
  }
  .budget-steps {
    grid-template-columns: 1fr 1fr;
  }
  .budget-intro {
    grid-template-columns: 1fr 2fr;
  }
  .budget-intro > span {
    display: none;
  }
  .pathway-grid {
    grid-template-columns: 1fr;
  }
  .path-icon {
    display: grid;
  }
  .section-heading > span {
    display: none;
  }
  .pathway-grid > button {
    padding: 18px;
  }
  .about-grid {
    gap: 30px;
  }
  footer > span:nth-child(2) {
    max-width: 230px;
  }
}
@media (max-width: 560px) {
  header {
    height: auto;
    min-height: 108px;
    flex-wrap: wrap;
    padding-top: 12px;
  }
  .brand {
    font-size: 15px;
  }
  .brandmark {
    font-size: 29px;
  }
  .brandmark span {
    font-size: 27px;
  }
  .brand-sub {
    font-size: 8px;
  }
  nav {
    width: 100%;
    height: 43px;
    justify-content: space-between;
    gap: 10px;
  }
  .nav {
    font-size: 12px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  h1 {
    letter-spacing: -1px;
    font-size: 29px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 9px;
  }
  main {
    padding: 27px 4%;
  }
  .workspace {
    display: block;
  }
  .filters {
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .search {
    margin-bottom: 12px;
  }
  .filter-heading,
  .sidebar-note,
  .coverage {
    display: none;
  }
  #topics {
    display: flex;
    overflow: auto;
    gap: 6px;
    padding-bottom: 2px;
  }
  .topic {
    width: auto;
    white-space: nowrap;
    padding: 8px;
    font-size: 12px;
    flex-shrink: 0;
    margin: 0;
  }
  .topic small {
    display: none;
  }
  .topic .topic-icon {
    font-size: 14px;
  }
  .graph-toolbar {
    height: 61px;
  }
  #canvas {
    height: 440px;
    min-height: 440px;
  }
  #graph {
    min-height: 0;
  }
  .legend {
    font-size: 10px;
    gap: 13px;
  }
  .graph-caption {
    font-size: 10px;
  }
  .detail {
    padding: 22px;
  }
  .detail h2 {
    font-size: 24px;
  }
  .under-map {
    font-size: 10px;
    margin-bottom: 27px;
  }
  .connection {
    width: 100%;
    margin: 0;
  }
  .budget-intro {
    display: block;
    padding: 26px;
  }
  .budget-intro h2 {
    font-size: 25px;
  }
  .budget-steps,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .budget-steps p {
    min-height: 0;
  }
  .reading-page {
    margin: 0;
  }
  .lead {
    font-size: 16px;
  }
  .about-grid {
    gap: 5px;
  }
  footer {
    flex-wrap: wrap;
    padding: 23px 4%;
  }
  footer > span:nth-child(2) {
    order: 3;
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 851px) {
  .workspace {
    height: 740px;
    min-height: 0;
  }
  .detail {
    overflow-y: auto;
  }
}
.detail .description {
  font-size: 16px;
}
.connection span {
  font-size: 14px;
}
.connection small {
  font-size: 12px;
}
.detail-note {
  font-size: 12px;
}
.legend {
  font-size: 12px;
}
.graph-caption {
  font-size: 12px;
}
.node text {
  font-size: 16px;
}
.coverage p,
.sidebar-note p {
  font-size: 12px;
}
.pathway-grid small {
  font-size: 12px;
  letter-spacing: 0.7px;
}
.pathway-grid span span {
  font-size: 14px;
}

.member {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.member small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.member span {
  font-size: 14px;
  font-weight: 500;
}
.member:hover span {
  text-decoration: underline;
}
.detail-note a {
  text-decoration: underline;
}

/* Fixed civic rings: locations remain stable through selection and filtering. */
main {
  max-width: none;
  padding: 25px 2.5% 42px;
}
.page-heading {
  margin-bottom: 21px;
}
header {
  height: 78px;
  padding: 0 2.5%;
}
h1 {
  font-size: 32px;
}
.workspace {
  grid-template-columns: 190px minmax(0, 1fr) 310px;
  height: 810px;
}
.filters {
  padding: 20px 12px;
}
.detail {
  padding: 22px;
}
.graph-area {
  background: #f7f8f3;
}
#canvas {
  overflow: auto;
  min-height: 0;
  background-image: radial-gradient(#d7ded2 0.6px, transparent 0.6px);
  flex: 1;
}
#graph {
  position: relative;
  display: block;
  height: auto;
  min-height: 0;
  min-width: 700px;
  aspect-ratio: 980/880;
}
.graph-caption {
  position: sticky;
  left: 15px;
  bottom: 13px;
  max-width: 330px;
  background: #fffef5dd;
  padding: 4px 8px;
  border-radius: 4px;
}
.zoom {
  bottom: 65px;
  right: 14px;
  z-index: 2;
}
.orbit {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 4 5;
  opacity: 0.6;
}
.orbit-label {
  font:
    600 12px "DM Sans",
    sans-serif;
  fill: #718069;
  letter-spacing: 2px;
  paint-order: stroke;
  stroke: #f7f8f3;
  stroke-width: 6px;
}
.edge {
  opacity: 0.4;
}
.edge.quiet {
  opacity: 0.09;
}
.edge.selected {
  stroke: #4d7350;
  stroke-width: 2;
  opacity: 0.8;
}
.node text {
  font-size: 16px;
}
.node .initials {
  font-size: 12px;
}
.node-label {
  paint-order: stroke;
  stroke: #f7f8f3;
  stroke-width: 5px;
  stroke-linejoin: round;
}
.people circle {
  fill: #e5edcd;
  stroke: #8a9f60;
  stroke-width: 1.5;
}
.people text {
  fill: #365439;
  font:
    600 17px "DM Sans",
    sans-serif;
}
.people .people-small {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.detail h2 {
  font-size: 27px;
}
.detail .description {
  font-size: 16px;
}
.legend {
  background: #fff;
}
.scope small {
  font-size: 12px;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr) 340px;
    height: 900px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 175px minmax(0, 1fr);
    height: auto;
  }
  .graph-area {
    height: 790px;
  }
  .detail {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 600px;
    overflow: auto;
  }
  .detail .description {
    max-width: 800px;
  }
  .connection {
    display: block;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .workspace {
    display: block;
  }
  header {
    height: auto;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .graph-area {
    height: 690px;
  }
  .filters {
    padding: 14px;
  }
  .graph-caption {
    font-size: 12px;
    max-width: 250px;
  }
  .detail {
    max-height: none;
  }
  .zoom {
    bottom: 67px;
  }
  #canvas {
    height: auto;
  }
  .node text {
    font-size: 16px;
  }
}

.edge.interpretive {
  stroke-dasharray: 6 5;
}
.people {
  cursor: pointer;
}
.people:focus {
  outline: none;
}
.people:focus circle,
.people:hover circle {
  stroke-width: 3;
}
.profile-facts {
  padding-left: 19px;
  color: #526450;
  font-size: 14px;
  line-height: 1.7;
}
.profile-facts li {
  margin-bottom: 10px;
}
.profile-action {
  display: block;
  background: #e5edd4;
  border: 1px solid #cddbb6;
  border-radius: 5px;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  margin: 18px 0;
}
.profile-action:hover {
  background: #dbe8c4;
}
.relationship {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.connection {
  border: 0;
  padding-bottom: 5px;
}
.connection .relation-label {
  font-size: 13px;
  color: #4f6253;
  margin-top: 4px;
}
.relation-evidence {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  align-items: center;
}
.relation-evidence a {
  font-size: 12px;
  text-decoration: underline;
  white-space: nowrap;
}
.relation-kind {
  font-size: 11px;
  color: #6c785f;
}
.relation-kind.inferred {
  color: #916d32;
}
.evidence-link {
  display: block;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 9px 0;
  line-height: 1.6;
}
.member-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 25px;
}
.member-section summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.member-list {
  margin-top: 10px;
}
.line-legend {
  width: 100%;
  font-size: 11px;
}
.legend {
  padding: 10px 17px;
  gap: 7px 14px;
}
.guide-button {
  font-size: 13px;
  text-decoration: underline;
  padding: 15px 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 25px 0 33px;
  padding: 24px 0;
}
.metrics a {
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.metrics a:last-child {
  border: 0;
}
.metrics strong {
  display: block;
  font:
    500 32px "Manrope",
    sans-serif;
  letter-spacing: -1px;
}
.metrics span {
  display: block;
  font-size: 14px;
  margin-top: 6px;
}
.metrics small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.metrics a:hover small {
  text-decoration: underline;
}
.participation-grid,
.budget-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 35px 0;
}
.participation-grid article,
.budget-sources article {
  border: 1px solid var(--line);
  background: #fff;
  padding: 28px;
  border-radius: 8px;
}
.participation-grid small,
.budget-sources small {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}
.participation-grid h2,
.budget-sources h2 {
  font:
    500 25px "Manrope",
    sans-serif;
  letter-spacing: -0.7px;
}
.participation-grid p,
.budget-sources p {
  color: #61715f;
  font-size: 16px;
  line-height: 1.8;
}
.participation-grid a,
.budget-sources a {
  display: block;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 10px 0;
}
.participation-grid button {
  display: block;
  padding: 10px 0 0;
  font-size: 14px;
}
.jurisdiction-note {
  background: #e9efdd;
  border-radius: 8px;
  padding: 28px;
}
.jurisdiction-note h2 {
  margin-top: 0;
  font-weight: 500;
}
.jurisdiction-note a {
  font-size: 14px;
  text-decoration: underline;
}
.source-details {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.source-details summary {
  cursor: pointer;
  font-weight: 500;
}
.source-details li {
  padding: 12px 0;
  font-size: 14px;
}
.source-details li span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.source-details li a {
  text-decoration: underline;
}
.detail .detail-icon {
  margin: 18px 0 14px;
  width: 42px;
  height: 42px;
  font-size: 20px;
}
.detail h3 {
  font-size: 12px;
  letter-spacing: 0.8px;
}
nav {
  gap: 22px;
}
@media (max-width: 650px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics a {
    border: 0;
    padding: 5px 10px;
  }
  .participation-grid,
  .budget-sources {
    grid-template-columns: 1fr;
  }
  nav {
    gap: 8px;
  }
  .nav {
    font-size: 11px;
  }
  .legend {
    font-size: 11px;
  }
  .zoom {
    bottom: 90px;
  }
  .graph-caption {
    max-width: 220px;
  }
}

@media (max-width: 1050px) {
  .workspace {
    display: block;
  }
  .filters {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 20px;
  }
  .search {
    max-width: 350px;
    margin-bottom: 12px;
  }
  #topics {
    display: flex;
    overflow: auto;
    gap: 7px;
    padding: 2px 2px 7px;
  }
  .topic {
    flex-shrink: 0;
    width: auto;
    white-space: nowrap;
    padding: 8px 10px;
    margin: 0;
  }
  .topic small {
    padding-left: 8px;
  }
  .sidebar-note,
  .coverage,
  .filter-heading {
    display: none;
  }
  .graph-area {
    height: clamp(540px, 95vw, 850px);
  }
  .detail {
    max-height: none;
  }
  .graph-caption {
    max-width: 340px;
  }
}
@media (max-width: 600px) {
  .graph-area {
    height: 500px;
  }
  .graph-caption {
    max-width: 220px;
    font-size: 11px;
  }
  .zoom {
    bottom: 95px;
  }
  .node-label {
    font-size: 19px !important;
  }
  .orbit-label {
    font-size: 14px;
  }
  .under-map {
    line-height: 1.7;
  }
  header {
    min-height: 105px;
  }
}
@media (max-width: 600px) {
  .view-switch span {
    display: inline;
  }
  .view-switch button {
    font-size: 12px;
    padding: 5px 7px;
  }
  #directory {
    max-height: 390px;
  }
  .graph-area:has(#canvas[hidden]) {
    height: auto;
    min-height: 390px;
  }
}
/* County and city remain separate graph views. */
.scope label {
  font-size: 14px;
  display: grid;
  gap: 6px;
}
.scope select {
  font: inherit;
  color: var(--ink);
  padding: 10px 28px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.scope-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.eyebrow a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
select:focus-visible {
  outline: 3px solid #72983d;
  outline-offset: 3px;
}
@media (max-width: 850px) {
  header {
    height: auto;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 14px;
  }
  nav {
    flex-wrap: wrap;
  }
  .nav {
    font-size: 14px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .scope {
    margin-top: 12px;
  }
}
.start-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0;
}
.start-form label {
  display: grid;
  gap: 10px;
  font-weight: 600;
}
.start-form select {
  font: inherit;
  color: var(--ink);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 100%;
  background: white;
}
.start-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  margin: 16px 0 24px;
}
.route-card,
.prepare-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.route-card small {
  font-size: 12px;
  letter-spacing: 1px;
}
.route-card h2 {
  font-size: 25px;
}
.route-card .source-link,
#route-sources a {
  display: block;
  text-decoration: underline;
  margin: 16px 0;
}
.prepare-card li {
  margin-bottom: 14px;
}
.prepare-card summary {
  cursor: pointer;
  font-size: 14px;
}
#route-sources {
  font-size: 14px;
}
.route-card [hidden] {
  display: none;
}
@media (max-width: 700px) {
  .start-form,
  .start-grid {
    grid-template-columns: 1fr;
  }
  .route-card,
  .prepare-card {
    padding: 20px;
  }
  .scope select {
    max-width: 100%;
  }
}
.page-heading .scope {
  display: flex;
  flex-shrink: 0;
}
.metrics {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 850px) {
  .page-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .page-heading .scope {
    width: 100%;
    margin: 0;
  }
  .scope label {
    width: 100%;
  }
  .scope select {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .nav {
    font-size: 14px;
  }
  nav {
    gap: 12px;
  }
}
@media (max-width: 850px) {
  header nav {
    height: auto;
    min-height: 43px;
  }
  .nav {
    min-height: 40px;
  }
  footer {
    flex-wrap: wrap;
    gap: 12px;
  }
}
footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Elected people expand from the Council without moving the institution graph. */
.people-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:24px 0 40px; }
.person-card { border:1px solid #dbe2d7; border-radius:12px; padding:22px; background:#fafcf7; }
.person-card h2 { font-size:22px; margin:10px 0; }
.person-card small { color:#4d7654; letter-spacing:.08em; }
.person-card p { line-height:1.6; }
.person-card button { background:#e2eddd; border:1px solid #b9cbb3; border-radius:6px; padding:10px 12px; cursor:pointer; color:#25462e; font:inherit; }
.member-list button.member { width:100%; text-align:left; background:transparent; border:0; border-bottom:1px solid #dbe2d7; cursor:pointer; font:inherit; }
.officeholder { font-size:22px; color:#31563a; font-weight:600; }
#detail { scroll-margin-top:90px; }
@media(max-width:900px) { .people-grid {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:600px) { .people-grid {grid-template-columns:1fr;} }

/* Quiet frame around a stable, deliberately controlled map. */
:root { --bg:#f6f7f5; --ink:#203c35; --muted:#63716b; --line:#e2e7e3; }
header { height:72px; gap:24px; padding:0 28px; }
header nav { gap:20px; }
.brand { font-size:17px; flex-shrink:0; }
.brandmark, .brandmark span { font-size:30px; }
.prototype { font-size:12px; letter-spacing:.08em; }
main { padding:24px 28px 40px; max-width:1800px; margin:auto; }
.page-heading { margin-bottom:12px; gap:24px; }
.page-heading h1 { font-size:28px; letter-spacing:-1px; line-height:1.25; margin:10px 0; }
.page-heading p { font-size:16px; margin:0; color:var(--muted); }
.eyebrow { font-size:12px; letter-spacing:.09em; }
.eyebrow a { text-decoration:none; }
.scope label { font-size:12px; letter-spacing:.025em; }
.scope select { background:white; border:1px solid var(--line); border-radius:8px; padding:11px 14px; font-size:14px; }
.scope-note { font-size:13px; margin:0 0 16px; }
.workspace { grid-template-columns:196px minmax(0,1fr) 320px; height: min(850px, calc(100vh - 235px)); min-height:590px; border-radius:12px; box-shadow:0 3px 16px #183a3205; }
.filters { padding:18px 12px; }
.search { border-radius:7px; background:#f6f7f5; }
.search input { font-size:14px; min-width:0; }
.filter-heading { font-size:12px; letter-spacing:.06em; margin-top:22px; }
.topic { font-size:14px; border-radius:6px; padding:11px 8px; }
.topic-icon { opacity:.65; }
.topic small { color:#768079; }
.sidebar-note { display:none; }
.coverage { margin-top:28px; padding-top:20px; border-top:1px solid var(--line); }
.coverage p { font-size:13px; }
.graph-area { background:#f3f5f1; }
.graph-toolbar { height:66px; padding:14px 18px; flex-shrink:0; background:#ffffffb3; }
#result-count { font-size:12px; }
.view-switch { background:#f1f4ef; border:0; padding:3px; border-radius:7px; }
.view-switch button { padding:6px 10px; }
.view-switch button.selected { background:white; box-shadow:0 1px 3px #203c3515; }
#canvas { background-image:none; min-height:0; }
#graph { width:100%; height:100%; min-width:0; aspect-ratio:auto; }
.orbit { opacity:.45; stroke-dasharray:3 5; }
.edge.quiet { opacity:.035; }
.edge.selected { opacity:.7; stroke-width:1.7; }
.node-label, .orbit-label { stroke:#f3f5f1; }
.people circle { fill:#edf2e6; stroke:#9da98b; }
.graph-caption { position:absolute; left:16px; bottom:12px; max-width:none; background:transparent; font-size:12px; padding:0; }
.zoom { bottom:42px; right:16px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 2px 8px #203c3508; }
.zoom button { min-width:34px; min-height:36px; }
.legend { padding:12px 16px; font-size:12px; gap:10px; flex-shrink:0; }
.detail { padding:24px; background:white; overflow:auto; }
.detail-type { font-size:12px; letter-spacing:.06em; }
.detail .detail-icon { border-radius:50%; background:#edf2e7; color:#48613c; }
.detail h2 { font-size:26px; letter-spacing:-.7px; }
.officeholder { font-size:20px; margin:6px 0 14px; }
.detail .jurisdiction { font-size:13px; }
.detail h3 { margin-top:28px; font-size:12px; letter-spacing:.06em; }
.detail .description, .profile-facts { font-size:15px; line-height:1.7; }
.connection span { font-size:14px; }
.connection small, .detail-note { font-size:12px; line-height:1.65; }
.profile-action { border-radius:7px; }
.under-map { font-size:12px; color:var(--muted); padding:12px 2px; }
.reading-page { max-width:1060px; margin:32px auto; }
.reading-page h1 { font-size:36px; letter-spacing:-1px; }
.person-card { background:white; border-radius:8px; padding:24px; display:flex; flex-direction:column; align-items:flex-start; }
.person-card h2 { font-size:21px; line-height:1.3; }
.person-card p { color:var(--muted); font-size:15px; flex:1; }
.person-card button { background:transparent; border:0; border-radius:0; padding:10px 0 0; color:var(--green); font-weight:600; }
.person-card:hover { border-color:#a5b5a8; }
@media(max-width:1200px) { header { flex-wrap:wrap; height:auto; padding:16px 24px 0; gap:8px; } header nav { order:3; width:100%; height:48px; overflow-x:auto; flex-wrap:nowrap; } .nav { flex-shrink:0; white-space:nowrap; } .prototype { margin-left:auto; } }
@media(max-width:1050px) {
 main { padding:20px; }
 .workspace { display:grid; grid-template-columns:minmax(0,1fr) 300px; height:auto; }
 .filters { grid-column:1/-1; }
 .graph-area { height:650px; }
 .detail { grid-column:auto; border-left:1px solid var(--line); border-top:0; max-height:650px; }
}
@media(max-width:700px) {
 header { min-height:0; padding:12px 16px 0; }
 header nav { gap:22px; min-height:44px; }
 .nav { font-size:14px; }
 main { padding:20px 14px; }
 .page-heading h1 { font-size:26px; }
 .workspace { display:block; min-height:0; }
 .filters { padding:14px; }
 .graph-area { height:480px; }
 .detail { border-left:0; border-top:1px solid var(--line); padding:24px 20px; max-height:none; }
 .graph-caption { max-width:190px; font-size:12px; }
 .zoom { bottom:50px; right:10px; }
 .legend { font-size:12px; }
 .under-map { display:block; }
 .under-map > span { display:block; margin-bottom:6px; }
 .reading-page { margin:24px 0; }
 .reading-page h1 { font-size:30px; }
 .people-grid { grid-template-columns:1fr; gap:12px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }
@media(min-width:1051px) {
 .workspace { grid-template-rows:minmax(0,1fr); }
 .graph-area { height:100%; min-height:0; }
 .filters,.detail { min-height:0; overflow:auto; }
}
