/* ==========================================================================
 * Pahl's Market — page content pieces (3.15.0)
 *
 * Small, named building blocks for pages rebuilt out of Divi. Each is a class
 * typed into a block's "Additional CSS class(es)" box, so the page itself
 * stays plain blocks with no inline styling:
 *
 *   pm-notice     a Group        — a tinted box for a short status line
 *   pm-lede       a Paragraph    — the larger opening paragraph
 *   pm-card-grid  a Group        — lays its inner Groups out as cards
 *   pm-card       a Group        — one card: image, heading, text
 *   pm-fineprint  a Paragraph    — small grey legal or footnote text
 *   pm-split      Columns        — text beside a rounded photo
 *
 * Also here: the CSA enrollment button and its "not yet" message, and the
 * decade bar and photo viewer added to the farm timeline.
 * ========================================================================== */

.pm-notice {
	margin: 0 0 28px;
	padding: 18px 22px;
	border: 1px solid #d9e4dd;
	border-left: 5px solid #004b2a;
	border-radius: 14px;
	background: #f4f7f5;
	color: #0b2a1b;
}
.pm-notice > *:first-child { margin-top: 0; }
.pm-notice > *:last-child  { margin-bottom: 0; }
.pm-notice p { font-size: 1.0625rem; line-height: 1.5; }

p.pm-lede {
	font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
	line-height: 1.55;
	color: #1f2937;
}

p.pm-fineprint {
	margin-top: 28px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #6b7280;
}

/* --- Cards ---------------------------------------------------------------- */
.pm-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 22px;
	margin: 24px 0 32px;
	max-width: none;
}
.pm-card-grid > * {
	margin: 0 !important;
	max-width: none !important;
}
.pm-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e4e4e7;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.pm-card:hover {
	border-color: #c9d6cf;
	box-shadow: 0 6px 20px rgba(0, 75, 42, 0.08);
}
.pm-card > * {
	margin: 0 !important;
	max-width: none !important;
}
.pm-card > .wp-block-image,
.pm-card > figure {
	display: block;
	width: 100%;
}
.pm-card > .wp-block-image img,
.pm-card > figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center 25%;
	border-radius: 0;
}
.pm-card > .wp-block-heading {
	padding: 16px 18px 0;
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.25;
	color: #004b2a;
}
.pm-card > p {
	padding: 8px 18px 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #3f3f46;
}
.pm-card > p:last-child { padding-bottom: 18px; }
.pm-card > .wp-block-buttons {
	margin-top: auto !important;
	padding: 14px 18px 18px;
}
.pm-card > .wp-block-buttons .wp-block-button,
.pm-card > .wp-block-buttons .wp-block-button__link {
	width: 100%;
	text-align: center;
	border-radius: 999px;
}
/* A card with no photo: the heading needs the top padding a photo gave it. */
.pm-card > .wp-block-heading:first-child { padding-top: 20px; }

/* --- Text beside a photo -------------------------------------------------- */
.wp-block-columns.pm-split {
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	margin-bottom: 40px;
}
.pm-split .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}

/* --- CSA enrollment: the button, and the message before it opens ---------- */
.pm-csa-closed {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1px dashed #b9c9c0;
	border-radius: 999px;
	background: #f4f7f5;
	color: #004b2a;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: default;
}
.pm-csa-closed--large {
	padding: 16px 28px;
	font-size: 1.125rem;
}
a.pm-csa-enroll,
.wp-block-button a.pm-csa-enroll {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 15px 34px;
	border-radius: 999px;
	background: #004b2a;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
a.pm-csa-enroll:hover,
a.pm-csa-enroll:focus {
	background: #00361e;
	color: #fff;
}
a.pm-csa-enroll--large {
	min-height: 62px;
	padding: 18px 44px;
	font-size: 1.3125rem;
}
.pm-csa-cta { margin: 24px 0; }

/* --- Farm timeline: decade bar -------------------------------------------- */
.pm-tl-nav {
	position: -webkit-sticky;
	position: sticky;
	top: var(--pm-tl-top, 0px);
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 28px;
	padding: 10px 14px;
	border: 1px solid #e4e4e7;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.pm-tl-nav__label {
	flex: 0 0 auto;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a6a0c;
}
.pm-tl-nav__list {
	display: flex;
	flex: 1 1 auto;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.pm-tl-nav__list::-webkit-scrollbar { display: none; }
.pm-tl-nav__btn {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: #004b2a;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.pm-tl-nav__btn:hover { background: #f4f7f5; }
.pm-tl-nav__btn:focus-visible { outline: 3px solid #cb9d18; outline-offset: 1px; }
.pm-tl-nav__btn.is-current {
	background: #004b2a;
	color: #fff;
}

/* A photo that opens larger says so. */
.te-timeline[data-pm-tl] .te-card__thumb img { cursor: zoom-in; }
.te-timeline[data-pm-tl] .te-entry { scroll-margin-top: 140px; }

/* --- Farm timeline: photo viewer ------------------------------------------ */
.pm-tl-view {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 64px;
	background: rgba(8, 20, 14, 0.92);
}
.pm-tl-view.is-open { display: flex; }
.pm-tl-view__fig {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: min(1000px, 100%);
	max-height: 100%;
	margin: 0;
}
.pm-tl-view__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 190px);
	border-radius: 12px;
	background: #111;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.pm-tl-view__cap {
	margin-top: 16px;
	max-width: 46rem;
	color: #fff;
	text-align: center;
}
.pm-tl-view__date {
	display: block;
	margin-bottom: 4px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #e8c356;
}
.pm-tl-view__title {
	display: block;
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.35;
}
.pm-tl-view__text {
	display: block;
	margin-top: 6px;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #d7e2dc;
}
.pm-tl-view__count {
	display: block;
	margin-top: 8px;
	font-size: 0.8125rem;
	color: #a8b8b0;
}
.pm-tl-view__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.pm-tl-view__btn:hover { background: rgba(255, 255, 255, 0.28); }
.pm-tl-view__btn:focus-visible { outline: 3px solid #e8c356; outline-offset: 2px; }
.pm-tl-view__btn--close { top: 16px; right: 16px; }
.pm-tl-view__btn--prev  { left: 10px; top: 50%; transform: translateY(-50%); }
.pm-tl-view__btn--next  { right: 10px; top: 50%; transform: translateY(-50%); }
html.pm-tl-lock { overflow: hidden; }

@media (max-width: 600px) {
	.pm-card-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.pm-card > .wp-block-heading { padding: 12px 12px 0; font-size: 1.0625rem; }
	.pm-card > p { padding: 6px 12px 0; font-size: 0.875rem; }
	.pm-card > p:last-child { padding-bottom: 14px; }
	.pm-tl-nav { border-radius: 14px; padding: 8px 10px; }
	.pm-tl-nav__label { display: none; }
	.pm-tl-view { padding: 16px 10px 70px; }
	.pm-tl-view__btn--prev { top: auto; bottom: 12px; left: calc(50% - 60px); transform: none; }
	.pm-tl-view__btn--next { top: auto; bottom: 12px; right: calc(50% - 60px); transform: none; }
	.pm-csa-closed--large { font-size: 1rem; padding: 14px 20px; }
	a.pm-csa-enroll, a.pm-csa-enroll--large { width: 100%; }
}
@media (max-width: 420px) {
	.pm-card-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.pm-card { transition: none; }
}

/* --- 404 page (3.15.1): the search box in the page body -------------------- */
.error404 main .wp-block-search {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}
.error404 main .wp-block-search__inside-wrapper {
	gap: 8px;
	padding: 6px;
	border: 2px solid #004b2a;
	border-radius: 999px;
	background: #fff;
}
.error404 main .wp-block-search__input {
	min-height: 44px;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-size: 16px;
	box-shadow: none;
}
.error404 main .wp-block-search__button {
	min-height: 44px;
	margin: 0;
	padding: 8px 24px;
	border: 0;
	border-radius: 999px;
	background: #004b2a;
	color: #fff !important;
	font-weight: 600;
	cursor: pointer;
}
.error404 main .wp-block-search__button:hover { background: #00361e; }

/* ==========================================================================
 * Green Friday landing page (3.15.6) — /holiday-specials/
 *
 *   pm-gf-hero     Group    the dark green panel at the top
 *   pm-gf-eyebrow  Paragraph  small gold line above the headline
 *   pm-gf-count    (HTML block)  countdown, filled in by countdown.js
 *   pm-gf-tiers    Group    the three offers
 *   pm-gf-tier     Group    one offer
 *   pm-gf-bonus    Paragraph  the gold "+ $10 bonus card" line
 *   pm-gf-steps    Group    how it works, three numbered steps
 *   pm-gf-perks    Group    the row of short reassurances
 *   pm-gf-faq      Group    the questions
 * ========================================================================== */
/* The page sits on the theme's full-width "no title" template, so it brings
 * its own width and side padding. */
.pm-gf-page {
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px clamp(16px, 3vw, 32px) 56px;
}
.pm-gf-page > * { max-width: none; }

.pm-gf-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(20px, 4vw, 56px);
	margin: 8px 0 44px;
	padding: clamp(28px, 5vw, 64px);
	border-radius: 28px;
	background:
		radial-gradient(circle at 88% 12%, rgba(203, 157, 24, 0.28), transparent 46%),
		radial-gradient(circle at 8% 100%, rgba(255, 255, 255, 0.07), transparent 42%),
		#004b2a;
	color: #fff;
}
.pm-gf-hero > * { margin: 0 !important; max-width: none !important; }
.pm-gf-hero .wp-block-heading,
.pm-gf-hero h1 {
	color: #fff;
	font-size: clamp(2.25rem, 5.2vw, 4rem);
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.02em;
	margin: 10px 0 16px;
}
.pm-gf-hero h1 em {
	font-style: normal;
	color: #f0c94a;
}
.pm-gf-hero p { color: #e3efe8; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; }
p.pm-gf-eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(240, 201, 74, 0.16);
	color: #f0c94a !important;
	font-size: 0.8125rem !important;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.pm-gf-hero .wp-block-buttons { margin-top: 22px; gap: 12px; }
.pm-gf-hero .wp-block-button__link {
	padding: 15px 30px;
	border-radius: 999px;
	background: #f0c94a;
	color: #1c2b22;
	font-size: 1.0625rem;
	font-weight: 700;
}
.pm-gf-hero .wp-block-button__link:hover,
.pm-gf-hero .wp-block-button__link:focus { background: #ffd95e; color: #1c2b22; }
.pm-gf-hero .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.55);
	color: #fff;
}
.pm-gf-hero .is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pm-gf-hero .wp-block-image { margin: 0; }
.pm-gf-hero .wp-block-image img {
	display: block;
	width: min(100%, 380px);
	height: auto;
	margin: 0 auto;
	border-radius: 22px;
	background: #f1e9dc;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	transform: rotate(4deg);
}

/* Countdown */
.pm-gf-count {
	display: none;
	align-items: center;
	gap: 14px;
	margin: 20px 0 0;
	font-size: 0.9375rem;
	color: #e3efe8;
}
.pm-gf-count.is-on { display: flex; flex-wrap: wrap; }
.pm-gf-count__label { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8125rem; color: #f0c94a; }
.pm-gf-count__units { display: flex; gap: 8px; }
.pm-gf-count__unit {
	min-width: 62px;
	padding: 8px 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	text-align: center;
}
.pm-gf-count__n { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.pm-gf-count__w { display: block; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #cfe0d6; }

/* Offers */
.pm-gf-tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 22px 0 48px;
	scroll-margin-top: 120px;
}
.pm-gf-tiers > * { margin: 0 !important; max-width: none !important; }
.pm-gf-tier {
	display: flex;
	flex-direction: column;
	padding: 28px 26px 26px;
	border: 1px solid #e4e4e7;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pm-gf-tier:hover { transform: translateY(-3px); border-color: #c9d6cf; box-shadow: 0 14px 34px rgba(0, 75, 42, 0.12); }
.pm-gf-tier > * { margin: 0 !important; max-width: none !important; }
.pm-gf-tier .wp-block-heading {
	font-size: clamp(2.5rem, 4.4vw, 3.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #004b2a;
}
.pm-gf-tier > p { margin-top: 8px !important; color: #52525b; font-size: 0.9375rem; line-height: 1.45; }
p.pm-gf-bonus {
	align-self: center;
	margin-top: 16px !important;
	padding: 9px 18px;
	border-radius: 999px;
	background: #fbf3d6;
	color: #6b5200 !important;
	font-size: 1.0625rem !important;
	font-weight: 700;
}
.pm-gf-tier .wp-block-buttons { margin-top: auto !important; padding-top: 22px; justify-content: center; }
.pm-gf-tier .wp-block-button { width: 100%; }
.pm-gf-tier .wp-block-button__link {
	display: block;
	width: 100%;
	padding: 15px 20px;
	border-radius: 999px;
	background: #004b2a;
	color: #fff;
	font-size: 1.0625rem;
	font-weight: 700;
	text-align: center;
}
.pm-gf-tier .wp-block-button__link:hover,
.pm-gf-tier .wp-block-button__link:focus { background: #00361e; color: #fff; }
p.pm-gf-soon {
	margin-top: auto !important;
	padding: 22px 0 0;
	color: #004b2a !important;
	font-weight: 600;
}

/* Steps */
.pm-gf-steps {
	counter-reset: pmgf;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 20px 0 44px;
}
.pm-gf-steps > * { margin: 0 !important; max-width: none !important; }
.pm-gf-steps > .wp-block-group {
	counter-increment: pmgf;
	position: relative;
	padding: 22px 22px 22px 76px;
	border-radius: 18px;
	background: #f4f7f5;
}
.pm-gf-steps > .wp-block-group::before {
	content: counter(pmgf);
	position: absolute;
	left: 20px;
	top: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #004b2a;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
}
.pm-gf-steps .wp-block-heading { margin: 0 0 6px; font-size: 1.125rem; font-weight: 600; color: #004b2a; }
.pm-gf-steps p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: #3f3f46; }

/* Reassurances */
.pm-gf-perks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 12px;
	margin: 0 0 44px;
}
.pm-gf-perks > p {
	margin: 0 !important;
	padding: 9px 18px;
	border: 1px solid #d9e4dd;
	border-radius: 999px;
	background: #fff;
	color: #004b2a;
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Questions */
.pm-gf-faq { margin: 16px 0 36px; }
.pm-gf-faq > .wp-block-details {
	margin: 0 0 10px;
	padding: 0;
	border: 1px solid #e4e4e7;
	border-radius: 14px;
	background: #fff;
}
/* The theme draws a round plus/minus icon at the left of every summary. */
.pm-gf-faq > .wp-block-details > summary::before { left: 18px; }
.pm-gf-faq > .wp-block-details > summary::after { left: 24px; }
.pm-gf-faq > .wp-block-details > summary {
	padding: 16px 20px 16px 56px;
	font-weight: 600;
	color: #0b2a1b;
	cursor: pointer;
}
.pm-gf-faq > .wp-block-details > summary:focus-visible { outline: 3px solid #cb9d18; outline-offset: 2px; border-radius: 14px; }
.pm-gf-faq > .wp-block-details > p { margin: 0; padding: 0 20px 18px 56px; color: #3f3f46; line-height: 1.55; }

@media (max-width: 860px) {
	.pm-gf-hero { grid-template-columns: 1fr; border-radius: 22px; }
	.pm-gf-hero .wp-block-image { order: -1; }
	.pm-gf-hero .wp-block-image img { width: min(62%, 240px); transform: rotate(3deg); }
	.pm-gf-tiers, .pm-gf-steps { grid-template-columns: 1fr; }
	.pm-gf-tier { padding: 24px 20px 22px; }
	.pm-gf-hero .wp-block-button, .pm-gf-hero .wp-block-button__link { width: 100%; text-align: center; }
	.pm-gf-count__unit { min-width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	.pm-gf-tier { transition: none; }
	.pm-gf-tier:hover { transform: none; }
}

/* ---- Search block button (3.17.1) ----------------------------------------
   A Search block with the green button drew its magnifying glass in the body
   text colour: near-black on dark green. White, unless the block has been
   given a text colour of its own in the editor. */
.wp-block-search .wp-block-search__button.has-primary-background-color:not(.has-text-color) {
	color: #fff;
}

.wp-block-search .wp-block-search__button.has-icon svg {
	fill: currentColor;
}
