/* Polish pass: text-only hero, book bands, story photo, motion, mid-width desktop. */

/* ---- text-only hero ---- */

.fc-hero .wp-block-button__link { background: var(--fc-forest); color: var(--fc-white); border-radius: 0; font-weight: 700; padding: 14px 26px; }
.fc-hero .is-style-outline .wp-block-button__link { background: transparent; color: var(--fc-ink); border: 2px solid var(--fc-ink); }

/* ---- book bands (Publications) ---- */

.fc-book__price { font-weight: 700; font-size: var(--fc-fs-lead) !important; }

/* ---- story photo: the Featured image as a proper top photo, in the page column ---- */
.fc-tpl-story .article-post-thumbnail { display: block !important; padding: var(--fc-gap) var(--fc-edge) 0; background: var(--fc-paper); }
.fc-tpl-story .article-post-thumbnail .post-thumbnail-inner { position: relative !important; padding: 0 !important; height: auto !important; max-width: 880px; aspect-ratio: var(--fc-ratio-wide); overflow: hidden; }
.fc-tpl-story .article-post-thumbnail .post-thumbnail-inner img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }

/* ---- 1100 to 1200px desktops: tighter header so nothing wraps ---- */
@media (min-width: 1121px) and (max-width: 1339px) {
	.fc-header__bar { gap: 16px; }
	.fc-nav, .fc-menu { gap: 14px; }
	.fc-menu a { font-size: 16px; }
	.fc-brand__name { font-size: 26px; }
	.fc-brand__mark { width: 64px; }
	.fc-brand__tag { display: none; }
	.fc-menu .menu-item.fom-join > a { padding: 12px 18px; }}
@media (min-width: 901px) and (max-width: 1120px) { .fc-open:not(.fc-open--text), .fc-hero { grid-template-columns: 1.1fr 1fr; }}
/* tablet: two-column grids stack earlier */
@media (min-width: 601px) and (max-width: 900px) {
	.fc-row { grid-template-columns: minmax(0, 1fr) 140px; }
	.fc-row p { grid-column: 1; }}

/* ---- motion: sections rise and fade in once; buttons and rows respond ---- */
.fc-js [data-fc-r] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fc-js [data-fc-r].is-in { opacity: 1; transform: none; }
.fc-row { transition: background-color .2s ease; }
.fc-row:hover { background-color: var(--fc-bone); }
.fc-section--bone .fc-row:hover { background-color: var(--fc-white); }
.wp-block-button__link { transition: transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
	.fc-js [data-fc-r] { opacity: 1; transform: none; transition: none; }
	.fc-row, .wp-block-button__link { transition: none; }
	.wp-block-button__link:hover { transform: none; }}

/* related stories and navigation under a story stay on the page grid */
.fc-tpl-story .entry-related, .fc-tpl-story .post-navigation, .fc-tpl-story .entry-author, .fc-tpl-story .comments-area { padding-left: var(--fc-edge); padding-right: var(--fc-edge); max-width: none; box-sizing: border-box; }
.fc-tpl-story .entry-related { padding-top: var(--fc-section); padding-bottom: var(--fc-section); background: var(--fc-bone); }
@media (max-width: 900px) { .fc-tpl-story .entry-related, .fc-tpl-story .post-navigation, .fc-tpl-story .entry-author, .fc-tpl-story .comments-area { padding-left: var(--fc-m); padding-right: var(--fc-m); }}
.fc-tpl-story .entry-related-inner { padding-left: var(--fc-edge) !important; padding-right: var(--fc-edge) !important; max-width: none !important; }
.fc-tpl-story .entry-related { padding-left: 0; padding-right: 0; }
@media (max-width: 900px) { .fc-tpl-story .entry-related-inner { padding-left: var(--fc-m) !important; padding-right: var(--fc-m) !important; }}

/* ===== Batch 1 (site review, 26 Oct): one rule for each thing ===== */

/* one button for every form and search button (square, bold, 18 px), whoever made it */
.fc-tpl-search form button[type="submit"],
.kb-button.kt-button,
.kb-query-filter-reset-button,
.tribe-common .tribe-common-c-btn,
.tribe-events .tribe-events-c-messages__message-list-item-link,
.tribe-common .tribe-common-c-btn-border {
	background: var(--fc-forest) !important; color: var(--fc-white) !important; border: 0 !important; border-radius: 0 !important;
	font: 700 var(--fc-fs-body)/1.2 var(--fc-sans) !important; padding: 14px 26px !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important;
}
.fc-tpl-search form button[type="submit"]:hover,
.kb-button.kt-button:hover { background: var(--fc-ink) !important; }

/* rows read as rows on any ground: odd rows step one tone away from their section */
.fc-section:not(.fc-section--bone) .fc-row:nth-child(odd), .fc-sec:nth-child(odd) .fc-row:nth-child(odd) { background: var(--fc-bone); }
.fc-section--bone .fc-row:nth-child(odd), .fc-sec:nth-child(even) .fc-row:nth-child(odd) { background: var(--fc-paper); }

/* wide sections (a list of rows under a heading): the heading sits above the rows */
.fc-sec--wide { grid-template-columns: 1fr; gap: var(--fc-gap); }
.fc-sec--wide .fc-sec__head h2 { position: static; }

/* the older form CSS sets its own 3 px, weight-600 button by form id; match its specificity so every form uses the one button */

/* ===== Batch 2 (site review, 26 Oct): search, plants, long text, cards, garden links ===== */

/* A5 long-text pages: contents list beside one reading column, no alternating bands */
.fc-flow--prose .fc-sec--prose { 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) !important; }
.fc-toc { align-self: start; position: sticky; top: 24px; }
.fc-toc__title { font: 700 var(--fc-fs-small)/1.3 var(--fc-sans); margin: 0 0 12px; color: var(--fc-ink); }
.fc-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fc-toc a { display: block; padding: 10px 0; color: var(--fc-link); text-decoration-thickness: auto; text-underline-offset: .1em; font-size: var(--fc-fs-body); }
.fc-sec--prose .fc-sec__body { max-width: 68ch; }
.fc-sec--prose .fc-sec__body h2 { font: 600 var(--fc-fs-title)/1.15 var(--fc-serif); margin: 2em 0 .5em; letter-spacing: 0; scroll-margin-top: 24px; }
.fc-sec--prose .fc-sec__body h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .fc-flow--prose .fc-sec--prose { grid-template-columns: 1fr; padding-left: var(--fc-m); padding-right: var(--fc-m); } .fc-toc { position: static; }}

/* C2 more garden sections */
.fc-chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fc-chips a { display: inline-block; padding: 12px 20px; background: var(--fc-white); color: var(--fc-ink); font: 700 var(--fc-fs-small)/1.2 var(--fc-sans); text-decoration: none; }
.fc-chips a:hover { background: var(--fc-ink); color: var(--fc-white); }
.fc-sec--more .fc-sec__body > * { max-width: none; }

/* A1 search results: an opening band, then result rows on the page grid */
.fc-tpl-search .site-main { padding: 0 !important; }
.fc-tpl-search .fom-search-form { display: flex; gap: 12px; max-width: 640px; }
.fc-tpl-search #fom-search-field { flex: 1; min-height: 48px; padding: 12px 14px; border: 2px solid var(--fc-field-border); border-radius: 0; background: var(--fc-white); font: 400 var(--fc-fs-body)/1.4 var(--fc-sans); color: var(--fc-ink); }
.fc-tpl-search .search-archive-title { position: absolute; left: -9999px; }
.fc-tpl-search #archive-container { display: block !important; padding: 0; margin: 0; list-style: none; }
.fc-tpl-search .entry-list-item { margin: 0; padding: 0; }
.fc-tpl-search .entry-list-item:nth-child(odd) { background: var(--fc-paper); }
.fc-tpl-search .entry-list-item:nth-child(even) { background: var(--fc-bone); }
.fc-tpl-search .entry-list-item .loop-entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px var(--fc-edge); background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.fc-tpl-search .entry-list-item .loop-entry:has(.post-thumbnail) { grid-template-columns: 180px minmax(0, 1fr); }
.fc-tpl-search .post-thumbnail img { width: 100%; aspect-ratio: var(--fc-ratio-thumb); object-fit: cover; }
.fc-tpl-search .fom-result-panel { display: none; }
.fc-tpl-search .entry-content-wrap { padding: 0 !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 32px; }
.fc-tpl-search .entry-content-wrap:has(.fom-result-date) { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "date head" "date sum"; }
.fc-tpl-search .fom-result-date { grid-area: date; font: 700 var(--fc-fs-small)/1.4 var(--fc-sans); margin: 4px 0 0; color: var(--fc-muted); }
.fc-tpl-search .entry-header { display: flex; flex-direction: column; }
.fc-tpl-search .entry-content-wrap:has(.fom-result-date) > .entry-header { grid-area: head; }
.fc-tpl-search .entry-content-wrap:has(.fom-result-date) > .entry-summary { grid-area: sum; }
.fc-tpl-search .entry-summary p { margin: 0; max-width: 64ch; }
.fc-tpl-search .entry-title { font: 600 var(--fc-fs-title)/1.15 var(--fc-serif); margin: 0; }
.fc-tpl-search .entry-title a { color: var(--fc-ink); text-decoration: none; }
.fc-tpl-search .entry-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fc-tpl-search .fom-result-label { order: 2; margin: 6px 0 0; font-size: var(--fc-fs-small); font-weight: 600; color: var(--fc-link); }
.fc-tpl-search .entry-footer { display: none; }
@media (max-width: 900px) {
	.fc-tpl-search .entry-list-item .loop-entry { padding: 24px var(--fc-m); }
	.fc-tpl-search .entry-content-wrap:has(.fom-result-date) { grid-template-columns: 1fr; grid-template-areas: "head" "date" "sum"; }}

/* B8 / B9 cards: no outlines on related stories; the category label sits under the title, not above it */
.fc-layout .entry-related .loop-entry, .fc-layout .entry-related .entry { border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.fc-layout .entry-related .entry-content-wrap { padding: 12px 0 0 !important; }
.fc-tpl-stories .loop-entry .entry-header, .fc-layout .entry-related .entry-header { display: flex; flex-direction: column; }
.fc-tpl-stories .loop-entry .entry-taxonomies, .fc-layout .entry-related .entry-taxonomies { order: 2; margin-top: 6px; }
.fc-stories .wp-block-post { display: flex; flex-direction: column; }
.fc-stories .wp-block-post-featured-image { order: 1; }
.fc-stories .wp-block-post-title { order: 2; }
.fc-stories .wp-block-post-terms { order: 3; margin: 6px 0 0; }

/* A2 Plants archive: opening band, page grid, readable fields */
.fc-tpl-plants, .fc-tpl-fact-sheets { background: var(--fc-paper); }
.fc-tpl-plants .kb-row-layout-id850_c61bce-0b .kt-row-column-wrap, .fc-tpl-plants .kb-row-layout-id850_c61bce-0b .kt-inside-inner-col { max-width: none; padding: 0; }
.fc-tpl-plants .kb-row-layout-id850_7f5d75-b8 { padding: var(--fc-section) var(--fc-edge); }
.fc-tpl-plants .kb-row-layout-id850_7f5d75-b8 .kt-row-column-wrap, .fc-tpl-plants .kb-row-layout-id850_7f5d75-b8 .kt-inside-inner-col { max-width: none; padding-left: 0; padding-right: 0; }
.fc-tpl-plants .kb-filter-search { border: 2px solid var(--fc-field-border); border-radius: 0; background: var(--fc-white); color: var(--fc-ink); min-height: 48px; padding: 10px 14px; font-size: var(--fc-fs-body); }
.fc-tpl-plants .kb-filter-search::placeholder { color: var(--fc-muted); opacity: 1; }
.fc-tpl-plants .kb-query-label { font: 700 var(--fc-fs-small)/1.3 var(--fc-sans); color: var(--fc-ink); }

/* C3 story photo: shown at a size the source can carry, not stretched */
.fc-tpl-story .article-post-thumbnail .post-thumbnail-inner { max-width: 560px; }
.fc-tpl-story .single-content .alignleft { max-width: 45%; margin: 0 28px 16px 0; }

/* text-only openings use the same two columns as the sections: title on the left, the opening text on the right */
@media (min-width: 901px) {
	.fc-open--text .fc-open__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 80px); row-gap: 16px; align-items: start; }
	.fc-open--text .fc-open__text > nav, .fc-open--text .fc-open__text > .fom-crumbs { grid-column: 1 / -1; }
	.fc-open--text .fc-open__text > h1 { grid-column: 1; max-width: none; }
	.fc-open--text .fc-open__text > p, .fc-open--text .fc-open__text > div { grid-column: 2; max-width: var(--fc-measure-lead); }}

/* search: the "More results" link on the page grid, as the one button */
.fc-tpl-search #archive-container ~ * { padding: 32px var(--fc-edge) var(--fc-section); margin: 0; }
.fc-tpl-search #archive-container ~ * a { display: inline-block; background: var(--fc-forest); color: var(--fc-white) !important; border: 0 !important; border-radius: 0 !important; font: 700 var(--fc-fs-body)/1.2 var(--fc-sans); padding: 14px 26px; text-decoration: none; }
@media (max-width: 900px) { .fc-tpl-search #archive-container ~ * { padding-left: var(--fc-m); padding-right: var(--fc-m); }}
@media (min-width: 901px) { .fc-open--text .fc-open__text > h1 { grid-row: 2 / span 6; }}
.fc-tpl-story .article-post-thumbnail .post-thumbnail-inner { max-width: 480px; }

/* ===== Batch 3 (site review, 26 Oct): focus, hover, tap targets, small type ===== */

/* D3 focus: one visible ring on every link, button and field, whatever the theme setting says ("hide-focus-outline" is on) */
body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--fc-coast) !important; outline-offset: 3px !important; }
body :is(.fc-band, .fc-footer, .fc-header .fc-menu-btn) :is(a, button):focus-visible { outline-color: var(--fc-white) !important; }
body .fc-cta :is(a, button):focus-visible { outline-color: var(--fc-ink) !important; }
.fc-row:focus-visible { outline-offset: -3px !important; }

/* D3 hover: cards and rows answer the pointer the way the home rows do */
.fc-tpl-stories .loop-entry:hover .entry-title a, .fc-stories .wp-block-post:hover .wp-block-post-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fc-tpl-search .entry-list-item, .fc-tpl-events .tribe-events-calendar-list__event-row { transition: background-color .2s ease; }
.fc-tpl-search .entry-list-item:hover { background: var(--fc-white); }
.fc-tpl-events .tribe-events-calendar-list__event-row:hover { background: var(--fc-white); }
.fc-chips a { transition: background-color .2s ease, color .2s ease; }

@media (prefers-reduced-motion: reduce) {
	.fc-tpl-search .entry-list-item, .fc-tpl-events .tribe-events-calendar-list__event-row, .fc-chips a { transition: none; }}

/* E1 tap targets: 44 px for the small links */
.fc-footer__menu a, .fc-footer a:not(.fc-join) { display: inline-block; padding: 11px 0; min-height: 44px; }
.fc-footer__menu li { margin: 0; }
.fom-crumbs a { display: inline-block; padding: 10px 0; }
.fom-crumbs li { display: flex; align-items: center; }
.fom-card__body h3 a, .fc-toc a { padding-top: 11px; padding-bottom: 11px; display: inline-block; }
.tribe-events-widget-events-list__view-more-link, .tribe-events-c-view-selector__list-item-link, .tribe-events-calendar-list-nav a { display: inline-block; padding: 12px 0; min-height: 44px; }
.fc-chips a { min-height: 44px; display: inline-flex; align-items: center; }

/* E2 small type: nothing under 16 px except the tags and labels the design keeps small */
@media (max-width: 900px) {
	.tribe-common-b3, .tribe-common-b2, .tribe-common-b1--min-medium, .tribe-events-calendar-list__event-datetime, .tribe-events-calendar-list__event-venue, .tribe-events-c-subscribe-dropdown__button, .fom-event-cat, .fom-event-regular, .fom-event-cost, .fom-event-when, .tribe-events-calendar-list__event-date-tag-weekday, .tribe-events-calendar-list__event-date-tag-daynum { font-size: 16px !important; line-height: 1.5 !important; }
	.fom-crumbs, .fom-crumbs a, .fom-crumbs li, .fom-result-label, .fom-result-date, .entry-taxonomies a, .wp-block-post-terms, .wp-block-post-terms a { font-size: 16px !important; }}

/* E3 phone titles: a smaller step for long titles in lists */
@media (max-width: 600px) {
	.tribe-events-calendar-list__event-title, .tribe-events-calendar-list__event-title a, .fc-stories .wp-block-post-title, .fc-tpl-stories .loop-entry .entry-title, .fc-tpl-search .entry-title { font-size: var(--fc-fs-lead) !important; line-height: 1.2 !important; }}

/* the "Read More" link repeats the title link and is a zero-size keyboard stop: remove it from cards and results */
.loop-entry .post-more-link, .loop-entry .entry-actions, .loop-entry .entry-footer { display: none !important; }

/* E2 (cont.) form labels, helper text and tags: 16 px on every screen */
.fom-event-panel, .fom-event-open, .fom-audience .fom-event-open, .post-navigation small, .tribe-events-calendar-list__event-date-tag-weekday, .tribe-events-widget-events-list__event-date-tag-month, .tribe-events-widget-events-list__event-date-tag-weekday { font-size: 16px !important; }
/* E1 (cont.) checkboxes and radios: a 44 px target around the control */