:root {
  color-scheme:light;
  --pine:#123e38;
  --ink:#203e37;
  --muted:#546d62;
  --line:#cbd8ca;
  --field:#f4f6ed;
  --paper:#fffef8;
  --leaf:#8ed1a3;
  --type:"DM Sans","Microsoft YaHei","PingFang SC",system-ui,sans-serif;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--field);
  color:var(--ink);
  font:1rem/1.6 var(--type);
}

button,a {
  font:inherit;
}

button {
  color:inherit;
  cursor:pointer;
}

button:focus-visible,a:focus-visible {
  outline:3px solid #bc651c;
  outline-offset:4px;
}

.top {
  background:var(--pine);
  color:#fff;
}

.top-inner,main {
  width:min(1216px,calc(100% - 80px));
  margin:auto;
}

.top-inner {
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.identity {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:1.23rem;
  letter-spacing:.1em;
  font-weight:750;
}

.identity svg {
  height:37px;
  width:37px;
}

.identity small {
  font-size:.79rem;
  letter-spacing:.03em;
  font-weight:500;
  color:#c7dcce;
  padding-left:14px;
  border-left:1px solid #56796b;
}

.top-note {
  display:flex;
  align-items:center;
  gap:8px;
  color:#d4e7dc;
  font-size:.88rem;
}

.top-note svg {
  width:17px;
  height:17px;
}

main {
  padding:36px 0 46px;
}

.hero {
  display:grid;
  grid-template-columns:minmax(245px, .82fr) minmax(380px,1.65fr);
  min-height:325px;
  border:1px solid #b7cabc;
  border-radius:8px;
  overflow:hidden;
  background:var(--paper);
}

.intro {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:38px clamp(24px,3vw,46px);
  border-top:5px solid var(--pine);
}

.category {
  margin:0 0 10px;
  color:#446454;
  font:650 .78rem/1.3 "Courier Prime",Consolas,monospace;
  letter-spacing:.13em;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-family:"Noto Serif CJK SC","Songti SC",SimSun,serif;
  font-weight:750;
  letter-spacing:.01em;
  line-height:1.14;
  font-size:clamp(2.65rem,4.6vw,4.35rem);
}

.intro .description {
  margin:16px 0 25px;
  color:var(--muted);
  line-height:1.8;
  max-width:22em;
}

.open-feature {
  background:var(--pine);
  color:white;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:0;
  border-radius:4px;
  padding:10px 16px;
  font-weight:650;
}

.open-feature:hover {
  background:#225c4c;
}

.open-feature svg,.tag svg {
  width:17px;
  height:17px;
  flex:none;
}

.map {
  min-height:315px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:#d9ead7;
  isolation:isolate;
  border-left:1px solid #a9c3af;
}

.topo {
  position:absolute;
  inset:0;
  height:100%;
  width:100%;
  z-index:-1;
}

.map-label {
  align-self:flex-start;
  margin:16px 18px;
  padding:5px 10px;
  color:#133a32;
  background:rgba(255,255,244,.94);
  box-shadow:0 1px 4px #315c411a;
  font-size:.79rem;
  letter-spacing:.06em;
  border:1px solid #a0b8a3;
  border-radius:2px;
}

.north {
  position:absolute;
  right:17px;
  top:16px;
  width:34px;
  height:55px;
}

.content {
  margin-top:37px;
}

.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.section-head h2 {
  font-size:1.56rem;
  font-weight:720;
  letter-spacing:.04em;
}

.filters {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.filters button {
  border:1px solid transparent;
  background:transparent;
  color:#52695a;
  border-radius:4px;
  padding:6px 13px;
  font-size:.9rem;
}

.filters button[aria-pressed=true] {
  border-color:#b9cbbd;
  background:#e0eadc;
  color:#193f32;
  font-weight:650;
}

.filters button:hover {
  background:#e6ece1;
}

.cards {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  margin-top:17px;
}

.card {
  display:flex;
  flex-direction:column;
  text-align:left;
  padding:0;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:var(--paper);
  min-width:0;
  transition:box-shadow .2s,border-color .2s;
}

.card:hover {
  border-color:#779981;
  box-shadow:0 5px 16px #23403312;
}

.art {
  height:98px;
  width:100%;
  display:block;
}

.card-info {
  padding:14px 16px 16px;
}

.tag {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#577261;
  font-size:.78rem;
}

.tag svg {
  height:14px;
  width:14px;
}

.card h3 {
  margin-top:5px;
  font-size:1.12rem;
  line-height:1.46;
  letter-spacing:.025em;
}

.filename {
  display:block;
  font-family:"IBM Plex Mono",Consolas,monospace;
  font-size:.82rem;
  color:var(--muted);
  margin-top:3px;
}

.foot {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:31px;
  border-top:1px solid var(--line);
  padding-top:14px;
  color:#657a6a;
  font-size:.8rem;
}

dialog {
  width:min(640px,calc(100% - 28px));
  max-height:85vh;
  max-height:85dvh;
  overflow:auto;
  color:var(--ink);
  background:var(--paper);
  border:1px solid #abbfac;
  border-radius:8px;
  padding:0;
  box-shadow:0 16px 75px #112f3260;
}

dialog::backdrop {
  background:#10291dcc;
}

.dlg-head,.dlg-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:17px 21px;
}

.dlg-head {
  border-bottom:1px solid var(--line);
}

.dlg-head h2 {
  font-size:1.32rem;
}

.icon-btn {
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--field);
  padding:7px 9px;
  line-height:1;
  flex:none;
}

.icon-btn svg {
  width:18px;
  height:18px;
  display:block;
}

.preview {
  padding:20px;
  min-height:125px;
}

.preview pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:1rem/1.9 var(--type);
  margin:0;
}

.preview svg {
  display:block;
  width:100%;
  height:auto;
  border:1px solid var(--line);
  border-radius:3px;
}

.dlg-foot {
  border-top:1px solid var(--line);
  background:#f2f5e9;
}

.dlg-foot span {
  font:.82rem "IBM Plex Mono",Consolas,monospace;
  color:var(--muted);
}

.download {
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  background:var(--pine);
  color:white;
  padding:9px 15px;
  border-radius:4px;
  font-weight:650;
}

.download svg {
  width:16px;
  height:16px;
}

@media(max-width:890px) {
  .top-inner,main {
    width:calc(100% - 42px);
  }
  .cards {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hero {
    grid-template-columns:.87fr 1.25fr;
  }
  .intro {
    padding:27px 21px;
  }
  .map {
    min-height:280px;
  }
  .art {
    height:105px;
  }
}

@media(max-width:620px) {
  .top-inner,main {
    width:calc(100% - 28px);
  }
  .top-inner {
    height:57px;
  }
  .identity {
    gap:8px;
    font-size:1.05rem;
  }
  .identity svg {
    height:31px;
    width:31px;
  }
  .identity small {
    padding-left:10px;
  }
  .top-note {
    font-size:.75rem;
    gap:4px;
  }
  .top-note svg {
    display:none;
  }
  main {
    padding:16px 0 28px;
  }
  .hero {
    grid-template-columns:minmax(0,1fr);
  }
  .intro {
    display:block;
    padding:21px;
  }
  .intro h1 {
    font-size:2.7rem;
  }
  .intro .description {
    margin:9px 0 14px;
    max-width:none;
  }
  .category {
    margin-bottom:6px;
  }
  .open-feature {
    font-size:.89rem;
    padding:8px 12px;
  }
  .map {
    min-height:178px;
    border-left:0;
    border-top:1px solid #a9c3af;
  }
  .north {
    height:38px;
    top:8px;
    right:10px;
  }
  .map-label {
    margin:9px;
    font-size:.72rem;
  }
  .content {
    margin-top:23px;
  }
  .section-head {
    gap:8px;
  }
  .section-head h2 {
    font-size:1.35rem;
  }
  .filters {
    gap:2px;
  }
  .filters button {
    padding:4px 7px;
    font-size:.82rem;
  }
  .cards {
    gap:9px;
    margin-top:11px;
  }
  .art {
    height:73px;
  }
  .card-info {
    padding:10px;
  }
  .card h3 {
    font-size:.98rem;
  }
  .filename {
    font-size:.74rem;
  }
  .foot {
    margin-top:23px;
  }
  .dlg-head,.dlg-foot,.preview {
    padding:15px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .card {
    transition:none;
  }
}


.top-note a, .about-return { color: inherit; text-underline-offset: .24em; }
.top-note a { text-decoration: none; }
.top-note a:hover { text-decoration: underline; }
.topo, img.art { object-fit: cover; }
.file-title { display: block; margin-top: 3px; font-weight: 720; font-size: 1.13rem; }
.card-desc { display: block; min-height: 3.1em; margin: 6px 0 10px; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.doc-intro { margin: 17px 20px 0; color: var(--muted); }
.map-sheet { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; }
.note-heading { margin: .85em 0 .2em; font-size: 1.05rem; }
.note-copy { margin: 0 0 .65em; }
.preview ul { padding-left: 1.4rem; }
.observations { width: 100%; border-collapse: collapse; font-size: .93rem; }
.observations th, .observations td { padding: .62em; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.observations th { background: #e5ecdd; }
.dlg-foot { justify-content: flex-start; flex-wrap: wrap; gap: 9px; }
.dlg-foot #doc-type { flex: 1 1 155px; overflow-wrap: anywhere; }
.share { border: 1px solid #a4b9a7; background: #f8faef; color: var(--ink); border-radius: 4px; padding: 8px 12px; font-weight: 650; }
[data-share-status]:not(:empty) { flex: 1 1 100%; overflow-wrap: anywhere; }
.about-main { max-width: 980px; }
.about-page { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--pine); border-radius: 7px; padding: clamp(22px, 5vw, 58px); }
.about-page h1 { font-size: clamp(2.25rem, 5vw, 3.7rem); }
.about-lead { margin: 20px 0 26px; max-width: 52ch; color: var(--muted); font-size: 1.07rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.about-grid section { border-top: 1px solid var(--line); padding-top: 13px; }
.about-grid h2 { font-size: 1.16rem; margin-bottom: 6px; }
.about-grid p { color: var(--muted); }
.about-return { display: inline-block; margin-top: 24px; font-weight: 650; }
@media (max-width: 620px) {
 .file-title { font-size: 1rem; } .card-desc { font-size: .8rem; }
 .doc-intro { margin: 12px 15px 0; } .dlg-foot #doc-type { flex-basis: 100%; }
 .about-grid { grid-template-columns: 1fr; }
}
