/*
 * Ian's Pizza Anywhere — page layout and rhythm.
 *
 * Scoped under .ipa-page. Nothing here styles a bare element or a theme class.
 *
 * WHAT THE THEME ALREADY DOES, and is used rather than rebuilt:
 *   .content-container / --medium / --small   page gutters and measure
 *   .display-h1 / -h2 / -h4 / -h6             the type scale
 *   .btn / .btn-primary / .btn-outline        buttons
 *   .card                                     white panel, 22px radius
 *   .bg-halftone-wrapper + .bg-halftone       the dot-screen texture overlay
 *   .has-small-font-size / .has-large-font-size
 *   .list-reset, .no-margin-top, .text-tan
 *
 * WHAT IS NEW HERE, and why:
 *   - Section rhythm. The template parts had no spacing rules at all, which is
 *     why the page read as flat.
 *   - The angled-edge mechanism. The front page does this with inline styles
 *     repeated on every section; this turns it into one rule driven by a
 *     custom property the template sets per section.
 *   - Image bleeds and the asymmetric two-column figure/text pairs.
 *   - The small-caps label with a rule under it, lifted from the front page's
 *     "MADISON WISCONSIN" location headings.
 */

.ipa-page {
	/* One vertical rhythm for the whole page, so sections relate to each other
	   instead of each picking its own padding. */
	--ipa-section-y: clamp(3rem, 7vw, 6rem);
	--ipa-section-y-tight: clamp(2rem, 4vw, 3.25rem);
	--ipa-ink: #42323D;
	--ipa-rule: rgba(66, 50, 61, .2);

	overflow-x: clip;

	/* One layer for the whole page, below the header (2026-09-27). Stickers
	   (50), the halftone content (6) and the open stack (4) were climbing
	   over the theme header, whose own layer is z-index 9: the mobile nav
	   and the desktop dropdowns opened underneath the page. Contained here,
	   the page keeps its internal order and sits under the header. */
	position: relative;
	z-index: 0;
	isolation: isolate;
}

/* On a phone the angle artwork is 28.5vw of a narrow viewport — proportionally
   the same, but far less absolute room is available, so the clearance is
   dialled back and the artwork is allowed to sit closer to the content. */
@media screen and (max-width: 640px) {
	.ipa-page {
		--ipa-section-y: clamp(2.25rem, 8vw, 3rem);
	}
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.ipa-section {
	position: relative;
	padding-top: var(--ipa-section-y);
	padding-bottom: var(--ipa-section-y);
}

/* An angled edge is artwork in the *next* section's colour, sitting at the
   bottom of this one. 100.2% rather than 100% hides the hairline that
   sub-pixel rounding otherwise leaves along the join.

   Sized 4px wider than the viewport and centred (2026-10-05): the artwork
   doesn't quite reach its own edges (the Kalamata tear starts at x=0.6 of
   1920), and iOS showed a 1px strip of this section's colour at the side:
   red at the right of the intro's join, tan at the left of the store
   finder's. The 2px overhang each side is clipped by the section.

   The shallow artwork is 546.4/1920 of its width tall — 28.5vw — and the tear
   runs corner to corner inside that band, so on one side it reaches the very
   top of it. Text has to clear the whole band or it ends up sitting on the
   diagonal. That is why these sections look airy at the bottom; the front page
   has exactly the same gap under its location cards.

   Capped, because 28.5vw on a 2560px monitor is 730px of nothing. */
.ipa-section[style*="--ipa-angle"] {
	--ipa-angle-h: min(24vw, 360px);

	background-position: center 100.2%;
	background-size: calc(100vw + 4px);
	background-repeat: no-repeat;
	background-image: var(--ipa-angle);
	padding-bottom: calc(var(--ipa-section-y-tight) + var(--ipa-angle-h));
}

/* The section's own content has to sit above the angle artwork. */
.ipa-section > * {
	position: relative;
	z-index: 2;
}

.ipa-section--tight {
	padding-top: var(--ipa-section-y-tight);
	padding-bottom: var(--ipa-section-y-tight);
}

/* A tight section's content is short and centred, so the tear never reaches
   it and the full clearance is just dead colour. */
.ipa-section--tight[style*="--ipa-angle"] {
	padding-bottom: calc(var(--ipa-section-y-tight) + var(--ipa-angle-h) * 0.55);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

/* The small-caps label with a rule under it, as used above each city's store
   list on the front page. It gives a section a quiet opening line without
   spending a heading on it. */
.ipa-label {
	display: block;
	margin: 0 0 1.25rem;
	padding-bottom: .4rem;
	border-bottom: 2px solid currentColor;
	font-family: 'Work Sans', sans-serif;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	max-width: 22rem;
}

/* The hero headline wants to be bigger than .display-h1's fixed 5.125rem on a
   wide screen and smaller on a phone, and .display-h1 is used site-wide so it
   cannot be changed. This scales between roughly h2 and well past h1. */
.ipa-page .ipa-display {
	font-size: clamp(2.75rem, 7.5vw, 6.5rem);
	line-height: .95;
	margin-top: 0;
	margin-bottom: .25em;
}

/* A lede paragraph: bigger than body copy, still a comfortable measure.
   Sized against the viewport rather than with .has-large-font-size, whose fixed
   1.4rem sits too close to a section heading once the heading scales down on a
   phone — the two ended up almost the same size. */
.ipa-lede {
	font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
	line-height: 1.45;
	max-width: 46ch;
}

.ipa-section--hero .ipa-lede {
	max-width: 34ch;
}

.ipa-prose {
	max-width: 60ch;
}

.ipa-prose p {
	font-size: clamp(1rem, 1.3vw, 1.1875rem);
	line-height: 1.6;
}

.ipa-section__intro {
	max-width: 46ch;
	margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Asymmetric figure + text pairs
   -------------------------------------------------------------------------- */

.ipa-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

@media screen and (min-width: 860px) {
	.ipa-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	/* Text first in the markup, image first on screen — so the reading order
	   stays sensible while the layout alternates down the page. */
	.ipa-split--image-left .ipa-split__media {
		order: -1;
	}
}

.ipa-split__media {
	position: relative;
	margin: 0;
}

.ipa-split__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 22px;
}

/* Let a figure run off the edge of the page rather than sitting politely
   inside the gutter. This is most of what stops a section reading as a box of
   text on a colour. */
@media screen and (min-width: 860px) {
	.ipa-split--bleed-left .ipa-split__media {
		margin-left: calc(50% - 50vw);
	}

	.ipa-split--bleed-left .ipa-split__media img {
		border-radius: 0 22px 22px 0;
	}

	.ipa-split--bleed-right .ipa-split__media {
		margin-right: calc(50% - 50vw);
	}

	.ipa-split--bleed-right .ipa-split__media img {
		border-radius: 22px 0 0 22px;
	}
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ipa-section--hero {
	padding-top: clamp(2.5rem, 6vw, 5rem);
}

/* Desktop: the tear into the stack rises to the top of its band on the left,
   right under the CTA buttons, so the copy needs the full band of
   clearance there. (Phones keep the tighter value below; the picture sits
   under the copy.) */
@media screen and (min-width: 860px) {
	.ipa-section.ipa-section--hero[style*="--ipa-angle"] {
		padding-bottom: calc(var(--ipa-section-y-tight) + var(--ipa-angle-h));
	}
}

/* A media + text split, like the block editor's Media & Text: copy on the
   left half, picture on the right half, centred against each other. (It used
   to drop the picture into the torn edge, which pushed it down the screen.)
   Only a tight clearance under it, since nothing crosses the tear now. */
.ipa-section--hero[style*="--ipa-angle"] {
	padding-bottom: calc(var(--ipa-section-y-tight) + var(--ipa-angle-h) * 0.6);
}

.ipa-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

@media screen and (min-width: 860px) {
	.ipa-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.ipa-hero__media {
	position: relative;
	margin: 0;
}

.ipa-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 22px;
}

.ipa-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	margin-top: 1.75rem;
}

.ipa-hero__actions .btn {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

/* Phones: a touch smaller, so the two CTAs sit side by side from about
   375px; narrower than that they still wrap to a line each (2026-10-01). */
@media screen and (max-width: 479px) {
	.ipa-hero__actions {
		gap: .6rem .5rem;
	}

	/* !important only because the theme sets every .btn to
	   `font-size: 1rem !important` (sass/style.css). */
	.ipa-hero__actions .btn {
		padding-left: .75rem;
		padding-right: .75rem;
		font-size: .9375rem !important;
	}
}

/* --------------------------------------------------------------------------
   Facts strip — three short specifics, to break up the run of prose
   -------------------------------------------------------------------------- */

/* The last full-width block before a torn edge needs the clearance most, since
   the tear reaches the top of its band at one side. */
.ipa-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(.75rem, 2vw, 1.75rem);
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	padding: 0;
	list-style: none;
}

.ipa-facts__item {
	margin: 0;
}

.ipa-facts__value {
	display: block;
	font-family: 'citrus_gothic_solidregular', sans-serif;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1;
}

.ipa-facts__label {
	display: block;
	margin-top: .35em;
	font-size: .9375rem;
	opacity: .8;
}

/* --------------------------------------------------------------------------
   Request cards
   -------------------------------------------------------------------------- */

.ipa-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 2.5vw, 2rem);
	margin-top: 2rem;
}

@media screen and (min-width: 780px) {
	.ipa-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* .card brings the 22px radius and the padding; this only adds what a panel of
   running text needs that a location card does not. */
.ipa-card {
	display: block;
	align-items: start;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	background: #fff;
	color: var(--ipa-ink);
}

.ipa-card > :last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Catering
   -------------------------------------------------------------------------- */

.ipa-section--catering .btn-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	margin-top: 1.5rem;
}

/* The row stretches both buttons to the taller one (the outline adds a 2px
   border), which left the filled button's text riding high. Centre it. */
.ipa-section--catering .btn-wrapper .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

/* --------------------------------------------------------------------------
   Stack section — the boxes supply the drama, so the frame stays quiet
   -------------------------------------------------------------------------- */

/* The pinned scene supplies this section's height, so it needs no bottom
   padding of its own — only enough clearance for the torn edge beneath it. */
.ipa-section--stack {
	padding-bottom: 0;
}

/* While a flavour is open, the stack section fades to a gradient of that
   box's main fill (sampled from the lid artwork) and the same colour 10%
   darker. Desktop: dark on the left, where the box sits, to the main colour
   on the right. Phones: dark at the top to the main colour at the bottom.

   Gradients cannot transition, but registered colours can, so the two stops
   are @property colours that animate and the gradient is rebuilt from them
   each frame. At rest both stops are Kalamata, matching the section's own
   inline colour. Browsers without @property still get the gradient, just without
   the fade.

   The stack component marks its root with [data-open]; it never reaches out
   to the page itself. The torn edge into the intro is the section's own
   background-image, so it is layered on top of the gradient here. */
@property --ipa-stack-dark {
	syntax: '<color>';
	inherits: false;
	initial-value: #42323D;
}

@property --ipa-stack-main {
	syntax: '<color>';
	inherits: false;
	initial-value: #42323D;
}

/* [style] for specificity: it has to outrank .ipa-section[style*="--ipa-angle"],
   which would otherwise put the torn edge back as the only layer. */
.ipa-section.ipa-section--stack[style] {
	--ipa-stack-dir: to right;
	background-image: var(--ipa-angle, none), linear-gradient(var(--ipa-stack-dir), var(--ipa-stack-dark), var(--ipa-stack-main));
	background-size: 100vw, 100% 100%;
	background-position: center 100.2%, 0 0;
	background-repeat: no-repeat;
	transition: --ipa-stack-dark .6s ease, --ipa-stack-main .6s ease, color .6s ease;
}

/* On Kalamata the stack's floor shadow, itself Kalamata-tinted, disappears.
   Deeper and neutral here. The component exposes it as a custom property. */
.ipa-section--stack .ip-stack {
	--ip-stack-shadow: rgba(0, 0, 0, .55);
}

/* The heading, label and hint are white on Kalamata, but the flavour colours
   are light, so while one is open the section's text goes Kalamata. The
   inline colour comes from ipa_section_style(), hence !important. */
.ipa-section--stack:has(.ip-stack[data-open]) {
	color: #42323D !important;
}

@media screen and (max-width: 859px) {
	.ipa-section--stack {
		--ipa-stack-dir: to bottom;
	}
}

/*                                                          main      10% darker */
.ipa-section--stack:has(.ip-stack[data-open="sausage"])    { --ipa-stack-main: #62C155; --ipa-stack-dark: #58AE4D; }
.ipa-section--stack:has(.ip-stack[data-open="pepperoni"])  { --ipa-stack-main: #98CAE7; --ipa-stack-dark: #89B6D0; }
.ipa-section--stack:has(.ip-stack[data-open="cheese"])     { --ipa-stack-main: #F7EED8; --ipa-stack-dark: #DED6C2; }
.ipa-section--stack:has(.ip-stack[data-open="macncheese"]) { --ipa-stack-main: #D7A3C7; --ipa-stack-dark: #C293B3; }

/* While a flavour is open the pizza wheel runs past the top and bottom of the
   stage, over the neighbouring sections. Lift the stack above their content
   (2) and stickers (3) so it passes over them cleanly rather than slipping
   under the intro's photo. The drop back is delayed until the wheel has
   rolled away. */
.ipa-section--stack > .ip-stack {
	transition: z-index 0s .7s;
}

.ipa-section--stack > .ip-stack[data-open] {
	z-index: 4;
	transition-delay: 0s;
}

.ipa-section--stack[style*="--ipa-angle"] {
	padding-bottom: var(--ipa-angle-h);
}

/* "The People's Pizza", big and quiet behind the boxes (2026-10-01). On the
   section, not in the stack, so it stays inside the section (a background
   layer stops at its edges) and sits under the hung tear above, where the
   pizza wheel is still free to run past both. Black at 12% through the
   artwork as a mask: always about 12% darker than the section, Kalamata at
   rest or the open flavour's colour. About 4x the box width on desktop;
   the full viewport less 16px each side on phones. Centred on the stage,
   which is 100vh tall and ends above the section's bottom tear padding.
   Fades while a box is open, so it doesn't fight the wheel. */
.ipa-section--stack {
	/* Desktop: never wider than the screen (less 16px each side), and up to
	   about 1.4x the 100vh stage tall. That reaches into the heading area
	   above the stage and the tear padding below it, both still inside the
	   section, so the lettering clears the stack (2026-10-01; at 95vh it hid
	   behind it). Phones: below. */
	--ipa-mark-w: min(calc(100vw - 32px), calc(142vh * 257.24 / 296.82));
	--ipa-mark-h: calc(var(--ipa-mark-w) * 296.82 / 257.24);
}

.ipa-section--stack::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, .12);
	-webkit-mask: url("../../../../themes/ianspizza/svg/the-peoples-pizza.svg") no-repeat;
	mask: url("../../../../themes/ianspizza/svg/the-peoples-pizza.svg") no-repeat;
	-webkit-mask-size: var(--ipa-mark-w) auto;
	mask-size: var(--ipa-mark-w) auto;
	-webkit-mask-position: left 50% bottom calc(var(--ipa-angle-h, 0px) + 50vh - var(--ipa-mark-h) / 2);
	mask-position: left 50% bottom calc(var(--ipa-angle-h, 0px) + 50vh - var(--ipa-mark-h) / 2);
	pointer-events: none;
	transition: opacity .4s ease;
}

.ipa-section--stack:has(.ip-stack[data-open])::after,
.ipa-section--stack:has(.ip-stack.is-static)::after {
	opacity: 0;
}

@media screen and (max-width: 859px) {
	.ipa-section--stack {
		--ipa-mark-w: calc(100vw - 32px);
	}
}

/* Left-aligned and pulled up: less top padding, and the stage starts right
   under the heading instead of a full gap below it. */
.ipa-section--stack {
	padding-top: clamp(1.5rem, 3.5vw, 3rem);
}

.ipa-section--stack .ipa-section__head {
	text-align: left;
	margin-bottom: clamp(-6rem, -8vw, -2rem);
}

.ipa-section--stack .ipa-section__head h2 {
	margin: 0;
}

/* Phones, where the detail view stacks box over panel: the open box rises
   into the heading's space, so the heading and flavour list step aside. */
.ipa-section--stack .ipa-section__head {
	transition: opacity .35s ease;
}

@media screen and (max-width: 859px) {
	.ipa-section--stack:has(.ip-stack[data-open]) .ipa-section__head {
		opacity: 0;
		pointer-events: none;
	}
}

/* The flavour list, moved up from under the stack to under the heading. */
.ipa-section--stack .ipa-flavor-list {
	margin: .5rem 0 0;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	opacity: .85;
}

/* --------------------------------------------------------------------------
   Email — a narrow, quiet moment between two busy sections
   -------------------------------------------------------------------------- */

/* Only the heading and line are centred, with the theme's .text-center
   (2026-10-01); the form inside the card reads left-aligned. */
.ipa-section--email .content-container {
	max-width: 44rem;
	margin-inline: auto;
}

.ipa-section--email .ipa-label {
	margin-inline: auto;
	max-width: 14rem;
}

/* --------------------------------------------------------------------------
   Form skeletons — drawn until the Gravity Forms exist.

   Styled enough to judge the layout, and visibly inert: disabled inputs, a
   non-button, and a note. A placeholder a visitor could mistake for a live form
   would be worse than an empty section.
   -------------------------------------------------------------------------- */

.ipa-formskel {
	margin-top: 1.25rem;
}

.ipa-formskel__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .85rem 1rem;
}

.ipa-formskel__field {
	display: flex;
	flex-direction: column;
	margin: 0;
	grid-column: span 4;
}

@media screen and (min-width: 560px) {
	.ipa-formskel__field--half    { grid-column: span 2; }
	.ipa-formskel__field--quarter { grid-column: span 1; }
}

.ipa-formskel__field label {
	font-size: .875rem;
	font-weight: 700;
	margin-bottom: .3em;
}

.ipa-formskel__field input,
.ipa-formskel__field textarea {
	width: 100%;
	padding: .55em .8em;
	border: 1px solid rgba(66, 50, 61, .3);
	border-radius: 10px;
	background: rgba(66, 50, 61, .04);
	font: inherit;
	font-size: .9375rem;
	color: inherit;
}

.ipa-formskel__field input::placeholder,
.ipa-formskel__field textarea::placeholder {
	color: rgba(66, 50, 61, .45);
}

.ipa-formskel__consent {
	margin: 1rem 0 0;
	font-size: .8125rem;
	opacity: .75;
}

.ipa-formskel__actions {
	margin: 1.25rem 0 0;
}

/* A span, not a button — there is nothing to submit to. */
.ipa-formskel__actions .btn {
	display: inline-block;
	opacity: .55;
	cursor: default;
}

.ipa-formskel__note {
	margin: .6rem 0 0;
	font-size: .75rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .55;
}

/* --------------------------------------------------------------------------
   Fundraising
   -------------------------------------------------------------------------- */

.ipa-section--fundraising .ipa-prose {
	margin-bottom: 1.5rem;
}

.ipa-section--fundraising .ipa-doughnation {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ipa-rule);
}

/* --------------------------------------------------------------------------
   Stickers — the brand illustrations as die-cut violators. Placed against a
   section edge or a photo corner, never in the content grid, and tilted as if
   slapped on by hand. The white border is baked into the artwork; the shadow
   lifts it off the page. z-index 3 so a sticker straddling a torn edge
   stays above the section below (content is 2).
   -------------------------------------------------------------------------- */

/* Stickers ride above every piece of content on the page. 50, because the
   theme lifts halftone sections' content to 6 (.bg-halftone-wrapper), which
   is what the Capitol was sliding under. A sticker that lives inside a
   section's content wrapper can only rise as high as that wrapper, so the
   wrapper is lifted too (:has, below). */
.ipa-section .ipa-sticker {
	position: absolute;
	z-index: 50;
	height: auto;
	max-width: none;
	transform: rotate(var(--ipa-sticker-r, -6deg));
	filter: drop-shadow(0 6px 10px rgba(30, 20, 28, .22));
	/* Draggable (assets/front/anywhere.js): pick them up and move them. */
	cursor: grab;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.ipa-section .ipa-sticker:active {
	cursor: grabbing;
}

.ipa-section > *:has(.ipa-sticker) {
	z-index: 50;
}

/* Placements (revised 2026-09-27). On phones every sticker keeps to the
   left side: most people scroll with their right thumb down the right
   gutter, and a sticker there gets grabbed instead of the page scrolling. */

.ipa-hero__media {
	position: relative;
}

/* Hero, desktop: bottom right of the photo, in the blank area below the
   wrist, partly off the photo. Phones: top-left corner. */
.ipa-section .ipa-sticker--hero {
	--ipa-sticker-r: -9deg;
	width: clamp(108px, 11vw, 170px);
	right: -6%;
	bottom: -10%;
}

/* Stack, desktop: above the "Pick your slice" heading, left-aligned with it,
   cut across the middle by the yellow tear above (2026-10-01; at -.75 it sat
   mostly in the yellow). Phones: bottom left of the section. */
.ipa-section .ipa-sticker--stack {
	--ipa-sticker-r: -8deg;
	width: clamp(147px, 12vw, 190px);
	left: clamp(2rem, 4.2vw, 4rem);
	top: calc(clamp(147px, 12vw, 190px) * -.4);
}

/* Intro: the skyline on the photo's inner (right) edge, near the top, where
   the gap beside it is empty. Low down it covered the facts. Under a fifth of
   it hangs past the edge, inside the gutter before the copy. Phones: the
   photo's left edge. */
.ipa-section .ipa-sticker--intro {
	--ipa-sticker-r: -5deg;
	width: clamp(115px, 15vw, 220px);
	right: calc(clamp(115px, 15vw, 220px) * -.18);
	top: 6%;
}

/* Store finder: the UFO on the map box's top-left corner. */
.ipa-section .ipa-sticker--locator-map {
	--ipa-sticker-r: -8deg;
	width: clamp(154px, 13vw, 200px);
	left: -3%;
	top: calc(clamp(154px, 13vw, 200px) * -.55);
}

/* Store finder, no map box (no key, visitor): over the section's top edge. */
.ipa-section .ipa-sticker--locator {
	--ipa-sticker-r: 8deg;
	width: clamp(154px, 13vw, 200px);
	left: 5vw;
	top: calc(clamp(40px, 6vw, 90px) * -1);
}

/* Requests: in the Kalamata above "Want Ian's closer to home?", top left. */
.ipa-section .ipa-sticker--requests {
	--ipa-sticker-r: -9deg;
	width: clamp(120px, 7.5vw, 130px);
	left: clamp(2rem, 4.2vw, 4rem);
	top: calc(clamp(120px, 7.5vw, 130px) * -.95);
}

@media screen and (max-width: 767px) {
	.ipa-section .ipa-sticker--hero        { width: 108px; right: auto; bottom: auto; left: -10px; top: -30px; }
	.ipa-section .ipa-sticker--stack       { width: 147px; left: 12px; top: auto; bottom: calc(min(24vw, 360px) + 12px); }
	.ipa-section .ipa-sticker--intro       { width: 115px; right: auto; left: -12px; top: 18%; bottom: auto; }
	.ipa-section .ipa-sticker--locator-map { width: 150px; left: -6px; top: -82px; }
	.ipa-section .ipa-sticker--locator     { width: 154px; left: 8px; top: -118px; }
	.ipa-section .ipa-sticker--requests    { width: 110px; left: 12px; top: -150px; }
}

/* Requested areas: one yellow card, text 25% | map 75% (2026-10-01, D-037;
   new CSS approved by the user). The yellow is "Get slice news"'s, from
   ipa_angle_palette(); it was the theme orange for an evening. */
.ipa-card.ipa-areas {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 2.5vw, 2rem);
	margin-top: clamp(1rem, 2.5vw, 2rem);
	background: #FCE245;
	color: #42323D;
}

@media screen and (min-width: 780px) {
	.ipa-card.ipa-areas {
		grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
		align-items: stretch;
	}
}

/* min-height:0 undoes the store finder's 320px floor (with aspect-ratio 4/3
   it forced a 427px width, wider than a phone). No dark edge here
   (2026-10-01); the store finder's map keeps its border. */
.ipa-areas .ipa-locator__map {
	min-height: 0;
	margin: 0;
	border: 0;
	border-radius: 14px;
}

/* "Want Ian's in your town?" joined onto the map module (2026-10-05,
   D-042; new CSS approved by the user): one yellow shape, no Kalamata gap.
   Phones: square where they meet. Desktop: the map's top-right corner is
   square under the card, and the card's bottom-left corner curves out into
   the map's top edge. */
.ipa-card.ipa-card--joined {
	background: #FCE245;
	margin-bottom: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.ipa-cards--joined + .ipa-card.ipa-areas {
	margin-top: 0;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

@media screen and (min-width: 780px) {
	.ipa-cards--joined > .ipa-card:not(.ipa-card--joined) {
		margin-bottom: clamp(1rem, 2.5vw, 2rem);
	}

	.ipa-cards--joined + .ipa-card.ipa-areas {
		border-top-left-radius: 22px;
	}

	.ipa-card.ipa-card--joined {
		position: relative;
	}

	.ipa-card.ipa-card--joined::after {
		content: "";
		position: absolute;
		left: -20px;
		bottom: 0;
		width: 20px;
		height: 20px;
		background: radial-gradient(circle at 0 0, transparent 19.5px, #FCE245 20px);
	}
}

/* Kalamata button (2026-10-05, D-042; approved): the store finder's "Call to
   check the freezer", on cards and in the store sheet. Two classes, to beat
   the theme's later-loading .btn green. */
.btn.ipa-btn-kalamata {
	background: #42323D;
	color: #fff !important;
}

.btn.ipa-btn-kalamata:hover {
	filter: brightness(1.3);
}

/* iOS zooms the page when a field under 16px takes focus (2026-10-05, asked
   for directly). Every Gravity Forms field on /anywhere/ (15px by default),
   in sheets and cards, is held at 16px. !important because Gravity Forms
   sizes its fields through several theme selectors. The store finder's
   search box is 17px already, so it's left out. */
.ipa-page .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.ipa-page .gform_wrapper select,
.ipa-page .gform_wrapper textarea {
	font-size: 16px !important;
}

/* Gravity Forms 2.5+ wraps the validation message in a bordered box, but the
   theme moves the message itself out to a fixed toast (gf-custom.js), so
   the box was left empty above the form. /anywhere/ only, by the user's
   choice (2026-10-05); the rest of the site still shows it. Not opacity:0,
   which would hide the toast inside it too. */
.ipa-page .gform_wrapper.gravity-theme .gform_validation_errors {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   Modules — a short block of text and one button (requests, fundraising)
   -------------------------------------------------------------------------- */

/* Two classes: the theme's .card (a centring grid) loads after this file
   and would otherwise win at equal specificity. A module reads top-down. */
.ipa-card.ipa-module {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
}

.ipa-card.ipa-module > * {
	margin-top: 0;
}

.ipa-card.ipa-module .ipa-module__action {
/*	margin-top: auto;*/
	padding-top: .75rem;
	margin-bottom: 0;
}

.ipa-module .btn {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

@media screen and (min-width: 980px) {
	.ipa-cards--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Catering's two options. */
.ipa-options {
	margin: 1.25rem 0 0;
}

.ipa-options li {
	max-width: 52ch;
	margin-bottom: .85rem;
}

/* --------------------------------------------------------------------------
   Form sheets — a <dialog> opened with showModal(). A bottom sheet on a
   phone, a panel from the right on a wider screen.
   -------------------------------------------------------------------------- */

/* Fixed to the screen. The dialog sits directly inside its section, so the
   page's `.ipa-section > * { position: relative; z-index: 2 }` was catching it:
   the sheet was placed against the top of the document, and focusing its
   close button scrolled the page up to it. Two classes to outrank that. */
.ipa-section > .ipa-sheet {
	position: fixed;
	inset: 0;
	z-index: auto;
}

.ipa-sheet {
	width: 100%;
	max-width: 100%;
	max-height: 88vh;
	margin: auto 0 0;
	padding: 0;
	border: 0;
	border-radius: 22px 22px 0 0;
	background: #fff;
	color: #42323D;
	box-shadow: 0 -10px 40px rgba(30, 20, 28, .25);
}

.ipa-sheet::backdrop {
	background: rgba(30, 20, 28, .55);
}

.ipa-sheet[open] {
	animation: ipa-sheet-up .35s cubic-bezier(.2, .8, .2, 1);
}

@keyframes ipa-sheet-up {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

@media screen and (min-width: 780px) {
	.ipa-sheet {
		width: min(34rem, 92vw);
		height: 100vh;
		max-height: 100vh;
		margin: 0 0 0 auto;
		border-radius: 22px 0 0 22px;
		box-shadow: -10px 0 40px rgba(30, 20, 28, .25);
	}

	.ipa-sheet[open] {
		animation-name: ipa-sheet-in;
	}

	@keyframes ipa-sheet-in {
		from { transform: translateX(100%); }
		to   { transform: translateX(0); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.ipa-sheet[open] {
		animation: none;
	}
}

.ipa-sheet__inner {
	position: relative;
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.ipa-sheet__inner h3 {
	padding-right: 3rem;
}

.ipa-sheet__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(66, 50, 61, .08);
	color: inherit;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.ipa-sheet__close:hover,
.ipa-sheet__close:focus-visible {
	background: rgba(66, 50, 61, .16);
}

/* The page behind a sheet should not scroll. */
html.ipa-sheet-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Wavy marquee — Osmo Supply's resource CSS, scoped under .ipa-page so its
   generic class names (.logo-card, .wavy-marquee) cannot reach the rest of
   the site. Only the card colour changed: white on tan, not #f4f4f4.
   -------------------------------------------------------------------------- */

/* A thin strip on the join between the intro and the store finder: it takes
   almost no page height, and the icons ride over the edges of both sections
   (2026-09-25). The marquee is centred on the strip and overflows it; the
   strip clips sideways only. Painted after the intro, so the icons pass over
   its torn edge. */
.ipa-section--marquee {
	--ipa-mq-sm: clamp(44px, 6vw, 76px);   /* menu nav icons */
	--ipa-mq-lg: calc(var(--ipa-mq-sm) * 2); /* illustrations, twice as tall */
	/* How far up into the intro's torn edge the strip rides. That band is
	   the intro's clearance for the tear (min(24vw, 360px) tall) and holds
	   no text, so the icons can pass through it without touching the copy
	   above or the store finder below. A `top` offset, not a margin, so the
	   page flow is untouched: the marquee adds no height at all. */
	--ipa-mq-lift: calc(min(24vw, 360px) * .5);
	top: calc(var(--ipa-mq-lift) * -1);
	height: 0;
	padding: 0;
	overflow-x: clip;
	overflow-y: visible;
}

@media screen and (max-width: 640px) {
	.ipa-section--marquee {
		/* Phones (2026-09-27): twice the size they were (menu icons 44 to
		   88px, illustrations 88 to 176px). The tear band is only ~94px
		   here, too little for icons this size, so on phones the strip
		   takes some real height: the icons ride the tear and spill a
		   little into it and the band below, clear of the copy either side. */
		--ipa-mq-sm: 88px;
		/* Sized for the worst case, not a sample: the tallest icon (176px)
		   on a wave of a quarter of its height reaches 132px either side of
		   the strip's centre. A 212px strip, pulled 90px up into the red
		   section's tear (see-through there), clears the facts above and
		   the "Store finder" label below, for 122px of page height. */
		--ipa-mq-lift: 90px;
		height: 212px;
		/* Pulled up by a margin, not shifted by `top`: the shift left its
		   tan band covering the bottom-left of the red section's torn edge
		   (a flat line there) and a 30px uncovered gap below it (a white
		   bar). Now the band is part of the flow, and its top 30px, which
		   overlaps the red section's tear, is see-through so the tear
		   shows. */
		top: 0;
		margin-top: calc(var(--ipa-mq-lift) * -1);
		background: linear-gradient(to bottom, transparent var(--ipa-mq-lift), #F3E7D3 var(--ipa-mq-lift)) !important;
	}

	.ipa-section--marquee > .wavy-marquee {
		top: 50%;
	}
}

.ipa-section--marquee > .wavy-marquee {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
}

.ipa-page .wavy-marquee {
  width: 100%;
  position: relative;
}

.ipa-page .wavy-marquee__collection {
  width: 100%;
  height: 100%;
  position: relative;
}

.ipa-page .wavy-marquee__list {
  touch-action: pan-y;
  gap: clamp(.75em, 1.125vw, 2.25em);
  align-items: center;
  width: max-content;
  height: 100%;
  display: flex;
  position: relative;
}

.ipa-page .wavy-marquee__item {
  flex: none;
  position: relative;
}

.ipa-page .logo-card {
  -webkit-user-select: none;
  user-select: none;
  /* 2026-09-25: just the icon, no circle, and each card exactly the icon's
     own shape (--ipa-mq-ar, from its SVG viewBox), so the spacing is the
     list gap alone rather than padding around a square. Two sizes: menu
     nav icons, and illustrations at twice the height. */
  --ipa-mq-h: var(--ipa-mq-sm, 76px);
  height: var(--ipa-mq-h);
  width: calc(var(--ipa-mq-h) * var(--ipa-mq-ar, 1));
  background-color: transparent;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.ipa-page .logo-card--lg {
  --ipa-mq-h: var(--ipa-mq-lg, 152px);
}

.ipa-page .logo-card__box {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
}

.ipa-page .logo-card__box-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
}


/* --------------------------------------------------------------------------
   FAQ — native <details>, so answers work with JavaScript off.
   -------------------------------------------------------------------------- */

.ipa-faq {
	max-width: 48rem;
	margin-top: 1.5rem;
	border-top: 2px solid currentColor;
}

.ipa-faq__item {
	border-bottom: 1px solid var(--ipa-rule);
}

.ipa-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 44px;
	padding: 1rem 0;
	font-family: 'Work Sans', sans-serif;
	font-weight: 800;
	font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
	cursor: pointer;
	list-style: none;
}

.ipa-faq__q::-webkit-details-marker {
	display: none;
}

/* A plus that turns into a minus. */
.ipa-faq__q::after {
	content: "+";
	flex: none;
	font-size: 1.5em;
	line-height: 1;
	transition: transform .2s ease;
}

.ipa-faq__item[open] > .ipa-faq__q::after {
	content: "\2212";
}

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

.ipa-faq__a {
	padding: 0 0 1.25rem;
	max-width: 60ch;
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	line-height: 1.6;
}

.ipa-faq__a > :first-child {
	margin-top: 0;
}

.ipa-faq__a > :last-child {
	margin-bottom: 0;
}

.ipa-faq__a ol {
	padding-left: 1.25em;
}

/* --------------------------------------------------------------------------
   Review flags — editors only (ipa_review_flag() prints nothing for
   visitors). Marks copy still waiting on Ian's sign-off.
   -------------------------------------------------------------------------- */

.ipa-review {
	display: inline-block;
	margin: .25rem 0;
	padding: .15em .6em;
	border-radius: 999px;
	background: #FBE140;
	color: #42323D;
	font-family: 'Work Sans', sans-serif;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .02em;
	vertical-align: middle;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   "See every store" tiles open the store sheet; the full-tile button is the
   theme's .link-expander, reset from a button.
   -------------------------------------------------------------------------- */

.ipa-page .ipa-locator__tile-open {
	left: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 22px;
	background: transparent;
	cursor: pointer;
}

.ipa-page .ipa-locator__tile-open:focus-visible {
	outline: 3px solid var(--ipa-ink);
	outline-offset: 2px;
}

/* Kalamata (2026-10-01): a call to action under the store list, not another
   store tile. Matches the theme's .bg-kalamata, which this rule outranks. */
.ipa-page .ipa-locator__missing {
	max-width: 30rem;
	margin-top: 1.5rem;
	padding: 1.25rem 1.4rem;
	background: #42323D;
	color: #fff;
	display: block;
}

/* --------------------------------------------------------------------------
   Stack module — the box stack on other pages (ipa_render_stack_module()).
   -------------------------------------------------------------------------- */

/* Its heading carries CTAs, so the stage no longer tucks up under it (the
   page version pulls the stage up with a negative margin). */
.ipa-section--stack-module .ipa-section__head {
	margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.ipa-section--stack-module {
	padding-top: var(--ipa-section-y);
}

.ipa-section--stack-module .ipa-module__lede {
	margin: 0 0 .5rem;
	max-width: 40ch;
}

.ipa-section--stack-module .ipa-label {
	color: inherit;
}

/* from="white": the previous section's white hangs down over the module's
   top as a torn edge (the theme's white tear, flipped), so the module can
   sit under a section that already tears into white. */
/* The tear box is the artwork's own proportion (1920 × 546.4), so none of it
   is cut off. At min(24vw, 360px) it was 307px of a 364px tear at 1280, and
   the cut end left the Kalamata with a flat top against the section above.
   It is then drawn at 70% height (the transform below), a shallower slope
   and less white under the location tiles (both 2026-09-30). The padding
   clears the tear's low end, on the left under the eyebrow. */
.ipa-section--from-white {
	padding-top: calc(var(--ipa-section-y) + 100vw * 546.4 / 1920 * .7 * .9);
}

.ipa-section--from-white::before {
	content: "";
	position: absolute;
	top: -1px;
	/* 2px past each side: at exactly 100vw a half-pixel of Kalamata showed
	   down the left edge of the white. */
	left: -2px;
	right: -2px;
	height: calc(100vw * 546.4 / 1920);
	background: url("../../../../themes/ianspizza/svg/fill-angle--white--shallow-ltr.svg") center top / calc(100vw + 4px) auto no-repeat;
	/* Upside down so the white hangs from the top, at 70% height. Scaled
	   about the top edge, a flip would land above the box, so it is moved
	   back down by the scaled height. Not mirrored since 2026-09-30: under
	   the location tiles (D-032) the edge reads better rising to the right,
	   upper right to lower left. */
	transform: translateY(70%) scaleY(-.7);
	transform-origin: 50% 0;
	pointer-events: none;
	z-index: 1;
}


/* from="yellow", /anywhere/: the hero's yellow hangs over the stack's top,
   in place of the hero's own Kalamata tear. The colour under the tear is
   then the stack section's own background, so it follows the open flavour
   with the rest of the section; with the hero's tear it stayed Kalamata
   (D-021's known limitation, lifted by D-033, 2026-09-30). Same artwork
   and slope as before: the yellow tear, turned upside down. */
.ipa-section--stack.ipa-section--from-yellow {
	padding-top: calc(clamp(1.5rem, 3.5vw, 3rem) + 100vw * 546.4 / 1920 * .55);
}

.ipa-section--stack.ipa-section--from-yellow::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -2px;
	right: -2px;
	height: calc(100vw * 546.4 / 1920);
	background: url("../../../../themes/ianspizza/svg/fill-angle--yellow--shallow.svg") center top / calc(100vw + 4px) auto no-repeat;
	transform: scaleY(-1);
	pointer-events: none;
	z-index: 1;
}


/* The theme's outline button is Kalamata on transparent, which vanishes on
   the Kalamata module. Follow the section's text colour instead: white at
   rest, Kalamata while a light flavour colour is open behind it. */
.ipa-section--stack-module .ipa-hero__actions a.btn-outline,
.ipa-section--stack-module .ipa-hero__actions a.btn-outline:visited {
	color: inherit !important;
	border-color: currentColor;
}


/* Module, desktop: the WI Cheese sticker straddles the torn edge above the
   heading rather than sitting on the eyebrow. */
@media screen and (min-width: 768px) {
	/* Across the tear's low end on the left, just above the eyebrow and
	   touching the Kalamata (2026-09-30; it sat on the Verona tile). */
	.ipa-section--stack-module .ipa-sticker--stack {
		top: calc(100vw * 546.4 / 1920 * .7 * .92 - clamp(147px, 12vw, 190px) * .75);
	}
}

/* The module's layer on other pages: above the theme's halftone sections
   (their content is z-index 6), so its sticker can reach up over the torn
   edge into the section above, and still below the site header (9). */
.ipa-page.ipa-page--module {
	z-index: 7;
}
