.wf-seasonal-card {
	align-items: start;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
}

.wf-seasonal-card__media,
.wf-profile__primary-image {
	display: flex;
	justify-content: center;
}

.wf-seasonal-card img {
	height: auto;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.wf-seasonal-card__media img,
.wf-profile__primary-image img {
	max-width: min(100%, 420px);
}

.wf-scientific,
.wf-irish {
	overflow-wrap: anywhere;
}

.wf-live-search {
	max-width: 480px;
	position: relative;
}

.wf-live-search label {
	display: block;
	font-weight: 600;
	margin-bottom: .35rem;
}

.wf-live-search__control {
	display: flex;
	gap: .5rem;
}

.wf-live-search__control input,
.wf-live-search__control button {
	font-size: 1rem;
	min-height: 2.5rem;
}

.wf-live-search__control input {
	min-width: 0;
	width: 100%;
}

.wf-glossary {
	display: grid;
	gap: 1.5rem;
}

.wf-glossary__entry {
	border-top: 1px solid #a9a2a9;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
	padding-top: 1rem;
}

.wf-glossary__entry--text {
	grid-template-columns: minmax(0, 1fr);
}

.wf-glossary__entry h2,
.wf-gallery__item figcaption {
	margin-top: 0;
}

.wf-gallery {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.wf-gallery__item {
	margin: 0;
}

.wf-gallery__item img {
	height: auto;
	max-width: 100%;
}

.wf-gallery__item figcaption {
	font-weight: 600;
	padding-top: .5rem;
}

.wf-curated-links {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

@media (max-width: 600px) {
	.wf-glossary__entry {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wf-live-search__results {
	background: #fff;
	border: 1px solid #a9a2a9;
	box-shadow: 0 4px 12px rgb(38 41 49 / 12%);
	left: 0;
	list-style: none;
	margin: .15rem 0 0;
	max-height: min(70vh, 32rem);
	overflow-y: auto;
	padding: 0;
	position: absolute;
	right: 0;
	z-index: 20;
}

.wf-live-search__results a {
	align-items: center;
	color: #2f2727;
	display: grid;
	gap: .5rem;
	grid-template-columns: 48px minmax(0, 1fr);
	padding: .3rem .5rem;
	text-decoration: none;
}

.wf-live-search__results [aria-selected="true"] a,
.wf-live-search__results a:hover,
.wf-live-search__results a:focus-visible {
	background: #f8f7f6;
	outline: 2px solid #786d78;
	outline-offset: -2px;
}

.wf-live-search__results img,
.wf-search-placeholder {
	height: 48px;
	object-fit: contain;
	width: 48px;
}

.wf-live-search__results strong,
.wf-live-search__results i,
.wf-live-search__results span span {
	display: block;
	line-height: 1.2;
	margin: 0;
	overflow-wrap: anywhere;
}

.wf-live-search__results i {
	font-size: .875rem;
}

.wf-live-search__results span span {
	font-size: .8125rem;
}

.wf-profile__intro {
	align-items: start;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	grid-template-columns: minmax(280px, 420px) minmax(260px, 1fr);
}

.wf-profile__facts {
	margin: 0;
}

.wf-profile__facts > div {
	border-bottom: 1px solid #a9a2a9;
	padding: .6rem 0;
}

.wf-profile__facts dt {
	font-weight: 600;
}

.wf-profile__facts dd {
	margin: .15rem 0 0;
	overflow-wrap: anywhere;
}

.wf-profile__section {
	max-width: 680px;
}

.wf-photo-grid {
	align-items: start;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wf-photo-grid figure {
	margin: 0;
}

.wf-photo-grid figcaption {
	font-size: .875rem;
}

.wf-image-unavailable {
	align-items: center;
	background: #f8f7f6;
	border: 1px solid #a9a2a9;
	display: flex;
	justify-content: center;
	min-height: 10rem;
	padding: 1rem;
}

.wf-plant-names > span {
	display: block;
}

.wf-taxonomy-directory {
	columns: 3 14rem;
	list-style: none;
	padding: 0;
}

.wf-directory__header {
	align-items: start;
	border-bottom: 1px solid #d8d2ce;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
}

.wf-directory__intro {
	flex: 1 1 34rem;
	margin: 0;
	max-width: 42rem;
}

.wf-directory__tools {
	flex: 0 1 24rem;
	min-width: 16rem;
}

.wf-directory__search {
	margin: 0;
}

.wf-season[aria-busy="true"] {
	opacity: .55;
	transition: opacity .15s ease;
}

.wf-directory__search input {
	background: #fff;
	border: 1px solid var(--wf-soft, #d8d2ce);
	border-radius: 10px;
	font: inherit;
	min-height: 2.75rem;
	padding: .55rem .8rem;
	width: 100%;
}

.wf-directory__status {
	color: #5e535e;
	font-size: .875rem;
	margin: .35rem 0 0;
	min-height: 1.25rem;
	text-align: right;
}

.wf-taxonomy-common {
	color: #5e535e;
	font-size: .875em;
}


.wf-taxonomy-directory [hidden] {
	display: none !important;
}

.wf-taxonomy-directory li {
	break-inside: avoid;
	border-bottom: 1px solid #a9a2a9;
	padding: .5rem 0;
}

.wf-taxonomy-swatch {
	border: 1px solid rgb(47 39 39 / 25%);
	border-radius: 50%;
	display: inline-block;
	height: .7rem;
	margin-right: .4rem;
	vertical-align: -1px;
	width: .7rem;
}

@media (max-width: 720px) {
	.wf-directory__header {
		display: block;
	}

	.wf-directory__tools {
		margin-top: 1rem;
		max-width: none;
		min-width: 0;
	}

	.wf-directory__status {
		text-align: left;
	}

	.wf-seasonal-card,
	.wf-profile__intro {
		grid-template-columns: minmax(0, 1fr);
	}

	.wf-live-search {
		max-width: none;
	}

	.wf-live-search__results {
		position: static;
	}

	.wf-live-search__results a {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.wf-live-search__results img,
	.wf-search-placeholder {
		height: 56px;
		width: 56px;
	}

	.wf-photo-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Glossary term inline highlighting */
.wf-glossary-term {
	background: linear-gradient( 180deg, transparent 60%, #e8f4fd 60% );
	border-bottom: 1px dotted #786d78;
	color: inherit;
	cursor: help;
	position: relative;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wf-glossary-term:visited {
	color: inherit;
}

.wf-glossary-term:hover,
.wf-glossary-term:focus-visible {
	background: linear-gradient( 180deg, transparent 60%, #d0e8f8 60% );
	border-bottom-color: #5a525a;
	outline: none;
}

.wf-glossary-term:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #786d78;
	border-radius: 2px;
}

/* Glossary popover */
.wf-glossary-popover {
	background: #fff;
	border: 1px solid #a9a2a9;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgb(38 41 49 / 15%);
	display: none;
	max-width: 320px;
	min-width: 200px;
	position: absolute;
	z-index: 1000;
}

.wf-glossary-popover__arrow {
	background: #fff;
	border-left: 1px solid #a9a2a9;
	border-top: 1px solid #a9a2a9;
	height: 10px;
	position: absolute;
	top: -5px;
	transform: rotate( 45deg );
	width: 10px;
	z-index: -1;
}

.wf-glossary-popover--left .wf-glossary-popover__arrow {
	transform: rotate( 225deg );
}

.wf-glossary-popover__content {
	padding: 0.75rem;
}

.wf-glossary-popover__image {
	background: #f8f7f6;
	display: flex;
	justify-content: center;
	margin: -0.75rem -0.75rem 0.75rem;
	overflow: hidden;
}

.wf-glossary-popover__image img {
	display: block;
	height: auto;
	max-height: 150px;
	max-width: 100%;
	width: auto;
}

.wf-glossary-popover__text {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wf-glossary-popover__title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
}

.wf-glossary-popover__definition {
	font-size: 0.875rem;
	line-height: 1.5;
}

.wf-glossary-popover__definition p {
	margin: 0 0 0.35rem;
}

.wf-glossary-popover__definition p:last-child {
	margin-bottom: 0;
}

.wf-glossary-popover__link {
	align-self: flex-start;
	color: #786d78;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-top: 0.25rem;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

.wf-glossary-popover__link:hover,
.wf-glossary-popover__link:focus {
	color: #5a525a;
}

.wf-glossary-popover__loading,
.wf-glossary-popover__error {
	color: #786d78;
	font-size: 0.875rem;
	font-style: italic;
	padding: 0.5rem;
	text-align: center;
}

.wf-glossary-popover__error {
	color: #b03a3a;
}

/* Touch device adjustments */
@media ( hover: none ) and ( pointer: coarse ) {
	.wf-glossary-term {
		background: linear-gradient( 180deg, transparent 50%, #e8f4fd 50% );
		border-bottom: 2px solid #786d78;
		padding-bottom: 1px;
	}

	.wf-glossary-term:active {
		background: linear-gradient( 180deg, transparent 50%, #d0e8f8 50% );
	}
}

/* Enlarged photograph overlay with attribution. */
.wf-lightbox {
	align-items: center;
	background: rgb(30 26 24 / 82%);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 1.5rem;
	position: fixed;
	z-index: 9999;
}

.wf-lightbox[hidden] {
	display: none;
}

.wf-lightbox-open {
	overflow: hidden;
}

.wf-lightbox__dialog {
	background: #ffffff;
	border-radius: 10px;
	max-height: 92vh;
	max-width: min(92vw, 1100px);
	overflow: auto;
	padding: 1rem 1rem .9rem;
	position: relative;
}

.wf-lightbox__image {
	display: block;
	height: auto;
	margin: 0 auto;
	max-height: 70vh;
	max-width: 100%;
}

.wf-lightbox__caption {
	font-size: .95rem;
	margin: .65rem 0 0;
}

.wf-lightbox__credit {
	color: #786d78;
	font-size: .8rem;
	margin: .25rem 0 0;
}

.wf-lightbox__original {
	display: inline-block;
	font-size: .8rem;
	margin-top: .5rem;
}

.wf-lightbox__close {
	align-items: center;
	background: #262931;
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-size: 1.25rem;
	height: 2rem;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: -0.75rem;
	top: -0.75rem;
	width: 2rem;
}

.wf-lightbox__close:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.wf-lightbox {
		padding: .75rem;
	}

	.wf-lightbox__close {
		right: .25rem;
		top: .25rem;
	}
}
