/*
  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.

  One typeface, Figtree, from the site's own files: 400 for text, 600 for labels, and 700 only for
  names and scores. 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.
*/

/*
  Figtree (SIL Open Font License 1.1, beside it in /assets/fonts/OFL.txt): weights 400 to 700 in one
  file of Latin letters, which every page preloads. Until it arrives, and for any character it lacks,
  the phone's own Arial, or Roboto on Android, stands in, resized to Figtree's widths and lines, so
  nothing moves when Figtree takes over. scripts/build-fonts.mjs makes the file and these numbers.
  Its address is beside this file's own, so it carries the deploy's version as the style sheet does
  (/v/<version>/fonts/...), and is the address every page preloads (layout.ts).
*/
@font-face {
	font-family: "Figtree";
	src: url("fonts/figtree-latin-wght.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Figtree Fallback: Arial";
	src: local("Arial"), local("ArialMT");
	font-weight: 400;
	size-adjust: 100.72%;
	ascent-override: 94.32%;
	descent-override: 24.82%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Figtree Fallback: Arial";
	src: local("Arial Bold"), local("Arial-BoldMT");
	font-weight: 600;
	size-adjust: 95.42%;
	ascent-override: 99.56%;
	descent-override: 26.2%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Figtree Fallback: Arial";
	src: local("Arial Bold"), local("Arial-BoldMT");
	font-weight: 700;
	size-adjust: 96.46%;
	ascent-override: 98.48%;
	descent-override: 25.92%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Figtree Fallback: Roboto";
	src: local("Roboto"), local("Roboto Regular"), local("Roboto-Regular");
	font-weight: 400;
	size-adjust: 100.94%;
	ascent-override: 94.12%;
	descent-override: 24.77%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Figtree Fallback: Roboto";
	src: local("Roboto Bold"), local("Roboto-Bold");
	font-weight: 600;
	size-adjust: 101.29%;
	ascent-override: 93.79%;
	descent-override: 24.68%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Figtree Fallback: Roboto";
	src: local("Roboto Bold"), local("Roboto-Bold");
	font-weight: 700;
	size-adjust: 102.4%;
	ascent-override: 92.77%;
	descent-override: 24.41%;
	line-gap-override: 0%;
}

: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: "Figtree", "Figtree Fallback: Arial", "Figtree Fallback: Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light dark;
}

/*
  Light or Dark picked at the foot of a page holds whatever the device is set to: the browser's own parts,
  such as scroll bars and fields, follow it. On System, the default, nothing is picked and the device decides.
  Every dark rule below comes twice, for the same reason: once in a prefers-color-scheme: dark block, kept off
  when Light is picked, and once right after that block for Dark picked on a light device. :where() keeps
  each copy as specific as the rule was. scripts/repo.test.mjs fails if a dark rule loses its twin.
*/
:root[data-theme="light"] {
	color-scheme: light;
}

:root[data-theme="dark"] {
	color-scheme: dark;
}

/* Dark: the page is ink and words are paper. The five colors stay exactly as they are. */
@media (prefers-color-scheme: dark) {
	:root:where(:not([data-theme="light"])) {
		--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);
	}
}

:root:where([data-theme="dark"]) {
	--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;
}

/*
  Zoom stays the reader's own. A phone keeps the letters at the size set here, upright or on its side,
  and a quick second tap presses a button again instead of zooming the page. Pinching to zoom works
  everywhere. Safari reads touch-action afresh inside anything that scrolls, so the controls and the two
  scrolling boxes (the strips of squares and the list of cities) carry it too.
*/
html {
	font-size: 17px;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	touch-action: manipulation;
}

a,
button,
summary,
label,
input,
select,
textarea,
.cats-row,
.place-list {
	touch-action: manipulation;
}

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

b,
strong {
	font-weight: 600;
}

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

/*
  Focus is a ring in ink: dark by day and light at night. It sits 2 outside the control, on the page
  around it, so it never takes the control's own color: a paper ring round the ink logo, or an ink one
  round the yellow category at night, would vanish.
*/
:focus-visible {
	outline: 2px solid var(--ink);
	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 page's one drawing of each category picture, which every box points at (sprite.ts). Never drawn itself. */
.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* ------------------------------------------------------------------ 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 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 dashed box round a sponsor's code, 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);
	/*
	  Height: three steps of lift, and one light overhead, so every shadow falls the same way. Step 1 is every
	  panel on a city's pages (--float). Step 2 is the front page's card: a hairline of ink where its edge meets
	  the chart, a tight contact shadow, and a soft shadow pulled in at the sides so it falls under the card
	  instead of round it. Step 3, the same but higher, is for anything that floats over everything; nothing does now.
	  At night height is lightness: each step is a lighter ink (--surface, --surface-2, --surface-3).
	*/
	--float: 0 1px 2px rgba(19, 19, 20, 0.06), 0 4px 12px rgba(19, 19, 20, 0.08);
	--lift-1: var(--float);
	--lift-2: 0 0 0 1px rgba(19, 19, 20, 0.05), 0 1px 2px rgba(19, 19, 20, 0.06), 0 6px 14px -4px rgba(19, 19, 20, 0.1), 0 28px 56px -16px rgba(19, 19, 20, 0.22);
	--lift-3: 0 0 0 1px rgba(19, 19, 20, 0.06), 0 2px 4px rgba(19, 19, 20, 0.07), 0 10px 20px -6px rgba(19, 19, 20, 0.14), 0 32px 64px -16px rgba(19, 19, 20, 0.26);
	--surface-2: #fefefe;
	--surface-3: #fefefe;
	/* 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 field's edge: 3:1 against the page and the field, so a field can be found without its label. */
	--field-edge: rgba(19, 19, 20, 0.5);
	/* 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: "10." and 4 or more before the picture. */
	--c-place: 28px;
	/* The overall score's square tile, at a row's right end: "100" fits. */
	--c-box: 52px;
	/* A row's picture square. */
	--thumb: 40px;
	/* Five Google stars, each this wide. */
	--g-star: 16px;
	/* A row's least height: the picture, ▲ and ▼ under it 8 below, and 8 above and below the row. */
	--row-h: calc(var(--thumb) + var(--key-h) + 3 * var(--sp-2));
	/* A category's box: 128 wide on a phone or a tablet, where it is 44 tall with its picture at its left; on a computer, an 80 px square. */
	--sq: 128px;
}

/* Dark: the night chart, surfaces of a lifted ink, paper words, and no white outlines anywhere. */
@media (prefers-color-scheme: dark) {
	:root:where(:not([data-theme="light"])) {
		--surface: #242427;
		--quiet: rgba(254, 254, 254, 0.6);
		--edge: rgba(254, 254, 254, 0.08);
		--dash: rgba(254, 254, 254, 0.16);
		/* Steps 2 and 3 are lit along their top edge, with a dark seam where they meet the night chart. */
		--float: 0 1px 2px rgba(0, 0, 0, 0.45), 0 6px 16px rgba(0, 0, 0, 0.35);
		--lift-2: inset 0 1px 0 rgba(254, 254, 254, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.35), 0 24px 48px -16px rgba(0, 0, 0, 0.5);
		--lift-3: inset 0 1px 0 rgba(254, 254, 254, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
		--surface-2: #2a2a2e;
		--surface-3: #333338;
		--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);
		--field-edge: rgba(254, 254, 254, 0.4);
	}
}

:root:where([data-theme="dark"]) {
	--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);
	--lift-2: inset 0 1px 0 rgba(254, 254, 254, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.35), 0 24px 48px -16px rgba(0, 0, 0, 0.5);
	--lift-3: inset 0 1px 0 rgba(254, 254, 254, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
	--surface-2: #2a2a2e;
	--surface-3: #333338;
	--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);
	--field-edge: rgba(254, 254, 254, 0.4);
}

/* 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 */

/* Each picture's colors are its own and never change, by day or at night, as an emoji's do not: it has no
   outline to take the words' color, and it needs no edge to show on a dark square, a yellow one or the sheet. */
svg.icon {
	display: block;
	flex: none;
	width: 24px;
	height: 24px;
	overflow: visible;
}

/* ------------------------------------------------------------------ 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) {
	:where(:root:not([data-theme="light"])) .backdrop-map {
		opacity: 0.75;
	}
}

:where(:root[data-theme="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: max(var(--sp-2), env(safe-area-inset-left, 0px));
	z-index: 20;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r-in);
	background: var(--on);
	color: var(--chalk);
	font: 600 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. Where the page reaches under the
  status bar (an app saved to the home screen), it starts below it.
*/
.top,
header.top {
	position: relative;
	z-index: 4;
	padding-top: max(var(--inset), env(safe-area-inset-top, 0px));
	border-bottom: 0;
}

/* When someone sets wider letters and the city's control no longer fits beside the logo, it moves under it, whole. */
.top-row {
	display: flex;
	flex-wrap: wrap;
	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) {
	:where(:root:not([data-theme="light"])) .top .wordmark {
		background: var(--surface);
	}
}

:where(:root[data-theme="dark"]) .top .wordmark {
	background: var(--surface);
}

/*
  One control: the city's bar, at the right of the row, beside the logo. The row is where the list of cities
  opens from, as wide as the column. When someone sets bigger letters and the bar no longer fits beside the
  logo, it moves under it, whole.
*/
.top-city .top-row {
	position: relative;
}

.place {
	flex: 1 1 12.5em;
	min-width: 0;
}

.place-pick {
	min-width: 0;
}

/*
  The bar: the city's name and state in bold, this hour's weather under them in quiet words, and a "Change"
  key at its end. The whole bar is one button, 44 tall: pressing anywhere on it opens every city, by state.
  With no other city to go to, the same bar is a link to the city's page, with no "Change". No map pin: the
  bar is plainly where you are. The city starts 16 in from the bar's left edge, as far as "Change" ends from
  its right.
*/
.place-bar {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: 0 var(--sp-1) 0 var(--sp-4);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
	color: inherit;
	text-decoration: none;
	list-style: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

a.place-bar {
	padding-right: var(--sp-4);
}

.place-bar::-webkit-details-marker {
	display: none;
}

/*
  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-bar,
	.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) {
		:where(:root:not([data-theme="light"])) .top .wordmark {
			background: var(--glass);
			-webkit-backdrop-filter: blur(16px) saturate(1.2);
			backdrop-filter: blur(16px) saturate(1.2);
		}
	}

	:where(:root[data-theme="dark"]) .top .wordmark {
		background: var(--glass);
		-webkit-backdrop-filter: blur(16px) saturate(1.2);
		backdrop-filter: blur(16px) saturate(1.2);
	}
}

/* A map pin, after the city in view in the foot's list of cities. */
.pin {
	flex: none;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
}

/* The name over the weather, as wide as the bar allows. */
.place-lines {
	display: grid;
	flex: 1 1 auto;
	min-width: 0;
}

/*
  The city's name and state, in bold. On the narrowest phones a long name gives way rather than push the
  bar past the screen's edge: the name ends in "…", and the state stays. The space after the comma is kept
  as written (pre), so the line does not break there.
*/
.place-city {
	display: flex;
	min-width: 0;
	font: 600 var(--fs-body)/1.2 var(--sans);
	white-space: pre;
}

.place-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

abbr.place-state {
	text-decoration: none;
}

/*
  "Change", at the bar's end: a key like the vote buttons, with a solid face, an edge you can see and a lip
  under it, so the bar reads as something to press. While the list is open it is pressed in: ink, with paper words.
*/
.place-change {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	min-height: 36px;
	padding: 0 var(--pad);
	border: 1px solid var(--key-edge);
	border-radius: var(--r-in);
	background: var(--key);
	color: var(--ink);
	font: 600 var(--fs-small)/1 var(--sans);
}

/* The lip under the key, as under a vote button. */
.place-change::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: calc(100% + 1px);
	right: var(--sp-1);
	left: var(--sp-1);
	height: 2px;
	border-radius: 0 0 var(--sp-1) var(--sp-1);
	background: var(--key-lip);
}

.place-bar:hover .place-change {
	background: var(--key-hover);
}

.place-pick[open] > .place-bar .place-change {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
	transform: translateY(1px);
}

.place-pick[open] > .place-bar .place-change::after {
	opacity: 0;
}

.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 header, as wide as the column, so every row is a thumb's width. On a short screen it scrolls. */
.place-list {
	position: absolute;
	top: calc(100% + var(--sp-2));
	right: var(--inset);
	left: var(--inset);
	z-index: 10;
	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);
}

/*
  A phone held upright: the city's bar hugs its words, as on a tablet and a computer, at the right of the row,
  with "Change" 16 after the name and the weather. Run across the row, it left a hole before "Change" that grew
  as the name shortened: 28 px for Fredericksburg, 62 for Greenville and 85 for Boone on a 390 px phone. A long
  name still ends in "…" rather than push the bar past the screen's edge.
*/
@media (max-width: 479px) {
	.place-bar {
		width: -webkit-fit-content;
		width: fit-content;
		max-width: 100%;
		margin-left: auto;
	}

	.place-change {
		margin-left: var(--sp-2);
	}
}

/*
  On a tablet, and a phone on its side, the city's bar hugs its words, as on a computer: the pin, the name and
  the weather, then "Change" 16 after them, at the right of the row, so no empty stretch opens in the middle of
  the bar. The list of cities opens under it, at the same right edge, 340 wide.
*/
@media (min-width: 480px) and (max-width: 899px) {
	.place {
		flex: 0 1 auto;
	}

	.place-change {
		margin-left: var(--sp-2);
	}

	.place-list {
		left: auto;
		width: min(340px, 100% - 2 * var(--inset));
	}
}

/* Its title, and on every page but the city's own, a row back to the city's page. */
.place-title {
	margin: 0;
	padding: var(--sp-3) var(--sp-3) var(--sp-2);
	font: 600 var(--fs-head)/1.2 var(--sans);
}

.place-up {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	min-height: 44px;
	margin-bottom: var(--sp-1);
	padding: 0 var(--sp-3);
	border-radius: var(--r-in);
	background: var(--wash);
	font: 600 var(--fs-body)/1.2 var(--sans);
	text-decoration: none;
}

.place-up:hover {
	text-decoration: underline;
}

.place-up:focus-visible {
	outline-offset: -2px;
}

/*
  Both lists of cities, the header's and the front page's: every city at once, A to Z, with no states to open
  and no counts. Each city is one row a thumb can press, 44 tall: its name, its state after it in small gray
  words, and a check at the end of the city in view. One column on a phone; two on a computer, so ten cities
  stand in five rows.
*/
.towns {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.towns-name {
	min-width: 0;
}

.towns-in {
	color: var(--quiet);
	font: 400 var(--fs-small)/1.2 var(--sans);
}

.towns-check {
	flex: none;
	width: 18px;
	height: 18px;
	margin-left: auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.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-city:focus-visible {
	outline-offset: -2px;
}

/* In the header's list the cities sit under "Choose your city", a little in from the list's edge. */
.place-list .towns {
	padding: 0 var(--sp-1) var(--sp-1);
}

/* This hour's weather: the bar's quiet second line, the sky's drawing, the temperature and the sky in a word. */
.weather {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	min-width: 0;
	color: var(--quiet);
	font: 600 var(--fs-cap)/1.35 var(--sans);
	white-space: nowrap;
}

.weather-word {
	overflow: hidden;
	text-overflow: ellipsis;
}

.sky {
	flex: none;
	width: 13px;
	height: 13px;
	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 boxes */

/*
  One surface holds both rows, so the boxes read as one band and not as fourteen. One space sets the rhythm:
  8 between two boxes in a row, 8 between the two rows, and 8 above the first row and below the second, at
  every width. Each row starts --pad in from the surface's side, as every card's contents do. On a phone the
  boxes are 44 tall, so the whole band is 112 and the list starts high on the first screen.
*/
.cats {
	margin-top: var(--gap);
	/* Each row keeps 4 above and below for a box's focus ring, and the surface adds 4: 8 in all. */
	padding: var(--sp-1) 0;
	overflow: hidden;
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
}

/*
  Each row is a window onto a track. The track is one lap long: the row's boxes and the gap after the
  last. Copies of the boxes stand one lap before it and enough laps after it to fill the widest row,
  so the window is full from its first frame and the loop never shows a seam. Both tracks drift right to
  left together, one step (a box and the gap after it) every --cats-beat, which is 30 px a second, on
  the compositor from the first paint, with or without the script. The script takes hold of the same
  animations to drag, flick, pause and ramp them, always both at once, so the bricks stay half a step apart.
*/
.cats-row {
	/* Where the boxes fade out, at both edges: 24 px, and nearly whole at the panel's inner padding, where a row rests. */
	--cats-fade: var(--sp-5);
	position: relative;
	/* 4 above and below each row for a box's focus ring: 8 between the rows, as between the boxes. */
	padding: var(--sp-1) 0;
	overflow: clip;
	/* A sideways fling stays in the row: it never reaches the browser's back swipe. */
	overscroll-behavior-x: contain;
	contain: layout paint style;
	mask-image: linear-gradient(to right, transparent, rgb(0 0 0 / 0.85) var(--pad), #000 var(--cats-fade), #000 calc(100% - var(--cats-fade)), rgb(0 0 0 / 0.85) calc(100% - var(--pad)), transparent);
}

/* A box with the keyboard's ring: its row's edges stop fading, so the ring shows whole at the panel's inner padding too. */
.cats-row:has(.chip:focus-visible) {
	mask-image: none;
}

.cats-track {
	/* How many boxes the row holds, from its cats-n class below, and how long one step takes. */
	--cats-n: 7;
	--cats-beat: calc(136s / 30);
	position: relative;
	display: flex;
	gap: var(--sp-2);
	width: max-content;
	margin: 0 0 0 var(--pad);
	padding: 0 var(--sp-2) 0 0;
	list-style: none;
	-webkit-user-select: none;
	user-select: none;
	will-change: transform;
	animation: cats-drift calc(var(--cats-n) * var(--cats-beat)) linear infinite;
}

/* The other row stands half a step along, half a box and half the gap: a brick pattern. */
.cats-half > .cats-track {
	margin-left: calc(var(--pad) + (var(--sq) + var(--sp-2)) / 2);
}

.cats-item {
	flex: none;
}

.cats-copy {
	position: absolute;
	top: 0;
	display: flex;
	gap: var(--sp-2);
}

.cats-before {
	right: 100%;
	padding-right: var(--sp-2);
}

.cats-after {
	left: 100%;
}

/* One step a beat: the box's width and the 8 between, over 30 px a second, at each size of box. */
@media (min-width: 900px) {
	.cats-track {
		--cats-beat: calc(88s / 30);
	}
}

/*
  On a list its own box stands fourth in its row (parts.ts), well inside a computer's wide row. A phone's row
  shows about three of the wider boxes, so there both rows start two steps along, and on a tablet one: the
  list's box stands second, or third, as the page opens, and drifts across the screen from there. The rows
  start further along their loop, so nothing moves out of place, and the bricks stay half a step apart.
*/
@media (max-width: 899px) {
	.cats:has(.cats-item > .chip[aria-current]) .cats-track {
		animation-delay: calc(-1 * var(--cats-beat));
	}
}

@media (max-width: 479px) {
	.cats:has(.cats-item > .chip[aria-current]) .cats-track {
		animation-delay: calc(-2 * var(--cats-beat));
	}
}

.cats-n1 { --cats-n: 1; }
.cats-n2 { --cats-n: 2; }
.cats-n3 { --cats-n: 3; }
.cats-n4 { --cats-n: 4; }
.cats-n5 { --cats-n: 5; }
.cats-n6 { --cats-n: 6; }
.cats-n7 { --cats-n: 7; }
.cats-n8 { --cats-n: 8; }
.cats-n9 { --cats-n: 9; }
.cats-n10 { --cats-n: 10; }
.cats-n11 { --cats-n: 11; }
.cats-n12 { --cats-n: 12; }
.cats-n13 { --cats-n: 13; }
.cats-n14 { --cats-n: 14; }
.cats-n15 { --cats-n: 15; }
.cats-n16 { --cats-n: 16; }
.cats-n17 { --cats-n: 17; }
.cats-n18 { --cats-n: 18; }
.cats-n19 { --cats-n: 19; }
.cats-n20 { --cats-n: 20; }
.cats-n21 { --cats-n: 21; }
.cats-n22 { --cats-n: 22; }
.cats-n23 { --cats-n: 23; }
.cats-n24 { --cats-n: 24; }
.cats-n25 { --cats-n: 25; }
.cats-n26 { --cats-n: 26; }

@keyframes cats-drift {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-100%, 0, 0);
	}
}

/* With no script, the rows hold still under the pointer, under a finger and while a square has focus. */
@media (hover: hover) {
	:root:not(.js) .cats:hover .cats-track {
		animation-play-state: paused;
	}
}

:root:not(.js) .cats:focus-within .cats-track,
:root:not(.js) .cats:active .cats-track {
	animation-play-state: paused;
}

/* With the script, a row is the hand's sideways and the page's up and down, and two fingers still zoom. */
@media (prefers-reduced-motion: no-preference) {
	.js .cats-row {
		touch-action: pan-y pinch-zoom;
		cursor: grab;
	}

	.js .cats-dragging,
	.js .cats-dragging .chip {
		cursor: grabbing;
	}
}

/* Less motion: nothing moves on its own. Each row scrolls by hand, from the same start, the bricks still half a step apart. */
@media (prefers-reduced-motion: reduce) {
	.cats-row {
		overflow-x: auto;
		overflow-y: hidden;
		/* A square the keyboard reaches scrolls in clear of the fade at either edge, so its ring shows whole. */
		scroll-padding-inline: var(--cats-fade);
		scrollbar-width: none;
	}

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

	.cats-track {
		padding-right: var(--pad);
		will-change: auto;
		animation: none;
	}

	.cats-copy {
		display: none;
	}
}

/*
  A category on a phone or a tablet: a short box, 44 tall (a thumb's tap), its picture at its left and its name
  beside it on one line. Its corners are squarer than a card's: 4, the panel's 12 less the 8 the box stands in
  from the panel's edge, so the two curves run side by side. Every box is as wide as the longest name needs, so
  the rows step evenly and the bricks hold. A computer's screen draws each as a square, its picture above its
  name (in the computer's part of this sheet).
*/
.chip {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	width: var(--sq);
	height: 44px;
	padding: 0 var(--sp-2);
	border-radius: 4px;
	background: var(--wash);
	font: 600 var(--fs-body)/1.1 var(--sans);
	text-decoration: none;
	/* A box is held to drag the rows: a long press opens no link preview, and a tap does not flash grey. */
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}

.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);
}

/* The picture as large as the box allows with 8 above and below it: our own drawings read best large. */
.chip-emoji.icon {
	width: 28px;
	height: 28px;
}

/*
  The name on one line: a name too long for that has a short one for its box, in categories.json. When a
  reader sets wider letters, a name of two words takes two lines rather than running out of its box.
*/
.chip-name {
	min-width: 0;
	max-width: 100%;
	text-wrap: balance;
}

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

/*
  The Gold sponsor's card, at the top of its own list: a solid, warm card, tinted with the orange kept for what
  is paid for. One tap on its picture, its name or its line opens the address the sponsor picked, in a new tab.
  Beside them, outside the link, the same container as every row's, the star on orange in its middle; under
  them, its offer and code. Nothing on it opens or closes. "Sponsor" is one small, quiet word over the name,
  so it reads as an ad. It is solid, like the list, so no street shows through its words.
*/
.slot {
	position: relative;
	margin-top: var(--gap);
	/* 8 above and below, so the card and three rows fit a phone's first screen; --pad at the sides. */
	padding: var(--sp-2) calc(var(--pad) - 1px);
	border: 1px solid rgba(255, 196, 118, 0.85);
	border-radius: var(--r);
	background: #fff9ef;
	box-shadow: var(--float);
	container: slot / inline-size;
}

/* On a phone: the link across the card, the container on the line under it, then the offer. */
.slot .spot-card {
	--thumb: 60px;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"go"
		"line"
		"offer";
	padding: 0;
}

/* What one tap opens: the picture, then "Sponsor", the name with its arrow, and the line. */
.spot-go {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	min-width: 0;
	border-radius: var(--r-in);
	color: var(--ink);
	text-decoration: none;
}

a.spot-go:hover .spot-name {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

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

.spot-who {
	display: grid;
	flex: 1 1 auto;
	min-width: 0;
}

/* The small orange label on a sponsor's own page, before the list it sponsors (business.ts). */
.slot-label {
	margin: 0;
	padding: 2px var(--sp-2);
	border-radius: 999px;
	background: var(--orange);
	color: var(--on);
	font: 600 var(--fs-cap)/1.3 var(--sans);
	letter-spacing: 0.02em;
}

/* The one word that marks a paid spot: small and quiet, over the name. */
.spot-tag {
	color: var(--quiet);
	font: 600 var(--fs-cap)/1.3 var(--sans);
	letter-spacing: 0.02em;
}

.spot-name {
	font: 700 var(--fs-body)/1.25 var(--sans);
	overflow-wrap: anywhere;
}

/* A sample's S follows the name, small and quiet, and the arrow after it says the tap opens another site. */
.spot-name > .s-mark {
	position: static;
	margin-left: 6px;
	vertical-align: 1px;
}

.spot-name > .go {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 6px;
	vertical-align: -1px;
	transform: rotate(-45deg);
}

/* The sponsor's own line, under its name: two lines at most. */
.spot-line {
	display: -webkit-box;
	margin-top: 2px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	font: 400 var(--fs-small)/1.35 var(--sans);
	overflow-wrap: anywhere;
}

.slot .spot-card > .spot-go {
	grid-area: go;
}

.slot .spot-card > .score-line {
	grid-area: line;
	margin-top: var(--sp-2);
}

.slot .spot-card > .spot-offer {
	grid-area: offer;
}

/*
  The offer, on the card itself, under a dashed line like a coupon's edge: what it offers, then "Code", the
  code as plain words that one tap selects whole, and Copy where the browser can copy. One line on a computer;
  on a phone the words wrap beside the code.
*/
.spot-offer {
	display: flex;
	align-items: center;
	gap: var(--sp-1) var(--sp-2);
	margin: var(--sp-2) 0 0;
	padding-top: var(--sp-2);
	border-top: 1.5px dashed var(--dash);
	font: 600 var(--fs-small)/1.3 var(--sans);
}

.spot-offer > .ad-offer-what {
	flex: 1 1 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.spot-code {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: var(--sp-2);
}

.spot-code .ad-code {
	font-size: var(--fs-small);
}

/* The key is 36 tall, and its tap area reaches 44, into the card's own padding. */
.spot-code .ad-copy {
	min-height: 36px;
	padding: 0 var(--sp-2);
}

.spot-code .ad-copy::before {
	content: "";
	position: absolute;
	inset: -4px 0;
}

/* On a phone the code and Copy say enough: "Code" is said to a screen reader alone. */
@media (max-width: 479px) {
	.spot-code > .ad-code-word {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* The sponsor's star, on orange in the middle of its container, where a row shows its score: yellow, edged in ink, like the stars in a Google pill, over the total. */
.pct.pct-star {
	background: var(--orange);
	color: var(--on);
}

.pct-star .star {
	width: 20px;
	height: 20px;
	stroke-width: 1;
}

/* At night the card is a warm black, and its edge a faint orange. */
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .slot {
		border-color: rgba(255, 196, 118, 0.3);
		background: #2e2a26;
	}
}

:where(:root[data-theme="dark"]) .slot {
	border-color: rgba(255, 196, 118, 0.3);
	background: #2e2a26;
}

/*
  A spot nobody has taken yet: one slim line, no box, that says what the spot would be and leads to its
  sponsor page. "Your business at the top of Best pizza? Learn more".
*/
.spot-open {
	margin: var(--gap) 0 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.35 var(--sans);
}

.spot-open a {
	position: relative;
	color: var(--ink);
	font-weight: 600;
	white-space: nowrap;
}

/* "Learn more" is small words; its tap area reaches 44 tall. */
.spot-open a::after {
	content: "";
	position: absolute;
	inset: calc((44px - 1.35em) / -2) calc(-1 * var(--sp-2));
}

/* ------------------------------------------------------------------ The Platinum sponsor's banner */

/*
  The city's Platinum sponsor, right under the title of every page of the city: a solid card tinted cool, as
  the Gold card is tinted warm, with a thin metal-gray edge. One tap on its mark, its name or its line opens the
  address it picked, in a new tab; its offer and code follow, when it has one. "Sponsor" is the same small,
  quiet word over the name. It is not one of the rows: no place, no votes, no stars and no score.
*/
.plat {
	--thumb: 36px;
	position: relative;
	margin-top: var(--gap);
	padding: 6px calc(var(--pad) - 1px);
	border: 1px solid rgba(132, 143, 158, 0.55);
	border-radius: var(--r);
	/* The color under the metal is what the map checks for: the banner is solid wherever it stands. */
	background: #f3f5f8 linear-gradient(135deg, #f8f9fb, #eef1f5);
	box-shadow: var(--float);
}

.plat-go {
	gap: var(--sp-2);
}

/* The label on the sponsor page's Platinum card is a small pill of brushed metal with ink words. */
.tier-plat .tier-label {
	margin: 0;
	padding: 2px var(--sp-2);
	border-radius: 999px;
	background: linear-gradient(135deg, #f6f7f9 0%, #d3d9e0 46%, #f1f3f6 60%, #c3cad4 100%);
	box-shadow: inset 0 0 0 1px rgba(19, 19, 20, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	color: var(--on);
	font: 600 var(--fs-cap)/1.3 var(--sans);
	letter-spacing: 0.02em;
}

/* The sponsor's initials on a square of the same metal, where a real sponsor's own mark will go. */
.plat-mark {
	flex: none;
	display: grid;
	place-items: center;
	width: var(--thumb);
	height: var(--thumb);
	border-radius: var(--sp-1);
	background: linear-gradient(135deg, #fdfdfe, #d6dce4);
	box-shadow: inset 0 0 0 1px rgba(19, 19, 20, 0.12);
	color: var(--on);
	font: 600 var(--fs-cap)/1 var(--sans);
	letter-spacing: 0.03em;
}

/* A sponsor's own mark, in place of its initials: the picture sits on the metal, inset a little. */
.plat-logo svg {
	display: block;
	width: 80%;
	height: 80%;
}

/*
  The name on one line, and its own line whole under it, on two lines at most, in quieter words: cut short with
  "…" beside the name, it read "Local agents who know ev…".
*/
.plat-say {
	display: grid;
	min-width: 0;
}

.plat-name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.plat-line {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	color: var(--quiet);
	white-space: normal;
}

.plat .spot-offer {
	margin-top: 6px;
	padding-top: 6px;
}

/* At night the card is a cool lifted black with a faint metal edge, and the metal keeps its sheen. */
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .plat {
		border-color: rgba(201, 207, 216, 0.28);
		background: #27292c linear-gradient(135deg, #2b2d31, #232528);
	}

	:where(:root:not([data-theme="light"])) .plat-mark {
		background: linear-gradient(135deg, #eef0f3, #b7bfca);
	}
}

:where(:root[data-theme="dark"]) .plat {
	border-color: rgba(201, 207, 216, 0.28);
	background: #27292c linear-gradient(135deg, #2b2d31, #232528);
}

:where(:root[data-theme="dark"]) .plat-mark {
	background: linear-gradient(135deg, #eef0f3, #b7bfca);
}

/* ------------------------------------------------------------------ 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);
}

/*
  One heading system on every page, from the type scale. A page's title is 28 (an h1: a list's, a city's,
  How it works, Privacy); a section's heading is 18 (an h2); a name is 15 (an h3, a row's). Titles and
  sections are 600, in ink; names and scores are 700, so a business's name as its page's title is 700 too.
  A computer's screen sets its own sizes for the same three.
*/
.tag,
.shown-on {
	margin: 0 0 var(--sp-2);
	font: 600 var(--fs-head)/1.25 var(--sans);
}

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

h1.tag {
	font-size: var(--fs-title);
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* A page's title, and under it, in quiet words close to it, how the order is made: a city's and a list's. */
.sheet-head {
	margin: 0 0 var(--sp-4);
}

.sheet-head > .tag {
	margin-bottom: var(--sp-1);
}

.sheet-sub {
	margin: 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.4 var(--sans);
	text-wrap: balance;
}

/* A sample list or city says so once, under its title, in words, since its rows carry no S. */
.sheet-sample {
	margin-top: 2px;
	color: var(--ink);
	font-weight: 600;
}

/*
  A list's title holds its city, a size down and in quiet words, on the title's line where it fits. A list
  keeps its title, its line and its sponsor close together, so the spot and three rows still fit a 390 by
  844 phone's first screen.
*/
.sheet-head .tag-where {
	color: var(--quiet);
	font-size: var(--fs-head);
	letter-spacing: -0.01em;
}

/* "in Fredericksburg": the city leads to its page, one tap back up. Quiet like the words round it, and underlined like every link in a sentence. */
.tag-city:hover {
	color: var(--ink);
}

.list .sheet-head {
	margin-bottom: var(--sp-2);
}

.list .sheet-head > .tag {
	margin-bottom: 2px;
}

/*
  On a phone a list's title is a size down, 22, over names of 15: "Best Chinese food in Fredericksburg" fits
  one line, so the list's first row starts higher on the first screen.
*/
@media (max-width: 479px) {
	.list .sheet-head > h1.tag {
		font-size: var(--fs-big);
	}
}

/* On a phone the sponsors' cards stand inside the sheet, under the title: each its own edge, no second shadow. */
@media (max-width: 899px) {
	.sheet > .slot,
	.sheet > .plat {
		margin: 0 0 var(--sp-3);
		box-shadow: none;
	}

	/* On a business's page the banner stands under the business's own card and its hours. */
	.business .sheet > .plat,
	.business .biz-side > .plat {
		margin: var(--sp-4) 0 0;
		box-shadow: none;
	}

	/*
	  The card is the same on every page, the sponsor page's preview included: its row needs no column for a
	  place, so its photo starts at the card's padding, and the card's padding gives the row its air. The
	  sponsor's line takes two lines at most beside the photo, and a tap on the name shows it all. On a list
	  the card stands a step closer to the rows.
	*/
	.sheet > .slot,
	.adpreview .slot {
		--c-place: 0px;
	}


	.adpreview .slot {
		box-shadow: none;
	}

	.list .sheet > .slot,
	.list .sheet > .plat,
	.list .sheet > .spot-open {
		margin-bottom: var(--sp-2);
	}

	/* A city's page keeps its title and the banner 8 apart, as a list does. */
	.city .sheet-head,
	.city .sheet > .plat {
		margin-bottom: var(--sp-2);
	}

	/* On a phone an open spot's line stands in the sheet under the title, as a card would. */
	.sheet > .spot-open {
		margin: 0 0 var(--sp-3);
	}

	/*
	  On a phone the Platinum banner under a page's title is one line: its mark, "Sponsor" and its name, never
	  cut short. Its own line, its offer and its code show on a computer, where they fit beside the name. The
	  sponsor page's preview of it keeps its line, so a sponsor sees all they type.
	*/
	.sheet > .plat {
		--thumb: 28px;
	}

	/*
	  On a list or a city's page the sponsors stand 6 px out past the rows on each side, so what is inside them
	  lines up with the rows: the Platinum mark and the Gold photo over the rows' photos, the Gold box over theirs.
	*/
	.sheet > .plat,
	.list .sheet > .slot {
		margin-right: -6px;
		margin-left: -6px;
		padding-right: 5px;
		padding-left: 5px;
	}

	.list .sheet > .slot {
		padding-top: 6px;
		padding-bottom: 6px;
	}

	/* The banner's whole height is the tap: its link reaches over the banner's padding, 40 px tall. */
	.sheet > .plat > .plat-go {
		margin: -6px 0;
		padding: 6px 0;
	}

	.sheet > .plat .spot-who {
		display: block;
		line-height: 1.25;
	}

	.sheet > .plat .spot-tag {
		margin-right: 6px;
	}

	.sheet > .plat .plat-say {
		display: inline;
	}

	.sheet > .plat .plat-name {
		overflow: visible;
		white-space: normal;
	}

	.sheet > .plat .plat-line,
	.sheet > .plat > .spot-offer {
		display: none;
	}

	/*
	  On a list the Gold card is about as tall as the rows under it, and drawn as one: its photo at the left,
	  "Sponsor" and its name on one line, its offer and code on the next, and the box under them, beside the
	  photo, where every row has its box. Its own line stands there only when it has no offer, and Copy shows
	  on a computer: one tap on the code selects all of it. The sponsor page's preview keeps every part, so a
	  sponsor sees all it types.
	*/
	.list .slot .spot-card {
		--thumb: clamp(40px, calc(100vw - 330px), 60px);
		position: relative;
		grid-template-areas:
			"go"
			"offer"
			"line";
		min-height: var(--thumb);
		padding-left: calc(var(--thumb) + var(--sp-3));
	}

	.list .slot .spot-card .thumb {
		position: absolute;
		top: 0;
		left: 0;
	}

	.list .slot .spot-who {
		display: block;
		line-height: 1.25;
	}

	.list .slot .spot-tag {
		margin-right: 6px;
	}

	.list .slot .spot-card:has(> .spot-offer) .spot-line {
		display: none;
	}

	/* The offer and its code run as one sentence, so a long offer takes two lines and the code ends the second. */
	.list .slot .spot-card > .spot-offer {
		display: block;
		margin: 2px 0 0;
		padding: 0;
		border: 0;
	}

	.list .slot .spot-offer > .ad-offer-what {
		margin-right: var(--sp-2);
		font-size: var(--fs-small);
	}

	.list .slot .spot-offer > .spot-code {
		vertical-align: middle;
	}

	.list .slot .spot-code > .ad-copy {
		display: none;
	}

	.list .slot .spot-card > .score-line {
		margin-top: 6px;
	}
}

/* The way back: plain, at the top of the page's own card or sheet. */
.back {
	margin: var(--sp-2) 0 0;
}

.back a {
	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;
}

.sheet > .back,
.prose > .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,
.trio-all .go,
.welcome-go .go {
	margin: 0;
}

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

/*
  The foot of a list: the category before at the left and the one after at the right, each a big button as wide as
  its arrow, picture and name, and no wider. A long name may take half the line, less the gap, and wraps inside it.
  Each has an edge and a solid face, like the vote buttons, and its arrow points the way it goes.
*/
.cat-nav {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: var(--sp-2);
	margin-top: var(--sp-4);
}

.cat-go {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	min-width: 0;
	max-width: calc(50% - var(--sp-2) / 2);
	min-height: 60px;
	padding: 0 var(--sp-4);
	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;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}

.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;
}

/* The name takes a second line rather than being cut short. */
.cat-go-name {
	min-width: 0;
	overflow-wrap: anywhere;
}

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

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

/* On the narrowest phones each button drops its picture, so the category's whole name fits on its one line. */
@media (max-width: 359px) {
	.cat-go-emoji.icon {
		display: none;
	}
}

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

/*
  One list, its rows divided by a hairline, as a guide divides its places. Every row is the same on every page,
  a list's, the Gold sponsor's, a city's and a business's: the place, the picture, the name, and one container
  holding ▲, the overall score with the rounded total under it, and ▼, with the Google pill right beside it.
  Down a list the containers stand in one column, like a scoreboard's.
*/
.rows {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
  A row on a phone and in a city's card: the photo at the left, 64 square (40 on the smallest phones), the place and
  the name at its right, at 18, and the box under the name; then the row's panel when it opens. 14 of air above and
  below. A computer's list makes each row one band (below).
*/
.row {
	--thumb: 64px;
	display: grid;
	grid-template-columns: calc(var(--thumb) + 12px) auto minmax(0, 1fr);
	grid-template-areas:
		"thumb rank who"
		"thumb line line"
		"drawer drawer drawer";
	align-items: start;
	padding: 14px 0;
}

@media (max-width: 359px) {
	.row {
		--thumb: 40px;
	}
}

.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: 600 var(--fs-body)/1 var(--sans);
	font-variant-numeric: tabular-nums;
}

/* On a row the place comes right before the name, on its line and its size, a weight lighter: "1. Shiitake Noodle House". */
.row > .rank {
	display: block;
	grid-area: rank;
	align-self: start;
	margin-right: 0.35em;
	font: 600 18px/1.25 var(--sans);
	letter-spacing: -0.01em;
}

/* A row with no place yet (it needs more votes) and the sponsor's row start with the name. */
.row[data-rank=""] > .rank {
	display: none;
}

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

/* The picture, the name and the arrows, on the sheet itself. */
.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;
}

.row > .card {
	display: contents;
}

.row > .card > .thumb {
	grid-area: thumb;
}

.row > .card > .who {
	grid-area: who;
	padding: 0;
}

/* The box under the name, at the photo's right. */
.row > .card > .score-line {
	grid-area: line;
	margin-top: 8px;
}

.row > .drawer {
	grid-area: drawer;
}

/* The box's cell. It is a size container (above), so the box knows how much room it has. */
.score-line {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	min-width: 0;
}

.score-line > .meta {
	flex: 1 1 0;
	min-width: 0;
	margin: 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 as many lines as it needs and is never cut short, so someone who sets wider letter spacing
   still reads all of it, and nothing clips its focus ring. On a phone and in a city's cards it is set at 18.
   The sponsor's name is the same, in a plain paragraph: its spot comes before the page's own heading. */
.who h3,
.who-name {
	margin: 0;
	overflow-wrap: anywhere;
	font: 700 18px/1.25 var(--sans);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* A sample's S follows the name's last word, small and quiet. Its own box keeps a hover's underline off it. */
.who .name > .s-mark {
	position: static;
	display: inline-block;
	margin-left: 6px;
	vertical-align: 1px;
}

/* The price follows the name, "$$", small and quiet, in its own box so a hover's underline stays off it. */
.who .name > .name-price {
	display: inline-block;
	margin-left: 0.4em;
	color: var(--quiet);
	font-size: 0.72em;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.who h3 a,
.who h3 button,
.who-name a,
.who-name button {
	border-radius: var(--sp-1);
	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: block;
	max-width: 100%;
	margin: 0;
	padding: 0;
	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;
}

/* Under a standing's list name, where the business stands on it: "1st of 10". */
.row-under {
	margin: 2px 0 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.35 var(--sans);
}

/* The line that holds the Google button lets its tap area reach past the pill, and the pill fits itself to the line's width. */
.meta-google {
	display: flex;
	margin-top: var(--sp-1);
	overflow: visible;
	container-type: inline-size;
}

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

/*
  Why a vote was not counted, said in the voted row over Google's part of its container, or over the line beside
  it, until the next vote. Only the words change there, so nothing moves under the thumb. A counted vote says
  nothing on screen: the pressed key fills and the numbers change.
*/
.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 row's Google rating is a button of its own: a pill on the vote buttons' color with a thin edge, holding
  Google's G, the rating and five of our stars (yellow as far as the rating reaches, empty after), in that
  order. It opens the business's Google reviews. A sample's looks the same and leads nowhere. Its tap area
  reaches 44 tall, into the row's own space. A business with no rating shows nothing here. The same space
  inside both ends, 8, and one gap, 6, between the G, the number and the stars, each measured from what is
  drawn: the stars' box is pulled in to their ink below, and the number and the G have none to speak of.
*/
.g-stars {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 24px;
	padding: 0 var(--sp-2);
	border: 1px solid var(--key-edge);
	border-radius: var(--sp-3);
	background: var(--key);
	color: var(--ink);
	text-decoration: none;
	vertical-align: top;
	white-space: nowrap;
}

a.g-stars::after {
	content: "";
	position: absolute;
	inset: calc((44px - 24px) / -2) 0;
}

a.g-stars:hover {
	background: var(--key-hover);
}

/* The stars alone, with no button: a real business with no Google page, and a business's own page, where the yellow button opens the reviews. */
.g-stars.g-plain {
	padding: 0;
	border: 0;
	background: none;
	color: var(--quiet);
}

.stars {
	flex: none;
	width: calc(5 * var(--g-star));
	height: var(--g-star);
}

.stars-empty {
	fill: var(--wash);
}

.stars-full {
	fill: var(--yellow);
}

/* One outline over all five stars, so the part-filled one has the same edge as the others. */
.stars-line {
	fill: none;
	stroke: var(--on);
	stroke-width: 1.4;
	stroke-linejoin: round;
}

@media (prefers-color-scheme: dark) {
	/* At night an empty star is a gray one, so it shows on the dark pill inside the same dark outline. */
	:where(:root:not([data-theme="light"])) .stars-empty {
		fill: rgba(254, 254, 254, 0.3);
	}
}

:where(:root[data-theme="dark"]) .stars-empty {
	fill: rgba(254, 254, 254, 0.3);
}

/*
  The number is set solid and trimmed to its capitals, so the pill centers the middle of its figures rather
  than the middle of its line: level with the G and the stars.
*/
.g-n {
	color: var(--ink);
	font-weight: 700;
	line-height: 1;
	text-box: trim-both cap alphabetic;
}

/* A browser that cannot trim (before Safari 18.2 and Chrome 133) centers the whole line, so the figures go up to the same middle. */
@supports not (text-box: trim-both cap alphabetic) {
	.g-n {
		position: relative;
		top: -1px;
	}
}

/* Google's G, first in the pill: 14 px, on the same middle line, and the same in light and dark, since it brings its own colors. */
.g-logo {
	display: block;
	flex: none;
	width: 14px;
	height: 14px;
}

/* Each star's ink starts 1.8 of its 24 in from its square, so its box is pulled in by that much at both ends. */
.g-stars .stars {
	margin-inline: calc(var(--g-star) * -1.8 / 24);
}

/*
  Inside the pill the stars are a size smaller than on a business's own page. The pill is 131 px wide, and a
  row on a 320 px phone gives it 162, so all five fit on every phone; only a narrower line, as with very large
  text, shrinks them, and then shows one star for the five.
*/
.g-stars:not(.g-plain) .stars {
	--g-star: 14px;
}

.g-one {
	display: none;
}

.g-one .star {
	display: block;
	width: 14px;
	height: 14px;
}

.g-one {
	margin-inline: calc(14px * -1.8 / 24);
}

@container (max-width: 130px) {
	.g-stars:not(.g-plain) .stars {
		--g-star: 12px;
	}
}

/* On a line too narrow even for that (the pill is then 121 px), one star stands for the five beside the rating. */
@container (max-width: 120px) {
	.g-stars:not(.g-plain) .stars {
		display: none;
	}

	.g-one {
		display: block;
	}
}

/* A real business has no rating to show: its pill holds the G and "Google reviews", and "reviews" alone on a line too narrow for both. */
.g-words {
	color: var(--ink);
	font: 600 var(--fs-small)/1 var(--sans);
}

@container (max-width: 125px) {
	.g-reviews .g-long {
		display: none;
	}
}

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

/*
  "Google reviews": the one yellow button with ink words, on a business's own page, the same for everyone whatever
  they voted. It is a key like the front page's Go: the keys' corners, and a lip along the foot of its face, which
  flattens as it is pressed.
*/
.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-key);
	background: var(--yellow);
	box-shadow: inset 0 -2px 0 rgba(19, 19, 20, 0.14);
	color: var(--on);
	font: 600 var(--fs-body)/1.1 var(--sans);
	text-decoration: none;
}

a.g-write:active {
	box-shadow: inset 0 -1px 0 rgba(19, 19, 20, 0.14);
	transform: translateY(1px);
}

.g-write .star {
	width: 18px;
	height: 18px;
	stroke: var(--on);
	stroke-width: 1.2;
}

a.g-write:hover {
	background: #ffdc4f;
}

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

/* On a sample nothing leads anywhere: the button is dimmed, and the line under it says what it does on a real business. */
.g-off {
	cursor: default;
}

.g-write.g-off {
	box-shadow: none;
	opacity: 0.55;
}

/*
  At night a dimmed yellow mixes with the dark sheet into a muddy khaki, so a sample's Google button is drawn as
  the dimmed "Directions" beside it is: the keys' face and edge, paper words, an outlined star, at the same 55%.
*/
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .g-write.g-off {
		border: 1px solid var(--key-edge);
		background: var(--key);
		color: var(--ink);
	}

	:where(:root:not([data-theme="light"])) .g-write.g-off .star {
		fill: none;
		stroke: currentColor;
	}
}

:where(:root[data-theme="dark"]) .g-write.g-off {
	border: 1px solid var(--key-edge);
	background: var(--key);
	color: var(--ink);
}

:where(:root[data-theme="dark"]) .g-write.g-off .star {
	fill: none;
	stroke: currentColor;
}

.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 sponsor's panel, and the sponsor page's preview of it. */
.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 {
	display: flex;
	flex-wrap: wrap;
	font: 400 var(--fs-small)/1.5 var(--sans);
}

.drawer .menu li {
	padding: 0;
}

/* A short hairline between dishes, drawn rather than typed. */
.drawer .menu li:not(:last-child)::after,
.biz-page .menu li:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 0.9em;
	margin: 0 var(--sp-2);
	background: var(--quiet);
	opacity: 0.5;
	vertical-align: -0.1em;
}

.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);
}

/* ------------------------------------------------------------------ A store's dropdown */

/*
  A store has no page of its own: its name opens this card under its row, set into the list with a thin edge.
  At its top its photo, larger than the row's, beside what it is, where, its price and its own line. Then one
  line each for its address, hours, menu and other lists, a quiet label at the left and a hairline between
  them, as a printed menu sets them. Then Directions and Google reviews, half the width each, and last a quiet
  link to its own address. On a phone it takes the row's whole width, so its lines have room.
*/
.drawer.store {
	gap: 0;
	justify-items: stretch;
	margin: var(--sp-2) 0 var(--sp-3);
	padding: 0;
	overflow: hidden;
	border-radius: var(--r-in);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--edge);
}

/* Where the store stands on this list, in words, at the top of its dropdown: one quiet line, as its description says it. */
.store-place {
	margin: 0;
	padding: var(--sp-3) var(--sp-4) 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.4 var(--sans);
	text-wrap: balance;
}

.store-head {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	padding: var(--sp-4);
}

.store-place + .store-head {
	padding-top: var(--sp-3);
}

.store-photo {
	display: grid;
	flex: none;
	place-items: center;
	width: 88px;
	height: 88px;
	overflow: hidden;
	border-radius: var(--r-in);
	background: var(--bar);
}

.store-photo > .icon {
	width: 60px;
	height: 60px;
}

.store-intro {
	flex: 1;
	min-width: 0;
}

.store-meta {
	margin: 0 0 var(--sp-1);
	color: var(--quiet);
	font: 600 var(--fs-small)/1.35 var(--sans);
}

.store-google {
	margin: 0 0 var(--sp-2);
	font-size: var(--fs-small);
}

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

.store-facts {
	margin: 0;
}

.store-fact {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-4);
	box-shadow: inset 0 1px 0 var(--edge);
}

.store-fact dt {
	color: var(--quiet);
	font: 600 var(--fs-small)/1.5 var(--sans);
}

.store-fact dd {
	min-width: 0;
	margin: 0;
	font: 400 var(--fs-small)/1.5 var(--sans);
}

.store-fact .unfilled {
	font-size: var(--fs-small);
}

/* Its other lists, each a link to it there, a thumb tall, so the line under "Also on" can wrap. */
.store-also {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--sp-4);
	margin: calc(-1 * var(--sp-3)) 0;
	padding: 0;
	list-style: none;
}

.store-also a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
}

.store-actions {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: var(--sp-2);
	padding: var(--sp-4) var(--sp-4) var(--sp-3);
	box-shadow: inset 0 1px 0 var(--edge);
}

.store-actions > :is(.ad-go, .g-write) {
	min-height: 48px;
	padding: 0 var(--sp-2);
	font-size: var(--fs-body);
	white-space: nowrap;
}

.store-actions > .ad-off {
	opacity: 0.55;
}

.store-note {
	padding: 0 var(--sp-4);
}

.store-link {
	margin: 0;
	padding: 0 var(--sp-4) var(--sp-1);
	font: 600 var(--fs-small)/1.2 var(--sans);
}

.store-link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--quiet);
}

/* A name that opens a dropdown ends in a small chevron, which turns over while its dropdown is open. */
.row:has(> .drawer.store) .who h3 > :is(a, button)::after {
	content: "";
	display: inline-block;
	width: 0.42em;
	height: 0.42em;
	margin-left: 0.5em;
	box-shadow: inset -2px -2px 0 var(--quiet);
	transform: translateY(-0.2em) rotate(45deg);
	transition: transform 0.15s ease-out;
}

.row.open:has(> .drawer.store) .who h3 > :is(a, button)::after {
	transform: translateY(0.05em) rotate(-135deg);
}

@media (prefers-reduced-motion: reduce) {
	.row:has(> .drawer.store) .who h3 > :is(a, button)::after {
		transition: none;
	}
}

/*
  A row opened from a link lands with its own top edge at the top of the screen, or right under the pinned title
  below, so the air above it is its own and nothing of what comes before it shows, cut in half.
*/
.rows > .row {
	scroll-margin-top: 0;
}

/*
  A store's own address opens part way down its list, so the list's title rides along: one line pinned to the top
  of the screen, as wide as the cards. At the top of the page it waits out of sight behind the categories' card (on
  a computer, behind the black bar), takes no room, and shows as they scroll away. Whatever a link, the script or the
  keyboard brings into view stops under it, so the store's row opens right below the list's name, with its own air
  above it and nothing cut.
*/
html:has(.title-pin) {
	--pin: 44px;
	scroll-padding-top: var(--pin);
}

.title-pin {
	position: sticky;
	top: 0;
	z-index: 3;
	/* As wide as the cards in the list's column (.list .col): 680 at most, less its sides. */
	width: calc(100% - 2 * var(--inset));
	max-width: calc(680px - 2 * var(--inset));
	height: var(--pin);
	/* It waits below the card's round corners, and gives its room back, so nothing under it moves. */
	margin: calc(var(--gap) + var(--r)) auto calc(-1 * (var(--gap) + var(--r) + var(--pin)));
	padding: 0 var(--pad);
	overflow: hidden;
	border-radius: 0 0 var(--r) var(--r);
	background: var(--surface);
	box-shadow: 0 10px 14px -12px rgba(19, 19, 20, 0.35);
	font: 600 var(--fs-head)/var(--pin) var(--sans);
	letter-spacing: -0.01em;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* "in Fredericksburg" in quiet words, as in the title. */
.title-pin > span {
	color: var(--quiet);
}

/* With the script it also waits while the list's own title is on screen, and fades in as that goes up under it. */
.title-pin-wait {
	visibility: hidden;
	opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.title-pin {
		transition: opacity 0.15s ease-out, visibility 0.15s;
	}
}

/* At night its shadow is the night's own. */
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .title-pin {
		box-shadow: 0 10px 14px -12px rgba(0, 0, 0, 0.9);
	}
}

:where(:root[data-theme="dark"]) .title-pin {
	box-shadow: 0 10px 14px -12px rgba(0, 0, 0, 0.9);
}

/* On a phone the categories' card stands over the title while it waits. */
@media (max-width: 899px) {
	.title-pin + .col > .cats {
		position: relative;
		z-index: 3;
	}
}

/* ------------------------------------------------------------------ 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 three buttons, and its hours. Each button is a solid key 44 tall
  with a 1px edge, the three side by side. A sample's buttons look the same and lead
  nowhere, and the line under them says so, as the line under a sample's own buttons does on its page.
*/
.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: 600 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: 600 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: 600 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);
}

/*
  Every key that can be pressed wears the vote buttons' lip: a short bar of shade under its face, 2 px deep and
  inset from its corners, the same bar the vote buttons and "Change" draw, which lightens as the key goes down.
  A sample's keys, which lead nowhere, have none, as nothing that cannot be pressed looks like a button.
*/
.cat-go,
a.ad-go,
button.ad-copy,
.photo-face {
	position: relative;
}

.cat-go::after,
a.ad-go::after,
button.ad-copy::after,
.photo-face::after {
	content: "";
	position: absolute;
	top: calc(100% + 1px);
	right: var(--sp-1);
	left: var(--sp-1);
	height: 2px;
	border-radius: 0 0 var(--sp-1) var(--sp-1);
	background: var(--key-lip);
	pointer-events: none;
}

/* The category keys' edge is as thick as a vote button's, so their lip starts as far down. */
.cat-go::after {
	top: calc(100% + 1.5px);
}

.cat-go:active::after,
a.ad-go:active::after,
button.ad-copy:active::after,
.photo-pick:active .photo-face::after {
	opacity: 0.3;
}

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

/* Its three buttons side by side, as wide as they can be, and two to a line on the narrowest phones. */
.ad-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(5.5em, 1fr));
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

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

/* 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: 600;
}

/* ------------------------------------------------------------------ The container: ▲, the score with the total under it, ▼ */

/*
  The box every row has, the same on every row, card and page: one shape that scales as a whole, like a picture
  dragged by its corner. Its width is the one number everything in it is sized from: 1em is its width over 21.2. It
  is 240 px wide on phones and in city cards, and 288 px on a computer's list, never wider; where the room is under
  240 px, as on the smallest phones, it takes the room's width. Inside: Google's piece (its percent over a small G,
  "4.8" and a small star, or "N/A"), ours (our percent over our small arrows and the count, "50+"), each 7.6em wide so
  the pieces line up down a list, and the two keys, ▲ over ▼, in the rest at the right end. Your own vote fills its
  key green or coral. Nothing changes size when a vote is counted. design/reference/score-box.html is the sample.
*/
.box {
	--w: 240px;
	--line: rgba(19, 19, 20, 0.17);
	--edge: rgba(19, 19, 20, 0.22);
	--quiet-ink: rgba(19, 19, 20, 0.6);
	position: relative;
	display: flex;
	flex: none;
	align-items: stretch;
	width: var(--w);
	height: 6.6em;
	overflow: hidden;
	border-radius: 1.5em;
	background: var(--wash);
	font: 400 calc(var(--w) / 21.2) / 1 var(--sans);
}

/* At night the box's lines and edge are light. */
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .box {
		--line: rgba(254, 254, 254, 0.15);
		--edge: rgba(254, 254, 254, 0.18);
		--quiet-ink: rgba(254, 254, 254, 0.58);
	}
}

:where(:root[data-theme="dark"]) .box {
	--line: rgba(254, 254, 254, 0.15);
	--edge: rgba(254, 254, 254, 0.18);
	--quiet-ink: rgba(254, 254, 254, 0.58);
}

/* Its edge, drawn over the pieces and keys, so a filled key never covers it. */
.box::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--edge);
	pointer-events: none;
}

/* Where the room is narrower than 240 px, which is only the smallest phones, the box takes the room's width. */
.score-line {
	container-type: inline-size;
}

@container (max-width: 239.9px) {
	.box {
		--w: 100cqw;
	}
}

/* A piece: the percent, and under it one small line, with a thin line at its right. */
.meter,
.pct.meter {
	position: relative;
	display: grid;
	flex: none;
	align-content: center;
	align-self: stretch;
	justify-items: start;
	row-gap: 0.4em;
	width: 7.6em;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0 0 0 1.15em;
	border-radius: 0;
	background: none;
	box-shadow: inset -1px 0 0 var(--line);
	color: var(--ink);
	text-decoration: none;
}

/*
  The percent, in full ink and a touch larger, so the two numbers stand out from everything else in the box. "N/A"
  (no Google number) and "New" (too few votes) are set the same, so they sit at the same height.
*/
.meter-n {
	display: flex;
	align-items: baseline;
	gap: 0.07em;
	color: var(--ink);
	font: 700 2.45em / 1 var(--sans);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

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

/* The "%" is quieter, so the digits lead. */
.meter-pc {
	color: var(--quiet-ink);
	font: 700 0.62em / 1 var(--sans);
	font-style: normal;
}

.meter-word,
.meter-new {
	letter-spacing: 0;
}

.meter-new {
	display: none;
}

.pct-n:empty,
.pct-n:empty ~ .meter-pc {
	display: none;
}

.pct-n:empty ~ .meter-new {
	display: inline;
}

/* The sponsor's trophy stands where our percent does: gold, outlined by day, a lighter gold with no edge at night. */
.meter-star .trophy {
	display: block;
	width: 0.95em;
	height: 0.95em;
}

.trophy-cup {
	fill: #f2a900;
	stroke: #9a6400;
	stroke-width: 1.2;
	stroke-linejoin: round;
	paint-order: stroke;
}

.trophy-handles {
	fill: none;
	stroke: #9a6400;
	stroke-width: 1.7;
	stroke-linecap: round;
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .trophy-cup {
		fill: #ffd84a;
		stroke: none;
	}

	:where(:root:not([data-theme="light"])) .trophy-handles {
		stroke: #ffd84a;
	}
}

:where(:root[data-theme="dark"]) .trophy-cup {
	fill: #ffd84a;
	stroke: none;
}

:where(:root[data-theme="dark"]) .trophy-handles {
	stroke: #ffd84a;
}

/*
  The small line: for Google the G, the rating and a star; for us our two arrows and the count, with no word. It is in
  a quieter ink than the percent above it. Each mark is the height of the digits, and --lift puts its middle on the
  digits' middle.
*/
.meter > .meter-cap {
	--lift: -0.017em;
	display: flex;
	align-items: center;
	gap: 0.32em;
	height: 1em;
	margin: 0;
	color: var(--quiet-ink);
	font: 600 1.4em / 1 var(--sans);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.meter-cap .tally-n,
.meter-cap .cap-words {
	display: block;
	color: inherit;
	font: inherit;
	line-height: 1;
}

.meter-cap .g-logo {
	display: block;
	flex: none;
	width: 0.78em;
	height: 0.78em;
	transform: translateY(var(--lift));
}

.cap-arrows {
	display: block;
	flex: none;
	width: 0.52em;
	height: 0.76em;
	fill: currentColor;
	transform: translateY(var(--lift));
}

.cap-star {
	display: block;
	flex: none;
	width: 0.9em;
	height: 0.9em;
	margin-left: -0.08em;
	fill: #f2a900;
	stroke: #9a6400;
	stroke-width: 1.5;
	stroke-linejoin: round;
	paint-order: stroke;
	/* Its points stand on the digits' baseline, as the G does. */
	transform: translateY(calc(var(--lift) + 0.03em));
}

/* At night the small star is a lighter gold, with no edge. */
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .cap-star {
		fill: #ffd84a;
		stroke: none;
	}
}

:where(:root[data-theme="dark"]) .cap-star {
	fill: #ffd84a;
	stroke: none;
}

/* Where there is no number but the piece still opens the business's Google reviews, a small arrow follows the G. */
.cap-out {
	display: block;
	flex: none;
	width: 0.7em;
	height: 0.7em;
	margin-left: -0.04em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.1;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: translateY(var(--lift));
}

a.meter-google:hover {
	background: var(--wash);
}

a.meter-google:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: -3px;
}

/* Why a vote was not counted, said for the eye over the two pieces, until the next vote. Nothing under it moves. */
.meter-said {
	position: absolute;
	z-index: 1;
	inset: 0 4.8em 0 0;
	display: none;
	place-items: center;
	padding: 0 0.6em;
	background: linear-gradient(var(--wash), var(--wash)), var(--surface);
	color: var(--ink);
	font: 600 1.25em / 1.2 var(--sans);
	text-align: center;
}

.row.said .meter-said {
	display: grid;
}

/* The vote: two keys at the right end, one over the other like the two arrows of the logo, with a thin line between. */
.vote {
	display: grid;
	flex: 1 1 0;
	grid-template-rows: 1fr 1fr;
	gap: 1px;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: var(--line);
}

.vote button,
.vote-off > .up,
.vote-off > .down {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--key);
	color: var(--ink);
	font: inherit;
}

.vote button {
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
}

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

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

.vote svg.arrow {
	display: block;
	width: 1.72em;
	height: 1.14em;
	fill: currentColor;
	opacity: 0.9;
}

/* Your own vote fills its key, green for up and coral for down, with an ink arrow. Nothing moves or changes size. */
.vote button[aria-pressed="true"] {
	color: var(--on);
}

.vote button[aria-pressed="true"] svg.arrow {
	opacity: 1;
}

.vote button.up[aria-pressed="true"] {
	border-radius: 0 1.5em 0 0;
	background: var(--green);
	box-shadow: inset 0 0 0 1px #1f9e58;
}

.vote button.down[aria-pressed="true"] {
	border-radius: 0 0 1.5em 0;
	background: var(--coral);
	box-shadow: inset 0 0 0 1px #c9432a;
}

/* A counted vote's dots fly over the box, not under it. */
.vote button:has(> .bloom) {
	z-index: 2;
}

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

/* A box that cannot take a vote (votes that cannot be reached, a card whose votes go to its row, a preview): no key faces, and the arrows at a quarter of their strength. */
.vote-off,
.vote-off > .up,
.vote-off > .down {
	background: transparent;
	cursor: default;
}

.vote-off svg.arrow {
	opacity: 0.26;
}

/* 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 10 outward. */
.bloom-dot:nth-child(1) {
	--x: 0px;
	--y: -24px;
}

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

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

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

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

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

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

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

@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, a bare number in bold: "3", "100+", 13 so a phone reads it. It rolls when it changes, and pulses with each vote counted. */
.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: 600 var(--fs-small)/1 var(--sans);
	font-variant-numeric: tabular-nums;
}

/*
  The overall score read like a school grade: green from 75, yellow from 51, coral at 50 and below. By day each
  is a pale tint of its color with ink numbers; at night, a dark tint with the numbers in a softer tone of the
  color. So a page of high scores reads calm, and the sponsor's orange star stays the one strong color among the
  rows. A dash on a plain cell while there is no score. How it works shows a score alone, on a square tile.
*/
.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);
}

/* Green at 40% on paper, yellow at 45% and coral at 40%: ink on each reads at 13.7 to 1 or better. */
.pct.band-great {
	background: #cdffdf;
	color: var(--on);
}

.pct.band-mixed {
	background: #fff1bd;
	color: var(--on);
}

.pct.band-poor {
	background: #ffd4ca;
	color: var(--on);
}

.pct.band-none {
	background: var(--wash);
	color: var(--quiet);
}

/*
  At night each band is its color at 15 to 17% over the dark sheet, drawn solid, so the score reads the same
  in a row's container, which stands on the keys' face, as on the sheet. The numbers are a softer green (7.0 to
  1 at 22 px bold; the bright green was 8.2 and made a city's page one glowing column), the yellow itself (8.1)
  and the coral itself (5.1). The plain cell keeps a faint edge, so it does not sink into the dark.
*/
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .pct.band-great {
		background: #304539;
		color: #9ae6b4;
	}

	:where(:root:not([data-theme="light"])) .pct.band-mixed {
		background: #454133;
		color: var(--yellow);
	}

	:where(:root:not([data-theme="light"])) .pct.band-poor {
		background: #493634;
		color: var(--coral);
	}

	:where(:root:not([data-theme="light"])) .pct.band-none {
		box-shadow: inset 0 0 0 1px rgba(254, 254, 254, 0.14);
	}
}

:where(:root[data-theme="dark"]) .pct.band-great {
	background: #304539;
	color: #9ae6b4;
}

:where(:root[data-theme="dark"]) .pct.band-mixed {
	background: #454133;
	color: var(--yellow);
}

:where(:root[data-theme="dark"]) .pct.band-poor {
	background: #493634;
	color: var(--coral);
}

:where(:root[data-theme="dark"]) .pct.band-none {
	box-shadow: inset 0 0 0 1px rgba(254, 254, 254, 0.14);
}


/* On a phone the score 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;
}

/* The S for a sample: small and quiet, after a row's name, or as a tab on a business's photo. */
.s-mark {
	position: absolute;
	top: var(--sp-1);
	right: var(--sp-1);
	color: var(--quiet);
	font: 600 var(--fs-cap)/1 var(--sans);
	text-decoration: none;
}

/* The sponsor page's three empty rows, when it has no list to show: the place, then a faint wash as tall as a real row. */
.rows.ghost > .row {
	grid-template-columns: var(--c-place) minmax(0, 1fr);
	grid-template-areas: "rank card";
	align-items: center;
}

.rows.ghost > .row > .rank {
	font-weight: 600;
}

.rows.ghost > .row > .card {
	display: block;
	grid-area: card;
	min-height: calc(var(--thumb) + var(--sp-1));
	border-radius: var(--r-in);
	background: var(--wash);
}

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

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

/* A hairline between one category and the next, so each ends cleanly with its third business. */
.trio + .trio {
	padding-top: var(--sp-3);
	box-shadow: inset 0 1px 0 var(--edge);
}

/* Each category's top row: its name at the left, and "All 8 →" to its whole list at the right. */
.trio-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
}

.trio-head {
	min-width: 0;
	margin: 0;
}

.trio-all {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: var(--sp-1);
	min-height: 44px;
	color: var(--quiet);
	font: 600 var(--fs-small)/1 var(--sans);
	text-decoration: none;
	white-space: nowrap;
}

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

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

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

/* Each category's three rows are a list's rows, with the same container and Google pill (.rows.mini, under "The rows"). */

/* ------------------------------------------------------------------ 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: flex-start;
	gap: var(--sp-3);
}

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

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

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

.biz-head h1 {
	margin: 0;
	font: 700 var(--fs-title)/1.1 var(--sans);
	letter-spacing: -0.02em;
}

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

/* An award's page names the award as its sticker does: "2027 FINALIST" on a small ink band over the business's name, FINALIST in the sticker's yellow, the same by day and at night, as the sticker is. */
.award-band {
	display: inline-block;
	margin: 0 0 var(--sp-2);
	padding: var(--sp-1) var(--sp-2);
	border-radius: var(--r-in);
	background: var(--on);
	color: var(--chalk);
	font: 600 var(--fs-cap)/1.3 var(--sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.award-band > b {
	color: var(--yellow);
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .award-band {
		box-shadow: 0 0 0 1px rgba(254, 254, 254, 0.16);
	}
}

:where(:root[data-theme="dark"]) .award-band {
	box-shadow: 0 0 0 1px rgba(254, 254, 254, 0.16);
}

/*
  Under the business's name, the page's one yellow button, with ink words in both modes: it opens Google's
  form for a review. A sample has no Google page, so its button leads nowhere and the line under it says
  what it does on a real business.
*/
.biz-google {
	display: grid;
	gap: var(--sp-2);
	margin: var(--sp-3) 0 0;
	font-size: var(--fs-small);
}

.biz-google .g-write {
	width: 100%;
	max-width: 360px;
	min-height: 48px;
}

/*
  A business's own page answers where and when first: under its name, a way there beside its Google reviews,
  half the width each (the whole width when there is one), then its address and its hours. On a sample both
  buttons are dimmed and lead nowhere, and one line under them says what they do on a real business.
*/
.biz-actions {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: var(--sp-2);
}

.biz-actions > :is(.ad-go, .g-write) {
	min-height: 48px;
	padding: 0 var(--sp-3);
	font-size: var(--fs-body);
}

.biz-actions > .ad-off {
	opacity: 0.55;
}

.biz-note {
	margin-top: calc(-1 * var(--sp-1));
}

/*
  An award's band, its name over the yellow button and the line under it, keeps no word alone on a line: on a
  320 px phone "Blackcap Pizza Co." left "Co." by itself, and the line under the button left "form.".
*/
.award > .biz-head h1 {
	text-wrap: balance;
}

.award > .biz-head > .biz-note {
	text-wrap: pretty;
}

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

/* The menu reads as one line of dishes, a short hairline between each (with the panel's menu, above). */
.biz-page .menu {
	display: flex;
	flex-wrap: wrap;
}

.biz-page .menu li {
	padding: 0;
}

/*
  Where a business stands says its place once, in words under the list's name: "1st of 10". So a standing has
  no number at its left, and no column for one: its picture starts at the card's inner edge, under the heading.
*/
.standing {
	--c-place: 0px;
}

/* On a phone: the photo 80 wide, the largest the photos stay sharp at, the name a size up, and the buttons and the hours across the page under them. */
@media (max-width: 899px) {
	.biz-page > .biz-head {
		display: grid;
		grid-template-columns: 80px minmax(0, 1fr);
		column-gap: var(--sp-4);
		row-gap: var(--sp-3);
	}

	.biz-page > .biz-head > :is(.biz-actions, .biz-note, .biz-when) {
		grid-column: 1 / -1;
	}

	/* The owner's week of counts, across the card under the photo and the name. */
	.biz-page > .biz-head > .owner-week {
		grid-column: 1 / -1;
	}

	.biz-page .thumb.thumb-big {
		width: 80px;
		height: 80px;
	}

	.biz-page .biz-head h1 {
		font-size: var(--fs-title);
		line-height: 1.1;
		letter-spacing: -0.02em;
	}

	.biz-page .biz-name {
		padding-right: 0;
	}

	/* The S, as a small paper tab on the photo's corner, as on a computer's screen. */
	.biz-page .biz-head .s-mark {
		top: var(--sp-1);
		right: auto;
		left: calc(80px - 22px);
		padding: 2px 5px;
		border-radius: 6px;
		background: var(--surface);
		color: var(--ink);
	}
}

.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);
}

/* The owner's counts: this week's as big figures, two across on a phone and four on a computer, with last week's under each. 600, as a heading: 700 is for names and scores. */
.counts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-2);
	margin: 0;
}

/* Three counts, for a finalist whose sticker has no chip to tap, stand three across. */
.counts-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* On the smallest phones the three sit closer and keep 8 at their sides, so each word keeps to its line. */
@media (max-width: 374px) {
	.counts-3 {
		gap: 6px;
	}

	.counts-3 > .count {
		padding-inline: var(--sp-2);
	}
}

.count {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--sp-3);
	border-radius: var(--r-in);
	background: var(--wash);
}

.count dd {
	margin: 0;
}

.count-n {
	order: -1;
	margin-bottom: var(--sp-1);
	font: 600 var(--fs-title)/1 var(--sans);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.count-word {
	font: 600 var(--fs-small)/1.3 var(--sans);
}

.count-last {
	color: var(--quiet);
	font: 400 var(--fs-small)/1.3 var(--sans);
}

/* The owner's counts sit right under their heading, with no line between. */
.sheet.owner > .biz-info {
	padding-top: 0;
	box-shadow: none;
}

/* Where the business stands, under the counts' small print, as its own page shows it. */
.owner-stands > .tag {
	margin-top: var(--sp-5);
}

/* The week's counts beside the finalist picture are for a computer's screen; a phone has them in the name card. */
.owner-side {
	display: none;
}

/* How a finalist wins, in the card's words, under the counts' small print: the card's one task in ink, as the card prints it in bold. */
.owner-win > .tag {
	margin-top: var(--sp-5);
}

.owner-win > .lede {
	margin-top: var(--sp-1);
}

.owner-win > .win-task {
	margin-top: var(--sp-2);
	color: var(--ink);
	font-weight: 600;
}

/*
  A business's own page keeps its hours, the city's sponsor and where it stands together (.biz-side), so a
  computer's wide screen can stand them beside its card. On a phone the group is no box of its own: its hours
  follow the buttons, 12 under them as in the card, and the rest reads on below, as it always has.
*/
.biz-side > .biz-when {
	margin-top: var(--sp-3);
}

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

/*
  The owner's "2027 Finalist" picture (src/finalist-card.ts): the drawing at the size of a post on a phone, a
  switch between its square and tall shapes that needs no script, and one yellow button that saves it, which
  site.js shows once it can make the picture. The picture keeps its own colors by day and at night, as a photo
  does: an award in ink and gold. At night its edge is a faint paper line, so the ink never melts into the page.
*/
.finalist > .tag {
	margin-top: var(--sp-5);
}

.finalist > .lede {
	margin-top: var(--sp-1);
}

.fc-switch {
	display: inline-flex;
	gap: var(--sp-1);
	margin-top: var(--sp-3);
	padding: var(--sp-1);
	border-radius: 999px;
	background: var(--wash);
}

.fc-switch > label {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 var(--sp-5);
	border-radius: 999px;
	color: var(--quiet);
	font: 600 var(--fs-body)/1 var(--sans);
	cursor: pointer;
}

#fc-square:checked ~ .fc-switch > [for="fc-square"],
#fc-tall:checked ~ .fc-switch > [for="fc-tall"] {
	background: var(--surface-3);
	box-shadow: 0 0 0 1px var(--edge), var(--float);
	color: var(--ink);
}

/* At night the track is a shade darker than the page, so the chosen shape stands out lighter, as the theme keys do. */
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .fc-switch {
		background: rgba(0, 0, 0, 0.28);
	}
}

:where(:root[data-theme="dark"]) .fc-switch {
	background: rgba(0, 0, 0, 0.28);
}

#fc-square:focus-visible ~ .fc-switch > [for="fc-square"],
#fc-tall:focus-visible ~ .fc-switch > [for="fc-tall"] {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.fc-frame {
	margin-top: var(--sp-3);
}

.fc {
	display: block;
	border-radius: var(--r-in);
	box-shadow: var(--float);
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .fc {
		box-shadow: 0 0 0 1px rgba(254, 254, 254, 0.1), var(--float);
	}
}

:where(:root[data-theme="dark"]) .fc {
	box-shadow: 0 0 0 1px rgba(254, 254, 254, 0.1), var(--float);
}

.fc-square {
	width: 100%;
	max-width: 400px;
	height: auto;
	aspect-ratio: 1;
}

/* A story's picture as tall as most of the screen, never wider than the card. */
.fc-tall {
	width: auto;
	max-width: 100%;
	height: min(600px, 72vh);
	aspect-ratio: 1080 / 1920;
}

#fc-square:checked ~ .fc-frame > .fc-tall,
#fc-tall:checked ~ .fc-frame > .fc-square {
	display: none;
}

.fc-actions {
	margin: var(--sp-3) 0 0;
}

.fc-save {
	width: 100%;
	max-width: 400px;
	min-height: 48px;
	border: 0;
	cursor: pointer;
}

.fc-save:active {
	box-shadow: inset 0 -1px 0 rgba(19, 19, 20, 0.14);
	transform: translateY(1px);
}

.fc-said {
	margin: var(--sp-2) 0 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.4 var(--sans);
}

/* From 900 px a business's sheet gives its parts to the grid: the picture's section is then a card of its own, as the counts are, so no words stand on the chart. */
@media (min-width: 900px) {
	.business .sheet.owner > .finalist {
		margin-top: var(--sp-5);
		padding: var(--sp-5);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.finalist > .tag {
		margin-top: 0;
		font-size: var(--fs-big);
	}
}

/* A sponsor's page shows its ad as its panel does, on the spot's warm tint, under its name. */
.biz-ad {
	display: grid;
	gap: var(--sp-3);
	justify-items: stretch;
}

.sheet .biz-ad {
	padding: var(--pad);
	border: 1px solid rgba(255, 196, 118, 0.85);
	border-radius: var(--r);
	background: #fff9ef;
}

.biz-ad-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.3 var(--sans);
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .sheet .biz-ad {
		border-color: rgba(255, 196, 118, 0.3);
		background: #2e2a26;
	}
}

:where(:root[data-theme="dark"]) .sheet .biz-ad {
	border-color: rgba(255, 196, 118, 0.3);
	background: #2e2a26;
}

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

/* The labels share one column as wide as the longest, "Neighborhood", so no label runs into its value. */
.facts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: var(--sp-3);
	margin: 0;
}

.fact {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: subgrid;
}

.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: 600 var(--fs-title)/1.1 var(--sans);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.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(--field-edge);
	border-radius: var(--r-in);
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--fs-head)/1.35 var(--sans);
	resize: none;
}

/* "Your line" is as tall as its words, the sample's included, where the browser can size a field to them; elsewhere its six rows hold the longest line. */
.adform textarea {
	field-sizing: content;
}

/* The sample words in an empty field are as easy to read as small print. */
.adform ::placeholder {
	color: var(--quiet);
	opacity: 1;
}

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

/* A code is capitals, digits and hyphens, so the field shows it in capitals as the spot will. */
.adform #ad-code {
	text-transform: uppercase;
}

/* A field's own note, such as where the picture stays. */
.field-note {
	margin: 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.35 var(--sans);
}

/* The checkout's renewal terms, right beside its button to pay: the price, how it renews, and the box that agrees to the terms. */
.pay-terms {
	display: grid;
	gap: var(--sp-3);
	margin-top: var(--sp-5);
}

.pay-terms p {
	margin: 0;
}

.pay-price {
	font: 600 var(--fs-head)/1.35 var(--sans);
}

.pay-agree label {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	min-height: 44px;
	font: 400 var(--fs-body)/1.45 var(--sans);
	cursor: pointer;
}

.pay-agree input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--ink);
}

/*
  The picture's field is one of the site's own keys, "Choose a picture", with the file's name beside it, in
  place of the browser's own button and words. The real file field lies over both, unseen, so a tap anywhere
  on them opens the picker, and the keyboard reaches it and shows its ring on the key.
*/
.photo-pick {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.adform input[type="file"].photo-file {
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
}

.photo-face {
	flex: none;
}

.photo-pick:hover .photo-face {
	background: var(--key-hover);
}

.photo-file:focus-visible + .photo-face {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.photo-name {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* The preview's panel stands open under the row, as a tap on the name opens it. It has no way to a page to end on, so it ends on its own padding. */
.adpreview .drawer {
	margin-top: var(--sp-2);
	margin-bottom: 0;
	padding-bottom: var(--pad);
}

/* 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: 600 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;
}

/* On the sponsor page a new sponsor has no votes yet, so its star stands alone in the middle of the box, with no "0" under it. */
.pitch .adpreview .pct-star .tally {
	display: none;
}

/* ------------------------------------------------------------------ The sponsor page */

/*
  One sheet, read top to bottom on a phone, built as a choice made in plain sight: "Put your business at the top
  of Best pizza in Fredericksburg", with each choice a yellow word, the key color. Gold and Platinum stand side by
  side under it, warm and cool as their spots are. Then the spot itself on one card, the town's lists as a board of
  their pictures marked open or taken, the towns on their own street maps, our promises, the guarantee and how a
  visit is counted, outside figures with their sources, the AI assistants and the questions.
*/
.pitch {
	--part: calc(var(--sp-6) + var(--sp-4));
	padding: var(--sp-4) var(--sp-4) var(--sp-6);
}

.pitch > .back {
	margin: 0 0 var(--sp-2);
}

.buy-kick {
	margin: 0 0 var(--sp-2);
	color: var(--quiet);
	font: 600 var(--fs-small)/1.3 var(--sans);
}

/* The sentence: large, with each choice a yellow word that leads to the part of the page that changes it. */
.buy-say {
	font-size: 30px;
	line-height: 1.25;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.blank {
	padding: 0 0.16em;
	border-radius: var(--r-in);
	background: var(--yellow);
	box-shadow: inset 0 -3px 0 rgba(19, 19, 20, 0.18);
	color: var(--on);
	text-decoration: none;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* A small chevron after each choice, drawn in the word's own color, so it reads as something to change. */
.blank-end {
	white-space: nowrap;
}

.blank-end::after {
	content: "";
	display: inline-block;
	width: 0.36em;
	height: 0.36em;
	margin: 0 0.08em 0.18em 0.24em;
	border-right: 0.11em solid;
	border-bottom: 0.11em solid;
	transform: rotate(45deg);
	vertical-align: middle;
}

.blank:active {
	box-shadow: inset 0 -1px 0 rgba(19, 19, 20, 0.18);
}

.buy-hero .lede {
	max-width: 36em;
	margin-top: var(--sp-3);
	font-size: var(--fs-body);
}

.buy-from {
	margin: var(--sp-3) 0 0;
	font: 600 var(--fs-body)/1.4 var(--sans);
}

/* Gold or Platinum: two cards side by side, warm and cool as their spots are. The one in view has an ink ring. */
.tier-switch {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-2);
	margin-top: var(--sp-4);
}

.tier-pick {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: var(--sp-1);
	min-height: 44px;
	padding: calc(var(--sp-3) - 1px);
	border: 1px solid rgba(255, 196, 118, 0.85);
	border-radius: var(--r);
	background: #fff9ef;
	color: var(--ink);
	text-decoration: none;
}

.tier-pick-plat {
	border-color: rgba(132, 143, 158, 0.55);
	background: #f3f5f8 linear-gradient(135deg, #f8f9fb, #eef1f5);
}

.tier-pick[aria-current] {
	box-shadow: 0 0 0 2px var(--on);
}

/* Each spot's small label: orange for Gold, as the Gold card's edge is, brushed metal for Platinum. */
.tier-tag {
	padding: 2px var(--sp-2);
	border-radius: 999px;
	background: var(--orange);
	color: var(--on);
	font: 600 var(--fs-cap)/1.3 var(--sans);
	letter-spacing: 0.02em;
}

.tier-pick-plat .tier-tag,
.plat-pick .tier-tag {
	background: linear-gradient(135deg, #f6f7f9 0%, #d3d9e0 46%, #f1f3f6 60%, #c3cad4 100%);
	box-shadow: inset 0 0 0 1px rgba(19, 19, 20, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

.tier-cost {
	color: var(--soft);
	font: 400 var(--fs-small)/1.3 var(--sans);
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .tier-pick {
		border-color: rgba(255, 196, 118, 0.3);
		background: #2e2a26;
	}

	:where(:root:not([data-theme="light"])) .tier-pick-plat {
		border-color: rgba(201, 207, 216, 0.28);
		background: linear-gradient(135deg, #2b2d31, #232528);
	}

	:where(:root:not([data-theme="light"])) .tier-pick[aria-current] {
		box-shadow: 0 0 0 2px var(--yellow);
	}
}

:where(:root[data-theme="dark"]) .tier-pick {
	border-color: rgba(255, 196, 118, 0.3);
	background: #2e2a26;
}

:where(:root[data-theme="dark"]) .tier-pick-plat {
	border-color: rgba(201, 207, 216, 0.28);
	background: linear-gradient(135deg, #2b2d31, #232528);
}

:where(:root[data-theme="dark"]) .tier-pick[aria-current] {
	box-shadow: 0 0 0 2px var(--yellow);
}

/* "Open" or "Taken" as a small pill with its word: green for open, a quiet outline for taken. */
.buy-state {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 1px var(--sp-2);
	border-radius: 999px;
	font: 600 var(--fs-cap)/1.45 var(--sans);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.buy-state.is-open {
	background: var(--green);
	color: var(--on);
}

.buy-state.is-taken {
	background: var(--wash);
	color: var(--soft);
}

/* The spot, whole, on one card with the Gold card's warm edge, or the banner's cool one for Platinum. */
.ticket {
	margin: var(--sp-5) calc(-1 * var(--sp-3)) 0;
	padding: calc(var(--sp-4) - 1px);
	border: 1px solid var(--orange);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--float);
	scroll-margin-top: var(--sp-3);
}

.ticket-plat {
	border-color: rgba(132, 143, 158, 0.7);
}

.ticket-head {
	display: grid;
	justify-items: start;
	gap: var(--sp-2);
}

.ticket .spot-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.4 var(--sans);
}

.ticket .spot-status .buy-state {
	font-size: var(--fs-small);
}

.ticket-name {
	margin: 0;
	font: 600 var(--fs-big)/1.2 var(--sans);
	letter-spacing: -0.01em;
}

.spot-price {
	margin: 0;
	font: 600 40px/1 var(--sans);
	letter-spacing: -0.02em;
}

.spot-per {
	color: var(--soft);
	font: 400 var(--fs-body)/1 var(--sans);
	letter-spacing: 0;
}

.spot-price-none {
	font: 600 var(--fs-head)/1.3 var(--sans);
	letter-spacing: 0;
}

.spot-sum {
	max-width: 34em;
	margin: 0;
	color: var(--soft);
	font: 400 var(--fs-small)/1.5 var(--sans);
}

.spot-sum a {
	color: var(--ink);
	font-weight: 600;
}

.ticket-body {
	display: grid;
	gap: var(--sp-5);
	margin-top: var(--sp-4);
}

.ticket-sub {
	margin: 0 0 var(--sp-3);
	font: 600 var(--fs-head)/1.25 var(--sans);
}

.preview-of {
	margin: 0 0 var(--sp-2);
	color: var(--quiet);
	font: 600 var(--fs-small)/1.3 var(--sans);
}

.build-preview > .fine {
	margin-top: var(--sp-2);
}

/* The Platinum banner's preview stands as it does on a list, its mark a little larger for a chosen picture. */
.plat-preview {
	margin-top: 0;
	margin-bottom: var(--gap);
}

.plat-preview .plat-mark .thumb-photo {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

/* What is included: each line with a small check on pale green, as our promises have. */
.incl {
	display: grid;
	gap: var(--sp-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.incl li {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: start;
	gap: var(--sp-2);
	font: 400 var(--fs-body)/1.45 var(--sans);
}

.incl .check {
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: #cdffdf;
	color: var(--on);
}

/* The next step, on the Gold card's warm tint: plain words until there is a way to sign up, then the page's one key. */
.next {
	margin-top: var(--sp-5);
	padding: var(--sp-4);
	border-radius: var(--r-in);
	background: #fff4e0;
	color: var(--on);
}

.next-head {
	margin: 0;
	font: 600 var(--fs-big)/1.2 var(--sans);
}

.next-sub {
	margin: var(--sp-3) 0 var(--sp-1);
	font: 600 var(--fs-small)/1.3 var(--sans);
}

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

.next-steps {
	display: grid;
	gap: var(--sp-1);
	margin: 0;
	padding-left: 1.3em;
	font: 400 var(--fs-body)/1.45 var(--sans);
}

.next-go {
	margin: 0;
}

.next-go .button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 0;
	border-radius: var(--r-key);
	font-size: var(--fs-head);
	text-decoration: none;
}

/* A taken spot's way on: the town's open lists as small keys with their pictures, and Platinum after them. */
.next-open {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.next-open a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	min-height: 44px;
	padding: 0 var(--sp-3) 0 var(--sp-2);
	border-radius: var(--r-key);
	background: var(--surface);
	color: var(--ink);
	font: 600 var(--fs-body)/1 var(--sans);
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(19, 19, 20, 0.16);
}

.next-pic.icon {
	width: 24px;
	height: 24px;
}

.next-plat {
	margin: var(--sp-3) 0 0;
}

.next-plat a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	min-height: 44px;
	color: var(--on);
	font: 600 var(--fs-body)/1.3 var(--sans);
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .ticket {
		border-color: rgba(255, 196, 118, 0.3);
	}

	:where(:root:not([data-theme="light"])) .ticket-plat {
		border-color: rgba(201, 207, 216, 0.28);
	}

	:where(:root:not([data-theme="light"])) .incl .check {
		background: rgba(118, 255, 168, 0.16);
		color: var(--green);
	}

	:where(:root:not([data-theme="light"])) .next {
		background: #2e2a26;
		color: var(--ink);
	}

	:where(:root:not([data-theme="light"])) .next-open a {
		background: var(--key);
		box-shadow: none;
	}

	:where(:root:not([data-theme="light"])) .next-plat a {
		color: var(--ink);
	}
}

:where(:root[data-theme="dark"]) .ticket {
	border-color: rgba(255, 196, 118, 0.3);
}

:where(:root[data-theme="dark"]) .ticket-plat {
	border-color: rgba(201, 207, 216, 0.28);
}

:where(:root[data-theme="dark"]) .incl .check {
	background: rgba(118, 255, 168, 0.16);
	color: var(--green);
}

:where(:root[data-theme="dark"]) .next {
	background: #2e2a26;
	color: var(--ink);
}

:where(:root[data-theme="dark"]) .next-open a {
	background: var(--key);
	box-shadow: none;
}

:where(:root[data-theme="dark"]) .next-plat a {
	color: var(--ink);
}

/* Each part of the picker under its heading, with room above it. */
.buy-part {
	margin-top: var(--part);
	scroll-margin-top: var(--sp-3);
}

/* Under a spot, the town's lists and the other towns fold to a line each: its name, its count and a plus. */
.buy-fold {
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.buy-fold + .buy-fold {
	margin-top: 0;
	border-top: 0;
}

.fold-sum {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 28px;
	align-items: center;
	column-gap: var(--sp-3);
	min-height: 56px;
	padding: var(--sp-2) 0;
	list-style: none;
	cursor: pointer;
}

.fold-sum::-webkit-details-marker {
	display: none;
}

.fold-sum::after {
	content: "+";
	grid-row: 1 / span 2;
	grid-column: 2;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--key-edge);
	border-radius: 50%;
	font: 600 var(--fs-head)/1 var(--sans);
}

.buy-fold[open] > .fold-sum::after {
	content: "\2212";
}

.fold-head {
	font: 600 var(--fs-head)/1.25 var(--sans);
}

.fold-sub {
	color: var(--soft);
	font: 400 var(--fs-small)/1.4 var(--sans);
}

.buy-fold[open] {
	padding-bottom: var(--sp-4);
}

.buy-head {
	margin: 0 0 var(--sp-2);
	font: 600 var(--fs-big)/1.2 var(--sans);
	letter-spacing: -0.01em;
}

.buy-count {
	margin: 0 0 var(--sp-3);
	color: var(--soft);
	font: 400 var(--fs-body)/1.45 var(--sans);
}

.buy-count b {
	color: var(--ink);
}

/* The town's lists, a board of their colorful pictures: three across on a phone, each open or taken. */
.board {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.board-tile {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: var(--sp-1);
	min-height: 44px;
	padding: var(--sp-3) var(--sp-1) var(--sp-2);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--rule), 0 1px 2px rgba(19, 19, 20, 0.06);
	color: var(--ink);
	text-align: center;
	text-decoration: none;
}

.board-tile.is-taken {
	background: var(--wash);
	box-shadow: none;
}

.board-tile[aria-current] {
	background: var(--yellow);
	color: var(--on);
	box-shadow: none;
}

.board-pic.icon {
	width: 40px;
	height: 40px;
}

.board-tile.is-taken .board-pic {
	opacity: 0.6;
}

.board-name {
	font: 600 var(--fs-small)/1.2 var(--sans);
}

.board-tile[aria-current] .buy-state.is-taken {
	background: rgba(19, 19, 20, 0.08);
	color: var(--on);
}

/* Platinum, after the board: one wide card in the banner's cool metal, open or taken. */
.plat-pick {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--sp-3);
	min-height: 44px;
	margin-top: var(--sp-3);
	padding: calc(var(--sp-3) - 1px);
	border: 1px solid rgba(132, 143, 158, 0.55);
	border-radius: var(--r);
	background: #f3f5f8 linear-gradient(135deg, #f8f9fb, #eef1f5);
	color: var(--ink);
	text-decoration: none;
}

.plat-pick-say {
	font: 600 var(--fs-small)/1.35 var(--sans);
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .board-tile {
		box-shadow: none;
	}

	:where(:root:not([data-theme="light"])) .board-tile[aria-current] {
		background: var(--yellow);
	}

	:where(:root:not([data-theme="light"])) .plat-pick {
		border-color: rgba(201, 207, 216, 0.28);
		background: linear-gradient(135deg, #2b2d31, #232528);
	}
}

:where(:root[data-theme="dark"]) .board-tile {
	box-shadow: none;
}

:where(:root[data-theme="dark"]) .board-tile[aria-current] {
	background: var(--yellow);
}

:where(:root[data-theme="dark"]) .plat-pick {
	border-color: rgba(201, 207, 216, 0.28);
	background: linear-gradient(135deg, #2b2d31, #232528);
}

/* The towns, each on its own street map, with its name on a small white card at the foot. Two across on a phone. */
.city-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.city-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 132px;
	padding: var(--sp-2);
	overflow: hidden;
	border-radius: var(--r);
	background: var(--wash);
	color: var(--ink);
	text-decoration: none;
	isolation: isolate;
}

.city-tile picture {
	position: absolute;
	inset: 0;
	z-index: -1;
}

/* The middle of the map, where the town's center is, a little larger than the whole sheet would show. */
.city-map {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.7);
}

.city-card {
	display: grid;
	width: 100%;
	padding: var(--sp-2);
	border-radius: var(--r-in);
	background: var(--surface);
	box-shadow: var(--float);
}

.city-name {
	font: 600 var(--fs-body)/1.2 var(--sans);
}

.city-sample {
	justify-self: start;
	margin-bottom: 2px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--wash);
	color: var(--soft);
	font: 600 var(--fs-cap)/1.6 var(--sans);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.city-in,
.city-open {
	color: var(--quiet);
	font: 400 var(--fs-cap)/1.35 var(--sans);
}

.city-open {
	color: var(--soft);
	font-weight: 600;
}

.city-tile[aria-current] {
	box-shadow: 0 0 0 2px var(--on);
}

.city-grid.is-small .city-tile {
	min-height: 112px;
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .city-tile[aria-current] {
		box-shadow: 0 0 0 2px var(--yellow);
	}
}

:where(:root[data-theme="dark"]) .city-tile[aria-current] {
	box-shadow: 0 0 0 2px var(--yellow);
}

/* Each part under a section's heading, 48 below the last. */
.pitch-part {
	margin-top: var(--part);
}

.pitch-head {
	margin: 0 0 var(--sp-2);
	font: 600 var(--fs-big)/1.2 var(--sans);
	letter-spacing: -0.01em;
}

.pitch-part > p:not([class]),
.build-say {
	max-width: 40em;
	margin: 0 0 var(--sp-2);
	font: 400 var(--fs-body)/1.5 var(--sans);
}

/*
  The guarantee, said once and whole on a faint wash, as a notice is: its words a size up, how a visit is
  counted, and a sample month. The four lines on counting stand as plain lines, with no bullets.
*/
.guarantee {
	padding: var(--sp-4);
	border-radius: var(--r);
	background: var(--wash);
	scroll-margin-top: var(--sp-3);
}

.guarantee a {
	font-weight: 600;
}

.guarantee-say {
	max-width: 36em;
	margin: 0;
	font: 400 var(--fs-head)/1.45 var(--sans);
}

.count-head {
	margin: var(--sp-4) 0 var(--sp-2);
	font: 600 var(--fs-body)/1.3 var(--sans);
}

.count-list {
	display: grid;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
	font: 400 var(--fs-body)/1.45 var(--sans);
}

/* The town's lists, a group at a time, as the catalog groups them, each group with how many are open. */
.board-group {
	display: flex;
	align-items: baseline;
	gap: var(--sp-2);
	margin: var(--sp-4) 0 var(--sp-2);
	font: 600 var(--fs-body)/1.3 var(--sans);
}

.board-group-open {
	color: var(--quiet);
	font: 400 var(--fs-small)/1.3 var(--sans);
}

/*
  The preview inside a phone: a body of ink with round corners, the screen in it, and the list's own address and
  title at the top of the screen, as a phone shows the list. On a small phone the body is slim, so the rows keep
  the room a phone gives them.
*/
.phone {
	max-width: 400px;
	margin: 0 auto;
	padding: 6px;
	border-radius: 30px;
	background: var(--on);
	box-shadow: var(--float);
}

.phone-screen {
	padding: var(--sp-3) var(--sp-1) var(--sp-2);
	border-radius: 24px;
	background: var(--surface);
}

.phone-where {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto var(--sp-3);
	padding: 3px var(--sp-3);
	overflow: hidden;
	border-radius: 999px;
	background: var(--wash);
	color: var(--quiet);
	font: 400 var(--fs-cap)/1.4 var(--sans);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.phone-title {
	margin: 0 var(--sp-2) var(--sp-2);
	color: var(--ink);
	font: 600 var(--fs-head)/1.25 var(--sans);
}

.phone-screen > .fine {
	margin: var(--sp-2) var(--sp-2) 0;
}

@media (max-width: 479px) {
	.ticket .phone {
		margin: 0 calc(-1 * var(--sp-2));
	}
}

/* Gold, Platinum and Google ads side by side: a plain table, Gold's column on the Gold card's warm tint. */
.vs {
	width: 100%;
	margin-top: var(--sp-3);
	border-collapse: separate;
	border-spacing: 0;
	font: 400 var(--fs-small)/1.4 var(--sans);
}

.vs th,
.vs td {
	padding: var(--sp-2);
	text-align: left;
	vertical-align: top;
}

.vs thead th {
	font: 600 var(--fs-body)/1.2 var(--sans);
}

.vs tbody th {
	color: var(--ink);
	font: 600 var(--fs-small)/1.35 var(--sans);
}

.vs tbody tr > * {
	border-top: 1px solid var(--rule);
}

.vs thead th:nth-child(2),
.vs td:nth-child(2) {
	background: #fff9ef;
}

.vs-fine {
	margin-top: var(--sp-2);
}

/* On a phone each row is its question across the top and the three answers under it, so nothing is squeezed. */
@media (max-width: 599px) {
	.vs,
	.vs thead,
	.vs tbody {
		display: block;
	}

	.vs tr {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vs thead td {
		display: none;
	}

	.vs tbody th {
		grid-column: 1 / -1;
		padding-bottom: 0;
	}

	.vs tbody td {
		border-top: 0;
	}
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .vs thead th:nth-child(2),
	:where(:root:not([data-theme="light"])) .vs td:nth-child(2) {
		background: #2e2a26;
	}
}

:where(:root[data-theme="dark"]) .vs thead th:nth-child(2),
:where(:root[data-theme="dark"]) .vs td:nth-child(2) {
	background: #2e2a26;
}

/*
  A sample of the month's report, stamped "Sample" in large letters: the kinds of visit as bars with no figures,
  then the visits counted against the one real number, the clicks the same money buys in Google ads.
*/
.report {
	position: relative;
	max-width: 560px;
	margin: var(--sp-3) 0 0;
	padding: var(--sp-4);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--rule), var(--float);
}

.report-stamp {
	position: absolute;
	top: var(--sp-3);
	right: var(--sp-3);
	margin: 0;
	padding: 2px var(--sp-2);
	border: 1px dashed var(--soft);
	border-radius: var(--r-in);
	color: var(--soft);
	font: 600 var(--fs-head)/1.2 var(--sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transform: rotate(-6deg);
}

.report-head {
	margin: 0 0 var(--sp-3);
	font: 600 var(--fs-body)/1.3 var(--sans);
}

.report-kinds {
	display: grid;
	gap: var(--sp-2);
	margin: 0 0 var(--sp-3);
	padding: 0;
	list-style: none;
}

.report-kinds li {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	align-items: center;
	gap: var(--sp-2);
	color: var(--soft);
	font: 400 var(--fs-small)/1.3 var(--sans);
}

.report-bar {
	position: relative;
	height: 10px;
	border-radius: 999px;
	background: var(--wash);
}

.report-bar::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 64%;
	border-radius: inherit;
	background: var(--orange);
}

.report-bar-2::before {
	width: 38%;
}

.report-bar-3::before {
	width: 26%;
}

.report-bar-4::before {
	width: 18%;
}

.report-bar-5::before {
	width: 10%;
}

.report-vs {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--sp-3);
	margin: 0;
	padding: var(--sp-2) 0;
	border-top: 1px solid var(--rule);
	font: 400 var(--fs-small)/1.4 var(--sans);
}

.report-n {
	flex: none;
	max-width: 50%;
	font: 600 var(--fs-head)/1.2 var(--sans);
	text-align: right;
}

.report-yours {
	color: var(--quiet);
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .report-stamp {
		border-color: rgba(254, 254, 254, 0.3);
	}
}

:where(:root[data-theme="dark"]) .report-stamp {
	border-color: rgba(254, 254, 254, 0.3);
}

/*
  The bar at the foot of a phone's screen once a spot is chosen: the spot, open or taken, its price and the next
  step. It is the last thing in the sheet and sticks to the bottom as the page scrolls, so at the end it rests in
  its own room and covers nothing. A computer shows the spot's card beside the preview instead, and no bar.
*/
.buy-dock {
	position: sticky;
	bottom: max(var(--sp-2), env(safe-area-inset-bottom));
	z-index: 5;
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin: var(--part) calc(-1 * var(--sp-2)) 0;
	padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--rule), 0 2px 6px rgba(19, 19, 20, 0.12), 0 10px 28px rgba(19, 19, 20, 0.2);
}

/* Whatever the keyboard or a link brings into view stops above the bar, never under it. */
@media (max-width: 899px) {
	html:has(.buy-dock) {
		scroll-padding-bottom: 96px;
	}
}

.dock-what {
	display: grid;
	flex: 1;
	gap: 2px;
	min-width: 0;
	margin: 0;
}

.dock-name {
	overflow: hidden;
	font: 600 var(--fs-body)/1.25 var(--sans);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dock-sub {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	min-width: 0;
	color: var(--soft);
	font: 400 var(--fs-small)/1.3 var(--sans);
	white-space: nowrap;
}

.dock-go {
	display: inline-flex;
	flex: none;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--sp-4);
	border: 1px solid var(--key-edge);
	border-radius: var(--r-key);
	background: var(--key);
	color: var(--ink);
	font: 600 var(--fs-body)/1 var(--sans);
	text-decoration: none;
}

.dock-key {
	border-color: transparent;
	background: var(--yellow);
	color: var(--on);
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .buy-dock {
		box-shadow: inset 0 0 0 1px rgba(254, 254, 254, 0.08), 0 10px 28px rgba(0, 0, 0, 0.55);
	}
}

:where(:root[data-theme="dark"]) .buy-dock {
	box-shadow: inset 0 0 0 1px rgba(254, 254, 254, 0.08), 0 10px 28px rgba(0, 0, 0, 0.55);
}

/* Outside figures: each number large, what it says under it, and its source with the day we read it. */
.figs {
	display: grid;
	gap: var(--sp-3);
	margin: var(--sp-3) 0 0;
	padding: 0;
	list-style: none;
}

/* On a phone each figure is its number beside its words; on a computer, three across, the number above. */
.fig {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: center;
	gap: var(--sp-1) var(--sp-3);
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--rule);
}

.fig-n {
	font: 600 40px/1 var(--sans);
	letter-spacing: -0.02em;
}

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

.fig-src {
	color: var(--quiet);
	font: 400 var(--fs-small)/1.4 var(--sans);
}

p.fig-src {
	margin-top: var(--sp-2);
}

.fig-src a {
	color: var(--soft);
	font-weight: 600;
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .fig {
		box-shadow: none;
	}
}

:where(:root[data-theme="dark"]) .fig {
	box-shadow: none;
}

/*
  The AI assistants' marks, calm and in one color, on a belt that runs right to left on its own. It is drawn
  twice, side by side, and moves by exactly one copy, so it runs round without a seam. It stops under the
  mouse, under a finger, and while it has the keyboard's focus, and for anyone who asks for less motion it
  holds still and shows every mark at once. A screen reader hears the names from a plain list instead.
*/
.ai-row {
	margin: var(--sp-4) calc(-1 * var(--sp-4)) 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--sp-6), #000 calc(100% - var(--sp-6)), transparent);
	mask-image: linear-gradient(to right, transparent, #000 var(--sp-6), #000 calc(100% - var(--sp-6)), transparent);
}

.ai-row:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: -2px;
	-webkit-mask-image: none;
	mask-image: none;
}

.ai-belt {
	display: flex;
	width: max-content;
	animation: ai-roll 40s linear infinite;
}

.ai-row:hover .ai-belt,
.ai-row:active .ai-belt,
.ai-row:focus-within .ai-belt {
	animation-play-state: paused;
}

.ai-track {
	display: flex;
	gap: var(--sp-6);
	margin: 0;
	padding: var(--sp-3) var(--sp-6) var(--sp-3) 0;
	list-style: none;
}

.ai-mark {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	color: var(--soft);
	font: 600 var(--fs-body)/1 var(--sans);
	white-space: nowrap;
}

/* The marks are drawn in ink; at night they turn to paper. Both a little quiet, so the names lead. */
.ai-mark img {
	width: 28px;
	height: 28px;
	opacity: 0.78;
}

@keyframes ai-roll {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ai-row {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.ai-belt {
		width: auto;
		animation: none;
	}

	.ai-track {
		flex-wrap: wrap;
		gap: var(--sp-4) var(--sp-5);
		padding: var(--sp-3) var(--sp-4);
	}

	.ai-track + .ai-track {
		display: none;
	}
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .ai-mark img {
		filter: invert(1);
	}
}

:where(:root[data-theme="dark"]) .ai-mark img {
	filter: invert(1);
}

.ai-fine {
	margin-top: var(--sp-2);
}

/* "Add more" opens the other six fields in place: a plain line with a plus, a thumb's height. */
.more {
	margin-top: var(--sp-4);
}

.more > summary {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	font: 600 var(--fs-body)/1.2 var(--sans);
	list-style: none;
	cursor: pointer;
}

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

.more > summary::before {
	content: "+";
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 1px solid var(--key-edge);
	border-radius: 50%;
	font: 600 var(--fs-body)/1 var(--sans);
}

.more[open] > summary::before {
	content: "\2212";
}

.more > .field-note {
	margin-bottom: var(--sp-1);
}

/* Until "Add more" is open, the preview shows the card alone; the offer under it comes with the fields that fill it. */
.pitch:has(.more:not([open])) .adpreview .spot-offer {
	display: none;
}

.see-it {
	margin-top: var(--sp-2);
}

.build-fine {
	margin-top: var(--sp-2);
}

/* The questions owners ask: each one bold, with its answer under it in a line or two. */
.faq-list {
	display: grid;
	gap: var(--sp-4);
	margin: var(--sp-3) 0 0;
}

.faq-list dt {
	font: 600 var(--fs-body)/1.35 var(--sans);
}

.faq-list dd {
	max-width: 40em;
	margin: var(--sp-1) 0 0;
	color: var(--soft);
	font: 400 var(--fs-body)/1.5 var(--sans);
}

/* A section's heading on How it works, Privacy and a business's details is 18 in ink, as every section's is, not a small grey label. */
.prose .label,
.biz-info h2.label,
.biz-empty h2.label {
	color: var(--ink);
	font: 600 var(--fs-head)/1.25 var(--sans);
}

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

.prose ul,
.prose p:not([class]) {
	margin: 0;
	font: 400 var(--fs-body)/1.5 var(--sans);
}

/* A list on How it works and Privacy has no round bullets, as no page has: each point is its own short line, 12 under the one before. */
.prose ul {
	padding-left: 0;
	list-style: none;
}

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

/*
  Terms and Privacy. The day a page last changed, small and quiet under its opening line. Then "In short": the
  page in a few lines on a faint wash, as the drawn box on How it works sits, so it reads as the page's summary
  and not as one more part. A part's own small headings (an h3, as "How to cancel") are 15 in ink, a step under
  the part's. Every color here is a token, so light, dark and the pick at a page's foot all follow on their own.
*/
.prose > .when {
	margin: var(--sp-2) 0 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.4 var(--sans);
}

.in-short {
	margin: var(--sp-4) 0 0;
	padding: var(--sp-4);
	border-radius: var(--r-in);
	background: var(--wash);
}

.prose .in-short > .label {
	margin-top: 0;
}

.prose h3 {
	margin: var(--sp-4) 0 var(--sp-2);
	color: var(--ink);
	font: 600 var(--fs-body)/1.3 var(--sans);
}

.prose p:not([class]) + p:not([class]),
.prose p:not([class]) + ul,
.prose ul + p:not([class]) {
	margin-top: var(--sp-3);
}

/*
  How it works draws the box every row has, in a row's own markup, on a faint wash: ▲, the score with the rounded
  total under it, ▼, and the Google pill beside it. A row where votes cannot be cast draws it faint; here it wears
  the keys' face, their lip and ink arrows, as a list shows it to a voter, though nothing in it can be pressed.
  The pill's line is as wide as the pill with its five stars, as on a computer's list. The list under it says
  each part in words.
*/
.how-box {
	display: flex;
	justify-content: center;
	margin: var(--sp-3) 0;
	padding: var(--sp-5) var(--sp-3);
	border-radius: var(--r-in);
	background: var(--wash);
}

/* The drawn box shows its keys as a row's are, with their faces, though nothing in it can be pressed: 240 wide, as on a phone. */
.how-box .score-line {
	width: min(100%, 240px);
}

.how-box .vote-off {
	background: var(--line);
}

.how-box .vote-off > .up,
.how-box .vote-off > .down {
	background: var(--key);
}

.how-box .vote-off svg.arrow {
	opacity: 0.9;
}

/* The card beside How it works and Privacy is a computer's (below). A phone keeps its one column. */
.side {
	display: none;
}

/* ------------------------------------------------------------------ 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 or a panel the small print is part of it, and starts at its own edge, in line with the words above. */
:is(.sheet, .panel) .fine {
	margin-top: var(--sp-4);
	padding: 0;
	border-radius: 0;
	background: none;
}

/* The sponsor form's way back up to its preview, a thumb's height. */
.see-it a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

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

/* The way in for an owner, at the foot of a business's page, wraps like a sentence. */
.biz-own a {
	white-space: normal;
}

/* "S = sample" stays whole on one line. */
.s-key {
	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);
}

/* A notice, such as the preview's on How it works, never ends on one word alone: on a 360 px phone "out." stood by itself. */
.notice {
	text-wrap: pretty;
}

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

.panel .notice {
	border-radius: var(--r-in);
	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: 600 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 and the box are a little smaller. */
@media (max-width: 374px) {
	:root {
		--pad: var(--sp-2);
		--c-box: 50px;
		--thumb: 36px;
		--g-star: 14px;
	}

	.top .logo {
		height: 20px;
	}

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

/* 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: 32px;
		--c-box: 64px;
		--key-w: 52px;
		--key-h: 46px;
		--thumb: 56px;
		--g-star: 18px;
	}

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

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


}

@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". A band of an old paper chart of a
  city, still and at full strength, with one card on it. The card is solid paper on the second step of
  lift, and round it lies a soft pool of the chart's own paper, so the streets calm down near the words
  and stay strong at the edges. Inside, it reads in one order: the logo, the headline with nothing under
  it, one thing to do, and the card's foot. On a first visit the one thing is "ZIP
  code or city", the field and Go in one search bar, and the foot is "See all 10 cities". For a returning
  visitor it is one yellow button to their city, and the foot, "Pick another city", holds the box and the
  list. At night the card is a lighter ink than the chart, not a shadow. The card and the paper below take
  a larger corner, 24, as the biggest surfaces on the site. The band is as tall as the card and a strip of
  chart above and below it, so the paper with what we do rises right under the card, not a screen later.
*/
.front,
.lost {
	/* How far the paper below rises over the foot of the chart, and the corner of the card and that paper. */
	--rise: var(--sp-5);
	--r-big: var(--sp-5);
	/* The card's width at most, and its padding. The words on the paper below line up with the card (.core). */
	--door: 400px;
	--door-pad: var(--sp-5);
	/* The paper below casts a soft shadow up onto the chart along its top edge, and none on the footer under it. */
	--sheet: 0 -10px 24px -12px rgba(19, 19, 20, 0.18);
	/* The far corners of the chart darken a touch, like a sheet that has been handled. */
	--chart-corner: rgba(19, 19, 20, 0.07);
}

@media (max-width: 359px) {
	.front,
	.lost {
		--door-pad: var(--sp-4);
	}
}

/* Wider: a bigger card, and on a computer's screen bigger still, so its headline stands on one line. */
@media (min-width: 700px) {
	.front,
	.lost {
		--door: 480px;
		--door-pad: var(--sp-6);
	}
}

@media (min-width: 900px) {
	.front,
	.lost {
		--door: 560px;
	}
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .front,
	:where(:root:not([data-theme="light"])) .lost {
		--sheet: inset 0 1px 0 rgba(254, 254, 254, 0.08), 0 -10px 24px -12px rgba(0, 0, 0, 0.7);
		--chart-corner: rgba(0, 0, 0, 0.35);
	}
}

:where(:root[data-theme="dark"]) .front,
:where(:root[data-theme="dark"]) .lost {
	--sheet: inset 0 1px 0 rgba(254, 254, 254, 0.08), 0 -10px 24px -12px rgba(0, 0, 0, 0.7);
	--chart-corner: rgba(0, 0, 0, 0.35);
}

.stage {
	/* The chart shown above the card, a little more on a taller screen, and the strip of it under the card. */
	--over: clamp(var(--sp-5), 11vh, 96px);
	--under: 40px;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	place-items: center;
	/* Below, that strip and the paper rising over the chart's foot. */
	padding: var(--over) var(--sp-4) calc(var(--under) + var(--rise));
	overflow: hidden;
}

/* 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;
}

/* What lies on the chart: only its handled corners. No tint over the chart itself. */
.chart {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.chart::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 130% 95% at 50% 46%, transparent 62%, var(--chart-corner) 100%);
}

/* Wider: an even band of chart above and below the card, the same on both sides of it. */
@media (min-width: 700px) {
	.stage {
		--over: clamp(var(--sp-6), 12vh, 112px);
		--under: var(--over);
		padding-right: var(--sp-5);
		padding-left: var(--sp-5);
	}
}

/*
  The card. Its padding is --card-pad on every side, and its foot, "See all 10 cities" or "Pick another
  city", runs the whole width under a hairline. The pool of paper round it is one more shadow, in the chart's own cream by day
  and the night chart's ink at night, so it follows the card wherever the card is and however tall it grows.
*/
.entry {
	--card-pad: var(--door-pad);
	--pool: rgba(255, 251, 239, 0.62);
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: min(100%, var(--door));
	padding: var(--card-pad) var(--card-pad) 0;
	border-radius: var(--r-big);
	background: var(--surface-2);
	box-shadow: var(--lift-2), 0 0 120px 56px var(--pool);
	color: var(--ink);
}

@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .entry {
		--pool: rgba(19, 19, 20, 0.5);
	}
}

:where(:root[data-theme="dark"]) .entry {
	--pool: rgba(19, 19, 20, 0.5);
}

.entry .wordmark {
	justify-self: start;
	margin-bottom: var(--sp-4);
}

.entry .logo {
	height: 40px;
}

/* The headline says what people find here, in a page title's size and weight, its lines kept even. The box stands right under it. */
.entry-head {
	margin: 0 0 var(--sp-5);
	color: var(--ink);
	font: 600 var(--fs-title)/1.15 var(--sans);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* On a page that leads nowhere, what to do, a step quieter, under that page's heading. */
.line {
	margin: 0 0 var(--sp-5);
	color: var(--soft);
	font: 400 var(--fs-body)/1.5 var(--sans);
	text-wrap: balance;
}

/* Go and the yellow button to a returning visitor's city are keys, like the vote buttons: a lip under the face, which flattens as it is pressed. */
.welcome-go {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	min-height: 56px;
	padding: 0 var(--sp-4);
	border-radius: 14px;
	background: var(--yellow);
	box-shadow: inset 0 -2px 0 rgba(19, 19, 20, 0.14);
	color: var(--on);
	font: 600 var(--fs-head)/1.2 var(--sans);
	text-decoration: none;
	transition:
		transform 0.08s ease-out,
		box-shadow 0.08s ease-out;
}

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

.welcome-go:active {
	box-shadow: inset 0 -1px 0 rgba(19, 19, 20, 0.14);
	transform: translateY(1px);
}

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

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

/* One search bar: the field and Go share one frame, with the field's 3:1 edge round both and a faint well inside. */
.zip-row {
	display: flex;
	padding: var(--sp-1);
	border-radius: 14px;
	background: var(--surface-2);
	box-shadow:
		inset 0 0 0 1px var(--field-edge),
		inset 0 1px 2px rgba(19, 19, 20, 0.06);
}

/* At night the field sinks below the card: the page's own ink. */
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .zip-row {
		background: var(--paper);
		box-shadow:
		inset 0 0 0 1px var(--field-edge),
		inset 0 1px 2px rgba(0, 0, 0, 0.3);
	}
}

:where(:root[data-theme="dark"]) .zip-row {
	background: var(--paper);
	box-shadow:
	inset 0 0 0 1px var(--field-edge),
	inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Big enough for a thumb. It takes a ZIP code or a city's name, so its letters keep their own spacing. */
.zip-field {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 var(--sp-3);
	border: 0;
	border-radius: var(--r-in);
	background: transparent;
	color: inherit;
	font: 600 var(--fs-big)/1 var(--sans);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

/* An example in the empty field: the quiet color of the sponsor page's sample words, lighter than a typed ZIP code. */
.zip-field::placeholder {
	color: var(--quiet);
	opacity: 1;
	font-weight: 400;
	letter-spacing: 0;
}

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

/* Where a browser can tell, the whole bar shows the focus and the error, round the field and Go together. */
@supports selector(:has(*)) {
	.zip-field:focus-visible {
		outline: 0;
	}

	.zip-row:has(.zip-field:focus-visible) {
		box-shadow: inset 0 0 0 2px var(--ink);
	}

	/* A ZIP code that could not be placed: the bar carries the error color, and focus rings it in ink inside. */
	.zip-row:has(.zip-field[aria-invalid="true"]) {
		box-shadow: inset 0 0 0 2px var(--coral);
	}

	.zip-row:has(.zip-field[aria-invalid="true"]:focus-visible) {
		box-shadow:
			inset 0 0 0 2px var(--ink),
			0 0 0 3px var(--coral);
	}
}

/* The page's one yellow action. */
.zip-go {
	flex: none;
	min-width: 72px;
	min-height: 48px;
	padding: 0 var(--sp-4);
	appearance: none;
	border: 0;
	border-radius: var(--r-key);
	background: var(--yellow);
	box-shadow: inset 0 -2px 0 rgba(19, 19, 20, 0.14);
	color: var(--on);
	font: 600 var(--fs-head)/1 var(--sans);
	cursor: pointer;
	transition:
		transform 0.08s ease-out,
		box-shadow 0.08s ease-out;
}

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

.zip-go:active {
	box-shadow: inset 0 -1px 0 rgba(19, 19, 20, 0.14);
	transform: translateY(1px);
}

.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 inside the bar. */
.entry-known .zip-go {
	background: var(--wash);
	box-shadow: none;
	color: inherit;
}

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

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

/*
  The card's foot, a whole-width row under a hairline with its words and the ▾ at its end: "See all 10
  cities" on a first visit, which lists the states, and a state its cities, as links; "Pick another
  city" for a returning visitor, which holds the box and that list. It needs no script.
*/
.towns-pick {
	margin: var(--sp-5) calc(-1 * var(--card-pad)) 0;
	border-top: 1px solid var(--edge);
}

.towns-open {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	min-height: 56px;
	padding: 0 var(--card-pad);
	border-radius: 0 0 var(--r-big) var(--r-big);
	color: var(--ink);
	font: 600 var(--fs-body)/1.2 var(--sans);
	list-style: none;
	cursor: pointer;
}

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

.towns-open:hover {
	background: var(--wash);
}

.towns-pick[open] .towns-open {
	border-radius: 0;
}

/* The ring is drawn inside the row, so it stays on the card. */
.towns-open:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: -4px;
}

.towns-open .caret {
	color: var(--ink);
	transition: transform 0.15s ease-out;
}

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

/* "Pick another city" holds the box, at the card's own edges, and the list under it, its rows on the same edges. */
.towns-more {
	padding: var(--sp-1) var(--card-pad) var(--sp-3);
}

.towns-more .towns-list {
	padding: var(--sp-3) 0 0;
}

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

/*
  On a page that leads nowhere, what went wrong is the card's heading, in the front door's headline's size and
  weight, its lines kept even, and what to do the line under it, in the public line's place and size.
*/
.lost .note {
	margin: 0 0 var(--sp-2);
	padding: 0;
	background: none;
	font: 600 var(--fs-title)/1.15 var(--sans);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* An address under a city's leads back to it, with the welcome's yellow button, under the heading. */
.lost-go {
	margin: var(--sp-3) 0 var(--sp-4);
}

/* A remembered city's button stands between what to do and the cities. */
.lost .welcome-go:not(.lost-go) {
	margin-bottom: var(--sp-4);
}

/*
  Then every city, the last thing in the card: its name in bold over its state in quiet words, as in the foot,
  in two columns filled down the first, so a state's cities stand together. Each is a thumb's height and more,
  the whole of it the link, with a faint wash under the pointer.
*/
.lost-places {
	margin: 0 calc(-1 * var(--sp-2)) var(--sp-4);
}

.lost-cities {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: var(--sp-2);
}

.lost-cities li {
	break-inside: avoid;
}

.lost-city {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 52px;
	padding: var(--sp-1) var(--sp-2);
	border-radius: var(--r-in);
	color: var(--ink);
	text-decoration: none;
}

.lost-city:hover {
	background: var(--wash);
}

.lost-city:focus-visible {
	outline-offset: -2px;
}

.lost-city-name {
	font: 600 var(--fs-body)/1.25 var(--sans);
}

.lost-city-state {
	color: var(--quiet);
	font: 400 var(--fs-small)/1.3 var(--sans);
}

/* The card lists every city, so the foot under it lists them no more: its logo, Listi's pages, the pill and the copyright stay. */
.lost .foot-places {
	display: none;
}

@media (min-width: 900px) {
	.lost .foot-top {
		padding-bottom: 0;
	}
}

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

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

/* Wider: a bigger card (--door), more room under the headline, and what to do on a page that leads nowhere a size up. */
@media (min-width: 700px) {
	.entry .wordmark {
		margin-bottom: var(--sp-5);
	}

	.entry .logo {
		height: 46px;
	}

	.entry-head {
		margin-bottom: var(--sp-6);
	}

	.line {
		margin-bottom: var(--sp-6);
		font-size: var(--fs-head);
	}
}

/*
  A computer's screen: what went wrong on a page that leads nowhere at 40 to 48 px, on one line, and the
  headline at 40, so its words stand in two even lines on every computer.
*/
@media (min-width: 900px) {
	.entry-head,
	.lost .note {
		font-size: clamp(40px, 3.2vw, 48px);
		letter-spacing: -0.025em;
	}

	.entry-head {
		font-size: 40px;
	}
}

/*
  Forget my city, on the Privacy page under the cookie it clears. The front page's card has no button for
  it: picking another city already replaces the one remembered. A plain form, so it works without the
  script, whose button reads as a link and is as tall as a thumb.
*/
.forget {
	margin: 0;
}

.forget button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	appearance: none;
	border: 0;
	background: none;
	color: var(--ink);
	font: 600 var(--fs-body)/1.2 var(--sans);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

/* ------------------------------------------------------------------ Who we are, what we do for local businesses, and AI agents */

/*
  Right under the card one sheet of paper rises over the chart, rounded at the top. Who we are, in the core
  record's own words, then four short points on what we do for local businesses, each a picture, a bold lead
  and one sentence, with the way to the sponsor page after them, then a paragraph on AI agents with a small
  link under it, in one column, with nothing between a reader and the words. On a phone the column is the
  card's width; wider, its words start and end where the card's words do. The sheet slides over the still
  chart as the page scrolls, so no street runs through a word. The footer's paper carries on under it to
  the end of the page. On a computer's screen the three stand in one white card on warm paper (below).
*/
.core {
	/* The four points' pictures, and the edge of their words, where the link to the sponsor page starts too. */
	--pic: 36px;
	position: relative;
	/* Over the card's pool of paper, which reaches this far down, so the sheet's top edge stays clean. */
	z-index: 2;
	margin: calc(-1 * var(--rise)) 0 0;
	padding: calc(var(--sp-6) + var(--sp-3)) max(var(--sp-4), calc(50% - var(--door) / 2)) var(--sp-6);
	border-radius: var(--r-big) var(--r-big) 0 0;
	background: var(--paper);
	box-shadow: var(--sheet);
}

/* The three parts, one under the other. On a computer's screen, the white card (below). */
.core-card {
	display: grid;
	gap: var(--sp-6);
}

@media (max-width: 359px) {
	.core {
		padding-right: var(--sp-3);
		padding-left: var(--sp-3);
	}
}

@media (min-width: 700px) {
	.core {
		padding-right: max(var(--sp-4), calc(50% - var(--door) / 2 + var(--door-pad)));
		padding-left: max(var(--sp-4), calc(50% - var(--door) / 2 + var(--door-pad)));
	}
}

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

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

/* The four points: no bullets. Each picture stands at the column's edge, level with its first line, and the words keep their own edge beside it. */
.core-points {
	margin: 0;
	padding: 0;
	list-style: none;
}

.core-points li {
	display: grid;
	grid-template-columns: var(--pic) minmax(0, 1fr);
	column-gap: var(--sp-3);
	align-items: start;
}

.core-points li + li {
	margin-top: var(--sp-4);
}

.core-pic.icon {
	width: var(--pic);
	height: var(--pic);
	margin-top: calc((1.65em - var(--pic)) / 2);
}

/* After the four points, the way to the sponsor page, at their words' edge: bold, with its arrow, a thumb's height. */
.core-part .core-go {
	margin-top: var(--sp-3);
	padding-left: calc(var(--pic) + var(--sp-3));
	font: 600 var(--fs-head)/1.3 var(--sans);
}

.core-go a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	color: var(--ink);
	text-decoration: none;
}

.core-go a:hover {
	text-decoration: underline;
}

.core-go .go {
	margin: 0;
}

/* The small link under "Made for AI agents too", in small print and a thumb's height. */
.core-part .core-link {
	margin-top: var(--sp-1);
	color: var(--quiet);
	font: 400 var(--fs-small)/1.5 var(--sans);
}

.core-link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

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

/*
  A computer's screen, from 1100 px: the sheet under the card is the warm paper the other pages stand on, and
  the three parts are one white card on it, as wide as the footer's card under it and level with its edges
  and its words. Two columns share the card: who we are, then the AI agents, at the left, and what we do for
  local businesses, with its four pictures and the way to the sponsor page, at the right, each column about as
  long as the other. 32 above the card and 32 under it, to the footer's card, the gap between cards on every
  page. Below 1100 px nothing changes.
*/
@media (min-width: 1100px) {
	.core {
		padding: var(--sp-6) max(var(--desk-pad), calc(50% - var(--desk) / 2 + var(--desk-pad))) 0;
		background: var(--ground);
	}

	.core-card {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"who business"
			"agents business";
		gap: 40px 96px;
		padding: 40px var(--sp-6) var(--sp-6);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.core-who {
		grid-area: who;
	}

	.core-business {
		grid-area: business;
	}

	.core-agents {
		grid-area: agents;
	}

	/* Each point's bold lead stands on its own line, level with its picture, and its sentence under it, so the column is as long as the other. */
	.core-say b {
		display: block;
	}

	/* No word left alone on the last line of a point or a paragraph. */
	.core-part p,
	.core-points li {
		text-wrap: pretty;
	}
}

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

/*
  The foot of every page: plain labels on paper, never a slogan. The logo and Listi's own pages at the top;
  then every city in one even grid, its name in bold over its state in quiet words, two columns on a phone,
  filled down the first and then the second, so a state's cities stand together, no column runs longer than
  the next and every row lines up with its neighbour; then the pill of System, Light and Dark, and the
  copyright line last. A thin rule parts the three. On a computer (below) the logo, the pages and the cities
  are one white card on the warm paper, and the copyright and the pill share one line under it. The paper
  keeps every word off the city's map.
*/
.foot {
	margin-top: var(--gap);
	background: var(--paper);
	box-shadow: inset 0 1px 0 var(--edge);
	color: var(--ink);
	font-size: var(--fs-small);
}

.front .foot,
.lost .foot {
	margin-top: 0;
}

/*
  24 above the logo, so the foot never starts cramped, and 16 at the sides on every page, the front door's
  included; the last line stays clear of the bar at the foot of a phone's screen, where the page reaches under it.
*/
.foot .col {
	padding: var(--sp-5) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
}

.foot ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.foot a {
	color: var(--ink);
	text-decoration: none;
}

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

/* The logo on a line of its own, Listi's pages on the next. The logo is a thumb's height to press, drawn 24 tall. */
.foot-top {
	display: grid;
	justify-items: start;
}

.foot-logo {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
}

.foot-logo .logo {
	height: 24px;
}

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

/* Each link is a thumb's size, at least 44 by 44. */
.foot-links a {
	display: flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	font: 400 var(--fs-body)/1.2 var(--sans);
}

.foot-links a:hover,
.foot-city:hover .foot-city-name {
	text-decoration: underline;
}

.foot-links a[aria-current="page"] {
	font-weight: 600;
}

.foot-places {
	padding-top: var(--sp-4);
	border-top: 1px solid var(--edge);
}

.foot-head {
	margin: 0 0 var(--sp-1);
	color: var(--quiet);
	font: 600 var(--fs-small)/20px var(--sans);
}

.foot-cities {
	columns: 2;
	column-gap: var(--sp-4);
}

.foot-cities li {
	break-inside: avoid;
	padding-bottom: var(--sp-1);
}

/* A city's name over its state: the two lines together are a thumb's height, and the whole of them is the link. */
.foot-city {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 44px;
}

.foot-city-name {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	font: 600 var(--fs-body)/1.25 var(--sans);
}

.foot-city-state {
	color: var(--quiet);
	font: 400 var(--fs-small)/1.3 var(--sans);
}

/* The city in view carries the header's pin after its name. */
.foot-city .pin {
	width: 16px;
	height: 16px;
}

/* The pill, then the copyright line under it. */
.foot-base {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-3);
	padding-top: var(--sp-4);
	margin-top: var(--sp-4);
	border-top: 1px solid var(--edge);
}

.foot-copy {
	margin: 0;
	color: var(--quiet);
	font: 400 var(--fs-small)/1.3 var(--sans);
}

/*
  System, Light or Dark: a small pill of three keys, each with its picture and its word, as wide as its words
  need and never stretched: on its own over the copyright line on a phone, at the right of the line under the
  foot's card on a computer. Each key is a thumb's height, and the three are one width. The one in use is
  raised, as on a phone's own switch, in ink words; the other two are quiet words on the track.
*/
.theme {
	margin: 0;
}

.theme-set {
	display: inline-grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	gap: 2px;
	padding: 2px;
	border-radius: 999px;
	background: rgba(19, 19, 20, 0.07);
	box-shadow: inset 0 0 0 1px var(--edge);
}

.theme-set button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: 0 var(--sp-3);
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--quiet);
	font: 600 var(--fs-small)/1 var(--sans);
	white-space: nowrap;
	cursor: pointer;
}

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

.theme-set button:hover {
	color: var(--ink);
}

.theme-set button[aria-pressed="true"] {
	background: var(--surface-3);
	color: var(--ink);
	box-shadow: 0 0 0 1px var(--edge), var(--float);
}

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

/* At night the track is a shade darker than the foot it sits in, so the raised key stands out lighter. */
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .theme-set {
		background: rgba(0, 0, 0, 0.28);
	}
}

:where(:root[data-theme="dark"]) .theme-set {
	background: rgba(0, 0, 0, 0.28);
}

/*
  On a phone or a tablet the foot is short: about 354 px on a phone 390 wide, where it was 543. The logo, then
  Listi's four pages on the next line, since Terms joined them on November 30, 2026 and they no longer fit beside
  it; every city stands in three columns, five on a tablet, its name over its state in smaller words; the pill and
  the copyright share the last line. The rules between them have a little less air, so the second line costs
  nothing. "Cities" is said to a screen reader only, since the names say what they are. Every link stays a thumb's
  height. On a narrower phone, what no longer fits on a line goes under it, whole. A computer's foot (below) is not
  changed by any of this.
*/
@media (max-width: 899px) {
	.foot .col {
		padding-top: var(--sp-2);
		padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
	}

	.foot-card {
		gap: 0;
	}

	.foot-top {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		column-gap: var(--sp-4);
	}

	.foot-links {
		column-gap: var(--sp-4);
	}

	.foot-places {
		margin-top: var(--sp-1);
		padding-top: var(--sp-1);
	}

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

	/* Filled row by row, in the order of their states, so no column runs more than one longer than the next. */
	.foot-cities {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--sp-2);
		columns: auto;
	}

	.foot-cities li {
		padding-bottom: 0;
	}

	/* A long name with the pin after it, on a narrow phone, puts the pin under the name rather than past the column. */
	.foot-city-name {
		flex-wrap: wrap;
		column-gap: 3px;
		font-size: 14px;
	}

	.foot-city-state {
		font-size: 12px;
	}

	.foot-city .pin {
		width: 12px;
		height: 12px;
	}

	.foot-base {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-2) var(--sp-3);
		margin-top: var(--sp-1);
		padding-top: var(--sp-2);
	}

	/* The keys a little narrower, so the pill and the copyright fit on one line. */
	.theme-set button {
		gap: 6px;
		padding: 0 var(--sp-2);
	}
}

/* A tablet has room for the cities in two rows of five. */
@media (min-width: 600px) and (max-width: 899px) {
	.foot-cities {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: var(--sp-4);
	}
}

/* The narrowest phones keep two columns, so the longest names stand whole. */
@media (max-width: 359px) {
	.foot-cities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sp-4);
	}
}

/* ------------------------------------------------------------------ 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;
	}
}

/* ================================================================== A computer's screen: 900 px and wider */

/*
  A phone shows one column, and nothing in this part changes it. From 900 px wide the same pages take the
  screen the way a printed guide takes a spread: an ink bar across the top with the logo, the city and the
  weather; the city's chart only behind the title, fading into warm paper; the title big at the left, with
  the category squares at its right; then white cards on a grid of 12 columns, 1200 px wide at most. A list's
  rows run on one line: the place, a bigger photo, the name, the stars, where the business is and its price
  with a few words about it, the arrows, and the score. The sponsors stand right under a list's title, across
  the list, as on a phone. From 1200 px a city's categories go three across, and a business's details sit
  beside where it stands. The category squares keep their own motion; this part only places and sizes them.
*/

/* The line about a business under its name, shown only on the wide rows below. */
.row-about {
	display: none;
}

@media (min-width: 900px) {
	:root {
		/* Warm paper, the ground the cards stand on, as in the wiki. */
		--ground: #f7f3e8;
		--desk: 1200px;
		--desk-pad: 32px;
		--desk-gap: 32px;
		/* The one size bigger than the phone's six: a page's title on a computer. */
		--fs-display: clamp(40px, 4.2vw, 56px);
		/* A card's shadow on warm paper: softer than --float, which lifts a panel off the chart. */
		--card: 0 1px 2px rgba(19, 19, 20, 0.05), 0 8px 24px rgba(19, 19, 20, 0.06);
		/* The vote keys a mouse presses: smaller than a thumb's. */
		--key-w: 44px;
		--key-h: 40px;
		--g-star: 16px;
	}

	@media (prefers-color-scheme: dark) {
		:root:where(:not([data-theme="light"])) {
			--ground: #131314;
			--card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.3);
		}
	}

	:root:where([data-theme="dark"]) {
		--ground: #131314;
		--card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.3);
	}

	body.city,
	body.list,
	body.business,
	body.sponsor,
	body.about {
		background: var(--ground);
	}

	/* ---------------------------------------------------------------- The bar */

	/* Ink across the whole screen, by day and at night, its contents on the page's 1200. */
	header.top {
		padding: 0;
		background: #131314;
		color: #fefefe;
	}

	@media (prefers-color-scheme: dark) {
		:where(:root:not([data-theme="light"])) header.top {
			background: #1c1c1f;
			box-shadow: inset 0 -1px 0 rgba(254, 254, 254, 0.06);
		}
	}

	:where(:root[data-theme="dark"]) header.top {
		background: #1c1c1f;
		box-shadow: inset 0 -1px 0 rgba(254, 254, 254, 0.06);
	}

	header.top > .col.top-row {
		max-width: var(--desk);
		min-height: 68px;
		padding: 0 var(--desk-pad);
	}

	/* On the bar the logo needs no block of its own: the bar is its ink. */
	header.top .wordmark {
		min-height: 44px;
		padding: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		color: #fefefe;
	}

	header.top .logo {
		height: 30px;
	}

	/*
	  The city's bar keeps its shape on the ink: a faint paper box at the right, only as wide as the city's name
	  and weather, with a paper "Change" key 16 after them, so no empty stretch opens in the middle of the bar.
	*/
	header.top .place {
		flex: 0 1 auto;
	}

	header.top .place-bar {
		min-height: 48px;
		padding-left: var(--sp-4);
		background: rgba(254, 254, 254, 0.07);
		box-shadow: inset 0 0 0 1px rgba(254, 254, 254, 0.14);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		color: #fefefe;
	}

	header.top .place-bar:hover {
		background: rgba(254, 254, 254, 0.12);
	}

	header.top .weather {
		color: rgba(254, 254, 254, 0.7);
		font-size: var(--fs-small);
	}

	header.top .sky {
		width: 15px;
		height: 15px;
	}

	header.top .place-change {
		margin-left: var(--sp-2);
		border-color: transparent;
		background: #fefefe;
		color: #131314;
	}

	header.top .place-change::after {
		background: rgba(0, 0, 0, 0.5);
	}

	header.top .place-bar:hover .place-change {
		background: #e5e5e5;
	}

	header.top .place-pick[open] > .place-bar .place-change {
		border-color: transparent;
		background: #d6d6d6;
		color: #131314;
	}

	/* A focus ring on the bar is paper, so it shows on the ink; in the list of cities it is the words' color again. */
	header.top :focus-visible {
		outline-color: #fefefe;
	}

	/* The list opens under the bar, at its right edge, 480 wide, room for its two columns. */
	header.top .place-list {
		right: var(--desk-pad);
		left: auto;
		width: 480px;
		color: var(--ink);
	}

	/* Every city in two columns, A to Z down the first and then the second, so ten cities stand in five rows. */
	.towns {
		column-gap: var(--sp-1);
		columns: 2;
	}

	.towns > li {
		break-inside: avoid;
	}

	header.top .place-list :focus-visible {
		outline-color: var(--ink);
	}

	.skip {
		background: #fefefe;
		color: #131314;
		box-shadow: var(--float);
	}

	/* ---------------------------------------------------------------- The chart, in a band across the top */

	.city .backdrop,
	.list .backdrop,
	.business .backdrop,
	.sponsor .backdrop,
	.about .backdrop {
		position: absolute;
		top: 0;
		height: 480px;
		-webkit-mask-image: linear-gradient(#000 40%, transparent);
		mask-image: linear-gradient(#000 40%, transparent);
	}

	.city .backdrop-map,
	.list .backdrop-map,
	.business .backdrop-map,
	.sponsor .backdrop-map,
	.about .backdrop-map {
		top: -240px;
		opacity: 0.55;
	}

	@media (prefers-color-scheme: dark) {
		:where(:root:not([data-theme="light"])) .city .backdrop-map,
		:where(:root:not([data-theme="light"])) .list .backdrop-map,
		:where(:root:not([data-theme="light"])) .business .backdrop-map,
		:where(:root:not([data-theme="light"])) .sponsor .backdrop-map,
		:where(:root:not([data-theme="light"])) .about .backdrop-map {
			opacity: 0.6;
		}
	}

	:where(:root[data-theme="dark"]) .city .backdrop-map,
	:where(:root[data-theme="dark"]) .list .backdrop-map,
	:where(:root[data-theme="dark"]) .business .backdrop-map,
	:where(:root[data-theme="dark"]) .sponsor .backdrop-map,
	:where(:root[data-theme="dark"]) .about .backdrop-map {
		opacity: 0.6;
	}

	/* ---------------------------------------------------------------- The grid */

	.city .col,
	.list .col,
	.business .col,
	.sponsor .col {
		max-width: var(--desk);
		padding: 0 var(--desk-pad);
	}

	/*
	  Twelve columns. A list's sheet, a city's sheet and its cards, and a business's sheet give their parts
	  to the grid, so the title, the rows, the sponsor and the cards each take their own place in it. The
	  sheets were only a surface for the phone's one column; nothing about them is read out.
	*/
	.city main > .col,
	.list main > .col,
	.business main > .col,
	.sponsor main > .col {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--desk-gap);
		align-items: start;
		padding-top: var(--sp-6);
	}

	.list .sheet,
	.city .sheet,
	.city .trios,
	.business .sheet {
		display: contents;
	}

	.city main > .col > *,
	.list main > .col > *,
	.business main > .col > *,
	.sponsor main > .col > *,
	.city .sheet > *,
	.list .sheet > *,
	.business .sheet > * {
		grid-column: 1 / -1;
		margin-top: 0;
	}

	/* A notice (votes paused, a vote that did not go through) is a card of its own, above what it is about. */
	.list .sheet > .notice,
	.city .sheet > .notice,
	.business .sheet > .notice,
	.business .biz-side > .notice,
	.city main > .col > .far {
		order: -1;
		margin: 24px 0 0;
		background: var(--surface);
		box-shadow: var(--card);
	}

	/* ---------------------------------------------------------------- The title, with the categories beside it */

	/* The title on a white card of its own, as tall as the two rows of squares beside it: no words stand on the chart. */
	.list .sheet > .sheet-head,
	.city .sheet > .sheet-head {
		display: flex;
		flex-direction: column;
		justify-content: center;
		grid-row: 1;
		grid-column: 1 / 6;
		align-self: stretch;
		margin: 0;
		padding: var(--sp-5);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
		font: 600 var(--fs-display)/1.02 var(--sans);
		letter-spacing: -0.035em;
		text-wrap: balance;
		-webkit-hyphens: auto;
		hyphens: auto;
	}

	/* The card holds the title in the card's own type, and under it how the order is made. */
	.sheet-head > h1.tag {
		margin: 0;
		font: inherit;
		letter-spacing: inherit;
	}

	.sheet-head > .sheet-sub {
		margin-top: var(--sp-3);
		font-size: var(--fs-body);
		letter-spacing: 0;
		-webkit-hyphens: manual;
		hyphens: manual;
	}

	/* The city in a list's title, under it in quiet words. */
	.sheet-head .tag-where {
		display: block;
		margin-top: var(--sp-2);
		font: 600 var(--fs-big)/1.2 var(--sans);
		letter-spacing: -0.01em;
	}

	/* A list's card is as tall as the squares beside it. */
	.list .sheet-head > .sheet-sub {
		margin-top: var(--sp-2);
	}

	/* Each row keeps 4 above and below for a square's focus ring, so the squares line up with the title card's edges. */
	.list main > .col > .cats,
	.city main > .col > .cats {
		grid-row: 1;
		grid-column: 6 / -1;
		margin: calc(-1 * var(--sp-1)) 0;
		padding: 0;
		overflow: visible;
		border-radius: 0;
		background: none;
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	/*
	  The rows fade out over 72 px at both ends, and a square rests where the fade ends (--cats-rest, which
	  scripts/check-devices.mjs reads), so none ever looks cut. At most 7 of the 12 columns wide, the window
	  stays inside the 720 px the copies of the squares fill.
	*/
	.cats-row {
		--cats-rest: 72px;
		-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--cats-rest), #000 calc(100% - var(--cats-rest)), transparent);
		mask-image: linear-gradient(to right, transparent, #000 var(--cats-rest), #000 calc(100% - var(--cats-rest)), transparent);
	}

	.cats-track {
		margin-left: var(--cats-rest);
	}

	.cats-half > .cats-track {
		margin-left: calc(var(--cats-rest) + (var(--sq) + var(--sp-2)) / 2);
	}

	/*
	  White squares on the chart, like stickers; the category in view stays yellow. A computer has room for squares:
	  each category's picture above its name, the two together in the middle of an 80 px square.
	*/
	.cats .chip {
		flex-direction: column;
		justify-content: center;
		gap: var(--sp-1);
		height: var(--sq);
		padding: var(--sp-1);
		border-radius: var(--r-in);
		background: var(--surface);
		box-shadow: 0 1px 2px rgba(19, 19, 20, 0.12);
		font-size: var(--fs-small);
		text-align: center;
	}

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

	.cats .chip:hover {
		background: var(--surface);
		box-shadow: inset 0 0 0 1.5px var(--ink);
	}

	.cats .chip[aria-current] {
		background: var(--yellow);
	}

	@media (prefers-reduced-motion: reduce) {
		.cats-track {
			padding-right: var(--cats-rest);
		}
	}

	/* ---------------------------------------------------------------- A list */

	/* No gap between the grid's rows: each part keeps its own space above it, so an empty row costs nothing. */
	.list main > .col {
		grid-template-rows: auto repeat(5, auto) 1fr;
	}

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

	/* An open spot's line stands on the chart here, as a list's parts do, so it is a slim bar of its own, as tall as its words. */
	.sheet > .spot-open {
		justify-self: start;
		margin-top: var(--sp-5);
		padding: 10px var(--pad);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

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

	/* A store's address: the list's title waits behind the black bar, then rides as wide as the list's card, its words where the rows' start. */
	html:has(.title-pin) {
		--pin: 56px;
	}

	.title-pin {
		width: calc(100% - 2 * var(--desk-pad));
		max-width: calc(var(--desk) - 2 * var(--desk-pad));
		margin: calc(-1 * var(--pin)) auto 0;
		padding: 0 var(--sp-5);
		font-size: var(--fs-big);
	}

	.list .sheet > .fine {
		margin-top: 16px;
		padding: 0 var(--sp-1);
	}

	.list .sheet > .cat-nav {
		margin-top: var(--sp-5);
	}

	.cat-go {
		min-height: 64px;
		border-width: 1px;
		background: var(--surface);
	}

	.cat-go::after {
		top: calc(100% + 1px);
	}

	/* The rows and a business's standings, on one white card. */
	.list .sheet > .rows,
	.business .sheet > .standings,
	.business .biz-stands > .standings,
	.business .sheet > .owner-stands > .standings {
		padding: var(--sp-1) var(--sp-5);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	/*
	  A list is a container, and its rows take the computer's sizes when it is at least 600 px wide. A narrower
	  list, such as a city's card or the sponsor page's preview beside its form, keeps the phone's.
	*/
	.rows {
		container: rows / inline-size;
	}

	@container rows (min-width: 600px) {
		/*
		  On a computer's list each row is one band: the photo, 72, the place and the name, 24, with the line about the
		  business under the name, at the left, and the box, 288 wide, at the right end, all in the middle of the band's
		  height. The two equal rows above and below the name keep it in the middle while "1." stays on its line.
		*/
		.rows > .row {
			--thumb: 72px;
			grid-template-columns: calc(var(--thumb) + 18px) auto minmax(0, 1fr) auto;
			grid-template-rows: 1fr auto 1fr auto;
			grid-template-areas:
				"thumb . . line"
				"thumb rank who line"
				"thumb . . line"
				"drawer drawer drawer drawer";
			align-items: center;
			padding: 20px 0;
		}

		.rows > .row > .rank,
		.rows .who h3 {
			font-size: 24px;
			line-height: 1.2;
			letter-spacing: -0.015em;
		}

		.rows > .row > .rank,
		.rows > .row > .card > .who {
			align-self: baseline;
		}

		.rows > .row > .card > .score-line {
			margin: 0 0 0 18px;
			container-type: normal;
		}

		.rows .box {
			--w: 288px;
		}

		/* A row's panel opens under its box. */
		.rows .drawer {
			margin: var(--sp-3) 0 0;
		}

		/* On a wide list a store's dropdown has more air: a bigger photo, and its labels in a wider column. */
		.rows .drawer.store {
			margin-bottom: var(--sp-2);
		}

		.store-head {
			gap: var(--sp-4);
			padding: var(--sp-5);
		}

		.store-place {
			padding: var(--sp-4) var(--sp-5) 0;
		}

		.store-place + .store-head {
			padding-top: var(--sp-3);
		}

		.store-photo {
			width: 120px;
			height: 120px;
		}

		.store-photo > .icon {
			width: 80px;
			height: 80px;
		}

		.store-fact {
			grid-template-columns: 96px minmax(0, 1fr);
			padding: var(--sp-3) var(--sp-5);
		}

		.store-actions {
			grid-auto-columns: minmax(0, 220px);
			padding: var(--sp-4) var(--sp-5) var(--sp-3);
		}

		.store-note,
		.store-link {
			padding-right: var(--sp-5);
			padding-left: var(--sp-5);
		}
	}

	/* The line about the business, once a row has room for it beside the arrows. */
	@container rows (min-width: 680px) {
		.rows .row-about {
			display: block;
			max-width: 60ch;
			margin: 6px 0 0;
			color: var(--quiet);
			font: 400 var(--fs-small)/1.45 var(--sans);
		}
	}

	.row-where {
		color: var(--ink);
		font-weight: 600;
	}

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

	/* A card of its own. A narrow one, such as the sponsor page's preview beside its form, keeps the phone's card. */
	.slot {
		--c-place: 0px;
		--slot-pad: 20px;
		padding: 14px calc(var(--slot-pad) - 1px);
		border-radius: var(--r);
		box-shadow: var(--card);
	}

	.slot .spot-name {
		font-size: var(--fs-head);
	}

	/*
	  A card as wide as a list, at the top of its rows or in the sponsor page's preview: the link at the left, the
	  picture, "Sponsor", the name and its line, and at the right, where the rows' containers end, the container
	  with the star in its middle and the Google pill beside it. The offer runs under them, from the name's edge.
	*/
	@container slot (min-width: 560px) {
		/* At the top of a list's rows the card's photo and box stand over the rows' photos and boxes (the rows' card is 4 wider inside). */
		.list .slot > * {
			--c-place: calc(var(--sp-5) - var(--slot-pad));
		}

		/* In the sponsor page's preview the picture stands over the pictures of the three rows under it. */
		.sponsor .slot > * {
			--c-place: calc(48px - var(--slot-pad));
		}

		:is(.list, .sponsor) .slot .spot-card {
			--thumb: 96px;
			grid-template-columns: minmax(0, 1fr) auto;
			grid-template-areas:
				"go line"
				"offer offer";
			align-items: center;
			column-gap: 20px;
			padding: 0 calc(2 * var(--sp-5) - var(--slot-pad)) 0 var(--c-place);
		}

		:is(.list, .sponsor) .slot .spot-go {
			gap: 20px;
		}

		:is(.list, .sponsor) .slot .spot-card > .score-line {
			gap: var(--sp-3);
			margin: 0;
			container-type: normal;
		}

		/* At the right of the card, where the rows' boxes end, the box is a computer's: 288 wide. */
		:is(.list, .sponsor) .slot .box {
			--w: 288px;
		}


		:is(.list, .sponsor) .slot .spot-name {
			font-size: 20px;
		}

		/* The sponsor's own line fills the card's middle, as a business's description does on a list. */
		:is(.list, .sponsor) .slot .spot-line {
			max-width: 60ch;
			font-size: var(--fs-body);
		}

		:is(.list, .sponsor) .slot .spot-offer {
			margin-left: calc(var(--thumb) + 20px);
			font-size: var(--fs-body);
		}
	}

	/* ---------------------------------------------------------------- The Platinum sponsor's banner */

	/* One line across the page under the title: the link, the mark with "Sponsor", the name and its line, and the offer at the right. */
	.plat {
		--thumb: 48px;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: var(--sp-5);
		padding: 13px 19px;
		border-radius: var(--r);
		box-shadow: var(--card);
	}

	.plat-go {
		gap: var(--sp-3);
	}

	.plat-mark {
		border-radius: var(--r-in);
		font-size: var(--fs-body);
	}

	.plat-say {
		display: grid;
		gap: 2px;
	}

	.plat-name {
		font-size: var(--fs-head);
	}

	.plat-line {
		font-size: var(--fs-body);
	}

	.plat .spot-offer {
		margin: 0;
		padding: 0 0 0 var(--sp-5);
		border-top: 0;
		border-left: 1.5px dashed var(--dash);
		font-size: var(--fs-body);
	}

	.plat .spot-offer > .ad-offer-what {
		flex: 0 1 auto;
		max-width: 22em;
	}

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

	.business .sheet > .plat,
	.business .biz-side > .plat {
		margin-top: var(--sp-5);
	}

	/* ---------------------------------------------------------------- A city */

	.city main > .col {
		row-gap: var(--desk-gap);
	}

	/* The sponsor's row across the page, as on a list, then one card per category: two across, three from 1200 px. */
	.city .trio {
		grid-column: span 6;
		align-self: stretch;
	}

	/* 16 inside, so each row's container and Google pill share its second line with the five stars whole. */
	.city .trio {
		padding: var(--sp-4);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.trio-head a {
		font-size: var(--fs-big);
		letter-spacing: -0.01em;
	}



	.city .sheet > .fine {
		margin: 0;
		padding: 0 var(--sp-1);
	}

	/* ---------------------------------------------------------------- A business */

	.business main > .col {
		grid-template-rows: auto auto repeat(5, auto) 1fr;
	}

	.business .sheet > .back {
		grid-row: 1;
	}

	/* An award's page and its owner's page have no way back above the card, so the card starts at the top, 32 px under the header as on every page, and the owner's link to the business stays at the end. */
	.business .sheet:is(.award, .owner) > .biz-head {
		grid-row: 1;
		margin-top: 0;
	}

	.business .sheet.owner > .back {
		grid-row: auto;
		margin-top: var(--sp-4);
	}

	.business .sheet.owner > .biz-info {
		margin-top: 0;
	}

	/* The founding offer's paragraphs and its button, apart as on a phone. */
	.business .sheet.owner > :is(.lede, .biz-google) {
		margin-top: var(--sp-3);
	}

	/* The sticker's band reads at the size of the small print beside a name this big. */
	.award-band {
		margin-bottom: var(--sp-3);
		padding: 6px var(--sp-3);
		font-size: var(--fs-small);
	}

	/* How to win is a card of its own, as the picture under it is, so no words stand on the chart. */
	.business .sheet.owner > .owner-win {
		margin-top: var(--sp-5);
		padding: var(--sp-5);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.business .sheet.owner > .owner-win > .tag {
		margin-top: 0;
		font-size: var(--fs-big);
	}

	.counts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.counts-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.count-n {
		font-size: 40px;
	}

	/* A business's chart fades out above "Where it stands", which stands on plain paper under the card. */
	.business .backdrop {
		height: 420px;
	}

	/* Its photo and its name, big, on a white card, from its top, so the S stays on the photo's corner however long the name. */
	.business .sheet > .biz-head {
		--hero-pad: var(--sp-5);
		grid-row: 2;
		align-items: start;
		gap: var(--desk-gap);
		margin-top: var(--sp-3);
		padding: var(--hero-pad);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.business .thumb.thumb-big {
		width: 200px;
		height: 200px;
		border-radius: var(--r-in);
	}

	.biz-head h1 {
		font: 700 var(--fs-display)/1.04 var(--sans);
		letter-spacing: -0.035em;
		text-wrap: balance;
	}

	.business .biz-head .meta {
		margin-top: var(--sp-2);
		color: var(--ink);
		font-size: var(--fs-head);
	}

	.business .biz-google {
		margin-top: 18px;
	}

	/* The buttons, the address and the hours stand under the name, beside the photo. */
	.business .biz-page > .biz-head {
		display: grid;
		grid-template-columns: 200px minmax(0, 1fr);
		row-gap: var(--sp-4);
	}

	.biz-page > .biz-head > .thumb {
		grid-row: 1 / span 4;
	}

	/* A business's own page keeps its hours on a card of their own, so its card holds the name, the buttons and the note under them. */
	.business .biz-page:not(.award, .owner) > .biz-head > .thumb {
		grid-row: 1 / span 3;
	}

	.biz-page > .biz-head > :is(.biz-name, .biz-actions, .biz-note, .biz-when) {
		grid-column: 2;
	}

	/* On the owner's page the week of counts fills the card beside the photo, under the name, where it stood empty. */
	.biz-page > .biz-head > .owner-week {
		grid-column: 2;
	}

	.biz-page .biz-actions {
		max-width: 480px;
	}

	/* The S, as a small paper tab on the photo's corner. */
	.business .biz-head .s-mark {
		top: calc(var(--hero-pad) + var(--sp-2));
		right: auto;
		left: calc(var(--hero-pad) + 200px - 26px);
		padding: 3px 6px;
		border-radius: 6px;
		background: var(--surface);
		color: var(--ink);
	}

	.business .sheet > .tag,
	.business .biz-stands > .tag,
	.business .sheet > .owner-stands > .tag {
		margin: var(--sp-6) 0 var(--sp-3);
		font-size: var(--fs-big);
	}

	/* Its hours on a white card of their own, under its card, and beside it on a wide screen. */
	.business .biz-side > .biz-when {
		margin-top: var(--sp-5);
		padding: var(--sp-5);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.business .sheet > .biz-info,
	.business .sheet > .biz-empty {
		margin-top: var(--sp-5);
		padding: var(--sp-5);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.business .sheet > .biz-ad,
	.business .biz-side > .biz-ad {
		margin-top: var(--sp-5);
		padding: var(--sp-5);
		border-radius: var(--r);
		box-shadow: var(--card);
	}

	.business .sheet > .fine {
		margin-top: 16px;
		padding: 0 var(--sp-1);
	}

	/* ---------------------------------------------------------------- The sponsor page */

	/*
	  One white sheet on the warm paper, narrower than a list, with plenty of room: the sentence large at the
	  left, Gold and Platinum under it, the spot's card with the preview at the left and what is included and the
	  next step at the right, the town's lists seven across, the towns five across, then the promises and the
	  figures three across, the belt of marks from edge to edge, and the questions two across.
	*/
	.sponsor main > .col > .pitch {
		--part: 64px;
		justify-self: center;
		width: 100%;
		max-width: 1040px;
		padding: 40px 56px 56px;
		border-radius: var(--r);
		box-shadow: var(--card);
	}

	.buy-say {
		max-width: 860px;
		font-size: 46px;
		line-height: 1.2;
	}

	.buy-hero .lede {
		font-size: var(--fs-head);
	}

	.tier-switch {
		max-width: 640px;
		gap: var(--sp-3);
	}

	.tier-pick {
		padding: calc(var(--sp-4) - 1px);
	}

	.tier-say {
		font-size: var(--fs-head);
	}

	.tier-cost {
		font-size: var(--fs-body);
	}

	.ticket {
		margin: var(--sp-6) 0 0;
		padding: calc(var(--sp-6) - 1px);
	}

	.ticket-head {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		column-gap: var(--sp-6);
	}

	.ticket-head .spot-status,
	.ticket-head .spot-sum {
		grid-column: 1 / -1;
	}

	.ticket-name {
		font-size: var(--fs-title);
	}

	.spot-price {
		grid-row: 2;
		grid-column: 2;
		font-size: 52px;
	}

	.ticket-body {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		grid-template-areas: "preview side" "fields side";
		align-items: start;
		gap: var(--sp-5) var(--sp-6);
		margin-top: var(--sp-5);
	}

	.ticket-body > .build-preview {
		grid-area: preview;
	}

	.ticket-body > .ticket-side {
		grid-area: side;
	}

	.ticket-body > .sponsor-form {
		grid-area: fields;
	}

	.board {
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: var(--sp-3);
	}

	.board-pic.icon {
		width: 48px;
		height: 48px;
	}

	.plat-pick {
		max-width: 640px;
	}

	.city-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: var(--sp-3);
	}

	.city-tile {
		min-height: 168px;
	}

	.city-grid.is-small .city-tile {
		min-height: 128px;
	}

	.pitch-head,
	.buy-head {
		font-size: var(--fs-title);
	}

	.guarantee {
		padding: var(--sp-5);
	}

	.count-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sp-6);
	}

	.figs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--sp-4);
	}

	.fig {
		grid-template-columns: minmax(0, 1fr);
		align-content: start;
		padding: var(--sp-4);
	}

	.fig-n {
		font-size: 44px;
	}

	.ai-row {
		margin-right: -56px;
		margin-left: -56px;
	}

	.ai-track {
		gap: 48px;
		padding-right: 48px;
	}

	.phone {
		padding: 8px;
		border-radius: 36px;
	}

	.phone-screen {
		padding: var(--sp-4) var(--sp-2) var(--sp-3);
		border-radius: 28px;
	}

	.vs {
		font-size: var(--fs-body);
	}

	.vs th,
	.vs td {
		padding: var(--sp-3);
	}

	.vs tbody th {
		width: 28%;
		font-size: var(--fs-body);
	}

	.buy-dock {
		display: none;
	}

	/* The preview stands beside the fields, so there is no need to go up to it. */
	.see-it {
		display: none;
	}

	.faq-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--sp-5) var(--sp-6);
	}

	/* A business's way back, a small card on the chart. */
	.business .sheet > .back a {
		padding: 0 var(--pad);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.sponsor .adpreview .slot {
		box-shadow: none;
	}

	/* ---------------------------------------------------------------- How it works, and Privacy */

	/*
	  The page's own card on the grid of twelve, as wide as a business's (eight columns), and beside it a smaller
	  card (four), as a business's details are: the parts of the page, each a link to its heading, and a few numbers
	  at a glance. It stays in view as the page scrolls. Both start 32 px under the header, as every page's first
	  card does: 16 here and their own 16 above them.
	*/
	.about main > .col {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--desk-gap);
		align-items: start;
		max-width: var(--desk);
		padding: var(--sp-4) var(--desk-pad) 0;
	}

	.about main > .col > .panel {
		grid-row: 1;
		grid-column: 1 / span 8;
	}

	.side {
		position: sticky;
		top: var(--sp-5);
		display: grid;
		grid-row: 1;
		grid-column: 9 / -1;
		gap: var(--sp-5);
		margin-top: var(--gap);
		padding: var(--sp-5);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

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

	.side-part + .side-part {
		padding-top: var(--sp-5);
		border-top: 1px solid var(--rule);
	}

	.side-head {
		margin: 0;
		color: var(--quiet);
		font: 600 var(--fs-small)/1.2 var(--sans);
	}

	.side-links {
		display: grid;
		margin: 0 0 0 calc(-1 * var(--sp-2));
		padding: 0;
		list-style: none;
	}

	.side-links a {
		display: flex;
		align-items: center;
		min-height: 40px;
		padding: 0 var(--sp-2);
		border-radius: var(--r-in);
		color: var(--ink);
		font: 400 var(--fs-body)/1.3 var(--sans);
		text-decoration: none;
	}

	.side-links a:hover {
		background: var(--wash);
	}

	/* Each number big, as the wiki's figures are, with what it counts under it. */
	.side-facts {
		display: grid;
		gap: var(--sp-4);
		margin: 0;
	}

	.side-facts > div {
		display: grid;
		gap: var(--sp-1);
	}

	.side-facts dt {
		font: 600 var(--fs-title)/1 var(--sans);
		font-variant-numeric: tabular-nums;
		letter-spacing: -0.02em;
	}

	.side-facts dd {
		margin: 0;
		color: var(--soft);
		font: 400 var(--fs-small)/1.4 var(--sans);
	}

	/* The drawn box as a computer's list draws it: the keys and the middle a little bigger, the score a size up. */
	.how-box {
		padding: var(--sp-6) var(--sp-5);
	}

	.how-box .score-line {
		width: 288px;
	}

	.how-box .box {
		--w: 288px;
	}

	/*
	  The heading system on a computer's screen: a page's title at --fs-display, as a list's and a city's are, and a
	  section's heading at --fs-big, as a city's categories and a business's "Where it stands" are.
	*/
	.title {
		font-size: var(--fs-display);
		line-height: 1.04;
		letter-spacing: -0.035em;
	}

	.prose .label,
	.biz-info h2.label,
	.biz-empty h2.label {
		font-size: var(--fs-big);
	}

	/* The page's own card has room to read in: 40 above its words and 48 at each side, as the sponsor page's sheet does, and its words a size up, 16, for lines of about 80 letters. */
	.about .col > .panel {
		padding: 40px 48px 48px;
		box-shadow: var(--card);
	}

	.about .prose ul,
	.about .prose p:not([class]) {
		font-size: 16px;
	}

	/* A part's small heading on a computer, a size over the words under it. */
	.about .prose h3 {
		font-size: var(--fs-head);
	}

	.about .in-short {
		padding: var(--sp-5);
	}

	/* ---------------------------------------------------------------- The foot */

	/*
	  One more white card on the warm paper, as wide as the page's: the logo at the left of its top and Listi's
	  pages at the right, a thin rule, then the cities five across, each column as long as the next. Under the
	  card, on the paper, one line: the copyright at the left and the pill at the right, each level with the
	  card's words.
	*/
	.foot {
		margin-top: var(--sp-6);
		background: none;
		box-shadow: none;
	}

	/* The front page and a lost page end on plain paper, so their foot brings the warm paper with it. */
	.front .foot,
	.lost .foot {
		background: var(--ground);
	}

	.foot .col {
		max-width: var(--desk);
		padding: 0 var(--desk-pad) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
	}

	.front .foot .col,
	.lost .foot .col {
		padding-top: var(--sp-6);
	}

	.foot-card {
		gap: 0;
		padding: var(--sp-5) var(--sp-6);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.foot-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-5);
		padding-bottom: var(--sp-4);
	}

	.foot-logo .logo {
		height: 28px;
	}

	.foot-links {
		column-gap: var(--sp-6);
	}

	.foot-places {
		padding-top: var(--sp-5);
	}

	.foot-head {
		margin-bottom: var(--sp-2);
	}

	.foot-cities {
		columns: 5;
		column-gap: var(--sp-6);
	}

	.foot-cities li {
		padding-bottom: var(--sp-2);
	}

	.foot-base {
		flex-direction: row-reverse;
		align-items: center;
		justify-content: space-between;
		margin-top: 0;
		padding: var(--sp-4) var(--sp-6) 0;
		border-top: 0;
	}
}

/*
  From 1200 px: a city's categories three across, and a business's details beside it. A list keeps one column:
  the Platinum banner and the Gold spot stand right under its title, across the list, as on every screen.
*/
@media (min-width: 1200px) {
	.city .trio {
		grid-column: span 4;
	}

	/* A business's card, its standings and the small print at the left; its details beside them, from the card's top. */
	.business .sheet > :is(.notice, .biz-head, .plat, .biz-ad, .tag, .standings, .fine) {
		grid-column: 1 / 9;
	}

	/* An award's details stand beside its card from the card's top. The owner's page keeps the rest at the left, its counts under their heading, with where it stands at the right. */
	.business .sheet.award > .biz-info {
		grid-row: 1 / -1;
		margin-top: 0;
	}

	.business .sheet.owner > * {
		grid-column: 1 / 9;
	}

	.business .sheet.owner > .biz-info {
		grid-row: auto;
		grid-column: 1 / 9;
		margin-top: 0;
	}

	/* Where it stands, in the right third beside the card, as a business's details stand beside its card. */
	.business .sheet.owner > .owner-stands {
		grid-column: 9 / -1;
		grid-row: 1 / span 4;
		align-self: start;
		margin-top: 0;
		padding: var(--sp-5);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	/* Its heading is a section's, as "Details" is in an award's card beside it. */
	.business .sheet.owner > .owner-stands > .tag {
		margin: 0 0 var(--sp-2);
		font-size: var(--fs-big);
	}

	.business .sheet.owner > .owner-stands > .rows {
		padding: 0;
		background: none;
		box-shadow: none;
	}

	/*
	  The week's counts stand beside the finalist picture, in a card of their own that fills the half of the row the
	  picture leaves, one count under another, with what each one is under them. The name card then holds the photo
	  and the name alone, so its photo is 120 and the card no taller than the name needs.
	*/
	.business .sheet.owner:has(> .owner-side) > .finalist {
		grid-column: 1 / 6;
	}

	.business .sheet.owner > .owner-side {
		display: block;
		grid-column: 6 / 9;
		align-self: stretch;
		margin-top: var(--sp-5);
		padding: var(--sp-5);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.business .sheet.owner:has(> .owner-side) > .biz-head > .owner-week,
	.business .sheet.owner:has(> .owner-side) > .owner-fine {
		display: none;
	}

	.owner-side > .owner-week > .label {
		margin-bottom: var(--sp-3);
		color: var(--ink);
		font-size: var(--fs-big);
		text-wrap: balance;
	}

	.owner-side .counts {
		grid-template-columns: minmax(0, 1fr);
	}

	.owner-side > .fine {
		margin-top: var(--sp-4);
		padding: 0;
		background: none;
		box-shadow: none;
	}

	.business .sheet.owner:has(> .owner-side) > .biz-head {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.business .sheet.owner:has(> .owner-side) > .biz-head > .thumb.thumb-big {
		grid-row: 1;
		width: 120px;
		height: 120px;
	}

	.business .sheet.owner:has(> .owner-side) > .biz-head > .s-mark {
		left: calc(var(--hero-pad) + 120px - 26px);
	}

	.business .sheet > .biz-info,
	.business .sheet > .biz-empty {
		grid-row: 2 / -1;
		grid-column: 9 / -1;
		grid-template-columns: minmax(0, 1fr);
		margin-top: var(--sp-3);
	}

	/*
	  A business's own page, in two columns: its card, what it is about and the small print at the left, 8 of the
	  12; its hours, the city's sponsor and where it stands in the 4 beside them, from the card's top. Each column
	  runs on by itself, so a long one never opens a gap in the other.
	*/
	.business .biz-page:not(.award, .owner) > :is(.biz-info, .biz-empty) {
		grid-row: auto;
		grid-column: 1 / 9;
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		margin-top: var(--sp-5);
	}

	.business .biz-page > .biz-side {
		display: flex;
		flex-direction: column;
		gap: var(--sp-5);
		grid-row: 2 / -1;
		grid-column: 9 / -1;
		margin-top: var(--sp-3);
	}

	.business .biz-page > .biz-side > * {
		margin: 0;
	}

	/* The sponsor's banner, stacked to fit the column: the link with its mark, its name and its line, then its offer under a dashed line. */
	.business .biz-side > .plat {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--sp-3);
		padding: 15px;
	}

	.business .biz-side .plat-line {
		white-space: normal;
	}

	.business .biz-side .plat .spot-offer {
		padding: var(--sp-3) 0 0;
		border-top: 1.5px dashed var(--dash);
		border-left: 0;
	}

	/* Where it stands: its heading inside its card, as "About" is in the card beside it, and its rows on two lines, as a city's cards are. */
	.business .biz-side > .biz-stands {
		padding: var(--sp-4);
		border-radius: var(--r);
		background: var(--surface);
		box-shadow: var(--card);
	}

	.business .biz-stands > .tag {
		margin: var(--sp-1) var(--sp-1) var(--sp-2);
	}

	.business .biz-stands > .standings {
		padding: 0;
		background: none;
		box-shadow: none;
	}

}
