/* WCAG 2.1: shared keyboard navigation, reflow and reduced motion. */
[hidden] { display: none !important; }
.sr-only { font-size: inherit; color: inherit; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10001;
  padding: 6px 8px;
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  background: #fff;
  color: #111;
  border: 2px solid #111;
  border-radius: 3px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
  background-color: #fff !important;
  color: #111 !important;
  outline: none;
  box-shadow: none;
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #154c79;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}
#main-content, #C, #AC { scroll-margin-top: 7rem; }
#U:focus, #U-mobile:focus {
  outline: 3px solid #154c79;
  outline-offset: 3px;
  background: #fff;
  color: #111;
}
#U-mobile:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10002;
  padding: 0.35rem 0.6rem;
}
.page img, .project-rich-text img { max-width: 100%; height: auto; }
.page, .project-rich-text, .entry-excerpt { overflow-wrap: anywhere; }
.page table { max-width: 100%; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -3px; }
.main-menu > .has-submenu > a { display: inline-block; }
.submenu-toggle {
  border: 0;
  background: transparent;
  color: #111;
  padding: 0.6rem 0.25rem;
  font: inherit;
  cursor: pointer;
}
.menu-column .has-submenu > .sub-menu { display: none; }
.menu-column .has-submenu.is-submenu-open > .sub-menu { display: block; }
#option { border: 0; padding: 0; }
#rwdmenu_tab_close {
  opacity: 1;
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  margin: 1rem;
  background: #fff;
  color: #111;
  border: 2px solid #333;
  font: inherit;
}
.mobile-submenu-toggle {
  position: absolute;
  right: 1rem;
  top: 0.35rem;
  padding: 0.4rem;
  border: 1px solid #555;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
}
@media (max-width: 1024px) {
  #option_column.clicked {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    max-height: calc(100dvh - 50px);
    overflow-y: auto;
  }
  #option_column .option_sel > a { padding-right: 5rem; }
  #option_column .option_sel > span.status { display: none; }
  .page input, .page select, .page textarea { max-width: 100%; }
  .page-option { flex-wrap: wrap; }
  /* Keep intrinsic select widths inside the filter panel, with room for focus outlines. */
  .page-option:not(.page-option-media) .box {
    min-width: 0;
    max-width: calc(100% - 16px);
  }
  .page-option input, .page-option select, .page-option textarea {
    box-sizing: border-box;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
