/* ============================================================================
   YEMMA CORE — the trade page, what trade.css never drew

   The design is the theme's: trade.css (switched on by the `trade` context the
   plugin now emits), guide.css and base.css carry every band of /trade/. This
   sheet carries only what the prototype had no reason to draw, because the
   prototype had no visitors — a ladder that is not four rungs long, a list of
   steps that is not five, a visitor who has not signed in, an account waiting
   on its application, a programme that is not open yet, an answer that is a
   refusal rather than a thank-you.

   It loads after the theme (it depends on `yemma-style`, the theme's last
   handle), so a rule here at the theme's own specificity wins. Where it must
   not win — the theme's own breakpoints — the rule is fenced into a min-width
   query instead, and the theme's responsive rules take over below it.

   Every colour is a theme token. Nothing here sets a typeface the theme does
   not already use.
   ========================================================================== */

/* -------------------------------------------------------------- THE HERO --- */

/* The prototype lit its crumbs for the dark ground with two inline styles. */
.thero .crumbs { color: rgba(250, 246, 239, .6); }
.thero .crumbs a:hover { color: var(--brass-l); }
.thero .crumbs i { background: rgba(250, 246, 239, .3); }

/* -------------------------------------------- THE FILM: THE HERO IS ITS POSTER --- */

/* The owner's design E, chosen 22 October 2026 from five drawn beside the live
   page (templates/trade/hero.php says what each piece is). The shop's silent
   clip stands on the right half of the hero, inside the lozenge the film opens
   on, and melts into the ink on every side: the hero's own veil is re-weighted
   so the left half stays as dark as before under the words, and a radial mask
   takes the clip's edges away. The clip's rules hang on `.thero--moving` (a
   clip or its still is drawn); `.thero--film` (the film itself) carries no
   rule — it is trade-film.js's hook, so an orphan-class audit will name it. */
.thero--moving .thero__bg::after {
	background:
		linear-gradient(90deg, var(--ink) 30%, rgba(20, 16, 13, .62) 47%, rgba(20, 16, 13, 0) 66%),
		repeating-linear-gradient(45deg, rgba(217, 183, 120, .05) 0 1px, transparent 1px 24px);
}
.tfilm__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(50%, 900px);
	-webkit-mask-image: radial-gradient(75% 82% at 55% 50%, #000 60%, transparent 100%);
	mask-image: radial-gradient(75% 82% at 55% 50%, #000 60%, transparent 100%);
}
.tfilm__media img,
.tfilm__media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* The clip fades in over its still once it is really playing (trade-film.js
   adds .is-on on `playing`), so a slow connection never shows a black box. */
.tfilm__media video { opacity: 0; transition: opacity 1.4s var(--ease); }
.tfilm__media video.is-on { opacity: 1; }

/* The third way out of the hero: a ring and two lines, the page's own
   letter-spaced voice rather than a third boxed button. Its own line, under
   the two buttons, at every width. */
.tfilm__watch {
	flex-basis: 100%;
	display: inline-flex;
	align-items: center;
	gap: .95rem;
	margin-top: .55rem;
	color: var(--bone);
	text-decoration: none;
}
.tfilm__watch:focus-visible { outline: 1px solid var(--brass-l); outline-offset: 6px; }
.tfilm__disc {
	position: relative;
	flex: none;
	width: 46px;
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	place-items: center;
	border: 1px solid rgba(250, 246, 239, .6);
	background: rgba(20, 16, 13, .18);
	transition: background .5s var(--ease), border-color .5s var(--ease), transform .7s var(--ease-out);
}
.tfilm__disc::after {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	border: 1px solid rgba(217, 183, 120, .5);
	opacity: 0;
	transform: scale(.86);
	transition: opacity .6s var(--ease), transform .8s var(--ease-out);
}
.tfilm__disc svg { width: 30%; height: 30%; margin-left: 9%; fill: currentColor; }
.tfilm__watch:hover .tfilm__disc { background: var(--clay); border-color: var(--clay); transform: scale(1.05); }
.tfilm__watch:hover .tfilm__disc::after { opacity: 1; transform: scale(1); }
.tfilm__lab { display: flex; flex-direction: column; gap: .5rem; }
.tfilm__lab b {
	font-family: var(--sans);
	font-size: var(--fs-xs);
	font-weight: 500;
	line-height: 1;
	letter-spacing: var(--track-label);
	text-transform: uppercase;
}
.tfilm__lab small {
	font-family: var(--sans);
	font-size: .8rem;
	font-weight: 300;
	line-height: 1;
	letter-spacing: .1em;
	color: rgba(250, 246, 239, .62);
	font-variant-numeric: tabular-nums;
}

/* The phone's play mark at the lozenge's lower tip. Hidden on wider screens,
   where the button is in the first screen anyway. */
.tfilm__tap { display: none; }

/* The theatre. trade-film.js moves it to <body> and opens it; `hidden` keeps
   it out of the page for a visitor without the script, whose button is a
   plain link to the film's own page. Above everything the page floats —
   the assistant's launcher sits at 99990 — because a film with a chat bubble
   over its corner is not a theatre; the theme's cursor ring is decoration
   over a native cursor that stays visible. */
.tfilm__th {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	place-items: center;
	padding: clamp(1rem, 4vw, 4rem);
	background: rgba(12, 9, 7, .96);
	opacity: 0;
	transition: opacity .45s var(--ease);
}
.tfilm__th[hidden] { display: none; }
.tfilm__th.is-open { opacity: 1; }
.tfilm__box { width: min(100%, 1280px, calc((100vh - 9rem) * 16 / 9)); min-width: 0; }
.tfilm__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.tfilm__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tfilm__x {
	position: absolute;
	top: clamp(.6rem, 2vw, 1.4rem);
	right: clamp(.6rem, 2vw, 1.4rem);
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .7rem;
	border: 0;
	background: none;
	color: var(--bone);
	cursor: pointer;
	font-family: var(--sans);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: var(--track-label);
	text-transform: uppercase;
}
.tfilm__x:focus-visible { outline: 1px solid var(--brass-l); outline-offset: 2px; }
.tfilm__x i { position: relative; width: 18px; height: 18px; }
.tfilm__x i::before,
.tfilm__x i::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: currentColor;
	transform: rotate(45deg);
}
.tfilm__x i::after { transform: rotate(-45deg); }
.tfilm__chs {
	list-style: none;
	margin: 1.3rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem 1.6rem;
}
.tfilm__chs button {
	display: inline-flex;
	align-items: baseline;
	gap: .55em;
	padding: 0;
	border: 0;
	border-bottom: 1px solid transparent;
	background: none;
	cursor: pointer;
	color: rgba(250, 246, 239, .72);
	font-family: var(--serif);
	font-size: 1rem;
	line-height: 1.4;
	transition: color .4s var(--ease), border-color .4s var(--ease);
}
.tfilm__chs b {
	font-family: var(--sans);
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .2em;
	color: var(--brass-l);
	font-variant-numeric: tabular-nums;
}
.tfilm__chs button:hover,
.tfilm__chs .is-on { color: var(--bone); border-color: var(--brass-l); }
.tfilm__chs button:focus-visible { outline: 1px solid var(--brass-l); outline-offset: 3px; }
html.tfilm-lock { overflow: hidden; }

/* A phone: the lozenge stands above the heading instead of beside it, the
   words below it on the ink, and the play mark hangs from its lower tip. The
   crumbs keep their place at the top; the room under them is the clip's. */
@media (max-width: 760px) {
	/* Where the clip starts: under the crumbs, which sit at the top of the
	   hero's own padding (trade.css, `.thero__in`) and are about 1.1rem tall. */
	.thero--moving { --tfilm-top: calc(clamp(3rem, 8vw, 7rem) + 1.9rem); }
	.thero--moving .thero__bg::after {
		background:
			linear-gradient(to bottom, rgba(20, 16, 13, 0) 0, rgba(20, 16, 13, 0) 30%, var(--ink) 52%),
			repeating-linear-gradient(45deg, rgba(217, 183, 120, .05) 0 1px, transparent 1px 24px);
	}
	.tfilm__media {
		top: var(--tfilm-top);
		bottom: auto;
		left: 0;
		width: 100%;
		height: 82vw;
		-webkit-mask-image: radial-gradient(62% 56% at 50% 48%, #000 62%, transparent 100%);
		mask-image: radial-gradient(62% 56% at 50% 48%, #000 62%, transparent 100%);
	}
	.thero--moving .thero__copy .crumbs { margin-bottom: calc(82vw + 2.6rem); }
	.thero--moving .tfilm__tap {
		display: block;
		position: absolute;
		z-index: 3;
		left: 50%;
		top: calc(var(--tfilm-top) + 82vw * .935);
		transform: translate(-50%, -50%);
		color: var(--bone);
	}
	.tfilm__tap .tfilm__disc { background: var(--ink); border-color: var(--brass-l); }
	.tfilm__tap:active .tfilm__disc { background: var(--clay); border-color: var(--clay); }
	.tfilm__watch { margin-top: 1rem; }
	.tfilm__chs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: .4rem; }
	.tfilm__chs::-webkit-scrollbar { display: none; }
	.tfilm__chs button { white-space: nowrap; }
}

/* Asked for less motion: the still stays, the clip never starts. */
@media (prefers-reduced-motion: reduce) {
	.tfilm__loop { display: none; }
	.tfilm__th, .tfilm__disc, .tfilm__disc::after, .tfilm__media video { transition: none; }
}

/* ------------------------------------------------ THE LADDER, AS SWATCHES --- */

/* Each rung is a small rug (templates/trade/tiers.php): a woven ground drawn
   with two hairline repeats, a zig-zag border across its top, a fringe hanging
   under it, and one lozenge more per rung. The top rung is woven dark, as the
   prototype's top band was. Chosen by the owner from three drawn variants on
   14 October 2026 — the plain `.tier` boxes in trade.css read as a price list.

   The motifs are SVG data URIs rather than an icon sheet: two strokes each, in
   the clay and the light brass the theme already uses. */
.tswatch {
	list-style: none;
	margin: clamp(2rem, 4vw, 3.2rem) 0 0;
	padding: 0 0 1.4rem;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.4rem, 2.4vw, 2.2rem);
	row-gap: 3rem;
}
.tswatch--1 { grid-template-columns: minmax(0, 26rem); }
.tswatch--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; }
.tswatch--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* `--soft` is the tier's name and `--note` the saving line under it. On the
   light swatches neither may be the theme's `--muted` (#8A7B6B): on this
   ground that is 3.46:1, under the 4.5:1 that small text needs. The name takes
   a darker muted brown, #6B5E51 — 5.3:1, still quieter than the ink figure —
   and the saving line, the one sentence that sells the rung, takes `--ink-3`
   (10.6:1). The dark top swatch keeps its own pair, light on dark at 7:1. */
.tswatch__c {
	--ground: #F3EBDD;
	--thread: rgba(20, 16, 13, .035);
	--accent: var(--clay);
	--word: var(--ink);
	--soft: #6B5E51;
	--note: var(--ink-3);
	--fringe: #D8CAB3;
	position: relative;
	margin: 0;
	padding: 0 clamp(1.4rem, 2.2vw, 2rem) clamp(1.8rem, 2.6vw, 2.4rem);
	text-align: center;
	color: var(--word);
	background-color: var(--ground);
	background-image:
		repeating-linear-gradient(0deg, var(--thread) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, var(--thread) 0 1px, transparent 1px 5px);
	box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -30px rgba(20, 16, 13, .45);
}
.tswatch__c--top {
	--ground: #2A211B;
	--thread: rgba(250, 246, 239, .05);
	--accent: var(--brass-l);
	--word: var(--bone);
	--soft: rgba(250, 246, 239, .68);
	--note: rgba(250, 246, 239, .68);
	--fringe: #6E5A49;
	box-shadow: inset 0 0 0 1px #2A211B, 0 22px 46px -28px rgba(20, 16, 13, .7);
}

/* The fringe: warp threads hanging under the swatch. */
.tswatch__c::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	top: 100%;
	height: 16px;
	background: repeating-linear-gradient(90deg, var(--fringe) 0 2px, transparent 2px 7px);
}

/* The border woven across the top, edge to edge. */
.tswatch__band {
	display: block;
	height: 14px;
	margin: 0 calc(-1 * clamp(1.4rem, 2.2vw, 2rem)) clamp(1.4rem, 2.2vw, 1.8rem);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpolyline points='0,7 7,1 14,7' fill='none' stroke='%23A9522F' stroke-width='1.3'/%3E%3C/svg%3E") repeat-x center / 14px 8px;
	border-bottom: 1px solid var(--line);
}
.tswatch__c--top .tswatch__band {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpolyline points='0,7 7,1 14,7' fill='none' stroke='%23D9B778' stroke-width='1.3'/%3E%3C/svg%3E");
	border-bottom-color: rgba(250, 246, 239, .12);
}

/* One lozenge per rung climbed. */
.tswatch__m {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-bottom: 1.1rem;
}
.tswatch__m i {
	width: 13px;
	height: 13px;
	border: 1.5px solid var(--accent);
	transform: rotate(45deg);
}

.tswatch__n {
	margin: 0;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--soft);
}
.tswatch__c--top .tswatch__n { color: var(--accent); }

.tswatch__p {
	margin: .5rem 0 .3rem;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(4.2rem, 6vw, 5.8rem);
	line-height: 1;
	color: var(--word);
}
.tswatch__p small {
	margin-left: .06em;
	font-size: .32em;
	color: var(--accent);
}

.tswatch__q {
	margin: 0;
	font-size: .98rem;
	line-height: 1.45;
	color: var(--accent);
}

.tswatch__s {
	margin: 1.1rem auto 0;
	padding-top: .9rem;
	max-width: 22ch;
	border-top: 1px solid var(--line);
	font-size: .86rem;
	line-height: 1.55;
	color: var(--note);
}
.tswatch__c--top .tswatch__s { border-top-color: rgba(250, 246, 239, .14); }

/* A swatch lifts a little under the pointer, the way a rug is turned to the
   light. Only where there is a pointer, and never for a reader who asked for
   stillness. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.tswatch__c { transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .8s var(--ease); }
	.tswatch__c.in:hover { transform: translateY(-6px) rotate(-.4deg); }
}

/* Tablet: a long ladder wraps two across, and a ladder of one keeps its own
   width. */
@media (max-width: 1100px) {
	.tswatch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tswatch--1 { grid-template-columns: minmax(0, 26rem); }
}

/* Three rungs stay three across on a tablet. Two-and-one left the dark top
   swatch alone in the left half of a second row — the card a professional
   screenshots, looking unfinished. So the swatches pull in instead: a tighter
   gap and padding, a smaller figure, the name's tracking eased so a longer
   tier name still fits. Below 641px the phone rule turns each on its side. */
@media (min-width: 641px) and (max-width: 1100px) {
	.tswatch--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(.8rem, 1.6vw, 1.2rem);
	}
	.tswatch--3 .tswatch__c { padding: 0 clamp(.8rem, 1.6vw, 1.2rem) 1.6rem; }
	.tswatch--3 .tswatch__band { margin: 0 calc(-1 * clamp(.8rem, 1.6vw, 1.2rem)) 1.2rem; }
	.tswatch--3 .tswatch__m { gap: 5px; margin-bottom: .8rem; }
	.tswatch--3 .tswatch__m i { width: 10px; height: 10px; }
	.tswatch--3 .tswatch__n { letter-spacing: .18em; }
	.tswatch--3 .tswatch__p { font-size: clamp(2.8rem, 6.2vw, 4.2rem); }
	.tswatch--3 .tswatch__q { font-size: .88rem; }
	.tswatch--3 .tswatch__s { margin-top: .9rem; padding-top: .75rem; font-size: .8rem; }
}

/* Phone: one swatch per row, turned on its side — the name, the threshold and
   the saving on the left, the figure on the right — so three rungs take a
   screen and a half instead of three. The border stays across the top and the
   fringe under it, so each still reads as a small rug. */
@media (max-width: 640px) {
	.tswatch,
	.tswatch--1,
	.tswatch--2,
	.tswatch--3 { grid-template-columns: minmax(0, 1fr); max-width: none; row-gap: 2.4rem; }

	.tswatch__c {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"band band"
			"m    p"
			"n    p"
			"q    p"
			"s    s";
		column-gap: 1rem;
		align-items: center;
		padding: 0 1.3rem 1.4rem;
		text-align: left;
	}
	.tswatch__band { grid-area: band; margin: 0 -1.3rem 1.1rem; }
	.tswatch__m { grid-area: m; justify-content: flex-start; gap: 6px; margin-bottom: .55rem; }
	.tswatch__m i { width: 10px; height: 10px; }
	.tswatch__n { grid-area: n; }
	.tswatch__q { grid-area: q; margin-top: .25rem; font-size: .92rem; }
	.tswatch__p { grid-area: p; margin: 0; font-size: 4rem; align-self: center; }
	.tswatch__s { grid-area: s; max-width: none; margin: 1rem 0 0; padding-top: .8rem; font-size: .84rem; }
	.tswatch__c::after { left: 8%; right: 8%; height: 13px; }
}

/* The floor, said once, under the cards. */
.tnote {
	margin-top: clamp(1.4rem, 2.4vw, 2rem);
	max-width: 64ch;
	font-size: .88rem;
	line-height: 1.75;
	color: var(--ink-3);
}

/* ------------------------------------------------ WHAT AN ACCOUNT GIVES --- */

/* The benefits band (templates/trade/benefits.php), chosen by the owner on
   15 October 2026 from three variants drawn on the page: design B — cards of
   unequal size — with design C's round medallions on the first three. It
   replaced trade.css's six identical ruled cards, each wearing the same mark.

   - The first card leads: woven dark like the top tier swatch, with the same
     zig-zag border across its top, opened by the ladder's discounts as one
     large figure.
   - The first three wear the picture in a medallion — a sand disc ringed by a
     dashed clay line; the rest wear the picture alone.
   - The card wearing the rising bars draws the ladder as bars, beside its
     words when the card is wide enough and under them when it is not. That
     is a container query on the card, because the same card is wide or narrow
     depending on where the owner puts it, not on the screen.

   The grid is written for every count the admin allows (one to eight) with
   no hole in it — see the comments on each rule. It is built up from the
   phone, with min-width queries only, so every width matches exactly one
   layout: a zoomed browser's fractional width (1100.5px) falls into the
   tablet's two columns, never between two queries into a bare grid. */
.tben {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(.8rem, 1.4vw, 1.1rem);
	margin-top: clamp(2rem, 4vw, 3rem);
}

/* Tablets, two columns: the lead and the second card each take a row, the
   rest pair up, and an odd one out at the end takes the row. Wrapped in
   `:where()` so these weigh no more than one class, and every wide-screen
   rule below overrides them without restating them. */
@media (min-width: 641px) {
	.tben { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tben__c:where(.tben__c--lead, :nth-child(2), :nth-child(n+3):nth-child(odd):last-child) { grid-column: 1 / -1; }
}

/* Wide screens, four columns: the lead is two by two, the second card two
   wide beside it, the third and fourth one each under that; from the fifth
   on, two to a row, and an odd one out at the end takes the whole row. */
@media (min-width: 1101px) {
	.tben { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tben__c--lead { grid-column: span 2; grid-row: span 2; }
	.tben__c:nth-child(2),
	.tben__c:nth-child(n+5) { grid-column: span 2; }
	.tben__c:nth-child(n+5):nth-child(odd):last-child { grid-column: 1 / -1; }
	/* Three cards: the third fills the space under the second. Two: the
	   second stands as tall as the lead. One: the lead takes the row. */
	.tben__c:nth-child(3):last-child { grid-column: span 2; }
	.tben__c:nth-child(2):last-child { grid-row: span 2; }
	.tben__c--lead:last-child { grid-column: 1 / -1; grid-row: auto; }
}

.tben__c {
	container-type: inline-size;
	position: relative;
	min-width: 0;
	padding: clamp(1.4rem, 2.2vw, 1.9rem);
	color: var(--ink);
	background: #FBF7F0;
	border: 1px solid var(--line);
}

.tben__in {
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
	height: 100%;
}

.tben__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: .55rem;
	min-width: 0;
}

/* The picture alone: a clay line drawing. */
.tben__ic {
	flex: none;
	width: 30px;
	height: 30px;
	margin-bottom: .35rem;
	color: var(--clay);
}
.tben__ic svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The medallion: the picture in a sand disc, ringed by a dashed clay line. */
.tben__ic--medal {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin-bottom: .5rem;
	border: 1px dashed rgba(169, 82, 47, .45);
	border-radius: 50%;
	background: radial-gradient(circle, #F3E6D6 0 58%, transparent 59%);
}
.tben__ic--medal svg { width: 28px; height: 28px; }

.tben__c h3 {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.2;
}

/* The sentence: a darker muted brown than the theme's `--muted`, which is
   under 4.5:1 on this ground — #6B5E51 is 5.6:1. */
.tben__main > p:not(.tben__fig) {
	margin: 0;
	font-size: .9rem;
	line-height: 1.65;
	color: #6B5E51;
}

/* ---- the lead card */
.tben__c--lead {
	min-height: clamp(22rem, 34vw, 27rem);
	padding: clamp(2.2rem, 3.2vw, 2.6rem) clamp(1.6rem, 3vw, 2.4rem) clamp(1.8rem, 3vw, 2.4rem);
	color: var(--bone);
	border-color: #1E1813;
	background-color: #1E1813;
	background-image:
		repeating-linear-gradient(0deg, rgba(250, 246, 239, .04) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, rgba(250, 246, 239, .035) 0 1px, transparent 1px 5px);
}
.tben__c--lead::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 14px;
	opacity: .8;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpolyline points='0,7 7,1 14,7' fill='none' stroke='%23D9B778' stroke-width='1.3'/%3E%3C/svg%3E") repeat-x center / 14px 8px;
}
.tben__c--lead .tben__main { justify-content: flex-end; }
.tben__c--lead .tben__ic { margin-bottom: auto; }
.tben__c--lead .tben__ic--medal {
	width: 84px;
	height: 84px;
	border-color: rgba(217, 183, 120, .55);
}
.tben__c--lead .tben__ic--medal svg { width: 34px; height: 34px; }
.tben__c--lead h3 {
	color: var(--bone);
	font-size: clamp(1.45rem, 2vw, 1.7rem);
}
.tben__c--lead .tben__main > p:not(.tben__fig) {
	max-width: 40ch;
	color: rgba(250, 246, 239, .74);
}

/* The figure: a small brass label, then the discounts large in the serif and
   the owner's words between them small, in brass. */
.tben__c .tben__fig {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin: 1.4rem 0 .45rem;
}
.tben__lab {
	font-family: var(--sans);
	font-size: 10.5px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--brass-l);
}
.tben__range {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 .28em;
	font-family: var(--serif);
	font-size: clamp(3.4rem, 6vw, 5.2rem);
	font-weight: 300;
	line-height: .95;
	color: var(--bone);
}
.tben__w {
	font-size: .5em;
	color: var(--brass-l);
}

/* ---- the ladder as bars, on the card wearing the rising bars */
.tben__bars {
	display: flex;
	flex: none;
	align-items: flex-end;
	gap: 7px;
	height: 64px;
}
/* Each bar asks for 22px and may give way, down to a sliver, so a long
   ladder (the admin allows twelve rungs) never squeezes the card's words. */
.tben__bars i {
	flex: 0 1 auto;
	width: 22px;
	min-width: 4px;
	height: var(--h, 50%);
	background: var(--clay);
	opacity: .3;
}
.tben__bars i:nth-last-child(2) { opacity: .6; }
.tben__bars i:last-child { opacity: 1; background: var(--brass); }
.tben__c--lead .tben__bars i { background: var(--brass-l); }

/* Wide enough, the bars stand beside the words, at the foot of the card. */
@container (min-width: 440px) {
	.tben__c--grow .tben__in {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
	/* The words take what the bars leave, not the other way round: from no
	   width of their own, so their long sentence never outbids the bars. */
	.tben__c--grow .tben__main { flex: 1 1 0; }
	.tben__c--grow .tben__bars {
		flex: 0 1 auto;
		min-width: 0;
		max-width: 45%;
		gap: 8px;
		height: 88px;
	}
}

/* A card lifts a little under the pointer, as the tier swatches do. Only
   where there is a pointer, and never for a reader who asked for stillness.
   The shorthand restates the reveal's stagger (`--d`, which base.css gives
   `[data-reveal]` and a shorthand would otherwise reset to nought), so the
   cards still arrive one after another; the lift itself does not wait. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.tben__c { transition: transform .6s var(--ease) var(--d, 0ms), box-shadow .6s var(--ease), opacity .8s var(--ease) var(--d, 0ms); }
	.tben__c.in:hover {
		transform: translateY(-4px);
		box-shadow: 0 22px 44px -30px rgba(20, 16, 13, .45);
		transition-delay: 0ms;
	}
}

/* ---------------------------------------------------------- HOW IT WORKS --- */

/* The redesign of 18 October 2026 (`templates/trade/steps.php`): the steps on
   one clay thread with a lozenge on each, big numbers, a picture, the last
   step on the Loom card's dark ground, and the hero's buttons after them.
   It replaces trade.css's `.tflow`, whose four grey boxes are no longer drawn.
   Wide screens string the steps across in one row, whatever their count (one
   to six); below 1025px the thread runs down the left edge. */

.tsteps__lead { max-width: 27rem; text-align: left; }
.tsteps__lead p {
	max-width: none;
	margin: 0 0 .35rem;
	font-size: clamp(.95rem, 1.05vw, 1.05rem);
	line-height: 1.7;
	color: var(--ink-3);
}

.tsteps__list {
	--gap: clamp(1.4rem, 2.6vw, 2.8rem);
	display: grid;
	grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

/* `--td` is when a step's thread segment draws and `--tdot` when its lozenge
   lands: one after another, left to right, once the row has arrived. */
.tstep {
	--td: calc(var(--i, 0) * 320ms + 380ms);
	--tdot: calc(var(--i, 0) * 320ms + 220ms);
	position: relative;
	padding-right: var(--gap);
}
.tstep:last-child { padding-right: 0; }

.tstep__n {
	font-family: var(--serif);
	font-size: clamp(2.8rem, 3.8vw, 3.9rem);
	font-weight: 400;
	line-height: .9;
	color: var(--clay);
}

/* The thread: one dashed segment per step, from its lozenge to the next. It
   runs on through the step's right padding to meet the next lozenge, and is
   uncovered with a clip rather than a scale so the dashes never stretch. */
.tstep__rail {
	position: relative;
	display: block;
	height: 13px;
	margin: 1.15rem calc(-1 * var(--gap)) 1.6rem 0;
}
.tstep:last-child .tstep__rail { margin-right: 0; }
.tstep__rail::before {
	content: "";
	position: absolute;
	left: 6px;
	right: 0;
	top: 6px;
	border-top: 1.5px dashed var(--clay);
	clip-path: inset(0 100% 0 0);
	transition: clip-path .55s cubic-bezier(.4, 0, .2, 1) var(--td);
}
.tstep:last-child .tstep__rail::before { display: none; }
.tstep__rail i {
	position: absolute;
	left: 0;
	top: 0;
	width: 12px;
	height: 12px;
	border: 1.5px solid var(--clay);
	background: var(--bone);
	transform: rotate(45deg) scale(0);
	transition: transform .5s var(--ease-out) var(--tdot), background-color .35s var(--ease);
}
.tstep.in .tstep__rail::before { clip-path: inset(0); }
.tstep.in .tstep__rail i { transform: rotate(45deg) scale(1); }

/* The last lozenge is filled — where the steps lead — and any other fills
   while its step is pointed at. */
.tstep--last .tstep__rail i,
.tstep:hover .tstep__rail i { background-color: var(--clay); }

.tstep__ic {
	display: block;
	width: 26px;
	height: 26px;
	margin-bottom: 1rem;
	color: var(--clay);
}
.tstep__ic svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tstep__t {
	margin: 0 0 .6rem;
	font-family: var(--serif);
	font-size: clamp(1.35rem, 1.65vw, 1.6rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--ink);
}

/* Up from trade.css's .84rem in --ink-3: the sentence is what the step says. */
.tstep__p {
	max-width: 36ch;
	margin: 0;
	font-size: clamp(.92rem, .98vw, 1rem);
	line-height: 1.7;
	color: var(--ink-3);
}

/* The last step wears the Loom card: its ground, its weave, its fringe. */
.tstep--last .tstep__body {
	position: relative;
	padding: clamp(1.3rem, 1.9vw, 1.7rem) clamp(1.3rem, 1.9vw, 1.7rem) clamp(1.5rem, 2.1vw, 1.9rem);
	color: var(--bone);
	background-color: #2A211B;
	background-image:
		repeating-linear-gradient(0deg, rgba(250, 246, 239, .05) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, rgba(250, 246, 239, .05) 0 1px, transparent 1px 5px);
	box-shadow: 0 22px 46px -28px rgba(20, 16, 13, .7);
}
.tstep--last .tstep__body::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	top: 100%;
	height: 14px;
	background: repeating-linear-gradient(90deg, #6E5A49 0 2px, transparent 2px 7px);
}
.tstep--last .tstep__ic { color: var(--brass-l); }
.tstep--last .tstep__t { color: var(--bone); }
.tstep--last .tstep__p { color: rgba(250, 246, 239, .72); }

/* The rising-bars step's rungs: name small, percentage set in the serif. The
   name takes the tier cards' darker muted brown, 5.3:1 on bone. */
.tstep__ladder {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin: 1.2rem 0 0;
	padding: .9rem 0 0;
	list-style: none;
	border-top: 1px solid var(--line);
}
.tstep__ladder li {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #6B5E51;
}
.tstep__ladder b {
	margin-left: .3em;
	font-family: var(--serif);
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--clay);
}
.tstep--last .tstep__ladder { border-top-color: rgba(250, 246, 239, .14); }
.tstep--last .tstep__ladder li { color: rgba(250, 246, 239, .68); }
.tstep--last .tstep__ladder b { color: var(--brass-l); }

.tsteps__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.1rem 2.2rem;
	margin-top: clamp(2.8rem, 4.4vw, 4rem);
	padding-top: clamp(1.4rem, 2vw, 1.9rem);
	border-top: 1px solid var(--line);
}

/* Down the left edge: the number over the words, the lozenge beside the
   number, each segment reaching the next lozenge and drawn as its step
   scrolls in. The picture is left to the wide row, where it has room. */
@media (max-width: 1024px) {
	.tsteps__list {
		display: block;
		max-width: 40rem;
		padding-left: 2.5rem;
	}
	.tstep {
		--td: 280ms;
		--tdot: 120ms;
		padding: 0 0 2.4rem;
	}
	.tstep:last-child { padding-bottom: 0; }
	.tstep__n { font-size: clamp(2.3rem, 7vw, 2.8rem); }
	.tstep__rail {
		position: absolute;
		left: -2.5rem;
		top: .7rem;
		bottom: -.7rem;
		width: 12px;
		height: auto;
		margin: 0;
	}
	.tstep:last-child .tstep__rail { bottom: auto; height: 12px; }
	.tstep__rail::before {
		left: 5px;
		right: auto;
		top: 6px;
		bottom: 0;
		border-top: 0;
		border-left: 1.5px dashed var(--clay);
		clip-path: inset(0 0 100% 0);
	}
	.tstep__ic { display: none; }
	.tstep__t { margin-top: .9rem; }
	.tstep--last .tstep__body { margin-top: 1rem; }
	.tstep--last .tstep__t { margin-top: 0; }
}

/* No script, or no motion: the thread is simply there. */
.no-js .tstep__rail::before { clip-path: none; }
.no-js .tstep__rail i { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
	.tstep__rail::before { clip-path: none; }
	.tstep__rail i { transform: rotate(45deg); }
}

/* ------------------------------------------------------------ THE FORM ----- */

/* The prototype set this gap inline on the aside's heading. */
.tapply__aside h2 { margin-top: .6rem; }

/* A refusal is not a thank-you: the rule turns clay and the tick goes. */
.tform__said.is-bad { border-left-color: var(--clay); }
.tform__said.is-bad svg { display: none; }
.tform__said a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }

/* The box the browser itself found wanting, marked as the contact form marks its own. */
.tform .field.is-bad input,
.tform .field.is-bad textarea,
.tform .field.is-bad select { border-color: var(--clay); }

/* The kinds of work: guide.css draws the select as a ruled line, like the inputs
   beside it; this keeps the browser's own arrow from sitting on the rule. */
.tform .field select { padding-right: 1.4rem; cursor: pointer; }

/* While the route is answering. */
.tform [data-yemma-trade-send][disabled] { opacity: .55; pointer-events: none; }

/* Sent: the answer stays, the boxes go. A second press could change nothing —
   the account is waiting now — and a form still standing invites one. */
.tform.is-sent > .field,
.tform.is-sent > .tform__acts,
.tform.is-sent > .tform__fine,
.tform.is-sent > .tstate { display: none; }

/* ------------------------------------------- WHAT STANDS IN THE FORM'S PLACE --- */

/* The sign-in prompt: a heading, a sentence and the way in, ruled off in ink
   like the benefit cards above it. */
.tstate {
	border-top: 1px solid var(--ink);
	padding-top: 1.4rem;
	align-self: start;
}
.tstate__t {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	line-height: 1.15;
	color: var(--ink);
}
.tstate p {
	margin-top: .8rem;
	max-width: 52ch;
	font-size: .95rem;
	line-height: 1.8;
	color: var(--ink-3);
}
.tstate .btn { margin-top: 1.6rem; }

/* Where an account stands, and the closed programme: one sentence, set larger,
   behind the same left rule the form's own answer wears. Ok-green for an
   account that is moving; a hairline for a paused one; brass for "not yet". */
.tstate--state,
.tstate--closed {
	border-top: 0;
	border-left: 2px solid var(--ok);
	padding: .3rem 0 .3rem 1.3rem;
}
.tstate--state p,
.tstate--closed p {
	margin-top: 0;
	font-family: var(--serif);
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	line-height: 1.5;
	color: var(--ink);
}
.tstate--mute { border-left-color: var(--line-2); }
.tstate--closed { border-left-color: var(--brass); }

/* A rejected applicant's line, above the form she may send again. */
.tstate--note {
	border-top: 0;
	border-left: 2px solid var(--clay);
	padding: .1rem 0 .1rem 1rem;
}
.tstate--note p { margin-top: 0; font-size: .88rem; }

/* The redirect focuses the answer so a screen reader hears it; the ring that
   focus draws on a sentence is noise to everybody else. */
.tstate[tabindex="-1"]:focus,
.tform__said[tabindex="-1"]:focus { outline: none; }
