/* Canonical Kituwa top menu, shared by hub.kituwa.com and portfolio.kituwa.com. */
.k-adminbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: #171310;
  color: #fffaf1;
  border-bottom: 2px solid #ff4d2e;
}
.k-adminbar[hidden] { display: none !important; }
.k-adminbar-inner {
  width: min(1220px, 100% - 48px);
  margin: 0 auto;
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}
.k-adminbar-label { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; white-space: nowrap; }
.k-adminbar-label strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.k-adminbar-dot {
  width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%;
  background: #ff4d2e; box-shadow: 0 0 0 4px rgba(255, 77, 46, .18);
}
.k-adminbar-links { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.k-adminbar-links::-webkit-scrollbar { display: none; }
.k-adminbar-links a {
  padding: 4px 9px; border-radius: 999px; color: #fffaf1;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.k-adminbar-links a:hover, .k-adminbar-links a:focus-visible { background: #ff4d2e; color: #fff8ef; }
.k-adminbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; white-space: nowrap; }
.k-adminbar-admin { color: #fffaf1; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.k-adminbar-admin:hover { color: #ffd9d0; }
.k-adminbar-logout {
  padding: 4px 11px; border: 1px solid #fffaf1; border-radius: 999px;
  background: transparent; color: #fffaf1; font: inherit; font-size: 11px;
  font-weight: 700; line-height: 1.2; cursor: pointer;
}
.k-adminbar-logout:hover { background: #ff4d2e; border-color: #ff4d2e; color: #fff8ef; }
.k-adminbar-logout:disabled { opacity: .65; cursor: wait; }
@media (max-width: 760px) {
  .k-adminbar-inner { flex-wrap: wrap; row-gap: 4px; }
  .k-adminbar-links { order: 3; width: 100%; }
  .k-adminbar-actions { gap: 8px; }
}
@media (max-width: 460px) {
  .k-adminbar-admin { display: none; }
}
.k-topbar {
  position: relative;
  z-index: 60;
  background: #f7f4ee;
  border-bottom: 1px solid #ded8cd;
  color: #23231f;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
}
.k-topbar-inner {
  width: min(1220px, 100% - 48px);
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.k-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #23231f; }
.k-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #232820; color: #efece3;
  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: #615e57;
}
.k-nav { display: flex; align-items: center; gap: clamp(13px, 2vw, 26px); margin-left: auto; }
.k-nav a {
  padding: 10px 0 8px;
  border-bottom: 2px solid transparent;
  color: #615e57; text-decoration: none;
  font-size: 13px; line-height: 1;
  white-space: nowrap;
}
.k-nav a:hover { color: #23231f; }
.k-nav a[aria-current="page"] {
  color: #23231f;
  border-bottom-color: #a83120;
  font-weight: 650;
}
.k-actions { display: flex; align-items: center; gap: 10px; }
.k-admin {
  padding: 10px 13px; border: 1px solid #ded8cd; border-radius: 8px;
  color: #615e57; text-decoration: none; font-size: 12.5px; white-space: nowrap;
}
.k-admin:hover { border-color: #a69985; color: #23231f; }
.k-admin-session {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid #ded8cd; border-radius: 8px;
  color: #615e57; 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: 11px 16px; border-radius: 8px;
  background: #232820; color: #efece3;
  text-decoration: none; font-size: 13px; font-weight: 650; white-space: nowrap;
}
.k-start:hover { background: #a83120; color: #fff; }
/* The sign-in entry stays reachable on a phone, inside the opened menu,
   where the desktop pill would not fit next to Start a build. */
.k-admin-mobile { display: none; }
.k-menu-toggle {
  display: none; width: 40px; height: 40px; margin-left: auto;
  border: 1px solid #ded8cd; border-radius: 8px; 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 #ded8cd;
}
.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-admin-mobile { display: block; }
  .k-nav a[aria-current="page"] { color: #a83120; }
}
@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); }
}
