/* 02-base.css — Portal shell, main layout, topbar, content scroll */

/* Skip link — visible only on keyboard focus */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--cobalt);
  color: white;
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Utility */
.hidden { display: none !important; }

/* ══════════════════════════════════════
   PORTAL SHELL
══════════════════════════════════════ */
.portal-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh; overflow: hidden;
}

/* ══════════════════════════════════════
   MAIN
══════════════════════════════════════ */
.main {
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
}

.topbar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--rule);
  padding: 0 48px; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}

.topbar-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 300; color: var(--text-light-aa);
}

.topbar-breadcrumb-sep { opacity: 0.4; }

.topbar-breadcrumb-current { color: var(--cobalt); font-weight: 500; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

/* Topbar inline badges */
.topbar-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 20px;
  white-space: nowrap;
  cursor: default;
}

.topbar-badge-icon { font-size: 12px; line-height: 1; }

.topbar-designation {
  background: rgba(184,146,74,0.12);
  color: var(--gold);
  border: 1px solid rgba(184,146,74,0.25);
}

.topbar-pathway {
  background: rgba(184,92,56,0.10);
  color: var(--terracotta);
  border: 1px solid rgba(184,92,56,0.25);
  cursor: pointer;
  transition: background 0.2s;
}

.topbar-pathway:hover { background: rgba(184,92,56,0.18); }


.topbar-user-email {
  font-size: 11px; color: var(--text-light); cursor: pointer;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar-user-email:hover { color: var(--cobalt); }
.topbar-user {
  width: 30px; height: 30px;
  background: var(--cobalt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: white; cursor: pointer;
}

.content-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  background: var(--cream);
}

.content-scroll::-webkit-scrollbar { width: 8px; }
.content-scroll::-webkit-scrollbar-track { background: rgba(44,31,20,0.05); }
.content-scroll::-webkit-scrollbar-thumb { background: rgba(44,31,20,0.3); border-radius: 4px; }
.content-scroll::-webkit-scrollbar-thumb:hover { background: rgba(44,31,20,0.45); }
