/* [2026-09-21, SPEC 128 W7, D7] THE SHELL SHEET - HIDE THE NAVIGATION.
   A's reversal of R41, in his own words: "the press should put the whole
   navigation away, not shrink half of it." §118's press minified the 248px
   rail to 56px and R41 SPARED the CRM sub-column, the tab bar and the sub-bar
   by name; this round the same press hides all four.

   WHY THIS FILE EXISTS AT ALL, AND IT IS NOT A PREFERENCE. `srm.css` and
   `srm.js` are pinned to the character by ten exact-equality gates
   (829,969 / 253,445), so the state cannot be added by widening
   `body.is-navmin`'s selectors where they stand. A new sheet, linked between
   `_base.html:14` and `:15`, is the only way to override the shell from
   outside it without moving one byte of the two registers. `srm-shell.js` is
   its other half for the same reason.

   IT LOADS AFTER `srm.css` AND BEFORE `{% block page_styles %}`, which is
   what makes both halves of this file win and still leaves every page sheet
   above it: `--sidebar-w` is re-pointed at the same specificity srm.css:225
   uses for `body.is-navmin` (0,1,1), so document order decides and this file
   is later; and `crm-incoming.css` can still re-express the Incoming page's
   own height band under the same state (`crm-incoming.css`, D20).

   DESKTOP ONLY (≥980), AND THE BREAKPOINT IS THE SHELL'S OWN. Below 980 the
   sidebar does not exist (`srm.css:183-186`) and the tab bar IS the
   navigation - hiding it would leave a reader on a phone with no way to
   anywhere. The press keeps its §118 behaviour there, which is visually
   inert, because `srm-shell.js` declines the event under 980 and lets
   `srm.js`'s S118a have it.

   THE BATCH BAR FOLLOWS WITH NO RULE OF ITS OWN. `.srm-batchbar` is
   `position: fixed` and a descendant of neither the aside nor `.srm-body`;
   it reads `--sidebar-w` for its grid pad (`srm.css:2553-2555`), so
   re-pointing that token to zero on <body> takes its gutter with it and the
   bar lands on the main's own `--sp-6` edge. That is the same mechanism
   `body.is-navmin` uses, which is why the token is re-pointed here rather
   than the bar being named. */
@media (min-width: 980px) {
  body.is-navhidden { --sidebar-w: 0px; }

  /* ALL FOUR NAMED ONE BY ONE. A collapsed selector would let three of them
     fall out of a later edit silently - INBOX-RD-22's own lesson, one
     surface along, where the Focus block was re-aimed and the four selectors
     kept their own lines for exactly this reason. */
  body.is-navhidden .srm-sidebar,
  body.is-navhidden .srm-subrail,
  body.is-navhidden .srm-tabbar,
  body.is-navhidden .srm-subbar { display: none; }
}
