@import url("/css/locale-fonts.css?v=20260731a");

/*
 * Canonical site-wide footer contract.
 * Structure, spacing and typography are shared everywhere. Color changes only
 * through the explicit light/dark surface modifier for accessible contrast.
 */
.site-footer-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

.site-footer,
.page-footer {
  box-sizing: border-box !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 24px 16px !important;
  border-top: 0 !important;
  color: #1a1a1a !important;
  font-family: var(--font-main, var(--font-sans, var(--font, "Noto Sans TC", "Segoe UI", system-ui, sans-serif))) !important;
  font-size: 12px !important;
  line-height: 1.9 !important;
  text-align: center !important;
}

.site-footer *,
.page-footer * {
  font-size: inherit !important;
  line-height: inherit !important;
}

.site-footer p,
.page-footer p {
  margin: 8px 0 0 !important;
  overflow-wrap: anywhere;
}

.site-footer p:first-child,
.page-footer p:first-child {
  margin-top: 0 !important;
}

.site-footer p:last-child,
.page-footer p:last-child {
  font-weight: 700 !important;
}

.site-footer .footer-disclaimer,
.page-footer .footer-disclaimer {
  text-align: center !important;
}

/*
 * Keep each decorative separator in the same atomic inline box as the link it
 * introduces. The canonical homepage shell still contains separators as text
 * nodes, while newer page footers use aria-hidden spans; hiding both visual
 * forms prevents a separator from being stranded at either edge of a line.
 */
.site-footer p:has(> a),
.page-footer p:has(> a) {
  font-size: 0 !important;
  text-wrap: pretty;
}

.site-footer p:has(> a) > :is(strong, a),
.page-footer p:has(> a) > :is(strong, a) {
  font-size: 12px !important;
}

.site-footer p:has(> a) > span[aria-hidden="true"],
.page-footer p:has(> a) > span[aria-hidden="true"] {
  display: none !important;
}

.site-footer strong,
.page-footer strong {
  color: inherit !important;
  font-weight: 700;
}

.site-footer a,
.site-footer a:visited,
.page-footer a,
.page-footer a:visited {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 0.125rem;
  color: #76550e !important;
  text-decoration: none !important;
}

.site-footer p:has(> a) > a::before,
.page-footer p:has(> a) > a::before {
  display: inline-block;
  flex: none;
  margin-inline: 0.45em 0.2em;
  color: inherit;
  content: "✦" / "";
  font-size: 1em;
  line-height: 1;
  text-decoration: none !important;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.page-footer a:hover,
.page-footer a:focus-visible {
  color: #5a3f08 !important;
  text-decoration: none;
}

.site-footer a:focus-visible,
.page-footer a:focus-visible {
  border-radius: 2px;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.site-footer-wrap--dark .site-footer,
.site-footer--dark,
.page-footer--dark {
  color: rgba(255, 255, 255, 0.85) !important;
}

.site-footer-wrap--dark .site-footer a,
.site-footer-wrap--dark .site-footer a:visited,
.site-footer--dark a,
.site-footer--dark a:visited,
.page-footer--dark a,
.page-footer--dark a:visited {
  color: #e0c35c !important;
}

.site-footer-wrap--dark .site-footer a:hover,
.site-footer-wrap--dark .site-footer a:focus-visible,
.site-footer--dark a:hover,
.site-footer--dark a:focus-visible,
.page-footer--dark a:hover,
.page-footer--dark a:focus-visible {
  color: #f0d36c !important;
}

.page-footer .footer-disclaimer,
.page-footer .footer-links,
.page-footer .footer-primary {
  max-width: none;
  color: inherit !important;
}

.page-footer .footer-links span {
  margin-inline: 0.35em;
  color: inherit;
  opacity: 1;
}

@media (max-width: 640px) {
  .site-footer-wrap {
    padding-inline: 8px;
  }

  .site-footer,
  .page-footer {
    padding-inline: 8px !important;
    line-height: 1.75 !important;
  }
}
