/* ============================================================
   flowing-chrome.css — JobBored v2 page chrome (Phase 2.A)
   ------------------------------------------------------------
   Owner:    FE droid 2.A (page chrome + scroll-spy)
   Purpose:  Sticky top nav, three section pills (Brief /
             Pipeline / Letter), dashed-rule section dividers,
             and the flowing-page section wrapper.

   Visual reference: ./JobBored.html (the design spec). Caveat
   for headlines, Geist for body, JetBrains Mono for numerals;
   mint italic accent on key words.

   Additivity guarantee:
             Every rule is scoped under `body.jb-v2`. Off-flag
             behavior (no `body.jb-v2` class) is byte-for-byte
             unchanged. This file consumes only --jb-* tokens
             from tokens-v2.css.
   ============================================================ */

/* ---- Page top: sticky header with logo + section nav ----- */
body.jb-v2 .page-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
  padding-inline: max(
    var(--jb-flow-gutter, 32px),
    calc((100% - var(--jb-flow-max, 1220px)) / 2)
  );
  background: color-mix(in srgb, var(--jb-paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--jb-line-soft);
  font-family: var(--jb-font-body);
  /* The sticky chrome spans the full page width and overlaps the top
     row of every Pipeline column / Lattice card beneath it. Without
     pointer-events:none on the bar itself, the gaps between the four
     interactive children (brand, nav, actions, menu) eat clicks meant
     for the cards underneath — most visibly the favorite stars on the
     top card of each column, which never even show the pointer cursor
     because document.elementFromPoint returns .page-top. We restore
     pointer events on the actual controls below so the header still
     works normally. Background + blur still render visually. */
  pointer-events: none;
}

/* Re-enable pointer events on every interactive child of the header
   so the sign-in button, brand link, section pills, action buttons,
   and the mobile menu toggle all keep working. Anything that is NOT
   one of these — empty padding / gap / backdrop / wordmark text — is
   click-through so the cards beneath receive the event. */
body.jb-v2 .page-top > .page-top__brand,
body.jb-v2 .page-top > .page-nav,
body.jb-v2 .page-top > .page-top__actions,
body.jb-v2 .page-top > .page-top__menu-btn,
body.jb-v2 .page-top > .page-top__more {
  pointer-events: auto;
}

/* Brand cluster — mascot square + official wordmark SVG.
   The cluster is a single <a>; the mascot square sits on a mint
   tile (matches the favicon palette), and the wordmark inherits
   navy via currentColor. */
body.jb-v2 .page-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  color: var(--jb-navy);
  text-decoration: none;
}

/* Mascot mark — the official rocket-pack mascot, served as a
   transparent / retina-quality picture from assets/chrome/. The
   <picture> sizes the wrapper; the child <img> fills it and uses
   `object-fit: contain` so the mascot stays centered with its
   transparent margin. No background, no tile — sits flat on the
   chrome's parchment surface. */
body.jb-v2 .page-top__brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  /* Crisper interpolation on browsers that honor it. */
  image-rendering: -webkit-optimize-contrast;
}
body.jb-v2 .page-top__brand-mark > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

body.jb-v2 .page-top__brand-wordmark {
  /* Scale by height; preserves the brand-kit aspect ratio. */
  height: 24px;
  width: auto;
  display: block;
  color: var(--jb-navy);
}

/* ---- Section pills (Brief / Pipeline / Dossier) ----- */
body.jb-v2 .page-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: color-mix(in srgb, var(--jb-paper-2) 96%, transparent);
  border: 1px solid var(--jb-line-soft);
  border-radius: var(--jb-radius-pill);
}

body.jb-v2 .page-nav__pill {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--jb-radius-pill);
  font-family: var(--jb-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--jb-navy) 65%, transparent);
  transition: color var(--jb-transition-fast),
    background var(--jb-transition-fast),
    box-shadow var(--jb-transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.jb-v2 .page-nav__pill:hover {
  color: var(--jb-navy);
  background: color-mix(in srgb, var(--jb-paper) 80%, transparent);
}

body.jb-v2 .page-nav__pill:focus-visible {
  outline: none;
  box-shadow: var(--jb-shadow-focus);
}

body.jb-v2 .page-nav__pill.is-active {
  background: var(--jb-navy);
  color: var(--jb-ink-inverse);
}

body.jb-v2 .page-nav__pill .page-nav__pill-num {
  font-size: 10px;
  opacity: 0.65;
}

/* ---- Dashboard actions ---------------------------------- */
body.jb-v2 .page-top__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  margin-left: auto;
  background: color-mix(in srgb, var(--jb-paper-2) 96%, transparent);
  border: 1px solid var(--jb-line-soft);
  border-radius: var(--jb-radius-pill);
  flex: 0 0 auto;
}

body.jb-v2 .page-top__actions .page-top__action {
  appearance: none;
  min-height: 36px;
  border-radius: var(--jb-radius-pill);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  font-family: var(--jb-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--jb-transition-fast),
    background var(--jb-transition-fast),
    box-shadow var(--jb-transition-fast),
    transform var(--jb-transition-fast);
}

body.jb-v2 .page-top__actions .page-top__action:hover {
  transform: translateY(-1px);
}

body.jb-v2 .page-top__actions .page-top__action:focus-visible {
  outline: none;
  box-shadow: var(--jb-shadow-focus);
}

body.jb-v2 .page-top__actions .page-top__action svg {
  flex: 0 0 auto;
}

body.jb-v2 .page-top__actions .page-top__action--primary {
  padding: 0 14px;
  color: var(--jb-ink-inverse);
  background: var(--jb-navy);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jb-ink-inverse) 12%, transparent);
}

body.jb-v2 .page-top__actions .page-top__action--primary:hover {
  color: var(--jb-ink-inverse);
  background: color-mix(in srgb, var(--jb-navy) 90%, var(--jb-mint-deep));
}

body.jb-v2 .page-top__actions .page-top__action--icon {
  position: relative;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  color: var(--jb-navy);
  background: transparent;
}

body.jb-v2 .page-top__actions .page-top__action--icon:hover {
  background: color-mix(in srgb, var(--jb-paper) 80%, transparent);
}

body.jb-v2 .page-top__actions .expired-review-count {
  border-color: var(--jb-paper-2);
}

body.jb-v2 .page-top__actions .page-top__auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  margin: 0;
}

body.jb-v2 .page-top__actions .auth-menu-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--jb-radius-pill);
  color: var(--jb-navy);
  transition: box-shadow var(--jb-transition-fast),
    background var(--jb-transition-fast),
    transform var(--jb-transition-fast);
}

body.jb-v2 .page-top__actions .auth-menu-toggle:hover {
  background: color-mix(in srgb, var(--jb-paper) 80%, transparent);
  box-shadow: none;
  transform: translateY(-1px);
}

body.jb-v2 .page-top__actions .auth-menu-toggle:focus-visible {
  outline: none;
  box-shadow: var(--jb-shadow-focus);
}

body.jb-v2 .page-top__actions .auth-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid var(--jb-line-soft);
  background: var(--jb-paper);
}

body.jb-v2 .page-top__actions .btn-google-signin {
  min-height: 36px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: var(--jb-radius-pill);
  color: var(--jb-navy);
  background: transparent;
  box-shadow: none;
  font-family: var(--jb-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.jb-v2 .page-top__actions .btn-google-signin:hover {
  background: color-mix(in srgb, var(--jb-paper) 80%, transparent);
  box-shadow: none;
}

/* ---- Hamburger (mobile) -------------------------------- */
body.jb-v2 .page-top__menu-btn {
  display: none;
  appearance: none;
  border: 1px solid var(--jb-line-soft);
  background: var(--jb-paper);
  border-radius: var(--jb-radius-sm);
  width: 40px;
  height: 40px;
  /* Never let the flex row squeeze the hamburger below its 40px
     tap target — without this guard the crowded action strip
     crushed it to 20px and pushed the row past a 375px viewport. */
  flex: 0 0 auto;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--jb-navy);
}

body.jb-v2 .page-top__menu-btn:focus-visible {
  outline: none;
  box-shadow: var(--jb-shadow-focus);
}

body.jb-v2 .page-top__menu-btn-bars,
body.jb-v2 .page-top__menu-btn-bars::before,
body.jb-v2 .page-top__menu-btn-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

body.jb-v2 .page-top__menu-btn-bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}

body.jb-v2 .page-top__menu-btn-bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}

/* ---- Section dividers (dashed rule + optional eyebrow) -- */
body.jb-v2 .section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 32px;
  padding: 24px 0;
  color: color-mix(in srgb, var(--jb-navy) 55%, transparent);
}

body.jb-v2 .section-divider::before,
body.jb-v2 .section-divider::after {
  content: "";
  flex: 1;
  border-top: 1px dashed color-mix(in srgb, var(--jb-navy) 28%, transparent);
}

body.jb-v2 .section-divider__eyebrow {
  font-family: var(--jb-font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.jb-v2 .section-divider--plain::before,
body.jb-v2 .section-divider--plain::after {
  flex: 1;
}

body.jb-v2 .section-divider--plain {
  gap: 0;
}

/* ---- Section wrapper ------------------------------------ */
body.jb-v2 .flow-section {
  position: relative;
  padding: 64px 32px;
  scroll-margin-top: 88px; /* keep sticky chrome from covering the heading */
}

body.jb-v2 .flow-section + .flow-section {
  border-top: 0;
}

body.jb-v2 .flow-section__inner {
  max-width: 1220px;
  margin: 0 auto;
}

/* ---- Mobile collapse ≤768px ----------------------------- */
@media (max-width: 768px) {
  body.jb-v2 .page-top {
    padding-block: 12px;
    padding-inline: var(--jb-flow-gutter, 18px);
    gap: 12px;
  }

  body.jb-v2 .page-top__brand-wordmark {
    height: 22px;
  }

  body.jb-v2 .page-top__actions {
    gap: 4px;
    padding: 3px;
  }

  body.jb-v2 .page-top__actions .page-top__action--primary {
    padding: 0 10px;
    font-size: 0;
  }

  body.jb-v2 .page-top__actions .page-top__action--primary::after {
    content: "Run";
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  body.jb-v2 .page-top__actions .btn-google-signin {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }

  body.jb-v2 .page-top__actions .btn-google-signin span {
    display: none;
  }

  /* C18 at phone and tablet widths: the three views stay on screen as a
     second row of the bar instead of hiding behind a menu, because they
     are how you move between Today, Pipeline and the dossier. */
  body.jb-v2 .page-top {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  body.jb-v2 .page-nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: stretch;
    gap: 4px;
  }

  body.jb-v2 .page-nav__pill {
    flex: 1 1 0;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
  }

  body.jb-v2 .flow-section {
    padding: 40px 18px;
    scroll-margin-top: 76px;
  }

  body.jb-v2 .section-divider {
    margin: 0 18px;
    padding: 16px 0;
  }
}

@media (max-width: 430px) {
  body.jb-v2 .page-top {
    padding-block: 10px;
    padding-inline: var(--jb-flow-gutter, 12px);
    gap: 8px;
  }

  body.jb-v2 .page-top__brand {
    gap: 0;
  }
  /* Hide the wordmark on very narrow screens; the mascot square
     stays as a recognizable, tappable mark. */
  body.jb-v2 .page-top__brand-wordmark {
    display: none;
  }

  body.jb-v2 .page-top__brand-mark {
    width: 32px;
    height: 32px;
  }

  body.jb-v2 .page-top__actions .page-top__action--primary::after {
    content: "";
  }

  /* The action strip holds eight non-shrinkable controls — more than a
     375px row can fit. Let it shrink and scroll sideways instead of
     widening the layout viewport (which sliced the hamburger in half
     and gave the whole app a 7px horizontal pan). */
  body.jb-v2 .page-top__actions {
    flex: 0 1 auto;
    min-width: 0;
    overflow-x: auto;
    gap: 2px;
    padding: 2px;
    scrollbar-width: none;
  }

  body.jb-v2 .page-top__actions::-webkit-scrollbar {
    display: none;
  }

  body.jb-v2 .page-top__actions .page-top__action,
  body.jb-v2 .page-top__actions .page-top__auth {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.jb-v2 .page-nav__pill {
    transition-duration: 0.01ms;
  }

  body.jb-v2 .page-top__actions .page-top__action,
  body.jb-v2 .page-top__actions .auth-menu-toggle {
    transition-duration: 0.01ms;
  }

  body.jb-v2 .page-top__actions .page-top__action:hover,
  body.jb-v2 .page-top__actions .auth-menu-toggle:hover {
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════
   Section transitions — 2026 cadence
   ────────────────────────────────────────────────────────
   The flowing page is one long scroll of four regions
   (Brief → Pipeline → Dossier → Letter). The seams get
   smoothed in two ways:

   1. Scroll lands softly — html-level scroll-padding-top so
      a pill-jump or browser anchor leaves room for the
      sticky chrome instead of slamming the heading under
      it; per-region scroll-margin-top matches.

   2. The pill row gains a soft mint underline that slides
      under non-active pills on hover, plus a softened
      active-state with a long, low shadow so the chrome
      reads continuous, not on/off.

   The page deliberately does NOT animate region content on
   enter — reveals at scroll time felt corny in earlier
   iterations; the editorial cadence is now in spacing and
   chrome alone, not in fade-up tricks.
   ════════════════════════════════════════════════════════ */

html {
  /* Headline lands ~96px below the viewport top so the sticky
     chrome (≈80px tall) clears with a breath of room. */
  scroll-padding-top: 96px;
}

body.jb-v2 [data-region="dawn"],
body.jb-v2 [data-region="pipeline"],
body.jb-v2 [data-region="role"],
body.jb-v2 [data-region="letter"] {
  scroll-margin-top: 96px;
}

/* ---- Active-pill underline slider ----------------------- */
/* A soft mint underline sits beneath the inactive pills on
   hover, sliding into place via transform — gives the pill
   row the cadence of a tabbed reader rather than four
   discrete on/off buttons. */
body.jb-v2 .page-nav {
  position: relative;
}
body.jb-v2 .page-nav__pill {
  position: relative;
}
body.jb-v2 .page-nav__pill::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--jb-mint-deep);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  opacity: 0;
  transition: transform var(--jb-transition-base),
    opacity var(--jb-transition-base);
}
body.jb-v2 .page-nav__pill:not(.is-active):hover::after,
body.jb-v2 .page-nav__pill:not(.is-active):focus-visible::after {
  opacity: 0.9;
  transform: scaleX(1);
}

/* Smooth the active background swap so the navy fill grows
   into place instead of hard-flipping, and adds a long, low
   shadow so the active pill reads "lifted" rather than
   stamped. */
body.jb-v2 .page-nav__pill.is-active {
  transition: background var(--jb-transition-base),
    color var(--jb-transition-base),
    box-shadow var(--jb-transition-base);
  box-shadow: 0 1px 0 rgba(14, 58, 78, 0.15),
    0 8px 24px -12px rgba(14, 58, 78, 0.35);
}

/* ════════════════════════════════════════════════════════
   UX01 C18 — views, not one long scroll
   ────────────────────────────────────────────────────────
   body[data-jb-view] names the view the chrome is showing.
   Each view's regions render; the other views' regions
   are display:none. Regions stay in place in the DOM, so
   every data-region anchor and contract is unchanged.
   Without the attribute (chrome not mounted, legacy view)
   nothing here applies and the page flows as before.
   ════════════════════════════════════════════════════════ */
html body.jb-v2[data-jb-view="today"]:has(#dashboard) [data-region="pipeline"],
html body.jb-v2[data-jb-view="today"]:has(#dashboard) [data-region="lattice"],
html body.jb-v2[data-jb-view="today"]:has(#dashboard) [data-region="role"],
html body.jb-v2[data-jb-view="today"]:has(#dashboard) [data-region="scribe"],
html body.jb-v2[data-jb-view="pipeline"]:has(#dashboard) [data-region="today"],
html body.jb-v2[data-jb-view="pipeline"]:has(#dashboard) [data-region="dawn"],
html body.jb-v2[data-jb-view="pipeline"]:has(#dashboard) [data-region="role"],
html body.jb-v2[data-jb-view="pipeline"]:has(#dashboard) [data-region="scribe"],
html body.jb-v2[data-jb-view="role"]:has(#dashboard) [data-region="today"],
html body.jb-v2[data-jb-view="role"]:has(#dashboard) [data-region="dawn"],
html body.jb-v2[data-jb-view="role"]:has(#dashboard) [data-region="pipeline"],
html body.jb-v2[data-jb-view="role"]:has(#dashboard) [data-region="lattice"] {
  /* !important and one extra type selector: jb-v2-legacy-hide.css forces
     every region to display:block !important once #dashboard shows, with
     an id inside :has(), so a plain rule here can never win. */
  display: none !important;
}

/* A focused view heading or region is a landing spot, not a control:
   no ring on the programmatic focus, but it stays in the a11y tree. */
body.jb-v2 [data-region][tabindex="-1"]:focus,
body.jb-v2 .today-head__title[tabindex="-1"]:focus,
body.jb-v2 .case__title-h[tabindex="-1"]:focus,
body.jb-v2 .jb-shelf__title[tabindex="-1"]:focus {
  outline: none;
}

/* ---- Skip link: the first Tab stop on every view -------- */
body.jb-v2 .jb-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2100;
  padding: 10px 16px;
  border-radius: var(--jb-radius-sm);
  background: var(--jb-navy);
  color: var(--jb-ink-inverse);
  font-family: var(--jb-font-body);
  font-size: var(--jb-text-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

body.jb-v2 .jb-skip:focus,
body.jb-v2 .jb-skip:focus-visible {
  transform: none;
  outline: 2px solid var(--jb-navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--jb-paper);
}

body:not(.jb-v2) .jb-skip {
  display: none;
}

/* ---- Add job (C5) --------------------------------------- */
body.jb-v2 .page-top__actions .page-top__action--add {
  padding: 0 14px;
  color: var(--jb-ink-inverse);
  background: var(--jb-navy);
}

body.jb-v2 .page-top__actions .page-top__action--add:hover {
  color: var(--jb-ink-inverse);
  background: color-mix(in srgb, var(--jb-navy) 90%, var(--jb-mint-deep));
}

body.jb-v2 .page-top__add-plus {
  font-family: var(--jb-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

/* Run discovery sits beside Add job as the secondary action. */
body.jb-v2 .page-top__actions .page-top__action--primary {
  color: var(--jb-navy);
  background: var(--jb-paper);
  box-shadow: inset 0 0 0 1px var(--jb-line-strong);
}

body.jb-v2 .page-top__actions .page-top__action--primary:hover {
  color: var(--jb-navy);
  background: var(--jb-paper-2);
}

/* ---- TR-21: [hidden] wins over the action display rules - */
body.jb-v2 .page-top__actions [hidden],
body.jb-v2 .page-top__actions .page-top__action[hidden],
body.jb-v2 .page-top__more [hidden],
body.jb-v2 .page-top__more .page-top__action[hidden] {
  display: none;
}

/* ---- More menu (phones, AX-15 · AX-16) ------------------ */
body.jb-v2 .page-top__more {
  display: none;
}

@media (max-width: 600px) {
  body.jb-v2 .page-top__menu-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  body.jb-v2 .page-top__actions {
    overflow: visible;
  }

  body.jb-v2 .page-top.is-menu-open .page-top__more {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%;
    right: var(--jb-flow-gutter, 18px);
    z-index: 800;
    min-width: 220px;
    padding: 8px;
    background: var(--jb-paper);
    border: 1px solid var(--jb-line-soft);
    border-radius: var(--jb-radius-md);
    box-shadow: var(--jb-shadow-card);
  }

  body.jb-v2 .page-top__more .page-top__action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--jb-radius-sm);
    background: transparent;
    color: var(--jb-navy);
    font-family: var(--jb-font-body);
    font-size: var(--jb-text-sm);
    text-decoration: none;
    cursor: pointer;
  }

  body.jb-v2 .page-top__more .page-top__action:hover {
    background: var(--jb-paper-2);
  }

  body.jb-v2 .page-top__more .page-top__action:focus-visible {
    outline: 2px solid var(--jb-navy);
    outline-offset: -2px;
  }

  body.jb-v2 .page-top__more .page-top__action::after {
    content: attr(aria-label);
  }

  /* The bar keeps Add job, Run discovery, Settings and the account. */
  body.jb-v2 .page-top__actions .page-top__action--add {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  body.jb-v2 .page-top__actions .page-top__action--add .page-top__add-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.jb-v2 .jb-skip {
    transition: none;
  }
}

/* ---- Dossier view's empty state: the shelf (DS-09) -------
   role.js paints .jb-shelf into [data-region="role"] when no role is
   open; flowing-chrome.js focuses its title on a view change. Moved from
   role.css, scoped under the shelf's root class, tokens-v2 only. */
body.jb-v2 .jb-shelf {
  position: relative;
  max-width: 1100px;
  margin: 56px auto 80px;
  padding: 0 32px;
  text-align: center;
}

body.jb-v2 .jb-shelf .jb-shelf__rule {
  height: 1px;
  margin-bottom: 22px;
  background: repeating-linear-gradient(90deg, var(--jb-line) 0 6px, transparent 6px 12px);
}

body.jb-v2 .jb-shelf .jb-shelf__num {
  margin-bottom: 14px;
  font-family: var(--jb-font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--jb-ink-3);
}

body.jb-v2 .jb-shelf .jb-shelf__num em {
  font-style: normal;
  color: var(--jb-amber);
}

body.jb-v2 .jb-shelf .jb-shelf__title {
  margin: 0 0 10px;
  font-family: var(--jb-font-display);
  font-size: 38px;
  line-height: 1.1;
  color: var(--jb-navy-soft);
}

body.jb-v2 .jb-shelf .jb-shelf__title em {
  font-style: italic;
  color: var(--jb-mint);
}

body.jb-v2 .jb-shelf .jb-shelf__sub {
  max-width: 520px;
  margin: 0 auto 26px;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  color: var(--jb-ink-3);
}

body.jb-v2 .jb-shelf .jb-shelf__hints {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

body.jb-v2 .jb-shelf .jb-hint {
  padding: 18px 20px;
  border: 1.5px dashed var(--jb-line);
  border-radius: var(--jb-radius-lg);
  background: transparent;
  text-align: left;
}

body.jb-v2 .jb-shelf .jb-hint__eyebrow {
  margin-bottom: 6px;
  font-family: var(--jb-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--jb-ink-3);
}

body.jb-v2 .jb-shelf .jb-hint__title {
  margin: 0 0 4px;
  font-family: var(--jb-font-display);
  font-size: 22px;
  line-height: 1.15;
  color: var(--jb-navy-soft);
}

body.jb-v2 .jb-shelf .jb-hint__desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--jb-ink-3);
}

body.jb-v2 .jb-shelf .jb-shelf__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  border: 1px solid var(--jb-navy);
  border-radius: var(--jb-radius-pill);
  background: var(--jb-paper);
  color: var(--jb-navy);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--jb-shadow-sticker);
}

body.jb-v2 .jb-shelf .jb-shelf__cta-key {
  padding: 2px 6px;
  border: 1px solid var(--jb-line);
  border-radius: 4px;
  background: var(--jb-paper-3);
  font-family: var(--jb-font-mono);
  font-size: 11px;
}

@media (max-width: 720px) {
  body.jb-v2 .jb-shelf .jb-shelf__hints { grid-template-columns: 1fr; }
}
