#herb-bases { border-top:1px solid #9eb09e; padding-block:clamp(28px,4vw,54px); }
.herb-heading { max-width:65ch; }
.herb-heading h3 { margin:0 0 .55rem; font-size:clamp(1.75rem,3.15vw,3.2rem); letter-spacing:-.045em; }
.herb-heading p, .herb-supply p { color:var(--muted); }
.herb-stage { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); margin:1.65rem 0 1.1rem; background:#f8f8f1; border:1px solid #b7c2ae; }
.herb-atlas-figure { min-width:0; margin:0; align-self:center; }
.herb-map { position:relative; isolation:isolate; }
.herb-map > img { width:100%; height:auto; display:block; }
.herb-map svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.herb-mark { fill:#214c36; stroke:#23432d; stroke-width:1.5; }
.herb-mark path { fill:none; }
.herb-mark circle { stroke:#fcfcf3; stroke-width:2; }
.herb-mark.ordinary { fill:#966338; stroke:#694327; }
.herb-mark.selected circle { stroke-width:4; r:8px; }
.herb-mark.selected path { stroke-width:3; }
.herb-province { fill:#95603120; stroke:#795637; stroke-width:1.5; stroke-dasharray:3 3; }
.herb-map-link { position:absolute; transform:translate(-50%,-50%); padding:.11rem .34rem; line-height:1.26; font-weight:640; font-size:clamp(.69rem,.95vw,.89rem); border:1px solid #49644a; background:#f9fbf2f5; color:#244832; border-radius:3px; white-space:nowrap; }
.herb-map-link.ordinary { color:#674322; border-style:dashed; border-color:#806648; }
.herb-map-link[aria-current=true], .herb-map-link:hover { background:#224d3b; color:white; z-index:1; border-color:#f6f7ed; }
.herb-map-link::after { content:''; position:absolute; inset:-4px; }
.herb-legend { display:flex; flex-wrap:wrap; gap:.2rem 1rem; align-items:center; padding:.65rem .9rem; color:#435c49; font-size:.78rem; }
.herb-legend > span { display:inline-flex; gap:.4rem; align-items:center; }
.herb-legend > span::before { content:''; width:.55rem; height:.55rem; background:#244d39; border-radius:50%; }
.herb-legend .legend-base::before { background:#966338; }
.herb-legend small { flex-basis:100%; font-size:.72rem; }
.herb-profiles { border-inline-start:1px solid #b7c2ae; padding:clamp(12px,1.8vw,27px); display:grid; align-items:center; }
.herb-panel { min-width:0; scroll-margin-top:8px; }
.herb-panel[hidden] { display:none; }
.herb-panel:focus { outline:none; }
.herb-panel:focus-visible { outline:2px solid #a46131; outline-offset:4px; }
.herb-panel figure { margin:0; }
.herb-panel figure img { display:block; width:100%; height:auto; aspect-ratio:3 / 2; object-fit:contain; background:#f2ede3; }
.herb-panel figcaption { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:0 .4rem; margin:.35rem 0 1.05rem; color:#526052; font-size:.76rem; line-height:1.45; }
.herb-caption-type { font-size:.69rem; }
.herb-profile h4 { margin:.15rem 0 .45rem; font-size:clamp(1.35rem,2.15vw,2.2rem); line-height:1.22; font-weight:570; letter-spacing:-.038em; }
.herb-profile p { margin:.15rem 0; font-size:.98rem; }
.herb-location { font-weight:620; }
.herb-profile .herb-proof { color:#546457; font-size:.81rem; }
.herb-directory { margin:1.4rem 0; }
.herb-directory h4, .herb-supply h4 { margin:0 0 .7rem; font-size:1.1rem; font-weight:620; }
.herb-directory ul { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.6rem; }
.herb-tile { display:flex; gap:.65rem; height:100%; min-height:61px; align-items:center; border:1px solid #bfccba; background:#f7f7ef; padding:.32rem; }
.herb-tile:hover, .herb-tile[aria-current=true] { background:#e4ebdb; border-color:#47684a; }
.herb-tile img { width:clamp(42px,4.5vw,68px); height:clamp(42px,4.5vw,68px); object-fit:cover; flex:none; }
.herb-tile span { min-width:0; }
.herb-tile b,.herb-tile small { display:block; line-height:1.25; overflow-wrap:anywhere; }
.herb-tile b { font-size:.94rem; font-weight:640; }
.herb-tile small { font-size:.75rem; color:#526556; margin-top:.25rem; }
.herb-credits { font-size:.81rem; color:#506352; margin:1.5rem 0; }
.herb-credits summary { cursor:pointer; padding:.6rem 0; }
.herb-credits ul { padding-left:1.3em; }
.herb-credits li { margin-bottom:.7rem; }
.herb-credits small { font-size:.78rem; display:block; overflow-wrap:anywhere; }
.herb-supply { padding:clamp(20px,2.6vw,38px); margin-top:1rem; background:#e3e9dc; }
.herb-supply h4 { font-size:clamp(1.5rem,2.5vw,2.35rem); margin-bottom:.4rem; }
.herb-supply p { margin-bottom:.7rem; }
@media(max-width:1050px) {
  .herb-stage { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
  .herb-directory ul { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:720px) {
  .herb-stage { grid-template-columns:1fr; }
  .herb-profiles { border:0; border-top:1px solid #b7c2ae; padding:14px; }
  .herb-directory ul { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; }
}
@media(max-width:1120px) {
  .herb-map-link span { display:none; }
  .herb-map-link::before { content:attr(data-key); }
  .herb-map-link { font-size:.77rem; min-width:1.5rem; text-align:center; padding:2px; border-radius:10px; }
  .herb-map-link[aria-current=true] { outline:2px solid #fffdf4; }
  .herb-tile b::before { content:attr(data-key) ' · '; color:#526556; font-size:.73rem; }
}

.export-links { display:flex; align-items:center; gap:.6rem 1.35rem; flex-wrap:wrap; margin:1.05rem 0; }
.export-links .text-link { margin:0; }
