/* One fixed footer treatment for every public page. */
body footer#site-footer.site-footer-unified {
  --site-footer-paper: #e6e7db;
  --site-footer-ink: #262823;
  --site-footer-copy: #51584e;
  --site-footer-rule: #bdc2b0;
  --site-footer-accent: #8f4932;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 44px 0 28px;
  border: 0;
  border-top: 1px solid var(--site-footer-rule);
  border-radius: 0;
  color: var(--site-footer-copy);
  background: var(--site-footer-paper);
  box-shadow: none;
  font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  opacity: 1;
  visibility: visible;
}

body #site-footer.site-footer-unified,
body #site-footer.site-footer-unified * { box-sizing: border-box; }

body #site-footer.site-footer-unified .site-footer-wrap {
  width: min(1392px, calc(100% - 112px));
  margin-inline: auto;
  padding: 0;
}

body #site-footer.site-footer-unified .site-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--site-footer-rule);
  color: var(--site-footer-ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .045em;
}

body #site-footer.site-footer-unified .site-footer-asterisk { color: var(--site-footer-accent); font-family: Georgia, serif; font-size: 28px; line-height: 1; }
body #site-footer.site-footer-unified .site-footer-meta-aside { margin-left: auto; color: var(--site-footer-copy); }

body #site-footer.site-footer-unified .site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .75fr) minmax(0, 1.3fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(28px, 3vw, 48px);
  padding: 40px 0 42px;
}

body #site-footer.site-footer-unified .site-footer-grid > * { min-width: 0; }
body #site-footer.site-footer-unified .site-footer-brand-link { display: inline-block; max-width: 100%; color: var(--site-footer-ink); }
body #site-footer.site-footer-unified .site-footer-logo { display: block; width: 204px; max-width: 100%; height: auto; margin: 0; object-fit: contain; }

/* Homepage brand initialization writes opacity inline; the fixed light footer always uses the color logo. */
body #site-footer.site-footer-unified #footer-logo-color { position: static; display: block; opacity: 1 !important; visibility: visible !important; }
body #site-footer.site-footer-unified #footer-logo-white { display: none !important; }

body #site-footer.site-footer-unified .site-footer-description { max-width: 22rem; margin: 20px 0 0; color: var(--site-footer-copy); font: inherit; line-height: 1.85; }

body #site-footer.site-footer-unified .site-footer-heading {
  margin: 0 0 24px;
  color: var(--site-footer-ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .015em;
  text-transform: none;
}

body #site-footer.site-footer-unified a { color: inherit; background: none; box-shadow: none; text-decoration: none; }
body #site-footer.site-footer-unified a:hover { color: var(--site-footer-accent); }
body #site-footer.site-footer-unified a:focus-visible { outline: 2px solid var(--site-footer-accent); outline-offset: 5px; }

body #site-footer.site-footer-unified .site-footer-links,
body #site-footer.site-footer-unified .site-footer-contact { display: grid; gap: 12px; margin: 0; padding: 0; font-size: 14px; line-height: 1.85; }

body #site-footer.site-footer-unified .site-footer-links a { width: fit-content; max-width: 100%; font: inherit; }
body #site-footer.site-footer-unified .site-footer-contact-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; margin: 0; padding: 0; }
body #site-footer.site-footer-unified .site-footer-contact-row > :last-child { min-width: 0; overflow-wrap: anywhere; }
body #site-footer.site-footer-unified .site-footer-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; color: var(--site-footer-accent); }

body #site-footer.site-footer-unified .site-footer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 0; }
body #site-footer.site-footer-unified .site-footer-social { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #a8ae99; border-radius: 50%; color: var(--site-footer-ink); background: transparent; line-height: 1; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
body #site-footer.site-footer-unified .site-footer-social:hover { border-color: var(--site-footer-accent); color: var(--site-footer-accent); background: rgba(255, 255, 255, .35); }
body #site-footer.site-footer-unified .site-footer-social svg { display: block; flex: 0 0 22px; width: 22px; height: 22px; }
body #site-footer.site-footer-unified .site-footer-social-mark { font-family: Arial, sans-serif; font-size: 25px; font-weight: 700; line-height: 1; }

body #site-footer.site-footer-unified .site-footer-bottom { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--site-footer-rule); color: var(--site-footer-copy); font-size: 12px; line-height: 1.8; }
body #site-footer.site-footer-unified .site-footer-bottom > * { min-width: 0; margin: 0; padding: 0; }

@media (max-width: 1100px) {
  body #site-footer.site-footer-unified .site-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 42px 8%; }
}

@media (max-width: 1024px) {
  body #site-footer.site-footer-unified .site-footer-wrap { width: calc(100% - 64px); }
}

@media (max-width: 760px) {
  body footer#site-footer.site-footer-unified { padding-top: 32px; }
  body #site-footer.site-footer-unified .site-footer-wrap { width: calc(100% - 40px); }
  body #site-footer.site-footer-unified .site-footer-meta { padding-bottom: 22px; }
  body #site-footer.site-footer-unified .site-footer-meta-aside { flex-basis: 100%; margin-left: 0; padding-left: 37px; }
  body #site-footer.site-footer-unified .site-footer-grid { padding-block: 32px 36px; gap: 38px 28px; }
  body #site-footer.site-footer-unified .site-footer-heading { margin-bottom: 18px; }
  body #site-footer.site-footer-unified .site-footer-bottom { flex-direction: column; padding-top: 22px; }
}

@media (max-width: 640px) {
  body #site-footer.site-footer-unified .site-footer-grid { grid-template-columns: minmax(0, 1fr); }
  body #site-footer.site-footer-unified .site-footer-logo { width: 180px; }
  body #site-footer.site-footer-unified .site-footer-description { max-width: 28rem; }
}

@media (prefers-reduced-motion: reduce) {
  body #site-footer.site-footer-unified .site-footer-social { transition: none; }
}
