/* Matjari sections: the frame of the home page and the content pages.
   The contract is docs/DESIGN-SYSTEM.md: 5.2 (the wrapper), 4.9.3 (the
   grounds), 4.2.2 to 4.2.7 (the hero's shared anatomy), 3.1 (the first phone
   screen), 12.4.2 to 12.4.4 (the entrance, the items, the hero's hooks).

   What is here is what every page of this kind needs, whatever the store
   chose: the wrapper and its rhythm, the grounds, the entrance, the anatomy
   every hero shares, the pieces more than one section type prints, the
   content page and the page that has nothing to show. Nothing of one title
   style or one band style: each of those is a file of its own in opt/ (5.4),
   as each hero and each section type is, and a rule here never names one.

   How a section is built. matjari_render_section_list() wraps every part in
   .m-sec and says what it is: its surface (hero, band, strip, plain), its
   width (contain, inset, bleed), the context of a band, its design. The
   wrapper owns the space between sections and the width; a part's own root
   carries no outer margin, padding or max-width. A band and a strip print
   .m-section__inner, which is the container when the paint runs edge to
   edge. Text is read through the current layer (--m-c-*), so the same rules
   are right on the ground, on a wash, on a fill and over a photograph. */

/* =====================================================================
   1. The section wrapper (5.2): the only owner of the space between
   sections. Open sections keep their space outside; painted ones keep it
   inside the paint, on both sides alike; two edge-to-edge paints tile.
   ===================================================================== */
.m-sec { margin-block-start: var(--m-section-y); }
.m-sec--first { margin-block-start: 0; }
.m-sec--last { margin-block-end: var(--m-section-y); }
.m-sec--painted { padding-block: calc(var(--m-section-y) / 2); }
.m-sec--band.m-sec--bleed, .m-sec--strip { padding-block: var(--m-band-pad-y); }
/* An inset band is exactly as wide as the content column, at every width:
   the viewport less two gutters, and never more than the container. (A
   margin of one gutter, as first written, is wider than the column from
   1200, where the container stops growing.) */
.m-sec--inset > .m-section {
	width: calc(100% - 2 * var(--m-gutter));
	max-width: var(--m-container-max);
	margin-inline-start: auto;
	margin-inline-end: auto;
	padding: var(--m-band-pad-y) var(--m-band-pad-x);
	border-radius: var(--m-band-r);
}
.m-sec--tile + .m-sec--tile { margin-block-start: 0; }
.m-sec--last.m-sec--tile { margin-block-end: 0; }
/* pad: tight (5.2): a design that is one quiet line (its catalogue row says
   so) pads its wrapper by --m-sp-3 in place of the band's padding, on any
   surface: a strip, a painted plain section, an edge-to-edge band (above
   a band style's own padding) and an inset one. */
.m-sec--tight.m-sec--strip, .m-sec--tight.m-sec--painted, .m-sec--tight.m-sec--band.m-sec--bleed.m-sec--tile, .m-sec--tight.m-sec--inset.m-sec--band > .m-section { padding-block: var(--m-sp-3); }
.m-sec--contain > .m-section, .m-sec--tile > .m-section > .m-section__inner {
	width: 100%;
	max-width: calc(var(--m-container-max) + 2 * var(--m-gutter));
	margin-inline-start: auto;
	margin-inline-end: auto;
	padding-inline-start: var(--m-gutter);
	padding-inline-end: var(--m-gutter);
}
/* What a band is painted with. One that carries a context takes the
   context's ground: the wrapper when it runs edge to edge, the inner section
   when it is inset. One that carries none is painted by its band style's own
   file (opt/band-<id>.css, 4.9.2), with a wash or a surface every page role
   is guaranteed on (1.3), or by design with nothing at all. */
.m-sec--bleed.m-ctx { background-color: var(--m-c-bg); }
.m-sec--inset.m-ctx > section.m-section { background-color: var(--m-c-bg); }

/* The grounds (4.9.3): the rhythm of the plain sections, which is the
   seller's choice. Every plain wrapper carries its place (c1 to c3, alt) under
   every choice, so the choice itself is read where PHP states it: on the
   second plain wrapper (data-grounds), the first whose ground any choice
   changes. That wrapper and the plain ones after it take their turn from it.
   `alternate`: every second one on the band surface. `rotate`: the ground,
   the accent wash, the primary wash (the first wash under a hero that stands
   on the primary is the other colour). `single`: none. All of them are
   surfaces every page role is guaranteed on. Each choice states every plain
   wrapper after the first, the unpainted ones too, and carries the element in
   its selector, and every one that may meet a Look's rule for a ground weighs
   two classes and the element: a Look's rule that paints by place alone is
   then the Look's only under the rhythm it was written for. A Look that re-colours a ground
   repeats the selector under its own class (5.3.10). */
div.m-sec--plain[data-grounds=single], div[data-grounds=single] ~ .m-sec--plain,
div[data-grounds=alternate] ~ .m-sec--painted:not(.m-sec--alt), div[data-grounds=rotate] ~ .m-sec--painted.m-sec--c1 { background-color: transparent; }
div.m-sec--painted[data-grounds=alternate], div[data-grounds=alternate] ~ .m-sec--painted.m-sec--alt { background-color: var(--m-surface-2); }
div.m-sec--painted.m-sec--c2[data-grounds=rotate], div[data-grounds=rotate] ~ .m-sec--painted.m-sec--c2 { background-color: var(--m-accent-soft); }
div[data-grounds=rotate] ~ .m-sec--painted.m-sec--c3 { background-color: var(--m-primary-soft); }

/* The first phone screen (3.1): directly after the hero the categories come
   without their head and one step under it, so they start on the first
   screen. The head is still read by a screen reader. From 600 the section is
   a section like any other. */
.m-sec--hero + .m-sec--categories { margin-block-start: var(--m-sp-4); }
.m-sec--hero + .m-sec--categories.m-sec--painted { margin-block-start: 0; padding-block-start: var(--m-sp-4); }
.m-sec--hero + .m-sec--categories .m-section__head {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
/* Except where a WhatsApp button floats over the phone's first screen (the
   float lane, 4.8.5: has-float, and no bar that carries WhatsApp): there
   the lane shows the categories' head and the chips start under the fold,
   so the button never comes to rest on one (the hero reaches down to the
   lane, below). */
.has-float:not(.dock--pill):not(.dock--chat) .m-sec--hero + .m-sec--categories .m-section__head { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
/* The head the lane shows is as tall as the lane at least (with the step
   above it; its own gap below, a Look's, is not counted on), so what follows
   it (the chips) starts under the fold, and its words start clear of the
   floating layer (--m-lane-x: 0 under a centred title, which stands
   beside it, and where no button floats). */
.has-float:not(.dock--pill):not(.dock--chat) .m-sec--hero + .m-sec .m-section__head { min-block-size: calc(var(--m-hero-peek) - var(--m-sp-4)); }
.m-sec--hero + .m-sec .m-section__title { margin-inline-start: var(--m-lane-x, 0px); }
@media (min-width: 600px) {
	.m-sec--hero + .m-sec--categories { margin-block-start: var(--m-section-y); }
	.m-sec--hero + .m-sec--categories.m-sec--painted { margin-block-start: 0; padding-block-start: calc(var(--m-section-y) / 2); }
	.m-sec--hero + .m-sec--categories .m-section__head {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
		white-space: normal;
	}
}

/* The way to everything in a head («عرض الكل») is a control under every
   title style: a touch target tall, its words centred in it. Where it was a
   bare link it was 26px (the sweep, every style but the Look's own). A Look
   that draws its own (nasma's pill, dif's, jari's slab, layl's line) states
   the same box at its own weight. */
.m-section__head > .m-section__more { display: inline-flex; align-items: center; min-block-size: var(--m-touch); }

/* The entrance (12.4.2) and the items (12.4.3). A mechanism, not a
   character: what a section does as it enters is the Look's token values
   (12.2), and with none stated, or at the level `off`, every one of them is
   stillness and these rules change nothing.

   Nothing is hidden before the script that will show it has run: every start
   state is under .m-fx, which fx.js adds last, after it has marked what is
   on the screen or above it (12.5). The first section and the hero never
   take a start state: the largest paint is never behind a script.

   Waiting: the block is at the Look's opacity; its parts (its direct
   children, or those of its .m-section__inner) stand off by the Look's
   travel; the title mark is drawn to the Look's fraction; a photograph that
   arrives stands at the Look's scale inside its frame; an item (a child of a
   list marked m-stagger, the first eight; anything marked m-item; the panel
   of an inset band) takes the Look's whole start state. A list of items does
   not also travel as a part, so a card moves once (the category navigation
   holds its list one level down, so it is named). */
.m-fx .m-sec:not(.is-in):not(.m-sec--first):not(.m-sec--hero) > * { opacity: var(--m-enter-opacity); }
.m-fx .m-sec:not(.is-in):not(.m-sec--first):not(.m-sec--hero) > * > :not(.m-section__inner):not(.m-stagger):not(.m-item):not(.m-catnav),
.m-fx .m-sec:not(.is-in):not(.m-sec--first):not(.m-sec--hero) > * > .m-section__inner > :not(.m-stagger):not(.m-item):not(.m-catnav) { transform: translate(calc(var(--m-dir) * var(--m-enter-x)), var(--m-enter-y)); }
.m-fx .m-sec:not(.is-in):not(.m-sec--first):not(.m-sec--hero) .m-section__mark { transform: scaleX(var(--m-mark-sx)); }
.m-fx .m-sec:not(.is-in):not(.m-sec--first):not(.m-sec--hero) img[data-arrive] { transform: scale(var(--m-enter-media)); }
.m-fx .m-sec:not(.is-in):not(.m-sec--first):not(.m-sec--hero) .m-stagger > :nth-child(-n+8), .m-fx .m-sec:not(.is-in):not(.m-sec--first):not(.m-sec--hero) .m-item, .m-fx .m-sec:not(.is-in):not(.m-sec--first):not(.m-sec--hero).m-sec--inset > .m-section {
	opacity: var(--m-item-opacity);
	transform: translate(calc(var(--m-dir) * var(--m-item-x)), var(--m-item-y)) scale(var(--m-item-scale)) rotate(calc(var(--m-dir) * var(--m-item-rot)));
}
/* The travel along the line stays inside the section while it waits and
   while it enters: a Look's inline travel (majalla's 16px parts and 12px
   items) pushed the full-bleed parts past the screen's edge, and the page
   scrolled sideways until every section had entered (V2-E1's verification,
   N6). clip, not hidden: it makes no scroll container, so nothing sticky
   inside is broken, and it holds only for the wait and the entrance (the
   hidden before it is the fallback 7 asks of every clip, never used inside
   this @supports). Where clip is missing (WebView 88 and 89) nothing
   clips it: 12.4.2 says no Look travels along the line, and only majalla's
   generated tokens do. */
@supports (overflow: clip) {
	.m-fx .m-sec:not(.is-in), .m-fx .m-sec.is-entering { overflow-x: hidden; overflow-x: clip; }
}
/* Entering: every transition of the entrance lives on is-entering, which the
   script adds with is-in and takes away again, so nothing here delays a hover
   for the life of the page. The parts travel back on the entrance's time and
   curve, the first at once and the next three in turn; the title mark draws
   on the same time, with its head. Items arrive together at calm and in turn
   at lively, which is one token (the first six in turn, the rest with the
   sixth). An item's rule outweighs the transition a card carries for its own
   hover. */
.m-fx .m-sec.is-entering > * { transition: opacity var(--m-dur-enter) var(--m-ease-enter); }
.m-fx .m-sec.is-entering > * > :nth-child(2), .m-fx .m-sec.is-entering > * > .m-section__inner > :nth-child(2) { transition-delay: var(--m-enter-stagger); }
.m-fx .m-sec.is-entering > * > :nth-child(3), .m-fx .m-sec.is-entering > * > .m-section__inner > :nth-child(3) { transition-delay: calc(2 * var(--m-enter-stagger)); }
.m-fx .m-sec.is-entering > * > :nth-child(4), .m-fx .m-sec.is-entering > * > .m-section__inner > :nth-child(4) { transition-delay: calc(3 * var(--m-enter-stagger)); }
.m-fx .m-sec.is-entering > * > *, .m-fx .m-sec.is-entering > * > .m-section__inner > *, .m-fx .m-sec.is-entering .m-section__mark,
.m-fx .m-sec.is-entering .m-stagger > *, .m-fx .m-sec.is-entering .m-item, .m-fx .m-sec.is-entering.m-sec--inset > .m-section { transition: opacity var(--m-dur-enter) var(--m-ease-enter), transform var(--m-dur-enter) var(--m-ease-enter); }
.m-fx .m-sec.is-entering .m-stagger > :nth-child(2) { transition-delay: var(--m-item-stagger); }
.m-fx .m-sec.is-entering .m-stagger > :nth-child(3) { transition-delay: calc(2 * var(--m-item-stagger)); }
.m-fx .m-sec.is-entering .m-stagger > :nth-child(4) { transition-delay: calc(3 * var(--m-item-stagger)); }
.m-fx .m-sec.is-entering .m-stagger > :nth-child(5) { transition-delay: calc(4 * var(--m-item-stagger)); }
.m-fx .m-sec.is-entering .m-stagger > :nth-child(6) { transition-delay: calc(5 * var(--m-item-stagger)); }
.m-fx .m-sec.is-entering .m-stagger > :nth-child(n+7) { transition-delay: calc(6 * var(--m-item-stagger)); }

/* =====================================================================
   2. The hero (4.2.2 to 4.2.7): the anatomy every hero shares. Each hero's
   own composition is its option file (opt/hero-<id>.css); what is here is
   the same under all of them. .m-hero__inner is always the container, so
   the text lines up with the page at every width. The photo is a real <img>
   in .m-hero__frame, which carries the Look's frame shape and the clipping.
   matjari_hero_class() prints every class read below.
   ===================================================================== */
.m-hero { position: relative; }

/* The first phone screen (3.1, 4.2.5), measured by layout. A hero whose
   words are in the flow is a column at least one first screen tall (the
   screen less the header's rows, the peek of what follows and the bottom
   bar, on or off), and ONE of its items is flexible: the element that
   yields, her photograph in most heroes. The words keep the height they have
   in any script, voice and length; what yields takes what is left, never
   under its floor and never over a 2:3 portrait. A frame inside it is laid
   over it by position, never by a percentage of a flexed height, which the
   floor engines may not resolve. From 600 a hero is composed by its own
   file, and all of this is undone. */
.m-hero--stacked {
	display: flex;
	flex-direction: column;
	min-block-size: calc(100vh - var(--m-header-first) - var(--m-hero-peek) - var(--m-bottom-clear));
	padding-block-end: max(0px, calc(var(--m-float-lane, 0px) - var(--m-sp-11)));
}
/* The peek (--m-hero-peek) is the category style's own (3.1); where a
   WhatsApp button floats over the phone's first screen it is 64px, the head
   of what follows and never its controls, and the hero reaches down to the
   float lane (4.8.5). The padding keeps the way in above a lane taller than
   that (80px over the notch, 124 beside the fab column). */
/* svh where it exists: the first screen is the small viewport, the one a
   phone shows with its browser bars out. */
@supports (height: 100svh) {
	.m-hero--stacked { min-block-size: calc(100svh - var(--m-header-first) - var(--m-hero-peek) - var(--m-bottom-clear)); }
}
.m-hero--stacked .m-hero__yield { position: relative; flex: 1 1 220px; min-block-size: 220px; max-block-size: 150vw; }
.m-hero--stacked .m-hero__yield > .m-hero__frame { position: absolute; inset: 0; }
.m-hero--stacked .m-hero__inner { flex: none; }
/* Under a lane taller than the peek (the notch bar, the fab column:
   --m-lane-sub, tokens.css) the support line of a stacked hero waits for
   600, so its way in stays above the lane and what follows still peeks. A
   hero that sets its own support line keeps it. */
.m-hero--stacked .m-hero__sub { display: var(--m-lane-sub, -webkit-box); }
@media (min-width: 600px) {
	.m-hero--stacked { display: block; min-block-size: 0; }
	.m-hero--stacked .m-hero__yield { min-block-size: 0; max-block-size: none; }
	.m-hero--stacked .m-hero__sub { display: block; }
	.m-hero--stacked .m-hero__yield > .m-hero__frame { position: relative; inset: auto; }
}

/* The hero's ground (4.2.3), where its words are not over her photo: the
   page, the primary wash, or one of three fills, and a fill is a context PHP
   prints, so the words, the button and the eyebrow are right on it in every
   Look and in both forms. The ground is data. (These weigh a class and an
   element more than a rule that paints one hero's block by hand, so the
   seller's ground is the ground.) */
section.m-hero.m-ctx { background-color: var(--m-c-bg); color: var(--m-c-ink); }
section.m-hero.m-hero--on-wash { background-color: var(--m-primary-soft); color: var(--m-c-ink); }
section.m-hero.m-hero--on-page { background-color: transparent; color: var(--m-c-ink); }

.m-hero__frame { position: relative; width: 100%; overflow: hidden; border-radius: var(--m-frame-hero); background-color: var(--m-img-bg); }
.m-hero__img { width: 100%; height: 100%; object-fit: cover; }
/* Where her photograph is held when a frame crops it (4.2.4): one of eight
   points, the centre when she chose none. Physical on purpose: a photograph
   does not mirror with the page. In percentages, so no side is named. */
.m-hero--focus-t .m-hero__img { object-position: 50% 0%; }
.m-hero--focus-b .m-hero__img { object-position: 50% 100%; }
.m-hero--focus-l .m-hero__img { object-position: 0% 50%; }
.m-hero--focus-r .m-hero__img { object-position: 100% 50%; }
.m-hero--focus-tl .m-hero__img { object-position: 0% 0%; }
.m-hero--focus-tr .m-hero__img { object-position: 100% 0%; }
.m-hero--focus-bl .m-hero__img { object-position: 0% 100%; }
.m-hero--focus-br .m-hero__img { object-position: 100% 100%; }
.m-hero__figure { margin: 0; }
.m-hero__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.m-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--m-sp-2); margin-block-end: var(--m-sp-2); color: var(--m-c-link); font-size: var(--m-fs-small); font-weight: var(--m-fw-strong); line-height: var(--m-lh-control); letter-spacing: var(--m-ls-caps); text-transform: var(--m-tt-caps); }
.m-hero__eyebrow::before { content: ""; flex: none; width: 24px; border-block-start: var(--m-bw-strong) solid currentColor; }
.m-hero__title { margin: 0 0 var(--m-sp-2); font-family: var(--m-font-display); font-weight: var(--m-fw-display); font-size: var(--m-fs-hero); line-height: var(--m-lh-display); letter-spacing: var(--m-ls-display); }
/* A wordy headline under her photo (split-image, overlap, the mosaic's lead;
   PHP prints m-hero--wordy from its length) is 2.25rem at most on a phone,
   so the way in stays above the bar at 664 in every language (an English
   line of 50 characters took four or five lines at 40 to 46px). */
.m-hero--wordy .m-hero__title { font-size: var(--m-hero-wordy-fs); }
.m-hero__sub { display: -webkit-box; max-width: 36ch; margin: 0 0 var(--m-sp-4); overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--m-c-ink-2); font-size: var(--m-fs-lead); line-height: var(--m-lh-ui); }
.m-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--m-sp-3); }
/* Over a photograph (the full-bleed hero, the banner, the bento's lead tile,
   the spotlight): the photo fills its box, a scrim in the scrim role stands
   between it and the text, and the body is a photo context. At the bottom on
   a phone, where the text is; from 600 from the start side too, where the
   text column is. Dense enough under the text for the text to pass on a
   white photograph. --m-dir turns the angle with the page's direction. */
.m-hero__scrim {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to top, rgba(var(--m-scrim-rgb), .88), rgba(var(--m-scrim-rgb), .7) 55%, rgba(var(--m-scrim-rgb), 0) 92%);
	pointer-events: none;
}
.m-ctx--photo .m-hero__title, .m-ctx--photo .m-section__title { text-shadow: 0 1px 24px rgba(var(--m-scrim-rgb), .4); }
@media (min-width: 600px) {
	.m-hero__eyebrow { margin-block-end: var(--m-sp-3); }
	.m-hero__sub { display: block; }
	/* The support line stands clear of the descenders of a display line over it (yasmin's g, j and
	   y touched it in English, in every hero that sets one under the other; light check 4, P-S8). */
	.m-hero__title + .m-hero__sub { margin-block-start: var(--m-sp-4); }
	.m-hero__scrim {
		background-image:
			linear-gradient(calc(var(--m-dir) * 90deg), rgba(var(--m-scrim-rgb), .82), rgba(var(--m-scrim-rgb), .62) 42%, rgba(var(--m-scrim-rgb), 0) 78%),
			linear-gradient(to top, rgba(var(--m-scrim-rgb), .5), rgba(var(--m-scrim-rgb), 0) 46%);
	}
}

/* The hero's motion (4.2.7, 12.4.4): five hooks, written once. CSS only, on
   load, once, and only for the hero that opens the page (PHP prints the hook
   classes for no other): it is over before a deferred script has loaded. Which hero runs which hook, from
   calm or at lively only, is its catalogue row, printed as m-hero--c-<hook>
   and m-hero--l-<hook>; how far and how long is the Look's tokens, and with
   none stated nothing moves. Every hook fills backwards, never forwards: a
   held transform would keep a tile from its own press and hover. What is the
   largest paint (her photo, the headline, the first thing dealt) moves and
   never fades.

   settle: her photo, inside its frame, from the Look's scale to 1. With it,
   as a second animation, the drift: the photo's slow movement after it has
   settled, in the Looks that have one, at lively (the token is `none` until
   then). The drift alone holds its last frame, and waits for the screen
   where the script is there to say so. */
@keyframes m-hero-rise { from { opacity: var(--m-enter-opacity); transform: translate(calc(var(--m-dir) * var(--m-enter-x)), var(--m-enter-y)); } }
@keyframes m-hero-rise-solid { from { transform: translate(calc(var(--m-dir) * var(--m-enter-x)), var(--m-enter-y)); } }
@keyframes m-hero-settle { from { transform: scale(var(--m-hero-img)); } }
@keyframes m-hero-deal { from { opacity: var(--m-item-opacity); transform: translate(calc(var(--m-dir) * var(--m-item-x)), var(--m-item-y)) scale(var(--m-item-scale)) rotate(calc(var(--m-dir) * var(--m-item-rot))); } }
@keyframes m-hero-deal-solid { from { transform: translate(calc(var(--m-dir) * var(--m-item-x)), var(--m-item-y)) scale(var(--m-item-scale)); } }
@keyframes m-hero-draw { from { transform: scaleX(0); } }
@keyframes m-hero-drift { to { transform: translateX(calc(var(--m-dir) * var(--m-drift-x))) scale(var(--m-drift-scale)); } }
.motion--calm .m-hero--c-settle .m-hero__img, .motion--lively .m-hero--l-settle .m-hero__img {
	animation: m-hero-settle var(--m-dur-hero) var(--m-ease) backwards, var(--m-dur-drift) linear var(--m-dur-hero) var(--m-drift-count) var(--m-drift-dir) forwards var(--m-drift);
}
.m-fx [data-play]:not(.is-playing) .m-hero__img { animation-play-state: running, paused; }
/* rise, deal and draw: their time, curve and fill are stated once, by
   element and with no name (so nothing plays); a hook names the keyframe
   and nothing else, and each turn is a plain nth-child rule. A hook
   that wrote the shorthand would outweigh those turns and set every delay
   back to nothing: the words and the tiles would arrive at once. */
.m-hero__body > *, .m-hero__foot > *, .m-hero__deal > *, .m-hero__rule { animation: var(--m-dur-enter) var(--m-ease-enter) backwards; }
/* rise: the children of the body and of the foot, one after another. */
.motion--calm .m-hero--c-rise .m-hero__body > *, .motion--calm .m-hero--c-rise .m-hero__foot > *,
.motion--lively .m-hero--l-rise .m-hero__body > *, .motion--lively .m-hero--l-rise .m-hero__foot > * { animation-name: m-hero-rise; }
.motion--calm .m-hero--c-rise .m-hero__body > .m-hero__title, .motion--lively .m-hero--l-rise .m-hero__body > .m-hero__title { animation-name: m-hero-rise-solid; }
.m-hero__body > :nth-child(2), .m-hero__foot > :nth-child(2) { animation-delay: var(--m-enter-stagger); }
.m-hero__body > :nth-child(3), .m-hero__foot > :nth-child(3) { animation-delay: calc(2 * var(--m-enter-stagger)); }
.m-hero__body > :nth-child(4), .m-hero__foot > :nth-child(4) { animation-delay: calc(3 * var(--m-enter-stagger)); }
/* deal: tiles, prints, doors, rows, in order: the children of the element a
   part marks m-hero__deal. The first may be the largest paint. */
.motion--calm .m-hero--c-deal .m-hero__deal > *, .motion--lively .m-hero--l-deal .m-hero__deal > * { animation-name: m-hero-deal; }
.motion--calm .m-hero--c-deal .m-hero__deal > :first-child, .motion--lively .m-hero--l-deal .m-hero__deal > :first-child { animation-name: m-hero-deal-solid; }
.m-hero__deal > :nth-child(2) { animation-delay: var(--m-item-stagger); }
.m-hero__deal > :nth-child(3) { animation-delay: calc(2 * var(--m-item-stagger)); }
.m-hero__deal > :nth-child(4) { animation-delay: calc(3 * var(--m-item-stagger)); }
.m-hero__deal > :nth-child(5) { animation-delay: calc(4 * var(--m-item-stagger)); }
.m-hero__deal > :nth-child(6) { animation-delay: calc(5 * var(--m-item-stagger)); }
.m-hero__deal > :nth-child(n+7) { animation-delay: calc(6 * var(--m-item-stagger)); }
/* draw: a rule a part marks m-hero__rule, from its start edge. */
.motion--calm .m-hero--c-draw .m-hero__rule, .motion--lively .m-hero--l-draw .m-hero__rule {
	transform-origin: calc(50% - var(--m-dir) * 50%) 50%;
	animation-name: m-hero-draw;
}

/* ---- The lead tile (the mosaic's; a hero that puts her words on a tile of
   her photo): the photo fills it, the text stands in it. ---- */
.m-hero__lead .m-hero__media { position: absolute; inset: 0; }
.m-hero__lead .m-hero__frame { height: 100%; border-radius: 0; }

/* ---- The lead tile, the mosaic's and the shelf's: her photo fills it and
   the words stand in it. It grows with its words; from 600 the mosaic's is
   4:3 across the width, and from 900 as tall as what stands beside it. The
   mosaic's two product tiles are its own file's (opt/hero-bento.css). The
   lead holds words, so it takes the corners of a panel that holds words (the
   Look's band corners: nasma's leaf, a plain panel elsewhere), never the
   photograph's frame: an oval (yasmin, marah) or an arch (turath) cut the
   headline, the support line and the button at its curve (V2-E1, M3). ---- */
.m-hero__lead {
	position: relative;
	display: grid;
	align-items: end;
	overflow: hidden;
	border-radius: var(--m-band-r);
	background-color: var(--m-primary);
}
.m-hero__lead::after { content: ""; grid-area: 1 / 1; pointer-events: none; }
.m-hero__lead .m-hero__body { grid-area: 1 / 1; position: relative; padding: var(--m-sp-5); }
/* With no photo, under a lane taller than the peek (--m-lane-sub) the
   lead's eyebrow waits for 600, so what stands under the lead keeps above
   the lane (the shelf's add controls under amali's notch bar). */
.m-hero--noimg .m-hero__lead .m-hero__eyebrow { display: var(--m-lane-sub, inline-flex); }
@media (min-width: 600px) {
	.m-hero__lead::after { padding-block-start: var(--m-ratio-story-pb); }
	.m-hero--noimg .m-hero__lead .m-hero__eyebrow { display: inline-flex; }
}
@media (min-width: 900px) {
	.m-hero__lead::after { padding-block-start: 0; }
	.m-hero__lead .m-hero__body { padding: var(--m-sp-8); }
}

/* =====================================================================
   3. Categories. The navigation itself is chrome.css's (.m-catnav): the
   section is its head and nothing else.
   ===================================================================== */
.m-cats { min-width: 0; }

/* =====================================================================
   5. The products of a category: a head and a rail. The last cell of a
   rail is the way through to everything: a whole cell, as tall as the cards
   beside it, never a sliver at the screen edge (audit X9).
   ===================================================================== */
.m-catrail__end { display: flex; }
.m-catrail__endlink {
	flex: 1 1 auto;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: var(--m-sp-2);
	min-width: 0;
	padding: var(--m-sp-4);
	border-radius: var(--m-r-card);
	background-color: var(--m-surface-2);
	color: var(--m-c-ink);
	text-align: center;
	text-decoration: none;
	transition: background-color var(--m-dur-press) var(--m-ease);
}
.m-catrail__endlink:active { background-color: var(--m-surface-3); }
.m-catrail__endicon {
	display: grid;
	place-items: center;
	width: var(--m-touch);
	height: var(--m-touch);
	margin-block-end: var(--m-sp-1);
	border-radius: var(--m-r-round);
	background-color: var(--m-c-fill);
	color: var(--m-c-on-fill);
	transition: transform var(--m-dur-panel) var(--m-ease);
}
.m-catrail__endicon svg { transform: scaleX(var(--m-dir)); }
.m-catrail__endlabel { font-size: var(--m-fs-ui); font-weight: var(--m-fw-strong); line-height: var(--m-lh-control); }
.m-catrail__endabout { color: var(--m-c-ink-2); font-size: var(--m-fs-small); line-height: var(--m-lh-ui); }
@media (hover: hover) and (pointer: fine) {
	.m-catrail__endlink:hover { background-color: var(--m-surface-3); }
	.m-catrail__endlink:hover .m-catrail__endicon { transform: translateX(calc(var(--m-dir) * var(--m-sp-1))); }
}

/* 12. Quotes: the two drawings of one testimonial are atoms of their own since V2-F2a,
   opt/atom-quote.css and opt/atom-quotebig.css, sent only where a quote is drawn. */

/* ---- A content page (page.php, index.php): its head, then its sections or
   its text. The head runs edge to edge and paints nothing, so a Look may make
   it a band; its title closes on a rule, which is what tells the page's title
   from the first section's. The space above it is the shop's. ---- */
.m-page__top { padding-block: calc(var(--m-section-y) / 2) var(--m-section-head-gap); }
/* A painted first section keeps its half rhythm inside its paint, and the
   first one is painted with the ground: under the head that space is the
   head's own, said once. */
.m-page__top + .m-sec--painted { padding-block-start: 0; }
.m-page__head {
	display: grid;
	justify-items: var(--m-section-title-align);
	gap: var(--m-sp-2);
	padding-block-end: var(--m-sp-5);
	border-block-end: var(--m-bw-hair) var(--m-bs-rule) var(--m-c-line);
	text-align: var(--m-section-title-align);
}
.m-page__head .m-title, .m-page__lost .m-title { margin: 0; }
.m-page__sub { margin: 0; color: var(--m-c-ink-2); font-size: var(--m-fs-lead); overflow-wrap: anywhere; }
.m-page__body { padding-block-end: var(--m-section-y); }
/* A list of results (a search that is not a product search, the posts): a
   title and a line under it, between hairlines, each row one link. */
.m-page__list { max-width: var(--m-container-narrow); margin: 0; padding: 0; list-style: none; }
.m-page__entry { border-block-end: var(--m-bw-hair) solid var(--m-c-line); }
.m-page__entrylink { display: grid; gap: var(--m-sp-1); min-height: var(--m-touch); padding-block: var(--m-sp-4); text-decoration: none; }
.m-page__entrylink:active { opacity: .7; }
.m-page__entrytitle { font-family: var(--m-font-subhead); font-weight: var(--m-fw-subhead); font-size: var(--m-fs-h3); line-height: var(--m-lh-heading); }
.m-page__excerpt { color: var(--m-c-ink-2); font-size: var(--m-fs-ui); line-height: var(--m-lh-ui); }
.m-page__pager { display: flex; justify-content: space-between; gap: var(--m-sp-4); max-width: var(--m-container-narrow); padding-block-start: var(--m-sp-5); }
.m-page__pager a { display: inline-flex; align-items: center; min-height: var(--m-touch); color: var(--m-c-link); font-weight: var(--m-fw-strong); }

/* ---- A page with nothing of its own to show (audit U15): a wrong address,
   a search that found nothing. The empty state (components.css) with the
   header's own search field in it and two ways on; a few products follow.
   The number is set large and faint: it is not the message. ---- */
.m-404 { padding-block-start: calc(var(--m-section-y) / 2); }
.m-page__lost { padding-block: var(--m-sp-6) 0; }
.m-page__more { margin-block-start: var(--m-section-y); }
.m-page__code {
	color: var(--m-primary-soft);
	font-family: var(--m-font-num);
	font-weight: var(--m-fw-num);
	font-size: 6em;
	font-variant-numeric: var(--m-fvn);
	line-height: 1;
}
.m-page__lost .m-title { color: var(--m-c-ink); }
.m-page__lost > p { text-wrap: balance; }
.m-page__lost .m-search { width: 100%; max-width: 420px; margin-block-start: var(--m-sp-4); text-align: start; }
.m-page__ways { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--m-sp-2) var(--m-sp-5); }
@media (hover: hover) and (pointer: fine) {
	.m-page__entrylink:hover .m-page__entrytitle, .m-page__pager a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

