.header{position:sticky;top:0;z-index:100}
html{scroll-padding-top:106px}
main .wrap{width:calc(100% - 96px);max-width:1704px}
@media(max-width:991px){main .wrap{width:calc(100% - 44px)}}
@media(max-width:991px){.header #navigation.open{max-height:calc(100dvh - 100px);overflow-y:auto}}
body .header .brand.domain-wordmark{isolation:isolate;justify-content:center;gap:2px}
body .domain-wordmark .domain-thai{position:relative;top:0;margin:0;font-size:20px;line-height:25px;color:#397a72}
body .domain-wordmark .domain-outline{position:relative;margin:0;opacity:1;-webkit-text-stroke:0;color:#65705a;font:500 15px/18px 'Cormorant Garamond',Georgia,serif;letter-spacing:1.1px;overflow:visible;z-index:auto}
.domain-wordmark .domain-thai{padding-bottom:3px}
.domain-wordmark .domain-thai:after{content:'';position:absolute;left:-2px;right:-5px;bottom:-3px;height:7px;border-top:2px solid #788b62;border-radius:50%;transform:rotate(-2deg)}
body .domain-wordmark .domain-outline{font-size:13.2px;line-height:16px;margin-top:2px;top:-1px;color:#8a7055}

/* Portal navigation effects for the Herbarium header. */
.header .header-portal{display:inline-flex;align-items:center;gap:7px;transition:color .2s ease}
.header .header-portal:is(:hover,:focus-visible){color:#52713d}
.header .header-portal .portal-icon{flex-shrink:0}
@media(min-width:992px){
  .header #navigation{align-self:stretch;align-items:stretch}
  .header #navigation .nav-item{display:grid;grid-template-areas:'label';align-items:center;min-height:64px;padding:0;flex-shrink:0}
  .header #navigation .nav-item strong{grid-area:label;transition:transform .3s ease,color .2s ease}
  .header #navigation .nav-item small{grid-area:label;position:static;align-self:end;margin:0 0 12px;opacity:0;transform:translateY(-2px);transition:opacity .2s ease,transform .3s ease}
  .header #navigation .nav-item:after{content:'';position:absolute;top:-9px;bottom:auto;left:50%;width:0;height:3px;border-radius:0 0 2px 2px;background:var(--lime);opacity:0;transform:translateX(-50%);transition:width .3s ease,opacity .2s ease}
  /* Active navigation is already in its final state on first paint. */
  .header #navigation .nav-item.active strong,
  .header #navigation .nav-item.active small,
  .header #navigation .nav-item.active:after{transition:none}
  .header #navigation .nav-item:is(.active,:hover,:focus-visible):after,
  .header #navigation .nav-dropdown:is([open],:focus-within)>summary:after{width:44px;opacity:1}
  .header #navigation .nav-item:is(.active,:hover,:focus-visible) strong,
  .header #navigation .nav-dropdown:is([open],:focus-within)>summary strong{transform:translateY(-5px);color:#52713d}
  .header #navigation .nav-item:is(.active,:hover,:focus-visible) small,
  .header #navigation .nav-dropdown:is([open],:focus-within)>summary small{opacity:1;transform:translateY(0)}
  .header #navigation .nav-submenu{border-top:3px solid var(--lime);border-radius:0 0 7px 7px;box-shadow:0 12px 30px #06251d29}
  .header #navigation .nav-submenu a{transition:padding-left .22s ease,color .22s ease,background-color .22s ease}
  .header #navigation .nav-submenu a:is(:hover,:focus-visible){padding-left:17px;background:#a9bd591f;color:#52713d}
}
@media(min-width:992px){
  .header #navigation .nav-item:after{background:#a9bd59}
  .header #navigation .nav-submenu{border-top-color:#a9bd59}
}
@media(min-width:992px) and (max-width:1199px){
  .header #navigation .nav-item:after{top:-10px}
}
@media(prefers-reduced-motion:reduce){
  .header #navigation .nav-item strong,.header #navigation .nav-item small,.header #navigation .nav-item:after,.header #navigation .nav-submenu a{transition:none}
}
