/* Wikitreedia — new site design (pages on _layouts/_site.twig) */

:root {
	--cream: #f6f3ec;
	--paper: #fdfcf8;
	--line: #e9e4d8;
	--ink: #17241b;
	--ink-soft: #5d6660;
	--forest: #1d3b28;
	--forest-deep: #183222;
	--green: #3c7a4c;
	--lime: #c9e170;
	--lime-soft: #e3eccb;
	--sage: #dfe6d2;
	--sage-pill: #e4e9da;
	--blush: #f4dfd6;
	--clay: #8c4a37;
	--sand: #e3d1b8;

	--font-display: 'DM Serif Display', Georgia, serif;
	--font-serif: 'Source Serif 4', Georgia, serif;
	--font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow-card: 0 1px 2px rgba(23, 36, 27, .04), 0 8px 24px -12px rgba(23, 36, 27, .12);
	--container: 1170px;
	--gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	background: var(--forest);
	color: #fff;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons & links ----------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--green); }
.btn--outline { border-color: rgba(23, 36, 27, .15); background: rgba(253, 252, 248, .6); color: var(--ink); font-weight: 500; }
.btn--outline:hover { border-color: var(--forest); }
.btn--lime { background: var(--lime); color: var(--forest-deep); }
.btn--lime:hover { background: #d6eb85; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .3); color: #fff; font-weight: 500; }
.btn--ghost-light:hover { border-color: #fff; }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--green);
	font-size: 15px;
	font-weight: 600;
}
.text-link .icon { width: 16px; height: 16px; transition: transform .15s; }

.link-quiet { font-size: 15px; font-weight: 500; text-decoration: none; }
.link-quiet:hover { color: var(--green); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--green);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.eyebrow .icon { width: 16px; height: 16px; }

/* Header -------------------------------------------------------------------- */

.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--line);
	background: var(--cream);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.brand__mark {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 9px;
	background: var(--forest);
	color: var(--lime);
	transform: rotate(-6deg);
}
.brand__mark .icon { width: 20px; height: 20px; transform: rotate(6deg); }
.brand__name {
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -.01em;
}

.site-nav { display: flex; align-items: center; flex: 1; }
.site-nav nav { flex: 1; display: flex; justify-content: center; }
.site-nav__links {
	display: flex;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav__links a {
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current] { color: var(--green); }
.site-nav__account { display: flex; align-items: center; gap: 18px; }
.site-nav__account form { margin: 0; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	margin-right: -10px;
	border: 0;
	background: none;
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px; height: 2px;
	margin: 0 auto;
	border-radius: 2px;
	background: var(--ink);
	transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px var(--gutter) 24px;
		border-bottom: 1px solid var(--line);
		background: var(--cream);
		box-shadow: 0 16px 24px -16px rgba(23, 36, 27, .2);
	}
	.site-nav.is-open { display: flex; }
	.site-nav nav { justify-content: flex-start; }
	.site-nav__links { flex-direction: column; gap: 0; width: 100%; }
	.site-nav__links a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.site-nav__account { justify-content: space-between; }
}

.flash {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	background: var(--lime-soft);
}
.flash--error { background: var(--blush); }

/* Hero ---------------------------------------------------------------------- */

.hero {
	position: relative;
	z-index: 2;
	padding: 104px 0 112px;
	background:
		radial-gradient(60% 70% at 100% 0%, rgba(214, 230, 160, .65), transparent 70%),
		radial-gradient(45% 60% at 0% 100%, rgba(203, 214, 196, .7), transparent 70%),
		var(--cream);
}
.hero__inner { position: relative; }
.hero__title {
	max-width: 610px;
	margin-top: 18px;
	font-family: var(--font-display);
	font-size: clamp(44px, 6.4vw, 68px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -.035em;
}
.hero__title em { color: var(--green); }
.hero__lead {
	max-width: 33em;
	margin-top: 22px;
	color: var(--ink-soft);
	font-size: 18px;
	line-height: 1.65;
}

.hero__decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.leaf-shape {
	position: absolute;
	border-radius: 0 100% 0 100%;
}
.leaf-shape--top {
	top: -40px; left: 39%;
	width: 150px; height: 200px;
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background: rgba(198, 205, 192, .45);
	transform: rotate(-12deg);
}
.leaf-shape--side {
	top: 190px; right: 3%;
	width: 52px; height: 80px;
	background: rgba(168, 187, 160, .35);
	transform: rotate(20deg);
}
.leaf-shape--bottom {
	bottom: 40px; left: 3%;
	width: 120px; height: 72px;
	background: rgba(214, 186, 165, .55);
	transform: rotate(-8deg);
}

/* Plant search (hero) */
.plant-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 570px;
	margin-top: 36px;
	padding: 6px 6px 6px 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	box-shadow: 0 12px 32px -16px rgba(23, 36, 27, .25);
}
.plant-search:focus-within { border-color: var(--green); }
.plant-search__icon { width: 18px; height: 18px; color: var(--ink-soft); }
.plant-search__input {
	flex: 1;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	background: none;
	font-size: 16px;
	outline: none;
}
.plant-search__input::placeholder { color: #8a908b; opacity: 1; }
.plant-search__input::-webkit-search-cancel-button { display: none; }

.plant-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0; right: 0;
	z-index: 10;
	max-height: min(360px, 60vh);
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: 0 20px 40px -20px rgba(23, 36, 27, .35);
	list-style: none;
}
.plant-search__results a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	text-decoration: none;
}
.plant-search__results [aria-selected="true"] a,
.plant-search__results a:hover { background: var(--lime-soft); }
.plant-search__results .plant-search__all a { color: var(--green); font-size: 14px; font-weight: 600; }
.plant-search__results .plant-search__empty { padding: 10px 14px; color: var(--ink-soft); font-size: 14px; }

/* Sections ------------------------------------------------------------------ */

.section { padding: 96px 0; }
.section--tinted { background: var(--sage); }
.section--flush { padding-top: 0; }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-title {
	font-family: var(--font-display);
	font-size: clamp(30px, 3.6vw, 36px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.03em;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow-card);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23, 36, 27, .05), 0 18px 32px -16px rgba(23, 36, 27, .22); }
a.card:hover .text-link .icon { transform: translateX(3px); }

/* Explore cards */
.feature-card { padding: 30px 28px 32px; }
.feature-card--featured { background: linear-gradient(180deg, var(--paper) 30%, #e4ecd6 100%); }
.feature-card__icon {
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	border-radius: 12px;
}
.feature-card__icon .icon { width: 24px; height: 24px; }
.feature-card__icon--lime { background: var(--lime); color: var(--forest); }
.feature-card__icon--forest { background: var(--forest); color: var(--lime); }
.feature-card__icon--blush { background: var(--blush); color: var(--clay); }
.feature-card__title {
	margin-top: 28px;
	font-family: var(--font-display);
	font-size: 23px;
	font-weight: 400;
	letter-spacing: -.02em;
}
.feature-card__text { margin: 10px 0 24px; color: var(--ink-soft); font-size: 15px; }
.feature-card .text-link { margin-top: auto; }

/* Forum preview cards */
.post-card { gap: 16px; padding: 24px; }
.post-card__author { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; }
.post-card__author strong { display: block; font-weight: 600; }
.post-card__date { color: var(--ink-soft); font-size: 12px; }
.avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--lime);
	color: var(--forest);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	object-fit: cover;
}
.post-card__text {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #39433c;
	font-size: 15px;
}
.tag {
	align-self: flex-start;
	margin-top: auto;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--sage-pill);
	font-size: 13px;
	font-weight: 500;
}

/* Blog preview cards */
.article-card { overflow: hidden; }
.article-card__image {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	background: linear-gradient(160deg, var(--sand) 0%, #dfe1cd 100%);
	color: rgba(23, 36, 27, .35);
}
.article-card__image .icon { width: 44px; height: 44px; }
.article-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 26px; }
.article-card__date {
	color: var(--green);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.article-card__title {
	margin: 10px 0 24px;
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
}
.article-card .text-link { margin-top: auto; }

/* Call to action */
.cta {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 64px 64px;
	border-radius: 24px;
	background: var(--forest-deep);
	color: #fff;
}
.cta::after {
	content: '';
	position: absolute;
	top: -40px; right: -90px;
	width: 300px; height: 300px;
	border-radius: 50% 0 50% 50%;
	background: #2f5a35;
	opacity: .8;
}
.cta__text, .cta__actions { position: relative; z-index: 1; }
.cta__title {
	max-width: 15em;
	font-family: var(--font-display);
	font-size: clamp(28px, 3.2vw, 34px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.03em;
}
.cta__text p { margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: 15px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page head ----------------------------------------------------------------- */

.container--narrow { max-width: calc(760px + var(--gutter) * 2); }

.page-head {
	padding: 56px 0 48px;
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(50% 120% at 100% 0%, rgba(214, 230, 160, .45), transparent 70%),
		var(--cream);
}
.page-head .eyebrow { margin-bottom: 12px; }
.page-title {
	max-width: 24ch;
	font-family: var(--font-display);
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.03em;
}
.page-lead { max-width: 40em; margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	color: var(--ink-soft);
	font-size: 14px;
}
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }

.section--compact { padding: 48px 0 96px; }
.section--top { padding-top: 40px; }

.block-title {
	margin: 40px 0 16px;
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: -.02em;
}

.empty {
	padding: 32px;
	border: 1px dashed rgba(23, 36, 27, .18);
	border-radius: var(--radius);
	color: var(--ink-soft);
	text-align: center;
}
.empty p + p { margin-top: 6px; }
.empty a { color: var(--green); font-weight: 500; }

/* Chips, tags & pagination */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--forest); }
.chip.is-active { border-color: var(--forest); background: var(--forest); color: #fff; }

a.tag { text-decoration: none; }
a.tag:hover { background: var(--lime-soft); }
.tag--plant { display: inline-flex; align-items: center; gap: 6px; }
.tag--plant .icon { width: 14px; height: 14px; color: var(--green); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span {
	display: grid;
	place-items: center;
	min-width: 40px; height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.pagination a:hover { border-color: var(--forest); }
.pagination [aria-current] { border-color: var(--forest); background: var(--forest); color: #fff; }

/* Plants -------------------------------------------------------------------- */

.filter-bar { display: grid; gap: 20px; margin-bottom: 28px; }
.plant-search--inline { max-width: 640px; margin-top: 0; box-shadow: none; }
.result-count { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; color: var(--ink-soft); font-size: 14px; }
.result-count .link-quiet { color: var(--green); font-size: 14px; }

.plant-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.plant-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 54px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow-card);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
.plant-list__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(23, 36, 27, .05), 0 18px 32px -16px rgba(23, 36, 27, .22);
}
.plant-list__item:hover .plant-list__name { color: var(--green); }
.plant-list__name { font-size: 16px; }
.plant-list .tag { flex: none; margin: 0; font-size: 12px; }

.botanical-name i { font-style: italic; }

.plant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.plant-layout__main > :first-child { margin-top: 0; }
.plant-layout__side { position: sticky; top: 24px; }
.plant-photo { margin: 0 0 32px; }
.plant-photo img { width: 100%; height: auto; border-radius: var(--radius); }

.detail-card { padding: 28px; }
.detail-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.detail-list { margin: 16px 0 24px; }
.detail-list div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--ink-soft); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.detail-list dd { margin: 0; }
.detail-list a { color: var(--green); }
.btn--block { width: 100%; }

.grower-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.grower {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
}
.grower__who { flex: 1; min-width: 0; line-height: 1.35; }
.grower__who strong { display: block; font-weight: 600; }
.grower .tag { align-self: center; margin: 0; }
.grower__go { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 14px; font-weight: 600; white-space: nowrap; }
.grower__go .icon { width: 16px; height: 16px; transition: transform .15s; }
.grower:hover .grower__go .icon { transform: translateX(3px); }

/* Member location & zones */
.member-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 3px; color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.member-meta__place { display: inline-flex; align-items: center; gap: 5px; }
.member-meta__place .icon { width: 15px; height: 15px; }
.zone {
	padding: 2px 9px;
	border: 1px solid rgba(60, 122, 76, .25);
	border-radius: 999px;
	background: rgba(201, 225, 112, .25);
	color: var(--forest);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .01em;
	white-space: nowrap;
}
.member-meta--lg { margin-top: 12px; font-size: 16px; }
.member-meta--lg .member-meta__place .icon { width: 17px; height: 17px; margin-top: -3px; }
.member-meta--lg .zone { padding: 4px 12px; font-size: 13px; }
.member-meta--inline { display: inline-flex; margin: 0 0 0 12px; vertical-align: 1px; }

/* Profile */
.profile-head { padding-bottom: 0; }
.profile-head__inner { display: flex; align-items: flex-start; gap: 28px; }
.profile-head__main { flex: 1; min-width: 0; padding-top: 6px; }
.profile-head .page-lead { margin-top: 14px; }
.profile-head__since { margin-top: 12px; color: var(--ink-soft); font-size: 14px; }
/* Lines up with the first line of the name */
.profile-head__edit { flex: none; margin-top: 12px; }

.tabs { display: flex; gap: 28px; margin-top: 36px; }
.tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 0 14px;
	border-bottom: 2px solid transparent;
	color: var(--ink-soft);
	font-weight: 600;
	text-decoration: none;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-current] { border-color: var(--forest); color: var(--ink); }
.tabs__count { padding: 1px 8px; border-radius: 999px; background: var(--sage-pill); color: var(--ink); font-size: 12px; }
.feed--profile { max-width: 760px; margin-top: 0; }

.account-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: none; }
.account-link:hover span { color: var(--green); }
.account-link .avatar { font-size: 13px; }

/* Edit profile */
.profile-form { display: grid; gap: 20px; }
.form-section { margin: 0; padding: 28px; }
.form-section__title { float: left; width: 100%; margin-bottom: 18px; padding: 0; font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.form-section__title + * { clear: both; }
.form-section__lead { margin: -8px 0 18px; color: var(--ink-soft); font-size: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.form .field-row .field + .field { margin-top: 0; }
.form .field-row + .field, .form .field + .field-row { margin-top: 16px; }
.field__hint a { color: var(--green); }
.photo-field { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.photo-field .field { flex: 1; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

.profile-head__website { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; }
.profile-head__website .icon { width: 16px; height: 16px; color: var(--ink-soft); }
.profile-head__website a { color: var(--green); font-weight: 500; text-decoration: none; }
.profile-head__website a:hover { text-decoration: underline; }
.profile-head__website + .profile-head__since { margin-top: 8px; }
.private-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--sage-pill); font-size: 14px; }
.private-note .icon { width: 16px; height: 16px; }

/* Toggle switch (a styled checkbox) */
.form label.switch { display: flex; align-items: flex-start; gap: 14px; margin: 0; font-weight: 400; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 44px; height: 26px; margin-top: 1px; border-radius: 999px; background: #cfd3c6; transition: background-color .15s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--forest); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--green); outline-offset: 2px; }
.switch__text strong { display: block; font-weight: 600; }
.switch__text span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; }

/* About the species (Wikipedia / GBIF) */
.species { display: grid; overflow: hidden; margin-bottom: 8px; }
.species--photo { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.species__photo { position: relative; margin: 0; background: var(--sage); }
.species__photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.species__photo figcaption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 18px 12px 8px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .55));
	color: rgba(255, 255, 255, .9);
	font-size: 11px;
	line-height: 1.35;
}
.species__body { padding: 28px; }
.species__title { margin: 6px 0 12px; font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: -.02em; }
.species__text { font-size: 16px; line-height: 1.65; }
.species__text p + p { margin-top: .8em; }
.species__source { margin-top: 16px; color: var(--ink-soft); font-size: 13px; }
.species__source a { color: var(--green); }

.member-card { margin-bottom: 20px; }
.member-card__who { display: flex; align-items: center; gap: 14px; line-height: 1.35; text-decoration: none; }
.member-card__who strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
.member-card__bio { margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; }
.member-card .btn { margin-top: 20px; }
.page-lead a { color: var(--green); }

.record { padding: 28px; }
.record + .record { margin-top: 20px; }
.record .eyebrow { margin-bottom: 14px; }
.record__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 28px; margin: 0; }
.record__facts dt { color: var(--ink-soft); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.record__facts dd { margin: 2px 0 0; font-size: 17px; }
.record__facts a { color: var(--green); overflow-wrap: anywhere; }
.record__notes { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.record__label { margin-bottom: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.record .photos { margin-top: 20px; }
.record__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.record__head .eyebrow { margin-bottom: 0; }
.record__edit { margin-left: auto; }
.record__prompt { margin-top: 18px; font-size: 15px; }
.record__prompt a { color: var(--green); font-weight: 500; }
.record__another { margin-top: 18px; font-size: 15px; }

/* Add or edit a garden plant */
.photo-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.photo-edit__item img { width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); object-fit: cover; }
.form .photo-edit__item .check { margin-top: 8px; font-size: 14px; }
.form .photo-edit__add { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }
.photo-edit__add .icon { width: 20px; height: 20px; }
.composer__previews + .photo-edit__add { margin-top: 14px; }
.photo-edit__rotate { display: block; margin-top: 6px; font-size: 14px; }
.plant-picker__new-note { color: var(--green); font-weight: 500; }
.plant-picker__results .plant-picker__new { color: var(--green); font-weight: 600; border-top: 1px solid var(--line); }
.tag--pending { background: var(--blush); color: var(--clay); }

/* Suggested plant names */
.review-item { padding: 24px; }
.review-item + .review-item { margin-top: 18px; }
.review-item__name { font-size: 20px; font-weight: 500; }
.review-item__meta { margin-top: 4px; color: var(--ink-soft); font-size: 14px; }
.review-item__meta a { color: var(--green); }
.review-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.review-item__actions .review-item__remove { color: var(--clay); font-weight: 500; }
.review-item__merge { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.plant-admin { display: flex; flex-wrap: wrap; gap: 10px; }
.garden-remove { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); text-align: right; }
.garden-remove .garden-remove__btn { color: var(--clay); font-weight: 500; }

/* Super admin controls */
.plant-layout__side .detail-card + .detail-card { margin-top: 20px; }
.detail-card__title + .btn { margin-top: 18px; }
.detail-card__second { margin-top: 10px; }
.plant-admin { margin-bottom: 16px; }
.filter-bar--action { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

.profile-head__website { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; }
.profile-head__website .icon { width: 16px; height: 16px; color: var(--ink-soft); }
.profile-head__website a { color: var(--green); font-weight: 500; text-decoration: none; }
.profile-head__website a:hover { text-decoration: underline; }
.profile-head__website + .profile-head__since { margin-top: 8px; }
.private-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--sage-pill); font-size: 14px; }
.private-note .icon { width: 16px; height: 16px; }

/* Toggle switch (a styled checkbox) */
.form label.switch { display: flex; align-items: flex-start; gap: 14px; margin: 0; font-weight: 400; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 44px; height: 26px; margin-top: 1px; border-radius: 999px; background: #cfd3c6; transition: background-color .15s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--forest); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--green); outline-offset: 2px; }
.switch__text strong { display: block; font-weight: 600; }
.switch__text span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; }

/* About the species (Wikipedia / GBIF) */
.species { display: grid; overflow: hidden; margin-bottom: 8px; }
.species--photo { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.species__photo { position: relative; margin: 0; background: var(--sage); }
.species__photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.species__photo figcaption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 18px 12px 8px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .55));
	color: rgba(255, 255, 255, .9);
	font-size: 11px;
	line-height: 1.35;
}
.species__body { padding: 28px; }
.species__title { margin: 6px 0 12px; font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: -.02em; }
.species__text { font-size: 16px; line-height: 1.65; }
.species__text p + p { margin-top: .8em; }
.species__source { margin-top: 16px; color: var(--ink-soft); font-size: 13px; }
.species__source a { color: var(--green); }

.member-card { margin-bottom: 20px; }
.member-card__who { display: flex; align-items: center; gap: 14px; line-height: 1.35; text-decoration: none; }
.member-card__who strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
.member-card__who span span { color: var(--ink-soft); font-size: 14px; }
.member-card__bio { margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; }
.member-card .btn { margin-top: 20px; }
.page-lead a { color: var(--green); }

/* Blog ---------------------------------------------------------------------- */

.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card h2.article-card__title { font-size: 22px; }
.article-hero { margin: 0 0 40px; }
.article-hero img { width: 100%; height: auto; border-radius: var(--radius); }
.article-back { margin-top: 48px; }
.icon--flip { transform: scaleX(-1); }

/* Long-form text (blog posts, descriptions, notes) */
.prose { font-size: 17px; line-height: 1.75; }
.prose > * + *, .prose .text-columns > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 {
	margin-top: 1.8em;
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -.02em;
}
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 24px; }
.prose a { color: var(--green); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
	margin-left: 0;
	padding-left: 20px;
	border-left: 3px solid var(--lime);
	font-family: var(--font-serif);
	font-size: 20px;
}
.prose img, .prose .text-column-image { width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose .button { display: inline-flex; padding: 12px 22px; border-radius: 999px; background: var(--forest); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }

/* Content blocks on generic pages */
.content-blocks > * + * { margin-top: 56px; }
.content-blocks .row { display: flex; flex-wrap: wrap; gap: 32px; }
.content-blocks .column { flex: 1 1 260px; min-width: 0; }
.content-blocks h2 { margin-bottom: 16px; font-family: var(--font-display); font-size: 32px; font-weight: 400; letter-spacing: -.02em; }
.content-blocks img { height: auto; border-radius: var(--radius-sm); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-title { padding: 16px 0; font-weight: 600; cursor: pointer; }
.accordion-content { padding-bottom: 16px; }

/* Community ----------------------------------------------------------------- */

.composer__head, .post__author { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.composer__head strong, .post__author strong, .comment__bubble strong { display: block; font-weight: 600; }
.post__author a, .comment__bubble strong a { text-decoration: none; }
.post__author a:hover, .comment__bubble strong a:hover { text-decoration: underline; }
.composer__head span span, .post__author time { color: var(--ink-soft); font-size: 13px; }
.composer__options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .composer__options .field + .field { margin-top: 0; }
.composer__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.composer__actions--end { justify-content: flex-end; }

.file-btn { position: relative; color: var(--green); font-size: 15px; font-weight: 600; cursor: pointer; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn:focus-within { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.plant-picker { position: relative; }
.plant-picker.is-picked input[type="search"] { border-color: var(--green); background: var(--lime-soft); }
.plant-picker__results {
	position: absolute;
	top: 100%; left: 0; right: 0;
	z-index: 10;
	max-height: 280px;
	overflow-y: auto;
	margin: 6px 0 0;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	box-shadow: 0 20px 40px -20px rgba(23, 36, 27, .35);
	list-style: none;
}
.plant-picker__results button {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}
.plant-picker__results button:hover, .plant-picker__results button:focus { background: var(--lime-soft); outline: none; }

.composer-bar { flex-direction: row; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 16px; }
.composer-bar__prompt {
	flex: 1;
	min-width: 0;
	padding: 11px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--cream);
	color: var(--ink-soft);
	font-size: 15px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.composer-bar__prompt:hover { border-color: #d9d3c5; background: #efebe2; }
.composer-bar__photo {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 12px;
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	color: var(--green);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.composer-bar__photo:hover { background: var(--lime-soft); }
.composer-bar__photo .icon { width: 20px; height: 20px; }
.composer-bar--guest .avatar .icon { width: 20px; height: 20px; }

/* Modal (native <dialog>) */
.modal {
	width: min(600px, calc(100% - 32px));
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 30px 80px -20px rgba(23, 36, 27, .45);
}
.modal::backdrop { background: rgba(23, 36, 27, .45); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.has-modal { overflow: hidden; }
.modal__panel { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.modal__head { position: relative; padding: 18px 56px; border-bottom: 1px solid var(--line); text-align: center; }
.modal__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.modal__close {
	position: absolute;
	top: 50%; right: 14px;
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--sage-pill);
	transform: translateY(-50%);
	cursor: pointer;
}
.modal__close:hover { background: var(--sage); }
.modal__close .icon { width: 18px; height: 18px; }
.modal__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.modal__body .composer__head { margin-bottom: 14px; }
.form .modal__body textarea { min-height: 120px; border: 0; padding: 4px 0; background: transparent; font-size: 18px; box-shadow: none !important; resize: none; }
.modal__body .composer__options { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); }
.modal__foot .file-btn { display: inline-flex; align-items: center; gap: 8px; }
.modal__foot .file-btn .icon { width: 20px; height: 20px; }

.modal .plant-picker__results { position: static; box-shadow: none; }
.composer__previews { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.composer__previews[hidden] { display: none; }
.composer__previews li { position: relative; }
.composer__previews img { width: 76px; height: 76px; border-radius: var(--radius-sm); object-fit: cover; }
.composer__remove {
	position: absolute;
	top: 4px;
	right: 4px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(23, 36, 27, .75);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}
.composer__remove:hover { background: var(--forest); }
.composer__rotate {
	position: absolute;
	bottom: 4px;
	right: 4px;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(23, 36, 27, .78);
	color: #fff;
	font-size: 15px;
	line-height: 26px;
	text-align: center;
	cursor: pointer;
}
.composer__rotate:hover { background: var(--forest); }
.composer__rotate:disabled { opacity: .5; }
form[data-busy="1"] .file-btn { opacity: .5; pointer-events: none; }

.upload-status { margin: 0 0 16px; }
.upload-status[hidden] { display: none; }
.modal__foot .upload-status { flex: 1 0 100%; margin: 0 0 2px; }
.upload-status__label {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 6px;
	color: var(--ink-soft);
	font-size: 13px;
	font-weight: 600;
}
.upload-status__track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--sage); }
.upload-status__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); }
.upload-status.is-indeterminate .upload-status__fill { width: 35%; animation: upload-slide 1.1s ease-in-out infinite; }
.upload-status.is-waiting .upload-status__fill { width: 100%; animation: upload-pulse 1s ease-in-out infinite; }
@keyframes upload-slide { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
@keyframes upload-pulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
	.upload-status__fill { animation: none; }
	.upload-status.is-indeterminate .upload-status__fill,
	.upload-status.is-waiting .upload-status__fill { width: 100%; opacity: 1; }
}

.feed { display: grid; gap: 20px; margin-top: 24px; }
.post { padding: 24px; }
.post__link { display: block; text-decoration: none; }
.post__body { margin-top: 14px; color: #2b352e; overflow-wrap: anywhere; }
.post--thread .post__body { font-size: 17px; }
.post__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.post__footer .tag { margin: 0; }
.post__comments { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.post__comments:hover { color: var(--green); }
.post__comments .icon { width: 16px; height: 16px; }
.post__manage { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; white-space: nowrap; }
.post__manage + .post__comments { margin-left: 16px; }
.post--thread .post__author { flex-wrap: wrap; }
.button-text--danger { color: var(--clay); }
.button-text--danger:hover { color: var(--clay); }

.photos { display: grid; gap: 10px; margin-top: 16px; }
.photos__item { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--sage); }
.photos__item img { width: 100%; height: auto; max-height: 85vh; object-fit: contain; }

/* Feed: cropped preview grid; full photos are on the post page */
.photo-grid {
	display: grid;
	gap: 4px;
	margin-top: 16px;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--sage);
}
.photo-grid--1 { aspect-ratio: 16 / 10; }
.photo-grid--2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1; }
.photo-grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.photo-grid--3 .photo-grid__cell:first-child { grid-row: span 2; }
.photo-grid--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.photo-grid__cell { position: relative; min-height: 0; overflow: hidden; }
.photo-grid__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post__link:hover .photo-grid__cell img { transform: scale(1.02); }
.photo-grid__more {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(23, 36, 27, .5);
	color: #fff;
	font-family: var(--font-display);
	font-size: 36px;
}

.comments .block-title { margin-top: 48px; }
.comment { display: flex; gap: 12px; margin-bottom: 18px; }
.comment__main { flex: 1; min-width: 0; }
.comment__bubble { padding: 12px 16px; border-radius: 4px var(--radius) var(--radius) var(--radius); background: var(--paper); border: 1px solid var(--line); }
.comment__bubble strong { font-size: 15px; }
.comment__bubble .post__body { margin-top: 2px; font-size: 15px; }
.comment__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 0 4px; color: var(--ink-soft); font-size: 13px; }
.comment__replies { margin-top: 14px; padding-left: 16px; border-left: 2px solid var(--line); }
.reply-form { margin-top: 10px; }
.comment-form { padding: 24px; }
.comments--nested { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.comments--nested .block-title { margin: 0 0 16px; font-size: 22px; }
.comments--nested .comment-form { margin-top: 8px; padding: 0; }
.comments--nested .comment__bubble { background: var(--cream); }
.comments--nested .empty { padding: 20px; }

.button-text { padding: 0; border: 0; background: none; color: var(--green); font-size: inherit; font-weight: 600; cursor: pointer; }
.button-text:hover { text-decoration: underline; }
.inline-form { display: inline; margin: 0; }

/* Forms & account ----------------------------------------------------------- */

.form .field + .field, .form .field + .composer__options, .form .composer__options + * { margin-top: 16px; }
.form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field__hint { margin-top: 6px; color: var(--ink-soft); font-size: 13px; }
.form .optional { margin-left: 4px; color: var(--ink-soft); font-size: 13px; font-weight: 400; }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.form select,
.form textarea {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d9d3c5;
	border-radius: var(--radius-sm);
	background: #fff;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 96px; }
.form select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235d6660' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(60, 122, 76, .15); outline: none; }
.form input[type="file"] { font-size: 14px; }
.form .btn--block { margin-top: 24px; }
.field--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.form label.check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--forest); }
.field--row .link-quiet { color: var(--green); font-size: 14px; }
.honeypot { position: absolute; left: -9999px; }

.form-error {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	background: var(--blush);
	color: #7a2f22;
	font-size: 15px;
	list-style: none;
}

.auth {
	display: grid;
	place-items: start center;
	min-height: 70vh;
	padding: 64px var(--gutter) 96px;
	background:
		radial-gradient(40% 50% at 100% 0%, rgba(214, 230, 160, .5), transparent 70%),
		radial-gradient(40% 50% at 0% 100%, rgba(203, 214, 196, .6), transparent 70%);
}
.auth__card { width: 100%; max-width: 460px; padding: 40px; }
.auth__card--wide { max-width: 560px; }
.auth__title { font-family: var(--font-display); font-size: 36px; font-weight: 400; line-height: 1.1; letter-spacing: -.03em; }
.auth__lead { margin: 8px 0 28px; color: var(--ink-soft); }
.auth__foot { margin-top: 24px; color: var(--ink-soft); font-size: 15px; text-align: center; }
.auth__foot a { color: var(--green); font-weight: 600; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .auth__lead { margin-bottom: 0; }
.profile-head + .form { margin-top: 28px; }

/* Footer -------------------------------------------------------------------- */

.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.site-footer__links a { font-size: 15px; text-decoration: none; }
.site-footer__links a:hover { color: var(--green); }
.site-footer__copy { width: 100%; color: var(--ink-soft); font-size: 13px; }

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 960px) {
	.grid-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.plant-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.plant-layout__side { position: static; order: -1; }
	.grid-3 .article-card { flex-direction: row; }
	.article-card__image { width: 38%; aspect-ratio: auto; }
	.cta { flex-direction: column; align-items: flex-start; padding: 48px 32px; }
}

@media (max-width: 760px) {
	:root { --gutter: 16px; }
	.hero { padding: 64px 0 80px; }
	.hero__lead { font-size: 17px; }
	.leaf-shape--top { left: auto; right: -40px; opacity: .6; }
	.section { padding: 64px 0; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.section-head--center { align-items: center; }
	.grid-3 .article-card { flex-direction: column; }
	.article-card__image { width: auto; aspect-ratio: 16 / 9; }
	.cta { padding: 40px 24px; border-radius: 20px; }
	.cta::after { width: 200px; height: 200px; right: -100px; }
	.page-head { padding: 40px 0 32px; }
	.section--compact { padding: 32px 0 64px; }
	.plant-list { grid-template-columns: minmax(0, 1fr); }
	.composer__options { grid-template-columns: minmax(0, 1fr); }
	.composer-bar__photo span { display: none; }
	.modal { width: 100%; max-width: none; max-height: 100%; height: 100%; border-radius: 0; }
	.modal__panel { max-height: 100%; height: 100%; }
	.modal__body { padding: 16px; }
	.modal__foot { padding: 12px 16px; }
	.grower { flex-wrap: wrap; }
	.grower__go { width: 100%; padding-left: 58px; }
	.profile-head__inner { flex-wrap: wrap; gap: 16px; }
	.profile-head__inner > .avatar { width: 72px !important; height: 72px !important; font-size: 28px !important; }
	.profile-head__main { flex-basis: calc(100% - 88px); padding-top: 0; }
	.profile-head__edit { width: 100%; margin-top: 0; }
	.field-row { grid-template-columns: minmax(0, 1fr); }
	.filter-bar--action { grid-template-columns: minmax(0, 1fr); }
	.species--photo { grid-template-columns: minmax(0, 1fr); }
	.species__photo img { min-height: 0; aspect-ratio: 4 / 3; }
	.species__body { padding: 22px; }
	.form-section { padding: 22px; }
	.record { padding: 22px; }
	.auth { padding: 32px var(--gutter) 64px; }
	.auth__card { padding: 28px 22px; }
	.chip-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
	.chip { flex: none; }
}

@media (max-width: 480px) {
	.plant-search { padding-left: 16px; }
	.plant-search .btn { padding: 12px 16px; }
	.plant-search__icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
