/*
Theme Name: L'Chaim
Description: Block theme for L'Chaim Magazine. Coastal San Diego palette, Fraunces / Newsreader / Inter type. Templates fill themselves from story types, so the homepage never needs rebuilding by hand.
Version: 0.13.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: lchaim
License: GPL-2.0-or-later
*/

/* Most styling lives in theme.json. Only small touches that theme.json can't express go here. */

.lchaim-kicker {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* Coral boxes: white text, set large and bold so it stays readable on coral. */
.lchaim-pop-tag {
	display: inline-block;
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--paper);
	padding: 0.375rem 0.75rem;
	font-size: 0.9375rem;
	letter-spacing: 0.12em;
}

.lchaim-logo img {
	max-width: 70vw;
	height: auto;
}

/* Headlines stay deep ocean even though they're links; blue only on hover. */
.wp-block-post-title a {
	color: var(--wp--preset--color--deep-ocean);
	text-decoration: none;
}
.wp-block-post-title a:hover {
	color: var(--wp--preset--color--pacific);
}

/* Image cards lift slightly on hover. */
.lchaim-card .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}
.lchaim-card .wp-block-post-featured-image {
	overflow: hidden;
}
.lchaim-card .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

/* Breaking news band (JTA feed). */
.lchaim-news .wp-block-rss {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1.5rem 2rem;
}
.lchaim-news .wp-block-rss__item {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	padding-top: 0.875rem;
}
.lchaim-news .wp-block-rss__item-title a {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.25rem;
	line-height: 1.25;
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}
.lchaim-news .wp-block-rss__item-title a:hover {
	color: var(--wp--preset--color--coral);
}
.lchaim-news .wp-block-rss__item-publish-date {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.75;
	display: block;
	margin-top: 0.5rem;
}

/* Real magazine covers (lchaim/issue-covers block). */
.lchaim-covers {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 2.5rem 2rem;
}
.lchaim-cover {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--wp--preset--color--deep-ocean);
}
.lchaim-cover__frame {
	display: block;
	aspect-ratio: 182 / 250;
	overflow: hidden;
	background: var(--wp--preset--color--sea-mist);
	box-shadow: 0 1px 2px rgba(16, 42, 53, 0.25), 0 14px 30px rgba(16, 42, 53, 0.25);
	border-radius: 2px;
	transform: perspective(900px) rotateY(0deg);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	position: relative;
}
/* Spine highlight so the covers read as printed magazines. */
.lchaim-cover__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0, rgba(255, 255, 255, 0.18) 3%, rgba(0, 0, 0, 0) 7%);
	pointer-events: none;
}
.lchaim-cover__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.lchaim-cover:hover .lchaim-cover__frame {
	transform: perspective(900px) rotateY(-8deg) translateY(-4px);
	box-shadow: 0 1px 2px rgba(16, 42, 53, 0.25), 0 22px 40px rgba(16, 42, 53, 0.32);
}
.lchaim-cover__month {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--pacific);
	margin-top: 0.5rem;
}
.lchaim-cover__title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.125rem;
	line-height: 1.25;
}
.lchaim-cover:hover .lchaim-cover__title {
	color: var(--wp--preset--color--pacific);
}

/* Breaking-news sidebar next to the cover story. */
.lchaim-sidebar .wp-block-rss {
	list-style: none;
	padding: 0;
	margin: 0;
}
.lchaim-sidebar .wp-block-rss__item {
	border-top: 1px solid var(--wp--preset--color--shoreline);
	padding: 0.5rem 0;
}
.lchaim-sidebar .wp-block-rss__item-title {
	font-size: 1.0625rem;
	line-height: 1.2;
}
.lchaim-sidebar .wp-block-rss__item-title a {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.0625rem;
	line-height: 1.12;
	color: var(--wp--preset--color--deep-ocean);
	text-decoration: none;
}
.lchaim-sidebar .wp-block-rss__item-title a:hover {
	color: var(--wp--preset--color--pacific);
}
.lchaim-sidebar .wp-block-rss__item-publish-date {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--driftwood);
	display: block;
	margin-top: 0.125rem;
}
/* Never more than 5 headlines, so the news box stays about as tall as the cover story. */
.lchaim-sidebar .wp-block-rss__item:nth-child(n+6) {
	display: none;
}
.lchaim-sidebar a {
	color: var(--wp--preset--color--pacific);
}

/* Issues page: cover grid with a staggered, magazine-rack feel. */
.lchaim-issues .wp-block-post-template {
	gap: 3rem 2rem;
}
.lchaim-issues .wp-block-post:nth-child(even) {
	margin-top: 3rem;
}
.lchaim-issues .wp-block-post-featured-image img {
	box-shadow: 0 18px 40px rgba(16, 42, 53, 0.22);
}
@media (max-width: 781px) {
	.lchaim-issues .wp-block-post:nth-child(even) {
		margin-top: 0;
	}
}

.lchaim-section-head {
	border-top: 2px solid var(--wp--preset--color--deep-ocean);
	padding-top: 0.75rem;
}

.wp-block-post-featured-image img {
	background: var(--wp--preset--color--sea-mist);
}

.lchaim-card .wp-block-post-title a {
	text-decoration: none;
}

.lchaim-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--pacific);
}

.lchaim-list .wp-block-post {
	border-bottom: 1px solid var(--wp--preset--color--shoreline);
	padding: 1rem 0;
}

.lchaim-steps li::marker {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 700;
	color: var(--wp--preset--color--pacific);
}

/* Byline under story cards: author · Month Year */
.lchaim-meta .wp-block-post-author-name + .wp-block-post-date::before {
	content: "·";
	margin-right: 0.5rem;
	color: var(--wp--preset--color--driftwood);
}
.lchaim-meta .wp-block-post-author-name {
	color: var(--wp--preset--color--deep-ocean);
}

/* ---------- Old (Classic Editor) article content ---------- */
.wp-block-post-content .alignleft,
.wp-block-post-content img.alignleft {
	float: left;
	max-width: 45%;
	height: auto;
	margin: 0.4rem 1.75rem 1rem 0;
}
.wp-block-post-content .alignright,
.wp-block-post-content img.alignright {
	float: right;
	max-width: 45%;
	height: auto;
	margin: 0.4rem 0 1rem 1.75rem;
}
.wp-block-post-content .aligncenter,
.wp-block-post-content img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.wp-block-post-content img {
	max-width: 100%;
	height: auto;
}
.wp-block-post-content .wp-caption {
	max-width: 100%;
}
.wp-block-post-content .wp-caption img {
	display: block;
	max-width: 100%;
	float: none;
	margin: 0;
}
.wp-block-post-content .wp-caption-text {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--wp--preset--color--driftwood);
	margin-top: 0.5rem;
}
.wp-block-post-content::after {
	content: "";
	display: table;
	clear: both;
}
/* Leftover fonts and sizes typed into old articles follow the new design instead. */
.wp-block-post-content [style*="font-family"],
.wp-block-post-content font {
	font-family: inherit !important;
}
.wp-block-post-content [style*="font-size"] {
	font-size: inherit !important;
}
.wp-block-post-content p:empty {
	display: none;
}
.wp-block-post-content iframe {
	max-width: 100%;
}
.wp-block-post-content iframe[src*="youtu"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
@media (max-width: 600px) {
	.wp-block-post-content .alignleft,
	.wp-block-post-content .alignright,
	.wp-block-post-content img.alignleft,
	.wp-block-post-content img.alignright {
		float: none;
		max-width: 100%;
		margin: 1rem 0;
	}
}

/* ---------- Phone fixes (v0.4.1) ---------- */
/* Full-width bands keep a side margin so text never touches the screen edge. */
footer.wp-block-group.alignfull,
.wp-block-group.alignfull.has-background {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
@media (max-width: 600px) {
	/* Old-article photos sit on their own line instead of beside a few squeezed words. */
	.wp-block-post-content .alignleft,
	.wp-block-post-content .alignright,
	.wp-block-post-content img.alignleft,
	.wp-block-post-content img.alignright {
		display: block;
		width: 100%;
	}
	/* Covers two across, like a magazine rack. */
	.lchaim-covers {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.75rem 1rem;
	}
	.lchaim-cover__title {
		font-size: 1rem;
	}
	/* Homepage shows 4 covers on phones so the two-across grid has no lone cover. */
	.home .lchaim-covers .lchaim-cover:nth-child(n+5) {
		display: none;
	}
	/* Breaking news: four headlines on phones so the stories aren't pushed far down. */
	.lchaim-sidebar .wp-block-rss__item:nth-child(n+5) {
		display: none;
	}
	/* Bigger menu button and menu links for thumbs. */
	.wp-block-navigation__responsive-container-open svg {
		width: 32px;
		height: 32px;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		font-size: 1.25rem;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		gap: 1.5rem;
	}
}

/* ---------- Subscribe page ---------- */
.lchaim-subscribe-cover .lchaim-covers {
	grid-template-columns: 1fr;
	max-width: 320px;
	margin: 0 auto;
}
.lchaim-subscribe-cover .lchaim-cover__month,
.lchaim-subscribe-cover .lchaim-cover__title {
	text-align: center;
}
.lchaim-price {
	gap: 0.75rem;
}
.lchaim-price__amount {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 4rem;
	line-height: 1;
	margin: 0;
	color: var(--wp--preset--color--deep-ocean);
}
.lchaim-price__note {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 600;
	color: var(--wp--preset--color--driftwood);
	margin: 0 0 0.5rem;
}
.lchaim-option {
	border-top: 4px solid var(--wp--preset--color--coral);
	padding-top: 1rem;
}
.lchaim-option__link a {
	font-weight: 700;
	color: var(--wp--preset--color--pacific);
}
.lchaim-option__link a::after {
	content: " →";
}

/* ---------- Columns page ---------- */
.lchaim-column-card {
	border-left: 4px solid var(--wp--preset--color--coral);
	padding-left: 1rem;
}
.lchaim-column-card .wp-block-post-excerpt {
	font-size: 1rem;
}
.lchaim-archive-cols {
	gap: 0.75rem;
}
.lchaim-archive-col {
	margin: 0;
}
.lchaim-archive-col a {
	display: inline-block;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--wp--preset--color--shoreline);
	background: var(--wp--preset--color--sea-mist);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--deep-ocean);
	text-decoration: none;
}
.lchaim-archive-col a:hover {
	background: var(--wp--preset--color--deep-ocean);
	color: var(--wp--preset--color--paper);
}

/* ---------- Events page ---------- */
.lchaim-events {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
	gap: 1.25rem;
}
.lchaim-event {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--shoreline);
	text-decoration: none;
	color: var(--wp--preset--color--deep-ocean);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.lchaim-event:hover {
	box-shadow: 0 12px 28px rgba(16, 42, 53, 0.15);
	transform: translateY(-2px);
}
.lchaim-event__date {
	flex: 0 0 4.25rem;
	text-align: center;
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--paper);
	padding: 0.5rem 0;
}
.lchaim-event__month {
	display: block;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.lchaim-event__day {
	display: block;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
}
.lchaim-event__title {
	display: block;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.25rem;
	line-height: 1.25;
}
.lchaim-event__meta {
	display: block;
	margin-top: 0.375rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--driftwood);
}
.lchaim-events-empty {
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
	padding: 2.5rem 1.25rem;
	border: 1px dashed var(--wp--preset--color--shoreline);
}
.lchaim-events-empty__title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.75rem;
	margin: 0 0 0.5rem;
}
.lchaim-events-empty a {
	color: var(--wp--preset--color--pacific);
	font-weight: 600;
}
@media (max-width: 600px) {
	.lchaim-events {
		grid-template-columns: 1fr;
	}
	.lchaim-price__amount {
		font-size: 3rem;
	}
}

/* Headlines break evenly instead of leaving one word alone on the last line. */
h1, h2, .wp-block-post-title {
	text-wrap: balance;
}

.lchaim-events-more {
	text-align: center;
	margin-top: 2rem;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
}
.lchaim-events-more a {
	color: var(--wp--preset--color--pacific);
}
.lchaim-events-more a::after {
	content: " →";
}

/* ---------- Submit an event form ---------- */
.lchaim-es fieldset {
	border: 0;
	border-top: 2px solid var(--wp--preset--color--deep-ocean);
	margin: 0 0 2rem;
	padding: 1rem 0 0;
}
.lchaim-es legend {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 0 0.75rem 0 0;
}
.lchaim-es-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0 1rem;
}
.lchaim-es-field {
	margin: 0 0 1.25rem;
}
.lchaim-es label {
	display: block;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 0.375rem;
}
.lchaim-es-req {
	color: var(--wp--preset--color--coral);
}
.lchaim-es input[type="text"],
.lchaim-es input[type="email"],
.lchaim-es input[type="url"],
.lchaim-es input[type="date"],
.lchaim-es input[type="time"],
.lchaim-es textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--wp--preset--color--shoreline);
	background: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.0625rem;
	color: var(--wp--preset--color--deep-ocean);
	border-radius: 0;
}
.lchaim-es input:focus,
.lchaim-es textarea:focus {
	outline: 2px solid var(--wp--preset--color--pacific);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--pacific);
}
.lchaim-es-note {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.875rem;
	color: var(--wp--preset--color--driftwood);
	margin: 0 0 1rem;
}
.lchaim-es-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.lchaim-es button {
	border: 0;
	cursor: pointer;
}
.lchaim-es-error {
	background: #fdecea;
	border-left: 4px solid var(--wp--preset--color--coral);
	padding: 0.875rem 1rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.9375rem;
}
.lchaim-es-thanks {
	text-align: center;
	padding: 2.5rem 1.25rem;
	background: var(--wp--preset--color--sea-mist);
	border-top: 6px solid var(--wp--preset--color--coral);
}
.lchaim-es-thanks__title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.75rem;
	margin: 0 0 0.5rem;
}
.lchaim-es-thanks a {
	color: var(--wp--preset--color--pacific);
	font-weight: 600;
}

/* ---------- Newsletter sign-up (Mailchimp for WP form) ---------- */
/* Overrides the plugin's old "blue" form theme so the form matches the site. */
.lchaim-newsletter {
	max-width: 560px;
	margin-top: 0.75rem;
	margin-left: 0;
	margin-right: auto;
}
.lchaim-newsletter .mc4wp-form {
	margin: 0;
	max-width: 560px;
}
/* Inside centered page sections WordPress forces auto side margins, so let the box span the column and keep the form itself left-aligned. */
.is-layout-constrained > .lchaim-newsletter {
	max-width: none;
}
.lchaim-newsletter .mc4wp-form .mc4wp-form-fields {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	align-items: stretch;
}
.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > h1,
.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > h2,
.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > h3,
.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > h4,
.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > p:empty {
	display: none;
}
.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > p {
	margin: 0;
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.5rem;
}
.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > p:has(input[type="email"]) {
	grid-column: 1;
	display: block;
}
.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > p:has(input[type="submit"]) {
	grid-column: 2;
	display: block;
}
.lchaim-newsletter .mc4wp-form label {
	display: block;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}
.lchaim-newsletter .mc4wp-form.mc4wp-form-theme input[type="email"],
.lchaim-newsletter .mc4wp-form.mc4wp-form-theme input[type="text"],
.lchaim-newsletter .mc4wp-form input[type="email"],
.lchaim-newsletter .mc4wp-form input[type="text"] {
	width: 100%;
	max-width: none;
	height: auto;
	box-sizing: border-box;
	margin: 0;
	padding: 0.8rem 0.875rem;
	border: 1px solid var(--wp--preset--color--shoreline);
	background: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	line-height: 1.3;
	color: var(--wp--preset--color--deep-ocean);
	border-radius: 0;
	box-shadow: none;
}
.lchaim-newsletter .mc4wp-form.mc4wp-form-theme input[type="submit"],
.lchaim-newsletter .mc4wp-form input[type="submit"] {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0.8rem 1.25rem;
	border: 0;
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-shadow: none;
	cursor: pointer;
	border-radius: 0;
}
.lchaim-newsletter .mc4wp-form.mc4wp-form-theme input[type="submit"]:hover,
.lchaim-newsletter .mc4wp-form input[type="submit"]:hover,
.lchaim-newsletter .mc4wp-form input[type="submit"]:focus {
	background: var(--wp--preset--color--deep-ocean);
	color: var(--wp--preset--color--paper);
}
.lchaim-newsletter .mc4wp-form input:focus {
	outline: 2px solid var(--wp--preset--color--pacific);
	outline-offset: 1px;
}
.lchaim-newsletter .mc4wp-response,
.lchaim-newsletter .mc4wp-alert,
.lchaim-newsletter .mc4wp-response p {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.9375rem;
	margin-top: 0.75rem;
}
.lchaim-newsletter--dark .mc4wp-form input[type="email"],
.lchaim-newsletter--dark .mc4wp-form input[type="text"] {
	border-color: rgba(255, 255, 255, 0.35);
}
.lchaim-newsletter--dark .mc4wp-form.mc4wp-form-theme input[type="submit"]:hover,
.lchaim-newsletter--dark .mc4wp-form input[type="submit"]:hover,
.lchaim-newsletter--dark .mc4wp-form input[type="submit"]:focus {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--deep-ocean);
}
.lchaim-newsletter--dark label,
.lchaim-newsletter--dark .mc4wp-response,
.lchaim-newsletter--dark .mc4wp-response p {
	color: var(--wp--preset--color--paper);
}
@media (max-width: 480px) {
	.lchaim-newsletter .mc4wp-form .mc4wp-form-fields {
		grid-template-columns: 1fr;
	}
	.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > p:has(input[type="email"]),
	.lchaim-newsletter .mc4wp-form .mc4wp-form-fields > p:has(input[type="submit"]) {
		grid-column: 1;
	}
}
.lchaim-newsletter__fallback a {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
}
.lchaim-newsletter__admin {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	opacity: 0.8;
	border: 1px dashed currentColor;
	padding: 0.5rem 0.75rem;
}
.lchaim-newsletter-lead {
	margin-top: 1.5rem;
}

/* Contact form: shares the event form's styling; dropdown to match. */
.lchaim-es select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--wp--preset--color--shoreline);
	background: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	color: var(--wp--preset--color--deep-ocean);
	border-radius: 0;
}

/* ---------- The Events Calendar views (/calendar/) ---------- */
:root {
	--tec-font-family-sans-serif: var(--wp--preset--font-family--inter);
	--tec-font-family-base: var(--wp--preset--font-family--newsreader);
	--tec-color-accent-primary: var(--wp--preset--color--coral);
	--tec-color-accent-primary-hover: var(--wp--preset--color--deep-ocean);
	--tec-color-accent-primary-active: var(--wp--preset--color--deep-ocean);
	--tec-color-accent-primary-background: var(--wp--preset--color--sea-mist);
	--tec-color-accent-secondary: var(--wp--preset--color--pacific);
	--tec-color-link-accent: var(--wp--preset--color--pacific);
	--tec-color-text-primary: var(--wp--preset--color--deep-ocean);
	--tec-color-text-secondary: var(--wp--preset--color--driftwood);
	--tec-color-border-default: var(--wp--preset--color--shoreline);
	--tec-color-background-events-bar-submit-button: var(--wp--preset--color--coral);
	--tec-color-background-events-bar-submit-button-hover: var(--wp--preset--color--deep-ocean);
	--tec-color-button-primary: var(--wp--preset--color--coral);
	--tec-color-day-marker-current-month: var(--wp--preset--color--deep-ocean);
	--tec-border-radius-default: 0;
}
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-month__calendar-event-title,
.tribe-events .tribe-events-c-top-bar__datepicker-button,
.tribe-common .tribe-common-h1,
.tribe-common .tribe-common-h2,
.tribe-common .tribe-common-h3,
.tribe-events-single-event-title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 400;
}
.lchaim-calendar-note {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	background: var(--wp--preset--color--sea-mist);
	border-left: 4px solid var(--wp--preset--color--coral);
	padding: 0.875rem 1rem;
	margin: 0 0 1.5rem;
}
.lchaim-calendar-note a {
	color: var(--wp--preset--color--pacific);
	font-weight: 700;
}

/* ---------- Store pages: cart, checkout, My Account, product ---------- */
.woocommerce,
.woocommerce-page {
	font-family: var(--wp--preset--font-family--inter);
}
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3,
.woocommerce div.product .product_title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 400;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order,
.woocommerce-page .wc-block-components-button,
.woocommerce div.product form.cart .button {
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--paper);
	border: 0;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.85rem 1.5rem;
	text-shadow: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover,
.woocommerce div.product form.cart .button:hover {
	background: var(--wp--preset--color--deep-ocean);
	color: var(--wp--preset--color--paper);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single,
.woocommerce .quantity .qty,
.woocommerce #coupon_code {
	border: 1px solid var(--wp--preset--color--shoreline);
	border-radius: 0;
	padding: 0.7rem 0.8rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	color: var(--wp--preset--color--deep-ocean);
	background: var(--wp--preset--color--paper);
	box-sizing: border-box;
	min-height: 2.9rem;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 1.4;
	padding: 0;
}
.woocommerce form .form-row label {
	font-weight: 600;
	font-size: 0.9375rem;
	margin-bottom: 0.3rem;
}
.woocommerce table.shop_table {
	border: 0;
	border-top: 2px solid var(--wp--preset--color--deep-ocean);
	border-radius: 0;
	border-collapse: collapse;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-top: 1px solid var(--wp--preset--color--shoreline);
	padding: 0.9rem 0.75rem;
}
.woocommerce-checkout #payment,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
	background: var(--wp--preset--color--sea-mist);
	border: 0;
	border-radius: 0;
}
.woocommerce-checkout #payment div.payment_box {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--deep-ocean);
}
.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--wp--preset--color--paper);
}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-top-color: var(--wp--preset--color--coral);
	background: var(--wp--preset--color--sea-mist);
	color: var(--wp--preset--color--deep-ocean);
	font-family: var(--wp--preset--font-family--inter);
}
.woocommerce-info::before,
.woocommerce-message::before {
	color: var(--wp--preset--color--coral);
}
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 2px solid var(--wp--preset--color--deep-ocean);
}
.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--wp--preset--color--shoreline);
	text-decoration: none;
	color: var(--wp--preset--color--deep-ocean);
	font-weight: 600;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
	color: var(--wp--preset--color--coral);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--deep-ocean);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 2rem;
}
.woocommerce .woocommerce-breadcrumb {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--driftwood);
}

/* End-of-article "Write to us" note (replaces comments). */
.lchaim-letters {
	margin-top: 3rem;
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--sea-mist);
	border-left: 6px solid var(--wp--preset--color--coral);
	font-family: var(--wp--preset--font-family--inter);
}
.lchaim-letters p {
	margin: 0;
}
.lchaim-letters__title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.5rem;
	margin-bottom: 0.25rem !important;
}
.lchaim-letters a {
	color: var(--wp--preset--color--pacific);
	font-weight: 700;
}
.lchaim-cf-story {
	font-family: var(--wp--preset--font-family--inter);
	background: var(--wp--preset--color--sea-mist);
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--wp--preset--color--coral);
}

/* ---------- Ad slots (L'Chaim: Ads plugin) ---------- */
.lchaim-ad {
	margin: 1.75rem auto;
	max-width: 300px;
	text-align: center;
	clear: both;
}
.lchaim-ad__label {
	display: block;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--driftwood);
	margin-bottom: 0.375rem;
}
.lchaim-ad img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	border: 1px solid var(--wp--preset--color--shoreline);
}
.lchaim-ad--article {
	padding: 1rem 0;
	border-top: 1px solid var(--wp--preset--color--shoreline);
	border-bottom: 1px solid var(--wp--preset--color--shoreline);
}
.lchaim-ad--house {
	background: var(--wp--preset--color--sea-mist);
	padding: 1.25rem 1rem;
	border: 1px dashed var(--wp--preset--color--shoreline);
}
.lchaim-ad__house {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0.25rem 0 0.75rem;
}
.lchaim-ad__house-link {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	color: var(--wp--preset--color--pacific);
}
.lchaim-ad__house-link::after {
	content: " →";
}
.lchaim-sidebar .lchaim-ad {
	margin: 1.5rem 0 0;
	max-width: none;
}
.lchaim-sidebar .lchaim-ad img {
	max-width: 300px;
}

/* Old [su_button] codes shown as site buttons. */
.wp-block-post-content .wp-block-button {
	display: inline-block;
	margin: 0.5rem 0;
}
.wp-block-post-content .wp-block-button__link {
	text-decoration: none;
}

.lchaim-sidebar .lchaim-ad {
	margin-top: 0.75rem;
}

/* Tables in old articles and pages (e.g. the ad rate card): site styling, and on phones they scroll inside their own box instead of pushing the page sideways. */
.wp-block-post-content table {
	border-collapse: collapse;
	width: 100%;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.9375rem;
	border-top: 2px solid var(--wp--preset--color--deep-ocean);
}
.wp-block-post-content th,
.wp-block-post-content td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--shoreline);
	padding: 0.6rem 0.5rem;
	text-align: left;
	vertical-align: top;
}
.wp-block-post-content tr:first-child td,
.wp-block-post-content th {
	font-weight: 700;
}
@media (max-width: 700px) {
	.wp-block-post-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		font-size: 0.875rem;
		white-space: nowrap;
	}
}

/* "From the departments": both boxes always end at the same line, however long the titles are. */
.lchaim-dept-grid > li {
	display: flex;
}
.lchaim-dept-grid > li > .wp-block-group {
	flex: 1;
}

/* Homepage departments: newest recipe beside the next Main Story, same height. */
.lchaim-dept-pair > .wp-block-query,
.lchaim-dept-pair .wp-block-post-template,
.lchaim-dept-pair .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lchaim-dept-pair .wp-block-post-template > li,
.lchaim-dept-pair .wp-block-post-template > li > .wp-block-group {
	flex: 1;
}

/* Spotlight: one highlighted story, headline beside a large photo, thin rules above and below. */
.lchaim-spotlight {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	min-height: clamp(22rem, 38vw, 34rem);
	border-top: 1px solid var(--wp--preset--color--deep-ocean);
	border-bottom: 1px solid var(--wp--preset--color--deep-ocean);
	background: var(--wp--preset--color--paper);
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: 0;
}
.lchaim-spotlight__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--wp--preset--spacing--50) clamp(1.25rem, 5vw, 5rem);
	gap: 0.875rem;
}
.lchaim-spotlight__kicker {
	margin: 0;
	color: var(--wp--preset--color--pacific);
}
.lchaim-spotlight__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 600;
	font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3.25rem);
	line-height: 1.08;
	text-wrap: balance;
}
.lchaim-spotlight__title a {
	color: var(--wp--preset--color--deep-ocean);
	text-decoration: none;
}
.lchaim-spotlight__title a:hover {
	color: var(--wp--preset--color--pacific);
}
.lchaim-spotlight__excerpt {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--driftwood);
	max-width: 34rem;
}
.lchaim-spotlight__more {
	margin: 0.25rem 0 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.lchaim-spotlight__more a {
	color: var(--wp--preset--color--deep-ocean);
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--coral);
	padding-bottom: 2px;
}
.lchaim-spotlight__media {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 18rem;
}
.lchaim-spotlight__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.lchaim-spotlight:hover .lchaim-spotlight__media img {
	transform: scale(1.03);
}
/* Section pages: the section name sits centered under the spotlight. */
.lchaim-section-title {
	margin-top: var(--wp--preset--spacing--50);
}
.category .lchaim-spotlight {
	margin-top: 0;
}
@media (max-width: 760px) {
	.lchaim-spotlight {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.lchaim-spotlight__media {
		order: -1;
		aspect-ratio: 3 / 2;
		min-height: 0;
	}
	.lchaim-spotlight__text {
		padding: var(--wp--preset--spacing--40) 1rem var(--wp--preset--spacing--50);
	}
}

/* Homepage spotlight: slow waves rolling across the top of the photo (flipped so they hang down from the top edge). */
.lchaim-waves {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 22%;
	pointer-events: none;
	overflow: hidden;
	transform: scaleY(-1);
}
.lchaim-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background-repeat: repeat-x;
	background-position: 0 100%;
	animation: lchaim-wave-roll linear infinite;
	will-change: background-position;
}
.lchaim-wave--1 {
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='120' viewBox='0 0 800 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q200 20 400 60 T800 60 V120 H0 Z' fill='rgba(231,240,238,0.26)'/%3E%3C/svg%3E");
	background-size: 900px 100%;
	animation-duration: 30s;
}
.lchaim-wave--2 {
	height: 78%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='120' viewBox='0 0 800 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q200 20 400 60 T800 60 V120 H0 Z' fill='rgba(30,95,116,0.16)'/%3E%3C/svg%3E");
	background-size: 700px 100%;
	animation-duration: 21s;
	animation-direction: reverse;
}
.lchaim-wave--3 {
	height: 52%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='120' viewBox='0 0 800 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q200 20 400 60 T800 60 V120 H0 Z' fill='rgba(255,255,255,0.32)'/%3E%3C/svg%3E");
	background-size: 560px 100%;
	animation-duration: 15s;
}
.lchaim-wave--1 { --lchaim-wave-w: 900px; }
.lchaim-wave--2 { --lchaim-wave-w: 700px; }
.lchaim-wave--3 { --lchaim-wave-w: 560px; }
@keyframes lchaim-wave-roll {
	from { background-position-x: 0; }
	to { background-position-x: calc(-1 * var(--lchaim-wave-w)); }
}
@media (prefers-reduced-motion: reduce) {
	.lchaim-wave {
		animation: none;
	}
}

/* Newsletter reply after a background sign-up. */
.lchaim-newsletter .mc4wp-response p {
	margin: 0.75rem 0 0;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 600;
}
.lchaim-newsletter .mc4wp-form-success .mc4wp-response p {
	margin-top: 0;
	font-size: 1.0625rem;
}
