/* Shared MERIDIAN header — imported by the main and elevator pages */
.meridian-shell {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.meridian-shell.is-stuck {
  border-bottom-color: #e2e1da;
  box-shadow: 0 6px 24px -18px rgba(16, 20, 24, 0.5);
}
.meridian-shell .header-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  height: 80px;
  margin: 0 auto;
  padding: 0 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}
.meridian-shell .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  justify-self: start;
  color: #101418;
  text-decoration: none;
}
.meridian-shell .brand svg { width: 20px; height: 20px; flex: none; }
.meridian-shell .brand-logo { display: block; width: 230px; height: auto; flex: none; }
.meridian-shell .brand-name {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.meridian-shell .brand-divider { width: 1px; height: 15px; background: #deddd6; }
.meridian-shell .brand-sub {
  color: #6e7477;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.meridian-shell .nav {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-self: center;
  margin-left: 0;
}
.meridian-shell .nav a {
  position: relative;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: #4a5052;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s ease;
}
.meridian-shell .nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: #2a7156;
  transition: right 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.meridian-shell .nav a:hover,
.meridian-shell .nav a[aria-current="page"] { color: #101418; }
.meridian-shell .nav a[aria-current="page"]::after { right: 0; }
.meridian-shell .header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
  justify-self: end;
}
.meridian-shell .lang { position: relative; flex: none; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; }
.meridian-shell .lang summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid #e2e1da;
  border-radius: 999px;
  color: #101418;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.meridian-shell .lang summary::-webkit-details-marker { display: none; }
.meridian-shell .lang summary svg { width: 12px; height: 8px; transition: transform 0.2s ease; }
.meridian-shell .lang[open] summary svg { transform: rotate(180deg); }
.meridian-shell .lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  min-width: 148px;
  padding: 6px;
  border: 1px solid #e2e1da;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 20, 24, 0.14);
}
.meridian-shell .lang[open] .lang-menu { animation: meridianLangSlide 0.2s ease-out both; }
.meridian-shell .lang-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 5px;
  color: #777d80;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  text-decoration: none;
}
.meridian-shell .lang-menu a:hover,
.meridian-shell .lang-menu a.is-active { color: #101418; background: #f3f2ed; }
@keyframes meridianLangSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.meridian-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: #101418;
  color: #fff;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.78;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease;
}
.meridian-shell .btn:hover { background: #1e2429; transform: translateY(-1px); }
@media (max-width: 1180px) {
  .meridian-shell .header-inner { padding-left: 48px; padding-right: 48px; }
  .meridian-shell .nav { gap: 20px; }
  .meridian-shell .brand-divider,
  .meridian-shell .brand-sub { display: none; }
}
@media (max-width: 900px) {
  .meridian-shell .header-inner { height: 68px; padding-left: 24px; padding-right: 24px; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
  .meridian-shell .brand-logo { width: 185px; }
  .meridian-shell .nav,
  .meridian-shell .header-actions .btn { display: none; }
}

/* Responsive navigation keeps every destination available on small screens. */
.port-mobile-menu { display: none; }
.meridian-shell :focus-visible {
  outline: 2px solid #2a7156;
  outline-offset: 4px;
}
@media (min-width: 901px) {
  .meridian-shell .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; padding-inline: 32px; }
  .meridian-shell .nav { gap: clamp(24px, 2.3vw, 36px); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .meridian-shell .brand-logo { width: 170px; }
  .meridian-shell .nav { gap: 22px; }
  .meridian-shell .nav a { font-size: 12px; }
}
@media (max-width: 900px) {
  .meridian-shell .header-inner { padding-inline: 16px; gap: 12px; }
  .meridian-shell .brand-logo { width: clamp(128px, 34vw, 185px); }
  .meridian-shell .header-actions { gap: 8px; }
  .meridian-shell .lang summary { padding: 10px; min-height: 44px; box-sizing: border-box; }
  .port-mobile-menu { display: block; }
  .port-mobile-menu > summary {
    display: flex; align-items: center; min-height: 44px; padding: 0 10px;
    border: 1px solid #e2e1da; border-radius: 6px; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 500; list-style: none;
  }
  .port-mobile-menu > summary::-webkit-details-marker { display: none; }
  .port-mobile-links {
    position: absolute; top: 100%; left: 0; right: 0; display: grid;
    padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid #e2e1da;
    box-shadow: 0 16px 24px -20px rgba(16,20,24,.3);
  }
  .port-mobile-links a { padding: 14px 10px; color: #101418; text-decoration: none; font-size: 15px; }
  .port-mobile-links a:hover { background: #f3f2ed; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .meridian-shell * { animation: none !important; transition: none !important; }
}

/* Highlight only the current page or the section selected in the navigation. */
.meridian-shell .nav a[aria-current="location"] { color: #101418; }
.meridian-shell .nav a[aria-current="location"]::after { right: 0; }
.port-mobile-links a[aria-current] { color: #2a7156; font-weight: 600; }

/* Enquiry channels belong to the content, never to a viewport edge. */
.enquiry { max-width: 100%; min-width: 0; }
.enquiry .enquiry-label { margin: 0 0 9px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; color: inherit; letter-spacing: 0; }
.channel-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.channel-row .channel { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 0; padding: 9px 14px; border: 1px solid #c0cec6; border-radius: 6px; background: #fff; color: #1b3931; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; }
.channel svg { flex: none; }
.channel-row .channel:hover { background: #e7f2e9; border-color: #698676; }
.channel-row .channel:focus-visible,.wechat-dialog button:focus-visible,.enquiry-more:focus-visible { outline: 3px solid #276b52; outline-offset: 3px; }
.hero--landscape .channel:focus-visible,.hero--landscape .enquiry-more:focus-visible { outline-color: white; }
.enquiry-more { display: inline-flex; width: fit-content; align-items: center; gap: 9px; min-height: 40px; color: inherit; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.enquiry-end { padding-block: 30px 56px; }
.category-brief .enquiry { margin-top: 18px; }
.wechat-dialog { position: fixed; inset: 0; box-sizing: border-box; margin: auto; width: min(352px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 22px 24px 26px; overflow: auto; background: #fff; color: #1b3931; border: 1px solid #ccd6cf; border-radius: 12px; text-align: start; }
.wechat-dialog:not([open]) { display: none; }
.wechat-dialog::backdrop { background: rgba(8,22,19,.55); }
.wechat-head { display: flex; align-items: center; justify-content: space-between; }
.wechat-head h2 { margin: 0; font: inherit; font-size: 22px; font-weight: 650; letter-spacing: 0; }
.wechat-head form { margin: 0; } .wechat-head button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.wechat-placeholder { display: grid; place-items: center; margin: 18px auto; width: min(148px,100%); aspect-ratio: 1; border: 1px dashed #829888; border-radius: 5px; background: #f3f6f3; font-size: 13px; color: #486052; }
.wechat-dialog .wechat-id { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.wechat-dialog #wechat-note { margin: 0; font-size: 14px; line-height: 1.65; color: #4c5e55; }
@media (max-width: 600px) {
  .channel-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 400px; }
  .channel-row .channel { min-width: 0; padding-inline: 8px; font-size: 13px; }
  .channel-row .channel:last-child:nth-child(3) { grid-column: 1 / -1; }
  .channel-row .channel svg { width: 15px; height: 15px; flex: none; }
}
@media (min-width: 375px) and (max-width: 600px) {
  .channel-row:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .channel-row .channel:last-child:nth-child(3) { grid-column: auto; }
}
