/*
  The look of thelisti.com, as the sketch draws it: the city's old paper chart is the
  ground, and a few calm surfaces float on it with a soft shadow and no outline.

  Ink, paper and five soft colors, each with one job. Yellow is ours: what to press, the star and
  the category in view. Green is a yes vote, coral a no vote. Orange is what is paid for, the
  envelope. Mint is the water on the chart. Words on a color are always ink, in light and dark.

  System fonts only. The scales (type, space, corners) are defined once, with the surfaces, at the
  top of "The pages of a city" below, and every page uses them.
*/

:root {
	--ink: #131314;
	--paper: #fefefe;
	/* Words on a colored fill, and the logo's block: ink in both modes. */
	--on: #131314;
	--chalk: #fefefe;
	--coral: #ff8f76;
	--orange: #ffc476;
	--yellow: #ffe476;
	--green: #76ffa8;
	--mint: #76ffd4;
	--soft: rgba(19, 19, 20, 0.72);
	--rule: rgba(19, 19, 20, 0.12);
	--wash: rgba(19, 19, 20, 0.05);
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light dark;
}

/* Dark: the page is ink and words are paper. The five colors stay exactly as they are. */
@media (prefers-color-scheme: dark) {
	:root {
		--ink: #fefefe;
		--paper: #131314;
		--soft: rgba(254, 254, 254, 0.74);
		--rule: rgba(254, 254, 254, 0.14);
		--wash: rgba(254, 254, 254, 0.07);
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 17px;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	position: relative;
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--fs-body)/1.5 var(--sans);
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/* Focus is drawn in the color of the words around it, so it shows on paper, on ink and on a color. */
:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

.col {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 var(--sp-4);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ------------------------------------------------------------------ The brand's own pieces: the logo and the arrows */

/* The logo takes the color of the words around it: paper on the ink header and the front door, ink anywhere light. */
.wordmark {
	display: block;
	flex: none;
	line-height: 0;
	text-decoration: none;
}

.logo {
	display: block;
	width: auto;
	height: 34px;
	overflow: visible;
	fill: currentColor;
}

/*
  The brand's triangle, the vote itself. One drawing points up; the down arrow is the same drawing
  turned over, so the two always match.
*/
svg.arrow {
	display: block;
	width: auto;
	height: 11px;
	fill: currentColor;
}

svg.arrow-down {
	transform: rotate(180deg);
}

/* In a sentence the arrow is the size of the letters beside it and sits on their line. */
svg.arrow-inline,
.meta-said svg.arrow {
	display: inline-block;
	height: 0.72em;
	margin: 0 0.12em;
	vertical-align: 0;
}

/* ------------------------------------------------------------------ The preview band */

.band {
	position: relative;
	margin: 0;
	padding: var(--sp-1) var(--sp-3);
	background: var(--paper);
	color: var(--quiet);
	font: 600 var(--fs-cap)/1.3 var(--sans);
	text-align: center;
}

/* ------------------------------------------------------------------ The pages of a city: the sketch */

/*
  The sketch, drawn by hand on November 28, 2026, is the spec. The city's old paper chart
  is the ground of every page, and a few calm surfaces float on it: the header, the two category
  rows, the sponsor's spot, the tag, and the rows. No frames, no hard shadows, no thick outlines:
  a surface stands off the chart by a soft shadow alone. The header and the category rows are frosted
  glass, so the chart shows through them; everything you read at length stands on solid paper.
  Color is kept for meaning: yellow for the star and the one thing to press, green and coral for your
  own vote, and the yellow star for Google and for the sponsor.
*/
:root {
	/*
	  The system. Every page of a city is built from these and nothing else.
	  Type: six sizes (11 small labels, 13 small print and a vote's total, 15 buttons, body and a name on a phone,
	  18 names and headings, 22 a percent on a phone, a business's name and the ZIP field, 28 a page title and a
	  percent on a wider screen), three weights (400, 600, 700).
	  Space: one scale, 4, 8, 12, 16, 24, 32. Every space between blocks and inside them is one of them; the few
	  worked out from a size, such as a 44 tap area or the slot's dashed line, say so where they are.
	  Three insets, set from the scale: --inset from the screen's edge to every block, --gap between one block
	  and the next, --pad inside every card and every row. So the header, the categories, the sponsor slot, the
	  list and the footer share one left and one right edge, and everything in them starts at one line.
	  Corners: 12 for a surface, 8 for anything inside one, 10 for a vote button.
	  One surface and one soft shadow for light, one of each for dark. The one drawn edge is a button's:
	  a vote button and the category buttons under a list have an edge you can see, so they read as buttons.
	*/
	--fs-cap: 11px;
	--fs-small: 13px;
	--fs-body: 15px;
	--fs-head: 18px;
	--fs-big: 22px;
	--fs-title: 28px;
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 24px;
	--sp-6: 32px;
	--inset: var(--sp-2);
	--gap: var(--sp-2);
	--pad: var(--sp-3);
	--r: 12px;
	--r-in: 8px;
	--surface: #fefefe;
	/* Words a little quieter than the name beside them. */
	--quiet: rgba(19, 19, 20, 0.62);
	--edge: rgba(19, 19, 20, 0.08);
	--dash: rgba(19, 19, 20, 0.32);
	--float: 0 1px 2px rgba(19, 19, 20, 0.06), 0 4px 12px rgba(19, 19, 20, 0.08);
	/* A shade darker than the sheet: an empty row on the sponsor page. */
	--bar: rgba(19, 19, 20, 0.04);
	/* Frosted glass: the surface, a little see-through, over a blur of the chart. */
	--glass: rgba(254, 254, 254, 0.76);
	/* A button you can see is a button: a light solid face, an edge with 3:1 contrast, and a lip under it. */
	--key: #f2f2f2;
	--key-hover: #e5e5e5;
	--key-edge: rgba(19, 19, 20, 0.5);
	--key-lip: rgba(19, 19, 20, 0.2);
	/* A vote button: 48 by 44 on a phone, 52 by 46 wider, the whole of it the place to tap. */
	--key-w: 48px;
	--key-h: 44px;
	--r-key: 10px;
	/* The place, at a row's left, with the space after it. */
	--c-place: 24px;
	/* The percent's tile, at a row's right end: "100%" fits. */
	--c-box: 52px;
	/* A row's picture square. */
	--thumb: 40px;
	/* The arrows' column: one vote button wide. */
	--c-vote: var(--key-w);
	/* A row's least height: ▲ and ▼, the total between them with 4 on each side, and 6 above and below. */
	--row-h: calc(2 * var(--key-h) + var(--fs-small) + 2 * var(--sp-1) + 12px);
	/* A category's square. */
	--sq: 72px;
}

/* Dark: the night chart, surfaces of a lifted ink, paper words, and no white outlines anywhere. */
@media (prefers-color-scheme: dark) {
	:root {
		--surface: #242427;
		--quiet: rgba(254, 254, 254, 0.6);
		--edge: rgba(254, 254, 254, 0.08);
		--dash: rgba(254, 254, 254, 0.16);
		--float: 0 1px 2px rgba(0, 0, 0, 0.45), 0 6px 16px rgba(0, 0, 0, 0.35);
		--bar: rgba(254, 254, 254, 0.05);
		--glass: rgba(36, 36, 39, 0.76);
		--key: #34343a;
		--key-hover: #3f3f46;
		--key-edge: rgba(254, 254, 254, 0.36);
		--key-lip: rgba(0, 0, 0, 0.55);
	}
}

/* One column the width of a phone; wider on a tablet or a desktop, centred on the chart. */
.city .col,
.list .col,
.business .col,
.sponsor .col,
.about .col {
	max-width: 680px;
	padding: 0 var(--inset);
}

/* ------------------------------------------------------------------ Listi's own category pictures */

/* Outlines take the words' color; fills are the brand's and never change. */
svg.icon {
	display: block;
	flex: none;
	width: 24px;
	height: 24px;
	overflow: visible;
}

/* At night every picture keeps ink outlines and gains a thin paper edge, like a die-cut sticker, so it
   reads the same on a dark square, a yellow one or the sheet. */
@media (prefers-color-scheme: dark) {
	svg.icon {
		color: var(--on);
		filter: drop-shadow(1px 0 0 var(--paper)) drop-shadow(-1px 0 0 var(--paper)) drop-shadow(0 1px 0 var(--paper)) drop-shadow(0 -1px 0 var(--paper));
	}
}

/* ------------------------------------------------------------------ The ground: the city's chart */

/*
  The whole screen, behind everything, and it never moves: not while the page scrolls, and not when
  a phone's toolbar slides away. The box reaches --reach past the top of the screen and past the bottom,
  so pulling the page past either end shows more chart, never a blank color. The chart hangs from the
  box's top edge at a fixed size, so nothing about the screen's height moves it.
*/
.backdrop {
	--reach: 280px;
	position: fixed;
	top: calc(-1 * var(--reach));
	right: 0;
	left: 0;
	z-index: -1;
	height: calc(100vh + 2 * var(--reach));
	height: calc(100lvh + 2 * var(--reach));
	overflow: hidden;
	pointer-events: none;
}

/* Drawn large, so a street is still a line on a phone, and the town's middle sits mid-screen on a phone; it fills the box past both ends of the screen. */
.backdrop-map {
	position: absolute;
	top: 0;
	left: 50%;
	width: max(100vw, 1400px);
	max-width: none;
	height: auto;
	aspect-ratio: 1;
	transform: translateX(-50%);
	opacity: 0.7;
}

/* At night the chart is drawn in faint lines and warm grey roads already. */
@media (prefers-color-scheme: dark) {
	.backdrop-map {
		opacity: 0.75;
	}
}

/* ------------------------------------------------------------------ The header */

/* For a keyboard: Tab once, then Enter, goes past the header to the page itself. */
.skip {
	position: absolute;
	top: -80px;
	left: var(--sp-2);
	z-index: 20;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r-in);
	background: var(--on);
	color: var(--chalk);
	font: 700 var(--fs-body)/1 var(--sans);
}

.skip:focus {
	top: 8px;
}

/*
  No band: the logo's small ink block and the city's control float on the chart, as far from the top of
  the screen as from its sides. No line under it, in either mode.
*/
.top,
header.top {
	position: relative;
	z-index: 4;
	padding-top: var(--inset);
	border-bottom: 0;
}

.top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
}

/* "Black with white letters", as the sketch says. */
.top .wordmark {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--pad);
	border-radius: var(--r);
	background: var(--on);
	box-shadow: var(--float);
	color: var(--chalk);
}

.top .logo {
	height: 24px;
}

/* At night the block takes the surface's color, so the header reads as one piece with no ring. */
@media (prefers-color-scheme: dark) {
	.top .wordmark {
		background: var(--surface);
	}
}

/* One control: the city's name goes to its page, the ▾ beside it opens every city, by state. */
.place {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 44px;
	padding-left: var(--pad);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
}

/*
  Frosted glass, where a browser can draw it: the city's control and the category rows let the chart show
  through, softly, so the map reads while you use the page. Words on the glass keep AA contrast in both
  modes. The list and the sponsor's spot stay solid, so the rows are easy to read. Elsewhere, solid.
*/
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.place,
	.cats {
		background: var(--glass);
		-webkit-backdrop-filter: blur(16px) saturate(1.2);
		backdrop-filter: blur(16px) saturate(1.2);
	}

	/* At night the logo's block is the surface's color, so it is glass too. By day it stays ink. */
	@media (prefers-color-scheme: dark) {
		.top .wordmark {
			background: var(--glass);
			-webkit-backdrop-filter: blur(16px) saturate(1.2);
			backdrop-filter: blur(16px) saturate(1.2);
		}
	}
}

/* The city's name, underlined: it goes to the city's page. */
.place-city {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-right: var(--sp-1);
	font: 700 var(--fs-body)/1.1 var(--sans);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* The space after the comma, which a flex row would otherwise drop. */
abbr.place-state {
	margin-left: 0.25em;
	text-decoration: none;
}

/* The ▾ beside it opens every city, by state. A thumb's size, 44 by 44, at every width. */
.place-pick {
	flex: none;
}

.place-pick > summary {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	list-style: none;
	cursor: pointer;
}

.place-pick > summary::-webkit-details-marker {
	display: none;
}

.caret {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* A drawn arrow at the end of a link that leads on, or the start of one that leads back. */
.go {
	flex: none;
	width: 0.9em;
	height: 0.9em;
	margin-left: var(--sp-1);
	vertical-align: -0.08em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.go-back {
	margin: 0 var(--sp-1) 0 0;
	transform: scaleX(-1);
}

.place-pick[open] > summary .caret,
.towns-pick[open] .towns-open .caret {
	transform: rotate(180deg);
}

/* The list opens under the pill, from its right edge, and fits the narrowest phone. On a short screen it scrolls. */
.place-list {
	position: absolute;
	top: calc(100% + var(--sp-2));
	right: 0;
	z-index: 10;
	width: min(320px, calc(100vw - 16px));
	max-height: calc(100vh - 120px);
	max-height: calc(100svh - 120px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: var(--sp-1);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
}

/*
  Both lists of cities, the header's and the front page's: a row for each state, with its name, how
  many cities it has and a ▾. Pressing it opens the state's cities, set in under it, and closes the
  state that was open. In the header, the state of the city in view starts open; nothing else marks it.
*/
.towns-state > summary {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: 0 var(--sp-3);
	border-radius: var(--r-in);
	font: 700 var(--fs-body)/1.2 var(--sans);
	list-style: none;
	cursor: pointer;
}

.towns-state > summary::-webkit-details-marker {
	display: none;
}

.towns-count {
	margin-left: auto;
	color: var(--quiet);
	font: 600 var(--fs-small)/1.2 var(--sans);
	white-space: nowrap;
}

.towns-state > summary .caret {
	flex: none;
	color: var(--quiet);
}

.towns-state[open] > summary .caret {
	transform: rotate(180deg);
}

/* An open state and its cities read as one group, on a faint wash. */
.towns-state[open] {
	border-radius: var(--r-in);
	background: var(--wash);
}

.towns-state > ul {
	margin: 0;
	padding: 0 0 var(--sp-1);
	list-style: none;
}

.towns-city {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: 0 var(--sp-3) 0 var(--sp-5);
	border-radius: var(--r-in);
	font: 600 var(--fs-body)/1.2 var(--sans);
	text-decoration: none;
}

.towns-state > summary:hover,
.towns-city:hover {
	background: var(--wash);
}

/* Inside a list that scrolls, the focus ring is drawn inside the row, so its edge is never cut off. */
.towns-state > summary:focus-visible,
.towns-city:focus-visible {
	outline-offset: -2px;
}

.weather {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	padding: 0 var(--pad) 0 var(--sp-2);
	border-left: 1px solid var(--edge);
	font: 600 var(--fs-small)/1 var(--sans);
	white-space: nowrap;
}

.sky {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Said once, under the header, to a visitor whose ZIP code is far from every city. */
.far {
	margin: var(--gap) 0 0;
	padding: var(--pad);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
	font: 600 var(--fs-small)/1.35 var(--sans);
	text-wrap: balance;
}

/* ------------------------------------------------------------------ The two rows of category squares */

/*
  One surface holds both rows, so the squares read as one band and not as fourteen boxes. No labels: the
  pictures say it. The squares stand --pad inside the surface, as every card's contents do, and as far
  apart as the rows of a list: 8 between squares, and between the two rows.
*/
.cats {
	margin-top: var(--gap);
	/* Each strip keeps 4 above and below for a square's focus ring, so the surface adds the rest of --pad. */
	padding: calc(var(--pad) - var(--sp-1)) 0;
	overflow: hidden;
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
}

.cats-scroll {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
	padding: var(--sp-1) var(--pad);
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	scroll-padding-left: var(--pad);
	/* The squares fade out at both edges rather than being cut by them. Each fade is no wider than
	   the strip's own padding, so a square at rest at the start is never faded. */
	mask-image: linear-gradient(to right, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
}

.cats-scroll::-webkit-scrollbar {
	display: none;
}

/* The second row starts half a square along, as the sketch draws it. */
.cats-scroll + .cats-scroll {
	padding-left: calc(var(--pad) + (var(--sq) + var(--sp-2)) / 2);
}

.cats-item {
	flex: none;
}

/* A category: its picture above its name, in an equal square. */
.chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: var(--sp-1);
	width: var(--sq);
	height: var(--sq);
	padding: var(--sp-1);
	border-radius: var(--r-in);
	background: var(--wash);
	font: 600 var(--fs-small)/1.1 var(--sans);
	text-align: center;
	text-decoration: none;
}

.chip:hover {
	background: var(--rule);
}

/* The category in view: yellow with ink words, in both modes. */
.chip[aria-current] {
	background: var(--yellow);
	color: var(--on);
}

.chip-emoji.icon {
	width: 30px;
	height: 30px;
}

/* The name on one line. A name too long for that has a short one for its square, in categories.json. */
.chip-name {
	white-space: nowrap;
}

/* ------------------------------------------------------------------ The sponsor's spot */

/*
  The sketch's dashed box, holding one row drawn as the list's rows are: the sponsor's picture, its name
  and Google pill, and ▲ over ▼, which count like any row's. A star stands on the tile where a row shows
  its percent, and the row has no place. "Sponsor" sits on the box's top edge, over the dashes; the line
  under the row leads to the sponsor page. Its contents start where every card's do: the dash counts
  toward --pad. It stays solid, like the list.
*/
.slot {
	position: relative;
	margin-top: var(--gap);
	/* 8 above and below the row, so the spot and three rows fit a phone's first screen; --pad at the sides. */
	padding: calc(var(--sp-2) - 1.5px) calc(var(--pad) - 1.5px);
	border: 1.5px dashed var(--dash);
	border-radius: var(--r);
	background: var(--surface);
}

/* "Sponsor", on the top edge, over the dashes, starting above the picture. */
.slot-label {
	position: absolute;
	top: -0.75px;
	left: calc(var(--pad) - 1.5px + var(--c-place) - var(--sp-1));
	margin: 0;
	padding: 0 var(--sp-1);
	border-radius: var(--sp-1);
	background: var(--surface);
	color: var(--ink);
	font: 700 var(--fs-cap)/1 var(--sans);
	letter-spacing: 0.04em;
	transform: translateY(-50%);
}

/* The box gives the row its air, so the row is as tall as its arrows and no taller. */
.slot .card {
	min-height: 0;
}

/* The line under the row, starting under the picture. */
.slot-say {
	margin: var(--sp-1) 0 0 var(--c-place);
	color: var(--quiet);
	font: 400 var(--fs-small)/1.35 var(--sans);
}

.slot-more {
	position: relative;
	color: var(--ink);
	font-weight: 700;
	white-space: nowrap;
}

/* "Learn more" is small words; its tap area reaches 44 tall, into the box's own padding. */
.slot-more::after {
	content: "";
	position: absolute;
	inset: calc((44px - 1.35em) / -2) calc(-1 * var(--sp-2));
}

/* The sponsor's star, on the ink tile where a row shows its percent: yellow, edged in paper. */
.pct-star .star {
	width: calc(var(--c-box) * 0.56);
	height: calc(var(--c-box) * 0.56);
	stroke: var(--chalk);
	stroke-width: 1;
}

/* A spot nobody has taken yet: the row's shape, with a faint bar where the name will go. */
.sponsor-open .who {
	align-self: stretch;
	display: flex;
	align-items: center;
}

.ghost-line {
	display: block;
	width: 70%;
	height: var(--sp-3);
	border-radius: var(--sp-1);
	background: var(--wash);
}

.sponsor-open .card {
	min-height: var(--c-box);
}

/* ------------------------------------------------------------------ The sheet: one solid panel that holds a list */

/*
  The list stands on one solid sheet, not on the map: its title, the rows, the small print and the
  links under it. Nothing with words in it sits straight on the chart.
*/
.sheet {
	margin-top: var(--gap);
	padding: var(--pad);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
}

/* "Most popular" in the sketch: the list's title, at the top of its sheet. It is the page's main heading. */
.tag,
.shown-on {
	margin: 0 0 var(--sp-2);
	font: 700 var(--fs-head)/1.25 var(--sans);
}

.shown-on {
	font-size: var(--fs-small);
	font-weight: 400;
}

/* The page's own title is a size up from a section's. */
h1.tag {
	font-size: var(--fs-big);
	letter-spacing: -0.01em;
}

/* Small links: a way back, and "See all". In a sheet they are plain; on the chart (How it works) a small surface carries them. */
.back {
	margin: var(--sp-2) 0 0;
}

.back a,
.more {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	font: 600 var(--fs-body)/1.2 var(--sans);
	text-decoration: none;
}

/* On the chart, the way back is one more block: --gap below the header, its words at --pad. */
.col > .back {
	margin-top: var(--gap);
}

.col > .back a {
	padding: 0 var(--pad);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
}

.sheet > .back {
	margin: 0 0 var(--sp-1);
}

/* These links space their parts with a gap already, so the arrow needs no margin of its own. */
.back a .go,
.more .go,
.welcome-go .go {
	margin: 0;
}

.back a:hover,
.more:hover {
	text-decoration: underline;
}

/*
  The foot of a list: the category before and the one after, two big buttons side by side, equal in width.
  Each has an edge and a solid face, like the vote buttons, and its arrow points the way it goes.
*/
.cat-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--sp-2);
	margin-top: var(--sp-4);
}

.cat-go {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 52px;
	padding: 0 var(--sp-3);
	border: 1.5px solid var(--key-edge);
	border-radius: var(--r-key);
	background: var(--key);
	color: var(--ink);
	font: 600 var(--fs-body)/1.15 var(--sans);
	text-decoration: none;
}

.cat-next {
	justify-content: flex-end;
}

.cat-go:hover {
	background: var(--key-hover);
}

.cat-go:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.cat-go-face {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	min-width: 0;
}

.cat-go-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cat-go-emoji.icon {
	width: 26px;
	height: 26px;
}

.cat-go .go {
	width: 18px;
	height: 18px;
	margin: 0;
	stroke-width: 2;
}

/* ------------------------------------------------------------------ The rows */

/*
  One list, its rows divided by a hairline, as a guide divides its places: the place at the left, then
  the picture, the name with its Google pill, ▲ over ▼ with the total between them, and the percent on a
  solid ink tile, the one dark mark in a row. Down the list the tiles make a scoreboard's column.
*/
.rows {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.row {
	display: grid;
	grid-template-columns: var(--c-place) minmax(0, 1fr) var(--c-box);
	align-items: center;
}

.row + .row {
	box-shadow: inset 0 1px 0 var(--edge);
}

/* The place starts at the sheet's inner edge, under the title, and is the name's size. */
.rank {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	align-self: stretch;
	font: 700 var(--fs-body)/1 var(--sans);
	font-variant-numeric: tabular-nums;
}

.row:not([data-rank=""]) > .rank::after,
.mrow:not([data-rank=""]) > .rank::after {
	content: ".";
}

/* The picture, the name and the arrows, on the sheet itself. The arrows stand 8 from the percent's tile. */
.card {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	min-width: 0;
	min-height: var(--row-h);
	padding: 0 var(--sp-2) 0 0;
}

/* The category's picture in a square, as the sketch draws it, on a faint wash. */
.thumb {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: var(--thumb);
	height: var(--thumb);
	overflow: hidden;
	border-radius: var(--r-in);
	background: var(--wash);
	text-decoration: none;
}

.thumb-emoji.icon {
	width: calc(var(--thumb) * 0.64);
	height: calc(var(--thumb) * 0.64);
}

/* A business's photo fills its square, cut to fit, with the square's corners. The square sets its size,
   so nothing moves as the photo arrives. */
.thumb-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.who {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: var(--sp-2) 0;
}

/* A name takes two lines at most. On a phone it is set at 15, so even a long one keeps to two lines whole.
   The sponsor's name is the same, in a plain paragraph: its spot comes before the page's own heading. */
.who h3,
.who-name {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	font: 700 var(--fs-body)/1.15 var(--sans);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.who h3 a,
.who h3 button,
.who-name a,
.who-name button {
	color: inherit;
	text-decoration: none;
}

/* With the script on, the name is a button that opens the row's panel. It reads as the name it is. */
.who h3 button,
.who-name button {
	display: -webkit-box;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	cursor: pointer;
}

.who h3 a:hover,
.who h3 button:hover,
.who-name a:hover,
.who-name button:hover {
	text-decoration: underline;
}

/* One line under the name: on a list, the Google reviews button; elsewhere, where the business is, cut short with "…" when it is long. */
.meta {
	position: relative;
	margin: var(--sp-1) 0 0;
	overflow: hidden;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.4 var(--sans);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.meta-info:empty {
	display: none;
}

/* The line that holds the Google button lets its tap area reach past the pill. */
.meta-google {
	display: flex;
	margin-top: var(--sp-1);
	overflow: visible;
}

.row.said .meta-google .meta-said {
	display: flex;
	align-items: center;
}

/*
  What a vote just did, said for four seconds in the line under the name, where the thumb is. The
  name stays; only the small line changes, so nothing moves under the thumb.
*/
.meta-said {
	position: absolute;
	inset: 0;
	display: none;
	overflow: hidden;
	color: var(--ink);
	font-weight: 600;
	text-overflow: ellipsis;
}

.row.said .meta-said {
	display: block;
}

.row.said .meta > :not(.meta-said) {
	visibility: hidden;
}

/* A row that has nothing under its name still has room for the news. */
.row.said .meta {
	min-height: 1.4em;
	text-overflow: clip;
}

/* ------------------------------------------------------------------ Google, as links */

/* Our star: yellow, outlined in ink. */
.star {
	width: 24px;
	height: 24px;
	fill: var(--yellow);
	stroke: var(--on);
	stroke-width: 1.2;
	stroke-linejoin: round;
}

/* A small pill under a name that opens the business's Google reviews: our star, a real rating when
   Google gave one, and "Google reviews". Quieter than the name above it; its tap area is 44px tall.
   A sample's pill has no link. */
.g-score {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	min-height: 24px;
	padding: 0 var(--sp-2);
	border-radius: 999px;
	background: var(--wash);
	color: var(--quiet);
	font-weight: 600;
	text-decoration: none;
	vertical-align: top;
}

/* The pill is 24 tall; its tap area reaches 10 above and below it, to 44. */
.g-score::after {
	content: "";
	position: absolute;
	inset: calc((44px - 24px) / -2) 0;
}

.g-score .star {
	width: 14px;
	height: 14px;
}

.g-n {
	font-weight: 700;
}

a.g-score:hover {
	background: var(--rule);
	color: var(--ink);
}

.g-score:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* "Leave a Google review": a plain, solid button, the same for everyone whatever they voted. */
.g-write {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: 0 var(--sp-4);
	border-radius: var(--r-in);
	background: var(--ink);
	color: var(--paper);
	font: 600 var(--fs-body)/1.1 var(--sans);
	text-decoration: none;
}

.g-write .star {
	width: 18px;
	height: 18px;
	stroke: none;
}

.g-write:hover {
	filter: brightness(1.15);
}

.g-write:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* On a sample the button has no link: it shows what a real business's does, and says so under it. */
.g-off {
	cursor: default;
}

.g-off:hover {
	filter: none;
}

.g-note {
	flex: 1 0 100%;
	margin: 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.35 var(--sans);
}

/* ------------------------------------------------------------------ A row's own panel */

/* Under the row, from the picture to the row's end, on a faint wash: the Google button, the menu, and "Read more". "Read more" is 44 tall, so the foot needs little more. */
.drawer {
	display: grid;
	grid-column: 2 / -1;
	gap: var(--sp-3);
	justify-items: start;
	margin-bottom: var(--sp-2);
	padding: var(--pad) var(--pad) var(--sp-1);
	border-radius: var(--r-in);
	background: var(--wash);
}

.drawer-menu .label {
	margin-bottom: var(--sp-1);
}

.drawer .menu {
	display: flex;
	flex-wrap: wrap;
	font: 400 var(--fs-small)/1.5 var(--sans);
}

.drawer .menu li {
	padding: 0;
}

.drawer .menu li:not(:last-child)::after {
	content: " · ";
	white-space: pre;
	color: var(--quiet);
}

.drawer .unfilled {
	margin: 0;
	font-size: var(--fs-small);
}

.read-more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font: 600 var(--fs-body)/1.2 var(--sans);
}

/* ------------------------------------------------------------------ The sponsor's panel */

/*
  What the sponsor's row opens to, on the same wash as any row's panel: its own words, its offer with the
  code in a dashed box like a coupon's, its four buttons, and its hours. Each button is a solid key 44 tall
  with a 1px edge, two to a line on a phone and four wider. A sample's buttons look the same and lead
  nowhere, and the line under them says so, as a sample's Google button does.
*/
.drawer-ad {
	justify-items: stretch;
}

.drawer-ad .read-more {
	justify-self: start;
}

.ad-say {
	margin: 0;
	font: 400 var(--fs-body)/1.45 var(--sans);
}

.ad-offer {
	display: grid;
	gap: var(--sp-2);
	padding: var(--sp-3);
	border: 1.5px dashed var(--dash);
	border-radius: var(--r-in);
	background: var(--surface);
}

.ad-offer-what {
	margin: 0;
	font: 700 var(--fs-body)/1.3 var(--sans);
}

.ad-code-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
}

.ad-code-word {
	color: var(--quiet);
	font: 400 var(--fs-small)/1 var(--sans);
}

/* One tap on the code selects all of it, for a phone that cannot copy from the button. */
.ad-code {
	padding: var(--sp-1) var(--sp-2);
	border-radius: var(--sp-1);
	background: var(--wash);
	font: 800 var(--fs-body)/1.2 var(--sans);
	letter-spacing: 0.08em;
	-webkit-user-select: all;
	user-select: all;
}

.ad-copy,
.ad-go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 var(--sp-3);
	border: 1px solid var(--key-edge);
	border-radius: var(--r-key);
	background: var(--key);
	color: var(--ink);
	font: 700 var(--fs-small)/1.2 var(--sans);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.ad-copy {
	margin-left: auto;
}

.ad-copy:hover,
a.ad-go:hover {
	background: var(--key-hover);
}

.ad-copy:active,
a.ad-go:active {
	transform: translateY(1px) scale(0.97);
}

.ad-copy:focus-visible,
.ad-go:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.ad-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ad-links .ad-go {
	display: flex;
	height: 100%;
}

@media (min-width: 600px) {
	.ad-links {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* A sample's buttons lead nowhere: no hand, no press. */
.ad-off {
	cursor: default;
}

.ad-links + .g-note {
	margin-top: calc(-1 * var(--sp-1));
}

.ad-hours {
	margin: 0;
	font: 400 var(--fs-small)/1.4 var(--sans);
}

.ad-hours-word {
	margin-right: var(--sp-1);
	font-weight: 700;
}

/* ------------------------------------------------------------------ The votes: ▲ over ▼, the rounded total between */

/*
  ▲ over ▼, each a plain button that looks like one: a rounded key with an edge you can see, a light solid
  face and a lip under it, and the brand's arrow in the middle. 48 by 44 on a phone and 52 by 46 wider, and
  the whole key is the place to tap, with nothing invisible around it. The total sits between them, bold,
  4 from each. Your own vote fills its key green or coral, growing from the middle, with an ink arrow.
*/
.vote {
	position: relative;
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-1);
	width: var(--c-vote);
	margin: 0;
}

.vote button,
.vote-off > .up,
.vote-off > .down {
	position: relative;
	z-index: 0;
	display: grid;
	place-items: center;
	width: var(--key-w);
	height: var(--key-h);
	margin: 0;
	padding: 0;
	overflow: visible;
	border: 1.5px solid var(--key-edge);
	border-radius: var(--r-key);
	background: var(--key);
	color: var(--ink);
}

.vote button {
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	/* Let go, and the key springs back up, a touch past where it rests. */
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* The lip under a key: it lightens as the key goes down. */
.vote button::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: calc(100% + 1.5px);
	right: var(--sp-1);
	left: var(--sp-1);
	height: 2px;
	border-radius: 0 0 var(--sp-1) var(--sp-1);
	background: var(--key-lip);
	transition: opacity 0.22s ease-out;
}

/* Your own vote's color, under the arrow: it grows from the key's middle, and shrinks away when the vote is taken back. */
.vote button::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: calc(var(--r-key) - 1.5px);
	background: var(--green);
	opacity: 0;
	transform: scale(0.3);
	transition:
		transform 0.18s ease-in,
		opacity 0.18s ease-in;
}

.vote button.down::before {
	background: var(--coral);
}

.vote button:hover {
	background: var(--key-hover);
}

/* Pressed down: the key sinks a touch and its lip lightens. */
.vote button:active {
	transform: translateY(1px) scale(0.94);
	transition-duration: 0.07s;
	transition-timing-function: ease-out;
}

.vote button:active::after {
	opacity: 0.3;
}

.vote button:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* Your own vote: green for up, coral for down, with an ink arrow and an ink edge, in both modes. */
.vote button[aria-pressed="true"] {
	border-color: var(--on);
	color: var(--on);
}

.vote button.up[aria-pressed="true"]::before,
.vote button.down[aria-pressed="true"]::before {
	opacity: 1;
	transform: none;
	transition:
		transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
		opacity 0.12s ease-out;
}

.vote button.up[aria-pressed="true"]::before {
	background: var(--green);
}

.vote button.down[aria-pressed="true"]::before {
	background: var(--coral);
}

/* The arrow, the brand's own triangle, 22 wide on a phone. It hops when a vote is counted. */
.press {
	display: grid;
	place-items: center;
	pointer-events: none;
}

.vote svg.arrow {
	width: 22px;
	height: auto;
}

/* Where the arrows cannot be pressed (a preview, or votes that cannot be reached): the key's shape, faint, with no face. */
.vote-off > .up,
.vote-off > .down {
	border-color: var(--edge);
	background: none;
	color: var(--quiet);
}

/* The dots that burst from a counted vote, like the logo's bloom: green and mint for up, coral and orange for down. */
.bloom {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	pointer-events: none;
}

/* Each dot is outlined in ink, as the category pictures are, so it shows on paper and at night. */
.bloom-dot {
	--x: 0px;
	--y: 0px;
	position: absolute;
	top: -3px;
	left: -3px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 1px var(--on);
	opacity: 0;
	animation: bloom 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bloom-dot:nth-child(even) {
	background: var(--mint);
}

.down .bloom-dot {
	background: var(--coral);
}

.down .bloom-dot:nth-child(even) {
	background: var(--orange);
}

/* Eight dots round the key's edge, each bursting 14 outward. */
.bloom-dot:nth-child(1) {
	--x: 0px;
	--y: -36px;
}

.bloom-dot:nth-child(2) {
	--x: 27px;
	--y: -25px;
}

.bloom-dot:nth-child(3) {
	--x: 38px;
	--y: 0px;
}

.bloom-dot:nth-child(4) {
	--x: 27px;
	--y: 25px;
}

.bloom-dot:nth-child(5) {
	--x: 0px;
	--y: 36px;
}

.bloom-dot:nth-child(6) {
	--x: -27px;
	--y: 25px;
}

.bloom-dot:nth-child(7) {
	--x: -38px;
	--y: 0px;
}

.bloom-dot:nth-child(8) {
	--x: -27px;
	--y: -25px;
}

@keyframes bloom {
	0% {
		opacity: 1;
		transform: translate(calc(var(--x) * 0.6), calc(var(--y) * 0.6)) scale(1);
	}
	55% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate(var(--x), var(--y)) scale(0.6);
	}
}

/* The rounded total, between the arrows, a bare number in bold: "3", "100+". It rolls when it changes. */
.tally {
	display: block;
	overflow: hidden;
	pointer-events: none;
	font-size: var(--fs-small);
	line-height: 1;
	text-align: center;
	white-space: nowrap;
}

.tally-n {
	display: inline-block;
	font: 700 var(--fs-small)/1 var(--sans);
	font-variant-numeric: tabular-nums;
}

/* The percent, at the row's right end, on a solid ink tile: the one dark mark in a row. */
.pct {
	position: relative;
	display: grid;
	place-items: center;
	align-self: center;
	height: var(--c-box);
	margin: 0;
	overflow: hidden;
	border-radius: var(--r-in);
	background: var(--on);
	color: var(--chalk);
}

/* At night the ink tile keeps a faint edge, so it does not sink into the dark sheet. */
@media (prefers-color-scheme: dark) {
	.pct {
		box-shadow: inset 0 0 0 1px rgba(254, 254, 254, 0.14);
	}
}

/* On a phone the percent is 22, a size over the name; on a wider screen, 28. */
.pct-big {
	font: 700 var(--fs-big)/1 var(--sans);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
}

.pct-n {
	display: inline-block;
	font-weight: inherit;
}

.pct-sign {
	font-size: var(--fs-small);
	font-weight: 600;
}

/* The S for a sample, small in the tile's top right corner. */
.s-mark {
	position: absolute;
	top: var(--sp-1);
	right: var(--sp-1);
	color: var(--quiet);
	font: 700 var(--fs-cap)/1 var(--sans);
	text-decoration: none;
}

.pct .s-mark {
	color: rgba(254, 254, 254, 0.6);
}

/* The sponsor page's three empty rows, when it has no list to show: as tall as a real row, on a faint wash. */
.rows.ghost .card {
	border-radius: var(--r-in);
	background: var(--wash);
}

/* ------------------------------------------------------------------ A city's page: the top of each category */

.trios {
	display: grid;
	gap: var(--sp-4);
}

.trio-head {
	margin: 0;
}

.trio-head a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	font: 700 var(--fs-head)/1.2 var(--sans);
	text-decoration: none;
}

.trio-head a:hover {
	text-decoration: underline;
}

.trio-emoji.icon {
	width: 30px;
	height: 30px;
}

.mini {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A short row, divided from the next by a hairline: the place, the name, and the percent on its square tile. */
.mrow {
	display: grid;
	grid-template-columns: var(--c-place) minmax(0, 1fr) var(--c-box);
	padding: var(--sp-1) 0;
}

.mrow + .mrow {
	box-shadow: inset 0 1px 0 var(--edge);
}

/* The name, the size of a list's names, starting where a list's pictures do. */
.mrow .card {
	min-height: var(--c-box);
	padding: var(--sp-2) var(--sp-2) var(--sp-2) 0;
	font: 700 var(--fs-body)/1.2 var(--sans);
	letter-spacing: -0.01em;
	text-decoration: none;
}

.mname {
	display: -webkit-box;
	text-wrap: balance;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.mrow .card:hover .mname {
	text-decoration: underline;
}

/* "See all" starts where the names above it do. */
.more {
	margin: 0 0 0 var(--c-place);
}

/* ------------------------------------------------------------------ Panels: a business, the sponsor page, How it works */

.panel {
	position: relative;
	margin-top: var(--gap);
	padding: var(--pad);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
}

/* In a sheet a panel is a plain section of it: no second surface, no second shadow, and its words start at the sheet's own edge. */
.sheet .panel {
	margin-top: var(--sp-4);
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.sheet .biz-head {
	margin-top: var(--sp-2);
}

.sheet .biz-info {
	padding-top: var(--sp-4);
	box-shadow: inset 0 1px 0 var(--edge);
}

.biz-head {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.thumb.thumb-big {
	width: 64px;
	height: 64px;
	background: var(--bar);
	font: 700 var(--fs-big)/1 var(--sans);
}

.big-emoji.icon {
	width: 44px;
	height: 44px;
}

.biz-name {
	min-width: 0;
	padding-right: var(--sp-3);
}

.biz-head h1 {
	margin: 0;
	font: 700 var(--fs-big)/1.2 var(--sans);
	letter-spacing: -0.01em;
}

.biz-head .meta {
	white-space: normal;
}

/* The Google badge and the button that opens Google's review form, under the business's name. */
.biz-google {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2) var(--sp-3);
	margin: var(--sp-2) 0 0;
	font-size: var(--fs-small);
}

.sheet > .tag {
	margin-top: var(--sp-5);
}

.sheet > .tag:first-child {
	margin-top: 0;
}

/* On a business's page the S sits at the sheet's inner corner, over the right edge of the rows below. */
.biz-head .s-mark {
	top: 0;
	right: 0;
}

.biz-info {
	display: grid;
	gap: var(--sp-5);
}

.label {
	margin: 0 0 var(--sp-2);
	color: var(--quiet);
	font: 700 var(--fs-small)/1.2 var(--sans);
}

.facts {
	display: grid;
	gap: var(--sp-3);
	margin: 0;
}

.fact {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: var(--sp-3);
}

.fact dt {
	color: var(--quiet);
	font: 400 var(--fs-small)/1.6 var(--sans);
}

.fact dd {
	margin: 0;
	font: 400 var(--fs-body)/1.45 var(--sans);
}

.unfilled {
	margin: 0;
	color: var(--quiet);
	font-style: italic;
}

.menu {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-body);
}

.menu li {
	padding: var(--sp-1) 0;
}

.title {
	margin: 0;
	font: 700 var(--fs-title)/1.15 var(--sans);
	letter-spacing: -0.015em;
}

.lede {
	margin: var(--sp-2) 0 0;
	color: var(--quiet);
	font: 400 var(--fs-body)/1.45 var(--sans);
}

.adform {
	display: grid;
	gap: var(--sp-2);
	margin-top: var(--sp-3);
}

.adform label {
	margin-top: var(--sp-2);
	font: 600 var(--fs-small)/1.2 var(--sans);
}

.adform input,
.adform textarea {
	width: 100%;
	min-height: 44px;
	padding: var(--sp-2) var(--sp-3);
	border: 1px solid var(--rule);
	border-radius: var(--r-in);
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--fs-head)/1.35 var(--sans);
	resize: vertical;
}

.room {
	justify-self: end;
	color: var(--quiet);
	font-size: var(--fs-small);
}

/* The one thing to press on the page: yellow. */
.button {
	justify-self: start;
	min-height: 44px;
	margin-top: var(--sp-2);
	padding: 0 var(--sp-5);
	border: 0;
	border-radius: var(--r-in);
	background: var(--yellow);
	color: var(--on);
	font: 700 var(--fs-body)/1 var(--sans);
	cursor: pointer;
}

.button:hover {
	filter: brightness(0.96);
}

/* With the script running the slot fills as you type, so the button has nothing left to do. */
.js .adform .button {
	display: none;
}

.adpreview {
	display: grid;
	gap: var(--sp-2);
}

.adpreview .slot {
	margin-top: 0;
}

.prose .label {
	margin-top: var(--sp-5);
}

.prose ul {
	margin: 0;
	padding-left: 1.1em;
	font: 400 var(--fs-body)/1.5 var(--sans);
}

.prose li + li {
	margin-top: var(--sp-1);
}

/* ------------------------------------------------------------------ Small print and notices */

.fine {
	margin: var(--sp-5) 0 0;
	padding: var(--pad);
	border-radius: var(--r);
	background: var(--surface);
	color: var(--quiet);
	font: 400 var(--fs-small)/1.5 var(--sans);
}

/* In a sheet the small print is part of it, and starts at the sheet's own edge. */
.sheet .fine {
	margin-top: var(--sp-4);
	padding: 0;
	border-radius: 0;
	background: none;
}

.fine a {
	color: var(--ink);
	font-weight: 600;
	white-space: nowrap;
}

.notice,
.empty {
	margin: var(--sp-3) 0 0;
	padding: var(--pad);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
	font-size: var(--fs-small);
}

.sheet .notice,
.sheet .empty {
	background: var(--bar);
	box-shadow: none;
}

.panel .notice {
	background: var(--wash);
	box-shadow: none;
}

.empty {
	margin-left: var(--c-place);
	color: var(--quiet);
}

/* In a sentence the arrow is the size of the letters beside it. */
.fine svg.arrow-inline,
.prose svg.arrow-inline {
	height: 0.66em;
}

/* ------------------------------------------------------------------ Kept for the front page */

/* The front page's "How it works" link. None of a city's pages uses these any more. */
.onward {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin: var(--sp-5) 0 0;
}

.onward a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r-in);
	background: var(--yellow);
	color: var(--on);
	font: 700 var(--fs-body)/1.1 var(--sans);
	text-decoration: none;
}

/* ------------------------------------------------------------------ Narrow phones, and wide screens */

/* The narrowest phones: every card and row keeps 8 inside, and the picture, the squares and the box are a little smaller. */
@media (max-width: 374px) {
	:root {
		--pad: var(--sp-2);
		--c-box: 50px;
		--thumb: 36px;
		--sq: 68px;
	}

	/* The arrows stand 4 from the percent's tile, so the name keeps every pixel it can. */
	.card {
		padding-right: var(--sp-1);
	}

	.top .logo {
		height: 20px;
	}

	.place-city {
		font-size: var(--fs-small);
	}

	.weather .sky {
		display: none;
	}

	.chip-emoji.icon {
		width: 26px;
		height: 26px;
	}

	/* Every square's name a size smaller, so the longest, "Live music", still sits on one line inside its smaller square. */
	.chip-name {
		font-size: var(--fs-cap);
	}
}

/* A wider screen: 16 from the screen's edge, between blocks and inside them, and the names, places and percents a size up. */
@media (min-width: 480px) {
	:root {
		--inset: var(--sp-4);
		--gap: var(--sp-4);
		--pad: var(--sp-4);
		--c-place: 28px;
		--c-box: 64px;
		--key-w: 52px;
		--key-h: 46px;
		--thumb: 56px;
	}

	.vote svg.arrow {
		width: 24px;
	}

	.rank,
	.who h3,
	.who-name,
	.mrow .card {
		font-size: var(--fs-head);
	}

	.pct-big {
		font-size: var(--fs-title);
	}

	.mrow .card {
		min-height: 56px;
	}
}

@media (min-width: 720px) {
	.top .logo {
		height: 26px;
	}

	.biz-info {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	}
}

@media (min-width: 900px) {
	:root {
		--sq: 80px;
	}
}

/* ------------------------------------------------------------------ The front door */

/*
  The sketch: a "Select your city" box over the map, "simple + quirky". An old paper chart
  of a city fills the screen, still, drawn as a city's pages draw it, with one small card on it.
  Nothing else on the chart but the compass rose. The card is a solid surface with a soft shadow and
  no outline, paper by day and a lifted ink at night.
*/
.stage {
	--cream: #fef8e3;
	--chart-rim: rgba(255, 196, 118, 0.3);
	--rose: 52px;
	/* What stands above the stage: nothing on thelisti.com, the one-line preview band on the preview. */
	--above: 0px;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	place-items: center;
	min-height: calc(100vh - var(--above));
	min-height: calc(100svh - var(--above));
	/* Below, room for the rose and one step more. */
	padding: var(--sp-6) var(--sp-4) calc(var(--rose) + var(--sp-6));
	overflow: hidden;
}

@media (prefers-color-scheme: dark) {
	.stage {
		--chart-rim: rgba(0, 0, 0, 0.5);
	}
}

/* On the front page the chart is shown at full strength: there it is the picture, not the ground under a list. */
.front .backdrop-map,
.lost .backdrop-map {
	opacity: 1;
}

/* The preview band is one line: its words, its padding and its dashed edge. The stage fills the rest of the first screen. */
body:has(> .band) .stage {
	--above: calc(11px * 1.3 + 2 * var(--sp-1));
}

/* What lies on the chart: only the rose, and a soft darkening at the edges, like a sheet that has been handled. */
.chart {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.chart::before {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 120px 10px var(--chart-rim);
}

/* The compass rose, small, in the bottom left corner: the one bit of old-map play left on the chart. */
.rose {
	position: absolute;
	bottom: var(--sp-4);
	left: var(--sp-4);
	width: var(--rose);
	height: auto;
	aspect-ratio: 208 / 238;
	overflow: visible;
	filter: drop-shadow(0 2px 4px rgba(19, 19, 20, 0.25));
}

.rose .rd {
	fill: var(--cream);
}

.rose .rr,
.rose .rl {
	fill: none;
	stroke: var(--on);
}

.rose .rs {
	stroke: var(--on);
}

.rose .rk {
	fill: var(--on);
}

.rose .rp {
	fill: var(--chalk);
}

.rose .ry {
	fill: var(--yellow);
}

.rose .rc {
	fill: var(--coral);
}

/* The rose's N is the one place the chart keeps an engraver's serif: it is part of the drawing, not words to read. */
.rose .rn {
	fill: var(--on);
	font: italic 700 30px/1 Georgia, "Times New Roman", "Noto Serif", "DejaVu Serif", serif;
	paint-order: stroke;
	stroke: var(--cream);
	stroke-width: 7px;
	stroke-linejoin: round;
}

/* At night the rose's cream disc would glow; it sits back a little. */
@media (prefers-color-scheme: dark) {
	.rose {
		opacity: 0.82;
	}
}

@media (min-width: 700px) {
	.stage {
		--rose: 88px;
		padding: var(--sp-6) var(--sp-5);
	}

	.rose {
		bottom: var(--sp-6);
		left: var(--sp-6);
	}
}

/* The card: one small solid surface. A soft shadow lifts it off the chart; there is no outline. */
.entry {
	--field: rgba(19, 19, 20, 0.05);
	--field-edge: rgba(19, 19, 20, 0.2);
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sp-3);
	width: min(100%, 380px);
	/* "or select your city" is 44 tall, so the foot needs little more. */
	padding: var(--sp-5) var(--sp-5) var(--sp-2);
	border-radius: var(--r);
	background: var(--paper);
	box-shadow:
		0 1px 2px rgba(19, 19, 20, 0.12),
		0 14px 36px rgba(19, 19, 20, 0.2);
	color: var(--ink);
}

@media (prefers-color-scheme: dark) {
	.entry {
		--field: rgba(254, 254, 254, 0.06);
		--field-edge: rgba(254, 254, 254, 0.16);
		background: #1c1c1f;
		box-shadow:
			0 1px 2px rgba(0, 0, 0, 0.4),
			0 16px 40px rgba(0, 0, 0, 0.55);
	}
}

.entry .wordmark {
	justify-self: start;
}

.entry .logo {
	height: 34px;
}

.line {
	margin: 0;
	color: var(--soft);
	font: 400 var(--fs-body)/1.45 var(--sans);
	text-wrap: pretty;
}

/* A returning visitor: their city, one press away, above the ZIP code. */
.welcome {
	display: grid;
	gap: var(--sp-2);
}

.welcome-hi {
	margin: 0;
	font: 700 var(--fs-body)/1.2 var(--sans);
}

.welcome-go {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	min-height: 50px;
	padding: 0 var(--sp-4);
	border-radius: var(--r-in);
	background: var(--yellow);
	color: var(--on);
	font: 700 var(--fs-head)/1.2 var(--sans);
	text-decoration: none;
}

.welcome-go:hover {
	background: #ffdc4f;
}

.welcome-go:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.zip {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sp-2);
}

.zip-label {
	font: 600 var(--fs-body)/1.3 var(--sans);
}

.zip-row {
	display: flex;
	gap: var(--sp-2);
}

/* Big enough for a thumb, and the five digits spaced so they are easy to check. */
.zip-field {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 0 var(--sp-3);
	border: 1px solid var(--field-edge);
	border-radius: var(--r-in);
	background: var(--field);
	color: inherit;
	font: 600 var(--fs-big)/1 var(--sans);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.14em;
}

/* A ZIP code that could not be placed: the field carries the error color. */
.zip-field[aria-invalid="true"] {
	border-color: var(--coral);
	box-shadow: 0 0 0 1px var(--coral);
}

.zip-field:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 1px;
	border-color: transparent;
}

/* The page's one yellow action. */
.zip-go {
	flex: none;
	min-width: 68px;
	min-height: 52px;
	padding: 0 var(--sp-4);
	appearance: none;
	border: 0;
	border-radius: var(--r-in);
	background: var(--yellow);
	color: var(--on);
	font: 700 var(--fs-head)/1 var(--sans);
	cursor: pointer;
}

.zip-go:hover {
	background: #ffdc4f;
}

.zip-go:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* When the visitor's own city is the yellow button, Go steps back to a quiet one. */
.entry-known .zip-go {
	border: 1px solid var(--field-edge);
	background: transparent;
	color: inherit;
}

.entry-known .zip-go:hover {
	background: var(--field);
}

.zip-unknown {
	margin: 0;
	padding-left: var(--sp-2);
	border-left: 3px solid var(--coral);
	font: 600 var(--fs-small)/1.4 var(--sans);
}

/* "or select your city": quiet, under the field. Opening it lists the states, and a state its cities, as links. It needs no script. */
.towns-pick {
	margin: 0 calc(-1 * var(--sp-3));
}

.towns-open {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	min-height: 44px;
	padding: 0 var(--sp-3);
	border-radius: var(--r-in);
	color: var(--soft);
	font: 400 var(--fs-body)/1.2 var(--sans);
	list-style: none;
	cursor: pointer;
}

.towns-open::-webkit-details-marker {
	display: none;
}

.towns-open:hover {
	color: var(--ink);
}

.towns-open .caret {
	transition: transform 0.15s ease-out;
}

/* The states, one under another, in the card. Each row is drawn by the rules for both lists of cities, above. */
.towns-list {
	margin: 0 0 var(--sp-2);
}

/* The 404 note: one plain line, set apart only by a faint wash. */
.note {
	margin: 0;
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--r-in);
	background: var(--field);
	font: 600 var(--fs-body)/1.35 var(--sans);
}

/* The smallest phones: the card keeps every pixel it can for the words and the field. */
@media (max-width: 359px) {
	.stage {
		--rose: 40px;
		padding: var(--sp-5) var(--sp-3) calc(var(--rose) + var(--sp-6));
	}

	.entry {
		gap: var(--sp-3);
		padding: var(--sp-4) var(--sp-4) var(--sp-2);
	}

	.entry .logo {
		height: 30px;
	}
}

@media (min-width: 700px) {
	.entry {
		width: min(100%, 420px);
		gap: var(--sp-4);
		padding: var(--sp-6) var(--sp-6) var(--sp-3);
	}

	.entry .logo {
		height: 42px;
	}

}

/* ------------------------------------------------------------------ Who we are, and why we exist */

/*
  Below the chart, on plain paper from edge to edge: two short passages in the core record's own words.
  Generous reading in one column: no frames, no blooms, nothing between a reader and the words. The paper
  slides over the still chart as the page scrolls, so no street runs through a word.
*/
.core {
	position: relative;
	display: grid;
	gap: var(--sp-6);
	margin: 0;
	padding: var(--sp-6) max(var(--sp-4), calc(50% - 344px));
	background: var(--paper);
}

.core-part p {
	max-width: 62ch;
	margin: 0;
	font: 400 var(--fs-head)/1.65 var(--sans);
}

.core-part p + p {
	margin-top: var(--sp-3);
}

.core-head {
	margin: 0 0 var(--sp-3);
	font: 700 var(--fs-title)/1.1 var(--sans);
	letter-spacing: -0.025em;
}

/* ------------------------------------------------------------------ The foot of a page */

.foot {
	margin-top: var(--gap);
}

.front .foot,
.lost .foot {
	margin-top: 0;
	border-top: 0;
	background: var(--paper);
}

.foot .col {
	display: grid;
	gap: var(--sp-2);
	padding-top: var(--sp-4);
	padding-bottom: var(--sp-5);
	color: var(--quiet);
	font-size: var(--fs-small);
}

/* On a city's pages the footer is one more surface in the column: the same edges as every block, --gap above and below it. */
.city .foot .col,
.list .foot .col,
.business .foot .col,
.sponsor .foot .col,
.about .foot .col {
	width: calc(100% - 2 * var(--inset));
	max-width: calc(680px - 2 * var(--inset));
	margin-bottom: var(--gap);
	padding: var(--pad);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
}



.foot p {
	margin: 0;
}

.foot-line {
	color: var(--ink);
	font: 700 var(--fs-body)/1.2 var(--sans);
}

.foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-4);
}

.foot-links a {
	color: var(--ink);
}

.foot-credit {
	font-size: var(--fs-cap);
}

/* ------------------------------------------------------------------ Motion */

/* A number that changes rolls: the page's script slides the old one out and the new one in, moving only transform and opacity. */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------------------------ Phones */

@media (max-width: 479px) {
	/* Two buttons that cannot share a line each take a whole one, so their edges line up. */
	.onward a {
		flex: 1 1 auto;
	}
}

@media (min-width: 900px) {
	.entry .logo {
		height: 40px;
	}
}

/* ================================================================== COOKIE NOTICE (front door helper, 2026-11-28) */

/*
  A slim, calm bar at the foot of the screen until the visitor presses OK. It floats on its own soft
  shadow, never over the page's last lines: while it shows, the page keeps room for it at the bottom.
*/
body:has(> .okbar) {
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* Where the foot is paper, the room for the notice is paper too, so no chart shows under it. */
body.front:has(> .okbar),
body.lost:has(> .okbar) {
	padding-bottom: 0;
}

body.front:has(> .okbar) .foot,
body.lost:has(> .okbar) .foot {
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.okbar {
	position: fixed;
	right: var(--inset);
	bottom: calc(var(--inset) + env(safe-area-inset-bottom, 0px));
	left: var(--inset);
	z-index: 50;
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	/* No wider than the page's column. */
	max-width: calc(680px - 2 * var(--inset));
	margin: 0 auto;
	padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
	border-radius: var(--r);
	background: var(--paper);
	box-shadow:
		0 1px 2px rgba(19, 19, 20, 0.12),
		0 10px 30px rgba(19, 19, 20, 0.2);
	color: var(--ink);
}

/* The rose steps up out of the bar's way while the bar shows. */
body:has(> .okbar) .rose {
	bottom: calc(80px + var(--sp-4));
}

.okbar-words {
	flex: 1;
	margin: 0;
	text-wrap: balance;
	font: 400 var(--fs-small)/1.3 var(--sans);
}

.okbar-ok {
	flex: none;
	min-width: 64px;
	min-height: 44px;
	padding: 0 var(--sp-4);
	appearance: none;
	border: 0;
	border-radius: var(--r-in);
	background: var(--rule);
	color: var(--ink);
	font: 700 var(--fs-body)/1 var(--sans);
	cursor: pointer;
}

.okbar-ok:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
	.okbar {
		background: #1c1c1f;
		box-shadow:
			0 0 0 1px rgba(254, 254, 254, 0.08),
			0 12px 34px rgba(0, 0, 0, 0.6);
	}

}

/* Two lines at most on the narrowest phones. */
@media (max-width: 374px) {
	.okbar {
		gap: var(--sp-2);
		padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
	}

	.okbar-words {
		line-height: 1.3;
	}

	.okbar-ok {
		min-width: 48px;
		padding: 0 var(--sp-2);
	}
}

/* ================================================================== END COOKIE NOTICE */
