/* Shared nebx header and footer. Generated for every nebx site; keep identical across repositories. */
.nx-header, .nx-footer { font-family: inherit; -webkit-font-smoothing: antialiased; }
.nx-header *, .nx-footer * { box-sizing: border-box; }
.nx-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.nx-header a, .nx-footer a { text-decoration: none; }

.nx-header { position: sticky; top: 0; z-index: 60; color: #f5f5f7; background: rgba(0, 0, 0, 0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-top: env(safe-area-inset-top, 0px); }
.nx-bar { display: flex; align-items: center; gap: 10px; height: 56px; }
.nx-brand { display: inline-flex; align-items: center; flex: none; }
.nx-brand img { display: block; height: 24px; width: auto; }
.nx-crumb { color: #a1a1a6; font-size: 15px; font-weight: 600; white-space: nowrap; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.18); line-height: 20px; }
.nx-crumb:hover { color: #f5f5f7; }
.nx-nav { display: flex; gap: 2px; margin-left: auto; min-width: 0; }
.nx-nav a, .nx-gh { color: #d2d2d7; font-size: 13px; font-weight: 500; line-height: 1.4; padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.nx-nav a:hover, .nx-gh:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nx-nav a[aria-current="page"] { color: #000; background: #81ffd9; }
.nx-gh { border: 1px solid rgba(255, 255, 255, 0.2); margin-left: 6px; }

.nx-menu { display: none; position: relative; margin-left: auto; }
.nx-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #f5f5f7; font-size: 14px; font-weight: 600; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; user-select: none; }
.nx-menu summary::-webkit-details-marker { display: none; }
.nx-burger, .nx-burger::before, .nx-burger::after { display: block; width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nx-burger { position: relative; }
.nx-burger::before, .nx-burger::after { content: ""; position: absolute; left: 0; }
.nx-burger::before { top: -4.5px; }
.nx-burger::after { top: 4.5px; }
.nx-menu[open] .nx-burger { background: transparent; }
.nx-menu[open] .nx-burger::before { transform: translateY(4.5px) rotate(45deg); }
.nx-menu[open] .nx-burger::after { transform: translateY(-4.5px) rotate(-45deg); }
.nx-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #111113; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); max-height: calc(100vh - 90px); overflow-y: auto; }
.nx-panel a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; color: #f5f5f7; }
.nx-panel a:hover { background: rgba(255, 255, 255, 0.07); }
.nx-panel a[aria-current="page"] { background: rgba(129, 255, 217, 0.12); }
.nx-panel a[aria-current="page"] b { color: #81ffd9; }
.nx-panel b { font-size: 15px; font-weight: 700; }
.nx-panel span { font-size: 13px; color: #a1a1a6; }

@media (max-width: 900px) {
  .nx-nav, .nx-gh { display: none; }
  .nx-menu { display: block; }
}
@media (max-width: 360px) { .nx-menu-label { display: none; } }

.nx-footer { background: #000; color: #a1a1a6; font-size: 14px; line-height: 1.6; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: env(safe-area-inset-bottom, 0px); }
.nx-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 36px; }
.nx-about { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.nx-about p { margin: 0; max-width: 34ch; }
.nx-brand img[width="96"] { height: 26px; }
.nx-note { font-size: 13px; color: #86868b; }
.nx-h { margin: 0 0 12px; color: #f5f5f7; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.nx-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nx-footer ul a { color: #d2d2d7; }
.nx-footer ul a:hover { color: #fff; text-decoration: underline; }
.nx-footer ul a[aria-current="page"] { color: #81ffd9; }
.nx-footer .foot-consent { background: none; border: 0; padding: 0; color: #d2d2d7; font: inherit; cursor: pointer; text-align: left; }
.nx-footer .foot-consent:hover { color: #fff; text-decoration: underline; }
.nx-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #86868b; }
.nx-legal a { color: #d2d2d7; }
.nx-legal a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) {
  .nx-cols { grid-template-columns: 1fr 1fr; }
  .nx-about { grid-column: 1 / -1; }
}
