* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #253024;
  --muted: #485447;
  --leaf-edge: #3f601f;
  --link: #12567a;
  --hairline: #c4cebc;
  --leaf: linear-gradient(#709534 0%, #60842b 46%, #4c701f 50%, #3e601a 100%);
  --blue: linear-gradient(#287da1, #1d6589 54%, #1b5a7b);
  --focus: #155c92;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
body {
  margin: 0;
  color: var(--ink);
  background: #e4e8e1;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: #123952; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 20;
  inset: .75rem auto auto .75rem;
  background: white;
  padding: .5rem 1rem;
}
.masthead {
  position: relative;
  background: linear-gradient(#9bceed 0%, #dcf0f5 45%, #e4ecd6 77%, #cddca5 100%);
  border-bottom: 1px solid #476930;
}
.masthead::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 17px;
  background: url("/assets/heritage/grass.png") repeat-x left bottom;
  pointer-events: none;
}
.masthead-inner {
  width: min(100% - 36px, 1112px);
  min-height: 112px;
  margin: auto;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: clamp(20px, 3vw, 44px);
}
.brand {
  display: block;
  position: relative;
  z-index: 3;
  margin: 5px 0 10px;
  flex: 0 1 320px;
}
.brand img { width: 100%; height: auto; display: block; }
.main-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  position: relative;
  z-index: 1;
  padding-bottom: 8px;
}
.main-nav a,
.button,
.filter-group > summary {
  border: 1px solid var(--leaf-edge);
  background: var(--leaf);
  box-shadow: inset 0 1px #ffffff60, 0 1px 2px #253b1a2e;
  color: white;
  text-shadow: 0 1px #304611;
  font-weight: 700;
  text-decoration: none;
}
.main-nav a {
  display: flex;
  align-items: center;
  padding: .62rem 1.12rem .8rem;
  border-radius: 7px 7px 0 0;
  white-space: nowrap;
}
.main-nav a[aria-current] {
  background: var(--blue);
  border-color: #2b6581;
  text-shadow: 0 1px #144c6b;
}
.main-nav a:hover, .button:hover, .filter-group > summary:hover {
  filter: brightness(1.08);
}
.page-shell {
  width: min(100%, 1128px);
  min-height: calc(100vh - 113px);
  background: #f9faf7;
  margin: 0 auto;
  border-inline: 1px solid #cdd4c9;
  box-shadow: 0 0 10px #31412b1a;
}
.breadcrumb {
  min-height: 36px;
  display: flex;
  gap: .45rem;
  align-items: center;
  padding: .45rem 1rem;
  font-size: .78rem;
  color: var(--muted);
  background: linear-gradient(#fff, #f1f4ed);
  border-bottom: 1px solid #d5ddd0;
}
.breadcrumb a { color: #415546; }
.breadcrumb a[aria-current] { font-weight: 700; text-decoration: none; }
main { padding: 14px 16px 24px; }
.database-heading {
  color: white;
  background: var(--blue);
  border: 1px solid #1a5776;
  box-shadow: inset 0 1px #ffffff50, 0 1px 2px #14334727;
  text-shadow: 0 1px #163b4d;
  padding: 12px 15px 13px;
  border-radius: 4px 4px 0 0;
}
.database-heading h1 {
  margin: 0;
  font: 700 clamp(1.6rem, 3vw, 2rem)/1.1 "Trebuchet MS", Arial, sans-serif;
}
.database-heading p { margin: .22rem 0 0; font-size: .92rem; }
.search-panel {
  border: 1px solid #91a385;
  border-top: 0;
  background: #f7faef;
  box-shadow: 0 2px 4px #344b2220;
  border-radius: 0 0 4px 4px;
}
.plant-search {
  margin: 0;
  padding: 13px 14px 14px;
  background: linear-gradient(#fff, #edf3e7);
}
.plant-search label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 700;
  color: #304a26;
  font-size: .92rem;
}
.search-line { display: flex; align-items: stretch; gap: 7px; }
.search-line input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  background: #fff;
  border: 1px solid #8d9d85;
  border-radius: 3px;
  color: var(--ink);
  padding: .48rem .64rem;
  box-shadow: inset 0 2px 3px #28392312;
}
.search-line input::placeholder { color: #576552; opacity: 1; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: 4px;
  min-height: 40px;
  padding: .45rem .8rem;
  white-space: nowrap;
  line-height: 1.2;
  font-size: .9rem;
}
.button.secondary {
  background: linear-gradient(#fff, #e5e9df);
  border-color: #89a07d;
  color: #344b29;
  text-shadow: none;
}
.filter-section {
  background: linear-gradient(#f2f6e9, #e5eedc);
  border-top: 1px solid #9bb28e;
  padding: 11px 13px 0;
}
.filter-section h2 {
  margin: 0 0 7px;
  font: 700 1.05rem/1.25 "Trebuchet MS", Arial, sans-serif;
  color: #304b23;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 5px;
}
.filter-group { position: relative; min-width: 0; }
.filter-group > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .24rem;
  min-height: 38px;
  padding: 5px 5px 5px 7px;
  border-radius: 3px;
  font-size: .77rem;
  line-height: 1.2;
}
summary::-webkit-details-marker { display: none; }
.filter-group > summary::after, .more-filters > summary::after {
  content: "";
  flex: none;
  width: .42rem;
  height: .42rem;
  margin: -.18rem .2rem 0 auto;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter-group[open] > summary::after, .more-filters[open] > summary::after {
  transform: rotate(225deg);
  margin-top: .25rem;
}
.filter-group[open] > summary { border-radius: 3px 3px 0 0; }
.filter-count {
  border-radius: 3px;
  font-size: .72rem;
  line-height: 1.25;
  min-width: 1.05rem;
  padding: 1px 3px;
  text-align: center;
  background: #263d15;
  color: white;
}
.filter-list {
  position: absolute;
  z-index: 5;
  top: calc(100% - 1px);
  left: 0;
  width: 225px;
  max-height: min(18rem, 44vh);
  overflow: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid #85967a;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 5px 11px #1b281d55;
}
.filter-group:nth-child(6n + 5) .filter-list, .filter-group:nth-child(6n) .filter-list { left: auto; right: 0; }
.filter-list-item + .filter-list-item { border-top: 1px solid #eef1eb; }
.filter-option {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #284822;
  padding: .39rem .3rem;
  min-height: 35px;
  text-decoration: none;
  font-size: .83rem;
}
.is-child .filter-option { padding-left: .85rem; }
.filter-option:hover, .filter-option[aria-current] { background: #e3efd9; }
.option-icon {
  color: #355227;
  background: #f1f8ea;
  border: 1px solid #a4b79c;
  text-align: center;
  flex: 0 0 1.05rem;
  border-radius: 2px;
  line-height: 1;
}
.more-filters {
  padding: 0 12px;
  margin: 9px -13px 0;
  border-top: 1px solid #c3d0bb;
  background: linear-gradient(#f4f7ee, #e0e8d8);
}
.more-filters > summary {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  gap: .44rem;
  width: max-content;
  min-height: 32px;
  margin: 0 auto;
  padding: 1px .65rem;
  color: #344b29;
  font-size: .78rem;
  font-weight: 700;
}
.more-filters > .filter-grid { padding-bottom: 12px; }
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1rem;
  min-width: 0;
  margin: 17px 0 11px;
  border-bottom: 1px solid #b8c6ae;
  padding: 0 1px .36rem;
  color: #30492b;
}
.results-heading h2 {
  margin: 0;
  font: 700 1.25rem/1.25 "Trebuchet MS", Arial, sans-serif;
  overflow-wrap: anywhere;
}
.results-heading > span { white-space: nowrap; color: var(--muted); font-size: .78rem; }
.search-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  margin-bottom: .65rem;
}
.search-state:empty { display: none; }
.clear-search { font-size: .83rem; }
.active-filters {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}
.active-filters a {
  display: block;
  border: 1px solid #a8b9a1;
  border-radius: 3px;
  background: #e9f2e1;
  color: #2c4c28;
  padding: .22rem .43rem;
  text-decoration: none;
  font-size: .83rem;
}
.active-filters a:hover { background: #dbe9d3; text-decoration: underline; }
.plant-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.plant-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #bec9b8;
  background: #fff;
  border-radius: 4px;
  padding: 5px;
  box-shadow: 0 1px 2px #23372319;
}
.plant-card-link {
  display: block;
  flex: 1;
  text-decoration: none;
}
.plant-card-link:hover h3 { text-decoration: underline; }
.plant-photo {
  overflow: hidden;
  border: 1px solid #bac7af;
  background: #e5ebdf;
  color: #485645;
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  text-align: center;
}
.plant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}
.photo-unavailable {
  padding: .5rem;
  font-size: .78rem;
  background: linear-gradient(145deg, #f1f5ec, #dce5d6);
}
.card-copy {
  padding: 7px 5px 9px;
  flex: 1;
}
.plant-category, .botanical {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}
.plant-category { font-weight: 700; color: #466339; }
.botanical { font-style: italic; overflow-wrap: anywhere; }
.card-copy h3 {
  margin: .14rem 0 .2rem;
  font-size: .98rem;
  line-height: 1.19;
  overflow-wrap: anywhere;
}
.empty-state {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 1rem;
}
.empty-state p { margin: 0 0 .75rem; }
.more-plants { margin-top: .85rem; }
.category-drawer {
  border-top: 1px solid #a7bba0;
  background: #f7faf4;
}
.category-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  list-style: none;
  padding: 4px 13px;
  color: var(--link);
  font-weight: 700;
  font-size: .9rem;
}
.category-drawer > summary:hover { background: #edf4e7; }
.category-drawer > summary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  margin: -.2rem .25rem 0 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.category-drawer[open] > summary::after {
  transform: rotate(225deg);
  margin-top: .3rem;
}
.category-drawer ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 13px;
  margin: 0;
  padding: 2px 13px 12px;
}
.category-drawer a {
  display: block;
  padding: .26rem 0;
  font-size: .86rem;
  text-decoration: underline;
}
.site-footer {
  padding: 13px 16px;
  margin-top: 4px;
  border-top: 1px solid #c9d4c2;
  background: #f4f7ef;
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 28%) 1fr;
  gap: 16px;
  margin-top: 14px;
}
.profile-rail, .profile-content {
  min-width: 0;
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 13px;
}
.profile-rail .plant-category { margin-top: .6rem; }
.profile-rail > p { font-size: .85rem; }
.profile-heading .botanical { color: #fff; }
.profile-content h2 { color: #344d2c; font-size: 1.25rem; margin: 0 0 .6rem; }
.plant-attributes { margin: .75rem 0 0; }
.attribute-group { padding: .45rem 0; border-top: 1px solid #e5eade; }
.attribute-group dt { font-weight: 700; }
.attribute-group dd { margin-left: 0; }
.attribute-group ul { margin: 0; padding-inline-start: 1.15rem; }
@media (max-width: 960px) {
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-group:nth-child(6n + 5) .filter-list { left: 0; right: auto; }
  .filter-group:nth-child(3n) .filter-list { left: auto; right: 0; }
  .plant-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .masthead-inner { align-items: center; flex-direction: column; gap: 0; }
  .brand { flex: none; width: min(72vw, 260px); margin: 7px 0 4px; }
  .main-nav { align-self: center; padding-bottom: 8px; }
  .main-nav a { min-height: 44px; padding: .45rem .68rem .6rem; font-size: .87rem; }
  .page-shell { border-inline: 0; min-height: 0; }
  .breadcrumb { min-height: 31px; padding: .36rem .75rem; }
  main { padding: 9px 10px 20px; }
  .database-heading { padding: 11px 11px 12px; }
  .plant-search { padding: 10px 9px; }
  .search-line { gap: 5px; }
  .search-line input { padding-inline: .4rem; }
  .search-line .button { min-height: 44px; padding-inline: .44rem; font-size: .78rem; }
  .filter-section { padding: 9px 9px 0; }
  .filter-group > summary, .more-filters > summary { min-height: 44px; }
  .filter-option { min-height: 44px; }
  .more-filters { margin-inline: -9px; padding-inline: 9px; }
  .plant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-drawer ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-drawer > summary { min-height: 44px; }
  .category-drawer a { padding-block: .6rem; }
  .search-line .button { min-width: 68px; }
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .main-nav a { padding-inline: .48rem; }
  .filter-list { width: min(200px, 65vw); }
  .filter-group:nth-child(3n + 2) .filter-list { left: auto; right: 0; }
}



