/* FLOD Blog — shared tokens, header, footer */

:root {
  --flod-teal: #257180;
  --flod-teal-deep: #1a4f5c;
  --flod-teal-soft: #e6f4f7;
  --flod-teal-mid: #4394a4;
  --flod-teal-light: #86c4d0;
  --flod-teal-pale: #c7f1f9;
  --flod-accent: #fd8b51;
  --flod-accent-deep: #cb6040;
  --flod-accent-soft: #fff0e8;
  --flod-ink: #1a1a1a;
  --flod-ink-soft: #333333;
  --flod-muted: #6b6b6b;
  --flod-muted-mid: #666666;
  --flod-border: #e8e8e8;
  --flod-border-hover: #cfcfcf;
  --flod-border-strong: #dddddd;
  --flod-border-soft: #eeeeee;
  --flod-page: #ffffff;
  --flod-surface: #f7f7f7;
  --font-sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--flod-ink);
  background: var(--flod-page);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Site header (width 1440 / max 100% / pad 0 32px) ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  box-sizing: border-box;
  width: 1440px;
  max-width: 100%;
  margin-inline: auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--flod-border);
  backdrop-filter: saturate(180%) blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
  color: var(--flod-ink);
  border-bottom: none;
  background: transparent;
  font-weight: 400;
}

.brand:hover {
  color: var(--flod-ink);
  border-bottom: none;
  background: transparent;
}

.brand__logo {
  display: block;
  height: 22px;
  width: auto;
}

.brand__label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--flod-ink);
  line-height: 1;
}

.site-header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.nav-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--flod-ink-soft);
  text-decoration: none;
  border-bottom: none;
  background: transparent;
  transition: color 0.15s ease;
}

.nav-text-link:hover {
  color: var(--flod-teal);
  border-bottom: none;
  background: transparent;
}

.nav-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  background: var(--flod-teal);
  border: 1.5px solid var(--flod-teal);
  border-bottom: 1.5px solid var(--flod-teal);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-cta-button:hover {
  color: #ffffff;
  background: var(--flod-teal-mid);
  border-color: var(--flod-teal-mid);
  border-bottom-color: var(--flod-teal-mid);
}

@media (max-width: 480px) {
  .site-header__actions {
    gap: 4px;
  }

  .nav-text-link {
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.8125rem;
  }

  .nav-cta-button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.8125rem;
  }
}

/* ── Site footer (aligned with www landing footer) ── */

.site-footer {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  margin-top: auto;
  padding: 56px 32px 32px;
  background: var(--flod-ink-soft);
  color: var(--flod-page);
  border-top: none;
  text-align: left;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  column-gap: 48px;
  row-gap: 40px;
  padding-bottom: 40px;
}

.site-footer__brand-col {
  min-width: 0;
  padding-right: 24px;
}

.site-footer__brand {
  display: inline-flex;
  margin-bottom: 16px;
  text-decoration: none;
  border-bottom: none;
  background: transparent;
}

.site-footer__brand:hover {
  border-bottom: none;
  background: transparent;
}

.site-footer__logo {
  display: block;
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer__tagline {
  margin: 0;
  max-width: 320px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__column {
  min-width: 0;
}

.site-footer__column-title {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flod-page);
}

.site-footer__column-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__column-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border-bottom: none;
  background: transparent;
  transition: color 0.15s ease;
}

.site-footer__column-list a:hover {
  color: var(--flod-page);
  border-bottom: none;
  background: transparent;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.site-footer__bottom-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border-bottom: none;
  background: transparent;
  transition: color 0.15s ease;
}

.site-footer__bottom-links a:hover {
  color: var(--flod-page);
  border-bottom: none;
  background: transparent;
}

@media (max-width: 720px) {
  .site-footer {
    padding: 48px 24px 24px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .site-footer__brand-col {
    padding-right: 0;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer__copy {
    white-space: normal;
  }
}
