/*
 * Wellington Journal Site Builder
 * Frontend starter styles for GeneratePress and the WordPress block editor.
 */

:root {
	--wj-blue: #174a7c;
	--wj-blue-dark: #0e2f52;
	--wj-blue-soft: #e8f1f9;
	--wj-accent: #b88a2a;
	--wj-gray-950: #111827;
	--wj-gray-800: #263241;
	--wj-gray-700: #44505c;
	--wj-gray-300: #c8d2dc;
	--wj-gray-200: #d9e1e8;
	--wj-gray-100: #f5f7f9;
	--wj-white: #ffffff;
}

/*
 * Front page cleanup for GeneratePress.
 * These selectors are scoped to body.home so normal posts and other pages keep
 * the active theme header, navigation, sidebars, titles, and spacing.
 */
body.home .site-header,
body.home #masthead,
body.home .main-navigation,
body.home #site-navigation,
body.home .inside-header,
body.home .page-header,
body.home .entry-header,
body.home .entry-title {
	display: none;
}

body.home .site-content,
body.home .content-area,
body.home .grid-container,
body.home #primary,
body.home .site-main,
body.home .inside-article,
body.home .entry-content {
	box-sizing: border-box;
	margin-top: 0;
	padding-top: 0;
}

body.home .site-content {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

body.home .content-area,
body.home #primary {
	float: none;
	left: auto;
	margin-left: auto;
	margin-right: auto;
	right: auto;
	width: 100% !important;
}

body.home .is-left-sidebar,
body.home .is-right-sidebar,
body.home #left-sidebar,
body.home #right-sidebar,
body.home .sidebar {
	display: none;
}

body.home.separate-containers .site-main,
body.home.separate-containers .inside-article {
	margin-top: 0;
}

body.home .inside-article {
	padding-left: 0;
	padding-right: 0;
}

body.home .entry-content {
	margin-bottom: 0;
	max-width: none;
	width: 100%;
}

body.home .entry-content > * {
	margin-left: auto;
	margin-right: auto;
}

body.home .entry-content > *:first-child {
	margin-top: 0;
}

.wj-home-shell {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1180px;
	padding: 0 24px 44px;
	width: 100%;
}

.wj-home-shell,
.wj-home-shell * {
	box-sizing: border-box;
}

.wj-home-shell > .wj-section,
.wj-home-shell > .wj-site-masthead {
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	width: 100%;
}

.wj-home-shell .is-layout-constrained > *,
.wj-home-shell .wp-block-group__inner-container {
	max-width: 100%;
	width: 100%;
}

.wj-home,
.wj-section,
.wj-site-masthead {
	color: var(--wj-gray-950);
	font-family: Georgia, "Times New Roman", serif;
}

.wj-section {
	margin-bottom: 34px;
}

.wj-section h1,
.wj-section h2,
.wj-section h3 {
	color: var(--wj-blue-dark);
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: 0;
	line-height: 1.12;
	margin: 0 0 14px;
}

.wj-section h2 {
	border-bottom: 1px solid var(--wj-gray-200);
	font-size: clamp(28px, 3vw, 40px);
	padding-bottom: 10px;
}

.wj-section h3 {
	font-size: 22px;
}

.wj-section p {
	color: var(--wj-gray-700);
	font-size: 17px;
	line-height: 1.65;
	margin: 0 0 16px;
}

.wj-panel {
	border: 1px solid var(--wj-gray-200);
	box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

.wj-kicker {
	color: var(--wj-accent) !important;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px !important;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-bottom: 10px !important;
	text-transform: uppercase;
}

.wj-site-masthead {
	background: var(--wj-white);
	border-bottom: 1px solid var(--wj-gray-200);
	padding: 30px 22px 0;
	text-align: center;
	width: 100%;
}

.wj-site-masthead__brand {
	margin-bottom: 20px;
	max-width: none;
	width: 100%;
}

.wj-site-masthead__title {
	font-size: clamp(36px, 6vw, 62px);
	font-weight: 700;
	hyphens: none;
	letter-spacing: 0;
	line-height: 1.05;
	margin: 0 0 8px;
	overflow-wrap: normal;
	text-wrap: balance;
	word-break: normal;
}

.wj-site-masthead__title a {
	color: var(--wj-blue-dark);
	display: inline-block;
	max-width: 100%;
	text-decoration: none;
}

.wj-site-masthead__tagline {
	color: var(--wj-gray-700);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	hyphens: none;
	line-height: 1.5;
	margin: 0 auto;
	max-width: 760px;
	overflow-wrap: normal;
	width: 100%;
	word-break: normal;
}

.wj-site-masthead__nav {
	border-top: 1px solid var(--wj-gray-200);
	font-family: Arial, Helvetica, sans-serif;
	padding: 11px 0;
}

.wj-site-masthead__nav .wp-block-navigation__container {
	column-gap: 6px;
	row-gap: 8px;
}

.wj-site-masthead__nav a {
	color: var(--wj-blue-dark);
	font-size: 14px;
	font-weight: 800;
	padding: 8px 10px;
	text-decoration: none;
}

.wj-site-masthead__nav a:hover,
.wj-site-masthead__nav a:focus {
	background: var(--wj-blue-soft);
	color: var(--wj-blue-dark);
}

.wj-hero {
	background: linear-gradient(135deg, var(--wj-blue-dark), var(--wj-blue));
	border-bottom: 6px solid var(--wj-accent);
	padding: 64px 42px;
}

.wj-hero h1 {
	color: var(--wj-white);
	font-size: clamp(42px, 6vw, 72px);
	max-width: 880px;
}

.wj-hero .wj-hero__dek {
	color: var(--wj-blue-soft);
	font-size: 21px;
	max-width: 780px;
}

.wj-hero .wp-block-buttons {
	gap: 12px;
	margin-top: 24px;
}

.wj-feature {
	background: var(--wj-white);
	border-left: 6px solid var(--wj-blue);
	padding: 32px 34px;
}

.wj-feature h2 {
	border-bottom: 0;
	font-size: clamp(30px, 4vw, 46px);
	padding-bottom: 0;
}

.wj-meta {
	border-top: 1px solid var(--wj-gray-200);
	color: var(--wj-gray-700) !important;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px !important;
	margin-top: 22px !important;
	padding-top: 14px;
}

.wj-card-grid {
	align-items: stretch;
	gap: 20px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.wj-card {
	background: var(--wj-white);
	border: 1px solid var(--wj-gray-200);
	border-top: 4px solid var(--wj-blue);
	min-width: 0;
	padding: 24px;
}

.wj-card--tool {
	border-top-color: var(--wj-accent);
}

.wj-card h3 {
	margin-bottom: 10px;
}

.wj-card p {
	font-size: 15.5px;
}

.wj-card a {
	color: var(--wj-blue);
	font-weight: 800;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.wj-newsletter {
	background: var(--wj-blue-soft);
	border-left: 6px solid var(--wj-accent);
	padding: 38px 34px;
}

.wj-newsletter h2 {
	border-bottom: 0;
	padding-bottom: 0;
}

.wj-trust-note {
	border-top: 1px solid var(--wj-gray-200);
	padding-top: 20px;
}

.wj-trust-note p {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13.5px;
}

.wj-button-primary .wp-block-button__link,
.wj-button-secondary .wp-block-button__link {
	border-radius: 4px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 800;
	padding: 13px 18px;
	text-decoration: none;
}

.wj-button-primary .wp-block-button__link {
	background: var(--wj-blue);
	color: var(--wj-white);
}

.wj-button-primary .wp-block-button__link:hover,
.wj-button-primary .wp-block-button__link:focus {
	background: var(--wj-blue-dark);
	color: var(--wj-white);
}

.wj-button-secondary .wp-block-button__link {
	background: var(--wj-white);
	color: var(--wj-blue-dark);
}

.wj-button-secondary .wp-block-button__link:hover,
.wj-button-secondary .wp-block-button__link:focus {
	background: var(--wj-blue-soft);
	color: var(--wj-blue-dark);
}

@media (max-width: 900px) {
	.wj-card-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (max-width: 781px) {
	body.home,
	body.home .site,
	body.home .site-content,
	body.home .grid-container,
	body.home .content-area,
	body.home #primary,
	body.home .site-main,
	body.home .inside-article,
	body.home .entry-content {
		max-width: none !important;
		min-width: 0;
		width: 100% !important;
	}

	body.home .site-content,
	body.home .inside-article {
		padding-left: 0;
		padding-right: 0;
	}

	.wj-home-shell {
		margin-left: auto;
		margin-right: auto;
		max-width: none;
		padding-left: 10px;
		padding-right: 10px;
		width: 100%;
	}

	.wj-home-shell > *,
	.wj-home-shell .wj-section,
	.wj-home-shell .wj-panel,
	.wj-home-shell .wp-block-group,
	.wj-home-shell .wp-block-columns,
	.wj-home-shell .is-layout-constrained,
	.wj-home-shell .is-layout-constrained > *,
	.wj-home-shell .wp-block-group__inner-container {
		margin-left: auto !important;
		margin-right: auto !important;
		max-width: 100% !important;
		min-width: 0;
		width: 100% !important;
	}

	.wj-site-masthead {
		display: block;
		padding: 22px 10px 0;
		width: 100%;
	}

	.wj-site-masthead__brand {
		display: block;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
		width: 100%;
	}

	.wj-site-masthead__title {
		font-size: clamp(30px, 9vw, 40px);
		line-height: 1.08;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
		overflow-wrap: normal;
		white-space: normal;
		word-break: keep-all;
	}

	.wj-site-masthead__tagline {
		font-size: 14px;
		line-height: 1.55;
		margin-left: auto;
		margin-right: auto;
		max-width: 30rem;
		overflow-wrap: normal;
		white-space: normal;
		word-break: normal;
	}

	.wj-site-masthead__nav {
		width: 100%;
	}

	.wj-site-masthead__nav .wp-block-navigation__container {
		justify-content: center;
		width: 100%;
	}

	.wj-site-masthead__nav a {
		font-size: 13px;
		padding: 7px 8px;
	}

	.wj-hero {
		padding: 38px 18px;
	}

	.wj-hero h1 {
		font-size: clamp(34px, 10vw, 46px);
		overflow-wrap: normal;
		word-break: normal;
	}

	.wj-hero .wj-hero__dek {
		font-size: 18px;
	}

	.wj-feature,
	.wj-card,
	.wj-newsletter {
		padding: 20px;
	}

	.wj-card-grid,
	.wj-card-grid--four {
		display: grid;
		grid-template-columns: 1fr;
	}

	.wj-card-grid > .wp-block-column {
		flex-basis: 100% !important;
		margin-left: 0;
		margin-right: 0;
		width: 100% !important;
	}

	.wj-section p {
		font-size: 16px;
	}
}

@media (max-width: 420px) {
	.wj-home-shell {
		padding-left: 8px;
		padding-right: 8px;
	}

	.wj-site-masthead {
		padding-left: 8px;
		padding-right: 8px;
	}

	.wj-site-masthead__title {
		font-size: clamp(27px, 8.5vw, 34px);
	}

	.wj-site-masthead__nav .wp-block-navigation__container {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
	}

	.wj-hero,
	.wj-feature,
	.wj-card,
	.wj-newsletter {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/*
 * Strong portrait-phone override.
 * GeneratePress and WordPress block layouts can keep constrained widths on
 * nested groups in the customizer preview. These rules make the Wellington
 * homepage use the phone viewport instead of a collapsed inner block width.
 */
@media (max-width: 768px) {
	body.home .entry-content > .wj-home-shell,
	body.home .wj-home-shell {
		display: block !important;
		left: 50%;
		margin-left: -50vw !important;
		margin-right: 0 !important;
		max-width: none !important;
		min-width: 0;
		padding-left: 12px;
		padding-right: 12px;
		position: relative;
		right: auto;
		width: 100vw !important;
	}

	body.home .wj-home-shell > *,
	body.home .wj-home-shell .wj-section,
	body.home .wj-home-shell .wj-site-masthead,
	body.home .wj-home-shell .wj-hero,
	body.home .wj-home-shell .wj-feature,
	body.home .wj-home-shell .wj-newsletter,
	body.home .wj-home-shell .wp-block-group,
	body.home .wj-home-shell .wp-block-columns,
	body.home .wj-home-shell .wp-block-column,
	body.home .wj-home-shell .is-layout-constrained,
	body.home .wj-home-shell .is-layout-constrained > *,
	body.home .wj-home-shell .wp-block-group__inner-container {
		box-sizing: border-box;
		float: none !important;
		flex: none !important;
		flex-basis: auto !important;
		grid-column: 1 / -1 !important;
		margin-left: auto !important;
		margin-right: auto !important;
		max-width: 100% !important;
		min-width: 0;
		width: 100% !important;
	}

	body.home .wj-site-masthead {
		align-items: center !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: center;
		padding: 24px 12px 0;
		text-align: center;
	}

	body.home .wj-site-masthead__brand {
		align-items: center !important;
		display: flex !important;
		flex: 0 0 auto !important;
		flex-direction: column !important;
		justify-content: center;
		max-width: 100% !important;
		text-align: center;
		width: 100% !important;
	}

	body.home .wj-site-masthead__title {
		display: block;
		flex: 0 0 auto !important;
		font-size: clamp(1.75rem, 8vw, 3rem);
		hyphens: none !important;
		line-height: 1;
		margin: 0 auto 10px !important;
		max-width: 100% !important;
		min-width: max-content;
		overflow-wrap: normal !important;
		text-align: center;
		white-space: nowrap;
		width: auto !important;
		word-break: normal !important;
	}

	body.home .wj-site-masthead__title a {
		display: inline-block;
		max-width: 100%;
		white-space: nowrap;
	}

	body.home .wj-site-masthead__tagline {
		display: block;
		flex: 0 0 auto !important;
		font-size: 1rem;
		hyphens: none !important;
		line-height: 1.5;
		margin: 0 auto 18px !important;
		max-width: 32rem !important;
		overflow-wrap: normal !important;
		text-align: center;
		white-space: normal;
		width: min(100%, 32rem) !important;
		word-break: normal !important;
	}

	body.home .wj-site-masthead__nav {
		display: block !important;
		flex: 0 0 auto !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	body.home .wj-site-masthead__nav .wp-block-navigation__container {
		align-items: center;
		display: flex !important;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		max-width: 100% !important;
		width: 100% !important;
	}

	body.home .wj-hero {
		align-items: center;
		display: flex !important;
		flex-direction: column;
		padding: 40px 18px;
		text-align: center;
	}

	body.home .wj-hero h1,
	body.home .wj-hero .wj-hero__dek,
	body.home .wj-hero .wp-block-buttons {
		margin-left: auto !important;
		margin-right: auto !important;
		max-width: 100% !important;
		text-align: center;
		width: 100% !important;
	}
}

@media (max-width: 480px) {
	body.home .entry-content > .wj-home-shell,
	body.home .wj-home-shell {
		padding-left: 10px;
		padding-right: 10px;
	}

	body.home .wj-site-masthead {
		padding-left: 10px;
		padding-right: 10px;
	}

	body.home .wj-site-masthead__title {
		font-size: clamp(1.55rem, 7.6vw, 2.25rem);
		letter-spacing: 0;
	}

	body.home .wj-site-masthead__tagline {
		font-size: 0.95rem;
		max-width: 24rem !important;
		width: 100% !important;
	}

	body.home .wj-site-masthead__nav .wp-block-navigation__container {
		gap: 4px 6px;
	}

	body.home .wj-site-masthead__nav a {
		font-size: 0.82rem;
		padding: 7px 6px;
	}
}
