/* ══════════════════════════════════════════════════════
   CSA Intranet 2026 — Layout v2
   ══════════════════════════════════════════════════════ */
body.is-intranet { background: var(--bg); }

body.is-intranet header.wp-block-template-part,
body.is-intranet footer.wp-block-template-part,
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part { display: none !important; }
body.is-intranet .wp-site-blocks,
body.is-intranet .is-layout-constrained,
body.is-intranet .wp-block-post-content,
body.is-intranet .entry-content {
  max-width: 100% !important; padding: 0 !important; margin: 0 !important;
}

/* ── NAV ── */
.csa-shell-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  height: 58px;
  background: var(--steel);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 0;
}
.admin-bar .csa-shell-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .csa-shell-header { top: 46px; } }

.csa-shell-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 22px;
  border-right: 1px solid rgba(255,255,255,0.09);
  flex-shrink: 0;
  text-decoration: none;
}
.csa-brand-mark {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast);
  overflow: hidden;
}
.csa-brand-mark:hover { background: var(--orange-h); }
.csa-brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.csa-shell-title {
  font-size: 13px; font-weight: 600;
  color: #fff; letter-spacing: 0.01em; line-height: 1.2;
}
.csa-shell-subtitle {
  font-size: 10px; color: rgba(255,255,255,0.38);
  letter-spacing: 0.11em; text-transform: uppercase; font-weight: 400;
}

.csa-sub-brands {
  display: flex; gap: 3px; padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,0.09);
}
.csa-sub-pill {
  font-size: 11px; font-weight: 500;
  padding: 4px 11px; border-radius: var(--r-pill);
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  white-space: nowrap;
  background: none;
  font-family: var(--font-sans);
}
.csa-sub-pill:hover { color: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.14); }
.csa-sub-pill.active {
  color: var(--orange-lt);
  border-color: rgba(232,93,32,0.38);
  background: rgba(232,93,32,0.10);
}

.csa-shell-nav {
  display: flex; gap: 2px; padding-left: 18px;
  flex: 1;
  overflow-x: auto;
}
.csa-nav-link {
  font-size: 13px; color: rgba(255,255,255,0.46);
  padding: 6px 12px; border-radius: 7px;
  cursor: pointer; transition: all var(--t-fast); white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; font-family: var(--font-sans);
}
.csa-nav-link:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.88); text-decoration: none; }
.csa-nav-link.active { color: #fff; background: rgba(255,255,255,0.10); }
.csa-nav-badge {
  background: var(--orange); color: #fff;
  border-radius: var(--r-pill); padding: 1px 6px;
  font-size: 10px; font-weight: 600; min-width: 16px; text-align: center;
  font-family: var(--font-sans);
}

.csa-shell-user {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.csa-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
  font-family: var(--font-sans);
  flex-shrink: 0;
}
.csa-shell-username { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 500; line-height: 1.2; }
.csa-shell-live-indicator { font-size: 10px; color: rgba(255,255,255,0.32); }
.csa-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #1E9E62; display: inline-block;
  animation: csaPulse 2s infinite;
}
@keyframes csaPulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.csa-nav-logout {
  color: rgba(255,255,255,0.45);
  font-size: 11px; padding: 5px 10px;
  border-radius: 7px; border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; transition: all var(--t-fast);
  background: none; font-family: var(--font-sans);
  text-decoration: none;
}
.csa-nav-logout:hover { color: #fff; border-color: rgba(255,255,255,0.28); text-decoration: none; }

/* ── CONTENT WRAPPER ── */
.csa-shell-content {
  max-width: 100%;
  padding: 0 28px 40px;
  margin-top: 58px;
  min-height: calc(100vh - 58px);
}
.admin-bar .csa-shell-content { margin-top: calc(58px + 32px); }

/* ── PAGE HEADER ── */
.csa-dash-title-row, .csa-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; padding: 26px 0 0; margin-bottom: 0;
}
.csa-page-title { font-size: 21px; font-weight: 500; line-height: 1.2; color: var(--text); }
.csa-dash-subtitle, .csa-page-sub {
  font-size: 12px; color: var(--text3); margin-top: 3px;
}
.csa-dash-header-actions, .csa-head-btns {
  display: flex; gap: 8px; flex-shrink: 0;
}

/* ── GRID SYSTEM ── */
.csa-row { display: grid; gap: var(--gap-md); margin-top: var(--gap-lg); }
.csa-cols-4   { grid-template-columns: repeat(4, minmax(0,1fr)); }
.csa-cols-3   { grid-template-columns: repeat(3, minmax(0,1fr)); }
.csa-cols-2   { grid-template-columns: repeat(2, minmax(0,1fr)); }
.csa-cols-3-1 { grid-template-columns: minmax(0,1.85fr) minmax(0,1fr); }
.csa-cols-2-1 { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }

/* ── INTRANET SHELL ── */
.csa-intranet-shell { width: 100%; min-height: 100vh; }
