/* Affordable Yet? — works on top of most themes. Override the variables to restyle. */
:root {
	--ay-ink: #1d1f23;
	--ay-muted: #6b7079;
	--ay-line: #e3e5e8;
	--ay-paper: #ffffff;
	--ay-soft: #f6f5f1;
	--ay-good: #1f8a4c;
	--ay-bad: #c2412d;
	--ay-radius: 10px;
	--ay-wide: 1180px; /* How wide tracker sections get. */
}

/* Break out of the theme's narrow text column, centered, on any theme. */
.ay-wide {
	width: min(var(--ay-wide), calc(100vw - 2.5rem)) !important;
	max-width: none !important;
	margin-left: 50% !important;
	margin-right: 0 !important;
	transform: translateX(-50%);
	box-sizing: border-box;
}
.ay-wide .ay-wide { width: 100% !important; margin-left: 0 !important; transform: none; }
.ay-home { margin-top: 1rem; margin-bottom: 2rem; }
.ay-home h2 { margin: 0 0 .75rem; font-size: 1.5rem; }
.ay-section { margin-top: 2.75rem; }
.ay-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ay-section__head a { font-weight: 600; white-space: nowrap; }
.ay-section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.ay-section--split .ay-cards { grid-template-columns: 1fr; }
@media (max-width: 860px) { .ay-section--split { grid-template-columns: 1fr; } }

.ay-footer-credit { text-align: center; font-size: .8rem; color: var(--ay-muted); padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--ay-line); line-height: 1.5; }
.ay-footer-credit a, .ay-credit a, .ay-attrib a { color: inherit; }
.ay-credit { font-size: .8rem; color: var(--ay-muted); }

.ay-badge {
	display: inline-flex; align-items: center; gap: .35em;
	background: var(--ay-c, #888); color: #fff !important; text-decoration: none !important;
	font-weight: 700; font-size: .82rem; line-height: 1; letter-spacing: .01em;
	padding: .42em .75em; border-radius: 999px; white-space: nowrap;
}
.ay-badge--lg { font-size: 1.05rem; padding: .55em 1em; }

.ay-party { font-size: .72rem; font-weight: 700; padding: .1em .45em; border-radius: 4px; background: var(--ay-line); color: var(--ay-ink); }
.ay-party--d { background: #dbe7fb; color: #1a4fa3; }
.ay-party--r { background: #fbe0dc; color: #a3261a; }

/* Single bill */
.ay-verdict { background: var(--ay-soft); border-radius: var(--ay-radius); padding: 1.25rem 1.4rem; margin: 0 0 1.75rem; border-left: 6px solid var(--ay-line); }
.ay-verdict--actually-affordable { border-left-color: #1f8a4c; }
.ay-verdict--affordable-ish { border-left-color: #7fa83a; }
.ay-verdict--makes-it-worse { border-left-color: #c2412d; }
.ay-verdict--tbd { border-left-color: #c59a1a; }
.ay-verdict__top { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ay-stage { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ay-muted); font-weight: 700; }
.ay-stage--signed { color: var(--ay-good); }
.ay-stage--vetoed, .ay-stage--dead { color: var(--ay-bad); }
.ay-zinger { font-size: 1.35rem; line-height: 1.35; font-weight: 700; margin: .9rem 0 .6rem; color: var(--ay-ink); }
.ay-facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .9rem 0 0; font-size: .92rem; }
.ay-facts dt { color: var(--ay-muted); font-weight: 600; }
.ay-facts dd { margin: 0; }
.ay-pending { font-size: 1.05rem; color: var(--ay-muted); }
.ay-receipts { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--ay-line); }
.ay-receipts h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.ay-history { margin-top: 1.25rem; font-size: .9rem; }
.ay-history summary { cursor: pointer; font-weight: 600; }
.ay-history ol { list-style: none; padding-left: 0; }
.ay-history li { padding: .3rem 0; border-bottom: 1px dashed var(--ay-line); }
.ay-history time { display: inline-block; min-width: 6.5rem; color: var(--ay-muted); font-variant-numeric: tabular-nums; }
.ay-stamp, .ay-attrib, .ay-note { font-size: .8rem; color: var(--ay-muted); }
.ay-attrib { margin-top: 1.5rem; }

/* Meter */
.ay-meter { background: var(--ay-ink); color: #fff; border-radius: var(--ay-radius); padding: 2.25rem 2rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.ay-promise { margin: 0 0 1.25rem; padding: 0 0 0 1rem; border-left: 4px solid #f2c94c; font-style: italic; color: #e9e9ea; font-size: 1.05rem; }
.ay-meter__q { font-size: 1.8rem; font-weight: 800; margin: 0 0 1rem; }
.ay-meter__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
@media (max-width: 600px) {
	.ay-meter { padding: 1.5rem 1.1rem; }
	.ay-meter__q { font-size: 1.45rem; }
	.ay-meter__grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
	.ay-stat { padding: .8rem; }
	.ay-stat__n { font-size: 1.9rem; }
}
.ay-stat { background: rgba(255,255,255,.07); border-radius: 8px; padding: 1rem; }
.ay-stat__n { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ay-stat__l { display: block; margin-top: .4rem; font-size: .85rem; color: #c9cbcf; }
.ay-stat--good .ay-stat__n { color: #6fdc9a; }
.ay-stat--law .ay-stat__n { color: #f2c94c; }
.ay-stat--bad .ay-stat__n { color: #ff8a73; }
.ay-meter__foot { margin: 1rem 0 0; font-size: .85rem; color: #c9cbcf; }
.ay-meter__foot a { color: #fff; }
.ay-meter__credit { margin: 1rem 0 0; padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .75rem; line-height: 1.5; color: #9a9da3; }
.ay-meter__credit a { color: #c9cbcf; }

/* Cards */
.ay-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0; }
.ay-card { background: var(--ay-paper); border: 1px solid var(--ay-line); border-radius: var(--ay-radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.ay-card .ay-badge { align-self: flex-start; }
.ay-card__title { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.ay-card__title a { text-decoration: none; color: var(--ay-ink); }
.ay-card__line { margin: 0; font-weight: 600; }
.ay-card__meta { margin: auto 0 0; font-size: .8rem; color: var(--ay-muted); }
.ay-empty { color: var(--ay-muted); font-style: italic; }

/* Scorecard */
.ay-table-wrap { overflow-x: auto; }
.ay-scorecard { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ay-scorecard th, .ay-scorecard td { padding: .55rem .6rem; border-bottom: 1px solid var(--ay-line); text-align: center; }
.ay-scorecard th:first-child, .ay-scorecard td:first-child { text-align: left; }
.ay-scorecard td { font-variant-numeric: tabular-nums; }

/* Categories */
.ay-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.ay-cat { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem; border: 1px solid var(--ay-line); border-radius: var(--ay-radius); text-decoration: none; color: var(--ay-ink); }
.ay-cat:hover { border-color: var(--ay-ink); }
.ay-cat__name { font-weight: 700; }
.ay-cat__nums { font-size: .85rem; color: var(--ay-muted); }

.ay-legis__nums { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* "Not about affordability, but…" */
.ay-but { margin: .2rem 0 .4rem; padding: .55rem .8rem; background: #fff; border-radius: 6px; font-size: .95rem; border: 1px dashed var(--ay-line); }
.ay-but strong { color: var(--ay-muted); font-weight: 700; }
.ay-card__but { margin: 0; font-size: .85rem; color: var(--ay-muted); }
.ay-card__but span { font-weight: 700; }

/* Clickable meter stats */
a.ay-stat { color: inherit !important; text-decoration: none !important; transition: background .15s; }
a.ay-stat:hover, a.ay-stat:focus-visible { background: rgba(255,255,255,.14); }

/* Grade pills */
.ay-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.ay-pill-link { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--ay-c, var(--ay-line)); background: var(--ay-paper); color: var(--ay-ink) !important; text-decoration: none !important; font-weight: 600; font-size: .88rem; line-height: 1; }
.ay-pill-link i { font-style: normal; }
.ay-pill-link span { font-weight: 700; font-size: .78rem; background: var(--ay-soft); border-radius: 999px; padding: .2rem .45rem; font-variant-numeric: tabular-nums; }
.ay-pill-link:hover { background: var(--ay-soft); }
.ay-pill-link.is-active { background: var(--ay-c, var(--ay-ink)); border-color: var(--ay-c, var(--ay-ink)); color: #fff !important; }
.ay-pill-link.is-active span { background: rgba(255,255,255,.25); color: #fff; }
.ay-gradenav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.ay-gradenav__label { font-weight: 700; font-size: .9rem; color: var(--ay-muted); }

/* Browse page */
.ay-browse { margin-top: .5rem; }
.ay-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin: 1.25rem 0 1rem; padding: 1rem; background: var(--ay-soft); border-radius: var(--ay-radius); }
.ay-filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .78rem; font-weight: 700; color: var(--ay-muted); text-transform: uppercase; letter-spacing: .04em; }
.ay-filters select, .ay-filters input[type=search] { box-sizing: border-box; height: 2.6rem; font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ay-ink); padding: .5rem .6rem; border: 1px solid #cfd2d6; border-radius: 6px; background: #fff; min-width: 10rem; }
.ay-filters__q { flex: 1 1 16rem; }
.ay-filters__q input[type=search] { width: 100%; box-sizing: border-box; }
.ay-filters button { height: 2.6rem; font: inherit; font-weight: 700; padding: .55rem 1.1rem; border: 0; border-radius: 6px; background: var(--ay-ink); color: #fff; cursor: pointer; }
.ay-filters__reset { align-self: center; font-size: .9rem; }
.ay-count { font-size: .9rem; color: var(--ay-muted); margin: 0 0 .25rem; }
.ay-pager { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin: 1.5rem 0; font-weight: 600; }
@media (max-width: 600px) { .ay-filters label { flex: 1 1 45%; } .ay-filters select { min-width: 0; width: 100%; } }
