/**
 * Category landing pages — the parts every category shares.
 *
 * Handoff section K describes the stickers page and then says to use it "as the
 * category-page template for other categories". These are those parts: the
 * filter row, the product grid and its cards, the comparison table, the FAQ and
 * the trust row. A route adds its own hero on top.
 *
 * The class names are .as-cat-*, not .as-cat-*. They started as the latter and
 * were renamed when the signs page arrived, because a stylesheet that names
 * every shared component after one category is a stylesheet the next category
 * is discouraged from using.
 *
 * 1400px content and a four-column grid — the "wide" variant, which is the
 * canonical one. Ten products in three columns is four rows and a scroll; in
 * four it is two and a half.
 */

.as-main.as-route-cat-page { max-width: none; padding-inline: 0; }
.as-route-cat-page .as-section { padding: 0; }

/* ── Filter row ───────────────────────────────────────────────────────────── */
.as-route-cat-page .as-cat-filters { padding: 26px 0 0; }
.as-cat-filters__inner { display: flex; gap: var(--space-2-5); flex-wrap: wrap; justify-content: center; align-items: center; }
/* The jump link after the filters ("Promos ↓" on /stickers/) wears the same
   pill (Dennis, 2026-11-14). Its old rule was written for
   `.as-cat-filters__promo`, a name the markup stopped using, so it had been
   showing as bare text. */
.as-cat-filter,
.as-cat-filters__extra {
	border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
	background: var(--color-surface); color: var(--color-text-muted);
	font-family: inherit; font-size: var(--text-sm); font-weight: 700;
	padding: 10px 22px; cursor: pointer;
}
.as-cat-filters__extra { text-decoration: none; }
.as-cat-filter:hover,
.as-cat-filters__extra:hover { border-color: var(--atomic-blue); color: var(--atomic-blue); }
.as-cat-filter[aria-pressed="true"] {
	border-color: var(--atomic-dark);
}

/* ── Product grid ─────────────────────────────────────────────────────────── */
.as-route-cat-page .as-cat-grid-section { padding: 24px 0 48px; }
/* minmax(0, …) — a bare 1fr will not shrink below its content and a missing
   photo makes that content very wide indeed. */
.as-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-7); }
.as-cat-grid__empty { margin: 24px 0 0; text-align: center; color: var(--color-text-muted); }


/* ── Comparison table ─────────────────────────────────────────────────────── */
.as-route-cat-page .as-cat-compare { padding: 52px 0 8px; }
.as-cat-compare__head { text-align: center; margin-bottom: 22px; }
.as-cat-compare__head h2 { margin: 0; font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.01em; }
.as-cat-compare__head p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* Five columns do not fit a phone, so the table scrolls inside its own box
   rather than pushing the page sideways. */
.as-cat-compare__scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1.5px solid var(--color-border); }
.as-cat-compare__table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--text-sm); }
.as-cat-compare__table thead th {
  background: var(--atomic-dark);
  color: var(--color-text-invert);
  text-align: left;
  padding: 14px 18px;
}
.as-cat-compare__table tbody th {
	text-align: left; font-weight: 700; padding: 14px 18px; white-space: nowrap;
}
.as-cat-compare__table td { padding: 14px 18px; line-height: 1.45; color: var(--color-text-muted); }
.as-cat-compare__table tbody tr + tr th,
.as-cat-compare__table tbody tr + tr td { border-top: 1px solid var(--color-border-soft); }
.as-cat-compare__foot { margin: 14px 0 0; text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); }
.as-cat-compare__foot a { font-weight: 700; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.as-route-cat-page .as-cat-faq { padding: 4px 0 56px; }
/*
 * The compare table and the FAQ were never neighbours on the stickers page —
 * the sample-pack band sat between them, so 8px and 4px of padding was all
 * either needed. On signs there is no band, and the two ran together: measured
 * 12px between "Need the frame as well as the insert?" and the FAQ's heading,
 * which reads as one section with two titles.
 */
.as-cat-compare + .as-cat-faq { padding-top: 48px; }
.as-cat-faq__inner { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.as-cat-faq__head { text-align: center; margin-bottom: 18px; }
.as-cat-faq__head h2 { margin: 0; font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.01em; }
.as-cat-faq__head p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.as-cat-faq__head a { font-weight: 700; }
/* The rows are the FAQ row recipe in primitives.css, shared with the product
   pages' accordion (Dennis, 2026-11-14) — they were bordered boxes here. */


/* ── The masthead ──────────────────────────────────────────────────────────
 *
 * One set of rules for what were four: .as-sgn-hero, .as-sbd-hero,
 * .as-bst-hero and .as-ban-hero drew the same markup with numbers that had
 * drifted apart — 52 / 92 / 92 / 68px headlines, two different standfirst
 * sizes, two gaps. 92px and sentence case is where they settle, which is what
 * sandwich boards and banner stands already were and what the mocks draw.
 *
 * From the type tokens rather than literals, so it moves with the rest of the
 * site when they do. /stickers/ keeps .as-stk-hero — see as_cat_masthead().
 *
 * ─── SCOPED, BECAUSE THE RESET ABOVE IS ──────────────────────────────────
 *
 * `.as-route-cat-page .as-section { padding: 0 }` is twenty lines up and is
 * (0,2,0). Written bare, `.as-cat-masthead` is (0,1,0), loses the padding
 * outright, and every masthead collapses to the height of its own text —
 * which read as four identical heroes only because they were identically
 * broken. The four route sheets this replaced were each scoped to their page
 * class, which is what made them work.
 */
.as-route-cat-page .as-cat-masthead { background: var(--color-surface-alt); padding: 56px 0 48px; }
.as-cat-masthead__inner {
	display: flex; flex-direction: column; align-items: center;
	gap: var(--space-4); text-align: center;
}
.as-cat-masthead__kicker {
	margin: 0;
	color: var(--atomic-blue);
}
.as-cat-masthead__title {
	margin: 0;
	font-size: clamp(40px, 7vw, 92px); line-height: 1.02; font-weight: 800;
	letter-spacing: -0.03em; text-wrap: balance;
}
.as-cat-masthead__sub {
	margin: 0; max-width: 62ch;
	font-size: var(--text-body); line-height: 1.65; color: var(--color-text-muted);
}
.as-cat-masthead__cta {
	display: flex; gap: var(--space-2-5); flex-wrap: wrap; justify-content: center;
	margin: 4px 0 0;
}

@media (max-width: 900px) {
	.as-route-cat-page .as-cat-masthead { padding: 40px 0 36px; }
	.as-cat-masthead__inner { padding-inline: 24px; }
}

/* ── A grid split into headed bands ────────────────────────────────────────
 *
 * The banners page carries three kinds of thing — a banner, a stand, a
 * replacement graphic — rather than variants of one, and the mock heads each
 * run rather than running eleven cards together. Only that page passes
 * sections; everything else keeps the flat grid.
 *
 * The container is the page's four-column grid and each band spans as many
 * of those columns as it has cards (data-span, capped at the row), with the
 * band's own grid sized to match. So a run of one-product bands — the
 * sandwich page has three — packs into a row instead of each taking one with
 * three empty columns beside it. Bands keep their written order; the grid is
 * not allowed to backfill a gap with a later band, because the headings have
 * to read in sequence.
 *
 * At each breakpoint the cap drops with the column count, so the phone layout
 * is the plain stack it always was.
 */
.as-cat-grid--banded {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--space-5);
	row-gap: var(--space-8);
	/* Bands stretch to the row, and the card grid inside fills the band, so
	   a Deluxe card beside a Signicade card comes out the same height even
	   though they sit in different bands — the card already pins its tag row
	   to the bottom, so the extra height goes into the body, not under it. */
	align-items: stretch;
}
.as-cat-band { grid-column: span 4; min-width: 0; display: flex; flex-direction: column; }
.as-cat-band__grid { flex: 1; }
.as-cat-band[data-span="1"] { grid-column: span 1; }
.as-cat-band[data-span="2"] { grid-column: span 2; }
.as-cat-band[data-span="3"] { grid-column: span 3; }
.as-cat-band[hidden] { display: none; }
.as-cat-band__title {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--color-border);
	font-size: var(--text-body-lg); font-weight: 700; letter-spacing: -.01em;
}
/*
 * The INNER column count is `data-cols`, which defaults to the span but is not
 * the same question. A band can be four columns wide and hold one card — that
 * is what a feature is — and while one attribute drove both, that was
 * unsayable.
 */
.as-cat-band__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.as-cat-band[data-cols="1"] .as-cat-band__grid { grid-template-columns: minmax(0, 1fr); }
.as-cat-band[data-cols="2"] .as-cat-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-cat-band[data-cols="3"] .as-cat-band__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── The "already own one?" band ───────────────────────────────────────────
 *
 * Dark, because it is the one section on the page that is not the catalogue —
 * it is a route for someone who arrived owning the hardware already, and it
 * should read as a different kind of thing from the cards above it.
 *
 * The mock puts a photo beside the copy. There is no photograph of a cassette
 * being swapped in the media library, and a grey placeholder in a dark panel
 * reads as a failed image rather than a pending one, so the panel is copy and
 * actions until there is a picture worth putting in it.
 */
.as-route-cat-page .as-cat-swap { padding: 0 0 56px; }
.as-cat-swap__panel {
	position: relative;
	padding: 40px 44px;
	border-radius: var(--radius-xl);
	background: var(--atomic-dark, #2d3445);
	color: #fff;
}
.as-cat-swap__what { display: flex; flex-direction: column; gap: var(--space-3); max-width: 62ch; }
.as-cat-swap__eyebrow {
	margin: 0;
	color: var(--atomic-blue, #1ab0e0);
}
.as-cat-swap__title { margin: 0; font-size: var(--text-h2); line-height: 1.15; letter-spacing: -.01em; }
.as-cat-swap__text { margin: 0; font-size: var(--text-sm); line-height: 1.6; color: rgba(255, 255, 255, .82); }

.as-cat-swap__actions { display: flex; flex-wrap: wrap; gap: var(--space-2-5); margin-top: 8px; }
.as-cat-swap__go,
.as-cat-swap__ask {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill);
	font-size: var(--text-sm); font-weight: 700; text-decoration: none;
}
.as-cat-swap__go { background: var(--atomic-blue, #1ab0e0); color: #fff; }
.as-cat-swap__go:hover { background: #159ac6; color: #fff; }
.as-cat-swap__ask { border: 1.5px solid rgba(255, 255, 255, .38); color: #fff; }
.as-cat-swap__ask:hover { border-color: #fff; color: #fff; }

.as-cat-swap__note {
	position: absolute; right: 28px; bottom: -13px;
	margin: 0; padding: 7px 15px; border-radius: var(--radius-pill);
	background: #fff; color: var(--atomic-dark, #2d3445);
	font-size: var(--text-xs); font-weight: 700;
	box-shadow: 0 6px 18px rgba(36, 41, 56, .18);
}

/* ── The "build your sign" hero (as_cat_build) ─────────────────────────────
 *
 * Handoff signs-hero, frames 4a (desktop) and 4b (phone). Values are the
 * mock's, on the token scale where it has a step within 2px (22 → 24 column
 * gap, 16.5 / 15 → 16 intro, 12.5 → 12 chips, 10 → 11 captions via
 * .as-eyebrow). The mock draws 1440 and 420 only; between them:
 *
 *   ≤1200  stacks into the 4b order. The left column needs ~511px for the
 *          h1 on one line and ~510 for the chips; at 1101 it has 429.
 *   ≤720   4b type and band.
 *   ≤560   4b card: Start on its own row, the hairline over Quick start.
 *
 * The chips scroll sideways at every width rather than wrap — in cm they
 * need ~559px against the card's 520 (Dennis, 2026-10-09).
 *
 * One <img>, placed by grid areas: it is beside the copy on desktop and
 * between the intro and the card when stacked, without a second copy.
 */
.as-route-cat-page .as-cat-build { background: var(--color-surface-tint); overflow: hidden; }
.as-cat-build__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 520px;
	grid-template-rows: minmax(var(--space-16), 1fr) auto auto auto minmax(var(--space-16), 1fr);
	grid-template-areas: ". art" "copy art" "card art" "more art" ". art";
	column-gap: var(--space-10);
}
.as-cat-build__copy { grid-area: copy; display: flex; flex-direction: column; gap: var(--space-3); }
.as-cat-build__copy > * { margin: 0; }
.as-cat-build__eyebrow { color: var(--atomic-blue); }
.as-cat-build__title {
	font-size: 72px; font-weight: 800; line-height: 0.98;
	letter-spacing: -0.04em; color: var(--atomic-dark);
}
.as-cat-build__intro {
	max-width: 46ch; font-size: var(--text-body); line-height: var(--leading-body);
	color: var(--color-text);
}

.as-cat-build__art {
	grid-area: art; align-self: stretch;
	display: flex; align-items: center; justify-content: center;
	padding: var(--space-12) 0;
}
.as-cat-build__img {
	display: block; width: 100%; max-width: 470px; height: auto;
	filter: drop-shadow(0 18px 24px rgba(36, 41, 56, 0.2));
}

.as-cat-build__card {
	grid-area: card; margin: var(--space-6) 0 0;
	display: flex; flex-direction: column; gap: var(--space-3-5);
	max-width: calc(520px + 2 * var(--space-4-5)); padding: var(--space-4-5);
	background: var(--color-surface); border-radius: var(--radius-lg);
}
.as-cat-build__cardhead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2-5); }
.as-cat-build__label { margin: 0; color: var(--color-text-muted); }
.as-cat-build__dims { display: flex; align-items: center; gap: var(--space-2-5); }
.as-cat-build__times { font-weight: 700; color: var(--color-placeholder); }
.as-cat-build__dim {
	flex: 1 1 0; min-width: 0;
	display: flex; flex-direction: column; gap: 1px;
	padding: var(--space-2) var(--space-3-5);
	border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
	cursor: text;
}
.as-cat-build__dim:focus-within { border-color: var(--atomic-blue); }
.as-cat-build__cap { color: var(--color-placeholder); }
.as-cat-build__val { display: flex; align-items: baseline; gap: var(--space-1); }
/* The unit follows the number, as the mock sets it — so the input is as wide
   as what is typed (route-category.js sets it), not the whole box. */
.as-cat-build__val input {
	width: 4ch; min-width: 1ch; max-width: 100%;
	padding: 0; border: 0; background: none;
	font: inherit; font-size: var(--text-body-lg); font-weight: 800; color: var(--atomic-dark);
	font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.as-cat-build__val input::-webkit-outer-spin-button,
.as-cat-build__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* The ring is on the box, as on .as-bn__field — see primitives.css. */
.as-cat-build__val input:focus { outline: none; }
.as-cat-build__unit { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); }
/* Not .as-btn--block: that is the blue submit. The navy is --secondary's. */
.as-cat-build__go { flex: none; white-space: nowrap; font-size: var(--text-sm); }

.as-cat-build__quick { display: flex; flex-direction: column; gap: var(--space-2); }
.as-cat-build__chips {
	display: flex; align-items: center; gap: var(--space-2);
	overflow-x: auto; padding: 2px; margin: -2px;
	scrollbar-width: thin;
}
.as-cat-build__chip {
	flex: none; white-space: nowrap;
	padding: var(--space-1-5) var(--space-3);
	border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
	font-size: var(--text-xs); font-weight: 700; color: var(--atomic-dark);
	text-decoration: none;
}
.as-cat-build__chip:hover { border-color: var(--atomic-blue); color: var(--atomic-blue); }

.as-cat-build__more { grid-area: more; margin: var(--space-6) 0 0; font-size: var(--text-sm); }
.as-cat-build__more a { font-weight: 700; color: var(--atomic-blue); }
.as-cat-build__more a:hover { color: var(--atomic-dark); }

@media (max-width: 1200px) {
	.as-cat-build__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas: "copy" "art" "card" "more";
		row-gap: var(--space-5);
		padding-block: var(--space-12) var(--space-10);
	}
	.as-cat-build__art { padding: var(--space-2) 0; }
	.as-cat-build__img { width: 250px; filter: drop-shadow(0 14px 18px rgba(36, 41, 56, 0.2)); }
	.as-cat-build__card, .as-cat-build__more { margin: 0; }
}
@media (max-width: 720px) {
	.as-cat-build__inner { padding-block: var(--space-8) var(--space-7); }
	.as-cat-build__copy { gap: var(--space-2-5); }
	.as-cat-build__title { font-size: var(--text-h1); line-height: 1; letter-spacing: -0.035em; }
	.as-cat-build__card { max-width: none; }
	.as-cat-build__more { padding: var(--space-1-5) 0; text-align: center; }
}
@media (max-width: 560px) {
	.as-cat-build__card { padding: var(--space-4); gap: var(--space-3); }
	.as-cat-build__dims { flex-wrap: wrap; gap: var(--space-3) var(--space-2); }
	.as-cat-build__dim { padding: var(--space-2) var(--space-3); }
	.as-cat-build__chip { padding: var(--space-2) var(--space-3-5); }
	.as-cat-build__go { flex: 1 1 100%; }
	.as-cat-build__quick { padding-top: var(--space-3); border-top: 1px solid var(--color-border-soft); }
	.as-cat-build__chips { margin: -2px calc(-1 * var(--space-4)); padding: 2px var(--space-4) var(--space-0-5); }
}

/* ── Uses band (as_cat_uses) — the /signs/ Lawn Sign Bundles band ───────────
 *
 * Frame 3b. Sits inside a grid band, under its cards. 22 → 24 body gap,
 * 13 → 14 secondary type; the photo keeps .as-slot's own radius.
 */
.as-cat-uses { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-10); }
.as-cat-uses__head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: var(--space-6); flex-wrap: wrap;
}
.as-cat-uses__headline { display: flex; flex-direction: column; gap: var(--space-2); max-width: 600px; }
.as-cat-uses__headline > * { margin: 0; }
.as-cat-uses__eyebrow { color: var(--atomic-blue); }
.as-cat-uses__title {
	font-size: var(--text-stat); font-weight: 800; line-height: var(--leading-tight);
	letter-spacing: -0.03em; color: var(--atomic-dark);
}
.as-cat-uses__go { font-size: var(--text-sm); }
.as-cat-uses__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4-5); }
.as-cat-uses__item { display: flex; flex-direction: column; }
.as-cat-uses__photo { margin-bottom: var(--space-3); }
.as-cat-uses__name { margin: 0 0 var(--space-0-5); font-size: var(--text-body); font-weight: 700; color: var(--atomic-dark); }
.as-cat-uses__line { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--color-text-muted); }
.as-cat-uses__facts {
	display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4-5);
	margin: 0; padding: 0; list-style: none;
	font-size: var(--text-sm); color: var(--color-text-muted);
}
.as-cat-uses__facts strong { color: var(--atomic-dark); }
/* The dot trails its fact rather than leading the next, so a wrapped row
   ends a line on a dot instead of starting one with it. */
.as-cat-uses__facts li:not(:last-child)::after {
	content: ""; display: inline-block; width: 4px; height: 4px; margin-left: var(--space-4-5);
	border-radius: 50%; background: var(--color-placeholder); vertical-align: middle;
}

/* ── Narrow ───────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
	.as-cat-uses__grid { grid-template-columns: minmax(0, 1fr); }
	.as-cat-uses__title { font-size: var(--text-h2); }
}
@media (max-width: 1200px) {
	.as-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.as-cat-grid--banded { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.as-cat-band, .as-cat-band[data-span="3"] { grid-column: span 3; }
	/* The inner clamp follows data-cols, not data-span — a feature band is
	   four wide and one across, and clamping it by its span would put its one
	   card back into a three-column grid. */
	.as-cat-band__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.as-cat-band[data-cols="1"] .as-cat-band__grid { grid-template-columns: minmax(0, 1fr); }
	.as-cat-band[data-cols="2"] .as-cat-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.as-cat__wrap, .as-cat-faq__inner { padding-inline: 24px; }
	.as-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4-5); }
	.as-cat-grid--banded { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4-5); }
	.as-cat-band, .as-cat-band[data-span="2"], .as-cat-band[data-span="3"] { grid-column: span 2; }
	/* [data-cols] as well: the bare class is (0,1,0) and lost to the
	   data-cols="3" rule above, so a three-up band stayed three-up — 115px
	   cards with their price pills cut off — on every narrow screen. */
	.as-cat-band__grid,
	.as-cat-band[data-cols] .as-cat-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4-5); }
	.as-cat-band[data-cols="1"] .as-cat-band__grid { grid-template-columns: minmax(0, 1fr); }
	.as-cat-swap__panel { padding: 30px 24px 34px; }
	.as-cat-swap__title { font-size: var(--text-h3); }
	.as-cat-swap__note { right: 20px; left: 20px; text-align: center; }
	.as-cat-swap__go, .as-cat-swap__ask { flex: 1 1 auto; }
}
/*
 * Phones keep two cards across. One per row meant one product per screen on
 * a 430px iPhone (Dennis, 2026-10-09), so the ≤900 two-column grid carries
 * all the way down. The bands themselves still go one per row.
 */
@media (max-width: 560px) {
	.as-cat-grid--banded { grid-template-columns: minmax(0, 1fr); }
	.as-cat-band, .as-cat-band[data-span="1"], .as-cat-band[data-span="2"], .as-cat-band[data-span="3"] { grid-column: span 1; }
	.as-cat-band[data-cols="1"] .as-cat-band__grid { grid-template-columns: minmax(0, 1fr); }
	/* Wrapped, the dots would start lines; stacked, they say nothing. */
	.as-cat-uses__facts { flex-direction: column; align-items: flex-start; }
	.as-cat-uses__facts li::after { content: none; }
}
