:root {
	--hb-white: #ffffff;
	--hb-navy: #031944;
	--hb-blue: #046dfc;
	--hb-blue-hover: #0356c9;
	--hb-ink: #1a2333;
	--hb-muted: #5b6575;
	--hb-line: #e6eaf0;
	--hb-soft: #f5f7fa;
	--hb-font: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--hb-radius: 4px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--hb-font);
	color: var(--hb-ink);
	background: var(--hb-white);
}

a {
	color: var(--hb-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
	color: var(--hb-navy);
}

:focus-visible {
	outline: 2px solid var(--hb-blue);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header
--------------------------------------------- */

.hb-header {
	padding: 0 1.5rem;
	background: var(--hb-white);
}

.hb-header__inner {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--hb-line);
}

.hb-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.hb-logo-img {
	display: block;
	height: 36px;
	width: auto;
}

.hb-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hb-nav__link {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--hb-navy);
	text-decoration: none;
}

.hb-nav__link:hover,
.hb-nav__link:focus-visible {
	color: var(--hb-blue);
}

.hb-nav__cta .hb-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 0.95rem;
	border-radius: var(--hb-radius);
	background: var(--hb-blue);
	color: #fff;
}

.hb-nav__cta .hb-nav__link:hover,
.hb-nav__cta .hb-nav__link:focus-visible {
	background: var(--hb-blue-hover);
	color: #fff;
}

/* Home hero
--------------------------------------------- */

.hb-home {
	min-height: calc(100vh - 8.5rem);
}

.hb-hero {
	padding: clamp(3.5rem, 12vh, 6.5rem) 1.5rem 4.5rem;
}

.hb-hero__logo {
	display: inline-flex;
	margin: 0 0 2rem;
	text-decoration: none;
}

.hb-hero__logo-img {
	display: block;
	width: min(100%, 420px);
	height: auto;
}

.hb-hero__headline {
	margin: 0 0 0.85rem;
	max-width: 16ch;
	font-size: clamp(1.85rem, 4vw, 2.4rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--hb-navy);
}

.hb-hero__support {
	margin: 0 0 1.75rem;
	max-width: 36ch;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--hb-muted);
}

.hb-hero__actions {
	gap: 0.65rem;
}

.hb-hero__actions .wp-block-button__link {
	padding: 0.75rem 1.15rem;
	border-radius: var(--hb-radius);
	font-family: var(--hb-font);
	font-size: 0.98rem;
	font-weight: 700;
	text-decoration: none;
}

.hb-button-primary .wp-block-button__link {
	background: var(--hb-blue) !important;
	color: #fff !important;
	border: none;
}

.hb-button-primary .wp-block-button__link:hover {
	background: var(--hb-blue-hover) !important;
}

.hb-button-secondary .wp-block-button__link {
	background: transparent !important;
	color: var(--hb-navy) !important;
	box-shadow: inset 0 0 0 1px var(--hb-line);
}

.hb-button-secondary .wp-block-button__link:hover {
	color: var(--hb-blue) !important;
	box-shadow: inset 0 0 0 1px var(--hb-blue);
}

/* Auth + account pages
--------------------------------------------- */

.hb-page {
	padding: clamp(2.5rem, 8vh, 4rem) 1.5rem 4rem;
}

.hb-auth,
.hb-account {
	width: 100%;
}

.hb-auth__title,
.hb-account__title,
.hb-sites__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.7rem, 3.5vw, 2.1rem);
	font-weight: 700;
	color: var(--hb-navy);
}

.hb-auth__intro,
.hb-account__intro {
	margin: 0 0 1.5rem;
	color: var(--hb-muted);
}

.hb-account-layout {
	display: grid;
	grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
	gap: 2rem 2.5rem;
	align-items: start;
	width: 100%;
}

.hb-account-nav__heading {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hb-muted);
}

.hb-account-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--hb-line);
}

.hb-account-nav__link {
	display: block;
	padding: 0.7rem 0.15rem;
	border-bottom: 1px solid var(--hb-line);
	color: var(--hb-ink);
	text-decoration: none;
	font-weight: 700;
}

.hb-account-nav__link:hover,
.hb-account-nav__link:focus-visible {
	color: var(--hb-blue);
}

.hb-account-nav__item.is-current .hb-account-nav__link {
	color: var(--hb-blue);
	box-shadow: inset 3px 0 0 var(--hb-blue);
	padding-left: 0.65rem;
}

.hb-account-layout__main {
	min-width: 0;
}

@media (max-width: 782px) {
	.hb-account-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.hb-account-nav__list {
		display: flex;
		flex-wrap: wrap;
		gap: 0.35rem;
		border-top: 0;
	}

	.hb-account-nav__item {
		flex: 0 0 auto;
	}

	.hb-account-nav__link {
		padding: 0.5rem 0.75rem;
		border: 1px solid var(--hb-line);
		border-radius: var(--hb-radius);
	}

	.hb-account-nav__item.is-current .hb-account-nav__link {
		box-shadow: none;
		padding-left: 0.75rem;
		border-color: var(--hb-blue);
		background: var(--hb-soft);
	}
}

.hb-sites__intro,
.hb-sites__empty {
	margin: 0 0 1.5rem;
	color: var(--hb-muted);
}

.hb-sites__notice {
	margin: 0 0 1.25rem;
	color: var(--hb-navy);
}

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

.hb-sites__item {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--hb-line);
}

.hb-sites__meta {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.hb-sites__host {
	color: var(--hb-navy);
	font-size: 1.05rem;
}

.hb-sites__url {
	font-size: 0.9rem;
	word-break: break-all;
}

.hb-sites__dates {
	font-size: 0.85rem;
	color: var(--hb-muted);
}

.hb-sites__revoke-btn {
	appearance: none;
	margin: 0;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius);
	background: var(--hb-white);
	color: var(--hb-navy);
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
}

.hb-sites__revoke-btn:hover,
.hb-sites__revoke-btn:focus-visible {
	border-color: var(--hb-navy);
}

.hb-is-auth .hb-page {
	display: flex;
	justify-content: center;
}

.hb-auth .wsf-form,
.hb-auth form {
	color: var(--hb-ink);
}

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

.hb-footer {
	padding: 0 1.5rem 1.75rem;
}

.hb-footer__inner {
	padding-top: 1.1rem;
	border-top: 1px solid var(--hb-line);
	display: grid;
	gap: 1rem;
}

.hb-footer__heading {
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hb-muted);
}

.hb-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hb-footer__links a {
	color: var(--hb-ink);
	text-decoration: none;
	font-size: 0.9rem;
}

.hb-footer__links a:hover,
.hb-footer__links a:focus-visible {
	color: var(--hb-blue);
	text-decoration: underline;
}

.hb-footer__copy {
	margin: 0;
	font-size: 0.875rem;
	color: var(--hb-muted);
}

/* Legal documents
--------------------------------------------- */

.hb-is-legal .hb-page {
	padding-bottom: 3rem;
}

.hb-legal {
	color: var(--hb-ink);
	line-height: 1.65;
	font-size: 1rem;
}

.hb-legal__header {
	margin-bottom: 1.75rem;
}

.hb-legal__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.2;
	color: var(--hb-navy);
}

.hb-legal__meta,
.hb-legal__draft-note {
	margin: 0.35rem 0 0;
	font-size: 0.925rem;
	color: var(--hb-muted);
}

.hb-legal__draft-note {
	padding: 0.75rem 0.9rem;
	border-left: 3px solid var(--hb-line);
	background: var(--hb-soft);
	color: var(--hb-ink);
}

.hb-legal__toc {
	margin: 1.5rem 0 2rem;
	padding: 1rem 1.1rem;
	background: var(--hb-soft);
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius);
}

.hb-legal__toc-title {
	margin: 0 0 0.5rem;
	font-weight: 700;
}

.hb-legal__toc ol {
	margin: 0;
	padding-left: 1.2rem;
}

.hb-legal__toc a {
	color: var(--hb-blue);
}

.hb-legal h2 {
	margin: 2rem 0 0.75rem;
	font-size: 1.35rem;
	color: var(--hb-navy);
	scroll-margin-top: 1rem;
}

.hb-legal h3 {
	margin: 1.4rem 0 0.55rem;
	font-size: 1.1rem;
}

.hb-legal p,
.hb-legal ul,
.hb-legal ol {
	margin: 0 0 0.9rem;
}

.hb-legal ul,
.hb-legal ol {
	padding-left: 1.3rem;
}

.hb-legal a {
	color: var(--hb-blue);
}

.hb-legal__table-wrap {
	overflow-x: auto;
	margin: 0 0 1.25rem;
}

.hb-legal__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.hb-legal__table th,
.hb-legal__table td {
	border: 1px solid var(--hb-line);
	padding: 0.55rem 0.65rem;
	text-align: left;
	vertical-align: top;
}

.hb-legal__table th {
	background: var(--hb-soft);
	font-weight: 700;
}

.hb-legal-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 700;
}

.hb-legal-form input[type="text"],
.hb-legal-form input[type="email"],
.hb-legal-form select,
.hb-legal-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius);
	font: inherit;
	color: var(--hb-ink);
	background: var(--hb-white);
}

.hb-legal-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hb-legal-form__help,
.hb-legal-form__notice {
	font-size: 0.925rem;
}

.hb-legal-form__notice--ok {
	color: var(--hb-navy);
	background: var(--hb-soft);
	padding: 0.75rem 0.9rem;
	border-radius: var(--hb-radius);
}

.hb-legal-form__notice--err {
	color: #7a1c1c;
	background: #f8e8e8;
	padding: 0.75rem 0.9rem;
	border-radius: var(--hb-radius);
}

.hb-legal-form .hb-btn,
.hb-btn {
	display: inline-block;
	padding: 0.65rem 1.1rem;
	border: 0;
	border-radius: var(--hb-radius);
	background: var(--hb-blue);
	color: var(--hb-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.hb-legal-form .hb-btn:hover,
.hb-legal-form .hb-btn:focus-visible,
.hb-btn:hover,
.hb-btn:focus-visible {
	background: var(--hb-blue-hover);
	color: var(--hb-white);
}

@media (max-width: 640px) {
	.hb-footer__links {
		flex-direction: column;
		gap: 0.45rem;
	}

	.hb-legal__table {
		font-size: 0.85rem;
	}
}

@media print {
	.hb-footer,
	.hb-legal__toc,
	.hb-legal__draft-note,
	.hb-legal-form {
		display: none !important;
	}

	.hb-legal {
		font-size: 11pt;
		line-height: 1.45;
		color: #000;
	}

	.hb-legal a {
		color: #000;
		text-decoration: underline;
	}

	.hb-legal h2 {
		break-after: avoid;
	}
}
