/*
 * Refresh section 2: standard pages, treatment A (board "A · Photo + Blue Band"). Loaded only on pages with the photo
 * banner (body.pb-std, inc/refresh-pages.php), after custom.css and the saved Spectra styles, so it wins over the old
 * per-page rules without editing content. Colours and fonts: css/refresh.css section 01.
 *
 * 01 Banner   02 Intro heading   03 Text column   04 Headings   05 Links and link lists   06 Buttons   07 Embeds
 */

/* 01 Banner: the section's own photo is drawn by ::before (420px), the section shows blue under it with the title.
   The photo starts right under the header (refresh.css keeps 56px/36px above other pages' content for the logo). */
body.pb-std #content { padding-top: 0; }
body.pb-std .entry-content .pig-banner-sub.uagb-section__wrap {
	position: relative;
	background-color: var(--pb-blue) !important;
	background-size: 0 0 !important; /* the photo shows only in ::before */
	background-repeat: no-repeat !important; /* a repeating 0×0 image paints over the blue in Chrome */
	padding: calc(420px + 44px) 20px 48px !important; /* same sides as the page's text sections (Spectra 20px), so the title lines up */
	margin: 0 !important;
	min-height: 0 !important;
}
body.pb-std .entry-content .pig-banner-sub.uagb-section__wrap::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 420px;
	background-image: inherit;
	background-position: inherit;
	background-repeat: no-repeat;
	background-size: cover;
}
body.pb-std .entry-content .pig-banner-sub > .uagb-section__overlay { display: none; }
body.pb-std .entry-content .pig-banner-sub > .uagb-section__inner-wrap { max-width: 1140px !important; margin: 0 auto !important; padding: 0; } /* the text sections' width */
body.pb-std .entry-content .pig-banner-sub h1 {
	display: block;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	color: var(--pb-white) !important;
	font-family: var(--pb-font) !important;
	font-weight: 900 !important;
	font-size: 64px !important;
	line-height: 1 !important;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	text-align: left !important;
}
body.pb-std .entry-content .pig-banner-sub h1::after {
	content: "";
	display: block;
	width: 96px;
	height: 8px;
	margin-top: 20px;
	border-radius: 4px;
	background: var(--pb-sky);
}
@media (max-width: 1023px) {
	body.pb-std .entry-content .pig-banner-sub.uagb-section__wrap { padding-top: calc(300px + 36px) !important; padding-bottom: 40px !important; }
	body.pb-std .entry-content .pig-banner-sub.uagb-section__wrap::before { height: 300px; }
	body.pb-std .entry-content .pig-banner-sub h1 { font-size: 44px !important; }
}
@media (max-width: 639px) {
	body.pb-std .entry-content .pig-banner-sub.uagb-section__wrap { padding-top: calc(220px + 28px) !important; padding-bottom: 32px !important; }
	body.pb-std .entry-content .pig-banner-sub.uagb-section__wrap::before { height: 220px; }
	body.pb-std .entry-content .pig-banner-sub h1 { font-size: 36px !important; }
	body.pb-std .entry-content .pig-banner-sub h1::after { width: 72px; height: 6px; margin-top: 14px; }
}

/* 02 Intro heading (the big line under the banner). */
body.pb-std .entry-content .pig-banner-h2-1 {
	max-width: 1000px;
	margin: 8px 0 22px !important;
	align-self: flex-start; /* a flex container (Cats) would centre it: keep it under the title */
	font-family: var(--pb-font-num) !important;
	font-weight: 900 !important;
	font-size: 40px !important;
	line-height: 1.2 !important;
	color: var(--pb-blue) !important;
	text-align: left;
}
@media (max-width: 639px) { body.pb-std .entry-content .pig-banner-h2-1 { font-size: 30px !important; } }

/* 03 Text column: paragraphs, lists, headings and embeds at most 760px; centred paragraphs stay centred.
   Space before the footer, so a last button or form never touches it. */
body.pb-std .entry-content { padding-bottom: 72px; }
@media (max-width: 639px) { body.pb-std .entry-content { padding-bottom: 56px; } }
body.pb-std .entry-content :is(p, ul, ol, h3, h4, h5, blockquote, figure.wp-block-embed):not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .pb-post-grid, .wp-block-gallery, .wp-block-columns, figure, details, table, .pig-banner-sub) *) {
	max-width: 760px;
}
body.pb-std .entry-content :is(p, h3, h4).has-text-align-center:not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .wp-block-columns, details) *) { margin-left: auto; margin-right: auto; }
body.pb-std .entry-content :is(p, li):not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .pb-post-grid, figure, table) *) { font-size: 19px; line-height: 1.75; color: var(--pb-ink); }
/* Bulleted and numbered lists: tighter lines, room between items (Aaron, Nov 19) */
body.pb-std .entry-content :is(ul, ol):not([class*="pb-"]):not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .pb-post-grid, figure, table, nav) *) > li { line-height: 1.5; margin-bottom: 10px; }

/* 04 Headings. H3: black capitals with the blue bar; other H2s: blue Bitter; H4: bold Poppins. */
body.pb-std .entry-content h3:not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .pb-post-grid, details) *) {
	margin: 48px 0 18px;
	font-family: var(--pb-font) !important;
	font-weight: 900 !important;
	font-size: 26px !important;
	line-height: 1.25 !important;
	text-transform: uppercase;
	color: var(--pb-ink) !important;
	position: relative;
	padding-left: 22px !important;
}
/* The bar runs down every line of a heading that wraps (Aaron, Nov 19) */
body.pb-std .entry-content h3:not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .pb-post-grid, details) *)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.12em;
	bottom: 0.12em;
	width: 8px;
	border-radius: 4px;
	background: var(--pb-blue);
}
body.pb-std .entry-content h2:not(.pig-banner-h2-1):not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .pb-post-grid, details) *) {
	font-family: var(--pb-font-num) !important;
	font-weight: 900 !important;
	font-size: 34px !important;
	line-height: 1.2 !important;
	color: var(--pb-blue) !important;
}
body.pb-std .entry-content h4:not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .pb-post-grid, details) *) {
	font-family: var(--pb-font) !important;
	font-weight: 800 !important;
	font-size: 21px !important;
	line-height: 1.35 !important;
	color: var(--pb-ink) !important;
}
@media (max-width: 639px) {
	body.pb-std .entry-content h3:not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .pb-post-grid, details) *) { font-size: 22px !important; }
	body.pb-std .entry-content h2:not(.pig-banner-h2-1):not(:is(.gform_wrapper, .pb-tours, .pb-vol, .pb-pres, .pb-nm, .pb-veh, .pb-wl, .pb-acards, .pb-post-grid, details) *) { font-size: 28px !important; }
}

/* 05 Links in text are underlined (not by colour alone); link-only lists show arrows. */
body.pb-std .entry-content :is(p, li) a:not(.wp-block-button__link) { color: var(--pb-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
body.pb-std .entry-content :is(p, li) a:not(.wp-block-button__link):hover { color: var(--pb-navy); }
body.pb-std .entry-content a:focus-visible { outline: 3px solid var(--pb-blue); outline-offset: 3px; border-radius: 4px; }
/* Arrow lists: arrow beside the first line, tighter lines, room between items (Aaron, Nov 19) */
body.pb-std .entry-content ul.pb-links { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
body.pb-std .entry-content ul.pb-links li { margin: 0; line-height: 1.35; }
body.pb-std .entry-content ul.pb-links a {
	display: inline-flex;
	align-items: flex-start;
	gap: 12px;
	line-height: 1.35;
	font-weight: 800;
	text-decoration-color: var(--pb-sky);
}
body.pb-std .entry-content ul.pb-links a::before {
	content: "";
	flex: none;
	width: 34px;
	height: 34px;
	margin-top: calc((1.35em - 34px) / 2); /* centred on the first line */
	border-radius: 50%;
	background: var(--pb-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231b6da0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* 06 Buttons: the home page buttons. */
body.pb-std .entry-content .wp-block-button__link {
	display: inline-block;
	box-sizing: border-box;
	padding: 16px 30px !important;
	border: 0 !important;
	border-radius: 18px !important;
	background: var(--pb-blue) !important;
	color: var(--pb-white) !important;
	box-shadow: 0 5px 0 var(--pb-navy);
	font-family: var(--pb-font) !important;
	font-weight: 900 !important;
	font-size: 19px !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	transition: transform 0.1s ease;
}
body.pb-std .entry-content .wp-block-button__link:hover { transform: translateY(-2px); }
body.pb-std .entry-content .is-style-outline .wp-block-button__link {
	padding: 13px 27px !important;
	border: 3px solid var(--pb-blue) !important;
	background: var(--pb-white) !important;
	color: var(--pb-blue) !important;
	box-shadow: none;
}
@media (prefers-reduced-motion: reduce) { body.pb-std .entry-content .wp-block-button__link { transition: none; } body.pb-std .entry-content .wp-block-button__link:hover { transform: none; } }

/* 07 Embeds: rounded video. */
body.pb-std .entry-content figure.wp-block-embed.is-type-video { margin: 0 0 48px; border-radius: 22px; overflow: hidden; }

/* 08 Team card grid (Our Team; inc/refresh-pages.php pb_refresh_team_grid). Pale blue reaches the window edges
   without widening the page (box-shadow + clip-path). */
body.pb-std .entry-content ul.pb-team {
	list-style: none;
	max-width: none !important; /* not the 760px text column */
	margin: 56px 0 0;
	padding: 64px 0 80px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	background: var(--pb-pale);
	box-shadow: 0 0 0 100vmax var(--pb-pale);
	clip-path: inset(0 -100vmax);
}
body.pb-std .entry-content .pb-team__card {
	margin: 0;
	background: var(--pb-white);
	border-radius: 30px;
	border-bottom: 10px solid var(--pb-sky);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: left;
}
body.pb-std .entry-content .pb-team__card > img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; border-radius: 0; }
body.pb-std .entry-content .pb-team__body { padding: 26px 30px 32px; }
body.pb-std .entry-content .pb-team__body h3 { margin: 0 !important; font-size: 26px !important; text-transform: none; }
body.pb-std .entry-content .pb-team__body h3::before { content: none; }
body.pb-std .entry-content .pb-team__body h3 { padding-left: 0 !important; } /* no bar here, so no room for one */
body.pb-std .entry-content .pb-team__body .uagb-team__prefix {
	display: inline-block;
	margin: 10px 0 16px;
	padding: 5px 12px;
	border-radius: 12px; /* still neat when a long role wraps */
	background: var(--pb-blue);
	color: var(--pb-white);
	font-family: var(--pb-font);
	font-weight: 800;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
body.pb-std .entry-content .pb-team__body .uagb-team__desc { display: block; max-width: none !important; margin: 0; font-size: 17px; line-height: 1.65; }
@media (max-width: 1023px) { body.pb-std .entry-content ul.pb-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 639px) { body.pb-std .entry-content ul.pb-team { grid-template-columns: minmax(0, 1fr); padding: 40px 0 56px; } }

/* 09 Animal category tiles (Meet the Animals; inc/refresh-pages.php pb_refresh_animal_tiles), board "Animals B2":
   the whole photo on top, the name, line and arrow in a solid blue bar under it (white on #1b6da0 = 5.0:1). */
body.pb-std .entry-content ul.pb-animals {
	list-style: none;
	max-width: none !important; /* not the 760px text column */
	margin: 40px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}
body.pb-std .entry-content ul.pb-animals > li { margin: 0; }
body.pb-std .entry-content ul.pb-animals a.pb-animal {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 30px;
	overflow: hidden;
	color: var(--pb-white) !important;
	text-decoration: none !important;
	background: var(--pb-blue);
}
body.pb-std .entry-content ul.pb-animals a.pb-animal:focus-visible { outline: 4px solid var(--pb-blue) !important; outline-offset: 4px; }
body.pb-std .entry-content .pb-animal__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; }
body.pb-std .entry-content .pb-animal__text {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 32px 28px;
	background: var(--pb-blue);
	border-bottom: 10px solid var(--pb-sky);
	transition: background-color 0.15s ease;
}
body.pb-std .entry-content ul.pb-animals a.pb-animal:hover .pb-animal__text { background: var(--pb-navy); }
body.pb-std .entry-content ul.pb-animals a.pb-animal h3.pb-animal__name {
	display: block;
	margin: 0 !important;
	padding: 0;
	max-width: none;
	color: var(--pb-white) !important;
	font-family: var(--pb-font) !important;
	font-weight: 900 !important;
	font-size: 40px !important;
	line-height: 1 !important;
	text-transform: uppercase;
}
body.pb-std .entry-content ul.pb-animals a.pb-animal h3.pb-animal__name::before { content: none; display: none; }
body.pb-std .entry-content ul.pb-animals a.pb-animal h3.pb-animal__name { padding-left: 0 !important; }
body.pb-std .entry-content ul.pb-animals a.pb-animal .pb-animal__line { display: block; margin-top: 8px; font-size: 17px; line-height: 1.5; font-weight: 400; color: var(--pb-white) !important; }
body.pb-std .entry-content .pb-animal__arrow {
	flex: none;
	width: 52px;
	height: 52px;
	box-sizing: border-box;
	border: 3px solid var(--pb-white);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	transition: background-color 0.15s ease, color 0.15s ease;
}
body.pb-std .entry-content ul.pb-animals a.pb-animal:hover .pb-animal__arrow { background: var(--pb-white); color: var(--pb-navy); }
@media (max-width: 1023px) { body.pb-std .entry-content ul.pb-animals { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 639px) {
	body.pb-std .entry-content .pb-animal__img { aspect-ratio: 4 / 3; }
	body.pb-std .entry-content .pb-animal__text { padding: 20px 22px 22px; gap: 14px; }
	body.pb-std .entry-content ul.pb-animals a.pb-animal h3.pb-animal__name { font-size: 30px !important; }
	body.pb-std .entry-content ul.pb-animals a.pb-animal .pb-animal__line { font-size: 16px; }
	body.pb-std .entry-content .pb-animal__arrow { width: 46px; height: 46px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { body.pb-std .entry-content .pb-animal__text, body.pb-std .entry-content .pb-animal__arrow { transition: none; } }

/* 10 Our Sanctuary (inc/refresh-sanctuary.php), boards "Our Sanctuary · Desktop / Phone". */
body.pb-std .entry-content ul.pb-includes {
	list-style: none;
	max-width: none !important;
	margin: 0 0 56px;
	padding: 28px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	background: var(--pb-pale);
	border-radius: 30px;
}
body.pb-std .entry-content ul.pb-includes > li {
	margin: 0;
	padding: 22px 22px 24px;
	background: var(--pb-white);
	border-radius: 22px;
	border-bottom: 8px solid var(--pb-sky);
	font-size: 16px;
	line-height: 1.55;
}
body.pb-std .entry-content .pb-includes__badge { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: var(--pb-pale); color: var(--pb-blue); }
body.pb-std .entry-content .pb-includes__badge svg { display: block; }
body.pb-std .entry-content ul.pb-includes > li > strong { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 900; }
body.pb-std .entry-content nav.pb-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
body.pb-std .entry-content nav.pb-jump a {
	display: inline-block;
	padding: 10px 18px;
	border: 2px solid var(--pb-blue);
	border-radius: 999px;
	background: var(--pb-white);
	color: var(--pb-blue);
	font-weight: 800;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
}
body.pb-std .entry-content nav.pb-jump a:hover { background: var(--pb-blue); color: var(--pb-white); }
body.pb-std .entry-content section.pb-area {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	align-items: center;
	padding: 56px 0;
	border-top: 3px solid var(--pb-pale);
	scroll-margin-top: 24px;
}
body.pb-std .entry-content section.pb-area.pb-area--flip .pb-area__text { order: 2; }
body.pb-std .entry-content .pb-area__text > * { max-width: none; }
body.pb-std .entry-content .pb-area__text h4 { margin: 0 0 14px !important; font-weight: 900 !important; font-size: 30px !important; line-height: 1.15 !important; color: var(--pb-blue) !important; }
body.pb-std .entry-content .pb-area h4 { scroll-margin-top: 24px; }
/* Area photos as a collage: the first big, the rest beside and below it; all of them show (Bert and Zeus has six). */
body.pb-std .entry-content .pb-area__photos figure.wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}
body.pb-std .entry-content .pb-area__photos figure.wp-block-gallery > figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 4 / 3; }
body.pb-std .entry-content .pb-area__photos figure.wp-block-gallery > figure.wp-block-image:first-child { grid-column: span 2; grid-row: span 2; }
body.pb-std .entry-content .pb-area__photos figure.wp-block-image a,
body.pb-std .entry-content .pb-area__photos figure.wp-block-image img { display: block; width: 100%; height: 100% !important; object-fit: cover; border-radius: 16px; }
/* "Which pigs live here?" dropdowns: white with a blue border and the menu's caret (custom.css "Dropdowns" made them solid blue). */
body.pb-std .entry-content .pb-area .wp-block-details.pb-acc { margin: 22px 0 0; border: 3px solid var(--pb-blue); border-radius: 16px; background: var(--pb-white); overflow: hidden; }
body.pb-std .entry-content .pb-area .wp-block-details.pb-acc > summary {
	margin: 0;
	padding: 14px 20px;
	border: 0;
	background: var(--pb-white);
	color: var(--pb-blue);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.4;
	gap: 16px;
}
body.pb-std .entry-content .pb-area .wp-block-details.pb-acc > summary:hover { background: var(--pb-pale); }
body.pb-std .entry-content .pb-area .wp-block-details.pb-acc > summary::after {
	width: 16px;
	height: 16px;
	padding: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M14 24h36L32 44z' fill='%231b6da0' stroke='%231b6da0' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform 0.2s ease;
}
body.pb-std .entry-content .pb-area .wp-block-details.pb-acc[open] > summary { background: var(--pb-pale); }
body.pb-std .entry-content .pb-area .wp-block-details.pb-acc[open] > summary::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M14 24h36L32 44z' fill='%231b6da0' stroke='%231b6da0' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; transform: rotate(180deg); }
body.pb-std .entry-content .pb-area .wp-block-details.pb-acc > .pb-acc__content { padding: 4px 20px 16px; background: var(--pb-white); border: 0; }
/* Tulip's Meadow, the memorial: quieter colours. */
body.pb-std .entry-content section.pb-area.pb-area--memorial { margin-top: 24px; padding: 48px; border: 0; border-radius: 32px; background: #f1f4f2; }
body.pb-std .entry-content .pb-area--memorial .pb-area__text h4 { color: #2f4a3d !important; }
body.pb-std .entry-content .pb-area--memorial .wp-block-details.pb-acc { border-color: #4f6b5c; }
body.pb-std .entry-content .pb-area--memorial .wp-block-details.pb-acc > summary { color: #2f4a3d; }
body.pb-std .entry-content .pb-area--memorial .wp-block-details.pb-acc[open] > summary,
body.pb-std .entry-content .pb-area--memorial .wp-block-details.pb-acc > summary:hover { background: #e3e9e5; }
/* The big photo gallery: an even grid. */
body.pb-std .entry-content figure.wp-block-gallery.pb-gallery-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: none; }
body.pb-std .entry-content figure.pb-gallery-grid > figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 4 / 3; }
body.pb-std .entry-content figure.pb-gallery-grid figure.wp-block-image a,
body.pb-std .entry-content figure.pb-gallery-grid figure.wp-block-image img { display: block; width: 100%; height: 100% !important; object-fit: cover; border-radius: 14px; }
@media (max-width: 1023px) {
	body.pb-std .entry-content ul.pb-includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.pb-std .entry-content section.pb-area { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	body.pb-std .entry-content section.pb-area .pb-area__photos { order: -1; }
	body.pb-std .entry-content section.pb-area.pb-area--flip .pb-area__text { order: 0; }
}
@media (max-width: 639px) {
	body.pb-std .entry-content ul.pb-includes { padding: 14px; gap: 10px; border-radius: 22px; margin-left: -4px; margin-right: -4px; }
	body.pb-std .entry-content ul.pb-includes > li { padding: 16px; font-size: 14px; }
	body.pb-std .entry-content ul.pb-includes > li > strong { font-size: 15px; }
	body.pb-std .entry-content nav.pb-jump { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--pb-gutter)); padding-bottom: 10px; }
	body.pb-std .entry-content nav.pb-jump a { flex: none; white-space: nowrap; font-size: 14px; }
	body.pb-std .entry-content section.pb-area { padding: 36px 0; }
	body.pb-std .entry-content .pb-area__text h4 { font-size: 24px !important; }
	body.pb-std .entry-content section.pb-area.pb-area--memorial { padding: 24px; }
	/* Two columns; the first photo full width; a last photo left alone on its row is full width too. */
	body.pb-std .entry-content .pb-area__photos figure.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	body.pb-std .entry-content .pb-area__photos figure.wp-block-gallery > figure.wp-block-image:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
	body.pb-std .entry-content .pb-area__photos figure.wp-block-gallery > figure.wp-block-image:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 10; }
	body.pb-std .entry-content figure.wp-block-gallery.pb-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { body.pb-std .entry-content .pb-area .wp-block-details.pb-acc > summary::after { transition: none; } }

/* 11 Our Pigs (inc/refresh-pigs-page.php), board "Pigs B · Photo + Blue Name Bar". */
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs {
	list-style: none;
	max-width: none !important;
	margin: 32px 0 56px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs > li.pb-pig {
	margin: 0;
	display: flex;
	flex-direction: column;
	border-radius: 24px;
	overflow: hidden;
	background: var(--pb-white);
	box-shadow: 0 0 0 2px var(--pb-pale);
	font-size: 15px;
	line-height: 1.5;
}
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs a.pb-pig__top { display: block; color: var(--pb-white) !important; text-decoration: none !important; }
body :is(.pb-std .entry-content, .pb-sp) .pb-pig__img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; }
body :is(.pb-std .entry-content, .pb-sp) .pb-pig__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	background: var(--pb-blue);
	color: var(--pb-white);
	border-bottom: 6px solid var(--pb-sky);
	transition: background-color 0.15s ease;
}
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs a.pb-pig__top:hover .pb-pig__bar { background: var(--pb-navy); }
body :is(.pb-std .entry-content, .pb-sp) .pb-pig__name { display: block; font-weight: 900; font-size: 21px; line-height: 1.15; text-transform: uppercase; }
body :is(.pb-std .entry-content, .pb-sp) .pb-pig__sub { display: block; margin-top: 3px; font-size: 14px; }
body :is(.pb-std .entry-content, .pb-sp) .pb-pig__arrow { flex: none; width: 38px; height: 38px; box-sizing: border-box; border: 2px solid var(--pb-white); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
body :is(.pb-std .entry-content, .pb-sp) .pb-pig__facts { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 18px; color: #3d4650; }
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs a.pb-pig__btn {
	margin-top: auto;
	position: relative;
	top: 12px;
	display: block;
	padding: 10px 12px;
	border: 3px solid var(--pb-blue);
	border-radius: 14px;
	color: var(--pb-blue) !important;
	text-align: center;
	text-decoration: none !important;
	font-weight: 900;
	font-size: 16px;
	line-height: 1.25;
}
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs a.pb-pig__btn:hover { background: var(--pb-blue); color: var(--pb-white) !important; }
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs .pb-pig__facts { padding-bottom: 30px; }
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs a:focus-visible { outline: 3px solid var(--pb-blue) !important; outline-offset: 3px; }
/* In Memoriam: quieter grey-green, softer photos. */
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs--memoriam .pb-pig__bar { background: #4f6b5c; border-bottom-color: #c9d6ce; }
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs--memoriam a.pb-pig__top:hover .pb-pig__bar { background: #2f4a3d; }
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs--memoriam .pb-pig__img { filter: saturate(0.8); }
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs--memoriam a.pb-pig__btn { border-color: #4f6b5c; color: #2f4a3d !important; font-size: 15px; }
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs--memoriam a.pb-pig__btn:hover { background: #4f6b5c; color: var(--pb-white) !important; }
@media (max-width: 1023px) { body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 639px) {
	body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs > li.pb-pig { font-size: 13px; border-radius: 18px; }
	body :is(.pb-std .entry-content, .pb-sp) .pb-pig__bar { padding: 10px 12px; }
	body :is(.pb-std .entry-content, .pb-sp) .pb-pig__name { font-size: 16px; }
	body :is(.pb-std .entry-content, .pb-sp) .pb-pig__sub { font-size: 12px; }
	body :is(.pb-std .entry-content, .pb-sp) .pb-pig__arrow { display: none; }
	body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs .pb-pig__facts { padding: 10px 12px 26px; }
	body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs a.pb-pig__btn { font-size: 13px; padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { body :is(.pb-std .entry-content, .pb-sp) .pb-pig__bar { transition: none; } }
/* Gallery photos now open in the lightbox (inc/refresh-lightbox.php), so they sit in the figure without a link: the
   photo fills its tile exactly (the tile's aspect ratio sets the size; the Enlarge button stays on top). */
body.pb-std .entry-content .pb-area__photos figure.wp-block-image,
body.pb-std .entry-content figure.pb-gallery-grid > figure.wp-block-image { display: block !important; position: relative; overflow: hidden; border-radius: 16px; }
body.pb-std .entry-content .pb-area__photos figure.wp-block-image > img,
body.pb-std .entry-content figure.pb-gallery-grid > figure.wp-block-image > img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
/* 11b Our Pigs search and sort (js/pigs-find.js). */
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 24px;
	margin: 32px 0 0;
	padding: 22px 26px;
	border-radius: 24px;
	background: var(--pb-pale);
	color: var(--pb-ink);
	font-size: 18px; /* its own size, so Our Pigs and Sponsor a Pig match */
	line-height: 1.6;
}
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind[hidden] { display: none; }
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind__field label { display: block; margin: 0 0 6px; font-weight: 800; font-size: 15px; color: var(--pb-ink); }
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind input,
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind select {
	box-sizing: border-box;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 2px solid var(--pb-blue) !important;
	border-radius: 14px !important;
	background-color: var(--pb-white) !important;
	color: var(--pb-ink) !important;
	font: inherit;
	font-size: 17px;
}
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind input { width: 300px; max-width: 100%; }
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind select { min-width: 230px; padding-right: 40px; }
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind input:focus-visible,
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind select:focus-visible { outline: 3px solid var(--pb-navy) !important; outline-offset: 2px; }
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind p.pb-pigfind__count { flex-basis: 100%; max-width: none; margin: 0; font-size: 18px !important; line-height: 1.6 !important; font-weight: 800; color: var(--pb-navy); }
body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind + ul.pb-pigs { margin-top: 24px; }
body :is(.pb-std .entry-content, .pb-sp) ul.pb-pigs > li.pb-pig[hidden] { display: none; }
@media (max-width: 639px) {
	body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind { display: block; padding: 16px; border-radius: 18px; }
	body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind__field { margin-bottom: 14px; }
	body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind input,
	body :is(.pb-std .entry-content, .pb-sp) .pb-pigfind select { width: 100%; min-width: 0; }
}
