/* nav-boards.css: the parts of the left menu that nav-boards.js adds (21 Oct 2026): the named boards listed under the
   board that holds them (every named custom board, or the Geneva sectors someone has). Everything else is the rail's
   own .nav-item, so a board row looks exactly like every other row. Collapsed, the rail shows only the icons: the
   named boards appear with the labels when it opens. */

/* The board you are in reads as a place, not as the screen you are on: green bold text, no fill. The fill stays with
   the view (Social Posts, Insights...), so the eye lands on one filled row. The parent of a named board you are on
   takes the colour the same way. */
#nav .nav-board.active { background: transparent; font-weight: 600; }
#nav .nav-board.active:hover { background: #f0f0f0; }
#nav .nav-board.active .nav-label { font-weight: 600; }
#nav .nav-board.has-active { color: var(--accent, #1D9E75); }

/* the named boards under their parent, on a thin guide line that starts under the parent's icon */
#nav .nav-subs {
  display: flex; flex-direction: column; gap: 1px;
  margin: 0 0 4px 19px; padding-left: 9px; border-left: 1.5px solid var(--border, #e8e8e8);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.3s ease;
}
body.nav-open #nav .nav-subs { max-height: 640px; opacity: 1; }
body:not(.nav-open) #nav .nav-subs { margin: 0; border: 0; }
#nav .nav-sub {
  display: block; padding: 7px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--text-muted, #888);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background 0.12s, color 0.12s;
}
#nav .nav-sub:hover { background: #f0f0f0; color: var(--text-primary, #222); }
#nav .nav-sub.active { color: var(--accent, #1D9E75); font-weight: 600; background: #f0f0f0; }
#nav .nav-sub-label { display: block; overflow: hidden; text-overflow: ellipsis; }
/* /custom on a phone: no rail there, so Your boards opens the header menu, above the boards everyone can browse */
#mobileNav .mn-yours { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border-1, #ececec); }
#mobileNav .mn-yours .mnav-head { padding-top: 6px; }
#mobileNav .mn-yours a.mn-sub { margin-left: 12px; padding-left: 14px; border-left: 1.5px solid var(--border-1, #e5e5e5); border-radius: 0 8px 8px 0; color: var(--fg-2, #555); }
#mobileNav .mn-yours a.mn-sub.is-active { color: var(--brand-primary, #344072); }
#nav .nav-item:focus-visible, #nav .nav-sub:focus-visible { outline: 2px solid var(--accent, #1D9E75); outline-offset: -2px; }

/* ── v4 (21 Oct 2026, Rossi's feedback + Desk "build all of it") ─────────────────────────────────── */
/* An empty left menu says why it is empty, in one quiet line, never with a list. Only while the menu is open: the
   closed rail is icons only. */
/* (its text starts exactly under the heading's text: the same 10px padding, no extra margin) */
#nav .nav-empty { margin: 0 0 6px; padding: 4px 12px 8px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted, #888); white-space: normal; }
#nav .nav-empty a { color: var(--accent, #1D9E75); font-weight: 600; text-decoration: none; }
#nav .nav-empty a:hover { text-decoration: underline; }
body:not(.nav-open) #nav .nav-empty { display: none; }

/* MENU PROFILES (22 Oct 2026). "Shared by <the payer>" under Custom Board for an invited person: quiet, one line,
   starting under the board's name (the rail: only while open, like the names of the named boards). */
#nav .nav-note { margin: -6px 0 6px; padding: 0 12px 0 38px; font-size: 11.5px; line-height: 1.35; color: #6B7089;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(.nav-open) #nav .nav-note { display: none; }
.mobile-nav p.nb-note { margin: -8px 0 6px; padding: 0 8px; font-size: 12px; line-height: 1.35; color: #6B7089; }
#mnav-sheet small.nb-note, .mnav-row small.nb-note { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.3; color: #6B7089; }   /* 5:1 on white: small text needs 4.5 (review, 22 Oct) */
/* an invited member: the payer pays, so no Billing in the menus */
html.trk-team-member #nav-billing, html.trk-team-member #mnav-billing { display: none !important; }

/* The phone's folding discovery sections ("More boards", "All Geneva sectors"). Open, the body shows about four and
   a half rows (the half row says "there is more") and scrolls with NO scroll bar, as Rossi asked; a soft fade at the
   foot carries the same cue when the list is long. */
.nb-fold-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex !important; align-items: center; gap: 8px; width: 100%; }
.nb-fold-btn > span:first-child { flex: 0 1 auto; }
.nb-fold-n { font: 600 11px/1 'DM Sans', system-ui, sans-serif; letter-spacing: 0; text-transform: none; padding: 3px 7px; border-radius: 99px; background: rgba(52,64,114,.08); color: #4A5070; }
.nb-fold-caret { margin-left: auto; flex: 0 0 auto; transition: transform .2s ease; }
.nb-fold-btn[aria-expanded="true"] .nb-fold-caret { transform: rotate(180deg); }
.nb-fold-btn:focus-visible { outline: 2px solid var(--accent, #1D9E75); outline-offset: 2px; border-radius: 6px; }
.nb-fold-body { display: none; max-height: 205px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.nb-fold-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.nb-fold-body.is-long { -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.nb-fold-btn[aria-expanded="true"] + .nb-fold-body { display: flex; flex-direction: column; }
/* the board phone menu: each folding heading gets the same air as a group heading, so the two read as two sections */
#mnav-sheet .nb-fold-btn.mnav-group { padding: 14px 12px 8px; border-radius: 8px; }
/* the board phone menu's rows are taller (48px): four and a half of them, so the half row says "there is more" */
#mnav-sheet .nb-fold-body { max-height: 222px; }
#mnav-sheet .nb-fold-btn.mnav-group:active { background: rgba(0,0,0,.04); }

/* The board title's menu, on a computer (board pages: the title opens Boards and AI Visibility). */
.nb-title-host { position: relative; }
.nb-title-name { cursor: pointer; }
.nb-title-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 2px 0 -1px; border-radius: 6px; color: #17AE42; align-self: center; }
.nb-title-btn svg { transition: transform .2s ease; }
.nb-title-host.nb-open .nb-title-btn svg { transform: rotate(180deg); }
.nb-title-btn:hover, .nb-title-host.nb-open .nb-title-btn { background: #EEF7F1; }
.nb-title-btn:focus-visible { outline: 2px solid var(--accent, #1D9E75); outline-offset: 1px; }
.nb-dd { position: absolute; top: calc(100% + 12px); left: 12px; z-index: 300; width: min(840px, calc(100vw - 260px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  background: #fff; border: 1px solid var(--border, #e5e5e5); border-radius: 16px; box-shadow: 0 24px 56px -14px rgba(52,64,114,.30), 0 8px 18px rgba(14,18,32,.07); overflow: hidden;
  font-family: 'DM Sans', system-ui, sans-serif; white-space: normal; letter-spacing: 0; }
.nb-dd[hidden] { display: none; }
.nb-dd-col { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-dd-col.alt { background: #F7F6F1; border-left: 1px solid var(--border, #e5e5e5); }
.nb-dd-h { margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border, #e5e5e5); font: 700 11px/1 'DM Sans', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #C98A12; }
.nb-dd-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; color: #1D2238; text-decoration: none; }
.nb-dd-item:hover, .nb-dd-item:focus-visible { background: #F0F2F8; outline: none; }
.nb-dd-item b { font-size: 14px; font-weight: 600; }
.nb-dd-item small { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; color: #8A8FA8; }
.nb-dd-item.is-yours { background: #E6F5EF; }
.nb-dd-item.is-yours b { color: #12805D; }
.nb-dd-tag { font: 700 9.5px/1 'DM Sans', system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; white-space: nowrap; }
.nb-dd-tag.yours { background: #fff; color: #12805D; }
.nb-dd-tag.here { background: #EEF0F6; color: #4A5070; }
.nb-dd-sectors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; align-items: start; }
/* a sector beside a taller neighbour (Real estate carries a second line) sits at the top of its row, level with it */
.nb-dd-sector { margin: 0; align-self: start; }
.nb-dd-cta { align-self: flex-start; margin-top: 14px; padding: 10px 14px; border-radius: 9px; background: #FFB83B; color: #1D2238; font: 700 13px/1 'DM Sans', system-ui, sans-serif; text-decoration: none; }
.nb-dd-cta:hover { background: #F5A821; }
/* phones browse from the folding sections in the menu; the title there is just a title */
@media (max-width: 768px) {
  .nb-title-btn, .nb-dd { display: none !important; }
  .nb-title-name { cursor: auto; }
}
