/* Agrivencia corrections and additions.
   Kept in its own stylesheet so the twelve original theme asset
   stylesheets stay byte-identical to the supplied baseline, as the
   handover process requires. Everything here is additive and scoped.
   - Mobile cockpit corrections, 11 Nov 2026
   - Provenance disclosure styles, 11 Nov 2026
*/

/* Provenance disclosure (11 Nov 2026)
   A stated rule carries where it came from and when it was last checked.
   The three states are distinguishable without relying on colour alone:
   each carries its own label text in the markup. */
.agv-provenance {
	margin-top: .6rem;
	padding: .55rem .7rem;
	border-left: 3px solid currentColor;
	border-radius: .2rem;
	font-size: var(--agv-t-sm);
	line-height: 1.45;
}
.agv-provenance a { text-decoration: underline; }
.agv-provenance .agv-cal2__term,
.agv-provenance__state {
	display: block;
	font-weight: 600;
	letter-spacing: .01em;
}
.agv-provenance--verified {
	color: #1f4d2e;
	background: #e5f4e4;
}
.agv-provenance--needs-review {
	color: #6b4410;
	background: #f9eeda;
}
.agv-provenance--unverified {
	color: #5c4a2f;
	background: #f0efec;
}
@media (prefers-color-scheme: dark) {
	.agv-provenance--verified { color: #cfe9d2; background: rgba(31, 77, 46, .35); }
	.agv-provenance--needs-review { color: #f2dcb4; background: rgba(107, 68, 16, .35); }
	.agv-provenance--unverified { color: #ddd8ce; background: rgba(92, 74, 47, .3); }
}

/* --- Mobile corrections (11 Nov 2026) --------------------------------
   Two defects made the menu unusable on phones: the controls row could
   not shrink (the search field's 220px minimum pushed the menu button
   off the right edge of a 390px viewport), and the open navigation
   panel sat underneath the header, hiding its first entry. ----------- */

@media (max-width: 980px) {
	/* The open panel starts below the header instead of underneath it. */
	.agv-mobile-nav { inset: var(--agv-cockpit-h, 92px) 0 0 0; padding-top: var(--agv-s4); }
}

@media (max-width: 640px) {
	/* Let every member of the brand row give way before the menu button does. */
	.agv-cockpit__row { min-width: 0; }
	.agv-cockpit__controls { min-width: 0; flex: 1 1 auto; }
	.agv-cockpit__controls > * { min-width: 0; }
	.agv-logo { flex: 0 0 auto; }
	.agv-logo__text { font-size: var(--agv-td-15); }
	.agv-search { min-width: 0; flex: 1 1 60px; max-width: none; }
	.agv-search input { width: 100%; min-width: 0; }
	.agv-nav-toggle { flex: 0 0 auto; }
	/* On the narrowest screens the nation chip lives in the menu panel,
	   not the header: the row keeps logo, search and the menu button. */
	.agv-cockpit__controls > .agv-chip--select:first-of-type { display: none; }
	.agv-cockpit__spacer { display: none; }
}

/* Calendar entries with no published window.
   The chip must not read as a date, because the slot is ours and not the
   administering body's. */
.agv-cal2--undated .agv-cal2__chip { opacity: .72; }
.agv-cal2__day--none { font-size: var(--agv-t-md); line-height: 1; }
.agv-cal2--undated .agv-cal2__mon { letter-spacing: .06em; }

/* The row a table shows when it holds nothing yet. Quieter than a record,
   but not so quiet that it reads as a rendering failure. */
.agv-row-empty td { opacity: .8; font-style: normal; padding: 18px 14px; }
.agv-row-empty a { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Calculators: server-rendered results, working and withheld figures  */
/* ------------------------------------------------------------------ */

.agv-calc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-top: 1.25rem;
}

.agv-calc__reset {
	font-size: var(--agv-td-15);
}

.agv-calc__output.is-empty .agv-calc__value {
	opacity: 0.45;
}

.agv-calc__unit {
	display: block;
	font-size: var(--agv-t-sm);
	opacity: 0.75;
}

.agv-calc__withheld {
	display: block;
	margin-top: 0.5rem;
	font-size: var(--agv-t-sm);
	line-height: 1.45;
	opacity: 0.85;
}

.agv-calc__authority,
.agv-calc__warnings {
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 3px solid currentColor;
	border-radius: 0 4px 4px 0;
	background: rgba(0, 0, 0, 0.03);
}

.agv-calc__authority h4,
.agv-calc__warnings h4 {
	margin: 0 0 0.5rem;
	font-size: var(--agv-t-base);
}

.agv-calc__authority p {
	margin: 0 0 0.5rem;
}

.agv-calc__authority p:last-child {
	margin-bottom: 0;
}

.agv-calc__warnings ul {
	margin: 0;
	padding-left: 1.25rem;
}

.agv-calc__warnings li + li {
	margin-top: 0.5rem;
}

.agv-calc__working {
	margin-top: 1.5rem;
}

.agv-calc__working dl {
	margin: 0.75rem 0 0;
}

.agv-calc__working dt {
	font-weight: 600;
	margin-top: 0.875rem;
}

.agv-calc__working dd {
	margin: 0.25rem 0 0;
	line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
	.agv-calc__authority,
	.agv-calc__warnings {
		background: rgba(255, 255, 255, 0.05);
	}
}

/* ------------------------------------------------------------------ */
/* Interface cards: what is built, and what is only designed           */
/* ------------------------------------------------------------------ */

.agv-icard__tag--built {
	background: rgba(46, 125, 50, 0.16);
}

.agv-icard__tag--designed {
	background: rgba(120, 120, 120, 0.16);
	font-style: normal;
}

.agv-icard[data-status="designed"] .agv-icard__visual {
	opacity: 0.4;
}

.agv-icard[data-status="designed"] .agv-icard__chrome {
	opacity: 0.45;
}

.agv-icard__link {
	display: inline-block;
	margin-top: 0.625rem;
	font-size: var(--agv-td-15);
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Rotation planner                                                    */
/* ------------------------------------------------------------------ */

.agv-rotation__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.75rem;
	margin: 1rem 0 1.5rem;
}

.agv-rotation__stats dt {
	font-size: var(--agv-t-sm);
	opacity: 0.8;
}

.agv-rotation__stats dd {
	margin: 0.125rem 0 0;
	font-size: 1.5rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.agv-rotation__parcel {
	margin: 1.5rem 0 2rem;
}

.agv-rotation__parcel h3 {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
	margin-bottom: 0.5rem;
}

.agv-rotation__area,
.agv-rotation__where {
	font-size: var(--agv-td-14);
	font-weight: 400;
	opacity: 0.75;
}

.agv-rotation__now {
	display: inline-block;
	font-size: var(--agv-t-xs);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.7;
}

.agv-rotation__grid td {
	vertical-align: top;
	min-width: 9rem;
}

.agv-rotation__grid select,
.agv-rotation__areafield {
	width: 100%;
	margin-top: 0.25rem;
}

.agv-rotation__crop {
	display: block;
	font-weight: 600;
}

.agv-rotation__detail {
	display: block;
	font-size: var(--agv-t-sm);
	opacity: 0.75;
}

.agv-rotation__mark {
	display: inline-block;
	padding: 0.0625rem 0.4375rem;
	border-radius: 3px;
	font-size: var(--agv-t-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.agv-rotation__mark--conflict {
	background: rgba(176, 0, 32, 0.14);
}

.agv-rotation__mark--warning {
	background: rgba(188, 108, 0, 0.16);
}

.agv-rotation__mark--note {
	background: rgba(120, 120, 120, 0.16);
}

.agv-rotation__mark--statutory {
	background: rgba(0, 90, 160, 0.14);
}

.agv-rotation__mark--accepted {
	background: rgba(46, 125, 50, 0.14);
}

.agv-rotation__grid td[data-state="conflict"] {
	box-shadow: inset 3px 0 0 rgba(176, 0, 32, 0.55);
}

.agv-rotation__grid td[data-state="warning"] {
	box-shadow: inset 3px 0 0 rgba(188, 108, 0, 0.55);
}

.agv-rotation__finding {
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid currentColor;
	border-radius: 0 4px 4px 0;
	background: rgba(0, 0, 0, 0.03);
}

.agv-rotation__finding[data-accepted="1"] {
	opacity: 0.85;
}

.agv-rotation__finding h3 {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
}

.agv-rotation__tags {
	margin: 0 0 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.agv-rotation__reason {
	margin: 0.75rem 0;
	padding-left: 0.875rem;
	border-left: 2px solid rgba(46, 125, 50, 0.45);
	font-style: normal;
}

@media (prefers-color-scheme: dark) {
	.agv-rotation__finding {
		background: rgba(255, 255, 255, 0.05);
	}
}

/* ------------------------------------------------------------------ */
/* Working surfaces: one shared treatment                              */
/*                                                                     */
/* Status chips and stage rails are used by the rotation planner, the   */
/* workflow surface and anything built after them, so they are defined  */
/* once here rather than per feature. A farmer moving between two       */
/* working screens should not have to learn two visual languages.       */
/* ------------------------------------------------------------------ */

.agv-chip {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	font-size: var(--agv-t-xs);
	font-weight: 600;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
	vertical-align: baseline;
}

.agv-chip--done,
.agv-chip--ready {
	background: rgba(46, 125, 50, 0.16);
}

.agv-chip--awaiting {
	background: rgba(188, 108, 0, 0.18);
}

.agv-chip--blocked {
	background: rgba(176, 0, 32, 0.14);
}

.agv-chip--statutory {
	background: rgba(0, 90, 160, 0.14);
}

.agv-chip--quiet {
	background: rgba(120, 120, 120, 0.16);
}

/* The stage rail */

.agv-stage {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
}

.agv-stage__item {
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: 0.875rem;
	padding: 0 0 1.5rem 0;
	position: relative;
}

.agv-stage__item::before {
	content: "";
	position: absolute;
	left: 0.9375rem;
	top: 2rem;
	bottom: 0;
	width: 2px;
	background: currentColor;
	opacity: 0.18;
}

.agv-stage__item:last-child::before {
	display: none;
}

.agv-stage__no {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	border: 2px solid currentColor;
	font-size: var(--agv-t-sm);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	opacity: 0.45;
}

.agv-stage__item[data-state="done"] .agv-stage__no {
	opacity: 1;
	background: rgba(46, 125, 50, 0.16);
	border-color: rgba(46, 125, 50, 0.5);
}

.agv-stage__item[data-state="current"] .agv-stage__no {
	opacity: 1;
	border-width: 3px;
}

.agv-stage__item[data-state="future"] .agv-stage__body {
	opacity: 0.7;
}

.agv-stage__title {
	margin: 0.1875rem 0 0.375rem;
	font-size: var(--agv-t-base);
	line-height: 1.4;
}

.agv-stage__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0 0 0.375rem;
}

.agv-stage__detail {
	margin: 0 0 0.5rem;
	font-size: var(--agv-td-15);
	line-height: 1.5;
}

/* The current gate and the trail */

.agv-flow__gate {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid currentColor;
	border-radius: 0 4px 4px 0;
	background: rgba(0, 0, 0, 0.03);
}

.agv-flow__gate h2 {
	margin-top: 0;
}

.agv-flow__form {
	margin-top: 1rem;
}

.agv-flow__obligations ul {
	margin: 0.5rem 0;
	padding-left: 1.25rem;
}

.agv-flow__obligations li + li {
	margin-top: 0.25rem;
}

.agv-flow__trail {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.agv-flow__trail > li {
	padding: 0.875rem 0;
	border-top: 1px solid currentColor;
	border-top-color: rgba(128, 128, 128, 0.25);
}

.agv-flow__trail p {
	margin: 0 0 0.25rem;
}

.agv-flow__who {
	font-size: var(--agv-t-sm);
	opacity: 0.75;
}

.agv-flow__trail blockquote {
	margin: 0.5rem 0 0;
	padding-left: 0.875rem;
	border-left: 2px solid rgba(128, 128, 128, 0.35);
	font-style: normal;
}

@media (prefers-color-scheme: dark) {
	.agv-flow__gate {
		background: rgba(255, 255, 255, 0.05);
	}
}

.agv-step__gate {
	margin: 0.5rem 0 0.25rem;
}

.agv-step__why summary {
	font-size: var(--agv-td-14);
}

/* -------------------------------------------------------------------------
   People and delegated authority

   Reuses the chip and stage vocabulary already defined above rather than
   inventing a third visual language for permissions. The only new shapes are
   the capability grid, which has to scroll sideways on a phone because it is
   thirteen rows against six columns, and the checkbox stacks in the grant
   form.
   ------------------------------------------------------------------------- */

.agv-identity > section {
	margin: 0 0 2rem;
}

.agv-identity h2 {
	margin: 0 0 0.375rem;
	font-size: 1.0625rem;
}

.agv-identity p {
	margin: 0 0 0.75rem;
	max-width: 62ch;
}

.agv-identity__you {
	padding: 1rem 1.125rem;
	border: 1px solid rgba(128, 128, 128, 0.25);
	border-radius: 10px;
}

.agv-identity__purpose {
	font-style: normal;
	padding-left: 0.875rem;
	border-left: 2px solid rgba(128, 128, 128, 0.35);
}

.agv-identity__caps {
	list-style: none;
	margin: 0.75rem 0 0.5rem;
	padding: 0;
	display: grid;
	gap: 0.3125rem;
}

.agv-identity__cap {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-size: var(--agv-td-14);
	opacity: 0.7;
}

.agv-identity__cap.is-held {
	opacity: 1;
}

.agv-identity__count {
	margin: 0;
	font-size: var(--agv-t-sm);
	opacity: 0.75;
}

.agv-identity__table {
	width: 100%;
}

.agv-identity__table th,
.agv-identity__table td {
	vertical-align: top;
	text-align: left;
}

.agv-identity__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin: 0 0 0.375rem;
}

.agv-identity__granted {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--agv-td-14);
}

.agv-identity__granted > li {
	margin: 0 0 0.1875rem;
}

.agv-identity__scope {
	margin: 0.25rem 0 0;
	font-size: var(--agv-t-sm);
	opacity: 0.75;
}

.agv-identity__grant {
	margin: 1rem 0 0;
	padding: 0.875rem 1rem;
	border: 1px solid rgba(128, 128, 128, 0.25);
	border-radius: 10px;
}

.agv-identity__grant summary {
	cursor: pointer;
	font-weight: 600;
}

.agv-identity__grant[open] summary {
	margin-bottom: 0.875rem;
}

.agv-identity__grant fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.agv-identity__grant legend {
	padding: 0;
	font-weight: 600;
	font-size: var(--agv-td-15);
}

.agv-identity__check {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0.375rem 0 0;
	font-size: var(--agv-td-14);
	font-weight: 400;
}

/* Thirteen capabilities against six roles does not fit a phone, so it scrolls
   rather than wrapping into something unreadable. */
.agv-identity__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.agv-identity__grid {
	min-width: 44rem;
	border-collapse: collapse;
}

.agv-identity__grid th[scope="row"] {
	text-align: left;
	font-weight: 400;
	padding-right: 1rem;
	max-width: 24rem;
}

.agv-identity__grid td {
	text-align: center;
	padding: 0.3125rem 0.5rem;
}

.agv-identity__roles {
	margin: 1rem 0 0;
}

.agv-identity__roles dt {
	font-weight: 600;
	margin: 0.625rem 0 0.125rem;
}

.agv-identity__roles dd {
	margin: 0;
	font-size: var(--agv-td-14);
	max-width: 62ch;
}

@media (prefers-color-scheme: dark) {
	.agv-identity__you,
	.agv-identity__grant {
		background: rgba(255, 255, 255, 0.04);
	}
}

/* -------------------------------------------------------------------------
   The house copy rule, applied to the original stylesheets

   A live audit of 164 production pages found decorative separators and
   printed copy that the house rule excludes, generated by CSS rather than by
   any template, which is why a source-wide check of string literals never saw
   them. The twelve original stylesheets have to stay byte-identical, so the
   corrections live here and this sheet is enqueued last, including after the
   print sheet, so that these rules win the cascade.

   Each separator is removed rather than replaced. A separator that exists to
   decorate has nothing to say, and the spacing it occupied is kept so the
   layout does not shift.
   ------------------------------------------------------------------------- */

.agv-cal__nations::before,
.agv-product__vplace::before {
	content: "";
	margin-right: 0;
}

.agv-cal__nations,
.agv-product__vplace {
	margin-left: 0.4rem;
}

@media print {

	/* Printed copy, reworded without the dash. The sentences are the
	   originals' own; only the punctuation changes. */
	.agv-player__meta::after {
		content: ". Watch at the URL above.";
	}

	.agv-track__step--done .agv-track__label::after {
		content: " (complete)";
	}

	.agv-track__step--current .agv-track__label::after {
		content: " (current stage)";
	}

	.agv-track__step--waiting .agv-track__label::after {
		content: " (not started)";
	}

	.agv-main::after {
		content: "Printed from Agrivencia. Payment rates, scheme windows and compliance obligations change. Verify against the publishing body before relying on any figure here.";
	}
}


/* --- The programme ticker ---------------------------------------------
 *
 * components.css animates .agv-ticker__track, which is also the element
 * carrying overflow:hidden. A transform moves the clipping box as well as its
 * contents, so instead of the text scrolling inside a fixed window, the whole
 * window slid left: measured on a 1536px viewport the track's left edge sat at
 * -382px, outside the bar, with both items drawn across the "Scheme
 * information" label. The animation also travelled -50% over a single copy of
 * the content, which cannot loop seamlessly whatever else is right.
 *
 * The clipping stays on the track and the movement moves to an inner element,
 * which is the only arrangement that works. The markup now repeats the item
 * set once, so -50% lands exactly on the seam. components.css is one of the
 * twelve stylesheets that stay byte identical, so the correction lives here.
 */
.agv-ticker__track {
	display: block;
	animation: none;
}
.agv-ticker__marquee {
	display: flex;
	gap: var(--agv-s6);
	width: max-content;
	white-space: nowrap;
	animation: agv-marquee 46s linear infinite;
}
.agv-ticker:hover .agv-ticker__marquee { animation-play-state: paused; }

/* --- Scheme detail on a phone ------------------------------------------
 *
 * sections.css collapses .agv-schemedetail__grid to a single column at 860px,
 * which is right, but a grid item defaults to min-width:auto and so refuses to
 * shrink below the intrinsic width of its contents. The spec table inside is
 * 442px wide, so on a 372px viewport the column stayed 443px and the whole
 * page scrolled sideways. The table already sits in .agv-table-wrap, which has
 * overflow-x:auto and is built to scroll on its own; it never got the chance
 * because its parent was pushed wide instead.
 *
 * min-width:0 lets the column reach the width the grid actually assigned it,
 * and the table then scrolls inside its wrapper as intended. sections.css is
 * one of the twelve stylesheets that stay byte identical, so this lives here.
 */
.agv-schemedetail__grid > * { min-width: 0; }
.agv-schemedetail__grid .agv-table-wrap { max-width: 100%; }

/* The same reasoning anywhere else a table sits inside a grid or flex child:
   the wrapper can only scroll if it is allowed to be narrower than its table. */
.agv-table-wrap { min-width: 0; max-width: 100%; }

/* --- The footer, and two things it was doing ---------------------------
 *
 * components.css draws a six pixel coloured dot before every footer link
 * through .agv-footer__col a::before. With list-style already set to none
 * that dot was the bullet: a reader sees a bulleted list of fifty or so
 * links in five columns, which is heavier than the links deserve and is the
 * opposite of the plain, premium register the rest of the page keeps. The
 * links are removed from bullet form and given their own quiet spacing.
 *
 * components.css is one of the twelve stylesheets that stay byte identical,
 * so the correction lives here.
 */
.agv-footer__col a::before { content: none; }
.agv-footer__col a { gap: 0; }
.agv-footer__col li { margin-bottom: .45rem; }

/* An instrument with no reading leaves its value slot empty rather than
   printing a dash; the slot still holds its line height so the strip does
   not jump when a reading arrives. */
.agv-instr__value:empty::after { content: ""; display: inline-block; min-height: 1em; }

/* Said to a screen reader, not drawn. */
.agv-sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


/* --- Grid tracks that can shrink on a narrow phone --------------------
 *
 * Twenty-three grids are declared as repeat(auto-fit or auto-fill,
 * minmax(NNNpx, 1fr)), with floors from 240px to 320px. That floor is a hard
 * minimum: where the container is narrower than it, the track keeps the floor
 * and the grid overflows rather than reflowing. On a 320px phone, after the
 * page gutter, about 288px is available, so every floor at or above 300px
 * pushes the page sideways and several others sit on the edge.
 *
 * minmax(min(NNNpx, 100%), 1fr) is the whole fix. Above the floor nothing
 * changes at all, so every desktop and tablet layout is exactly as designed;
 * below it the track is allowed to be as narrow as its container instead of
 * forcing the page to scroll. The floors are kept at their original values so
 * the breakpoints the design chose still decide when columns collapse.
 *
 * base.css, megamenu.css, sections.css and surfaces.css are four of the twelve
 * stylesheets that stay byte identical, so the corrections live here.
 */
.agv-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.agv-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.agv-grid--verticals { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.agv-grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.agv-panel__cards { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.agv-panel__foot { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.agv-features__groups { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.agv-case__cols { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.agv-pricing__grid { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.agv-checklist__list { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.agv-gallery__grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.agv-farmdir__grid { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.agv-revmodel__principles { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.agv-revmodel__streams { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.agv-harvest__months { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.agv-harvest__ctas { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.agv-lots--public { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.agv-auctionhouse__bench { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.agv-unionhall__bodies { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.agv-featurelist--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.agv-dash__panels.agv-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr)); }
.agv-jobs__dlist { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.agv-docs__grid.agv-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(248px, 100%), 1fr)); }

/* ---------------------------------------------------------------------
 * The navigation row between 981px and 1258px
 *
 * The desktop navigation needs 1258 pixels to lay out: the launcher, nine
 * primary items and a search field whose own minimum is 220 pixels. It
 * collapsed to the menu button only below 981, which left every viewport
 * between those two numbers showing a nav that did not fit. The document
 * scrolled sideways by up to 234 pixels, measured at 1024, which is the
 * width of a landscape tablet and of a great many laptops.
 *
 * The rules below are the ones cockpit.css applies at 980, restated at the
 * width the layout actually needs. The original stylesheet stays byte
 * identical, so the change lives here.
 * ------------------------------------------------------------------- */
@media (max-width: 1258px) {
	.agv-nav, .agv-launcher { display: none; }
	.agv-nav-toggle {
		display: inline-grid; place-items: center;
		width: 36px; height: 34px; margin-left: auto;
		background: rgba(255,255,255,.1); border: 0; border-radius: var(--agv-r-sm);
		color: inherit;
	}
	.agv-nav-toggle__bars, .agv-nav-toggle__bars::before, .agv-nav-toggle__bars::after {
		display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px;
		transition: transform var(--agv-base) var(--agv-ease);
	}
	.agv-nav-toggle__bars { position: relative; }
	.agv-nav-toggle__bars::before { content: ""; position: absolute; top: -5px; }
	.agv-nav-toggle__bars::after  { content: ""; position: absolute; top: 5px; }
	.agv-nav-toggle[aria-expanded="true"] .agv-nav-toggle__bars { background: transparent; }
	.agv-nav-toggle[aria-expanded="true"] .agv-nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
	.agv-nav-toggle[aria-expanded="true"] .agv-nav-toggle__bars::after  { transform: translateY(-5px) rotate(-45deg); }
	.agv-search { margin-left: 0; }
}

/* The mobile navigation panel has to open at the same width as the button
   that opens it, or the button appears with nothing behind it. */
@media (max-width: 1258px) {
	.agv-mobile-nav { inset: var(--agv-cockpit-h, 92px) 0 0 0; padding-top: var(--agv-s4); }
}

/* ---------------------------------------------------------------------
 * The eyebrow rule
 *
 * Every section label carried a 22 pixel bar in front of it. It is a dash
 * in everything but name, and the house rule is that dashes do not appear
 * on these pages. The label is already set apart by its case, its tracking
 * and its colour, so nothing is lost by removing it.
 * ------------------------------------------------------------------- */
.agv-eyebrow::before { content: none; }

/* ---------------------------------------------------------------------
 * Grid items that refuse to shrink on a small phone
 *
 * A grid item's default minimum is its min-content width, so a track sized
 * 1fr still cannot go below whatever the widest unbreakable thing inside it
 * happens to be. Measured at 360px, the newsletter block held a 428px column
 * and the footer brand a 382px one, which pushed the whole document 84px
 * wider than the screen. Setting the minimum to zero lets the track do what
 * 1fr was asking for.
 * ------------------------------------------------------------------- */
.agv-newsletter__grid > *,
.agv-footer__top > *,
.agv-footer__cols > *,
.agv-case__cols > *,
.agv-fcols__grid > * { min-width: 0; }

.agv-newsletter__grid,
.agv-footer__top { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ *
 * Hero: keep the first action above the fold on a phone.
 *
 * The hero's markup runs eyebrow, title, standfirst, body, actions.
 * Measured at 390 x 844 with the staging banner showing, the body
 * paragraph pushed the primary action off the first screen, so the one
 * thing the hero exists to offer (put your own numbers in a calculator)
 * could only be found by scrolling.
 *
 * The fix is ordering, not deletion: on narrow viewports the actions and
 * badges move above the body paragraph, so the reader is offered the
 * calculator first and the reasoning immediately after it. Nothing is
 * hidden, and on wider screens the written order is untouched.
 * ------------------------------------------------------------------ */
@media (max-width: 782px) {
	.agv-hero__inner { display: flex; flex-direction: column; }
	.agv-hero__inner > .agv-eyebrow      { order: 1; }
	.agv-hero__inner > .agv-hero__title  { order: 2; }
	.agv-hero__inner > .agv-hero__standfirst { order: 3; }
	.agv-hero__inner > .agv-hero__actions    { order: 4; }
	.agv-hero__inner > .agv-hero__body       { order: 5; }
	.agv-hero__inner > .agv-hero__badges     { order: 6; }
	.agv-hero__inner > *                     { order: 7; }
}

/* ------------------------------------------------------------------ *
 * The platform statement and the Advisor routes.
 *
 * Two new homepage sections. Styles live here rather than in the theme's
 * own stylesheets, which stay byte-identical by standing instruction.
 * Everything below resolves colour through the existing tone tokens so
 * both sections inherit the section tone they are placed in.
 * ------------------------------------------------------------------ */

/* The platform statement: a readable measure for the prose, pillars under it. */
.agv-platform__prose { max-width: 68ch; margin: 0 auto; }
.agv-platform__p { margin: 0 0 1.15em; line-height: 1.65; }
.agv-platform__p--lead { font-size: 1.12em; line-height: 1.6; }
.agv-platform__points {
	list-style: none;
	margin: 2.75rem 0 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.agv-platform__point { margin: 0; }
.agv-platform__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	margin-bottom: 0.7rem;
	background: color-mix(in srgb, currentColor 9%, transparent);
}
.agv-platform__icon .agv-icon { width: 21px; height: 21px; }
.agv-platform__ptitle { margin: 0 0 0.35rem; font-size: var(--agv-t-base); }
.agv-platform__pblurb { margin: 0; font-size: var(--agv-td-15); line-height: 1.55; opacity: 0.86; }

/* The Advisor routes: whole-card links, each with its own destination. */
.agv-advisor__grid { margin-top: 0.5rem; }
.agv-advisor__card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.6rem;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	background: color-mix(in srgb, currentColor 7%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.agv-advisor__card:hover,
.agv-advisor__card:focus-visible {
	transform: translateY(-2px);
	background: color-mix(in srgb, currentColor 12%, transparent);
	border-color: color-mix(in srgb, currentColor 34%, transparent);
}
.agv-advisor__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	background: color-mix(in srgb, currentColor 14%, transparent);
}
.agv-advisor__icon .agv-icon { width: 22px; height: 22px; }
.agv-advisor__title { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.agv-advisor__blurb { margin: 0; font-size: var(--agv-td-15); line-height: 1.58; opacity: 0.88; flex: 1 1 auto; }
.agv-advisor__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	font-size: var(--agv-td-15);
	margin-top: 0.3rem;
}
.agv-advisor__cta .agv-icon { width: 16px; height: 16px; transition: transform 160ms ease; }
.agv-advisor__card:hover .agv-advisor__cta .agv-icon { transform: translateX(3px); }
.agv-advisor__note {
	margin: 2rem auto 0;
	max-width: 76ch;
	font-size: var(--agv-td-14);
	line-height: 1.6;
	opacity: 0.78;
}

/* The audience cards: the whole card reads as one target. */
.agv-persona__link { color: inherit; text-decoration: none; }
.agv-persona__link::after { content: ""; position: absolute; inset: 0; }
.agv-persona { position: relative; }
.agv-persona__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.6rem;
	font-size: var(--agv-td-14);
	font-weight: 600;
	opacity: 0.8;
}
.agv-persona__more .agv-icon { width: 15px; height: 15px; transition: transform 160ms ease; }
.agv-persona:hover .agv-persona__more .agv-icon { transform: translateX(3px); }

@media (max-width: 782px) {
	.agv-platform__points { grid-template-columns: 1fr; gap: 1.25rem; }
	.agv-advisor__card { padding: 1.3rem; }
}

/* ------------------------------------------------------------------ *
 * The floating dock on a phone.
 *
 * .agv-float is position:fixed bottom-right with no narrow-viewport rule
 * of its own: it is hidden for print and nowhere else. At 390px its four
 * stacked buttons form a column roughly 240px tall sitting on top of the
 * page, and it was measurably covering card text, cutting off a heading
 * mid-word and running the body underneath it.
 *
 * On a phone the dock keeps its primary action, which is booking an
 * appointment and is the page's main call to action anyway, and stands the
 * three secondary shortcuts down. They are duplicates of things reachable
 * from the page itself, so nothing becomes unreachable. Space is also
 * reserved at the end of the document so the remaining button never rests
 * on the last of the content.
 * ------------------------------------------------------------------ */
@media (max-width: 782px) {
	.agv-float { bottom: var(--agv-s4); right: var(--agv-s3); gap: 0; }
	/*
	 * Collapsed, not removed. Hiding nine tools to solve a layout problem
	 * took away nine real tools; they now sit behind a disclosure and open
	 * on request. The toggle itself only appears where the collapse is in
	 * force, so a wide screen still shows the whole dock with no extra
	 * control to explain.
	 */
	.agv-float { bottom: var(--agv-s4); right: var(--agv-s3); gap: 10px; align-items: flex-end; }
	.agv-float__rest {
		display: none;
		flex-direction: column;
		gap: 10px;
		align-items: flex-end;
	}
	/*
	 * components.css carries `.agv-float__btn:nth-child(n+5) { display: none }`
	 * below 720px, which has been hiding the fifth dock button onward for as
	 * long as it has been there. That is the larger part of the tools going
	 * missing on a phone, and it predates the disclosure. It cannot be
	 * edited where it lives, because the twelve original stylesheets stay
	 * byte-identical by standing instruction, so it is overridden here.
	 *
	 * The opened stack is then taller than a phone, so it scrolls rather
	 * than running off the top of the screen.
	 */
	.agv-float.is-open .agv-float__rest {
		display: flex;
		max-height: calc(100vh - 190px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 2px;
		scrollbar-width: thin;
	}
	.agv-float__rest .agv-float__btn:nth-child(n+5) { display: inline-flex; }
	.agv-float__rest .agv-float__btn--top[hidden] { display: none; }
	.agv-float__more { display: inline-flex; order: 2; }
	.agv-float__btn--primary { order: 1; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); }
	.agv-float__rest { order: 0; }
	.agv-site-footer, .agv-footer { padding-bottom: calc(var(--agv-s6) + 56px); }
}

/* Above the collapse the dock is simply itself, and the toggle is absent. */
@media (min-width: 783px) {
	.agv-float__more { display: none; }
	.agv-float__rest { display: contents; }
}

/* A viewer who prefers less motion gets no lift on the new cards. */
@media (prefers-reduced-motion: reduce) {
	.agv-advisor__card,
	.agv-advisor__cta .agv-icon,
	.agv-persona__more .agv-icon { transition: none; }
	.agv-advisor__card:hover { transform: none; }
}

/* ------------------------------------------------------------------ *
 * The platform statement, centred.
 *
 * The section head is left-aligned everywhere else on the site, which is
 * right for a section a reader scans past. This one is the page's answer
 * to "what is this", so it is given the middle of the page. Only the head
 * and the prose centre: the four pillars underneath stay left-aligned,
 * because centred body text in a grid is harder to read, not easier.
 * ------------------------------------------------------------------ */
.agv-platform.is-centred .agv-shead,
.agv-platform.is-centred .agv-shead > * {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
/*
 * The head is centred; the prose is not. The first draft centred both,
 * and the opening paragraph runs to ten lines: centred text gives every
 * line a different starting point, so the eye has to hunt for the next
 * one. The block is centred on the page, the words inside it are ranged
 * left, which is the combination that actually reads.
 */
.agv-platform.is-centred .agv-platform__prose { text-align: left; }
.agv-platform.is-centred .agv-platform__p--lead { font-size: 1.1em; }
.agv-platform.is-centred .agv-platform__points { text-align: left; }
.agv-platform.is-centred .agv-platform__icon { margin-left: auto; margin-right: auto; }
.agv-platform.is-centred .agv-platform__point { text-align: center; }

/* ------------------------------------------------------------------ *
 * The guide offer: what is promised in return for an email address.
 * ------------------------------------------------------------------ */
.agv-leadgen__promise {
	list-style: none;
	margin: var(--agv-s4) 0 0;
	padding: 0;
	display: grid;
	gap: var(--agv-s2);
}
.agv-leadgen__promise li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: var(--agv-td-135);
	line-height: 1.55;
}
.agv-leadgen__promise .agv-icon {
	width: 17px;
	height: 17px;
	flex: none;
	margin-top: 2px;
	opacity: .9;
}
.agv-leadgen__thanks {
	margin: var(--agv-s4) 0 0;
	padding-left: 13px;
	border-left: 2px solid currentColor;
	font-size: var(--agv-t-sm);
	line-height: 1.6;
	opacity: .86;
}

/* ------------------------------------------------------------------ *
 * Legibility and reach, found by measuring every section at 390, 768,
 * 1024 and 1440.
 *
 * Two faults recurred across the page. Labels had drifted to 9 and 10
 * pixels, which is below what anyone should be asked to read and well
 * under the 11px floor the rest of the type scale keeps to. And on touch
 * widths a run of links and inputs measured 13 to 39 pixels tall against
 * a 44px target, which is the size a finger actually needs.
 *
 * These are corrections to shipped values, so they live here rather than
 * in the twelve original stylesheets, which stay byte-identical.
 * ------------------------------------------------------------------ */

/* Nothing on the page is smaller than 11px, and labels that carry meaning
   sit at 11.5 so they survive a phone in daylight. */
.agv-card__flag,
.agv-scheme__nation,
.agv-rescard__cat,
.agvh-form__dayname,
.agvh-form__daymon,
.agvh-form__dayfree,
.agvh-hero__kicker,
.agvh-hero__tilesh { font-size: var(--agv-td-115); }
.agvh-form__dayfree { font-size: var(--agv-t-xs); }

@media (pointer: coarse), (max-width: 860px) {
	/*
	 * A finger is about 9mm across. Anything it has to hit gets 44px,
	 * which is the floor both WCAG and the platform guidelines settle on.
	 */
	.agv-persona__link,
	.agvh__textlink,
	.agv-seeall__link,
	.agv-player__source,
	.agv-dash__view,
	.agv-nsw__pin {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
	/* Checkboxes and radios are drawn small by default; the label beside
	   them is the real target, so the pair is sized together. 24px is the
	   WCAG 2.5.8 AA floor for the box itself, and the label gets the full
	   44px row so the whole line is tappable.
	
	   These labels are <label> elements, which are display: inline by
	   default, and an inline box ignores min-height and align-items. An
	   earlier version of this rule set both on them and neither took
	   effect, so the display is set here too. */
	.agv-field input[type="checkbox"],
	.agv-field input[type="radio"],
	.agv-consent-note input[type="checkbox"],
	.agvh-form__consent input[type="checkbox"],
	.agvh-form__route input[type="radio"] {
		width: 24px;
		height: 24px;
		min-height: 24px;
		max-height: 24px;
		flex: none;
	}
	/* The hero form's labels wrap their text in a <span>, so each is a
	   clean two-item row and flex is right for them. */
	.agvh-form__consent,
	.agvh-form__route {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
	}
	/* The consent note is different: its label holds the box, a bare text
	   node and an inline Privacy Notice link. Flex would make all three
	   separate flex items and break the sentence apart, so the label is a
	   block with the box taken out of flow. The prose then runs normally,
	   the link stays inline inside it, and the label still carries a 44px
	   row that toggles the box when tapped anywhere.

	   The newsletter section reuses this class on a <p> with no box in it,
	   so these are scoped to the label and leave that paragraph alone. */
	label.agv-consent-note {
		display: block;
		position: relative;
		min-height: 44px;
		padding-left: 34px;
		padding-top: 9px;
		line-height: 1.6;
	}
	label.agv-consent-note input[type="checkbox"] {
		position: absolute;
		left: 0;
		top: 8px;
	}
	/* :not([type="checkbox"]) matters. Without it this rule stretched the
	   consent box to 46px tall inside a 14px inline label, which is how it
	   came to overflow its own label on tablet widths. */
	.agv-subscribe input[type="email"],
	.agv-subscribe input[type="text"],
	.agv-leadgen__form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
	.agv-leadgen__form select { min-height: 46px; }
}

/* ------------------------------------------------------------------ *
 * "Showing eight of eighty-four."
 * ------------------------------------------------------------------ */
.agv-seeall {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--agv-s3);
	margin: var(--agv-s5) 0 0;
	padding-top: var(--agv-s4);
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.agv-seeall__count {
	font-size: var(--agv-td-125);
	font-variant-numeric: tabular-nums;
	opacity: .72;
}
.agv-seeall__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--agv-td-135);
	font-weight: 740;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}
.agv-seeall__link .agv-icon { width: 15px; height: 15px; transition: transform .16s; }
.agv-seeall__link:hover .agv-icon { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
	.agv-seeall__link .agv-icon { transition: none; }
}

/* ------------------------------------------------------------------ *
 * The remaining controls a finger has to hit.
 *
 * Measured at 390px: the module filter's search box at 28px, consent
 * checkboxes at 13 and 18, and scheme radios at 17, against the 44px
 * floor. Raised with enough specificity to beat the component sheets
 * that set them, since those stay byte-identical.
 *
 * Inline links inside a sentence are deliberately left alone. WCAG 2.5.8
 * exempts them, and giving a word in a paragraph a 44px box would break
 * the line it sits in.
 * ------------------------------------------------------------------ */
@media (pointer: coarse), (max-width: 860px) {
	.agv-section input[type="search"],
	.agv-section input[type="text"],
	.agv-section input[type="email"],
	.agv-section input[type="tel"],
	.agv-section select { min-height: 46px; }

	/* 24px is the WCAG 2.5.8 AA floor for a target. 22px, which is where
	 * these sat, is under it. The label around each one is given a 44px
	 * row as well, so the whole line is tappable and not just the box. */
	.agv-section input[type="checkbox"],
	.agv-section input[type="radio"] {
		width: 24px;
		height: 24px;
		flex: none;
	}
	.agv-section label:has(> input[type="checkbox"]),
	.agv-section label:has(> input[type="radio"]) { min-height: 44px; }
}

/* A block-level link in a note still reads as a control, so it gets the
 * full row. Links inside a sentence are left alone deliberately: WCAG
 * 2.5.8 exempts them, and a 44px box around a word would break its line. */
@media (pointer: coarse), (max-width: 860px) {
	.agv-section p.agv-note > a,
	.agv-section .agvh-form__redirect > a {
		display: inline-block;
		min-height: 44px;
		line-height: 44px;
	}
}

/* ------------------------------------------------------------------ *
 * The instrument rail's labels.
 *
 * cockpit.css caps .agv-instr__label at 108px and sets it at 9.5px.
 * "Soil temperature at 10cm" measures 112px, so it rendered as
 * "Soil temperature at 10..." on every viewport: a truncated label on a
 * strip of numbers whose whole job is to be read at a glance.
 *
 * 9.5px is also below the readability floor used everywhere else on the
 * page. Both are raised here, because cockpit.css is one of the twelve
 * stylesheets that stay byte identical. The rail scrolls horizontally,
 * so the extra width costs nothing.
 * ------------------------------------------------------------------ */
.agv-instr__label {
	font-size: var(--agv-t-xs);
	max-width: 168px;
}

/* ------------------------------------------------------------------ *
 * A link inside a note must not become a flex item.
 *
 * p.agv-note is display:flex with flex-wrap:nowrap, which suits what it
 * was built for: an icon beside a line of text. The newsletter consent
 * copy puts a Privacy Notice link inline in the prose instead, and flex
 * makes that link an item of its own, competing with the text for width.
 * Being shrinkable, it lost: measured at 44px wide and 59px tall on
 * desktop, and 30px wide by 176px tall on a phone, with "Privacy" broken
 * down the middle across nine lines.
 *
 * flex:none stops it shrinking below its content, so the text wraps
 * instead, which is what should have happened. Measured at 390, 768, 1024
 * and 1440: the link settles at 89px on one line and no note overflows.
 * ------------------------------------------------------------------ */
p.agv-note > a {
	flex: none;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ *
 * A note that is prose should be laid out as prose.
 *
 * The rule above stops a link in a note being squeezed, but it does not
 * fix the cause: the paragraph is still a flex row, so a sentence that
 * contains a link becomes three items, [text] [link] [full stop], each
 * separated by the row's 8px gap. The newsletter consent line read
 * "... Read our" at the end of one column with "Privacy Notice" and a
 * lone full stop parked away to the right.
 *
 * Flex is right for what the class was built for, an icon beside a line
 * of text. It is wrong for a paragraph. A note with no icon of its own
 * is laid out as a block, so its sentence flows and the link and the
 * stop sit where they were written. Measured at 1440: the two prose
 * notes go from 83px and 59px tall to 63px and 39px, and the eight
 * notes that do carry an icon are untouched.
 * ------------------------------------------------------------------ */
p.agv-note:not(:has(> svg)):not(:has(> .agv-icon)) {
	display: block;
}

/* ------------------------------------------------------------------------
 * WCAG 2.5.8 Target Size (Minimum): 24 by 24 CSS pixels.
 *
 * Two site-wide shortfalls, found by measuring rendered geometry rather than
 * reading the stylesheets. Both are on every page that carries the pattern,
 * not only the new ones.
 *
 * 1. Breadcrumb links rendered 21px tall. They are display:block, so the
 *    inline exception in 2.5.8 does not apply to them.
 * 2. Checklist checkboxes rendered 19 by 19 on a fine pointer. An earlier
 *    correction sized these to 24px, but scoped it to (pointer: coarse) and
 *    (max-width: 860px). 2.5.8 applies whatever the pointer is, so a mouse
 *    user on a wide screen was left with the failing size.
 * ---------------------------------------------------------------------- */

.agv-crumbs ol > li > a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
}

/* Unscoped: the pointer type does not change the success criterion. */
.agv-checklist__item > label > input[type="checkbox"],
.agv-checklist__item > label > input[type="radio"] {
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	flex: none;
}

/* Form controls, at any pointer type.
 *
 * Fixing the two shortfalls above revealed three more that they had been
 * masking, all desktop-only and all for the same reason: the earlier sizing
 * was written inside a (pointer: coarse) / (max-width: 860px) block, so a
 * mouse user kept the failing sizes. Measured: the form consent box at 20px,
 * the newsletter marketing box at 13px, and the video player's source link
 * at 21px tall. Sizing them here, unscoped, makes a wide screen agree with
 * what a phone already did. */

.agv-field input[type="checkbox"],
.agv-field input[type="radio"],
.agv-form input[type="checkbox"],
.agv-form input[type="radio"],
.agv-consent-note input[type="checkbox"],
.agvh-form__consent input[type="checkbox"],
.agvh-form__route input[type="radio"],
.agv-newsletter input[type="checkbox"],
input[name="marketing"] {
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	flex: none;
}

a.agv-player__source {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
}

/* The finder's search field measured 23px tall: 13px text, 21px line box and
 * 1px of padding, one pixel under the criterion. It appears wherever the
 * finder section does, so it is sized here rather than on the one page where
 * it was noticed. */

.agv-filters__search input[type="search"],
.agv-filters__search input[name="s"],
.agv-filters input[type="search"] {
	min-height: 26px;
	padding-top: 3px;
	padding-bottom: 3px;
}

/* ------------------------------------------------------------------------
 * WCAG 1.4.3 Contrast: form and label text inside dark panels.
 *
 * .agv-tone--deep and .agv-footer set white text, but .agv-field__label and
 * .agv-eyebrow carry an explicit dark colour for use on a white form card.
 * That explicit colour beats the inherited white, so the newsletter form's
 * "Email address" label rendered rgb(43,49,34) on rgb(11,34,19): a measured
 * ratio of 1.03 against a required 4.5, which is an invisible label in the
 * footer of every page on the site.
 *
 * The codebase already solves this for the leadgen form with color: inherit.
 * This extends the same treatment to the dark contexts that were missed.
 * Measured, not assumed: these selectors are the ones the sweep found.
 * ---------------------------------------------------------------------- */

.agv-footer .agv-field__label,
.agv-footer__subscribe .agv-field__label,
.agv-newsletter__form .agv-field__label,
.agv-tone--deep .agv-field__label,
.agv-tone--colour .agv-field__label,
.agv-tone--deep .agv-form__help,
.agv-tone--colour .agv-form__help,
.agv-footer .agv-form__help,
.agv-tone--deep .agv-field__unit,
.agv-tone--colour .agv-field__unit,
.agv-footer .agv-field__unit {
	color: inherit;
}

/* The --on variant already inherits; the plain class does not, so an eyebrow
 * that lands in a dark section keeps its light-background green. Measured at
 * 1.50 and 1.90. */
.agv-tone--deep .agv-eyebrow,
.agv-tone--colour .agv-eyebrow,
.agv-footer .agv-eyebrow {
	color: inherit;
	opacity: 0.82;
}

/* ------------------------------------------------------------------------
 * WCAG 1.4.3 Contrast: the remaining measured failures.
 *
 * tokens.css is one of the stylesheets that stays byte-identical, so the two
 * token corrections are overridden here. A bare :root carries less specificity
 * than the dark-mode blocks in tokens.css (:root:not([data-agv-theme="light"])
 * and :root[data-agv-theme="dark"]), so these change the light palette only
 * and dark mode keeps its own lighter inks, which are correct against a dark
 * canvas.
 *
 * Measured, with the darkening computed to the criterion rather than guessed:
 *   --agv-ink-4 #6f7863 gave 4.11 on the tinted panels; #69715e gives 4.53
 *   --agv-mute  #8d967f gave 3.09 on white;              #727966 gives 4.52
 * ---------------------------------------------------------------------- */

:root {
	--agv-ink-4: #69715e;
	--agv-mute:  #6a7160;
}

/*
 * --agv-mute ends up close to --agv-ink-4, and that is the honest outcome
 * rather than an oversight. The original #8d967f was the lightest step of a
 * two-step grey hierarchy, and no value light enough to read as a distinct
 * step clears 4.5 at 11px on the tinted panels this text lands on. The
 * hierarchy that cannot be made accessible gives way to the one that can;
 * weight and size still separate these two roles.
 *
 * Verified against every surface in the palette that carries this text:
 *   #ffffff 5.07   #f8f9f2 4.78   #f4faf3 4.78   #f1f3e7 4.52   #e9f5e6 4.51
 */

/* The vertical accent read as small text.
 *
 * .agv-vcard__count used --v-colour, the bright base of each vertical ramp,
 * and base fails 4.5 on white for 6 of the 14 verticals (climate worst at
 * 2.07). The deep variant of the same ramp fails for only one, so small text
 * takes deep, and the color-mix guarantees the floor for that one without
 * altering the brand ramp itself: the ramps are derived from HSL in
 * AGV_Colours, and shifting them would move every graphic that uses them. */

.agv-vcard__count {
	color: color-mix(in srgb, var(--v-deep, var(--v-colour)) 92%, var(--agv-ink));
}

.agv-vcard__promise {
	color: color-mix(in srgb, var(--v-deep) 92%, var(--agv-ink));
}

/* .agv-pill--on laid rgba(255,255,255,.18) over the section colour, which
 * lightens the background under white text: measured 3.63 on 17 pages, and
 * lightening can only ever make white text worse. Darkening the chip instead
 * keeps the white text and the subtle-chip intent. This one is a visible
 * change: the chip now reads slightly darker than its section rather than
 * slightly lighter. */
.agv-pill--on {
	background: rgba(0, 0, 0, 0.26);
}

/*
 * Except in dark mode, where the same change makes it worse. There
 * --agv-mod-on is dark (the light-accent-with-dark-text inversion above), so
 * darkening the chip put dark text on a darkened chip: measured 3.26 across
 * 17 pages. The original lightening overlay is correct there, because it
 * raises the chip away from the dark text rather than toward it.
 */
@media (prefers-color-scheme: dark) {
	:root:not([data-agv-theme="light"]) .agv-pill--on {
		background: rgba(0, 0, 0, 0.38);
		color: #fff;
	}
}
:root[data-agv-theme="dark"] .agv-pill--on {
	background: rgba(0, 0, 0, 0.38);
	color: #fff;
}

/*
 * The chip states its own colour rather than inheriting one, because it
 * appears in two kinds of section: some set white text, others set the dark
 * --agv-mod-on. A single overlay cannot suit both, so whichever direction it
 * took, one of the two measured under 4.5: lightening gave 3.07 against white
 * text, darkening gave 3.26 against the dark text. Fixing both halves here
 * makes it independent of the section it lands in.
 */

/* ------------------------------------------------------------------------
 * Dark mode: the module colour tokens it never received.
 *
 * header.php hardcodes data-agv-theme="auto", so every visitor whose system
 * prefers dark gets this theme. Measured across 69 page templates it carried
 * 140 contrast failures, against zero in light mode, and the cause is one
 * omission rather than many mistakes: the dark block in tokens.css redefines
 * 3 of the 12 --agv-mod-* tokens (tint, tint2, wash) and leaves the other 9
 * at their light-mode values. Seven of those nine are used as text, across
 * 109 rules, so dark green text landed on dark panels everywhere.
 *
 * Worked examples from the sweep:
 *   --agv-mod-ink  #10250f on --agv-mod-tint #1c2b1a   1.01
 *   --agv-mod-deep #12331c on surfaces                 1.61
 *   --agv-mod-shade #24631f on #171c11                 2.38, on 37 pages
 *
 * The replacements reuse the brand's own lighter steps rather than fading the
 * dark greens toward white, which desaturates them into grey and loses the
 * brand. Every value below clears 4.5 against all five dark surfaces
 * (#10140c, #171c11, #1d2317, #232a1c and #1c2b1a); the worst case is
 * #232a1c and the figures are in the comments.
 *
 * --agv-mod-on inverts with them. It is the text drawn ON --agv-mod-base, and
 * white over the lighter base measures 3.03, so in dark mode that text goes
 * dark instead: the usual light-accent-with-dark-text inversion.
 *
 * These selectors mirror the two in tokens.css exactly, so this applies in
 * the same circumstances and nowhere else.
 * ---------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
	:root:not([data-agv-theme="light"]) {
		--agv-mod-base:  #4aa74e;  /* was #2f7d32, 2.89 -> 4.88 */
		--agv-mod-shade: #4aa74e;  /* was #24631f, 2.03 -> 4.88 */
		--agv-mod-ink:   #eef1e6;  /* was #10250f, 1.01 -> 12.93 */
		--agv-mod-on:    #0b2213;  /* was #ffffff, 3.03 on the new base -> 5.53 */
		--agv-mute:      #89917e;  /* was #737c66, 3.38 -> 4.52 */
		--agv-tint:      #1d2317;
	}
}

:root[data-agv-theme="dark"] {
	--agv-mod-base:  #4aa74e;
	--agv-mod-shade: #4aa74e;
	--agv-mod-ink:   #eef1e6;
	--agv-mod-on:    #0b2213;
	--agv-mute:      #89917e;
	--agv-tint:      #1d2317;
}

/*
 * --agv-mod-deep is deliberately NOT lightened. It is a dark panel background
 * in four rules and text in six, and lightening it painted .agv-statband__value
 * light-on-light at a measured ratio of 1.00. Only one of its text uses
 * actually failed, so that one is fixed directly and the token keeps the dark
 * value its backgrounds depend on.
 */
@media (prefers-color-scheme: dark) {
	:root:not([data-agv-theme="light"]) .agv-farmcard__offer { color: var(--agv-brand-glow); }
}
:root[data-agv-theme="dark"] .agv-farmcard__offer { color: var(--agv-brand-glow); }

/*
 * --agv-tint is referenced seven times as var(--agv-tint, #f4f7f2) and was
 * never defined anywhere, so every one of those panels took the light
 * literal in both themes. In light mode that is correct and invisible; in
 * dark mode it painted a light panel under light text, which measured 1.06
 * and is simply unreadable. Defining it for light mode as well means the
 * fallback never fires again, and the light appearance is unchanged because
 * the value is the literal those rules were already using.
 */
:root {
	--agv-tint: #f4f7f2;
}

/* ------------------------------------------------------------------------
 * Legal documents in dark mode.
 *
 * legal.css sets background:#fff and color:#17231b on the section, so it is
 * self-consistent in light mode. In dark mode the headings take their colour
 * from --agv-ink, which is light, while the section keeps its hardcoded
 * white: measured rgb(238,241,230) on rgb(255,255,255), a ratio of 1.14.
 * That is every legal page, privacy and terms and cookies and complaints
 * among them, unreadable for any visitor whose system prefers dark.
 *
 * The borders, the muted date and the focus outline are hardcoded light-mode
 * values in the same file and are corrected here with it, because a dark
 * green focus ring on a dark panel is no more visible than the text was.
 * ---------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
	:root:not([data-agv-theme="light"]) .agv-legal-document {
		background: var(--agv-surface);
		color: var(--agv-ink);
	}
	:root:not([data-agv-theme="light"]) .agv-legal-document__header,
	:root:not([data-agv-theme="light"]) .agv-legal-document__body section {
		border-color: var(--agv-line);
	}
	:root:not([data-agv-theme="light"]) .agv-legal-document__contents {
		border-color: var(--agv-line);
	}
	:root:not([data-agv-theme="light"]) .agv-legal-document__date {
		color: var(--agv-ink-4);
	}
	:root:not([data-agv-theme="light"]) .agv-legal-document a:focus-visible {
		outline-color: var(--agv-brand-glow);
	}
}

:root[data-agv-theme="dark"] .agv-legal-document {
	background: var(--agv-surface);
	color: var(--agv-ink);
}
:root[data-agv-theme="dark"] .agv-legal-document__header,
:root[data-agv-theme="dark"] .agv-legal-document__body section,
:root[data-agv-theme="dark"] .agv-legal-document__contents {
	border-color: var(--agv-line);
}
:root[data-agv-theme="dark"] .agv-legal-document__date { color: var(--agv-ink-4); }
:root[data-agv-theme="dark"] .agv-legal-document a:focus-visible { outline-color: var(--agv-brand-glow); }

/* The brand green as text in dark mode.
 *
 * --agv-brand #2f7d32 measured 3.39 on the dark surfaces, on 23 pages. It
 * cannot simply be lightened for dark mode: it backs 15 rules where white
 * sits on top of it, and white over the lighter green measures 3.03. So the
 * two consumers that render it as text are corrected instead, using the
 * brand's own lighter step at 4.88 against the worst dark surface. */

@media (prefers-color-scheme: dark) {
	:root:not([data-agv-theme="light"]) .agv-eyebrow:not(.agv-eyebrow--on) {
		color: var(--agv-brand-lite);
	}
	:root:not([data-agv-theme="light"]) .agv-app a:not(.agv-btn):not(.agv-tile):not(.agv-appnav__link) {
		color: var(--agv-brand-lite);
	}
}
:root[data-agv-theme="dark"] .agv-eyebrow:not(.agv-eyebrow--on) { color: var(--agv-brand-lite); }
:root[data-agv-theme="dark"] .agv-app a:not(.agv-btn):not(.agv-tile):not(.agv-appnav__link) { color: var(--agv-brand-lite); }

/* ------------------------------------------------------------------------
 * Module-coloured panels in dark mode.
 *
 * Module pages carry their vertical's ramp as inline custom properties: a
 * single module page emits 1,092 of them, with light values such as
 * --agv-mod-wash: #f6faf4 and --agv-mod-tint: #ecf7e9. Inline declarations
 * beat any :root rule, so redefining those tokens for dark mode has no
 * effect there, and module pages are the bulk of the site.
 *
 * So the consumers are corrected rather than the tokens. Each light panel
 * becomes a dark one derived from the same inline --agv-mod-base, which keeps
 * every module visually distinct in dark mode instead of flattening them all
 * to one grey, and needs no cooperation from the inline values.
 *
 * .agv-instr__help is a different fault in the same family: it sets
 * background: var(--agv-ink) with white text, meaning "invert me". In dark
 * mode --agv-ink is light, so the inversion ran backwards and produced white
 * text on a near-white panel. It takes a fixed dark panel instead.
 * ---------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
	:root:not([data-agv-theme="light"]) .agv-tone--tint {
		background: color-mix(in srgb, var(--agv-mod-base) 10%, var(--agv-canvas));
	}
	:root:not([data-agv-theme="light"]) .agv-figcard,
	:root:not([data-agv-theme="light"]) .agv-calc__output,
	:root:not([data-agv-theme="light"]) .agv-case__problem,
	:root:not([data-agv-theme="light"]) .agv-media__wash {
		background: color-mix(in srgb, var(--agv-mod-base) 18%, var(--agv-canvas));
	}
	:root:not([data-agv-theme="light"]) .agv-instr__help {
		background: var(--agv-surface-3);
		color: var(--agv-ink);
	}
}

:root[data-agv-theme="dark"] .agv-tone--tint {
	background: color-mix(in srgb, var(--agv-mod-base) 10%, var(--agv-canvas));
}
:root[data-agv-theme="dark"] .agv-figcard,
:root[data-agv-theme="dark"] .agv-calc__output,
:root[data-agv-theme="dark"] .agv-case__problem,
:root[data-agv-theme="dark"] .agv-media__wash {
	background: color-mix(in srgb, var(--agv-mod-base) 18%, var(--agv-canvas));
}
:root[data-agv-theme="dark"] .agv-instr__help {
	background: var(--agv-surface-3);
	color: var(--agv-ink);
}

/* The nation badges, and text that sat on the panels darkened above.
 *
 * .agv-scheme__nation is a light chip with dark text, and scotland, wales and
 * northern-ireland hardcode both halves, so those three were already
 * self-consistent and darkening them put dark text on a dark chip. Only the
 * default case took the token path, where --agv-mod-ink on --agv-mod-tint
 * were both light-mode values and measured 1.09. It is given the same light
 * chip the other three have, so the nation colour coding survives.
 *
 * .agv-figcard__value kept a dark value colour after the card behind it went
 * dark, which is the predictable consequence of fixing a background and not
 * looking at what sits on it. */

@media (prefers-color-scheme: dark) {
	:root:not([data-agv-theme="light"]) .agv-scheme__nation {
		background: #e9f5e6;
		color: #10250f;
	}
	:root:not([data-agv-theme="light"]) .agv-scheme[data-nation="scotland"] .agv-scheme__nation { background: #dceaf6; color: #123b5c; }
	:root:not([data-agv-theme="light"]) .agv-scheme[data-nation="wales"] .agv-scheme__nation { background: #fbe0e0; color: #6b1414; }
	:root:not([data-agv-theme="light"]) .agv-scheme[data-nation="northern-ireland"] .agv-scheme__nation { background: #e6e0f6; color: #2f2160; }
	:root:not([data-agv-theme="light"]) .agv-scheme[data-nation="uk"] .agv-scheme__nation { background: #e8ecef; color: #2c3a44; }
	:root:not([data-agv-theme="light"]) .agv-figcard__value,
	:root:not([data-agv-theme="light"]) .agv-figcard__label {
		color: var(--agv-ink);
	}
}

:root[data-agv-theme="dark"] .agv-scheme__nation { background: #e9f5e6; color: #10250f; }
:root[data-agv-theme="dark"] .agv-scheme[data-nation="scotland"] .agv-scheme__nation { background: #dceaf6; color: #123b5c; }
:root[data-agv-theme="dark"] .agv-scheme[data-nation="wales"] .agv-scheme__nation { background: #fbe0e0; color: #6b1414; }
:root[data-agv-theme="dark"] .agv-scheme[data-nation="northern-ireland"] .agv-scheme__nation { background: #e6e0f6; color: #2f2160; }
:root[data-agv-theme="dark"] .agv-scheme[data-nation="uk"] .agv-scheme__nation { background: #e8ecef; color: #2c3a44; }
:root[data-agv-theme="dark"] .agv-figcard__value,
:root[data-agv-theme="dark"] .agv-figcard__label { color: var(--agv-ink); }

/* ------------------------------------------------------------------
   The wrong-account panel, and the basket and checkout state.

   Both are new surfaces. The wrong-account panel is shown to a signed-in
   account that opened a screen belonging to a different account type, and
   it shipped with no styles at all: the heading overlapped the masthead and
   the list of the account's own screens rendered as raw bullets. Someone
   being told no should not also be shown a broken page.
   ------------------------------------------------------------------ */

.agv-wrongaccount {
	max-width: 46rem;
	margin: clamp(2rem, 6vw, 4rem) auto;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--agv-canvas);
	border: 1px solid var(--agv-rule);
	border-radius: var(--agv-radius, 10px);
}

.agv-wrongaccount__title {
	margin: 0 0 .75rem;
	font-size: clamp(1.35rem, 3.5vw, 1.9rem);
	line-height: 1.2;
	color: var(--agv-ink);
}

.agv-wrongaccount .agv-panel__intro {
	margin: 0 0 1rem;
	color: var(--agv-ink-2, var(--agv-ink));
}

.agv-wrongaccount__note {
	margin: 0 0 1.5rem;
	padding: .85rem 1rem;
	background: var(--agv-tint);
	border-left: 3px solid var(--agv-mod-base, var(--agv-rule));
	color: var(--agv-ink-2, var(--agv-ink));
	font-size: var(--agv-td-15);
}

.agv-wrongaccount__head {
	margin: 1.75rem 0 .6rem;
	font-size: var(--agv-t-base);
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--agv-mute);
}

.agv-wrongaccount__list {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: .35rem;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.agv-wrongaccount__list a {
	display: block;
	padding: .6rem .75rem;
	min-height: 44px;              /* WCAG 2.5.8 target size */
	border: 1px solid var(--agv-rule);
	border-radius: 6px;
	text-decoration: none;
	color: var(--agv-ink);
}

.agv-wrongaccount__list a:hover,
.agv-wrongaccount__list a:focus-visible {
	background: var(--agv-tint);
}

.agv-wrongaccount__route {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--agv-rule);
}

.agv-wrongaccount__routenote,
.agv-wrongaccount__ask {
	margin: 0 0 1rem;
	color: var(--agv-ink-2, var(--agv-ink));
}

/* The basket and checkout state. */

.agv-orderstate__title {
	margin: 0 0 .5rem;
	font-size: clamp(1.4rem, 4vw, 2.1rem);
	line-height: 1.2;
}

.agv-orderstate__standfirst {
	max-width: 46rem;
	margin: 0 0 2rem;
	font-size: 1.05rem;
	color: var(--agv-ink-2, var(--agv-ink));
}

.agv-orderstate__panel,
.agv-orderstate__route {
	max-width: 52rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--agv-rule);
	border-radius: var(--agv-radius, 10px);
	background: var(--agv-canvas);
}

.agv-orderstate__route {
	margin-top: 1.5rem;
	background: var(--agv-tint);
}

.agv-orderstate__head {
	margin: 0 0 .5rem;
	font-size: var(--agv-t-md);
}

.agv-orderstate__lead {
	margin: 0 0 1.25rem;
	color: var(--agv-ink-2, var(--agv-ink));
}

.agv-orderstate__list {
	margin: 0;
	display: grid;
	gap: .9rem;
}

.agv-orderstate__list dt {
	font-weight: 600;
	color: var(--agv-ink);
}

.agv-orderstate__list dd {
	margin: .2rem 0 0;
	color: var(--agv-ink-2, var(--agv-ink));
}

.agv-orderstate__lines {
	width: 100%;
	margin: 0 0 1.5rem;
	border-collapse: collapse;
}

.agv-orderstate__lines th,
.agv-orderstate__lines td {
	padding: .6rem .5rem;
	text-align: left;
	border-bottom: 1px solid var(--agv-rule);
}

.agv-orderstate__note {
	max-width: 52rem;
	margin: 1.5rem 0 0;
	font-size: var(--agv-td-14);
	color: var(--agv-mute);
}

/* ------------------------------------------------------------------
   The seller tax record panel on the vendor's listings screen.
   New surface: the collection half of control V4-008.
   ------------------------------------------------------------------ */

.agv-taxrecord {
	margin: 1.5rem 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--agv-rule);
	border-radius: var(--agv-radius, 10px);
	background: var(--agv-canvas);
}

.agv-taxrecord__status {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 .75rem;
}

.agv-taxrecord__when {
	color: var(--agv-mute);
	font-size: var(--agv-td-14);
}

.agv-taxrecord__why {
	max-width: 52rem;
	margin: 0 0 1.25rem;
	color: var(--agv-ink-2, var(--agv-ink));
}

.agv-taxrecord__held {
	display: grid;
	grid-template-columns: minmax(10rem, max-content) 1fr;
	gap: .35rem 1.25rem;
	margin: 0 0 .75rem;
	padding: 1rem 1.25rem;
	background: var(--agv-tint);
	border-radius: 8px;
}

.agv-taxrecord__held dt {
	font-weight: 600;
	color: var(--agv-ink);
}

.agv-taxrecord__held dd {
	margin: 0;
	color: var(--agv-ink-2, var(--agv-ink));
	overflow-wrap: anywhere;
}

.agv-taxrecord__replace {
	margin: 0 0 1.25rem;
	font-size: var(--agv-td-14);
	color: var(--agv-mute);
}

.agv-taxrecord__form .agv-btn {
	margin-top: .75rem;
}

@media (max-width: 40rem) {
	.agv-taxrecord__held {
		grid-template-columns: 1fr;
		gap: 0 0;
	}
	.agv-taxrecord__held dd {
		margin-bottom: .5rem;
	}
}

/* ------------------------------------------------------------------
   Contrast and focus on the signed-in account screens (WCAG 2.2).

   Found by running the checker signed in as a vendor with real listings
   and enquiries on screen: the earlier sweeps covered every public
   template but the populated account screens render elements the empty
   ones never showed.
   ------------------------------------------------------------------ */

/* 1.4.3: the unread badge was white on amber at 3.55:1 in light mode.
   Both colours are stated so no scheme can recombine them. */
.agv-tabs__unread {
	background: #8f5300;
	color: #ffffff;
}

/* 2.4.7: the quiet button variant suppressed the base button's focus ring
   with its own higher specificity rule and offered nothing in its place, so
   keyboard focus vanished on it. Styled on focus itself, not focus-visible
   alone, and at the same double class specificity as the rule that
   suppressed it. */
.agv-btn.agv-btn--quiet:focus,
.agv-btn.agv-btn--quiet:focus-visible {
	outline: 3px solid var(--agv-mod-base, #2f6f33);
	outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-agv-theme="light"]) {
		/* placeholder so the block mirrors the established structure */
	}
	:root:not([data-agv-theme="light"]) .agv-appnav__link.is-current,
	:root:not([data-agv-theme="light"]) .agv-app .agv-tabs__tab[aria-selected="true"],
	:root:not([data-agv-theme="light"]) .agv-tabs__tab.is-current {
		/*
		 * These use the brand-deep token as text. The token stays dark in
		 * dark mode on purpose, because it also backs a gradient as a
		 * background, so the fix is scoped to the text uses on the app
		 * screens rather than made at the token.
		 */
		color: #9fd7a2;
	}
	:root:not([data-agv-theme="light"]) .agv-earn__keep {
		/* 1.4.3: the commission keep rate line used brand-deep as text. */
		color: #9fd7a2;
	}
	:root:not([data-agv-theme="light"]) .agv-req {
		/* 1.4.3: the required marker kept its light mode red at 2.65:1. */
		color: #ff8d85;
	}
	:root:not([data-agv-theme="light"]) .agv-verify .agv-btn--ghost {
		/*
		 * The verify banner keeps its warm paper panel in dark mode, so
		 * the button inside it keeps ink that reads on paper rather than
		 * inheriting the dark scheme's light ink at 1.02:1.
		 */
		color: #4a3100;
		border-color: #8a5a00;
	}
}

:root[data-agv-theme="dark"] .agv-appnav__link.is-current,
:root[data-agv-theme="dark"] .agv-app .agv-tabs__tab[aria-selected="true"],
:root[data-agv-theme="dark"] .agv-tabs__tab.is-current {
	color: #9fd7a2;
}
:root[data-agv-theme="dark"] .agv-earn__keep {
	color: #9fd7a2;
}
:root[data-agv-theme="dark"] .agv-req {
	color: #ff8d85;
}
:root[data-agv-theme="dark"] .agv-verify .agv-btn--ghost {
	color: #4a3100;
	border-color: #8a5a00;
}

/* The earnings route label was an h3 styled by element; it is an h2 now so
   the screen has no h1 to h3 jump, and keeps its size. */
.agv-earn__rhead h2.agv-earn__route {
	margin: 0;
	font-size: var(--agv-t-md);
}

/* ------------------------------------------------------------------
   Taking a copy of your own data, on the settings screen.

   New surface. The handler existed from the rights work and nothing
   called it, so this is the first time it has been rendered.
   ------------------------------------------------------------------ */

.agv-dataexport {
	margin: 1.5rem 0;
	padding: clamp(1rem, 3vw, 1.5rem);
	border: 1px solid var(--agv-rule);
	border-radius: var(--agv-radius, 10px);
	background: var(--agv-tint);
}

.agv-dataexport__title {
	margin: 0 0 .5rem;
	font-size: 1.05rem;
}

.agv-dataexport__body,
.agv-dataexport__note {
	max-width: 52rem;
	margin: 0 0 1rem;
	color: var(--agv-ink-2, var(--agv-ink));
}

.agv-dataexport__note {
	margin: .9rem 0 0;
	font-size: var(--agv-td-14);
	color: var(--agv-mute);
}

.agv-dataexport__choice {
	margin: 0 0 1rem;
}

.agv-dataexport__choice label {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	min-height: 44px;        /* WCAG 2.5.8 target size */
	padding: .35rem 0;
	cursor: pointer;
}

.agv-dataexport__choice input[type="checkbox"] {
	/* WCAG 2.5.8 sets the minimum target at 24px. The 44px label around this
	   does not rescue a 20px box: the checkbox is the target. */
	width: 24px;
	height: 24px;
	margin-top: .1rem;
	flex: 0 0 auto;
}

.agv-dataexport__choice .agv-field__help {
	display: block;
	max-width: 46rem;
	margin: .1rem 0 0 1.85rem;
	font-size: var(--agv-td-14);
	color: var(--agv-mute);
}

/* ------------------------------------------------------------------ */
/* The new-feature strip on the Unheard Voices page                    */
/*                                                                     */
/* The Farm Position Check sits roughly eight phone screens down a     */
/* page that runs to about forty-nine, so almost nobody reaches it.    */
/* This names it at the top and jumps to the section already there.    */
/* The page is an Elementor canvas template, so this has to stand on   */
/* its own rather than inherit the section wrapper's spacing.          */
/* ------------------------------------------------------------------ */
.agv-newfeature{
	background:#0f2d1a;
	color:#eaf3ec;
	border-bottom:3px solid #2f8a4e;
}
.agv-newfeature__in{
	max-width:1180px;
	margin:0 auto;
	padding:14px 24px;
	display:flex;
	align-items:center;
	gap:18px;
}
.agv-newfeature__tag{
	flex:0 0 auto;
	margin:0;
	background:#44c072;
	color:#06230f;
	border-radius:4px;
	padding:3px 10px;
	font-size: var(--agv-td-115);
	font-weight:800;
	letter-spacing:.09em;
	text-transform:uppercase;
}
.agv-newfeature__say{ flex:1 1 auto; min-width:0 }
.agv-newfeature__h{
	margin:0;
	font-size: var(--agv-t-base);
	line-height:1.35;
	font-weight:650;
	color:#fff;
}
.agv-newfeature__sub{
	margin:3px 0 0;
	font-size: var(--agv-td-14);
	line-height:1.5;
	color:#c3dccb;
}
.agv-newfeature__go{ flex:0 0 auto; margin:0 }
.agv-newfeature__btn{
	display:inline-block;
	background:#44c072;
	color:#06230f;
	text-decoration:none;
	font-weight:700;
	font-size: var(--agv-td-15);
	padding:11px 20px;
	border-radius:6px;
	white-space:nowrap;
	min-height:44px;
	line-height:22px;
	box-sizing:border-box;
}
.agv-newfeature__btn:hover,
.agv-newfeature__btn:focus{ background:#5ad286; color:#06230f }
.agv-newfeature__btn:focus-visible{ outline:3px solid #fff; outline-offset:2px }

@media (max-width:860px){
	.agv-newfeature__in{
		flex-wrap:wrap;
		gap:10px;
		padding:14px 18px;
	}
	.agv-newfeature__say{ flex:1 1 100%; order:2 }
	.agv-newfeature__tag{ order:1 }
	.agv-newfeature__go{ flex:1 1 100%; order:3 }
	.agv-newfeature__btn{ display:block; text-align:center }
	.agv-newfeature__h{ font-size: var(--agv-t-base) }
}

@media print{ .agv-newfeature{ display:none } }

/* ------------------------------------------------------------------ */
/* Unheard Voices: contrast of the small label text                    */
/*                                                                     */
/* Measured on the live page, the muted green used for eyebrows,       */
/* kickers, tags and counters renders at 2.83 to 4.44 against its      */
/* light backgrounds, below the 4.5 that WCAG 2.2 AA asks of text at   */
/* these sizes. The type is 10px to 11.5px, which is where contrast    */
/* matters most, and the page is written for farming families who will */
/* often read it outdoors on a phone.                                  */
/*                                                                     */
/* Two replacements, kept in the same hue so the design is unchanged:  */
/*   #4a7055  5.61:1 on white, 5.00:1 on the #f3f7f0 tint              */
/*   #566057  6.55:1 on white, 5.83:1 on the same tint                 */
/*                                                                     */
/* These selectors come from the advisor plugin's voices-repair.css,   */
/* which loads before this file, so matching specificity is enough and */
/* no !important is needed. Light text on the dark panels is left      */
/* alone: it is already legible and is not what was measured here.     */
/* ------------------------------------------------------------------ */
.agv-voices .form-kicker,
.agv-voices .agv-show-tag,
.agv-voices .agv-track-num,
.agv-voices .agv-fd-day span,
.agv-voices .agv-journey-grid span,
.agv-voices .agv-risk-trio span,
.agv-voices .agv-season-steps span,
.agv-voices .prompt-choice small,
.agv-voices .prompt-answer .eyebrow,
.agv-voices .corner-invite small,
.agv-voices .agv-mini-logo span,
.agv-voices .agv-mini-logo .agv-logo-sub{
	color:#4a7055;
}

.agv-voices .agv-route em,
.agv-voices .agv-form .optional,
.agv-voices .agv-image-pane small,
.agv-voices .source-line{
	color:#566057;
}

/* The track number is set with !important in voices-repair.css, so the
   accessible colour has to match that weight. Used here only, and only
   because the rule it corrects uses it first. */
.agv-voices .agv-track-num{ color:#4a7055 !important; }

/* Hero enquiry card: the route tiles are labels, and the generic form rule
   gives every label margin:12px 0 5px. Inside the grid that margin is added
   to each row, so the rows sat 27px apart while the columns sat 10px apart.
   Clearing the margin lets the grid gap alone set the spacing on both axes. */
.agv-voices .agv-route-tiles{ gap:12px !important; }  /* the page's own inline
   CSS sets gap:10px !important, so the corrected value has to match that weight. */
.agv-voices .agv-route-tiles > .agv-route{ margin:0; }

/* The Position Check, at the head of the hero enquiry card. */
.agv-voices .agv-herocheck{
	position:relative;
	margin:0 0 18px;
	padding:14px 16px 13px;
	background:#f3f7f0;
	border:1px solid #d3e2d6;
	border-left:3px solid #2a6944;
	border-radius:8px;
}
.agv-voices .agv-herocheck__tag{
	display:inline-block;
	margin:0 0 7px;
	padding:3px 9px;
	background:#2a6944;
	color:#fff;
	border-radius:999px;
	font-size: var(--agv-td-10);
	font-weight:700;
	letter-spacing:.09em;
	text-transform:uppercase;
	line-height:1.4;
}
.agv-voices .agv-herocheck__h{
	margin:0 0 5px;
	color:#16392a;
	font-size: var(--agv-td-15);
	font-weight:700;
	line-height:1.3;
}
.agv-voices .agv-herocheck__sub{
	margin:0 0 9px;
	color:#4b5a4e;
	font-size: var(--agv-td-125);
	line-height:1.55;
}
.agv-voices a.agv-herocheck__go{
	display:inline-block;
	padding:4px 0;
	color:#214b36;
	font-size: var(--agv-td-125);
	font-weight:600;
	text-decoration:none;
	border-bottom:1px solid rgba(33,75,54,.35);
}
.agv-voices a.agv-herocheck__go::after{
	content:'\2192';
	margin-left:6px;
}
.agv-voices a.agv-herocheck__go:hover,
.agv-voices a.agv-herocheck__go:focus{
	color:#16392a;
	border-bottom-color:#16392a;
}
@media (max-width:560px){
	.agv-voices .agv-herocheck{ padding:13px 14px 12px; }
	.agv-voices .agv-herocheck__sub{ font-size: var(--agv-td-12); }
}
@media print{
	.agv-voices .agv-herocheck{ display:none; }
}

/* The generic record workspace. One screen renders every declared domain,
   so these styles are keyed to the layer rather than to any one module. */
.agv-domain__nav{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	list-style:none;
	margin:0 0 18px;
	padding:0;
}
.agv-domain__nav li{ margin:0; }
.agv-domain__nav a,
.agv-domain__nav strong{
	display:inline-block;
	padding:6px 12px;
	border:1px solid #d3e2d6;
	border-radius:999px;
	font-size: var(--agv-t-sm);
	line-height:1.4;
	text-decoration:none;
}
.agv-domain__nav a{ color:#214b36; background:#fff; }
.agv-domain__nav a:hover,
.agv-domain__nav a:focus{ background:#f3f7f0; border-color:#2a6944; }
.agv-domain__nav strong{ color:#fff; background:#2a6944; border-color:#2a6944; font-weight:600; }

.agv-domain__field{ margin:0 0 14px; }
.agv-domain__field label{
	display:block;
	margin:0 0 4px;
	color:#16392a;
	font-size: var(--agv-t-sm);
	font-weight:600;
}
.agv-domain__field .optional{ color:#566057; font-weight:400; }
.agv-domain__field input,
.agv-domain__field select,
.agv-domain__field textarea{
	width:100%;
	padding:9px 10px;
	border:1px solid #c9d7cc;
	border-radius:6px;
	font-size: var(--agv-td-14);
	font-family:inherit;
	color:#16392a;
	background:#fff;
}
.agv-domain__field input:focus,
.agv-domain__field select:focus,
.agv-domain__field textarea:focus{
	border-color:#2a6944;
	outline:2px solid rgba(42,105,68,.25);
	outline-offset:1px;
}

.agv-domain__ok,
.agv-domain__err,
.agv-domain__need{
	margin:0 0 16px;
	padding:11px 14px;
	border-radius:6px;
	font-size: var(--agv-td-135);
	line-height:1.5;
}
.agv-domain__ok{ background:#eef6ef; border:1px solid #bcd9c3; color:#1c4b31; }
.agv-domain__err{ background:#fcf0ee; border:1px solid #e3bdb6; color:#7a2d1d; }
.agv-domain__need{ background:#fdf6e9; border:1px solid #e4d2a8; color:#6b5119; }

@media (min-width:720px){
	.agv-domain .agv-workspace__grid{
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:0 20px;
	}
}

/* The farm dashboard. Deadline groups are distinguished by a left rule
   rather than by colour alone, so the grouping survives a greyscale print
   and does not rely on colour perception. */
.agv-dash__past,
.agv-dash__soon,
.agv-dash__ahead,
.agv-dash__later{
	margin:22px 0 10px;
	padding:4px 0 4px 11px;
	border-left:4px solid #c9d7cc;
	font-size: var(--agv-td-15);
	color:#16392a;
}
.agv-dash__past{ border-left-color:#9c3b26; }
.agv-dash__soon{ border-left-color:#b0761c; }
.agv-dash__ahead{ border-left-color:#2a6944; }
.agv-dash__later{ border-left-color:#c9d7cc; }

.agv-dash__cards{
	display:grid;
	grid-template-columns:1fr;
	gap:14px;
	margin:0 0 8px;
}
.agv-dash__card{
	padding:15px 16px 13px;
	background:#f3f7f0;
	border:1px solid #d3e2d6;
	border-radius:8px;
}
.agv-dash__card h3{
	margin:0 0 2px;
	color:#16392a;
	font-size: var(--agv-td-14);
	font-weight:700;
	line-height:1.3;
}
.agv-dash__count{
	margin:0 0 8px;
	color:#2a6944;
	font-size: var(--agv-t-xl);
	font-weight:700;
	line-height:1.1;
}
.agv-dash__card ul{
	margin:0 0 10px;
	padding:0 0 0 17px;
	color:#4b5a4e;
	font-size: var(--agv-td-125);
	line-height:1.65;
}
.agv-dash__card p:last-child{ margin:0; font-size: var(--agv-t-sm); }
.agv-dash__card a{ color:#214b36; font-weight:600; }

@media (min-width:640px){
	.agv-dash__cards{ grid-template-columns:1fr 1fr; }
}
@media (min-width:1024px){
	.agv-dash__cards{ grid-template-columns:repeat(3,1fr); }
}

/* The consumer portal at /discover/. Cards carry their own kind as a class so
   food can show what it must without the layout guessing. */
.agv-discover{ max-width:1100px; margin:0 auto; padding:28px 20px 48px; }
.agv-discover h1{ margin:0 0 8px; color:#16392a; }
.agv-discover__intro{ margin:0 0 22px; color:#4b5a4e; font-size: var(--agv-td-15); line-height:1.6; max-width:62ch; }
.agv-discover__form{
	margin:0 0 26px;
	padding:18px 18px 10px;
	background:#f3f7f0;
	border:1px solid #d3e2d6;
	border-radius:10px;
}
.agv-discover__grid{ display:grid; grid-template-columns:1fr; gap:0 18px; }
.agv-discover__form p{ margin:0 0 14px; }
.agv-discover__form label{
	display:block; margin:0 0 4px;
	color:#16392a; font-size: var(--agv-t-sm); font-weight:600;
}
.agv-discover__form label .optional{ color:#566057; font-weight:400; }
.agv-discover__form input,
.agv-discover__form select{
	width:100%; padding:9px 10px;
	border:1px solid #c9d7cc; border-radius:6px;
	font-size: var(--agv-td-14); font-family:inherit; color:#16392a; background:#fff;
}
.agv-discover__form input:focus,
.agv-discover__form select:focus{
	border-color:#2a6944; outline:2px solid rgba(42,105,68,.25); outline-offset:1px;
}
.agv-discover__actions{ margin:4px 0 0; }
.agv-discover h2{ margin:26px 0 14px; color:#16392a; font-size: 1.1875rem; }
.agv-discover__empty{
	margin:0; padding:16px 18px;
	background:#fdf6e9; border:1px solid #e4d2a8; border-radius:8px;
	color:#6b5119; font-size: var(--agv-td-14); line-height:1.6; max-width:70ch;
}
.agv-discover__list{ display:grid; grid-template-columns:1fr; gap:16px; list-style:none; margin:0; padding:0; }
.agv-discover__card{
	padding:16px 18px 14px;
	background:#fff;
	border:1px solid #d3e2d6;
	border-left:3px solid #2a6944;
	border-radius:0 8px 8px 0;
}
.agv-discover__card--produce{ border-left-color:#b0761c; }
.agv-discover__card--surplus{ border-left-color:#3e7b8c; }
.agv-discover__tag{
	margin:0 0 6px; color:#566057;
	font-size: var(--agv-t-xs); font-weight:700; letter-spacing:.08em; text-transform:uppercase;
}
.agv-discover__card h3{ margin:0 0 6px; color:#16392a; font-size: var(--agv-t-base); line-height:1.3; }
.agv-discover__meta{ margin:0 0 6px; color:#4b5a4e; font-size: var(--agv-t-sm); }
.agv-discover__price{ margin:0 0 6px; color:#214b36; font-size: var(--agv-td-14); font-weight:600; }
.agv-discover__note{ margin:0 0 4px; color:#566057; font-size: var(--agv-td-125); line-height:1.5; }
.agv-discover__avail{ margin:6px 0 0; color:#1c4b31; font-size: var(--agv-td-125); font-weight:600; }

@media (min-width:640px){
	.agv-discover__grid{ grid-template-columns:1fr 1fr; }
	.agv-discover__list{ grid-template-columns:1fr 1fr; }
}
@media (min-width:1000px){
	.agv-discover__grid{ grid-template-columns:2fr 1fr 1fr; }
	.agv-discover__list{ grid-template-columns:repeat(3,1fr); }
}

/* A timed lot in its last ten minutes. Marked by weight and a left rule as
   well as colour, so the urgency survives a greyscale print and does not
   depend on colour perception. */
.agv-pill--urgent{
	background:#fdf3ef;
	border:1px solid #e0b4a4;
	border-left:4px solid #9c3b26;
	color:#7d2f1e;
	font-weight:600;
}

/* A module's own computed figures. A table rather than a strip of tiles,
   because a total, an average and a highest belong in columns the eye can
   compare down, and because it reads correctly when read aloud. */
.agv-mw__own{
	width:100%;
	border-collapse:collapse;
	margin:10px 0 6px;
	font-size: var(--agv-td-15);
}
.agv-mw__own th,
.agv-mw__own td{
	padding:9px 12px;
	text-align:left;
	border-bottom:1px solid #d3e2d6;
	vertical-align:top;
}
.agv-mw__own thead th{
	background:#f3f7f0;
	color:#16392a;
	font-weight:600;
	border-bottom:2px solid #c9d7cc;
}
.agv-mw__own tbody th{
	font-weight:600;
	color:#16392a;
	max-width:320px;
}
.agv-mw__own td{
	font-variant-numeric:tabular-nums;
}
.agv-mw__of{
	display:block;
	font-weight:400;
	font-size: var(--agv-t-sm);
	color:#4a6b55;
}
.agv-mw__more{
	margin:4px 0 0;
	font-size: var(--agv-td-14);
	color:#4a6b55;
}
.agv-mw__open{
	margin:12px 0 0;
	padding:10px 12px;
	background:#f7f8f5;
	border:1px solid #d3e2d6;
	border-radius:6px;
}
.agv-mw__open summary{
	cursor:pointer;
	font-weight:600;
	color:#16392a;
}
.agv-mw__open ul{
	margin:8px 0 8px 18px;
}
.agv-mw__open p{
	margin:0;
	font-size: var(--agv-td-14);
	color:#4a6b55;
}

@media (max-width:620px){
	.agv-mw__own,
	.agv-mw__own thead,
	.agv-mw__own tbody,
	.agv-mw__own tr,
	.agv-mw__own th,
	.agv-mw__own td{ display:block; }
	.agv-mw__own thead{ display:none; }
	.agv-mw__own tr{
		border:1px solid #d3e2d6;
		border-radius:6px;
		margin:0 0 10px;
		padding:4px 0;
	}
	.agv-mw__own th,
	.agv-mw__own td{ border-bottom:0; padding:5px 12px; }
	.agv-mw__own td::before{
		content:attr(data-label) " ";
		color:#4a6b55;
		font-size: var(--agv-t-sm);
	}
}

/* Why this module rather than a spreadsheet. Collapsed by default: somebody
   working in a module daily does not need to be sold it again each time. */
.agv-mw__worth{
	margin:12px 0 0;
	padding:10px 12px;
	background:#f3f7f0;
	border:1px solid #d3e2d6;
	border-left:4px solid #2a6944;
	border-radius:6px;
}
.agv-mw__worth summary{
	cursor:pointer;
	font-weight:600;
	color:#16392a;
}
.agv-mw__adv,
.agv-mw__exl{
	margin:10px 0 10px 18px;
}
.agv-mw__adv li,
.agv-mw__exl li{
	margin:0 0 5px;
	line-height:1.45;
}
.agv-mw__advn{
	color:#4a6b55;
	font-size: var(--agv-t-sm);
	font-weight:400;
}
.agv-mw__ex{
	margin:8px 0 0;
	font-size: var(--agv-td-14);
	color:#2f4a3a;
}

/* What to do first. An ordered list rather than cards, because the order is
   the information and a grid throws it away. */
.agv-mw__decide{ border-left:4px solid #b0761c; padding-left:12px; }
.agv-mw__first{
	margin:6px 0 10px;
	font-size: var(--agv-t-base);
	font-weight:600;
	color:#16392a;
}
.agv-mw__plan{ margin:0 0 6px 20px; padding:0; }
.agv-mw__plan li{ margin:0 0 14px; }
.agv-mw__pt{ margin:0; }
.agv-mw__pa{ margin:3px 0 0; }
.agv-mw__pf{
	margin:3px 0 0;
	font-size: var(--agv-t-sm);
	color:#4a6b55;
}
.agv-mw__pw{ margin:5px 0 0; font-size: var(--agv-td-14); }
.agv-mw__pw summary{ cursor:pointer; color:#2a6944; }
.agv-mw__pw p{ margin:5px 0 0; color:#2f4a3a; }

/* Who else does this. Plain prose and a plain list: a comparison that is
   styled to flatter stops being a comparison. */
.agv-mw__against summary{ cursor:pointer; color:#2a6944; font-weight:600; }
.agv-mw__against h3{
	margin:12px 0 4px;
	font-size: var(--agv-td-15);
	color:#16392a;
}
.agv-mw__plist{ margin:6px 0 0 18px; padding:0; }
.agv-mw__plist li{ margin:0 0 6px; }

/* Sales and debtors. Deliberately plain: an invoice is a legal document and a
   debtors figure goes to a bank, so neither is a place for styling that
   flatters the number. */
.agv-bl__owed{ border-left:4px solid #16392a; padding-left:12px; }
.agv-bl__form{
	margin:8px 0 0;
	padding:12px;
	border:1px solid #d8e2da;
	border-radius:6px;
	background:#fbfdfc;
}
.agv-bl__form p{ margin:0 0 10px; }
.agv-bl__form label{ font-size: var(--agv-td-14); color:#2f4a3a; }
.agv-bl__form input,
.agv-bl__form select{
	margin-top:3px;
	padding:7px 8px;
	font:inherit;
	border:1px solid #c3d3c9;
	border-radius:4px;
	max-width:360px;
	width:100%;
}

/* Record-type navigation: grouped, with the count inside each pill.
   A domain with thirteen record kinds was a flat wall of links, and the counts
   it needed to choose between them were printed in a separate block further
   down the same page.

   The pills themselves are repainted in tokens here. .agv-domain__nav in this
   file hardcodes #fff and #214b36, so in dark mode every record type rendered
   as a hard white block on a near-black page and the dashed border that marks
   an empty type was white on white. The tokens switch with the theme, so this
   follows both the operating system and the site's own theme control, which a
   prefers-color-scheme block on its own would not. */
.agv-domain__kinds{ margin:0 0 18px; }
.agv-domain__kindgroup{
	margin:14px 0 7px;
	font-size: var(--agv-td-12);
	font-weight:600;
	letter-spacing:.06em;
	text-transform:uppercase;
	color:var(--agv-ink-3,#5a7566);
}
.agv-domain__kinds .agv-domain__kindgroup:first-of-type{ margin-top:4px; }
.agv-domain__kinds .agv-domain__nav{ margin:0 0 4px; }

.agv-domain__kinds .agv-domain__nav a,
.agv-domain__kinds .agv-domain__nav strong{
	border-color:var(--agv-line,#d3e2d6);
}
.agv-domain__kinds .agv-domain__nav a{
	color:var(--agv-ink,#214b36);
	background:var(--agv-surface,#fff);
}
.agv-domain__kinds .agv-domain__nav a:hover,
.agv-domain__kinds .agv-domain__nav a:focus{
	background:var(--agv-surface-3,#f3f7f0);
	border-color:var(--agv-brand,#2a6944);
}
.agv-domain__kinds .agv-domain__nav strong{
	color:#fff;
	background:var(--agv-brand,#2a6944);
	border-color:var(--agv-brand,#2a6944);
}

.agv-domain__kindcount{
	display:inline-block;
	margin-left:5px;
	padding:1px 7px;
	border-radius:999px;
	font-size: var(--agv-t-xs);
	font-weight:600;
	line-height:1.6;
	background:var(--agv-brand-tint,#e8f0e9);
	color:var(--agv-ink,#2f4a3a);
}
.agv-domain__kind--on .agv-domain__kindcount{ background:rgba(255,255,255,.22); color:#fff; }

/* An empty record type is shown rather than hidden, so the one thing the
   office has not started yet is not the one thing it cannot find. The dashed
   border and the wording both carry that, because a border style alone is not
   something everyone can see. */
.agv-domain__kind--empty a{ color:var(--agv-ink-3,#5f7a69); border-style:dashed; }
.agv-domain__kind--empty .agv-domain__kindcount{
	background:transparent;
	color:var(--agv-ink-3,#6b8475);
	font-weight:500;
	padding-left:3px;
	padding-right:3px;
}

/* Restore the document under an explicit dark choice.
   ---------------------------------------------------------------------------
   tokens.css carries this, and the first selector in the list is the document
   element itself rather than the probe the rule was written for:

       :root[data-agv-theme="dark"],
       :root[data-agv-theme="auto"] .agv-dark-probe { display: none; }

   ui.js cycles the "Switch appearance" button through auto, light and dark and
   stores the choice in localStorage, and applyPrefs() puts it back on <html> on
   every page load. So two clicks of that button set display:none on <html>: the
   whole site renders blank, on every page, every visit, and the control to undo
   it is gone with everything else. The only way out was clearing site data.

   The attribute is served as "auto", which is why it went unseen.

   tokens.css is frozen byte-identical by a standing constraint, so the repair
   is made here. html:root raises the specificity above the original rule, so it
   holds whatever order the stylesheets end up loading in, rather than relying
   on corrections.css staying last. The probe half of the original rule is left
   alone: it is inert, because nothing renders .agv-dark-probe. */
html:root[data-agv-theme="dark"]{ display:block; }

/* The daily round and the shed overview.
   Painted in tokens so both themes follow, as the record-type navigation
   above does. The round is used on a phone in a shed, so the actions stack
   and the targets stay large. */
.agv-sheds__lead,
.agv-round__lead{ color:var(--agv-ink-2,#4a5f52); font-size: var(--agv-td-14); margin:0 0 12px; }
.agv-sheds__empty{ color:var(--agv-ink-3,#5a7566); }
.agv-sheds__flock{ color:var(--agv-ink-3,#5a7566); font-weight:400; font-size: var(--agv-td-12); }
.agv-sheds__when{ color:var(--agv-ink-3,#5a7566); font-size: var(--agv-td-115); }
.agv-sheds__lost{ font-weight:600; }
.agv-sheds__on{ color:var(--agv-status-good,#1f6b3a); font-weight:600; }
.agv-sheds__near{ font-weight:600; }
.agv-sheds__under{ color:var(--agv-status-warn,#8a5a00); font-weight:600; }
.agv-sheds__note{ color:var(--agv-ink-3,#5a7566); font-size: var(--agv-td-12); margin-top:10px; }

.agv-round__state{
	margin:12px 0;
	padding:10px 12px;
	border-radius:8px;
	background:var(--agv-surface-2,#f3f7f0);
	border:1px solid var(--agv-line,#d3e2d6);
	font-weight:600;
	color:var(--agv-ink,#214b36);
}
.agv-round__warn{
	margin:0 0 12px;
	padding:10px 12px;
	border-radius:8px;
	border:1px solid var(--agv-status-warn,#c08a2e);
	background:var(--agv-surface-2,#fffaf0);
	color:var(--agv-ink,#214b36);
}
.agv-round__actions{
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
	gap:14px;
	margin-top:14px;
}
.agv-round__action{
	border:1px solid var(--agv-line,#d3e2d6);
	border-radius:10px;
	padding:12px 14px;
	background:var(--agv-surface,#fff);
}
.agv-round__h{
	margin:0 0 8px;
	font-size: var(--agv-td-12);
	font-weight:600;
	letter-spacing:.06em;
	text-transform:uppercase;
	color:var(--agv-ink-3,#5a7566);
}
.agv-round__action label{ font-size: var(--agv-t-sm); color:var(--agv-ink-2,#2f4a3a); }
.agv-round__action input,
.agv-round__action select{
	margin-top:3px;
	padding:10px 10px;
	font:inherit;
	width:100%;
	min-height:44px;
	border:1px solid var(--agv-line,#c3d3c9);
	border-radius:6px;
	background:var(--agv-surface,#fff);
	color:var(--agv-ink,#214b36);
}
.agv-round__action .agv-btn{ width:100%; min-height:44px; }
.agv-round__hint{ color:var(--agv-ink-3,#5a7566); font-size: var(--agv-td-115); margin:8px 0 0; }
.agv-round__sheds,
.agv-round__days{ margin-bottom:6px; }

/* The shed overview on a phone.
   Eight columns at 390 px squeezes every heading into three wrapped lines, and
   this is the screen a stockman opens standing in a shed. Each row becomes a
   card, every figure keeps its name beside it, and nothing is hidden. */
@media (max-width:640px){
	.agv-sheds__table thead{
		position:absolute; width:1px; height:1px;
		overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap;
	}
	.agv-sheds__table,
	.agv-sheds__table tbody,
	.agv-sheds__table tr,
	.agv-sheds__table th,
	.agv-sheds__table td{ display:block; width:auto; }
	.agv-sheds__table tr{
		border:1px solid var(--agv-line,#d3e2d6);
		border-radius:10px;
		padding:10px 12px;
		margin:0 0 10px;
		background:var(--agv-surface,#fff);
	}
	.agv-sheds__table th[scope="row"]{
		border:0;
		padding:0 0 8px;
		font-size: var(--agv-td-15);
		border-bottom:1px solid var(--agv-line,#d3e2d6);
		margin-bottom:8px;
	}
	.agv-sheds__table td{
		border:0;
		padding:4px 0;
		display:flex;
		justify-content:space-between;
		gap:14px;
		align-items:baseline;
	}
	.agv-sheds__table td::before{
		content:attr(data-label);
		color:var(--agv-ink-3,#5a7566);
		font-size: var(--agv-td-115);
		text-transform:uppercase;
		letter-spacing:.05em;
		flex:0 0 auto;
	}
	.agv-sheds__table td:empty{ display:none; }
	.agv-round__actions{ grid-template-columns:1fr; }
}

/* ===========================================================================
   The attention panel.

   This had no styling at all. AGV_Dashboard and AGV_Module_Workspace have both
   printed findings since they were built, with a severity on every one, and
   every one of them came out as an unstyled list item: a wall of identical
   paragraphs in which an urgent finding and a note about a tidy-up read
   exactly the same. The severity was computed, sorted on, and then thrown away
   at the last step.

   So: a card each, the severity carried on the left edge where the eye lands
   first, and the four lines a finding is made of given different weights so
   the title, the figures and the action are distinguishable without reading
   them. Colour is never the only carrier, because about one man in twelve
   cannot use it: the severity is also a word in the corner of the card.
   =========================================================================== */

.agv-findings {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.agv-finding {
	position: relative;
	background: var(--agv-surface, #fff);
	border: 1px solid var(--agv-line, #e3e5e1);
	border-left: 5px solid var(--agv-mute, #9aa09a);
	border-radius: var(--agv-r-sm, 8px);
	padding: 16px 18px 16px 20px;
	box-shadow: var(--agv-sh-1, 0 1px 2px rgba(20, 28, 20, .05));
}

.agv-finding::after {
	content: attr(data-severity);
	position: absolute;
	top: 14px;
	right: 16px;
	font-size: var(--agv-t-xs, .75rem);
	font-weight: 600;
	letter-spacing: var(--agv-track-wide, .04em);
	text-transform: uppercase;
	color: var(--agv-ink-3, #5d655d);
}

/* The severity, on the edge and in the corner. Order matters here: urgent and
   high share the bad colour because a grower does not act differently on them,
   and the word in the corner is what separates the two. */
.agv-finding--urgent,
.agv-finding--high { border-left-color: var(--agv-bad, #b3261e); }
.agv-finding--medium { border-left-color: var(--agv-warn, #c8730a); }
.agv-finding--low { border-left-color: var(--agv-info, #2f6690); }

.agv-finding--urgent { background: var(--agv-bad-tint, #fdeceb); }

.agv-finding__title {
	margin: 0 76px 6px 0;
	font-size: var(--agv-t-md, 1.0625rem);
	line-height: var(--agv-lh-snug, 1.35);
	color: var(--agv-ink, #1d231d);
}

.agv-finding__title strong { font-weight: 650; }

.agv-finding__detail {
	margin: 0 0 8px;
	color: var(--agv-ink-2, #3c443c);
	line-height: var(--agv-lh-base, 1.55);
}

/* Why it is being said, set back. A grower who trusts the rule does not read
   this line twice, and one who does not trust it needs it there every time. */
.agv-finding__why {
	margin: 0 0 10px;
	font-size: var(--agv-t-sm, .9375rem);
	color: var(--agv-ink-3, #5d655d);
	line-height: var(--agv-lh-base, 1.55);
}

/* The only line that asks for anything. */
.agv-finding__action {
	margin: 0;
	padding: 9px 12px;
	background: var(--agv-surface-2, #f6f7f5);
	border-radius: var(--agv-r-xs, 4px);
	font-size: var(--agv-t-sm, .9375rem);
	color: var(--agv-ink, #1d231d);
	line-height: var(--agv-lh-snug, 1.35);
}

.agv-finding__value {
	margin: 10px 0 0;
	font-size: var(--agv-t-sm, .9375rem);
	color: var(--agv-ink-3, #5d655d);
}

.agv-dash__headline {
	margin: 0 0 14px;
	font-size: var(--agv-t-lg, 1.125rem);
	line-height: var(--agv-lh-snug, 1.35);
	color: var(--agv-ink-2, #3c443c);
}

@media (max-width: 640px) {
	.agv-finding { padding: 14px 14px 14px 16px; }

	/* The corner word would sit on top of the title on a narrow screen, so it
	   goes above it instead and the title takes the full width back. */
	.agv-finding::after {
		position: static;
		display: block;
		margin-bottom: 4px;
	}

	.agv-finding__title { margin-right: 0; }
}

/* How many more records sit behind a collapsed finding. Set apart from the
   action line so it reads as scale rather than as another thing to do. */
.agv-finding__more {
	margin: 8px 0 0;
	font-size: var(--agv-t-sm, .9375rem);
	font-variant-numeric: tabular-nums;
	color: var(--agv-ink-3, #5d655d);
}

/* ---------------------------------------------------------------------------
   Uniform UI pass, 21 November 2026
   ------------------------------------------------------------------------ */

/* The empty module screen now offers its two actions as controls rather than
   naming them in prose, which is what the UX specification asks of an empty
   state. The controls themselves are the platform's own buttons, so only their
   arrangement is described here. */
.agv-mw__next {
	display: flex;
	flex-wrap: wrap;
	gap: var(--agv-s2, .5rem);
	margin: var(--agv-s4, 1rem) 0 0;
}

/* Visible focus for the megamenu panel filter.
   Its input clears its own outline (megamenu.css) on the pattern used across
   the platform, where the wrapper carries the ring on :focus-within instead.
   That wrapper rule was the one missing, so this input was the single place in
   the product a keyboard user could land with nothing to see. Matches the ring
   used by .agv-filter and .agv-filters__search so the behaviour is uniform. */
.agv-panel__filter:focus-within {
	border-color: var(--agv-mod-base);
	box-shadow: 0 0 0 3px var(--agv-mod-ring);
}

/* The cockpit search marked focus with a background and border change only,
   which is visible but is not the ring every other field in the product uses.
   Adding the ring makes the indicator consistent rather than nearly so. */
.agv-search:focus-within {
	box-shadow: 0 0 0 3px var(--agv-mod-ring);
}

/* ---------------------------------------------------------------------------
   The dense type ramp, 21 November 2026

   An audit of all fourteen stylesheets found 761 font-size declarations using
   39 distinct sizes, of which only five had a token. The nine-step scale in
   tokens.css steps 11, 13, 16, 18, 22, which is right for prose and too coarse
   for a data table: there is no step between 13 and 16 at all.

   So the product grew a second ramp by hand. Eight of those sizes recur often
   enough to be deliberate rather than accidental, and they are tokenised here.
   The rest are drift, mostly from typing a decimal rem such as .9rem (14.4px)
   or .88rem (14.08px), and they sit in frozen stylesheets where they cannot be
   corrected without lifting the freeze.

   Use the semantic ramp (--agv-t-*) for anything a person reads as prose.
   Use this ramp (--agv-td-*) only for dense interface chrome: table cells,
   figure captions, badges, meta lines. The names carry the pixel size at a
   16px root deliberately, so that reaching for one is a conscious act.
   ------------------------------------------------------------------------ */
:root {
	--agv-td-95:  0.59375rem;  /* 9.5  : badges and superscript meta */
	--agv-td-10:  0.625rem;    /* 10   : dense table meta */
	--agv-td-115: 0.71875rem;  /* 11.5 : secondary text in a table row */
	--agv-td-12:  0.75rem;     /* 12   : compact labels */
	--agv-td-125: 0.78125rem;  /* 12.5 : the most used of these, by some way */
	--agv-td-135: 0.84375rem;  /* 13.5 : between sm and base */
	--agv-td-14:  0.875rem;    /* 14   : body text inside a dense panel */
	--agv-td-15:  0.9375rem;   /* 15   : just under base, for long table cells */
}

/* ---------------------------------------------------------------------------
   Unheard Voices film band: room for a fourth film, 21 November 2026

   voices-repair.css sets this grid to exactly three columns. The section now
   carries four films, because the page calls itself four-nation and England
   had none, and a fourth card in a three-column grid orphans on a row of its
   own. corrections.css loads after voices-repair.css, so the same specificity
   wins on order.

   Four across on a wide screen, two on a tablet. Below 900px the existing rule
   in voices-repair.css already collapses this to a single column, which is
   right on a phone and is left alone.
   ------------------------------------------------------------------------ */
.agv-voices .agv-showcase {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1180px) and (min-width: 901px) {
	.agv-voices .agv-showcase {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------------------------------------------------------------------------
   Farm Markets campaign page, 21 November 2026

   The Unheard Voices page is not built in Elementor: it is theme-rendered,
   and its presentation comes from voices-repair.css in the agrivencia-advisor
   plugin, every rule of which is scoped to .agv-voices and is not enqueued
   here. So several of the classes it uses carry no theme CSS at all: agv-section-index, agv-intro-lead,
   agv-caution, agv-show-card, agv-button and agv-tags are styled by the page
   builder, not the stylesheet. A file-rendered page reusing those class names
   therefore arrives unstyled.

   The values below were read off the rendered Unheard Voices page rather than
   guessed, so the two campaigns read as the same publication. Every rule is
   scoped to .agv-farm-markets, so nothing here can reach the reference page or
   any other screen on the platform.
   ------------------------------------------------------------------------ */

.agv-farm-markets .agv-section-index {
	font-size: var(--agv-td-11, .6875rem);
	font-weight: 780;
	line-height: 1.65;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #536f55;
	margin: 0 0 .875rem;
}

.agv-farm-markets .agv-intro-lead {
	font-size: .84375rem;
	font-weight: 520;
	line-height: 1.78;
	color: #263e2e;
	margin: 0 0 1.0625rem;
	max-width: 37rem;
}

.agv-farm-markets .agv-prose,
.agv-farm-markets ul.agv-prose {
	max-width: 46rem;
}

.agv-farm-markets ul.agv-prose {
	padding-left: 1.1rem;
}

.agv-farm-markets ul.agv-prose li {
	margin: 0 0 .75rem;
}

/* The quiet grey panel the reference page uses for every caveat. */
.agv-farm-markets .agv-caution {
	font-size: var(--agv-td-12, .75rem);
	line-height: 1.7;
	color: #59695c;
	background: #f4f7f1;
	padding: 1rem 1.25rem;
	margin: 1.125rem 0 0;
	max-width: 46rem;
	border-radius: 6px;
}

/* A caution sitting inside a card or a list is an aside, not a panel. */
.agv-farm-markets .agv-show-card .agv-caution,
.agv-farm-markets li .agv-caution {
	display: inline;
	background: none;
	padding: 0;
	margin: 0;
	border-radius: 0;
}

.agv-farm-markets .agv-section-heading--sub {
	font-size: 1.0625rem;
	margin: 2rem 0 .75rem;
}

.agv-farm-markets .agv-showcase {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.125rem;
	margin: 1.5rem 0 0;
}

@media (max-width: 1180px) {
	.agv-farm-markets .agv-showcase { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	.agv-farm-markets .agv-showcase { grid-template-columns: 1fr; }
}

.agv-farm-markets .agv-show-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 1rem 1rem 1.125rem;
	border-radius: 10px;
}

.agv-farm-markets .agv-show-tag {
	display: block;
	font-size: var(--agv-td-10, .625rem);
	font-weight: 820;
	letter-spacing: .12em;
	line-height: 1.65;
	color: #4a7055;
	margin: 0 0 .625rem;
}

.agv-farm-markets .agv-track {
	display: grid;
	gap: .875rem;
	background: #fff;
	padding: 1.5rem 1.5rem 1.25rem;
	border-radius: 10px;
	margin: 1.5rem 0 0;
	max-width: 46rem;
	list-style: none;
}

.agv-farm-markets .agv-track-num {
	display: inline-block;
	min-width: 1.5rem;
	font-size: var(--agv-td-10, .625rem);
	font-weight: 820;
	letter-spacing: .12em;
	color: #4a7055;
}

/* The buttons. Without these the calls to action render as bare links. */
.agv-farm-markets .agv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
	margin: 1.5rem 0 0;
}

.agv-farm-markets .agv-button {
	display: inline-flex;
	align-items: center;
	font-size: var(--agv-td-13, .8125rem);
	font-weight: 740;
	line-height: 1.65;
	padding: .75rem 1.1875rem;
	border-radius: 4px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color .15s var(--agv-ease, ease), border-color .15s var(--agv-ease, ease);
}

.agv-farm-markets .agv-button-primary {
	color: #132c21;
	background: #cbe0a2;
	border-color: #cbe0a2;
}

.agv-farm-markets .agv-button-primary:hover,
.agv-farm-markets .agv-button-primary:focus-visible {
	background: #bcd58e;
	border-color: #bcd58e;
}

.agv-farm-markets .agv-button-ghost {
	color: #1f3a2b;
	background: transparent;
	border-color: #bfcfc1;
}

.agv-farm-markets .agv-button-ghost:hover,
.agv-farm-markets .agv-button-ghost:focus-visible {
	border-color: #8fae96;
	background: #f4f7f1;
}

.agv-farm-markets .agv-button:focus-visible {
	outline: 3px solid var(--agv-brand, #4a7055);
	outline-offset: 2px;
}

.agv-farm-markets .agv-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin: 1.5rem 0 0;
}

@media (max-width: 820px) {
	.agv-farm-markets .agv-two-col { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------------------------------------------------------------------------
   Campaign canvas and the Farm Markets in-page navigation, 21 November 2026

   Campaign pages drop the platform navigation, instrument panel and footer
   directory, so the page's own bar is the only navigation on it. The Unheard
   Voices bar is styled inside that page's own content; these values were read
   off it so the two campaigns carry the same furniture.

   Scoped to .agv-farm-markets and .agv-canvas, so nothing here reaches an
   application screen.
   ------------------------------------------------------------------------ */

.agv-canvas .agv-shell--canvas { min-height: 100vh; display: flex; flex-direction: column; }
.agv-canvas .agv-main { flex: 1 0 auto; }

/* The legal strip that replaces the footer directory. */
.agv-footer--canvas {
	border-top: 1px solid var(--agv-rule, #dfe7df);
	padding: var(--agv-s6, 2rem) 0;
	margin-top: var(--agv-s8, 3rem);
}

.agv-footer--canvas .agv-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--agv-s3, .75rem) var(--agv-s5, 1.5rem);
	margin: var(--agv-s4, 1rem) 0 var(--agv-s3, .75rem);
}

.agv-footer--canvas .agv-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--agv-s2, .5rem) var(--agv-s4, 1rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.agv-farm-markets .agv-contents,
.agv-canvas .agv-contents {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #f8faf6;
	border-bottom: 1px solid #dfe7df;
}

.agv-farm-markets .agv-contents-inner {
	display: flex;
	align-items: center;
	gap: var(--agv-s5, 1.5rem);
	padding: .75rem 1.75rem;
	max-width: 74.5rem;
	margin-inline: auto;
}

.agv-farm-markets .agv-mini-logo {
	display: flex;
	align-items: center;
	gap: .5625rem;
	text-decoration: none;
	white-space: nowrap;
}

.agv-farm-markets .agv-logo-txt {
	font-size: 1.0625rem;
	font-weight: 620;
	letter-spacing: -.02em;
	color: #16392a;
}

.agv-farm-markets .agv-logo-txt em { font-style: normal; font-weight: 400; }

.agv-farm-markets .agv-logo-sub {
	padding-left: .625rem;
	border-left: 1px solid #cfdcd2;
	font-size: .59375rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: #4a7055;
}

.agv-farm-markets .agv-contents-links {
	display: flex;
	gap: .25rem;
	margin-left: auto;
}

.agv-farm-markets .agv-menu-item { position: relative; }

.agv-farm-markets .agv-menu-item > a {
	display: block;
	padding: .625rem .8125rem;
	font-size: var(--agv-td-125, .78125rem);
	font-weight: 740;
	color: #486050;
	text-decoration: none;
	border-radius: 4px;
}

.agv-farm-markets .agv-menu-item > a:hover,
.agv-farm-markets .agv-menu-item > a:focus-visible { background: #eef3ea; color: #16392a; }

.agv-farm-markets .agv-submenu {
	position: absolute;
	top: 2.5rem;
	left: 0;
	z-index: 80;
	min-width: 14rem;
	padding: .5rem 0;
	background: #fff;
	border: 1px solid #d9e5da;
	border-radius: 8px;
	box-shadow: 0 16px 44px rgba(22, 57, 42, .16);
	opacity: 0;
	visibility: hidden;
	transition: opacity .12s var(--agv-ease, ease), visibility .12s var(--agv-ease, ease);
}

.agv-farm-markets .agv-menu-item:hover .agv-submenu,
.agv-farm-markets .agv-menu-item:focus-within .agv-submenu { opacity: 1; visibility: visible; }

.agv-farm-markets .agv-submenu a {
	display: block;
	padding: .5rem 1rem;
	font-size: var(--agv-td-125, .78125rem);
	color: #24402f;
	text-decoration: none;
}

.agv-farm-markets .agv-submenu a:hover,
.agv-farm-markets .agv-submenu a:focus-visible { background: #f2f6ef; }

.agv-farm-markets .agv-contents-cta { flex: none; }

/* The bar stacks rather than scrolls off on a narrow screen. */
@media (max-width: 1100px) {
	.agv-farm-markets .agv-contents-inner { flex-wrap: wrap; gap: .75rem 1rem; padding: .75rem 1.25rem; }
	.agv-farm-markets .agv-contents-links { margin-left: 0; flex-wrap: wrap; }
	.agv-farm-markets .agv-submenu { position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0; min-width: 0; padding: 0 0 0 .75rem; display: none; }
	.agv-farm-markets .agv-menu-item:focus-within .agv-submenu { display: block; }
}

/* A sticky bar must not hide the section it just jumped to. */
.agv-farm-markets .agv-section { scroll-margin-top: 5rem; }

/* The one control left between the end of a campaign and the end of the
   document. Deliberately plain: it is a way back to a choice, not a footer. */
.agv-canvas-consent {
	max-width: 74.5rem;
	margin: var(--agv-s8, 3rem) auto var(--agv-s6, 2rem);
	padding: 0 1.75rem;
}

.agv-canvas-consent__btn {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: var(--agv-td-12, .75rem);
	color: var(--agv-ink-3, #59695c);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.agv-canvas-consent__btn:hover,
.agv-canvas-consent__btn:focus-visible { color: var(--agv-ink, #182d24); }

/* ------------------------------------------------------------------ *
 * Farm Markets: cover, route strip and iconography.
 *
 * The Unheard Voices presentation lives in agrivencia-advisor's
 * voices-repair.css, every rule scoped to .agv-voices, and that sheet is
 * not enqueued on this page. Rather than widen that scope: which would
 * drag 460 unrelated rules onto a page that does not want them: the
 * primitives the two campaigns genuinely share are restated here against
 * .agv-farm-markets, so the pages match by design rather than by accident
 * and neither can break the other.
 * ------------------------------------------------------------------ */

.agv-farm-markets .agv-campaign-cover{background:var(--av-forest,#14402c);color:#fff;padding:58px 0 64px;position:relative}
.agv-farm-markets .agv-hero-bg{background:linear-gradient(100deg,rgba(8,30,21,.96) 0%,rgba(10,35,25,.92) 40%,rgba(12,40,29,.78) 62%,rgba(16,50,35,.46) 100%),url('https://images.unsplash.com/photo-1533900298318-6b8da08a523e?q=80&w=2000&fit=crop&crop=entropy&auto=format') center/cover no-repeat}
.agv-farm-markets .agv-hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:54px;align-items:center}
.agv-farm-markets .agv-cover-story h1{font-size:clamp(2.25rem,4.3vw,3.8125rem);line-height:1.04;letter-spacing:-.05em;font-weight:780;margin:0 0 15px;color:#fff}
.agv-farm-markets .agv-cover-story h1 span{display:block;color:#d0e4c1}
.agv-farm-markets .agv-kicker{letter-spacing:.14em;font-size:.6875rem;font-weight:780;color:#c4dbb9;margin:0 0 19px;text-transform:uppercase}
.agv-farm-markets .agv-kicker-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#c5dc9e;margin-right:10px}
.agv-farm-markets .agv-deck{font-size:1.1875rem;font-weight:670;color:#fff;margin:0 0 10px;line-height:1.5}
.agv-farm-markets .agv-cover-description{max-width:690px;font-size:.84375rem;line-height:1.78;color:#dee9de;margin:0 0 22px}
.agv-farm-markets .agv-cover-points{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0 0 21px;border:1px solid #ffffff2b;border-bottom:0}
.agv-farm-markets .agv-cover-points div{padding:12px 14px 14px;border-bottom:1px solid #ffffff2b;min-height:80px}
.agv-farm-markets .agv-cover-points div:nth-child(odd){border-right:1px solid #ffffff2b}
.agv-farm-markets .agv-cover-points strong{display:block;font-size:.625rem;letter-spacing:.09em;text-transform:uppercase;color:#b8dab4;margin-bottom:5px}
.agv-farm-markets .agv-cover-points span{display:block;font-size:.75rem;line-height:1.48;color:#f6faf6}
.agv-farm-markets .agv-cover-actions{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 13px}
.agv-farm-markets .agv-cover-note{color:#bacdbf;font-size:.75rem;line-height:1.7;max-width:690px;margin:0}
.agv-farm-markets .agv-hero-credit{position:absolute;right:22px;bottom:12px;font-size:.625rem;color:rgba(255,255,255,.55);margin:0}

/* Route strip */
.agv-farm-markets .agv-quick-route{border-bottom:1px solid var(--av-line,#dce6dc);background:#f9fbf7}
.agv-farm-markets .agv-quick-route-inner{display:flex;align-items:stretch;gap:0;flex-wrap:wrap}
.agv-farm-markets .agv-quick-route-inner>span{font-size:.625rem;letter-spacing:.1em;align-self:center;color:#647b69;font-weight:800;padding:14px 20px 14px 0;white-space:nowrap}
.agv-farm-markets .agv-quick-route a{border-left:1px solid #dce6dc;text-decoration:none;color:#315740;flex:1;min-width:185px;padding:14px 18px;display:flex;gap:11px;align-items:center}
.agv-farm-markets .agv-quick-route a:hover{background:#eef4e9}
.agv-farm-markets .agv-quick-route a:focus-visible{outline:2px solid #2a6944;outline-offset:-2px}
.agv-farm-markets .agv-route-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.agv-farm-markets .agv-route-text strong{font-size:.78125rem;font-weight:750;line-height:1.3}
.agv-farm-markets .agv-route-text em{font-style:normal;font-size:.6875rem;color:#647b69;line-height:1.35}

/* Iconography */
.agv-farm-markets .agv-ric{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#eaf2e6;color:#2a6944}
.agv-farm-markets .agv-ric svg{width:19px;height:19px}
.agv-farm-markets .agv-ric-s{display:inline-flex;width:17px;height:17px;color:#2a6944;flex-shrink:0}
.agv-farm-markets .agv-ric-s svg{width:17px;height:17px;display:block}
.agv-farm-markets .agv-section-index{display:flex;align-items:center;gap:8px}

@media(max-width:1050px){
.agv-farm-markets .agv-hero-grid{grid-template-columns:1fr;gap:34px}
.agv-farm-markets .agv-cover-story h1{font-size:2.6875rem}
}
@media(max-width:760px){
.agv-farm-markets .agv-campaign-cover{padding:38px 0 44px}
.agv-farm-markets .agv-cover-story h1{font-size:clamp(2.1875rem,8vw,3.125rem)}
.agv-farm-markets .agv-cover-points{grid-template-columns:1fr}
.agv-farm-markets .agv-cover-points div:nth-child(odd){border-right:none}
.agv-farm-markets .agv-quick-route-inner>span{width:100%;padding:10px 0 1px}
.agv-farm-markets .agv-quick-route a{min-width:50%;border-left:0;border-bottom:1px solid #dae4dc;padding:12px 6px}
}
@media(max-width:480px){
.agv-farm-markets .agv-cover-story h1{font-size:2.3125rem}
.agv-farm-markets .agv-deck{font-size:1rem}
.agv-farm-markets .agv-cover-actions{display:grid;grid-template-columns:1fr}
.agv-farm-markets .agv-quick-route a{min-width:100%}
}
@media print{
.agv-farm-markets .agv-quick-route{display:none!important}
.agv-farm-markets .agv-campaign-cover{background:#fff!important;color:#000!important}
.agv-farm-markets .agv-cover-story h1,.agv-farm-markets .agv-cover-story h1 span,.agv-farm-markets .agv-deck,.agv-farm-markets .agv-cover-description,.agv-farm-markets .agv-cover-points span{color:#000!important}
.agv-farm-markets .agv-hero-credit{display:none!important}
}

/* Ghost buttons sit on the dark cover here, not on a light panel, so they take
   the cover's own foreground. Measured against the darkest overlay the
   photograph reaches under the text column, white gives 10.9:1 and the border
   clears the 3:1 a control boundary needs. */
.agv-farm-markets .agv-cover-actions .agv-button-ghost{color:#fff;border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.07)}
.agv-farm-markets .agv-cover-actions .agv-button-ghost:hover{background:rgba(255,255,255,.16);border-color:#fff}
.agv-farm-markets .agv-cover-actions .agv-button-ghost:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* ------------------------------------------------------------------ *
 * Farm Markets: photography, charter, journey, modules, FAQ, closing.
 *
 * Added with the v4 editorial build. Sizes are in rem so a reader's own
 * font-size setting still works, and every selector stays scoped to the
 * campaign so nothing here can reach another page.
 * ------------------------------------------------------------------ */

/* Credited photography */
.agv-farm-markets .agv-figure{margin:0;border-radius:6px;overflow:hidden;background:#eef2ea}
.agv-farm-markets .agv-figure img{display:block;width:100%;height:100%;min-height:300px;object-fit:cover}
.agv-farm-markets .agv-figure figcaption{padding:.5rem .75rem;background:#f4f7f1;border-top:1px solid #e2eadf}
.agv-farm-markets .agv-credit{font-size:.625rem;letter-spacing:.02em;color:#647b69}
.agv-farm-markets .agv-two-col--media{display:grid;grid-template-columns:1.1fr .9fr;gap:2.25rem;align-items:start}
.agv-farm-markets .agv-chip{display:inline-block;font-size:.6875rem;font-weight:740;letter-spacing:.04em;color:#315740;background:#eaf2e6;border-radius:999px;padding:.3rem .7rem;margin:0 .35rem .4rem 0}

/* Programme cards with photographs */
.agv-farm-markets .agv-showcase--photo .agv-show-photo{position:relative;border-radius:5px;overflow:hidden;margin-bottom:.8rem;background:#e7eee3}
.agv-farm-markets .agv-showcase--photo .agv-show-photo img{display:block;width:100%;height:160px;object-fit:cover}
.agv-farm-markets .agv-show-when{position:absolute;left:.6rem;bottom:.55rem;font-size:.5625rem;font-weight:820;letter-spacing:.12em;color:#fff;background:rgba(10,33,23,.72);padding:.25rem .5rem;border-radius:3px}
.agv-farm-markets .agv-show-credit{margin:.5rem 0 0}

/* The charter */
.agv-farm-markets .agv-charter{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem;margin-top:1.4rem}
.agv-farm-markets .agv-charter article{border:1px solid #e2eadf;border-top:3px solid #cbe0a2;border-radius:5px;padding:1.3rem 1.25rem;background:#fff}
.agv-farm-markets .agv-charter-n{display:block;font-size:.6875rem;font-weight:820;letter-spacing:.14em;color:#5f7566;margin-bottom:.5rem}
.agv-farm-markets .agv-charter h3{font-size:1rem;font-weight:760;color:#1d3a2a;margin:0 0 .5rem}
.agv-farm-markets .agv-charter p{font-size:.84375rem;line-height:1.75;color:#45584b;margin:0}

/* The six stages */
.agv-farm-markets .agv-journey{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;margin-top:1.4rem}
.agv-farm-markets .agv-journey article{background:#f8faf6;border:1px solid #e2eadf;border-radius:5px;padding:1.15rem 1.1rem}
.agv-farm-markets .agv-journey span{display:block;font-size:.625rem;font-weight:820;letter-spacing:.1em;color:#647b69;margin-bottom:.5rem}
.agv-farm-markets .agv-journey h3{font-size:.9375rem;font-weight:760;color:#1d3a2a;margin:0 0 .45rem;line-height:1.35}
.agv-farm-markets .agv-journey p{font-size:.8125rem;line-height:1.7;color:#45584b;margin:0}

/* Module cards */
.agv-farm-markets .agv-modulegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;margin-top:1.4rem}
.agv-farm-markets .agv-modulecard{display:block;text-decoration:none;background:#fff;border:1px solid #e2eadf;border-radius:5px;padding:1.25rem 1.2rem;transition:border-color .15s,transform .15s}
.agv-farm-markets .agv-modulecard:hover{border-color:#9dba9f;transform:translateY(-2px)}
.agv-farm-markets .agv-modulecard:focus-visible{outline:2px solid #2a6944;outline-offset:2px}
.agv-farm-markets .agv-modulecard .agv-ric{margin-bottom:.8rem}
.agv-farm-markets .agv-modulecard-n{display:block;font-size:.625rem;font-weight:820;letter-spacing:.1em;color:#5f7566;margin-bottom:.35rem}
.agv-farm-markets .agv-modulecard h3{font-size:.9375rem;font-weight:760;color:#1d3a2a;margin:0 0 .45rem}
.agv-farm-markets .agv-modulecard p{font-size:.8125rem;line-height:1.7;color:#45584b;margin:0 0 .7rem}
.agv-farm-markets .agv-modulecard strong{font-size:.6875rem;font-weight:800;letter-spacing:.06em;color:#2a6944}

/* FAQ */
.agv-farm-markets .agv-faq{margin-top:1.3rem;border-top:1px solid #e2eadf}
.agv-farm-markets .agv-faq details{border-bottom:1px solid #e2eadf}
.agv-farm-markets .agv-faq summary{cursor:pointer;list-style:none;padding:.95rem 2rem .95rem 0;font-size:.875rem;font-weight:740;color:#1d3a2a;position:relative}
.agv-farm-markets .agv-faq summary::-webkit-details-marker{display:none}
.agv-farm-markets .agv-faq summary:after{content:'+';position:absolute;right:.4rem;top:.8rem;font-size:1.1rem;font-weight:600;color:#2a6944}
.agv-farm-markets .agv-faq details[open] summary:after{content:'\2013'}
.agv-farm-markets .agv-faq summary:focus-visible{outline:2px solid #2a6944;outline-offset:2px}
.agv-farm-markets .agv-faq p{font-size:.84375rem;line-height:1.78;color:#45584b;margin:0 0 1rem;max-width:62ch}

/* Closing invitation */
.agv-farm-markets .agv-final-cta{background:var(--av-forest,#14402c);color:#fff;padding:3.4rem 0 3.8rem;text-align:center}
.agv-farm-markets .agv-final-cta h2{color:#fff;font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.15;letter-spacing:-.03em;font-weight:780;margin:.4rem auto 1rem;max-width:20ch}
.agv-farm-markets .agv-final-cta .agv-intro-lead{color:#dee9de;max-width:60ch;margin:0 auto 1.4rem}
.agv-farm-markets .agv-final-cta .agv-kicker{color:#c4dbb9;justify-content:center}
.agv-farm-markets .agv-final-cta .agv-button-ghost{color:#fff;border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.07)}
.agv-farm-markets .agv-final-cta .agv-button-ghost:hover{background:rgba(255,255,255,.16);border-color:#fff}

@media(max-width:900px){
.agv-farm-markets .agv-two-col--media{grid-template-columns:1fr}
.agv-farm-markets .agv-charter,.agv-farm-markets .agv-journey,.agv-farm-markets .agv-modulegrid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
.agv-farm-markets .agv-charter,.agv-farm-markets .agv-journey,.agv-farm-markets .agv-modulegrid{grid-template-columns:1fr}
.agv-farm-markets .agv-figure img{min-height:220px}
}

/* The two-film pair sits wider than the four-card showcase. */
.agv-farm-markets .agv-showcase--pair{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
.agv-farm-markets .agv-player--fm{position:relative;border-radius:5px;overflow:hidden;background:#17301f;margin:.6rem 0 .9rem}
@media(max-width:760px){.agv-farm-markets .agv-showcase--pair{grid-template-columns:1fr}}

/* ------------------------------------------------------------------ *
 * Farm Markets: ribbon, the nine routes, and the enquiry.
 *
 * The announcement strip above the page deliberately has no rules here:
 * it uses .agv-newfeature, which is already defined once, unscoped, for
 * the Unheard Voices page. Sharing that definition is the point. If the
 * two campaigns ever look different at the top, it will be because
 * someone changed one rule, not because a copy drifted.
 * ------------------------------------------------------------------ */

.agv-farm-markets .agv-ribbon{background:#17301f;color:#dbe8dc}
.agv-farm-markets .agv-ribbon-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.agv-farm-markets .agv-ribbon-grid span{padding:.85rem 1rem;font-size:.6875rem;font-weight:780;letter-spacing:.07em;text-transform:uppercase;text-align:center;border-left:1px solid rgba(255,255,255,.14)}
.agv-farm-markets .agv-ribbon-grid span:first-child{border-left:0}

.agv-farm-markets .agv-routegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.4rem}
.agv-farm-markets .agv-routecard{position:relative;display:block;text-decoration:none;background:#fff;border:1px solid #e2eadf;border-radius:5px;padding:1.2rem 1.15rem;transition:border-color .15s,transform .15s}
.agv-farm-markets .agv-routecard:hover{border-color:#9dba9f;transform:translateY(-2px)}
.agv-farm-markets .agv-routecard:focus-visible{outline:2px solid #2a6944;outline-offset:2px}
.agv-farm-markets .agv-routecard .agv-ric{margin-bottom:.75rem}
.agv-farm-markets .agv-routecard-n{position:absolute;top:1.2rem;right:1.15rem;font-size:.625rem;font-weight:820;letter-spacing:.1em;color:#5f7566}
.agv-farm-markets .agv-routecard strong{display:block;font-size:.9375rem;font-weight:760;color:#1d3a2a;margin-bottom:.35rem}
.agv-farm-markets .agv-routecard small{display:block;font-size:.8125rem;line-height:1.6;color:#45584b}

.agv-farm-markets .agv-intake{margin-top:1.4rem;background:#f8faf6;border:1px solid #e2eadf;border-radius:6px;padding:1.6rem 1.5rem}
.agv-farm-markets .agv-intake .agv-form{max-width:none}

@media(max-width:900px){
.agv-farm-markets .agv-ribbon-grid{grid-template-columns:1fr 1fr}
.agv-farm-markets .agv-ribbon-grid span:nth-child(3){border-left:0}
.agv-farm-markets .agv-routegrid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
.agv-farm-markets .agv-ribbon-grid{grid-template-columns:1fr}
.agv-farm-markets .agv-ribbon-grid span{border-left:0;border-top:1px solid rgba(255,255,255,.14)}
.agv-farm-markets .agv-routegrid{grid-template-columns:1fr}
.agv-farm-markets .agv-intake{padding:1.1rem 1rem}
}

/* ================================================================== *
 * Farm Markets: reading and rhythm.
 *
 * Measured on the live page before writing any of this:
 *   - the body ran to 23,561px, with a single 16,794px stretch
 *     carrying no photograph, no panel and no change of surface at all;
 *   - all ten media items sat in the top 30%, so the whole lower two
 *     thirds was unbroken text;
 *   - body copy was 13.5px set across 592px, about 91 characters a
 *     line, where comfortable reading is 45-75;
 *   - list items were inheriting 16px while the paragraphs around them
 *     were 13.5px, so the page changed size without meaning to;
 *   - the entire page used two background values.
 *
 * What follows fixes those four things: one type scale, a measure that
 * stops at 68 characters, a surface that changes every other section so
 * the eye gets a pause, and two darker breaks that mark where the page
 * moves from one subject to the next.
 * ================================================================== */

/* --- One type scale ------------------------------------------------ */
.agv-farm-markets .agv-section .agv-wrap > p,
.agv-farm-markets .agv-section .agv-wrap > ul,
.agv-farm-markets .agv-section .agv-wrap > ol{max-width:68ch}
.agv-farm-markets .agv-section .agv-wrap > p{font-size:1rem;line-height:1.75;color:#36463a}
.agv-farm-markets .agv-intro-lead{font-size:1.09375rem;line-height:1.7;color:#2b3d30;max-width:62ch}
.agv-farm-markets .agv-section li{font-size:1rem;line-height:1.72;color:#36463a}
.agv-farm-markets .agv-section .agv-wrap > ul,
.agv-farm-markets .agv-section .agv-wrap > ol{padding-left:1.15rem}
.agv-farm-markets .agv-section li + li{margin-top:.55rem}
.agv-farm-markets .agv-caution{font-size:.875rem;line-height:1.7;max-width:70ch}

/* Panels keep their own slightly tighter scale, but not a different one. */
.agv-farm-markets .agv-charter p,
.agv-farm-markets .agv-faq p{font-size:.9375rem;line-height:1.75}
.agv-farm-markets .agv-journey p,
.agv-farm-markets .agv-modulecard p,
.agv-farm-markets .agv-routecard small{font-size:.875rem;line-height:1.68}

/* --- Rhythm: the surface changes every other section --------------- */
.agv-farm-markets .agv-section{padding:3.5rem 0}
.agv-farm-markets .agv-section:nth-of-type(even){background:#ffffff}
.agv-farm-markets .agv-section:nth-of-type(odd){background:#fbfcf6}
.agv-farm-markets .agv-section + .agv-section{border-top:1px solid #eaf0e7}

/* Two darker breaks, where the page changes subject. */
.agv-farm-markets #fm-control,
.agv-farm-markets #fm-status{background:#17301f;border-top:0}
.agv-farm-markets #fm-control .agv-section-heading,
.agv-farm-markets #fm-status .agv-section-heading{color:#fff}
.agv-farm-markets #fm-control .agv-intro-lead,
.agv-farm-markets #fm-status .agv-intro-lead{color:#dbe8dc}
.agv-farm-markets #fm-control .agv-wrap > p,
.agv-farm-markets #fm-status .agv-wrap > p,
.agv-farm-markets #fm-control li,
.agv-farm-markets #fm-status li{color:#cfe0d2}
.agv-farm-markets #fm-control .agv-section-index,
.agv-farm-markets #fm-status .agv-section-index{color:#9dc4a6}
.agv-farm-markets #fm-control .agv-ric-s,
.agv-farm-markets #fm-status .agv-ric-s{color:#a9d0b1}
.agv-farm-markets #fm-control strong,
.agv-farm-markets #fm-status strong,
.agv-farm-markets #fm-control b,
.agv-farm-markets #fm-status b{color:#fff}
.agv-farm-markets #fm-control .agv-caution,
.agv-farm-markets #fm-status .agv-caution{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.2);color:#cfe0d2}
.agv-farm-markets #fm-control a:not(.agv-button),
.agv-farm-markets #fm-status a:not(.agv-button){color:#cbe0a2}
.agv-farm-markets #fm-control .agv-chip,
.agv-farm-markets #fm-status .agv-chip{background:rgba(255,255,255,.12);color:#e3efe4}

@media(max-width:760px){
.agv-farm-markets .agv-section{padding:2.5rem 0}
.agv-farm-markets .agv-section .agv-wrap > p{font-size:1rem}
.agv-farm-markets .agv-intro-lead{font-size:1.03125rem}
}

/* --- Pull quotes and wide figures: places for the eye to rest ------ */
.agv-farm-markets .agv-pull{margin:2.1rem 0;padding:0 0 0 1.4rem;border-left:3px solid #cbe0a2;max-width:60ch}
.agv-farm-markets .agv-pull p{font-size:1.28125rem;line-height:1.5;font-weight:650;letter-spacing:-.012em;color:#1d3a2a;margin:0}
.agv-farm-markets .agv-pull cite{display:block;margin-top:.55rem;font-style:normal;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:#5f7566}
.agv-farm-markets #fm-control .agv-pull p,
.agv-farm-markets #fm-status .agv-pull p{color:#eaf3ea}

.agv-farm-markets .agv-figure--wide{margin:2rem 0;max-width:none}
.agv-farm-markets .agv-figure--wide img{min-height:0;height:340px}

/* --- Reading progress ---------------------------------------------
   This page is long. A reader who is nine screens in has no way of
   telling whether that is most of it or a tenth of it. The bar rides
   under the sticky contents strip and answers that. It is decorative
   to assistive technology, which already has the heading structure. */
.agv-farm-markets .agv-progress{position:fixed;left:0;top:0;height:3px;width:100%;z-index:60;background:transparent;pointer-events:none}
.agv-farm-markets .agv-progress i{display:block;height:100%;width:0;background:#cbe0a2;transition:width .08s linear}

@media(prefers-reduced-motion:reduce){
.agv-farm-markets .agv-progress i{transition:none}
}
@media(max-width:760px){
.agv-farm-markets .agv-pull p{font-size:1.125rem}
.agv-farm-markets .agv-figure--wide img{height:220px}
}
@media print{
.agv-farm-markets .agv-progress{display:none!important}
}

/* --- Grouped roles: open the one you came for ---------------------- */
.agv-farm-markets .agv-rolegroups{margin-top:1.3rem;border-top:1px solid #e2eadf}
.agv-farm-markets .agv-rolegroup{border-bottom:1px solid #e2eadf}
.agv-farm-markets .agv-rolegroup > summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.95rem 2rem .95rem 0;position:relative}
.agv-farm-markets .agv-rolegroup > summary::-webkit-details-marker{display:none}
.agv-farm-markets .agv-rolegroup > summary > span{font-size:1rem;font-weight:740;color:#1d3a2a}
.agv-farm-markets .agv-rolegroup > summary > small{font-size:.6875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#5f7566;white-space:nowrap}
.agv-farm-markets .agv-rolegroup > summary:after{content:'+';position:absolute;right:.2rem;top:.8rem;font-size:1.15rem;font-weight:600;color:#2a6944}
.agv-farm-markets .agv-rolegroup[open] > summary:after{content:'\2013'}
.agv-farm-markets .agv-rolegroup > summary:focus-visible{outline:2px solid #2a6944;outline-offset:2px}
.agv-farm-markets .agv-rolegroup ul{margin:0 0 1.1rem;padding-left:1.15rem;max-width:68ch}

/* ------------------------------------------------------------------ *
 * Farm Markets: the wayfinder.
 * Two cards for two readers. The first-visit card is paper; the
 * returning card is the deep green of the chapter breaks, so the pair
 * reads as a choice rather than a list.
 * ------------------------------------------------------------------ */
.agv-farm-markets .agv-wayfinder{background:linear-gradient(180deg,#f3f7f1 0%,#f8faf6 100%);padding:3.4rem 0 3.6rem;border-bottom:1px solid #e2eadf}
.agv-farm-markets .agv-wayfinder-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:1.4rem;align-items:stretch}
.agv-farm-markets .agv-wayfind{border-radius:14px;padding:2.1rem 2.2rem 2.2rem;position:relative;overflow:hidden}
.agv-farm-markets .agv-wayfind--first{background:#ffffff;border:1px solid #dfe8dc;box-shadow:0 22px 48px rgba(23,48,31,.07)}
.agv-farm-markets .agv-wayfind--return{background:
	radial-gradient(120% 90% at 85% -10%,rgba(214,194,146,.14) 0%,rgba(214,194,146,0) 55%),
	linear-gradient(160deg,#17301f 0%,#1c3a26 60%,#204330 100%);color:#eef4ea}
.agv-farm-markets .agv-wayfind-kicker{font-size:.6875rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#2a6944;margin:0 0 .65rem}
.agv-farm-markets .agv-wayfind--return .agv-wayfind-kicker{color:#cdbd8e}
.agv-farm-markets .agv-wayfind h2{font-size:1.45rem;line-height:1.25;margin:0 0 .7rem;color:#15291c}
.agv-farm-markets .agv-wayfind--return h2{color:#f4f8f0}
.agv-farm-markets .agv-wayfind > p{font-size:.95rem;line-height:1.7;color:#36463a;max-width:46ch;margin:0 0 1.2rem}
.agv-farm-markets .agv-wayfind-steps{list-style:none;margin:0;padding:0;counter-reset:wayfind}
.agv-farm-markets .agv-wayfind-steps li{counter-increment:wayfind;border-top:1px solid #e7eee4}
.agv-farm-markets .agv-wayfind-steps a{display:grid;grid-template-columns:2.1rem 1fr;gap:.2rem .9rem;align-items:baseline;padding:.85rem .2rem;text-decoration:none;border-radius:8px}
.agv-farm-markets .agv-wayfind-steps a:hover{background:#f3f7f1}
.agv-farm-markets .agv-wayfind-steps a:before{content:counter(wayfind,decimal-leading-zero);grid-row:1/3;font-weight:800;font-size:.95rem;color:#5f7566;font-variant-numeric:tabular-nums}
.agv-farm-markets .agv-wayfind-steps strong{font-size:1rem;color:#1d3a2a}
.agv-farm-markets .agv-wayfind-steps small{grid-column:2;font-size:.85rem;color:#5c6c5f;line-height:1.5}
.agv-farm-markets .agv-wayfind-links{display:flex;flex-direction:column;gap:.45rem}
.agv-farm-markets .agv-wayfind-links a{display:flex;align-items:center;gap:.6rem;padding:.72rem 1rem;border:1px solid rgba(238,244,234,.26);border-radius:9px;color:#eef4ea;text-decoration:none;font-size:.92rem;font-weight:640;background:rgba(255,255,255,.035);transition:background .15s ease,border-color .15s ease}
.agv-farm-markets .agv-wayfind-links a:hover{background:rgba(255,255,255,.1);border-color:rgba(238,244,234,.5)}
.agv-farm-markets .agv-live-dot{width:.5rem;height:.5rem;border-radius:50%;background:#8fd6a4;box-shadow:0 0 0 3px rgba(143,214,164,.25);flex:none}
@media (max-width:860px){
	.agv-farm-markets .agv-wayfinder-grid{grid-template-columns:1fr}
	.agv-farm-markets .agv-wayfind{padding:1.7rem 1.4rem 1.8rem}
}

/* ------------------------------------------------------------------ *
 * Farm Markets: a quiet premium texture pass.
 * A paper wash behind light sections and a woven sheen behind the two
 * dark chapters, built from gradients alone so no asset can fail to
 * load and nothing sits in front of the words.
 * ------------------------------------------------------------------ */
.agv-farm-markets .agv-section{position:relative}
.agv-farm-markets .agv-section > .agv-wrap{position:relative;z-index:1}
.agv-farm-markets .agv-section:before{content:'';position:absolute;inset:0;pointer-events:none;background:
	radial-gradient(90rem 32rem at 110% -8%,rgba(42,105,68,.045) 0%,rgba(42,105,68,0) 60%),
	radial-gradient(70rem 28rem at -10% 108%,rgba(214,194,146,.06) 0%,rgba(214,194,146,0) 55%)}
.agv-farm-markets #fm-control:before,
.agv-farm-markets #fm-status:before{background:
	radial-gradient(80rem 30rem at 108% -10%,rgba(214,194,146,.1) 0%,rgba(214,194,146,0) 55%),
	repeating-linear-gradient(115deg,rgba(255,255,255,.016) 0,rgba(255,255,255,.016) 2px,rgba(255,255,255,0) 2px,rgba(255,255,255,0) 9px)}

/* ------------------------------------------------------------------ *
 * Farm Markets: the rulebook.
 * The rolegroup disclosure pattern, with a ledger left rule so a rule
 * reads as an entry rather than a bullet.
 * ------------------------------------------------------------------ */
.agv-farm-markets .agv-rulegroup > summary > span{font-size:1.05rem}
.agv-farm-markets .agv-rulegroup ul{list-style:none;padding-left:0}
.agv-farm-markets .agv-rulegroup ul li{border-left:3px solid #d6c292;padding:.15rem 0 .15rem 1rem;margin:0 0 .85rem;font-size:1rem;line-height:1.7;color:#36463a}

/* ------------------------------------------------------------------ *
 * Farm Markets: the funding illustration.
 * ------------------------------------------------------------------ */
.agv-farm-markets .agv-calc{margin:2.2rem 0 1.6rem;border:1px solid #dfe8dc;border-radius:14px;background:#ffffff;padding:1.9rem 2rem 1.6rem;box-shadow:0 22px 48px rgba(23,48,31,.06)}
.agv-farm-markets .agv-calc-kicker{font-size:.6875rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#2a6944;margin:0 0 .4rem}
.agv-farm-markets .agv-calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem;margin-top:1.1rem}
.agv-farm-markets .agv-calc-col h4{font-size:.8125rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#5f7566;margin:0 0 .6rem}
.agv-farm-markets .agv-calc-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.45rem 0;border-bottom:1px solid #eef3ec;font-size:.92rem;color:#36463a}
.agv-farm-markets .agv-calc-field{display:inline-flex;align-items:center;gap:.25rem;font-weight:700;color:#1d3a2a;white-space:nowrap}
.agv-farm-markets .agv-calc-row input{width:5.2rem;padding:.3rem .45rem;border:1px solid #cdd9cc;border-radius:6px;font:inherit;font-weight:700;color:#1d3a2a;background:#fbfcf9;text-align:right}
.agv-farm-markets .agv-calc-row input:focus{outline:2px solid #2a6944;outline-offset:1px}
.agv-farm-markets .agv-calc-total{display:flex;flex-wrap:wrap;align-items:center;gap:.9rem 1.6rem;margin-top:1.3rem;padding:1rem 1.2rem;border-radius:10px;background:#f3f7f1;font-size:.95rem;color:#36463a}
.agv-farm-markets .agv-calc-total output{font-weight:800;color:#1d3a2a}
.agv-farm-markets .agv-calc-total strong{font-weight:760;color:#1f5c38}
.agv-farm-markets .agv-calc--short .agv-calc-total strong{color:#8a4b24}
.agv-farm-markets .agv-calc--over .agv-calc-total strong{color:#275d8a}
.agv-farm-markets .agv-calc-total [data-calc-reset]{margin-left:auto}
@media (max-width:760px){
	.agv-farm-markets .agv-calc{padding:1.3rem 1.1rem 1.2rem}
	.agv-farm-markets .agv-calc-grid{grid-template-columns:1fr}
}

/* ------------------------------------------------------------------ *
 * Farm Markets: the Market Hall band on the campaign page.
 * ------------------------------------------------------------------ */
.agv-farm-markets .agv-hallband{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:start;margin-top:.6rem}
.agv-farm-markets .agv-hallband-list{list-style:none;margin:0;padding:1.5rem 1.7rem;border-radius:14px;background:
	radial-gradient(120% 90% at 85% -10%,rgba(214,194,146,.14) 0%,rgba(214,194,146,0) 55%),
	linear-gradient(160deg,#17301f 0%,#1c3a26 60%,#204330 100%);color:#eef4ea}
.agv-farm-markets .agv-hallband-list li{padding:.55rem 0;border-bottom:1px solid rgba(238,244,234,.16);font-size:.92rem;line-height:1.6}
.agv-farm-markets .agv-hallband-list li:last-child{border-bottom:0}
.agv-farm-markets .agv-hallband-list b{color:#f4f8f0}
@media (max-width:860px){.agv-farm-markets .agv-hallband{grid-template-columns:1fr}}

/* ------------------------------------------------------------------ *
 * The Market Hall page.
 * The same publication grammar as the campaign, in a shorter register:
 * a compact dark cover, state chips that only claim what is true, a
 * real calendar marked up as the table it is, and a board that keeps
 * confirmed and forming apart by colour as well as by words.
 * ------------------------------------------------------------------ */
.agv-farm-markets.agv-market-hall .agv-hall-cover{min-height:0;padding:4.6rem 0 3.6rem}
.agv-farm-markets.agv-market-hall .agv-hall-cover .agv-cover-story{max-width:60rem}
.agv-farm-markets.agv-market-hall .agv-hall-state{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.5rem}
.agv-farm-markets.agv-market-hall .agv-hall-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.42rem .85rem;border-radius:999px;border:1px solid rgba(238,244,234,.3);font-size:.78125rem;font-weight:700;letter-spacing:.03em;color:#dfe8da;background:rgba(255,255,255,.04)}
.agv-farm-markets.agv-market-hall .agv-hall-chip--live{border-color:rgba(143,214,164,.5);color:#d9f2e0}
.agv-farm-markets.agv-market-hall .agv-hall-chip--live:before{content:'';width:.5rem;height:.5rem;border-radius:50%;background:#8fd6a4;box-shadow:0 0 0 3px rgba(143,214,164,.22)}
.agv-farm-markets.agv-market-hall .agv-halllist{list-style:none;margin:0;padding:0;max-width:62ch}
.agv-farm-markets.agv-market-hall .agv-halllist li{border-left:3px solid #2a6944;padding:.3rem 0 .3rem 1rem;margin:0 0 .8rem;font-size:1rem;line-height:1.7;color:#36463a}
.agv-farm-markets.agv-market-hall .agv-halllist--coming li{border-left-color:#cdd9cc}
.agv-farm-markets.agv-market-hall .agv-calgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin:1.4rem 0 1.6rem}
.agv-farm-markets.agv-market-hall .agv-calmonth{border:1px solid #dfe8dc;border-radius:12px;background:#ffffff;padding:1.1rem 1.2rem 1rem;box-shadow:0 16px 36px rgba(23,48,31,.05)}
.agv-farm-markets.agv-market-hall .agv-cal{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.agv-farm-markets.agv-market-hall .agv-cal caption{text-align:left;font-weight:760;color:#1d3a2a;font-size:.95rem;padding-bottom:.6rem}
.agv-farm-markets.agv-market-hall .agv-cal th{font-size:.6875rem;font-weight:800;letter-spacing:.06em;color:#5f7566;padding:.25rem 0;text-align:center}
.agv-farm-markets.agv-market-hall .agv-cal td{text-align:center;padding:.32rem 0;font-size:.85rem;color:#36463a}
.agv-farm-markets.agv-market-hall .agv-cal td.agv-cal-event{position:relative}
.agv-farm-markets.agv-market-hall .agv-cal td.agv-cal-event > span{display:inline-grid;place-items:center;min-width:1.7rem;height:1.7rem;border-radius:50%;background:#1f5c38;color:#ffffff;font-weight:800}
.agv-farm-markets.agv-market-hall .agv-cal-note{margin:.7rem 0 0;font-size:.78125rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#5f7566}
@media (max-width:860px){.agv-farm-markets.agv-market-hall .agv-calgrid{grid-template-columns:1fr}}
.agv-farm-markets.agv-market-hall .agv-eventgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:1.2rem;margin:1rem 0 1.8rem}
.agv-farm-markets.agv-market-hall .agv-eventcard{border:1px solid #dfe8dc;border-left:4px solid #1f5c38;border-radius:12px;background:#ffffff;padding:1.2rem 1.3rem;box-shadow:0 16px 36px rgba(23,48,31,.05)}
.agv-farm-markets.agv-market-hall .agv-eventcard--forming{border-left-color:#cdbd8e;background:#fbfaf5}
.agv-farm-markets.agv-market-hall .agv-eventcard-state{margin:0 0 .4rem;font-size:.6875rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#1f5c38}
.agv-farm-markets.agv-market-hall .agv-eventcard--forming .agv-eventcard-state{color:#8a7437}
.agv-farm-markets.agv-market-hall .agv-eventcard h4{margin:0 0 .3rem;font-size:1.1rem;color:#15291c}
.agv-farm-markets.agv-market-hall .agv-eventcard-prog{margin:0 0 .2rem;font-size:.85rem;font-weight:700;color:#2a6944}
.agv-farm-markets.agv-market-hall .agv-eventcard-when{margin:0 0 .8rem;font-size:.9rem;color:#5c6c5f}
.agv-farm-markets.agv-market-hall .agv-eventcard-note{margin:0;font-size:.85rem;color:#8a7437;font-weight:640}
.agv-farm-markets.agv-market-hall .agv-board-empty{border:1px dashed #cdd9cc;border-radius:14px;padding:1.6rem 1.8rem;background:#fbfcf9;max-width:72ch}
.agv-farm-markets.agv-market-hall .agv-memberdesk{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:1rem;margin:1.2rem 0 1.8rem}
.agv-farm-markets.agv-market-hall .agv-memberdoor{display:block;border:1px solid #dfe8dc;border-radius:12px;background:#ffffff;padding:1.1rem 1.2rem;text-decoration:none;box-shadow:0 16px 36px rgba(23,48,31,.05);transition:transform .15s ease,box-shadow .15s ease}
.agv-farm-markets.agv-market-hall .agv-memberdoor:hover{transform:translateY(-2px);box-shadow:0 22px 44px rgba(23,48,31,.09)}
.agv-farm-markets.agv-market-hall .agv-memberdoor strong{display:block;color:#1d3a2a;font-size:1rem;margin-bottom:.25rem}
.agv-farm-markets.agv-market-hall .agv-memberdoor small{display:block;color:#5c6c5f;font-size:.85rem;line-height:1.55}
.agv-farm-markets.agv-market-hall .agv-notices{list-style:none;margin:.8rem 0 0;padding:0;max-width:72ch}
.agv-farm-markets.agv-market-hall .agv-notices li{display:grid;grid-template-columns:9.5rem 1fr;gap:1rem;padding:.75rem 0;border-bottom:1px solid #e7eee4;font-size:.95rem;line-height:1.65;color:#36463a}
.agv-farm-markets.agv-market-hall .agv-notices time{font-weight:760;color:#1d3a2a;font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:640px){.agv-farm-markets.agv-market-hall .agv-notices li{grid-template-columns:1fr}}
.agv-farm-markets.agv-market-hall .agv-hall-back{padding-top:0}
.agv-farm-markets .agv-wayfind-steps a{grid-template-columns:2.1rem minmax(0,1fr)}
.agv-farm-markets.agv-market-hall .agv-tags .agv-chip{white-space:normal;line-height:1.5;text-align:left}
