/*
 * Redford Conservancy: component styles.
 * Colours, fonts and sizes come from theme.json presets (var(--wp--preset--...)).
 * Loaded on the site and in the editor.
 */

:root {
	--redford-radius: 14px;
	--redford-section: var(--wp--preset--spacing--60);
	--redford-forest: var(--wp--preset--color--forest);
	--redford-line: var(--wp--preset--color--line);
}

/* ---------- Base ---------- */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-query-title {
	font-variation-settings: "SOFT" 100;
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 3px solid var(--wp--preset--color--veld);
	outline-offset: 3px;
}

::selection {
	background: var(--wp--preset--color--pale-mint);
	color: var(--wp--preset--color--forest);
}

.wp-site-blocks {
	padding-top: 0;
}

/* Main content runs straight into the footer. */
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ---------- Sections ---------- */

/* Any full-width Group placed directly on a page is a section with generous padding. */
.wp-block-post-content > .wp-block-group.alignfull,
main > .wp-block-group.alignfull,
.redford-article {
	padding-block: var(--redford-section);
}

.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * {
	margin-block-start: 0;
}

/* Two plain white sections in a row would read as one: close the gap. */
.wp-block-post-content > .wp-block-group.alignfull:not(.has-background) + .wp-block-group.alignfull:not(.has-background) {
	padding-block-start: 0;
}

/* Text on the dark sections */
.has-forest-background-color,
.has-charcoal-background-color,
.has-forest-deep-gradient-background {
	--redford-on-dark: 1;
}

.has-forest-background-color :where(h1, h2, h3, h4, h5, h6),
.has-charcoal-background-color :where(h1, h2, h3, h4, h5, h6),
.redford-banner :where(h1, h2, h3, h4, h5, h6),
.redford-banner .wp-block-post-title {
	color: var(--wp--preset--color--white);
}

.has-forest-background-color a:where(:not(.wp-element-button)),
.has-charcoal-background-color a:where(:not(.wp-element-button)),
.redford-banner a:where(:not(.wp-element-button)) {
	color: inherit;
}

/* Section intros: eyebrow + heading + lead, centred above a grid. */
.redford-intro {
	text-align: center;
	margin-inline: auto;
	max-width: 46rem;
}

.redford-intro > * {
	margin-inline: auto;
}

/* ---------- Text styles ---------- */

.is-style-redford-eyebrow {
	font-family: var(--wp--preset--font-family--figtree);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--wp--preset--color--veld);
}

.is-style-redford-eyebrow + :where(h1, h2, h3) {
	margin-block-start: 0.6rem;
}

.has-forest-background-color .is-style-redford-eyebrow,
.has-charcoal-background-color .is-style-redford-eyebrow,
.redford-banner .is-style-redford-eyebrow {
	color: var(--wp--preset--color--spring);
}

.is-style-redford-eyebrow a {
	text-decoration: none;
}

.is-style-redford-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--redford-forest);
	background: transparent;
	color: var(--redford-forest);
	padding: calc(0.85rem - 2px) calc(1.5rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--redford-forest);
	color: var(--wp--preset--color--white);
}

/* On dark green: the main button turns Spring, outline turns white. */
:is(.has-forest-background-color, .has-charcoal-background-color, .redford-banner) .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: var(--wp--preset--color--spring);
	color: var(--redford-forest);
}

:is(.has-forest-background-color, .has-charcoal-background-color, .redford-banner) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: var(--wp--preset--color--pale-mint);
}

:is(.has-forest-background-color, .has-charcoal-background-color, .redford-banner) .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--wp--preset--color--white);
}

:is(.has-forest-background-color, .has-charcoal-background-color, .redford-banner) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--redford-forest);
}

/* ---------- Header ---------- */

.redford-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--redford-line);
	padding-block: 0.8rem;
	transition: box-shadow 0.25s;
}

.admin-bar .redford-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.redford-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(35, 43, 38, 0.08);
}

.redford-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--redford-forest);
	line-height: 1;
}

.redford-brand__mark {
	height: 3.4rem;
	width: auto;
	flex: none;
}

.redford-brand__name b {
	display: block;
	font: 600 1.6rem/1 var(--wp--preset--font-family--fraunces);
	font-variation-settings: "SOFT" 100;
	letter-spacing: -0.01em;
}

.redford-brand__name i {
	display: block;
	font: 600 0.66rem/1 var(--wp--preset--font-family--figtree);
	letter-spacing: 0.3em;
	text-transform: uppercase;
	margin-top: 0.4rem;
	color: var(--wp--preset--color--veld);
}

.redford-brand--light {
	color: var(--wp--preset--color--white);
}

.redford-brand--light .redford-brand__name i {
	color: var(--wp--preset--color--spring);
}

.redford-header .wp-block-navigation-item__content {
	text-decoration: none;
	padding-block: 0.4rem;
	background-image: linear-gradient(var(--wp--preset--color--spring), var(--wp--preset--color--spring));
	background-size: 0 3px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.2s;
}

.redford-header .wp-block-navigation-item__content:hover,
.redford-header .current-menu-item > .wp-block-navigation-item__content {
	background-size: 100% 3px;
	color: var(--redford-forest);
}

.redford-header__cta .wp-block-button__link {
	padding: 0.7rem 1.2rem;
	font-size: 0.95rem;
}

/* Mobile menu overlay (Caracal Green) */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem max(16px, 4vw);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--fraunces);
	font-variation-settings: "SOFT" 100;
	font-size: 1.75rem;
	font-weight: 600;
}

@media (max-width: 781px) {
	.redford-brand__mark {
		height: 2.75rem;
	}

	.redford-brand__name b {
		font-size: 1.35rem;
	}

	.redford-header .redford-header__cta {
		display: none;
	}
}

/* ---------- Page banner (Cover block) ---------- */

.redford-banner.wp-block-cover {
	min-height: clamp(14rem, 34vw, 24rem);
	padding-block: clamp(3rem, 7vw, 5rem);
	align-items: flex-end;
}

/* No photo yet: a plain Caracal Green band. */
.redford-banner.wp-block-cover:not(:has(.wp-block-cover__image-background, .wp-block-cover__video-background)) {
	background-color: var(--redford-forest);
}

.redford-banner .wp-block-cover__inner-container {
	color: var(--wp--preset--color--white);
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.redford-banner .wp-block-cover__inner-container > * {
	max-width: 46rem;
	margin-inline-start: 0 !important;
}

/* No photo yet: a faint caracal on the right of the band. */
.redford-banner.wp-block-cover:not(:has(.wp-block-cover__image-background, .wp-block-cover__video-background))::after {
	content: "";
	position: absolute;
	right: max(16px, 6vw);
	bottom: -6%;
	height: 112%;
	aspect-ratio: 1807 / 2438;
	background: url("../img/redford-mark-white.svg") center / contain no-repeat;
	opacity: 0.08;
	pointer-events: none;
}

@media (max-width: 781px) {
	.redford-banner.wp-block-cover:not(:has(.wp-block-cover__image-background, .wp-block-cover__video-background))::after {
		height: 70%;
		right: -2rem;
	}
}

.redford-banner .is-style-redford-lead {
	color: #D9F2E3;
}

.redford-banner .wp-block-post-date {
	color: #CFE9DA;
}

/* Home page hero: taller banner. */
.redford-banner.is-hero {
	min-height: clamp(26rem, 62vh, 40rem);
}

@media (max-width: 781px) {
	.redford-banner.is-hero {
		min-height: 0;
	}
}

.redford-banner .wp-block-search__input {
	border-radius: 999px;
	border: 0;
	padding-inline: 1rem;
}

/* ---------- Cards ---------- */

.is-style-redford-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--redford-line);
	border-radius: var(--redford-radius);
	padding: 1.5rem 1.5rem 1.75rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.is-style-redford-card > * {
	margin-block: 0;
}

/* A photo (or placeholder) first in a card runs to the card's edges. */
.is-style-redford-card > :first-child:is(.wp-block-image, .is-style-redford-photo) {
	margin: -1.5rem -1.5rem 0.6rem;
	border-radius: 0;
}

.is-style-redford-card > .wp-block-image:first-child img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.is-style-redford-card h3 {
	color: var(--wp--preset--color--charcoal);
}

.is-style-redford-card p:not(.is-style-redford-eyebrow) {
	color: var(--wp--preset--color--muted);
}

.is-style-redford-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 0.5rem;
}

.has-mist-background-color .is-style-redford-card {
	border-color: transparent;
}

/* Grids of cards keep equal heights. */
.wp-block-group.is-layout-grid > .is-style-redford-card {
	height: 100%;
}

/* ---------- Callout ---------- */

.is-style-redford-callout {
	background: var(--wp--preset--color--pale-mint);
	color: var(--redford-forest);
	border-radius: var(--redford-radius);
	padding: clamp(1.75rem, 4vw, 3rem);
}

.is-style-redford-callout > :first-child {
	margin-block-start: 0;
}

/* ---------- Photo placeholder ---------- */

.is-style-redford-photo {
	position: relative;
	min-height: 14rem;
	border-radius: var(--redford-radius);
	overflow: hidden;
	display: grid;
	place-items: end start;
	padding: 1rem 1.1rem;
	background:
		radial-gradient(120% 70% at 15% 110%, rgba(1, 91, 46, 0.55), transparent 60%),
		linear-gradient(165deg, #A8CDB2 0%, #5E9970 48%, #2E6440 100%);
}

.is-style-redford-photo {
	aspect-ratio: 4 / 3;
}

.is-style-redford-photo.redford-ratio-1 {
	aspect-ratio: 1;
}

.is-style-redford-photo.redford-ratio-16-9 {
	aspect-ratio: 16 / 9;
}

.is-style-redford-photo > p,
.is-style-redford-card .is-style-redford-photo > p {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* ---------- Editor note (content still needed) ---------- */

.is-style-redford-note {
	border: 2px dashed var(--wp--preset--color--veld);
	border-radius: 10px;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	padding: 0.9rem 1.1rem;
}

.is-style-redford-note > * {
	margin-block: 0;
}

.is-style-redford-note > * + * {
	margin-block-start: 0.4rem;
}

/* ---------- Lists ---------- */

.is-style-redford-checklist {
	list-style: none;
	padding-left: 0;
}

.is-style-redford-checklist li {
	position: relative;
	padding-left: 2rem;
	margin-block: 0.55rem;
}

.is-style-redford-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--pale-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23015B2E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}

/* ---------- Images ---------- */

.is-style-redford-rounded img,
.wp-block-post-featured-image.is-style-redford-rounded img {
	border-radius: var(--redford-radius);
}

/* Keep the top or bottom of a cropped photo in view
   (Image block > Advanced > Additional CSS class). */
.redford-focus-top img {
	object-position: 50% 12% !important;
}

.redford-focus-bottom img {
	object-position: 50% 88% !important;
}

/* ---------- Photo mosaic (Gallery "Mosaic" style) ----------
   Tall phone photos (class is-tall) take two rows, very wide ones (is-wide) two columns;
   every tile is cropped to fill its cell, and clicking shows the whole photo. */

.wp-block-gallery.is-style-redford-mosaic {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: clamp(9rem, 15vw, 13rem);
	grid-auto-flow: dense;
	gap: 0.75rem !important;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto !important;
}

.wp-block-gallery.is-style-redford-mosaic > .wp-block-image {
	width: auto !important;
	margin: 0 !important;
	border-radius: 10px;
	overflow: hidden;
	min-height: 0;
}

.wp-block-gallery.is-style-redford-mosaic > .wp-block-image.is-tall {
	grid-row: span 2;
}

.wp-block-gallery.is-style-redford-mosaic > .wp-block-image.is-wide {
	grid-column: span 2;
}

.wp-block-gallery.is-style-redford-mosaic > .wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.5s;
}

.wp-block-gallery.is-style-redford-mosaic > .wp-block-image:hover img {
	transform: scale(1.04);
}

@media (max-width: 781px) {
	.wp-block-gallery.is-style-redford-mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 9.5rem;
		gap: 0.5rem !important;
	}
}

/* The lightbox: a dark green backdrop instead of white. */
.wp-lightbox-overlay .scrim {
	background-color: #0B1F14 !important;
	opacity: 0.94 !important;
}

.wp-lightbox-overlay .close-button {
	color: #fff;
}

/* ---------- News cards (Post Template "Cards" style) ---------- */

.is-style-redford-cards > li {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--redford-line);
	border-radius: var(--redford-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.is-style-redford-cards .wp-block-post-featured-image {
	margin: 0;
}

.is-style-redford-cards .wp-block-post-featured-image img {
	transition: transform 0.4s;
}

.is-style-redford-cards > li:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

/* No featured image yet: show a soft green panel instead of a gap. */
.is-style-redford-cards > li:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 3;
	background: linear-gradient(165deg, #A8CDB2 0%, #5E9970 48%, #2E6440 100%);
}

.redford-card-body {
	padding: 1.25rem 1.4rem 1.5rem;
}

.redford-card-body > * {
	margin-block: 0;
}

.redford-card-body > * + * {
	margin-block-start: 0.5rem;
}

.redford-card-body .wp-block-post-title {
	font-size: var(--wp--preset--font-size--x-large);
}

.redford-card-body .wp-block-post-title a {
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
}

.redford-card-body .wp-block-post-title a:hover {
	color: var(--redford-forest);
}

.redford-card-body .wp-block-post-excerpt {
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
}

.wp-block-post-excerpt__more-text {
	display: none;
}

.wp-block-query-pagination {
	margin-top: 2.5rem;
	font-weight: 600;
}

/* ---------- Footer ---------- */

.redford-footer {
	padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
	color: #C9D1CB;
	font-size: 0.95rem;
}

.redford-footer .redford-brand__mark {
	height: 4.25rem;
}

.redford-footer a[href^="mailto:"] {
	white-space: nowrap;
}

.redford-footer__blurb {
	max-width: 22rem;
	margin-top: 1.25rem;
}

.redford-footer__title {
	font-family: var(--wp--preset--font-family--figtree);
	font-variation-settings: normal;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--spring) !important;
}

.redford-footer__links {
	list-style: none;
	padding: 0;
	margin-top: 0.9rem;
}

.redford-footer__links li + li {
	margin-top: 0.45rem;
}

.redford-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.redford-footer a:hover {
	color: var(--wp--preset--color--spring);
	text-decoration: underline;
}

.redford-footer__base {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: var(--wp--preset--font-size--small);
}

.redford-footer__base p {
	margin: 0;
}

/* ---------- Forms ---------- */

.wp-block-search__input {
	border: 1px solid var(--redford-line);
	border-radius: 999px;
	padding: 0.7rem 1rem;
	font: inherit;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- History & archive ---------- */

/* Credit line at the end of a story (Paragraph "Source / credit" style). */
.is-style-redford-source {
	margin-top: 2.5rem !important;
	padding-top: 1rem;
	border-top: 1px solid var(--redford-line);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	font-style: italic;
}

/* Old, small web photos: shown at their own size in a light, print-like frame. */
.wp-block-image.redford-small-photo {
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	background: var(--wp--preset--color--white);
	padding: 0.6rem;
	border: 1px solid var(--redford-line);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(35, 43, 38, 0.08);
}

.wp-block-image.redford-small-photo img {
	display: block;
	border-radius: 2px;
	width: auto;
	max-width: 100%;
}

.wp-block-image.redford-small-photo figcaption {
	max-width: min(100%, 22rem);
	margin: 0.5rem auto 0;
	text-align: center;
}

/* Timeline (List "Timeline" style): each item starts with a bold year. */
.is-style-redford-timeline {
	list-style: none;
	padding: 0;
	margin-top: 2rem;
	border-left: 2px solid var(--wp--preset--color--spring);
}

.is-style-redford-timeline li {
	position: relative;
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 1rem;
	padding: 0.7rem 0 0.7rem 1.5rem;
	margin: 0;
}

.is-style-redford-timeline li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 1.15rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--redford-forest);
	box-shadow: 0 0 0 3px var(--wp--preset--color--mist);
}

.is-style-redford-timeline li > strong:first-child {
	font-family: var(--wp--preset--font-family--fraunces);
	font-variation-settings: "SOFT" 100;
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--redford-forest);
	line-height: 1.4;
}

@media (max-width: 600px) {
	.is-style-redford-timeline li {
		grid-template-columns: 1fr;
		gap: 0.1rem;
	}
}

/* Story list (Post Template "Story list" style): year | title + excerpt | photo. */
.is-style-redford-stories {
	list-style: none;
	padding: 0;
	max-width: 900px;
	margin: 0 auto;
}

.is-style-redford-stories > li {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr) 7.5rem;
	grid-template-areas: "year text photo";
	gap: 1.5rem;
	align-items: start;
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--redford-line);
	margin: 0;
}

.is-style-redford-stories > li:first-child {
	border-top: 1px solid var(--redford-line);
}

.is-style-redford-stories .redford-story-year {
	grid-area: year;
	font-family: var(--wp--preset--font-family--fraunces);
	font-variation-settings: "SOFT" 100;
	font-weight: 600;
	font-size: 1.9rem;
	line-height: 1;
	color: var(--wp--preset--color--veld);
	margin: 0;
}

.is-style-redford-stories .redford-story-text {
	grid-area: text;
	margin: 0;
}

.is-style-redford-stories .redford-story-text > * {
	margin-block: 0;
}

.is-style-redford-stories .redford-story-text > * + * {
	margin-block-start: 0.4rem;
}

.is-style-redford-stories .wp-block-post-title {
	font-size: var(--wp--preset--font-size--x-large);
}

.is-style-redford-stories .wp-block-post-title a {
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
}

.is-style-redford-stories .wp-block-post-title a:hover {
	color: var(--redford-forest);
}

.is-style-redford-stories .wp-block-post-excerpt {
	color: var(--wp--preset--color--muted);
}

.is-style-redford-stories .wp-block-post-featured-image {
	grid-area: photo;
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.is-style-redford-stories > li {
		grid-template-columns: minmax(0, 1fr) 5rem;
		grid-template-areas: "year photo" "text photo";
		gap: 0.5rem 1rem;
	}

	.is-style-redford-stories .redford-story-year {
		font-size: 1.3rem;
	}
}

/* Banner meta row: "History · March 2012" */
.redford-banner-meta {
	gap: 0 0.75rem !important;
}

.redford-banner-meta > * {
	margin: 0 !important;
}

.redford-banner-meta > * + *::before {
	content: "·";
	margin-right: 0.75rem;
}

.redford-banner .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* Previous / next story navigation */
.redford-post-nav {
	padding-block: 2rem !important;
}

.redford-post-nav .wp-block-post-navigation-link {
	max-width: 22rem;
	font-size: 0.95rem;
}

.redford-post-nav .post-navigation-link__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--veld);
}

.redford-post-nav .wp-block-post-navigation-link a {
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--fraunces);
	font-variation-settings: "SOFT" 100;
	font-weight: 600;
	font-size: 1.1rem;
}

.redford-post-nav .wp-block-post-navigation-link a:hover {
	color: var(--redford-forest);
}

/* ---------- Tree of the Month ---------- */

.redford-tree-names,
.redford-tree-names p {
	font-style: italic;
	color: var(--wp--preset--color--muted);
}

.redford-banner .redford-tree-names,
.redford-banner .redford-tree-names p {
	color: #D9F2E3;
	font-size: var(--wp--preset--font-size--large);
}

/* Home page feature: the latest tree, photo beside text. */
.redford-tree-feature {
	list-style: none;
	padding: 0;
	margin: 0;
}

.redford-tree-feature > li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	margin: 0;
}

.redford-tree-feature .wp-block-post-featured-image {
	margin: 0;
	border-radius: var(--redford-radius);
	overflow: hidden;
}

.redford-tree-feature__text > * {
	margin-block: 0;
}

.redford-tree-feature__text > * + * {
	margin-block-start: 0.6rem;
}

.redford-tree-feature__text .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
}

.redford-tree-feature__text .wp-block-buttons {
	margin-top: 1.25rem;
}

@media (max-width: 781px) {
	.redford-tree-feature > li {
		grid-template-columns: 1fr;
	}
}

/* Header submenu */
.redford-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--redford-line) !important;
	border-radius: 10px;
	padding: 0.4rem !important;
	box-shadow: 0 12px 30px rgba(35, 43, 38, 0.1);
}

.redford-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 0.8rem !important;
	border-radius: 6px;
	background-image: none;
}

.redford-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--mist);
}

/* Headings inside stories, trees and news read as sub-headings, not section titles. */
.redford-article .wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: 2.25rem;
}

.redford-article .wp-block-post-content h3 {
	font-size: var(--wp--preset--font-size--large);
}
