/* Canonical sticky hub menu — identical on every da.fimpo.net page */
.hub-nav {
  --hn-bg: rgba(12, 18, 16, 0.94);
  --hn-ink: #e8efe9;
  --hn-mute: #9aada3;
  --hn-line: rgba(232, 239, 233, 0.12);
  --hn-accent: #c4a35a;
  --hn-btn: rgba(255, 255, 255, 0.04);
  --hn-btn-hover: rgba(255, 255, 255, 0.08);
  --hn-btn-active-bg: rgba(196, 163, 90, 0.16);
  --hn-btn-active-border: rgba(196, 163, 90, 0.45);

  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--hn-line);
  background: var(--hn-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--hn-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

.hub-nav-brand {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  color: inherit;
  justify-self: start;
  min-width: 0;
}

.hub-nav-mark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--hn-ink);
}

.hub-nav-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hn-mute);
}

.hub-nav-links {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.hub-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--hn-mute);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--hn-line);
  background: var(--hn-btn);
  border-radius: 2px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hub-nav-links a:hover {
  color: var(--hn-ink);
  background: var(--hn-btn-hover);
  border-color: rgba(232, 239, 233, 0.22);
}

.hub-nav-links a.is-active {
  color: var(--hn-ink);
  background: var(--hn-btn-active-bg);
  border-color: var(--hn-btn-active-border);
  box-shadow: inset 0 -2px 0 var(--hn-accent);
}

/* Right column balances the brand so links stay visually centered */
.hub-nav-trail,
.hub-nav-spacer {
  grid-column: 3;
  justify-self: end;
  min-width: 0;
}

.hub-nav-spacer {
  width: 1px;
  height: 1px;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.hub-nav-trail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--hn-mute);
}

.hub-nav-trail .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
  background: #666;
}

.hub-nav-trail .dot.ok {
  background: #3dba7a;
}

.hub-nav-trail .dot.off {
  background: #c45c4a;
}

@media (max-width: 720px) {
  .hub-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0.55rem 0.85rem;
  }

  .hub-nav-brand,
  .hub-nav-links,
  .hub-nav-trail,
  .hub-nav-spacer {
    grid-column: 1;
    justify-self: center;
  }

  .hub-nav-spacer {
    display: none;
  }

  .hub-nav-links {
    flex-wrap: wrap;
  }

  .hub-nav-links a {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
  }
}
