/*
Theme Name: NexusCore Insights
Theme URI: https://nexuscorecompute.com/blog
Author: NexusCore Compute
Author URI: https://nexuscorecompute.com
Description: A purpose-built editorial theme for the NexusCore Compute journal.
Version: 1.6.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: nexuscore-blog
*/

@font-face {
	font-family: "Geist";
	src: url("assets/fonts/geist-regular.woff2") format("woff2");
	font-display: swap;
	font-style: normal;
	font-weight: 300 500;
}

@font-face {
	font-family: "Geist";
	src: url("assets/fonts/geist-semibold.woff2") format("woff2");
	font-display: swap;
	font-style: normal;
	font-weight: 600 800;
}

:root {
	--ink: #373737;
	--muted: #777;
	--faint: #a1a1a1;
	--line: #dedede;
	--line-soft: #e9e9e9;
	--paper: #f7f7f6;
	--white: #fff;
	--blue: #426af4;
	--blue-light: #6f8df7;
	--radius-sm: 12px;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow: 0 16px 50px rgba(22, 34, 72, 0.08);
	--shell: 1220px;
	--article: 720px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.hero-grid-section {
	background-color: var(--paper);
	background-image: url("assets/images/Background@4x.png");
	background-position: center top;
	background-repeat: repeat-y;
	background-size: 1200px 884px;
}

.hero-grid-section {
	background-position: center -80px;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 160ms ease;
}

a:hover {
	color: #2f69ff;
}

button,
input {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

.shell {
	margin-inline: auto;
	max-width: calc(var(--shell) + 48px);
	padding-inline: 24px;
	width: 100%;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--white);
	clip: auto !important;
	clip-path: none;
	color: var(--ink);
	display: block;
	font-weight: 600;
	height: auto;
	left: 16px;
	padding: 12px 18px;
	top: 16px;
	width: auto;
	z-index: 100000;
}

.eyebrow {
	color: var(--blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 500;
	gap: 14px;
	justify-content: center;
	min-height: 52px;
	padding: 12px 24px;
	transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid rgba(66, 106, 244, 0.38);
	outline-offset: 3px;
}

.button--light {
	background: var(--white);
	border-color: #dadada;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.button--light:hover,
.button--outline:hover {
	border-color: #aeb9e8;
	box-shadow: 0 12px 28px rgba(39, 63, 149, 0.1);
}

.button--white {
	background: var(--white);
	color: #3158dd;
}

.button--dark {
	background: var(--ink);
	color: var(--white);
}

.button--outline {
	background: transparent;
	border-color: #cfcfcf;
	color: var(--ink);
}

.button--light:hover,
.button--outline:hover {
	color: var(--ink);
}

.button--dark:hover {
	color: var(--white);
}

.button--white:hover {
	color: #3158dd;
}

/* Header */
.site-header {
	padding-top: 0;
	position: sticky;
	top: 12px;
	z-index: 100;
}

.nav-shell {
	align-items: center;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	box-shadow: 0 10px 35px rgba(37, 43, 66, 0.035);
	display: grid;
	grid-template-columns: 180px 1fr 136px;
	margin-inline: auto;
	max-width: 844px;
	min-height: 54px;
	padding: 0 8px 0 18px;
	position: relative;
}

.brand,
.brand .custom-logo-link {
	align-items: center;
	display: inline-flex;
	gap: 9px;
	justify-self: start;
	min-width: 0;
	width: max-content;
}

.brand .custom-logo {
	height: auto;
	max-height: 35px;
	max-width: 145px;
	width: auto;
}

.brand-mark {
	display: inline-grid;
	height: 19px;
	place-items: center;
	position: relative;
	width: 22px;
}

.brand-mark i {
	background: linear-gradient(135deg, #79a2ff, #3262ed);
	clip-path: polygon(50% 0, 100% 32%, 50% 64%, 0 32%);
	height: 12px;
	left: 0;
	position: absolute;
	top: 0;
	width: 22px;
}

.brand-mark i:nth-child(2) {
	opacity: 0.72;
	top: 4px;
}

.brand-mark i:nth-child(3) {
	opacity: 0.4;
	top: 8px;
}

.brand-name {
	color: #3262de;
	font-size: 20px;
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 0.9;
	position: relative;
}

.brand-name > span {
	color: #6791f9;
}

.brand-name small {
	bottom: -9px;
	color: #8fa4d9;
	font-size: 6px;
	font-weight: 400;
	letter-spacing: 0;
	position: absolute;
	right: 0;
}

.site-navigation {
	align-items: center;
	display: flex;
	justify-content: center;
}

.primary-menu,
.primary-menu .sub-menu,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu {
	align-items: center;
	display: flex;
	gap: 38px;
}

.primary-menu .menu-item {
	position: relative;
}

.primary-menu > .menu-item > a {
	color: #2f2f2f;
	display: block;
	font-size: 15px;
	font-synthesis: none;
	font-weight: 400;
	padding: 17px 0;
	white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
	color: #2f69ff;
}

.primary-menu > .menu-item-has-children > a {
	align-items: center;
	display: inline-flex;
	gap: 8px;
	padding-right: 0;
}

.primary-menu > .menu-item-has-children > a::after {
	border-bottom: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	content: "";
	flex: 0 0 auto;
	height: 6px;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 180ms ease;
	width: 6px;
}

.primary-menu .sub-menu {
	background: var(--white);
	border: 1px solid var(--line-soft);
	border-radius: 12px;
	box-shadow: var(--shadow);
	left: -20px;
	min-width: 190px;
	opacity: 0;
	padding: 10px;
	pointer-events: none;
	position: absolute;
	top: calc(100% - 1px);
	transform: translateY(7px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.primary-menu .sub-menu::before {
	content: "";
	height: 10px;
	left: 0;
	position: absolute;
	right: 0;
	top: -10px;
}

.primary-menu .sub-menu a {
	border-radius: 8px;
	display: block;
	font-size: 14px;
	padding: 9px 11px;
	white-space: nowrap;
}

.primary-menu .sub-menu a:hover {
	background: #f1f4ff;
	color: #2f69ff;
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.primary-menu .menu-item-has-children:hover > a::after,
.primary-menu .menu-item-has-children:focus-within > a::after {
	transform: translateY(2px) rotate(225deg);
}

.header-cta {
	justify-self: end;
	min-height: 43px;
	padding-inline: 20px;
}

.menu-toggle {
	background: transparent;
	border: 0;
	display: none;
	height: 44px;
	padding: 10px;
	position: relative;
	width: 44px;
}

.menu-toggle__line {
	background: var(--ink);
	display: block;
	height: 1.5px;
	left: 50%;
	margin: 0;
	position: absolute;
	top: 50%;
	transform-origin: center;
	transition: transform 180ms ease;
	width: 22px;
}

.menu-toggle__line--top {
	transform: translate(-50%, -50%) translateY(-4.5px);
}

.menu-toggle__line--bottom {
	transform: translate(-50%, -50%) translateY(4.5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line--top {
	transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line--bottom {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Blog landing */
.blog-intro {
	padding: 116px 0 62px;
	text-align: center;
}

.blog-intro__inner {
	max-width: 780px;
}

.blog-intro h1 {
	font-size: clamp(54px, 5.35vw, 72px);
	font-weight: 450;
	letter-spacing: -0.062em;
	line-height: 1.03;
	margin: 0;
}

.blog-intro h1 + p {
	color: var(--muted);
	font-size: 17px;
	line-height: 1.55;
	margin: 20px auto 0;
	max-width: 520px;
}

.featured-section {
	padding-bottom: 118px;
}

.featured-layout {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.75fr) minmax(330px, 0.95fr);
}

.featured-story__image {
	aspect-ratio: 1.71 / 1;
	border-radius: var(--radius);
	overflow: hidden;
}

.cover-image {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.image-link {
	background: #e9e9e7;
	display: block;
	overflow: hidden;
	position: relative;
}

.image-link::after {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%);
	content: "";
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 250ms ease;
}

.image-link img {
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.image-link:hover img {
	transform: scale(1.025);
}

.image-link:hover::after {
	opacity: 1;
}

.story-meta {
	align-items: center;
	color: #464646;
	display: flex;
	font-size: 14px;
	gap: 8px;
	margin-top: 20px;
}

.story-meta i {
	background: currentColor;
	border-radius: 50%;
	display: block;
	height: 3px;
	width: 3px;
}

.featured-story h2 {
	font-size: clamp(25px, 2.2vw, 32px);
	font-weight: 450;
	letter-spacing: -0.035em;
	line-height: 1.2;
	margin: 23px 0 18px;
}

.featured-story h2 a,
.story-card h3 a,
.promo-story h3 a {
	text-decoration: none;
}

.author-chip {
	align-items: center;
	display: flex;
	font-size: 14px;
	gap: 11px;
}

.author-avatar {
	background: #ddd;
	border-radius: 50%;
	height: 40px;
	object-fit: cover;
	width: 40px;
}

.author-chip small {
	color: var(--muted);
	display: block;
	font-size: 12px;
	margin-top: 2px;
}

.promo-list {
	display: grid;
	gap: 18px;
	grid-template-rows: repeat(3, 1fr);
}

.promo-story {
	align-items: center;
	border: 1px solid #d9d9d9;
	border-radius: var(--radius-sm);
	display: grid;
	gap: 18px;
	grid-template-columns: 150px 1fr;
	min-height: 135px;
	padding: 7px;
}

.promo-story__image {
	align-self: stretch;
	border-radius: 9px;
	min-height: 118px;
}

.promo-story h3 {
	font-size: 18px;
	font-weight: 450;
	letter-spacing: -0.025em;
	line-height: 1.3;
	margin: 0;
	padding-right: 12px;
}

.latest-section,
.listing-section {
	background: rgba(255, 255, 255, 0.72);
	border-top: 1px solid rgba(0, 0, 0, 0.035);
	padding: 115px 0 130px;
}

.section-heading {
	align-items: end;
	display: flex;
	justify-content: space-between;
	margin-bottom: 48px;
}

.section-heading h2,
.listing-header h1 {
	font-size: clamp(42px, 4.1vw, 58px);
	font-weight: 450;
	letter-spacing: -0.055em;
	line-height: 1.05;
	margin: 0;
}

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

.story-card__image {
	aspect-ratio: 1.23 / 1;
	border-radius: var(--radius-sm);
}

.story-card .story-meta {
	font-size: 13px;
	margin-top: 17px;
}

.story-card h3 {
	font-size: 20px;
	font-weight: 450;
	letter-spacing: -0.03em;
	line-height: 1.3;
	margin: 18px 0 17px;
}

.story-card .author-avatar {
	height: 32px;
	width: 32px;
}

.load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 70px;
}

.load-more svg {
	fill: none;
	height: 15px;
	stroke: currentColor;
	stroke-width: 1.5;
	width: 15px;
}

.load-more.is-loading svg {
	animation: spin 800ms linear infinite;
	border: 1px solid currentColor;
	border-left-color: transparent;
	border-radius: 50%;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.empty-state {
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 470px;
	padding: 50px;
}

.empty-state h2 {
	font-size: 34px;
	letter-spacing: -0.045em;
	line-height: 1.1;
	margin: 0 0 12px;
}

.empty-state p {
	color: var(--muted);
	margin: 0 0 24px;
}

.empty-state--wide {
	align-items: center;
	min-height: 400px;
	text-align: center;
}

.text-link {
	color: var(--blue);
	margin-top: 26px;
}

/* Search */
.search-form label {
	align-items: center;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--line);
	border-radius: 999px;
	display: flex;
	gap: 8px;
	min-width: 230px;
	padding: 9px 14px;
}

.search-form svg {
	fill: none;
	height: 17px;
	stroke: var(--muted);
	stroke-width: 1.5;
	width: 17px;
}

.search-field {
	background: transparent;
	border: 0;
	color: var(--ink);
	outline: 0;
	width: 100%;
}

.search-field::placeholder {
	color: #9b9b9b;
}

/* Article */
.article-header {
	max-width: 1040px;
	padding-top: 120px;
	text-align: center;
}

.story-meta--center {
	justify-content: center;
	margin: 0 0 24px;
}

.article-header h1 {
	font-size: clamp(48px, 5.55vw, 72px);
	font-weight: 450;
	letter-spacing: -0.063em;
	line-height: 1.035;
	margin: 0 auto;
	max-width: 950px;
	text-wrap: balance;
}

.author-chip--center {
	justify-content: center;
	margin-top: 29px;
	text-align: left;
}

.author-chip--center .author-avatar {
	height: 42px;
	width: 42px;
}

.article-hero {
	margin-top: 72px;
	max-width: 1070px;
}

.article-hero img {
	aspect-ratio: 1.7 / 1;
	border-radius: var(--radius);
	object-fit: cover;
	width: 100%;
}

.article-layout {
	display: grid;
	gap: 68px;
	grid-template-columns: 84px minmax(0, var(--article)) 84px;
	justify-content: center;
	padding-bottom: 140px;
	padding-top: 94px;
}

.article-share {
	align-items: center;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 9px;
	position: sticky;
	top: 32px;
}

.article-share > span {
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 0.08em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.article-share a,
.article-share button {
	align-items: center;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	cursor: pointer;
	display: flex;
	font-size: 13px;
	height: 38px;
	justify-content: center;
	transition: border-color 150ms ease, color 150ms ease;
	width: 38px;
}

.article-share a:hover,
.article-share button:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.article-content {
	font-size: 18px;
	line-height: 1.72;
}

.article-content > :first-child {
	margin-top: 0;
}

.article-content p {
	margin: 0 0 26px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.article-content h2 {
	font-size: 36px;
	margin: 65px 0 24px;
}

.article-content h3 {
	font-size: 28px;
	margin: 56px 0 21px;
}

.article-content h4 {
	font-size: 22px;
	margin: 44px 0 18px;
}

.article-content ul,
.article-content ol {
	margin: 0 0 30px;
	padding-left: 24px;
}

.article-content li {
	margin-bottom: 10px;
	padding-left: 6px;
}

.article-content li::marker {
	color: var(--blue);
}

.article-content blockquote {
	background: #eef2ff;
	border: 0;
	border-radius: var(--radius);
	color: #2f4eb9;
	margin: 45px -34px;
	padding: 36px 40px;
}

.article-content blockquote p {
	font-size: 24px;
	font-weight: 450;
	letter-spacing: -0.03em;
	line-height: 1.38;
	margin-bottom: 14px;
}

.article-content blockquote cite {
	color: #4a62af;
	font-size: 14px;
	font-style: normal;
}

.article-content figure {
	margin: 52px 0;
}

.article-content figure img,
.article-content > img {
	border-radius: var(--radius-sm);
}

.article-content figcaption {
	color: var(--muted);
	font-size: 13px;
	margin-top: 10px;
	text-align: center;
}

.article-content a {
	color: inherit;
	text-decoration: none;
}

.article-content a:hover {
	color: #2f69ff;
}

.article-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 60px 0;
}

.page-links {
	border-top: 1px solid var(--line);
	margin-top: 55px;
	padding-top: 24px;
}

/* Listings */
.listing-header {
	padding: 120px 0 78px;
	text-align: center;
}

.listing-header .shell {
	max-width: 900px;
}

.listing-description {
	color: var(--muted);
	font-size: 17px;
	margin: 20px auto 0;
	max-width: 620px;
}

.listing-header .search-form {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.listing-header .search-form label {
	min-width: min(100%, 460px);
}

.navigation.pagination {
	margin-top: 75px;
}

.nav-links {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 8px;
	display: inline-flex;
	height: 42px;
	justify-content: center;
	min-width: 42px;
	padding-inline: 11px;
}

.page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--white);
}

/* CTA and footer */
.cta-section {
	background: transparent;
	padding: 31px 0;
}

.cta-card {
	align-items: center;
	background-color: #2f69ff;
	background-image: url("assets/images/Shape@4x.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: var(--radius-lg);
	color: var(--white);
	display: flex;
	flex-direction: column;
	isolation: isolate;
	justify-content: center;
	min-height: 485px;
	overflow: hidden;
	padding: 70px 24px;
	position: relative;
	text-align: center;
}

.cta-card::before,
.cta-card::after {
	display: none;
}

.cta-card::before {
	left: -250px;
	top: -270px;
}

.cta-card::after {
	bottom: -370px;
	right: -190px;
}

.cta-glow {
	display: none;
}

.cta-card h2 {
	font-size: clamp(40px, 4.15vw, 58px);
	font-weight: 450;
	letter-spacing: -0.055em;
	line-height: 1.05;
	margin: 0;
	max-width: 760px;
	text-wrap: balance;
}

.cta-card p {
	color: rgba(255, 255, 255, 0.82);
	margin: 22px auto 30px;
	max-width: 560px;
}

.site-footer {
	background: rgba(255, 255, 255, 0.86);
	padding: 82px 0 28px;
}

.footer-grid {
	display: grid;
	gap: 65px;
	grid-template-columns: 1.45fr 0.68fr 0.86fr 1.25fr;
}

.footer-brand > p,
.footer-newsletter > p {
	color: var(--muted);
	font-size: 14px;
	margin: 27px 0 0;
	max-width: 285px;
}

.footer-column,
.footer-newsletter {
	display: flex;
	flex-direction: column;
}

.footer-column h3,
.footer-newsletter h3 {
	font-size: 15px;
	font-weight: 550;
	margin: 0 0 21px;
}

.footer-menu li {
	margin: 0;
}

.footer-column a {
	color: var(--muted);
	display: inline-block;
	font-size: 14px;
	font-synthesis: none;
	font-weight: 400;
	margin-bottom: 12px;
	transition: color 150ms ease;
}

/* Standard and visual-builder pages */
.standard-page {
	padding-block: 100px;
}

.standard-page__content {
	margin-inline: auto;
	max-width: var(--article);
}

.standard-page__content h1 {
	font-size: clamp(42px, 6vw, 72px);
	letter-spacing: -0.055em;
	line-height: 1.02;
	margin: 0 0 42px;
}

.elementor-page-content,
.elementor-full-width-content {
	min-height: 1px;
	width: 100%;
}

.ncc-elementor-home-container,
.ncc-elementor-home-container > .e-con-inner {
	--container-max-width: 100%;
	--widgets-spacing: 0px;
	gap: 0;
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

.elementor-widget-ncc-hero-featured,
.elementor-widget-ncc-latest-stories {
	width: 100%;
}

.footer-column a:hover {
	color: #2f69ff;
}

.newsletter-form {
	display: block;
	margin-top: 27px;
	padding: 0;
	position: relative;
}

.newsletter-form input[type="email"] {
	background: #fff;
	border: 1px solid rgba(61, 61, 61, 0.12);
	border-radius: 12px;
	color: rgba(61, 61, 61, 0.6);
	font: inherit;
	height: 60px;
	min-width: 0;
	outline: 0;
	padding: 0 145px 0 18px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	width: 100%;
}

.newsletter-form input[type="email"]::placeholder {
	color: rgba(61, 61, 61, 0.6);
	opacity: 1;
}

.newsletter-form input[type="email"]:focus {
	border-color: rgba(47, 105, 255, 0.55);
	box-shadow: 0 0 0 3px rgba(47, 105, 255, 0.1);
}

.newsletter-form button {
	align-items: center;
	background: #2f69ff;
	border: 0;
	border-radius: 10px;
	box-shadow: inset 0 0 29px rgb(144, 195, 254);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	gap: 9px;
	height: 48px;
	padding: 0 17px;
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color 150ms ease;
}

.newsletter-form button:hover {
	background: #245ff0;
	color: #fff;
}

.newsletter-form__arrow {
	font-size: 17px;
	line-height: 1;
}

.honeypot {
	left: -9999px !important;
	position: absolute !important;
}

.form-message {
	font-size: 13px !important;
	margin-top: 12px !important;
}

.form-message--success {
	color: #19704c !important;
}

.form-message--error {
	color: #a43434 !important;
}

.footer-bottom {
	border-top: 1px solid var(--line-soft);
	color: var(--muted);
	font-size: 13px;
	margin-top: 68px;
	padding-top: 24px;
}

.footer-bottom p {
	margin: 0;
}

/* 404 */
.error-page {
	align-items: center;
	display: flex;
	min-height: 690px;
}

.error-page__inner {
	text-align: center;
}

.error-code {
	color: var(--blue);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin: 0 0 18px;
}

.error-page h1 {
	font-size: clamp(45px, 5vw, 66px);
	font-weight: 450;
	letter-spacing: -0.06em;
	line-height: 1.05;
	margin: 0 auto;
	max-width: 760px;
}

.error-page h1 + p {
	color: var(--muted);
	margin: 22px 0 30px;
}

/* Motion */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 980px) {
	.nav-shell {
		grid-template-columns: 160px 1fr 120px;
	}

	.site-navigation {
		gap: 24px;
	}

	.featured-layout {
		grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
	}

	.promo-story {
		gap: 13px;
		grid-template-columns: 105px 1fr;
		min-height: 105px;
	}

	.promo-story__image {
		min-height: 90px;
	}

	.promo-story h3 {
		font-size: 15px;
	}

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

	.footer-grid {
		grid-template-columns: 1.4fr 0.8fr 0.9fr;
	}

	.footer-newsletter {
		grid-column: 1 / -1;
		max-width: 480px;
	}

	.article-layout {
		grid-template-columns: 60px minmax(0, var(--article));
	}
}

@media (max-width: 760px) {
	:root {
		--radius: 13px;
	}

	.shell {
		padding-inline: 18px;
	}

	.site-header {
		padding-top: 0;
		top: 12px;
	}

	.nav-shell {
		border-radius: 12px;
		grid-template-columns: 1fr auto;
		min-height: 58px;
		padding: 0 8px 0 15px;
	}

	.menu-toggle {
		display: block;
		grid-column: 2;
		grid-row: 1;
	}

	.site-navigation {
		align-items: stretch;
		background: rgba(255, 255, 255, 0.98);
		border: 1px solid var(--line-soft);
		border-radius: 12px;
		box-shadow: var(--shadow);
		display: none;
		height: 275px;
		left: 0;
		max-height: calc(100vh - 90px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 12px;
		position: absolute;
		right: 0;
		top: calc(100% + 8px);
	}

	.site-navigation.is-open {
		display: flex;
	}

	.primary-menu {
		align-items: stretch;
		display: flex;
		flex-direction: column;
		gap: 12px;
		width: 100%;
	}

	.primary-menu > .menu-item > a,
	.primary-menu .sub-menu a {
		border: 0;
		border-bottom: 0;
		border-radius: 8px;
		font-size: 17px;
		padding: 7px 10px;
		text-align: left;
		width: 100%;
	}

	.primary-menu > .menu-item > a:hover,
	.primary-menu > .menu-item > a:focus-visible,
	.primary-menu .sub-menu a:hover,
	.primary-menu .sub-menu a:focus-visible {
		background: #f1f4ff;
		color: #2f69ff;
		outline: 0;
	}

	.primary-menu > .menu-item > a:active,
	.primary-menu .sub-menu a:active {
		background: #e5ebff;
		color: #2f69ff;
	}

	.primary-menu > .menu-item-has-children > a {
		display: none;
	}

	.primary-menu .sub-menu {
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		display: flex;
		flex-direction: column;
		gap: 12px;
		left: 0;
		min-width: 0;
		opacity: 1;
		padding: 0;
		pointer-events: auto;
		position: relative;
		top: auto;
		transform: none;
		width: 100%;
	}

	.primary-menu .sub-menu::before {
		display: none;
	}

	.header-cta {
		display: none;
	}

	.blog-intro {
		padding: 92px 0 48px;
	}

	.blog-intro h1 {
		font-size: clamp(45px, 13vw, 60px);
	}

	.blog-intro h1 + p {
		font-size: 16px;
	}

	.featured-section {
		padding-bottom: 80px;
	}

	.featured-layout {
		display: block;
	}

	.featured-story__image {
		aspect-ratio: 1.22 / 1;
	}

	.featured-story h2 {
		font-size: 27px;
	}

	.promo-list {
		gap: 12px;
		margin-top: 46px;
	}

	.promo-story {
		grid-template-columns: 118px 1fr;
		min-height: 110px;
	}

	.promo-story__image {
		min-height: 94px;
	}

	.promo-story h3 {
		font-size: 16px;
	}

	.latest-section,
	.listing-section {
		padding: 80px 0 95px;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 25px;
		margin-bottom: 38px;
	}

	.section-heading .search-form,
	.section-heading .search-form label {
		width: 100%;
	}

	.stories-grid {
		gap: 48px;
		grid-template-columns: 1fr;
	}

	.story-card__image {
		aspect-ratio: 1.25 / 1;
	}

	.story-card h3 {
		font-size: 22px;
	}

	.article-header {
		padding-top: 92px;
	}

	.article-header h1 {
		font-size: clamp(43px, 12.5vw, 59px);
	}

	.article-hero {
		margin-top: 52px;
	}

	.article-hero img {
		aspect-ratio: 1.25 / 1;
	}

	.article-layout {
		display: block;
		padding-bottom: 95px;
		padding-top: 65px;
	}

	.article-share {
		flex-direction: row;
		margin-bottom: 42px;
		position: static;
	}

	.article-share > span {
		margin: 0 5px 0 0;
	}

	.article-content {
		font-size: 17px;
	}

	.article-content h2 {
		font-size: 31px;
	}

	.article-content h3 {
		font-size: 26px;
	}

	.article-content blockquote {
		margin-inline: 0;
		padding: 28px;
	}

	.article-content blockquote p {
		font-size: 21px;
	}

	.listing-header {
		padding: 95px 0 62px;
	}

	.cta-section {
		padding: 18px 0;
	}

	.cta-card {
		border-radius: 18px;
		min-height: 430px;
		padding-inline: 20px;
	}

	.cta-card h2 {
		font-size: 42px;
	}

	.site-footer {
		padding-top: 65px;
	}

	.footer-grid {
		gap: 46px 28px;
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand,
	.footer-newsletter {
		grid-column: 1 / -1;
	}

	.footer-brand > p {
		max-width: 420px;
	}
}

@media (max-width: 430px) {
	.brand-name {
		font-size: 18px;
	}

	.blog-intro h1 {
		font-size: 43px;
	}

	.promo-story {
		grid-template-columns: 96px 1fr;
	}

	.promo-story h3 {
		font-size: 15px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.footer-brand,
	.footer-newsletter {
		grid-column: auto;
	}
}
