/* Bengal Classic Corporate. Tokens match the active Novamira design. */
:root {
	--bd-bg: #E9EDF1;
	--bd-surface: #FFFFFF;
	--bd-ink: #1F2933;
	--bd-muted: #55636F;
	--bd-line: #CBD3DB;
	--bd-navy: #1A365D;
	--bd-navy-dark: #12264A;
	--bd-accent: #E0A100;
	--bd-accent-dark: #B98500;
	--bd-tint: #F3F5F8;
	--bd-heading: Georgia, 'Times New Roman', serif;
	--bd-body: Arial, Helvetica, sans-serif;
	--bd-radius: 2px;
	--bd-radius-panel: 3px;
}

body.bd-theme {
	margin: 0;
	background: var(--bd-bg);
	color: var(--bd-ink);
	font-family: var(--bd-body);
	font-size: 15px;
	line-height: 1.6;
}

.bd-page {
	max-width: 1180px;
	margin: 0 auto;
	background: var(--bd-surface);
	border-left: 1px solid var(--bd-line);
	border-right: 1px solid var(--bd-line);
}

.bd-page *,
.bd-page *::before,
.bd-page *::after {
	box-sizing: border-box;
}

.bd-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.bd-page a {
	color: var(--bd-navy);
}

.bd-page a:hover {
	color: var(--bd-accent-dark);
}

.bd-page a:focus-visible,
.bd-page button:focus-visible {
	outline: 2px solid var(--bd-accent);
	outline-offset: 2px;
}

.bd-page h1,
.bd-page h2,
.bd-page h3 {
	margin: 0;
	font-family: var(--bd-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--bd-navy);
}

.bd-page p {
	margin: 0 0 12px;
}

.bd-skip {
	position: absolute;
	left: -9999px;
}

.bd-skip:focus {
	left: 8px;
	top: 8px;
	z-index: 1000;
	padding: 8px 12px;
	background: var(--bd-surface);
}

.bd-preview-note {
	padding: 8px 16px;
	background: var(--bd-ink);
	color: var(--bd-surface);
	font-size: 13px;
	text-align: center;
}

/* Labels */
.bd-tag {
	display: inline-block;
	padding: 1px 6px;
	border: 1px solid;
	border-radius: var(--bd-radius);
	font-family: var(--bd-body);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
}

.bd-tag--sample {
	background: #FFF4D1;
	border-color: var(--bd-accent);
	color: #6B4E00;
}

.bd-tag--pending {
	background: var(--bd-surface);
	border-color: var(--bd-muted);
	color: var(--bd-muted);
}

.bd-muted {
	color: var(--bd-muted);
}

.bd-small {
	font-size: 13px;
	color: var(--bd-muted);
}

/* Buttons */
.bd-page .bd-btn {
	display: inline-block;
	padding: 9px 18px;
	background: var(--bd-accent);
	border: 1px solid var(--bd-accent-dark);
	border-radius: var(--bd-radius);
	color: var(--bd-navy-dark);
	font-family: var(--bd-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.bd-page .bd-btn:hover {
	background: #F0B41A;
	color: var(--bd-navy-dark);
}

.bd-page .bd-link {
	font-weight: 700;
}

/* Top bar */
.bd-topbar {
	background: var(--bd-navy-dark);
	color: #DCE3EA;
	font-size: 13px;
}

.bd-topbar__inner {
	padding-top: 7px;
	padding-bottom: 7px;
}

.bd-topbar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-page .bd-topbar a {
	color: #FFFFFF;
}

.bd-topbar .bd-tag--pending {
	background: transparent;
	border-color: #9FB0C2;
	color: #DCE3EA;
}

/* Logo row */
.bd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.bd-logo {
	display: block;
	flex: 0 1 340px;
	min-width: 0;
}

.bd-logo__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Navigation */
.bd-nav {
	background: var(--bd-navy);
	border-bottom: 3px solid var(--bd-accent);
}

.bd-nav__list {
	display: flex;
	flex-wrap: nowrap;
	margin: 0 0 0 -14px;
	padding: 0;
	list-style: none;
}

.bd-page .bd-nav__list a {
	display: block;
	padding: 13px 14px;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.bd-page .bd-nav__list a:hover,
.bd-page .bd-nav__list .current-menu-item > a {
	background: var(--bd-navy-dark);
	color: var(--bd-accent);
}

.bd-page .bd-nav__toggle {
	display: none;
	width: 100%;
	padding: 12px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #FFFFFF;
	font-family: var(--bd-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
}

/* Slider */
.bd-slider {
	position: relative;
	background-color: var(--bd-navy);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 28px 28px;
}

.bd-slide {
	position: relative;
}

.bd-slide__media {
	position: relative;
	height: 430px;
	overflow: hidden;
}

.bd-slide__bar {
	background: var(--bd-navy-dark);
	border-top: 3px solid var(--bd-accent);
	color: #FFFFFF;
}

.bd-slide__barinner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.bd-slide__barinner p {
	margin: 0;
	max-width: 720px;
}

.bd-slide[hidden] {
	display: none;
}

.bd-art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: rgba(255, 255, 255, 0.28);
}

.bd-page .bd-slide__title {
	margin-bottom: 4px;
	color: #FFFFFF;
	font-size: 26px;
}

.bd-slider__controls {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	gap: 6px;
}

.bd-page .bd-slider__controls button {
	padding: 5px 10px;
	background: var(--bd-navy-dark);
	border: 1px solid #6F86A0;
	border-radius: var(--bd-radius);
	color: #FFFFFF;
	font-family: var(--bd-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.bd-page .bd-slider__controls button:hover {
	background: var(--bd-accent);
	border-color: var(--bd-accent-dark);
	color: var(--bd-navy-dark);
}

/* Stats */
.bd-stats {
	background: var(--bd-tint);
	border-bottom: 1px solid var(--bd-line);
}

.bd-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.bd-stat {
	display: flex;
	flex-direction: column;
	padding: 18px 16px;
	border-left: 1px solid var(--bd-line);
	text-align: center;
}

.bd-stat:first-child {
	border-left: 0;
}

.bd-stat__value {
	color: var(--bd-navy);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
}

.bd-stat__value--empty {
	color: var(--bd-muted);
	font-size: 20px;
	line-height: 1.75;
}

.bd-stat__label {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 700;
}

.bd-stat__note {
	margin-top: 2px;
	color: var(--bd-muted);
	font-size: 12px;
	line-height: 1.35;
}

/* Sections */
.bd-section {
	padding: 32px 0;
}

.bd-section--tint {
	background: var(--bd-tint);
	border-top: 1px solid var(--bd-line);
	border-bottom: 1px solid var(--bd-line);
}

.bd-page .bd-heading {
	margin-bottom: 18px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bd-line);
	font-size: 23px;
}

/* Photo placeholders */
.bd-photo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 150px;
	padding: 14px;
	background: repeating-linear-gradient(135deg, #DDE3EA, #DDE3EA 10px, #E7EBF0 10px, #E7EBF0 20px);
	border: 1px dashed var(--bd-muted);
	color: var(--bd-navy);
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.bd-photo--float {
	float: left;
	width: 240px;
	min-height: 170px;
	margin: 4px 18px 10px 0;
}

.bd-photo--lead {
	min-height: 260px;
}

/* About */
.bd-about,
.bd-compliance {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.bd-panel {
	padding: 16px 18px;
	background: var(--bd-surface);
	border: 1px solid var(--bd-line);
	border-top: 3px solid var(--bd-navy);
	border-radius: var(--bd-radius-panel);
}

.bd-panel--amber {
	border-top-color: var(--bd-accent);
}

.bd-page .bd-panel__title {
	margin-bottom: 10px;
	font-size: 17px;
}

.bd-facts {
	margin: 0;
	font-size: 14px;
}

.bd-facts dt {
	font-weight: 700;
}

.bd-facts dd {
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--bd-line);
}

.bd-facts dd:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

/* Projects */
.bd-projects {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 18px;
}

.bd-project {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	padding: 12px;
	background: var(--bd-surface);
	border: 1px solid var(--bd-line);
}

.bd-project--lead {
	display: block;
	grid-row: span 2;
}

.bd-project--lead .bd-photo {
	margin-bottom: 12px;
}

.bd-page .bd-project h3 {
	margin-bottom: 6px;
	font-size: 17px;
}

.bd-project p {
	margin: 0;
	color: var(--bd-muted);
	font-size: 14px;
}

/* Skill pipeline */
.bd-pipeline {
	padding: 22px 0;
	background: var(--bd-navy);
	border-bottom: 3px solid var(--bd-accent);
	color: #FFFFFF;
}

.bd-pipeline__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.bd-page .bd-pipeline__title {
	margin-bottom: 6px;
	color: #FFFFFF;
	font-size: 21px;
}

.bd-pipeline p {
	margin: 0;
}

/* Licence register */
.bd-register {
	width: 100%;
	margin: 0;
	border: 1px solid var(--bd-line);
	border-collapse: collapse;
	font-size: 14px;
}

.bd-register th,
.bd-register td {
	padding: 10px 12px;
	border: 1px solid var(--bd-line);
	text-align: left;
	vertical-align: top;
}

.bd-register thead th {
	background: var(--bd-navy);
	border-color: var(--bd-navy);
	color: #FFFFFF;
	font-size: 13px;
}

.bd-register tbody th {
	color: var(--bd-navy);
}

.bd-policies {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.bd-policies li {
	padding: 8px 0;
	border-bottom: 1px solid var(--bd-line);
}

/* Support */
.bd-support {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--bd-surface);
	border: 1px solid var(--bd-line);
}

.bd-support__item {
	min-width: 0;
	padding: 16px 14px;
	border-left: 1px solid var(--bd-line);
	font-size: 13px;
	overflow-wrap: anywhere;
}

/* Astra's scroll button is off-palette and not part of this design. */
#ast-scroll-top {
	display: none !important;
}

.bd-support__item:first-child {
	border-left: 0;
}

.bd-page .bd-support__item h3 {
	margin-bottom: 6px;
	font-size: 16px;
}

.bd-support__item p {
	margin: 0;
}

/* Footer */
.bd-footer {
	background: var(--bd-navy-dark);
	color: #DCE3EA;
	font-size: 14px;
}

.bd-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	padding-top: 28px;
	padding-bottom: 24px;
}

.bd-footer__grid > div {
	min-width: 0;
	overflow-wrap: anywhere;
}

.bd-page .bd-footer__title {
	margin-bottom: 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid #3C5578;
	color: #FFFFFF;
	font-size: 16px;
}

.bd-page .bd-footer a {
	color: #FFFFFF;
}

.bd-page .bd-footer a:hover {
	color: var(--bd-accent);
}

.bd-footer__links,
.bd-footer__reg {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-footer__links li,
.bd-footer__reg li {
	padding: 3px 0;
}

.bd-footer .bd-tag--pending {
	background: transparent;
	border-color: #9FB0C2;
	color: #DCE3EA;
}

.bd-footer__bottom {
	padding: 10px 0;
	background: #0D1C38;
	font-size: 13px;
}

/* Photography */
.bd-slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bd-float-img {
	float: left;
	width: 340px;
	height: 228px;
	margin: 4px 20px 10px 0;
	border: 1px solid var(--bd-line);
	object-fit: cover;
}

.bd-banner img {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
}

.bd-sitegrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.bd-sitegrid figure,
.bd-gallery figure {
	margin: 0;
}

.bd-sitegrid img {
	display: block;
	width: 100%;
	height: 190px;
	border: 1px solid var(--bd-line);
	object-fit: cover;
}

.bd-sitegrid figcaption,
.bd-gallery figcaption {
	margin-top: 6px;
	color: var(--bd-muted);
	font-size: 13px;
	line-height: 1.35;
}

.bd-project .bd-card__media img,
.bd-card .bd-card__media img {
	height: 200px;
	object-fit: cover;
}

.bd-project--lead .bd-card__media img {
	height: 340px;
	margin-bottom: 12px;
}

.bd-project-hero img {
	max-height: 420px;
	object-fit: cover;
}

.bd-gallery img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.bd-pipeline__inner--image {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 28px;
	align-items: center;
}

.bd-pipeline__img {
	display: block;
	width: 100%;
	height: 230px;
	border: 2px solid #FFFFFF;
	object-fit: cover;
}

.bd-pipeline__inner--image .bd-pipeline__title {
	font-size: 24px;
}

.bd-pipeline__inner--image p {
	margin-bottom: 14px;
}

.bd-page .bd-prose h2 {
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bd-line);
	scroll-margin-top: 48px;
}

.bd-page .bd-prose > h2:first-child {
	margin-top: 0;
}

.bd-layout__main .bd-prose {
	margin-bottom: 26px;
}

@media (max-width: 1000px) {
	.bd-sitegrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bd-float-img {
		float: none;
		width: 100%;
		margin: 0 0 12px;
	}

	.bd-banner img {
		height: 190px;
	}

	.bd-sitegrid img,
	.bd-project--lead .bd-card__media img {
		height: 190px;
	}

	.bd-pipeline__inner--image {
		grid-template-columns: minmax(0, 1fr);
	}

	.bd-float-img {
		height: 210px;
	}
}

/* Footer links read as links. */
.bd-page .bd-footer__links a {
	display: inline-block;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Page not found */
.bd-notfound {
	position: relative;
	overflow: hidden;
	background-color: var(--bd-navy);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 28px 28px;
	border-bottom: 3px solid var(--bd-accent);
	color: #FFFFFF;
}

.bd-notfound .bd-art {
	color: rgba(255, 255, 255, 0.1);
}

.bd-notfound__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 36px;
	padding-top: 48px;
	padding-bottom: 48px;
}

.bd-page .bd-notfound__code {
	flex: none;
	margin: 0;
	color: var(--bd-accent);
	font-family: var(--bd-heading);
	font-size: 124px;
	font-weight: 700;
	line-height: 1;
}

.bd-page .bd-notfound__title {
	margin-bottom: 8px;
	color: #FFFFFF;
	font-size: 30px;
}

.bd-notfound__inner p {
	max-width: 560px;
}

.bd-pagelinks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-pagelinks li {
	padding: 11px 0;
	border-bottom: 1px solid var(--bd-line);
}

.bd-pagelinks a,
.bd-pagelinks span {
	display: block;
}

.bd-pagelinks span {
	color: var(--bd-muted);
	font-size: 14px;
}

/* Privacy Policy */
.bd-page .bd-note {
	margin: 0 0 22px;
	padding: 12px 16px;
	background: var(--bd-tint);
	border-left: 3px solid var(--bd-accent);
}

.bd-note ul {
	margin: 6px 0 0 20px;
}

.bd-note li {
	margin-bottom: 3px;
}

.bd-policy .bd-register {
	margin-bottom: 14px;
}

.bd-page .bd-policy__date {
	color: var(--bd-muted);
	font-size: 13px;
}

/* Blog */
.bd-page .bd-postlead {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--bd-line);
	color: var(--bd-muted);
	font-size: 16px;
}

.bd-post {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--bd-line);
}

.bd-page .bd-post__title {
	margin-bottom: 4px;
	font-size: 21px;
}

.bd-page .bd-post__title a {
	color: var(--bd-navy);
	text-decoration: none;
}

.bd-page .bd-post__title a:hover {
	text-decoration: underline;
}

.bd-page .bd-post__meta {
	margin-bottom: 8px;
	color: var(--bd-muted);
	font-size: 13px;
}

.bd-article {
	max-width: 680px;
}

.bd-page .bd-article h2:first-child {
	margin-top: 0;
}

.bd-page .pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bd-page .pagination .page-numbers {
	padding: 5px 11px;
	border: 1px solid var(--bd-line);
	border-radius: var(--bd-radius);
	font-size: 14px;
	text-decoration: none;
}

.bd-page .pagination .current {
	background: var(--bd-navy);
	border-color: var(--bd-navy);
	color: #FFFFFF;
}

@media (max-width: 640px) {
	.bd-notfound__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.bd-page .bd-notfound__code {
		font-size: 76px;
	}

	.bd-page .bd-notfound__title {
		font-size: 25px;
	}
}

/* Forms */
.bd-hp {
	position: absolute;
	left: -9999px;
}

.bd-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}

.bd-form__field {
	margin-bottom: 14px;
}

.bd-page .bd-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 700;
}

.bd-form__req {
	color: var(--bd-muted);
	font-size: 12px;
	font-weight: 400;
}

.bd-page .bd-form input[type="text"],
.bd-page .bd-form input[type="email"],
.bd-page .bd-form input[type="tel"],
.bd-page .bd-form input[type="file"],
.bd-page .bd-form select,
.bd-page .bd-form textarea {
	display: block;
	width: 100%;
	padding: 8px 10px;
	background: var(--bd-surface);
	border: 1px solid var(--bd-muted);
	border-radius: var(--bd-radius);
	color: var(--bd-ink);
	font-family: var(--bd-body);
	font-size: 15px;
	line-height: 1.4;
}

.bd-page .bd-form select {
	height: 39px;
}

.bd-page .bd-form input:focus,
.bd-page .bd-form select:focus,
.bd-page .bd-form textarea:focus {
	outline: 2px solid var(--bd-accent);
	outline-offset: 1px;
}

.bd-page .bd-form [aria-invalid="true"] {
	border-color: #B3261E;
}

.bd-form__error {
	display: block;
	margin-top: 4px;
	color: #B3261E;
	font-size: 13px;
	font-weight: 700;
}

.bd-page .bd-form__notice {
	padding: 10px 12px;
	border-left: 3px solid;
	font-size: 14px;
}

.bd-form__notice--ok {
	background: #E6F2EA;
	border-color: #1E7A46;
	color: #145A32;
}

.bd-form__notice--error {
	background: #FBEAE9;
	border-color: #B3261E;
	color: #8C1D18;
}

.bd-page button.bd-btn {
	cursor: pointer;
}

@media (max-width: 640px) {
	.bd-form__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Inner pages */
.bd-pagehead {
	padding: 22px 0 16px;
	background: var(--bd-tint);
	border-bottom: 1px solid var(--bd-line);
}

.bd-page .bd-pagehead__title {
	margin-bottom: 6px;
	font-size: 30px;
}

.bd-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 7px;
	color: var(--bd-muted);
	font-size: 13px;
}

.bd-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.bd-layout__side {
	display: grid;
	gap: 18px;
}

.bd-layout__side .bd-panel p {
	margin-bottom: 10px;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.bd-block,
.bd-outline {
	margin-bottom: 28px;
	scroll-margin-top: 48px;
}

.bd-register-block {
	margin-bottom: 8px;
	scroll-margin-top: 48px;
}

.bd-outline__intro {
	padding: 10px 12px;
	background: #FFF4D1;
	border-left: 3px solid var(--bd-accent);
	font-size: 14px;
}

.bd-page .bd-outline__need {
	margin-bottom: 6px;
	color: var(--bd-muted);
	font-family: var(--bd-body);
	font-size: 13px;
}

.bd-outline ul,
.bd-list {
	margin: 0 0 0 20px;
	padding: 0;
}

.bd-outline li,
.bd-list li {
	margin-bottom: 5px;
}

.bd-prose ul,
.bd-prose ol {
	margin: 0 0 12px 22px;
}

.bd-page .bd-prose h2 {
	margin: 22px 0 10px;
	font-size: 23px;
}

.bd-page .bd-prose h3 {
	margin: 16px 0 8px;
	font-size: 18px;
}

.bd-facts--wide {
	margin-bottom: 18px;
}

.bd-project-hero img,
.bd-card__media img {
	display: block;
	width: 100%;
	height: auto;
}

.bd-project-hero {
	margin-bottom: 22px;
}

.bd-project-hero + .bd-block,
.bd-layout__main > .bd-photo--lead {
	margin-bottom: 22px;
}

/* Portfolio */
.bd-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 18px;
}

.bd-filter[hidden] {
	display: none;
}

.bd-page .bd-filter button {
	padding: 7px 13px;
	background: var(--bd-surface);
	border: 1px solid var(--bd-line);
	border-radius: var(--bd-radius);
	color: var(--bd-navy);
	font-family: var(--bd-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.bd-page .bd-filter button:hover {
	background: var(--bd-tint);
	color: var(--bd-navy);
}

.bd-page .bd-filter button.is-active {
	background: var(--bd-navy);
	border-color: var(--bd-navy);
	color: #FFFFFF;
}

.bd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.bd-card {
	background: var(--bd-surface);
	border: 1px solid var(--bd-line);
	border-top: 3px solid var(--bd-navy);
}

.bd-card[hidden] {
	display: none;
}

.bd-card .bd-photo {
	border-width: 0 0 1px;
}

.bd-card__body {
	padding: 12px 14px 14px;
}

.bd-page .bd-card__title {
	margin-bottom: 6px;
	font-size: 17px;
}

.bd-page .bd-card__title a,
.bd-page .bd-project h3 a {
	color: var(--bd-navy);
	text-decoration: none;
}

.bd-page .bd-card__title a:hover,
.bd-page .bd-project h3 a:hover {
	text-decoration: underline;
}

.bd-card__meta {
	margin: 8px 0 0;
	color: var(--bd-muted);
	font-size: 13px;
}

.bd-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.bd-gallery img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--bd-line);
}

@media (max-width: 1000px) {
	.bd-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.bd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bd-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.bd-page .bd-pagehead__title {
		font-size: 25px;
	}

	.bd-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Tablet */
@media (max-width: 1000px) {
	/* Three bars beside the label, turning into a cross while the menu is open. */
	.bd-page .bd-nav__toggle {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 46px;
		font-size: 15px;
		cursor: pointer;
	}

	.bd-nav__toggle::before {
		content: "";
		flex: none;
		width: 24px;
		height: 24px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	.bd-nav__toggle[aria-expanded="true"]::before {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E");
	}

	.bd-nav__list {
		display: none;
		flex-direction: column;
		margin: 0 -20px;
		padding-bottom: 6px;
	}

	.bd-nav__list.is-open {
		display: flex;
	}

	.bd-page .bd-nav__list a {
		padding: 10px 20px;
		white-space: normal;
	}

	.bd-about,
	.bd-compliance,
	.bd-projects {
		grid-template-columns: minmax(0, 1fr);
	}

	.bd-project--lead {
		grid-row: auto;
	}

	.bd-support,
	.bd-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bd-support__item:nth-child(odd) {
		border-left: 0;
	}

	.bd-support__item:nth-child(n+3) {
		border-top: 1px solid var(--bd-line);
	}
}

/* Mobile */
@media (max-width: 640px) {
	.bd-pipeline__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Logo on the left, Contact Us on the right, on one line. */
	.bd-header__inner {
		gap: 12px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.bd-logo {
		flex: 1 1 0;
		max-width: 250px;
	}

	.bd-page .bd-header .bd-btn {
		flex: none;
		padding: 8px 12px;
		font-size: 13px;
	}

	.bd-slide__media {
		height: 230px;
	}

	.bd-slide__barinner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.bd-page .bd-slide__title {
		font-size: 22px;
	}

	.bd-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bd-stat:nth-child(odd) {
		border-left: 0;
	}

	.bd-stat:nth-child(n+3) {
		border-top: 1px solid var(--bd-line);
	}

	.bd-photo--float {
		float: none;
		width: 100%;
		margin: 0 0 12px;
	}

	.bd-project {
		grid-template-columns: minmax(0, 1fr);
	}

	.bd-support,
	.bd-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.bd-support__item {
		border-left: 0;
		border-top: 1px solid var(--bd-line);
	}

	.bd-support__item:first-child {
		border-top: 0;
	}

	/* The licence table reads as labelled rows on a phone. */
	.bd-register thead {
		position: absolute;
		left: -9999px;
	}

	.bd-register,
	.bd-register tbody,
	.bd-register tr,
	.bd-register th,
	.bd-register td {
		display: block;
		width: 100%;
	}

	.bd-register tr {
		border-bottom: 3px solid var(--bd-navy);
	}

	.bd-register th,
	.bd-register td {
		border-width: 0 0 1px;
	}

	.bd-register td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
	}
}
