/* joq embed — club's own layer over joq's stylesheets (app/joq/index.php links this
   right after joq's CSS and the two inline theme blocks, so it still wins).
   Was a 770-line inline <style> in index.php, re-sent with every frame page; a file
   is cached by the browser and Cloudflare. The link's ?v= is this file's mtime, so
   an edit shows at once. Font URLs are relative to this file (app/joq/fonts/). */
/* FONTS, re-declared same-origin.
   A @font-face fetch is CORS-checked even when the stylesheet declaring it has
   already loaded, and dev.joq.app sends no Access-Control-Allow-Origin on its
   .woff2 files — so linking joq's CSS cross-origin gave a page in fallback
   faces with every Tabler glyph missing. These same files are served from
   club's own docroot, where nginx already adds `Access-Control-Allow-Origin: *`
   to fonts, so the browser accepts them. Declared AFTER joq's sheets so these
   win; same family names, so nothing else has to change.
   Proxying the CSS instead does NOT work here: unmeta.net's nginx matches
   `\.css$`/`\.woff2$` in a location with no @router fallback, so a virtual
   path with those extensions 404s before PHP ever runs. */
@font-face { font-family:'Figtree'; font-style:normal; font-weight:300 900; font-display:swap;
  src:url('fonts/figtree-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Figtree'; font-style:normal; font-weight:300 900; font-display:swap;
  src:url('fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Instrument Serif'; font-style:italic; font-weight:400; font-display:swap;
  src:url('fonts/instrument-serif-italic.woff2') format('woff2'); }
@font-face { font-family:'tabler-icons'; font-style:normal; font-weight:400;
  src:url('fonts/tabler-icons.woff2') format('woff2'); }

/* ── THE SECOND ROW (JOQ_NAV_LAYOUT = 'top') ──────────────────────────────
   Club's header is the first row of this page, so joq's bar is a sub-nav
   underneath it rather than a header in its own right: club's flat white and a
   hairline rule instead of joq's tinted blur, and the tabs pushed out to club's
   own left margin instead of centred in joq's narrower content column.

   That margin arrives from the outer page (joq:hostgutter) — see the note
   there for why it is measured rather than recomputed. The 32px fallback is
   joq's own .dtop padding, for the case where the message never lands.

   Scoped :not(.joq-nav-side) so the rail further down does not have to undo
   each of these one by one. Two layouts declaring the same properties on the
   same element, with only source order deciding, is how a half-restyled bar
   happens; a mode that is simply not selected cannot leak. */
html:not(.joq-nav-side) .dtop {
  background: #fff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
html:not(.joq-nav-side) .dtop-in {
  max-width: none; margin: 0;
  padding-left: var(--host-gutter, 32px);
  padding-right: var(--host-gutter, 32px);
  /* min-height + gap are .club-header-row's, so this row stands as tall as the
     one on /club/main and puts the same air between the tabs and the button */
  justify-content: flex-start; gap: 16px; min-height: 40px;
}

/* ── THE TABS, IN CLUB'S OWN SUBMENU SHAPE ────────────────────────────────
   Two sub-navs on one site that disagree read as two sites: club's own submenu
   (Main · News Feed · Directory · Teams · Circles) is underline tabs — #333
   text, #2557A7 and a 3px rule when active or hovered — while joq's is a dark
   pill. This row sits in exactly the place club's does, one under the site
   header, so it follows club.

   Every value below is COPIED FROM .club-tab-row .nav-link
   (core/club/includes/club_header.php) rather than matched by eye, so the two
   rows cannot drift apart on someone else's re-theme. If that block changes,
   change this one.

   The 20px side padding is also what ALIGNS the two: the row already starts on
   club's container edge (the --host-gutter handshake above), and club's own
   tabs are then inset by their padding — so copying it is what puts "Feed"
   under "Main" rather than 20px to its left.

   Scoped `.dtop .dnav a` (0,2,1) to beat joq's `.dnav a` (0,1,1) on specificity.
   The .dtop rules above win on source order alone, being the same element, but a
   descendant rule that relies on order is one stylesheet reshuffle from silently
   losing — and a tab that half-restyles is worse than one that doesn't. */
html:not(.joq-nav-side) .dtop .dnav { gap: 0; }
html:not(.joq-nav-side) .dtop .dnav a {
  padding: 8px 20px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--host-nav-text);
  font-weight: 500;
  line-height: 1.2;
  transition: color .2s, border-color .2s;
}
html:not(.joq-nav-side) .dtop .dnav a:hover,
html:not(.joq-nav-side) .dtop .dnav a.active {
  background: transparent;
  color: var(--host-accent);
  border-bottom-color: var(--host-accent);
}

/* ── THE LEFT RAIL (JOQ_NAV_LAYOUT = 'side') ──────────────────────────────
   The same three things as the row above — the tabs, "+ Post a job", the bell —
   stood on their side into a column beside the content. No new markup and no
   JS: render() and syncEmpNav() keep writing into .dnav and #droleui exactly as
   they do in 'top' mode, so an employer's injected "Employer dashboard" tab,
   the labels, the lit tab and the bell's unread count all arrive for free.

   That is the whole reason this is a restyle and not a second nav. A static
   copy of those tabs in this file would be a second source of truth for which
   surfaces a role gets, what each is called and which one is active — the
   exact thing syncEmpNav's own header warns against — and it would paint the
   seeker's set for a frame before the script corrected it.

   Desktop only. Below 760px joq hides .dtop everywhere, dev.joq.app included,
   and the bottom .tabbar is the nav; a rail down there would be a club-only
   invention with no room to sit beside anything. */
@media (min-width: 760px) {
  /* 230px held the old 14px labels. At 15px/600 with a 22px icon slot in front
     of them, "Employer dashboard" — joq's longest row, and longer than anything
     on Learning's rail — wrapped to two lines and broke the even rhythm the
     rest of the list depends on. Widened to fit it on one. */
  html.joq-nav-side { --joq-rail-w: 252px; }

  /* .shell is a flex COLUMN in joq's stylesheet — header stacked over content.
     Two side-by-side columns instead. The only other children at this width are
     already display:none (.status-bar, .tabbar, .home-bar) or out of flow
     (#dim, #sheet, #toast and the <svg> symbol defs), so the grid has exactly
     two items and the overlays keep .shell as their containing block.

     Deliberately NO padding on .shell for the gutter: #dim is inset:0 against
     it, and a padded shell would leave an undimmed strip down the left every
     time a sheet opened. The gutter goes on the rail's own padding instead. */
  html.joq-nav-side .shell {
    display: grid;
    grid-template-columns: calc(var(--joq-rail-w) + var(--host-gutter, 32px)) minmax(0, 1fr);
    align-items: start;
  }

  html.joq-nav-side .dtop {
    display: block;
    /* CONTENT height, not row height. The grid row is as tall as the 13,000px
       feed beside it, so a stretched rail would put the tabs at the top of a
       column whose bottom is twenty screens away — and would break the
       translate below, which only works on a box shorter than the screen. */
    align-self: start;
    background: #fff;
    backdrop-filter: none;
    border-bottom: 0;
    /* left padding is club's own margin, same joq:hostgutter handshake the top
       row uses — so the rail starts under club's logo, not 32px to the left */
    padding: 18px 16px 24px var(--host-gutter, 32px);
    /* its own compositor layer: it is re-translated on every scroll frame, and
       without one each move repaints the rail (part of the scroll shake, Oct 5 2026) */
    will-change: transform;
  }
  /* STICKINESS IS ALREADY THERE — do not add position: sticky.
     body.joq-embed-pagescroll .dtop translates by --vis-top (see the EMBEDDED,
     PAGE-SCROLLED block in joq-demo.css), which was written to keep the top bar
     on the visible edge and does exactly the same job for a rail. sticky would
     resolve against a 13,000px document with no scrollport of its own and never
     fire; the host's published slice is the only thing there is to pin to. */

  /* The divider belongs to the CONTENT, not the rail. A border on a
     content-height rail stops 200px down and leaves the feed running past a
     white void; #view is the full document height, so its left edge draws the
     line all the way — and stays put while the rail slides down past it. */
  html.joq-nav-side #view { border-left: 1px solid var(--border); }

  /* PINNED PLACEMENT (Oct 22 2026): the html/ joq build adds in-flow children to
     .shell beside the rail — the "sample data" line (#joq-sample) and the
     connectivity banner (.joq-net, when shown). Auto-placement put the sample line
     in the content column and pushed #view under the rail. The rail now spans every
     row of column 1 and everything else stacks in column 2; the last row is 1fr so
     the rail's height lands there, not on the short rows above #view. */
  html.joq-nav-side .shell { grid-template-rows: auto auto 1fr; }
  html.joq-nav-side .dtop { grid-column: 1; grid-row: 1 / span 3; }

  /* THE RAIL NO LONGER FOLLOWS THE SCROLL (Nov 13 2026, on request: "sidebar is
     flickering while scrolling"). Pinning it meant re-translating .dtop by
     --vis-top on every scroll event, and the browser always paints the scrolled
     page BEFORE that event runs, so the rail trailed the page by a frame and shook.
     No script can close that gap from inside a content-height frame. So the rail
     now scrolls with the page like any other content: it is stretched down the
     whole column (white panel and its rule reach the bottom) and nothing about it
     changes while scrolling. Overrides the translate in joq-demo.css
     (body.joq-embed-pagescroll .dtop) and the --vis-h stretch on .dtop-in below. */
  html.joq-nav-side body.joq-embed-pagescroll .dtop {
    transform: none; will-change: auto; align-self: stretch;
  }
  html.joq-nav-side body.joq-embed-pagescroll .dtop-in { min-height: 100%; }
  html.joq-nav-side .shell > .joq-sample,
  html.joq-nav-side .shell > .joq-net,
  html.joq-nav-side .shell > #view { grid-column: 2; }

  /* STANDALONE PAGES (/applications/<token> — the application page an email opens) carry no
     app nav: joq hides .dnav and sets html.joq-standalone (statusChrome). The rail
     would stand there empty, so it goes and the page takes the whole width. */
  html.joq-nav-side.joq-standalone .shell { grid-template-columns: minmax(0, 1fr); }
  html.joq-nav-side.joq-standalone .dtop { display: none; }
  html.joq-nav-side.joq-standalone #view { border-left: 0; }
  html.joq-nav-side.joq-standalone .shell { grid-template-rows: none; }
  html.joq-nav-side.joq-standalone .shell > *,
  html.joq-nav-side.joq-standalone .shell > #view { grid-column: auto; }   /* #view: must out-rank the pinned rule's ID */
  /* #view's 8px left margin assumes the rail sits beside it; with no rail it was 8px
     left vs --host-gutter (club's ~288px left margin on a wide screen) right — the panel
     hugged the left edge and left an empty strip on the right (Oct 14 2026). Same
     gutter both sides so it lines up with club's header content. */
  html.joq-nav-side.joq-standalone .shell #view { margin-left: var(--host-gutter, 32px); margin-right: var(--host-gutter, 32px); }

  /* ONE list, not two blocks: 2px is .dnav's own gap, so Feed · Applications ·
     My Account · + Post a job · Notifications read as five rows of the same menu
     rather than tabs with a cluster bolted under them. */
  html.joq-nav-side .dtop-in {
    display: flex; flex-direction: column; align-items: stretch;
    max-width: none; margin: 0; padding: 0;
    gap: 2px; min-height: 0;
  }

  /* #droleui is the REST of that list — "+ Post a job" is row 4 and the bell row
     5 — so DOM order (.dnav, then #droleui) is already menu order and nothing
     needs reordering. A column, not the row it is in 'top' mode. */
  html.joq-nav-side .dtop #droleui {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  }

  /* ROWS 4 AND 5. Selected on data-action rather than on .dcta / .iconbtn:
     #droleui also carries the 🧭 scout button and, signed out, "Log In" — and
     only these two were asked for. See the Log In rule below for why it is
     deliberately left as a button. */
  html.joq-nav-side .dtop #droleui [data-action="post-sheet"],
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"] {
    display: flex; align-items: center; gap: 8px;
    width: 100%; height: auto; min-width: 0;
    padding: 10px 14px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    /* postBtnHtml() and bellHtml() write background / position INLINE
       (joq-demo.js), and an inline declaration outranks any class — the green
       pill and the 36×36 icon box can only be undone with !important. Same trap
       the account chip hit; see the note on chipHtml's inline grey over there. */
    background: transparent !important;
    color: var(--host-nav-text) !important;
    font: inherit;
    font-size: 14px; font-weight: 500; line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
  }
  html.joq-nav-side .dtop #droleui [data-action="post-sheet"]:hover,
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"]:hover,
  /* Notifications is a PAGE now (joq-demo.js notifsView), so its row lights up
     like any other when you are on it. render() puts .active on the bell — the
     same class the nav tabs carry — so this row needs no knowledge of the view. */
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"].active {
    background: var(--host-accent-tint) !important;
    color: var(--host-accent) !important;
    border-left-color: var(--host-accent);
  }

  /* "+ POST A JOB" KEEPS JOQ'S ACCENT. It is the one ACTION among five links, and
     in a flat list of #333 rows the primary CTA was the least visible thing in
     the rail. The other four stay club's neutral/blue because they are
     navigation; this one is not.

     --trust-green-deep (#15803d), NOT --accent (#22C55E): the accent is a BUTTON
     FILL, sized for white text on top of it, and as text ON white it measures
     ~2.3:1 — unreadable. The deep token exists in joq's palette for exactly this
     (see its comment in joq-demo.css) and lands ~5:1 on white, AA for body text.
     Green rather than some new colour because that is what the button has always
     been, and --accent is joq's primary, not a trust state being borrowed.

     A `button` type selector is added so this beats the shared rules above on
     SPECIFICITY (1,3,2 over 1,3,1) rather than on source order — the same
     reasoning as the `.dtop .dnav a` note further up. The !important is not
     about these rules: postBtnHtml() sets colour inline, so nothing without it
     reaches the element at all. */
  html.joq-nav-side .dtop #droleui button[data-action="post-sheet"] {
    color: var(--trust-green-deep, #15803d) !important;
    font-weight: 600;
  }
  html.joq-nav-side .dtop #droleui button[data-action="post-sheet"]:hover {
    background: rgba(21, 128, 61, .08) !important;
    color: var(--trust-green-deep, #15803d) !important;
    border-left-color: var(--trust-green-deep, #15803d);
  }
  /* .iconbtn:active scales to .92 — fine on a 36px square, a lurch on a
     214px-wide row.
     ⚠ `:active` here is the PRESSED pseudo-class. The rule a few lines above is
     `.active`, the CLASS render() puts on this bell while the notifications page
     is open. One dot apart, opposite meanings — do not merge them. */
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"]:active { transform: none; }

  /* THE BELL'S LABEL, read from joq's own data-tip ("Notifications") rather than
     typed in here — the word then cannot drift from the tooltip and the
     aria-label that sit beside it in bellHtml(). */
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"]::after {
    content: attr(data-tip);
  }
  /* fixed slot for the 🔔 so the label starts at one x whatever the glyph
     measures, and so a future icon on any other row lines up with it */
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"] > span:not(.bellb) {
    flex: 0 0 18px; text-align: center;
  }
  /* The unread count was pinned to the corner of a 36px square (top:-4, right:-4).
     On a full-width row that hangs it outside the rail, so it moves to the right
     end of the row instead — the usual place for a count in a menu. display is
     NOT touched: updateBadges() writes it inline per render. */
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"] .bellb {
    top: 50%; right: 12px; transform: translateY(-50%);
  }

  /* "Log In" STAYS A BUTTON. It only exists while signed out, it is the one way
     in from this rail (club's own login hides behind the avatar dropdown — see
     the Sep 22 restoration note above), and a grey menu row would bury it. Set
     apart from the five rows above with a margin rather than a rule. */
  html.joq-nav-side .dtop #droleui .btn-login {
    margin-top: 16px; justify-content: center;
  }

  /* The tabs, still in club's submenu colours — the underline is simply a left
     rule now. Same #333 / #2557A7 as .club-tab-row .nav-link and as 'top' mode
     above; if that block changes, change both of these. */
  html.joq-nav-side .dtop .dnav { display: flex; flex-direction: column; gap: 2px; }
  html.joq-nav-side .dtop .dnav a {
    display: block;
    padding: 10px 14px;
    /* square on the accent side so the left rule reads as a bar and not as a
       sliver of a pill */
    border-radius: 0 8px 8px 0;
    border-bottom: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: var(--host-nav-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;   /* "Employer dashboard" may wrap in a 214px rail */
    transition: color .2s, background-color .2s, border-color .2s;
  }
  html.joq-nav-side .dtop .dnav a:hover,
  html.joq-nav-side .dtop .dnav a.active {
    background: var(--host-accent-tint);
    color: var(--host-accent);
    border-left-color: var(--host-accent);
  }

  /* ═══ THE RAIL AS A MENU, NOT A LIST OF LINKS ═════════════════════════════
     Club's other rails — Learning and dium — are icon + label rows that light
     up as a rounded pill. joq's read as bare text next to them: no icon column
     at all, and an active state drawn as a 3px bar against a square-cornered
     tint. Everything from here overrides the rules just above rather than
     rewriting them, because those are shared with 'top' mode.

     BUILT TO MATCH /club/learning's RAIL, which is the one this was measured
     against: a colour emoji in a fixed slot, the label at 15px/600 rather than
     14px/500, rows tall enough to breathe, and the selected row as a SOLID DARK
     pill with white text — not a tint and a rule.

     ICONS ARE CSS, NOT MARKUP. The rows are built in THREE places — the anchors
     in this file, syncEmpNav() and syncProfileNav() in joq-demo.js — so an
     <img> or <svg> per row would mean one icon set maintained in two files, and
     any row added later arriving without one. A ::before keyed on the row's own
     data-to / data-action attaches the icon wherever the row was built.

     ::before, not ::after, on every row: the bell already spends its ::after on
     the label it reads from data-tip (see above), and one row disagreeing about
     which pseudo holds the icon is how the column stops lining up.

     EMOJI, not a vector set, for the same reason Learning uses them — they are
     the one icon vocabulary already on every platform this renders on, they
     carry their own colour (so they survive the dark pill without a second
     rule), and they need no font. Tabler is loaded here but joq ships a SUBSET
     of it — eye, heart, compass, file-text, lock, arrow-left, check, settings —
     with a woff2 subsetted to match, so anything outside that list renders as
     nothing at all. Not one of these seven rows is in it. */
  html.joq-nav-side .dtop .dnav a,
  html.joq-nav-side .dtop #droleui [data-action="post-sheet"],
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"] {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    border-left: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--host-nav-text) !important;   /* beats the #333 !important set further up */
    --joq-ic: '\f111';           /* a dot (FA circle) for any row this file has not named */
  }
  html.joq-nav-side .dtop .dnav a::before,
  html.joq-nav-side .dtop #droleui [data-action="post-sheet"]::before,
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"]::before {
    content: var(--joq-ic);
    flex: 0 0 22px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    /* FONT AWESOME 6 (Oct 5 2026, user request: one icon set across the app) — was
       emoji. joq-demo.css @imports FA's stylesheet, which registers this face; 900 is
       the free Solid weight. The glyphs take currentColor, so they turn white on the
       selected blue pill along with the label. */
    font-family: 'Font Awesome 6 Free'; font-style: normal; font-weight: 900;
    -webkit-font-smoothing: antialiased;
  }
  html.joq-nav-side .dtop .dnav a[data-to="feed"]    { --joq-ic: '\f14e'; }   /* compass */
  html.joq-nav-side .dtop .dnav a[data-to="apps"]    { --joq-ic: '\f01c'; }   /* inbox */
  html.joq-nav-side .dtop .dnav a[data-to="me"]      { --joq-ic: '\f007'; }   /* user */
  html.joq-nav-side .dtop .dnav a[data-to="dash"]    { --joq-ic: '\e0e3'; }   /* chart-column */
  html.joq-nav-side .dtop .dnav a[data-to="myapps"]  { --joq-ic: '\f1d8'; }   /* paper-plane — an employer's own applications */
  html.joq-nav-side .dtop .dnav a[data-profnav]      { --joq-ic: '\f304'; }   /* pen */
  html.joq-nav-side .dtop .dnav a[data-vouchnav]     { --joq-ic: '\f2b5'; }   /* handshake — "My vouches" (syncVouchNav) */
  html.joq-nav-side .dtop .dnav a[data-to="scout"]   { --joq-ic: '\f1e5'; }   /* binoculars — Scout home (syncScoutNav) */
  html.joq-nav-side .dtop .dnav a[data-to="superadmin"] { --joq-ic: '\f3ed'; }   /* shield-halved — Super admin (syncAdminNav) */
  html.joq-nav-side .dtop #droleui [data-action="post-sheet"]  { --joq-ic: '\2b'; }   /* plus */
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"] { --joq-ic: '\f0f3'; }   /* bell */
  /* ICON COLOURS (Oct 6 2026, user request: "refer the old sidebar … icon image
     colour"). The FA glyphs took currentColor and lost what the emoji they replaced
     carried: 🧭 red needle, 📥 blue tray, 👤 slate bust, 📊 indigo bars, ✏️ orange
     pencil, ➕ purple, 🔔 gold. Each row now sets --joq-ic-c to that colour; the
     selected pill (blue or green) turns its icon white with the label, below. */
  html.joq-nav-side .dtop .dnav a::before,
  html.joq-nav-side .dtop #droleui [data-action="post-sheet"]::before,
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"]::before { color: var(--joq-ic-c, currentColor); }
  html.joq-nav-side .dtop .dnav a[data-to="feed"]    { --joq-ic-c: #EF4444; }
  html.joq-nav-side .dtop .dnav a[data-to="apps"]    { --joq-ic-c: #3B82F6; }
  html.joq-nav-side .dtop .dnav a[data-to="me"]      { --joq-ic-c: #64748B; }
  html.joq-nav-side .dtop .dnav a[data-to="dash"]    { --joq-ic-c: #6366F1; }
  html.joq-nav-side .dtop .dnav a[data-to="myapps"]  { --joq-ic-c: #0EA5E9; }
  html.joq-nav-side .dtop .dnav a[data-profnav]      { --joq-ic-c: #F97316; }
  html.joq-nav-side .dtop .dnav a[data-vouchnav]     { --joq-ic-c: #16A34A; }
  html.joq-nav-side .dtop .dnav a[data-to="scout"]   { --joq-ic-c: #14B8A6; }
  html.joq-nav-side .dtop .dnav a[data-to="superadmin"] { --joq-ic-c: #E11D48; }
  html.joq-nav-side .dtop #droleui [data-action="post-sheet"]  { --joq-ic-c: #8B5CF6; }
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"] { --joq-ic-c: #F59E0B; }
  html.joq-nav-side .dtop .dnav a.active::before,
  html.joq-nav-side .dtop #droleui [data-action="post-sheet"].active::before,
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"].active::before { color: var(--host-on-accent); }
  /* the 🔔 and the "+" were each standing in for an icon. Both now have one, and
     two glyphs in one row would sit where the label starts. The bell's emoji is
     a real span (bellHtml) and the plus is .dcta-plus (postBtnHtml) — neither is
     a pseudo, so hiding them cannot disturb ::before or the ::after label. */
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"] > span:not(.bellb),
  html.joq-nav-side .dtop #droleui .dcta-plus { display: none; }

  /* THE SELECTED ROW IS A SOLID PILL. A tint had to carry the selection on its
     own and, against six other rows at the same weight, barely did.

     CLUB BLUE (#2557A7), not near-black (Sep 28 2026, on request). It was
     #111827 to match Learning's rail, on the argument that a blue block under
     the blue-underlined "Opportunities" competed with it; in use the black pill
     read as heavy and unlike anything else on the page. #2557A7 is the same blue
     as that header underline and this rail's own text links, so it reads as one
     statement of "you are here", and white on it measures ~7:1 (AA/AAA).
     Hover stays a faint tint of the same blue so the two states are related.

     The emoji keep their own colour on top of the fill — which is the whole
     reason they are emoji and not a currentColor mask. */
  html.joq-nav-side .dtop .dnav a:hover,
  html.joq-nav-side .dtop #droleui [data-action="post-sheet"]:hover,
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"]:hover {
    background: var(--host-accent-tint) !important;
    border-left-color: transparent;
  }
  /* :hover repeated on the active row so the grey above cannot take the pill
     back off it on the way past — they are otherwise the same specificity and
     it would come down to source order. */
  html.joq-nav-side .dtop .dnav a.active,
  html.joq-nav-side .dtop .dnav a.active:hover,
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"].active,
  html.joq-nav-side .dtop #droleui [data-action="notif-sheet"].active:hover {
    background: var(--host-accent) !important;
    color: var(--host-on-accent) !important;
    border-left-color: transparent;
    box-shadow: 0 2px 8px var(--host-accent-shadow);
  }
  /* "+ Post a job" while you are ON the post page (render() puts .active on it, as it
     does on the bell). Filled in its own green, not the tabs' blue — it is the one
     action row, and it keeps that identity when selected. `button` + !important to
     beat the green-text rule above, which is itself !important. */
  html.joq-nav-side .dtop #droleui button[data-action="post-sheet"].active,
  html.joq-nav-side .dtop #droleui button[data-action="post-sheet"].active:hover {
    background: var(--trust-green-deep, #15803d) !important;
    color: #fff !important;
    border-left-color: transparent;
    box-shadow: 0 2px 8px rgba(21, 128, 61, .25);
  }

  /* ONE EVEN LIST, NO DIVIDER. Learning's rail runs straight down with nothing
     between its rows, and the hairline this block used to draw was the last
     thing making joq's read as two stacked widgets instead of one menu.
     "+ Post a job" keeps its green (the rule further down) — that is the one
     ACTION among the rows, and now the only thing setting it apart. */
  html.joq-nav-side .dtop #droleui {
    margin-top: 0; padding-top: 0; border-top: 0;
  }
  /* the rows are taller now, so they need room between them to read as a list
     rather than a stack — Learning's rail sits at about this rhythm. */
  html.joq-nav-side .dtop-in,
  html.joq-nav-side .dtop .dnav { gap: 6px; }

  /* ═══ THREE BANDS: GUTTER · RAIL · CARD · GUTTER ══════════════════════════
     The app ran edge-to-edge on the right while the rail kept club's 32px
     margin on the left, so the page was lopsided, and a 1px rule was the only
     thing separating the menu from the content it controls.

     Now the shell is the PAGE and it is grey; the rail sits directly on it with
     no panel of its own (it is a menu, not a card); and the content becomes a
     white card with the SAME gutter on its right as the rail has on its left.
     That symmetry is the point — --host-gutter is club's own left margin,
     measured and published by the host (joq:hostgutter), so both sides move
     together if club's layout ever changes and neither has to be guessed.

     GREY ON .shell, NOT ON body. Club includes this file into its OWN document
     (core/main.php), so its header is in the same page — a background on body
     would repaint club's chrome along with joq's. .shell starts below that
     header and is exactly the area that should change. */
  html.joq-nav-side .shell { background: #f4f4f4; }

  /* .dtop itself stays transparent — its left padding IS club's gutter, and a
     fill there would paint the margin under club's logo.
     LIKE DIUM (Oct 29 2026, on request): Dium's app sits flush under club's
     header — white sidebar, 1px #f0f0f2 rule, white content, grey (#f4f4f4,
     club's theme-bg) only in the gutters. No top/bottom padding here so the
     rail starts at the header like Dium's does. */
  html.joq-nav-side .dtop { background: transparent; padding-top: 0; padding-bottom: 0; padding-right: 0; }

  /* the "Employer account · <company>" banner joq injects at the head of the rail
     (syncEmpBanner in joq-demo.js) — its own block above the first tab */
  html.joq-nav-side .dtop .emp-banner { margin: 0 0 10px; }

  /* THE RAIL IS ITS OWN PANEL (Sep 28 2026, on request). It used to sit bare on
     the grey page ("a menu, not a card"), and in use it did not read as one
     block — six loose rows floating beside the content. The panel goes on
     .dtop-in, the list itself, so it starts exactly where the rows start.

     A TINT, not white: the content card is white, and a second white card would
     compete with it. #eef3fb is a light wash of club blue (#2557A7), so the
     panel, the blue selected pill and club's blue "Opportunities" read as one
     family, and it is distinct from both the grey page and the white content.
     Radius and top edge match #view (14px, 18px down), so the two cards line up. */
  /* Oct 29 2026: the tinted rounded panel is now Dium's flush white sidebar —
     square, no outline, one #f0f0f2 rule on the content side. */
  html.joq-nav-side .dtop-in {
    background: #fff;
    border: 0;
    border-right: 1px solid #f0f0f2;
    border-radius: 0;
    padding: 18px 16px 24px 10px;
    /* FULL HEIGHT OF THE SCREEN, not of the document. The rail is content-height
       on purpose and is kept on screen by translating .dtop by --vis-top (see the
       stickiness note above) — stretching it to the 13,000px document would put
       the panel's bottom twenty screens away and break that translate. --vis-h is
       how much of this frame is visible (published by joq-demo.js from the host),
       so the panel always reaches the bottom of the window while the pinning keeps
       its top in view. 42px = .dtop's 18px top + 24px bottom padding.
       Before the host publishes, --vis-h is 100% of a content-height box, i.e. no
       stretch at all — the panel just fits its rows. */
    box-sizing: border-box;
    min-height: var(--vis-h, 0px);
    /* joq's own CSS gives .dtop-in `justify-content: space-between` (it was a
       horizontal top bar). Harmless while the box was only as tall as its rows;
       with the extra height it split the menu in two and dropped "+ Post a job"
       and Notifications to the bottom of the panel. The rows stay one list. */
    justify-content: flex-start;
  }

  /* THE CONTENT, AS ITS OWN SURFACE. The old border-left is gone — the gap and
     the card edge do that job now, and a rule drawn down the full document
     height was only ever a stand-in for this.

     overflow: hidden so .dhero — which paints its own tint to the very edge —
     is clipped to the radius instead of squaring off the top two corners.
     Safe here: joq sets `position: sticky` nowhere, and #sheet / #dim / #toast
     are anchored to .shell rather than to #view (see the grid note above), so
     nothing that must escape this box lives inside it.

     margin-left is deliberately small: .dtop already carries 16px of padding on
     that side, so 8px here reads as a 24px channel between the menu and the
     card without either number having to know the other. */
  /* Oct 29 2026: flush like Dium — no card edge, no gap to the rail (the rail's
     own right rule divides them), grey gutter only on the far right. */
  html.joq-nav-side #view {
    background: #fff;
    border: 0;
    border-radius: 0;
    margin: 0 var(--host-gutter, 32px) 0 0;
    overflow: hidden;
  }

  /* NO RAIL → ONE COLUMN (Oct 7 2026). renderVouchPage() — the page a voucher
     opens from an email — hides .dtop with an INLINE display:none (beats the
     display:block above), which left #view as the grid's FIRST item: the whole
     vouch card squeezed into the 268px rail column beside an empty grey field.
     Keyed on that inline style so no joq cdn change is needed. The card then
     floats on the grey itself — vouchWrap already centres it at 520px and draws
     its own .card, so #view's white panel would only be a card around a card. */
  html.joq-nav-side .shell:has(> .dtop[style*="display: none"]) {
    grid-template-columns: minmax(0, 1fr);
  }
  html.joq-nav-side .shell:has(> .dtop[style*="display: none"]) #view {
    background: transparent;
    border: 0;
    margin: 18px var(--host-gutter, 32px) 32px;
  }

  /* RAIL ORDER, placed by `order` rather than DOM (Sep 30 2026, user requests).
     The tabs live in .dnav and the Post / bell rows in #droleui, so DOM order can
     neither put "+ Post a job" between two tabs nor put a tab after the bell. Both
     wrappers dissolve (display: contents) and every row becomes a direct flex item of
     .dtop-in:
       banner 0 · Employer dashboard 1 · + Post a job 2 (EMPLOYER only) ·
       everything else 3, in DOM order · Notifications 4 · Edit profile 5 (LAST, both).
     So an employer reads dashboard · Jobs · Post a job · Inbox · My applications · Notifications · Edit profile,
     and a professional Jobs · Applications · + Post a job · Notifications · Edit profile.
     The employer-only Post rule is keyed on joq's own .emp-banner (syncEmpBanner adds
     it only for a signed-in employer). `visibility` from the nav-ready gate below still
     reaches the rows — it inherits through display: contents. */
  html.joq-nav-side .dtop-in > .dnav,
  html.joq-nav-side .dtop-in > #droleui { display: contents; }
  html.joq-nav-side .dtop-in > .dnav > *,
  html.joq-nav-side .dtop-in > #droleui > * { order: 3; }
  html.joq-nav-side .dtop-in > .emp-banner { order: 0; }
  html.joq-nav-side .dtop-in > .dnav > [data-empnav][data-to="dash"] { order: 1; }
  html.joq-nav-side .dtop-in:has(> .emp-banner) > #droleui > [data-action="post-sheet"] { order: 2; }
  /* an employer's Jobs tab (back Oct 7 2026 — employers may apply and scout) sits
     SECOND, right under the dashboard: same order as Post, and .dnav precedes
     #droleui in the DOM, so it lands before "+ Post a job" */
  html.joq-nav-side .dtop-in:has(> .emp-banner) > .dnav > [data-to="feed"] { order: 2; }
  /* "My applications" (employer, Oct 7 2026) right after Inbox: same order as the bell,
     and .dnav precedes #droleui, so it lands before Notifications */
  html.joq-nav-side .dtop-in > .dnav > [data-empnav][data-to="myapps"] { order: 4; }
  html.joq-nav-side .dtop-in > #droleui > [data-action="notif-sheet"] { order: 4; }
  /* "My vouches" (Nov 2026) sits just above Edit profile, which stays last. It is
     appended later than Edit profile (once ?r=vouches-given answers), so DOM order
     alone would put it below — Edit profile moves to 6 instead. */
  html.joq-nav-side .dtop-in > .dnav > [data-vouchnav] { order: 5; }
  html.joq-nav-side .dtop-in > .dnav > [data-profnav] { order: 6; }
}

/* ── NOTHING IN THE ROW UNTIL IT IS TRUE ──────────────────────────────────
   The tab anchors below are OURS, in this file, so the browser paints them as
   soon as it reaches them — while joq-demo.js is still deferred. That first
   paint is always wrong: raw "Me" instead of "My Account", no active tab, no
   employer tabs, and an empty slot where "+ Post a joq" goes. joq now says when
   it knows who this is (navReady() → html.joq-nav-ready, fired when whoami
   settles, with its own 4s fallback so a dead API cannot hide the nav for good).

   VISIBILITY, not display: the bar keeps its height and hairline throughout, so
   the feed below does not jump when the tabs land. And on the CHILDREN, not on
   .dtop itself, so the row still reads as part of club's chrome while it waits
   rather than as a missing strip. */
.dtop .dnav, .dtop #droleui { visibility: hidden; }
html.joq-nav-ready .dtop .dnav,
html.joq-nav-ready .dtop #droleui { visibility: visible; }

/* The right-hand cluster is TRIMMED, not gone. Club's header carries the member's
   face and account menu one row above this, so a second chip under it read as joq
   claiming to be its own site — that chip is what goes, along with the 🧭 scout
   shortcut, which duplicates the Scout button on every joq that offers it.

   What stays:
   · "+ Post a joq", the one control that belongs to this bar;
   · the 🔔 bell, which was collateral damage of the old blanket `.iconbtn` rule.
     It is not an identity control and club's header has no equivalent, so hiding
     it left a member no way at all to see that something had happened on their
     joqs. render() has been filling it in all along (bellHtml) and updateBadges()
     has been painting its unread count into a button nobody could see, so the
     :not() below is the entire fix — it opens the same notifSheet() it does on
     joq.app, the same kind of sheet the Apply flow already uses in here.

   The SIGNED-OUT "Log In" chip STAYS. It was hidden on Sep 21 2026 and brought back
   on Sep 22 by request: club's own login sits behind the avatar dropdown, so a
   visitor had no visible way in from this row. It is a .dcta, not an .iconbtn, so
   the rule below does not reach it; pressing it posts joq:login (handled above). */
#droleui .iconbtn:not([data-action="notif-sheet"]),
#droleui [data-action="user-menu"] { display: none !important; }

/* NO THIRD BAR. Club's header is row one and joq's tab row is row two, so a
   detail page's own "← Feed · joq" strip made a third — and every part of it is
   already on screen: the section it points back to is a tab in the row above and
   now stays lit while you are on a job (render() reads S.backTo for that), and
   the "joq" brand beside it belongs to a standalone site, not to a page sitting
   inside club.

   Scoped to the strips whose back link is a SECTION link, which is a distinction
   the markup already makes: data-action="nav" means Feed / Applications /
   Employer dashboard — the duplicated ones. scoutSubmitView's strip carries
   data-action="open-job" and reads "← <joq title>", a destination no tab reaches,
   so it is deliberately left standing. Selecting on that rather than on the view
   because joq marks no view in the DOM for CSS to hang off.

   postView drops its own strip in joq's code (EMBED.hostAccount), so in practice
   this rule is the job page; it is written for both so it states the rule and not
   the one case. A browser without :has() simply keeps the strip — today's
   behaviour, nothing stranded. */
/* REVERSED Oct 8 2026 (user request: "add back to all jobs button on top left"):
   the job page's back link shows again — "← Back to all jobs" (or the section the job
   was opened from). Only the "joq" brand beside it stays gone (appbarBrandHtml). */

/* The SAME rule for the employer's pages, which use a different element. The seeker
   pages carry .appbar--detail, above; the employer's job detail and My joqs carry a
   .topbar--detail — and that row holds the joq's title, Get vouched, Edit and Delete
   as well, so only the back button goes, never the row.

   Split on the action, exactly as above: data-action="nav" means the button points at
   a SECTION — "← Employer dashboard", "← Feed" — and every one of those is a tab in
   the row above, lit and clickable, because render() now follows the origin a joq was
   opened from. candView's back button is data-action="goto-job" and returns to one
   specific joq, which no tab reaches, so it is untouched.

   Club only, and deliberately not in joq.app's own stylesheet: standalone joq has no
   dashboard tab in its bar — the account menu is the route — so the same removal there
   would strand an employer on a job page. The redundancy this deletes exists only
   because club puts that tab one row up.

   THE ARROW STAYS (Sep 22 2026, by request): what duplicates the tab row is the WORD
   ("Employer dashboard", "Feed"), not the way back — without any arrow the joq's title
   sat alone with nothing saying how to leave. So only .back-lbl goes, and the button
   shrinks to a round arrow before the title. The label keeps living in the button's
   aria-label, so a screen reader still hears where it goes. */
/* PHONES (Oct 14 2026, user report: "joq pages are not fit to mobile"). The feed's
   own "• joq · 🧭 · 🔔 · avatar" bar painted under the hero as a second header,
   with a second account control under club's own avatar. On a phone it goes: the
   bell, the employer dashboard and "+ Post a job" are bottom-bar tabs inside club
   now (syncTabbar in joq-demo.js), and the account menu is club's header. */
@media (max-width: 759px) {
  .appbar--feed { display: none; }
}
.topbar--detail .back-btn[data-action="nav"] .back-lbl { display: none; }
.topbar--detail .back-btn[data-action="nav"] { gap: 0; padding: 8px 10px; }
/* THE FEED READS LIKE CLUB'S LEARNING > DISCOVER (Nov 6 2026, by request). The head
   itself is joq's (embed.feedHead:'discover' below → discoverHeadHtml, laid out in
   joq-demo.css .dhero--discover); what is club's is the colour: the whole centre column
   is gray and the job cards on it are white, as Discover's course cards are.
   :has() so the gray follows the feed only - other views keep their own ground.
   Theme tokens, not hex: the frame follows the OS colour scheme when opened alone. */
/* Round 3 (same day): the centre is Discover's lighter, cooler gray with a hairline
   against the rail; the side gutters widen 24 → 40px (where Discover's content starts);
   the cards stand out the way the course cards do - white, a clear 1px border, a soft
   shadow and a small lift on hover. Light-mode values are Discover's own; dark mode
   falls back to joq's tokens. */
/* html.joq-nav-side: club's rail rule (html.joq-nav-side #view { background:#fff; border:0 },
   above) out-ranked a bare #view:has() and kept the centre white - match it, then win on order */
/* EVERY view, not just the feed (Nov 6 2026, by request: post a job, employer
   dashboard and the rest share Discover's #FAFAF9 centre). Cards on them stay white. */
html.joq-nav-side #view,
#view {
  --disc-bg: #FAFAF9; --disc-card-bd: #E2E4E8;
  /* NO vh HERE (Nov 12 2026). Inside the frame 100vh is the FRAME's height, which
     the host sets from the height joq reports — so #view could never be shorter
     than the last frame and the frame could only grow: after any taller state
     (a longer page, open filters) a short view kept a band of empty grey under
     the pager. The host's fillFrame() already stretches the frame to the screen
     bottom on a phone; the content itself stays content-height. */
  background: var(--disc-bg); min-height: 0;
  border-left: 1px solid var(--disc-card-bd);
}
@media (prefers-color-scheme: dark) {
  html.joq-nav-side #view, #view { --disc-bg: var(--joq-paper-dim); --disc-card-bd: var(--joq-line-2); }
}
#view .dhero.dhero--discover { padding-left: 40px; padding-right: 40px; padding-top: 28px; }
#view .dhero--discover + .vwrap { padding-left: 40px; padding-right: 40px; }
#view:has(.dhero--discover) .job-card {
  background: var(--joq-surface);
  border: 1px solid var(--disc-card-bd);
  border-left-width: 3px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  transition: box-shadow 140ms, transform 140ms, border-color 140ms;
}
#view:has(.dhero--discover) .job-card:hover {
  border-color: var(--joq-line-3);
  box-shadow: 0 4px 16px rgba(16, 24, 40, .10);
  transform: translateY(-1px);
}
#view:has(.dhero--discover) .job-card--vouched { border-left-color: var(--joq-trust-mark); }
#view:has(.dhero--discover) .job-card--scouted { border-left-color: var(--joq-scout-line); }
@media (max-width: 759px) {
  #view .dhero.dhero--discover, #view .dhero--discover + .vwrap { padding-left: 16px; padding-right: 16px; }
}
