/* Canonical Kituwa top menu, shared by hub.kituwa.com and portfolio.kituwa.com. */
.k-topbar {
  position: relative;
  z-index: 60;
  background: #f2ece2;
  border-bottom: 1px solid #0e1116;
  color: #0e1116;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
}
.k-topbar-inner {
  width: min(1220px, 100% - 48px);
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.k-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #0e1116; }
.k-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #0e1116; color: #f2ece2;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 700; font-size: 15px;
}
.k-brand-text { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.k-brand-text small {
  display: block; margin-top: 2px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: #536172;
}
.k-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.k-nav a {
  padding: 7px 0 6px;
  border-bottom: 2px solid transparent;
  color: #536172; text-decoration: none;
  font-size: 14px; line-height: 1;
}
.k-nav a:hover { color: #0e1116; }
.k-nav a[aria-current="page"] { color: #0e1116; border-bottom-color: #ff4a24; }
.k-actions { display: flex; align-items: center; gap: 10px; }
.k-admin {
  padding: 9px 13px; border: 1px solid #c9c0b4; border-radius: 999px;
  color: #536172; text-decoration: none; font-size: 12.5px; white-space: nowrap;
}
.k-admin:hover { border-color: #0e1116; color: #0e1116; }
.k-admin-session {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1px solid #c9c0b4; border-radius: 999px;
  color: #536172; font-size: 11.5px; white-space: nowrap;
}
.k-admin-session[hidden], .k-admin[hidden] { display: none !important; }
.k-admin-dot { width: 7px; height: 7px; border-radius: 50%; background: #2bc48a; flex: none; }
.k-admin-open { color: #0e1116; text-decoration: none; font-weight: 650; }
.k-admin-logout { border: 0; background: transparent; color: #536172; font: inherit; padding: 0; cursor: pointer; text-decoration: underline; }
.k-admin-logout:hover { color: #0e1116; }
.k-start {
  padding: 10px 15px; border-radius: 999px;
  background: #0e1116; color: #f2ece2;
  text-decoration: none; font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.k-start:hover { background: #ff4a24; color: #fff; }
.k-menu-toggle {
  display: none; width: 40px; height: 40px; margin-left: auto;
  border: 1px solid #c9c0b4; border-radius: 9px; background: transparent;
  padding: 9px; cursor: pointer;
}
.k-menu-toggle span { display: block; height: 2px; margin: 4px 0; background: #0e1116; }

/* Hub-only admin submenu, kept below the shared top menu. */
.k-subnav {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  width: min(1220px, 100% - 48px); margin: 0 auto; padding: 10px 0;
  border-bottom: 1px solid #d8d0c4;
}
.k-subnav a { color: #536172; text-decoration: none; font-size: 12.5px; }
.k-subnav a:hover, .k-subnav a[aria-current="page"] { color: #0e1116; }

@media (max-width: 1080px) {
  .k-topbar-inner { gap: 16px; }
  .k-nav { gap: 14px; }
  .k-nav a { font-size: 13px; }
  .k-admin-label { display: none; }
}
@media (max-width: 900px) {
  .k-topbar-inner { flex-wrap: wrap; }
  .k-menu-toggle { display: block; }
  .k-actions { margin-left: 0; }
  .k-nav {
    display: none; order: 4; width: 100%;
    margin: 6px 0 0; padding: 10px 0 2px;
    border-top: 1px solid #d8d0c4;
    flex-direction: column; align-items: flex-start; gap: 2px;
  }
  .k-topbar.k-open .k-nav { display: flex; }
  .k-nav a { width: 100%; padding: 9px 0; border-bottom: 0; }
  .k-nav a[aria-current="page"] { color: #ff4a24; }
}
@media (max-width: 560px) {
  .k-topbar-inner { width: calc(100% - 32px); }
  .k-brand-text { font-size: 17px; }
  .k-admin { display: none; }
  .k-admin-session { padding: 6px 8px; font-size: 10.5px; }
  .k-admin-label, .k-admin-logout { display: none; }
  .k-start { padding: 9px 13px; }
  .k-subnav { width: calc(100% - 32px); }
}
