@charset "utf-8";
:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6673;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #d9d6ce;
  --accent: #8f2f2b;
  --accent-2: #1f6f78;
  --accent-3: #8a6f28;
  --header: #17313a;
  --shadow: 0 18px 46px rgba(23, 49, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", serif;
  line-height: 1.85;
  letter-spacing: 0;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--header);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--header);
  border-radius: 8px;
  font-size: 1.35rem;
}

.brand-text {
  font-size: 1.12rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--header);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  background: #e9f1ef;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--header);
  font: inherit;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: clamp(420px, 58vh, 680px);
  padding: clamp(30px, 5vw, 64px) clamp(18px, 6vw, 80px) clamp(30px, 5vw, 54px);
  background: #f3eadc;
  border-bottom: 1px solid var(--line);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(251, 250, 247, 0.95) 0%, rgba(251, 250, 247, 0.76) 44%, rgba(251, 250, 247, 0.12) 100%);
}

.banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--header);
  line-height: 1.25;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  font-weight: 900;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

h3 {
  margin-top: 1.8em;
}

.hero-copy p {
  max-width: 66ch;
  font-size: 1.08rem;
}

.hero-title-image {
  width: min(780px, 100%);
  margin-bottom: 20px;
}

.hero-title-image img {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.62)) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.24));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--header);
  background: var(--surface);
  text-decoration: none;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.notice-band {
  padding: 18px clamp(18px, 6vw, 80px);
  color: #27363a;
  background: #e7eee9;
  border-block: 1px solid #cbd9d1;
}

.notice-band p {
  max-width: 1040px;
  margin: 0 auto;
}

.page-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 0;
}

.section-heading {
  margin-bottom: 26px;
}

.article-group {
  margin-top: 34px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.article-card {
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.article-card:hover {
  border-color: #91b6b8;
  box-shadow: 0 12px 28px rgba(31, 111, 120, 0.1);
}

.article-card span {
  color: var(--accent-3);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.article-card strong {
  color: var(--header);
  font-size: 1.18rem;
  line-height: 1.35;
}

.article-card small {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 42px;
  align-items: start;
}

.wide-shell {
  grid-template-columns: minmax(0, 1fr);
}

.reference-shell {
  width: min(1680px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
}

.site-masthead {
  position: relative;
  overflow: hidden;
  min-height: clamp(180px, 28vw, 300px);
  display: flex;
  align-items: flex-end;
  padding: 36px clamp(18px, 6vw, 80px);
  background: #17313a;
  border-bottom: 1px solid var(--line);
}

.site-masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(23, 49, 58, 0.86), rgba(23, 49, 58, 0.56) 42%, rgba(23, 49, 58, 0.05));
}

.masthead-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-masthead p {
  margin: 0 0 6px;
  color: #f4dcc4;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.site-masthead h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.6rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.site-masthead span {
  display: inline-block;
  margin-top: 12px;
  color: #f7efe4;
}

.article {
  min-width: 0;
  padding: clamp(22px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(23, 49, 58, 0.07);
}

.article.narrow {
  max-width: 860px;
}

.article h1 {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
}

.lede {
  margin: -8px 0 34px;
  color: var(--muted);
  font-size: 1.08rem;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.article-body {
  font-size: 1.08rem;
}

.article-body p {
  margin: 1.05em 0;
}

.article-body figure {
  margin: 24px 0;
}

.article-body figure img {
  margin: 0 auto;
  border: 1px solid var(--line);
}

.article-body ul,
.article-body ol {
  padding-inline-start: 1.5em;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: start;
  margin: 8px 0 32px;
}

.profile-photo {
  margin: 0;
}

.profile-photo img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.profile-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-facts div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  background: #f8f4ec;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-facts dt {
  color: var(--accent);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 800;
}

.profile-facts dd {
  margin: 0;
}

.profile-section {
  margin-top: 34px;
}

.profile-section h2 {
  padding-bottom: 8px;
  border-bottom: 2px solid #d8c8a4;
}

.clean-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
  counter-reset: profile-list;
}

.clean-list li {
  counter-increment: profile-list;
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.clean-list li::before {
  content: counter(profile-list);
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  color: #fff;
  background: var(--header);
  border-radius: 999px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  color: var(--header);
  background: #e8efe9;
  border: 1px solid #cbd9d1;
  border-radius: 999px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
}

.map-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.map-gallery figure {
  margin: 0;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.map-gallery img {
  width: 100%;
  border: 0;
}

.map-gallery a {
  display: block;
  cursor: zoom-in;
}

.map-gallery figcaption {
  padding: 12px 14px;
  color: var(--header);
  background: #e8efe9;
  border-top: 1px solid var(--line);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 800;
  text-align: center;
}

.source-section {
  margin: 0 0 42px;
}

.source-section > h2 {
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #d8c8a4;
}

.source-section .data-table {
  font-size: 0.86rem;
  line-height: 1.55;
}

.source-section .data-table th,
.source-section .data-table td {
  padding: 7px 8px;
}

.source-lineage .data-table {
  font-size: 1.08rem;
  line-height: 1.65;
}

.source-lineage .data-table th {
  padding: 6px 8px;
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: nowrap;
}

.source-lineage .data-table td {
  padding: 8px 10px;
  text-align: center;
}

.source-research .data-table {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
}

.source-research .data-table-wide {
  min-width: 100%;
}

.source-research .data-table-wide th,
.source-research .data-table-wide td {
  min-width: 0;
  width: auto;
  text-align: center;
  white-space: nowrap;
}

.source-research .data-table tr:first-child > th,
.source-research .data-table tr:first-child > td,
.source-research .data-table tr > th:first-child,
.source-research .data-table tr > td:first-child {
  color: var(--header);
  background: #efe4cf;
  text-align: center;
  font-weight: 800;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: rgba(11, 23, 27, 0.88);
}

.image-lightbox[hidden] {
  display: none;
}

.lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 800;
}

.lightbox-close {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-figure {
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  background: #fff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);
}

body.lightbox-open {
  overflow: hidden;
}

.lineage-tree-section {
  margin: 34px 0 42px;
  padding-top: 4px;
}

.lineage-tree-section > h2 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d8c8a4;
}

.lineage-tree-wrap {
  overflow-x: auto;
  padding: 8px 2px 14px;
}

.lineage-tree {
  display: grid;
  gap: 9px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lineage-tree .lineage-tree {
  margin-top: 9px;
  margin-left: 28px;
  padding-left: 22px;
  border-left: 2px solid #d2c19c;
}

.lineage-tree li {
  position: relative;
}

.lineage-tree .lineage-tree > li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -22px;
  width: 22px;
  border-top: 2px solid #d2c19c;
}

.tree-node {
  display: inline-grid;
  grid-template-columns: auto minmax(8em, max-content);
  align-items: stretch;
  min-height: 44px;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid #cfc6b5;
  border-radius: 8px;
}

.tree-node small {
  display: grid;
  place-items: center;
  min-width: 5.8em;
  padding: 6px 9px;
  color: var(--header);
  background: #e8efe9;
  border-right: 1px solid #cfc6b5;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.tree-node.generation-0 small {
  background: #e8efe9;
}

.tree-node.generation-1 small {
  background: #edf0dc;
}

.tree-node.generation-2 small {
  background: #f1ead8;
}

.tree-node.generation-3 small {
  background: #e9edf2;
}

.tree-node.generation-4 small {
  background: #f3e8df;
}

.tree-node.generation-5 small {
  background: #e6efed;
}

.tree-node > .tree-content {
  display: block;
  align-self: center;
  justify-self: center;
  padding: 7px 11px;
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.nowrap-run {
  display: inline-block;
  white-space: nowrap;
}

.tree-node p {
  margin: 0;
}

.susan-location-table {
  table-layout: auto;
}

.susan-location-table th:first-child {
  width: 7.5em;
  white-space: nowrap;
}

.susan-location-table td:nth-child(2),
.susan-location-table th:nth-child(2) {
  width: auto;
}

.chumu-generation-scroll {
  background: #fffdfa;
}

.chumu-generation-table {
  table-layout: fixed;
}

.chumu-generation-table tr:nth-child(odd) th {
  color: #fdf8ed;
  background: #526d62;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.chumu-generation-table tr:nth-child(even) th {
  color: var(--ink);
  background: #fff8e8;
  font-family: "Noto Serif TC", "Source Han Serif TC", PMingLiU, MingLiU, serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.chumu-branch-table {
  table-layout: fixed;
  min-width: 760px;
}

.chumu-branch-name {
  width: 8.5em;
}

.chumu-branch-text {
  width: auto;
}

.chumu-branch-table th {
  text-align: left;
}

.chumu-branch-table tr:first-child th {
  color: #fdf8ed;
  background: #526d62;
  text-align: center;
}

.chumu-branch-table th:first-child {
  color: var(--header);
  background: #e8efe9;
  white-space: nowrap;
}

.chumu-branch-table th:nth-child(2) {
  color: var(--ink);
  background: #fffdfa;
  font-weight: 650;
  text-align: left;
}

.search-shell {
  width: min(1320px, calc(100% - 36px));
}

.search-panel {
  display: grid;
  gap: 22px;
}

.search-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #f8f4ec;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.search-mode legend {
  width: 100%;
  color: var(--accent);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 800;
}

.search-mode label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.search-fields {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.search-fields label {
  display: grid;
  gap: 6px;
  color: var(--header);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 800;
}

.search-fields input,
.search-fields select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8c2b6;
  border-radius: 8px;
  font: inherit;
}

.search-meta,
.empty-state {
  color: var(--muted);
}

.result-section,
.detail-section {
  display: grid;
  gap: 16px;
}

.result-section h2,
.detail-section h2 {
  margin: 0;
}

.search-result-table th,
.search-result-table td {
  text-align: center;
  vertical-align: middle;
}

.table-action {
  min-width: 2.4em;
  min-height: 2.1em;
  color: #fff;
  background: var(--header);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.table-action:hover {
  background: var(--accent-2);
}

.detail-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.detail-heading p {
  margin: 0;
}

.search-tree-section {
  display: grid;
  gap: 14px;
}

.search-tree-section h3 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #d8c8a4;
}

.search-tree {
  display: grid;
  gap: 0;
  overflow-x: auto;
  padding: 8px 2px 14px;
}

.search-tree-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px minmax(220px, 1fr);
  align-items: center;
  min-width: 760px;
  position: relative;
}

.search-tree-row + .search-tree-row {
  padding-top: 18px;
}

.search-tree-row + .search-tree-row .tree-direct::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  height: 18px;
  border-left: 2px solid #b88b44;
}

.tree-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tree-siblings.left {
  justify-content: flex-end;
}

.tree-siblings.right {
  justify-content: flex-start;
}

.tree-direct {
  position: relative;
  display: grid;
  gap: 5px;
  justify-items: center;
  z-index: 1;
}

.tree-direct > small {
  color: var(--accent);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.generation-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
}

.generation-name {
  color: var(--header);
  font-size: 1rem;
}

.generation-number {
  color: var(--accent);
  font-size: 0.78rem;
}

.search-tree-node {
  display: inline-grid;
  grid-template-columns: auto minmax(3.5em, max-content);
  align-items: stretch;
  min-height: 42px;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid #d5cbb9;
  border-radius: 8px;
  white-space: nowrap;
}

.search-tree-node small {
  display: grid;
  place-items: center;
  padding: 5px 7px;
  color: var(--header);
  background: #e8efe9;
  border-right: 1px solid #d5cbb9;
  font-size: 0.76rem;
  font-weight: 800;
}

.search-tree-node strong {
  display: grid;
  place-items: center;
  padding: 6px 10px;
  color: var(--header);
  font-weight: 800;
}

.search-tree-node.direct {
  min-width: 128px;
  border-color: #b88b44;
  background: #fbf0d9;
  box-shadow: 0 0 0 2px rgba(184, 139, 68, 0.18);
}

.search-tree-node.direct small {
  background: #efdcae;
}

.search-tree-node.no-label {
  grid-template-columns: minmax(4.5em, 1fr);
}

.search-tree-node.no-label strong {
  justify-self: stretch;
  min-width: 4.5em;
  padding: 8px 14px;
  text-align: center;
}

.search-tree-node.missing {
  display: inline-grid;
  place-items: center;
  padding: 8px 12px;
  color: var(--muted);
  background: #f6f1e8;
}

.bookshelf-scroll {
  max-height: 72vh;
}

.bookshelf-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  font-size: 0.86rem;
  line-height: 1.45;
}

.bookshelf-table th,
.bookshelf-table td {
  padding: 7px 8px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.bookshelf-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.bookshelf-table th:nth-child(3),
.bookshelf-table td:nth-child(3) {
  min-width: 16em;
}

.bookshelf-table th:nth-child(6),
.bookshelf-table td:nth-child(6),
.bookshelf-table th:nth-child(11),
.bookshelf-table td:nth-child(11),
.bookshelf-table th:nth-child(12),
.bookshelf-table td:nth-child(12) {
  min-width: 12em;
}

.place-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.place-list li {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.place-list strong {
  color: var(--header);
}

.place-list span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.table-scroll {
  width: 100%;
  margin: 24px 0;
  display: block;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table-wide {
  min-width: 760px;
}

.data-table-fit {
  min-width: 0;
  table-layout: fixed;
}

.data-table caption {
  padding: 12px 14px;
  color: var(--header);
  font-weight: 800;
  text-align: left;
  background: #f6f1e8;
}

.data-table th,
.data-table td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.data-table-wide th,
.data-table-wide td {
  min-width: 5.8mm;
}

.data-table th {
  color: var(--header);
  background: #e8efe9;
  text-align: center;
  font-weight: 800;
}

.data-table td {
  background: #fffdfa;
  text-align: left;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table tbody tr:nth-child(even) {
  background: transparent;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.link-card a {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 12px 14px;
  color: var(--header);
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.link-card a:hover {
  border-color: #91b6b8;
  background: #eef5f3;
}

.article-aside {
  position: sticky;
  top: 96px;
  padding: 18px;
  background: #f2efe7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.aside-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 800;
}

.article-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-aside li + li {
  border-top: 1px solid var(--line);
}

.article-aside a {
  display: block;
  padding: 10px 0;
  color: var(--header);
  text-decoration: none;
}

.decision-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.decision-list section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5ef;
}

.decision-list h2 {
  font-size: 1.2rem;
}

.field-list {
  color: var(--accent-3);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
}

.site-footer {
  padding: 28px clamp(18px, 6vw, 80px);
  color: #dbe5e4;
  background: var(--header);
}

.site-footer p {
  max-width: 1040px;
  margin: 6px auto;
}

.footer-brand {
  font-family: "Noto Serif TC", "Source Han Serif TC", PMingLiU, MingLiU, serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-brand span {
  display: inline-block;
  margin-left: 0.55em;
  color: #d7b978;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    padding-top: 12px;
  }

  .site-header.nav-open {
    flex-wrap: wrap;
  }

  .site-header.nav-open .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    min-height: 540px;
  }

  .home-hero::after {
    background: linear-gradient(180deg, rgba(251, 250, 247, 0.96), rgba(251, 250, 247, 0.78) 52%, rgba(251, 250, 247, 0.34));
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .map-gallery {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .search-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 1rem;
  }

  .site-header.nav-open .site-nav {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 20px 16px;
  }
}
