/* Latched Mama blog: layout and component styles. Colors, fonts and sizes come from theme.json. */

:root {
	--lm-cream: #f8f4ef;
	--lm-radius: 4px;
	--lm-radius-button: 6px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--coral-ink);
	outline-offset: 2px;
}

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

.lm-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
}

.lm-header__bar {
	min-height: 68px;
	gap: 1rem;
}

.lm-header__right {
	gap: 1.25rem;
}

.lm-logo {
	display: block;
	line-height: 0;
	flex-shrink: 0;
}

.lm-logo img {
	width: auto;
	height: 46px;
}

.lm-nav a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.lm-nav a:hover {
	color: var(--wp--preset--color--coral-ink);
}

.lm-nav .wp-block-navigation__container {
	gap: 1.25rem;
}

/* Seven topic links need ~1024px; tablets get the menu button too. */
@media (min-width: 600px) and (max-width: 1023px) {
	.lm-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.lm-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.lm-header__right .lm-nav {
		order: 3;
	}
}

/* Header search: a disclosure (works without scripts); assets/js/search.js adds focus and Escape. */
.lm-search {
	position: relative;
}

.lm-search__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--lm-radius);
	color: var(--wp--preset--color--contrast);
	list-style: none;
	cursor: pointer;
}

.lm-search__toggle::-webkit-details-marker {
	display: none;
}

.lm-search__toggle:hover,
.lm-search[open] .lm-search__toggle {
	color: var(--wp--preset--color--coral-ink);
}

.lm-search__toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.lm-search__form {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 20;
	display: flex;
	gap: 0.5rem;
	width: min(420px, calc(100vw - 32px));
	padding: 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--lm-radius);
	background: var(--wp--preset--color--base);
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
}

.lm-search__form input {
	flex: 1;
	min-width: 0;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--lm-radius);
	font: inherit;
	font-size: 16px;
}

.lm-search__form button {
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: var(--lm-radius-button);
	background: var(--wp--preset--color--coral-ink);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.lm-search__form button:hover {
	background: var(--wp--preset--color--coral-deep);
}

.lm-header__shop .wp-block-button__link {
	padding: 0.5rem 1.15rem;
	font-size: 15px;
	white-space: nowrap;
}

.lm-header__bar {
	position: relative;
}

@media (max-width: 599px) {
	.lm-header__bar {
		min-height: 58px;
	}
	.lm-logo img {
		height: 36px;
	}
	.lm-header__right {
		gap: 0.6rem;
	}
	/* Hamburger last, after search and Shop. */
	.lm-header__right .lm-nav {
		order: 3;
	}
}

/* The narrowest phones: the logo shrinks to the room left by search, Shop and the menu. */
@media (max-width: 379px) {
	.lm-header__bar .lm-logo {
		flex-shrink: 1;
		min-width: 0;
	}
	.lm-header__bar .lm-logo img {
		height: auto;
		max-width: 100%;
	}
	.lm-header__right {
		gap: 0.4rem;
	}
}

@media (max-width: 599px) {
	/* On phones the opened search spans the header, under the bar. */
	.lm-search {
		position: static;
	}
	.lm-search__form {
		top: 100%;
		right: 0;
		left: 0;
		width: auto;
	}
}

/* Mobile menu overlay */
.lm-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem 16px;
}

.lm-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
}

.lm-nav.items-justified-right .is-menu-open .wp-block-navigation__responsive-container-content,
.lm-nav.items-justified-right .is-menu-open .wp-block-navigation__container,
.lm-nav.items-justified-right .is-menu-open .wp-block-navigation-item {
	align-items: flex-start;
	justify-content: flex-start;
}

.lm-nav .is-menu-open .wp-block-navigation__container {
	gap: 1rem;
	font-family: var(--wp--preset--font-family--playfair);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1.5px solid var(--wp--preset--color--contrast);
	padding: calc(0.65rem - 1.5px) calc(1.4rem - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ---------- Page frame ---------- */

/* 24px under the header (no block gap there); 48px above the footer, with the 1.25rem block gap. */
.lm-main {
	margin-top: 0;
	padding-top: 1.5rem;
	padding-bottom: 1.75rem;
}

.lm-intro {
	margin-bottom: 2rem;
}

.lm-intro h1 {
	margin-bottom: 0.5rem;
}

/* ---------- Single post ---------- */

.lm-article {
	max-width: 680px;
	margin-inline: auto;
}

.lm-aside {
	display: none;
}

@media (min-width: 1100px) {
	.lm-single {
		display: grid;
		grid-template-columns: minmax(0, 680px) 300px;
		column-gap: 64px;
		justify-content: center;
		align-items: start;
	}
	.lm-article {
		margin-inline: 0;
	}
	.lm-aside {
		display: block;
		position: sticky;
		top: 1.5rem;
		margin-top: 0;
	}
}

.lm-article__title {
	margin-bottom: 0;
	text-wrap: balance;
}

.lm-article .lm-byline {
	margin-top: 1rem;
}

.lm-article__image {
	margin-top: 1.5rem;
}

.lm-article__image img {
	border-radius: var(--lm-radius);
}

/* Byline */

.lm-byline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--wp--preset--font-size--small);
}

.lm-byline__text {
	margin: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.lm-byline__by {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.lm-byline__by a {
	color: inherit;
	text-decoration: none;
}

.lm-byline__by a:hover {
	color: var(--wp--preset--color--coral-ink);
	text-decoration: underline;
}

.lm-byline__meta {
	color: var(--wp--preset--color--taupe-ink);
}

.lm-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--coral-ink);
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 18px;
	line-height: 1;
}

.lm-avatar--lg {
	width: 64px;
	height: 64px;
	font-size: 26px;
}

/* Article body, including posts written in the old classic editor */

.lm-article__content {
	margin-top: 1.75rem;
	overflow-wrap: break-word;
}

.lm-article__content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.lm-article__content h2 {
	margin-top: 2.25rem;
}

.lm-article__content h3,
.lm-article__content h4 {
	margin-top: 1.75rem;
}

.lm-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--lm-radius);
}

.lm-article__content ul,
.lm-article__content ol {
	padding-left: 1.25em;
}

.lm-article__content li + li {
	margin-top: 0.35em;
}

.lm-article__content hr {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	margin-block: 2rem;
}

.lm-article__content blockquote:not([class*="wp-block"]) {
	margin-inline: 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--wp--preset--color--coral);
	font-style: italic;
}

.lm-article__content iframe {
	max-width: 100%;
}

/* Old pasted YouTube/Vimeo embeds have a fixed 500x281 size. */
.lm-article__content iframe[src*="youtube.com/embed"],
.lm-article__content iframe[src*="youtube-nocookie.com/embed"],
.lm-article__content iframe[src*="player.vimeo.com"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* YouTube videos: the thumbnail with a play button (inc/video.php), then the player (assets/js/video.js). */
.lm-video {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin-block: 1.5rem;
	overflow: hidden;
	background: #000;
	border: 0;
	border-radius: var(--lm-radius);
}

/* YouTube's always-available thumbnail is 4:3 with black bars; cropped to 16:9, a sliver of bar can
   remain at the edges, so it's zoomed slightly. */
.lm-video .lm-video__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
	transform: scale(1.03);
}

.lm-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.lm-video__play-bg {
	fill: #212121;
	fill-opacity: 0.85;
	transition: fill 0.15s, fill-opacity 0.15s;
}

.lm-video:hover .lm-video__play-bg,
.lm-video:focus-visible .lm-video__play-bg {
	fill: var(--wp--preset--color--coral-ink);
	fill-opacity: 1;
}

.lm-video:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}

/* Inside an embed block, whose wrapper keeps the 16:9 space itself. */
.wp-has-aspect-ratio .wp-block-embed__wrapper .lm-video {
	position: absolute;
	inset: 0;
	height: 100%;
	margin: 0;
}

.lm-article__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.lm-article__content th,
.lm-article__content td {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.5rem 0.4rem;
	text-align: left;
}

.lm-article__content .aligncenter {
	display: block;
	margin-inline: auto;
}

.lm-article__content .wp-caption {
	max-width: 100%;
}

.lm-article__content .wp-caption-text,
.lm-article__content figcaption {
	margin-top: 0.4rem;
	color: var(--wp--preset--color--taupe-ink);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

/* Classic-editor floats: side by side on wider screens, stacked on phones. */
@media (min-width: 640px) {
	.lm-article__content .alignright {
		float: right;
		max-width: 45%;
		margin: 0.35rem 0 1rem 1.5rem;
	}
	.lm-article__content .alignleft {
		float: left;
		max-width: 45%;
		margin: 0.35rem 1.5rem 1rem 0;
	}
}

@media (max-width: 639px) {
	.lm-article__content .alignright,
	.lm-article__content .alignleft {
		float: none;
		display: block;
		width: 100% !important;
		max-width: 100%;
		height: auto;
		margin: 1.25rem 0;
	}
}

.lm-article__content::after {
	content: "";
	display: table;
	clear: both;
}

/* ---------- Shop strip (after the article) ---------- */

.lm-shop-strip {
	box-sizing: border-box;
	margin-top: 2.75rem;
	padding: 1.15rem 1.15rem 1.25rem;
	background: var(--lm-cream);
	border-radius: var(--lm-radius);
}

.lm-shop-strip__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.lm-shop-strip__title {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--playfair);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.25;
}

.lm-shop-strip__all {
	flex-shrink: 0;
	font-size: var(--wp--preset--font-size--small);
}

.lm-shop-strip__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.lm-shop-strip__items {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.lm-product {
	display: flex;
	flex-direction: column;
	color: var(--wp--preset--color--contrast);
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.lm-product__img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin-bottom: 0.45rem;
	border-radius: var(--lm-radius);
	background: var(--wp--preset--color--base);
}

.lm-product__title {
	font-weight: 500;
}

.lm-product:hover .lm-product__title {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.lm-product__price {
	margin-top: 0.15rem;
	color: var(--wp--preset--color--taupe-ink);
}

.lm-product__price s {
	margin-right: 0.25rem;
}

/* ---------- Promo card (side rail) ---------- */

.lm-promo {
	overflow: hidden;
	background: var(--lm-cream);
	border-radius: var(--lm-radius);
}

.lm-promo__link {
	display: block;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.lm-promo__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.lm-promo__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1rem 1.1rem 1.25rem;
}

.lm-promo__eyebrow {
	color: var(--wp--preset--color--taupe-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lm-promo__title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 22px;
	line-height: 1.2;
}

.lm-promo__text {
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	line-height: 1.5;
}

.lm-promo__button {
	align-self: flex-start;
	margin-top: 0.4rem;
	padding: 0.55rem 1.05rem;
	background: var(--wp--preset--color--coral-ink);
	border-radius: var(--lm-radius-button);
	color: var(--wp--preset--color--base);
	font-size: 15px;
	font-weight: 600;
}

.lm-promo__link:hover .lm-promo__button {
	background: var(--wp--preset--color--coral-deep);
}

/* ---------- Author box ---------- */

.lm-author-box {
	display: flex;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.lm-author-box__name {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.lm-author-box__name a {
	color: inherit;
}

.lm-author-box__bio {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.lm-author-box__bio p {
	margin: 0.3rem 0 0;
}

.lm-author-box__more {
	margin: 0.2rem 0 0;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Related posts ---------- */

.lm-related {
	margin-top: 2.75rem;
}

.lm-related__title {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--large);
}

.lm-related__items {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-card {
	display: block;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.lm-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin-bottom: 0.6rem;
	border-radius: var(--lm-radius);
}

.lm-card__img--empty {
	background: var(--wp--preset--color--sand) url(../img/heart-180.png) center / auto 38% no-repeat;
}

.lm-noimg {
	margin: 0;
}

.lm-noimg .lm-card__img {
	margin-bottom: 0;
}

.lm-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.lm-card__topic {
	color: var(--wp--preset--color--coral-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.lm-card__title {
	display: block;
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 18px;
	line-height: 1.3;
}

.lm-card__excerpt {
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	line-height: 1.55;
}

.lm-card:hover .lm-card__title {
	color: var(--wp--preset--color--coral-ink);
}

@media (min-width: 560px) {
	.lm-related__items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

/* Phones: secondary cards become compact rows (photo left). */
@media (max-width: 559px) {
	.lm-related .lm-card,
	.lm-post-cards li:not(:first-child) .lm-card {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 0.9rem;
		align-items: center;
	}
	.lm-related .lm-card__img,
	.lm-post-cards li:not(:first-child) .lm-card__img {
		margin-bottom: 0;
	}
}

/* ---------- Sections (home, hubs) ---------- */

.lm-section {
	margin-top: 2rem !important;
}

.lm-section-title {
	margin-bottom: 1rem;
	font-size: var(--wp--preset--font-size--large);
}

.lm-eyebrow {
	margin: 0;
	color: var(--wp--preset--color--taupe-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lm-eyebrow a {
	color: inherit;
}

/* Home page top (blocks/home-hero): built like the podcast hub's intro, on cream; text, then the photo */

.lm-bench {
	box-sizing: border-box;
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	background: var(--lm-cream);
	border-radius: var(--lm-radius);
}

@media (min-width: 900px) {
	.lm-bench {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 2.5rem;
	}
}

.lm-bench__title {
	margin: 0.3rem 0 0.6rem;
	font-size: var(--wp--preset--font-size--xx-large);
}

.lm-bench__text {
	max-width: 60ch;
	margin: 0 0 1.1rem;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}

.lm-bench__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
}

.lm-bench__photo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--lm-radius);
}

.lm-hub-head h1 {
	margin: 0.35rem 0 0.5rem;
}

.lm-hub-head .wp-block-term-description p,
.lm-hub-head > p:not(.lm-eyebrow) {
	max-width: 62ch;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}

/* Post cards: grid, or one large card beside smaller ones */

.lm-post-cards__items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.75rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-post-cards--feature .lm-post-cards__items {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

.lm-post-cards--feature li:first-child .lm-card__title {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.2;
}

@media (min-width: 560px) {
	.lm-post-cards--feature .lm-post-cards__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem 1.5rem;
	}
	.lm-post-cards--feature li:first-child {
		grid-column: 1 / -1;
	}
}

@media (min-width: 900px) {
	.lm-post-cards--feature .lm-post-cards__items {
		grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
	}
	.lm-post-cards--feature li:first-child {
		grid-column: auto;
		grid-row: span 2;
		display: flex;
	}
	.lm-post-cards--feature li:first-child .lm-card {
		display: flex;
		flex-direction: column;
		width: 100%;
	}
	.lm-post-cards--feature li:first-child .lm-card__img {
		flex: 1 1 0;
		min-height: 16rem;
		aspect-ratio: auto;
	}
}

/* Topic tiles */

.lm-topic-tiles__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 760px) {
	.lm-topic-tiles__items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.75rem 1.5rem;
	}
}

.lm-topic-tile {
	display: flex;
	flex-direction: column;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.lm-topic-tile__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 0.6rem;
	border-radius: var(--lm-radius);
}

.lm-topic-tile__name {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 19px;
	line-height: 1.25;
}

.lm-topic-tile:hover .lm-topic-tile__name {
	color: var(--wp--preset--color--coral-ink);
}

.lm-topic-tile__desc {
	margin-top: 0.3rem;
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	line-height: 1.5;
}

.lm-topic-tile__count {
	margin-top: 0.15rem;
	color: var(--wp--preset--color--taupe-ink);
	font-size: 13px;
}

/* Podcast band */

.lm-podcast-band {
	box-sizing: border-box;
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	background: #e8f2ef;
	border-radius: var(--lm-radius);
}

@media (min-width: 900px) {
	.lm-podcast-band {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 2.5rem;
	}
}

.lm-podcast-band__eyebrow,
.lm-podcast-band__label {
	margin: 0;
	color: var(--wp--preset--color--taupe-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lm-podcast-band__title {
	margin: 0.3rem 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.lm-podcast-band__text {
	margin: 0 0 1.1rem;
}

.lm-podcast-band__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
}

.lm-podcast-band__label {
	margin-bottom: 0.5rem;
}

.lm-podcast-band__episode .lm-card__img {
	aspect-ratio: 16 / 9;
}

.lm-podcast-band__episode .lm-card {
	padding: 0.75rem 0.75rem 1rem;
	background: var(--wp--preset--color--base);
	border-radius: var(--lm-radius);
}

.lm-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.05rem;
	background: var(--wp--preset--color--contrast);
	border: 1.5px solid var(--wp--preset--color--contrast);
	border-radius: var(--lm-radius-button);
	color: var(--wp--preset--color--base);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.lm-pill:hover {
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--ink);
}

.lm-pill--ghost {
	background: transparent;
	color: var(--wp--preset--color--contrast);
}

.lm-pill--ghost:hover {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/* ---------- Comments ---------- */

.lm-comments {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.lm-comments .wp-block-comments-title {
	font-size: var(--wp--preset--font-size--large);
}

.lm-comments .wp-block-comment-template {
	padding: 0;
}

.lm-comments .wp-block-comment-template ol {
	padding-left: 1.25rem;
	border-left: 2px solid var(--wp--preset--color--line);
}

.lm-comment {
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 16px;
}

.lm-comment__meta {
	gap: 0.6rem;
	align-items: baseline;
}

.lm-comment .wp-block-comment-content p {
	margin: 0.35rem 0;
}

/* "Show all N comments" (assets/js/comments.js). */
.lm-comments__more {
	display: block;
	min-height: 44px;
	margin: 1.25rem 0 2.5rem;
	padding: 0.6rem 1.25rem;
	border: 1.5px solid var(--wp--preset--color--contrast);
	border-radius: var(--lm-radius-button);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.lm-comments__more:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.lm-comments__more:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.lm-comments input[type="text"],
.lm-comments input[type="email"],
.lm-comments input[type="url"],
.lm-comments textarea {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--lm-radius);
	font: inherit;
	font-size: 16px;
}

/* ---------- Post cards (home, archives, search) ---------- */

.lm-cards .wp-block-post-template {
	gap: 2rem 1.5rem;
}

.lm-cards .wp-block-post-featured-image img,
.lm-cards .lm-noimg .lm-card__img {
	border-radius: var(--lm-radius);
}

.lm-cards__title {
	margin: 0.6rem 0 0.15rem;
	line-height: 1.3;
}

.lm-cards__title a {
	text-decoration: none;
}

.lm-cards .wp-block-post-date {
	margin-top: 0;
}

.lm-cards .wp-block-query-pagination {
	margin-top: 2.5rem;
}

/* Phones: post lists become compact rows (photo left) so the page isn't one long scroll. */
@media (max-width: 559px) {
	.lm-cards .wp-block-post-template > li {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		column-gap: 0.9rem;
		align-content: center;
	}
	.lm-cards .wp-block-post-featured-image {
		grid-row: 1 / span 2;
		margin: 0;
	}
	.lm-cards .lm-cards__title,
	.lm-cards .wp-block-post-date {
		grid-column: 2;
	}
	.lm-cards .lm-cards__title {
		margin-top: 0;
		font-size: 17px;
	}
	.lm-cards .wp-block-post-template {
		gap: 1.1rem;
	}
}

/* ---------- Podcast ---------- */

.lm-pod-hero {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	background: #e8f2ef;
	border-radius: var(--lm-radius);
}

@media (min-width: 760px) {
	.lm-pod-hero {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 2.5rem;
		align-items: center;
	}
}

.lm-pod-hero__art {
	width: 100%;
	height: auto;
	border-radius: var(--lm-radius);
	box-shadow: 0 6px 24px rgba(18, 18, 18, 0.12);
}

.lm-pod-hero__title {
	margin: 0.3rem 0 0.6rem;
	font-size: var(--wp--preset--font-size--xx-large);
}

.lm-pod-hero__about {
	max-width: 60ch;
	margin: 0 0 1.1rem;
}

.lm-pod-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
}

.lm-pod-hero__more {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.9rem;
	margin: 0.9rem 0 0;
	color: var(--wp--preset--color--taupe-ink);
	font-size: var(--wp--preset--font-size--small);
}

.lm-pod-hero__more a {
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 759px) {
	.lm-pod-hero__about,
	.lm-pod-hero__links,
	.lm-pod-hero__more {
		grid-column: 1 / -1;
	}
	.lm-pod-hero__body {
		display: contents;
	}
	.lm-pod-hero .lm-eyebrow,
	.lm-pod-hero__title {
		grid-column: 2;
	}
	.lm-pod-hero .lm-eyebrow {
		grid-row: 1;
		align-self: end;
	}
	.lm-pod-hero__title {
		grid-row: 2;
		align-self: start;
		font-size: var(--wp--preset--font-size--x-large);
	}
	.lm-pod-hero__art {
		grid-row: 1 / span 2;
	}
}

.lm-episode {
	box-sizing: border-box;
	padding: 1.1rem 1.15rem 1rem;
	background: var(--lm-cream);
	border-radius: var(--lm-radius);
}

.lm-article .lm-episode {
	margin-top: 1.25rem;
}

.lm-episode__title {
	margin: 0.35rem 0 0.4rem;
	font-size: var(--wp--preset--font-size--large);
}

.lm-episode__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.lm-episode__excerpt {
	margin: 0 0 0.9rem;
	font-size: 16px;
}

.lm-episode__player iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: var(--lm-radius);
}

.lm-episode__audio {
	width: 100%;
}

.lm-episode__links {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1rem;
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--small);
}

.lm-episode__listen {
	color: var(--wp--preset--color--taupe-ink);
}

/* Episode list on the hub */

.lm-episodes .wp-block-post-template {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-episode-row {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 760px) {
	.lm-episode-row {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 1.5rem;
	}
}

.lm-episode-row > * {
	margin: 0;
}

.lm-episode-row .wp-block-post-featured-image img,
.lm-episode-row .lm-card__img {
	border-radius: var(--lm-radius);
}

.lm-episode-row__body > * + * {
	margin-top: 0.3rem;
}

.lm-episode-row__title {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
}

.lm-episode-row__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.lm-episode-row__title a:hover {
	color: var(--wp--preset--color--coral-ink);
}

.lm-episode-row__excerpt {
	font-size: 15px;
	line-height: 1.55;
}

.lm-episode-row__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

@media (max-width: 559px) {
	.lm-episode-row__excerpt {
		display: none;
	}
}

.lm-episodes .wp-block-query-pagination {
	margin-top: 2rem;
}

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

.lm-footer {
	padding-top: 3rem;
	padding-bottom: 1.5rem;
	font-size: var(--wp--preset--font-size--small);
}

/* Phones: the blurb across, then the link lists two by two. */
.lm-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem 1.25rem;
}

.lm-footer__brand {
	grid-column: 1 / -1;
}

@media (min-width: 760px) {
	.lm-footer__grid {
		grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	}

	.lm-footer__brand {
		grid-column: auto;
	}
}

.lm-footer__brand p {
	max-width: 30ch;
	line-height: 1.55;
}

.lm-footer__heading {
	margin: 0 0 0.6rem;
	color: var(--wp--preset--color--contrast);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lm-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-footer__links li {
	margin: 0.4rem 0;
}

.lm-footer a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.lm-footer a:hover {
	color: var(--wp--preset--color--coral-ink);
	text-decoration: underline;
}

.lm-footer .wp-block-button__link {
	font-size: 15px;
}

.lm-footer__legal {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--taupe-ink);
}

/* ---------- Not found / retired ---------- */

.lm-not-found h1 {
	margin: 0.35rem 0 0.6rem;
}

.lm-not-found__lead {
	max-width: 62ch;
	margin-bottom: 2rem;
	font-size: var(--wp--preset--font-size--medium);
}

.lm-not-found__more {
	margin-top: 2.5rem;
	max-width: 680px;
}

.lm-not-found__more .wp-block-search__input,
.lm-not-found__more input[type="search"] {
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--lm-radius);
	font: inherit;
}

.lm-not-found__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

/* WordPress's standard search form (used on the not-found page) */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 480px;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--lm-radius);
	font: inherit;
	font-size: 16px;
}

.search-form .search-submit {
	padding: 0.6rem 1.15rem;
	background: var(--wp--preset--color--coral-ink);
	border: 0;
	border-radius: var(--lm-radius-button);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--wp--preset--color--coral-deep);
}

/* ---------- Share row (blocks/share) ---------- */
.lm-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-block: 2.25rem 0;
	padding-block: 1.1rem;
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.lm-share__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--assistant);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--taupe-ink);
}

.lm-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-share__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 40px;
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.lm-share__btn:hover {
	border-color: var(--wp--preset--color--coral-ink);
	color: var(--wp--preset--color--coral-ink);
}

.lm-share__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.lm-share__btn svg {
	flex-shrink: 0;
}

@media (max-width: 599px) {
	.lm-share__title {
		flex-basis: 100%;
	}
}

/* ---------- Email signup (blocks/signup) ---------- */

.lm-signup {
	box-sizing: border-box;
	margin-top: 2.25rem;
	padding: 1.25rem 1.25rem 1.1rem;
	background: #e7f1ef;
	background: color-mix(in srgb, var(--wp--preset--color--mint) 40%, var(--wp--preset--color--base));
	border-radius: var(--lm-radius);
}

.lm-signup__title {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--playfair);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
}

.lm-signup__text {
	margin: 0.35rem 0 0;
	font-size: 16px;
	line-height: 1.5;
}

.lm-signup__form {
	margin-top: 0.9rem;
}

.lm-signup__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lm-signup__email {
	flex: 1 1 13rem;
	min-width: 0;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--lm-radius);
	background: var(--wp--preset--color--base);
	font: inherit;
	font-size: 16px;
}

.lm-signup__button {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0.6rem 1.25rem;
	background: var(--wp--preset--color--coral-ink);
	border: 0;
	border-radius: var(--lm-radius-button);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.lm-signup__button:hover {
	background: var(--wp--preset--color--coral-deep);
}

.lm-signup__button:disabled {
	opacity: 0.7;
	cursor: wait;
}

.lm-signup__fine {
	margin: 0.5rem 0 0;
	color: var(--wp--preset--color--taupe-ink);
	font-size: 13px;
}

.lm-signup__fine a,
.lm-footer .lm-signup__fine a {
	color: inherit;
	text-decoration: underline;
}

/* Phones: once the button drops under the field, it spans the box. */
@media (max-width: 479px) {
	.lm-signup__button {
		flex-grow: 1;
	}
}

/* The field only bots fill in. */
.lm-signup__trap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.lm-signup__status {
	margin: 0.5rem 0 0;
	font-size: 15px;
}

.lm-signup__status:empty {
	display: none;
}

.lm-signup__status.is-done {
	margin-top: 0.9rem;
	color: var(--wp--preset--color--contrast);
	font-size: 17px;
	font-weight: 600;
}

.lm-signup__status.is-error {
	color: var(--wp--preset--color--coral-deep);
}

/* In the footer: a band above the link columns, text beside the form on wider screens. */
.lm-signup--footer {
	margin: 0 0 2.5rem;
	padding: 0 0 2.25rem;
	background: none;
	border-bottom: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
}

@media (min-width: 760px) {
	.lm-signup--footer {
		display: grid;
		grid-template-columns: 1fr minmax(0, 28rem);
		gap: 0.5rem 2.5rem;
		align-items: center;
	}
	.lm-signup--footer .lm-signup__form {
		margin-top: 0;
	}
	.lm-signup--footer .lm-signup__status {
		grid-column: 2;
	}
}

/* "Your Privacy Choices" (blocks/privacy-choices): a small centered card with the on/off switch. */
.lm-choices {
	max-width: 22rem;
	margin: 2.5rem auto;
	padding: 1.5rem 1.5rem 1.25rem;
	scroll-margin-top: 1.5rem;
	background: var(--lm-cream);
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: var(--lm-radius);
	text-align: center;
}

.lm-choices__label {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--contrast);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lm-choices__form {
	margin: 0;
}

.lm-choices__switch {
	display: inline-flex;
	gap: 0.75rem;
	align-items: center;
	min-height: 44px;
	padding: 0.25rem 0.5rem;
	background: none;
	border: 0;
	border-radius: var(--lm-radius-button);
	color: var(--wp--preset--color--ink);
	font: inherit;
	cursor: pointer;
}

.lm-choices__switch:focus-visible {
	outline: 2px solid var(--wp--preset--color--coral-ink);
	outline-offset: 2px;
}

.lm-choices__track {
	position: relative;
	flex: none;
	width: 52px;
	height: 30px;
	background: var(--wp--preset--color--coral-ink);
	border-radius: 15px;
	transition: background-color 0.2s;
}

.lm-choices__knob {
	position: absolute;
	top: 3px;
	left: 25px;
	width: 24px;
	height: 24px;
	background: var(--wp--preset--color--base);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: left 0.2s;
}

.lm-choices.is-off .lm-choices__track {
	background: var(--wp--preset--color--taupe);
}

.lm-choices.is-off .lm-choices__knob {
	left: 3px;
}

.lm-choices__switch:hover .lm-choices__track {
	background: var(--wp--preset--color--coral-deep);
}

.lm-choices.is-off .lm-choices__switch:hover .lm-choices__track {
	background: var(--wp--preset--color--taupe-ink);
}

.lm-choices__state {
	font-size: 17px;
	font-weight: 600;
}

.lm-choices__switch:disabled {
	cursor: default;
	opacity: 0.6;
}

.lm-choices__switch:disabled:hover .lm-choices__track {
	background: var(--wp--preset--color--taupe);
}

.lm-choices__note {
	margin: 0.5rem 0 0;
	color: var(--wp--preset--color--taupe-ink);
	font-size: 15px;
	line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
	.lm-choices__track,
	.lm-choices__knob {
		transition: none;
	}
}

.lm-footer__legal a {
	color: inherit;
}
