:root {
  --paper: #f6f6f2;
  --white: #fff;
  --ink: #202523;
  --muted: #666e68;
  --line: #dce0d9;
  --red: #c62920;
  --green: #316758;
  --mono: "Cascadia Code", "Consolas", monospace;
  --sans: "Arial", "Helvetica", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 12px;
}
button:hover {
  border-color: var(--ink);
  background: #f3f3ef;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d95b34;
  outline-offset: 3px;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
input,
select {
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 11px;
  min-width: 0;
  max-width: 100%;
}
input::placeholder {
  color: #788079;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.8px;
  font-weight: 600;
  line-height: 1.14;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
h3 {
  font-size: 16px;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.mono,
.eyebrow,
.rail-label,
.snapshot,
.caption,
.legend,
.stats small,
.controls label > span,
th,
.edition {
  font-family: var(--mono);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.mast {
  height: 86px;
  background: var(--white);
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  font: 8px var(--mono);
  letter-spacing: 1.5px;
  margin-top: 2px;
}
.light {
  font-weight: 400;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  transform: rotate(-0deg);
}
.brand-mark i {
  background: var(--red);
}
.brand-mark i:nth-child(2) {
  background: #e8b7ad;
}
.brand-mark i:nth-child(3) {
  background: #e27462;
}
.edition {
  font-size: 10px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.independent {
  font-size: 11px;
  color: var(--muted);
}
#language {
  font: 12px var(--mono);
  font-weight: 600;
  border: 0;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.shell {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
}
.rail {
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  background: #efefea;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 86px);
}
.rail-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #71796f;
  margin: 0 12px 15px;
}
.rail nav {
  display: grid;
  gap: 7px;
}
.rail nav button {
  display: flex;
  gap: 12px;
  text-align: left;
  align-items: center;
  background: none;
  border: 0;
  font-size: 12px;
  padding: 12px 10px;
  font-weight: 400;
}
.rail nav button span {
  font: 10px var(--mono);
  color: #81877e;
}
.rail nav button b {
  font-weight: 500;
}
.rail nav button.active {
  background: var(--ink);
  color: white;
}
.rail nav button.active span {
  color: #f19888;
}
.rail-divider {
  height: 1px;
  background: var(--line);
  margin: 25px 12px;
}
.watch-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  width: 100%;
  justify-content: space-between;
  background: none;
  padding: 11px 12px;
  font-size: 11px;
}
.watch-item span:last-child {
  font-family: var(--mono);
  font-size: 10px;
}
.rail-bottom {
  margin: 100px 12px 0;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.rail-bottom strong {
  font: 11px var(--mono);
  letter-spacing: 2px;
}
.red-square {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red);
  margin-right: 8px;
}
.rail-bottom p {
  margin: 15px 0 25px;
  font-size: 11px;
  line-height: 1.8;
}
.rail-bottom > .mono {
  font-size: 8px;
  color: #8b9088;
}
main {
  padding: 32px 36px;
  min-width: 0;
  max-width: 1900px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  margin-top: 9px;
  font-size: 13px;
}
.snapshot {
  text-align: right;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.snapshot strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin: 6px 0;
}
.snapshot small {
  color: var(--muted);
  font-size: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.stat {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  border: 0;
}
.stat small {
  font-size: 9px;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 8px 0 3px;
}
.stat p {
  font-size: 11px;
}
.stat .delta {
  font: 11px var(--mono);
  margin-left: 12px;
  color: var(--green);
}
.controls {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-bottom: 15px;
}
.controls label {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.controls label > span {
  font-size: 9px;
  letter-spacing: 0.8px;
}
.controls button {
  font-size: 11px;
  white-space: nowrap;
  height: 41px;
}
.controls select {
  width: 100%;
}
.market-control {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 20px;
  font-size: 11px;
}
.market-control > label {
  margin-right: 5px;
  color: var(--muted);
}
.market-control > input {
  width: 175px;
  padding: 7px;
  font-size: 11px;
}
.market-control > button {
  font-size: 11px;
  padding: 7px;
}
.market-control #chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.chip {
  font-size: 10px;
  padding: 5px 8px;
  background: #e8ebe4;
  border: 0;
}
.chip span {
  margin-left: 8px;
  color: var(--muted);
}
#market-message {
  color: var(--red);
  font-size: 11px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  min-width: 0;
}
.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(245px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.chart-actions {
  display: flex;
  gap: 5px;
}
.chart-actions button {
  font: 9px var(--mono);
  padding: 5px 7px;
}
.chart-panel {
  padding-bottom: 0;
}
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 10px;
  margin: 5px 0 10px;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  vertical-align: middle;
  background: var(--series);
  margin-right: 6px;
}
.main-chart {
  width: 100%;
  min-height: 280px;
}
.main-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.caption {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 10px;
}
.chart-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 17px;
  padding: 12px 0;
  font: 9px var(--mono);
  color: var(--muted);
}
.chart-footer button {
  border: 0;
  font: 10px var(--mono);
  padding: 2px;
}
.insight {
  background: #eceee7;
  border-top: 3px solid var(--red);
}
.insight .big {
  font-size: 43px;
  letter-spacing: -2px;
  margin: 16px 0 6px;
  line-height: 1.1;
}
.insight h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 500;
  margin: 12px 0;
}
.insight p {
  font-size: 12px;
  line-height: 1.8;
}
.insight-rule {
  height: 1px;
  background: #ccd2c5;
  margin: 22px 0;
}
.mini-status {
  font: 9px var(--mono);
  margin-top: 24px;
  color: var(--green);
}
.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.secondary-grid .panel-top > .mono {
  font-size: 10px;
}
.breadth-numbers {
  display: flex;
  gap: 28px;
  margin: 22px 0;
}
.breadth-numbers strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
}
.breadth-numbers span {
  font: 10px var(--mono);
  color: var(--muted);
}
.breadth-bar {
  height: 9px;
  display: flex;
  gap: 3px;
}
.breadth-bar i {
  display: block;
}
.bond-value {
  font-size: 32px;
  letter-spacing: -1px;
}
.bond-value small {
  font: 10px var(--mono);
  margin-left: 15px;
  color: var(--muted);
}
#bond svg {
  height: 95px;
  width: 100%;
  margin-top: 4px;
}
.heatmap-panel {
  margin-bottom: 18px;
}
.panel-top > .mono {
  font-size: 9px;
  color: var(--muted);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
th,
td {
  border-bottom: 1px solid #e9ece5;
  padding: 10px 9px;
}
td.num {
  text-align: right;
  font-family: var(--mono);
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
#chart-table {
  max-height: 280px;
}
#heatmap td {
  border: 3px solid white;
  text-align: center;
  font: 10px var(--mono);
  padding: 10px 6px;
}
#heatmap td:first-child {
  text-align: left;
  font: 11px var(--sans);
  white-space: nowrap;
  min-width: 130px;
}
#heatmap th {
  text-align: center;
  padding: 7px 4px;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pipeline > div {
  padding: 5px 20px;
  border-right: 1px solid var(--line);
}
.pipeline > div:first-child {
  padding-left: 0;
}
.pipeline > div:last-child {
  border: 0;
}
.pipeline strong {
  font-size: 29px;
  font-weight: 500;
  display: block;
  margin: 8px 0;
}
.pipeline p {
  font-size: 11px;
}
.pipeline .mini {
  height: 50px;
  width: 100%;
  margin: 8px 0;
}
.pipeline .eyebrow {
  font-size: 9px;
}
.pipeline-panel {
  margin-bottom: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 18px 0 0;
  font: 9px var(--mono);
  color: var(--muted);
}
.grow {
  flex: 1;
}
.report {
  max-width: 1000px;
  margin: auto;
  padding: 40px;
}
.report h2 {
  font-size: 30px;
  margin: 10px 0 20px;
}
.report h3 {
  margin: 25px 0 10px;
}
.report p {
  margin: 10px 0;
  line-height: 1.8;
}
.report .report-number {
  font-size: 50px;
  color: var(--red);
  letter-spacing: -2px;
}
.solid {
  background: var(--ink);
  color: white;
}
.source-block {
  margin: 16px 0;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
}
.source-block p {
  margin: 9px 0;
  font-size: 12px;
}
.source-block a {
  overflow-wrap: anywhere;
}
.rights {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.rights span {
  padding: 4px 8px;
  background: #f0f2eb;
  font: 10px var(--mono);
}
#release-info {
  margin-bottom: 18px;
  font-size: 12px;
}
#release-info p {
  margin: 9px 0;
}
#catalog-table {
  max-height: 500px;
}
#municipality-table {
  max-height: 65vh;
}
#municipality-count {
  font-size: 11px;
  white-space: nowrap;
  align-self: center;
}
.empty {
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  width: min(680px, 94vw);
  max-height: 88vh;
  padding: 30px;
  color: var(--ink);
}
dialog::backdrop {
  background: #18211980;
}
dialog .panel-top button {
  font-size: 23px;
  border: 0;
  padding: 0 7px;
}
dialog p {
  margin: 12px 0;
  font-size: 12px;
}
dialog code {
  font-size: 10px;
  overflow-wrap: anywhere;
  display: block;
  padding: 8px;
  background: var(--paper);
}
dialog a {
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font: 12px var(--mono);
  padding: 12px 22px;
  z-index: 10;
  display: none;
  max-width: 90vw;
}
#loading {
  padding: 80px 20px;
  font: 13px var(--mono);
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.quality {
  color: #8b580b;
}
.muted {
  color: var(--muted);
}
.negative {
  color: var(--red);
}
@media (min-width: 1550px) {
  h1 {
    font-size: 46px;
  }
  .main-chart {
    min-height: 330px;
  }
  .panel {
    padding: 25px;
  }
  .chart-panel {
    padding-bottom: 0;
  }
}
@media (max-width: 1150px) {
  .edition {
    display: none;
  }
  .shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .rail {
    padding: 25px 10px;
  }
  main {
    padding: 25px 22px;
  }
  .primary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .insight {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0 25px;
  }
  .insight > .eyebrow:first-child {
    grid-column: 1/-1;
  }
  .insight-rule {
    display: none;
  }
  .insight > .eyebrow:nth-of-type(2) {
    display: none;
  }
  .insight .mini-status {
    grid-column: 1/-1;
    margin: 12px 0 0;
  }
  .controls {
    flex-wrap: wrap;
  }
  .controls label {
    flex: 1 1 160px;
  }
  .stats .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 25px;
  }
  .chart-panel .main-chart {
    min-height: 260px;
  }
}
@media (max-width: 720px) {
  .mast {
    height: 75px;
    padding: 0 16px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand-mark {
    width: 24px;
    height: 24px;
  }
  .header-right .independent {
    display: none;
  }
  .header-right {
    gap: 0;
  }
  .shell {
    display: block;
  }
  .rail {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  .rail nav {
    display: flex;
    overflow: auto;
    gap: 0;
  }
  .rail nav button {
    font-size: 11px;
    white-space: nowrap;
    padding: 10px;
  }
  .rail nav button span {
    display: none;
  }
  .rail > .rail-label,
  .rail-divider,
  .rail-bottom,
  #watchlist {
    display: none;
  }
  main {
    padding: 24px 15px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 32px;
  }
  .snapshot {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stat:first-child {
    padding-left: 15px;
  }
  .controls {
    gap: 10px;
  }
  .controls label {
    flex-basis: calc(50% - 10px);
  }
  .controls .square-button {
    height: auto;
    width: 100%;
  }
  .market-control {
    gap: 7px;
  }
  .market-control > label {
    width: 100%;
  }
  #chips {
    width: 100%;
    margin: 4px 0;
  }
  .panel {
    padding: 17px;
  }
  .chart-panel {
    padding-bottom: 0;
  }
  .panel-top {
    flex-wrap: wrap;
  }
  .chart-actions {
    margin-left: auto;
  }
  .legend {
    gap: 12px;
    font-size: 9px;
  }
  .primary-grid,
  .secondary-grid {
    display: block;
  }
  .primary-grid > .panel,
  .secondary-grid > .panel {
    margin-bottom: 16px;
  }
  .insight {
    display: block;
  }
  .insight .big {
    font-size: 35px;
  }
  .chart-panel .main-chart {
    min-height: 190px;
  }
  .pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline > div {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pipeline strong {
    display: inline-block;
    margin-right: 15px;
  }
  .pipeline .mini {
    height: 60px;
  }
  footer {
    flex-wrap: wrap;
    font-size: 8px;
  }
  .report {
    padding: 22px;
  }
  .report h2 {
    font-size: 24px;
  }
  .breadth-numbers {
    gap: 30px;
  }
  dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  @page { size: A4; margin: 14mm; }
  #app > .caption { display: none !important; }
  .report .legend span { border-bottom: 2px solid var(--series); }
  .mast,
  .rail,
  .controls,
  .market-control,
  footer,
  .page-heading > button,
  #toast {
    display: none !important;
  }
  .shell {
    display: block;
  }
  main {
    padding: 0;
  }
  .view {
    display: none !important;
  }
  #view-research {
    display: block !important;
  }
  #view-research .page-heading {
    display: none;
  }
  .report {
    padding: 0;
    border: 0;
    max-width: none;
  }
  .report h3 {
    break-after: avoid;
    margin: 16px 0 6px;
  }
  .report svg {
    max-height: 225px;
  }
  .report table {
    font-size: 9px;
  }
  body {
    background: white;
    border-top: 0;
  }
  .report p {
    font-size: 11px;
    line-height: 1.45;
    margin: 7px 0;
  }
  .report > * {
    break-inside: avoid;
  }
}
