/* MN Budget Watch: the MN Tax Watch hub style (copied from the Home hub: navy and gold, Source Sans Pro + Georgia), plus charts, tables and the tax receipt. No framework. */
@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 {
  --ink: #1a1a1a; --ink-2: #3d3d3d; --muted: #5c5c5c; --paper: #fbfaf7; --card: #fff; --rule: #e3ded3;
  --navy: #1f3a5f; --navy-2: #2c5282; --navy-dark: #142944; --amber: #8a5a00; --gold: #f2c14e; --gold-soft: #ffe08a; --red: #9b2c2c;
  --sans: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; font-family: var(--sans); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.45rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; }
p, ul { margin: 0 0 1rem; }
a { color: var(--navy-2); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }
main p, main li { overflow-wrap: anywhere; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.main { padding-top: 1.5rem; padding-bottom: 1rem; }
.small { font-size: .9rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); }
.kicker { text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; font-weight: 700; color: var(--amber); margin-bottom: .3rem; }
.page-narrow { max-width: 46rem; }
.skip-link { position: absolute; left: -10000px; top: .5rem; background: #fff; color: var(--navy); padding: .5rem 1rem; z-index: 2000; font-weight: 700; }
.skip-link:focus { left: 1rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--rule); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand-mark { background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; padding: .25rem .45rem; border-radius: 3px; }
.brand-text { font-family: var(--serif); font-weight: 700; line-height: 1.05; font-size: 1rem; }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem; margin: 0; padding: 0; }
.nav-links a { display: block; color: #2b2f36; font-weight: 600; text-decoration: none; padding: .55rem .7rem; border-radius: 6px; }
.nav-links a:hover { background: #f1efe9; color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; padding: .6rem 1.1rem; border-radius: 6px; border: 2px solid transparent; line-height: 1.2; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { color: #1f4f8f; border-color: #1f4f8f; background: #fff; }
.btn-outline:hover { background: #1f4f8f; color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e0ad35; color: var(--navy); }
.btn-x { background: #000; color: #fff; border-color: #fff; }
.btn-x:hover { background: #333; color: #fff; }

/* Hero */
.hero { background: var(--navy); color: #fff; border-radius: 8px; padding: 2rem 1.75rem; border-left: 8px solid var(--gold); }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 4.5vw, 2.7rem); max-width: 22em; }
.hero .kicker-hero { color: var(--gold-soft); }
.hero-lede { color: #e6edf7; font-size: 1.15rem; max-width: 50rem; margin-bottom: 1.4rem; }
.share-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.share-row .btn-x { border-color: #000; }

/* Site cards */
.section-rule { border-top: 3px solid var(--ink); padding-top: .5rem; margin-top: 2.25rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.site-card { background: var(--card); border: 1px solid var(--rule); border-top: 6px solid var(--navy); border-radius: 8px; padding: 1.25rem; display: flex; flex-direction: column; }
.site-card h3 { font-size: 1.35rem; margin-bottom: .1rem; }
.site-card h3 a { color: var(--ink); text-decoration: none; }
.site-card h3 a:hover { text-decoration: underline; }
.site-card > p:last-child { margin: auto 0 0; padding-top: .5rem; }
.site-host { color: var(--muted); font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }
.stats { list-style: none; padding: 0; display: grid; gap: .75rem; }
.stat { display: flex; flex-direction: column; border-left: 6px solid var(--red); background: #fbf9f4; border-radius: 4px; padding: .7rem .9rem; }
.stat .value { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--ink); }
.stat .label { font-weight: 700; }
.stat .note { color: var(--ink-2); font-size: .95rem; }
.stat .src { color: var(--muted); font-size: .82rem; margin-top: .2rem; }

/* Text sections */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 2rem; }
.checks { padding-left: 1.2rem; }
.checks li { margin-bottom: .45rem; }
.cards-small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.next-card { background: #fff; border: 1px dashed #b9b2a3; border-radius: 8px; padding: 1rem 1.15rem; }
.next-card p { margin: 0; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: #f3f1ec; padding: 2.5rem 0 2rem; margin-top: 3rem; color: var(--ink-2); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; }
.footer-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: #1b1f24; margin-bottom: .5rem; }
.footer-heading { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #3d4148; margin: 0 0 .6rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35rem; font-size: .93rem; }
.footer-links a { color: var(--navy); text-decoration: none; display: inline-block; padding: .15rem 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-x { display: inline-flex !important; align-items: center; gap: .45rem; font-weight: 600; }
.footer-x svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #111; color: #fff; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 576px) {
  html { font-size: 16px; }
  .hero { padding: 1.4rem 1.1rem; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .nav-links a { padding: .55rem .5rem; }
}

/* ---- MN Budget Watch additions (same tokens as the hub) ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.small-muted { font-size: .9rem; color: var(--muted); }
.network-bar { background: var(--navy-dark); 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); }
.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); font-weight: 700; display: inline-block; padding: .35rem .5rem; }
.nav-links .nav-cta { background: var(--gold); color: var(--navy); }
.nav-links .nav-cta:hover { background: #e0ad35; color: var(--navy); }
.btn-sm { padding: .4rem .8rem; font-size: .9rem; min-height: 40px; }
button.btn { cursor: pointer; font: inherit; font-weight: 700; }
.opinion-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #f1efe9; color: var(--amber); border: 1px solid #e3d2a8; border-radius: 3px; padding: 0 .35rem; vertical-align: middle; }
.notice { background: #fff8e1; border-left: 5px solid var(--gold); padding: .7rem .9rem; border-radius: 4px; }
.form-error { background: #fdecea; border-left: 5px solid var(--red); padding: .6rem .9rem; border-radius: 4px; color: #6b1d1d; font-weight: 600; }
.callout { background: #fff; border: 1px solid var(--rule); border-left: 8px solid var(--navy); border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout h2 { margin-top: 0; font-size: 1.25rem; }
.cta-band { background: #fff; border: 2px solid var(--navy); border-radius: 8px; padding: 1.25rem 1.5rem; margin-top: 2rem; }
.cta-band h2 { margin-top: 0; }
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .35rem; }
.site-card .src, .site-card p.src { color: var(--muted); font-size: .85rem; }
.site-card .plain-list { font-size: .97rem; }
.stat.stat-solo { margin-top: .5rem; }
code { font-size: .92em; background: #f1efe9; padding: 0 .25rem; border-radius: 3px; }

/* Charts */
.chart-figure { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1rem .75rem; margin: 1rem 0 1.5rem; }
.chart-title { font-family: var(--sans); font-size: 1.1rem; margin: 0; }
.chart-unit { font-size: .88rem; color: var(--muted); margin-bottom: .5rem; }
.chart-box { position: relative; height: 380px; }
.chart-box.chart-tall { height: 520px; }
.chart-caption { font-size: .92rem; color: var(--ink-2); margin: .6rem 0 .2rem; }
.fig-src { font-size: .85rem; color: var(--muted); margin: .3rem 0 .6rem; }
.show-data { margin: .4rem 0; }
.show-data > summary { cursor: pointer; font-weight: 700; color: var(--navy-2); padding: .4rem 0; min-height: 32px; }
.view-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0 .4rem; }
.toggle-label { font-weight: 700; margin-right: .2rem; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .85rem; border: 2px solid var(--navy-2); border-radius: 999px; color: var(--navy-2); background: #fff; font-weight: 700; text-decoration: none; }
.chip:hover { background: #eef3fa; }
.chip[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: .5rem; }
.table-data { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.table-data caption { text-align: left; font-weight: 700; padding: .3rem 0 .5rem; caption-side: top; }
.table-data th, .table-data td { padding: .45rem .6rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table-data thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.table-data td.num, .table-data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-data tbody th { font-weight: 600; }
.table-data .total-row th, .table-data .total-row td { font-weight: 700; border-top: 2px solid var(--ink); }
.sort-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; min-height: 32px; }
th[aria-sort="ascending"] .sort-btn::after { content: " ↑"; }
th[aria-sort="descending"] .sort-btn::after { content: " ↓"; }

/* Share bar */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .75rem 0 .25rem; }
.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: 2px solid #111; }
.btn-share-x:hover, .btn-share-x:focus { background: #333; color: #fff; }

/* Receipt calculator */
.receipt-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; margin-top: 1rem; }
.calc-form { background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--navy); border-radius: 8px; padding: 1.1rem 1.25rem; }
.calc-form h2 { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .9rem; }
.field label { font-weight: 700; }
.field input, .field select { font: inherit; padding: .55rem .65rem; border: 1px solid #8a8577; border-radius: 6px; background: #fff; min-height: 44px; width: 100%; }
.field input:focus, .field select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.field.check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field.check input { width: 22px; height: 22px; min-height: 0; margin-top: .15rem; flex: 0 0 auto; }
.field.check label { font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.help { font-size: .87rem; color: var(--muted); }
.share-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.share-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .9rem; border-bottom: 1px solid var(--rule); }
.share-list li:last-child { border-bottom: 0; }
.receipt { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.1rem 1.25rem; box-shadow: 0 2px 0 var(--rule); background-image: linear-gradient(#fff, #fff); }
.receipt-head { font-family: ui-monospace, "Courier New", monospace; font-size: .8rem; letter-spacing: .08em; color: var(--muted); border-bottom: 2px dashed var(--rule); padding-bottom: .5rem; }
.receipt h2 { margin-top: .4rem; font-size: 1.4rem; }
.receipt h3 { margin-top: 1rem; font-family: var(--sans); font-size: 1.05rem; }
.receipt-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.receipt-table th, .receipt-table td { padding: .45rem 0; border-bottom: 1px dotted #cfc8b8; vertical-align: top; }
.receipt-table th { text-align: left; font-weight: 600; padding-right: 1rem; }
.receipt-table td { text-align: right; white-space: nowrap; font-weight: 700; }
.receipt-table .sub th, .receipt-table .sub td { border-bottom: 2px solid var(--ink); }
.line-desc { display: block; font-weight: 400; font-size: .84rem; color: var(--muted); }
.receipt-note { font-size: .87rem; color: var(--muted); margin: .6rem 0 0; }
/* Donate: header button (all viewports) and the card on home and /support. */
.header-donate { order: 3; white-space: nowrap; }
.donate-card { background: #fbf9f4; border: 1px solid #e3d2a8; border-left: 8px solid var(--gold); border-radius: 8px; padding: 1rem 1.25rem; margin: 2rem 0 .5rem; }
.donate-card h2 { margin-top: 0; font-size: 1.3rem; }
.donate-card p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .receipt-layout { grid-template-columns: 1fr; } }
@media (max-width: 576px) {
  .chart-box { height: 300px; }
  .chart-box.chart-tall { height: 480px; }
  .chart-figure { padding: .75rem .6rem .5rem; }
  .share-bar .btn { flex: 1 1 auto; justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .network-label { display: none; }
  .header-donate { order: 1; }
  .nav-links { order: 2; flex-basis: 100%; }
}
@media print {
  .network-bar, .site-header, .site-footer, .share-bar, .calc-form, .header-donate, .donate-card, .skip-link { display: none !important; }
  .receipt-layout { display: block; }
}
