/*
 * Front page, Exhibitions hub, past exhibitions and single exhibition, from
 * the Round 2 comps (docs repo docs/design-round-2/home.html and
 * templates/exhibitions, single-exhibition, mobile-home, mobile-exhibition).
 * Values are the comps'; class names map as noted where they differ.
 *
 * The markup comes from grunt-core's display blocks (grunt/exhibition-*,
 * grunt/front-*) and the templates in templates/. Sizes are cqw against the
 * page container (.wp-site-blocks), never vw.
 *
 * Full bleed: not needed here. Every band in these comps, the hero
 * included, sits on the mosaic inside the page (R2 walkthrough, Sep 8: "a
 * panel on the grid, the same width as the announcement"), so no escape
 * hatch from the 1248px page is built.
 */

/* ---- Mosaic: the comps' main.mosaic ------------------------------------- */

.grunt-mosaic {
	display: grid;
	grid-template-columns: repeat(var(--wp--custom--mosaic-cols), minmax(0, 1fr));
	gap: var(--g);
	padding: var(--g);
	margin: 0;
}

/* Core's flow layout adds a block gap between children; the grid gap is the
   spacing here. Every direct child spans the row unless placed below. */
.grunt-mosaic > * {
	grid-column: 1 / -1;
	margin-block: 0;
	min-width: 0;
}

.grunt-mosaic :where(h1, h2, h3, p, ul, figure) {
	margin: 0;
}

.grunt-mosaic :where(ul.grunt-cards, ul.bc-newest) {
	list-style: none;
	padding: 0;
}

/* Section headings: the comps' .thead. */
.grunt-mosaic .grunt-thead {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--h-4-fluid);
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 0;
}

/* The comps' .btn (ink, white type). */
.grunt-mosaic .grunt-btn {
	display: inline-block;
	background: var(--wp--preset--color--button-ink);
	color: #fff;
	padding: 12px 26px;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.55;
	text-decoration: none;
}

.grunt-mosaic .grunt-btn:hover {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

.grunt-mosaic .grunt-btn .grunt-ext,
.grunt-mosaic .grunt-btn:hover .grunt-ext {
	color: inherit;
}

.grunt-mosaic .grunt-more {
	margin: 16px 0 0;
}

.grunt-mosaic .grunt-more a,
.grunt-mosaic .grunt-seeall a {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--body);
}

/* ---- Announcement: on every page, placed after the header part ---------- */

/* The comp's tile sits in the mosaic's padding; main's own top padding
   then gives the one gutter between it and the first band. */
.grunt-announcement-slot {
	padding: var(--g) var(--g) 0;
}

/* ---- Page head (hub, past list) ---------------------------------------- */

.grunt-mosaic .grunt-pagehead {
	padding: 8px 0 0;
	margin-bottom: 16px !important;
}

.grunt-mosaic .grunt-pagetitle {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	line-height: 0.94;
	letter-spacing: 0;
	margin: 0;
}

.grunt-mosaic .grunt-crumb {
	font-size: var(--wp--preset--font-size--body-s);
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 40px;
}

.grunt-mosaic .grunt-crumb a {
	color: var(--wp--preset--color--text-muted);
}

/* Single exhibition: crumb only, the hero carries the title. */
.grunt-exhibition > .grunt-crumb {
	padding-top: 8px;
	margin: 0;
}

/* ---- Hero (the comps' .herofull) ----------------------------------------- */

.grunt-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(20px, 2.7cqw, 28px) var(--g);
	background: var(--wp--preset--color--surface);
}

.grunt-hero__bleed {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.grunt-hero__bleed img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 62%;
	filter: blur(28px) saturate(1.1);
	transform: scale(1.15);
	display: block;
}

.grunt-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
}

.grunt-hero__copy {
	flex: 1;
	min-width: 0;
	background: var(--wp--preset--color--bg);
	padding: clamp(30px, 3cqw, 44px) clamp(24px, 3.3cqw, 34px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.grunt-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-wrap: balance;
	margin: 0 0 4px;
}

.grunt-hero--home .grunt-hero__title {
	font-size: var(--wp--preset--font-size--display-fluid);
	line-height: 0.94;
	letter-spacing: -0.02em;
}

.grunt-hero--hub .grunt-hero__title {
	font-size: var(--wp--preset--font-size--h-2);
	line-height: 0.98;
	letter-spacing: -0.03em;
}

.grunt-hero--single .grunt-hero__title {
	/* The comp's .feature h1 outranks .tpl-showtitle's 56px: 55.5px at the
	   1248 page (R2.1); .tpl-showtitle's zero tracking does apply. */
	font-size: var(--wp--preset--font-size--display-fluid);
	line-height: 0.94;
	letter-spacing: 0;
}

.grunt-hero__byline {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lead-lg);
	font-weight: 700;
	line-height: 1.3;
}

/* Every date: display face, capitals applied visually (Kay's note: the
   words stay sentence case for screen readers). */
.grunt-hero__dates,
.grunt-card__dates {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.grunt-hero__dates {
	margin-top: 22px !important;
}

/* The standfirst (the hub comp's .desc) and the Opening line (the Home
   comp's .desc) share the comp's style; when both show, the Opening line
   sits close under the standfirst. */
.grunt-hero__desc,
.grunt-hero__opening {
	font-style: italic;
	color: var(--wp--preset--color--text-muted);
	max-width: 42ch;
	margin-top: 15px !important;
}

.grunt-hero__desc + .grunt-hero__opening {
	margin-top: 8px !important;
}

/* No standfirst on a phone, in every hero (Home, Exhibitions, the single
   page). grunt's beta feedback (Oct 2026): "The short blurb is incredibly
   helpful on desktop, but as a mobile user it feels redundant." Alanna,
   2026-10-26: hide it below 600px. display: none, so screen readers skip
   it too: on the single page it repeats the start of the body (migration
   fills it from the first paragraph), and on Home and Exhibitions it is
   the start of the page the hero links to. The Opening line takes the
   standfirst's place and gap. */
@media (max-width: 599px) {
	.grunt-hero__desc {
		display: none;
	}

	.grunt-hero__desc + .grunt-hero__opening {
		margin-top: 15px !important;
	}
}

.grunt-hero__ctas {
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 26px !important;
}

.grunt-hero__ad {
	font-weight: 700;
}

/* Three mosaic columns wide, so the photo's edges sit on the grid lines. */
.grunt-hero__photo {
	flex: none;
	margin: 0;
	overflow: hidden;
	width: calc((100% - 7 * var(--g)) / 8 * 3 + 2 * var(--g));
	aspect-ratio: 4 / 5;
}

/* The picture keeps the width its width attribute gives it, capped at the
   frame: a large file fills the frame, a small one is never stretched past
   its own size (it would draw soft), centred across the frame (side by
   side it is pinned to the top, or fills a 4:5 frame; stacked the box
   takes the picture's height: both below). */
.grunt-hero__photo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.grunt-hero__photo img {
	max-width: 100%;
	max-height: 100%;
	height: auto;
	display: block;
}

/* Every hero (Home, hub, single): the whole artwork, never cropped. The
   comp's cover fit only worked for its 4:5 promo; the signed rule is that a
   supplied image displays whole, whatever its ratio (wireframes sheet 01
   note 6; Katrina, Aug 10: never crop-to-fill). */
.grunt-hero__photo img {
	object-fit: contain;
}

/* Side by side (Alanna, 2026-11-11: 4:5 fills its frame; others pinned top
   on the band blur; hero description capped at 250 characters,
   GRUNT_HERO_DESC_CHARS in grunt-core):

   - The frame has no fill of its own (no ink, no second blur). It is
     transparent, so the hero's band blur (.grunt-hero__bleed, the same
     picture) shows wherever the picture does not cover it. A frame is
     drawn only when the show has a picture, and then the band always has
     its bleed; until the bleed's file loads the band's surface colour
     shows, so no ink fallback is needed.
   - Every picture starts at the frame's top, level with the white copy
     panel's top edge (the Oct 7 top pin, now on the band blur instead of
     ink): landscape, narrower than 4:5, or a file smaller than the frame.
     The frame stretches with a taller copy panel and the band blur shows
     below the picture.
   - A 4:5 picture at least as wide as the frame (grunt-hero--r45, set by
     grunt_hero_is_45(): within 2% of 4:5) fills the frame exactly. The
     frame stays 4:5 and does not stretch with a taller copy panel; the
     band blur shows below it. The picture is sized to the frame and drawn
     whole (contain, as every hero picture): an exact 4:5 file covers the
     frame with no strip. At the edge of the 2% a sliver of band blur
     shows: up to 2% of the width, split across the two sides, or up to 2%
     of the height, below the picture, whose top stays level with the copy
     panel (object-position 50% 0, the top pin). Nothing is cropped.

   Stacked (900px and below) there is no 4:5 frame: see below. */
@media (min-width: 901px) {
	.grunt-hero__photo {
		align-items: flex-start;
	}

	.grunt-hero--r45 .grunt-hero__photo {
		align-self: flex-start;
	}

	.grunt-hero--r45 .grunt-hero__photo img {
		width: 100%;
		height: 100%;
		object-position: 50% 0;
	}
}

@media (max-width: 900px) {
	.grunt-hero__inner {
		flex-direction: column;
	}

	/* Stacked, the box takes the picture's own height instead of the 4:5
	   frame, so a landscape picture has no ink above or below it (Alanna,
	   2026-10-08). Still drawn whole, never cropped. The ink stays here, as
	   before, beside a picture narrower than the column. */
	.grunt-hero__photo {
		background: var(--wp--preset--color--text);
		width: 100%;
		order: -1;
		aspect-ratio: auto;
	}
}

/* ---- Home: intro and Support grunt ---------------------------------------- */

.grunt-front > .grunt-intro,
.grunt-front > .grunt-homedonate {
	grid-column: span 4;
}

.grunt-intro p {
	padding: clamp(26px, 2.6cqw, 38px) 0 clamp(28px, 2.9cqw, 42px);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-4-fluid);
	font-weight: 600;
	line-height: 1.38;
	letter-spacing: -0.015em;
	text-wrap: pretty;
}

.grunt-homedonate {
	background: var(--wp--preset--color--accent);
	color: #fff;
	padding: var(--tpy) var(--tp);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
}

.grunt-homedonate > * {
	margin: 0;
}

.grunt-homedonate h2 {
	font-size: var(--wp--preset--font-size--h-4-fluid);
	line-height: 1.02;
	margin: 0;
}

.grunt-homedonate__text p {
	margin: 10px 0 0;
	font-size: var(--wp--preset--font-size--lead-lg);
	line-height: 1.4;
}

.grunt-homedonate__ctas {
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
	/* Plain wrapping, as the comp: on a phone the link breaks before the
	   arrow, not before "grunt". */
	text-wrap: wrap;
}

.grunt-homedonate .grunt-btn:hover {
	background: #fff;
	color: var(--wp--preset--color--button-ink);
}

/* 21px bold: white on the accent red passes as large text. */
.grunt-homedonate__more {
	color: #fff;
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 700;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.grunt-homedonate__more:hover {
	color: var(--wp--preset--color--button-ink);
}

.grunt-homedonate :focus-visible,
:is(.grunt-mosaic, .grunt-tpl) .grunt-archive :focus-visible {
	outline-color: #fff;
}

/* ---- Home: Events & calls panel ------------------------------------------ */

.grunt-evpanel {
	background: var(--wp--preset--color--bg);
	padding: var(--tpy) 0;
}

.grunt-evpanel__head {
	border-top: 2px solid var(--wp--preset--color--text);
	padding: var(--tpy) 0;
}

/* The rows are the Events & Calls listing's (grunt_events_list_html(),
   styled in events.css). On Home the panel's own head carries the 2px rule,
   so the list starts with a 1px rule under the heading (the comp's first
   row rule) and drops the listing's top padding. */
.grunt-evpanel .grunt-events {
	padding: 0;
}

.grunt-evpanel .grunt-events .evlist {
	border-top-width: 1px;
}

.grunt-evpanel__all {
	margin: 20px 0 0 !important;
}

.grunt-evpanel__all a {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--body);
}

/* ---- Exhibition cards (the comps' .shoptile + .pximg) -------------------- */

.grunt-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--g);
	margin: 0;
}

.grunt-card__inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--bg);
}

.grunt-card__img {
	aspect-ratio: 4 / 5;
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--text);
}

.grunt-card__blur {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(30px) saturate(1.15);
	transform: scale(1.14);
}

.grunt-card__photo {
	position: absolute;
	top: 16px;
	left: 16px;
	width: calc(100% - 32px);
	height: calc(100% - 32px);
	object-fit: contain;
	z-index: 1;
	display: block;
}

.grunt-card__imgtitle {
	position: absolute;
	inset: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 14px;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--wp--custom--color--panel-4);
}

/* The picture has no outline; the words box has the cards' rule on its
   three outer sides (--tile-rule; Alanna, 2026-10-08, and the same on
   Home's featured band and shop tiles). Padding less the rule keeps the
   words where they sat inside the old inset outline. */
.grunt-card__body {
	padding: 18px calc(var(--tp) - var(--tile-rule-w)) calc(24px - var(--tile-rule-w));
	border: var(--tile-rule);
	border-top: 0;
	flex: 1;
}

.grunt-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--h-5-fluid);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 9px 0 10px !important;
}

.grunt-card__title a {
	text-decoration: none;
}

/* The whole card is the link (Alanna, 2026-10-08): the title link's
   ::after covers the card, picture and text panel, so a screen reader and
   the Tab key still meet one link per card, named by the title. Hover
   anywhere on the card underlines the title; keyboard focus rings the
   card: the li's outline, round the picture and the ruled words box
   together. Same pattern as the hub tiles and the Events rows. */
.grunt-card {
	position: relative;
}

.grunt-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.grunt-card:hover .grunt-card__title a,
.grunt-card__title a:focus-visible {
	text-decoration: underline;
	color: var(--wp--preset--color--accent);
}

/* Only where :has() works; elsewhere the link keeps its own focus ring. */
@supports selector(:has(*)) {
	.grunt-card__title a:focus-visible {
		outline: none;
	}

	.grunt-card:has(.grunt-card__title a:focus-visible) {
		outline: 3px solid var(--wp--preset--color--accent);
		outline-offset: 2px;
	}
}

.grunt-card__by {
	font-size: var(--wp--preset--font-size--body-s);
	font-weight: 600;
	line-height: 1.4;
}

.grunt-card__dates {
	margin-top: 10px !important;
}

.grunt-card__curator {
	font-size: var(--wp--preset--font-size--body-s);
	line-height: 1.5;
	color: var(--wp--preset--color--text-muted);
	margin-top: 8px !important;
}

/* ---- Home rows: Past exhibitions and From the shop (label tile + three) -- */

/* Four tracks of two mosaic columns each, on the same gutter, so the tiles
   sit on the mosaic's lines. */
.grunt-homepast,
.grunt-homeshop {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--g);
}

.grunt-homepast > .grunt-cards,
.grunt-homeshop > .bc-newest {
	grid-column: 2 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--g);
	margin: 0;
}

.grunt-homepast__label,
.grunt-homeshop__label {
	padding: var(--tpy) var(--tp);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.grunt-homepast__label {
	background: var(--wp--custom--color--panel-2);
}

.grunt-homeshop__label {
	background: var(--wp--preset--color--panel-3);
}

/* Big Cartel products ([bigcartel_newest]): the comps' shop tiles. The
   picture has no outline; the words box under it has the cards' rule on
   its left, right and bottom (Alanna, 2026-10-08), as the Past cards. */
.grunt-homeshop .bc-newest__item {
	background: var(--wp--preset--color--bg);
}

.grunt-homeshop .bc-newest__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.grunt-homeshop .bc-newest__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 18px calc(var(--tp) - var(--tile-rule-w)) calc(24px - var(--tile-rule-w));
	border: var(--tile-rule);
	border-top: 0;
}

/* No picture: the words box is the whole tile, ruled all round. */
.grunt-homeshop .bc-newest__link > .bc-newest__body:first-child {
	padding-top: calc(18px - var(--tile-rule-w));
	border-top: var(--tile-rule);
}

/* The comp's square tile, the product picture cropped to fill it.
   Alanna's decision of 2026-10-05 (Big Cartel products crop to the square
   like the R2 comp). The only other picture that crops is Home's featured
   band (featured.css, 2026-10-08); exhibition, project and hero pictures
   stay whole under the signed rule. */
.grunt-homeshop .bc-newest__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.grunt-homeshop .bc-newest__name {
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: -0.02em;
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 700;
	line-height: 1.25;
}

.grunt-homeshop .bc-newest__cta {
	margin-top: auto;
	padding-top: 18px;
	font-size: var(--wp--preset--font-size--body-s);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.grunt-homeshop .bc-newest__link:hover .bc-newest__name {
	color: var(--wp--preset--color--accent);
}

.grunt-homeshop .bc-newest__price,
.grunt-homeshop .bc-newest__badge {
	padding-top: 10px;
	font-size: var(--wp--preset--font-size--body-s);
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--text-muted);
}

/* ---- Hub bands (the comps' .tpl-band) -------------------------------------- */

.grunt-exband {
	background: var(--wp--preset--color--bg);
	padding: var(--tpy) 0;
}

.grunt-exband__head {
	border-top: 2px solid var(--wp--preset--color--text);
	padding: 8px 0 var(--tpy);
}

.grunt-mosaic .grunt-seeall {
	margin: 20px 0 0 !important;
}

.grunt-mosaic .grunt-pages {
	margin-top: 28px;
	font-weight: 700;
}

.grunt-mosaic .grunt-pages .page-numbers {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}

/* ---- Archive handoff (the comps' .red.tpl-archive) -------------------------- */

/* Also the Events & Calls page's Submissions band (patterns/
   submissions-band.php, in .grunt-tpl; Alanna, 2026-10-19): the same red
   band, without the ↗ (an internal page). :is() keeps these rules' weight
   what it was on the mosaic. */
:is(.grunt-mosaic, .grunt-tpl) .grunt-archive {
	background: var(--wp--preset--color--accent);
	color: #fff;
	padding: var(--tpy) var(--tp) calc(var(--tpy) + 6px);
}

:is(.grunt-mosaic, .grunt-tpl) .grunt-archive p {
	margin: 0;
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 700;
}

:is(.grunt-mosaic, .grunt-tpl) .grunt-archive a {
	color: #fff;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

:is(.grunt-mosaic, .grunt-tpl) .grunt-archive a:hover {
	color: var(--wp--preset--color--button-ink);
}

.grunt-mosaic .grunt-archive .grunt-ext,
.grunt-mosaic .grunt-archive a:hover .grunt-ext {
	color: inherit;
}

/* ---- Single exhibition: body and Access & tours -------------------------- */

.grunt-mosaic .grunt-prose p {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.62;
	margin: 0 0 16px;
	max-width: 66ch;
}

/* min(): 66ch is 745px, wider than a phone, and this rule outranks core's
   max-width: 100% on a fixed-width player such as [video]'s
   style="width: 854px" (style.css, Media). */
.grunt-exhibition__body .wp-block-post-content > * {
	max-width: min(66ch, 100%);
	margin-left: 0;
	margin-right: 0;
}

.grunt-exhibition__body .wp-block-post-content > :where(h3, h4) {
	margin-top: 1.6em;
}

/* Section headings in the body ("About the artist", "Programming &
   events") take the comp's band head: the 2px rule, 8px above the type. */
.grunt-exhibition__body .wp-block-post-content > h2 {
	max-width: none;
	border-top: 2px solid var(--wp--preset--color--text);
	padding: 8px 0 var(--tpy);
	margin: calc(2 * var(--tpy)) 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-4-fluid);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.grunt-exhibition__body .wp-block-post-content > h2:first-child {
	margin-top: 0;
}

/* A rule typed right before a section heading (imported content) would sit
   on the heading's own rule as a double line. Browsers without :has() keep
   both. */
.grunt-exhibition__body .wp-block-post-content > hr:has(+ h2) {
	display: none;
}

/* Programming rows (pattern grunt/programming-row): the comp's event row,
   content only, no arrow. 1px rules between rows and after the last. */
.grunt-exhibition__body .wp-block-post-content > .grunt-progrow {
	max-width: none;
	margin: 0;
}

.grunt-progrow {
	display: grid;
	/* The Events & Calls row's columns (events.css .evrow: 268px date
	   minimum for a single date with its weekday, Alanna 2026-11-09). */
	grid-template-columns: minmax(268px, 1.5fr) minmax(78px, 1fr) minmax(0, 5.4fr) 28px;
	gap: 0 24px;
	align-items: baseline;
	padding: 18px 0;
	border-top: 1px solid var(--wp--preset--color--text);
}

.grunt-progrow:not(:has(+ .grunt-progrow)) {
	border-bottom: 1px solid var(--wp--preset--color--text);
}

.grunt-progrow > *,
.grunt-progrow__main > * {
	margin: 0 !important;
}

/* Three classes deep, so prose rules (.grunt-mosaic .grunt-prose p) can never
   reach the row's label, title or note sizes. */
.grunt-mosaic .grunt-progrow .grunt-progrow__when,
.grunt-mosaic .grunt-progrow .grunt-progrow__time {
	font-size: var(--wp--preset--font-size--label);
	line-height: 1.55;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
}

.grunt-mosaic .grunt-progrow .grunt-progrow__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.grunt-mosaic .grunt-progrow .grunt-progrow__note {
	font-size: var(--wp--preset--font-size--body-s);
	line-height: 1.5;
	margin-top: 8px !important;
	max-width: 70ch;
}

.grunt-progrow__note:empty,
.grunt-progrow__when:empty,
.grunt-progrow__time:empty {
	display: none;
}

/* As events.css: below 900px the date wraps (the comp's 128px minimum). */
@media (max-width: 899px) {
	.grunt-progrow {
		grid-template-columns: minmax(128px, 1.5fr) minmax(78px, 1fr) minmax(0, 5.4fr) 28px;
	}
}

@media (max-width: 640px) {
	.grunt-progrow {
		grid-template-columns: minmax(0, 1fr);
	}

	.grunt-progrow__main {
		margin-top: 8px !important;
	}
}

.grunt-exhibition__body img {
	max-width: 100%;
	height: auto;
}

/* Floated and captioned images in the body (classic [caption] output,
   figure.wp-caption, and plain images aligned left or right). The column
   rule above zeroes side margins, so the float's gap is set here. */
.grunt-exhibition__body .wp-block-post-content .alignleft {
	float: left;
	margin: 6px 32px 20px 0;
}

.grunt-exhibition__body .wp-block-post-content .alignright {
	float: right;
	margin: 6px 0 20px 32px;
}

.grunt-exhibition__body .wp-caption {
	max-width: 100%;
}

.grunt-exhibition__body .wp-caption img {
	display: block;
}

/* The caption reads as a caption: smaller, muted, tight under its image. */
.grunt-exhibition__body :is(.wp-caption-text, .wp-element-caption) {
	margin: 8px 0 0;
	font-size: var(--wp--preset--font-size--body-s);
	line-height: 1.45;
	color: var(--wp--preset--color--text-muted);
}

/* Text beside a float keeps to its own column (a block formatting
   context), so a paragraph that starts beside the image stays beside it
   to its last line and never wraps under the caption. A section heading
   starts below any float. */
.grunt-exhibition__body .wp-block-post-content > :is(p, ul, ol, blockquote, h3, h4, h5, h6) {
	display: flow-root;
}

.grunt-exhibition__body .wp-block-post-content > h2 {
	clear: both;
}

@media (max-width: 599px) {
	.grunt-exhibition__body .wp-block-post-content :is(.alignleft, .alignright) {
		float: none;
		margin: 0 0 20px;
	}

	/* A plain aligned image typed into a text paragraph (classic content:
	   <p><img class="alignright">Text...</p>) is inline once it stops
	   floating, so the first line would start beside its bottom edge. As a
	   block it sits above the text, like a captioned image. */
	.grunt-exhibition__body .wp-block-post-content img:is(.alignleft, .alignright) {
		display: block;
	}
}

.grunt-access {
	display: grid;
	/* minmax(0, ...): a wide child (core's playlist audio is 640px) must not
	   size the track past the page (WCAG 1.4.10). */
	grid-template-columns: minmax(0, 1fr);
}

/* The comp's band head keeps its padding below the heading (.tpl-bandhead,
   63.5px at 1440 on the R2.1 page), and the items follow it straight
   away, 34px apart (.tpl-access gap): no gap between the head and the
   first item. */
.grunt-access > :not(.grunt-exband__head) + * {
	margin-top: 34px;
}

.grunt-access__h {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 9px !important;
}

/* The comp's .tpl-acclead: text at 66ch; the player and the embed take the
   full column. */
.grunt-access__item > p,
.grunt-access__info p {
	font-size: var(--wp--preset--font-size--body-s);
	line-height: 1.5;
	margin: 0 0 14px;
	max-width: 66ch;
}

/* Headings typed inside the Access & tours fields ("Creative Access Audio
   Tour", "Site map:" in Digital programming) rank below the section's own
   h3: one step smaller, with room above. */
.grunt-access :is(h2, h3, h4, h5, h6):not(.grunt-access__h, .grunt-thead) {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 24px 0 6px;
}

/* Core [playlist], with the comp's metrics (it recreated core's own
   rendering, so the class names are core's). */
.grunt-access .wp-playlist {
	border: 1px solid #ccc;
	padding: 10px;
	margin: 24px 0 14px;
	width: 100%;
	background: #fff;
	font-size: var(--wp--preset--font-size--label);
	line-height: 1.5;
}

.grunt-access .wp-playlist-tracks {
	margin-top: 10px;
}

.grunt-access .wp-playlist-item {
	padding: 3px 0;
	border-bottom: 1px solid #ccc;
}

.grunt-access .wp-playlist-item:last-child {
	border-bottom: 0;
}

.grunt-access .wp-playlist a {
	color: inherit;
	text-decoration: none;
}

.grunt-access .wp-playlist-playing {
	font-weight: 700;
}

.grunt-access .wp-playlist-item-artist {
	font-size: var(--wp--preset--font-size--fine);
	text-transform: uppercase;
}

.grunt-mosaic .grunt-embed {
	aspect-ratio: 16 / 9;
	position: relative;
	background: var(--wp--preset--color--text);
}

.grunt-mosaic .grunt-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.grunt-access__stills img {
	max-width: 100%;
	height: auto;
}

/* ---- Narrower pages ---------------------------------------------------- */

@media (max-width: 900px) {
	.grunt-homepast,
	.grunt-homeshop {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grunt-homepast__label,
	.grunt-homeshop__label,
	.grunt-homepast > .grunt-cards,
	.grunt-homeshop > .bc-newest {
		grid-column: 1 / -1;
	}

	.grunt-cards,
	.grunt-homepast > .grunt-cards,
	.grunt-homeshop > .bc-newest {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phones: one column (the mobile comps reflow the desktop markup). */
@media (max-width: 599px) {
	.grunt-mosaic {
		grid-template-columns: minmax(0, 1fr);
	}

	.grunt-front > .grunt-intro,
	.grunt-front > .grunt-homedonate {
		grid-column: 1 / -1;
	}

	.grunt-homedonate {
		padding: 28px 24px;
	}

	.grunt-hero--home .grunt-hero__title,
	.grunt-hero--single .grunt-hero__title,
	.grunt-mosaic .grunt-pagetitle {
		font-size: var(--wp--preset--font-size--h-3);
		line-height: 1.02;
	}

	.grunt-cards,
	.grunt-homepast,
	.grunt-homeshop,
	.grunt-homepast > .grunt-cards,
	.grunt-homeshop > .bc-newest {
		grid-template-columns: minmax(0, 1fr);
	}

	.grunt-mosaic .grunt-seeall a,
	.grunt-evpanel__all a {
		white-space: normal;
	}
}

/* ---- Body copy on phones (see style.css) ---------------------------------- */

/* List items have no rule of their own here (they take body from the
   page); they step down with the paragraphs. */
@media (max-width: 599px) {
	.grunt-mosaic .grunt-prose p,
	.grunt-mosaic .grunt-prose li {
		font-size: var(--wp--preset--font-size--body-s);
	}
}
