/* The one global bar (public/global-nav.js). Single source of truth for its
   look in both apps: command-center carries a byte-identical copy.

   Self-contained on purpose: every rule is under .gn- classes with its own
   colour tokens, and every box property a host stylesheet might touch is set
   here (the portal's .page button rules, Tailwind preflight, Tracking's bare
   nav/ul/a/button/h1/h2 rules). No page stylesheet may target .gn- classes;
   both repos have a test for that.

   Visual reference: docs/design/portal-internal-interface.md. The shared bar
   uses the approved internal ivory/sage/forest palette and navy/orange accents.
   Keep these standalone fallbacks aligned with internal-ui/tokens.css: this
   stylesheet is also copied into Command Center, where the portal is not loaded.

   Theme: html[data-theme=dark|light] wins; with no data-theme (the dashboard's
   Auto) the system setting decides.

   Height: one 52px row (+1px border, + the iPhone safe area), sticky at the
   top. Pages read the offset from --gn-offset; the dashboard also publishes it
   as --primary-nav-offset (its existing consumers). The values below are the
   one-row fallback; observeOffset() in global-nav.js sets the measured height,
   which differs only when large text puts the title on a second row.

   Text: sizes are in rem, so the bar follows the reader's text size, while tap
   targets stay 44px. Widths are container queries in em on the bar itself,
   so with large text the bar switches to its compact layout at a
   proportionally wider screen instead of overflowing (1em = 16px at 100%). */

html:has(.gn-bar) {
  --gn-offset: calc(53px + env(safe-area-inset-top, 0px));
  --primary-nav-offset: calc(53px + env(safe-area-inset-top, 0px));
}

.gn-bar {
  --gn-bg: #214C3C;
  --gn-paper: #214C3C;
  --gn-ink: #F7F4EB;
  --gn-muted: #DCE5D3;
  --gn-line: #C7CCBE;
  --gn-control-line: #C7D3C2; /* a control's edge: 3:1 or more on the bar */
  --gn-hover: #35563E;
  --gn-sel: #496C54;
  --gn-accent: #20375D;
  --gn-accent-hover: #162B49;
  --gn-on-accent: #F7F4EB;
  --gn-mark: #ED7A19;
  --gn-focus: #F7F4EB;
  --gn-shadow: 0 12px 32px rgb(20 37 30 / 0.16);
  --gn-current: #F7F4EB;
  --gn-current-bg: #20375D; /* navy pill: ivory edge and orange marker both read on it */
  --gn-action: #ED7A19;
  --gn-action-hover: #F29345;
  --gn-on-action: #14253E;
  color-scheme: light;

  position: sticky;
  top: 0;
  z-index: 60;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: env(safe-area-inset-top, 0px) 0 0;
  container: gnbar / inline-size;
  border: 0;
  border-bottom: 1px solid var(--gn-line);
  border-radius: 0;
  background: var(--gn-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: none;
  color: var(--gn-ink);
  font: 500 1rem/1.25 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* Theme. The page's data-theme decides (the portal's switch, the dashboard's
   cc-theme); with none set, the system setting. The dashboard also sets
   data-gn-theme on the bar from its own choice, because Tracking pages run a
   separate switch that rewrites the page's data-theme: the bar then looks the
   same on every page. data-gn-theme always wins. */
html[data-theme="dark"] .gn-bar,
.gn-bar.gn-bar[data-gn-theme="dark"] {
  --gn-bg: rgb(20 37 30 / 0.97);
  --gn-paper: #192E25;
  --gn-ink: #F7F4EB;
  --gn-muted: #DCE5D3;
  --gn-line: #516653;
  --gn-control-line: #8B9F8B;
  --gn-hover: #304B39;
  --gn-sel: #243D30;
  --gn-accent: #DCE5D3;
  --gn-accent-hover: #F7F4EB;
  --gn-on-accent: #20375D;
  --gn-mark: #ED7A19;
  --gn-focus: #F7F4EB;
  --gn-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
  --gn-current: #F7F4EB;
  --gn-current-bg: #20375D; /* navy pill: ivory edge and orange marker both read on it */
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .gn-bar {
    --gn-bg: rgb(20 37 30 / 0.97);
    --gn-paper: #192E25;
    --gn-ink: #F7F4EB;
    --gn-muted: #DCE5D3;
    --gn-line: #516653;
    --gn-control-line: #8B9F8B;
    --gn-hover: #304B39;
    --gn-sel: #243D30;
    --gn-accent: #DCE5D3;
    --gn-accent-hover: #F7F4EB;
    --gn-on-accent: #20375D;
    --gn-mark: #ED7A19;
    --gn-focus: #F7F4EB;
    --gn-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
    --gn-current: #F7F4EB;
    --gn-current-bg: #20375D; /* navy pill: ivory edge and orange marker both read on it */
    color-scheme: dark;
  }
}

.gn-bar.gn-bar[data-gn-theme="light"] {
  --gn-bg: #214C3C;
  --gn-paper: #214C3C;
  --gn-ink: #F7F4EB;
  --gn-muted: #DCE5D3;
  --gn-line: #C7CCBE;
  --gn-control-line: #C7D3C2; /* a control's edge: 3:1 or more on the bar */
  --gn-hover: #35563E;
  --gn-sel: #496C54;
  --gn-accent: #20375D;
  --gn-accent-hover: #162B49;
  --gn-on-accent: #F7F4EB;
  --gn-mark: #ED7A19;
  --gn-focus: #F7F4EB;
  --gn-shadow: 0 12px 32px rgb(20 37 30 / 0.16);
  --gn-current: #F7F4EB;
  --gn-current-bg: #20375D; /* navy pill: ivory edge and orange marker both read on it */
  --gn-action: #ED7A19;
  --gn-action-hover: #F29345;
  --gn-on-action: #14253E;
  color-scheme: light;
}

.gn-bar *,
.gn-bar *::before,
.gn-bar *::after {
  box-sizing: border-box;
}

/* A quiet edge below the bar. Brand color stays in the logo and selected control. */
.gn-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: var(--gn-line);
}

.gn-bar .gn-row{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  min-width: 0;
  margin: 0;
  padding: 4px max(12px, env(safe-area-inset-right, 0px)) 4px max(12px, env(safe-area-inset-left, 0px));
}

.gn-bar .gn-brand{
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 2px 4px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: transparent;
}

.gn-bar .gn-brand-icon{
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

.gn-bar .gn-brand-word{
  display: none;
  flex: none;
  width: 6.75rem;
  max-width: none;
  margin: 0;
  color: var(--gn-ink);
  font-family: inherit;
  text-align: left;
  white-space: nowrap;
}

.gn-bar .gn-brand-word strong{
  display: block;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .13em;
}

.gn-bar .gn-brand-word>span{
  display: block;
  margin: 3px 0 0;
  color: inherit;
  font-size: .5rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .2em;
}

.gn-bar .gn-divider{
  display: none;
  flex: none;
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: var(--gn-line);
}

.gn-bar .gn-title{
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--gn-ink);
  font-family: "Mendo Playfair", "Playfair Display", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  /* Allow enlarged titles to wrap and contain Firefox font metrics.
     The measured bar offset follows the title height. */
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-transform: none;
}

/* Inline links: hidden on phones; shown by rank as width allows. */
.gn-bar .gn-links{
  display: none;
  flex: 0 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
  margin: 0 auto 0 4px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.gn-bar .gn-link,
.gn-bar .gn-item{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--gn-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}

/* Compact app destinations remain real links. A filled current tab and an
   orange inset keep orientation explicit without turning every link into a CTA. */
.gn-bar .gn-link{
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
}

.gn-bar.gn-bar .gn-link:hover,
.gn-bar.gn-bar .gn-item:hover{
  background: var(--gn-hover);
  color: var(--gn-ink);
}

.gn-bar .gn-item[aria-current="page"]{
  background: var(--gn-sel);
  color: var(--gn-current);
}

.gn-bar.gn-bar .gn-link[aria-current="page"]{
  border-color: var(--gn-current);
  background: var(--gn-current-bg);
  color: var(--gn-current);
  box-shadow: inset 0 -3px 0 var(--gn-mark);
}

.gn-bar .gn-slot{
  display: inline-flex;
  flex: none;
  align-items: center;
}

.gn-bar .gn-slot:empty{
  display: none;
}

/* A page control placed in the slot (Magic's Tracking menu) gets the bar's
   button look and the 44px target, whatever its own stylesheet says. */
.gn-bar .gn-slot button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--gn-control-line);
  border-radius: 12px;
  background: var(--gn-paper);
  color: var(--gn-ink);
  font: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.gn-bar.gn-bar .gn-slot button:hover,
.gn-bar .gn-slot button[aria-expanded="true"] {
  background: var(--gn-hover);
}

.gn-bar .gn-slot button:focus-visible {
  outline: 2px solid var(--gn-focus);
  outline-offset: 2px;
}

.gn-bar .gn-cta,
.gn-bar .gn-menu-btn,
.gn-bar .gn-theme,
.gn-bar .gn-close{
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--gn-control-line);
  border-radius: 12px;
  background: var(--gn-paper);
  color: var(--gn-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.gn-bar .gn-cta{
  display: none;
  border-color: var(--gn-action);
  background: var(--gn-action);
  color: var(--gn-on-action);
}

.gn-bar.gn-bar .gn-cta:hover{
  border-color: var(--gn-action-hover);
  background: var(--gn-action-hover);
  color: var(--gn-on-action);
}

.gn-bar .gn-cta[aria-current="page"]{
  box-shadow: inset 0 -3px 0 var(--gn-on-action);
}

.gn-bar.gn-bar .gn-menu-btn:hover,
.gn-bar.gn-bar .gn-theme:hover,
.gn-bar.gn-bar .gn-close:hover{
  background: var(--gn-hover);
}

.gn-bar .gn-menu-btn{
  min-width: 72px;
}

.gn-bar .gn-menu-btn[aria-expanded="true"]{
  background: var(--gn-sel);
}

.gn-bar .gn-theme{
  min-width: 64px;
  padding: 0 10px;
}

.gn-bar .gn-brand:focus-visible,
.gn-bar .gn-link:focus-visible,
.gn-bar .gn-item:focus-visible,
.gn-bar .gn-pick-link:focus-visible,
.gn-bar .gn-cta:focus-visible,
.gn-bar .gn-menu-btn:focus-visible,
.gn-bar .gn-theme:focus-visible,
.gn-bar .gn-close:focus-visible{
  outline: 2px solid var(--gn-focus);
  outline-offset: 2px;
}

/* Tools is one pill: the label and chevron both link to the full directory. */
.gn-bar .gn-split{
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.gn-bar .gn-shortcuts-link{
  gap: 6px;
}

.gn-bar .gn-split-mark{
  display: block;
  flex: none;
  font-size: 0.75rem;
  line-height: 1;
}

.gn-bar .gn-menu .gn-split{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.gn-bar .gn-menu .gn-split > .gn-item{
  flex: 1 1 auto;
  width: auto;
}

.gn-bar .gn-links .gn-split .gn-pick-panel:not([hidden]){
  display: block;
  position: absolute;
  z-index: 62;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  width: min(22rem, calc(100vw - 16px));
}

/* Bridge the visual gap so the pointer can enter the dropdown without closing it. */
.gn-bar .gn-links .gn-split .gn-pick-panel::before{
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -7px;
  height: 7px;
}

.gn-bar .gn-menu .gn-split .gn-pick-panel:not([hidden]){
  display: block;
  position: static;
  width: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 0 8px;
}

.gn-bar .gn-split .gn-pick-panel[hidden]{
  display: none;
}

/* An area that is not one page: the words, then any real link. */
.gn-bar .gn-pick{
  position: relative;
}

.gn-bar .gn-links .gn-pick{
  display: inline-flex;
}

.gn-bar .gn-pick > summary{
  list-style: none;
}

.gn-bar .gn-pick > summary::-webkit-details-marker{
  display: none;
}

.gn-bar .gn-pick-panel{
  position: absolute;
  z-index: 62;
  top: calc(100% + 6px);
  left: 0;
  width: min(22rem, calc(100vw - 16px));
  margin: 0;
  padding: 8px;
  border: 1px solid var(--gn-line);
  border-radius: 12px;
  background: var(--gn-paper);
  color: var(--gn-ink);
  box-shadow: var(--gn-shadow);
}

.gn-bar .gn-menu .gn-pick,
.gn-bar .gn-menu .gn-pick-panel{
  position: static;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.gn-bar .gn-menu .gn-pick-panel{
  padding: 0 0 8px;
}

/* A closed area shows its name only. Author display on the links would
   otherwise beat the browser's closed-details rule and leave those links
   in the layout, overlapping and past the screen. */
.gn-bar .gn-pick:not([open]) > .gn-pick-panel,
.gn-bar .gn-pick:not([open]) .gn-pick-link{
  display: none;
}

/* Open inline panels hang toward the brand, so a panel at the right end
   stays inside the bar. The Menu panel is in normal flow and ignores this. */
.gn-bar .gn-links .gn-pick-panel{
  left: auto;
  right: 0;
}

.gn-bar .gn-pick-note{
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
}

.gn-bar .gn-pick-link{
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--gn-ink);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.gn-bar.gn-bar .gn-pick-link:hover{
  background: var(--gn-hover);
  color: var(--gn-ink);
}

.gn-bar .gn-ext-mark{
  margin-left: 0.35em;
  font-weight: 400;
}

.gn-bar .gn-ext-words{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Menu panel: every destination for this viewer, grouped. */
.gn-bar .gn-menu{
  position: absolute;
  top: calc(100% + 1px);
  right: max(8px, env(safe-area-inset-right, 0px));
  z-index: 61;
  display: block;
  width: min(24rem, calc(100vw - 16px));
  max-height: calc(100dvh - var(--gn-offset, 53px) - 16px);
  margin: 6px 0 0;
  padding: 6px 12px 12px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gn-line);
  border-radius: 12px;
  background: var(--gn-paper);
  color: var(--gn-ink);
  box-shadow: var(--gn-shadow);
}

.gn-bar .gn-menu[hidden]{
  display: none;
}

.gn-bar .gn-menu-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.gn-bar .gn-menu-title{
  font-size: 0.875rem;
  font-weight: 650;
}

.gn-bar .gn-group{
  display: block;
  margin: 0;
  padding: 0;
}

.gn-bar .gn-group-label{
  display: block;
  margin: 10px 0 4px;
  padding: 0 12px;
  color: var(--gn-muted);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.gn-bar .gn-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gn-bar .gn-list > li{
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gn-bar .gn-item{
  display: flex;
  width: 100%;
  font-size: 0.875rem;
  white-space: normal;
}

.gn-bar .gn-account{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  margin: 10px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--gn-line);
}

.gn-bar .gn-name{
  min-width: 0;
  padding: 0 12px;
  color: var(--gn-muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.gn-bar .gn-name:empty{
  display: none;
}

.gn-bar .gn-signout{
  width: auto;
  flex: none;
}

/* Home serves signed-out visitors too: until it knows who is signed in, the
   links and Menu keep their space but are not shown or reachable. */
.gn-bar[data-gn-pending] .gn-links,
.gn-bar[data-gn-pending] .gn-cta,
.gn-bar[data-gn-pending] .gn-utility,
.gn-bar[data-gn-pending] .gn-menu-btn {
  visibility: hidden;
}

/* Hover rules use .gn-bar twice: the portal's .page button:hover:not(:disabled)
   is more specific than one class plus :hover. */

/* ---------- Widths (the breakpoints the screenshot check tests) ----------
   Container queries on the bar, in em: at 100% text 48em = 768px, 64em =
   1024px, 80em = 1280px, 90em = 1440px; with larger text each switch comes at a
   wider screen. */

@container gnbar (min-width: 72em) {
  .gn-bar .gn-divider{ display: block; }
  /* Fixed title width, so the five areas sit in the same
     place on every page, and stay on the one 53px row at 768px.
     7.25rem holds the longest current title, Website steps, on one line. */
  .gn-bar .gn-title{ flex: 0 0 7.25rem; max-width: 7.25rem; }
  .gn-bar .gn-links{ display: flex; flex-wrap: nowrap; gap: 4px; }
  .gn-bar .gn-link{ display: none; }
  .gn-bar .gn-link[data-gn-rank="1"]{ display: inline-flex; padding: 0 8px; }
  /* A destination shown as a pill is not repeated in the Menu. */
  .gn-bar .gn-menu .gn-li:has([data-gn-rank="1"]){ display: none; }
  .gn-bar .gn-menu .gn-group:not(:has(.gn-li:not(:has([data-gn-rank="1"])))){ display: none; }
}

@container gnbar (min-width: 72em) {
  .gn-bar .gn-cta{ display: inline-flex; }
  /* The button beside Menu is not repeated in the Menu either. */
  .gn-bar .gn-menu .gn-li:has(> .gn-item[data-gn-id="new-request"]){ display: none; }
  .gn-bar .gn-menu .gn-group:not(:has(.gn-li:not(:has([data-gn-rank="1"])):not(:has(> .gn-item[data-gn-id="new-request"])))){ display: none; }
}

@container gnbar (min-width: 90em) {
  .gn-bar .gn-brand-word{ display: block; }
}

/* Narrow phones: tighter controls, a slightly smaller title. */
@container gnbar (max-width: 23.75em) {
  .gn-bar .gn-row{ gap: 6px; }
  .gn-bar .gn-menu-btn{ min-width: 60px; padding: 0 10px; }
  .gn-bar .gn-theme{ min-width: 52px; padding: 0 8px; }
  .gn-bar .gn-title{ font-size: 0.9375rem; }
}

/* Under 20em (large text on a phone) the title takes its own row under the
   controls, rather than being squeezed out. */
@container gnbar (max-width: 19.9375em) {
  .gn-bar .gn-row{ flex-wrap: wrap; row-gap: 0; }
  .gn-bar .gn-title{ order: 10; flex: 1 0 100%; padding: 0 0 4px; }
  .gn-bar .gn-brand{ margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .gn-bar .gn-link,
  .gn-bar .gn-item,
  .gn-bar .gn-cta,
  .gn-bar .gn-menu-btn,
  .gn-bar .gn-theme,
  .gn-bar .gn-close{
    transition: none;
  }
}

@media (forced-colors: active) {
  .gn-bar::after { background: CanvasText; }
  .gn-bar .gn-link[aria-current="page"],
  .gn-bar .gn-item[aria-current="page"]{ outline: 2px solid Highlight; outline-offset: -2px; }
}

@media print {
  .gn-bar { display: none; }
}

/* Advanced: Bot work, Rules and Samuel's Dashboard group, closed until chosen. */
.gn-bar .gn-advanced{
  margin: 10px 0 0;
  padding: 6px 0 0;
  border-top: 1px solid var(--gn-line);
}
.gn-bar .gn-advanced-toggle{
  cursor: pointer;
  list-style: none;
  color: var(--gn-muted);
  font-weight: 650;
}
.gn-bar .gn-advanced-toggle::-webkit-details-marker{ display: none; }
.gn-bar .gn-advanced-toggle::after{ content: "▸"; margin-left: 6px; }
.gn-bar .gn-advanced[open] > .gn-advanced-toggle::after{ content: "▾"; }

/* Quotas is a persistent utility, separate from the five navigation pills. */
.gn-bar .gn-utility{
  display:inline-flex; flex:none; align-items:center; justify-content:center;
  min-width:60px; min-height:44px; margin:0; padding:0 8px;
  border:0; border-radius:8px; background:transparent; color:var(--gn-ink);
  font:inherit; font-size:0.8125rem; font-weight:650; line-height:1.2;
  text-decoration:none; white-space:nowrap; touch-action:manipulation;
}
.gn-bar.gn-bar .gn-utility:hover,
.gn-bar .gn-utility[aria-current="page"]{ background:var(--gn-sel); color:var(--gn-current); }
.gn-bar .gn-utility:focus-visible{ outline:2px solid var(--gn-focus); outline-offset:2px; }
@container gnbar (max-width:23.75em){
  .gn-bar .gn-utility{ min-width:54px; padding:0 5px; }
}


