:root {
  overflow-x: clip;
  --af-nav-ink: #123f49;
  --af-nav-paper: #fbf8f2;
  --af-nav-line: rgba(18, 63, 73, .14);
  --af-nav-gold: #ad7d28;
}

body > main { overflow-x: clip; }

.af-original-site-header {
  display: none !important;
}

.af-unified-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: rgba(251, 248, 242, .97);
  border-bottom: 1px solid var(--af-nav-line);
  color: var(--af-nav-ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.af-unified-header__inner {
  width: min(1420px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.af-unified-header__brand {
  flex: 0 0 auto;
  color: var(--af-nav-ink);
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
}

.af-unified-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 28px);
}

.af-unified-header__nav a {
  position: relative;
  padding: 10px 0;
  color: var(--af-nav-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.af-unified-header__nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--af-nav-gold);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.af-unified-header__nav a:hover::after,
.af-unified-header__nav a:focus-visible::after,
.af-unified-header__nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.af-unified-header__cta {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--af-nav-ink);
  color: #fff !important;
  padding: 14px 24px !important;
}

.af-unified-header__cta::after { display: none; }

.af-unified-header__toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--af-nav-line);
  border-radius: 10px;
  background: #fff;
  color: var(--af-nav-ink);
  padding: 9px 13px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.af-page-path {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #68777a;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: .94rem;
  line-height: 1.6;
}

.af-page-path__crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.af-page-path a {
  color: var(--af-nav-ink);
  font-weight: 700;
  text-decoration: none;
}

.af-page-path a:hover,
.af-page-path a:focus-visible { text-decoration: underline; }

.af-page-path__back { white-space: nowrap; }
.af-section-nav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 16px;
  padding: 10px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.af-section-nav::before {
  content: "這一區還可以看";
  flex: 0 0 auto;
  margin-right: 2px;
  color: #68777a;
  font-size: .88rem;
  font-weight: 700;
}
.af-section-nav a {
  flex: 0 0 auto;
  border: 1px solid var(--af-nav-line);
  border-radius: 999px;
  background: #fff;
  color: var(--af-nav-ink);
  padding: 8px 13px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.af-section-nav a:hover,
.af-section-nav a:focus-visible,
.af-section-nav a[aria-current="page"] {
  border-color: var(--af-nav-gold);
  background: #f6ead1;
}

@media (max-width: 1050px) {
  .af-unified-header__inner {
    width: min(100% - 32px, 960px);
    min-height: 72px;
    flex-wrap: wrap;
    padding: 11px 0;
  }
  .af-unified-header__toggle { display: inline-flex; }
  .af-unified-header__nav {
    display: none;
    width: 100%;
    margin: 0;
    padding: 7px 0 12px;
    border-top: 1px solid var(--af-nav-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .af-unified-header__nav.is-open { display: flex; }
  .af-unified-header__nav a {
    padding: 12px 6px;
    white-space: normal;
  }
  .af-unified-header__nav a::after { display: none; }
  .af-unified-header__nav a[aria-current="page"] {
    color: var(--af-nav-gold);
  }
  .af-unified-header__cta {
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .af-unified-header__inner,
  .af-page-path { width: calc(100% - 28px); }
  .af-unified-header__brand { font-size: 1.45rem; }
  .af-page-path {
    padding-top: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
