/* Will My Bill Go Up. Ink header, warm paper, ember for money going up, green for money coming down. */

:root {
  --paper: #F7F5EF;
  --paper-2: #EEEBE2;
  --surface: #FFFFFF;
  --ink: #16191F;
  --ink-2: #3D4149;
  --muted: #6B6F78;
  --line: #DEDACF;
  --line-2: #CFCABE;
  --navy: #14233A;
  --navy-2: #1E3A5F;
  --navy-3: #2B4D7A;
  --blue: #1E4D78;
  --blue-2: #17405F;
  --up: #C9461B;
  --up-2: #A73812;
  --up-tint: #F8E4DA;
  --up-tint-2: #F0BFA6;
  --down: #2E7D4F;
  --down-tint: #DDEFE3;
  --amber: #C98A1B;
  --ok: #2E7D4F;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1080px;
  --r: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.008em; }
p { margin: 0 0 0.8em; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; min-width: 0; }
body { overflow-x: hidden; }
.num { font-variant-numeric: tabular-nums; }

/* header: ink band with an ember rule */
.hdr { background: var(--paper); border-bottom: 2px solid var(--up); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 10px 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 18px; white-space: nowrap; }
.brand__mark { color: var(--up); flex: none; }
.hdr__nav { display: flex; gap: 20px; font-size: 15px; }
.hdr__nav a { color: var(--ink-2); text-decoration: none; }
.hdr__nav a:hover { color: var(--ink); text-decoration: underline; }

/* hero: question on the left, the numbers on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); gap: 36px 56px; align-items: start; padding: 52px 20px 26px; }
.hero__h { font-size: clamp(34px, 5vw, 54px); }
.hero__h em { font-style: normal; color: var(--up); }
.hero__lede { font-size: 18px; color: var(--ink-2); margin: 16px 0 22px; max-width: 560px; }
.q { display: flex; gap: 8px; max-width: 600px; }
.q input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 17px; }
.q input:focus { outline: 2px solid var(--navy-2); outline-offset: -1px; border-color: var(--navy-2); }
.q button, .alerts__form button { height: 50px; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--navy-2); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.q button:hover, .alerts__form button:hover { background: var(--navy); }
.q--compact { margin: 22px 0 26px; }
.q--compact input, .q--compact button { height: 42px; font-size: 16px; }
.hero__err { margin-top: 12px; color: var(--up); font-size: 15px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; border-left: 3px solid var(--up); padding-left: 22px; margin-top: 10px; }
.stack__n { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 40px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stack__n.up { color: var(--up); }
.stack__l { font-size: 14px; color: var(--muted); margin-top: 3px; }

/* tile map of the states */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; max-width: 760px; margin: 12px 0 8px; }
.tile { display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 1 / 1; border-radius: 3px; text-decoration: none; background: var(--paper-2); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.05; }
.tile small { font-size: 10px; font-weight: 500; opacity: .85; }
.tile:hover { outline: 2px solid var(--navy-2); outline-offset: -2px; color: var(--ink); }
.tile--1 { background: var(--up-tint); color: var(--up-2); }
.tile--2 { background: var(--up-tint-2); color: var(--up-2); }
.tile--3 { background: var(--up); color: #fff; }
.tile--3 small { opacity: .9; }
.tile--none { color: #9A9EA6; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }

/* sections under the hero */
.under { padding: 10px 20px 60px; }
.stat { color: var(--ink-2); font-size: 16px; margin: 0 0 30px; }
.sec { margin-top: 44px; }
.sec__h { font-size: 24px; margin-bottom: 4px; }
.sec__sub { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.more { font-size: 15px; margin-top: 12px; }
.how { max-width: 700px; margin-top: 48px; color: var(--ink-2); font-size: 16px; }

/* ranked board with data bars */
.board { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 118px; gap: 6px 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row--nobar { grid-template-columns: minmax(0, 1fr) 118px; }
.row__rank { font-family: var(--serif); font-size: 20px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.row__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.row__name a { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 17px; }
.row__name a:hover { text-decoration: underline; }
.row__op { color: var(--muted); font-size: 14.5px; }
.row__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.row__sum { font-size: 15px; color: var(--ink-2); margin: 6px 0 0; max-width: 720px; }
.row__bar { height: 6px; background: var(--paper-2); border-radius: 3px; margin-top: 9px; max-width: 520px; overflow: hidden; }
.row__bar i { display: block; height: 100%; background: var(--up); }
.row__bar i.down { background: var(--down); }
.row__money { text-align: right; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.row__money.up { color: var(--up); }
.row__money.down { color: var(--down); }
.row__money small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.row__money .est { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }

/* status pills */
.status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.5; background: var(--paper-2); color: var(--ink-2); vertical-align: 1px; }
.status--pending { background: var(--up-tint); color: var(--up-2); }
.status--settled { background: #E6E9F0; color: var(--navy-2); }
.status--approved, .status--implemented { background: var(--navy-2); color: #fff; }
.status--denied, .status--withdrawn { background: var(--paper-2); color: var(--muted); }

/* answer block and bill band */
.answer { margin: 22px 0 26px; }
.answer__h { font-size: clamp(26px, 3.6vw, 36px); max-width: 860px; }
.answer__h em { font-style: normal; color: var(--up); }
.answer__h em.down { color: var(--down); }
.answer__sub { font-size: 17px; color: var(--ink-2); margin: 12px 0 0; max-width: 820px; }
.band { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 18px 20px 16px; margin: 6px 0 30px; max-width: 760px; }
.band__row { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: flex-end; min-width: 0; }
.band__n { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.band__n.up { color: var(--up); }
.band__n.down { color: var(--down); }
.band__l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.band__bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--paper-2); margin-top: 14px; }
.band__bar .base { background: var(--navy-2); }
.band__bar .delta { background: var(--up); }
.band__bar .delta.down { background: var(--down); }
.band__fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* case page: the delta and the timeline */
.delta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 20px 0 6px; }
.delta__n { font-family: var(--serif); font-size: clamp(44px, 7vw, 68px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.delta__n.up { color: var(--up); }
.delta__n.down { color: var(--down); }
.delta__n small { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.delta__t { font-size: 19px; color: var(--ink); max-width: 560px; }
.delta__basis { font-size: 14.5px; color: var(--muted); margin: 4px 0 22px; max-width: 700px; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 10px 0 26px; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 2px; background: var(--line-2); }
.tl { position: relative; padding: 0 10px 0 0; font-size: 13.5px; color: var(--muted); }
.tl i { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); position: relative; margin-bottom: 8px; }
.tl--done i { background: var(--navy-2); border-color: var(--navy-2); }
.tl--next i { background: var(--paper); border-color: var(--up); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 20px var(--up); }
.tl--off i { border-style: dashed; }
.tl b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.tl--next b { color: var(--up); }
.note { border-left: 3px solid var(--navy-2); padding: 8px 14px; margin: 14px 0 18px; font-size: 16px; background: var(--surface); }
.notice { display: inline-block; margin: 14px 0 0; padding: 8px 12px; border: 1px solid var(--line-2); border-left: 3px solid var(--ok); background: var(--surface); font-size: 15px; }

/* callout boxes (how to comment, shop your supply) */
.bill { border: 1px solid var(--line-2); border-left: 4px solid var(--navy-2); border-radius: var(--r); background: var(--surface); padding: 16px 18px 6px; margin: 22px 0; max-width: 760px; }
.bill h2 { font-size: 19px; margin: 0 0 8px; }
.btn-link { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--navy-2); border-radius: var(--r); color: var(--navy-2); text-decoration: none; font-weight: 600; }
.btn-link:hover { background: var(--navy-2); color: #fff; }
.btn-quiet { height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; font-size: 14px; }
.btn-quiet:hover { border-color: var(--blue); color: var(--blue); }
.prep { list-style: none; padding: 0; margin: 0 0 8px; }
.prep li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.prep li:last-child { border-bottom: 0; }

/* alerts */
.alerts__form { display: flex; gap: 8px; }
.alerts__form input[type=email] { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 16px; }
.alerts__form input:focus { outline: 2px solid var(--navy-2); outline-offset: -1px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* share */
.share-block { margin: 30px 0 48px; }
.share-block--home { margin: 40px 0 0; }
.share-block__p { font-size: 15px; color: var(--ink-2); margin: 0 0 8px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-row__label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share-btn { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.share-btn:hover { border-color: var(--navy-2); color: var(--navy-2); }
.share-btn--native { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.share-btn--native:hover { background: var(--navy); color: #fff; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 14px; color: var(--muted); background: var(--paper); }
.ftr__line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.ftr__line span { color: var(--ink-2); font-family: var(--serif); font-weight: 600; }
.ftr__line a { color: var(--ink-2); text-decoration: none; }
.ftr__line a:hover { text-decoration: underline; }
.ftr__fine { max-width: 820px; line-height: 1.55; }

/* content pages */
.page { padding: 40px 20px 64px; max-width: 780px; }
.page h1 { font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 10px; }
.page h2 { font-size: 22px; margin: 34px 0 10px; }
.page h3 { font-size: 17px; margin: 20px 0 6px; }
.page p, .page li { color: var(--ink-2); }
.page ul { padding-left: 20px; }
.page--wide { max-width: var(--wrap); }
.kicker { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kicker a { color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; margin: 16px 0 22px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.srcs { font-size: 15px; }
.srcs li { margin-bottom: 6px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
table.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; letter-spacing: .03em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); padding: 8px 10px 8px 0; }
table.tbl td { border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; vertical-align: top; }
table.tbl a { color: var(--ink); font-weight: 600; text-decoration: none; }
table.tbl a:hover { text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; margin: 10px 0 18px; }
.filters a { color: var(--ink-2); text-decoration: none; padding: 2px 0; }
.filters a.on, .filters a:hover { color: var(--up-2); text-decoration: underline; }
.ad { margin: 28px 0; text-align: center; }
.ad:empty { display: none; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 36px 16px 20px; }
  .stack { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; border-left: 0; padding-left: 0; border-top: 3px solid var(--up); padding-top: 14px; }
  .stack__n { font-size: 26px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hdr__nav { gap: 12px; font-size: 14px; }
  .brand span { font-size: 15px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .q { flex-direction: column; }
  .q button { height: 46px; }
  .alerts__form { flex-direction: column; }
  .row { grid-template-columns: 26px minmax(0, 1fr); }
  .row--nobar { grid-template-columns: minmax(0, 1fr); }
  .row__money { grid-column: 2; text-align: left; font-size: 20px; margin-top: 2px; }
  .row--nobar .row__money { grid-column: 1; }
  .row__money small { display: inline; margin-left: 6px; }
  .tiles { gap: 3px; }
  .tile { font-size: 10px; }
  .tile small { display: none; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .timeline::before { display: none; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dt { margin-top: 8px; }
  table.tbl { font-size: 14px; }
  table.tbl .hide-m { display: none; }
}
@media (max-width: 420px) {
  .hdr__nav a:nth-child(3) { display: none; }
}

/* hover fixes for links on dark or coloured backgrounds */
.brand:hover, .brand:hover span { color: var(--ink); }
.hdr__nav a:hover { color: var(--ink); }
.tile:hover { color: var(--ink); }
.tile--1:hover, .tile--2:hover { color: var(--up-2); }
.tile--3:hover { color: #FFFFFF; outline-color: #F0BFA6; }
.share-btn--native:hover { color: #FFFFFF; }
.btn-link:hover { color: #FFFFFF; }
.stack__l a:hover, .kicker a:hover { color: var(--up-2); }
