/* Content Site Chrome — self-authored (no Elementor/Astra) */

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

html { font-size: 93.75%; }

/* Site stack: self-hosted Dosis (Latin) → justfont CJK → Arphic → self-hosted Noto fallback.
   Prefer jf alias before AR so a broken/local AR face cannot steal CJK glyphs. */
body {
  margin: 0;
  background: #fff;
  color: #3a3a3a;
  font-family: 'Dosis', 'jf-jinxuanlatte', 'AR YuanB5HK MD', 'AR RGothic1 Medium', 'Noto Sans TC', sans-serif !important;
  font-weight: 400;
}

body,
div,
span,
button,
input,
textarea,
select,
a,
p,
li,
h1,
h2,
h3,
h4 {
  font-family: 'Dosis', 'jf-jinxuanlatte', 'AR YuanB5HK MD', 'AR RGothic1 Medium', 'Noto Sans TC', sans-serif !important;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }

.chrome-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4em 1.75em;
  pointer-events: none;
}
.chrome-header a,
.chrome-header button { pointer-events: auto; }

.chrome-logo img { width: 126px; display: block; }

/* Must re-enable events: header uses pointer-events:none so logo doesn't block page */
.chrome-actions {
  position: fixed;
  top: 1.35em;
  right: 1.4em;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.85em;
  pointer-events: auto;
}

/* Language switcher */
.chrome-lang {
  position: relative;
  pointer-events: auto;
}
.chrome-lang__btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.chrome-lang__list {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin: 0;
  /* padding-top bridges icon→list; list must receive events (header sets pointer-events:none) */
  padding: 0.65em 0 0.5em;
  list-style: none;
  text-align: right;
  min-width: 7.5em;
  line-height: 1.4;
  pointer-events: auto;
}
.chrome-lang:hover .chrome-lang__list,
.chrome-lang:focus-within .chrome-lang__list { display: block; }
.chrome-lang__list li + li { margin-top: 0.55em; }
.chrome-lang__list a {
  display: block;
  padding: 0.35em 0.5em;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.chrome-lang__list .is-current a { opacity: 0.7; }

.chrome-lang__btn img {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* Hamburger in circle */
.chrome-menu-btn {
  position: relative;
  width: 4em;
  height: 4em;
  border: 1px solid #fff;
  border-radius: 999px;
  background: rgba(32, 60, 114, 0.2);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.chrome-menu-btn__bars,
.chrome-menu-btn__bars::before,
.chrome-menu-btn__bars::after {
  display: block;
  width: 0.95em;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  margin: 0 auto;
  content: "";
  position: relative;
}
.chrome-menu-btn__bars::before { position: absolute; top: -6px; left: 0; }
.chrome-menu-btn__bars::after { position: absolute; top: 6px; left: 0; }

/* Font size resizer (accessible-text-only) */
.chrome-font {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-right: 0.25em;
}
.chrome-font__btn {
  border: 0;
  background: transparent;
  padding: 0.15em 0.2em;
  margin: 0;
  cursor: pointer;
  color: #5a6a7a;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.15em;
  line-height: 1;
}
.chrome-font__btn:hover,
.chrome-font__btn:focus-visible {
  color: #203c72;
  outline: none;
}
.chrome-font__btn[data-font="dec"] { font-size: 0.95em; }
.chrome-font__btn[data-font="inc"] { font-size: 1.35em; }

.chrome-main { min-height: 100vh; }

/* Shared footer strip */
.chrome-footer {
  background: #203c72;
  color: #fff;
  text-align: center;
  padding: 1.75em 1.25em 2em;
  font-weight: 600;
}
.chrome-footer p { margin: 0.35em 0; }
.chrome-footer a { color: #fff; text-decoration: none; }
.chrome-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85em 1.1em;
  margin-top: 0.85em;
}
.chrome-footer__social {
  display: flex;
  align-items: center;
  gap: 0.65em;
}
.chrome-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15em;
  height: 2.15em;
  border-radius: 999px;
  background: #fff;
  color: #203c72;
}
.chrome-footer__social a:hover { opacity: 0.9; }
.chrome-footer__social svg {
  width: 0.95em;
  height: 0.95em;
  fill: currentColor;
}
.chrome-footer__mail { margin: 0; }

/* ---------- Fullscreen menu (aligned with Interactive Experience / main.css) ---------- */
.txt-bold { font-weight: 600; }

.aaas-menu-container .chi,
.aaas-menu-container .ctn,
.aaas-menu-container .eng { display: none; }
body.lang-can .aaas-menu-container .chi { display: block; }
body.lang-cn .aaas-menu-container .ctn { display: block; }
body.lang-en .aaas-menu-container .eng { display: block; }

.aaas-menu-container {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: #ffb897;
  color: #fff;
  -webkit-overflow-scrolling: touch;
  overflow: scroll;
  transform: translate(0%, -100%);
  transition: transform 0.5s;
}
.aaas-menu-container.open { transform: translate(0%, 0%); transition: transform 0s 0.1s; }

.menu-container-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
}

.menu-ele-container {
  width: 100%;
  height: 20.1%;
  position: relative;
  cursor: pointer;
  transition: transform 0s 0.5s, height 500ms;
}
.menu-ele-container.menu-header { transform: translate(0%, -0%); }
.menu-ele-container.about { transform: translate(0%, -200%); }
.menu-ele-container.journey {
  /* Reset page CSS (.journey grid) that collides with this menu band class */
  display: block;
  grid-template-columns: none;
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #fff;
  transform: translate(0%, -300%);
}
.menu-ele-container.reading { transform: translate(0%, -400%); }
.menu-ele-container.souvenir { transform: translate(0%, -500%); }

.menu-ele-container > div:nth-child(1) {
  width: 100%;
  height: 100%;
  transition: transform 0s 0.5s;
  transform: scale(1, 10);
  transform-origin: top center;
}
.menu-ele-container.about > div:nth-child(1) { background: #645fe2; }
.menu-ele-container.journey > div:nth-child(1) { background: #34cdd2; }
.menu-ele-container.reading > div:nth-child(1) { background: #5cb2ff; }
.menu-ele-container.souvenir > div:nth-child(1) { background: #ffb897; }

.menu-ele-container-submenu {
  background: #fff;
  display: none;
  height: auto;
  width: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.menu-ele-container-submenu.is-open { display: block; }

.submenu-ele-container {
  position: relative;
  height: auto;
  width: 100%;
  background: #5cb2ff;
  border-top: 1px solid #fff;
}
.submenu-ele-container.last { margin-bottom: 0; }

.menu-ele-container > div:nth-child(2),
.submenu-ele-container > div {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translate(0%, -50%);
  text-align: center;
  line-height: 1;
  font-size: 5vh;
  letter-spacing: 0.2em;
}
.submenu-ele-container > div {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  font-size: 3vh;
  padding: 1em 0;
}

.menu-ele-container h2 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: inherit;
}
.menu-ele-container a,
.submenu-ele-container a {
  color: #fff;
  text-decoration: none;
}
.aaas-menu-container .eng { letter-spacing: 0.15em !important; }

.menu-ele-container.menu-header {
  width: 100%;
  height: 20%;
  background-size: auto 7vh;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("/pages/assets/uploads/2020/08/menu-header-img.png");
  transform: translate(0%, -100%);
  background-color: #5653cd;
  transition: transform 0.4s 0.5s;
}
.aaas-menu-container.open .menu-ele-container.menu-header {
  transition: transform 0.4s, height 500ms;
}
.menu-ele-container.menu-header.en {
  background-image: url("/pages/assets/uploads/2020/08/menu-header-img-en.png");
}

.menu-ele-container.expanding { height: 28% !important; }
.menu-ele-container.colapsing { height: 18% !important; }

.menu-arrow {
  position: absolute;
  width: 1em !important;
  height: 0.4em;
  left: calc(50% + 2.75em) !important;
  top: 50%;
  transform: translate(0%, -50%);
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("/pages/assets/uploads/2020/08/icon-menu-arrow.svg");
  font-size: 5vh;
}
.menu-arrow.en { left: calc(50% + 5em) !important; }
.menu-arrow.active { transform: translate(0%, -50%) rotate(180deg); }

.aaas-menu-container.open .menu-ele-container {
  transform: translate(0%, 0%);
  transition: transform 0.4s, height 400ms;
}
.aaas-menu-container.open .menu-ele-container > div:nth-child(1) {
  transform: scale(1, 1);
  transition: transform 0.8s;
}
.aaas-menu-container.open .menu-ele-container.reading { transition-delay: 0.1s; }
.aaas-menu-container.open .menu-ele-container.journey { transition-delay: 0.2s; }
.aaas-menu-container.open .menu-ele-container.about { transition-delay: 0.3s; }
.aaas-menu-container.open .menu-ele-container.menu-header { transition-delay: 0.3s; }

.aaas-menu-container.open .menu-ele-container.menu-header.expanding,
.aaas-menu-container.open .menu-ele-container.menu-header.colapsing,
.aaas-menu-container.open .menu-ele-container.reading.expanding,
.aaas-menu-container.open .menu-ele-container.reading.colapsing,
.aaas-menu-container.open .menu-ele-container.journey.expanding,
.aaas-menu-container.open .menu-ele-container.journey.colapsing,
.aaas-menu-container.open .menu-ele-container.about.expanding,
.aaas-menu-container.open .menu-ele-container.about.colapsing {
  transition-delay: 0s !important;
}

.icon-container.menu-close {
  position: fixed;
  top: 1.35em;
  right: 1.4em;
  z-index: 1001;
  width: 2.15em;
  height: 2.15em;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  /* SVG X is white — keep button transparent so it shows on the purple header */
  background-color: transparent;
  background-image: url("/pages/assets/uploads/2020/08/icon-menu-close.svg");
  background-position: center;
  background-size: 60%;
  background-repeat: no-repeat;
  transform: scale(0);
  transition: transform 0.3s;
}
.aaas-menu-container.open .icon-container.menu-close {
  transform: scale(1);
  transition: transform 0.3s 0.6s;
}
