/*
Theme Name: My Random 603
Theme URI: https://myrandom603.com/
Author: Andrew Loranger
Description: Custom block theme for My Random 603 — projects, tech, back roads, old machines, and random detours.
Version: 0.5.0
Requires at least: 7.1
Text Domain: mr603
*/

html { scroll-behavior: smooth; }

body { text-rendering: optimizeLegibility; }

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

a:hover { text-decoration-thickness: 0.12em; }

.mr603-site-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mr603-site-header .wp-block-site-title a,
.mr603-site-header .wp-block-navigation a {
	text-decoration: none;
}

.mr603-site-header .wp-block-site-title {
	letter-spacing: -0.035em;
}

.mr603-site-footer {
	border-top: 4px solid var(--wp--preset--color--cedar);
}

.mr603-eyebrow,
.mr603-meta-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mr603-hero {
	overflow: hidden;
	position: relative;
}

.mr603-hero::after {
	background:
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 32px 32px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.mr603-hero > * {
	position: relative;
	z-index: 1;
}

.mr603-card-grid > .wp-block-post-template {
	gap: var(--wp--preset--spacing--40);
}

.mr603-card-grid .wp-block-post {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(21, 25, 28, 0.06);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.mr603-card-grid .wp-block-post:hover {
	box-shadow: 0 14px 34px rgba(21, 25, 28, 0.11);
	transform: translateY(-2px);
}

.mr603-card-grid .wp-block-post-featured-image {
	margin: 0;
}

.mr603-card-grid .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	display: block;
	object-fit: cover;
	width: 100%;
}

.mr603-card-body {
	flex: 1;
	padding: var(--wp--preset--spacing--40);
}

.mr603-card-body .wp-block-post-title {
	margin-top: 0;
}

.mr603-topic-list a,
.taxonomy-mr603_topic a {
	color: var(--wp--preset--color--moss);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
}

.mr603-section-rule {
	border-top: 1px solid var(--wp--preset--color--line);
}

.mr603-single-hero .wp-block-post-featured-image img {
	border-radius: 16px;
	max-height: 720px;
	object-fit: cover;
	width: 100%;
}

.mr603-details-card,
.mr603-relationships-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(21, 25, 28, 0.05);
	margin-block: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--40);
}

.mr603-details-card__title,
.mr603-relationships-card__title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.08em;
	margin: 0 0 var(--wp--preset--spacing--30);
	text-transform: uppercase;
}

.mr603-spec-grid {
	display: grid;
	gap: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.mr603-spec {
	border-top: 1px solid var(--wp--preset--color--line);
	padding: 0.9rem 0;
}

.mr603-spec:nth-child(odd) { padding-right: 1.5rem; }
.mr603-spec:nth-child(even) { padding-left: 1.5rem; }

.mr603-spec dt {
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 0.25rem;
	text-transform: uppercase;
}

.mr603-spec dd {
	font-weight: 650;
	margin: 0;
}

.mr603-status {
	align-items: center;
	display: inline-flex;
	gap: 0.45em;
}

.mr603-status::before {
	background: var(--wp--preset--color--moss);
	border-radius: 99px;
	content: "";
	height: 0.55em;
	width: 0.55em;
}

.mr603-relationship-list {
	display: grid;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mr603-relationship-list li {
	align-items: baseline;
	border-top: 1px solid var(--wp--preset--color--line);
	display: grid;
	gap: 0.25rem 1rem;
	grid-template-columns: minmax(8rem, 0.35fr) 1fr;
	padding-top: 0.75rem;
}

.mr603-relationship-label {
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.mr603-relationship-target a { font-weight: 700; }

.mr603-relationship-type {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--xs);
	margin-left: 0.4rem;
}

.wp-block-button__link {
	transition: transform 140ms ease, box-shadow 140ms ease;
}

.wp-block-button__link:hover {
	box-shadow: 0 6px 18px rgba(21, 25, 28, 0.16);
	transform: translateY(-1px);
}

.mr603-archive-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

@media (max-width: 700px) {
	.mr603-spec-grid { grid-template-columns: 1fr; }

	.mr603-spec:nth-child(odd),
	.mr603-spec:nth-child(even) {
		padding-left: 0;
		padding-right: 0;
	}

	.mr603-relationship-list li {
		grid-template-columns: 1fr;
	}

	.mr603-site-header .wp-block-site-title {
		font-size: 1.25rem;
	}
}


/* ==========================================================================
   v0.2.0 — site shell and identity
   ========================================================================== */

.mr603-site-header {
	background: rgba(21, 25, 28, 0.96);
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.admin-bar .mr603-site-header {
	top: 32px;
}

.mr603-brand-lockup {
	gap: 0.8rem;
}

.mr603-brand-badge {
	align-items: center;
	background: var(--wp--preset--color--cedar);
	border-radius: 7px;
	color: var(--wp--preset--color--white);
	display: inline-flex;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	font-weight: 800;
	height: 2.25rem;
	justify-content: center;
	letter-spacing: 0.08em;
	line-height: 1;
	margin: 0;
	min-width: 3.25rem;
	padding-inline: 0.55rem;
	text-transform: uppercase;
}

.mr603-primary-nav .wp-block-navigation-item__content {
	position: relative;
}

.mr603-primary-nav .wp-block-navigation-item__content::after {
	background: var(--wp--preset--color--cedar);
	bottom: -0.38rem;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 150ms ease;
	width: 100%;
}

.mr603-primary-nav .wp-block-navigation-item__content:hover::after,
.mr603-primary-nav .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

.mr603-hero {
	min-height: min(720px, 76vh);
}

.mr603-hero::before {
	background:
		repeating-radial-gradient(
			ellipse at 82% 48%,
			transparent 0,
			transparent 28px,
			rgba(230, 222, 208, 0.08) 30px,
			transparent 33px,
			transparent 58px
		);
	content: "";
	inset: -15% -5% -15% 48%;
	pointer-events: none;
	position: absolute;
	transform: rotate(-8deg);
}

.mr603-hero::after {
	background:
		linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
	background-size: 32px 32px;
}

.mr603-hero-layout {
	gap: clamp(2.5rem, 7vw, 7rem);
}

.mr603-hero-copy {
	max-width: 790px;
}

.mr603-hero-copy .wp-block-heading {
	margin-bottom: 1.35rem;
}

.mr603-hero-copy > p:not(.mr603-eyebrow) {
	max-width: 700px;
}

.mr603-hero-mark {
	background:
		linear-gradient(145deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025));
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 20px;
	box-shadow: 0 24px 70px rgba(0,0,0,0.22);
	min-width: min(360px, 100%);
	overflow: hidden;
	padding: clamp(1.5rem, 4vw, 2.6rem);
	position: relative;
}

.mr603-hero-mark::before {
	background: var(--wp--preset--color--cedar);
	content: "";
	height: 6px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.mr603-hero-number {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--mono);
	font-size: clamp(5.4rem, 11vw, 9rem);
	font-weight: 900;
	letter-spacing: -0.09em;
	line-height: 0.8;
	margin: 0 0 2rem;
}

.mr603-hero-mark-label {
	color: var(--wp--preset--color--sand);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	margin-bottom: 0.55rem;
	text-transform: uppercase;
}

.mr603-hero-manifesto {
	border-top: 1px solid rgba(255,255,255,0.13);
	color: var(--wp--preset--color--white);
	display: grid;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.65rem 1rem;
	grid-template-columns: 1fr 1fr;
	letter-spacing: 0.06em;
	margin: 1.35rem 0 0;
	padding-top: 1.25rem;
	text-transform: uppercase;
}

.mr603-hero-manifesto p::before {
	color: var(--wp--preset--color--cedar);
	content: "+";
	margin-right: 0.45rem;
}

.mr603-section-heading {
	align-items: end;
	gap: 1.5rem;
	margin-bottom: var(--wp--preset--spacing--40);
}

.mr603-section-heading h2 {
	margin-bottom: 0;
}

.mr603-section-link {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.mr603-section-link::after {
	content: " →";
}

.mr603-site-footer .mr603-footer-nav a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.mr603-site-footer .mr603-footer-nav a:hover {
	color: var(--wp--preset--color--sand);
}

@media (max-width: 980px) {
	.mr603-hero {
		min-height: auto;
	}

	.mr603-hero-layout {
		align-items: stretch !important;
		flex-direction: column;
	}

	.mr603-hero-mark {
		max-width: 520px;
	}

	.mr603-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 2rem;
	}
}

@media (max-width: 782px) {
	.admin-bar .mr603-site-header {
		top: 46px;
	}
}

@media (max-width: 700px) {
	.mr603-site-header {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	.mr603-brand-badge {
		display: none;
	}

	.mr603-hero-number {
		font-size: clamp(5rem, 28vw, 8rem);
	}

	.mr603-section-heading {
		align-items: start;
		flex-direction: column;
		gap: 0.45rem;
	}
}


/* ==========================================================================
   v0.3.0 — homepage hierarchy + richer content cards
   ========================================================================== */

.mr603-section-intro {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--md);
	margin-top: -0.25rem;
	max-width: 760px;
}

.has-ink-background-color .mr603-section-intro {
	color: var(--wp--preset--color--sand);
}

.mr603-card-meta {
	align-items: center;
	color: var(--wp--preset--color--slate);
	display: flex;
	flex-wrap: wrap;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 650;
	gap: 0.4rem;
	letter-spacing: 0.035em;
	line-height: 1.35;
	margin: 0 0 0.65rem;
	text-transform: uppercase;
}

.mr603-card-meta__status {
	color: var(--wp--preset--color--moss);
	font-weight: 800;
}

.mr603-card-meta__status::before {
	background: currentColor;
	border-radius: 99px;
	content: "";
	display: inline-block;
	height: 0.48em;
	margin-right: 0.45rem;
	vertical-align: 0.08em;
	width: 0.48em;
}

.mr603-card-meta__dot {
	color: var(--wp--preset--color--line);
}

.has-ink-background-color .mr603-card-meta {
	color: var(--wp--preset--color--sand);
}

.has-ink-background-color .mr603-card-meta__status {
	color: #A7B39A;
}

.has-ink-background-color .mr603-card-meta__dot {
	color: var(--wp--preset--color--slate);
}

.mr603-home-projects .wp-block-post:first-child {
	grid-column: span 2;
}

.mr603-home-projects .wp-block-post:first-child .wp-block-post-featured-image img {
	aspect-ratio: 2 / 1;
}

.mr603-home-projects .wp-block-post:first-child .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xl);
}

.mr603-home-garage .wp-block-post-title,
.mr603-home-projects .wp-block-post-title {
	margin-bottom: 0.55rem;
}

@media (max-width: 900px) {
	.mr603-home-projects .wp-block-post:first-child {
		grid-column: span 1;
	}

	.mr603-home-projects .wp-block-post:first-child .wp-block-post-featured-image img {
		aspect-ratio: 16 / 9;
	}
}


/* ==========================================================================
   v0.4.0 — archive and single-content polish
   ========================================================================== */

.mr603-archive-hero {
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin-bottom: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
	position: relative;
}

.mr603-archive-hero::after {
	background: var(--wp--preset--color--cedar);
	bottom: -1px;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	width: 84px;
}

.mr603-archive-hero--garage::after {
	background: var(--wp--preset--color--slate);
}

.mr603-archive-hero--dev::after {
	background: var(--wp--preset--color--moss);
}

.mr603-archive-hero--detours::after {
	background: var(--wp--preset--color--cedar);
}

.mr603-archive-description {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--lg);
	max-width: 820px;
}

.mr603-archive-grid .wp-block-post {
	position: relative;
}

.mr603-archive-grid .mr603-card-meta {
	margin-bottom: 0.8rem;
}

.mr603-archive-grid .wp-block-post-excerpt {
	color: var(--wp--preset--color--slate);
}

.mr603-single-shell {
	padding-top: var(--wp--preset--spacing--60);
}

.mr603-section-identity {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.mr603-section-identity__eyebrow {
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mr603-section-identity__eyebrow::after {
	color: var(--wp--preset--color--line);
	content: "/";
	margin-left: 0.65rem;
}

.mr603-section-identity a {
	color: var(--wp--preset--color--cedar);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.mr603-single-title {
	margin-bottom: var(--wp--preset--spacing--30);
}

.mr603-single-featured {
	margin-bottom: var(--wp--preset--spacing--50);
}

.mr603-single-featured img {
	box-shadow: 0 18px 48px rgba(21, 25, 28, 0.10);
}

.mr603-single-content {
	margin-top: var(--wp--preset--spacing--50);
}

.mr603-details-card,
.mr603-relationships-card {
	border-top: 4px solid var(--wp--preset--color--cedar);
}

.single-mr603_vehicle .mr603-details-card,
.single-mr603_vehicle .mr603-relationships-card {
	border-top-color: var(--wp--preset--color--slate);
}

.single-mr603_dev .mr603-details-card,
.single-mr603_dev .mr603-relationships-card {
	border-top-color: var(--wp--preset--color--moss);
}

.mr603-relationships-card__title::before {
	content: "↔ ";
	color: var(--wp--preset--color--cedar);
}

.mr603-prev-next {
	border-top: 1px solid var(--wp--preset--color--line);
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr 1fr;
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--40);
}

.mr603-prev-next__item {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	color: var(--wp--preset--color--ink);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: 112px;
	padding: 1.1rem 1.2rem;
	text-decoration: none;
	transition: transform 140ms ease, box-shadow 140ms ease;
}

.mr603-prev-next__item:not(.mr603-prev-next__empty):hover {
	box-shadow: 0 10px 24px rgba(21, 25, 28, 0.08);
	transform: translateY(-2px);
}

.mr603-prev-next__next {
	text-align: right;
}

.mr603-prev-next__label {
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mr603-prev-next strong {
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.25;
}

@media (max-width: 700px) {
	.mr603-prev-next {
		grid-template-columns: 1fr;
	}

	.mr603-prev-next__empty {
		display: none;
	}

	.mr603-prev-next__next {
		text-align: left;
	}
}


/* ==========================================================================
   v0.5.0 — blog, topics, search, and discovery
   ========================================================================== */

.mr603-header-search {
	flex: 0 0 auto;
	margin-left: 0.15rem;
}

.mr603-header-search .wp-block-search__button {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 7px;
	color: var(--wp--preset--color--white);
	margin: 0;
	padding: 0.52rem;
}

.mr603-header-search .wp-block-search__button:hover {
	background: rgba(255,255,255,0.08);
}

.mr603-blog-header,
.mr603-topic-hero {
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin-bottom: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
	position: relative;
}

.mr603-blog-header::after,
.mr603-topic-hero::after {
	background: var(--wp--preset--color--cedar);
	bottom: -1px;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	width: 84px;
}

.mr603-blog-deck {
	max-width: 820px;
}

.mr603-blog-search,
.mr603-search-large {
	margin-top: var(--wp--preset--spacing--40);
	max-width: 720px;
}

.mr603-blog-search .wp-block-search__input,
.mr603-search-large .wp-block-search__input {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px 0 0 8px;
	min-height: 48px;
	padding-inline: 1rem;
}

.mr603-topic-browser {
	margin-top: var(--wp--preset--spacing--40);
}

.mr603-topic-browser--archive {
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin-bottom: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--40);
}

.mr603-topic-directory,
.mr603-topic-directory ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mr603-topic-directory li {
	margin: 0;
}

.mr603-topic-directory a {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	display: inline-flex;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 750;
	letter-spacing: 0.035em;
	padding: 0.48rem 0.78rem;
	text-decoration: none;
	text-transform: uppercase;
}

.mr603-topic-directory a:hover {
	border-color: var(--wp--preset--color--cedar);
	color: var(--wp--preset--color--cedar);
}

.mr603-blog-editorial > .wp-block-post-template {
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mr603-blog-editorial .wp-block-post {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	overflow: hidden;
}

.mr603-blog-editorial .wp-block-post:first-child {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.mr603-blog-editorial .wp-block-post:first-child .wp-block-post-featured-image {
	margin: 0;
	min-height: 100%;
}

.mr603-blog-editorial .wp-block-post:first-child .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

.mr603-blog-editorial .wp-block-post:first-child .wp-block-post-featured-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mr603-blog-editorial .wp-block-post:not(:first-child) .wp-block-post-featured-image {
	margin: 0;
}

.mr603-blog-editorial .wp-block-post-featured-image img {
	display: block;
	object-fit: cover;
	width: 100%;
}

.mr603-blog-card-body {
	padding: var(--wp--preset--spacing--40);
}

.mr603-blog-editorial .wp-block-post:first-child .mr603-blog-card-body {
	align-self: center;
	padding: var(--wp--preset--spacing--50);
}

.mr603-blog-editorial .wp-block-post:first-child .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xl);
}

.mr603-type-badge {
	background: var(--wp--preset--color--sand);
	border-radius: 999px;
	color: var(--wp--preset--color--slate);
	display: inline-flex;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	margin-bottom: 0.7rem;
	padding: 0.35rem 0.58rem;
	text-transform: uppercase;
}

.mr603-topic-count-row {
	align-items: center;
	gap: 0.7rem;
	margin-top: 1rem;
}

.mr603-topic-count-row .wp-block-term-count {
	color: var(--wp--preset--color--cedar);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 800;
}

.mr603-search-page .wp-block-query-title {
	margin-bottom: var(--wp--preset--spacing--30);
}

.mr603-search-results,
.mr603-topic-results {
	margin-top: var(--wp--preset--spacing--50);
}

.mr603-topic-related {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--50);
}

.mr603-topic-related__heading {
	align-items: end;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin-bottom: var(--wp--preset--spacing--40);
}

.mr603-topic-related__heading h2 {
	margin: 0.25rem 0 0;
}

.mr603-topic-related__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: flex-end;
}

.mr603-topic-related__topics a {
	background: var(--wp--preset--color--sand);
	border-radius: 999px;
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.68rem;
	font-weight: 750;
	padding: 0.4rem 0.62rem;
	text-decoration: none;
	text-transform: uppercase;
}

.mr603-discovery-grid {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mr603-discovery-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 140ms ease, transform 140ms ease;
}

.mr603-discovery-card:hover {
	box-shadow: 0 12px 28px rgba(21,25,28,0.08);
	transform: translateY(-2px);
}

.mr603-discovery-card__image {
	background: var(--wp--preset--color--ink);
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.mr603-discovery-card__image img {
	aspect-ratio: 16 / 9;
	display: block;
	object-fit: cover;
	width: 100%;
}

.mr603-discovery-card__placeholder {
	align-items: center;
	aspect-ratio: 16 / 9;
	color: var(--wp--preset--color--sand);
	display: flex;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 900;
	justify-content: center;
	letter-spacing: -0.05em;
}

.mr603-discovery-card__body {
	padding: var(--wp--preset--spacing--40);
}

.mr603-discovery-card h3 {
	font-size: var(--wp--preset--font-size--lg);
	margin: 0 0 0.65rem;
}

.mr603-discovery-card h3 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.mr603-discovery-card p {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--sm);
	margin-bottom: 0;
}

@media (max-width: 980px) {
	.mr603-header-search {
		display: none;
	}

	.mr603-blog-editorial .wp-block-post:first-child {
		display: block;
	}

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

@media (max-width: 700px) {
	.mr603-blog-editorial > .wp-block-post-template,
	.mr603-discovery-grid {
		grid-template-columns: 1fr;
	}

	.mr603-topic-related__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.8rem;
	}

	.mr603-topic-related__topics {
		justify-content: flex-start;
	}
}
