/* Theme configuration bindings; original page styles stay in their owning files. */
body[data-page='index'] .hero-description,
body[data-page='index'] .capability-description,
body[data-page='index'] .home-subscription p,
body[data-page='index'] .foundation-description,
body[data-page='index'] .foundation-principle p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.site-footer-address,
.about-contact .gx-contact-address {
  white-space: pre-line;
}
.site-footer-tagline {
  white-space: pre-line;
}
.source-footer .footer-column h4 a {
  display: inline;
  margin: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
  color: inherit;
}
.source-footer .footer-column h4 a:hover {
  color: var(--accent);
}

.gx-nav-group {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.gx-nav-top {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}
.gx-nav-top > a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 13px;
  color: var(--ink);
}
.gx-nav-group.active .gx-nav-top > a {
  color: var(--accent);
  font-weight: 650;
}
.gx-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.gx-nav-toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.gx-nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.gx-subnav {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 200px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 12px 32px #0824491a;
}
.gx-subnav[hidden] {
  display: none;
}
.gx-subnav a {
  display: block;
  padding: 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
}
.gx-subnav a:hover,
.gx-subnav a:focus-visible,
.gx-subnav a.active {
  background: #f0f5f2;
  color: var(--accent);
}
@media (max-width: 760px) {
  .gx-nav-group {
    display: block;
    height: auto;
  }
  .gx-nav-top {
    height: 44px;
    justify-content: space-between;
    padding: 0 10px;
  }
  .gx-nav-top > a {
    flex: 1;
  }
  .gx-nav-toggle {
    width: 44px;
    height: 44px;
  }
  .gx-subnav {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 16px;
  }
  .nav.mobile-open {
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
}
/* Unmapped original-site links are plain text, without fake hash navigation. */
a[data-gx-unlinked], .announcement:not([href]), .foundation-news-entry:not([href]) { cursor: default; }
.gx-news-empty { color: var(--muted, #64748b); padding: 20px 0; }
.header-actions { position: relative; min-width: 0; }
.gx-auth-guest, .gx-auth-user { display: flex; align-items: center; gap: 23px; }
.gx-auth-user { min-width: 0; }
.gx-auth-guest[hidden], .gx-auth-user[hidden], .gx-auth-message[hidden] { display: none; }
.gx-auth-account { display: inline-flex; align-items: center; gap: 8px; max-width: 180px; min-width: 0; min-height: 38px; padding: 8px 12px; border: 1px solid #c6e5d7; border-radius: 8px; background: #edf7f1; color: #08784f; font-size: 14px; font-weight: 600; transition: background .18s, border-color .18s; }
.gx-auth-account:hover { background: #def1e6; border-color: #8cc9aa; }
.gx-auth-account svg { flex: 0 0 auto; }
.gx-auth-account span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-auth-logout { border: 0; padding: 10px 0; background: transparent; color: var(--muted, #64748b); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.gx-auth-logout:disabled { opacity: .5; cursor: wait; }
.gx-auth-account:focus-visible, .gx-auth-logout:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gx-auth-message { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 10px 12px; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 6px; color: var(--muted, #64748b); font-size: 12px; box-shadow: 0 6px 20px #0824491a; }
@media (max-width: 760px) {
  .gx-auth-guest, .gx-auth-user { gap: 12px; }
  .header-actions .gx-auth-guest .login { display: inline-flex; align-items: center; min-height: 40px; }
  .gx-auth-account { max-width: 106px; min-height: 36px; padding: 7px 8px; gap: 5px; font-size: 13px; }
  .gx-auth-account svg { width: 14px; height: 14px; }
  .gx-auth-logout { min-height: 40px; }
}
