/* Poster copy: retain layout, support the complete source text. */
.herbarium-gallery-medical {
  position: relative;
  isolation: isolate;
  margin-top: 80px;
  padding: 60px 0 72px
}

.herbarium-gallery-medical::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 340px;
  background: url('../img/gallery-medical-wave.svg') center/100% 100% no-repeat;
  pointer-events: none
}

.medical-gallery-heading {
  text-align: center;
  margin-bottom: 38px
}

.medical-gallery-heading .eyebrow {
  color: #aa8c50;
  margin: 0 0 12px
}

.medical-gallery-heading h2 {
  font: 500 clamp(28px, 3vw, 42px)/1.35 'Anuphan', Tahoma, sans-serif;
  color: #263b32;
  margin: 0
}

.medical-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-left: max(0px, calc(25% - 282px));
  margin-right: max(0px, calc(25% - 242px))
}

.medical-gallery-grid figure {
  margin: 0;
  padding: 14px 14px 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(52, 68, 44, .10);
  min-width: 0
}

.medical-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #f5f5ef
}

.medical-gallery-grid figcaption {
  text-align: center;
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #53604d
}

@media(min-width:992px) and (max-width:1199px) {
  .medical-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:991px) {
  .medical-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px
  }
}

@media(max-width:760px) {
  .herbarium-gallery-medical {
    margin-top: 50px;
    padding: 44px 0 48px
  }

  .medical-gallery-grid {
    margin: 0;
    gap: 16px
  }

  .medical-gallery-grid figure {
    padding: 14px 14px 20px
  }

  .medical-gallery-grid figcaption {
    font-size: 14px
  }

  .herbarium-gallery-medical::before {
    height: 280px
  }
}

@media(max-width:420px) {
  .medical-gallery-grid {
    grid-template-columns: 1fr
  }
}

.herbarium-footer {
  --footer-landscape-height:230px;
  --footer-landscape-gap:20px;
  --footer-landscape-wave-height:61px;
  --footer-landscape-crop-extension:165px;
  --footer-landscape-image-offset:185px;
  position: relative;
  isolation:isolate;
  border-top: 0;
  height:auto;
  min-height:0;
  margin-top:0;
  background:linear-gradient(to bottom,
    #fcfbf7 0 var(--footer-landscape-height),
    #f7f8f2 var(--footer-landscape-height) 100%);
  padding-top:calc(var(--footer-landscape-height) + var(--footer-landscape-gap))
}

.footer-landscape {
  position:absolute;
  z-index:1;
  left:50%;
  top:calc(-1 * var(--footer-landscape-crop-extension));
  width:100vw;
  height:calc(var(--footer-landscape-height) + var(--footer-landscape-crop-extension));
  overflow:hidden;
  background-image:url('../img/footer-mountain-landscape-seamless.png');
  background-repeat:repeat-x;
  background-position:center bottom;
  background-size:auto 90%;
  opacity:.82;
  transform:translateX(-50%);
  pointer-events:none
}

.footer-landscape img {
  display:none
}

/* Index only: continue the preceding section's project background behind the mountain. */
.herbarium-footer--index {
  --footer-landscape-height:365px;
  --footer-landscape-crop-extension:0px;
  background:linear-gradient(to bottom,
    #fcfbf7 0 var(--footer-landscape-height),
    #f7f8f2 var(--footer-landscape-height) 100%);
}

.herbarium-footer--index .footer-landscape {
  background-color:#fcfbf7;
}

/* Keep the specimens landscape fully inside the footer flow as well. */
.herbarium-footer--landscape-in-flow {
  --footer-landscape-height:365px;
  --footer-landscape-crop-extension:0px;
}

/* Specimen detail: reduce only the visible landscape window while preserving
   the mountain artwork's existing 328.5px rendered height and bottom anchor. */
#main.detail-page + .herbarium-footer--landscape-in-flow {
  --footer-landscape-height:225px;
}

#main.detail-page + .herbarium-footer--landscape-in-flow .footer-landscape {
  background-size:auto 328.5px;
}
.herbarium-footer>.wrap {
  position:relative;
  z-index:3
}

.herbarium-footer>.wrap {
  width: 100%;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px
}

@media(min-width:992px) and (max-width:1199px) {
  .herbarium-footer>.wrap {
    padding-left: 28px;
    padding-right: 28px
  }
}

@media(max-width:991px) {
  .herbarium-footer>.wrap {
    padding-left: 24px;
    padding-right: 24px
  }
}

@media(max-width:420px) {
  .herbarium-footer>.wrap {
    padding-left: 16px;
    padding-right: 16px
  }
}

#main .browse-heading,
#main .browse {
  width: auto;
  margin-left: max(0px, calc(25% - 282px));
  margin-right: max(0px, calc(25% - 242px))
}

@media(max-width:760px) {

  #main .browse-heading,
  #main .browse {
    margin-left: 0;
    margin-right: 0
  }
}

.herbarium-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top:calc(var(--footer-landscape-height) - var(--footer-landscape-wave-height));
  height:var(--footer-landscape-wave-height);
  z-index:2;
  background: url('../img/footer-top-wave.svg?v=20260920-3') center/100% 100% no-repeat;
  pointer-events: none
}

.herbarium-footer::after {
  content:'';
  position:absolute;
  z-index:1;
  inset:var(--footer-landscape-height) 0 0;
  background:#f7f8f2;
  pointer-events:none
}

#main .collection-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  min-height: 560px;
  margin: 0;
  padding: 42px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible
}

#main .collection-feature .statistics {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 540px;
  padding: 0;
  background: transparent;
  border: 0
}

#main .collection-feature .collection-title {
  margin: 0 0 25px;
  text-align: left
}

#main .collection-feature .collection-title h2 {
  font: 500 clamp(32px, 3.2vw, 46px)/1.22 'Anuphan', Tahoma, sans-serif;
  color: #263b32;
  margin: 0
}

#main .collection-feature .collection-title h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 20px;
  background: #aa8c50
}

#main .collection-feature .statistics p {
  font-size: 16px;
  line-height: 1.95;
  text-align: left;
  color: #53604d;
  margin: 0 0 20px;
  padding: 0;
  border: 0
}

.qbg-story-visual {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: 460px;
  height: 450px
}

.qbg-story-visual::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  left: 15px;
  top: 10px;
  border-radius: 50%;
  background: #d2ddc5
}

.qbg-story-visual img {
  position: absolute;
  display: block;
  box-shadow: 8px 12px 20px rgba(38, 30, 23, .20)
}

.qbg-story-visual .qbg-press {
  width: 205px;
  height: 282px;
  left: 45px;
  top: 20px;
  object-fit: cover;
  object-position: left center
}

.qbg-story-visual .qbg-sheet {
  width: 155px;
  height: 217px;
  right: 35px;
  bottom: 30px;
  object-fit: cover;
  transform: rotate(4deg)
}

@media(max-width:991px) {
  #main .collection-feature {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0
  }

  #main .collection-feature .statistics {
    justify-self: center;
    max-width: none
  }

  .qbg-story-visual {
    justify-self: center;
    width: min(100%, 460px)
  }
}

@media(max-width:600px) {
  .qbg-story-visual {
    height: auto;
    aspect-ratio: 460/450
  }

  .qbg-story-visual::before {
    width: 94%;
    height: auto;
    aspect-ratio: 1;
    left: 3%;
    top: 2%
  }

  .qbg-story-visual .qbg-press {
    width: 52%;
    height: 73%;
    left: 7%;
    top: 3%
  }

  .qbg-story-visual .qbg-sheet {
    width: 39%;
    height: 56%;
    right: 3%;
    bottom: 3%
  }
}

.statistics>div:not(.collection-title) {
  display: none
}

.statistics p strong {
  display: inline;
  font: inherit;
  color: inherit
}

#main .type-section {
  display: block;
  position: relative;
  padding: 60px 0 64px;
  border: 0;
  background: transparent
}

#main .type-section>div {
  width: auto;
  margin-left: max(0px, calc(25% - 282px));
  margin-right: max(0px, calc(25% - 242px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start
}

#main .type-section h2 {
  text-align: left;
  font: 500 clamp(28px, 3vw, 42px)/1.35 'Anuphan', Tahoma, sans-serif;
  color: #263b32;
  margin: 8px 0 0
}

#main .type-section h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  background: #aa8c50;
  margin: 20px 0 0
}

#main .type-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  align-items: stretch
}

#main .type-section li {
  position: relative;
  padding: 48px 24px 30px 41px;
  margin: 0;
  color: #53604d;
  min-width: 0;
  background: #f5f2e9;
  box-shadow: 0 0 20px -3px rgba(52, 68, 44, .08);
  border: 1px solid rgba(120, 145, 129, .34)
}

#main .type-section li+li {
  border: 1px solid rgba(120, 145, 129, .34)
}

#main .type-section li>i {
  display: none
}

#main .type-section li::before {
  content: '“';
  position: absolute;
  top: 6px;
  left: 12px;
  font: italic 78px/1 Georgia, serif;
  color: #788a61;
  pointer-events: none
}

#main .type-section li p {
  font-size: 16px;
  line-height: 1.95;
  margin: 0;
  color: inherit
}

#main .type-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 3% 20%, #a8b39a33 0 5px, transparent 6px), radial-gradient(circle at 97% 80%, #a8b39a26 0 8px, transparent 9px)
}

@media(max-width:991px) {
  #main .type-section>div {
    grid-template-columns: 1fr;
    gap: 30px
  }
}

@media(max-width:760px) {
  #main .type-section>div {
    margin-left: 0;
    margin-right: 0
  }
}

@media(max-width:760px) {
  #main .type-section {
    padding: 40px 0
  }

  #main .type-section ul {
    grid-template-columns: 1fr;
    gap: 24px
  }

  #main .type-section h2 {
    margin: 0
  }
}

.poster-importance {
  position: relative;
  isolation: isolate;
  padding: 90px 0 100px;
  margin: 30px 0 55px
}

.poster-importance::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  background: url('../img/importance-wave.svg') center/100% 100% no-repeat;
  pointer-events: none
}

.poster-importance::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  background: url('../img/importance-lines.svg') left top 55px/clamp(180px, 18vw, 320px) auto no-repeat, radial-gradient(circle at 92% 77%, #8f9f784d 0 13px, transparent 14px), radial-gradient(circle at 94% 81%, #a8b39a55 0 7px, transparent 8px), radial-gradient(circle at 95% 76%, #a8b39a40 0 4px, transparent 5px), radial-gradient(circle at 93% 85%, #a8b39a33 0 4px, transparent 5px)
}

@media(max-width:760px) {
  .poster-importance::after {
    opacity: .5;
    background-size: 130px auto, auto, auto, auto, auto
  }
}

.poster-importance>h2 {
  text-align: center;
  font: 500 clamp(28px, 3vw, 42px)/1.35 'Anuphan', Tahoma, sans-serif;
  color: #263b32;
  margin: 0 0 50px
}

.importance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 36px;
  max-width: 1120px;
  margin: 0 auto
}

.importance-grid article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 20px;
  align-content: center;
  text-align: left;
  border: 0;
  padding: 0;
  min-width: 0
}

.importance-grid article:nth-child(odd) {
  grid-template-columns: minmax(0, 1fr) 76px;
  text-align: right
}

.importance-grid i {
  grid-column: 1;
  grid-row: 1/3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border: 1px solid #a8b39a80;
  border-radius: 50%;
  font-size: 30px;
  color: #62784f;
  margin: 0;
  background: #fcfbf74d
}

.importance-grid article:nth-child(odd) i {
  grid-column: 2
}

.importance-grid h3 {
  grid-column: 2;
  font-size: 20px;
  line-height: 1.4;
  margin: 5px 0 8px;
  color: #34442c
}

.importance-grid p {
  grid-column: 2;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  color: #53604d
}

.importance-grid article:nth-child(odd) h3,
.importance-grid article:nth-child(odd) p {
  grid-column: 1
}

.importance-grid p br {
  display: none
}

@media(max-width:760px) {
  .poster-importance {
    padding: 65px 0 70px
  }

  .poster-importance>h2 {
    margin-bottom: 35px
  }

  .importance-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
    max-width: 560px
  }

  .importance-grid article:nth-child(odd) {
    grid-template-columns: 76px minmax(0, 1fr);
    text-align: left
  }

  .importance-grid article:nth-child(odd) i {
    grid-column: 1
  }

  .importance-grid article:nth-child(odd) h3,
  .importance-grid article:nth-child(odd) p {
    grid-column: 2
  }
}

/* Section 2 text width */
#main .collection-feature .statistics {
  max-width: 570px;
}

/* Section 1 text width */
#main .intro-story #about .about-copy,
#main .intro-story #about .about-copy p:not(.eyebrow) {
  max-width: 570px !important;
}

/* Section 3: image left, text right */
@media (min-width: 761px) {
  #main .preservation-story .workshop-image {
    grid-column: 1;
    grid-row: 1;
  }

  #main .preservation-story .workshop>div:last-child {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Section 3 circular image */
#main .preservation-story .workshop-image {
  width: 360px;
  height: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

#main .preservation-story .workshop-image {
  width: 430px;
  height: 430px;
}

/* Section 6: four exploration routes */
#main .browse.herbarium-explore {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

#main .browse.herbarium-explore>a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 0;
  padding: 0 0 20px;
  overflow: hidden;
  background: #fff;
}

#main .browse.herbarium-explore .browse-card-image {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  background-position: center;
  background-size: cover;
}

#main .browse.herbarium-explore .browse-card-copy {
  padding: 0 8px 0 20px;
}

#main .browse.herbarium-explore>a>b {
  align-self: end;
  margin: 0 18px 2px 0;
}

@media (max-width: 1100px) {
  #main .browse.herbarium-explore {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #main .browse.herbarium-explore {
    grid-template-columns: 1fr;
  }
}

/* Section 6 cards inspired by the Accounting reference */
#main .browse.herbarium-explore {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

#main .browse.herbarium-explore>a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  min-width: 0;
  padding: 0 0 22px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(52, 68, 44, .10);
  transition: transform .25s ease, box-shadow .25s ease;
}

#main .browse.herbarium-explore>a::before {
  content: none !important;
  display: none !important;
}

#main .browse.herbarium-explore>a:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 14px 32px rgba(52, 68, 44, .16);
}

#main .browse.herbarium-explore .browse-card-image {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 20px;
  background-color: #edf1e9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#main .browse.herbarium-explore .browse-card-copy {
  min-width: 0;
  padding: 0 8px 0 22px;
}

#main .browse.herbarium-explore .browse-card-copy strong {
  font-size: 18px;
  line-height: 1.45;
}

#main .browse.herbarium-explore .browse-card-copy small {
  line-height: 1.65;
}

#main .browse.herbarium-explore>a>b {
  align-self: end;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 18px 0 0;
  border-radius: 50%;
  color: #34442c;
  background: #f4f5ef;
}

@media(max-width:1100px) {
  #main .browse.herbarium-explore {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:600px) {
  #main .browse.herbarium-explore {
    grid-template-columns: 1fr
  }
}

/* Accounting-style hidden-content hover effect */
#main .browse.herbarium-explore .browse-card-copy {
  position: relative;
  transition: transform .28s ease;
}

#main .browse.herbarium-explore .browse-card-copy::after {
  content: "ดูรายละเอียด";
  display: block;
  margin-top: 12px;
  color: #557457;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .28s ease;
}

#main .browse.herbarium-explore>a>b {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .28s ease, background .2s ease;
}

#main .browse.herbarium-explore>a:hover .browse-card-copy {
  transform: translateY(-8px);
}

#main .browse.herbarium-explore>a:hover .browse-card-copy::after,
#main .browse.herbarium-explore>a:hover>b {
  opacity: 1;
  transform: translateY(0);
}

#main .browse.herbarium-explore>a:hover>b {
  color: #fff;
  background: #34442c;
}

@media (hover:none) {

  #main .browse.herbarium-explore .browse-card-copy::after,
  #main .browse.herbarium-explore>a>b {
    opacity: 1;
    transform: none;
  }
}

/* Match Porto Accounting card reveal behavior */
#main .browse.herbarium-explore>a {
  position: relative;
  display: block;
  height: 470px;
  padding: 0;
  overflow: hidden;
  transform: none;
}

#main .browse.herbarium-explore>a:hover {
  transform: none;
}

#main .browse.herbarium-explore .browse-card-image {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
}

#main .browse.herbarium-explore .browse-card-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 158px;
  padding: 22px 64px 20px 22px;
  background: #fff;
  transform: none;
  transition: height .32s ease, padding-top .32s ease;
}

#main .browse.herbarium-explore .browse-card-copy::after {
  position: absolute;
  left: 22px;
  bottom: 22px;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
}

#main .browse.herbarium-explore>a>b {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
}

#main .browse.herbarium-explore>a:hover .browse-card-copy {
  height: 218px;
  padding-top: 26px;
  transform: none;
}

#main .browse.herbarium-explore>a:hover .browse-card-copy::after,
#main .browse.herbarium-explore>a:hover>b {
  opacity: 1;
  transform: translateY(0);
}

@media (hover:none) {
  #main .browse.herbarium-explore>a {
    height: 490px;
  }

  #main .browse.herbarium-explore .browse-card-copy {
    height: 198px;
  }
}

/* Section 7: specimen gallery using the Classic home-concept composition */
.herbarium-gallery-medical {
  margin-top: 86px;
  padding: 72px 0 88px;
  overflow: hidden;
}

.herbarium-gallery-medical::before {
  content: none;
}

.medical-gallery-heading {
  max-width: 760px;
  margin: 0 auto 22px;
}

.medical-gallery-heading::after {
  content: "ตัวอย่างจากคลังพรรณไม้ QBG";
  display: block;
  margin-top: 10px;
  color: #69756c;
  font-size: 15px;
}

.specimen-concept {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.8fr);
  align-items: center;
  gap: 18px;
  min-height: 430px;
  padding: 40px 6% 12px;
}

.specimen-concept::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 51%;
  height: 120px;
  border-top: 1px solid #b8c4b5;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: rotate(-2deg);
  pointer-events: none;
}

.specimen-concept-item {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 15px;
  color: #34442c;
  text-align: center;
}

.specimen-concept-item > span {
  display: block;
  border: 5px solid #fff;
  border-radius: 50%;
  background-color: #edf1e9;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 24px rgba(52, 68, 44, .15), 0 0 0 1px #cdd7c7;
  transition: transform .3s ease, box-shadow .3s ease;
}

.specimen-concept-small > span {
  width: clamp(115px, 10vw, 158px);
  aspect-ratio: 1;
}

.specimen-concept-featured > span {
  width: clamp(245px, 24vw, 355px);
  aspect-ratio: 1;
}

.specimen-concept-item:hover > span {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 17px 30px rgba(52, 68, 44, .20), 0 0 0 1px #aebca8;
}

.specimen-concept-item em {
  font: italic 600 17px/1.3 'Cormorant Garamond', Georgia, serif;
}

.specimen-concept-featured em {
  font-size: 23px;
}

.specimen-concept-two {
  transform: translateY(-42px);
}

.specimen-concept-featured {
  transform: translateY(-8px);
}

@media(max-width:900px) {
  .specimen-concept {
    grid-template-columns: repeat(3, 1fr);
    min-height: 560px;
    padding-inline: 4%;
  }

  .specimen-concept-featured {
    grid-column: 1 / -1;
    margin-top: -20px;
  }
}

@media(max-width:600px) {
  .herbarium-gallery-medical {
    padding: 54px 0 62px;
  }

  .specimen-concept {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 10px;
    min-height: 0;
    padding: 20px 0;
  }

  .specimen-concept::before {
    display: none;
  }

  .specimen-concept-three {
    grid-column: 1 / -1;
  }

  .specimen-concept-featured {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .specimen-concept-two,
  .specimen-concept-featured {
    transform: none;
  }
}

/* Classic reference S-curve behind the specimen circles */
.specimen-concept::before {
  left: -9%;
  right: -9%;
  top: 76px;
  height: 345px;
  border: 0;
  border-radius: 0;
  transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 345' preserveAspectRatio='none'%3E%3Cpath d='M-20 315 C145 165 290 140 455 205 C620 270 785 278 960 178 C1130 80 1270 135 1460 15' fill='none' stroke='%23c7d1c6' stroke-width='1.3'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

@media(max-width:600px) {
  .specimen-concept::before {
    display: none;
  }
}

/* Global typography scale */
html {
  font-size: 106.25%;
}

body {
  font-size: 17px;
}

/* Visible type scale for components that use fixed pixel values */
#main .hero h1 {
  font-size: clamp(52px, 5.5vw, 88px);
}

#main .hero h2 {
  font-size: clamp(22px, 2.2vw, 30px);
}

#main .about-copy h2,
#main .collection-feature .collection-title h2,
#main .preservation-story .workshop h2,
#main .type-section h2,
#main .browse-heading h2,
#main .poster-importance>h2,
#main .medical-gallery-heading h2 {
  font-size: clamp(34px, 3.4vw, 50px);
  color: #263b32;
}

#main .about-copy p:not(.eyebrow),
#main .collection-feature .statistics p,
#main .preservation-story .workshop p,
#main .type-section li p {
  font-size: 18px;
}

#main .browse.herbarium-explore .browse-card-copy strong {
  font-size: 19px;
}

#main .browse.herbarium-explore .browse-card-copy small,
#main .medical-gallery-heading::after {
  font-size: 16px;
}

/* Shared content type size */
#main p:not(.eyebrow):not(.hero-tagline):not(.result-thai):not(.result-family):not(.specimen-information-value):not(.qbg-herbarium-stamp__number):not(.bookmark-quote),
#main .browse small:not(.browse-card-kicker),
#main figcaption,
#main .specimen-concept-item em {
  font-size: 18px !important;
}

/* Modern specimen labels */
#main .specimen-concept-item em {
  font-family: 'Anuphan', Tahoma, sans-serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: .015em;
  color: #435344;
}

/* Section 7 specimen badges */
#main .specimen-concept-item em {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 13px 0;
  background: #34403b;
  color: #fff;
  border-radius: 0;
  font-family: 'Anuphan', Tahoma, sans-serif;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 4px 10px rgba(36, 52, 43, .12);
}

#main .specimen-concept-item em span {
  display: block;
  white-space: nowrap;
}

#main .specimen-concept-item em b {
  display: block;
  margin: 6px 0 -4px;
  padding: 5px 9px;
  background: #168cc8;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
}

#main .specimen-concept-featured em {
  font-size: 18px !important;
}

#main .specimen-concept-item em span {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  background: none !important;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

/* Enlarge the third specimen circle */
#main .specimen-concept-three>span {
  width: clamp(230px, 20vw, 316px);
}

/* Neutral specimen badge typography */
#main .specimen-concept-item em {
  font-family: 'Anuphan', Tahoma, sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

#main .specimen-concept-item em b {
  font-style: normal;
  font-weight: 500;
}

/* Keep badge text free from circle image styles */
#main .specimen-concept-item em span {
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

#main .specimen-concept-three>span {
  width: clamp(220px, calc(20vw - 10px), 306px);
}

/* Wrap long scientific names inside badges */
#main .specimen-concept-small em {
  max-width: 220px;
  white-space: normal;
  text-align: left;
}

#main .specimen-concept-featured em {
  max-width: 260px;
  white-space: normal;
  text-align: left;
}

#main .specimen-concept-item em span {
  white-space: normal;
}

/* Softer botanical badge palette */
#main .specimen-concept-item em {
  background: #e8eee1;
  color: #34442c;
  border: 1px solid #c9d5c2;
  box-shadow: 0 4px 10px rgba(52, 68, 44, .10);
}

#main .specimen-concept-item em b {
  background: #6f8f52;
  color: #fff;
}

/* Refined neutral badge palette */
#main .specimen-concept-item em {
  background: #4b514d;
  color: #fff;
  border: 1px solid #aeb5ad;
  box-shadow: 0 4px 10px rgba(52, 68, 44, .10);
}

#main .specimen-concept-item em b {
  background: #758a65;
  color: #fff;
}

#main .specimen-concept-item em {
  background: #68716c;
  border-color: #c4cbc4;
}

#main .specimen-concept-item em b {
  background: #879b7c;
}

#main .specimen-concept-item em {
  border: 0;
  box-shadow: 0 8px 18px rgba(52, 68, 44, .20);
}

/* Section 7 final spacing and balance */
#main .herbarium-gallery-medical {
  margin-top: 46px;
  padding-top: 42px;
}

#main .specimen-concept-three>span {
  width: clamp(210px, 18vw, 280px);
}

#main .specimen-concept-small em {
  width: min(220px, 100%);
}

#main .specimen-concept-featured em {
  width: min(260px, 100%);
}

#main .specimen-concept::before {
  opacity: .55;
}

/* Section 2 follows the same responsive rhythm as Section 3. */
@media (max-width:1500px) {
  #main .collection-overview .eyebrow { font-size:9px !important; }
  #main .collection-overview h2 { font-size:clamp(29px,2.5vw,39px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(55px,4.3vw,63px) !important; }
  #main .collection-overview .collection-overview-label { font-size:17px !important; }
  #main .collection-overview p.collection-overview-description { font-size:14px !important; }
  #main .collection-overview p.collection-overview-date { font-size:11px !important; }
  #main .collection-overview .collection-counter-category { font-size:14px !important; }
  #main .collection-overview .collection-counter-thai { font-size:12px !important; }
  #main .collection-overview .collection-counter strong { font-size:33px !important; }
}

@media (max-width:1300px) {
  #main .collection-overview .eyebrow { font-size:8px !important; }
  #main .collection-overview h2 { font-size:clamp(28px,2.5vw,38px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(54px,4.3vw,62px) !important; }
  #main .collection-overview .collection-overview-label { font-size:16px !important; }
  #main .collection-overview p.collection-overview-description { font-size:13px !important; }
  #main .collection-overview p.collection-overview-date { font-size:10px !important; }
  #main .collection-overview .collection-counter-category { font-size:13px !important; }
  #main .collection-overview .collection-counter-thai { font-size:11px !important; }
  #main .collection-overview .collection-counter strong { font-size:32px !important; }
}

@media (max-width:1100px) {
  #main .collection-overview h2 { font-size:clamp(27px,2.5vw,37px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(53px,4.3vw,61px) !important; }
  #main .collection-overview .collection-overview-label { font-size:15px !important; }
  #main .collection-overview p.collection-overview-description { font-size:12px !important; }
  #main .collection-overview p.collection-overview-date { font-size:9px !important; }
  #main .collection-overview .collection-counter-category { font-size:12px !important; }
  #main .collection-overview .collection-counter-thai { font-size:10px !important; }
  #main .collection-overview .collection-counter strong { font-size:31px !important; }
}

@media (max-width:900px) {
  #main .collection-overview h2 { font-size:clamp(26px,2.5vw,36px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(52px,4.3vw,60px) !important; }
  #main .collection-overview .collection-overview-label { font-size:14px !important; }
  #main .collection-overview p.collection-overview-description { font-size:11px !important; }
  #main .collection-overview .collection-counter-category { font-size:11px !important; }
  #main .collection-overview .collection-counter-thai { font-size:9px !important; }
  #main .collection-overview .collection-counter strong { font-size:30px !important; }
}

@media (max-width:620px) {
  #main .collection-overview h2 { font-size:clamp(25px,2.5vw,35px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(51px,4.3vw,59px) !important; }
  #main .collection-overview .collection-overview-label { font-size:13px !important; }
  #main .collection-overview p.collection-overview-description { font-size:10px !important; }
  #main .collection-overview .collection-counter-category { font-size:10px !important; }
  #main .collection-overview .collection-counter strong { font-size:29px !important; }
}

@media (max-width:450px) {
  #main .collection-overview h2 { font-size:clamp(24px,2.5vw,34px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(50px,4.3vw,58px) !important; }
  #main .collection-overview .collection-overview-label { font-size:12px !important; }
  #main .collection-overview .collection-counter strong { font-size:28px !important; }
}

/* Match the Section 2 intro hierarchy to the equivalent panel in Section 3. */
#main .collection-overview .eyebrow { font-size:18px !important; }
#main .collection-overview h2 { font-size:clamp(46px,5vw,76px) !important; }
#main .collection-overview .collection-overview-number { font-size:clamp(48px,5vw,70px) !important; }
#main .collection-overview .collection-overview-label { font-size:23px !important; }
#main .collection-overview p.collection-overview-description { font-size:18px !important; }
#main .collection-overview p.collection-overview-date { font-size:12px !important; }

@media (max-width:1500px) {
  #main .collection-overview .eyebrow { font-size:17px !important; }
  #main .collection-overview h2 { font-size:clamp(41px,calc(4.15vw - 1px),63px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(47px,calc(5vw - 1px),69px) !important; }
  #main .collection-overview .collection-overview-label { font-size:22px !important; }
  #main .collection-overview p.collection-overview-description { font-size:17px !important; }
}

@media (max-width:1300px) {
  #main .collection-overview .eyebrow { font-size:16px !important; }
  #main .collection-overview h2 { font-size:clamp(40px,calc(4.15vw - 2px),62px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(46px,calc(5vw - 2px),68px) !important; }
  #main .collection-overview .collection-overview-label { font-size:21px !important; }
  #main .collection-overview p.collection-overview-description { font-size:16px !important; }
}

@media (max-width:1100px) {
  #main .collection-overview .eyebrow { font-size:15px !important; }
  #main .collection-overview h2 { font-size:clamp(39px,calc(4.15vw - 3px),61px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(45px,calc(5vw - 3px),67px) !important; }
  #main .collection-overview .collection-overview-label { font-size:20px !important; }
  #main .collection-overview p.collection-overview-description { font-size:15px !important; }
}

@media (max-width:900px) {
  #main .collection-overview .eyebrow { font-size:14px !important; }
  #main .collection-overview h2 { font-size:clamp(38px,calc(4.15vw - 4px),60px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(44px,calc(5vw - 4px),66px) !important; }
  #main .collection-overview .collection-overview-label { font-size:19px !important; }
  #main .collection-overview p.collection-overview-description { font-size:14px !important; }
}

@media (max-width:620px) {
  #main .collection-overview .eyebrow { font-size:13px !important; }
  #main .collection-overview h2 { font-size:clamp(37px,calc(4.15vw - 5px),59px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(43px,calc(5vw - 5px),65px) !important; }
  #main .collection-overview .collection-overview-label { font-size:18px !important; }
  #main .collection-overview p.collection-overview-description { font-size:13px !important; }
}

@media (max-width:450px) {
  #main .collection-overview .eyebrow { font-size:12px !important; }
  #main .collection-overview h2 { font-size:clamp(36px,calc(4.15vw - 6px),58px) !important; }
  #main .collection-overview .collection-overview-number { font-size:clamp(42px,calc(5vw - 6px),64px) !important; }
  #main .collection-overview .collection-overview-label { font-size:17px !important; }
  #main .collection-overview p.collection-overview-description { font-size:12px !important; }
}

/* Match the four collection categories to the six regional statistics. */
#main .collection-overview .collection-counter-category {
  font-size:24px !important;
  line-height:1.2 !important;
  letter-spacing:.06em !important;
}
#main .collection-overview .collection-counter-thai {
  font-size:13px !important;
  line-height:1.5 !important;
  letter-spacing:.025em !important;
  margin:4px 0 8px !important;
}
#main .collection-overview .collection-counter strong {
  font-size:32px !important;
  line-height:1.1 !important;
}

@media (min-width:1101px) and (max-width:1260px) {
  #main .collection-overview .collection-counter-category { font-size:21px !important; }
  #main .collection-overview .collection-counter-thai { font-size:12px !important; }
  #main .collection-overview .collection-counter strong { font-size:28px !important; }
}

@media (min-width:621px) and (max-width:1100px) {
  #main .collection-overview .collection-counter-category { font-size:19px !important; }
  #main .collection-overview .collection-counter-thai { font-size:12px !important; }
  #main .collection-overview .collection-counter strong { font-size:26px !important; }
}

@media (min-width:401px) and (max-width:620px) {
  #main .collection-overview .collection-counter-category { font-size:17px !important; }
  #main .collection-overview .collection-counter-thai { font-size:12px !important; }
  #main .collection-overview .collection-counter strong { font-size:23px !important; }
}

@media (min-width:401px) and (max-width:520px) {
  #main .collection-overview .collection-counter > img {
    width:70px;
    height:80px;
  }
  #main .collection-overview .collection-counter-category { font-size:16px !important; }
  #main .collection-overview .collection-counter-thai { font-size:11px !important; }
  #main .collection-overview .collection-counter strong { font-size:22px !important; }
}

@media (max-width:400px) {
  #main .collection-overview .collection-counter > img {
    width:70px;
    height:80px;
  }
  #main .collection-overview .collection-counter-category { font-size:15px !important; }
  #main .collection-overview .collection-counter-thai { font-size:11px !important; }
  #main .collection-overview .collection-counter strong { font-size:21px !important; }
}

@media (max-width:400px) {
  #main .collection-overview h2 { font-size:34px !important; }
  #main .collection-overview .collection-overview-number { font-size:40px !important; }
}

/* Section 02: give the four plant groups visual height comparable to the intro. */
@media (min-width:1633px) {
  #main .collection-overview .collection-overview-layout {
    align-items:stretch;
  }

  #main .collection-overview .collection-composition {
    align-self:stretch;
  }

  #main .collection-overview .collection-composition article {
    min-height:100%;
  }

  #main .collection-overview .collection-composition .collection-counter,
  #main .collection-overview .collection-composition article:nth-child(even) .collection-counter {
    grid-template-columns:clamp(112px,6.6vw,132px) minmax(0,1fr);
  }

  #main .collection-overview .collection-counter > img {
    width:clamp(112px,6.6vw,132px);
    height:clamp(145px,8vw,165px);
  }

  #main .collection-overview .collection-composition article {
    border-right:0;
  }

  #main .collection-overview .collection-composition article::before {
    content:"";
    display:block;
    top:10%;
    right:0;
    left:auto;
    width:0;
    height:80%;
    border-left:1px solid rgba(129,91,45,.38);
  }

  #main .collection-overview .collection-composition article:last-child::before {
    display:none;
  }
}

/* Tighten long transitions between editorial sections */
#main .collection-feature {
  min-height: 520px;
  padding-top: 28px;
  padding-bottom: 28px;
}

#main .herbarium-gallery-medical {
  margin-top: 28px;
}

/* Shared responsive content edges */
#main>.intro-story>#about,
#main>.collection-feature,
#main>.preservation-story>.workshop,
#main>.type-section,
#main>.poster-importance,
#main>.herbarium-gallery-medical>.medical-gallery-heading,
#main>.herbarium-gallery-medical>.specimen-concept {
  width: min(1440px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width:760px) {

  #main>.intro-story>#about,
  #main>.collection-feature,
  #main>.preservation-story>.workshop,
  #main>.type-section,
  #main>.poster-importance,
  #main>.herbarium-gallery-medical>.medical-gallery-heading,
  #main>.herbarium-gallery-medical>.specimen-concept {
    width: calc(100% - 32px);
  }
}

/* Final polish for specimen badges and curve */
#main .specimen-concept-item em {
  border-radius: 2px;
  box-shadow: 0 7px 16px rgba(52, 68, 44, .14);
}

#main .specimen-concept-item em b {
  border-radius: 1px;
}

#main .specimen-concept::before {
  opacity: .42;
}

/* Final desktop rhythm and tablet alignment */
@media (min-width:1101px) {
  #main>.intro-story>#about {
    min-height: 520px !important;
  }

  #main>.preservation-story {
    margin-top: 44px;
    margin-bottom: 44px;
  }

  #main>.preservation-story>.workshop {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

@media (min-width:761px) and (max-width:1100px) {

  #main>.intro-story>#about,
  #main>.collection-feature,
  #main>.preservation-story>.workshop,
  #main>.type-section,
  #main>.poster-importance,
  #main>.herbarium-gallery-medical>.medical-gallery-heading,
  #main>.herbarium-gallery-medical>.specimen-concept {
    width: calc(100% - 48px);
  }

  #main>.intro-story>#about {
    gap: 30px;
    min-height: 480px !important;
  }

  #main>.collection-feature {
    gap: 30px;
    min-height: 480px;
  }

  #main>.preservation-story>.workshop {
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* Final responsive and typography polish */
#main p:not(.eyebrow):not(.hero-tagline):not(.result-thai):not(.result-family):not(.specimen-information-value):not(.qbg-herbarium-stamp__number):not(.bookmark-quote),
#main .browse small:not(.browse-card-kicker) {
  line-height: 1.7;
}

#main .specimen-concept-item em {
  min-height: 76px;
  justify-content: flex-start;
}

@media (max-width:760px) {
  #main .herbarium-gallery-medical {
    margin-top: 20px;
    padding-top: 32px;
    padding-bottom: 56px;
  }

  #main .specimen-concept {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
    min-height: 0;
    padding: 24px 0 8px;
  }

  #main .specimen-concept-featured {
    grid-column: 1/-1;
  }

  #main .specimen-concept-small em,
  #main .specimen-concept-featured em {
    width: min(220px, 100%);
    max-width: 220px;
    font-size: 16px !important;
  }

  #main .specimen-concept-featured em {
    width: min(260px, 100%);
    max-width: 260px;
  }

  #main .specimen-concept-three>span {
    width: clamp(180px, 42vw, 230px);
  }

  #main .specimen-concept-featured>span {
    width: clamp(220px, 58vw, 300px);
  }
}

@media (max-width:600px) {
  #main .specimen-concept {
    grid-template-columns: 1fr;
    gap: 30px
  }

  #main .specimen-concept-three,
  #main .specimen-concept-featured {
    grid-column: auto
  }

  #main .specimen-concept-small em,
  #main .specimen-concept-featured em {
    width: min(240px, 100%);
    max-width: 240px
  }
}

/* Shared content container. Full-width section backgrounds remain outside it. */
.container {
  width: min(1704px, calc(100% - 96px));
  margin-left: auto;
  margin-right: auto;
}

#main .container {
  width: min(1704px, calc(100% - 96px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

#main .container>.collection-feature,
#main .container>.preservation-story>.workshop,
#main .container>.type-section,
#main .container>.poster-importance,
#main .container>.browse-heading,
#main .container>.browse {
  width: 100%;
  max-width: none;
}

@media (max-width: 991px) {

  .container,
  #main .container {
    width: calc(100% - 44px);
  }

}

@media (max-width: 760px) {

  .container,
  #main .container {
    width: calc(100% - 32px);
  }

}

/* Sections 6–7: use the complete shared-container width. */
#main .browse-heading,
#main .browse {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#main .specimen-concept {
  padding-left: 0;
  padding-right: 0;
}

#main .specimen-concept::before {
  left: 0;
  right: 0;
}
