/* ==========================================================================
   FEA theme styles
   Colours, fonts and sizes come from theme.json. This file adds the
   component styles used by the page patterns, plus phone/tablet tweaks.
   ========================================================================== */

:root {
	--fea-coral: #EE8F81;
	--fea-coral-deep: #C4604F;
	--fea-doll: #F9CFC3;
	--fea-lavender: #D5A8C5;
	--fea-satin: #FFF7EF;
	--fea-nero: #262626;
	--fea-muted: #5B504C;
	--fea-line: #F2E2D8;
	--fea-mesh: radial-gradient(circle at 20% 15%, #F9CFC3 0%, transparent 50%), radial-gradient(circle at 85% 90%, #D5A8C5aa 0%, transparent 55%), radial-gradient(circle at 70% 25%, #FFF7EF66 0%, transparent 45%), radial-gradient(circle at 15% 80%, #EE8F81 0%, transparent 50%), #EE8F81;
	--fea-section-y: clamp(3.5rem, 7vw, 5.5rem);
	--fea-radius: 28px;
}

body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }

/* ---------- Typography helpers ---------- */
.wp-block-heading em, .fea-display em { font-style: italic; color: var(--fea-coral); }
.fea-display { font-family: var(--wp--preset--font-family--display); font-weight: 400; line-height: 1.15; }
.fea-eyebrow {
	font-size: 0.8125rem !important; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--fea-coral-deep); line-height: 1.4; margin-bottom: 0.25rem;
}
.fea-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.7; }
.fea-muted { color: var(--fea-muted); }
.fea-num {
	font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 2.5rem;
	line-height: 1; color: var(--fea-coral); margin: 0;
}
.fea-signoff { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 2.25rem; line-height: 1; }
.fea-quote-mark { font-family: var(--wp--preset--font-family--display); font-size: 4.5rem; line-height: 0.6; color: var(--fea-coral); margin: 0; }

/* ---------- Sections ---------- */
.fea-section { padding-top: var(--fea-section-y); padding-bottom: var(--fea-section-y); }
.fea-section--tight { padding-top: calc(var(--fea-section-y) * 0.6); padding-bottom: calc(var(--fea-section-y) * 0.6); }
.fea-section > * + * { margin-block-start: clamp(2rem, 4vw, 3rem); }
.fea-mesh { background: var(--fea-mesh) !important; color: #fff; }
.fea-mesh .wp-block-heading, .fea-mesh p { color: #fff; }
.fea-mesh .wp-block-heading em, .fea-mesh .fea-display em { color: var(--fea-satin); }
.fea-mesh .fea-eyebrow { color: #fff; }
.fea-mesh p.fea-lead, .fea-mesh p.fea-soft { color: var(--fea-satin); font-weight: 500; }
.fea-dark { background: var(--fea-nero) !important; color: var(--fea-satin); }
.fea-dark .wp-block-heading, .fea-dark p, .fea-dark li { color: var(--fea-satin); }
.fea-dark .wp-block-heading em, .fea-dark .fea-display em { color: var(--fea-doll); }
.fea-dark .fea-eyebrow { color: var(--fea-doll); }
.fea-dark a { color: var(--fea-satin); }
.fea-dark .fea-muted { color: #e9ddd6; }

/* Section heading row: heading left, intro right */
.fea-head-row { align-items: flex-end !important; }

/* ---------- Badges & pills ---------- */
.fea-badge {
	display: inline-flex !important; align-items: center; gap: 0.6rem; width: fit-content;
	padding: 0.45rem 1.1rem !important; border-radius: 999px; border: 1px solid rgba(255,247,239,0.5);
	background: rgba(255,247,239,0.2); font-size: 0.8125rem !important; font-weight: 600;
	letter-spacing: 0.2em; text-transform: uppercase; color: #fff; line-height: 1.4;
}
.fea-badge--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.fea-chip {
	display: inline-flex; align-items: center; padding: 0.35rem 0.9rem; border-radius: 999px;
	background: var(--fea-doll); color: #8f4a3e; font-size: 0.75rem !important; font-weight: 600;
	letter-spacing: 0.14em; text-transform: uppercase; width: fit-content; line-height: 1.5;
}
.fea-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.fea-tags p { margin: 0; padding: 0.7rem 1.35rem; border-radius: 999px; border: 1px solid var(--fea-line); font-size: 1rem; line-height: 1.3; }
.fea-tags p:nth-child(4n+1) { background: var(--fea-doll); }
.fea-tags p:nth-child(4n+2) { background: #fff; }
.fea-tags p:nth-child(4n+3) { background: var(--fea-lavender); }
.fea-tags p:nth-child(4n+4) { background: var(--fea-satin); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-fea-light .wp-block-button__link { background: var(--fea-satin); color: var(--fea-nero); }
.wp-block-button.is-style-fea-light .wp-block-button__link:hover { background: #fff; color: var(--fea-nero); }
.wp-block-button.is-style-fea-outline .wp-block-button__link { background: transparent; color: var(--fea-nero); border: 1.5px solid var(--fea-nero); }
.fea-dark .wp-block-button.is-style-fea-outline .wp-block-button__link { color: var(--fea-satin); border-color: rgba(255,247,239,.5); }
.wp-block-button.fea-shadow .wp-block-button__link { box-shadow: 0 14px 30px rgba(38,38,38,.2); }
.fea-text-link a, a.fea-text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--fea-coral); }

/* ---------- Cards ---------- */
.wp-block-group.is-style-fea-card, .fea-card {
	border-radius: var(--fea-radius); padding: clamp(1.5rem, 3vw, 2.5rem) !important;
}
.fea-card--line { border: 1px solid var(--fea-line); }
.fea-card--tilt { transform: rotate(1.5deg); box-shadow: 0 30px 60px rgba(143,74,62,.2); }
.fea-card > * + * { margin-block-start: 1rem; }
.fea-card .wp-block-heading { margin-block-start: 0.75rem; }
.fea-card-foot { margin-top: auto !important; font-size: 0.875rem; line-height: 1.5; }
.wp-block-column > .fea-card:only-child, .wp-block-column > .is-style-fea-card:only-child { height: 100%; }

/* Press logo cards: every logo sits in the same fixed box, centred, whatever its shape. The publication name shows until a logo is added. */
.fea-media-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 9rem; }
.fea-media-logo > * + * { margin-block-start: 0; }
.fea-media-logo .wp-block-image { margin: 0 !important; width: 100%; display: flex; justify-content: center; }
.fea-media-logo .wp-block-image img { width: 100% !important; max-width: 11rem; height: 3.5rem !important; object-fit: contain; }
.fea-media-logo:has(.wp-block-image img[src]) > p { display: none; }
.fea-card, .is-style-fea-card { display: flex; flex-direction: column; }

/* Image placeholders inside cards */
.fea-card-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
/* Round avatar image styles (Image block > Styles): profile photos on the homepage wins. */
.wp-block-image.is-style-fea-avatar, .wp-block-image.is-style-fea-avatar-lg { flex: none; margin: 0; }
.wp-block-image.is-style-fea-avatar img, .wp-block-image.is-style-fea-avatar-lg img { display: block; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 6px 16px -6px rgba(38, 38, 38, .35); }
.wp-block-image.is-style-fea-avatar img { width: 56px; height: 56px; }
.wp-block-image.is-style-fea-avatar-lg img { width: 104px; height: 104px; box-shadow: 0 0 0 4px #fff, 0 10px 24px -10px rgba(38, 38, 38, .35); }
.fea-dark .wp-block-image.is-style-fea-avatar img { box-shadow: 0 0 0 3px rgba(255, 247, 239, .9), 0 6px 16px -6px rgba(0, 0, 0, .5); }
.fea-card > .fea-win-foot { margin-top: auto !important; padding-top: 1.25rem; }
.fea-win-foot .fea-card-foot { margin: 0 !important; }
@media (max-width: 600px) { .fea-feature-person { flex-direction: column; align-items: flex-start !important; } }
/* Card images sit at the bottom of the card, so a row of cards lines up whatever the text length. */
.fea-card > .fea-card-img { margin-top: auto !important; padding-top: 1rem; }
/* Homepage feature cards: 2 x 2 on tablets instead of four narrow columns. */
@media (min-width: 600px) and (max-width: 1024px) {
	.wp-block-columns:has(> .wp-block-column .fea-card-img) { flex-wrap: wrap !important; }
	.wp-block-columns:has(> .wp-block-column .fea-card-img) > .wp-block-column { flex-basis: calc(50% - 0.75rem) !important; flex-grow: 0; }
}
.fea-card-img--contain img { object-fit: contain; }

/* ---------- Images ---------- */
.wp-block-image.is-style-fea-arch img { border-radius: 999px 999px 24px 24px; aspect-ratio: 13 / 15; object-fit: cover; width: 100%; }
.wp-block-image.is-style-fea-arch-down img { border-radius: 24px 24px 999px 999px; aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.fea-img-border img { border: 2px solid var(--fea-satin); }
.fea-rounded img { border-radius: 24px; }

/* Floating stat card over the hero image */
.fea-hero-media { position: relative; }
.fea-float {
	position: absolute; left: 0; bottom: 12%; width: min(260px, 70%); padding: 1.25rem 1.5rem !important;
	border-radius: 20px; background: var(--fea-satin); color: var(--fea-nero); box-shadow: 0 20px 40px rgba(38,38,38,.14);
}
.fea-float p { color: var(--fea-nero) !important; margin: 0; }
.fea-float .fea-stat-num { color: var(--fea-nero) !important; }

/* ---------- Stats ---------- */
.fea-stat-num { font-family: var(--wp--preset--font-family--display); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; margin: 0; }
.fea-stat-label { font-size: 0.8125rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; margin-top: 0.4rem !important; }
.fea-dark .fea-stat-num { color: var(--fea-doll); }
.fea-stats-row { gap: clamp(1.5rem, 4vw, 3rem) !important; }
.fea-stats-row > * { margin: 0 !important; }
.fea-strip .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255,247,239,.15); }
.fea-strip .wp-block-column { text-align: center; padding: 0 1rem; }
.fea-outlets { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; border-top: 1px solid rgba(255,247,239,.12); padding-top: 2rem; }
.fea-outlets p { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; color: rgba(255,247,239,.8); white-space: nowrap; }
.fea-outlets p.fea-outlets-label { font-family: var(--wp--preset--font-family--body); font-size: 0.75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,247,239,.6); }

/* ---------- Timeline / numbered rows ---------- */
.fea-steps .wp-block-column { border-top: 2px solid var(--fea-coral); padding-top: 1.75rem; }
.fea-steps .wp-block-column.is-today { border-top-color: var(--fea-coral-deep); }
.fea-chapter { border-top: 1px solid var(--fea-line); padding-top: 2rem; gap: 1.5rem !important; }
.fea-chapter > .wp-block-column:first-child { flex-basis: 90px !important; flex-grow: 0 !important; }

/* Podcast page: latest episodes, listed from the Podcast category */
.fea-podcast-list .wp-block-post-template { display: flex; flex-direction: column; gap: 2rem; }
.fea-podcast-list .fea-chapter { margin: 0; }
.fea-podcast-list .wp-block-post-date { margin: 0; }
.fea-podcast-list .wp-block-post-title { margin-block: 0.4rem; }
.fea-podcast-list .wp-block-post-title a, .fea-podcast-latest .wp-block-post-title a { text-decoration: none; }
.fea-podcast-list .wp-block-post-title a:hover, .fea-podcast-latest .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fea-podcast-list .wp-block-post-excerpt__excerpt { margin: 0; color: var(--fea-muted); }
.fea-podcast-thumb img { border-radius: 12px; }
/* 16:9 episode thumbnails need a wider first column than the numbered rows */
.fea-podcast-list .fea-chapter > .wp-block-column:first-child { flex-basis: 176px !important; }
@media (max-width: 781px) { .fea-podcast-list .fea-chapter > .wp-block-column:first-child { flex-basis: 112px !important; } }
.fea-podcast-latest .wp-block-post-featured-image img { border-radius: 24px; }
.fea-podcast-latest .fea-podcast-meta { margin-top: 1.25rem; }
.fea-podcast-latest .fea-podcast-meta > * { margin: 0; }
.fea-podcast-latest .wp-block-post-title { margin-top: 0.5rem; font-size: 1.6rem; line-height: 1.25; }

/* ---------- Quotes ---------- */
.fea-pullquote { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.4; margin: 0; }
.fea-quote-card blockquote, .fea-quote-card .fea-quote { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; line-height: 1.5; margin: 0; }
.fea-lined-quote { border-left: 3px solid var(--fea-coral); padding-left: 1.25rem; font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.35rem; line-height: 1.45; }
.fea-tilt { transform: rotate(1.5deg); }

/* ---------- Header ---------- */
.fea-header { border-bottom: 1px solid var(--fea-line); background: var(--fea-satin); position: relative; z-index: 50; }
.fea-header .fea-logo img { height: 56px; width: auto; }
.fea-header .wp-block-navigation a { text-decoration: none; }
.fea-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--fea-coral); }
.fea-header .wp-block-buttons .wp-block-button__link { padding: 0.8rem 1.6rem; font-size: 0.9375rem; }
.fea-login a { font-weight: 500; text-decoration: none; font-size: 0.9375rem; }

/* ---------- Footer ---------- */
.fea-footer .fea-logo img { height: 72px; width: auto; }
.fea-footer ul { list-style: none; padding: 0; margin: 0; }
.fea-footer li { margin: 0 0 0.75rem; }
.fea-footer a { text-decoration: none; color: var(--fea-satin); }
.fea-footer a:hover { color: var(--fea-doll); }
.fea-footer-bottom { border-top: 1px solid rgba(255,247,239,.15); padding-top: 1.5rem; font-size: 0.8125rem; color: #d9ccc5; }
.fea-footer-bottom p { color: #d9ccc5 !important; }

/* ---------- Blog ---------- */
.wp-block-categories.is-style-fea-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wp-block-categories.is-style-fea-pills li { margin: 0; }
.wp-block-categories.is-style-fea-pills a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem; border-radius: 999px; background: #fff;
	border: 1px solid #E6D3C8; font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--fea-nero);
}
.wp-block-categories.is-style-fea-pills a:hover, .wp-block-categories.is-style-fea-pills .current-cat a { background: var(--fea-nero); color: var(--fea-satin); border-color: var(--fea-nero); }
.fea-search .wp-block-search__inside-wrapper { border-radius: 999px; border: 1px solid #E6D3C8; background: #fff; padding: 6px 6px 6px 20px; }
.fea-search .wp-block-search__input { border: 0; background: transparent; font-family: inherit; font-size: 1rem; }
.fea-search .wp-block-search__button { border-radius: 999px; background: var(--fea-nero); color: var(--fea-satin); border: 0; padding: 0.6rem 1.4rem; font-weight: 600; margin: 0; }

/*
 * Featured post: the 16:9 thumbnail sits flush in the card and sets its height.
 * The text column is a size container, so it takes the image's height instead
 * of stretching the card; its type scales with that height and long titles and
 * excerpts are clamped to fit.
 */
.fea-post-featured { background: #fff; border: 1px solid var(--fea-line); border-radius: 32px; overflow: hidden; align-items: stretch !important; }
.fea-post-featured .wp-block-post-featured-image { margin: 0; }
.fea-post-featured .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.fea-post-featured .fea-post-featured-body { container-type: size; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(0.5rem, 4cqh, 1.1rem); padding: clamp(1.25rem, 2.5vw, 2.75rem) clamp(1.25rem, 3vw, 3rem) !important; }
.fea-post-featured .fea-post-featured-body > * { margin: 0 !important; }
.fea-post-featured .fea-post-featured-body .wp-block-post-title { font-size: clamp(1.3rem, 9cqh, 2.3rem); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.fea-post-featured .wp-block-post-excerpt__excerpt { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@container (max-height: 270px) {
	.fea-post-featured-body .wp-block-post-title { -webkit-line-clamp: 3; }
	.fea-post-featured-body .wp-block-post-excerpt { display: none; }
}
/* No thumbnail: let the text set the card height. */
.fea-post-featured:not(:has(.fea-post-featured-media img)) .fea-post-featured-body { container-type: normal; }
.fea-post-card .wp-block-post-featured-image img, .fea-post-card .fea-noimg { border-radius: 24px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.fea-post-card .wp-block-post-featured-image { margin-bottom: 1.1rem; }
.fea-post-card .wp-block-post-title a, .fea-post-featured .wp-block-post-title a { text-decoration: none; }
.fea-post-card .wp-block-post-title a:hover, .fea-post-featured .wp-block-post-title a:hover { color: var(--fea-coral-deep); }
.fea-post-meta { font-size: 0.8125rem; gap: 0.6rem !important; color: var(--fea-muted); }
.fea-post-meta .wp-block-post-terms a { color: var(--fea-coral-deep); font-weight: 600; text-decoration: none; }
.fea-post-card .wp-block-post-excerpt__excerpt { color: var(--fea-muted); font-size: 0.9375rem; }
.fea-post-card .wp-block-post-excerpt__more-link, .fea-read-more { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--fea-coral); }
.fea-post-grid .wp-block-post-template { gap: 3.5rem 2rem !important; }
.wp-block-query-pagination { gap: 0.6rem; justify-content: center; }
.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid #E6D3C8; text-decoration: none; font-weight: 600; margin: 0 0.2rem;
}
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--fea-nero); color: var(--fea-satin); border-color: var(--fea-nero); }
.wp-block-query-pagination-next, .wp-block-query-pagination-previous { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.3rem; border-radius: 999px; border: 1px solid #E6D3C8; text-decoration: none; font-weight: 600; }
/* "Podcast links": the Buttons block style (inc/podcast-buttons.php). Cards with service icons, centred on one line, same height whatever the count. */
.wp-block-buttons.is-style-fea-listen { display: flex; flex-wrap: nowrap !important; justify-content: center; align-items: stretch; gap: 0.75rem; margin-block: 1.75rem; }
.is-style-fea-listen .wp-block-button { display: flex; flex: 0 1 15.5rem; min-width: 0; margin: 0; }
.is-style-fea-listen .wp-block-button__link {
	display: grid; grid-template-columns: 2.75rem 1fr; grid-template-rows: auto auto; column-gap: 0.85rem; align-content: center;
	width: 100%; padding: 0.85rem 1.1rem 0.85rem 0.85rem; text-align: left; text-decoration: none;
	background: #fff; color: var(--fea-nero); border: 1px solid var(--fea-line); border-radius: 20px;
	font-size: 1rem; font-weight: 600; line-height: 1.25; box-shadow: 0 6px 18px -12px rgba(38, 38, 38, .25);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.is-style-fea-listen .wp-block-button__link:hover, .is-style-fea-listen .wp-block-button__link:focus-visible { background: #fff; color: var(--fea-nero); border-color: #E6D3C8; transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(38, 38, 38, .35); }
/* Icon tile, then "Listen on" above the service name (the link text). */
.is-style-fea-listen .wp-block-button__link::before {
	content: ""; grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 2.75rem; height: 2.75rem; border-radius: 12px;
	background: var(--fea-listen-icon) center / 1.5rem no-repeat, var(--fea-listen-tile);
}
.is-style-fea-listen .wp-block-button__link::after { content: var(--fea-listen-eyebrow, "Listen on"); grid-column: 2; grid-row: 1; align-self: end; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fea-muted); }
.is-style-fea-listen-apple, .is-style-fea-listen-review { --fea-listen-tile: linear-gradient(180deg, #F452FF, #832BC1); --fea-listen-icon: url(../images/icons/apple-podcasts.svg); }
.is-style-fea-listen-review { --fea-listen-eyebrow: "Apple Podcasts"; }
.is-style-fea-listen-spotify { --fea-listen-tile: #191414; --fea-listen-icon: url(../images/icons/spotify.svg); }
.is-style-fea-listen-youtube { --fea-listen-tile: #FF0000; --fea-listen-icon: url(../images/icons/youtube.svg); --fea-listen-eyebrow: "Watch on"; }
@media (max-width: 600px) {
	/* Phones: equal cards, icon on top, name below (wrapping if it must), so two or three always fit one row. */
	.is-style-fea-listen { gap: 0.5rem; }
	.is-style-fea-listen .wp-block-button { flex: 1 1 0; }
	.is-style-fea-listen .wp-block-button__link { grid-template-columns: 1fr; row-gap: 0.5rem; justify-items: center; padding: 0.85rem 0.5rem; text-align: center; font-size: 0.8125rem; }
	.is-style-fea-listen .wp-block-button__link::before { grid-row: 1; grid-column: 1; width: 2.5rem; height: 2.5rem; background-size: 1.35rem, auto; }
	.is-style-fea-listen .wp-block-button__link::after { display: none; }
}
/* Listing pagination: always one line. Phones get arrow-only Previous/Next and just the first, current and last page. */
.fea-pagination { flex-wrap: nowrap !important; gap: 0.4rem; }
.fea-pagination .wp-block-query-pagination-numbers { display: flex; align-items: center; flex-wrap: nowrap; }
.fea-pagination .wp-block-query-pagination-next, .fea-pagination .wp-block-query-pagination-previous { white-space: nowrap; flex-shrink: 0; }
.fea-pagination .page-numbers.dots { width: auto; border: 0; margin: 0 0.1rem; }
@media (max-width: 781px) {
	.fea-pagination .wp-block-query-pagination-next, .fea-pagination .wp-block-query-pagination-previous { font-size: 0; width: 46px; padding: 0; justify-content: center; }
	.fea-pagination .wp-block-query-pagination-next-arrow, .fea-pagination .wp-block-query-pagination-previous-arrow { font-size: 1rem; margin: 0; }
	.fea-pagination .page-numbers { width: 40px; height: 40px; margin: 0 0.1rem; }
	.fea-pagination .page-numbers:not(.current):not(:first-child):not(:last-child):not(.dots) { display: none; }
}

/* Single post */
/*
 * Single post header: meta and title beside the thumbnail. The thumbnail keeps
 * its own shape and is never enlarged by more than 15% (max-width is set per
 * image in functions.php), so small images from older posts stay sharp.
 */
.fea-single-head { gap: clamp(2rem, 5vw, 4.5rem) !important; }
.fea-single-head > .wp-block-column { margin: 0 !important; }
.fea-single-head-text { display: flex; flex-direction: column; gap: 1.25rem; }
.fea-single-head-text > * { margin: 0 !important; }
.fea-single-hero .wp-block-post-title { font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1.1; }
.fea-single-head-media { display: flex; justify-content: flex-end; flex-basis: min(560px, 45%) !important; }
.fea-single-image { margin: 0; width: 100%; }
.fea-single-image img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 18px 40px -24px rgba(38, 38, 38, .35); }
.fea-single-head:not(:has(.fea-single-image)) .fea-single-head-media { display: none; }
.fea-section.fea-single-body { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.fea-single-body .fea-prose > :first-child { margin-top: 0; }
@media (max-width: 900px) {
	.fea-single-head { flex-wrap: wrap !important; row-gap: 1.75rem !important; }
	.fea-single-head > .wp-block-column { flex-basis: 100% !important; }
	.fea-single-head-media { justify-content: center; }
	.fea-section.fea-single-body { padding-top: 2.25rem; }
}
.fea-prose { font-size: 1.125rem; line-height: 1.8; overflow-wrap: break-word; }
.fea-prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 2.5rem; }
.fea-prose h3 { font-size: clamp(1.4rem, 2.4vw, 1.65rem); margin-top: 2rem; }
.fea-prose a { text-decoration-color: var(--fea-coral); text-underline-offset: 4px; }
/* Terms (10361) and Privacy (16064) pages: links in FEA coral */
.page-id-10361 .fea-prose a, .page-id-16064 .fea-prose a { color: var(--fea-coral) !important; }
.page-id-10361 .fea-prose a:hover, .page-id-16064 .fea-prose a:hover { color: var(--fea-coral-deep) !important; }
/* [quote] shortcode: the "Facts…" profile box in older member stories. */
.fea-story-facts { display: flex; gap: clamp(1.25rem, 3vw, 2rem); align-items: flex-start; margin-block: 2rem; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--fea-line); border-radius: 24px; font-size: 1rem; line-height: 1.6; }
.fea-story-facts__media { flex: 0 0 clamp(140px, 30%, 220px); margin: 0; }
.fea-story-facts__media img { display: block; width: 100%; height: auto; border-radius: 16px; }
.fea-story-facts__caption { margin-top: 0.6rem; font-size: 0.875rem; line-height: 1.4; color: var(--fea-muted); text-align: center; }
.fea-story-facts__body { flex: 1; min-width: 0; }
.fea-story-facts__body p { margin: 0 0 0.55rem !important; text-align: left !important; }
.fea-story-facts__body p:last-child { margin-bottom: 0 !important; }
.fea-story-facts__body [style*="color"] { color: var(--fea-coral-deep) !important; }
@media (max-width: 600px) {
	.fea-story-facts { flex-direction: column; }
	.fea-story-facts__media { flex-basis: auto; width: min(220px, 70%); }
}
/* Videos pasted into posts come in many fixed sizes: show them all full column width at 16:9. Other embeds just never overflow the column. */
.fea-prose iframe { max-width: 100%; }
.fea-prose iframe:is([src*="youtube.com"], [src*="youtube-nocookie.com"], [src*="player.vimeo.com"], [src*="embed.ted.com"]) { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; margin-block: 2rem; border: 0; border-radius: 16px; }
/* Embed blocks size the video themselves (the iframe fills a 16:9 box): space the block, not the iframe, or the video slides out of its box over whatever follows. */
.fea-prose .wp-block-embed { margin-block: 2rem; }
.fea-prose .wp-block-embed__wrapper iframe { margin: 0; }
.fea-prose .wp-block-embed.is-type-video .wp-block-embed__wrapper { border-radius: 16px; overflow: hidden; }
.fea-prose blockquote, .fea-prose .wp-block-quote {
	margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--fea-coral);
	font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.5rem; line-height: 1.45;
}
.fea-prose img { border-radius: 20px; }
.fea-prose ul li, .fea-prose ol li { margin-bottom: 0.5rem; }
.fea-author { border-radius: 28px; }
.fea-author .wp-block-image img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Forms (fallback styling, also styles embedded forms) ---------- */
.fea-form { display: flex; flex-direction: column; gap: 1rem; }
.fea-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; }
.fea-form input, .fea-form select, .fea-form textarea {
	font-family: inherit; font-size: 1rem; color: var(--fea-nero); border: 1px solid #E6D3C8; border-radius: 14px;
	background: #fff; padding: 0.95rem 1.1rem; width: 100%; box-sizing: border-box;
}
.fea-form button {
	font-family: inherit; font-size: 1rem; font-weight: 600; border: 0; border-radius: 999px; background: var(--fea-nero);
	color: var(--fea-satin); padding: 1.05rem 2rem; cursor: pointer;
}
.fea-form .fea-form-note { font-size: 0.75rem; color: #6b5f5a; text-align: center; margin: 0; }
.fea-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

/* ---------- Waitlist pop-up ---------- */
.fea-modal[hidden] { display: none !important; }
.fea-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.fea-modal__backdrop { position: absolute; inset: 0; background: rgba(38,38,38,.7); }
.fea-modal__dialog {
	position: relative; width: min(700px, 100%); max-height: calc(100vh - 2rem); overflow: hidden; display: flex;
	border-radius: 32px; background: var(--fea-satin); box-shadow: 0 40px 80px rgba(38,38,38,.33);
}
.fea-modal__art { flex: 0 0 220px; background: var(--fea-mesh); display: flex; align-items: flex-end; padding: 28px; box-sizing: border-box; }
.fea-modal__art img { width: 100%; height: auto; }
.fea-modal__body { flex: 1; padding: 48px 44px 40px; position: relative; overflow-y: auto; }
.fea-modal__body > * + * { margin-top: 1rem; }
/* The FEA Create form (white, inside its iframe): round corners. The embed code sets its own border-radius:0, hence !important. */
.fea-modal__form iframe { border-radius: 24px !important; overflow: hidden; }
.fea-modal__close {
	position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
	cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--fea-nero);
}
.fea-modal__close:hover { background: rgba(38,38,38,.06); }
body.fea-modal-open { overflow: hidden; }
/* Desktop: wider pop-up with the colour panel as a bar across the top, logo centred, close button on the bar */
@media (min-width: 782px) {
	.fea-modal__dialog { width: min(860px, 100%); flex-direction: column; }
	.fea-modal__art { flex: 0 0 auto; align-items: center; justify-content: center; padding: 22px 28px; }
	.fea-modal__art img { width: auto; height: 56px; }
	.fea-modal__body { position: static; padding: 36px 56px 32px; }
	.fea-modal__close { top: 20px; right: 20px; color: #fff; }
	.fea-modal__close:hover { background: rgba(255,255,255,.18); }
}
/* Large screens: intro text on the left, form on the right, so the pop-up stays short enough not to scroll */
@media (min-width: 1024px) {
	.fea-modal__dialog { width: min(980px, 100%); }
	.fea-modal__body { padding: 40px 48px 36px 56px; }
	.fea-modal__form { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 40px; row-gap: 0.75rem; }
	.fea-modal__form > * { grid-column: 1; margin: 0 !important; }
	.fea-modal__form > .fea-eyebrow { grid-row: 2; }
	.fea-modal__form > h2 { grid-row: 3; }
	.fea-modal__form > p:not(.fea-eyebrow) { grid-row: 4; }
	.fea-modal__form > iframe, .fea-modal__form > .ep-iFrameContainer { grid-column: 2; grid-row: 1 / -1; align-self: center; }
}

/* ---------- Motion ---------- */
/* Homepage scroll reveal (assets/js/fea.js adds .fea-motion and .fea-reveal). Uses `translate`/`scale`, not `transform`, so tilted cards keep their tilt. */
.fea-motion .fea-reveal {
	opacity: 0; translate: 0 22px;
	transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--fea-reveal-delay, 0ms);
}
.fea-motion .fea-reveal.is-visible { opacity: 1; translate: none; }
/* Homepage hero: text lines rise in one after another, then the photo settles; the floating stat card then drifts gently. CSS only, so it plays from the first paint. */
@keyframes fea-rise { from { opacity: 0; translate: 0 18px; } }
@keyframes fea-settle { from { opacity: 0; scale: .96; } }
@keyframes fea-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.home .fea-hero > .wp-block-column:first-child > * { animation: fea-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.home .fea-hero > .wp-block-column:first-child > :nth-child(2) { animation-delay: .09s; }
.home .fea-hero > .wp-block-column:first-child > :nth-child(3) { animation-delay: .18s; }
.home .fea-hero > .wp-block-column:first-child > :nth-child(4) { animation-delay: .27s; }
.home .fea-hero > .wp-block-column:first-child > :nth-child(n+5) { animation-delay: .36s; }
.home .fea-hero-media { animation: fea-settle 1s cubic-bezier(.2, .7, .2, 1) .15s both; }
.home .fea-hero-media .fea-float { animation: fea-drift 6s ease-in-out 1.4s infinite; }
@media (prefers-reduced-motion: reduce) {
	.fea-motion .fea-reveal { opacity: 1 !important; translate: none !important; }
	.home .fea-hero > .wp-block-column:first-child > *, .home .fea-hero-media, .fea-float { animation: none !important; }
	* { transition: none !important; }
	.fea-card--tilt, .fea-tilt { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.fea-header .fea-login { display: none; }
	.fea-float { left: 1rem; }
	.fea-outlets { justify-content: center; }
	.fea-post-featured { flex-wrap: wrap !important; }
	.fea-post-featured > .wp-block-column { flex-basis: 100% !important; }
	.fea-post-featured .fea-post-featured-body { container-type: normal; gap: 0.9rem; padding: clamp(1.25rem, 4vw, 2.5rem) !important; }
	.fea-post-featured .fea-post-featured-body .wp-block-post-title { font-size: clamp(1.4rem, 4vw, 2rem); display: block; -webkit-line-clamp: unset; }
}

/* ---------- Phone ---------- */
@media (max-width: 781px) {
	:root { --fea-section-y: 3.25rem; }
	.fea-header .fea-logo img { height: 44px; }
	.fea-header .wp-block-buttons .wp-block-button__link { padding: 0.65rem 1.1rem; font-size: 0.8125rem; }
	.fea-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.fea-hero .wp-block-button, .fea-hero .wp-block-button__link { width: 100%; text-align: center; }
	.fea-hero .wp-block-column:last-child { order: -1; }
	.wp-block-image.is-style-fea-arch img { aspect-ratio: 4 / 4.2; }
	.fea-float { position: relative; left: auto; bottom: auto; width: auto; margin-top: -3rem !important; margin-left: 1rem; margin-right: 1rem; }
	.fea-strip .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid rgba(255,247,239,.15); padding-top: 1.5rem; }
	.fea-card--tilt, .fea-tilt { transform: none; }
	.fea-chapter { flex-wrap: nowrap !important; }
	.fea-chapter > .wp-block-column:first-child { flex-basis: 56px !important; }
	.fea-num { font-size: 2rem; }
	.fea-form-row { grid-template-columns: 1fr; }
	.fea-modal__art { display: none; }
	.fea-modal__body { padding: 44px 24px 28px; }
	.fea-stats-row { flex-wrap: wrap; }
	.fea-outlets p { font-size: 1.1rem; }
	.fea-head-row { align-items: flex-start !important; }
}

/* Tick list */
.fea-ticks { list-style: none; padding: 0; margin: 0; }
.fea-ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; font-weight: 500; }
.fea-ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 10px; border-left: 2.5px solid var(--fea-coral-deep); border-bottom: 2.5px solid var(--fea-coral-deep); transform: rotate(-45deg); }

/* Designed pages: sections sit flush against each other */
.wp-block-post-content > .alignfull,
main > .wp-block-post-content:not(.fea-prose) > * { margin-block-start: 0; margin-block-end: 0; }
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }
.fea-section > .alignwide > * + *, .fea-section--tight > .alignwide > * + * { margin-block-start: clamp(2rem, 4vw, 3rem); }
.fea-section > .alignwide > .fea-eyebrow + *, .fea-section > .alignwide .wp-block-column > .fea-eyebrow + * { margin-block-start: 0.5rem; }
/* Safety net for alignment classes (normally provided by WordPress core) */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* ---------- About: fun facts ---------- */
.fea-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.fea-facts li { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: 1rem 1.25rem; font-size: 0.95rem; line-height: 1.5; margin: 0; }
.fea-facts li strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.15rem; color: var(--wp--preset--color--nero); }

/* ---------- Legal pages ---------- */
.fea-legal-side > .fea-card { position: sticky; top: 110px; }
.fea-toc { list-style: none; padding: 0; margin: 0.75rem 0 0; counter-reset: toc; }
.fea-toc li { counter-increment: toc; margin: 0; border-top: 1px solid var(--wp--preset--color--line); }
.fea-toc li:first-child { border-top: 0; }
.fea-toc a { display: flex; gap: 0.75rem; padding: 0.55rem 0; text-decoration: none; color: var(--wp--preset--color--nero); font-size: 0.92rem; }
.fea-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--wp--preset--color--coral-deep); font-weight: 600; font-size: 0.8rem; padding-top: 0.15rem; }
.fea-toc a:hover { color: var(--wp--preset--color--coral-deep); }
.fea-legal-section { scroll-margin-top: 110px; padding-block: 1.75rem; border-top: 1px solid var(--wp--preset--color--line); }
.fea-legal-section:first-child { border-top: 0; padding-top: 0; }
.fea-legal-section > * + * { margin-block-start: 0.9rem; }

/* ---------- Press ---------- */
.fea-press-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fea-press-logo { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 140px; }
.fea-press-logo img { max-width: 220px; height: auto; }

@media (max-width: 781px) {
  .fea-facts { grid-template-columns: 1fr; }
  .fea-legal-side { order: -1; }
  .fea-legal-side > .fea-card { position: static; }
}

/* Light cards sitting on a coral mesh keep dark text */
.fea-mesh .fea-card:not(.fea-dark):not(.fea-mesh), .fea-mesh .fea-card:not(.fea-dark):not(.fea-mesh) p, .fea-mesh .fea-card:not(.fea-dark):not(.fea-mesh) .wp-block-heading, .fea-mesh .fea-card:not(.fea-dark):not(.fea-mesh) a { color: var(--wp--preset--color--nero); }
.fea-mesh .fea-card:not(.fea-dark):not(.fea-mesh) .fea-eyebrow { color: var(--wp--preset--color--coral-deep); }
.fea-mesh .fea-card:not(.fea-dark):not(.fea-mesh) .fea-muted { color: var(--wp--preset--color--muted); }
.fea-chapter .wp-block-heading a { text-decoration: none; }
.fea-chapter .wp-block-heading a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1025px) { .fea-stats-row { flex-wrap: nowrap !important; } }
.fea-toc a::before { flex: 0 0 1.6rem; }
.fea-stat-num { white-space: nowrap; }
.fea-stat-label { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 781px) {
  .fea-stat-label { letter-spacing: 0.08em; font-size: 0.62rem; }
  .fea-card .is-not-stacked-on-mobile > .wp-block-column[style*="flex-basis:30%"] { flex-basis: auto !important; flex-grow: 0; }
}
.screen-reader-text, .sr-only { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
