:root{--green:#a9c956;--light:#d5ed73;--gray:#a4a4a4;--ink:#292929;--blue:#94b8ca;--gap:23px;font:16px/1.5 Arial,Helvetica,sans-serif;color:var(--ink);background:#fff}*{box-sizing:border-box}body{margin:0}a{color:#53751c}button,input,select{font:inherit}button,select{cursor:pointer}img{max-width:100%;display:block}h1,h2,h3,p{margin:0}p+p{margin-top:12px}.wrap{width:min(1188px,calc(100% - 42px));margin:auto}.skip{position:absolute;left:-999px}.skip:focus{left:12px;top:12px;z-index:10;background:white;padding:8px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #496d28;outline-offset:3px}header{border-top:8px solid var(--green);background:linear-gradient(#333,#050505);color:white}.mast{min-height:119px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:15px;color:var(--green);text-decoration:none}.brand img{width:64px;height:78px}.brand strong{display:block;font-size:23px;line-height:1.08;font-weight:900;letter-spacing:.055em;font-family:"Archivo Narrow","Arial Narrow",Arial,sans-serif}.brand small{display:block;color:#a7becb;font-size:14px;margin-top:5px}.utility{display:flex;align-items:center;gap:14px}.utility a{color:#eee;text-decoration:none;text-transform:uppercase;font-size:13px;letter-spacing:.07em}.utility select{color:#fff;background:#303d43;border:1px solid #627681;border-radius:3px;padding:4px 6px;font-size:13px}.nav-bar{background:linear-gradient(#494949,#303030);border-bottom:5px solid var(--green)}#navigation{display:flex;flex-wrap:wrap;align-items:stretch}.nav-item{position:relative;display:flex;border-right:1px solid #ffffff16}.nav-item>a{padding:7px 12px;color:#eee;text-decoration:none;white-space:nowrap}.nav-item.active>a,.nav-item:hover>a,.nav-item:focus-within>a{background:linear-gradient(var(--light),var(--green));color:#172006}.drop{background:none;border:0;color:#ddd;padding:0 8px 0 0;font-size:11px}.dropdown{position:absolute;display:none;top:100%;left:0;z-index:3;min-width:195px;background:#3c3c3c;box-shadow:0 5px 12px #0004}.dropdown a{display:block;padding:8px 12px;color:white;text-decoration:none;font-size:14px}.dropdown a:hover,.dropdown a:focus{background:#5d712e}.nav-item.open .dropdown,.nav-item:hover .dropdown{display:block}.mobile-menu{display:none}
main{min-height:56vh;padding:29px 0 40px}.top-grid{display:grid;grid-template-columns:minmax(0,1.83fr) minmax(0,1fr);gap:var(--gap)}.hero{position:relative;display:block;min-height:470px;color:white;text-decoration:none;background:#53634a url(img/steppe.webp) center 57%/cover no-repeat;overflow:hidden}.hero:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#111e0ce8)}.hero-copy{position:absolute;z-index:1;left:22px;bottom:24px;right:20px}.hero-copy h1{font-size:clamp(25px,3.1vw,43px);line-height:1.05;text-shadow:0 1px 5px #0007}.hero-copy p{margin-top:7px;font-size:15px;color:#f0f4e9}.hero-credit{position:absolute;right:9px;top:9px;font-size:11px;color:white;background:#1f291db0;padding:2px 6px;z-index:1}.side{display:grid;grid-template-rows:auto auto 1fr;gap:var(--gap)}.box{background:#ebebeb}.box-title{background:var(--gray);color:#fff;padding:7px 14px;font-size:15px;letter-spacing:.09em;text-transform:uppercase;line-height:1.4}.pad{padding:14px 15px}.search{display:flex;gap:13px}.search input{flex:1;min-width:0;border:1px solid #c9c9c9;background:#fff;padding:8px 7px;font-size:14px}.green{background:linear-gradient(#d2ed6c,#aed153);border:1px solid #b5ce64;border-radius:3px;color:#21300c;display:inline-flex;justify-content:center;align-items:center;text-align:center;text-transform:uppercase;text-decoration:none;font-weight:750;letter-spacing:.07em;padding:7px 12px;font-size:13px;box-shadow:0 1px 2px #0001}.green:hover{background:#deef8c}.quick{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick .green{padding:5px 4px;font-size:12px}.tile{display:block;padding:15px;color:white;text-decoration:none;background:linear-gradient(140deg,#b2d3e1,#76a3b7);min-height:117px}.tile small{display:block;color:#263f4f;font-size:14px;letter-spacing:.09em;font-weight:bold;text-transform:uppercase}.tile strong{display:block;font-size:clamp(22px,3vw,43px);line-height:1.03;margin-top:7px;overflow-wrap:anywhere}.join strong{font-size:clamp(34px,4.8vw,66px)}.second-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);margin-top:var(--gap)}.tile-pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);margin-bottom:var(--gap)}.news{background:#dae4ea}.news .box-title{background:#8ba1af}.news-item{display:grid;grid-template-columns:58px 1fr;gap:13px;padding:12px 0;border-bottom:1px solid #c2d0d9}.news-item:first-child{padding-top:0}.news-item:last-child{border:0;padding-bottom:0}.news-icon{width:58px;height:55px;display:grid;place-items:center;color:#5b782e;background:#f5f8eb;border:4px solid #fff;font-size:23px}.news-item h3{font-size:17px;line-height:1.3}.news-item h3 a{color:#2d4a5c;text-decoration:none}.news-item p{font-size:14px;margin-top:4px}.lower{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);margin-top:var(--gap)}.lower .tile{min-height:105px}.lower .tile strong{font-size:26px}
.page{max-width:920px}.page h1{font-size:clamp(27px,4vw,43px);line-height:1.12;margin:10px 0 14px}.page h2{font-size:21px;margin-bottom:6px}.page .lead{color:#4f554a;margin-bottom:20px}.back{font-size:14px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:17px 0}.card{padding:16px;background:#f1f3eb;border-top:4px solid #a8c552}.card a{font-weight:bold}.card p{font-size:14px}.filters{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}.filters a[aria-current=true]{background:#405b22;color:white}.result-count{margin:14px 0}.details{margin:15px 0}.details div{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:10px;padding:8px;border-bottom:1px solid #e1e6dc}.details dt{font-weight:bold}.details dd{margin:0}.hint{color:#59604e;font-size:14px}.content-links{display:grid;gap:10px;margin-top:18px}.content-links a{width:fit-content}footer{background:#292929;color:#e7e7e7;border-top:5px solid var(--green);padding:23px 0;font-size:14px}footer nav{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}footer a,footer button{color:#d3e6a6}footer button{background:none;border:0}.foot-head{display:flex;justify-content:space-between;gap:12px}footer p{color:#ccc}
@media(max-width:900px){:root{--gap:15px}.nav-item>a{font-size:14px;padding-inline:8px}.hero{min-height:425px}.search{gap:6px}.box-title{font-size:13px}.quick{gap:7px}.tile strong{font-size:27px}.join strong{font-size:41px}}
@media(max-width:650px){.wrap{width:calc(100% - 24px)}.mast{min-height:93px}.brand{gap:6px}.brand img{width:36px;height:55px}.brand strong{font-size:14px}.brand small{font-size:10px}.utility{gap:5px}.utility a{display:none}.mobile-menu{display:block;background:none;color:white;border:0;padding:7px 10px}.nav-item{display:none}.nav-expanded .nav-item{display:flex}.top-grid,.second-grid{grid-template-columns:1fr}.hero{min-height:300px}.hero-copy{left:13px;bottom:15px}.side{gap:12px}.tile{min-height:92px}.tile small{font-size:11px}.tile strong{font-size:24px}.lower{grid-template-columns:1fr}.dropdown{display:none!important}.dropdown a{font-size:12px}.drop{display:none}.nav-item>a{font-size:13px}main{padding-top:14px}}
.tile-pair .tile{container-type:inline-size}
.tile-pair .tile strong{font-size:min(30px,10.5cqi);white-space:nowrap}
@media(max-width:390px){.tile-pair .tile{padding:10px}}

/* Homepage palette and typography */
.homepage {
  --forest: #254638;
  --deep-forest: #17372b;
  --paper: #f8f5ec;
  --rule: #dedfd1;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.homepage .hero {
  border-radius: 14px;
}
.homepage .hero::after {
  inset: 30% 0 0;
  background: linear-gradient(transparent, #10271dea);
}
.homepage .hero-copy {
  left: clamp(16px, 2.7vw, 33px);
  bottom: clamp(18px, 2.7vw, 32px);
}
.homepage .hero-copy h1 {
  font: 700 clamp(29px, 4vw, 50px)/1.08 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.homepage .hero-copy p {
  margin-top: 10px;
  color: #f5f5e8;
}
.homepage .box {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
}
.homepage .box-title {
  padding: 10px 15px;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--forest);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
}
.homepage .pad { padding: 15px; }
.homepage .green {
  border-color: #597850;
  border-radius: 6px;
  background: #e4ecd9;
  color: var(--deep-forest);
  box-shadow: none;
}
.homepage .green:hover { background: #d3e2c3; }
.homepage .search .green { background: var(--forest); color: #fff; }
.homepage .search .green:hover { background: var(--deep-forest); }
.homepage .tile {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  padding: clamp(12px, 1.6vw, 22px);
  border: 1px solid #d4decb;
  border-radius: 12px;
  background: #edf2e7;
  color: var(--deep-forest);
}
.homepage .tile[href="#conservation"],
.homepage .tile[href="#threats"] {
  border-color: #e5d8c1;
  background: #f1e8d7;
}
.homepage .tile[href="#publications"] { background: #eef0e5; }
.homepage .tile small {
  color: #4e604d;
  font-size: 10px;
  letter-spacing: .12em;
}
.homepage .tile strong {
  margin: 0;
  font: 700 min(29px, 10cqi)/1.1 var(--serif);
  letter-spacing: -.02em;
  text-transform: none;
  white-space: nowrap;
}
.homepage .tile:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.homepage .tile.join {
  border-color: var(--deep-forest);
  background: linear-gradient(135deg, #335947, #17372b);
  color: #fff8e7;
}
.homepage .tile.join small { color: #e0eacb; }
.homepage .tile.join strong { font-size: min(46px, 12cqi); }
.homepage .news { background: #f0f4eb; }
.homepage .news-item {
  grid-template-columns: 42px minmax(0, 1fr);
  border-color: #d8e1d4;
}
.homepage .news-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #cedbc6;
  border-radius: 50%;
  background: #e1ead8;
  color: #375a37;
}
.homepage .news-item h3 { font: 700 17px/1.35 var(--serif); }
.homepage .news-item h3 a { color: var(--deep-forest); }
.homepage .news-item h3 a:hover { text-decoration: underline; }
.homepage .news-item p { color: #455249; line-height: 1.5; }

.catalogue-filters { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.catalogue-filters label { display:grid; gap:4px; font-weight:700; min-width:0; }
.catalogue-filters select { padding:6px 8px; border:1px solid #a5b29f; border-radius:5px; max-width:100%; }
.catalogue-pager { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:18px 0; }

.admin { max-width: 1000px; }
.admin h1 { margin-bottom: 8px; }
.admin h2 { margin: 16px 0 8px; }
.admin label, #taxon-fields label { display: grid; gap: 5px; font-weight: 650; }
.admin input, .admin select, #taxon-fields input, #taxon-fields select {
  min-width: 0; padding: 7px; border: 1px solid #b6c4b3; border-radius: 5px; background: white;
}
.admin-row, .admin-taxon { padding: 10px; border-bottom: 1px solid #dce6d8; background: #f4f6ef; }
.admin-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.admin-row .filters { margin: 0; }
.admin-taxon { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin #message { margin: 12px 0; padding: 8px; background: #edf3e7; }
.admin dialog, #taxon-dialog, #preview-dialog { max-height: 85vh; width: min(630px, 94vw); border: 1px solid #a6b49e; border-radius: 12px; }
dialog::backdrop { background: #12271b88; }
#taxon-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
@media(max-width:620px) { .admin-row { grid-template-columns: 1fr 1fr; } }

.taxon-illustration {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid #dce5d5;
  border-radius: 7px;
  background: #f7f8f2;
}
.illustration-label { padding: 8px; color: #566650; font-size: .82rem; text-align: center; }
.taxon-illustration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fbfcf8;
}
.taxon-illustration img[hidden] { display: none; }
.taxon-illustration-detail { max-width: 420px; }
.species-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 16px; }
@media (min-width: 780px) { .species-photos-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.species-herbarium .taxon-illustration,
.species-herbarium .taxon-illustration img { background: transparent; }
@media (max-width: 540px) { .species-photos { grid-template-columns: minmax(0, 420px); } }

.jpg-upload { margin-top: 12px; display: grid; gap: 6px; }
.jpg-upload[hidden] { display: none; }
.jpg-upload label { font-weight: 700; }
.jpg-preview { width: auto; max-width: 100%; max-height: 180px; object-fit: contain; }
.jpg-preview[hidden] { display: none; }

.foot-head { align-items: center; flex-wrap: wrap; }
.journal-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.journal-card { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; min-width: 0; overflow-wrap: anywhere; }
.journal-card h2 { margin: 0; }
.journal-card .journal-metrics { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .8rem; color: #495744; }
.journal-form { margin: 12px 0; }
.journal-form-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.journal-form-row input { flex: 1 1 16rem; min-width: 0; }
.journal-admin-url { overflow-wrap: anywhere; }
.ecosystem-maps { margin-top: 28px; }
.ecosystem-map { margin: 12px 0 20px; }
.ecosystem-map img { display: block; width: 100%; height: auto; border: 1px solid #d7e0cc; border-radius: 6px; }
.ecosystem-map figcaption { margin-top: 8px; font-size: .88rem; }
.ecosystem-map figcaption p + p { margin-top: 4px; }
.contact-intro {
  padding: clamp(16px, 3vw, 26px);
  margin-bottom: 18px;
  border: 1px solid #d7e0cc;
  border-left: 4px solid #79924a;
  border-radius: 8px;
  background: #edf2e7;
}
.contact-organization { font-size: clamp(17px, 2.6vw, 22px); font-weight: 700; color: #244133; }
.contact-description { max-width: 62ch; white-space: pre-line; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.contact-card {
  min-width: 0;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid #d7e0cc;
  border-radius: 8px;
  background: #fffefa;
}
.contact-card h2 { color: #244133; font-size: 18px; }
.contact-card dl { margin: 0; }
.contact-card dl > div { padding: 9px 0; border-bottom: 1px solid #e3e7dc; }
.contact-card dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-card dt { font-weight: 700; font-size: .86rem; color: #495744; }
.contact-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.contact-card address { font-style: normal; white-space: pre-line; }
.contact-directions { margin-top: 12px; }
.contact-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.contact-social a { display: block; padding: 6px 10px; background: #edf2e7; border-radius: 5px; }
.contact-admin-group { min-width: 0; margin: 16px 0; padding: 2px 14px 14px; border: 1px solid #d7e0cc; border-radius: 6px; }
.contact-admin-group legend { font-weight: 700; padding-inline: 5px; }
@media (max-width: 620px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.logo-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: white;
  margin-bottom: 12px;
}
.footer-citation { margin-top: 15px; padding-top: 12px; border-top: 1px solid #ffffff30; }
.footer-citation p { margin-top: 4px; overflow-wrap: anywhere; }

#publication-dialog { width: min(720px, 94vw); max-height: 85vh; border: 1px solid #a6b49e; border-radius: 12px; }
.publication-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.publication-fields label { display: grid; gap: 4px; }
.publication-fields input, .publication-fields select, .publication-fields textarea { width: 100%; font: inherit; }
@media(max-width:520px) { .publication-fields { grid-template-columns: 1fr; } }

.paper-year-filter { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.paper-year-filter label { font-weight:700; }
.paper-year-filter select { padding:6px 9px; border:1px solid #a5b29f; border-radius:5px; }
.paper-year-group + .paper-year-group { margin-top:14px; }

.featured-illustration {
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid #dedfd1;
  border-radius: 12px;
  background: #f8f5ec;
}
.featured-illustration a { display: block; text-decoration: none; }
.featured-illustration img {
  width: 100%;
  height: clamp(220px, 34vw, 430px);
  object-fit: contain;
  background: #f7f8f2;
}
.featured-name {
  display: block;
  padding: 11px 14px;
  color: #254638;
  font: 700 1.1rem/1.4 Georgia, serif;
}
.featured-illustration a:hover .featured-name { text-decoration: underline; }

.paper-news { border-top: 1px solid #cbd9c5; margin-top: 20px; padding-top: 15px; }
.paper-news h2 { font-size: 1.18rem; color: #254638; margin-bottom: 10px; }
.paper-news-card { background: #fbfcf8; border: 1px solid #dce5d5; border-radius: 8px; padding: 10px; margin: 0 0 10px; }
.paper-news-card img { width: 100%; max-height: 370px; object-fit: contain; background: #f7f8f2; }
.paper-news-card h3 { margin: 8px 0 2px; font-size: 1rem; }
.paper-news-card p { margin: 0; }
.paper-news-preview { max-width: 100%; max-height: 180px; object-fit: contain; }
.paper-news-preview[hidden] { display: none; }

.utility #admin-link { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid #627681; border-radius: 3px; text-transform: none; }
.utility #admin-link:hover { background: #303d43; }
@media(max-width:650px) { .utility #admin-link { padding: 4px; font-size: 11px; } }

.image-credit { margin: 0 0 10px; color: #52644e; font-size: .85rem; overflow-wrap: anywhere; }
.featured-illustration .image-credit { padding: 0 14px 10px; margin: 0; }

.public-site {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 65rem 39rem at 98% 10rem, #dce7d5, transparent 76%),
    radial-gradient(ellipse 54rem 37rem at 2% 37rem, #eee3ce, transparent 76%),
    linear-gradient(160deg, #faf8ef, #eff3e8 58%, #f8f5ec);
}
.public-site main:not(.homepage) .page {
  padding: clamp(14px, 2.8vw, 30px);
  border: 1px solid #e0e7d9;
  border-radius: 14px;
  background: #fffef9;
}

.landscape-album { margin:10px 0; }
.landscape-frame { position:relative; overflow:hidden; aspect-ratio:3/2; border:1px solid #dce5d5; border-radius:8px; background:#edf2e8; }
.landscape-slide { display:block; height:100%; }
.landscape-slide[hidden] { display:none; }
.landscape-slide img { width:100%; height:100%; object-fit:cover; }
.landscape-album button, .landscape-count { position:absolute; background:#17342bed; color:white; }
.landscape-album button { display:grid; place-items:center; top:50%; transform:translateY(-50%); width:44px; height:44px; padding:0; border:1px solid #ffffff80; border-radius:50%; font-size:30px; line-height:1; }
.landscape-album button:focus-visible { outline:2px solid white; outline-offset:2px; }
.landscape-album [data-photo-step="-1"] { left:8px; }
.landscape-album [data-photo-step="1"] { right:8px; }
.landscape-count { bottom:8px; right:8px; padding:3px 8px; border-radius:5px; font-size:.8rem; }
#landscape-admin > label { margin-top:10px; }

.brand img.brand-emblem { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; }
@media(max-width:650px) { .brand img.brand-emblem { width: 42px; height: 42px; } }

#botanist-dialog { width:min(740px,94vw); max-height:85vh; border:1px solid #a6b49e; border-radius:12px; }
#botanist-preview { margin-top:10px; }
.botanist-grid { display:grid; gap:16px; margin-top:20px; }
.botanist-card { display:flex; align-items:flex-start; gap:18px; padding:18px; background:#f0f4eb; border:1px solid #dce5d5; border-radius:12px; }
.botanist-card > div { min-width:0; }
.botanist-card img { width:clamp(96px,20vw,160px); aspect-ratio:4/5; object-fit:cover; border-radius:8px; }
.botanist-card p { white-space:pre-wrap; overflow-wrap:anywhere; }
.profile-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.profile-link { display:inline-flex; gap:6px; align-items:center; padding:4px 8px; background:white; border-radius:6px; text-decoration:none; font-size:13px; }
.profile-link span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#245246; color:white; font-weight:700; }
.profile-link.scholar span { background:#2458a6; }
.profile-link.orcid span { background:#476414; }
@media(max-width:500px) { .botanist-card { flex-direction:column; } }

.search[data-search] { position:relative; }
#plant-suggestions { position:absolute; inset-inline:0; top:100%; z-index:8; margin:4px 0 0; padding:4px; list-style:none; max-height:240px; overflow:auto; background:#fffef9; color:#263b30; border:1px solid #a5b29f; border-radius:7px; box-shadow:0 5px 15px #263b3026; }
#plant-suggestions li { padding:7px 10px; cursor:pointer; overflow-wrap:anywhere; }
#plant-suggestions li:hover, #plant-suggestions li[aria-selected=true] { background:#e3ecd9; }
.homepage .box:has([data-search]) { overflow:visible; }

.profile-link.inaturalist span { background:#3f692b; }

.profile-links { gap:6px; }
.profile-link { gap:4px; padding:3px 6px; font-size:12px; }
.profile-link span { width:20px; height:20px; }

.taxon-card .taxon-mongolian-name, .page .taxon-mongolian-name { margin: 0 0 8px; font-size: .87rem; color: #52644e; }

.distribution-map { margin-top: 24px; }
.distribution-map .taxon-illustration { width: 100%; aspect-ratio: 2 / 1; }
.distribution-map .taxon-illustration:has(img:not([hidden])) { aspect-ratio: auto; }
.distribution-map .taxon-illustration img:not([hidden]) { position: static; width: 100%; height: auto; }
.distribution-map .taxon-illustration:has(img:not([hidden])) .illustration-label { display: none; }

.flora-statistics {
  margin-top: var(--gap);
  padding: clamp(8px, 1.2vw, 14px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #f7f8f1;
  color: var(--forest);
}
.flora-statistics h2 { font: 700 clamp(1.25rem, 2.5vw, 1.65rem)/1.25 var(--serif); }
.flora-statistics dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 0; }
.flora-metric {
  --accent:#3c7831; --tint:#f1f8ed; --border:#a2cd96; --hill:#a7d49b; --far-hill:#d3e9c9;
  position:relative; isolation:isolate; display:flex; flex-direction:column-reverse; justify-content:flex-end;
  gap:3px; min-width:0; padding:8px 7px 15px; text-align:center;
  border:1px solid var(--border); border-radius:12px; background:linear-gradient(var(--tint),#fff);
  color:#142d4c;
}
.flora-metric:nth-child(4n+2) { --accent:#246ba7; --tint:#eef6ff; --border:#9bc8f4; --hill:#a5cdf3; --far-hill:#d4e7fa; }
.flora-metric:nth-child(4n+3) { --accent:#a95715; --tint:#fff6eb; --border:#efc28a; --hill:#f0c38a; --far-hill:#fae1ba; }
.flora-metric:nth-child(4n+4) { --accent:#664b9c; --tint:#f5effb; --border:#c4afe5; --hill:#c4b0e0; --far-hill:#e5d9f3; }
.flora-metric::before {
  content:""; position:absolute; inset:auto 0 0; height:14px; z-index:-1; border-radius:0 0 11px 11px;
  background:radial-gradient(ellipse at 18% 170%,var(--hill) 0 64%,transparent 65%),
             radial-gradient(ellipse at 79% 170%,var(--far-hill) 0 67%,transparent 68%);
  pointer-events:none;
}
.flora-metric:hover, .flora-metric:focus-within { border-color:var(--accent); background:var(--tint); }
.flora-statistics dd a { color:inherit; text-decoration:none; }
.flora-statistics dd a::after { content:""; position:absolute; inset:0; border-radius:12px; }
.flora-statistics dd a:focus-visible::after { outline:2px solid var(--accent); outline-offset:2px; }
.flora-statistics dt { font-size:.8rem; font-weight:700; line-height:1.3; overflow-wrap:anywhere; }
.flora-statistics dd { margin:0; font:700 clamp(1.25rem,2.5vw,1.65rem)/1.1 var(--serif); font-variant-numeric:tabular-nums; }
.flora-metric-icon { display:block; width:28px; height:26px; margin:0 auto 2px; color:var(--accent); font:700 25px/26px Arial,sans-serif; }
.flora-metric-total .flora-metric-icon { position:relative; background:linear-gradient(currentColor,currentColor) center bottom/2px 15px no-repeat; }
.flora-metric-total .flora-metric-icon::before, .flora-metric-total .flora-metric-icon::after { content:""; position:absolute; top:3px; width:13px; height:10px; background:currentColor; border-radius:0 90% 0 90%; }
.flora-metric-total .flora-metric-icon::before { left:1px; transform:rotate(15deg); }
.flora-metric-total .flora-metric-icon::after { right:1px; transform:scaleX(-1) rotate(15deg); }
@media (max-width: 560px) { .flora-statistics dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.landscape-caption { display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:6px; color:#445344; font-size:.85rem; overflow-wrap:anywhere; }
.landscape-caption[hidden], .landscape-caption:empty { display:none; }
#landscape-images figure label { display:grid; gap:3px; margin:8px 0; }
#landscape-images figure input { width:100%; min-width:0; }

.map-area-select { display:grid; gap:5px; color:var(--forest); font-weight:700; margin:16px 0 10px; }
.map-area-select select { width:min(100%, 36rem); min-width:0; padding:8px; border:1px solid #cbd8c7; border-radius:6px; background:#fff; color:#263c31; }
.protected-map-frame { position:relative; overflow:hidden; border:1px solid #cbd8c7; border-radius:10px; background:#edf1e8; }
.protected-map-frame svg { display:block; width:100%; aspect-ratio:830/425; }
.map-grid path { fill:none; stroke:#d5ded2; stroke-width:1; vector-effect:non-scaling-stroke; }
.map-grid text { fill:#546455; font-size:12px; }
.map-areas path { stroke:#fff; stroke-width:.7; vector-effect:non-scaling-stroke; cursor:pointer; }
.map-areas path:hover, .map-areas path.selected { stroke:#182f23; stroke-width:2; }
.map-richness-title { margin-top:10px; font-size:.9rem; color:#254638; }
.map-controls { position:absolute; top:8px; right:8px; display:flex; gap:4px; }
.map-controls button { min-width:34px; padding:3px 7px; border:1px solid #adbead; border-radius:5px; background:#fff; color:#254638; }
.map-legend { display:flex; flex-wrap:wrap; gap:5px 14px; list-style:none; padding:0; margin:10px 0; font-size:.85rem; }
.map-legend li { display:flex; align-items:center; gap:6px; }
.map-legend span { width:11px; height:11px; border-radius:2px; }
.map-details { padding:12px; border-radius:6px; background:#f0f3ec; }
.map-source { margin-top:8px; color:#526354; font-size:.8rem; }
@media(max-width:650px) {
 .nav-expanded .plant-diversity-nav .drop { display:inline-block; }
 .nav-expanded .plant-diversity-nav.open .dropdown { display:block!important; }
}

.diversity-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:22px 0 8px; }
.diversity-section { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:110px; padding:20px; border:1px solid #cad7c8; border-radius:10px; background:#eef3eb; color:#254638; font-size:clamp(1.15rem,3vw,1.5rem); font-weight:700; line-height:1.25; text-decoration:none; }
.diversity-section:hover { background:#dce9d9; }
@media(max-width:540px) { .diversity-sections { grid-template-columns:1fr; } .diversity-section { min-height:75px; } }

.area-records { margin-top:12px; padding-top:10px; border-top:1px solid #d3ddcf; }
.area-records details { margin-top:10px; }
.area-records summary { cursor:pointer; color:#254638; font-weight:700; }
.area-species-list { max-height:15rem; overflow:auto; padding-left:24px; }

.map-country-boundary { fill:none; stroke:#263b34; stroke-width:1.5; vector-effect:non-scaling-stroke; pointer-events:none; }
.map-legend .map-boundary-key { width:16px; height:0; border-top:2px solid #263b34; border-radius:0; }

.map-province-labels { pointer-events:none; }
.map-province-labels text { fill:#fff; stroke:#263b34; stroke-width:2.3; stroke-linejoin:round; paint-order:stroke; text-anchor:middle; dominant-baseline:middle; font-size:9.5px; font-weight:700; }
.map-province-labels line { stroke:#263b34; stroke-width:.8; vector-effect:non-scaling-stroke; }

.partner-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.partner-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-width:0; min-height:125px; padding:14px; text-align:center; background:#fff; border:1px solid #d8e2d2; border-radius:8px; color:#254638; overflow-wrap:anywhere; }
.partner-card:hover { background:#edf2e8; }
.partner-card img { width:100%; height:65px; object-fit:contain; }
.partner-preview { max-width:160px; max-height:80px; object-fit:contain; margin:10px 0; }
.partner-preview[hidden] { display:none; }
@media(max-width:650px) { .partner-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.taxon-preview { position:relative; }
.conservation-badge {
  position:absolute; top:8px; right:8px; z-index:1;
  min-width:30px; padding:3px 6px; border:1px solid #767f78; border-radius:5px;
  background:#f1f3f1; color:#28362c; font:700 .75rem/1.2 system-ui,sans-serif; text-align:center;
}
.conservation-vu { background:#ffe5a1; border-color:#a87928; color:#4d3007; }
.conservation-en { background:#ffc089; border-color:#a14f22; color:#58270e; }
.conservation-cr { background:#af2636; border-color:#8b1e2a; color:#fff; }
.conservation-nt { background:#e5ebad; border-color:#79843a; }
.conservation-lc { background:#cfead1; border-color:#54845a; }
.conservation-ex, .conservation-ew, .conservation-re { background:#474249; border-color:#332f35; color:#fff; }

.quick .quick-inaturalist { display: flex; align-items: center; justify-content: center; gap: 6px; text-transform: none; }

.website-card h2 a:has(.website-logo) { display: block; position: relative; padding-right: 42px; }
.website-logo { position: absolute; top: 0; right: 0; object-fit: contain; }

.image-preview-link { display: block; cursor: zoom-in; }
.image-preview-link:focus-visible { outline: 2px solid #456c27; outline-offset: 3px; }
#map-preview-dialog { box-sizing: border-box; width: min(94vw, 1200px); max-height: 94dvh; padding: clamp(10px, 2vw, 20px); border: 1px solid #a6b49e; border-radius: 10px; background: #fff; color: #17271c; }
#map-preview-dialog::backdrop { background: #111b16cc; }
.map-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.map-preview-heading h2 { margin: 0; font-size: clamp(15px, 2vw, 22px); overflow-wrap: anywhere; }
.map-preview-heading button { padding: 6px 12px; cursor: pointer; }
#map-preview-image:not([hidden]) { display: block; width: 100%; max-height: 76dvh; object-fit: contain; }

.publication-chart { margin-top: 20px; }
.publication-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-size: .9rem; }
.publication-chart-legend span::before { content: ''; display: inline-block; width: .75em; height: .75em; margin-right: .4em; border-radius: 2px; }
.publication-chart-book, .publication-chart-book-key::before { background: #a4bd66; }
.publication-chart-paper, .publication-chart-paper-key::before { background: #3e735d; }
.publication-chart-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.publication-chart-bars li { display: grid; grid-template-columns: 4ch minmax(0,1fr) 4ch; align-items: center; gap: 10px; }
.publication-chart-bars strong { text-align: right; }
.publication-chart-track { display: flex; height: 15px; background: #e9eee4; border-radius: 4px; overflow: hidden; }

.research-cloud { margin-top: 20px; }
.research-cloud .pad > p { margin: 0 0 10px; }
#research-cloud { display: block; width: 100%; background: #fff; border-radius: 6px; }
.research-cloud details { margin-top: 11px; }
.research-cloud summary { cursor: pointer; }
.research-cloud details ul { columns: 12rem auto; }

.news-item.has-book-cover { grid-template-columns: clamp(72px, 22vw, 112px) minmax(0, 1fr); align-items: start; }
.book-cover { display: block; width: 100%; height: auto; max-height: 160px; object-fit: contain; object-position: left top; }

/* Researcher directory */
.botanist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.botanist-card { flex-direction: column; align-items: center; gap: 12px; padding: 16px 10px; text-align: center; }
.botanist-card > div { width: 100%; }
.botanist-card img { width: min(100%, 128px); }
.botanist-card h2 { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.botanist-card .profile-links { justify-content: center; gap: 5px; margin-top: 9px; }
.botanist-card .profile-link { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #dce5d5; }
.botanist-card .profile-link:focus-visible { outline: 2px solid #245246; outline-offset: 2px; }
.botanist-bio-toggle { cursor: pointer; }
.botanist-bio-toggle[aria-expanded="true"] { background: #dce8d4; }
.botanist-card .biography-icon { position: relative; width: 11px; height: 14px; border: 1.5px solid #245246; border-radius: 2px; background: transparent; }
.biography-icon::after { content: ''; width: 5px; height: 1px; background: #245246; box-shadow: 0 3px #245246; transform: translateY(-2px); }
.botanist-bio { margin-top: 12px; text-align: start; }
@media (max-width: 610px) { .botanist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .botanist-grid { grid-template-columns: 1fr; } }

.supporting-organizations { margin-top: 26px; padding-top: 18px; border-top: 1px solid #dce5d5; }
.supporting-organizations h2 { margin: 0 0 12px; }
#partner-results { margin-bottom: 20px; }

[data-supporting-description][hidden] { display: none; }
.donor-card { border: 1px solid #dce5d5; background: white; border-radius: 8px; min-width: 0; }
.donor-card .partner-card { border: 0; }
.donor-card p { padding: 0 12px 12px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.botanist-credentials { display: block; margin-top: 3px; font-size: .86em; font-weight: 500; }

.botanist-keywords { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 9px 0 0; padding: 0; list-style: none; }
.botanist-keywords li { max-width: 100%; padding: 2px 6px; border-radius: 5px; background: #e0ead7; color: #294438; font-size: .75rem; overflow-wrap: anywhere; }

.taxon-photo-link { display: block; text-decoration: none; }
.taxon-photo-link:focus-visible { outline: 2px solid #456c27; outline-offset: 3px; }

#plant-suggestions li[data-taxon] { padding: 0; }
#plant-suggestions li a { display: block; padding: 7px 10px; color: inherit; text-decoration: none; }

.botanist-period { margin-top: 24px; padding-top: 12px; border-top: 1px solid #dce5d5; }
.botanist-period > h2 { margin: 0 0 8px; font-size: 1.2rem; }
.botanist-period .botanist-grid { margin-top: 12px; }

#footer-visits { margin: 9px 0 0; font-size: .78rem; color: #d4dfd4; }

#ecosystem-copy[hidden] { display: none; }
.community-gallery { margin: 18px 0; }
.community-gallery .landscape-frame { aspect-ratio: auto; }
.community-gallery .landscape-slide,
.community-gallery .landscape-slide img { height: auto; }


.admin-menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 36rem; }
.admin-menu > button { width: 100%; white-space: normal; text-align: left; }

.utility .header-facebook { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0866ff; color: white; text-decoration: none; text-transform: none; letter-spacing: normal; }
.header-facebook span { font: bold 20px/1 Arial, sans-serif; }
.header-facebook:focus-visible { outline: 2px solid white; outline-offset: 2px; }
