/* Page sections for the new design: sections on the container, half-photo bands, split text sections, stories grid. */

/* Gutenberg adds a gap between blocks; these sections set their own spacing */
.fc-hero > .wp-block-group__inner-container > *, .fc-band > .wp-block-group__inner-container > *, .fc-section > .wp-block-group__inner-container > *, .fc-split > .wp-block-group__inner-container > *, .fc-cta > .wp-block-group__inner-container > * { margin-block-start: 0; margin-block-end: 0; }

/* sections on the 1240px container */
.fc-section { padding: var(--fc-section) var(--fc-edge); background: var(--fc-paper); color: var(--fc-ink); margin-block: 0 !important; }
.fc-section--bone { background: var(--fc-bone); }
.fc-section h2, .fc-split h2 { font: 600 var(--fc-fs-h2)/1.05 var(--fc-serif); letter-spacing: -.025em; margin: 0; color: var(--fc-ink); }
.fc-section .fc-lead { font-size: var(--fc-fs-lead); line-height: 1.5; max-width: 52ch; margin: 16px 0 0; }
.fc-section .fc-rows__list, .fc-section .fc-stories { margin-top: var(--fc-gap); }
.fc-more { margin: 32px 0 0 !important; font-weight: 700; }
.fc-more a { color: var(--fc-link); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* list rows (from [fc_rows]) sit on a bone section, so odd rows step up to paper */
.fc-section--bone .fc-row:nth-child(odd) { background: var(--fc-paper); }

.fc-row:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fc-row:focus-visible { outline: 3px solid var(--fc-coast); outline-offset: -3px; }

/* half photo, half colour band */
.fc-band { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; margin-block: 0 !important; }
.fc-band--forest { background: var(--fc-forest); color: var(--fc-white); }
.fc-band__text { padding: var(--fc-section) var(--fc-m) var(--fc-section) var(--fc-edge); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.fc-band__text h2 { font: 600 var(--fc-fs-h2)/1.05 var(--fc-serif); letter-spacing: -.025em; margin: 0; color: var(--fc-white); }
.fc-band__text p { font-size: var(--fc-fs-lead); line-height: 1.5; max-width: var(--fc-measure-lead); margin: 0; color: var(--fc-white); }
.fc-band .wp-block-button__link { background: var(--fc-heath); color: var(--fc-ink); border-radius: 0; font-weight: 700; padding: 14px 26px; }
.fc-band__photo { margin-block: 0 !important; position: relative; min-height: 340px; }
.fc-band__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* split section: heading and sentence on the left, content on the right */
.fc-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); padding: var(--fc-section) var(--fc-edge); background: var(--fc-paper); color: var(--fc-ink); margin-block: 0 !important; align-items: start; }
.fc-split__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fc-split__head p { max-width: 30ch; margin: 0; }
.fc-split .wp-block-button__link, .fc-cta .wp-block-button__link { background: var(--fc-ink); color: var(--fc-white); border-radius: 0; font-weight: 700; padding: 14px 26px; }

/* stories: three equal cards */
.fc-stories .wp-block-post-template { gap: clamp(24px, 3vw, 40px); list-style: none; padding: 0; margin: 0; }
.fc-stories .wp-block-post-featured-image { margin: 0 0 14px; }
.fc-stories .wp-block-post-featured-image img { width: 100%; aspect-ratio: var(--fc-ratio-card) !important; object-fit: cover; }
.fc-stories .wp-block-post-terms { font-size: var(--fc-fs-small); margin: 0 0 6px; }
.fc-stories .wp-block-post-terms a { color: var(--fc-link); text-decoration: none; font-weight: 600; }
.fc-stories .wp-block-post-title { font: 600 var(--fc-fs-title)/1.15 var(--fc-serif); margin: 0; }
.fc-stories .wp-block-post-title a { color: var(--fc-ink); text-decoration: none; }
.fc-stories .wp-block-post-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (max-width: 900px) {
	.fc-band, .fc-split { grid-template-columns: 1fr; }
	.fc-band__text { padding: var(--fc-section) var(--fc-m); }
	.fc-band__photo { min-height: 260px; }
	.fc-split { padding: var(--fc-section) var(--fc-m); }
	.fc-section { padding-left: var(--fc-m); padding-right: var(--fc-m); }}

/* the theme removes side padding from full-width blocks; restore the page column (same fix the existing site CSS uses for fom- sections) */
.entry-content .alignfull.fc-section,
.entry-content .alignfull.fc-split,
.entry-content .alignfull.fc-cta { padding-left: var(--fc-edge); padding-right: var(--fc-edge); }
@media (max-width: 900px) {
	.entry-content .alignfull.fc-section,
	.entry-content .alignfull.fc-split,
	.entry-content .alignfull.fc-cta { padding-left: var(--fc-m); padding-right: var(--fc-m); }}

/* events widget on the home page: tone steps instead of lines between events */
.fc-split__body .tribe-common-g-row { border: 0 !important; }
.fc-split__body .tribe-events-widget-events-list__event-row:nth-child(odd) { background: var(--fc-bone); }
.fc-split__body .tribe-events-widget-events-list__event-row { padding: 14px 20px; }

/* ===== Content pages (inc/page-layout.php): opening, then one section per heading ===== */
.entry-content .alignfull.fc-open,
.entry-content .alignfull.fc-flow { padding: 0; }
.fc-open { display: grid; grid-template-columns: 1.25fr 1fr; min-height: min(56vh, 520px); background: var(--fc-bone); color: var(--fc-ink); margin-block: 0 !important; }
.fc-open--text { grid-template-columns: 1fr; min-height: 0; }
.fc-open__text { padding: var(--fc-section) var(--fc-m) var(--fc-section) var(--fc-edge); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.fc-open--text .fc-open__text { padding-right: var(--fc-edge); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.fc-open__text > * { margin: 0 !important; }
.fc-open h1 { font: 600 var(--fc-fs-h1)/1.02 var(--fc-serif); letter-spacing: -.03em; color: var(--fc-ink); max-width: 18ch; }
.fc-open__text > p { font-size: var(--fc-fs-lead); line-height: 1.5; max-width: var(--fc-measure-lead); }
.fc-open .fom-crumbs, .fc-hero__text .fom-crumbs { font-size: var(--fc-fs-small); }
.fc-open .fom-crumbs ol, .fc-hero__text .fom-crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.fc-open .fom-crumbs a, .fc-hero__text .fom-crumbs a { color: var(--fc-link); }
.fc-open__photo { position: relative; min-height: 320px; margin: 0; }
.fc-open__photo figure { position: absolute; inset: 0; margin: 0 !important; }
.fc-open__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fc-flow { margin-block: 0 !important; }
.fc-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); padding: var(--fc-section) var(--fc-edge); color: var(--fc-ink); }
.fc-sec:nth-child(odd) { background: var(--fc-paper); }
.fc-sec:nth-child(even) { background: var(--fc-bone); }
.fc-sec--intro .fc-sec__body { grid-column: 2; }
.fc-sec--wide { grid-template-columns: 1fr; }
.fc-sec--wide .fc-sec__body { grid-column: 1; }
.fc-sec__head h2 { font: 600 var(--fc-fs-h2)/1.08 var(--fc-serif); letter-spacing: -.02em; margin: 0; position: sticky; top: 24px; }
.fc-sec__body { min-width: 0; font-size: var(--fc-fs-body); line-height: 1.7; }
.fc-sec__body > * { max-width: 64ch; }
.fc-sec__body > :first-child { margin-top: 0; }
.fc-sec__body > :last-child { margin-bottom: 0; }
.fc-sec__body p, .fc-sec__body li { font-size: var(--fc-fs-body); }
.fc-sec__body h3 { font: 600 var(--fc-fs-title)/1.15 var(--fc-serif); margin: 1.6em 0 .5em; }
.fc-sec__body a { color: var(--fc-link); text-decoration-thickness: auto; text-underline-offset: .1em; }
.fc-sec__body ul, .fc-sec__body ol { padding-left: 1.2em; }
.fc-sec__body li { margin-bottom: .5em; }
.fc-sec__body figure, .fc-sec__body .wp-block-image { max-width: none; margin: 1.6em 0; }
.fc-sec__body figure img { width: 100%; height: auto; display: block; }
.fc-sec__body form { max-width: 640px; }
.fc-sec--wide .fc-sec__body > * { max-width: none; }

@media (max-width: 900px) {
	.fc-open { grid-template-columns: 1fr; }
	.fc-open__text, .fc-open--text .fc-open__text { padding: var(--fc-m); padding-top: 40px; padding-bottom: 40px; }
	.fc-open__photo { min-height: 260px; }
	.fc-sec { grid-template-columns: 1fr; padding: var(--fc-section) var(--fc-m); gap: 24px; }
	.fc-sec--intro .fc-sec__body { grid-column: 1; }
	.fc-sec__head h2 { position: static; }}

/* pages built from full-width sections: no theme padding or box around them */
.fc-layout .content-area { margin-top: 0; margin-bottom: 0; }
.fc-layout .entry-content-wrap { padding: 0; }
.fc-layout .entry.single-entry { box-shadow: none; background: transparent; }
.fc-layout .content-container.site-container { max-width: none; padding: 0; }
.fc-layout .entry-content { margin: 0; }
.fc-layout .entry-content > .alignfull { max-width: 100vw; }

/* search: left-aligned on the page grid */
.fc-tpl-search .site-main { max-width: none !important; padding: var(--fc-section) var(--fc-edge) !important; }
.fc-tpl-search .fom-event-panel { aspect-ratio: var(--fc-ratio-wide); min-height: 0; }

/* long page titles in the split hero (the garden) */
.fc-hero--long h1 { font-size: var(--fc-fs-h1); max-width: none; }

/* cards: no outlines or shadows (tone steps only) */
.fc-layout .fom-card, .fc-layout .entry, .fc-layout .loop-entry, .fc-layout .wp-block-kadence-column .kt-inside-inner-col { box-shadow: none !important; }

/* forms: flat fields and buttons, in every form on the site */

/* ===== Membership pages (one Kadence row; styled by CSS only) ===== */