/* 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 .lf-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);
}

.lf-nav-group {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.lf-nav-top {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}
.lf-nav-top > a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 13px;
  color: var(--ink);
}
.lf-nav-group.active .lf-nav-top > :is(a, .lf-nav-trigger) {
  color: var(--accent);
  font-weight: 650;
}
.lf-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.lf-nav-toggle.lf-nav-trigger {
  width: auto;
  height: 44px;
  gap: 4px;
  padding: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}
.lf-nav-toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.lf-nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.lf-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;
}
.lf-subnav[hidden] {
  display: none;
}
.lf-subnav a {
  display: block;
  padding: 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
}
.lf-subnav a:hover,
.lf-subnav a:focus-visible,
.lf-subnav a.active {
  background: #f0f5f2;
  color: var(--accent);
}
@media (max-width: 760px) {
  .lf-nav-group {
    display: block;
    height: auto;
  }
  .lf-nav-top {
    height: 44px;
    justify-content: space-between;
    padding: 0 10px;
  }
  .lf-nav-top > a {
    flex: 1;
  }
  .lf-nav-toggle {
    width: 44px;
    height: 44px;
  }
  .lf-nav-toggle.lf-nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding-inline-end: 16px;
  }
  .lf-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-lf-unlinked], .announcement:not([href]), .foundation-news-entry:not([href]) { cursor: default; }
.lf-news-empty { color: var(--muted, #64748b); padding: 20px 0; }
.header .brand img {
  max-height: calc(var(--site-header-height, 84px) - 16px);
  object-fit: contain;
  object-position: left center;
}
.header-actions { position: relative; min-width: 0; }
.lf-auth-guest, .lf-auth-user { display: flex; align-items: center; gap: 23px; }
.lf-auth-user { min-width: 0; }
.lf-auth-guest[hidden], .lf-auth-user[hidden], .lf-auth-message[hidden] { display: none; }
.lf-auth-account {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #c6e5d7;
  border-radius: 50%;
  background: #edf7f1;
  color: #08784f;
  transition: background .18s, border-color .18s;
}
.lf-auth-account:hover { background: #def1e6; border-color: #8cc9aa; }
.lf-auth-account > svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}
.lf-auth-account > [data-lf-auth-name] {
  display: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.lf-auth-account[data-lf-auth-initials] > svg { display: none; }
.lf-auth-account[data-lf-auth-initials] > [data-lf-auth-name] { display: block; }
.lf-auth-logout { border: 0; padding: 10px 0; background: transparent; color: var(--muted, #64748b); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.lf-auth-logout:disabled { opacity: .5; cursor: wait; }
.lf-auth-account:focus-visible, .lf-auth-logout:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lf-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) {
  .lf-auth-guest, .lf-auth-user { gap: 12px; }
  .header .brand {
    flex-shrink: 1;
    min-width: 0;
  }
  .header .brand img {
    max-width: 100%;
  }
  .header .brand > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions .lf-auth-guest .login {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    min-height: 40px;
    white-space: nowrap;
  }
  .header .menu-toggle {
    flex: none;
  }
  .playground-content > .floating-notice {
    position: static;
    width: 44px;
    height: 44px;
    margin: 12px 0 0 auto;
  }
  .lf-auth-logout { min-height: 40px; }
}

@media (max-width: 360px) {
  body[data-page='models'] .header-inner,
  body[data-page='models'] .lf-auth-guest {
    gap: 8px;
  }
}

.site-footer-no-channels .site-footer-identity {
  grid-row: auto;
}
@media (width > 1100px) {
  .source-footer .site-footer-no-channels {
    grid-template-columns: minmax(250px, 1fr) minmax(330px, 1.15fr);
  }
}
.site-footer-codes figcaption {
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-footer-qr-trigger {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.site-footer-qr-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.site-footer-channel-link {
  align-self: start;
  color: var(--accent);
  font-size: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
.site-footer-channel-link:hover {
  text-decoration: underline;
}
.qr-entry-modal h2 {
  padding-inline-end: 24px;
  overflow-wrap: anywhere;
}
.qr-entry-image {
  display: block;
  width: min(188px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 6px;
  background: #fff;
  border-radius: 4px;
}
