:root {
  --ink: #39393a;
  --soft: #3d4c50;
  --paper: #f2f2f2;
  --line: #e6e6e6;
  /* Logo teal sampled from assets/aba-logo.png. Dark is for text (8.1:1 on white, 7.3:1 on paper). Coral is for text too (5.3:1 on white, 4.7:1 on paper). */
  --aba-teal: #3F768B;
  --aba-teal-dark: #2C5563;
  --aba-teal-light: #D7E5EB;
  --aba-coral: #B84734;
  --aba-muted: #7D949C;
  /* Sea green for up-deltas. 5.35:1 on white, 4.62:1 on the tint chip, 4.78:1 on the page gray. */
  --aba-positive: #24785F;
  --aba-positive-tint: #E3F2EA;
  --aba-loss-tint: #FBEDEC;
  --pine: var(--aba-teal);
  --deep: #2d515f;
  --mint: #83b7b5;
  --clay: #D01F25;
  --deepest: #1a333c;
  --pop: var(--aba-teal);
  --pop-text: var(--aba-teal-dark);
  --orange: var(--aba-muted);
  --card-title-size: 13px;
  --card-title-weight: 700;
  --kpi-size: 48px;
  --kpi-weight: 700;
  --tag-size: 13px;
  --year-label-size: 12px;
  --year-value-size: 22px;
  --year-pct-size: 14px;
  --legend-size: 12px;
  --section-gap: 16px;
  --detail-title-size: 20px;
  --detail-body-size: 13px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: Raleway, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }

button { cursor: pointer; }

button.big, button.open { border: 0; background: transparent; padding: 0; cursor: pointer; }

button.big { display: block; width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gate-status {
  margin: 2rem 1rem;
  color: var(--soft);
}

#dash { display: flex; flex-direction: column; min-height: 100%; }

.docbar {
  background: var(--deepest);
  border-bottom: 3px solid var(--aba-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  min-height: 60px;
  font-size: 15px;
}

.brand-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }

.mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  height: 40px;
  background: transparent;
}

.mark:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--aba-teal);
  outline-offset: 2px;
}

.docbar :focus-visible { outline-color: #fff; }

.mark img {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.brand {
  font-weight: 700;
  letter-spacing: .3px;
  font-family: Montserrat, Raleway, sans-serif;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand-short { display: none; }

.example-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: #fff;
  color: var(--clay);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
}

.docs { display: flex; gap: 8px; align-items: center; position: relative; }

.docs-short { display: none; }

.lbl {
  color: #8fb0b4;
  font-size: 12px;
  letter-spacing: 1px;
  margin-right: 4px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.pill, .icon-btn {
  border: 1px solid #4d6f78;
  border-radius: 4px;
  padding: 0 14px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #e8f1f2;
  background: transparent;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.icon-btn { width: 44px; padding: 0; justify-content: center; border-radius: 6px; font-size: 15px; }

.more-icon { border: 0; font-size: 22px; width: 44px; }

.daterow-full {
  min-height: 48px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
}

.dfilters { display: contents; }

@media (min-width: 1280px) {
  .daterow-full { flex-wrap: nowrap; justify-content: flex-start; }
  .dfilters {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    min-width: 0;
  }
  .daterow-full > .reset-group { margin-left: auto; flex: 0 0 auto; }
}

.daterow-full > .dgroup { flex: 0 0 auto; min-width: max-content; gap: 5px; }

.daterow-full .lab { font-size: 11px; letter-spacing: .15px; }

.daterow-full .lab .info,
.daterow-full .reset .info {
  width: 14px;
  height: 14px;
  margin-left: 3px;
  font-size: 10px;
  line-height: 14px;
}

.daterow-full .ystep { height: 30px; padding: 2px 4px; gap: 2px; }

.daterow-full .ystep b { min-width: 70px; font-size: 12px; }
.daterow-full .pseg button { padding: 0 6px; height: 30px; font-size: 12px; }

.daterow-full .drow { height: 30px; padding: 2px 5px; gap: 3px; }

.daterow-full .dlb { width: 26px; font-size: 11px; }

.daterow-full .dval { font-size: 11px; }

.daterow-full .reset { height: 30px; padding: 0 6px; font-size: 12px; gap: 4px; }

.daterow-mob { display: none; }

.dgroup { display: flex; align-items: center; gap: 8px; min-width: 0; }

.lab {
  font-size: 12px;
  letter-spacing: .8px;
  color: var(--soft);
  font-weight: 700;
  text-transform: uppercase;
  font-family: Montserrat, Raleway, sans-serif;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ystep, .drow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #c5cfd2;
  border-radius: 4px;
  padding: 5px 8px;
  height: 32px;
  font-size: 12px;
  background: #fff;
  color: var(--ink);
  gap: 6px;
  position: relative;
}

.ystep b { font-weight: 700; font-family: Montserrat, Raleway, sans-serif; min-width: 52px; text-align: center; flex: none; white-space: nowrap; }

.ystep button, .ycaret select {
  border: 0;
  background: transparent;
  color: #888;
  padding: 0 2px;
  line-height: 1;
}

.ystep.is-off { opacity: .45; }

.ycaret {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 16px;
  flex: 0 0 14px;
  overflow: hidden;
}

.ycaret select {
  position: absolute;
  inset: 0;
  appearance: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.ycaret::after {
  content: "▾";
  position: absolute;
  left: 1px;
  top: 0;
  line-height: 16px;
  color: #888;
  pointer-events: none;
  font-size: 12px;
}

.pseg {
  display: flex;
  border: 1px solid #c5cfd2;
  border-radius: 4px;
  overflow: visible;
  background: #fff;
}

.pseg button {
  position: relative;
  border: 0;
  border-right: 1px solid #c5cfd2;
  background: #fff;
  color: #5a6a6e;
  padding: 6px 12px;
  height: 32px;
  white-space: nowrap;
}

.pseg button:last-child { border-right: 0; }

.pseg button:hover { background: var(--aba-teal-light); }

.pseg button.on, .pseg button.on:hover { background: var(--aba-teal); color: #fff; font-weight: 700; }

.drow { justify-content: flex-start; cursor: pointer; }

.dlb { color: #666; font-weight: 700; font-size: 12px; width: 34px; flex: none; }

.dval { font-weight: 700; font-family: Montserrat, Raleway, sans-serif; white-space: nowrap; }

.drow input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.reset {
  border: 1px solid var(--aba-coral);
  color: var(--aba-coral);
  border-radius: 4px;
  padding: 5px 10px;
  height: 32px;
  font-weight: 700;
  font-size: 12px;
  background: #fff;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.body { display: flex; flex: none; align-items: stretch; }

.side {
  width: 216px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px 12px;
  font-size: 13px;
  flex: none;
}

.h {
  font-size: 12px;
  letter-spacing: 1.1px;
  color: var(--soft);
  font-weight: 700;
  text-transform: uppercase;
  font-family: Montserrat, Raleway, sans-serif;
  display: inline-flex;
  align-items: center;
  margin: 0 0 6px;
}

.tog {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  color: #555;
  text-align: left;
  white-space: nowrap;
}

.tog .sw {
  width: 30px;
  height: 16px;
  border-radius: 9px;
  background: #ccd5d8;
  position: relative;
  flex: none;
}

.tog .sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background: #fff;
}

.tog.on { color: var(--ink); font-weight: 700; }

.tog.on .sw { background: var(--aba-teal); }

.tog.on .sw::after { left: 16px; }

.tog .n { margin-left: auto; color: #666; font-size: 12px; font-weight: 400; }

.tog-label { min-width: 0; }

.main { flex: 1; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--section-gap); }

.chips { display: none; }

.row { display: flex; gap: 12px; align-items: stretch; }

.row + .row { margin-top: 10px; }

.card-members { flex: 0.90 1 0; min-width: 0; }

.stack {
  flex: 0.78 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-gains { flex: 1.43 1 0; min-width: 0; }

.card-events, .card-attendance { flex: 1.25 1 0; min-width: 0; }

.card-pie { flex: 0.95 1 0; min-width: 0; }

.card {
  min-width: 0;
  background: #fff;
  border: 0;
  border-top: 3px solid var(--aba-teal);
  border-radius: 4px;
  padding: 10px 14px 10px;
  position: relative;
  box-shadow: 0 4px 12px rgba(47, 80, 95, .06);
  display: flex;
  flex-direction: column;
}

.stack { align-self: stretch; }

.stack .card { flex: 1 0 auto; min-height: min-content; overflow: visible; }

.stack .bodycol { flex: 0 0 auto; min-height: auto; justify-content: flex-start; gap: 4px; }

.stack .big-mid { font-size: var(--kpi-size); line-height: 1; }

.stack .pr { margin-top: 2px; }

.card.pop { border-top-color: var(--aba-teal); }

.hd { display: block; width: 100%; }

.ttl {
  margin: 0;
  font-size: var(--card-title-size);
  font-weight: var(--card-title-weight);
  color: var(--deep);
  font-family: Montserrat, Raleway, sans-serif;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  line-height: 1.3;
  width: 100%;
  min-width: 0;
}

.open {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
}

.open b { font-size: 16px; color: var(--aba-teal-dark); font-weight: 700; }

.bodycol {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 6px;
}

.big {
  font-weight: 700;
  letter-spacing: -1px;
  line-height: .92;
  text-align: center;
  font-family: Montserrat, Raleway, sans-serif;
}

.big-members { font-size: var(--kpi-size); }

.card-members .pl { white-space: nowrap; }

.card-members .delta { font-size: 18px; }

.big-mid { font-size: var(--kpi-size); }

.tone-up { color: var(--pop); }

.tone-down { color: var(--clay); }

.tone-flat { color: var(--ink); }

.pr {
  display: flex;
  gap: 6px;
  width: 100%;
  justify-content: center;
  align-items: flex-end;
}

.pr > div { flex: 1; min-width: 0; text-align: center; }

.pl { font-size: var(--year-label-size); color: #5c6b70; font-weight: 600; line-height: 1.3; }

.pv { font-size: var(--year-value-size); color: #243033; font-weight: 700; white-space: nowrap; line-height: 1.2; }

.share { font-size: var(--year-pct-size); font-weight: 650; }

.delta { font-style: normal; font-size: 16px; margin-left: 4px; font-weight: 700; }

.delta-up, .delta-down {
  display: inline-block;
  padding: 0 5px;
  border-radius: 8px;
  line-height: 1.35;
  vertical-align: 1px;
}

.delta-up { color: var(--aba-positive); background: var(--aba-positive-tint); }

.delta-down { color: var(--clay); background: var(--aba-loss-tint); }

.delta-flat { color: #888; font-size: 14px; background: none; }

.chart-empty {
  margin: 0;
  width: 100%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.chart-empty.is-gains { aspect-ratio: 520 / 340; min-height: 220px; }

.chart-empty.is-gains-short { aspect-ratio: 520 / 150; min-height: 96px; }

.chart-empty.is-pie { width: 176px; height: 176px; min-height: 176px; }

.chart-slot {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
}

.chart { width: 100%; height: auto; display: block; }

.pie { width: 176px; height: 176px; display: block; }

.pie path { cursor: pointer; }

.hit { cursor: pointer; }

.note { font-size: 12px; color: #555; text-align: center; margin: 8px 0 0; }

.info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  border: 1px solid #8a9699;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #5a6a6e;
  line-height: 16px;
  cursor: help;
  flex: none;
  position: relative;
  background: #fff;
}

.docbar .info { background: transparent; color: #c5d5d8; border-color: #6d868c; }

.tip {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--deep);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(47, 80, 95, .2);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: normal;
}

.tip strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 4px;
  font-family: Montserrat, Raleway, sans-serif;
}

.tip-flag { display: block; margin-top: 7px; color: var(--soft); }

.info:hover .tip,
.info:focus .tip,
.info:focus-within .tip,
.info.is-open .tip,
.pseg button:hover .tip,
.pseg button:focus .tip,
.pseg button.is-open .tip { display: block; }

.open .tip, .reset .tip, .card-gains .tip, .card-pie .tip, .docs .tip { left: auto; right: 0; }

.more-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  min-width: 220px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--deep);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(47, 80, 95, .2);
  padding: 8px;
}

.more-pop[hidden] { display: none; }

.more-pop a, .more-pop p {
  display: block;
  padding: 8px;
  color: var(--deep);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.sig {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 22px;
  font-size: 12px;
  color: var(--soft);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 6px 10px;
  z-index: 50;
}

.skip:focus { top: 8px; }

.search-box { position: relative; display: block; }

.search-box input, .multi-find, .drill-tools input {
  border: 1px solid #c5cfd2;
  border-radius: 4px;
  height: 32px;
  padding: 0 8px;
  width: 132px;
  background: #fff;
}

.suggest, .multi-pop {
  position: absolute;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--deep);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(47, 80, 95, .18);
  padding: 8px;
  width: 240px;
}

.suggest { top: 36px; left: 0; }

.suggest p, .multi-actions { margin: 6px 0 4px; font-size: 11px; font-weight: 700; color: var(--soft); letter-spacing: .4px; text-transform: uppercase; }

.suggest .empty-opt { text-transform: none; font-weight: 400; letter-spacing: 0; }

.suggest button, .multi-actions button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 6px 4px;
  font-size: 13px;
  color: var(--ink);
}

.rail-block { margin-top: 16px; }

.multi { position: relative; }

.dfilters .year-menu { min-width: 168px; }

.dfilters .year-menu .multi-face { min-height: 30px; padding: 4px 8px; font-weight: 700; white-space: nowrap; }

.dfilters .year-menu .multi-pop { min-width: 190px; }

.year-menu.is-off { opacity: .45; }

.share { color: var(--soft); font-weight: 600; font-size: 11px; }

.share-line { margin: 2px 0 0; color: var(--soft); font-size: 12px; font-weight: 600; }

.multi-face {
  width: 100%;
  text-align: left;
  border: 1px solid #c5cfd2;
  border-radius: 4px;
  background: #fff;
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.multi-pop { top: 36px; left: 0; }

.multi-actions { display: flex; gap: 8px; text-transform: none; letter-spacing: 0; }

.multi-actions button { width: auto; color: var(--aba-teal-dark); font-weight: 700; padding: 0; }

.multi-find { width: 100%; margin: 4px 0 8px; }

.multi-list { max-height: 220px; overflow: auto; }

.check { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; padding: 4px 0; }

.picked { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; font-size: 12px; color: var(--soft); }

.picked-chip {
  border: 1px solid #c5cfd2;
  background: #fff;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 11px;
}

.empty-opt { margin: 0; color: var(--soft); font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }

.drill-back { position: fixed; inset: 0; background: rgba(26, 51, 60, .35); z-index: 40; }

.drill {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  width: min(1100px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(26, 51, 60, .18);
}

.drill-bar, .drill-tools { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }

.drill-bar h2 { margin: 0; font-size: var(--detail-title-size); font-weight: 700; font-family: Montserrat, Raleway, sans-serif; color: var(--deep); }
.drill-tools, .drill-table, .record-count, .drill-tools input, .drill-back-btn { font-size: var(--detail-body-size); }

.drill-back-btn, .drill-export { border: 1px solid #c5cfd2; background: #fff; border-radius: 4px; padding: 6px 10px; font-weight: 700; }
.drill-export { padding: 4px 8px; white-space: nowrap; }
.drill-export:focus-visible, .drill-back-btn:focus-visible, .export-pop button:focus-visible { outline: 2px solid #243033; outline-offset: 2px; }
.export-menu { position: relative; }
.export-pop {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  min-width: 112px;
  background: #fff;
  border: 1px solid #c5cfd2;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(47, 80, 95, .2);
  padding: 4px;
}
.export-pop[hidden] { display: none; }
.export-pop button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 4px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: var(--detail-body-size);
  color: var(--deep);
}
.export-pop button:hover, .export-pop button:focus { background: #f4f8fa; }

.drill-tools input { flex: 1; width: auto; }

.record-count { margin: 0; font-weight: 600; white-space: nowrap; }

.drill-scroll { overflow: auto; flex: 1; }

.drill-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: var(--detail-body-size); }

.drill-table th, .drill-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: middle; white-space: nowrap; }

.drill-table th { position: sticky; top: 0; background: #fff; }

.drill-table th button { border: 0; background: transparent; font-weight: 700; padding: 0; color: var(--deep); white-space: nowrap; }

@media (max-width: 800px) {
  .drill { width: 100%; }
}

@media (max-width: 1100px) {
  .pill { padding: 0 8px; font-size: 12px; }
  .pseg button { padding: 6px 8px; }
  .big-members, .big-mid, .kpi-num { font-size: var(--kpi-size); }
}

@media (max-width: 800px) {
  .brand-full, .docs-full, .daterow-full, .side { display: none; }

  .brand-short { display: inline; }

  .docs-short { display: flex; }

  .docbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 52px;
    padding: 8px 10px 6px;
    gap: 4px 8px;
  }

  .brand-wrap { grid-column: 1; grid-row: 1; gap: 8px; min-width: 0; }

  .brand { font-size: 13px; min-width: 0; white-space: normal; line-height: 1.15; }

  .mark { height: 32px; }

  .mark img { height: 28px; }

  .docs-short { grid-column: 2; grid-row: 1; gap: 4px; }

  .icon-btn, .more-icon { width: 36px; height: 36px; }

  .example-badge { flex-basis: 100%; }

  .daterow-mob {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    min-height: 88px;
    align-items: stretch;
  }

  .daterow-mob .mob-main { display: flex; align-items: stretch; }

  .daterow-mob .cols { flex: 1; min-width: 0; display: flex; flex-direction: column; }

  .daterow-mob .track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 8px 0 10px;
  }

  .daterow-mob .ystep { flex: 0 0 auto; }

  .daterow-mob .pseg {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
  }

  .daterow-mob .pseg button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 4px;
    font-size: 11px;
    height: auto;
    white-space: nowrap;
  }

  .daterow-mob .dprow { display: flex; align-items: center; min-height: 36px; padding: 4px 8px 6px 10px; }

  .drow-span { flex: 1; border: 0; padding: 0; height: auto; }

  .drow-span input[data-date="from"] { left: 0; width: 50%; right: auto; }

  .drow-span input[data-date="to"] { left: 50%; width: 50%; right: auto; }

  .daterow-mob .sticky {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-left: 1px solid var(--line);
    background: #fff;
    z-index: 2;
  }

  .daterow-mob .reset { padding: 4px 8px; }

  .chips { display: block; padding: 8px 12px 0; }

  .chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

  .chip {
    padding: 6px 11px;
    border-radius: 15px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #c5cfd2;
    color: #5a6a6e;
  }

  .chip.on { background: var(--aba-teal); border-color: var(--aba-teal); color: #fff; font-weight: 700; }

  .main { padding: 0; }

  .row, .row-top, .row-bottom { display: block; margin: 0; }

  .stack { display: flex; flex-direction: row; gap: 6px; margin: 0 12px 6px; }

  .card, .row-top .card, .row-bottom .card { min-height: 0; margin: 0; padding: 8px 12px 10px; }

  .stack .card { margin: 0; padding: 8px 10px; }

  :root {
    --kpi-size: 40px;
    --year-value-size: 18px;
    --year-pct-size: 13px;
  }

  .sig { min-height: 40px; padding: 0 12px; }

  .example-badge { height: 18px; font-size: 11px; padding: 0 6px; }
}

.topnav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 14px; }
.compare-year {
  flex: none;
  border: 1px solid #c5cfd2;
  background: #fff;
  color: var(--deep);
  border-radius: 4px;
  min-height: 32px;
  padding: 4px 12px;
  font-family: Montserrat, Raleway, sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.compare-year[aria-pressed="true"] {
  background: var(--aba-teal);
  border-color: var(--aba-teal);
  color: #fff;
}
.chart-key i.key-prior { background: #7D949C; }
.chart-key i.key-prior-line {
  width: 14px;
  height: 0;
  border-top: 2px dashed #7D949C;
  background: transparent;
  border-radius: 0;
}
.prior-missing {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  color: #7D949C;
}
.prior-count {
  color: #7D949C;
  font-weight: 650;
  margin-left: 6px;
  font-size: 13px;
}
.prior-count::before { content: "· "; }
.nav-link, .docs-menu > .nav-link {
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  font-weight: 700;
  text-decoration: none;
  font-family: Montserrat, Raleway, sans-serif;
  font-size: 14px;
}
.nav-link.on, .view-tabs button.on { }
.nav-link.on { border-bottom-color: #fff; }
.docs-menu { position: relative; }
.docbar .more-pop { background: #fff; }
.docbar .more-pop a, .docbar .more-pop .doc-missing { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 650; }
.docbar .more-pop .doc-missing span { display: block; color: var(--soft); font-weight: 500; font-size: 12px; }
.docbar .more-pop a:hover { background: var(--aba-teal-light); }

.shell { padding: 16px; display: flex; flex-direction: column; gap: var(--section-gap); }
.view-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.view-tabs button, .pseg button {
  border: 1px solid #c5d0d4;
  background: #fff;
  border-radius: 4px;
  min-height: 36px;
  padding: 6px 12px;
  font-weight: 700;
  color: var(--deep);
}
.view-tabs button.on, .pseg button.on, .pseg button.on:hover {
  background: var(--aba-teal);
  border-color: var(--aba-teal);
  color: #fff;
}
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; }
.controls .lab { display: block; margin: 0 0 4px; color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.clear-filters {
  margin-left: auto;
  border: 1px solid var(--aba-teal-dark);
  color: var(--aba-teal-dark);
  background: #fff;
  border-radius: 4px;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 700;
}
.context-line { margin: 0; font-weight: 700; color: var(--ink); font-size: 15px; }
.scope-note, .ytd-note, .visit-note, .count-note, .series-key {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; align-items: center; }
.controls .filter-chips { margin-top: 0; }
.no-matches { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #3d4c50; }
.filter-hit { cursor: pointer; }
.tenure-hit { background: transparent; border: 0; padding: 0; text-align: inherit; font: inherit; color: inherit; }
.tenure-hit.is-on { outline: 2px solid #243033; }
.tenure-hit:focus-visible { outline: 2px solid #243033; }
.filter-hit:focus { outline: none; }
.filter-hit:focus-visible rect { stroke: #243033; stroke-width: 3; }
.filter-chip {
  border: 1px solid var(--aba-teal-dark);
  background: var(--aba-teal-light);
  color: var(--aba-teal-dark);
  border-radius: 99px;
  padding: 4px 10px;
  font-weight: 700;
}
.filters-btn { display: none; }
.kpi-row, .chart-grid, .detail-grid { display: grid; column-gap: 12px; row-gap: var(--section-gap); }
.kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.chart-grid { grid-template-columns: 1.15fr 1fr; margin-top: 0; }
.detail-grid { grid-template-columns: 1fr 1fr; margin-top: 0; align-items: start; }
.card-kpi .bodycol, .detail-grid .bodycol, .chart-grid .bodycol { min-height: auto; justify-content: flex-start; align-items: stretch; overflow: visible; gap: 12px; }
.kpi-num, .kpi-value, .big {
  margin: 0;
  width: 100%;
  font-family: Montserrat, Raleway, sans-serif;
  font-size: var(--kpi-size);
  font-weight: var(--kpi-weight);
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}
.card-foot { margin-top: auto; padding-top: 8px; }
.kpi-row .card, .chart-grid .card, .detail-grid .card { height: 100%; }
.detail-grid .card { height: auto; }
.kpi-row .period-tag, .detail-grid .period-tag { min-height: 1.35em; }
.kpi-caption, .period-tag { margin: 0; color: #3d4c50; font-size: var(--tag-size); font-weight: 650; line-height: 1.35; text-align: center; }
.card.kpi-members { border-top-color: #3F768B; background: #f4f8fa; }
.card.kpi-members .kpi-num { color: #2C5563; }
.card.kpi-net { border-top-color: #24785F; background: #f4faf7; }
.card.kpi-net .kpi-num { color: #1d6b52; }
.card.kpi-net .tone-down { color: #D01F25; }
.kpi-row .card.kpi-events { border-top-color: #3F768B; background: #f4f8fa; }
.card.kpi-events .kpi-num { color: #2C5563; }
.card.kpi-visits { border-top-color: #3D5A80; background: #f4f7fb; }
.card.kpi-visits .kpi-num { color: #2C4464; }
.card.kpi-noshow { border-top-color: #6B4C7A; background: #f8f4fa; }
.card.kpi-noshow .kpi-num { color: #5A3D68; }
.card.kpi-renewal { border-top-color: #8A5A12; background: #fbf6ee; }
.card.kpi-renewal .kpi-num { color: #6d470e; }
.card.kpi-renewal .kpi-num.tone-down { color: var(--clay); }
.card-renewal .pv.is-risk { color: #7A5410; }
.card-renewal .pr > div { flex: 1 0 auto; min-width: max-content; }
.card-renewal .pr .pl { white-space: nowrap; }
.detail-link {
  border: 0;
  background: transparent;
  color: var(--aba-teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  white-space: nowrap;
}
.range-menu .multi-pop { min-width: 240px; padding: 8px; }
.range-menu .check, .side .check { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-weight: 650; }
.custom-range { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.custom-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.date-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-weight: 700; }
.date-field input { border: 1px solid #c5d0d4; border-radius: 4px; padding: 4px 6px; }
.all-types, .range-count { margin: 6px 0; font-weight: 650; color: var(--ink); }
.tog-check { width: 100%; }
.tog-check .n { margin-left: auto; color: var(--soft); font-weight: 700; }
.tick { font-weight: 800; }
.visit-donut { display: flex; align-items: center; gap: 16px; width: 100%; }
.donut { width: 148px; height: 148px; flex: none; }
.donut-labels { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.donut-label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  font-weight: 700;
  padding: 4px;
  border-radius: 4px;
  color: var(--ink);
}
.donut-label.is-on { border-color: var(--aba-teal-dark); background: var(--aba-teal-light); }
.donut-label .swatch { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.hbar { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.hbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  grid-template-areas: "name count pct" "track track track";
  gap: 2px 8px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px;
  border-radius: 4px;
}
.hbar-row.is-on { border-color: var(--aba-teal-dark); background: var(--aba-teal-light); }
.hbar-name { grid-area: name; font-weight: 700; }
.hbar-count { grid-area: count; font-weight: 800; font-family: Montserrat, Raleway, sans-serif; }
.hbar-pct { grid-area: pct; color: var(--soft); font-weight: 700; }
.hbar-track { grid-area: track; height: 14px; background: #e6eef1; border-radius: 7px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; }
.hbar-fill.member { background: repeating-linear-gradient(90deg, #3F768B 0 7px, #2C5563 7px 9px); }
.hbar-fill.guest { background: radial-gradient(circle, #fff 1.1px, transparent 1.3px), #7D949C; background-size: 7px 7px; }
.detail-grid .big-mid, .detail-grid .kpi-num { font-size: var(--kpi-size); }
.detail-grid .pr, .chart-grid .pr { flex-wrap: wrap; }
.detail-grid .card-events,
.detail-grid .card-attendance,
.detail-grid .card-noshow, .detail-grid .card-renewal {
  height: auto;
}
.detail-grid .card-events .bodycol,
.detail-grid .card-attendance .bodycol,
.detail-grid .card-noshow .bodycol,
.detail-grid .card-renewal .bodycol {
  flex: 1 1 auto;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
  min-height: 0;
}
.detail-grid .card-events .bodycol > *,
.detail-grid .card-attendance .bodycol > *,
.detail-grid .card-noshow .bodycol > *,
.detail-grid .card-renewal .bodycol > * {
  margin: 0;
}
.detail-grid .card-events .big,
.detail-grid .card-attendance .big,
.detail-grid .card-events .kpi-num,
.detail-grid .card-attendance .kpi-num,
.detail-grid .card-noshow .kpi-num,
.detail-grid .card-renewal .kpi-num {
  margin: 0;
  line-height: 1;
  text-align: center;
}
.detail-grid .card-events .pr,
.detail-grid .card-attendance .pr,
.detail-grid .card-noshow .pr,
.detail-grid .card-renewal .pr {
  gap: 16px;
  align-items: flex-start;
}
.pr .pl { font-size: var(--year-label-size); }
.pr .pv { font-size: var(--year-value-size); margin-top: 2px; }
.pr .share { font-size: var(--year-pct-size); font-weight: 650; color: #3d4c50; }
.chart-key, .donut-label {
  font-size: 12px;
  font-weight: 650;
  color: #3d4c50;
}
.chart-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.chart-key .key-item { display: inline-flex; align-items: center; gap: 6px; }
.chart-key i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
}
.chart-key i.key-line { width: 14px; height: 3px; border-radius: 2px; background: #243033; }
.chart-key .key-gained { background: #3F768B; }
.chart-key .key-lost { background: #3F768B; opacity: .4; }
.detail-grid .card-events .chart-slot,
.detail-grid .card-attendance .chart-slot,
.detail-grid .card-noshow .chart-slot,
.detail-grid .card-renewal .chart-slot {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  padding-bottom: 8px;
}
.detail-grid .card-events .chart,
.detail-grid .card-attendance .chart,
.detail-grid .card-noshow .chart,
.detail-grid .card-renewal .chart {
  width: 100%;
  height: auto;
}
.side .h { color: var(--soft); }

@media (min-width: 801px) {
  #dash.page-fit {
    height: 100vh;
    max-height: 100vh;
  }
  #dash.page-fit .docbar { min-height: 48px; padding: 0 16px; }
  #dash.page-fit .mark { height: 32px; }
  #dash.page-fit .mark img { height: 26px; }
  #dash.page-fit .sig { min-height: 28px; padding: 0 16px; }
  #dash.page-fit .shell {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 16px 8px;
    gap: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  #dash.page-fit .view-tabs { grid-column: 1; grid-row: 1; align-self: center; }
  #dash.page-fit .view-tabs button { min-height: 32px; padding: 4px 10px; }
  #dash.page-fit .controls {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-content: flex-end;
    align-items: center;
    gap: 12px 16px;
  }
  #dash.page-fit .controls .lab { display: inline; margin: 0 8px 0 0; }
  #dash.page-fit .context-line { grid-column: 1 / -1; grid-row: 2; white-space: nowrap; }
  #dash.page-fit .body { grid-column: 1 / -1; grid-row: 3; min-height: 0; height: 100%; }
  #dash.page-fit .main { height: 100%; min-height: 0; gap: 12px; }
  #dash.page-fit .kpi-row { flex: 0 0 auto; }
  #dash.page-fit .kpi-row .card,
  #dash.page-fit .chart-grid .card { padding: 8px 12px 6px; }
  #dash.page-fit .kpi-row .bodycol { gap: 4px; }
  #dash.page-fit .card-foot { padding-top: 4px; }
  #dash.page-fit .chart-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  #dash.page-fit .chart-grid .card { min-height: 0; overflow: hidden; }
  #dash.page-fit .chart-grid .bodycol { flex: 1 1 auto; min-height: 0; gap: 8px; }
  #dash.page-fit .chart-grid .chart-slot,
  #dash.page-fit .chart-grid .visit-donut {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  #dash.page-fit .chart-grid .chart,
  #dash.page-fit .chart-grid .pie {
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
  #dash.page-fit .chart-grid .donut {
    width: auto;
    height: auto;
    max-height: 72%;
    max-width: 42%;
    flex: 0 1 auto;
  }
  #dash.page-fit .chart-grid .donut-labels { flex: 1 1 auto; min-width: 0; }
  #dash.page-fit .donut-label { white-space: nowrap; height: auto; }
  #dash.page-membership .detail-grid,
  #dash.page-events .detail-grid {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }
  #dash.page-membership .detail-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  #dash.page-membership .detail-grid .card { height: auto; }
  #dash.page-membership .detail-grid .card-gains,
  #dash.page-membership .detail-grid .card-types {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  #dash.page-membership .detail-grid .card-gains { grid-column: 1 / -1; }
  #dash.page-membership .detail-grid:has(.card-types) .card-gains { grid-column: 1 / 3; }
  #dash.page-membership .detail-grid .card-types { grid-column: 3; }
  #dash.page-membership .kpi-members .card,
  #dash.page-membership .detail-grid > .card:not(.card-gains):not(.card-types) {
    padding: 8px 12px 6px;
  }
  #dash.page-membership .detail-grid > .card:not(.card-gains):not(.card-types) .bodycol { gap: 4px; }
  #dash.page-events .body { min-height: 0; }
  #dash.page-events .side { max-height: 100%; overflow: auto; }
  #dash.page-events .main { height: 100%; min-height: 0; }
  #dash.page-events .detail-grid {
    grid-template-columns: 1.15fr 1.15fr 0.9fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "events visits donut"
      "noshow renewal renewal";
  }
  #dash.page-events .card-events { grid-area: events; }
  #dash.page-events .card-attendance { grid-area: visits; }
  #dash.page-events .card-noshow { grid-area: noshow; }
  #dash.page-events .card-renewal { grid-area: renewal; }
  #dash.page-events .card-pie { grid-area: donut; }
  #dash.page-events .detail-grid .card,
  #dash.page-membership .card-gains,
  #dash.page-membership .card-types {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  #dash.page-events .detail-grid .card { height: 100%; }
  #dash.page-events .detail-grid .bodycol,
  #dash.page-membership .card-gains .bodycol,
  #dash.page-membership .card-types .bodycol {
    flex: 1 1 auto;
    min-height: 0;
    gap: 8px;
  }
  #dash.page-membership .card-types .bodycol { overflow: hidden; }
  #dash.page-membership .card-types .chart-slot {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  #dash.page-events .detail-grid .chart-slot,
  #dash.page-events .detail-grid .visit-donut,
  #dash.page-membership .card-gains .chart-slot {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  #dash.page-events .detail-grid .chart,
  #dash.page-membership .card-gains .chart {
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
  #dash.page-membership .card-types .chart { width: 100%; height: 100%; max-height: 100%; }
  #dash.page-events .visit-donut { align-items: center; }
  #dash.page-events .donut { max-height: 70%; width: auto; height: auto; flex: 0 1 auto; }
}

@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .docbar { display: flex; flex-wrap: wrap; }
  .topnav { width: 100%; justify-content: flex-start; }
  .docbar { overflow: visible; align-items: flex-start; }
  .brand-wrap { flex-wrap: wrap; width: 100%; overflow: visible; }
  .example-badge { flex: 0 0 auto; flex-basis: auto; max-width: none; }
  .filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    border: 1px solid var(--aba-teal-dark);
    background: #fff;
    color: var(--aba-teal-dark);
    border-radius: 4px;
    min-height: 40px;
    padding: 0 12px;
    font-weight: 700;
  }
  .side { display: none; width: auto; }
  .side.is-open { display: block; width: auto; border-right: 0; padding: 12px 0; }
  .body { display: block; }
  .kpi-row, .chart-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .card-events .bodycol,
  .detail-grid .card-attendance .bodycol,
  .detail-grid .card-noshow .bodycol,
  .detail-grid .card-renewal .bodycol { gap: 12px; }
  .detail-grid .card-events .chart-slot,
  .detail-grid .card-attendance .chart-slot,
  .detail-grid .card-noshow .chart-slot,
  .detail-grid .card-renewal .chart-slot { min-height: 0; padding-bottom: 4px; }
  .clear-filters { margin-left: 0; }
  .kpi-row .bodycol, .chart-grid .bodycol, .detail-grid .bodycol { gap: 12px; }
}
