/**
 * About and Sitemap: page-templates/about.php and page-templates/sitemap.php.
 */

/* About ---------------------------------------------------------------------- */

.bud-about-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(340px, 34vw, 460px);
	margin-top: clamp(0.75rem, 1.6vw, 1.25rem);
	overflow: hidden;
	border-radius: 22px;
	background: #060807;
}

.bud-about-hero img {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bud-about-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgb(6 8 7 / 94%) 8%, rgb(6 8 7 / 35%) 60%, rgb(6 8 7 / 15%));
}

.bud-about-hero-copy {
	max-width: 46rem;
	padding: clamp(1.25rem, 4vw, 3rem);
}

.bud-about-hero h1 {
	margin: 0;
	font-family: var(--bud-face);
	font-size: clamp(4rem, 9vw, 7.5rem);
	font-weight: 400;
	line-height: 0.9;
	text-transform: uppercase;
	color: #fff;
}

.bud-about-hero p {
	margin: 0.85rem 0 0;
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
	line-height: 1.4;
	color: #eef0ea;
}

.bud-about-counts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 0;
	border-bottom: 1px solid var(--bud-line);
}

/* Number over its label, both centred in their share of the row. */
.bud-about-counts > div {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	justify-content: flex-end;
	gap: 0.15rem;
	padding: clamp(1.25rem, 2.5vw, 2rem) 0.5rem;
	text-align: center;
}

.bud-about-counts dd {
	margin: 0;
	font-family: var(--bud-face);
	font-size: clamp(3rem, 5vw, 4.25rem);
	line-height: 1;
	color: var(--bud-lime);
}

.bud-about-counts dt {
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--bud-muted);
}

.bud-about-main {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.bud-about-main .bud-body > :first-child {
	margin-top: 0;
}

.bud-about-rules {
	align-self: start;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border-radius: 18px;
	background: var(--bud-surface);
}

.bud-about-rules h2 {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face);
	font-size: 2.5rem;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.bud-about-rules ol {
	display: grid;
	gap: 1rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.bud-about-rules strong {
	display: block;
	font-size: 1rem;
	color: #fff;
}

.bud-about-rules span {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--bud-muted);
}

.bud-about-rules > a {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--bud-lime);
	text-decoration: none;
}

.bud-about-paths {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.bud-about-paths a {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: 240px;
	overflow: hidden;
	border-radius: 16px;
	background: #060807;
	color: #eef0ea;
	text-decoration: none;
}

.bud-about-paths img {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.bud-about-paths a:hover img,
.bud-about-paths a:focus-visible img {
	transform: scale(1.04);
}

.bud-about-paths a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgb(6 8 7 / 92%) 15%, rgb(6 8 7 / 5%) 75%);
}

.bud-about-paths span {
	padding: 1.15rem;
	font-size: 0.95rem;
	line-height: 1.35;
}

.bud-about-paths strong {
	display: block;
	font-family: var(--bud-face);
	font-size: 2.5rem;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.bud-about-paths a:hover strong,
.bud-about-paths a:focus-visible strong {
	color: var(--bud-lime);
}

@media (max-width: 860px) {
	.bud-about-main {
		grid-template-columns: minmax(0, 1fr);
	}

	.bud-about-paths {
		grid-template-columns: minmax(0, 1fr);
	}

	.bud-about-paths a {
		min-height: 170px;
	}
}

/* Sitemap -------------------------------------------------------------------- */

.bud-sitemap-head {
	padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem);
}

.bud-sitemap-head h1 {
	margin: 0;
	font-family: var(--bud-face);
	font-size: clamp(3.5rem, 7vw, 5.5rem);
	font-weight: 400;
	line-height: 0.95;
	text-transform: uppercase;
	color: #fff;
}

.bud-sitemap-head p {
	margin: 0.5rem 0 0;
	color: var(--bud-muted);
}

.bud-sitemap-group {
	margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.bud-sitemap-group h2 {
	margin: 0 0 1rem;
	padding: 0 0 0.5rem;
	border: 0;
	border-bottom: 1px solid var(--bud-line-strong);
	font-family: var(--bud-face);
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 400;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

.bud-sitemap-group h2 a {
	color: inherit;
	text-decoration: none;
}

.bud-sitemap-group h2 a:hover {
	color: var(--bud-lime);
}

.bud-sitemap-group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A child sits one step in from its parent, with a line tying the level together. */
.bud-sitemap-group li ul {
	margin-left: 0.3rem;
	padding-left: 0.9rem;
	border-left: 1px solid var(--bud-line);
}

.bud-sitemap-group li a,
.bud-sitemap-group li > span {
	display: block;
	padding: 0.22rem 0;
	font-size: 0.94rem;
	line-height: 1.35;
	text-decoration: none;
}

.bud-sitemap-group li a {
	color: var(--bud-ink);
}

.bud-sitemap-group li a:hover,
.bud-sitemap-group li a:focus-visible {
	color: var(--bud-lime);
}

/* A parent reads as a heading for what's under it. */
.bud-sitemap-group li:has(> ul) > a,
.bud-sitemap-group li:has(> ul) > span {
	margin-top: 0.35rem;
	font-weight: 700;
	color: #fff;
}

/* Each section's list runs across the page, and a parent stays whole with its children. */
.bud-sitemap-group > ul,
.bud-sitemap-group .is-wide > ul {
	columns: 5 150px;
	column-gap: clamp(1.5rem, 3vw, 2.5rem);
	margin: 0;
	padding: 0;
	border: 0;
}

.bud-sitemap-group > ul > li {
	break-inside: avoid;
}

.bud-sitemap-group > ul > li:has(> ul) {
	padding-bottom: 1.25rem;
}

/* A few short lists share out the five columns, wrapping inside their share. */
@media (min-width: 900px) {
	.bud-sitemap-group > .is-spread {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: clamp(1.5rem, 3vw, 2.5rem);
	}

	.bud-sitemap-group > .is-spread > li {
		grid-column: span var(--bud-span, 1);
	}

	.bud-sitemap-group > .is-spread > li > ul {
		columns: var(--bud-span, 1);
		column-gap: clamp(1.5rem, 3vw, 2.5rem);
	}

	.bud-sitemap-group > .is-spread > .is-wide {
		grid-column: 1 / -1;
	}

	.bud-sitemap-group > .is-spread > .is-wide > ul {
		columns: 5;
	}
}

.bud-sitemap-group > ul > li:has(> ul) > a,
.bud-sitemap-group > ul > li:has(> ul) > span {
	margin-top: 0;
}

/* Too long for one column, so it takes the width of the page. */
.bud-sitemap-group .is-wide {
	column-span: all;
	margin-top: 0.75rem;
}

.bud-sitemap-group .is-wide > a,
.bud-sitemap-group .is-wide > span {
	margin-bottom: 0.4rem;
	font-weight: 700;
	color: #fff;
}

/* About: the section edited on the Company info screen */

.bud-about-story {
	margin-bottom: 2.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--bud-line);
}

.bud-about-story h2 {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face);
	font-size: clamp(2.5rem, 4.5vw, 3.5rem);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.bud-about-story .bud-body {
	font-size: 1.08rem;
}

.bud-contact-admin {
	margin: 1rem 0 0;
	font-size: 0.85rem;
	color: var(--bud-muted);
}

.bud-contact-admin a {
	color: var(--bud-lime);
}

/* Contact -------------------------------------------------------------------- */

.bud-contact-head,
.bud-policy-head {
	padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem);
}

.bud-contact-head h1,
.bud-policy-head h1 {
	margin: 0;
	font-family: var(--bud-face);
	font-size: clamp(3.5rem, 7vw, 5.5rem);
	font-weight: 400;
	line-height: 0.95;
	text-transform: uppercase;
	color: #fff;
}

.bud-contact-head p {
	max-width: 40rem;
	margin: 0.6rem 0 0;
	font-size: 1.1rem;
	color: var(--bud-muted);
}

.bud-contact-body {
	max-width: 46rem;
	margin-bottom: 2rem;
}

/* The four reasons to write, each opening the form on that topic */
.bud-contact-routes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	padding-top: clamp(1rem, 2vw, 1.5rem);
	border-top: 1px solid var(--bud-line);
}

.bud-contact-routes a {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.1rem 1.2rem;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--bud-surface);
	color: var(--bud-muted);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bud-contact-routes a:hover,
.bud-contact-routes a.is-on {
	border-color: var(--bud-lime);
}

.bud-contact-routes strong {
	font-family: var(--bud-face);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.bud-contact-routes span {
	flex: 1;
	font-size: 0.92rem;
	line-height: 1.45;
}

.bud-contact-routes em {
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 700;
	color: var(--bud-lime);
}

.bud-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: start;
}

.bud-contact-form {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border-radius: 16px;
	background: var(--bud-surface);
	scroll-margin-top: 6rem;
}

.bud-contact-form h2 {
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face);
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.bud-field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1rem;
}

.bud-field {
	display: block;
	margin: 0 0 1rem;
}

.bud-field > span {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: #fff;
}

.bud-field i {
	font-style: normal;
	font-weight: 400;
	color: var(--bud-muted);
}

.bud-field input,
.bud-field select,
.bud-field textarea {
	display: block;
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--bud-line-strong);
	border-radius: 8px;
	background: #050706;
	font: inherit;
	color: var(--bud-ink);
}

.bud-field textarea {
	min-height: 11rem;
	resize: vertical;
}

.bud-field input:focus,
.bud-field select:focus,
.bud-field textarea:focus {
	border-color: var(--bud-lime);
	outline: 2px solid var(--bud-lime);
	outline-offset: 0;
}

.bud-field [aria-invalid="true"] {
	border-color: var(--bud-bad);
}

.bud-field .bud-field-error {
	display: block;
	margin: 0.35rem 0 0;
	font-size: 0.88rem;
	font-weight: 400;
	color: var(--bud-bad);
}

.bud-contact-problem {
	margin: 0 0 1.25rem;
	padding: 0.8rem 1rem;
	border-left: 3px solid var(--bud-bad);
	border-radius: 4px;
	background: #050706;
	color: var(--bud-ink);
}

.bud-contact-problem a {
	color: var(--bud-lime);
}

/* Off screen rather than display:none, which scripts look for */
.bud-contact-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bud-contact-send {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.25rem;
}

.bud-contact-send button {
	padding: 0.8rem 1.5rem;
	border: 0;
	border-radius: 8px;
	background: var(--bud-lime);
	font: inherit;
	font-weight: 700;
	color: var(--bud-lime-ink);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.bud-contact-send button:hover,
.bud-contact-send button:focus-visible {
	background: #fff;
}

.bud-contact-send p {
	flex: 1 1 16rem;
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--bud-muted);
}

.bud-contact-send a,
.bud-contact-sent a {
	color: var(--bud-lime);
}

.bud-contact-sent p {
	max-width: 40rem;
	margin: 0 0 0.85rem;
	color: var(--bud-muted);
}

.bud-contact-rail {
	display: grid;
	gap: 1rem;
}

.bud-contact-card {
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border-radius: 16px;
	background: var(--bud-surface);
}

.bud-contact-card h2 {
	margin: 0 0 0.85rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.bud-contact-card a {
	color: var(--bud-lime);
}

.bud-contact-answers {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--bud-line);
}

.bud-contact-answers a {
	display: block;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--bud-line);
	text-decoration: none;
}

.bud-contact-answers strong,
.bud-contact-answers span {
	display: block;
}

.bud-contact-answers strong {
	font-size: 0.98rem;
	color: #fff;
	transition: color 0.15s ease;
}

.bud-contact-answers a:hover strong {
	color: var(--bud-lime);
}

.bud-contact-answers span {
	font-size: 0.88rem;
	line-height: 1.4;
	color: var(--bud-muted);
}

.bud-contact-note {
	margin: 0.85rem 0 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--bud-muted);
}

@media (max-width: 1100px) {
	.bud-contact-routes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bud-contact-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.bud-contact-routes,
	.bud-field-row {
		grid-template-columns: 1fr;
	}
}

.bud-company-links {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Policies ------------------------------------------------------------------- */

.bud-policy .bud-body {
	max-width: 46rem;
}

.bud-policy .bud-on-page {
	max-width: 46rem;
	margin-bottom: 2rem;
}

.bud-policy table {
	width: 100%;
	margin-block: 1rem;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.bud-policy th,
.bud-policy td {
	padding: 0.6rem 0.75rem 0.6rem 0;
	border-bottom: 1px solid var(--bud-line);
	text-align: left;
	vertical-align: top;
}

.bud-policy th {
	color: #fff;
}
