/* shared/sjcc-nav.css — the hub's tools pane, the phone's "Tools and more" and "Your tools" (MO-X S2.2).
   Hub only (index.html), with shared/sjcc-nav.js. Colours are the theme's tokens; every text below measures ≥ 4.5:1 on its
   own background (--ink 17:1, --ink-2 7.6:1 on white and 6.9:1 on --brand-soft, --brand on --brand-soft 10:1, white on
   #b91c1c 6.5:1). The focus ring is 3 px and never removed.

   WIDTHS (the tool frame is never 1024 px or less because of the pane): the pane is a flex child of <main>, so the tool
   area is the window less its width. From 1536 px it is 232 px (1536 − 232 = 1304: Reports keeps its full layout); from
   1100 px 56 px of icons (1100 − 56 = 1044); under 1100 px nothing (the crumb bar's "Tools" opens it over the page); at
   600 px and under the phone has no pane at all. The media defaults below hold the space before the module runs; the
   module's data-mode (the person's fold choice) overrides them. */
#navPane{flex:0 0 auto;position:relative;width:0;min-height:0;background:var(--surface);border-right:0 solid var(--line);font-size:var(--fs-body)}
@media (min-width:1100px){#navPane{width:56px;border-right-width:1px}}
@media (min-width:1536px){#navPane{width:232px}}
#navPane[data-mode="open"]{width:232px;border-right-width:1px}
#navPane[data-mode="icons"]{width:56px;border-right-width:1px}
#navPane[data-mode="none"]{width:0;border-right-width:0}

.np-panel{position:absolute;inset:0;display:flex;flex-direction:column;min-height:0;background:var(--surface)}
#navPane[data-mode="none"]:not(.np-over) .np-panel{display:none}
/* Over the page: the in-flow width stays (56 px, or nothing), the list opens on top of the tool. */
#navPane.np-over .np-panel{right:auto;width:272px;z-index:82;border-right:1px solid var(--line);box-shadow:var(--sh-3)}
.np-backdrop{display:none;position:fixed;inset:0;z-index:81;background:rgba(15,23,42,.28)}
#navPane.np-over .np-backdrop{display:block}

/* The pane's own glyphs (star, chevron, fold): drawn like the shared icon set's .sjcc-i, under a class of this module's own. */
.np-svg{display:inline-block;flex:0 0 auto;width:1.15em;height:1.15em;vertical-align:-.16em;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.np-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* "Skip to the tool": the pane's first stop, seen only while it has the focus. */
.np-skip{position:absolute;left:4px;top:4px;z-index:5;padding:8px 12px;border:0;border-radius:var(--r-sm);background:var(--dark);color:#fff;font:inherit;font-size:var(--fs-small);
  white-space:nowrap;cursor:pointer}
.np-skip:not(:focus){width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}
.np-skip:focus{outline:3px solid var(--focus);outline-offset:0}

.np-top{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:8px 8px 6px;border-bottom:1px solid var(--line-subtle)}
.np-fold,.np-find{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);color:var(--ink-2);cursor:pointer}
.np-fold:hover,.np-find:hover{background:var(--brand-soft);color:var(--brand);border-color:var(--brand-line)}
.np-fold .np-svg,.np-find .sjcc-i{width:18px;height:18px}
.np-find{display:none}
.np-jump{flex:1;min-width:0;position:relative;display:flex;align-items:center}
.np-jump-in{width:100%;height:36px;padding:0 30px 0 10px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:var(--fs-body)}
.np-jump-in::placeholder{color:var(--ink-2)}
.np-jump kbd{position:absolute;right:7px;top:50%;transform:translateY(-50%);min-width:18px;padding:0 4px;border:1px solid var(--line-strong);border-radius:4px;background:var(--sunken);color:var(--ink-2);font:600 11px/16px var(--mono);text-align:center}

/* position:relative — the list is the containing block of every visually-hidden label inside it (.np-sr; in the icons look
   the section and group headings too). Without it those labels were placed against .np-panel, escaped this list's clip and
   gave the hub's <main> hundreds of pixels of hidden room to scroll: a tool's own scrollIntoView() then slid the whole row,
   this pane's top included, up under the header (the operator's report, 15 Nov 2026; hub-header-pane.browser.mjs). */
.np-scroll{flex:1;min-height:0;position:relative;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:6px 6px 14px}
.np-ul{list-style:none;margin:0;padding:0}
.np-ul[hidden]{display:none}
.np-top-ul{margin-bottom:2px}
.np-sec,.np-grp{margin-top:6px}
.np-sh{padding:8px 8px 4px;font-size:var(--fs-micro);font-weight:var(--fw-bold);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--ink-2)}
.np-gh{display:flex;align-items:center;gap:6px;width:100%;min-height:30px;padding:4px 8px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink-2);font:inherit;font-size:var(--fs-micro);font-weight:var(--fw-bold);letter-spacing:var(--track-caps);text-transform:uppercase;text-align:left;cursor:pointer}
.np-gh:hover{background:var(--sunken)}
.np-gh[aria-disabled="true"]{cursor:default}
.np-gh .np-chev{width:12px;height:12px;flex:0 0 auto;transition:transform var(--t-fast)}
.np-gh[aria-expanded="true"] .np-chev{transform:rotate(90deg)}
.np-gname{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-gn{flex:0 0 auto;font-weight:var(--fw-semi);letter-spacing:0}
.np-gdot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:#b91c1c}
@media (prefers-reduced-motion:reduce){.np-gh .np-chev{transition:none}}

.np-row{position:relative;display:flex;align-items:center;gap:2px}
.np-item{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:36px;padding:0 8px;border-radius:var(--r-sm);color:var(--ink);text-decoration:none;line-height:1.25}
/* A row the hub opens itself (Messages) is a button: the link's look, the hover and the current mark still win (polish sweep 2). */
button.np-item{border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;width:100%}
.np-item:hover{background:var(--brand-soft);color:var(--brand)}
.np-ico{position:relative;flex:0 0 auto;display:inline-flex;color:var(--ink-2)}
/* A letter on a glyph shared with another tool (the Registrar's Secretariat's "R"): --ink on white, 17:1. */
.np-mark{position:absolute;right:-6px;bottom:-5px;min-width:12px;height:12px;padding:0 2px;border:1px solid var(--line-strong);border-radius:4px;
  background:var(--surface);color:var(--ink);font:700 9px/10px var(--font);text-align:center;letter-spacing:0}
.np-ico .sjcc-i{width:18px;height:18px}
.np-item:hover .np-ico{color:var(--brand)}
.np-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-ext{flex:0 0 auto;color:var(--ink-2);font-size:12px}
.np-item[aria-current="page"]{background:var(--brand-soft);color:var(--brand);font-weight:var(--fw-bold);box-shadow:inset 3px 0 0 var(--brand)}
.np-item[aria-current="page"] .np-ico{color:var(--brand)}
.np-badge{flex:0 0 auto;min-width:20px;height:20px;padding:0 6px;border-radius:var(--r-pill);background:#b91c1c;color:#fff;font-size:11px;font-weight:var(--fw-bold);line-height:20px;text-align:center}
.np-pin{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink-2);cursor:pointer;opacity:0}
.np-pin .np-star{width:16px;height:16px;fill:none}
.np-pin[aria-pressed="true"]{opacity:1;color:var(--warn)}
.np-pin[aria-pressed="true"] .np-star{fill:currentColor}
.np-row:hover .np-pin,.np-pin:focus{opacity:1}
.np-pin:hover{background:var(--sunken)}
.np-item:focus-visible,.np-gh:focus-visible,.np-pin:focus-visible,.np-fold:focus-visible,.np-find:focus-visible,.np-cell:focus-visible,.np-chip:focus-visible,.np-crumb-tools:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.np-jump-in:focus-visible{outline:3px solid var(--focus);outline-offset:-1px}

/* Icons (56 px): every entry as its icon (its name stays its accessible name and its tooltip); no headers, no pins. */
#navPane[data-look="icons"] .np-top{flex-direction:column;padding:8px 0 6px;gap:6px}
#navPane[data-look="icons"] .np-jump{display:none}
#navPane[data-look="icons"] .np-find{display:inline-flex}
#navPane[data-look="icons"] .np-scroll{padding:4px 6px 12px;scrollbar-width:none}
#navPane[data-look="icons"] .np-scroll::-webkit-scrollbar{display:none}
#navPane[data-look="icons"] .np-sh,#navPane[data-look="icons"] .np-gh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);padding:0;margin:-1px}
/* The seven groups (and Pinned, Recent) apart in the rail: a thin rule each, so place helps memory. */
#navPane[data-look="icons"] .np-sec,#navPane[data-look="icons"] .np-grp{margin:6px 4px 0;padding-top:6px;border-top:1px solid var(--line-strong)}
#navPane[data-look="icons"] .np-ul[hidden]{display:block}
/* Recent repeats tools listed below it: in the rail it would draw one icon twice, so it is left to the full list. */
#navPane[data-look="icons"] .np-sec[data-sec="recent"]{display:none}
#navPane[data-look="icons"] .np-item{justify-content:center;padding:0;gap:0}
#navPane[data-look="icons"] .np-name,#navPane[data-look="icons"] .np-ext{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#navPane[data-look="icons"] .np-pin{display:none}
/* "Tools": the rail's way to the whole list (on a touch screen nothing hovers). */
#navPane[data-look="icons"] .np-fold{flex-direction:column;gap:1px;width:46px;height:46px}
#navPane[data-look="icons"] .np-fold .sjcc-i{width:18px;height:18px}
.np-fold-cap{font-size:10px;font-weight:var(--fw-semi);line-height:1;color:var(--ink-2)}
#navPane[data-look="icons"] .np-fold:hover .np-fold-cap{color:var(--brand)}
#navPane[data-look="icons"] .np-badge{position:absolute;top:1px;right:1px;min-width:16px;height:16px;padding:0 4px;font-size:10px;line-height:16px}

/* The rail's names, at once beside it (hover with a mouse or a pen, keyboard focus). White on --dark: 17:1. */
.np-tip{position:fixed;left:0;top:0;z-index:90;display:none;max-width:260px;padding:6px 10px;border-radius:var(--r-sm);background:var(--dark);color:#fff;
  font:var(--fw-semi) 12.5px/1.3 var(--font);white-space:nowrap;box-shadow:var(--sh-2);pointer-events:none}
.np-tip.on{display:block}
.np-tip::before{content:"";position:absolute;left:-5px;top:50%;margin-top:-5px;border:5px solid transparent;border-left:0;border-right-color:var(--dark)}

/* Touch: ≥ 44 px targets. */
@media (pointer:coarse){
  .np-item,.np-gh{min-height:44px}
  .np-pin{width:44px;height:44px;opacity:1}
  .np-fold,.np-find,.np-jump-in{height:44px}
  .np-fold,.np-find{width:44px}
}

/* The crumb bar's "Tools" (601–1099 px, where there is no pane). */
.np-crumb-tools{display:none;align-items:center;gap:5px;margin:-2px 2px -2px 0;padding:3px 9px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:12px;font-weight:var(--fw-semi);cursor:pointer}
.np-crumb-tools .sjcc-i{width:15px;height:15px}
.np-crumb-tools:hover{background:var(--brand-soft);color:var(--brand)}
html.np-m-none .np-crumb-tools{display:inline-flex}

/* "Your tools" — drawn only on the phone; the tile groups stay in the page (the pane reads them). */
.np-yt{display:none}

/* ── the phone (≤ 600 px) ── */
@media (max-width:600px){
  #navPane{display:none}
  html.np-ready #tiles .tile-group{display:none}
  .np-yt{display:block;margin:0 0 22px}
  .np-yt-head{display:flex;align-items:center;gap:12px;margin:0 0 10px}
  .np-yt-head::after{content:"";flex:1;height:1px;background:var(--line)}
  .home .np-yt-h{margin:0;font-size:var(--fs-micro);font-weight:var(--fw-bold);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--ink-2)}
  .np-yt-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .np-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-height:78px;padding:8px 4px;
    border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);box-shadow:var(--sh-1);color:var(--ink);font:inherit;font-size:11.5px;
    font-weight:var(--fw-semi);line-height:1.2;text-align:center;text-decoration:none;cursor:pointer}
  .np-cell .np-ico{color:var(--brand)}
  .np-cell .np-ico .sjcc-i{width:22px;height:22px}
  .np-cell .np-name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
  .np-cell .np-badge{position:absolute;top:4px;right:4px}
  .np-all{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand)}

  /* More's sheet: "Tools and more". Rows ≥ 48 px, the pin 44 px. */
  .np-sheet{padding:0 2px 4px}
  .np-sheet-title{margin:0 0 8px;padding:0 8px;font-size:17px;font-weight:var(--fw-bold);color:var(--ink)}
  .np-sheet-jump{display:block;padding:0 4px 4px}
  .np-sheet-jump .np-jump-in{height:48px;padding:0 12px;font-size:16px}
  .np-sheet .np-item{min-height:48px;font-size:15px;padding:0 10px}
  .np-sheet .np-gh{min-height:44px;font-size:11.5px}
  .np-sheet .np-pin{width:44px;height:44px;opacity:1}
  .np-sheet .np-ico .sjcc-i{width:20px;height:20px}
  .np-chips{list-style:none;margin:0;padding:0 2px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .np-chipli{position:relative}
  .np-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:78px;padding:8px 4px;border:1px solid var(--line);border-radius:var(--r-md);
    background:var(--surface);color:var(--ink);font-size:11.5px;font-weight:var(--fw-semi);line-height:1.2;text-align:center;text-decoration:none}
  .np-chip[aria-current="page"]{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
  .np-chip .np-name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
  .np-chip .np-badge{position:absolute;top:4px;left:4px}
  .np-chipli.is-pinned .np-chip{padding-top:18px}
  .np-chip-pin{position:absolute;top:0;right:0;width:44px;height:44px}
  .np-actions-h{margin-top:8px}
}
/* The narrowest phones (under 360 px): three across, so a name is never split inside a word ("Leadershi/p", "Secretari/at"
   at four across on 320 px; landing pass, 2026-11-15). */
@media (max-width:359px){
  .np-yt-grid,.np-chips{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Print: the pane, its tooltip and the crumb bar's "Tools" are the screen's way around, never on paper (review of #704). */
@media print{#navPane,.np-tip,.np-crumb-tools{display:none!important}}
