@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD }
/* The town's own colours by role (theme.json): primary, its darker ink for text, dark, accent and its ink. One light look, as on the town's site. */
:root {
  --primary: #1f5a85;
  --primary-ink: #1f5a85;
  --dark: #17293a;
  --accent: #5aa469;
  --accent-ink: #3a7a48;
  --font: 'PT Sans', Arial, sans-serif;
  --display: 'PT Sans', Arial, sans-serif;

  --ink: #111; --text: #2b2b2b; --muted: #676767; --line: #e3e3e3; --tile: #f3f3f3; --wash: #f8f8f6; --white: #fff;
  --up: #2e7d32; --down: #b3261e;
  --k-decision: #393A3B; --k-grant: #3E8C6B; --k-storm: #C8352B; --k-project: #C1AA59; --k-economy: #2F7FA0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* the two hooks a town's chrome.html may set: where the breadcrumb bar's text starts, and space above it (to clear a hanging logo) */
  --crumbs-start: 20px; --crumbs-top: 0px;
  color-scheme: light;
}
* { box-sizing: border-box }
/* what a view hides stays hidden, whatever display its class gives it */
[hidden] { display: none !important }
html, body { margin: 0 }
body { background: var(--white); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased }
a { color: var(--primary-ink) }
/* the focus ring takes the town's darker blue (4.5:1 on white by the theme's contract); an accent such as gold can be too light to see */
:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: 2px }
/* a page's heading takes focus after a move between pages, so a screen reader announces it; it isn't a control, so no ring */
[tabindex="-1"]:focus { outline: none }
img { max-width: 100% }
.num { font-variant-numeric: tabular-nums }

/* our notice */
.concept { background: var(--dark); color: #fff; font-size: 13px; text-align: center; padding-block: 7px; padding-inline: 16px }
.concept b { color: var(--accent) }

.crumbs { background: var(--tile); color: var(--dark); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; --inset: calc((100% - 1440px) / 2); padding-block: 9px; padding-left: max(var(--crumbs-start), var(--inset)); padding-right: max(20px, var(--inset)); margin-top: var(--crumbs-top); view-transition-name: crumbs }
.crumbs a { color: var(--dark); text-decoration: none } .crumbs a:hover { text-decoration: underline }
.crumbs i { font-style: normal; margin-inline: 10px; color: var(--muted) }
/* a long trail breaks after a separator (each is followed by <wbr>), and a single long name breaks anywhere */
.crumbs { overflow-wrap: anywhere }

main > *, section > .body, .dept-grid > *, .headline > * { min-width: 0 }
main { max-width: 1480px; margin: 0 auto; padding-inline: 20px; padding-block: 34px 72px; display: grid; gap: 56px; min-height: 60vh }
.page-title { margin: 0; text-align: center; color: var(--primary-ink); font-size: 34px; font-weight: 700; line-height: 1.15 }
.page-sub { margin: 6px auto 0; text-align: center; color: var(--muted); font-size: 15px }

/* the town's section heading */
.sec-head { display: grid }
.sec-head .k { color: var(--primary-ink); font-size: 19px; font-weight: 900; text-transform: uppercase; line-height: 1.1 }
.sec-head h2 { margin: 0; color: var(--ink); font-size: 38px; font-weight: 900; text-transform: uppercase; line-height: 1.05; display: flex; align-items: center; gap: 18px }
.sec-head h2::after { content: ""; flex: 0 1 160px; height: 2px; background: var(--accent); transform-origin: left; animation: rule .9s var(--ease) both .15s }
.sec-sub { color: var(--text); max-width: 72ch; margin: 10px 0 0 }
section > .body { margin-top: 20px }

/* headline figures */
.headline.wrap { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) } .headline.wrap .lead { grid-column: span 2 }
.headline { display: grid; grid-template-columns: minmax(0, 1.75fr) repeat(var(--hcols, 4), minmax(0, 1fr)); gap: 12px; margin-top: 26px }
.hfig { background: var(--tile); border-radius: 4px; padding: 16px 18px 18px; display: grid; gap: 2px; align-content: start }
.hfig.lead { background: var(--dark); color: #fff }
.hfig .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--dark) }
.hfig.lead .lbl { color: var(--accent) }
.hfig .fig { font-size: 30px; font-weight: 900; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums }
.hfig.lead .fig { color: #fff; font-size: 30px; white-space: nowrap }
.hfig .sub { font-size: 13px; color: var(--muted) } .hfig.lead .sub { color: #d8d8d8 }



/* the budget: a page per tab, under the budget's title and a bar of tabs that stays in view */
/* (its parts keep their own height on a short tab: main is at least 60vh, and would otherwise spread them over a tall screen) */
.bud { display: grid; min-width: 0; align-content: start }
.bud > *, .tab-sec > .body { min-width: 0 }
.doc-head { display: grid; gap: 4px }
.doc-head .page-title, .doc-head .page-sub { text-align: left; margin-inline: 0 }
/* the bar sticks once the page scrolls past this gap above it (#tabs-at), which a move between tabs measures */
#tabs-at { height: 22px }
.tabs-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line) }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none }
.tabs::-webkit-scrollbar { display: none }
.tabs a { flex: none; padding: 13px 16px 11px; color: var(--dark); font-size: 14px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s, background .2s }
.tabs a:hover { color: var(--primary-ink); background: var(--wash) }
.tabs a[aria-current="page"] { color: var(--primary-ink); border-bottom-color: var(--accent) }
/* a focus ring inside the bar, which clips anything drawn outside a tab */
.tabs a:focus-visible { outline-offset: -3px }
/* where the bar scrolls sideways, an edge with more tabs beyond it fades out */
.tabs-bar::before, .tabs-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1 }
.tabs-bar::before { left: 0; background: linear-gradient(to right, #fff, rgba(255,255,255,0)) }
.tabs-bar::after { right: 0; background: linear-gradient(to left, #fff, rgba(255,255,255,0)) }
.tabs-bar.more-l::before, .tabs-bar.more-r::after { opacity: 1 }
.tab-sec { margin-top: 34px }

/* the explorer: the budget as pictures first, zooming in place */
.explore { border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px 22px; margin-top: 22px; background: #fff; display: grid; gap: 12px }
/* a view as wide as the box, whatever its chart's own minimum (the flows scroll sideways inside it) */
.explore > * { min-width: 0 }
.ex-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.ex-crumbs { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--ink); flex-wrap: wrap }
.ex-crumbs button { font: inherit; background: none; border: 0; padding: 0; color: var(--primary-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px }
.ex-crumbs i { font-style: normal; color: var(--muted); font-weight: 400 }
.ex-crumbs small { font-weight: 600; color: var(--muted); font-size: 14px }
.seg { display: inline-flex; border: 1.5px solid var(--dark); border-radius: 999px; overflow: hidden }
.seg button { font: inherit; font-size: 14px; font-weight: 600; background: #fff; color: var(--dark); border: 0; padding: 6px 16px; cursor: pointer }
.seg button + button { border-left: 1.5px solid var(--dark) }
.seg button[aria-pressed="true"] { background: var(--dark); color: #fff }
.ex-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start }
.ex-cap { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin-bottom: 6px }
svg.tree { display: block; width: 100%; height: auto; font-family: var(--font) }
.tile { cursor: pointer } .tile rect { transition: filter .2s, opacity .2s } .tile:hover rect, .tile.lit rect { filter: brightness(1.12) }
.tree.hovering .tile:not(.lit) rect { opacity: .55 }
.tile text { fill: #fff; pointer-events: none } .tile .tn { font-size: 14px; font-weight: 800 } .tile .tv { font-size: 14px; font-variant-numeric: tabular-nums } .tile .tc { font-size: 12.5px; font-weight: 700 }
.tile.dark text { fill: #000 }
.hit:focus { outline: none } .hit:focus-visible rect { stroke: var(--ink); stroke-width: 3px }
.ex-rows { display: grid; gap: 2px }
.ex-row { display: grid; grid-template-columns: 10px minmax(0, 1.3fr) minmax(124px, 1fr) 76px; gap: 14px; align-items: center; padding: 7px 10px; border-radius: 6px; cursor: pointer; border: 0; background: none; font: inherit; text-align: left; color: var(--text); width: 100%; transition: background .2s }
.ex-row:hover, .ex-row.lit, .ex-row:focus-visible { background: var(--wash) }
/* a part with nothing below it (a line of the state auditor's report) is a picture only */
.ex-row.still, .tile.still { cursor: default } .spark-on { stroke: #fff; stroke-width: 1.5 }
.ex-row .sw { width: 10px; height: 30px; border-radius: 3px }
.ex-row .nm { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px }
.ex-row .nm small { display: block; font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums }
.ex-row svg { width: 100%; height: 44px; display: block; overflow: visible }
.ex-row .v { text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 15px }
.spark { fill: none; stroke-width: 2 } .ex-note { cursor: pointer } .tooltip .badge, .tooltip .badge svg { width: 15px; height: 15px; vertical-align: -3px } .spark-b { fill: none; stroke-width: 2; stroke-dasharray: 3 3 }
.ex-more { justify-self: start; font: inherit; font-size: 14px; font-weight: 600; color: var(--primary-ink); background: none; border: 0; padding: 6px 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px }
.ex-more small { color: var(--muted); font-weight: 400; font-size: 13px }
.ex-foot { font-size: 13px; color: var(--muted) }
@media (max-width: 900px) { .ex-grid { grid-template-columns: 1fr } }
@media (max-width: 560px) { .explore { padding: 16px 12px 18px } .ex-row { grid-template-columns: 8px minmax(0, 1fr) 80px 56px; gap: 8px; padding: 6px 4px } .ex-row .nm { font-size: 14px } .ex-row svg { width: 80px; height: 30px } }

/* highlights, in the manager's words */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px }
.hl { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 8px; background: #fff; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s }
.hl:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.07) }
.hl .top { display: flex; gap: 10px; align-items: center }
.hl .subj { font-weight: 800; color: var(--ink); font-size: 15px; line-height: 1.3 }
.hl .fig { font-weight: 800; color: var(--dark); font-size: 14px; font-variant-numeric: tabular-nums }
.hl blockquote { margin: 0; color: var(--text); font-size: 14.5px; border-left: 3px solid var(--accent); padding-left: 10px }
/* the links sit at the foot of the card, level across a row */
.hl .foot { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 13px; margin-top: auto; padding-top: 2px }
.hl .foot a { text-decoration: none; font-weight: 600 } .hl .foot a:hover { text-decoration: underline }
.hl .foot a.pg { font-weight: 400; color: var(--muted); margin-left: auto }
.src-line { font-size: 13px; color: var(--muted); margin-top: 12px }
.src-line a { color: var(--muted) }

/* the flow, the explorer's third view */
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px }
.flow-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-top: 6px }
.flow-foot .src-line { margin: 0 } .flow-foot .toggle { margin-left: auto }
.band.hatch { stroke: url(#flow-hatch) }
/* the History tab's year: the years the state auditor has reports for, each a bar as tall as that year's spending; a
   click picks the year */
.hist-bar { display: flex; justify-content: flex-end; margin: -6px 0 16px } .hist-bar .years { width: min(100%, 620px) }
.years { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 6px; align-items: center }
.years svg { display: block; width: 100%; height: 44px; overflow: visible; font-family: var(--font) }
.years .yb { fill: #d5d5d5 } .years .yb.orig { fill: #fff; stroke: #9a9a9a; stroke-width: 1.2; stroke-dasharray: 3 2 } .years .yb.on { fill: var(--primary); stroke: none }
.years .yhit { fill: transparent; cursor: pointer } .years g:hover .yb:not(.on) { fill: var(--accent) }
.years text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums } .years text.on { fill: var(--primary-ink); font-weight: 800 }
.years button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--dark); background: #fff; color: var(--dark); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 }
.years button:disabled { opacity: .35; cursor: default }
.years svg:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: 3px; border-radius: 2px }
.flow-head .cols { display: flex; justify-content: space-between; width: 100%; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700 }
.scroll { overflow-x: auto; min-width: 0 }
svg.flow { display: block; width: 100%; min-width: 680px; height: auto; font-family: var(--font) }
.band { fill: none; stroke-opacity: .32; transition: stroke-opacity .25s }
.link.lit .band { stroke-opacity: .6 } .flow.hovering .link:not(.lit) .band { stroke-opacity: .1 }
/* a band lit up shows its money moving along it */
.pulse { fill: none; stroke: #fff; stroke-opacity: 0; stroke-linecap: round; stroke-dasharray: 0 18; pointer-events: none; transition: stroke-opacity .25s }
.link.lit .pulse { stroke-opacity: .9; animation: flowing .9s linear infinite }
@keyframes flowing { to { stroke-dashoffset: -18 } }
@media (prefers-reduced-motion: reduce) { .pulse { display: none } }
.fnode rect { transition: opacity .25s } .flow.hovering .fnode:not(.lit) rect { opacity: .35 }
.fnode text { font-size: 14px; fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round } .fnode text .v { fill: var(--muted); font-variant-numeric: tabular-nums } .fnode text.mid { font-weight: 800; fill: var(--ink) }
.fnode, .link { cursor: pointer } .fnode.still { cursor: default }
.toggle { font: inherit; font-size: 13px; font-weight: 600; background: #fff; border: 1.5px solid var(--dark); color: var(--dark); border-radius: 999px; padding: 4px 12px; cursor: pointer }
.toggle[aria-pressed="true"] { background: var(--dark); color: #fff }
.numbers { margin-top: 12px; overflow-x: auto }
table.t { border-collapse: collapse; width: 100%; font-size: 14px }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--accent); padding: 6px 8px }
table.t td { border-bottom: 1px solid var(--line); padding: 7px 8px }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums }

/* rising, falling and unchanged figures */
.up-c { color: var(--up) } .down-c { color: var(--down) } .flat-c { color: var(--muted) }

/* tax bill */
.tax { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 44px; align-items: start; border: 1px solid var(--line); border-radius: 6px; padding: 26px; background: linear-gradient(180deg, #fff, var(--wash)) }
.tax label { font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px }
.tax .valrow { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--dark); border-radius: 6px; padding: 6px 10px; background: #fff }
.tax .valrow span { font-weight: 800; font-size: 20px; color: var(--dark) }
.tax input[type=number] { font: inherit; font-size: 22px; font-weight: 800; border: 0; width: 100%; color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; outline: none }
.tax input[type=range] { width: 100%; margin-top: 12px; accent-color: var(--primary) }
.tax .bill { margin-top: 18px; font-size: 14px; color: var(--muted) }
.tax .bill b { display: block; font-size: 44px; line-height: 1.05; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums }
.tax .note { font-size: 13px; color: var(--muted); margin-top: 10px }
.split-bar { display: flex; height: 26px; border-radius: 5px; overflow: hidden; gap: 2px }
.split-bar span { display: block; transition: flex-grow .6s var(--ease) }
.split-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px }
.split-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 15px }
.split-list i { width: 12px; height: 12px; border-radius: 3px }
.split-list b { font-variant-numeric: tabular-nums; color: var(--ink) }
.linkbtn { justify-self: start; display: inline-block; margin-top: 10px; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; text-align: left }
/* the rate over the last tax years, then the budget's own (dashed) */
.ratehist { margin: 18px 0 0; display: grid; gap: 4px }
.ratehist figcaption { font-size: 13px; font-weight: 700; color: var(--ink) }
.ratehist svg { width: 100%; max-width: 380px; height: auto; display: block; overflow: visible; font-family: var(--font) }
.ratehist .st { fill: none; stroke: var(--primary); stroke-width: 2.5 } .ratehist .bud { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-dasharray: 5 4 }
.ratehist circle { fill: var(--primary); stroke: #fff; stroke-width: 1.5 } .ratehist circle.b { fill: #fff; stroke: var(--primary); stroke-width: 2.5 }
.ratehist text { font-size: 12px; fill: var(--muted) } .ratehist text.v { fill: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums }

/* the largest changes, each with the lines that made it and the reasons on record */
.chg { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px 20px; background: #fff }
.chg-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 16px; color: var(--text); margin-bottom: 10px }
.chg-sum b { color: var(--ink); font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums } .chg-sum .d { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums }
.chg .ex-cap { margin: 0 0 6px }
.chg-step { border-top: 1px solid var(--line); padding: 4px 0 10px }
.chg-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(120px, 1.4fr) 116px; gap: 16px; align-items: center; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; transition: background .2s }
a.chg-row:hover, a.chg-row:focus-visible { background: var(--wash) }
.chg-row .nm { font-weight: 800; color: var(--ink); min-width: 0; font-size: 16px } .chg-row .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 13px }
.chg-row .bar { position: relative; height: 18px; display: block }
.chg-row .bar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: #cfcfcf }
.chg-row .bar i { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + .1s) }
.chg-row .bar i.u { background: var(--primary); transform-origin: left } .chg-row .bar i.d { background: var(--accent); transform-origin: right }
.chg-row .v { text-align: right; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 17px } .chg-row .v small { display: block; font-weight: 600; color: var(--muted); font-size: 13px }
.chg-row.rest { border-top: 1px solid var(--line); border-radius: 0; padding-top: 12px } .chg-row.rest .nm { font-weight: 600; color: var(--text) }
.why { display: grid; gap: 8px; padding: 2px 10px 2px 18px; margin-left: 10px; border-left: 2px solid var(--line); font-size: 14.5px; color: var(--text) }
.why .drv b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700 }
.why .q { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start } .why .q small { color: var(--muted) }
.why .q .badge, .why .q .badge svg { width: 18px; height: 18px }
.why .nt { grid-template-columns: 18px minmax(0, 1fr) } .why .nt .badge, .why .nt .badge svg { width: 18px; height: 18px }
@media (max-width: 640px) { .chg { padding: 12px } .chg-row { grid-template-columns: minmax(0, 1fr) 92px; gap: 8px 12px } .chg-row .bar { grid-column: 1 / -1; grid-row: 2 } .why { margin-left: 4px; padding-left: 12px } }

/* the budget calendar */
.cal { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; background: #fff }
.cal svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--font); overflow: visible }
.cal .axis { stroke: #bdbdbd; stroke-width: 2 } .cal .tick { stroke: #bdbdbd } .cal .mo { font-size: 12px; fill: var(--muted) }
.cal .ws { fill: #fff; stroke: var(--muted); stroke-width: 2; cursor: default }
.cal .ev circle { stroke: #fff; stroke-width: 2.5 } .cal .ev .stem { stroke: #bdbdbd }
.cal .ev.kickoff circle { fill: var(--dark) } .cal .ev.proposed circle { fill: var(--primary) } .cal .ev.hearing circle { fill: var(--accent) } .cal .ev.adopted circle { fill: var(--up) }
.cal .ev .nm { font-size: 13.5px; font-weight: 800; fill: var(--ink) } .cal .ev .dt { font-size: 12.5px; fill: var(--text); font-variant-numeric: tabular-nums }
.cal .today line { stroke: var(--down); stroke-dasharray: 3 3 } .cal .today text { font-size: 11px; fill: var(--down); font-weight: 700 }
.cal-list { list-style: none; margin: 0; padding: 2px 0; display: grid }
.cal-list li { position: relative; display: grid; grid-template-columns: 18px 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 7px 0; font-size: 15px }
.cal-list li::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #d5d5d5 }
.cal-list li:first-child::before { top: 50% } .cal-list li:last-child::before { bottom: 50% }
.cal-list i { position: relative; justify-self: center; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 3px #fff }
.cal-list .kickoff i { background: var(--dark) } .cal-list .proposed i { background: var(--primary) } .cal-list .hearing i { background: var(--accent) } .cal-list .adopted i { background: var(--up) }
.cal-list .ws i { width: 9px; height: 9px; background: #fff; border: 2px solid var(--muted) }
.cal-list time { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums }
.cal-list b { color: var(--ink); font-weight: 800 } .cal-list .ws b { color: var(--text); font-weight: 400 }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text) }
.cal-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px } .cal-key i.ws { background: #fff; border: 2px solid var(--muted) }

/* documents */
.doc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px }
.doc { background: var(--tile); border-radius: 4px; padding: 20px; min-height: 120px; display: grid; align-content: space-between; gap: 16px; color: var(--dark); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.25; transition: background .2s }
.doc:hover { background: #ebebeb } .doc .arrow { width: 30px; height: 30px; border: 1.5px solid var(--dark); border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease) }
.doc:hover .arrow { transform: translateX(4px) }
.doc .arrow svg { width: 14px; height: 14px; stroke: var(--dark); fill: none; stroke-width: 2 }
.doc small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px }
.check-line { max-width: 80ch; margin: 18px 0 0; font-size: 15px; color: var(--text) }
.check-line b { color: var(--ink); font-variant-numeric: tabular-nums }

/* the welcome page (a town with its budget message, message.json): the message as the book prints it, beside the way
   into each section */
.wl { width: 100%; max-width: 1440px; margin: 0 auto; display: grid; gap: 30px; min-width: 0 }
.wl-head { display: grid; gap: 4px }
.wl-head .k { color: var(--primary-ink); font-size: 19px; font-weight: 900; text-transform: uppercase; line-height: 1.1 }
.wl-head h1 { margin: 0; color: var(--ink); font-size: 50px; font-weight: 900; text-transform: uppercase; line-height: 1.02; display: flex; align-items: center; gap: 22px }
.wl-head h1::after { content: ""; flex: 0 1 200px; height: 3px; background: var(--accent); transform-origin: left; animation: rule .9s var(--ease) both .2s }
.wl-head .page-sub { text-align: left; margin: 6px 0 0 }
.wl-grid { display: grid; grid-template-columns: minmax(0, 840px) minmax(320px, 1fr); gap: 40px 72px; align-items: start }
.wl-grid > * { min-width: 0 }
.paper { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 34px rgba(0,0,0,.06); padding: 40px 56px 46px; font-size: 16.5px; line-height: 1.7; overflow-wrap: break-word }
.paper .lh { display: grid; justify-items: center; gap: 6px; text-align: center; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line) }
.paper .lh b { font-family: var(--display); font-weight: 400; font-size: 27px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); line-height: 1.2 }
.paper .lh span { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.5 }
.paper p { margin: 0 0 1em }
.paper .to { font-weight: 700; color: var(--ink) }
.paper h3 { margin: 1.3em 0 .2em; font-size: 1em; font-weight: 800; color: var(--ink) }
.paper ul { margin: 0 0 1em; padding-left: 1.25em } .paper li { margin: .15em 0 } .paper li::marker { color: var(--accent-ink) }
.paper .sign { display: grid; margin-top: 2em; padding-left: 50%; line-height: 1.5 }
.paper .sign b { margin-top: 1.6em; font-size: 18px; color: var(--ink) }
.wl-nav { position: sticky; top: 20px }
.wl-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.wl-nav a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; gap: 14px; align-items: center; padding: 14px 16px 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s }
.wl-nav a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.07) }
.wl-nav .n { font-family: var(--display); font-size: 30px; color: var(--accent-ink); text-align: center; line-height: 1; font-variant-numeric: lining-nums }
.wl-nav .t { font-weight: 800; color: var(--ink); font-size: 16px; line-height: 1.3 }
.wl-nav .t small { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.45 }
.wl-nav .arrow { width: 30px; height: 30px; border: 1.5px solid var(--dark); border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease) }
.wl-nav a:hover .arrow { transform: translateX(4px) }
.wl-nav .arrow svg { width: 14px; height: 14px; stroke: var(--dark); fill: none; stroke-width: 2 }
/* one column: the letter, then the sections; the title's rule moves under it, where a wrapped title can't leave it adrift */
@media (max-width: 1180px) {
  .wl-grid { grid-template-columns: minmax(0, 1fr) } .paper { max-width: 840px } .wl-nav { position: static } .wl-nav ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)) }
  .wl-head h1 { display: block; font-size: 42px } .wl-head h1::after { display: block; width: 120px; margin-top: 14px }
}
@media (max-width: 760px) {
  .wl-head h1 { font-size: 32px } .wl-head h1::after { width: 90px; margin-top: 10px }
  .paper { padding: 26px 20px 30px; font-size: 16px } .paper .lh b { font-size: 21px } .paper .sign { padding-left: 0 }
}

/* department page */
/* the one track can't grow to fit a long department name (its h1 is max-content for the view transition), so long names wrap */
.dept-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px }
.dept-head .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--primary-ink); font-weight: 800 }
/* the way back to the tab the page was opened from */
.back-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--dark); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .2s, color .2s }
.back-link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease) }
.back-link:hover { border-color: var(--primary); color: var(--primary-ink) }
.back-link:hover svg { transform: translateX(-3px) }
.dept-head h1 { margin: 0; font-size: 46px; font-weight: 900; color: var(--ink); line-height: 1.02; letter-spacing: -.01em; width: max-content; max-width: 100% }
.dept-head .amt { font-size: 52px; font-weight: 900; color: var(--primary-ink); line-height: 1; font-variant-numeric: tabular-nums; width: max-content }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px }
.chip { background: var(--tile); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--dark); font-weight: 600 }
.chip b { font-variant-numeric: tabular-nums }
.dept-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 56px }
.panel-t { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--dark); font-weight: 800; border-bottom: 2px solid var(--accent); padding-bottom: 4px; width: max-content }
.quotes { display: grid; gap: 12px }
.quote { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px }
.quote q { font-size: 16px; color: var(--ink); quotes: "“" "”" }
.quote small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px }
.tax .quotes { margin-top: 14px } .tax .quote q { font-size: 14.5px }
.tile .tpin { pointer-events: none }
.cat-bar { display: flex; height: 34px; border-radius: 5px; overflow: hidden; gap: 2px }
.cat-bar span { display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; transform-origin: left; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + .15s) }
.cat-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px }
.cat-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 15px }
.cat-list i { width: 12px; height: 12px; border-radius: 3px } .cat-list b { font-variant-numeric: tabular-nums; color: var(--ink) } .cat-list small { color: var(--muted); font-variant-numeric: tabular-nums; width: 3.4em; text-align: right }
.lines td.big { font-weight: 700 }
.lines .chgcell { font-size: 13px; font-weight: 600 } .lines .chgcell .pc { font-weight: 400 } .lines td.np { color: var(--muted); font-size: 13px }
/* a description printed without spaces ("Administration/Attendance/Health") wraps instead of widening the table */
.lines td:first-child { overflow-wrap: anywhere }
.show-all { margin-top: 10px }
svg.hist { display: block; width: 100%; height: auto; font-family: var(--font); overflow: visible }
.hist .grid { stroke: var(--line) } .hist .tick { fill: var(--muted); font-size: 12px } .hist .tick.on { fill: var(--primary-ink); font-weight: 800 }
.hist .area { fill: var(--primary); fill-opacity: .1 } .hist .la { fill: none; stroke: var(--primary); stroke-width: 3 } .hist .lb { fill: none; stroke: var(--primary); stroke-width: 3; stroke-dasharray: 6 5 }
.hist .pt { fill: var(--primary); stroke: #fff; stroke-width: 2.5 } .hist .pt.b { fill: #fff; stroke: var(--primary) } .hist .pt.on { fill: var(--accent); stroke: #fff }
.hist .mk { cursor: pointer } .hist .mk circle { stroke: #fff; stroke-width: 2 }
.hist .stem { stroke: #cfcfcf; stroke-width: 1.4 }
.notes-list { display: grid; gap: 14px; margin-top: 14px }
.nt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px }
.nt .t { font-weight: 700; color: var(--ink) } .nt .meta { grid-column: 2; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600 }
.nt .s { grid-column: 2; font-size: 14.5px } .nt .src { grid-column: 2; font-size: 13px }
.badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px }
.badge svg { width: 22px; height: 22px; display: block }
.pager { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap }
.pager a { text-decoration: none; font-weight: 700; color: var(--dark); display: inline-flex; gap: 8px; align-items: center }
.pager a:hover { color: var(--primary-ink) }
.pager small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px }
.rate-box { display: inline-flex; gap: 14px; align-items: baseline; background: var(--dark); color: #fff; border-radius: 6px; padding: 10px 16px; margin-top: 10px }
.rate-box b { font-size: 26px; font-weight: 900; color: var(--accent) }

/* tooltip */
.tooltip { position: fixed; z-index: 60; pointer-events: none; width: max-content; max-width: min(300px, calc(100vw - 16px)); background: #222; color: #f5f5f5; border-radius: 6px; padding: 8px 11px 9px; box-shadow: 0 8px 20px rgba(0,0,0,.25); font-size: 13px; line-height: 1.4; display: grid; gap: 2px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s }
.tooltip.on { opacity: 1; transform: none }
.tooltip .e { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #c8c8c8; font-weight: 600 }
.tooltip .f { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums }

/* motion: things settle in once, then stay put */
@keyframes rise { from { opacity: 0; transform: translateY(10px) } }
@keyframes grow { from { transform: scaleX(0) } }
@keyframes rule { from { transform: scaleX(0) } }
.rise { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms) }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s }
/* a title that moves from page to page is captured as one box, hugging its text */
.pt, .tt { display: inline-block }
::view-transition-group(dept-name), ::view-transition-group(dept-amt), ::view-transition-group(page-title), ::view-transition-group(page-sub),
::view-transition-group(tab-overview), ::view-transition-group(tab-highlights), ::view-transition-group(tab-changes), ::view-transition-group(tab-history), ::view-transition-group(tab-calendar),
::view-transition-group(tab-documents), ::view-transition-group(tab-property-tax) { animation-duration: .5s; animation-timing-function: var(--ease) }
/* a title moving to its place on the next page: its old look gives way quickly, so the two looks don't blur together */
@keyframes vt-out { to { opacity: 0 } }
@keyframes vt-in { from { opacity: 0 } }
::view-transition-old(page-title), ::view-transition-old(page-sub), ::view-transition-old(tab-overview), ::view-transition-old(tab-highlights), ::view-transition-old(tab-changes), ::view-transition-old(tab-history), ::view-transition-old(tab-calendar), ::view-transition-old(tab-documents), ::view-transition-old(tab-property-tax) { animation: vt-out .16s ease both }
::view-transition-new(page-title), ::view-transition-new(page-sub), ::view-transition-new(tab-overview), ::view-transition-new(tab-highlights), ::view-transition-new(tab-changes), ::view-transition-new(tab-history), ::view-transition-new(tab-calendar), ::view-transition-new(tab-documents), ::view-transition-new(tab-property-tax) { animation: vt-in .22s ease .05s both }
/* one with nothing to move to, or from, fades with the page */
::view-transition-old(*):only-child { animation: vt-out .32s ease both }
::view-transition-new(*):only-child { animation: vt-in .32s ease both }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important }
}

@media (max-width: 980px) { .headline, .headline.wrap { grid-template-columns: repeat(2, minmax(0, 1fr)) } .hfig.lead, .headline.wrap .lead { grid-column: 1 / -1 } .dept-grid { grid-template-columns: 1fr } .tax { grid-template-columns: 1fr } }
@media (max-width: 760px) {
  main { padding-block: 26px 56px; gap: 44px } .page-title { font-size: 28px }
  .sec-head h2 { font-size: 28px; display: block } .sec-head h2::after { display: block; width: 90px; margin-top: 10px } .dept-head h1 { font-size: 34px } .dept-head .amt { font-size: 40px }
  .split-list { grid-template-columns: 1fr } .tabs a { padding: 12px 12px 10px; font-size: 13px } .tab-sec { margin-top: 26px }
  .hl-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin } .hl { scroll-snap-align: start }
  /* a comparison table drops its prior-year column on a phone; a one-year table keeps its only amount */
  .lines.cmp th:nth-child(2), .lines.cmp td:nth-child(2) { display: none }
}
/* the live site: a line naming the official record, a slim header with the town's logo and a way back to its site, and a
   footer. A copied menu would go stale, so there is none; embedded in the town's own page, header and footer drop out. */
.official { background: var(--dark); color: #fff; font-size: 13px; text-align: center; padding-block: 7px; padding-inline: 16px; overflow-wrap: anywhere }
.official a { color: #fff; text-underline-offset: 2px } .official a:focus-visible { outline-color: #fff }
.site-head { background: var(--head-bg, #fff); border-top: 4px solid var(--primary); border-bottom: 1px solid var(--line) }
.site-head .in, .site-foot .in { max-width: 1480px; margin: 0 auto; padding-inline: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px }
.site-head .in { padding-block: 12px }
.site-logo { display: block; color: var(--ink); text-decoration: none }
.site-logo img { display: block; height: 64px; width: auto }
.site-logo span { display: block; font-size: 22px; font-weight: 800; line-height: 1.2 }
.site-back { color: var(--primary-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap }
.site-back:hover { text-decoration: underline }
.site-foot { background: var(--tile); color: var(--text); border-top: 1px solid var(--line); font-size: 14px }
.site-foot .in { padding-block: 22px }
.site-foot p { margin: 0 }
.nojs { max-width: 72ch; margin: 0 auto; font-size: 17px }
.embed .site-head, .embed .site-foot { display: none }
/* in a frame, vh is the frame's own height, so a minimum height would keep the frame from ever shrinking */
.embed main { padding-block: 24px 40px; min-height: 0 }
@media (max-width: 760px) { .site-head .in { padding-block: 10px } .site-logo img { height: 48px } }
