/**
 * Habs Site Polish
 * 1. Global header alignment
 * 2. Compact inner-page top spacing
 * 3. Product-first homepage stage
 * 4. Complete editorial-card image treatments
 * 5. Article readability, context, authorship and story navigation
 * 6. Progressive disclosure for detailed Stats position tables
 * 7. Tablet and mobile responsive hardening
 * 8. Utility pages, search, 404, mobile discovery and full site footer
 */

:root {
	--habs-header-max-width: 1440px;
	--habs-header-gutter: clamp(18px, 2.75vw, 40px);
}

/*
 * Kadence currently inherits a 1695px site width with zero edge spacing.
 * Give the global header its own centred, viewport-safe frame.
 */
.site-header .site-container,
.site-header .site-header-row-container-inner > .site-container {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--habs-header-max-width);
	margin-inline: auto;
	padding-inline: var(--habs-header-gutter);
}

/* Allow the navigation side of the grid to shrink instead of leaving the viewport. */
.site-header .site-main-header-inner-wrap,
.site-header .site-header-main-section-right,
.site-header .site-header-item,
.site-header .main-navigation {
	min-width: 0;
}

/* Keep the crest fully inside the safe area at every breakpoint. */
.site-header .site-branding,
.site-header .site-branding a,
.site-header .custom-logo-link {
	box-sizing: border-box;
}

.site-header .custom-logo {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Keep keyboard focus visible against both the navy shell and red controls. */
body .skip-link:focus,
body .skip-link:focus-visible {
	z-index: 100000;
	padding: 14px 20px;
	border: 2px solid #fff;
	border-radius: 4px;
	background: #071321;
	color: #fff;
	box-shadow: 0 0 0 3px #071321;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-main :is(a, button, input, select, textarea, summary):focus-visible,
.habs-trust-footer a:focus-visible,
#mobile-drawer :is(a, button, input):focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 5px #174a85;
}

.site-main summary {
	cursor: pointer;
}

/*
 * Header identity refinement for the site-wide NHL score strip.
 *
 * The current crest file is an opaque square with a small white exterior
 * around the circular artwork. Crop that exterior at render time rather than
 * redrawing the mark, and let the crest carry the Habs Hockey name without a
 * second visible wordmark. The image alt text remains the home link's
 * accessible name.
 */
body.habs-has-league-scoreboard .site-header .site-branding {
	flex: 0 0 auto;
}

body.habs-has-league-scoreboard .site-header .site-branding a.brand.has-logo-image {
	display: grid;
	width: 68px;
	height: 68px;
	min-width: 68px;
	max-height: none;
	place-items: center;
	gap: 0;
	overflow: hidden;
	background: #07121f;
	border-radius: 50%;
	box-shadow: 0 7px 18px rgba(0, 0, 0, .28);
}

body.habs-has-league-scoreboard .site-header .site-branding a.brand.has-logo-image .site-title-wrap {
	display: none;
}

body.habs-has-league-scoreboard .site-header .site-branding a.brand.has-logo-image img.custom-logo {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
	transform: translateY(.8%) scale(1.10);
	transform-origin: 50% 50%;
}

body.habs-has-league-scoreboard .site-header .site-branding a.brand.has-logo-image:hover img.custom-logo {
	filter: brightness(1.04);
}

body.habs-has-league-scoreboard .site-header .site-branding a.brand.has-logo-image:focus-visible {
	outline: 3px solid #4da3ff;
	outline-offset: 3px;
}

@media (min-width: 1200px) {
	/* Use the width recovered from the duplicate wordmark for scores, not height. */
	body.habs-has-league-scoreboard .habs-league-scoreboard-slot.is-desktop {
		flex: 1 1 480px;
		width: clamp(380px, 38vw, 640px);
		min-width: 320px;
		max-width: 640px;
		margin-left: clamp(14px, 1.4vw, 22px);
	}
}

@media (min-width: 1025px) and (max-width: 1199px) {
	body.habs-has-league-scoreboard .site-header .site-branding a.brand.has-logo-image {
		width: 64px;
		height: 64px;
		min-width: 64px;
	}
}

@media (max-width: 1024px) {
	body.habs-has-league-scoreboard .site-header .site-branding a.brand.has-logo-image {
		width: 56px;
		height: 56px;
		min-width: 56px;
	}
}

/*
 * Kadence gives the content area a generous desktop top margin. That creates
 * an empty band on Schedule, Standings, Stats, editorial archives and posts.
 * Keep a deliberate gap below the header, but bring inner-page content into
 * the first screen. The homepage uses its own product-first spacing below.
 */
body:not(.home) #primary.content-area,
body:not(.home) .content-area {
	margin-top: clamp(24px, 2.5vw, 40px);
}

/*
 * The game is the homepage identity. Remove the duplicate brand billboard and
 * let the live product occupy the first useful screen.
 */
body.habs-front-page #primary.content-area,
body.habs-front-page .content-area {
	margin-top: 0;
}

body.habs-front-page .habs-live-data.habs-scoreboard {
	margin: clamp(14px, 2vw, 24px) auto clamp(40px, 5vw, 64px);
	scroll-margin-top: clamp(90px, 12vw, 150px);
}

body.habs-front-page .habs-scoreboard-shell {
	border-color: rgba(247, 244, 236, .15);
	background:
		radial-gradient(circle at 94% 4%, rgba(210, 10, 46, .2), transparent 34%),
		radial-gradient(circle at 3% 108%, rgba(23, 74, 133, .22), transparent 39%),
		linear-gradient(145deg, #14243a 0%, #071321 54%, #111a28 100%);
	box-shadow:
		0 28px 80px rgba(0, 0, 0, .44),
		inset 0 1px rgba(255, 255, 255, .08);
}

body.habs-front-page .habs-scoreboard-topline {
	background: rgba(2, 8, 15, .42);
}

body.habs-front-page .entry-content > .habs-live-data.habs-data-note:first-of-type {
	display: grid;
	width: min(100%, 1180px);
	min-height: 180px;
	margin: clamp(14px, 2vw, 24px) auto clamp(40px, 5vw, 64px);
	padding: 28px;
	place-items: center;
	color: #f7f4ec;
	background: linear-gradient(145deg, #14243a, #071321);
	border: 1px solid rgba(247, 244, 236, .13);
	border-radius: 20px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .36);
	text-align: center;
}

/* An empty league strip contributes no useful information; live data restores it automatically. */
@supports selector(:has(*)) {
	.habs-league-scoreboard-slot:has(> .habs-league-scoreboard.is-empty:not(.is-unavailable)) {
		display: none !important;
	}
}

/*
 * Give every editorial image a stable crop. Real featured images retain
 * priority; the branded treatment appears only when an editor assigned none.
 */
.wp-block-post-featured-image,
.entry-related .post-thumbnail,
.archive .loop-entry .post-thumbnail,
.blog .loop-entry .post-thumbnail {
	overflow: hidden;
}

.wp-block-post-featured-image img,
.entry-related .post-thumbnail img,
.archive .loop-entry .post-thumbnail img,
.blog .loop-entry .post-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-related .post-thumbnail,
.entry-related .habs-editorial-fallback-link,
.habs-query-image-fallback,
.habs-query-image-fallback > .habs-editorial-fallback,
.habs-query-image-fallback > .habs-editorial-fallback-link {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.habs-editorial-fallback-link {
	color: inherit;
	text-decoration: none;
}

.habs-editorial-fallback {
	position: relative;
	display: grid;
	min-height: 150px;
	height: 100%;
	place-content: center;
	gap: 10px;
	overflow: hidden;
	background:
		radial-gradient(circle at 76% 20%, rgba(200, 16, 46, .35), transparent 34%),
		linear-gradient(135deg, #17283c 0%, #07111d 58%, #101b29 100%);
	color: #f7f4ec;
	text-align: center;
}

.habs-editorial-fallback::before,
.habs-editorial-fallback::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.habs-editorial-fallback::before {
	inset: 0;
	background: repeating-linear-gradient(-35deg, transparent 0 22px, rgba(255, 255, 255, .018) 22px 23px);
}

.habs-editorial-fallback::after {
	left: 0;
	bottom: 0;
	width: 42%;
	height: 4px;
	background: #c8102e;
}

.habs-editorial-fallback__mark {
	position: relative;
	z-index: 1;
	display: inline-grid;
	grid-template-columns: auto auto;
	align-items: baseline;
	justify-content: center;
	font-size: clamp(34px, 5vw, 62px);
	font-style: normal;
	font-weight: 900;
	letter-spacing: -.16em;
	line-height: .8;
}

.habs-editorial-fallback__mark b,
.habs-editorial-fallback__mark i {
	font-style: normal;
}

.habs-editorial-fallback__mark i {
	color: #e31b3d;
	transform: translateY(8px);
}

.habs-editorial-fallback__copy {
	position: relative;
	z-index: 1;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
	opacity: .78;
}

.habs-editorial-fallback-link:hover .habs-editorial-fallback {
	filter: brightness(1.08);
}

/* Upgrade the existing homepage editorial plugin's no-image state as well. */
.hh-editorial:not(.hh-editorial--magazine) .hh-editorial__image-fallback {
	background:
		radial-gradient(circle at 76% 20%, rgba(200, 16, 46, .35), transparent 34%),
		linear-gradient(135deg, #17283c, #07111d 62%);
	color: rgba(247, 244, 236, .16) !important;
}

/*
 * CSS Grid stretches the lead article to the height of the adjacent story
 * rail. Make its link/media canvas stretch with it so no panel background is
 * exposed beneath the photograph.
 */
body.home .hh-editorial:not(.hh-editorial--magazine) .hh-editorial__lead .hh-editorial__lead-link {
	height: 100%;
}

body.home .hh-editorial:not(.hh-editorial--magazine) .hh-editorial__lead .hh-editorial__image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: center;
}

/*
 * Improve long-form reading rhythm without altering article wording or the
 * site's established typefaces. The measure stays comfortable on wide screens
 * while media and structural blocks remain responsive.
 */
.single-post .entry-content {
	max-width: 780px;
	margin-inline: auto;
}

.single-post .entry-content > p {
	margin-block: 0 1.35em;
	line-height: 1.72;
}

.single-post .entry-content > h2,
.single-post .entry-content > h3,
.single-post .entry-content > h4 {
	margin-block: 1.65em .65em;
	line-height: 1.18;
}

.single-post .entry-content > ul,
.single-post .entry-content > ol {
	margin-block: .25em 1.5em;
	padding-inline-start: 1.35em;
}

.single-post .entry-content li + li {
	margin-top: .45em;
}

.single-post .entry-content blockquote {
	margin-block: 1.75em;
	padding-block: .35em;
	padding-inline-start: 1.25em;
}

.single-post .entry-content > figure,
.single-post .entry-content > .wp-block-image,
.single-post .entry-content > .wp-block-gallery,
.single-post .entry-content > .wp-block-embed {
	margin-block: 1.8em;
}

.single-post .entry-content figcaption {
	margin-top: .65em;
	line-height: 1.45;
}

.single-post .entry-content > :first-child {
	margin-top: 0;
}

.single-post .entry-content > :last-child {
	margin-bottom: 0;
}

/* Keep article graphics inside the reading rail and make full-size access clear. */
.single-post .entry-content figure,
.single-post .entry-content figure img,
.single-post .entry-content picture {
	max-width: 100%;
}

.single-post .entry-content figure img {
	display: block;
	width: auto;
	height: auto;
	margin-inline: auto;
}

.single-post .habs-article-figure__zoom {
	display: block;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	cursor: zoom-in;
}

.single-post .habs-article-figure__zoom:focus-visible {
	outline: 3px solid #6fb2ff;
	outline-offset: 4px;
}

.single-post .habs-article-figure__hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: #aeb8c4;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
}

.single-post .habs-article-figure__hint::before {
	content: "\2922";
	color: #ef425d;
}

a.habs-external-link:not(.habs-article-figure__zoom)::after {
	content: "\2197";
	display: inline-block;
	margin-inline-start: .25em;
	font-size: .78em;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transform: translateY(-.08em);
}

.single-post .habs-article-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: 10px;
	color: inherit;
	opacity: .82;
}

.single-post .habs-article-reading-time::before {
	content: "\00b7";
	margin-inline-end: 4px;
}

.single-post .habs-article-author {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	margin-top: 32px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-left: 4px solid #c8102e;
	border-radius: 10px;
	background: #111a25;
}

.single-post .habs-article-author__avatar img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.single-post .habs-article-author__body {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
}

.single-post .habs-article-author__eyebrow {
	width: 100%;
	color: #aeb8c4;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.single-post .habs-article-author__name {
	color: #f7f4ec;
	font-weight: 800;
	text-decoration: none;
}

.single-post .habs-article-author__name:hover {
	color: #ef425d;
}

.single-post .habs-article-author__role {
	color: #aeb8c4;
	font-size: 13px;
}

.single-post .habs-article-author__bio {
	width: 100%;
	margin: 6px 0 0;
	color: #d8dee6;
}

.single-post .post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.single-post .post-navigation .nav-previous,
.single-post .post-navigation .nav-next {
	min-width: 0;
}

.single-post .post-navigation a {
	display: block;
	height: 100%;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 10px;
	background: #111a25;
	text-decoration: none;
}

.single-post .post-navigation a:hover {
	border-color: rgba(200, 16, 46, .7);
	background: #151f2b;
}

.single-post .post-navigation-sub small {
	color: #ef425d;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.single-post .entry-related {
	border-top: 1px solid rgba(255, 255, 255, .1);
}

/*
 * Keep league and team leaders immediately visible, then let readers choose
 * one detailed roster table at a time. JavaScript adds this control only when
 * at least two position groups exist, so the Stats page remains fully usable
 * if scripts are unavailable.
 */
.habs-stats-position-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 28px 0 14px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 12px;
	background: rgba(3, 15, 34, .78);
}

.habs-stats-position-tabs__label {
	margin: 0 8px 0 6px;
	color: #93a3b8;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.habs-stats-position-tabs button {
	min-height: 40px;
	padding: 9px 16px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #c8d2df;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.habs-stats-position-tabs button:hover,
.habs-stats-position-tabs button:focus-visible {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

.habs-stats-position-tabs button.is-active {
	background: #d7193f;
	color: #fff;
	box-shadow: 0 6px 18px rgba(215, 25, 63, .25);
}

.habs-stats-position-tabs__hint {
	margin-left: auto;
	padding-right: 8px;
	color: #8291a5;
	font-size: 11px;
}

/*
 * Final responsive pass. These rules only govern how completed components
 * reflow; they do not alter desktop hierarchy, content, or live-data logic.
 */
@media (max-width: 1024px) {
	:root {
		--habs-header-gutter: clamp(16px, 3vw, 28px);
	}

	.site-header .site-header-row-container-inner > .site-container {
		max-width: 100%;
	}

	/* Let the lead story and story rail become natural-height rows on tablets. */
	body.home .hh-editorial:not(.hh-editorial--magazine) .hh-editorial__grid {
		grid-template-columns: 1fr;
	}

	body.home .hh-editorial:not(.hh-editorial--magazine) .hh-editorial__lead .hh-editorial__lead-link {
		min-height: clamp(340px, 56vw, 500px);
	}

	.single-post .post-navigation a {
		padding: 16px;
	}

	.habs-stats-position-tabs__hint {
		flex-basis: 100%;
		margin-left: 6px;
		padding-bottom: 4px;
	}
}

@media (max-width: 767px) {
	:root {
		--habs-header-gutter: 16px;
	}

	body:not(.home) #primary.content-area,
	body:not(.home) .content-area {
		margin-top: 20px;
	}

	body.habs-front-page .habs-live-data.habs-scoreboard {
		margin-top: 10px;
		margin-bottom: 36px;
	}

	body.habs-front-page .entry-content > .habs-live-data.habs-data-note:first-of-type {
		min-height: 150px;
		margin-top: 10px;
		margin-bottom: 36px;
		padding: 22px;
		border-radius: 18px;
	}

	.single-post .habs-article-reading-time {
		display: flex;
		margin: 6px 0 0;
	}

	.single-post .habs-article-reading-time::before {
		display: none;
	}

	.single-post .habs-article-author {
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 14px;
		padding: 18px;
	}

	.single-post .habs-article-author__avatar img {
		width: 52px;
		height: 52px;
	}

	.single-post .post-navigation {
		grid-template-columns: 1fr;
	}

	.single-post .entry-content {
		max-width: none;
	}

	.single-post .entry-content > p {
		margin-bottom: 1.2em;
		line-height: 1.65;
	}

	.single-post .entry-content > h2,
	.single-post .entry-content > h3,
	.single-post .entry-content > h4 {
		margin-block: 1.4em .55em;
	}

	.single-post .entry-content > figure,
	.single-post .entry-content > .wp-block-image,
	.single-post .entry-content > .wp-block-gallery,
	.single-post .entry-content > .wp-block-embed {
		margin-block: 1.45em;
	}

	.habs-stats-position-tabs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
		padding: 6px;
	}

	.habs-stats-position-tabs__label,
	.habs-stats-position-tabs__hint {
		grid-column: 1 / -1;
		margin: 0;
		padding: 4px 4px 2px;
	}

	.habs-stats-position-tabs__hint {
		padding-top: 2px;
	}

	.habs-stats-position-tabs button {
		min-width: 0;
		min-height: 44px;
		padding-inline: 8px;
	}

	body.home .hh-editorial:not(.hh-editorial--magazine) .hh-editorial__lead .hh-editorial__lead-link {
		min-height: clamp(300px, 105vw, 430px);
	}

	.single-post .post-navigation a {
		min-height: 44px;
	}
}

@media (max-width: 479px) {
	.single-post .habs-article-author {
		grid-template-columns: 1fr;
	}

	.single-post .habs-article-author__avatar img {
		width: 56px;
		height: 56px;
	}

	.habs-stats-position-tabs button {
		font-size: 11px;
		padding-inline: 5px;
	}
}

/* Utility-page rails and visible titles. */
.habs-utility-page #primary.content-area,
.habs-utility-page .content-area {
	box-sizing: border-box;
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
	padding-inline: var(--habs-header-gutter, 24px);
}

.habs-utility-page .entry-content {
	box-sizing: border-box;
	width: 100%;
	max-width: 860px;
	margin-inline: auto;
	line-height: 1.7;
}

.habs-utility-page .habs-page-title {
	position: relative;
	margin: 0 0 clamp(24px, 4vw, 38px);
	padding-bottom: 16px;
	color: #f7f4ec;
	font-size: clamp(38px, 6vw, 64px);
	line-height: .98;
	letter-spacing: -.025em;
}

.habs-utility-page .habs-page-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 4px;
	background: #c8102e;
}

.habs-page-about .entry-content,
.habs-page-privacy-policy .entry-content {
	padding: clamp(24px, 5vw, 48px);
	border: 1px solid rgba(255, 255, 255, .11);
	border-radius: 14px;
	background:
		radial-gradient(circle at 100% 0, rgba(200, 16, 46, .12), transparent 30%),
		#101b28;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.habs-page-about .entry-content > h2,
.habs-page-privacy-policy .entry-content > h2 {
	margin-top: 1.75em;
	color: #f7f4ec;
	line-height: 1.15;
}

.habs-page-about .entry-content > .habs-page-title + h2,
.habs-page-privacy-policy .entry-content > .habs-page-title + p {
	margin-top: 0;
}

.habs-page-about .entry-content > ul {
	margin-block: 24px;
	padding: 20px 24px 20px 46px;
	border-left: 4px solid #c8102e;
	border-radius: 0 10px 10px 0;
	background: rgba(4, 16, 30, .55);
}

.habs-page-about .entry-content li + li {
	margin-top: 8px;
}

/* Branded first-party contact form; this includes the former contact-fix CSS. */
.habs-page-contact .entry-content > p:first-of-type {
	max-width: 720px;
	color: #c8d2df;
	font-size: 17px;
}

.habs-contact-form {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 820px;
	margin-top: 28px;
	padding: clamp(22px, 4vw, 40px);
	color: #dce5ef;
	background:
		radial-gradient(circle at 100% 0, rgba(200, 16, 46, .16), transparent 34%),
		#0b1d32;
	border: 1px solid rgba(159, 200, 255, .18);
	border-top: 4px solid #c8102e;
	border-radius: 14px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

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

.habs-contact-form p {
	margin: 0 0 20px;
}

.habs-contact-form label {
	display: block;
	margin-bottom: 8px;
	color: #f7f4ec;
	font-weight: 750;
}

.habs-contact-form input[type="text"],
.habs-contact-form input[type="email"],
.habs-contact-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 12px 14px;
	color: #f7f4ec;
	background: #071426;
	border: 1px solid #52667f;
	border-radius: 7px;
	font: inherit;
}

.habs-contact-form textarea {
	min-height: 180px;
	resize: vertical;
}

.habs-contact-form input:focus,
.habs-contact-form textarea:focus {
	outline: 3px solid rgba(111, 178, 255, .25);
	outline-offset: 1px;
	border-color: #6fb2ff;
}

.habs-contact-form button {
	min-height: 46px;
	padding: 11px 24px;
	color: #fff;
	background: #c8102e;
	border: 0;
	border-radius: 7px;
	font-weight: 800;
	cursor: pointer;
}

.habs-contact-form button:hover,
.habs-contact-form button:focus-visible {
	background: #e02243;
}

.habs-contact-form__consent label {
	display: block !important;
	grid-template-columns: none !important;
	width: 100% !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
}

.habs-contact-form__consent input[type="checkbox"] {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin: 2px 9px 0 0;
	vertical-align: text-top;
	flex: none;
}

.habs-contact-form__consent a {
	display: inline !important;
	width: auto !important;
	min-width: 0 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	color: #9fc8ff;
}

.habs-contact-form__optional,
.habs-contact-form__required {
	color: #9cabbc;
	font-size: 13px;
	font-weight: 500;
}

.habs-contact-form__trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.habs-contact-notice {
	box-sizing: border-box;
	width: 100%;
	max-width: 820px;
	margin: 22px 0 0;
	padding: 14px 16px;
	border-left: 4px solid;
	border-radius: 6px;
	font-weight: 700;
}

.habs-contact-notice.is-success {
	color: #174d29;
	background: #edf8f0;
	border-color: #2f7d46;
}

.habs-contact-notice.is-error {
	color: #7c1726;
	background: #fff0f2;
	border-color: #b5122b;
}

/* Search results become a clear editorial/data results rail. */
.search-results #primary.content-area,
.search-results .content-area,
.search-no-results #primary.content-area,
.search-no-results .content-area {
	box-sizing: border-box;
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: var(--habs-header-gutter, 24px);
}

.search-results .page-header,
.search-no-results .page-header {
	padding-bottom: 18px;
	border-bottom: 3px solid #c8102e;
}

.search-results .loop-entry {
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 12px;
	background: #101b28;
}

/* Stories and author archives share the same centred frame as the data pages. */
body.habs-editorial-archive .content-container,
body.habs-editorial-archive .entry-hero-container-inner {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1180px + (2 * var(--habs-header-gutter)));
	margin-inline: auto;
	padding-inline: var(--habs-header-gutter);
}

body.habs-editorial-archive #primary {
	min-width: 0;
}

body.habs-editorial-archive .entry-hero .hero-container {
	max-width: none;
	padding-inline: 0;
}

body.habs-editorial-archive .page-header,
body.habs-editorial-archive .entry-hero .entry-header {
	margin-bottom: 26px;
	padding-bottom: 18px;
	border-bottom: 3px solid #c8102e;
}

body.habs-editorial-archive .page-title {
	font-family: "Barlow Condensed", sans-serif;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.05;
	letter-spacing: -.025em;
}

body.habs-editorial-archive #archive-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

body.habs-editorial-archive #archive-container > .entry-list-item {
	min-width: 0;
}

body.habs-editorial-archive .loop-entry {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(247, 244, 236, .14);
	border-radius: 14px;
	background: #101b28;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

body.habs-editorial-archive .loop-entry .post-thumbnail,
body.habs-editorial-archive .loop-entry > .habs-editorial-fallback-link {
	display: block;
	flex: none;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0;
}

body.habs-editorial-archive .loop-entry .post-thumbnail .post-thumbnail-inner {
	height: 100%;
	padding-bottom: 0;
}

body.habs-editorial-archive .loop-entry .entry-content-wrap {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: clamp(18px, 2vw, 26px);
}

body.habs-editorial-archive .loop-entry .entry-header,
body.habs-editorial-archive .loop-entry .entry-summary,
body.habs-editorial-archive .loop-entry .entry-summary p {
	margin: 0;
}

body.habs-editorial-archive .loop-entry .entry-title {
	margin: 0 0 12px;
	font-family: "Barlow Condensed", sans-serif;
	font-size: clamp(25px, 2.2vw, 32px);
	line-height: 1.12;
	text-wrap: balance;
}

body.habs-editorial-archive .loop-entry .entry-title a {
	color: #f7f4ec;
}

body.habs-editorial-archive .loop-entry .entry-title a:hover {
	color: #9fc8ff;
}

body.habs-editorial-archive .loop-entry .entry-meta,
body.habs-editorial-archive .loop-entry .entry-summary {
	color: #b8c5d5;
	font-size: 14px;
	line-height: 1.65;
}

body.habs-editorial-archive .loop-entry .entry-footer {
	margin-top: auto;
}

@media (max-width: 1024px) {
	body.habs-editorial-archive #archive-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.habs-editorial-archive #archive-container {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

/* Kadence 404 recovery panel. */
.error404 .error .page-content.entry {
	box-sizing: border-box;
	width: calc(100% - (2 * var(--habs-header-gutter, 24px)));
	max-width: 900px;
	margin-inline: auto;
	border: 1px solid rgba(255, 255, 255, .11);
	border-top: 4px solid #c8102e;
	border-radius: 14px;
	background:
		radial-gradient(circle at 100% 0, rgba(200, 16, 46, .14), transparent 34%),
		#101b28;
}

.error404 .error .entry-content-wrap {
	padding: clamp(28px, 5vw, 54px);
}

.error404 .error .page-title {
	font-size: clamp(38px, 6vw, 62px);
	line-height: 1;
}

.error404 .error .search-form {
	display: flex;
	max-width: 620px;
	margin-top: 22px;
}

.error404 .error .search-form input[type="search"] {
	min-width: 0;
	min-height: 46px;
	flex: 1;
}

.habs-404-links {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .11);
}

.habs-404-links__label {
	display: block;
	margin-bottom: 12px;
	color: #93a3b8;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.habs-404-links > div {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.habs-404-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 8px;
	background: #071426;
	color: #f7f4ec;
	font-weight: 750;
	text-decoration: none;
}

.habs-404-links a:hover,
.habs-404-links a:focus-visible {
	border-color: #c8102e;
	background: #151f2b;
}

.habs-404-links a span {
	color: #ef425d;
}

/* Mobile-only discovery links and full search form inside Kadence's drawer. */
#mobile-drawer .habs-mobile-utilities {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

#mobile-drawer .habs-mobile-utilities__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 18px;
}

#mobile-drawer .habs-mobile-utilities__links:empty {
	display: none;
}

#mobile-drawer .habs-mobile-utilities__links a {
	display: grid;
	min-height: 44px;
	place-items: center;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 7px;
	color: #f7f4ec;
	font-weight: 800;
	text-decoration: none;
}

#mobile-drawer .habs-mobile-search label {
	display: block;
	margin-bottom: 7px;
	color: #c8d2df;
	font-size: 12px;
	font-weight: 800;
}

#mobile-drawer .habs-mobile-search__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

#mobile-drawer .habs-mobile-search input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 9px 11px;
	border: 1px solid #52667f;
	border-radius: 7px;
	background: #071426;
	color: #fff;
	font: inherit;
}

#mobile-drawer .habs-mobile-search button {
	min-height: 44px;
	padding: 9px 14px;
	border: 0;
	border-radius: 7px;
	background: #c8102e;
	color: #fff;
	font-weight: 800;
}

/* Complete site-information footer. */
.habs-trust-footer {
	background: #061426;
	border-top: 4px solid #c8102e;
	color: #dce5ef;
}

.habs-trust-footer__inner {
	display: grid;
	grid-template-columns: minmax(240px, .9fr) minmax(480px, 1.7fr);
	gap: clamp(24px, 3vw, 40px);
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding: clamp(28px, 3vw, 40px) var(--habs-header-gutter, 24px) 22px;
}

.habs-trust-footer__title {
	display: inline-block;
	margin-bottom: 13px;
	color: #f7f4ec;
	font-family: "Barlow Condensed", sans-serif;
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 900;
	letter-spacing: -.02em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.habs-trust-footer__brand p {
	max-width: 440px;
	margin: 0;
	color: #afbdcc;
	font-size: 14px;
	line-height: 1.65;
}

.habs-trust-footer__links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 46px);
}

.habs-trust-footer__group h2 {
	margin: 0 0 14px;
	color: #8fa1b5;
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.habs-trust-footer__group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.habs-trust-footer__group li + li {
	margin-top: 9px;
}

.habs-trust-footer a {
	color: #f7f4ec;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.habs-trust-footer a:hover,
.habs-trust-footer a:focus-visible {
	color: #9fc8ff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.habs-trust-footer__disclaimer {
	grid-column: 1 / -1;
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	color: #8292a5;
	font-size: 12px;
	line-height: 1.55;
}

.habs-site-search .loop-entry .habs-search-result-type {
	display: inline-flex;
	margin: 0 0 10px;
	padding: 5px 9px;
	border: 1px solid rgba(200, 16, 46, .24);
	border-radius: 999px;
	background: rgba(200, 16, 46, .08);
	color: #ef425d;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .1em;
	line-height: 1;
	text-transform: uppercase;
}

@media (max-width: 900px) {
	.habs-trust-footer__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.habs-trust-footer__links {
		gap: 24px;
	}
}

@media (max-width: 600px) {
	.habs-contact-form__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.habs-page-about .entry-content,
	.habs-page-privacy-policy .entry-content {
		padding: 22px 18px;
	}

	.habs-404-links > div {
		grid-template-columns: 1fr;
	}

	.habs-trust-footer__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 18px;
	}

	.habs-trust-footer__group:first-child {
		grid-column: 1 / -1;
	}

	.habs-trust-footer__group:first-child ul {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 24px;
	}

	.habs-trust-footer__group li + li {
		margin-top: 3px;
	}

	.habs-trust-footer__group a {
		display: inline-flex;
		min-height: 40px;
		align-items: center;
	}

	.habs-trust-footer__group h2 {
		margin-bottom: 8px;
	}

	.error404 .error .search-form {
		flex-direction: column;
	}

	.single-post .habs-article-figure__hint {
		font-size: 11px;
	}
}
