/* ==========================================================================
   FSN — the nav, polished (Alex, 2026-09-04).

   CSS only: the markup is the generator's. The stamp script links this
   file after fsn.css on every page with the top bar. Three things it does:

     · the bar's tracking (.06em, uppercase condensed) stops leaking into
       the panels — fsn.css resets it on `.navmenu a`, but the bar's own
       `.topbar .mainnav a` rule outranks that, so every title and subline
       in a panel came out letter-spaced;
     · each panel row gets a set rhythm — the same padding whether or not it
       has a subline (no rules between rows; Alex: they add nothing), so
       "Conditional Picks" no longer sits on top of "The Draft Archive";
     · the panel's text lines up with the room's label: fsn.js puts the
       panel's left edge on the room's left edge, so 1px of border plus 8px
       of link padding meets the label's 9px; on the phone the accordion's
       rows lose their 12px inset and line up with the room names above.
   ========================================================================== */

/* the bar: a touch more air in the room names, where there is room for it */
@media (min-width: 1101px) {
  .topbar .mainnav .navitem > a { letter-spacing: .09em; font-size: 14.5px; }
}

/* the panels: small print, not the bar */
.topbar .mainnav .navmenu a { letter-spacing: 0; }
.topbar .mainnav .navmenu > a, .navmenu > a {
  font-family: var(--sans); text-transform: none;
  padding: 6px 14px 7px 8px; border-radius: 0; min-height: 0; line-height: 1.25;
}
.topbar .navmenu:not(.navmenu--wide) { padding: 5px 0 6px; min-width: 264px; }
.topbar .navmenu > a b { font: 600 13.5px/1.25 var(--sans); letter-spacing: -.005em; color: var(--ink); }
.topbar .navmenu > a span { font: 400 11.5px/1.35 var(--sans); letter-spacing: 0; margin-top: 2px; color: var(--gray-text); }
.topbar .navmenu > a:hover span, .topbar .navmenu > a:focus-visible span { color: var(--ink-2); }

/* the phone's accordion: same rhythm, rows flush with the room names */
@media (max-width: 900px) {
  .topbar .mainnav .navmenu > a, .navmenu > a { padding: 7px 44px 8px 0; }
  .topbar .navmenu:not(.navmenu--wide) { padding: 2px 0 8px; min-width: 0; }
  .topbar .navmenu > a b { font-size: 14px; color: #fff; }
  .topbar .navmenu > a span { color: #8a9098; }
  .topbar .navmenu > a:hover span, .topbar .navmenu > a:focus-visible span { color: #b9bfc7; }
}

/* the tab strip's "Show all" pill (Alex, 2026-09-06): on a phone it fell to
   a second row under the sticky strip and did nothing useful there; it is
   a desktop convenience (Ctrl+F, printing) */
@media (max-width: 900px) {
  .pagetabs .pagetabs-all { display: none; }
}

/* Not the nav: fsn.css is the generator's and its ?v= never moves, so a
   rule that must reach a phone lives here, the one stylesheet of ours on
   every page, after fsn.css.

   The FBAHL Full Pool on a phone (Alex, 2026-09-25: "more condensed for mobile"): not a
   300px card per prospect but a two-line row, name and owner on top, the
   facts in one small line under it. The rows are flex items; tr::after is the
   line break. The bar above shrinks to the search and one scrolling row of
   chips and menus. And a stackable table past 40 rows used to keep the
   windowed frame's height with overflow visible, so the rows ran over the
   note under the table: on a phone the list is simply as long as it is. */
@media (max-width: 760px) {
  .table-scroll.is-windowed:has(> table.data.stackable) { max-height: none; }
  .table-scroll.is-windowed:has(> table.data.stackable)::after { display: none; }

  .poolbar { gap: 10px; padding: 10px 12px; }
  .pb-search { gap: 10px; }
  .pb-search input { padding: 10px 12px; }
  .pb-chips, .pb-selects {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -12px; padding-left: 12px; padding-right: 12px;
  }
  .pb-chips::-webkit-scrollbar, .pb-selects::-webkit-scrollbar { display: none; }
  .pb-selects { padding-top: 10px; gap: 6px 8px; }
  .pb-selects .f-lbl { white-space: nowrap; font-size: 12px; }
  .pb-selects select { flex: none; }

  table.data.stackable.pool-table {
    background: var(--paper); border: 1px solid var(--gray-rule);
    border-radius: var(--radius); box-shadow: var(--sh-1); overflow: hidden;
  }
  table.data.stackable.pool-table tbody tr {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px;
    margin: 0; padding: 9px 12px; border: 0; border-radius: 0; box-shadow: none;
    border-bottom: 1px solid var(--gray-rule); border-left: 3px solid transparent;
  }
  table.data.stackable.pool-table tbody tr:last-child { border-bottom: 0; }
  .pool-table tr[data-state="out"] { border-left-color: var(--bad) !important; }
  .pool-table tr[data-state="gold"] { border-left-color: #b8860b !important; }
  .pool-table tr[data-state="warn"] { border-left-color: var(--warn) !important; }
  table.data.stackable.pool-table tbody tr::after { content: ""; order: 3; flex: 0 0 100%; height: 0; }
  table.data.stackable.pool-table td {
    display: inline; flex: none; padding: 0; margin: 0; border: 0;
    font: 400 12.5px/1.5 var(--sans); color: var(--gray-text);
    min-width: 0; max-width: none;
  }
  table.data.stackable.pool-table td::before { display: none; }
  table.data.stackable.pool-table td:first-child {
    order: 1; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; border: 0;
    font: 700 15px/1.3 var(--sans); text-transform: none; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  table.data.stackable.pool-table td:first-child a { color: inherit; }
  .pool-table td[data-label="Owner"] { order: 2; font: 600 13px/1.3 var(--sans); color: var(--ink); }
  .pool-table td[data-label="Owner"] a { color: inherit; }
  .pool-table td[data-label="Pos"] { order: 4; }
  .pool-table td[data-label="NHL GP · cap"] { order: 5; }
  .pool-table td[data-label="NHL GP · cap"]::after { content: " GP"; }
  .pool-table td[data-label="Age"] { order: 6; }
  table.data.stackable.pool-table td[data-label="Age"]::before,
  table.data.stackable.pool-table td[data-label="Draft"]::before {
    display: inline; content: attr(data-label) " "; font: inherit; letter-spacing: 0;
    text-transform: lowercase; color: inherit; flex: none;
  }
  .pool-table td[data-label="Draft"] { order: 7; }
  .pool-table td[data-label="Dobber · tier"] { order: 8; }
  table.data.stackable.pool-table td.qcell { order: 9; min-width: 0; line-height: 1.5; }
  .pool-table td .poschip, .pool-table td .tierchip, .pool-table td .qchip { font-size: 10px; padding: 1px 5px; }
  .pool-table .ofcap { color: var(--gray-text); }
  .pool-table .qwhy { margin-top: 2px; font-size: 11px; }
  .pool-table .qchip.q-pro { display: none; }   /* every row on the final list is one */
}

/* Thumb-sized targets in the bar on a phone (UX audit 2026-09-27, F15): the
   search button was 30px and the Sign in pill 29px tall. The hit area grows,
   not the button: a wider bar wraps the portal onto a second row. */
@media (max-width: 900px) {
  .topbar .navsearch-btn { position: relative; }
  .topbar .navsearch-btn::after { content: ""; position: absolute; inset: -7px; }
  .fsn-portal .fp-btn { position: relative; }
  .fsn-portal .fp-btn::after { content: ""; position: absolute; inset: -6px 0; }
}

/* the empty search's pointer (portal.js adds it) */
.search-empty .se-hint { display: block; margin-top: 6px; font-size: 13px; }
.search-empty .se-hint a { color: var(--fsn-red-ink, #8d001b); text-decoration: underline; }

/* Draft night on /draft/ (draftnight.js; UX audit 2026-09-27, batch F) */
.dn { background: var(--paper, #fff); border: 1px solid var(--gray-rule, #e4e6ea); border-top: 4px solid var(--fsn-red, #d40026); border-radius: var(--radius, 6px); padding: 14px 18px; margin: 0 0 18px; }
.dn > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; list-style: none; min-height: 32px; }
.dn > summary::-webkit-details-marker { display: none; }
.dn > summary b { font: 700 18px/1.2 var(--cond, "Archivo Narrow", sans-serif); text-transform: uppercase; letter-spacing: .02em; }
.dn .dn-count { font: 500 12.5px/1.2 var(--mono, monospace); color: var(--gray-text, #626873); }
.dn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px 18px; margin: 12px 0 4px; }
.dn-club a { display: block; text-decoration: none; color: var(--ink, #14161a); }
.dn-club a b { font: 700 14px/1.3 var(--sans); }
.dn-club a span { display: block; font: 400 11.5px/1.3 var(--sans); color: var(--gray-text, #626873); }
.dn-club ul { margin: 4px 0 0; padding-left: 16px; font: 400 13.5px/1.45 var(--sans); color: var(--ink-2, #3c4148); }
.dn-plain, .dn-note { margin: 8px 0 0; font: 400 13px/1.5 var(--sans); color: var(--gray-text, #626873); }
