/*
 * Agency Theme component styles.
 *
 * Concept: the printed programme. Ivory pages, fine rules, small-caps
 * labels, numbered sections. Ink is used only for the hero, the featured
 * photography band and the final call to action. Brass appears only on Ink.
 */

:root {
	--agency-rule: color-mix(in srgb, var(--wp--preset--color--ink) 18%, transparent);
	--agency-rule-dark: color-mix(in srgb, var(--wp--preset--color--ivory) 22%, transparent);
	--agency-focus: var(--wp--preset--color--bronze);
	--agency-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Base ------------------------------------------------------------------ */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

a {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--agency-focus);
	outline-offset: 3px;
	border-radius: 1px;
}

img {
	height: auto;
	max-width: 100%;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--ink);
	clip-path: none;
	color: var(--wp--preset--color--paper);
	height: auto;
	left: 16px;
	padding: 12px 16px;
	top: 16px;
	width: auto;
	z-index: 100000;
}

/*
 * Full-width sections sit edge to edge: their own padding sets the rhythm,
 * so the default block gap between them is removed.
 */
.wp-site-blocks > *,
.wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

/* Long-form text keeps a readable measure. The limit sits on the text
   itself, not its container, so the column stays aligned with the title. */
.agency-measure > :is(p, ul, ol, h2, h3, blockquote, .agency-business-details, .agency-contact) {
	max-width: 66ch;
}

/* Dark sections -------------------------------------------------------- */

.has-ink-background-color,
.has-graphite-background-color {
	--agency-focus: var(--wp--preset--color--brass);
	color: var(--wp--preset--color--ivory);
}

.has-ink-background-color :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--paper);
}

.has-ink-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--ivory);
	text-decoration-color: var(--wp--preset--color--brass);
}

.has-ink-background-color a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--paper);
}

.has-ink-background-color .agency-muted,
.has-ink-background-color figcaption {
	color: var(--wp--preset--color--smoke);
}

/* Buttons --------------------------------------------------------------- */

.wp-element-button,
.wp-block-button__link {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	transition: background-color 200ms var(--agency-ease), color 200ms var(--agency-ease), border-color 200ms var(--agency-ease);
}

.has-ink-background-color .wp-element-button,
.has-ink-background-color .wp-block-button__link {
	background-color: var(--wp--preset--color--brass);
	border-color: var(--wp--preset--color--brass);
	color: var(--wp--preset--color--ink);
}

.has-ink-background-color .wp-element-button:hover,
.has-ink-background-color .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

/* Secondary action: a text link with underline offset. */
.wp-block-button.is-style-text .wp-block-button__link {
	background: transparent;
	border-color: transparent;
	color: inherit;
	padding-left: 0;
	padding-right: 0;
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}

.has-ink-background-color .wp-block-button.is-style-text .wp-block-button__link {
	background: transparent;
	border-color: transparent;
	color: var(--wp--preset--color--ivory);
	text-decoration-color: var(--wp--preset--color--brass);
}

.wp-block-button.is-style-text .wp-block-button__link:hover {
	text-decoration-thickness: 2px;
}

/* Labels and section headings ------------------------------------------ */

.agency-label {
	color: var(--wp--preset--color--bronze);
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.has-ink-background-color .agency-label {
	color: var(--wp--preset--color--brass);
}

.agency-section {
	border-top: 1px solid var(--agency-rule);
}

/* No rule directly after a dark band. */
.has-ink-background-color + .agency-section {
	border-top: 0;
}

.agency-section > .agency-section__head {
	margin-bottom: var(--wp--preset--spacing--70);
}

.agency-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
}

.agency-muted {
	color: var(--wp--preset--color--stone);
}

/* Wordmark -------------------------------------------------------------- */

.agency-wordmark {
	color: inherit;
	display: inline-flex;
	flex-direction: column;
	gap: 0.3rem;
	line-height: 1;
	min-height: 44px;
	justify-content: center;
	text-decoration: none;
}

.agency-wordmark:hover {
	color: inherit;
}

.agency-wordmark__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
	letter-spacing: -0.005em;
	white-space: nowrap;
}

.agency-wordmark__descriptor {
	color: var(--wp--preset--color--bronze);
	font-family: var(--wp--preset--font-family--text);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.32em;
	padding-left: 0.1em;
	text-transform: uppercase;
}

.has-ink-background-color .agency-wordmark__descriptor {
	color: var(--wp--preset--color--brass);
}

/* Header and navigation ------------------------------------------------- */

.site-header {
	border-bottom: 1px solid var(--agency-rule);
	position: relative;
	z-index: 20;
}

.site-header .wp-block-navigation {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.02em;
}

.site-header .wp-block-navigation-item__content {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--bronze);
	text-underline-offset: 0.45em;
}

.site-header .site-nav__cta > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--bronze);
	border-radius: 2px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0 1.2rem;
	text-decoration: none;
}

.site-header .site-nav__cta > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}

/* Open overlay: a printed index card rather than a full-bleed takeover. */
.site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--ink);
	padding: 16px clamp(16px, 4vw, 48px) 32px;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 72px;
}

.site-header .is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.site-header .is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--agency-rule);
	width: 100%;
}

.site-header .is-menu-open .wp-block-navigation-item__content {
	justify-content: flex-start;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.75rem;
	font-weight: 400;
	letter-spacing: 0;
	min-height: 56px;
	width: 100%;
}

.site-header .is-menu-open .site-nav__cta {
	border-bottom: 0;
	margin-top: 24px;
}

.site-header .is-menu-open .site-nav__cta > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--base);
	justify-content: center;
	min-height: 52px;
}

/*
 * Core switches to the inline menu at 600px. Six items and a button do not
 * fit beside the wordmark until about 1024px, so keep the menu button
 * until then.
 */
@media (min-width: 600px) and (max-width: 1023.98px) {
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex;
	}

	.site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Illustrations ---------------------------------------------------------- */

.agency-illus {
	margin: 0;
}

.agency-illus img {
	display: block;
	height: auto;
	width: 100%;
}

/* Framed: illustrations on Ivory get the same 2px corner as photographs. */
.agency-illus--framed img,
.agency-card .agency-illus img,
.agency-illus--organisers img {
	border-radius: 2px;
}

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

.agency-hero {
	overflow: hidden;
}

.agency-hero h1 {
	max-width: 15ch;
}

.agency-hero .agency-lead {
	max-width: 52ch;
}

/* The arch sits flush on the bottom edge of the Ink band. */
.agency-hero__art {
	align-self: flex-end;
}

.agency-hero__art .agency-illus {
	margin: 0 auto;
	max-width: 560px;
}

@media (min-width: 782px) {
	.agency-hero__columns {
		align-items: flex-end !important;
	}

	.agency-hero__copy {
		align-self: center !important;
		padding-bottom: var(--wp--preset--spacing--80);
	}

	.agency-hero__art .agency-illus {
		margin-right: 0;
	}
}

@media (max-width: 781.98px) {
	/* On phones the copy and call to action come first; the arch follows, cropped to its focal area. */
	.agency-hero__art .agency-illus {
		max-width: 420px;
	}
}

/* The plan illustration leans out of its column on wide screens. */
@media (min-width: 900px) {
	.agency-illus--bleed-left {
		margin-left: -6%;
		margin-top: var(--wp--preset--spacing--60);
		width: 112%;
	}
}

/* Format cards: illustration first, then the label and copy. */
.agency-card .agency-illus {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Final call to action: oversized cards cropped by the band's right edge. */
.agency-cta {
	overflow: hidden;
	position: relative;
}

.agency-cta > .agency-cta__cards {
	bottom: -12%;
	margin: 0 !important;
	max-width: none !important;
	pointer-events: none;
	position: absolute;
	right: -4%;
	width: min(40vw, 520px);
}

@media (max-width: 899.98px) {
	.agency-cta > .agency-cta__cards {
		display: none;
	}
}

.agency-cta > .alignwide {
	position: relative;
}

/* Coverage guide -------------------------------------------------------- */

.agency-coverage table {
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	width: 100%;
}

.wp-block-table.agency-coverage thead {
	border-bottom: 0;
}

.wp-block-table.agency-coverage :is(th, td) {
	border: 0;
	border-bottom: 1px solid var(--agency-rule);
	padding: 14px 16px 14px 0;
	text-align: left;
	vertical-align: top;
}

.wp-block-table.agency-coverage thead th {
	border-bottom-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--stone);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.agency-coverage tbody td:last-child {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	line-height: 1.2;
}

.agency-coverage figcaption {
	margin-top: 12px;
	text-align: left;
}

/* Service cards --------------------------------------------------------- */

.agency-cards {
	gap: var(--wp--preset--spacing--60) !important;
}

.agency-card {
	border-top: 1px solid var(--wp--preset--color--ink);
	padding-top: var(--wp--preset--spacing--50);
}

.agency-card h3 {
	margin-top: var(--wp--preset--spacing--30);
}

.agency-event-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.agency-event-links li {
	margin: 0;
}

.agency-event-links a {
	align-items: center;
	display: inline-flex;
	min-height: 44px;
}

/* Panels ---------------------------------------------------------------- */

.agency-panel {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--agency-rule);
	border-radius: 2px;
}

.agency-panel + .agency-panel {
	margin-top: 0;
}

/* Photography band ------------------------------------------------------ */

/* Every photograph shares one 3:2 crop so top and bottom edges align. */
.agency-photo-band .wp-block-image {
	margin: 0;
}

.agency-photo-band .wp-block-image img {
	aspect-ratio: 3 / 2;
	display: block;
	object-fit: cover;
	width: 100%;
}

/* Phones: the lead photograph full width, the other two side by side beneath. */
@media (max-width: 781.98px) {
	.agency-photo-band .wp-block-columns {
		display: grid !important;
		gap: 12px;
		grid-template-columns: 1fr 1fr;
	}

	.agency-photo-band .wp-block-column {
		flex-basis: auto !important;
		margin: 0 !important;
	}

	.agency-photo-band .wp-block-column:first-child {
		grid-column: 1 / -1;
	}
}

/* The hero arch stands on a fine rule where the proof band begins. */
.agency-hero + .agency-photo-band {
	border-top: 1px solid var(--agency-rule-dark);
}

/* Numbered steps -------------------------------------------------------- */

.agency-steps {
	counter-reset: agency-step;
	display: grid;
	gap: var(--wp--preset--spacing--60);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) {
	.agency-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.agency-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.agency-steps > li {
	border-top: 1px solid var(--wp--preset--color--ink);
	counter-increment: agency-step;
	margin: 0;
	padding-top: var(--wp--preset--spacing--50);
}

.agency-steps > li::before {
	color: var(--wp--preset--color--bronze);
	content: counter(agency-step, decimal-leading-zero);
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.5rem;
	line-height: 1;
	margin-bottom: var(--wp--preset--spacing--40);
}

.agency-steps strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-m);
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: var(--wp--preset--spacing--30);
}

/* Founder note ---------------------------------------------------------- */

.agency-founder__portrait img {
	aspect-ratio: 4 / 5;
	display: block;
	object-fit: cover;
	width: 100%;
}

.agency-founder blockquote {
	border-left: 1px solid var(--wp--preset--color--bronze);
	margin: 0;
	padding-left: var(--wp--preset--spacing--50);
}

/* FAQ ------------------------------------------------------------------- */

.agency-faq .wp-block-details {
	border-bottom: 1px solid var(--agency-rule);
	margin: 0;
}

.agency-faq .wp-block-details:first-of-type {
	border-top: 1px solid var(--wp--preset--color--ink);
}

.agency-faq summary {
	cursor: pointer;
	display: flex;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-m);
	gap: 16px;
	justify-content: space-between;
	line-height: 1.25;
	list-style: none;
	min-height: 44px;
	padding: 20px 0;
}

.agency-faq summary::-webkit-details-marker {
	display: none;
}

.agency-faq summary::after {
	color: var(--wp--preset--color--bronze);
	content: "+";
	flex: none;
	font-family: var(--wp--preset--font-family--text);
	font-size: 1.5rem;
	line-height: 1.1;
}

.agency-faq details[open] summary::after {
	content: "\2212";
}

.agency-faq .wp-block-details > :not(summary) {
	margin-top: 0;
	max-width: 62ch;
	padding-bottom: 24px;
}

/* Call to action band --------------------------------------------------- */

.agency-cta .agency-contact {
	margin-top: var(--wp--preset--spacing--40);
}

/* Contact details block ------------------------------------------------- */

.agency-contact__promise {
	margin: 0;
}

.agency-contact__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.agency-contact__links a {
	align-items: center;
	display: inline-flex;
	min-height: 44px;
}

.agency-contact__label {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	margin-right: 8px;
	text-transform: uppercase;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
}

.site-footer h2 {
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer li {
	margin: 0;
}

.site-footer li a {
	align-items: center;
	color: var(--wp--preset--color--ink);
	display: inline-flex;
	min-height: 44px;
	min-width: 44px;
	text-decoration: none;
}

.site-footer li a:hover {
	text-decoration: underline;
}

.site-footer .agency-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
}

.site-footer__legal {
	border-top: 1px solid var(--agency-rule);
	color: var(--wp--preset--color--stone);
}

.site-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
}

.site-footer__legal a {
	color: var(--wp--preset--color--stone);
}

/* Motion ---------------------------------------------------------------- */

/*
 * Section headings fade up once as they enter the viewport. The script
 * marks only headings that start below the fold as pending, so without
 * JavaScript everything is visible and nothing on screen flickers.
 */
.agency-reveal.is-pending {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 280ms var(--agency-ease), transform 280ms var(--agency-ease);
}

.agency-reveal.is-pending.is-revealed {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.agency-reveal.is-pending {
		opacity: 1;
		transform: none;
	}
}

/* Page heroes ------------------------------------------------------------ */

.agency-page-hero {
	border-bottom: 1px solid var(--agency-rule);
}

/* One rule between a page hero and the first section, not two. */
.agency-page-hero + .agency-section {
	border-top: 0;
}

.agency-page-hero h1 {
	max-width: 18ch;
}

.agency-page-hero .agency-lead {
	max-width: 56ch;
}

.agency-page-hero .agency-illus img,
.agency-page-hero .wp-block-image img {
	border-radius: 2px;
}

.agency-photo-portrait img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

.agency-photo-wide img {
	aspect-ratio: 21 / 9;
	object-fit: cover;
	width: 100%;
}

.wp-block-image img {
	border-radius: 2px;
}

/* Lists: ticks, crosses and numbered timelines ---------------------------- */

.agency-ticks,
.agency-crosses,
.agency-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.agency-ticks > li,
.agency-crosses > li {
	border-top: 1px solid var(--agency-rule);
	padding: 14px 0 14px 32px;
	position: relative;
}

.agency-ticks > li::before,
.agency-crosses > li::before {
	color: var(--wp--preset--color--bronze);
	font-weight: 600;
	left: 0;
	position: absolute;
	top: 14px;
}

.agency-ticks > li::before {
	content: "\2713";
}

.agency-crosses > li::before {
	content: "\2715";
	color: var(--wp--preset--color--stone);
}

.agency-timeline {
	counter-reset: agency-timeline;
}

.agency-timeline > li {
	border-top: 1px solid var(--agency-rule);
	counter-increment: agency-timeline;
	padding: 16px 0 16px 56px;
	position: relative;
}

.agency-timeline > li::before {
	color: var(--wp--preset--color--bronze);
	content: counter(agency-timeline, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	left: 0;
	line-height: 1.2;
	position: absolute;
	top: 14px;
}

/* Coverage calculator ------------------------------------------------------ */

.agency-cc {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--agency-rule);
	border-radius: 2px;
	display: grid;
	gap: 0;
}

@media (min-width: 900px) {
	.agency-cc {
		grid-template-columns: 1.1fr 1fr;
	}
}

.agency-cc__form,
.agency-cc__result {
	padding: clamp(24px, 4vw, 48px);
}

.agency-cc__result {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ivory);
	--agency-focus: var(--wp--preset--color--brass);
}

.agency-cc__field {
	border: 0;
	margin: 0 0 24px;
	padding: 0;
}

.agency-cc__field > label,
.agency-cc__field legend {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.agency-cc input[type="number"] {
	background: var(--wp--preset--color--ivory);
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: 2px;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 1.25rem;
	min-height: 48px;
	padding: 8px 12px;
	width: 10ch;
}

.agency-cc__choice {
	align-items: center;
	display: flex;
	gap: 10px;
	min-height: 44px;
}

.agency-cc__choice input {
	accent-color: var(--wp--preset--color--bronze);
	height: 20px;
	width: 20px;
}

.agency-cc__label {
	color: var(--wp--preset--color--brass);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0;
	text-transform: uppercase;
}

.agency-cc__count {
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-l);
	line-height: 1.1;
	margin: 12px 0 16px;
}

.agency-cc__reasons {
	margin: 0 0 16px;
	padding-left: 1.1em;
}

.agency-cc__note {
	color: var(--wp--preset--color--smoke);
	font-size: var(--wp--preset--font-size--small);
}

.agency-cc__result .wp-element-button {
	background: var(--wp--preset--color--brass);
	border: 1px solid var(--wp--preset--color--brass);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.agency-cc__result .wp-element-button:hover {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--paper);
}

.agency-cc__result:focus {
	outline: none;
}

/* Supplier documents and business details ------------------------------- */

.agency-doc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.agency-doc {
	border-top: 1px solid var(--agency-rule);
	display: grid;
	gap: 4px 24px;
	grid-template-columns: 1fr auto;
	padding: 16px 0;
}

.agency-doc__title {
	font-weight: 600;
}

.agency-doc__status {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.agency-doc.is-available .agency-doc__status {
	color: var(--wp--preset--color--bronze);
}

.agency-doc__note,
.agency-doc__meta {
	color: var(--wp--preset--color--stone);
	font-size: var(--wp--preset--font-size--small);
	grid-column: 1 / -1;
}

.agency-doc-list--empty {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--agency-rule);
	border-radius: 2px;
	max-width: 66ch;
	padding: 24px;
}

.agency-business-details {
	display: grid;
	gap: 0;
	margin: 24px 0 0;
}

.agency-business-details > div {
	border-top: 1px solid var(--agency-rule);
	display: grid;
	gap: 4px 24px;
	grid-template-columns: minmax(9rem, 1fr) 2fr;
	padding: 12px 0;
}

.agency-business-details dt {
	color: var(--wp--preset--color--stone);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.agency-business-details dd {
	margin: 0;
}

/* Guides ------------------------------------------------------------------ */

.agency-article .wp-block-post-title {
	max-width: 22ch;
}

.agency-article__meta {
	color: var(--wp--preset--color--stone);
	font-size: var(--wp--preset--font-size--small);
}

.agency-article .wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--heading-m);
	margin-top: var(--wp--preset--spacing--70);
}

.agency-author {
	border-top: 1px solid var(--wp--preset--color--ink);
	margin-top: var(--wp--preset--spacing--80) !important;
	max-width: 66ch;
	padding-top: var(--wp--preset--spacing--50);
}

.agency-author__label {
	color: var(--wp--preset--color--bronze);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0;
	text-transform: uppercase;
}

.agency-author__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-m);
	margin: 4px 0 8px;
}

.agency-guide-card {
	border-top: 1px solid var(--wp--preset--color--ink);
	padding-top: var(--wp--preset--spacing--40);
}

.agency-guide-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--heading-m);
	margin: 8px 0;
}

.agency-guide-card .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.agency-guide-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Long-form text pages ------------------------------------------------------- */

.agency-text-page .wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--heading-m);
	margin-top: var(--wp--preset--spacing--70);
}

.agency-text-page .wp-block-post-content h3 {
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
}

/* FAQ list block inherits the FAQ styles. */
.agency-faq-list .wp-block-details:first-of-type {
	border-top: 1px solid var(--wp--preset--color--ink);
}

/* Acts directory --------------------------------------------------------- */

.agency-filters {
	border-bottom: 1px solid var(--agency-rule);
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--40);
}

.agency-filter__label,
.agency-act-count {
	color: var(--wp--preset--color--stone);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.agency-filter__label {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.agency-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.agency-filter__list a {
	align-items: center;
	color: var(--wp--preset--color--ink);
	display: inline-flex;
	min-height: 44px;
	text-decoration: none;
}

.agency-filter__list a:hover,
.agency-filter__list a[aria-current="page"] {
	text-decoration: underline;
}

.agency-filter__list a[aria-current="page"] {
	color: var(--wp--preset--color--bronze);
	font-weight: 600;
}

.agency-act-grid {
	display: grid;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
}

.agency-act-card {
	border-top: 1px solid var(--wp--preset--color--ink);
	margin: 0;
	padding-top: var(--wp--preset--spacing--40);
	position: relative;
}

.agency-act-card__media {
	margin-bottom: var(--wp--preset--spacing--30);
}

.agency-act-card__image {
	aspect-ratio: 4 / 5;
	border-radius: 2px;
	display: block;
	object-fit: cover;
	width: 100%;
}

.agency-act-card__name {
	font-size: var(--wp--preset--font-size--heading-m);
	margin: 0 0 4px;
}

/* The whole card is the link target, with the name as its accessible text. */
.agency-act-card__name a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.agency-act-card__name a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.agency-act-card:hover .agency-act-card__name a {
	text-decoration: underline;
}

.agency-act-card__headline {
	margin: 0;
}

.agency-act-card__meta {
	color: var(--wp--preset--color--stone);
	font-size: var(--wp--preset--font-size--small);
	margin: 4px 0 0;
}

.agency-act-empty {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--agency-rule);
	border-radius: 2px;
	padding: var(--wp--preset--spacing--50);
}

/* Act profile -------------------------------------------------------------- */

.agency-act__portrait img {
	border-radius: 2px;
}

.agency-act-facts {
	border-top: 1px solid var(--wp--preset--color--ink);
	margin: 0;
}

.agency-act-facts__row {
	border-bottom: 1px solid var(--agency-rule);
	display: grid;
	gap: 4px 16px;
	grid-template-columns: 7.5rem 1fr;
	padding: 14px 0;
}

.agency-act-facts dt {
	color: var(--wp--preset--color--bronze);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	padding-top: 0.2em;
	text-transform: uppercase;
}

.agency-act-facts dd {
	margin: 0;
}

.agency-act-creds {
	list-style: none;
	margin: 0;
	padding: 0;
}

.agency-act-creds li + li {
	margin-top: 4px;
}

.agency-act-gallery {
	margin-top: var(--wp--preset--spacing--60);
}

.agency-act-reels,
.agency-quotes {
	margin-top: var(--wp--preset--spacing--80);
}

.agency-act-reels__heading,
.agency-quotes__heading {
	font-size: var(--wp--preset--font-size--heading-l);
	margin: 0 0 var(--wp--preset--spacing--50);
}

.agency-reels {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.agency-reel {
	aspect-ratio: 16 / 9;
	margin: 0;
}

.agency-reel__play {
	align-items: flex-end;
	background: var(--wp--preset--color--ink);
	border-radius: 2px;
	box-sizing: border-box;
	color: var(--wp--preset--color--ivory);
	display: flex;
	gap: 16px;
	height: 100%;
	padding: var(--wp--preset--spacing--40);
	text-decoration: none;
}

.agency-reel__play:focus-visible {
	outline-color: var(--wp--preset--color--brass);
}

.agency-reel__icon {
	border: 1px solid var(--wp--preset--color--brass);
	border-radius: 50%;
	flex: none;
	height: 56px;
	position: relative;
	width: 56px;
}

.agency-reel__icon::after {
	border-bottom: 9px solid transparent;
	border-left: 14px solid var(--wp--preset--color--brass);
	border-top: 9px solid transparent;
	content: "";
	left: 22px;
	position: absolute;
	top: 18px;
}

.agency-reel__text {
	display: grid;
	gap: 2px;
}

.agency-reel__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-m);
	line-height: 1.2;
}

.agency-reel__note {
	color: var(--wp--preset--color--smoke);
	font-size: var(--wp--preset--font-size--small);
}

.agency-reel__frame {
	border: 0;
	border-radius: 2px;
	height: 100%;
	width: 100%;
}

/* Testimonials ------------------------------------------------------------- */

.agency-quotes__list {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.agency-quote {
	border-top: 1px solid var(--wp--preset--color--ink);
	margin: 0;
	padding-top: var(--wp--preset--spacing--40);
}

.agency-quote blockquote {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-m);
	line-height: 1.3;
	margin: 0 0 var(--wp--preset--spacing--30);
}

.agency-quote blockquote p {
	margin: 0;
}

.agency-quote figcaption {
	display: grid;
	font-size: var(--wp--preset--font-size--small);
}

.agency-quote__name {
	font-weight: 600;
}

.agency-quote__role {
	color: var(--wp--preset--color--stone);
}

.agency-case-facts {
	margin: var(--wp--preset--spacing--50) 0;
	max-width: 66ch;
}

/* Breadcrumbs -------------------------------------------------------------- */

.agency-crumbs {
	border-bottom: 1px solid var(--agency-rule);
}

.agency-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	list-style: none;
	margin: 0;
	padding: 0;
}

.agency-breadcrumbs li {
	align-items: center;
	color: var(--wp--preset--color--stone);
	display: inline-flex;
	margin: 0;
}

.agency-breadcrumbs li + li::before {
	color: var(--wp--preset--color--stone);
	content: "/";
	padding: 0 10px;
}

.agency-breadcrumbs a {
	align-items: center;
	color: var(--wp--preset--color--ink);
	display: inline-flex;
	min-height: 44px;
	text-decoration: none;
}

.agency-breadcrumbs a:hover {
	text-decoration: underline;
}

.agency-breadcrumbs [aria-current="page"] {
	align-items: center;
	display: inline-flex;
	min-height: 44px;
}

/* Holding page and preview access ------------------------------------------ */

.agency-holding {
	background: var(--wp--preset--color--ink);
}

.agency-holding__main {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
}

.agency-holding__main > * {
	box-sizing: border-box;
	width: 100%;
}

.agency-holding__main h1 {
	font-size: var(--wp--preset--font-size--heading-xl);
	max-width: 16ch;
	text-wrap: balance;
}

.agency-holding__main .agency-wordmark {
	margin-bottom: var(--wp--preset--spacing--70);
}

.agency-holding__art img {
	display: block;
	margin-left: auto;
	max-height: 78vh;
	width: auto;
}

.agency-holding__footer {
	border-top: 1px solid var(--agency-rule-dark);
	color: var(--wp--preset--color--smoke);
	font-size: var(--wp--preset--font-size--small);
	margin-top: var(--wp--preset--spacing--70) !important;
	padding-top: var(--wp--preset--spacing--40);
}

.agency-preview {
	border-top: 1px solid var(--agency-rule-dark);
	margin-top: var(--wp--preset--spacing--60) !important;
	max-width: 30rem;
	padding-top: var(--wp--preset--spacing--50);
}

.agency-preview-form__intro {
	color: var(--wp--preset--color--smoke);
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 12px;
}

.agency-preview-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.agency-preview-form__row label {
	flex-basis: 100%;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.agency-preview-form__row input {
	background: var(--wp--preset--color--graphite);
	border: 1px solid var(--wp--preset--color--smoke);
	border-radius: 2px;
	color: var(--wp--preset--color--paper);
	flex: 1 1 12rem;
	font: inherit;
	min-height: 44px;
	padding: 0 12px;
}

.agency-preview-form__row input[aria-invalid="true"] {
	border-color: var(--wp--preset--color--brass);
}

.agency-preview-form__row button {
	border: 1px solid var(--wp--preset--color--brass);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0 20px;
}

.agency-preview-form__error {
	background: var(--wp--preset--color--graphite);
	border-left: 3px solid var(--wp--preset--color--brass);
	color: var(--wp--preset--color--paper);
	margin: 0 0 12px;
	padding: 10px 14px;
}

@media (max-width: 781px) {
	.agency-holding__art img {
		margin: 0 auto;
		max-height: 52vh;
	}
}

/* Bar shown to testers browsing with the preview password. */
.agency-preview-bar {
	background: var(--wp--preset--color--graphite);
	color: var(--wp--preset--color--ivory);
	font-size: var(--wp--preset--font-size--small);
	padding: 8px 16px;
	text-align: center;
}

.agency-preview-bar p {
	margin: 0;
}

.agency-preview-bar a {
	align-items: center;
	color: var(--wp--preset--color--paper);
	display: inline-flex;
	min-height: 44px;
	text-decoration-color: var(--wp--preset--color--brass);
}

/* Enquiry form -------------------------------------------------------------- */

.agency-enquiry {
	--agency-error: #7a2b31;
	margin-top: var(--wp--preset--spacing--60);
	max-width: 44rem;
}

.agency-enquiry [hidden] {
	display: none !important;
}

/* Spam trap: invisible to people, still filled in by many bots. */
.agency-enquiry__trap {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.agency-enquiry__group {
	border: 0;
	margin: 0 0 var(--wp--preset--spacing--50);
	min-width: 0;
	padding: 0;
}

.agency-enquiry__group legend,
.agency-enquiry__field > label:not(.agency-enquiry__choice) {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	padding: 0;
}

.agency-enquiry__req {
	color: var(--wp--preset--color--stone);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}

/* "What are you planning?": three choices as selectable tiles. */
#enq-planning .agency-enquiry__tiles {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.agency-enquiry__choice {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 12px;
	min-height: 44px;
}

#enq-planning .agency-enquiry__choice {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--agency-rule);
	border-radius: 2px;
	padding: 12px 14px;
	transition: border-color 200ms var(--agency-ease);
}

#enq-planning .agency-enquiry__choice:hover,
#enq-planning .agency-enquiry__choice:has(input:checked) {
	border-color: var(--wp--preset--color--ink);
}

#enq-planning .agency-enquiry__choice:has(input:checked) {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}

.agency-enquiry input[type="radio"],
.agency-enquiry input[type="checkbox"] {
	accent-color: var(--wp--preset--color--ink);
	flex: none;
	height: 20px;
	margin: 0;
	width: 20px;
}

.agency-enquiry__row {
	display: grid;
	gap: 0 var(--wp--preset--spacing--50);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agency-enquiry__field {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--wp--preset--spacing--50);
	min-width: 0;
}

/* The date field and its "not fixed yet" box share one cell. */
.agency-enquiry__field > .agency-enquiry__field {
	margin-bottom: 4px;
}

.agency-enquiry__field > .agency-enquiry__choice {
	align-self: flex-start;
	font-size: var(--wp--preset--font-size--small);
}

.agency-enquiry input[type="text"],
.agency-enquiry input[type="email"],
.agency-enquiry input[type="tel"],
.agency-enquiry input[type="date"],
.agency-enquiry input[type="number"],
.agency-enquiry select,
.agency-enquiry textarea {
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: 2px;
	box-sizing: border-box;
	color: var(--wp--preset--color--ink);
	font: inherit;
	line-height: 1.4;
	min-height: 48px;
	padding: 10px 12px;
	width: 100%;
}

.agency-enquiry select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141518' stroke-width='1.5'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	background-size: 12px 8px;
	cursor: pointer;
	padding-right: 40px;
}

.agency-enquiry textarea {
	min-height: 9rem;
	resize: vertical;
}

.agency-enquiry input:hover,
.agency-enquiry select:hover,
.agency-enquiry textarea:hover {
	border-color: var(--wp--preset--color--ink);
}

/* Errors: text, a thicker border and a marker, never colour alone. */
.agency-enquiry__error {
	color: var(--agency-error);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin: 0 0 6px;
}

.agency-enquiry__error::before {
	content: "! ";
}

.agency-enquiry .has-error input,
.agency-enquiry .has-error select {
	border-color: var(--agency-error);
	box-shadow: inset 0 0 0 1px var(--agency-error);
}

.agency-enquiry__summary {
	background: var(--wp--preset--color--paper);
	border-left: 3px solid var(--agency-error);
	margin-bottom: var(--wp--preset--spacing--50);
	padding: 16px 20px;
}

.agency-enquiry__summary h2 {
	font-size: var(--wp--preset--font-size--heading-m);
	margin: 0 0 8px;
}

.agency-enquiry__summary ul {
	margin: 0;
	padding-left: 1.2em;
}

.agency-enquiry__summary a {
	color: var(--agency-error);
}

/* Documents: one choice per line, then the reference field. */
.agency-enquiry__group:not(#enq-planning) .agency-enquiry__field {
	margin-top: 12px;
}

.agency-enquiry__submit {
	align-items: center;
	border-top: 1px solid var(--agency-rule);
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-top: var(--wp--preset--spacing--30);
	padding-top: var(--wp--preset--spacing--50);
}

.agency-enquiry__submit button {
	cursor: pointer;
	font-size: var(--wp--preset--font-size--base);
	padding-left: 32px;
	padding-right: 32px;
}

.agency-enquiry__privacy {
	color: var(--wp--preset--color--stone);
	flex: 1 1 16rem;
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.cf-turnstile {
	margin-bottom: var(--wp--preset--spacing--50);
}

@media (max-width: 599px) {
	.agency-enquiry__row {
		grid-template-columns: 1fr;
	}
}

/* "What happens next" stays in view beside the form on wide screens. */
@media (min-width: 782px) {
	.agency-enquire-aside {
		position: sticky;
		top: var(--wp--preset--spacing--60);
	}
}
