/* DuesData data pages: key numbers card, tiers, finder map. Uses tokens from styles.css. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Three key numbers */
.key3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: var(--radius); margin: 18px 0 6px; }
.key3 .k { padding: 22px 24px; border-left: 1px solid var(--line); }
.key3 .k:first-child { border-left: 0; }
.k-label { font-family: var(--font-head); font-weight: 700; font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--slate); }
.k-val { font-family: var(--font-head); font-weight: 800; font-size: 38px; line-height: 1.15; color: var(--navy); margin: 8px 0 6px; word-break: break-word; }
.k-sub { font-size: 14px; color: var(--slate); }
@media (max-width: 760px) {
  .key3 { grid-template-columns: 1fr; }
  .key3 .k { border-left: 0; border-top: 1px solid var(--line); }
  .key3 .k:first-child { border-top: 0; }
  .k-val { font-size: 32px; }
}

/* Status chips */
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-right: 6px; white-space: nowrap; }
.st-confirmed { background: #d9f2ec; color: var(--accent-dark); }
.st-single { background: #e3edf8; color: var(--blue); }

/* Dues by unit size */
table.tiers { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
table.tiers caption { text-align: left; font-size: 14px; color: var(--slate); padding-bottom: 4px; }
table.tiers thead th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--slate); padding: 0 16px; font-weight: 700; }
table.tiers tbody th, table.tiers tbody td { background: var(--white); padding: 14px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.tiers tbody th { border-left: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font-head); font-size: 16px; white-space: nowrap; }
table.tiers tbody td:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; }
.tier-amt { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.tier-amt span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--slate); }
.tier-src { display: block; color: var(--slate); font-size: 13px; margin-top: 4px; }
tr.tier-missing th, tr.tier-missing td { background: transparent; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); color: var(--slate); }
tr.tier-missing th { border-left: 2px dashed var(--line); }
tr.tier-missing td:last-child { border-right: 2px dashed var(--line); }
tr.tier-missing .tier-amt { font-size: 16px; font-weight: 600; }
.tier-add { font-weight: 700; }
@media (max-width: 640px) {
  table.tiers thead { display: none; }
  table.tiers tbody tr { display: block; margin-bottom: 10px; }
  table.tiers tbody th, table.tiers tbody td { display: block; border: 1px solid var(--line); border-radius: 0 !important; }
  table.tiers tbody th { border-radius: var(--radius) var(--radius) 0 0 !important; border-bottom: 0; }
  table.tiers tbody td:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; border-top: 0; }
  table.tiers tbody td.tier-amt { border-top: 0; border-bottom: 0; }
}
.cover-head { margin: 4px 0 12px; }
.level-pill.muted { color: var(--slate); font-weight: 700; }

/* City stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0 6px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-val { font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1.2; color: var(--navy); }
.stat-label { font-weight: 700; margin-top: 4px; }
.stat-sub { font-size: 13px; color: var(--slate); }

/* Finder */
.dd-finder { margin: 14px 0 10px; }
.dd-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.dd-search input { flex: 1 1 320px; min-width: 0; font: inherit; font-size: 17px; padding: 13px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy); }
.dd-search input:focus { outline: none; border-color: var(--teal); }
.dd-chips { display: flex; gap: 8px; }
.chip { font: inherit; font-size: 15px; font-weight: 700; padding: 11px 18px; border-radius: 999px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; }
.chip.on { background: var(--navy); color: var(--white); }
.dd-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
.dd-map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--slate-light); z-index: 0; }
.dd-list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.dd-list li + li { border-top: 1px solid var(--line); }
.dd-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--navy); }
.dd-list a:hover, .dd-list a:focus { background: var(--slate-light); }
.li-name { font-weight: 700; }
.li-name span { display: block; font-weight: 400; font-size: 13px; color: var(--slate); }
.li-amt { text-align: right; font-family: var(--font-head); font-weight: 800; white-space: nowrap; }
.li-amt .status { display: block; margin: 4px 0 0 auto; width: max-content; font-family: var(--font-body); }
.dd-list .empty { padding: 16px; color: var(--slate); }
.dd-legend { margin-top: 10px; }
.pin-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin: 0 4px 0 8px; }
.pin-dot.st-confirmed { background: var(--teal); }
.pin-dot.st-single { background: var(--blue); }
@media (max-width: 860px) {
  .dd-split { grid-template-columns: 1fr; }
  .dd-map { height: 380px; }
  .dd-list { max-height: 420px; }
}
.more-areas { margin-top: 28px; }

/* Map pins and clusters */
.dd-pin-wrap { background: none; border: 0; }
.dd-pin { position: relative; display: inline-block; min-width: 48px; text-align: center; padding: 4px 8px; border-radius: 8px; font: 700 13px/1.2 var(--font-body); color: var(--white); box-shadow: 0 2px 6px rgba(7, 31, 77, 0.35); border: 2px solid var(--white); transform: translate(0, 0); }
.dd-pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: inherit; }
.dd-pin.st-single { background: var(--blue); border-top-color: var(--white); }
.dd-pin.st-confirmed { background: var(--accent-dark); }
.dd-pin.st-single::after { border-top-color: var(--blue); }
.dd-pin.st-confirmed::after { border-top-color: var(--accent-dark); }
.dd-pin.hot { background: var(--navy); transform: scale(1.15); z-index: 1000; }
.leaflet-marker-icon.dd-cluster { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(11, 45, 107, 0.88); border: 4px solid rgba(110, 231, 220, 0.75); color: var(--white); font: 800 15px var(--font-head); }
.dd-pop { display: flex; flex-direction: column; gap: 3px; font-family: var(--font-body); color: var(--navy); min-width: 200px; }
.dd-pop strong { font-family: var(--font-head); font-size: 15px; }
.dd-pop-sub { font-size: 12.5px; color: var(--slate); }
.dd-pop-amt { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.dd-pop-amt small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--slate); }
.dd-pop .status { width: max-content; }
.dd-pop a { font-weight: 700; margin-top: 4px; }

/* Homepage pulse card */
.pulse-card { max-width: 360px; padding: 18px 20px 16px; align-self: end; }
.pulse-card .snap-top { margin-bottom: 4px; }
.pulse-big { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; margin: 6px 0 14px; color: #fff; }
.pulse-big span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: #CBD5E1; margin-top: 6px; letter-spacing: 0.2px; }
.pulse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.pulse-tile { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 9px 9px; min-width: 0; }
.pulse-tile b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--aqua); line-height: 1.15; white-space: nowrap; }
.pulse-tile span { display: block; font-size: 11.5px; color: #CBD5E1; margin-top: 2px; white-space: nowrap; }
.pulse-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.14); color: #fff; text-decoration: none; font-size: 13.5px; }
.pulse-row span { color: #CBD5E1; white-space: nowrap; }
.pulse-row strong { text-align: right; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse-row strong em { font-style: normal; color: var(--aqua); margin-left: 4px; }
a.pulse-row:hover strong { text-decoration: underline; }
.pulse-row.soon strong { color: #FDBA74; font-weight: 600; }
.pulse-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 12px; color: #B8C4D4; }
.pulse-foot .snap-link { font-size: 14.5px; white-space: nowrap; }
@media (max-width: 760px) { .pulse-big { font-size: 38px; } .pulse-card { max-width: none; } }

.k-pending { font-size: 26px; color: var(--slate); }
.k-mix { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.k-mix li { padding: 3px 0; border-top: 1px dashed var(--line); font-weight: 600; }
.k-add { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; }
.tier-units { font-weight: 600; white-space: nowrap; }

.rec-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rec-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.rec-list a { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.rec-list a::after { content: " \2197"; font-size: 13px; }
.rec-list span { display: block; color: var(--slate); font-size: 14px; margin-top: 4px; }

/* Association lookup */
.ddl-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.ddl-wrap input { width: 100%; }
.ddl-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; list-style: none; margin: 0; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(7, 31, 77, 0.18); max-height: 380px; overflow-y: auto; }
.ddl-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.ddl-list li.on, .ddl-list li:hover { background: var(--slate-light); }
.ddl-n { font-weight: 700; color: var(--navy); }
.ddl-m { grid-column: 1; font-size: 13px; color: var(--slate); }
.ddl-d { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--navy); white-space: nowrap; }
.ddl-none { color: var(--slate); font-size: 14px; cursor: default !important; }

/* Simple health check */
.hc-simple .big-label { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin-bottom: 10px; display: block; }
.hc-search { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-search input { font-size: 19px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 999px; }
.hc-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 180, 167, 0.15); }
.hc-search .btn { border-radius: 999px; padding: 16px 28px; font-size: 17px; }
.hc-known { margin: 16px 0 4px; padding: 14px 16px; background: var(--slate-light); border-radius: var(--radius); }
.hc-known-title { margin: 0 0 8px; }
.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-chips span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; }
.hc-known-note { margin: 10px 0 0; font-size: 14px; color: var(--slate); }
.hc-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.hc-more summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--blue); }
.hc-more summary span { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--slate); margin-left: 8px; }
.hc-more[open] summary { margin-bottom: 12px; }
.footer-credit { font-size: 13px; opacity: 0.85; }
.submit-form fieldset.mix { margin-top: 16px; }
.mix-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mix-grid label { font-weight: 600; font-size: 14px; }
.mix-grid input { margin-top: 4px; }
@media (max-width: 640px) { .mix-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* dues stack */
table.stack{width:100%;border-collapse:collapse;margin:.5rem 0 1rem;font-size:.95rem}
table.stack caption{text-align:left;font-size:.85rem;color:var(--muted,#5b6470);padding-bottom:.35rem}
table.stack th,table.stack td{padding:.7rem .6rem;border-bottom:1px solid var(--line,#e3e6ea);text-align:left;vertical-align:top}
table.stack th .sub{display:block;font-weight:400;font-size:.84rem;color:var(--muted,#5b6470);margin-top:.2rem;line-height:1.4}
table.stack td.amt{text-align:right;white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}
table.stack tr.stack-total th,table.stack tr.stack-total td{border-top:2px solid var(--ink,#1c2430);border-bottom:0;font-size:1.05rem}
.stack-no{background:var(--soft,#f4f6f8);border-left:4px solid #b7791f;padding:.75rem .9rem;border-radius:6px;font-size:.93rem;line-height:1.5}
/* records-only pages list */
.stub-more summary{cursor:pointer;font-weight:700;padding:.6rem 0;color:var(--brand,#0b3a6f)}
.stub-list{columns:2 16rem;column-gap:2rem;list-style:none;padding:0;margin:.5rem 0 0}
.stub-list li{break-inside:avoid;padding:.3rem 0;border-bottom:1px solid var(--line,#e3e6ea);font-size:.93rem}
.stub-list li span{color:var(--muted,#5b6470);font-size:.82rem;margin-left:.35rem}
