/* Minnesota Property Tax Watch — same civic data-journalism style as the fraud tracker */
@font-face { font-family: "Source Sans Pro"; src: url("../fonts/SourceSansPro-Regular.woff2") format("woff2"), url("../fonts/SourceSansPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("../fonts/SourceSansPro-Bold.woff2") format("woff2"), url("../fonts/SourceSansPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --teal: #0f5e5e;
  --ink: #1a1a1a; --ink-2: #3d3d3d; --muted: #5c5c5c; --paper: #fbfaf7; --card: #fff; --rule: #e3ded3;
  --navy: #1f3a5f; --navy-dark: #142944; --navy-2: #2c5282; --gold-soft: #ffe08a; --amber: #8a5a00; --amber-bg: #fff6e0; --red: #9b2c2c; --red-bg: #fdecec; --green: #22543d;
  --bs-body-font-family: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bs-body-color: var(--ink); --bs-body-bg: var(--paper); --bs-link-color: var(--navy-2);
}
html { font-size: 17px; }
body { background: var(--paper); color: var(--ink); line-height: 1.55; font-family: var(--bs-body-font-family); }
h1, h2, h3, .display-title { font-family: Georgia, "Times New Roman", serif; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 700; margin-top: 2rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 54rem; }
.kicker { text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; font-weight: 700; color: var(--amber); }
.small-muted, .text-muted { color: var(--muted) !important; }
a { color: var(--navy-2); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: .5rem; background: #fff; padding: .5rem 1rem; z-index: 2000; }
.site-header { background: #fff; border-bottom: 1px solid var(--rule); }
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand-mark { background: var(--navy); color: #fff; font-family: Georgia, serif; font-weight: 700; padding: .25rem .45rem; border-radius: 3px; }
.brand-text { font-family: Georgia, serif; font-weight: 700; line-height: 1.05; font-size: 1rem; }
.navbar .nav-link { color: var(--ink); font-weight: 700; }
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse { flex-wrap: wrap; row-gap: .15rem; }
  .navbar-expand-lg .navbar-nav { flex-wrap: wrap; }
  .navbar-expand-lg .navbar-nav .nav-link { white-space: nowrap; padding-left: .5rem; padding-right: .5rem; }
}
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: #142944; --bs-btn-hover-border-color: #142944; --bs-btn-active-bg: #142944; --bs-btn-active-border-color: #142944; --bs-btn-disabled-bg: var(--navy); --bs-btn-disabled-border-color: var(--navy); }
.btn-outline-primary { --bs-btn-color: var(--navy-2); --bs-btn-border-color: var(--navy-2); --bs-btn-hover-bg: var(--navy-2); --bs-btn-hover-border-color: var(--navy-2); --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); }
/* Long source URLs in notes wrap on phones instead of widening the page. */
main p, main li, main dd { overflow-wrap: anywhere; }
main td { overflow-wrap: break-word; }
.dropdown-item.active, .dropdown-item:active { background: var(--navy); }
.site-footer { border-top: 1px solid var(--rule); background: #f3f1ec; padding: 2rem 0; margin-top: 3rem; color: var(--ink-2); }
.card-plain { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 1.25rem; }
.section-rule { border-top: 3px solid var(--ink); padding-top: .5rem; margin-top: 2.25rem; }

/* Headline stat cards */
.hero { background: var(--navy); color: #fff; border-radius: 8px; padding: 1.75rem; }
.hero h1 { color: #fff; }
.hero .lede { color: #e6edf7; }
.hero-number { font-family: Georgia, serif; font-weight: 700; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1; color: #ffe08a; }
.hero-sub { color: #dbe4f0; }
.stat { background: #fff; border: 1px solid var(--rule); border-left: 6px solid var(--navy); border-radius: 6px; padding: 1rem 1.1rem; height: 100%; }
.stat.up { border-left-color: var(--red); }
.stat .value { font-family: Georgia, serif; font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.stat .label { font-weight: 700; }
.stat .note { font-size: .9rem; color: var(--muted); }
.chg-up { color: var(--red); font-weight: 700; }
.chg-down { color: var(--green); font-weight: 700; }
.vs-table td, .vs-table th { vertical-align: middle; }
.bar-cell { position: relative; min-width: 120px; }
.bar { height: .7rem; background: var(--navy-2); border-radius: 2px; }
.bar.levy { background: var(--red); }
.chart-box { position: relative; height: 340px; }
@media (max-width: 576px) { .chart-box { height: 260px; } html { font-size: 16px; } h1 { font-size: 1.7rem; } }

/* Map */
.map { height: 520px; border: 1px solid var(--rule); border-radius: 6px; background: #eef1f4; }
@media (max-width: 768px) { .map { height: 380px; } }
.legend { background: rgba(255,255,255,.95); padding: .45rem .6rem; border-radius: 4px; font-size: .8rem; line-height: 1.35; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.legend i { display: inline-block; width: 14px; height: 12px; margin-right: 5px; vertical-align: -1px; }
.metric-picker { max-width: 26rem; }

/* Tables */
table.dataTable td, table.dataTable th { font-size: .92rem; }
table.dataTable td.num, table.dataTable th.num { text-align: right; white-space: nowrap; }
.table-wrap { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: .75rem; }

.sources-box { border-top: 2px solid var(--ink); margin-top: 2.5rem; padding-top: .75rem; font-size: .92rem; }
.sources-box h2 { font-family: var(--bs-body-font-family); letter-spacing: .06em; }
.note-box { background: var(--amber-bg); border-left: 5px solid #b07a00; padding: .6rem .9rem; margin: 1rem 0; font-size: .95rem; }
.gap-box { background: #eef2f7; border-left: 5px solid var(--navy-2); padding: .6rem .9rem; margin: 1rem 0; font-size: .95rem; }
.party-dfl, .table > tbody > tr > td.party-dfl { background-color: #dbe7f7; }
.party-gop, .table > tbody > tr > td.party-gop { background-color: #f7dcdc; }
.party-split, .table > tbody > tr > td.party-split { background-color: #ece6f5; }
@media (max-width: 575px) { .legend { font-size: .68rem; padding: .3rem .4rem; } .legend i { width: 10px; height: 9px; } }

/* Subtle reader-support link in the header and footer */
.nav-support {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted) !important;
  font-weight: 600 !important;
  font-size: .92rem;
  white-space: nowrap;
}
.nav-support:hover, .nav-support:focus-visible { color: var(--navy) !important; }
.nav-support svg { width: .95rem; height: .95rem; flex: none; }
.footer-support { font-weight: 600; }

/* Share bars */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .75rem 0 1rem; }
.share-bar .share-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #555; margin-right: .2rem; }
.btn-share-x { background: #111; color: #fff; border: 1px solid #111; }
.btn-share-x:hover, .btn-share-x:focus { background: #333; color: #fff; }
.share-bar.share-compact { margin: .35rem 0 0; }
/* Nav feature link */
/* Tax bill estimator */
.calc-form { padding: 1.1rem 1.25rem; }
.estimate-badge { display: inline-block; background: #ffe08a; color: #1F3A5F; font-weight: 700; font-size: .75rem; border-radius: 999px; padding: .1rem .55rem; margin-left: .25rem; white-space: nowrap; }
.hero .hero-sources { color: rgba(255,255,255,.75); }
.calc-steps li { margin-bottom: .5rem; }
.footer-sister a { font-weight: 600; }
/* Home: calculator feature */
.calc-feature { border-left: 6px solid #c9a227; }
@media (max-width: 575.98px) { .share-bar .btn { flex: 1 1 auto; } }

/* Accessibility: contrast and tap targets */
.btn-outline-secondary { color: #495057; }  /* Bootstrap 5.1 default #6c757d is 4.49:1 on the page background */
.btn-outline-primary { color: #1f4f8f; border-color: #1f4f8f; }
.btn-outline-primary:hover, .btn-outline-primary.active, .btn-check:checked + .btn-outline-primary, .btn-check:active + .btn-outline-primary { color: #fff; background-color: #1f4f8f; border-color: #1f4f8f; }
.breadcrumb-item.active, .nav-pills .nav-link:not(.active) { color: #555; }
code { color: #a01c5c; }
.site-footer a { display: inline-block; padding: .2rem 0; }
.footer-cta .btn { display: block; width: 100%; max-width: 220px; }
.btn-follow-x { background: #000; color: #fff; font-weight: 700; }
.btn-follow-x:hover, .btn-follow-x:focus { background: #333; color: #fff; }
.btn-support { background: #f2c14e; color: #1f3a5f; font-weight: 700; }
.btn-support:hover, .btn-support:focus { background: #e0ad35; color: #1f3a5f; }
.home-cta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 575.98px) { .navbar .nav-link { padding-top: .55rem; padding-bottom: .55rem; } }
.nav-support-note { font-size: .72rem; color: #555; max-width: 11rem; line-height: 1.15; }
@media (max-width: 991.98px) { .nav-support-note { max-width: none; display: block; padding-bottom: .4rem; } }
.kofi-note { color: inherit; font-size: .8rem; }
.outcome-banner { border-left: 6px solid #2e7d32; background: #eef7ee; padding: .9rem 1.1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 1.05rem; }
.not-tip-line { border-left: 6px solid #b26a00; background: #fff6e5; padding: .8rem 1rem; border-radius: 6px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* Report an error / corrections */
.report-error-bar { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ddd; }
.btn-outline-secondary { color: #495057; }
.not-tip-line { border-left: 6px solid #b26a00; background: #fff6e5; padding: .8rem 1rem; border-radius: 6px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.kofi-note { font-size: .8rem; }
.footer-links a { display: inline-block; padding: .2rem 0; }
.estimate-notice { border-left: 6px solid #1f3a5f; background: #eef3f9; padding: .8rem 1rem; border-radius: 6px; font-size: 1.05rem; }
.form-text, .text-muted { color: #565e66 !important; }   /* Bootstrap #6c757d is 4.49:1 on the page background */

/* ---------- Navigation (Nov 2026 redesign): one tidy row on desktop, clean collapse on mobile ---------- */
.site-header { position: relative; z-index: 1020; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.site-nav { padding-top: .55rem; padding-bottom: .55rem; }
.site-nav .navbar-brand { margin-right: 1.25rem; padding: 0; }
.site-nav .navbar-collapse { flex-wrap: nowrap; }
.site-nav .main-links { gap: .1rem; }
.site-nav .navbar-nav .nav-link {
  position: relative; color: #2b2f36; font-weight: 600; font-size: .97rem; white-space: nowrap;
  padding: .55rem .7rem; border-radius: 6px; transition: background-color .15s, color .15s;
}
.site-nav .navbar-nav .nav-link:hover { color: var(--navy); background: #f1efe9; }
.site-nav .navbar-nav .nav-link.active, .site-nav .navbar-nav .nav-link[aria-current="page"] { color: var(--navy); }
.site-nav .navbar-nav .nav-link:focus-visible, .site-nav .btn-donate:focus-visible, .site-nav .navbar-toggler:focus-visible,
.site-nav .dropdown-item:focus-visible, .site-footer a:focus-visible {
  outline: 3px solid #f2c14e; outline-offset: 2px; box-shadow: 0 0 0 5px #1f3a5f;
}
.site-nav .navbar-toggler:focus { box-shadow: none; }
.site-nav .dropdown-menu { border: 1px solid #e3dfd5; border-radius: 10px; box-shadow: 0 10px 30px rgba(31,58,95,.12); padding: .4rem; min-width: 15rem; }
.site-nav .dropdown-header { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b5f66; padding: .45rem .75rem .2rem; margin: 0; }
.site-nav .dropdown-item { border-radius: 6px; padding: .42rem .75rem; font-size: .95rem; color: #2b2f36; }
.site-nav .dropdown-item:hover { background: #f1efe9; color: var(--navy); }
.site-nav .dropdown-item[aria-current="page"] { background: var(--navy); color: #fff; }
.site-nav .btn-donate, .site-nav .btn-donate.nav-support {
  display: inline-flex; align-items: center; gap: .4rem; margin-left: .75rem; white-space: nowrap;
  background: #f2c14e; color: #1f3a5f !important; font-weight: 700 !important; font-size: .95rem;
  border: 0; border-radius: 999px; padding: .45rem 1rem; line-height: 1.2;
}
.site-nav .btn-donate:hover { background: #e0ad35; color: #1f3a5f !important; }
.site-nav .btn-donate[aria-current="page"] { box-shadow: inset 0 0 0 2px #1f3a5f; }
@media (min-width: 992px) {
  /* active page: underline bar */
  .site-nav .main-links > .nav-item > .nav-link.active:not(.dropdown-toggle)::after,
  .site-nav .main-links > .nav-item > .nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .1rem; height: 3px; border-radius: 2px; background: #f2c14e;
  }
}
@media (min-width: 992px) {
  /* section menu holding the current page: same bar, drawn without replacing the caret */
  .site-nav .main-links > .nav-item > .nav-link.dropdown-toggle.active { box-shadow: inset 0 -3px 0 -0px #f2c14e; border-radius: 6px 6px 0 0; }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
  .site-nav .navbar-nav .nav-link { padding-left: .5rem; padding-right: .5rem; font-size: .93rem; }
  .site-nav .btn-donate.nav-support { margin-left: .4rem; padding: .4rem .8rem; }
}
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { border-top: 1px solid #ebe7de; margin-top: .55rem; padding: .4rem 0 .6rem; }
  .site-nav .main-links { gap: 0; }
  .site-nav .navbar-nav .nav-link { padding: .7rem .6rem; font-size: 1.02rem; border-radius: 6px; }
  .site-nav .navbar-nav .nav-link[aria-current="page"] { background: #eef2f7; box-shadow: inset 4px 0 0 #1f3a5f; }
  .site-nav .dropdown-menu { box-shadow: none; border: 0; background: #f7f5f0; margin: 0 0 .3rem; }
  .site-nav .btn-donate.nav-support { margin: .6rem 0 0; width: 100%; justify-content: center; padding: .7rem 1rem; font-size: 1.02rem; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 2rem; }
.site-footer .footer-title { font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem; color: #1b1f24; margin-bottom: .5rem; }
.site-footer .footer-heading { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #3d4148; margin: 0 0 .6rem; }
.site-footer .footer-links li { margin-bottom: .35rem; font-size: .93rem; }
.site-footer .footer-links a { color: #1f3a5f; text-decoration: none; padding: .15rem 0; }
.site-footer .footer-links a:hover { text-decoration: underline; }
.site-footer .footer-x { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; max-width: 100%; }
.site-footer .footer-x .x-handle { overflow-wrap: anywhere; min-width: 0; }
.site-footer .footer-x svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #111; color: #fff; }
.site-footer .footer-x:hover svg { background: #1f3a5f; }
.site-footer .footer-sister { font-size: .85rem; color: #3d4148; padding-top: .2rem; }
.support-box { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1.1rem 1.25rem; border: 1px solid #e3dfd5; border-radius: 10px; background: #fff; margin: 1rem 0 1.5rem; }
.support-box .kofi-note { font-size: .95rem; color: #3d4148; }

/* ---------- List pages: lazy map placeholder + server-rendered table ---------- */
.map-lazy { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.map-lazy .map-preview { height: 100%; width: auto; max-width: 100%; object-fit: contain; opacity: .9; }
.map-lazy .map-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 4px 14px rgba(31,58,95,.25); }
.map-lazy .map-noscript { position: absolute; bottom: .5rem; left: .5rem; right: .5rem; margin: 0; background: rgba(255,255,255,.92); padding: .4rem .6rem; border-radius: 4px; font-size: .9rem; }
.map-loading .map-preview { opacity: .5; }
.list-table { padding: 0; max-height: none; }
.list-table table { font-size: .92rem; }
.list-table th, .list-table td { white-space: nowrap; vertical-align: middle; }
.list-table .num { text-align: right; }
.list-table thead th { background: #f6f4ef; position: sticky; top: 0; z-index: 1; }
.list-table thead th .sort-link { color: #1a1a1a; text-decoration: none; display: inline-block; padding: .15rem 0; }
.list-table thead th .sort-link:hover { text-decoration: underline; }
.list-table thead th[aria-sort] .sort-link { color: #1f3a5f; }
.list-table tbody th[scope=row], .list-table thead th:first-child { position: sticky; left: 0; background: #fff; z-index: 2; white-space: normal; min-width: 9rem; font-weight: 600; }
.list-table thead th:first-child { background: #f6f4ef; z-index: 3; }
.list-table.table-striped tbody tr:nth-of-type(odd) th[scope=row], .list-table .table-striped > tbody > tr:nth-of-type(odd) > th { background: #f8f8f6; }
.pagination .page-link { color: #1f3a5f; }
.pagination .page-item.active .page-link { background: #1f3a5f; border-color: #1f3a5f; color: #fff; }
.map-lazy .map-load, .list-filters .btn-primary { background: #1f3a5f; border-color: #1f3a5f; }
.map-lazy .map-load:hover, .list-filters .btn-primary:hover { background: #2c5282; border-color: #2c5282; }

/* ---- Votes: color follows the tax effect of the measure, never Yes/No alone; every color has a text label ---- */
.vote-raise { color: var(--red); font-weight: 700; }
.vote-against { color: var(--teal); font-weight: 700; }
.vote-neutral { color: var(--ink-2); }
.vote-tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.vote-tag.vote-raise { background: var(--red-bg); }
.vote-tag.vote-against { background: #e6f2f2; }
.vote-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.vote-legend li { display: flex; align-items: center; gap: .4rem; }
.member-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.member-list > li { border-top: 1px solid var(--rule); padding: .55rem 0; }
.member-list .member-name { font-size: 1.05rem; margin-right: .4rem; }
.impact { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .25rem; font-size: .92rem; color: var(--ink); }
.impact b { font-variant-numeric: tabular-nums; }
.impact-cum { font-size: .9rem; margin-top: .2rem; color: var(--ink-2); }
.impact-strip { background: var(--red-bg); border-left: 4px solid var(--red); padding: .6rem .9rem; border-radius: 4px; margin: .5rem 0 .75rem; }
.impact-strip .big { font-size: 1.35rem; font-weight: 700; color: var(--red); }
.fig-src { font-size: .82rem; color: var(--muted); }
.callout-up { border: 1px solid var(--rule); border-left: 4px solid var(--red); background: #fff; padding: .75rem 1rem; border-radius: 4px; }
.callout-up .big { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 700; }
.our-view { border: 2px solid var(--navy); background: #f4f6fa; border-radius: 6px; padding: 1rem 1.15rem; margin: 1.5rem 0; max-width: 54rem; }
.our-view .our-view-label { display: inline-block; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 3px; }
.our-view h2 { font-size: 1.2rem; margin: .5rem 0 .35rem; }
.our-view p { margin-bottom: .4rem; }
.hero-lede { color: #fff; font-size: 1.1rem; margin-bottom: 0; }

/* Network bar: same top strip as Budget / Costs / Audits */
.network-bar { background: var(--navy-dark, #142944); color: #dfe7f2; font-size: .85rem; }
.network-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding-top: .3rem; padding-bottom: .3rem; }
.network-label { font-weight: 700; letter-spacing: .04em; color: var(--gold-soft, #ffe08a); }
.network-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .2rem; margin: 0; padding: 0; }
.network-nav a { color: #fff; text-decoration: none; display: inline-block; padding: .35rem .5rem; border-radius: 4px; min-height: 32px; }
.network-nav a:hover { background: rgba(255,255,255,.12); }
.network-nav a[aria-current], .network-current { color: var(--gold-soft, #ffe08a); font-weight: 700; display: inline-block; padding: .35rem .5rem; }
@media (max-width: 576px) { .network-label { display: none; } }

@media print { .network-bar { display: none !important; } }
