/* Platform shell (October 2026 reorganisation): the grouped sidebar and the calm Home.
   Loaded last so it refines styles.css, reformation.css, phase39/45.css and responsive.css.
   No inline styles anywhere (the Content-Security-Policy forbids them). */

/* ------------------------------------------------------------------ sidebar: groups and sections */
/* .nav-item sets display:flex, which beat the browser's own [hidden] rule, so the workspace filter
   used to leave every item on screen. Hidden now means hidden everywhere in the menu. */
.main-nav [hidden] { display: none !important; }
.main-nav { gap: 2px; align-content: start; }
.nav-cluster { display: grid; gap: 1px; }

.nav-group { display: flex; align-items: center; gap: 8px; width: 100%; margin: 10px 0 2px; padding: 8px 10px; border: 0; border-radius: 10px;
  color: rgba(255, 255, 255, .52); background: transparent; font: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  text-align: left; text-transform: uppercase; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.nav-cluster:first-child .nav-group { margin-top: 0; }
.nav-group:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav-group:focus-visible { outline: 2px solid var(--rf-gold, #f0b429); outline-offset: 1px; }
.nav-group-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-group .nav-badge { margin-left: 0; animation: none; }
.nav-chevron { flex: 0 0 auto; font-size: 15px; line-height: 1; opacity: .7; transform: rotate(90deg); transition: transform .2s ease; }
.nav-cluster.collapsed .nav-chevron { transform: none; }

.nav-cluster-body { display: grid; gap: 1px; padding-bottom: 4px; }
.nav-cluster.collapsed .nav-cluster-body { display: none; }
.main-nav.filtering .nav-cluster.collapsed .nav-cluster-body { display: grid; }
.nav-subsection { display: grid; gap: 1px; }
.nav-subsection + .nav-subsection { margin-top: 4px; }
.nav-section { margin: 6px 12px 2px; color: rgba(255, 255, 255, .34); font-size: 11px; font-weight: 650; letter-spacing: .01em; }

/* Tablet icon rail: every icon stays reachable (collapsed groups included) and group headers become
   thin dividers; hovering, focusing or opening the menu restores titles, sections and collapsing. */
@media (min-width: 640px) and (max-width: 1099px) {
  .sidebar:not(:hover):not(:focus-within):not(.open) .nav-group { height: 1px; margin: 10px 8px; padding: 0; overflow: hidden; color: transparent; background: rgba(255, 255, 255, .12); pointer-events: none; }
  .sidebar:not(:hover):not(:focus-within):not(.open) .nav-cluster:first-child .nav-group { display: none; }
  .sidebar:not(:hover):not(:focus-within):not(.open) .nav-section { display: none; }
  .sidebar:not(:hover):not(:focus-within):not(.open) .nav-cluster.collapsed .nav-cluster-body { display: grid; }
  .sidebar:hover .nav-group, .sidebar:focus-within .nav-group, .sidebar.open .nav-group { height: auto; margin: 10px 0 2px; padding: 8px 10px; color: rgba(255, 255, 255, .52); background: transparent; }
}

/* ------------------------------------------------------------------ Home */
.hm-host { display: grid; gap: 20px; }
.hm-host > :empty { display: none; }
.hm-top { display: grid; gap: 16px; }
.hm-host .p43-strip, .hm-host .p44-shortcuts, .hm-host .p45-pinned { margin: 0; }
/* Pinning stays one tap away on every workspace; Home itself no longer nags about it. */
.hm-host .p45-pinned.empty { display: none; }

/* The hero: deep NIIT navy lit by a slow radiance. */
.hm-hero { background: linear-gradient(140deg, #041726 0%, #062640 55%, #0a3354 100%); box-shadow: 0 24px 60px -32px rgba(4, 23, 38, .65); }
.hm-hero::after { content: none; }
.hm-radiance { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hm-radiance span { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .34; mix-blend-mode: screen;
  animation: hmRadianceHue 36s ease-in-out infinite, hmRadianceDrift 48s ease-in-out infinite alternate; }
.hm-radiance span:nth-child(1) { top: -30%; right: -8%; }
.hm-radiance span:nth-child(2) { bottom: -38%; left: -10%; animation-delay: -12s, -16s; }
.hm-radiance span:nth-child(3) { top: 10%; left: 38%; width: 34%; opacity: .22; animation-delay: -24s, -32s; }
/* Teal, sky, violet and gold trade places; each field is a third of a cycle apart. */
@keyframes hmRadianceHue {
  0%, 100% { background-color: #2dd4bf; }
  25% { background-color: #38bdf8; }
  50% { background-color: #a78bfa; }
  75% { background-color: #f6c453; }
}
@keyframes hmRadianceDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 8%, 0) scale(1.12); }
}
.hm-hero h2 span { background: linear-gradient(90deg, #ffffff 0%, #fde7a6 22%, #b5f0e6 48%, #d4d8ff 72%, #ffffff 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: hmGreetingGlow 24s ease-in-out infinite alternate; }
@keyframes hmGreetingGlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hm-brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 8px 20px rgba(0, 0, 0, .3); }
.hm-tagline { color: rgba(255, 255, 255, .72); }
.hm-chip { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); font-weight: 600; }
.hm-hero-aside { min-height: 0; }
.hm-clock { padding: 20px 26px; border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); box-shadow: none; }
.hm-clock-sec { color: #b5f0e6; }
.hm-clock .hm-clock-zone { color: rgba(255, 255, 255, .55); }

/* Cards: quiet surfaces, one hairline, a gentle lift on hover. */
.hm-card { box-shadow: 0 1px 2px rgba(15, 30, 45, .04); transition: box-shadow .25s ease, border-color .25s ease; }
.hm-card:hover { border-color: var(--rf-hairline-strong); box-shadow: 0 14px 34px -22px rgba(15, 30, 45, .35); }
.hm-pulse-tile { box-shadow: none; }

/* Leadership operations detail: folded away under one quiet bar until it is wanted. */
.legacy-overview { display: block; margin-top: 4px; padding-top: 0; border-top: 0; }
.legacy-overview[hidden] { display: none; }
.legacy-overview > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--rf-hairline); border-radius: 18px;
  background: var(--rf-surface); list-style: none; cursor: pointer; transition: border-color .2s ease; }
.legacy-overview > summary::-webkit-details-marker { display: none; }
.legacy-overview > summary::after { content: "›"; margin-left: auto; color: var(--rf-text-3); font-size: 18px; transform: rotate(0deg); transition: transform .2s ease; }
.legacy-overview[open] > summary::after { transform: rotate(90deg); }
.legacy-overview > summary:hover { border-color: var(--rf-hairline-strong); }
.legacy-overview > summary:focus-visible { outline: 2px solid var(--rf-gold); outline-offset: 2px; }
.legacy-overview > summary .eyebrow { margin: 0; }
.legacy-overview > :not(summary) { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .hm-radiance span, .hm-hero h2 span { animation: none; }
  .nav-chevron, .nav-group, .hm-card, .legacy-overview > summary::after { transition: none; }
}
