/*
 * Visual polish.
 *
 * Hand-written, and loaded after main.css (see inc/enqueue.php). It exists for
 * one reason: main.css is a compiled Tailwind build and the toolchain is not on
 * this host, so anything that has to change a rule main.css already owns is
 * written here instead, against the tokens main.css defines. Nothing here
 * invents a new colour or radius; it reads --azure-600, --sand-*, --shadow-card
 * and the rest, so the palette still moves in one place.
 *
 * Twelve sets, in the order they are used:
 *
 *   1. Card polish    hover lift and photo zoom for pointers only, a real focus
 *                     ring, a press state, and no motion for a visitor who
 *                     asked for none.
 *   2. Sticky bar     the results toolbar, and the matching count/view strip on
 *                     search, archives and the homepage shelf, dock under the
 *                     header and settle when their grid is scrolled.
 *   3. Feedback       a shimmer placeholder while a filter change re-fetches the
 *                     grid, and a short slide-in confirmation for save.
 *   4. Card type and  the card and the grid chrome that frames it are set in
 *      icons          Inter, and the controls on a card are drawn as bare thin
 *                     strokes rather than bordered bulls-eyes. Wording is
 *                     untouched: this set moves type and line, not words.
 *   5. Nav and        the top navigation is set as plain words with no tag
 *      filter bar     beside them, and the quick filters become one bold line
 *                     that opens its choices in a panel. The results band is cut
 *                     to a single slim bar and the share control loses its box.
 *                     Again type and surface, not wording.
 *   6. Bottom nav     the bar a phone gets along the bottom edge: the four
 *                     destinations a buyer uses most, plus the account, under
 *                     the thumb. Fixed, and only below xl where the header's own
 *                     navigation is not on screen.
 *   7. Motion guard   one reduced-motion block that switches all of the above
 *                     off, rather than a clause per rule scattered through the
 *                     file where one is always forgotten.
 *   8. Find an agent  the agent directory's cards, filter row and page numbers —
 *                     and the one place a grid is built from the width that is
 *                     available rather than from a Tailwind breakpoint this
 *                     build never emitted.
 *   9. Grid or list   the two halves of the view switch made to look like the
 *                     half that is on, and a row shape of its own below 640px
 *                     rather than a portrait card asked to be a row.
 *  10. Listing video  a clip drawn the way it was filmed, on the listing, in the
 *                     card and on the share image, with the upload control on
 *                     the sell form beside the photograph one.
 *  11. What's new    the dot that says a page has something this person has not
 *                     read, and the page it points at.
 *  12. The sell form arrangement, not wording: tap targets that reach the size
 *                     the rest of the site already uses, the word "required" on
 *                     the seven fields that demand it, a progress rail that
 *                     counts the sections a seller can actually see, and an
 *                     action bar that follows them down the page.
 *
 * The house rule holds throughout: motion is a few pixels over a couple of
 * hundred milliseconds, only transform and opacity are animated, and nothing
 * moves that a visitor did not touch. Restraint is the effect.
 *
 * @package Duncan
 */

/* ── 1. Card polish ─────────────────────────────────────────────────────── */

/*
 * The lift is for a mouse. A phone has no hover: tapping a card fires the
 * hover state and leaves it stuck on whatever was tapped last, so the card
 * under the thumb sits raised while its neighbour looks broken. The pointer
 * query is what keeps the effect on the devices that can actually hover.
 */
@media (hover: hover) and (pointer: fine) {
	.duncan-entry-wrap {
		transition:
			transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1),
			box-shadow 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
	}

	/* Three pixels, not twelve. The card is a link to a property, not a
	   button asking to be pressed. */
	.duncan-entry-wrap:hover {
		--tw-translate-y: -0.1875rem;
		--tw-shadow: 0 14px 30px -10px rgb(16 24 40 / 0.24);
		--tw-shadow-colored: 0 14px 30px -10px var(--tw-shadow-color);
	}

	.duncan-entry:hover .duncan-entry__figure img {
		transform: scale(1.03);
	}
}

/* Touch: no lift, no zoom. The image keeps its own transition for the gallery
   and the card's parallax-free crop; only the hover transform is undone. */
@media (hover: none) {
	.duncan-entry-wrap:hover {
		--tw-translate-y: 0;
		--tw-shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 1px 3px rgb(16 24 40 / 0.1);
		--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color), 0 1px 3px var(--tw-shadow-color);
	}

	.duncan-entry:hover .duncan-entry__figure img {
		transform: none;
	}
}

/*
 * The focus ring, on the card as one object.
 *
 * The title is the link, but the overlay drawn from it makes the whole box a
 * target, so ringing the 16px title would point at a corner of the thing that
 * actually receives the focus. :has(:focus-visible) puts the ring around the
 * card the visitor is on, and only for the keyboard: a mouse click on Save
 * focuses the button but must not leave a ring behind, which :focus-within
 * would.
 *
 * The title's own ring is switched off inside the same condition, so the two
 * never stack. On a browser without :has both rules drop and the theme's own
 * :focus-visible outline on the title remains, which is the correct fallback.
 */
.duncan-entry-wrap:has(:focus-visible) {
	outline: 2px solid var(--azure-600, #0a3d91);
	outline-offset: 2px;
}

.duncan-entry-wrap:has(:focus-visible) .duncan-entry__link:focus-visible {
	outline: none;
	box-shadow: none;
}

/* ── Press states ───────────────────────────────────────────────────────── */

/*
 * A control that does not move when pressed reads as inert on a phone, where
 * there is no cursor to change and no hover to confirm the tap landed. A
 * percent of a scale is enough: this is acknowledgement, not animation.
 */
@media (prefers-reduced-motion: no-preference) {
	.chip,
	.duncan-chip,
	.duncan-view__btn,
	.duncan-searchbar__map,
	.duncan-savesearch__btn,
	.duncan-activechip,
	.duncan-save {
		transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, color 120ms ease;
	}

	.chip:active,
	.duncan-chip:active,
	.duncan-view__btn:active,
	.duncan-searchbar__map:active,
	.duncan-savesearch__btn:active,
	.duncan-activechip:active {
		transform: scale(0.97);
	}

	.duncan-save:active {
		transform: scale(0.94);
	}
}

/* ── 2. Sticky filter toolbar ───────────────────────────────────────────── */

/*
 * The bar docked under the header.
 *
 * It carries the results controls on the catalogue and on the buildings we
 * manage (one template), the result count and the Grid/List switch on site
 * search and on a taxonomy archive, and the Just listed shelf on the homepage.
 * Same bar, same dock point, so a visitor meets one behaviour rather than a
 * different one per page.
 *
 * --duncan-header-h is measured from the real header by polish.js, so the bar
 * lands on its lower edge rather than guessing at a pixel value. The fallback
 * is the 65px the header has held for a long time, so a page whose script has
 * not run still docks in the right place.
 */
.duncan-sticky-sentinel {
	height: 1px;
	margin: 0;
}

/*
 * The gap above the bar belongs to the sentinel, not the bar. The script
 * reads the sentinel, so a margin on the bar itself would leave the bar a few
 * pixels short of the header when it started looking docked. Keeping the gap
 * above the sentinel makes the crossing land exactly on the bar's top edge.
 */
.duncan-sticky-sentinel--spaced {
	margin-top: 1.5rem;
}

.duncan-stickybar {
	position: sticky;
	top: var(--duncan-header-h, 65px);
	z-index: 20;
	margin-bottom: 1.25rem;
	padding: 0.5rem 0;
	background-color: var(--sand-50, #faf9f7);
	transition: box-shadow 200ms ease, background-color 200ms ease;
}

/*
 * Settled: a hairline, a lift shadow and an opaque-enough ground so the grid
 * sliding under it stays legible. Only box-shadow and background-color move;
 * the height change of docking is instant, because animating padding is a
 * layout animation and this file promised to animate transform and opacity.
 */
.duncan-stickybar.is-stuck {
	background-color: rgb(255 255 255 / 0.94);
	/* The hairline rides in the shadow rather than on the border, so docking
	   adds no height and the grid under the bar does not shift by a pixel. */
	box-shadow:
		inset 0 -1px 0 var(--sand-200, #e8e4dd),
		0 10px 22px -16px rgb(16 24 40 / 0.45);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	backdrop-filter: saturate(1.4) blur(8px);
}

/*
 * The homepage shelf uses its section header as the bar. It already holds the
 * heading, "View all listings" and the layout switch, so it needs no bottom
 * gap of its own (the grid's margin supplies it) and no dock at all on a
 * phone, where that header wraps and would cost more screen than it returns.
 */
.duncan-stickybar--shelf {
	margin-bottom: 0;
}

@media (max-width: 767.98px) {
	.duncan-stickybar--shelf {
		position: static;
		background-color: transparent;
		padding: 0;
	}

	.duncan-stickybar--shelf.is-stuck {
		background-color: transparent;
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* ── 3. Feedback: skeleton grid and toast ───────────────────────────────── */

/*
 * A filter change re-fetches the grid. The old cards used to dim to 55% and sit
 * there, which reads as "the site is broken" rather than "the site is working".
 * A shimmer placeholder in the shape of the answer does the opposite: it says
 * how many are coming and where, before they arrive.
 */
.duncan-skeleton-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.duncan-skeleton-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.duncan-skeleton-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* The real cards, while the answer is being fetched. */
[data-duncan-skeleton] > .duncan-list {
	display: none;
}

.duncan-skeleton-card {
	overflow: hidden;
	border-radius: 16px;
	background-color: #fff;
	padding-bottom: 1rem;
	box-shadow: var(--shadow-card, 0 1px 2px rgb(20 24 26 / 0.04));
}

.duncan-skeleton-card__figure {
	aspect-ratio: 4 / 3;
	border-radius: 0;
}

.duncan-skeleton-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: 1rem;
}

.duncan-skeleton {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	background-color: var(--sand-200, #e8e4dd);
}

/*
 * The sweep is a transform on a pseudo-element, never a background-position
 * animation, so it stays on the compositor. A visitor who asked for less motion
 * gets the flat block, which is still a correct placeholder.
 */
@media (prefers-reduced-motion: no-preference) {
	.duncan-skeleton::after {
		content: "";
		position: absolute;
		inset: 0;
		transform: translateX(-100%);
		background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.66), transparent);
		animation: duncan-shimmer 1.5s ease-in-out infinite;
	}
}

@keyframes duncan-shimmer {
	to {
		transform: translateX(100%);
	}
}

/*
 * The confirmation, for save.
 *
 * The action bar at the top already reports the running count; this is the one
 * line acknowledgement that the tap landed on the thing that was tapped. It
 * slides up and fades, is announced once to a screen reader, and removes itself
 * so nothing is left in the DOM to be found later.
 */
.duncan-toasts {
	position: fixed;
	left: 0;
	right: 0;
	bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
	z-index: 70;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0 1rem;
	pointer-events: none;
}

.duncan-toast {
	max-width: min(92vw, 22rem);
	border-radius: 9999px;
	background-color: var(--ink-900, #14181a);
	padding: 0.625rem 1.1rem;
	color: #fff;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	box-shadow: 0 12px 28px -12px rgb(16 24 40 / 0.55);
	opacity: 0;
	transform: translateY(0.75rem);
	transition: opacity 200ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.duncan-toast.is-in {
	opacity: 1;
	transform: translateY(0);
}

/* ── 4. Card type and icons ─────────────────────────────────────────────── */

/*
 * Inter, self-hosted, declared here rather than in main.css because main.css is
 * a compiled build. Same latin subset, same OFL, the variable file so one
 * download covers every weight the card uses. The metric-adjusted Arial
 * fallback carries next/font's Inter numbers, so the card does not shift when
 * the webfont lands.
 *
 * Inter is spent on two surfaces only: the card a buyer scans, and the grid
 * chrome that frames it (the count, the sort select, the Grid/List switch, the
 * quick filter rack). Headings, navigation, the footer and the listing page keep
 * Lato and Montserrat, so the site's voice does not change, only the object the
 * buyer is scanning. Wording is untouched throughout.
 *
 * The agent card joins that list because it is the same object. /find-an-agent/
 * borrows the listing card's measurements whole — see section 8 — so a face,
 * a name and a place read in the same typeface at the same sizes, and nobody has
 * to learn a second scanning surface. The filter bar above it stays in Lato, as
 * the catalogue's does: Inter is spent on the cards a buyer scans, and the chrome
 * around them is the site speaking, which has always been Lato's job.
 */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'Inter';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-latin-wght-italic.woff2') format('woff2');
}

@font-face {
	font-family: 'Inter Fallback';
	font-style: normal;
	src: local('Arial');
	ascent-override: 90.2%;
	descent-override: 22.48%;
	line-gap-override: 0%;
	size-adjust: 107.64%;
}

.duncan-entry-wrap,
.duncan-agent,
.duncan-view,
.duncan-sort,
.duncan-pillbar,
.duncan-activechips,
.duncan-stickybar .meta {
	font-family: Inter, 'Inter Fallback', system-ui, -apple-system, 'Segoe UI',
		'Helvetica Neue', Arial, sans-serif;
}

/*
 * A hair less air under the object and a hair less weight above it. The card's
 * own scale is unchanged: price 24, title 16, everything else 13, the same
 * contrast the layout was built on. Only tracking moves, because Inter sets a
 * little wider than Lato at the same size and the price line is the one that
 * must hold the eye.
 */
.duncan-entry .duncan-money--price {
	letter-spacing: -0.012em;
}

.duncan-entry__title {
	letter-spacing: -0.006em;
}

/*
 * The card's surface, flattened a touch. The shadow is set through the Tailwind
 * variables the utility already reads, not by overwriting box-shadow, so the
 * hover lift from set one still works: that rule swaps --tw-shadow too, while a
 * later box-shadow declaration here would have frozen the card at rest.
 */
.duncan-entry-wrap {
	--tw-shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 1px 3px rgb(16 24 40 / 0.07);
	--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color), 0 1px 3px var(--tw-shadow-color);
}

/*
 * The icons, unboxed.
 *
 * Every control on the card used to sit on a plate: Save and Share on bordered
 * rounds, the three enquiry marks on 40px bordered circles, the chips and the
 * photo count on blurred glass. That is four kinds of plate stacked on one
 * photograph. Here they are reduced to the glyph itself, in one stroke weight,
 * with the hit areas left where they were so a thumb still has something to
 * land on. The only ground kept is the one that has to carry white type over an
 * unknown photograph: the two over-image badges.
 */

/* Save and Share, over the photograph. White on a soft shadow reads on any
   photograph, and it is the pairing every portal uses for the same two marks.
   The saved heart keeps its red — a state may still be a colour. */
.duncan-entry__tools .duncan-save,
.duncan-entry__tools .duncan-share {
	border: 0;
	background-color: transparent;
	box-shadow: none;
	color: #fff;
	filter: drop-shadow(0 1px 2px rgb(16 24 40 / 0.6));
}

.duncan-entry__tools .duncan-save:hover,
.duncan-entry__tools .duncan-share:hover {
	border-color: transparent;
	background-color: transparent;
	color: #fff;
}

.duncan-entry__tools .duncan-save.is-saved {
	border: 0;
	background-color: transparent;
	color: #e1301a; /* danger-600, the filled heart. */
}

.duncan-entry__tools .duncan-share.is-done {
	border: 0;
	background-color: transparent;
	color: #0f5132; /* brand-700, the copied tick. */
}

.duncan-entry__tools .duncan-save__icon,
.duncan-entry__tools .duncan-share__icon {
	width: 1.125rem;
	height: 1.125rem;
	stroke-width: 1.6;
}

/* White on a photograph, ink on the plate that stands in for one. A card with
   no photograph still carries the pair, and on the light sand ground a white
   glyph and its shadow are a smudge. The template marks that card
   `--nophoto`; the saved heart and the copied tick keep their own colours on
   either ground. */
.duncan-entry-wrap--nophoto .duncan-entry__tools .duncan-save,
.duncan-entry-wrap--nophoto .duncan-entry__tools .duncan-share {
	color: #55605f; /* ink-600 */
	filter: none;
}

.duncan-entry-wrap--nophoto .duncan-entry__tools .duncan-save:hover,
.duncan-entry-wrap--nophoto .duncan-entry__tools .duncan-share:hover {
	color: #14181a; /* ink-900 */
}

/* The three enquiry marks: 40px of touch, none of it drawn. Ink at rest, azure
   on hover, and the row closed up because the plate is gone and 6px between
   invisible targets was 26px between glyphs. */
.duncan-entry__ask {
	gap: 0;
}

.duncan-entry__ask-btn {
	height: 2.5rem;
	width: 2.5rem;
	border: 0;
	background-color: transparent;
	box-shadow: none;
	color: #55605f; /* ink-600. */
}

.duncan-entry__ask-btn:hover {
	border-color: transparent;
	background-color: transparent;
	color: #08326f; /* azure-700. */
}

.duncan-entry__ask-btn svg {
	width: 1.25rem;
	height: 1.25rem;
	stroke-width: 1.6;
}

/* The chips: flat plates, one colour each, no blur and no shadow. They keep
   their words and their place in the corner the eye checks first. */
.duncan-entry__chip {
	background-color: #fff;
	color: #14181a; /* ink-900. */
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.duncan-entry__chip--tx {
	background-color: #0a3d91; /* azure-600. */
	color: #fff;
}

.duncan-entry__chip--managed {
	border-color: transparent;
	background-color: #eaf3ee;
	color: #0f5132; /* brand-700. */
}

/* The photo count. A dark glass, not a white one: the only thing on the card
   that sits on the photograph itself, and the one place white type over a dark
   ground is the cleanest thing available. */
.duncan-entry__photos {
	background-color: rgb(20 24 26 / 0.55);
	color: #fff;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.duncan-entry__photos svg {
	stroke-width: 1.6;
}

/* The place pin, a shade thinner to match the rest of the set. */
.duncan-entry__pin {
	stroke-width: 1.6;
}

/* ── 5. Nav and filter bar ──────────────────────────────────────────────── */

/*
 * The results bar.
 *
 * The band that opens a results page, cut down to one line: the page's own
 * name on the left, the share control on the right. It used to be a centred
 * masthead with a display-size heading, the count under it and the share on a
 * third line — three bands of height above the first listing for a label, a
 * number and one button. A catalogue's job is the catalogue, so the name
 * becomes a single bold line and the rest of the screen goes to results.
 */
.duncan-resultsbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 80rem;
	margin-inline: auto;
	padding: 0.65rem 1rem;
}

@media (min-width: 640px) {
	.duncan-resultsbar__inner {
		padding-inline: 1.5rem;
	}
}

.duncan-resultsbar__lead {
	min-width: 0;
}

.duncan-resultsbar__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #fff;
}

.duncan-resultsbar__count {
	margin: 0.15rem 0 0;
	font-size: 12.5px;
	line-height: 1.3;
	color: rgb(255 255 255 / 0.85);
}

.duncan-resultsbar__actions {
	flex: 0 0 auto;
}

/*
 * The share control on the bar.
 *
 * Everywhere else a share is a small bordered control resting on a photograph
 * or a card, where the box is what gives it an edge. On the bar it sits on a
 * solid blue and carries its own word, so the box is only a box: the plate
 * comes off and it becomes the glyph and the word in white, which is what a
 * person is aiming at anyway. The hover is a wash rather than an outline, so
 * the bar reads as one surface with a control on it, not a control drawn on a
 * surface.
 */
.duncan-resultsbar .duncan-share {
	border: 0;
	background: transparent;
	padding: 0.45rem 0.7rem;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.duncan-resultsbar .duncan-share:hover {
	background: rgb(255 255 255 / 0.15);
	color: #fff;
}

.duncan-resultsbar .duncan-share__icon,
.duncan-resultsbar .duncan-share__tick {
	width: 1.05rem;
	height: 1.05rem;
}

.duncan-resultsbar .duncan-share.is-done {
	background: rgb(255 255 255 / 0.15);
	color: #fff;
}

.duncan-resultsbar__reading {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1rem 0.6rem;
	font-size: 12.5px;
	line-height: 1.4;
	color: rgb(255 255 255 / 0.85);
}

@media (min-width: 640px) {
	.duncan-resultsbar__reading {
		padding-inline: 1.5rem;
	}
}

/*
 * The top navigation, as Zillow sets it: words, with no tag beside each one.
 * The little icon every link used to carry made seven words read as seven
 * different features; as plain text the row reads as the two questions a buyer
 * arrives with and the pages beside them. Spacing does the separating, and the
 * links sit a hair further apart than the body type.
 */
.duncan-header nav[aria-label='Primary'] {
	gap: 0.125rem;
}

.duncan-header .duncan-navlink {
	padding-inline: 0.7rem;
	font-size: 15px;
}

/* Sign in is the one link set in a colour rather than ink, the way Zillow sets
   it: the site's blue, so it is findable without a box drawn around it. */
.duncan-navlink--signin {
	color: #0a3d91; /* azure-600 */
	font-weight: 600;
}

.duncan-navlink--signin:hover {
	color: #08326f; /* azure-700 */
	text-decoration: underline;
	text-underline-offset: 3px;
}

/*
 * The filter bar.
 *
 * One bold line under the results bar, each name opening its choices in a
 * panel. Zillow's shape without Zillow's pills: the names are plain words that
 * take the blue on hover, so the row reads as a toolbar rather than four
 * boxes. The choices are still links, not widgets, because the URL is the
 * state — a shared search, a back button and a browser without JavaScript all
 * read the same page. The hairline under the row is what makes it a bar.
 */
.duncan-filterbar {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.15rem 1.4rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid #e8e4dd; /* sand-200 */
}

.duncan-filterbar__dd {
	position: relative;
}

.duncan-filterbar__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	border: 0;
	background: none;
	padding: 0.35rem 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #14181a; /* ink-900 */
	cursor: pointer;
	list-style: none;
	white-space: nowrap;
	transition: color 150ms ease;
}

.duncan-filterbar__btn::-webkit-details-marker {
	display: none;
}

.duncan-filterbar__btn:hover {
	color: #0a3d91; /* azure-600 */
}

/* A group carrying a value, and the one whose panel is open, both wear the
   blue, so what is narrowing the grid is legible at a glance. */
.duncan-filterbar__btn.is-set,
.duncan-filterbar__dd[open] > .duncan-filterbar__btn {
	color: #0a3d91; /* azure-600 */
}

.duncan-filterbar__chev {
	width: 1rem;
	height: 1rem;
	transition: transform 150ms ease;
}

.duncan-filterbar__dd[open] .duncan-filterbar__chev {
	transform: rotate(180deg);
}

.duncan-filterbar__panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 0.4rem);
	left: 0;
	min-width: 14rem;
	max-height: 20rem;
	overflow-y: auto;
	padding: 0.35rem;
	border: 1px solid #e8e4dd; /* sand-200 */
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 28px -12px rgb(16 24 40 / 0.35), 0 2px 6px rgb(16 24 40 / 0.08);
}

/*
 * On a phone the pills wrap, so a panel pinned under its own pill would run off
 * the right edge for anything past the first. Below sm the panel hangs off the
 * bar itself instead — the same left edge for every group, never wider than the
 * screen — which is the only side that is guaranteed to have room.
 */
@media (max-width: 640px) {
	.duncan-filterbar {
		gap: 1rem;
	}

	.duncan-filterbar__btn {
		font-size: 14px;
	}

	.duncan-filterbar__dd {
		position: static;
	}

	.duncan-filterbar__panel {
		max-width: calc(100vw - 2rem);
	}
}

@media (max-width: 400px) {
	/* Five groups is one more than the bar was drawn for, so on the smallest
	   phones the row tightens rather than crowds: the spacing closes up and the
	   chevrons shrink a hair. Below 360 it may wrap rather than run off the
	   edge, which is the one way a group can leave the row without taking a
	   neighbour with it. */
	.duncan-filterbar {
		gap: 0.65rem;
		row-gap: 0.4rem;
		flex-wrap: wrap;
	}

	.duncan-filterbar__btn {
		gap: 0.2rem;
	}

	.duncan-filterbar__chev {
		width: 0.9rem;
		height: 0.9rem;
	}
}

.duncan-filterbar__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem 0.65rem;
	border-radius: 8px;
	font-size: 14px;
	color: #22282b; /* ink-800 */
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 120ms ease;
}

.duncan-filterbar__opt:hover {
	background: #f4f2ee; /* sand-100 */
}

.duncan-filterbar__opt.is-active {
	background: #eef3fb; /* azure-50 */
	color: #0a3d91; /* azure-600 */
	font-weight: 600;
}

.duncan-filterbar__opt-n {
	color: #636e6d; /* ink-500 */
	font-variant-numeric: tabular-nums;
}

.duncan-filterbar__opt.is-active .duncan-filterbar__opt-n {
	color: #0a3d91;
}

/*
 * The long tail's toggle, and where the rail lives.
 *
 * The rail above the grid holds the fields the bar cannot carry — search, land
 * use, tenure, the price boxes, the amenity ticks. On a phone it is a panel, and
 * its one control now stands with the other filters and takes the far edge, so
 * everything a buyer can filter by opens from the same row. On desktop the rail
 * is the always-open left column, so the control is hidden rather than offered
 * twice. The count rides on the control while the panel is shut, so a buyer can
 * see the long tail is narrowing the grid without opening it.
 */
.duncan-filterbar__more {
	margin-left: auto;
	white-space: nowrap;
}

.duncan-filterbar__more-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.3rem;
	border-radius: 9999px;
	background: #0a3d91; /* azure-600 */
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

/* The chevron answers the panel: down when it is shut, up when it is open. */
.duncan-filterbar__more .duncan-filterbar__chev {
	transition: transform 150ms ease;
}

body:has(#duncan-filters-open:checked) .duncan-filterbar__more .duncan-filterbar__chev {
	transform: rotate(180deg);
}

/*
 * The rail's own top edge.
 *
 * Its first line used to be a divider under the "Filters" summary row that has
 * just moved out to the bar. With the summary gone the divider would draw a
 * stray line inside the top of the box, so it comes off on both sides of the
 * breakpoint that changes what the rail is.
 */
.duncan-filters__body {
	border-top: 0;
}

@media (max-width: 1023px) {
	/* Below lg the rail is a panel: shut until the bar's control asks for it.
	   display:none rather than a hidden body, so a shut rail takes no row in the
	   grid and leaves no gap above the results. A label still toggles a control
	   that is not painted, so this works with no JavaScript. */
	.duncan-filter-rail {
		display: none;
	}

	body:has(#duncan-filters-open:checked) .duncan-filter-rail {
		display: block;
	}
}

@media (min-width: 1024px) {
	/* From lg the rail is the always-open column, so its control is not drawn and
	   its body is shown whether or not the checkbox was ever ticked. */
	.duncan-filterbar__more {
		display: none;
	}

	.duncan-filters__body {
		display: block;
	}
}

/* ── 6. Bottom nav ──────────────────────────────────────────────────────── */

/*
 * The bar along the bottom edge of a phone or tablet.
 *
 * The header's navigation only renders at xl, so below that the only way into
 * the catalogue was the menu. This is that row of destinations set where a
 * thumb already is: five equal tabs, the glyph over a short label, the current
 * one in the blue. It is fixed rather than sticky because a phone's own chrome
 * moves and a bar pinned to the viewport is the only one that stays under the
 * thumb; env(safe-area-inset-bottom) keeps it clear of the home indicator.
 *
 * Hidden at xl and up, where the header's own navigation is on screen and a
 * second copy of it would only be a second copy.
 */
.duncan-bottomnav {
	display: none;
}

.duncan-bottomnav__tab {
	flex: 0 1 6.5rem;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 0.5rem 0.25rem 0.55rem;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.005em;
	color: #555f5f; /* ink-600 */
	text-decoration: none;
	transition: color 150ms ease;
}

/* The glyph arrives as a nav icon, which is sized and spaced for sitting beside
   a word in the header. Here it is the thing itself, so it loses the side
   margin and grows to a target. */
.duncan-bottomnav__tab .duncan-navlink__icon {
	width: 1.45rem;
	height: 1.45rem;
	margin: 0;
	opacity: 1;
}

.duncan-bottomnav__tab.is-current {
	color: #0a3d91; /* azure-600 */
}

.duncan-bottomnav__tab:active {
	opacity: 0.65;
}

@media (max-width: 1279px) {
	.duncan-bottomnav {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 35;
		display: flex;
		justify-content: center;
		border-top: 1px solid #e8e4dd; /* sand-200 */
		background: #fff;
		box-shadow: 0 -2px 14px rgb(16 24 40 / 0.07);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	/* The WhatsApp float already owns this corner, so it steps up and rests just
	   above the bar rather than fighting it for the bottom edge. 4.25rem is the
	   bar's own height plus the same gap the float kept from the screen edge. */
	.duncan-whatsapp {
		bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
	}

	/* Reserve the strip the bar and the float need, on the footer alone. The
	   footer is the last block of the document, so padding there is the one
	   place that lands at the true end of the scroll, where a fixed element
	   overlaps; 7.5rem clears the bar and the float standing above it. :has()
	   keeps the space to the pages that actually carry the bar, and the task
	   screens that skip it keep their full height.

	   A listing page already carries its own contact bar in this corner, at a
	   higher layer, so the bottom nav is dropped there rather than left as a
	   strip of dead tabs behind the buttons. */
	body:has(.duncan-bottomnav) footer {
		padding-bottom: 7.5rem;
	}

	body:has(.duncan-sticky-bar) .duncan-bottomnav {
		display: none;
	}
}

/* ── 7. Motion guard ────────────────────────────────────────────────────── */

/*
 * One block, last, so it wins. It switches off every transform and transition
 * this file adds, and the shimmer with it. The card still focuses and the toast
 * still appears; they simply arrive rather than travel.
 */
@media (prefers-reduced-motion: reduce) {
	.duncan-entry-wrap,
	.duncan-entry__figure img,
	.chip,
	.duncan-chip,
	.duncan-view__btn,
	.duncan-searchbar__map,
	.duncan-savesearch__btn,
	.duncan-activechip,
	.duncan-save,
	.duncan-stickybar,
	.duncan-filterbar__btn,
	.duncan-filterbar__opt,
	.duncan-filterbar__chev,
	.duncan-bottomnav__tab,
	.duncan-toast,
	.duncan-skeleton::after {
		transition: none;
		animation: none;
	}

	.duncan-entry-wrap:hover,
	.duncan-entry:hover .duncan-entry__figure img,
	.chip:active,
	.duncan-chip:active,
	.duncan-view__btn:active,
	.duncan-searchbar__map:active,
	.duncan-savesearch__btn:active,
	.duncan-activechip:active,
	.duncan-save:active,
	.duncan-filterbar__chev {
		transform: none;
	}

	.duncan-toast {
		transform: none;
	}
}

/*
 * The mobile drawer, set bolder and given its motion.
 *
 * The panel is the one surface a visitor opens on purpose, so its rows carry
 * more weight than the quiet words in the top bar: 600 on the top level, with
 * the indented second level held a step lighter so the two depths still read as
 * a tree rather than one long list. The marks go to 2.1 stroke, so a glyph
 * stands its ground beside the heavier word instead of thinning out against it.
 *
 * Then the open. It used to arrive in 120ms with a 4px nudge and no fade before
 * it; a panel that big appearing that suddenly reads as a glitch, not a menu.
 * From sm up it now drops a clear 8px as it fades, and on a phone, where the
 * panel is a sheet off the left edge, it keeps its slide but carries a fade
 * across the whole travel and settles on a soft ease-out. Only the reveal is
 * drawn: a <details> unrenders its panel on close, so there is nothing to
 * animate on the way out.
 */
.duncan-drawer__panel a:not([class*='btn']),
.duncan-drawer__group-toggle,
.duncan-drawer__signout {
	font-weight: 600;
}

/* The second level stays a step quieter than the level above it. */
.duncan-drawer__sub a:not([class*='btn']) {
	font-weight: 500;
}

.duncan-drawer__panel .duncan-navlink__icon,
.duncan-drawer__panel .duncan-drawer__chevron {
	stroke-width: 2.1;
}

/* A dropdown under the bar from sm up: it drops a few pixels as it fades in. */
.duncan-drawer__panel {
	animation: duncan-menu-drop 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes duncan-menu-drop {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* On a phone the panel is a sheet off the left edge: it slides the whole way in
   as it fades, its own motion, only finished. */
@media (max-width: 639.98px) {
	.duncan-drawer__panel {
		animation: duncan-sheet-slide 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
	}
}

@keyframes duncan-sheet-slide {
	from {
		opacity: 0;
		transform: translateX(-100%);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Cancels the two animations above, which sit later in the cascade than the
   reduced-motion rule in main.css and would otherwise win it. */
@media (prefers-reduced-motion: reduce) {
	.duncan-drawer__panel {
		animation: none;
	}
}


/* ── 8. Find an agent ───────────────────────────────────────────────────── */

/*
 * The directory is the listing grid wearing a person's name, and that is the
 * whole design brief. It sits beside /listings/ in the same navigation, answers
 * the same kind of question — who, where, how many, how do I reach them — and a
 * shopper who has already learned the catalogue would have to learn this page
 * twice if it arrived with its own card furniture.
 *
 * So it borrows the catalogue's measurements exactly, the ones 3.1.92 set and
 * the client signed off: Inter, 16px radius, shadow with no border, 1.5rem
 * gutter, three columns from 1024px, name at 16/600 in ink-900, one grey line of
 * facts at 13 under it, the same pin at the same weight, and the enquiry marks
 * closed up at the foot. Nothing here is invented; all of it is lifted, which is
 * the point.
 *
 * What it does not borrow is the photograph band and the price. A card earns its
 * space with a picture of land and a number a seller is asking; an agent has
 * neither, and giving them a 4:3 hero and a wine-colored figure would be the
 * site implying a listing where there is a person. The avatar is 56px, the name
 * is the headline, and the row is horizontal because that is how a name reads
 * next to a face.
 */
.duncan-agents {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 1.25rem;
}

@media (min-width: 640px) {
	.duncan-agents {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.duncan-agents {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.duncan-agent {
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	background-color: #fff;
	box-shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 8px 24px -12px rgb(16 24 40 / 0.18);
	transition: box-shadow 200ms ease, transform 200ms ease;
}

/* The lift is the catalogue's, and it is for a mouse only. A phone has no hover;
   without this guard the first tap leaves the card raised until something else
   takes focus. */
@media (hover: hover) and (pointer: fine) {
	.duncan-agent:hover {
		transform: translateY(-2px);
		box-shadow: 0 2px 4px rgb(16 24 40 / 0.08), 0 14px 32px -12px rgb(16 24 40 / 0.26);
	}
}

.duncan-agent:focus-within {
	box-shadow: 0 0 0 2px #0a3d91; /* azure-600 */
}

/*
 * The link is the face and the name, and nothing else. The buttons below are
 * their own targets; a card that was wholly clickable would make the quieter of
 * two adjacent actions the accidental one, which is the mistake the enquiry marks
 * on the listing card were built to avoid.
 */
.duncan-agent__inner {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1rem 0.75rem;
	text-decoration: none;
}

.duncan-agent__figure {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
}

.duncan-agent__figure .duncan-avatar {
	margin-right: 0;
	width: 56px;
	height: 56px;
	font-size: 20px;
}

.duncan-agent__figure .duncan-avatar--photo {
	object-fit: cover;
}

.duncan-agent__body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.25rem;
	padding-top: 0.125rem;
}

/* 16/600, ink-900, the same hair of negative tracking the listing title carries
   at 3.1.92 — Inter sets a little wider than Lato, and a name is the one line on
   this card that has to hold the eye. */
.duncan-agent__name {
	overflow: hidden;
	color: #14181a; /* ink-900 */
	font-size: 16px;
	font-weight: 600;
	line-height: 1.375;
	letter-spacing: -0.006em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.duncan-agent__inner:hover .duncan-agent__name {
	color: #08326f; /* azure-700 */
}

/* The place line, borrowed whole: 13px, ink-500, the pin at 14px in the lighter
   grey with a 1.6 stroke so it matches the rest of the bare set rather than
   shouting beside a name. */
.duncan-agent__place {
	display: flex;
	align-items: flex-start;
	gap: 0.375rem;
	margin-top: 0.125rem;
	color: #636e6d; /* ink-500 */
	font-size: 13px;
	line-height: 1.375;
}

.duncan-agent__pin {
	flex-shrink: 0;
	margin-top: 0.125rem;
	width: 0.875rem;
	height: 0.875rem;
	color: #98a2a1;
	stroke-width: 1.6;
}

/* What they are and how much they have on. Grey and small on purpose: it is the
   qualification a buyer checks second, after the name and the area, and printing
   it in the wine colour would make a count of plots look like an asking price. */
.duncan-agent__facts {
	color: #636e6d; /* ink-500 */
	font-size: 13px;
	line-height: 1.375;
}

/*
 * The two buttons, at the foot and pushed to the right edge, which is where the
 * listing card puts its enquiry marks and where the eye has already learned to
 * look for them. The items themselves are the ones main.css already sizes for a
 * profile page — this only gives them a row to sit in.
 */
.duncan-agent .duncan-contact-actions {
	margin-top: auto;
	align-self: flex-end;
	padding: 0 0.75rem 0.75rem;
	column-gap: 1rem;
}

/*
 * WhatsApp green, taken out of the card.
 *
 * On a listing page and on a profile the green is the right call: it is one wide
 * row, the action is the point of the screen, and the mark is the largest thing
 * under the fold. In a directory card it is a second brand speaking inside a
 * surface the site already settled at 3.1.92 — "three marks, one colour", because
 * three hues in a card this size is a fireworks display on top of somebody's
 * asking price. The same argument is the same size here, so the same rule
 * applies: ink at rest, azure on hover, and the word carries the meaning the
 * glyph used to carry by colour alone.
 *
 * Scoped to the card. The listing page and the profile keep their green; nobody
 * asked for those to change, and this page is the one being introduced.
 */
.duncan-agent .duncan-contact-actions__item {
	color: #55605f; /* ink-600, the enquiry marks' own resting colour. */
}

.duncan-agent .duncan-contact-actions__item:hover {
	color: #08326f; /* azure-700. */
}

.duncan-agent .duncan-contact-actions__item svg {
	width: 1.125rem;
	height: 1.125rem;
	stroke-width: 1.6;
}

/* A card with no way to reach anybody is a photograph of a person. The name still
   leads somewhere, so the row does not collapse — it simply ends at the body. */
.duncan-agent:not(:has(.duncan-contact-actions)) .duncan-agent__inner {
	padding-bottom: 1rem;
}

.duncan-agents__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 2rem;
}

.duncan-agents__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	border-radius: 12px;
	color: #14181a; /* ink-900 */
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

.duncan-agents__page:hover {
	background-color: #eaf0e9;
	color: #08326f; /* azure-700 */
}

.duncan-agents__page.is-current {
	background-color: #0a3d91; /* azure-600 */
	color: #fff;
}

/* On a phone the card is one column and the row has the whole width, so the face
   can be the size the homepage band uses and the buttons can sit under it rather
   than competing with a name for the right edge. */
@media (max-width: 639px) {
	.duncan-agent__figure,
	.duncan-agent__figure .duncan-avatar {
		width: 48px;
		height: 48px;
	}

	.duncan-agent__figure .duncan-avatar {
		font-size: 18px;
	}

	.duncan-agent .duncan-contact-actions {
		align-self: stretch;
		padding-left: 1rem;
	}
}

/*
 * "Near me", at the end of the filter row.
 *
 * It is the row's own control wearing the row's own clothes: same 15/700, same
 * azure when it is the thing in force, same chevron-less square because it opens
 * no panel. The pin glyph is 1.6 like every other stroke on this page, and the
 * gap between glyph and word is the one the county button already uses, so the
 * three read as one set rather than as a widget bolted on.
 */
.duncan-agents__near {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	border: 0;
	background: none;
	padding: 0.35rem 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #14181a; /* ink-900 */
	cursor: pointer;
	white-space: nowrap;
	transition: color 150ms ease;
}

.duncan-agents__near:hover {
	color: #0a3d91; /* azure-600 */
}

.duncan-agents__near[aria-busy='true'],
.duncan-agents__near:disabled {
	color: #98a2a1;
	cursor: default;
}

.duncan-agents__near-pin {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	stroke-width: 1.6;
}

/*
 * The one line that answers. role=status and aria-live are on the element in the
 * markup, so this is only about where it sits: under the row, in the same grey
 * the "6 of 41" line uses, and never taking vertical space when there is nothing
 * to say — a slot that reserves a line for an error most visits never produce is
 * a gap down the page.
 */
.duncan-agents__near-msg {
	flex-basis: 100%;
	margin: 0.35rem 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #55605f; /* ink-600 */
}

.duncan-agents__near-msg[hidden] {
	display: none;
}

/* The filter row is nowrap on a desktop, where three controls fit. A phone has
   room for two, so the row wraps and "Near me" takes its own line rather than
   squeezing the county button into an ellipsis. */
@media (max-width: 639px) {
	.duncan-filterbar {
		flex-wrap: wrap;
	}
}

/*
 * The portal's notice plate, in the two colours it was always missing.
 *
 * .duncan-office__done is brand green and has carried every notice on every
 * screen since the portal was built, including the failures. On the listing and
 * management screens that rarely showed, because those actions either worked or
 * did not happen. The campaign screen's normal bad outcome is a mail server
 * saying no, and reading that in the same green as "sent" is how an office
 * learns to distrust its own numbers.
 *
 * Only this screen asks for them. The other four keep the green plate they have
 * always had, because nothing here changes what they print.
 */
.duncan-office__done--warn {
	border-color: #b45309; /* warning, the same amber the figures use for "waiting". */
	background-color: #fdf3e3;
	color: #7c3a06;
}

.duncan-office__done--idle {
	border-color: #98a2a1;
	background-color: #f4f3f1;
	color: #55605f; /* ink-600 — news, not a result. */
}

/*
 * The two doors between the hero and the listings.
 *
 * Deliberately not buttons. .duncan-hero__ctabtn is white on the navy and there is
 * exactly one of them, because "list for free" is the one thing this page asks a
 * seller to do; a second and third white rectangle would have made that a choice
 * of three and downgraded all of them.
 *
 * They used to be white on the navy, under the search box. Out here the page is
 * sand and white, so the pair takes the colour every other link on this page
 * takes and the weight of the shelf heading above the cards, and keeps the
 * underline for the same reason as before: nothing about these is a box, a
 * button or a chip, so an underline is the only thing saying a word is clickable.
 *
 * A rule between them rather than a gap. Two underlined links side by side on a
 * light page read as one sentence until the eye finds the second icon, and the
 * rule is the shortest honest way to say that the second one is a different
 * offer with a different destination.
 */
.duncan-doors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.25rem;
	margin: 0;
}

.duncan-doors__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 15px;
	line-height: 1.375;
	font-weight: 600;
	color: rgb(34 40 43); /* ink-800, the page's own heading ink. */
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: rgb(85 96 95); /* ink-600 — 6.2:1, because this underline
	   is the only thing saying the words are clickable, and at sand-300 it was
	   1.4:1 against this background, which is not a cue, it is a rumour. */
	transition: color 0.15s, text-decoration-color 0.15s;
}

.duncan-doors__link:hover,
.duncan-doors__link:focus-visible {
	color: rgb(8 50 111); /* azure-700, what every other link on the site turns. */
	text-decoration-color: rgb(8 50 111);
}

.duncan-doors__link svg {
	flex: none;
	width: 18px;
	height: 18px;
	opacity: 0.7;
}

.duncan-doors__link:hover svg {
	opacity: 1;
}

.duncan-doors__rule {
	width: 1px;
	height: 18px;
	background-color: rgb(152 162 161 / 0.55); /* ink-400, quiet but seen. */
}

@media (prefers-reduced-motion: reduce) {
	.duncan-doors__link {
		transition: none;
	}
}

@media (max-width: 639px) {
	/* Stacked, and the rule would be a horizontal line through nothing. */
	.duncan-doors {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.duncan-doors__rule {
		display: none;
	}
}

/*
 * The listing row — one line tall, for somebody who has twenty of them.
 *
 * Replaces the buyer's gallery card on /account/. That card is 4:3 photograph
 * first, which is right on a page where the picture is the argument and wrong on a
 * page where the argument is "which one is the plot on Banda Street, and how do I
 * pause it". Six gallery cards fitted a desktop screen; every action sat below the
 * fold of its own card, and the status pill overlapped the sentence saying whether
 * buyers could reach it — the two facts a seller needs together, printed so they
 * collided.
 *
 * Everything here is sized off the type already on the page rather than a new
 * scale: 15px semibold for the title is the account page's own heading size, 13px
 * for the facts is the meta size used everywhere else, and the pill is the one the
 * old list used. No new colours either — ink-900 down to ink-400, sand-200 for the
 * rule, wine-600 for the one thing that is a warning rather than a status.
 */
.duncan-listrow {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.875rem 0;
	border-top: 1px solid #e8e4dd;
}

.duncan-listrow__main {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) auto;
	grid-template-areas: "thumb body status";
	align-items: start;
	gap: 0.875rem;
}

.duncan-listrow__thumb {
	grid-area: thumb;
	display: block;
	width: 4.5rem;
	height: 3.375rem;
	border-radius: 8px;
	overflow: hidden;
	background-color: #f4f3f1;
	border: 1px solid #e8e4dd;
}

.duncan-listrow__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/*
 * Words in an empty frame, not a house glyph. A glyph reads as a picture that
 * failed to load, which is a different fact — and on this site it is a fact that
 * was once true, when the November restore destroyed the files of listings
 * imported after the 4th. The row has to be able to say "there is none here".
 */
.duncan-listrow__nophoto {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 10px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
	padding: 0.25rem;
	color: #98a2a1;
}

.duncan-listrow__body {
	grid-area: body;
	min-width: 0;
}

.duncan-listrow__titleline {
	margin: 0;
}

.duncan-listrow__title {
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	color: #14181a;
	display: block;
	overflow-wrap: anywhere;
}

a.duncan-listrow__title:hover {
	color: #0a3d91;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.duncan-listrow__facts {
	margin: 0.15rem 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #636e6d;
}

.duncan-listrow__perf {
	margin: 0.15rem 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #55605f;
}

.duncan-listrow__note {
	margin: 0.15rem 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #636e6d;
}

.duncan-listrow__warn {
	margin: 0.15rem 0 0;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 500;
	color: #7b1e3c;
}

.duncan-listrow__status {
	grid-area: status;
	margin: 0;
	justify-self: end;
	white-space: nowrap;
}

/*
 * A listing buyers cannot reach is dimmed, not marked.
 *
 * The pill already carries the word, and the note already carries the sentence.
 * What the dimming adds is that a page of twenty rows can be read at a glance for
 * "which of these are actually up" without any of them having to be opened — the
 * one thing the gallery layout could not do at all.
 */
.duncan-listrow.is-quiet > .duncan-listrow__main > .duncan-listrow__thumb {
	opacity: 0.55;
}

.duncan-listrow.is-quiet .duncan-listrow__title {
	color: #22282b;
}

@media (max-width: 639px) {
	/*
	 * Every cell named, because auto-placement plus `order` does not do what it
	 * looks like it does: the status pill was pulled to the front of the order while
	 * still being told which column it lived in, so the browser put it in row 1 and
	 * let the thumbnail fall into whatever was free — which is why the pill arrived
	 * indented 30px away from its own title, looking like it belonged to the row
	 * above.
	 *
	 * So: the photograph spans both rows of the left lane, the pill gets the first
	 * line of the right lane, and everything else sits under it. The pill goes above
	 * the title rather than after the actions because on a phone the actions wrap to
	 * three lines, and a status you can only check by scrolling past all of them is
	 * a status you stop checking.
	 */
	.duncan-listrow__main {
		grid-template-columns: 3.5rem minmax(0, 1fr);
		grid-template-areas:
			"thumb status"
			"thumb body";
		column-gap: 0.625rem;
		row-gap: 0.15rem;
		align-items: start;
	}

	.duncan-listrow__thumb {
		grid-area: thumb;
		width: 3.5rem;
		height: 2.625rem;
		align-self: start;
	}

	.duncan-listrow__body {
		grid-area: body;
	}

	.duncan-listrow__status {
		grid-area: status;
		justify-self: start;
	}
}

/*
 * The status tabs above the rows.
 *
 * Built from the .duncan-pillbar furniture the directory and the map already use,
 * so "filter this list" looks like the one control the site already taught, and is
 * not a third way of doing the same thing.
 */
.duncan-listfilter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin-top: 0.75rem;
}

.duncan-listfilter__label {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #636e6d;
	margin-right: 0.25rem;
}

.duncan-listfilter__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.3rem 0.6rem;
	border: 1px solid #d8d2c8;
	border-radius: 999px;
	background-color: #fff;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
	color: #22282b;
}

.duncan-listfilter__btn:hover {
	border-color: #98a2a1;
	background-color: #f4f3f1;
}

.duncan-listfilter__btn[aria-current="true"] {
	background-color: #0a3d91;
	border-color: #0a3d91;
	color: #fff;
}

.duncan-listfilter__n {
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	opacity: 0.75;
}

.duncan-listfilter__btn[aria-current="true"] .duncan-listfilter__n {
	opacity: 0.85;
}

/*
 * The container for the rows, and the line that says how many are being shown.
 *
 * .duncan-listrows replaces both .duncan-account__list (the small-seller list,
 * which this layout subsumes) and the grid of buyer cards. It is a ul with no
 * bullets and no padding rather than a table, because a row's actions wrap to two
 * lines on a phone and a table cell would force them onto one.
 *
 * The first row's top border is suppressed because the tab bar above it already
 * draws a line's worth of separation, and two hairlines four pixels apart read as
 * a printing error rather than as a header.
 */
.duncan-listrows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.duncan-listrows > .duncan-listrow:first-child {
	border-top: 0;
}

.duncan-listfilter__shown {
	margin: 0.625rem 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #636e6d;
}

/*
 * The question above the agent filter bar.
 *
 * Two weights in one paragraph, because the two halves do different jobs. The
 * question is the reader's own thought put to them, so it is set at the size the
 * page gives its own sentences. The second line is an instruction about a control
 * sitting directly beneath it, and an instruction printed louder than the thing it
 * instructs is the one typographic mistake a line like this can make.
 *
 * Stacked rather than inline on a phone: at 390 the two together ran four lines
 * with the question breaking mid-phrase, which is worse than the question taking
 * two lines cleanly and the instruction taking one under it.
 */
.duncan-agents__why {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0 0 0.75rem;
	max-width: 46rem;
}

.duncan-agents__why-q {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	color: #14181a;
}

.duncan-agents__why-a {
	font-size: 13px;
	line-height: 1.45;
	color: #636e6d;
}

@media (min-width: 768px) {
	.duncan-agents__why {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0.25rem 0.75rem;
	}
}

/* ── 9. The grid/list switch on a phone ─────────────────────────────────── */

/*
 * The switch is a pair of buttons, so the half that is on has to read as the
 * half that is on. The track is white and the active half was white on it,
 * which on a phone — no cursor to change, no hover to confirm the tap landed,
 * and the two glyphs 12px apart — is the one state a thumb cannot see. The
 * track goes quiet, the active half goes white with an edge of its own, and the
 * buttons take 44px, the smallest target a thumb lands on reliably. The row the
 * switch sits in is already 50px tall, so the height costs nothing.
 */
.duncan-view {
	border-color: transparent;
	background-color: rgb(16 24 40 / 0.05);
	padding: 2px;
}

.duncan-view__btn {
	min-height: 44px;
	padding: 0 13px;
}

.duncan-view__btn.is-on {
	background-color: #fff;
	color: #101828;
	box-shadow: 0 1px 2px rgb(16 24 40 / 0.16), 0 0 0 1px rgb(16 24 40 / 0.07);
}

/*
 * List used to do nothing at all on a phone.
 *
 * The landscape row was written inside `@media (min-width: 640px)` in
 * src/theme.css on the reasoning that a phone cannot carry a row: either the
 * thumbnail is too small to judge a plot by, or the type is a column squeezed
 * beside it. That argument is against the DESKTOP row, which wants 360px of
 * picture. It was never against the control. Below 640px the button still
 * answered the tap, still wrote the choice to localStorage, still put
 * `duncan-view--list` on <html> — and the grid did not move by a pixel. A
 * switch that changes the state and not the page is worse than no switch: the
 * buyer now believes the site is broken rather than that the option is absent.
 *
 * So a phone gets a row of its own, and it is the row tapping List asked for:
 * 116px of photograph, the type beside it, and nothing the buyer is not
 * comparing. 141px per listing against the portrait card's 450, which is five
 * properties on a screen instead of one and a half — the only reason anybody
 * ever taps List.
 *
 * What it keeps: the photograph, the title (two lines, then an ellipsis), the
 * price, the ward and neighbourhood, the three enquiry marks, Save and Share,
 * and the transaction chip — the one chip a mixed "All" result cannot go
 * without. What it gives up: the seller's sentence and the photograph count,
 * which together are most of the height the row is saving, and the
 * Developed/Undeveloped chip, which is too small a square to be the only place
 * it gets said. All three remain on the listing and in Grid.
 *
 * The chips move to the photograph's bottom-left and Save/Share stack down its
 * right, because the top edge of a 116px square cannot carry both, and the type
 * beside it has no line to spare for them.
 */
@media (max-width: 639.98px) {
	.duncan-view--list .duncan-entry-wrap {
		padding-bottom: 0;
	}

	.duncan-view--list .duncan-entry {
		display: flex;
		flex-direction: row;
		align-items: stretch;
	}

	.duncan-view--list .duncan-entry__figure {
		width: 116px;
		flex: 0 0 auto;
		aspect-ratio: auto;
	}

	.duncan-view--list .duncan-entry__body {
		display: flex;
		flex-direction: column;
		justify-content: center;
		flex: 1 1 auto;
		min-width: 0;
		padding: 10px 12px;
	}

	.duncan-view--list .duncan-entry__title {
		margin-top: 0;
		font-size: 15px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* 24px is the price on a card with a whole line to itself. In a row it
	   would be the largest thing on the screen and the row would be all price. */
	.duncan-view--list .duncan-entry .duncan-money--price {
		font-size: 18px;
	}

	.duncan-view--list .duncan-entry__price {
		margin-top: 3px;
	}

	.duncan-view--list .duncan-entry__place {
		margin-top: 3px;
		font-size: 12.5px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.duncan-view--list .duncan-entry__blurb,
	.duncan-view--list .duncan-entry__photos {
		display: none;
	}

	.duncan-view--list .duncan-entry__foot {
		margin-top: 7px;
	}

	.duncan-view--list .duncan-entry__ask-btn {
		height: 32px;
		width: 32px;
	}

	.duncan-view--list .duncan-entry__chips {
		top: auto;
		bottom: 6px;
		left: 6px;
		max-width: calc(100% - 12px);
	}

	.duncan-view--list .duncan-entry__chip {
		padding: 3px 6px;
		font-size: 10px;
	}

	/* The state chips, not the catalogue one. `--tx` is For sale / To let; the
	   New, Reduced, Under offer and Managed plates are facts about this listing
	   rather than about the category, so they stay. */
	.duncan-view--list .duncan-entry__chip:not(.duncan-entry__chip--tx):not(.duncan-entry__chip--new):not(.duncan-entry__chip--reduced):not(.duncan-entry__chip--offer):not(.duncan-entry__chip--managed) {
		display: none;
	}

	/* The plate that stands in for a listing with no photograph says so in
	   13px of words, and those words will not fit in a 116px square. The glyph
	   is enough here: the square is plainly empty, and Grid and the listing
	   itself both still say why. */
	.duncan-view--list .duncan-entry__figure > div.bg-sand-100 {
		gap: 0;
	}

	.duncan-view--list .duncan-entry__figure > div.bg-sand-100 span {
		display: none;
	}

	.duncan-view--list .duncan-entry__tools {
		top: 6px;
		right: auto;
		left: 110px;
		transform: translateX(-100%);
		flex-direction: column;
		gap: 4px;
	}

	.duncan-view--list .duncan-entry__tools .duncan-save,
	.duncan-view--list .duncan-entry__tools .duncan-share {
		width: 30px;
		height: 30px;
	}

	/* The placeholder has to be the shape of the answer, or the swap from
	   skeleton to cards is a jump the buyer reads as a second page load. */
	.duncan-view--list .duncan-skeleton-card {
		display: flex;
		padding-bottom: 0;
	}

	.duncan-view--list .duncan-skeleton-card__figure {
		width: 116px;
		flex: 0 0 auto;
		aspect-ratio: auto;
	}

	.duncan-view--list .duncan-skeleton-card__body {
		gap: 0.5rem;
		padding: 10px 12px;
	}
}

/* ── 10. Listing video ──────────────────────────────────────────────────── */

/*
 * Hand-written here rather than in src/theme.css because main.css is a compiled
 * Tailwind build and this host has no toolchain to rebuild it — the same reason
 * sections 1 through 9 exist. A rule that never reaches the deployed stylesheet
 * is worse than no rule: the markup ships and the frame collapses.
 *
 * The buyer-facing shape is borrowed whole from the gallery it replaces or
 * follows: the same 8px corner, the same sand ground behind a picture that has
 * not been fetched yet, the same 16/10 desktop frame and 4/3 phone frame. A
 * video block that arrived with its own proportions would sit beside the
 * photographs like a widget from another site.
 */
.duncan-video {
	position: relative;
	margin: 0 0 20px;
	overflow: hidden;
	border-radius: 8px;
	background-color: #fff;
	/* The clip's own shape, taken from the cover frame the browser drew — which
	   is the one witness that cannot be wrong about how the clip looks, because
	   it was painted from the decoded picture after the file's own turn was
	   applied. Unknown ratios fall back to 16:10, the shape every listing had
	   before video existed, rather than to a guess about a picture nobody
	   measured. */
	aspect-ratio: var(--video-w, 16) / var(--video-h, 10);
	/* A 9:16 walkthrough at the full column width is a 1200px-tall block on a
	   desktop: it pushes the description off the screen and reads like a
	   mistake. Capping the height caps the width through the same ratio, so the
	   frame stays true to the clip and simply gets narrower, and centred. */
	max-width: min(100%, calc(var(--video-max-h, 620px) * var(--video-w, 16) / var(--video-h, 10)));
	margin-inline: auto;
}

/* A listing with photographs keeps its gallery and takes the clip underneath,
   so the block is capped rather than full-bleed: it is the second thing a buyer
   is offered, and it should not compete with the first. */
.duncan-video:not(.duncan-video--primary) {
	max-width: min(680px, calc(var(--video-max-h, 620px) * var(--video-w, 16) / var(--video-h, 10)));
}

@media (max-width: 639px) {
	/* On a phone an upright clip is expected to be tall — that is how it was
	   filmed and how the buyer is holding the device — so the cap loosens. It is
	   not removed: a slow pan along a fence line has no honest bottom edge, and
	   the price and the map are still further down this page. */
	.duncan-video {
		--video-max-h: min(78vh, 900px);
	}

	.duncan-video:not(.duncan-video--primary) {
		max-width: 100%;
	}
}

.duncan-video__play {
	display: block;
	position: absolute;
	inset: 0;
	text-decoration: none;
	color: #fff;
}

.duncan-video__poster {
	display: block;
	width: 100%;
	height: 100%;
	/* contain, not cover. The frame already matches the clip, so this only bites
	   when the ratio is unknown — and there the answer is to show the whole
	   picture on white rather than cut a slice out of it. */
	object-fit: contain;
}

.duncan-video__poster--none {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(120% 90% at 50% 0%, rgb(255 255 255 / 0.14), transparent 60%),
		rgb(226 222 215);
}

/* The mark. A disc rather than a bare triangle, because a triangle on a busy
   video frame — grass, a building, a road — disappears into it. White at 92%
   keeps the picture readable through it and holds contrast on any ground. */
.duncan-video__mark {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 9999px;
	background-color: rgb(255 255 255 / 0.92);
	color: rgb(20 24 26);
	box-shadow: 0 6px 20px rgb(16 24 40 / 0.24);
	transition: transform 0.16s ease, background-color 0.16s ease;
}

.duncan-video__mark svg {
	width: 30px;
	height: 30px;
	margin-left: 3px;
}

.duncan-video__play:hover .duncan-video__mark {
	background-color: #fff;
	transform: translate(-50%, -50%) scale(1.05);
}

.duncan-video__play:focus-visible {
	outline: 2px solid rgb(10 61 145);
	outline-offset: 2px;
}

.duncan-video__play:active .duncan-video__mark {
	transform: translate(-50%, -50%) scale(0.97);
}

/* How long, and what it will cost to watch. Said before the press, because the
   press is the thing a buyer on a metered bundle is deciding about. */
.duncan-video__length {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 8px;
	border-radius: 9999px;
	background-color: rgb(20 24 26 / 0.62);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.duncan-video__slot {
	position: absolute;
	inset: 0;
	background-color: #000;
}

.duncan-video__player {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background-color: #000;
}

.duncan-video__note {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 10px 14px;
	background-color: rgb(20 24 26 / 0.82);
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
}

/* On a card: the smallest thing that says this listing moves. Centred because
   every corner is taken — chips at the top-left, the count at the bottom-right,
   Save and Share at the top-right — and on the phone List row, where the
   thumbnail is 116px, a larger mark would cover the picture it is describing. */
.duncan-entry__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9999px;
	background-color: rgb(255 255 255 / 0.9);
	color: rgb(20 24 26);
	box-shadow: 0 2px 8px rgb(16 24 40 / 0.2);
	pointer-events: none;
}

.duncan-entry__play svg {
	width: 15px;
	height: 15px;
	margin-left: 2px;
}

/* A clip beside the photographs, said in its own pill at the bottom-left: the
   count of stills keeps its own corner, and the two facts do not overlap. */
.duncan-entry__video {
	pointer-events: none;
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	border-radius: 9999px;
	background-color: rgb(20 24 26 / 0.55);
	padding: 0.25rem 0.625rem;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
}

.duncan-entry__photos--video svg {
	fill: currentColor;
}

/* On a card the box does NOT change. A grid of listings is compared by price,
   size and county, and ragged tiles make that comparison worse than any crop
   does — so the frame stays exactly the 4:3 it has always been, and the picture
   inside it is shown whole on white instead of sliced.

   This is the trade. A portrait clip's card carries white down either side and
   the plot occupies the middle of the tile. Nothing is cut, and what gets thrown
   away is the white, not the frontage — which beats the alternative found here:
   cropping every upright cover down to its centre band produced a strip of
   ground, because the centre band of an upright phone frame is the dirt.

   Only cards whose picture IS a video cover do this. A listing with photographs
   keeps them cropped as they have always been cropped, because that crop is a
   person choosing a cover and not a ratio imposed on one.
 */
.duncan-entry__figure--video {
	background-color: #fff;
	/* The box belongs to the grid, never to the clip. In list view the figure
	   carries no ratio of its own and inherits the picture's, which would set a
	   standing clip 206px tall inside a 90px row and shove the price and the
	   county off their line. */
	aspect-ratio: 4 / 3;
}
.duncan-view--list .duncan-entry__figure--video {
	aspect-ratio: 4 / 3;
}
.duncan-entry__figure--video img {
	object-fit: contain;
	/* main.css biases the crop of a photograph to centre-45%, which is where a
	   frontage usually sits in a frame someone chose. A frame taken out of a clip
	   was chosen by nobody, and with contain it is the whole picture: centre it. */
	object-position: center;
}

/* What pressing play will do, said before it does it. The clip carries sound.
   Nothing on this site makes a noise without being asked to; this is the line
   that says what will happen if you do. */
.duncan-video__audio {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background-color: rgba(20, 24, 26, .62);
	color: #fff;
}
.duncan-video__audio svg {
	width: 15px;
	height: 15px;
}

/* ── The sell form's video control ──────────────────────────────────────── */

/* Inside the photographs block, not beside it: the seller is answering one
   question — what does a buyer get to see of this plot — and a clip is one of
   the answers. Given its own heading, level with the count line rather than the
   section title, so it reads as an option inside the photographs rather than a
   second form. */
.duncan-vq {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed rgb(214 208 199);
}

.duncan-vq__title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: rgb(20 24 26);
}

.duncan-vq__note {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.55;
	color: rgb(75 82 88);
}

.duncan-vq__note--quiet {
	font-size: 12px;
	color: rgb(112 118 124);
}

.duncan-vq__error {
	margin: 8px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background-color: rgb(180 43 43 / 0.07);
	border: 1px solid rgb(180 43 43 / 0.25);
	color: rgb(126 30 30);
	font-size: 13px;
	line-height: 1.55;
}

.duncan-vq__pending {
	margin: 6px 0 0;
	font-size: 13px;
	color: rgb(112 118 124);
}

/* The clip already on the listing, with the two controls a seller needs on it:
   see what is there, and take it off. */
.duncan-vq__have {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 12px;
	padding: 10px;
	border: 1px solid rgb(214 208 199);
	border-radius: 8px;
	background-color: #fff;
}

.duncan-vq__have-poster {
	position: relative;
	display: block;
	flex: 0 0 auto;
	border-radius: 6px;
	overflow: hidden;
	background-color: #fff;
}

/* The clip's shape, not a 16:9 slot. This is the tile a seller sees when they
   come back to edit a listing that already has a video, and a standing clip
   shown here as a horizontal strip teaches them the wrong thing about what
   buyers are being given. */
.duncan-vq__have-poster img {
	display: block;
	width: auto;
	height: auto;
	max-width: 128px;
	max-height: 120px;
	object-fit: contain;
}

.duncan-vq__have-poster--none {
	display: block;
	width: 128px;
	height: 72px;
	background: rgb(226 222 215);
}

.duncan-vq__have-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 9999px;
	background-color: rgb(255 255 255 / 0.92);
	color: rgb(20 24 26);
}

.duncan-vq__have-play svg {
	width: 14px;
	height: 14px;
	margin-left: 2px;
}

.duncan-vq__have-meta {
	min-width: 0;
}

.duncan-vq__have-line {
	display: block;
	font-size: 13px;
	color: rgb(75 82 88);
	margin-bottom: 4px;
}

.duncan-vq__remove {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgb(20 24 26);
	padding: 4px 0;
}

.duncan-vq__warn {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: rgb(126 30 30);
}

.duncan-vq__label {
	margin-top: 4px;
}

/* The picker: the clip, a bar to move along it, and one button that says what
   pressing it does. The frame being chosen is the picture that will sit on the
   card in search, and that is worth a scrub bar to get right. */
.duncan-vq__picker {
	margin-top: 10px;
	padding: 12px;
	border: 1px solid rgb(214 208 199);
	border-radius: 8px;
	background-color: #fff;
}

.duncan-vq__file {
	margin: 0 0 8px;
	font-size: 13px;
	color: rgb(75 82 88);
	word-break: break-word;
}

.duncan-vq__preview {
	display: block;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	border-radius: 6px;
	background-color: #000;
}

.duncan-vq__scrub {
	display: block;
	width: 100%;
	max-width: 420px;
	margin: 10px 0 8px;
	accent-color: rgb(10 61 145);
}

.duncan-vq__grab,
.duncan-vq__send {
	margin-right: 10px;
}

.duncan-vq__grabbed {
	font-size: 13px;
	color: rgb(21 96 61);
}

/* Choosing a cover from a clip that is already on the site. The same picker,
   opened in place under the picture it is about to replace, and sized to the
   clip's own shape rather than to the 16:9 band: a walkthrough filmed standing
   up has to be seen standing up before somebody decides to ship it. */
.duncan-vq__recut {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 10px;
}

/* display:flex overrides the hidden attribute, and a control that needs a
   canvas is not shown to a browser that has none. */
.duncan-vq__recut[hidden] {
	display: none;
}

.duncan-vq__recut > p {
	flex: 1 1 100%;
	margin: 0;
}

.duncan-vq__recut .duncan-vq__preview {
	aspect-ratio: auto;
	max-height: 240px;
	margin-top: 4px;
}

.duncan-vq__bar {
	margin-top: 10px;
	height: 6px;
	border-radius: 9999px;
	background-color: rgb(226 222 215);
	overflow: hidden;
	max-width: 420px;
}

.duncan-vq__fill {
	display: block;
	height: 100%;
	width: 0;
	background-color: rgb(10 61 145);
	transition: width 0.2s ease;
}

.duncan-vq__status {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: rgb(112 118 124);
}

.duncan-vq__sent {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 10px;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid rgb(214 208 199);
	background-color: #fff;
}

.duncan-vq__sent-poster {
	/* Shaped by the frame, not by the box it happens to sit in. The attributes on
	   the <img> carry the clip's own ratio; these caps only stop a two-minute
	   upright walkthrough from taking the form with it. */
	width: auto;
	height: auto;
	max-width: 128px;
	max-height: 120px;
	object-fit: contain;
	background-color: #fff;
	border-radius: 6px;
	flex: 0 0 auto;
}

.duncan-vq__sent-line {
	margin: 0;
	font-size: 13px;
	color: rgb(20 24 26);
	min-width: 0;
	word-break: break-word;
}

.duncan-vq__remove,
.duncan-vq__sent .duncan-vq__remove {
	font-size: 13px;
	color: rgb(126 30 30);
	background: none;
	border: 0;
	padding: 4px 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* The chip that used to count photographs now says what the listing needs, and
   a waived floor is not an error: quiet, not red. */
.duncan-photos-count.is-waived {
	color: rgb(21 96 61);
}

@media (max-width: 480px) {
	.duncan-vq__sent,
	.duncan-vq__have {
		flex-wrap: wrap;
	}

	.duncan-vq__have-poster,
	.duncan-vq__sent-poster {
		max-width: 108px;
	}
}

/* ── 11. What's new ─────────────────────────────────────────────────────── */

/* The dot that says there is something on that page this person has not read.
   Rendered by PHP from user meta, so it is correct on the first paint rather than
   arriving half a second later, and it stays absent for a visitor with no account
   to remember them.

   Coloured, but never only coloured: the row carries the word "Unread" for anyone
   reading with a screen reader, and the dot is aria-hidden so it is not announced
   as a shape. */
.duncan-nav__dot {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	margin-left: 6px;
	border-radius: 999px;
	background-color: #0a3d91;
}

/* In the drawer the rows are full width, so the mark goes to the end of the line
   instead of hugging the words. It reads as a count of something waiting, which is
   what it is. */
.duncan-drawer__panel .duncan-nav__dot,
.duncan-account__panel .duncan-nav__dot {
	margin-left: auto;
}

/* A slow breath, and only for someone who has not asked the site to hold still.
   Stillness is the honest default for a mark like this; motion is what makes it
   noticed at all. */
@media (prefers-reduced-motion: no-preference) {
	.duncan-nav__dot {
		animation: duncan-nav-dot 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
	}

	@keyframes duncan-nav-dot {
		0%, 100% {
			opacity: 1;
		}

		50% {
			opacity: .45;
		}
	}
}

/* ── 12. The sell form ──────────────────────────────────────────────────── */

/*
 * Measured before written, on the live page rather than by eye:
 *
 *   the form is 5,198px tall, 12 sections long, and the publish button sits
 *   4,720px below the first field;
 *   7 fields refuse a submission and none of them said so;
 *   the formatting toolbar's buttons were 20px tall inside a 35px bar;
 *   2 of the 12 sections are switched off for a plot of land and back on for a
 *   building, so a seller never sees the same form twice.
 *
 * Nothing below changes a field, a name, a validation rule or where the data
 * goes. It is size, wording of the label, and arrangement.
 */

/*
 * 12.1 The formatting toolbar's tap targets.
 *
 * The smallest clickable thing on the page was sitting on the field a seller
 * spends longest in. WCAG 2.5.8 asks for a 24px target and 2.5.5 for 44px; the
 * theme's own .btn has been 2.75rem for forty releases, so this is not a new
 * rule — it is the one control that was written before that rule existed. The
 * bar grows from 35px to 56px and the toolbar's own rounding is unchanged.
 */
.duncan-writer__tool {
	min-height: 44px;
	padding-inline: 14px;
	border-radius: 8px;
}

/*
 * 12.2 The required marking — a red star, and the word.
 *
 * The star is what gets seen without reading; the word is what gets heard. A
 * screen reader reads a bare "*" as nothing or as "asterisk" depending on the
 * engine, and either way it is not the sentence "this is needed", so the word
 * stays in the label's own voice and the star is aria-hidden so it does not
 * arrive in the accessible name as well.
 *
 * The word is ink-500 rather than ink-400: at 11px the lighter grey measures
 * 3.2:1 on white and the mark would be the one required thing on the page
 * nobody could read. The star is danger-600, which clears contrast on white by
 * a wide margin and is the red this form already means when it says "here".
 */
.duncan-req {
	display: inline-block;
	margin-left: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #636e6d; /* ink-500 */
	white-space: nowrap;
}

/* Set a step above the word it stands beside: an asterisk at 11px is a smudge,
   and the glyph already sits high in its own line box. */
.duncan-req__star {
	margin-right: 2px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: #ce0025; /* danger-600 */
}

/*
 * 12.3 The progress rail.
 *
 * One line under the header that says which question is on screen and how many
 * there are. It counts sections a seller can actually see: the two the plan
 * switches off are out of the total, so a plot of land reads "6 of 10" and not
 * the fiction "6 of 12". assets/js/sell-rail.js owns the numbers and this owns
 * the surface.
 *
 * It prints hidden. Without the script the rail stays absent rather than showing
 * a frozen "1 of 10", which is the same claim the scrollbar already makes badly.
 */
.duncan-sellrail {
	position: sticky;
	top: calc(var(--duncan-header-h, 65px) + 8px);
	z-index: 30;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 1.25rem;
	padding: 9px 12px;
	border: 1px solid #e8e4dd; /* sand-200 */
	border-radius: 10px;
	background: rgba(250, 249, 247, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

/* The current section, in the ink the headings use. Fixed at 8ch of shrink so a
   long title truncates rather than pushing the count off the right edge. */
.duncan-sellrail__now {
	min-width: 0;
	margin: 0;
	flex: 0 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: #14181a; /* ink-900 */
}

.duncan-sellrail__dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	vertical-align: 1px;
	border-radius: 999px;
	background-color: #0a3d91; /* azure-600 */
}

.duncan-sellrail__track {
	flex: 1 1 0;
	min-width: 40px;
	height: 4px;
	border-radius: 999px;
	background-color: #e8e4dd; /* sand-200 */
	overflow: hidden;
}

.duncan-sellrail__fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background-color: #0a3d91; /* azure-600 */
}

.duncan-sellrail__count {
	flex: 0 0 auto;
	font-size: 12px;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	color: #636e6d; /* ink-500 */
}

/* The jump row. It is a table of contents, so it is allowed to be quieter than
   the line above it, and on a phone it is dropped: a sticky rail that eats two
   lines of a 390px screen takes more than the navigation gives back. */
.duncan-sellrail__jump {
	display: none;
	flex: 0 0 100%;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

@media (min-width: 640px) {
	.duncan-sellrail__jump {
		display: flex;
	}
}

.duncan-sellrail__jump a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border: 1px solid #e8e4dd; /* sand-200 */
	border-radius: 999px;
	font-size: 12px;
	color: #55605f; /* ink-600 */
	background: #fff;
	text-decoration: none;
	transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.duncan-sellrail__jump a:hover {
	border-color: #98a2a1; /* ink-400 */
	color: #14181a;
}

.duncan-sellrail__jump li.is-current a {
	border-color: #0a3d91; /* azure-600 */
	background: #0a3d91;
	color: #fff;
	font-weight: 600;
}

/*
 * 12.4 The action bar.
 *
 * Publish, draft and clear used to exist only at the bottom of 5,198px, and
 * "Clear form" — the one destructive thing on the page — used to sit at the top,
 * above the first field, where a newcomer looks for help. The bar now rides at
 * the bottom edge of the viewport from the first section onward, and the button
 * that throws work away sits beside the work it destroys, behind a confirm.
 *
 * Sticky rather than fixed: it belongs to the form, and when the form ends the
 * bar ends with it instead of floating over the footer. The sell page is a task
 * screen and gets no bottom navigation, so this corner is free.
 */
.duncan-sell__actions {
	position: sticky;
	bottom: 0;
	z-index: 31;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #e8e4dd; /* sand-200 */
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 -2px 14px rgba(16, 24, 40, 0.06);
}

/* What the buttons do, said before either is pressed: only one of them puts the
   listing in front of buyers. It gets its own line rather than a share of one,
   because a sentence that wraps into three lines inside a 110px column makes the
   bar taller than the buttons it is describing — and a sticky bar is taken out
   of the seller's form every pixel it is tall. */
.duncan-sell__actions-note {
	flex: 1 1 100%;
	order: 0;
	min-width: 0;
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	color: #636e6d; /* ink-500 */
}

.duncan-sell__actions-note b {
	font-weight: 600;
	color: #22282b; /* ink-800 */
}

.duncan-sell__actions .btn-primary {
	flex: 1 1 150px;
	order: 1;
}

.duncan-sell__actions .btn-secondary {
	order: 2;
}

/* The way out of a form is never louder than the way through it. */
.duncan-sell__actions .duncan-sell-clear {
	order: 3;
	min-height: 44px;
	margin-left: auto;
	color: #636e6d; /* ink-500 */
}

.duncan-sell__actions .duncan-sell-clear:hover {
	border-color: #ce0025; /* danger-600 */
	color: #a32020;
}

/*
 * On a phone the bar is measured against the screen it sits on, not against the
 * form: at 390px the desktop arrangement came to 228px, which is a quarter of
 * the viewport taken off the questions. So the row is cut to what a thumb is
 * reaching for — publish, draft, and the way out — and the sentence goes.
 * It is not lost: the paragraph printed directly under the bar already says what
 * the draft button does, and on a phone the only blue thing in the bar is the
 * button the sentence was distinguishing.
 */
@media (max-width: 639px) {
	/* It is not lost: the paragraph printed directly under the bar already says
	   what the draft button does, and on a phone the only blue thing in the bar
	   is the button the sentence was distinguishing. */
	.duncan-sell__actions-note {
		display: none;
	}

	/* 124px of bar rather than 186px: the row is tightened so the draft button
	   and the way out of the form share a line instead of each taking one. */
	.duncan-sell__actions {
		gap: 8px;
		padding: 10px 8px;
	}

	.duncan-sell__actions .btn-primary {
		flex: 1 1 100%;
		order: 1;
	}

	.duncan-sell__actions .btn-secondary {
		flex: 0 1 auto;
		min-width: 0;
		padding-inline: 0.75rem;
		order: 2;
	}

	.duncan-sell__actions .duncan-sell-clear {
		flex: 0 0 auto;
		padding-inline: 0.75rem;
		order: 3;
		margin-left: 0;
	}
}

/*
 * The WhatsApp float already owned this corner, and on the sell form it landed
 * four pixels onto the action bar. The bar is the thing a seller is about to
 * press, so the float gives it the room and rests above it: 7.5rem clears the
 * 100px two-row bar on a desktop, 9rem clears the 124px one on a phone, and the
 * 16px left over is the gap the float kept from the screen edge before any of
 * this existed.
 */
body:has(.duncan-sell__actions) .duncan-whatsapp {
	bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 639px) {
	body:has(.duncan-sell__actions) .duncan-whatsapp {
		bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
	}
}

/*
 * 12.5 Motion that carries information, and only for someone who has not asked
 *     the site to hold still.
 *
 * Three things, each tied to something that happened: a section eases the last
 * 8px as it reaches the top of the screen, so twelve sections arrive at a pace
 * instead of as a wall; the rail's fill slides when the section changes, which is
 * the only place on the page where movement says "that worked"; and a field the
 * browser refuses takes a shake with its red border, so the refusal is felt a few
 * milliseconds before it is read.
 */
@media (prefers-reduced-motion: no-preference) {
	/*
	 * Both rules are keyed to .is-rail, which assets/js/sell-rail.js puts on the
	 * form as its first act. A section that never meets the script stays exactly
	 * as the server printed it: the fade is an enhancement, and a form whose
	 * twelve sections were waiting for a file that failed to load would be a form
	 * nobody can see.
	 */
	.duncan-sell.is-rail .duncan-sell__group {
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 320ms cubic-bezier(0.2, 0.7, 0.3, 1),
			transform 320ms cubic-bezier(0.2, 0.7, 0.3, 1);
	}

	.duncan-sell.is-rail .duncan-sell__group.is-inview {
		opacity: 1;
		transform: none;
	}

	/* The rail exists before the script has measured anything, and a bar that
	   jumps from nothing to 60% on the first frame reads as a glitch. */
	.duncan-sellrail__fill {
		transition: width 260ms cubic-bezier(0.2, 0.7, 0.3, 1);
	}

	.duncan-sell.is-rail .duncan-sell__group.is-refused {
		animation: duncan-sell-shake 320ms ease;
	}

	@keyframes duncan-sell-shake {
		0%, 100% {
			transform: none;
		}

		20% {
			transform: translateX(-3px);
		}

		40% {
			transform: translateX(3px);
		}

		60% {
			transform: translateX(-2px);
		}

		80% {
			transform: translateX(2px);
		}
	}
}

/*
 * 12.6 The five steps.
 *
 * Twelve sections became five questions, and the seller walks one at a time.
 * assets/js/sell-steps.js owns the classes and the counting; this owns the
 * surface, and every rule here is keyed to .is-stepping, which only that script
 * puts on the form. A page whose file never arrived is the flat form, printed as
 * it always was, with no rule in this set applying to it.
 *
 * The hiding is a class and not the `hidden` attribute for one reason: `hidden`
 * is what the plan toggle in main.js already uses to switch whole sections off,
 * and the two must not be confused for each other. A step that is not on screen
 * is still a step the seller can jump back to; a section the plan switched off
 * was never asked. Anything reading `hidden` — the draft saver, the rail, the
 * size hint — keeps telling the truth about the plan because this set never
 * touches it.
 */

/* Out of the flow, but not out of the document: the fields keep their values,
   the uploads keep their queues, and the one POST at the end still carries all
   of it. */
.duncan-sell.is-stepping .duncan-sell__group.is-step-off {
	display: none;
}

/* The first question of a step opens the step. It gets no hairline and no air
   above it, however many hidden sections sit in front of it in the document. */
.duncan-sell.is-stepping .duncan-sell__group.is-step-first {
	margin-top: 0;
	border-top: 0;
	padding-top: 0;
}

/*
 * The line under the rail that says what the step is for.
 *
 * It is printed by the script and it is empty when there is nothing to say, so
 * the `hidden` attribute — which the browser already turns into display:none —
 * keeps it off the page without a rule here having to know about it.
 */
.duncan-sell.is-stepping .duncan-step-note {
	margin: -0.35rem 0 1.25rem;
	font-size: 14px;
	line-height: 1.5;
	color: #55605f; /* ink-600 */
}

/*
 * The chips become the step row, so on a phone they are no longer optional.
 *
 * The rail's own rule drops the jump row below 640px on the grounds that a
 * sticky table of contents eats two lines of a 390px screen. In a stepped form
 * the row is not a table of contents, it is the only way to leave a step you are
 * done with, so it stays — and it is cut to one line that scrolls sideways
 * rather than wrapping into three that do not.
 */
.duncan-sell.is-stepping .duncan-sellrail__jump {
	display: flex;
	flex-wrap: nowrap;
	margin: 0;
	padding-bottom: 2px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.duncan-sell.is-stepping .duncan-sellrail__jump::-webkit-scrollbar {
	display: none;
}

.duncan-sell.is-stepping .duncan-sellrail__jump li {
	flex: 0 0 auto;
}

.duncan-sell.is-stepping .duncan-sellrail__jump a {
	white-space: nowrap;
}

/*
 * A step that has been answered says so without being clicked.
 *
 * The tick is drawn, not typed: a ✓ in the markup would be a font question, and
 * the two strokes are the same thin line the card icons already use. It sits in
 * the chip's own padding, so the label never moves when a step completes.
 */
.duncan-sell.is-stepping .duncan-sellrail__jump li.is-done a {
	padding-left: 26px;
	position: relative;
}

.duncan-sell.is-stepping .duncan-sellrail__jump li.is-done a::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 50%;
	width: 8px;
	height: 4px;
	margin-top: -3px;
	border-left: 1.5px solid #14673f; /* brand-600 */
	border-bottom: 1.5px solid #14673f; /* brand-600 */
	transform: rotate(-45deg);
}

.duncan-sell.is-stepping .duncan-sellrail__jump li.is-done.is-current a {
	padding-left: 10px;
}

.duncan-sell.is-stepping .duncan-sellrail__jump li.is-done.is-current a::before {
	content: none;
}

/* The way out of the guided form, on the line under the rail.
   (Was: in the rail itself, on a row of its own.) */
.duncan-sell.is-stepping .duncan-sellrail__flat {
	flex: 0 0 auto;
	margin-left: auto;
	min-height: 28px;
	padding: 0 9px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: none;
	font-size: 12px;
	line-height: 1.2;
	color: #636e6d; /* ink-500 */
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease;
}

.duncan-sell.is-stepping .duncan-sellrail__flat:hover {
	border-color: #d8d2c8; /* sand-300 */
	color: #14181a; /* ink-900 */
}

/* The sentence about what the blue button does goes above the buttons it
   describes, and Back joins them on the row — on a wide screen it used to
   float on a line of its own above the sentence, which read as a heading. */
.duncan-sell.is-stepping .duncan-sell__actions .duncan-sell__actions-note {
	order: -2;
}

/*
 * Back and Next in the bar that already rides at the bottom edge.
 *
 * A second bar would have to be cleared by the WhatsApp float, by the sticky
 * rail, and by every screenshot of this form taken since it was built. The bar
 * that exists is where a thumb already is, so the two new buttons join it and
 * the arrangement is re-ordered rather than re-drawn.
 *
 * Exactly one blue button is on screen at a time: Next, or Publish on the last
 * step. The sentence above them — "only the button in blue puts it in front of
 * buyers" — has always been true of the flat form, and a stepped form that
 * showed two blues would make it a lie.
 */
.duncan-sell.is-stepping .duncan-sell__actions .duncan-step-back {
	order: -1;
	flex: 0 0 auto;
	min-height: 44px;
	padding-inline: 0.9rem;
}

.duncan-sell.is-stepping .duncan-sell__actions .duncan-step-next {
	order: 1;
	flex: 1 1 150px;
}

.duncan-sell.is-stepping .duncan-sell__actions .btn-primary:not(.duncan-step-next) {
	order: 1;
}

.duncan-sell.is-stepping .duncan-sell__actions .btn-secondary {
	order: 2;
}

.duncan-sell.is-stepping .duncan-sell__actions .duncan-sell-clear {
	order: 3;
}

/* Away, rather than gone: the buttons are the form's own, and a publish button
   that stopped existing mid-form would be a different claim than one that is
   simply not on this step's screen. */
.duncan-sell.is-stepping .duncan-sell__actions .is-step-away {
	display: none;
}

@media (max-width: 639px) {
	/* Next takes the whole first line, the way Publish did. Back and the draft
	   escape share the second, and the way out of the form keeps its own corner
	   only on the step where the seller has typed the least. */
	.duncan-sell.is-stepping .duncan-sell__actions .duncan-step-next,
	.duncan-sell.is-stepping .duncan-sell__actions .btn-primary:not(.duncan-step-next) {
		flex: 1 1 100%;
		order: 1;
	}

	.duncan-sell.is-stepping .duncan-sell__actions .duncan-step-back {
		order: 2;
		flex: 0 1 auto;
	}

	.duncan-sell.is-stepping .duncan-sell__actions .btn-secondary {
		order: 3;
		flex: 0 1 auto;
		padding-inline: 0.75rem;
		margin-left: auto;
	}

	.duncan-sell.is-stepping .duncan-sell__actions .duncan-sell-clear {
		order: 4;
		flex: 0 0 auto;
		padding-inline: 0.75rem;
		margin-left: 0;
	}
}

/*
 * The buyer's preview becomes a strip.
 *
 * In the flat form the card sat above the first question, at the full width of
 * the column, because that was the only place it could be and the seller was
 * about to scroll past it for four thousand pixels. In a stepped form it is the
 * one thing that stays on screen whatever step you are on, so it is cut to the
 * height of a line of text: the cover, the chips, the title, the price, the
 * place. Same card classes, same words, less air.
 */
.duncan-sell.is-stepping .duncan-livepreview__card {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	align-items: stretch;
}

.duncan-sell.is-stepping .duncan-livepreview__figure {
	aspect-ratio: 4 / 3;
	width: 100%;
}

/* The two chips are the transaction and the state, and at 128px they are still
   legible — but only at the size they are never printed elsewhere. At the
   card's own 12px they ran off the figure and sat on top of the price. */
.duncan-sell.is-stepping .duncan-livepreview__chips {
	left: 6px;
	top: 6px;
	gap: 4px;
}

.duncan-sell.is-stepping .duncan-livepreview__chips .duncan-entry__chip {
	font-size: 10px;
	padding: 1px 6px;
}

.duncan-sell.is-stepping .duncan-livepreview__body {
	padding: 0.6rem 0.85rem;
}

.duncan-sell.is-stepping .duncan-livepreview__title {
	font-size: 14px;
	-webkit-line-clamp: 2;
}

.duncan-sell.is-stepping .duncan-livepreview__price {
	font-size: 16px;
}

/* "Your first photograph becomes the cover buyers see in search" is a sentence
   for the flat form, where the preview is the only place the seller learns it.
   In a stepped form the media step says it better and beside the uploader, and
   at 128px the sentence would only ever collide with the price underneath. */
.duncan-sell.is-stepping .duncan-livepreview__empty {
	display: none;
}

/* The photograph-count chip is the media step's own answer to "am I done?", and
   on a step it is the first thing under the uploader rather than one line among
   twelve. */
.duncan-sell.is-stepping #sell-photographs .duncan-photos-count {
	margin-bottom: 0.75rem;
}

/*
 * 12.7 Motion for the steps, and none for anyone who asked for none.
 *
 * A step arrives from the direction the seller was going: forward comes up from
 * below, Back goes down from above, so the movement says where the new questions
 * came from rather than that something changed. Each section in a step is
 * delayed by the --duncan-step-i the script counted, which is 40ms apart and
 * barely a second end to end — the point is a pace, not a performance.
 */
@media (prefers-reduced-motion: no-preference) {
	.duncan-sell.is-stepping .duncan-sell__group.is-step-enter {
		animation: duncan-step-in 260ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
		animation-delay: calc(var(--duncan-step-i, 0) * 40ms);
	}

	.duncan-sell.is-stepping .duncan-sell__group.is-step-enter.is-step-back {
		animation-name: duncan-step-in-back;
	}

	@keyframes duncan-step-in {
		from {
			opacity: 0;
			transform: translateY(10px);
		}

		to {
			opacity: 1;
			transform: none;
		}
	}

	@keyframes duncan-step-in-back {
		from {
			opacity: 0;
			transform: translateY(-10px);
		}

		to {
			opacity: 1;
			transform: none;
		}
	}

	/* The fill is the step's progress, not the scroll's, so it is allowed to be
	   the loudest movement on the page. */
	.duncan-sell.is-stepping .duncan-sellrail__fill {
		transition: width 320ms cubic-bezier(0.2, 0.7, 0.3, 1);
	}

	.duncan-sell.is-stepping .duncan-step-note {
		animation: duncan-step-note 320ms ease both;
		animation-delay: 60ms;
	}

	@keyframes duncan-step-note {
		from {
			opacity: 0;
		}

		to {
			opacity: 1;
		}
	}
}

/*
 * 12.8 The bottom edge of a phone, fought for.
 *
 * Measured on the listing form at 390 x 844 before any of this: header 65px,
 * rail 114px, sticky button bar 122px, cookie sheet 148px — 449px of an 844px
 * screen pinned, with a WhatsApp bubble sitting on top of the Next button and
 * a footer of exit links under the last field. Over half the phone was chrome
 * and the form was the thing you scrolled to find.
 *
 * Each band below gives some of that back, and none of it is a preference a
 * seller loses: the step's title still exists, it simply exists in the
 * accessibility tree rather than on the line, because the chips already say
 * which step you are on and the section's own legend repeats it below.
 */

/*
 * The rail, one line instead of three.
 *
 * Count on the left, the five chips scrolling in the middle, the way out of
 * the guided form pinned on the right where it cannot scroll off. The progress
 * track is gone from this width on purpose: five chips with one filled and the
 * answered ones ticked is the same information, drawn better, and the bar
 * beside it was 4px of somebody else's vertical space.
 */
@media (max-width: 639px) {
	.duncan-sell.is-stepping .duncan-sellrail {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 8px;
		padding: 7px 10px;
		margin-bottom: 0.75rem;
		border-radius: 9px;
	}

	/*
	 * Out of the columns, not out of the page.
	 *
	 * [data-rail-name] is the aria-live region the step change is announced
	 * through, so it keeps being read while keeping no space: the clip pattern
	 * rather than display:none, which would take it out of the tree with it.
	 */
	.duncan-sell.is-stepping .duncan-sellrail__now,
	.duncan-sell.is-stepping .duncan-sellrail__track {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.duncan-sell.is-stepping .duncan-sellrail__count {
		grid-column: 1;
		font-size: 11.5px;
	}

	.duncan-sell.is-stepping .duncan-sellrail__jump {
		grid-column: 2;
		gap: 5px;
	}

	.duncan-sell.is-stepping .duncan-sellrail__jump a {
		min-height: 26px;
		padding: 0 9px;
		font-size: 11.5px;
	}

	/* The rail is two columns on this width — the count and the chips — because
	   the way out of the steps moved down to the note line, where it is one of
	   two small text buttons rather than a third thing competing for the row. */

	.duncan-sell.is-stepping .duncan-sellrail__jump li.is-done a {
		padding-left: 23px;
	}

	.duncan-sell.is-stepping .duncan-sellrail__jump li.is-done a::before {
		left: 9px;
	}

	.duncan-sell.is-stepping .duncan-sellrail__flat {
		margin-left: 0;
		min-height: 26px;
		padding: 0;
		border: 0;
		background: none;
		font-size: 12px;
	}

	/*
	 * One row of buttons, and the row is the work.
	 *
	 * Back, the draft escape, and Next — in that order, on one line. Clear
	 * form has moved up to the note line (see the row below), which is what
	 * bought the 58px: a button you press once in the life of a listing was
	 * sharing a sticky bar with the two you press eleven times.
	 */
	.duncan-sell.is-stepping .duncan-sell__actions {
		padding: 8px 10px;
		gap: 7px;
		border-radius: 9px;
	}

	.duncan-sell.is-stepping .duncan-sell__actions .duncan-step-back {
		order: 1;
		flex: 0 0 auto;
		min-height: 44px;
		padding-inline: 0.7rem;
	}

	.duncan-sell.is-stepping .duncan-sell__actions .btn-secondary {
		order: 2;
		flex: 0 1 auto;
		min-width: 0;
		margin-left: 0;
		min-height: 44px;
		padding-inline: 0.6rem;
		font-size: 13.5px;
	}

	.duncan-sell.is-stepping .duncan-sell__actions .duncan-step-next,
	.duncan-sell.is-stepping .duncan-sell__actions .btn-primary:not(.duncan-step-next) {
		order: 3;
		flex: 1 1 110px;
		min-width: 0;
		min-height: 44px;
		padding-inline: 0.8rem;
		font-size: 15px;
	}
}

/*
 * The line under the rail, and the two ways out it holds.
 *
 * The note is the sentence about this step; beside it sit "Show all sections"
 * and "Clear form". Both used to ride in the sticky bar at the bottom edge,
 * which on a phone meant that bar had three rows of buttons: the one you press,
 * and two you press once in the life of a listing. They are preferences about
 * the form rather than answers to a question, so they go on the line that
 * already says what the step is for, and the bar at the thumb keeps the buttons
 * that are in the way of the work.
 */
.duncan-sell.is-stepping .duncan-step-row {
	margin: -0.25rem 0 1.1rem;
}

.duncan-sell.is-stepping .duncan-step-row .duncan-step-note {
	margin: 0 0 0.3rem;
}

.duncan-step-escapes {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
}

/* The two escapes are one visual thing: quiet text, underlined when touched. */
.duncan-sell.is-stepping .duncan-step-row .duncan-sell-clear,
.duncan-sell.is-stepping .duncan-step-row .duncan-sellrail__flat {
	flex: 0 0 auto;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	color: #636e6d; /* ink-500 */
	text-decoration: underline;
	text-decoration-color: #d8d2c8; /* sand-300 */
	text-underline-offset: 3px;
	cursor: pointer;
}

.duncan-sell.is-stepping .duncan-step-row .duncan-sell-clear:hover,
.duncan-sell.is-stepping .duncan-step-row .duncan-sellrail__flat:hover {
	color: #14181a; /* ink-900 */
	text-decoration-color: #98a2a1; /* ink-400 */
	background: none;
}

/*
 * The cookie sheet, half the height and out of the way.
 *
 * It asked in three lines with the buttons under them because that is how a
 * notice reads on a desktop page, and on a phone it is 148px of white over the
 * buttons. One line of text with the two answers beside it says the same thing
 * in 96px.
 */
.duncan-cookies__inner {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 9px 12px;
}

.duncan-cookies__text {
	flex: 1 1 210px;
	line-height: 1.45;
}

.duncan-cookies__buttons {
	flex: 0 0 auto;
	gap: 6px;
	margin-left: auto;
}

.duncan-cookies__buttons .btn {
	min-height: 38px;
	padding-inline: 0.85rem;
	font-size: 13.5px;
}

/*
 * On the listing form the question moves to the top edge.
 *
 * The bottom edge is where Next is, all the way down the form, and it is not
 * free for a notice that will be answered once and never seen again. The top
 * edge has the header on it and nothing else. It covers the rail for the
 * fifteen seconds it takes to answer, which is a better trade than covering
 * the button for the four minutes it takes to list a plot.
 */
body.page-template-sell-php .duncan-cookies {
	top: var(--duncan-header-h, 65px);
	bottom: auto;
	border-top: 0;
	border-bottom-width: 1px;
	box-shadow: 0 2px 16px rgba(20, 24, 26, 0.08);
}

/*
 * …and the step row waits under it.
 *
 * Both are pinned to the top edge, so without this the rail hides behind a
 * notice it has no business losing to: the sheet is answered once in six
 * months and the rail is read on every step. :has() is what lets a static
 * stylesheet know the sheet is open, and a browser without it drops the rule
 * and keeps yesterday's overlap rather than breaking anything.
 */
body.page-template-sell-php:has(.duncan-cookies:not([hidden])) .duncan-sell.is-stepping .duncan-sellrail {
	top: calc(var(--duncan-header-h, 65px) + 132px);
}

/*
 * The form page ends where the form ends.
 *
 * No footer on this template at all (footer.php), no chat float, no saved
 * bar. Without the dark band the page used to finish against, the last note
 * sat directly on the viewport edge, so the bottom of <main> carries the air
 * the footer used to.
 */
body.page-template-sell-php main {
	padding-bottom: 2.5rem;
}

/*
 * The same door, seen from the other side.
 *
 * "Show all sections" is a preference, and a preference that cannot be undone
 * is a setting nobody will touch twice. In the flat form this button takes the
 * rail's own row — where the rail already lives — and puts the seller back on
 * the steps for the rest of the tab.
 */
.duncan-sellrail .duncan-sellrail__flat {
	flex: 0 0 auto;
	margin-left: auto;
	min-height: 26px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 12px;
	line-height: 1.2;
	color: #636e6d; /* ink-500 */
	text-decoration: underline;
	text-decoration-color: #d8d2c8; /* sand-300 */
	text-underline-offset: 3px;
	cursor: pointer;
}

.duncan-sellrail .duncan-sellrail__flat:hover {
	color: #14181a; /* ink-900 */
	text-decoration-color: #98a2a1; /* ink-400 */
}

/*
 * 12.9 The numbers under a walkthrough.
 *
 * A listing that arrives as a clip has already made its argument in moving
 * pictures. What a buyer needs the moment it stops is not the seller's prose
 * but the hard facts about the place they just watched — how big, what tenure,
 * what it is zoned for, what it goes for per acre — and those used to sit below
 * the description in a two-column table of 13px labels, which is the wrong order
 * and the wrong weight for the only page on the site where the pictures have
 * already done the persuading.
 *
 * So the four heaviest facts are lifted out and printed at headline size in a
 * band directly under the video, and the rest of the table follows underneath
 * them. Four rather than six: on a 390px phone that is two rows of two, and a
 * band of six would push the description off the screen the buyer was going to
 * read next.
 */
.duncan-specs__lead {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 12px;
	margin-top: 16px;
	padding: 16px;
	border: 1px solid var(--sand-200, #e8e4dd);
	border-radius: var(--radius, 12px);
	background-color: var(--sand-50, #faf9f7);
}

@media (min-width: 760px) {
	.duncan-specs__lead {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 18px 16px;
		padding: 20px;
	}
}

.duncan-specs__stat {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.duncan-specs__k {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #636e6d; /* ink-500 */
}

.duncan-specs__v {
	font-size: clamp(19px, 4.6vw, 24px);
	line-height: 1.15;
	font-weight: 700;
	color: #14181a; /* ink-900 */
	overflow-wrap: anywhere;
}

/* The band carries the weight; the table below it is reference, and a rule
   between the two keeps them from reading as one long list. */
.duncan-specs--lead > dl {
	margin-top: 18px;
	padding-top: 4px;
	border-top: 1px solid var(--sand-200, #e8e4dd);
}

/* A listing whose facts are all short should not wrap into ragged pairs. */
@media (min-width: 1100px) {
	.duncan-specs__v {
		font-size: 25px;
	}
}

/*
 * 12.10 What a business earns.
 *
 * The unit mix is one sentence, not two boxes: "6 bedsitters × KSh 10,000 each
 * a month" is what a Kenyan listing actually says, and splitting the count from
 * the rent across a screen is how a seller ends up typing the two-bedroom figure
 * against the bedsitter row. So the pair sits on one line, with the multiply
 * sign between them doing the work the layout would otherwise ask the seller to
 * remember.
 *
 * On a phone the two boxes stack under their own row rather than shrinking to
 * nothing: a 4-digit rent in a 90px box is a figure nobody can check they typed
 * correctly.
 */
.duncan-facility__pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: end;
	gap: 8px;
}

.duncan-facility__pair > .duncan-field {
	margin: 0;
}

.duncan-facility__times {
	padding-bottom: 11px;
	font-size: 15px;
	line-height: 1;
	color: #636e6d; /* ink-500 */
}

.duncan-facility__rent .label {
	font-weight: 500;
	color: #636e6d; /* ink-500 */
}

@media (max-width: 480px) {
	.duncan-facility__pair {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.duncan-facility__times {
		display: none;
	}
}

/*
 * 12.11 The people selling here, and the sheet that opens from them.
 *
 * The band is one row of faces: one per seller, their name under each, and the
 * newest thing they hold a level down inside the sheet. It briefly showed the
 * seller's newest plot instead, and the client asked the face back — which is
 * the right call on the merits, not only by taste. This is a list of people, and
 * a face is what a buyer chooses whose page to open by; one square of one plot,
 * printed as a tile, showed less ground than the sheet shows three listings
 * with.
 *
 * The row is back too, and the reason it was retired is answered rather than
 * repeated. What made the old strip wrong was not that it slid. It was that it
 * showed six and a half sellers and let a fade cut the seventh name mid-word
 * with nothing else to say where the rest had gone. Three things answer that
 * now. The tile is a face with a caption, so what the edge takes is part of a
 * chin and not part of a word — the cut that reads as broken is the one that
 * cuts text. The row is feathered at both ends instead of faded at one, so the
 * edge itself says there is more on that side, and the padding under the feather
 * means the first seller and the last are whole at either end of the scroll. And
 * the measure of how far along the row you are is not printed until you move: a
 * thin rail fades in while the row is in motion and away when it settles, so
 * nobody is shown a control with nothing left to show them.
 *
 * The face is the largest thing in the tile and is cropped, never framed — the
 * same treatment the profile page and the byline give the same photograph, from
 * the same helper. An account that never sent a picture gets its initial on the
 * brand's pale blue, which is the one colour on the site that means "a person
 * here" and not the sand every empty placeholder uses.
 *
 * The name is a caption under the circle again. It sat on a scrim over the
 * photograph because the photograph was a plot and the name had to be glued to
 * it to make a person of it; over a face, the same scrim would sit on
 * somebody's chin.
 */
.duncan-sellers {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
	/* Sixteen pixels of padding at each end, exactly as much as the feather
	   below takes off. At the start of the scroll and at the end of it the
	   first and last seller are whole; mid-row they are not, and that is the
	   point — a tile half-swallowed by the edge of a band is what sliding looks
	   like, and it is a different thing from a name cut in half by a gradient. */
	padding: 0 16px 4px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	/* The scrollbar is not drawn. The row still slides — by thumb, by trackpad,
	   by shift and wheel, by arrow key once a tile in it has focus — but the
	   groove Chrome and Windows would put here is a second control saying what
	   the feather and the motion rail already say, and it eats a tile's worth of
	   width off the bottom of the band. */
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

.duncan-sellers::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/* Nothing is hidden, so nothing is hinted at. The script takes the feather off
   when the row fits, because a fade at the edge of a row that ends there is the
   band lying about having more to show. Without the script the feather stays
   and the row still slides, and what is lost is the case that never happens:
   twelve sellers is longer than any screen that reads this page. */
.duncan-sellers.is-whole {
	-webkit-mask-image: none;
	mask-image: none;
}

.duncan-sellers__slot {
	min-width: 0;
	flex: 0 0 auto;
	scroll-snap-align: start;
}

/* The whole tile is the link, and the tile is a face with a name under it, so
   the hover answer belongs to the pair rather than to the photograph alone: a
   shade of sand behind both, and the name takes its underline. */
.duncan-sellers__tile {
	display: flex;
	width: 122px;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 6px;
	border-radius: 14px;
	transition: background-color 140ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.duncan-sellers__tile:hover {
	background: var(--sand-50);
}

.duncan-sellers__face {
	display: flex;
	width: 108px;
	height: 108px;
	flex: none;
	overflow: hidden;
	border-radius: 50%;
	background: var(--sand-100);
	box-shadow: 0 0 0 1px rgba(20, 24, 26, .05), 0 8px 16px -10px rgba(20, 24, 26, .38);
}

/* The disc, at the size a seller row shows it. Same crop, same letter, same
   blue behind an initial as the shopfront row that first drew this mark. */
.duncan-sellers__face .duncan-avatar {
	margin-right: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #eef3fb;
	color: #08326f;
	font-size: 38px;
}

.duncan-sellers__face .duncan-avatar--photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 320ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.duncan-sellers__tile:hover .duncan-sellers__face .duncan-avatar--photo {
	transform: scale(1.05);
}

.duncan-sellers__name {
	max-width: 100%;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	color: var(--ink-900);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.duncan-sellers__tile:hover .duncan-sellers__name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The last seller is the one the row is being slid to, so it is the one that
   has to arrive whole. Proximity snapping stops at the nearest tile's start,
   which for the last tile is a point some way short of the end of the scroll —
   measured at 22px short, which is exactly the width of the face's own edge
   being swallowed by the feather it was promised would not cut it. Asking that
   one tile to align its end instead makes the end of the row a snap point. */
.duncan-sellers__slot:last-child {
	scroll-snap-align: end;
}

/* Where you are along the row, printed only while the row is moving.
 *
 * The groove a scrollbar makes is a control that is always on screen and
 * usually says nothing: at the start of a row it reports the start of a row.
 * This says the same thing once, when the hand that needs it is already on it,
 * and then goes away — and it is 3px of sand with a blue thumb on it rather
 * than a browser widget, so it can be put under the row instead of inside it
 * and costs the tiles none of their width.
 *
 * The space is reserved whether or not it is showing. A band that grows 15px
 * the first time somebody flicks it is a band that moves the page under
 * somebody's thumb.
 */
.duncan-sellers-rail {
	position: relative;
	height: 3px;
	margin: 12px 16px 0;
	border-radius: 2px;
	background: var(--sand-200);
	opacity: 0;
	transition: opacity 260ms ease;
}

.duncan-sellers-rail.is-moving {
	opacity: 1;
}

.duncan-sellers-rail span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-radius: 2px;
	background: var(--azure-600);
}

.duncan-sellers.is-whole + .duncan-sellers-rail {
	display: none;
}

/*
 * The sheet.
 *
 * Glass where glass is free and solid where text is not. The backdrop blurs,
 * the chrome at the top of the sheet is translucent, and the panel carrying the
 * number, the three listings and the three buttons is plain white: a phone
 * number on a translucent surface is a contrast gamble that depends on whatever
 * photograph happens to be behind it, and backdrop-filter is the expensive part
 * on the low-end Androids this audience uses. One blur on the sheet, one on the
 * backdrop, and both are dropped when the visitor has asked for reduced
 * transparency — which is the same instruction iOS itself obeys.
 *
 * On a phone it docks to the bottom edge, where the thumb already is, with the
 * grip that says it is a sheet rather than a window. On a desktop it sits centred
 * over the band, which is honest about being a dialog and does not pretend to be
 * anchored to a tile it could lose on resize.
 */
.duncan-sellers__dialog {
	position: fixed;
	inset: 0;
	z-index: 60;
}

.duncan-sellers__dialog[hidden] {
	display: none;
}

.duncan-sellers__scrim {
	position: absolute;
	inset: 0;
	background: rgba(20, 24, 26, .34);
	-webkit-backdrop-filter: blur(4px) saturate(1.1);
	backdrop-filter: blur(4px) saturate(1.1);
}

.duncan-sellers__frame {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	outline: none;
}

.duncan-seller {
	position: relative;
	width: min(392px, 100%);
	max-height: 100%;
	overflow: auto;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, .7);
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(20px) saturate(1.5);
	backdrop-filter: blur(20px) saturate(1.5);
	box-shadow: 0 24px 60px -18px rgba(20, 24, 26, .42), 0 2px 10px rgba(20, 24, 26, .12);
	overscroll-behavior: contain;
}

.duncan-seller__top {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px 12px;
}

.duncan-seller__face img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 1px solid rgba(255, 255, 255, .85);
	box-shadow: 0 0 0 1px rgba(20, 24, 26, .08);
}

.duncan-seller__who {
	min-width: 0;
	flex: 1;
}

.duncan-seller__who b {
	display: block;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ink-900);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.duncan-seller__who i {
	display: block;
	font-style: normal;
	font-size: 13px;
	color: var(--ink-600);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.duncan-seller__close {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(20, 24, 26, .06);
	color: var(--ink-600);
	font-size: 14px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.duncan-seller__close:hover {
	background: rgba(20, 24, 26, .1);
	color: var(--ink-900);
}

/* The solid panel. Everything a buyer reads a number off lives in here. */
.duncan-seller__panel {
	background: #fff;
	border: 1px solid rgba(20, 24, 26, .06);
	border-radius: 12px;
	margin: 0 10px;
	padding: 12px 14px 14px;
}

.duncan-seller__count {
	margin: 0;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.duncan-seller__count a {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-900);
}

.duncan-seller__count a:hover {
	color: var(--azure-700);
	text-decoration: underline;
}

.duncan-seller__shelf {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--sand-200);
}

.duncan-seller__shelf li + li {
	border-top: 1px solid var(--sand-200);
}

.duncan-seller__shelf a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
}

.duncan-seller__shelf img,
.duncan-seller__nophoto {
	width: 44px;
	height: 33px;
	border-radius: var(--radius-sm);
	object-fit: cover;
	flex: none;
	background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
}

.duncan-seller__shelf span:last-child {
	min-width: 0;
}

.duncan-seller__shelf b {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-900);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.duncan-seller__shelf i {
	display: block;
	font-style: normal;
	font-size: 12px;
	color: var(--ink-500);
	margin-top: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.duncan-seller__acts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 12px 0 0;
}

.duncan-seller__act {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.duncan-seller__act svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.duncan-seller__act--call {
	background: var(--azure-600);
	color: #fff;
}

.duncan-seller__act--call:hover {
	background: var(--azure-700);
}

.duncan-seller__act--wa {
	background: var(--brand-600);
	color: #fff;
}

.duncan-seller__act--wa:hover {
	background: var(--brand-700);
}

.duncan-seller__act--mail {
	background: #fff;
	border: 1px solid var(--sand-300);
	color: var(--ink-900);
}

.duncan-seller__act--mail:hover {
	border-color: var(--ink-400);
}

.duncan-seller__foot {
	margin: 0;
	padding: 9px 16px 14px;
	font-size: 12px;
	color: var(--ink-500);
}

/* The entrance. A sheet that arrives is a sheet that was opened; one that
   appears has always been there. 160ms, and nothing that moves a buyer's place
   on the page. */
.duncan-sellers__dialog .duncan-seller {
	opacity: 0;
	transform: translateY(10px) scale(.985);
	transition: opacity .16s ease-out, transform .16s ease-out;
}

.duncan-sellers__dialog.is-open .duncan-seller {
	opacity: 1;
	transform: none;
}

@media (max-width: 600px) {
	/* The same row, only smaller: three and a bit of sellers inside 390 pixels,
	   the rest one thumb away. */
	.duncan-sellers {
		gap: 4px;
		padding: 0 14px 4px;
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
	}

	.duncan-sellers__tile {
		width: 92px;
		gap: 8px;
		padding: 10px 4px;
	}

	/* Eighty, not eighty-four: the 160-pixel derivative is exactly twice this,
	   so a phone drawing two pixels per point asks for the small file and a
	   phone drawing three asks for the one it actually needs. */
	.duncan-sellers__face {
		width: 80px;
		height: 80px;
	}

	.duncan-sellers__face .duncan-avatar {
		font-size: 30px;
	}

	.duncan-sellers__name {
		font-size: 13px;
	}

	.duncan-sellers__frame {
		align-items: flex-end;
		justify-content: stretch;
		padding: 0;
	}

	.duncan-seller {
		width: 100%;
		max-height: 86vh;
		border-radius: 18px 18px 0 0;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		box-shadow: 0 -18px 48px -16px rgba(20, 24, 26, .4);
	}

	.duncan-sellers__dialog .duncan-seller {
		transform: translateY(24px);
	}

	/* The grip needs clear air above the name, not a share of it: at 6px the
	   bar landed on the top of the letters, which is the one thing on this sheet
	   that has to be read. */
	.duncan-seller__top {
		padding-top: 22px;
	}

	.duncan-seller__acts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.duncan-seller__foot {
		padding-bottom: max(14px, env(safe-area-inset-bottom));
	}
}

/* The grip, and nothing else, says "this is a sheet you can put away". It is
   drawn off the sheet's own top edge, not the header's, so it stays where a
   thumb finds it whatever the header wraps to. */
@media (max-width: 600px) {
	.duncan-seller__top::before {
		content: '';
		position: absolute;
		top: 8px;
		left: 50%;
		transform: translateX(-50%);
		width: 38px;
		height: 4px;
		border-radius: 3px;
		background: rgba(20, 24, 26, .22);
	}
}

@media (prefers-reduced-motion: reduce) {
	.duncan-sellers__dialog .duncan-seller {
		transition: none;
		opacity: 1;
		transform: none;
	}
}

/* A visitor who has asked the operating system for less transparency gets an
   opaque sheet. The blur was decoration; the phone number is not. */
@media (prefers-reduced-transparency: reduce) {
	.duncan-sellers__scrim,
	.duncan-seller {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.duncan-seller {
		background: #fff;
	}
}

/*
 * 12.12 What a step says when it will not let you past it.
 *
 * The refusal is the only part of this form that has to be read on a phone in
 * one inch of screen, so it borrows the shape the server-side notice already
 * uses — a white card, a red rule down the left — and nothing else. A seller
 * who has just been stopped by the browser and by the site in two different
 * visual languages learns that the form has two bosses, and stops trusting
 * either of them.
 *
 * Each line is a link rather than a sentence, because the fix is in a box below
 * and the list's only job is to get a thumb there. The count in the heading is
 * recomputed as they type, which is the whole reason the list is worth having:
 * watching three lines become one is the only feedback a fifty-field form gives
 * that the work is landing.
 */
.duncan-step__gate {
	position: relative;
	margin: 0 0 18px;
	padding: 14px 16px 12px;
	background: #fff;
	border: 1px solid #f0dede;
	border-left: 4px solid #a32020;
	border-radius: 10px;
	box-shadow: var(--shadow-raised);
	scroll-margin-top: 140px;
}

.duncan-step__gate[hidden] {
	display: none;
}

.duncan-step__gate-title {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #8a1b1b;
}

.duncan-step__gate-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.duncan-step__gate-list li {
	margin: 0 0 2px;
}

.duncan-step__gate-link {
	display: block;
	padding: 5px 0;
	font-size: 14px;
	line-height: 1.4;
	color: #a32020;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.duncan-step__gate-link:hover {
	color: #7d1717;
}

/* The box itself, marked where it sits. A list above and nothing on the field
   means the seller scrolls down, sees four ordinary boxes, and guesses. */
.duncan-field.is-error > .label,
.duncan-sell__group.is-error > .duncan-sell__title {
	color: #8a1b1b;
}

.is-error > .input,
.is-error > .textarea,
.is-error > .select,
.is-error > .duncan-vq,
input.is-error,
textarea.is-error,
select.is-error {
	border-color: #a32020;
	box-shadow: 0 0 0 3px rgba(163, 32, 32, 0.12);
}

.duncan-field__error {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #a32020;
}

/* An unmarked group holds its error line inside itself, so the fieldset gets a
   hair of separation rather than the sentence touching the last control. */
fieldset.duncan-sell__group.is-error {
	border: 1px solid #f0dede;
	border-radius: 10px;
	padding: 14px 16px;
}

@media (prefers-reduced-motion: reduce) {
	.duncan-sell.is-rail .duncan-sell__group.is-refused {
		animation: none;
	}

	.duncan-sellers__face .duncan-avatar--photo {
		transition: none;
	}

	/* The rail still appears, because it is information rather than movement —
	   only it appears and leaves without easing, and the row does not glide to a
	   snap point under a thumb that has stopped. */
	.duncan-sellers {
		scroll-behavior: auto;
		scroll-snap-type: none;
	}

	.duncan-sellers-rail {
		transition: none;
	}

	.duncan-sellers__tile:hover .duncan-sellers__face .duncan-avatar--photo {
		transform: none;
	}
}

/* ── The winter hero ──────────────────────────────────────────────────────
 *
 * The seasonal illustration is art, not a photograph of a place, so it reads
 * at full strength where the townscape read at twelve percent — dimmed at
 * paint with a brightness filter rather than at build, because the file stays
 * the client's licensed original. The band stays navy: a scrim of the band's
 * own blue sits between the art and the type, and the pair is measured off the
 * rendered pixels the way the original notes demanded — 7.05:1 for the
 * headline, 5.9:1 for the supporting copy, 9.7:1 for the eyebrow, all over the
 * brightest snow the frame can put under a word. object-position keeps the
 * cabin and the lit trees right of centre on desktop, and on phones, where
 * cover crops the width away, it anchors to the right edge so the house and
 * both trees are the picture you get.
 */
.duncan-hero__bg {
	opacity: 1;
	object-position: 78% 46%;
	filter: brightness(0.55) saturate(1.15);
}

.duncan-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg,
		rgba(10, 61, 145, 0.72) 0%,
		rgba(10, 61, 145, 0.55) 46%,
		rgba(8, 50, 111, 0.78) 100%);
}

@media (max-width: 640px) {
	.duncan-hero__bg {
		object-position: 92% 58%;
	}
}

/* ── 13. The season's band ──────────────────────────────────────────────── */

/*
 * The elf and the one seasonal ask, laid directly over the Christmas-decor
 * photograph. No container: the words sit on the picture itself, and what
 * keeps them readable is an azure fade across the photograph — the band's
 * own blue at its strongest where the words sit on the right, holding the
 * picture's colour on the left where the elf stands.
 *
 * The fade is a layer, not a filter: the photograph dims under it while the
 * elf and the words sit above it, so the elf keeps every colour it was drawn
 * with. It is a true cut-out (the white-keyed original would have let the
 * photo show through every white highlight inside the art), and a drop shadow
 * is what says it is standing in the scene.
 *
 * The band hugs its content: it ends where the ask ends.
 *
 * The price is the season's ask: one word in the site's yellow, underlined,
 * with no box around it — the link the rest of the site already teaches, in
 * the one colour that sings on the azure fade. The white words on the blue
 * are the pair the hero already uses.
 */
.duncan-season {
	position: relative;
	background-image: url('../img/christmas-decor.jpg');
	background-size: cover;
	background-position: center;
}

.duncan-season::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(100deg,
		rgb(10 61 145 / 0.12) 0%,
		rgb(10 61 145 / 0.42) 38%,
		rgb(10 61 145 / 0.9) 72%,
		rgb(10 61 145 / 0.96) 100%);
}

.duncan-season__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 2rem;
	max-width: 1240px;
	margin-inline: auto;
	padding: 2.5rem 1rem 1.75rem;
}

@media (min-width: 640px) {
	.duncan-season__inner {
		padding-inline: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.duncan-season__inner {
		padding-inline: 2rem;
	}
}

.duncan-season__elf {
	flex: 0 0 auto;
	width: 13rem;
	height: auto;
	filter: drop-shadow(0 14px 22px rgb(0 0 0 / 0.4));
}

.duncan-season__copy {
	max-width: 34rem;
}

.duncan-season__title {
	margin: 0;
	font-family: var(--font-display, Montserrat, 'Montserrat Fallback', system-ui, sans-serif);
	font-size: clamp(30px, 4.5vw, 52px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #fff;
}

/* "Christmas" is part of the white title; the yellow lives on the ask alone. */
.duncan-season__accent {
	color: #fff;
}

.duncan-season__sub {
	margin: 0.75rem 0 0;
	font-size: clamp(17px, 1.8vw, 21px);
	line-height: 1.45;
	font-weight: 500;
	color: rgb(255 255 255 / 0.92);
}

/* The season's ask: one word in the site's yellow, underlined, no box — the
   link the rest of the site teaches, in the colour that sings on the azure
   fade. The height stays so a thumb still has something to land on. */
.duncan-season__cta {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin-top: 1.25rem;
	padding: 0 0.25rem;
	color: #ffd23f;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: underline;
	text-decoration-color: #ffd23f;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	transition: color 150ms ease, text-decoration-color 150ms ease;
}

.duncan-season__cta:hover,
.duncan-season__cta:focus-visible {
	color: #ffe680;
	text-decoration-color: #ffe680;
}

@media (max-width: 639px) {
	/* The elf keeps the left edge on a phone, with the words wrapping beside
	   it: same row, smaller pieces. */
	.duncan-season__inner {
		align-items: flex-start;
		gap: 0.75rem;
		padding: 1.25rem 1rem;
	}

	.duncan-season__elf {
		width: 6.5rem;
	}

	.duncan-season__copy {
		min-width: 0;
	}

	.duncan-season__title {
		font-size: 28px;
	}

	.duncan-season__sub {
		font-size: 15px;
	}

	.duncan-season__cta {
		min-height: 2.5rem;
		padding: 0 0.25rem;
		font-size: 16px;
		margin-top: 1rem;
	}
}
