/*
Theme Name: J.M. Lanham
Theme URI: https://www.jmlanham.com/
Author: Firewave Media LLC
Description: Child theme of Twenty Twenty-Five for J.M. Lanham, author of The R.E.M. Trilogy and AI: Artificial Incompetence. Charcoal, warm white and restrained teal; self-hosted fonts; editable block patterns.
Template: twentytwentyfive
Version: 1.0.6
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jmlanham
*/

/* ---------- Tokens not expressible in theme.json ---------- */
:root {
	--jml-mist: var(--wp--preset--color--mist);
	--jml-shadow-cover: 0 1px 2px rgb(0 0 0 / .25), 0 14px 32px -10px rgb(0 0 0 / .55);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
h1, h2, h3 { text-wrap: balance; font-stretch: 90%; }
[id] { scroll-margin-top: 80px; }

/* ---------- Focus: always visible, two-tone ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--charcoal-900);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--wp--preset--color--amber);
	border-radius: 4px;
}
:where(.is-style-jml-dark, .jml-header, .wp-block-navigation__responsive-container.is-menu-open) :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--amber);
	box-shadow: 0 0 0 6px var(--wp--preset--color--charcoal-900);
}

/* ---------- Section styles ---------- */
.is-style-jml-dark { background-color: var(--wp--preset--color--charcoal-800); color: #F3EEE6; }
.is-style-jml-dark :where(h1, h2, h3, h4) { color: #fff; }
.is-style-jml-dark a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--teal-200); }
.is-style-jml-dark a:where(:not(.wp-element-button)):hover { color: #fff; }
.is-style-jml-light { background-color: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.is-style-jml-paper { background-color: var(--wp--preset--color--paper-2); color: var(--wp--preset--color--ink); }
.is-style-jml-panel { background: #fff; border: 1px solid #E2DACB; border-radius: 10px; padding: 1.25rem; }
main > .alignfull { margin-block: 0 !important; }

/* ---------- Header ---------- */
.jml-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .jml-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.jml-header { border-bottom: 1px solid var(--wp--preset--color--charcoal-600); min-height: 68px; display: flex; align-items: center; }
.jml-header > .alignwide { width: 100%; }
.jml-brand__name { margin: 0; font: 800 1.45rem/1 var(--wp--preset--font-family--display); font-stretch: 85%; letter-spacing: .02em; text-transform: uppercase; }
.jml-brand__name a { color: #fff !important; text-decoration: none; }
.jml-brand__name a:hover { text-decoration: underline; }
.jml-brand__tag { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--teal-300); }
.jml-nav a { color: #F3EEE6; text-decoration: none; padding: .6rem .5rem; border-radius: 6px; }
.jml-nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: .35em; }
.jml-nav .wp-block-navigation__responsive-container-open,
.jml-nav .wp-block-navigation__responsive-container-close { color: #fff; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1.5px solid var(--wp--preset--color--charcoal-600); border-radius: 8px; }
@media (max-width: 599px) { .jml-nav .wp-block-navigation__responsive-container-open { display: inline-flex; } }
.jml-nav .wp-block-navigation__responsive-container-close { display: inline-flex; }
.jml-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem; }
.jml-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.35rem; padding: .6rem 0; }

/* ---------- Eyebrows, fine print, buttons ---------- */
.is-style-jml-eyebrow { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: .8rem; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--teal-700); margin-bottom: .25rem; }
.is-style-jml-dark .is-style-jml-eyebrow { color: var(--wp--preset--color--teal-300); }
.is-style-jml-eyebrow a { color: inherit !important; }
.is-style-jml-eyebrow.jml-mono { font-family: var(--wp--preset--font-family--mono); letter-spacing: .04em; text-transform: none; font-size: .85rem; }
.is-style-jml-fine { font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: .9rem; color: var(--wp--preset--color--ink-soft); }
.is-style-jml-dark .is-style-jml-fine { color: var(--jml-mist); }
.jml-actions { gap: .75rem 1rem; margin-top: 1.5rem; }
.jml-btn-meta { font-weight: 500; font-size: .82em; opacity: .85; margin-left: .35em; }
.wp-element-button { min-height: 48px; display: inline-flex; align-items: baseline; transition: transform .15s ease, background-color .15s ease; }
@media (prefers-reduced-motion: no-preference) { .wp-element-button:hover { transform: translateY(-1px); } }
.is-style-jml-ghost .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--ink) !important; border-color: currentColor !important; }
.is-style-jml-ghost .wp-block-button__link:hover { background: rgb(0 0 0 / .05) !important; }
.is-style-jml-dark .wp-block-button:not(.is-style-jml-ghost) .wp-block-button__link { background: var(--wp--preset--color--teal-300); color: var(--wp--preset--color--charcoal-900); }
.is-style-jml-dark .wp-block-button:not(.is-style-jml-ghost) .wp-block-button__link:hover { background: var(--wp--preset--color--teal-200); color: var(--wp--preset--color--charcoal-900); }
.is-style-jml-dark .is-style-jml-ghost .wp-block-button__link { color: #F3EEE6 !important; }
.is-style-jml-dark .is-style-jml-ghost .wp-block-button__link:hover { background: rgb(255 255 255 / .08) !important; }
.jml-btn-dark .wp-block-button__link { background: var(--wp--preset--color--charcoal-800); }
.jml-btn-dark .wp-block-button__link:hover { background: var(--wp--preset--color--teal-700); }
.jml-arrow { font-family: var(--wp--preset--font-family--display); font-weight: 700; text-underline-offset: .25em; margin-right: 2rem; display: inline-block; }
.jml-arrow::after { content: " \2192"; display: inline-block; transition: transform .15s; }
.jml-arrow:hover::after { transform: translateX(3px); }

/* ---------- Covers: natural 2:3, never cropped ---------- */
.is-style-jml-cover img { aspect-ratio: 2 / 3; object-fit: contain; height: auto; max-width: 100%; border-radius: 3px; box-shadow: var(--jml-shadow-cover); background: #fff; }
.is-style-jml-cover { margin: 0; }

/* ---------- Hero ---------- */
.jml-hero { background: radial-gradient(1200px 500px at 85% 10%, rgb(111 208 200 / .10), transparent 60%), linear-gradient(180deg, var(--wp--preset--color--charcoal-900), var(--wp--preset--color--charcoal-800)) !important; }
.jml-hero__title { max-width: 16ch; font-stretch: 88%; }
.jml-hero__and { display: block; font-family: var(--wp--preset--font-family--body); font-style: italic; font-weight: 500; font-stretch: 100%; font-size: .58em; line-height: 1.2; letter-spacing: 0; color: var(--wp--preset--color--teal-200); margin-top: .45em; }
.jml-lede { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); color: #E4DED4; max-width: 38em; }
.jml-lede strong { color: #fff; font-weight: 650; }
.jml-start { background: rgb(255 255 255 / .03); border: 1px solid var(--wp--preset--color--charcoal-600); border-radius: 14px; padding: 1.25rem; }
.jml-start > * + * { margin-top: .75rem; }
.jml-start__title { font-family: var(--wp--preset--font-family--display); font-size: .82rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--jml-mist) !important; margin: .25rem .25rem 1rem; font-weight: 700; }
.jml-door { position: relative; gap: 1.1rem; padding: .85rem 3rem .85rem .85rem; border-radius: 10px; background: var(--wp--preset--color--charcoal-700); border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.jml-door::after { content: "\2192"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font: 700 1.4rem var(--wp--preset--font-family--display); color: var(--wp--preset--color--teal-300); transition: transform .15s; }
.jml-door:hover, .jml-door:focus-within { background: var(--wp--preset--color--charcoal-600); border-color: var(--wp--preset--color--teal-300); }
@media (prefers-reduced-motion: no-preference) { .jml-door:hover::after { transform: translate(4px, -50%); } }
.jml-door .wp-block-image { flex: 0 0 84px; margin: 0; }
.jml-door .wp-block-image img { box-shadow: 0 6px 16px -6px rgb(0 0 0 / .7); }
.jml-door p { margin: 0; }
.jml-door__mood { font-style: italic; font-size: .9rem; color: var(--jml-mist); }
.jml-door__cta { font: 750 1.2rem/1.2 var(--wp--preset--font-family--display); }
.jml-door__cta a { color: #fff !important; text-decoration: none; }
.jml-door__cta a::before { content: ""; position: absolute; inset: 0; border-radius: 10px; } /* whole card clickable */
.jml-door__cta a:hover, .jml-door__cta a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.jml-door__cta a:focus-visible { outline: none; box-shadow: none; }
.jml-door:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--amber); outline-offset: 3px; }
.jml-door__cta cite { font-style: normal; color: var(--wp--preset--color--teal-200); }
.jml-door__meta { font-family: var(--wp--preset--font-family--display); font-size: .85rem; color: var(--jml-mist); }

/* ---------- Section heads / R.E.M. ---------- */
.jml-rem { background: radial-gradient(900px 420px at 10% 0%, rgb(111 208 200 / .08), transparent 60%), var(--wp--preset--color--charcoal-800) !important; border-top: 1px solid var(--wp--preset--color--charcoal-600); }
.jml-section-head { margin-bottom: clamp(2rem, 4vw, 3rem) !important; }
.jml-pitch { font-size: 1.15rem; color: #E4DED4; }

/* ---------- Book feature (reusable) ---------- */
.jml-book-feature { gap: clamp(1.75rem, 4vw, 3.5rem); }
.jml-book-feature__cover .wp-block-image, .jml-book-feature__cover .wp-block-post-featured-image { max-width: 300px; }
@media (min-width: 782px) { .jml-book-feature__cover > * { position: sticky; top: 100px; } }
@media (max-width: 781px) { .jml-book-feature__cover .wp-block-image, .jml-book-feature__cover .wp-block-post-featured-image { max-width: 230px; width: 62%; margin-inline: auto; } }
.jml-book-feature__body > p { max-width: 40em; }
.jml-book-title { font-size: clamp(1.9rem, 2vw + 1rem, 2.6rem) !important; margin-top: .25rem; }
.jml-tag-num { display: inline-block; background: var(--wp--preset--color--teal-300); color: var(--wp--preset--color--charcoal-900); padding: .25rem .55rem; border-radius: 4px; margin-right: .5rem; letter-spacing: .1em; }
.is-style-jml-light .jml-tag-num, .is-style-jml-paper .jml-tag-num { background: var(--wp--preset--color--teal-700); color: #fff; }
.jml-hook { font: 800 clamp(1.4rem, 1.2vw + 1rem, 1.9rem)/1.2 var(--wp--preset--font-family--display); font-stretch: 92%; }
mark { background: linear-gradient(transparent 55%, #F6D98A 55%); color: inherit; padding: 0 .1em; white-space: nowrap; }

/* Reviews */
.jml-reviews { gap: 1rem; margin-top: 1.5rem; }
.is-style-jml-review { border-left: 3px solid var(--wp--preset--color--teal-700); padding: .1rem 0 .1rem 1rem; margin: 0; }
.is-style-jml-dark .is-style-jml-review { border-left-color: var(--wp--preset--color--teal-300); }
.is-style-jml-review p { font-size: 1.08rem; line-height: 1.45; margin: 0 0 .35rem; }
.is-style-jml-review cite { display: block; font: normal 600 .85rem var(--wp--preset--font-family--display); color: var(--wp--preset--color--ink-soft); }
.is-style-jml-dark .is-style-jml-review cite { color: var(--jml-mist); }
.is-style-jml-review cite::before { content: "\2014\00a0"; }

/* Side effects list (AI) */
.is-style-jml-side-effects { list-style: none; margin: 1.25rem 0; padding: 1rem 1.25rem; background: #fff; border: 1px solid #DDD5C6; border-radius: 10px; font-size: 1rem; }
.is-style-jml-side-effects::before { content: "Side effects may include:"; display: block; font: 500 .8rem var(--wp--preset--font-family--mono); color: var(--wp--preset--color--teal-700); margin-bottom: .5rem; }
.is-style-jml-side-effects li { position: relative; padding-left: 1.6rem; margin: .35rem 0; }
.is-style-jml-side-effects li::before { content: "\26A0\FE0E"; position: absolute; left: 0; color: var(--wp--preset--color--teal-700); }

/* AI section texture */
.jml-ai { position: relative; isolation: isolate; }
.jml-ai::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgb(15 92 89 / .10) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }

/* Reading order */
.jml-order { margin-top: clamp(3rem, 6vw, 4.5rem) !important; padding-top: 2rem; border-top: 1px solid var(--wp--preset--color--charcoal-600); }
.jml-order__title { font-family: var(--wp--preset--font-family--display); font-size: .85rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--jml-mist) !important; font-weight: 700; }
.jml-order__list { gap: 1rem; }
.jml-order__card { position: relative; gap: 1rem; padding: 1rem; border-radius: 10px; background: var(--wp--preset--color--charcoal-700); border: 1px solid var(--wp--preset--color--charcoal-600); transition: border-color .15s, background-color .15s; }
.jml-order__card.is-start { border: 2px solid var(--wp--preset--color--teal-300); }
.jml-order__card:hover, .jml-order__card:focus-within { border-color: var(--wp--preset--color--teal-300); background: var(--wp--preset--color--charcoal-600); }
.jml-order__card .wp-block-image { flex: 0 0 92px; margin: 0; }
.jml-order__card p { margin: 0; }
.jml-order__num { font: 700 .8rem var(--wp--preset--font-family--display); letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--teal-300); }
.jml-pill { display: inline-block; background: var(--wp--preset--color--teal-300); color: var(--wp--preset--color--charcoal-900); border-radius: 999px; padding: .15rem .5rem; font-size: .72rem; letter-spacing: .06em; margin-left: .3rem; }
.jml-order__name { font: 750 1.2rem/1.2 var(--wp--preset--font-family--display); }
.jml-order__name a { color: #fff !important; text-decoration: none; }
.jml-order__name a::before { content: ""; position: absolute; inset: 0; }
.jml-order__name a:hover { text-decoration: underline; }
.jml-order__name a:focus-visible { outline: none; box-shadow: none; text-decoration: underline; }
.jml-order__card:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--amber); outline-offset: 3px; }
.jml-order__line { font-size: .98rem; line-height: 1.45; color: var(--jml-mist); }
.jml-order__line strong { font-weight: 700; color: #F3EEE6; }
.jml-links { margin-top: 1.5rem !important; }
@media (min-width: 600px) and (max-width: 1023px) {
	.jml-order__list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.jml-order__card { flex-direction: column; }
	.jml-order__card .wp-block-image { flex-basis: auto; width: 110px; }
}

/* ---------- Meet John ---------- */
.jml-author-photo img { aspect-ratio: 640 / 588; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .45); width: 100%; height: auto; }
.jml-signoff { font-style: italic; border-left: 3px solid var(--wp--preset--color--teal-700); padding-left: 1rem; }
.jml-signoff span { display: block; font: normal 600 .9rem var(--wp--preset--font-family--display); color: var(--wp--preset--color--ink-soft); margin-top: .3rem; }

/* ---------- Social profile links (Meet John + footer; extend via jmlanham_social_links()) ---------- */
.jml-social { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.15rem; max-width: 100%; }
.jml-social li { margin: 0; }
.jml-social__link {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 44px;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: .2em;
	color: var(--wp--preset--color--teal-700);
}
.jml-social__link:hover { color: var(--wp--preset--color--ink); }
.jml-social__icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; display: block; }
.is-style-jml-dark .jml-social__link,
.jml-footer .jml-social__link { color: var(--wp--preset--color--teal-200) !important; }
.is-style-jml-dark .jml-social__link:hover,
.jml-footer .jml-social__link:hover { color: #fff !important; }
.jml-footer .jml-social { margin-top: .85rem; }



/* ---------- Meet John: author-event photo grid ---------- */
.jml-event-photos {
	margin-top: clamp(2.25rem, 4vw, 3.25rem);
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1160px);
}
.jml-event-photos__eyebrow { margin: 0 0 1rem; }
.jml-event-photos__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem 0.85rem;
}
@media (min-width: 782px) {
	.jml-event-photos__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.15rem 0.9rem; }
}
.jml-event-photos__item { margin: 0; }
.jml-event-photos__open {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	border-radius: 10px;
}
.jml-event-photos__open:hover { color: var(--wp--preset--color--ink); }
.jml-event-photos__frame {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 10px;
	background: var(--wp--preset--color--paper);
	box-shadow: 0 10px 24px -16px rgb(0 0 0 / .4);
}
.jml-event-photos__frame img,
.jml-event-photos__frame picture,
.jml-event-photos__frame picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.jml-event-photos__caption {
	display: block;
	margin-top: .55rem;
	font: 500 .8rem/1.4 var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--ink);
}
.jml-event-photos__open:hover .jml-event-photos__caption,
.jml-event-photos__open:focus-visible .jml-event-photos__caption {
	text-decoration: underline;
	text-underline-offset: .15em;
}

/* Lightbox: native <dialog>; Escape, Close button, and backdrop click all dismiss it. */
.jml-lightbox {
	width: min(92vw, 1100px);
	max-width: 92vw;
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	box-shadow: 0 24px 64px -16px rgb(0 0 0 / .6);
}
.jml-lightbox::backdrop {
	background: rgb(17 20 22 / .88);
}
.jml-lightbox__box {
	position: relative;
	padding: 3.25rem 1.15rem 1.25rem;
}
.jml-lightbox__close {
	position: absolute;
	top: .65rem;
	right: .65rem;
	z-index: 1;
	min-height: 44px;
	min-width: 44px;
	padding: 0 .9rem;
	border: 2px solid var(--wp--preset--color--charcoal-900);
	border-radius: 6px;
	background: var(--wp--preset--color--charcoal-900);
	color: var(--wp--preset--color--paper);
	font: 700 .85rem/1 var(--wp--preset--font-family--display);
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}
.jml-lightbox__close:hover {
	background: var(--wp--preset--color--charcoal-700);
	border-color: var(--wp--preset--color--charcoal-700);
}
.jml-lightbox__figure { margin: 0; }
.jml-lightbox__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(92vh - 8.5rem);
	margin: 0 auto;
	object-fit: contain;
	border-radius: 8px;
}
.jml-lightbox__caption {
	margin: .85rem 0 0;
	font: 500 .95rem/1.45 var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--ink);
	text-align: center;
}
@media (prefers-reduced-motion: reduce) {
	.jml-lightbox { transition: none; }
}

/* ---------- Latest posts ---------- */
.jml-updates { border-top: 1px solid #E2DACB; }
.jml-updates__head h2 { margin: 0; }
.jml-updates__head p { margin: 0; }
.jml-post-card { position: relative; height: 100%; background: #fff; border: 1px solid #E2DACB; border-radius: 10px; padding: 1.25rem 1.25rem 1.4rem; transition: border-color .15s, box-shadow .15s; }
.jml-post-card:hover, .jml-post-card:focus-within { border-color: var(--wp--preset--color--teal-700); box-shadow: 0 10px 24px -16px rgb(0 0 0 / .35); }
.jml-post-card__meta { font: 600 .78rem var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--ink-soft); }
.jml-post-card__meta a { color: var(--wp--preset--color--ink-soft); position: relative; z-index: 1; }

.jml-post-card .wp-block-post-title { margin: 0; line-height: 1.25; }
.jml-post-card .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.jml-post-card .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; }
.jml-post-card:hover .wp-block-post-title a, .jml-post-card .wp-block-post-title a:focus-visible { text-decoration: underline; }

/* ---------- Newsletter (Mailchimp plugin form) ---------- */
.jml-signup { background: linear-gradient(135deg, var(--wp--preset--color--charcoal-900), #0F2A2A) !important; }
.jml-setup-box { background: rgb(255 255 255 / .04); border: 2px dashed #F6D98A; border-radius: 14px; padding: 1.5rem; font: 500 .95rem/1.5 var(--wp--preset--font-family--display); }
.jml-setup-box code { color: #fff; background: rgb(255 255 255 / .1); padding: .05em .35em; border-radius: 4px; }
.jml-flag { display: inline-flex; gap: .35em; align-items: center; font: 700 .75rem/1 var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .06em; padding: .4em .65em; border: 2px dashed currentColor; border-radius: 4px; background: #FFF4D6; color: #5A3E00; }

.jml-signup__form-col:not(:has(.mc_container, .mc_signup_form, .mc_error_msg)) { display: none; }

/* The section already has a heading; hide the plugin's duplicate heading/subheader. */
.jml-signup .mc_custom_border_hdr,
.jml-signup .mc_subheader { display: none; }

.jml-signup .mc_container,
.jml-signup .wp-block-mailchimp-mailchimp .mc_container {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	border: 1px solid #E2DACB;
	border-radius: 10px;
	padding: 1.5rem 1.5rem 1.35rem;
}
.jml-signup .mc_form_inside { margin: 0; }
.jml-signup .mc_merge_var { margin: 0 0 1rem; }
.jml-signup .mc_var_label,
.jml-signup .mc_interest_label,
.jml-signup .mc_email_format,
.jml-signup .mc_address_label,
.jml-signup .mc_interests_header {
	display: block;
	margin: 0 0 .4rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: .92rem;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}
.jml-signup .mc_required { margin-left: .2em; color: var(--wp--preset--color--ink); }
.jml-signup .mc_input,
.jml-signup select.mc_select,
.jml-signup .mc_address_label ~ select {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	margin: 0;
	padding: .7rem .85rem;
	box-sizing: border-box;
	border: 1.5px solid #8A8378;
	border-radius: 8px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.4;
}
.jml-signup .mc_help { display: block; margin-top: .35rem; font-size: .85rem; color: var(--wp--preset--color--ink-soft); }
.jml-signup .mc-indicates-required {
	margin: .25rem 0 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: .82rem;
	color: var(--wp--preset--color--ink-soft);
}
.jml-signup .mc_signup_submit { text-align: left; margin: 0; }
.jml-signup .mc_signup_submit_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 10rem;
	min-height: 48px;
	margin: .25rem 0 0;
	padding: .7rem 1.25rem;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--teal-700);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: .01em;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease;
}
.jml-signup .mc_signup_submit_button:hover { background: #0A4543; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
	.jml-signup .mc_signup_submit_button:hover { transform: translateY(-1px); }
}
.jml-signup .mc_form_inside > div:has(input[name="mailchimp_sf_alt_email"]) {
	display: none !important;
}

.jml-signup .mc_unsub_link { margin-top: 1rem; text-align: left; }
.jml-signup .mc_unsub_link a {
	font-family: var(--wp--preset--font-family--display);
	font-size: .85rem;
	font-weight: 500;
	color: var(--wp--preset--color--teal-700) !important;
}

/* Error/success: meaning is in the text prefix + icon, not color alone (red-green colorblind). */
.jml-signup .mc_message_wrapper:empty,
.jml-signup .mc_message_wrapper:not(:has(.mc_error_msg, .mc_success_msg)) { margin: 0; }
.jml-signup .mc_error_msg,
.jml-signup .mc_success_msg {
	display: block;
	margin: 0 0 1rem;
	padding: .75rem 1rem .75rem 1rem;
	border-radius: 8px;
	border: 2px solid var(--wp--preset--color--ink);
	background: #fff;
	color: var(--wp--preset--color--ink) !important;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.4;
}
.jml-signup .mc_error_msg a,
.jml-signup .mc_success_msg a { color: var(--wp--preset--color--teal-700) !important; }
.jml-signup .mc_error_msg {
	border-style: solid;
	border-left-width: 8px;
	background: #F7F3EC;
}
.jml-signup .mc_error_msg::before {
	content: "⚠ Error: ";
	font-weight: 800;
}
.jml-signup .mc_success_msg {
	border-style: double;
	border-left-width: 8px;
	border-color: var(--wp--preset--color--teal-700);
	background: #E7F3F2;
}
.jml-signup .mc_success_msg::before {
	content: "✓ Success: ";
	font-weight: 800;
}

/* ---------- Footer ---------- */
.jml-footer { font-family: var(--wp--preset--font-family--display); }
.jml-footer p { color: var(--jml-mist); }
.jml-footer p.jml-footer__brand { color: #fff; font: 800 1.45rem/1 var(--wp--preset--font-family--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .75rem; }
.jml-footer__h { font-size: .8rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--jml-mist) !important; font-weight: 700; }
.jml-footer__list { list-style: none; padding: 0; margin: 0; }
.jml-footer__list li { margin: .15rem 0; }
.jml-footer__list a { display: inline-block; padding: .3rem 0; color: #F3EEE6 !important; text-decoration: none; }
.jml-footer__list a:hover { text-decoration: underline; color: var(--wp--preset--color--teal-200) !important; }
.jml-footer__legal { margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--wp--preset--color--charcoal-600); font-size: .85rem; }
.jml-footer__legal p { max-width: 60em; }

/* ---------- Book CPT pages ---------- */
.jml-book-meta { font-family: var(--wp--preset--font-family--display); font-size: .92rem; color: var(--wp--preset--color--ink-soft); margin-top: 1rem; }
.jml-book-meta p { margin: 0; }
.jml-book-single .wp-block-post-content { margin-top: 1.5rem; }
.jml-library .wp-block-post-featured-image { max-width: 220px; }

/* Tablet: stack the hero so the "Where should you start?" cards get full width */
@media (max-width: 1023px) {
	.jml-hero .wp-block-columns { flex-wrap: wrap !important; }
	.jml-hero .wp-block-column { flex-basis: 100% !important; }
	.jml-start { max-width: 560px; }
}
