:root {
  color-scheme: light;
  --green: #12583f;
  --deep: #103c32;
  --gold: #a77925;
  --paper: #f8f7f2;
  --ink: #24332e;
  --muted: #64736b;
  --line: #e5ebe6;
  font-family: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei",
    sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
#main-content {
  flex: 1 0 auto;
}
a {
  color: var(--green);
  text-underline-offset: .2em;
}
button {
  font: inherit;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.site-icon {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  top: -8rem;
  left: 1rem;
  z-index: 10;
  padding: .8rem;
  background: #fff;
}
.skip-link:focus {
  top: .5rem;
}
.site-header {
  position: relative;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px #17372b0d;
}
.header-inner {
  max-width: 1264px;
  margin: auto;
  min-height: 80px;
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.brand-copy {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: .06em;
  line-height: 1.5;
}
.brand-copy small,
.footer-brand small {
  display: block;
  font-size: .68rem;
  letter-spacing: .22em;
  margin-top: .25rem;
}
/* 主選單可由後台設定（最多 8 項、每項 10 字）；放不下一列時換行並靠右，
   不擠壓 Logo 與捐款按鈕，也不超出畫面。 */
.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 1.6rem;
  row-gap: 0;
  align-items: center;
  min-width: 0;
  margin-right: .5rem;
}
.desktop-nav a {
  font-size: .9rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: .5rem 0;
}
.desktop-nav a:hover {
  color: var(--gold);
}
.donate-link,
.primary-link {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  background: var(--green);
  color: #fff;
  padding: .65rem 1.25rem;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
  border: 1px solid #0b4933;
}
.donate-link:hover,
.primary-link:hover {
  background: var(--deep);
}
.menu-toggle {
  display: none;
  border: 0;
  padding: .7rem;
  color: var(--deep);
  background: transparent;
}
.menu-toggle .site-icon {
  width: 25px;
  height: 25px;
}
.mobile-menu {
  width: min(90vw, 420px);
  max-height: calc(100dvh - 3rem);
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 70px #103b3130;
}
.mobile-menu::backdrop {
  background: #142e2a80;
}
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.menu-header h2 {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}
.menu-close {
  padding: .7rem;
  border: 0;
  color: var(--ink);
  background: transparent;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu nav a {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: .9rem .5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 650;
  color: var(--ink);
}
.mobile-menu nav .donate-link {
  margin-top: 1.25rem;
  justify-content: center;
  color: #fff;
  background: var(--gold);
  border-color: #93681f;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 400px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: radial-gradient(ellipse at 70% 25%, #fff9df 0, transparent 55%),
    linear-gradient(120deg, #e2eee7, #f6f3e3 55%, #c8dbcd);
}
.hero-slide {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  width: 100%;
  min-height: 440px;
  display: grid;
  align-items: center;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f8f7edf5 0, #f8f7edeb 55%, #f8f7ed00 90%);
  z-index: -1;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-inner {
  width: min(100%, 1264px);
  margin: auto;
  padding: 4rem 2rem 4rem 7.5rem;
  position: relative;
}
.eyebrow {
  color: var(--green);
  letter-spacing: .15em;
  font-size: .95rem;
  font-weight: 650;
  margin: 0 0 1rem;
}
h1 {
  color: var(--green);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.45;
  letter-spacing: .08em;
  margin: .5rem 0 1rem;
}
.hero h1 {
  font-family: "Kaiti TC", "STKaiti", "BiauKai", "Songti TC", serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 0 #fffbea, 0 0 18px #fff8e2;
}
.hero-caption {
  max-width: 34rem;
  color: #294a39;
  line-height: 1.9;
  margin-top: 1rem;
}
.hero-caption p {
  margin: 0 0 .6rem;
  white-space: pre-line;
}
.hero-caption a {
  display: inline-block;
  font-weight: 650;
}
.page-container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 2rem 3rem;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: .6rem;
}
.quick-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 136px;
  text-decoration: none;
  border-radius: .75rem;
  padding: 1.25rem .5rem;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #00000008;
  box-shadow: 0 3px 12px #17372b0d;
  transition: transform .18s, box-shadow .18s;
}
.quick-links .site-icon {
  width: 44px;
  height: 44px;
  color: var(--green);
}
.quick-links .icon-activity {
  background: #faf6ee;
}
.quick-links .icon-activity .site-icon {
  color: var(--gold);
}
.quick-links .icon-donate {
  background: #fbf2f2;
}
.quick-links .icon-donate .site-icon {
  color: #c95161;
}
.quick-links .icon-kitchen,
.quick-links .icon-about {
  background: #eef7f2;
}
.quick-links .icon-health,
.quick-links .icon-tv {
  background: #edf7f8;
}
.quick-links .icon-health .site-icon {
  color: #126f70;
}
.quick-links .icon-location {
  background: #f1f5f2;
}
.quick-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #183c321c;
  border-color: var(--line);
}
.content-section {
  padding: 2rem 0;
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-heading h2 {
  font-size: 1.4rem;
  color: var(--deep);
  margin: 0;
  letter-spacing: .04em;
}
.section-heading a {
  font-size: .85rem;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.section-heading h2 a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: normal;
}
.section-heading h2 a:hover {
  text-decoration: underline;
}
.section-heading .site-icon {
  width: 1rem;
}
.empty-state {
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  background: linear-gradient(120deg, #f8faf7, #f5f6f0);
  text-align: center;
  font-size: .95rem;
  margin: 1rem 0;
}
.home-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}
.home-columns > :last-child {
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}
.site-footer {
  color: #fff;
  background: var(--deep);
  border-top: 4px solid var(--gold);
}
.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 2.25rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  font-weight: 650;
}
.footer-brand .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ffffff26;
}
.footer-brand small {
  color: #b8cfc2;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: .85rem;
}
.site-footer a {
  color: #eaf1ec;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer nav .site-icon {
  display: none;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0 1.5rem;
}
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  margin: 1rem 0 1.5rem;
}
.list-toolbar .filters {
  margin: 0;
}
.list-toolbar .primary-link {
  margin-left: auto;
}
.filter-link {
  display: inline-block;
  padding: .4rem 1rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  text-decoration: none;
  color: var(--ink);
  background: #f3f5f3;
  font-size: .88rem;
}
.filter-link:hover {
  border-color: #c9d9cd;
  color: var(--green);
}
.filter-link.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 1.5rem 0 0;
}
.content-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .65rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px #17372b08;
}
.card-body {
  padding: 1.2rem;
  overflow-wrap: anywhere;
}
.card-body h2,
.card-body h3 {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 .75rem;
}
.card-body h2 a,
.card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--green);
  text-decoration: underline;
}
.card-body p {
  font-size: .85rem;
  color: var(--muted);
  margin: .3rem 0;
}
.card-body > p:last-child {
  margin-top: .75rem;
  line-height: 1.8;
}
.card-badge {
  display: inline-block;
  padding: .15rem .65rem;
  color: #fff;
  background: var(--green);
  border-radius: .25rem;
  font-size: .75rem;
  margin-bottom: .7rem;
}
.content-cover {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* 封面框選範圍：後台在 16:9 框內選定的區域（格式見 src/shared/crop.ts）。
   object-position 決定框的位置，再以同一點為中心放大，框外部分由容器裁掉。
   只切換預先定義的 class，不使用 style 屬性。 */
.content-cover {
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform-origin: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--crop-z, 1));
}
.crop-x0 {
  --crop-x: 0%;
}
.crop-x5 {
  --crop-x: 5%;
}
.crop-x10 {
  --crop-x: 10%;
}
.crop-x15 {
  --crop-x: 15%;
}
.crop-x20 {
  --crop-x: 20%;
}
.crop-x25 {
  --crop-x: 25%;
}
.crop-x30 {
  --crop-x: 30%;
}
.crop-x35 {
  --crop-x: 35%;
}
.crop-x40 {
  --crop-x: 40%;
}
.crop-x45 {
  --crop-x: 45%;
}
.crop-x50 {
  --crop-x: 50%;
}
.crop-x55 {
  --crop-x: 55%;
}
.crop-x60 {
  --crop-x: 60%;
}
.crop-x65 {
  --crop-x: 65%;
}
.crop-x70 {
  --crop-x: 70%;
}
.crop-x75 {
  --crop-x: 75%;
}
.crop-x80 {
  --crop-x: 80%;
}
.crop-x85 {
  --crop-x: 85%;
}
.crop-x90 {
  --crop-x: 90%;
}
.crop-x95 {
  --crop-x: 95%;
}
.crop-x100 {
  --crop-x: 100%;
}
.crop-y0 {
  --crop-y: 0%;
}
.crop-y5 {
  --crop-y: 5%;
}
.crop-y10 {
  --crop-y: 10%;
}
.crop-y15 {
  --crop-y: 15%;
}
.crop-y20 {
  --crop-y: 20%;
}
.crop-y25 {
  --crop-y: 25%;
}
.crop-y30 {
  --crop-y: 30%;
}
.crop-y35 {
  --crop-y: 35%;
}
.crop-y40 {
  --crop-y: 40%;
}
.crop-y45 {
  --crop-y: 45%;
}
.crop-y50 {
  --crop-y: 50%;
}
.crop-y55 {
  --crop-y: 55%;
}
.crop-y60 {
  --crop-y: 60%;
}
.crop-y65 {
  --crop-y: 65%;
}
.crop-y70 {
  --crop-y: 70%;
}
.crop-y75 {
  --crop-y: 75%;
}
.crop-y80 {
  --crop-y: 80%;
}
.crop-y85 {
  --crop-y: 85%;
}
.crop-y90 {
  --crop-y: 90%;
}
.crop-y95 {
  --crop-y: 95%;
}
.crop-y100 {
  --crop-y: 100%;
}
.crop-z100 {
  --crop-z: 1;
}
.crop-z125 {
  --crop-z: 1.25;
}
.crop-z150 {
  --crop-z: 1.5;
}
.crop-z175 {
  --crop-z: 1.75;
}
.crop-z200 {
  --crop-z: 2;
}
.crop-z225 {
  --crop-z: 2.25;
}
.crop-z250 {
  --crop-z: 2.5;
}
.crop-z275 {
  --crop-z: 2.75;
}
.crop-z300 {
  --crop-z: 3;
}
.cover-frame {
  overflow: hidden;
}
.detail-page .cover-frame {
  border-radius: .7rem;
  margin: 1.5rem 0;
}
.detail-page .cover-frame .content-cover {
  margin: 0;
  border-radius: 0;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  margin: 2.5rem 0 0;
  font-size: .9rem;
}
.pagination a {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: .5rem 1rem;
  border-radius: .4rem;
}
.detail-page {
  max-width: 860px;
  overflow-wrap: anywhere;
}
.detail-page > a {
  font-size: .9rem;
  text-decoration: none;
}
.detail-page h1 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: .02em;
  margin-top: 1.5rem;
}
.detail-page .content-cover {
  border-radius: .7rem;
  margin: 1.5rem 0;
}
.detail-metadata {
  background: #f2f5f1;
  padding: 1rem 1.5rem;
  border-radius: .6rem;
  border-left: 3px solid var(--gold);
  font-size: .9rem;
}
.detail-metadata p {
  margin: .5rem 0;
}
.summary {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--muted);
  margin: 1.75rem 0;
}
.article-body {
  line-height: 1.95;
}
.article-body h2 {
  font-size: 1.4rem;
  color: var(--green);
  margin-top: 2.25rem;
}
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  /* 滿版寬度、保留自然比例，不限制高度：直式海報不縮小，文字可讀；不裁切、不變形。
     原圖比內文欄窄時不放大。 */
  width: auto;
  border-radius: .6rem;
}
.article-body figure {
  margin: 2rem 0;
}
.article-body figcaption {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .5rem;
  text-align: center;
}
.crop-top {
  object-position: center top;
}
.crop-bottom {
  object-position: center bottom;
}
.crop-left {
  object-position: left center;
}
.crop-right {
  object-position: right center;
}
@media (max-width: 1200px) {
  .header-inner {
    gap: 1rem;
    padding-inline: 1.5rem;
  }
  .desktop-nav {
    column-gap: .75rem;
  }
  .brand-copy {
    font-size: .9rem;
  }
}
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
  .header-inner {
    min-height: 80px;
  }
  .quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-inner {
    padding-inline: 3rem;
  }
}
@media (max-width: 768px) {
  .header-inner {
    gap: .5rem;
    padding: .85rem 1rem;
    min-height: 76px;
  }
  .brand-copy {
    font-size: .82rem;
    letter-spacing: .02em;
  }
  .brand-copy small {
    font-size: .6rem;
    letter-spacing: .15em;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .header-inner > .donate-link {
    display: none;
  }
  .brand {
    gap: .5rem;
  }
  .hero,
  .hero-slide {
    min-height: 300px;
  }
  .hero-inner {
    padding: 2.5rem 1.5rem 4rem;
  }
  .hero h1 {
    max-width: 13rem;
    font-size: 2rem;
    line-height: 1.55;
  }
  .hero h1 .hero-title-separator {
    display: none;
  }
  .hero h1 .hero-title-first,
  .hero h1 .hero-title-second {
    display: block;
  }
  .hero .eyebrow {
    font-size: .75rem;
    max-width: 12rem;
    letter-spacing: .06em;
  }
  .hero-slide::after {
    background: linear-gradient(90deg, #f8f7edf5, #f8f7edeb 85%, #f8f7ed00);
  }
  .hero-caption {
    max-width: 13rem;
    font-size: .82rem;
  }
  .hero-controls button {
    width: 44px;
    height: 44px;
  }
  h1 {
    font-size: 2rem;
  }
  .page-container {
    padding: 1.5rem 1rem 2.5rem;
  }
  .quick-links {
    gap: .7rem;
    margin-bottom: .5rem;
  }
  .quick-links a {
    min-height: 112px;
    padding: 1rem .25rem;
    font-size: .85rem;
    gap: .65rem;
  }
  .quick-links .site-icon {
    width: 30px;
    height: 30px;
  }
  .home-columns {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 0;
  }
  .home-columns > :last-child {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .content-section {
    padding: 1.5rem 0;
  }
  .section-heading {
    margin-bottom: 1rem;
  }
  .section-heading h2 {
    font-size: 1.2rem;
  }
  .section-heading a {
    font-size: .8rem;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card-body {
    padding: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: .75rem;
  }
  .site-footer nav {
    gap: .8rem 1rem;
  }
  .empty-state {
    padding: 2rem 1rem;
  }
  .detail-page h1 {
    font-size: 1.6rem;
  }
  .detail-metadata {
    padding: .75rem 1rem;
  }
}
@media (max-width: 360px) {
  .brand-copy {
    font-size: .72rem;
  }
  .header-inner {
    padding-inline: .75rem;
  }
  .quick-links a {
    font-size: .8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* 預設主視覺（方案 C）：文字與去背佛像分欄並排，佛像靠右、縮小、略透明、底部淡出，
   兩者不重疊；窄寬度時標題只在兩句之間換行。 */
.hero:not(.has-image) {
  min-height: 440px;
  align-items: stretch;
  background: radial-gradient(
    circle at 72% 48%,
    #fff9dfee 0,
    #fff9df88 13rem,
    #fff9df00 24rem
  ),
    linear-gradient(120deg, #e2eee7, #f6f3e3 55%, #c8dbcd);
}
.hero:not(.has-image) .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  justify-content: center;
  column-gap: 4rem;
  padding: 2rem 2rem 0;
}
.hero-copy {
  align-self: center;
  min-width: 0;
  padding-bottom: 2rem;
}
.hero-copy h1 {
  overflow-wrap: anywhere;
}
.hero-art {
  align-self: end;
  justify-self: end;
  display: block;
  width: auto;
  height: 360px;
  max-width: 100%;
  opacity: .82;
  -webkit-mask-image: linear-gradient(#000 60%, #0000 100%);
  mask-image: linear-gradient(#000 60%, #0000 100%);
}
@media (max-width: 1100px) {
  .hero-art {
    height: 300px;
  }
}
@media (max-width: 900px) {
  .hero-copy h1 .hero-title-separator {
    display: none;
  }
  .hero-copy h1 .hero-title-first,
  .hero-copy h1 .hero-title-second {
    display: block;
  }
}
@media (max-width: 768px) {
  .hero:not(.has-image) {
    min-height: 300px;
    background: radial-gradient(
      circle at 78% 72%,
      #fff9dfee 0,
      #fff9df88 6rem,
      #fff9df00 11rem
    ),
      linear-gradient(120deg, #e2eee7, #f6f3e3 55%, #c8dbcd);
  }
  .hero:not(.has-image) .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
    column-gap: 1rem;
    padding: 2rem 1.5rem 0;
  }
  .hero-copy {
    padding-bottom: 1.5rem;
  }
  .hero-art {
    width: min(100%, 260px);
    height: auto;
  }
}
/* 副標只在「正德慈善醫療／文教機構」之間換行；768px 以下固定分兩行。 */
.eyebrow-part {
  display: inline-block;
}
@media (max-width: 768px) {
  .hero .eyebrow-part {
    display: block;
  }
}
@media (max-width: 360px) {
  .hero-copy h1 {
    font-size: 1.75rem;
  }
}
.hero-slide {
  isolation: isolate;
}
.hero-inner {
  z-index: 1;
}
.hero .eyebrow {
  font-family: "Kaiti TC", "STKaiti", "BiauKai", "Songti TC", serif;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  letter-spacing: .2em;
  margin: .9rem 0 0;
}
.hero-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hero-controls button {
  pointer-events: auto;
  border: 1px solid #ffffff60;
}
.hero-previous,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: #ffffffb8;
  color: var(--deep);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px #17372b12;
}
.hero-previous {
  left: 1.25rem;
}
.hero-next {
  right: 1.25rem;
}
.hero-dots {
  display: flex;
  position: absolute;
  bottom: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  gap: .2rem;
}
.hero-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0 !important;
  border-radius: 50%;
}
.hero-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff8c;
  box-shadow: 0 0 0 1px #214d3b30;
}
.hero-dot.is-active::after {
  background: #fff;
  width: 10px;
  height: 10px;
}
.quick-links small {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: var(--muted);
}
.content-card {
  position: relative;
}
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.card-media .content-cover {
  height: 100%;
  margin: 0;
  border-radius: 0;
}
.card-media-empty {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 70% 5%, #f9efcc, transparent 60%),
    linear-gradient(140deg, #e3eee6, #f4f5eb);
}
.card-placeholder {
  color: #86a68d;
}
.card-placeholder .site-icon {
  width: 60px;
  height: 60px;
  opacity: .7;
}
.card-media .card-badge {
  position: absolute;
  left: 1rem;
  bottom: .65rem;
  margin: 0;
  box-shadow: 0 2px 8px #17372b15;
}
.badge-activities {
  background: #1b6949;
}
.badge-news {
  background: #15533d;
}
.badge-health {
  background: #146c70;
}
.badge-charity {
  background: #8a5a1c;
}
.badge-locations {
  background: #346d58;
}
.card-body {
  padding-bottom: 1.6rem;
}
.card-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: .65rem;
}
.content-card:has(.card-title-link:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.card-title-link:focus-visible {
  outline: none;
}
.card-meta p,
.detail-metadata p,
.information-card p {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.card-meta p > span,
.detail-metadata p > span,
.information-card p > span {
  min-width: 0;
}
.card-meta .site-icon,
.detail-metadata p .site-icon,
.information-card p .site-icon {
  width: 1rem;
  height: 1rem;
  margin-top: .2rem;
  flex-shrink: 0;
}
.card-meta a {
  position: relative;
  z-index: 2;
}
.card-meta {
  padding-right: 2rem;
}
.card-summary {
  padding-right: 2rem;
}
.card-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f6f7f6;
  pointer-events: none;
}
.card-arrow .site-icon {
  width: 1.1rem;
  height: 1.1rem;
}
.content-card:hover .card-arrow {
  color: #fff;
  background: var(--green);
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  min-height: 52px;
  padding: .55rem 0;
  position: relative;
}
.news-row:hover a {
  color: var(--green);
}
.news-row time {
  font-size: .77rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.news-row .card-badge {
  font-size: .72rem;
  padding: .12rem .5rem;
  margin: 0;
  border: 1px solid #dce8df;
  color: var(--green);
  background: #f3f7f1;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-row .category-tone-0 {
  color: #a55d24;
  border-color: #efdfc7;
  background: #fcf7ed;
}
.news-row .category-tone-1 {
  color: #3b6947;
  border-color: #d7e4d5;
  background: #f2f7ee;
}
.news-row .category-tone-2 {
  color: #276d76;
  border-color: #d2e6e7;
  background: #eef8f8;
}
.news-row .category-tone-3 {
  color: #a44f5c;
  border-color: #f0d9df;
  background: #fcf3f5;
}
.news-row a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: .95rem;
  text-decoration: none;
}
.news-row a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.news-row > .site-icon {
  display: none;
  width: 14px;
  height: 14px;
  color: var(--green);
}
.news-tabs {
  margin-top: 0;
}
.directory-panel {
  padding: 1rem;
  background: #f0f6f1;
  border-radius: .65rem;
}
.directory-panel > p {
  margin: 0 0 .75rem;
  font-size: .85rem;
  font-weight: 600;
}
.directory-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}
.directory-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1rem .2rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: .65rem;
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
}
.directory-links a > span {
  display: grid;
  place-items: center;
  background: #eff7f2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.directory-links .site-icon {
  width: 26px;
  height: 26px;
}
.footer-banner {
  height: 130px;
  overflow: hidden;
  background: var(--deep);
}
.footer-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 100%;
  display: block;
}
.site-footer {
  border-top: 0;
}
.copyright {
  margin: 0;
  text-align: center;
  color: #c4d6cc;
  font-size: .75rem;
  padding: 0 1rem 1.5rem;
}
/* 詳情頁顯示完整封面（常是海報），不套用列表的 16:9 裁切；過高時限制高度並置中。 */
.detail-cover {
  margin: 1.5rem 0 0;
  border-radius: .7rem;
  overflow: hidden;
  background: #f2f5f1;
}
.detail-page .detail-cover .content-cover {
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}
.detail-page .detail-badge {
  margin: 1.25rem 0 0;
  padding: .2rem .75rem;
  border-radius: .3rem;
  font-weight: 650;
  letter-spacing: .04em;
}
.detail-page .detail-badge + h1 {
  margin-top: .75rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.detail-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-top: 1.75rem;
}
.detail-tabs a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
  padding: .8rem 0;
  border-bottom: 2px solid transparent;
}
.detail-tabs a:first-child {
  border-bottom-color: var(--green);
}
.activity-information {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.information-card {
  background: #f2f5f1;
  border-radius: .7rem;
  padding: 1.25rem;
}
.information-card h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  margin: 0 0 .75rem;
}
.information-card p {
  font-size: .9rem;
  margin: .5rem 0;
}
#intro,
#location,
#files {
  scroll-margin-top: 1rem;
}
@media (max-width: 768px) {
  .hero .eyebrow {
    font-size: 1rem;
    letter-spacing: .06em;
    margin-top: .6rem;
    max-width: 16rem;
  }
  .hero-inner {
    padding-inline: 1.5rem;
  }
  .hero.has-image .hero-inner {
    padding-inline: 3.25rem;
  }
  .hero-controls .hero-previous {
    left: .4rem;
  }
  .hero-controls .hero-next {
    right: .4rem;
  }
  .hero-controls .hero-dot {
    width: 32px;
    height: 32px;
  }
  .hero-dots {
    bottom: .65rem;
  }
  .news-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: .2rem .2rem .5rem;
  }
  .news-tabs a {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .news-row {
    grid-template-columns: auto minmax(0, 1fr) 14px;
    gap: .25rem .6rem;
    padding: .75rem 0;
  }
  .news-row time {
    grid-column: 1 / 3;
  }
  .news-row .card-badge {
    grid-column: 1;
    grid-row: 2;
    max-width: 5.5rem;
  }
  .news-row a {
    grid-column: 2;
    grid-row: 2;
    font-size: .85rem;
  }
  .news-row > .site-icon {
    grid-column: 3;
    grid-row: 2;
  }
  .footer-banner {
    height: 90px;
  }
  .activity-information {
    grid-template-columns: 1fr;
  }
  .detail-tabs {
    gap: 1rem;
  }
  .detail-tabs a {
    font-size: .85rem;
  }
}

/* 示意圖精修：首頁卡片、底部查看更多、頁尾。 */
.featured-section .card-summary {
  display: none;
}
.featured-section .card-body {
  padding: 1.1rem 1.25rem 1.25rem;
}
.featured-section .card-body h3 {
  font-size: 1.12rem;
  margin-bottom: .55rem;
}
.content-card {
  transition: transform .18s, box-shadow .18s;
}
.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px #17372b17;
}
.card-media .card-badge {
  border-radius: .3rem;
  padding: .2rem .75rem;
  font-weight: 650;
  letter-spacing: .04em;
}
.badge-activities,
.badge-news {
  background: #1f7a4f;
}
.section-more {
  display: none;
}
.footer-banner {
  height: 150px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 1.5rem 2rem .5rem;
}
.footer-brand {
  margin: 0;
  white-space: nowrap;
}
.site-footer nav {
  gap: 2.25rem;
  font-size: .9rem;
}
.copyright {
  padding: .25rem 1rem 1.25rem;
}
@media (max-width: 1024px) {
  .featured-section .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .home-columns {
    gap: 1.5rem;
  }
  .home-columns > :last-child {
    padding-left: 1.5rem;
  }
}
@media (max-width: 768px) {
  /* 手機近期動態：左右滑動，一次露出一張半，符合示意圖 */
  .featured-section .content-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .75rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-padding-inline: 1rem;
  }
  .featured-section .content-card {
    scroll-snap-align: start;
  }
  .news-section .section-heading a {
    display: none;
  }
  .section-more {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .2rem;
    margin-top: 1rem;
    font-size: .85rem;
    font-weight: 650;
    text-decoration: none;
  }
  .section-more .site-icon {
    width: 1rem;
    height: 1rem;
  }
  .news-row {
    grid-template-columns: minmax(0, 1fr) 14px;
    border-bottom-style: solid;
  }
  .news-row time {
    grid-column: 1;
    grid-row: 1;
  }
  .news-row .card-badge {
    display: none;
  }
  .news-row a {
    grid-column: 1;
    grid-row: 2;
    font-size: .95rem;
    font-weight: 600;
  }
  .news-row > .site-icon {
    display: block;
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .locations-section .directory-panel {
    padding: 0;
    background: transparent;
  }
  .directory-links {
    margin-top: 1rem;
  }
  .directory-links a {
    border: 0;
    background: transparent;
    padding: .25rem 0;
  }
  .directory-links a > span {
    width: 64px;
    height: 64px;
    background: #eef6f0;
    box-shadow: 0 3px 10px #17372b14;
  }
  .directory-links .site-icon {
    width: 30px;
    height: 30px;
  }
  .footer-banner {
    height: 100px;
  }
  .footer-inner {
    display: flex;
    padding: 1.5rem 1.25rem .5rem;
  }
  .site-footer nav {
    gap: .6rem 1.25rem;
  }
}
/* 手機選單：右側全高面板，項目帶圖示與分隔線，底部全寬護持捐款。 */
.mobile-menu {
  margin: 0 0 0 auto;
  width: min(86vw, 360px);
  height: 100dvh;
  max-height: none;
  padding: 1rem 1.25rem 1.5rem;
  border: 0;
  border-radius: 1rem 0 0 1rem;
  box-shadow: -12px 0 40px #103b3133;
}
.mobile-menu[open] {
  display: flex;
  flex-direction: column;
}
.menu-header {
  justify-content: space-between;
  margin-bottom: .25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.menu-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  color: var(--green);
  font-size: .95rem;
  font-weight: 750;
  letter-spacing: .04em;
}
.menu-brand .brand-logo {
  width: 40px;
  height: 40px;
}
@media (max-width: 360px) {
  .menu-brand {
    font-size: .8rem;
    letter-spacing: 0;
  }
  .menu-brand .brand-logo {
    width: 34px;
    height: 34px;
  }
}
.menu-header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mobile-menu nav a {
  padding: .95rem .75rem;
  font-size: 1rem;
  letter-spacing: .04em;
}
.mobile-menu nav a:hover {
  color: var(--green);
  background: #f4f8f5;
}
.mobile-menu nav .donate-link {
  margin-top: 1.5rem;
  padding: .85rem 1rem;
  border-radius: .6rem;
  font-size: 1rem;
}
.mobile-menu nav .donate-link:hover {
  color: #fff;
  background: #93681f;
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu[open] {
    animation: menu-slide .22s ease-out;
  }
}
@keyframes menu-slide {
  from {
    transform: translateX(100%);
  }
}

/* 全國據點：依使用者提供的分區表格，樣式限於據點目錄。 */
.directory-region {
  --directory-accent: #376b91;
  --directory-pale: #edf4f8;
  --directory-edge: #c8dce7;
  background: #fffdf9;
  border: 1px solid var(--directory-edge);
  border-radius: 20px;
  overflow: hidden;
  margin: 26px 0;
  box-shadow: 0 8px 24px #35382a0f;
  scroll-margin-top: 1rem;
}
.directory-central {
  --directory-accent: #a9653b;
  --directory-pale: #fbf1e4;
  --directory-edge: #ead3b2;
}
.directory-south {
  --directory-accent: #567b60;
  --directory-pale: #eef5ec;
  --directory-edge: #d0e0ce;
}
.directory-east,
.directory-islands {
  --directory-accent: #78629a;
  --directory-pale: #f2eef8;
  --directory-edge: #d9cfea;
}
.directory-region-head {
  padding: 18px 24px;
  background: linear-gradient(100deg, var(--directory-accent), color-mix(in
    srgb, var(--directory-accent) 65%, white));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}
.directory-region-head > span {
  font-size: 1.7rem;
  line-height: 1;
}
.directory-region-head h2 {
  color: inherit;
  font-family: "Songti TC", serif;
  font-size: 1.55rem;
  letter-spacing: .14em;
  margin: 0;
}
.directory-region-head small {
  margin-left: auto;
  opacity: .88;
  letter-spacing: .08em;
}
.directory-region-body {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.directory-east .directory-region-body {
  grid-template-columns: 1fr;
}
.directory-group {
  border: 1px solid var(--directory-edge);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.directory-group h3 {
  margin: 0;
  background: var(--directory-pale);
  color: var(--directory-accent);
  padding: 11px 14px;
  font-size: 1rem;
  letter-spacing: .04em;
}
.directory-group table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .9rem;
  line-height: 1.65;
}
.directory-name-col {
  width: 28%;
}
.directory-phone-col {
  width: 26%;
}
.directory-address-col {
  width: 46%;
}
.directory-group th,
.directory-group td {
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eee9df;
  overflow-wrap: anywhere;
}
.directory-group thead th {
  font-weight: 600;
  background: #faf8f2;
  color: #6b6a60;
  font-size: .82rem;
}
.directory-group tbody th {
  font-weight: 600;
}
.directory-group tr:last-child > * {
  border-bottom: 0;
}
.directory-group thead tr:last-child > * {
  border-bottom: 1px solid #eee9df;
}
.directory-group a {
  color: var(--directory-accent);
  text-underline-offset: .2em;
}
.directory-group tbody th a {
  color: inherit;
  text-decoration: none;
}
.directory-phone {
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.directory-group a:hover {
  text-decoration: underline;
}
.directory-map-mark {
  display: inline-block;
  margin-left: .2em;
}
.directory-group a:focus-visible {
  outline: 2px solid var(--directory-accent);
  outline-offset: 3px;
}
@media (max-width: 1024px) {
  .directory-region-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .directory-region-body {
    padding: 12px;
    gap: 12px;
  }
  .directory-region-head {
    padding: 15px 17px;
  }
  .directory-region-head h2 {
    font-size: 1.3rem;
  }
  .directory-region-head small {
    font-size: .75rem;
  }
  .directory-group table {
    font-size: .84rem;
  }
  .directory-group th,
  .directory-group td {
    padding: 9px 7px;
  }
  .directory-phone-col {
    width: 29%;
  }
  .directory-address-col {
    width: 43%;
  }
}
@media (max-width: 420px) {
  .directory-region-head small {
    display: none;
  }
  .directory-region-head h2 {
    letter-spacing: .08em;
  }
  .directory-group table {
    font-size: .78rem;
  }
}

@media (max-width: 420px) {
  .directory-phone-col {
    width: 36%;
  }
  .directory-address-col {
    width: 36%;
  }
}
.calendar-heading {
  margin-bottom: 1.5rem;
}
.year-picker {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.year-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1px solid var(--green);
  border-radius: .4rem;
  background: #fff;
  color: var(--green);
  font: inherit;
  cursor: pointer;
}
.year-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}
.year-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.year-list a {
  display: block;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  color: var(--green);
  text-decoration: none;
}
.year-list a[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.year-list.is-collapsible {
  position: absolute;
  right: 0;
  z-index: 10;
  flex-direction: column;
  min-width: 10rem;
  margin-top: .35rem;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 .5rem 1.5rem rgb(16 60 50 / .15);
}
/* 行事曆為寬幅圖，版面比一般文章寬，且不限制圖片高度。 */
.page-container.calendar-page {
  max-width: 1600px;
}
.calendar-page .article-body img {
  max-width: 100%;
  max-height: none;
  height: auto;
}
.image-link {
  display: block;
  text-decoration: none;
}
.image-link img {
  cursor: zoom-in;
}
/* 行事曆拆成多張時，寬螢幕兩張並排；落單的圖片與其他區塊佔滿整列，手機維持單欄。 */
@media (min-width: 900px) {
  .calendar-page .article-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: start;
  }
  .calendar-page .article-body > * {
    grid-column: 1 / -1;
  }
  .calendar-page .article-body > figure {
    grid-column: auto;
    margin: 0 0 2rem;
  }
  .calendar-page .article-body > figure:only-of-type,
  .calendar-page .article-body > figure:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
  }
}
.image-zoom-hint {
  display: inline-block;
  margin-top: .6rem;
  color: var(--green);
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* 快捷入口 PNG 圖示：固定正方形框，等比縮放置中、不裁切；沒有圖示時只顯示文字。 */
.quick-links .quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
}
.quick-links .quick-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.quick-links .quick-link-text {
  min-height: 96px;
}

/* 首頁雙欄消息區：超過 768px 每列兩區，768px 以下（含）單欄；奇數時最後一區在左欄。 */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  margin-top: 1rem;
}
.home-news-grid .news-block {
  border-top: 1px solid var(--line);
}
@media (max-width: 768px) {
  .home-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 文章詳情層級導覽：首頁 › 最新消息或內容區 › 文章標題；手機上標題超過一行時截斷。 */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.breadcrumb li + li::before {
  content: "›";
  color: var(--muted);
}
.breadcrumb a {
  text-decoration: none;
  font-weight: 650;
}
.breadcrumb [aria-current="page"] {
  color: var(--green);
}
/* 文章詳情導覽列：標題（h1）加強顯示，回上頁靠右，日期在下一行靠左。 */
.detail-header {
  margin-bottom: 1.25rem;
}
.detail-crumbline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.list-heading {
  align-items: center;
}
.list-heading h1 {
  margin: 0;
}
.detail-header .breadcrumb {
  flex: 1 1 20rem;
  min-width: 0;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.detail-back .site-icon {
  width: 1rem;
  height: 1rem;
}
.detail-header .breadcrumb ol {
  margin: 0;
  font-size: .95rem;
}
.detail-header .breadcrumb a {
  font-weight: 700;
  color: var(--green);
}
.detail-page .detail-header h1 {
  margin: 0;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
  letter-spacing: normal;
  color: var(--ink);
}
.breadcrumb-date {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: .6rem 0 0;
  font-size: .9rem;
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb-date .site-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .breadcrumb li:last-child {
    flex: 1 1 100%;
  }
  .breadcrumb [aria-current="page"] {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* 內容區介紹顯示在文章列表上方。 */
.area-introduction {
  margin-bottom: 1.5rem;
}
.area-fold {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: .75rem 1rem;
}
.area-fold > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green);
}
.area-fold > summary:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 2px;
}
.area-fold[open] > summary {
  margin-bottom: .5rem;
}

.error-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
  text-align: center;
}
.error-code {
  margin: 0;
  font-size: clamp(4.5rem, 18vw, 6.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .08em;
  color: #9bb8aa;
}
.error-page h1 {
  margin: 1rem 0 .25rem;
  font-size: 1.5rem;
  color: var(--green);
}
.error-detail {
  margin: 0 0 1.5rem;
  color: var(--muted);
}
.error-home {
  display: inline-block;
  padding: .5rem 1.5rem;
  border-radius: 4px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
}
.error-home:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 2px;
}
