/* The shared app bar (shared/appbar.ts), Basin's bar made common (Omar, 23 Nov). Self-contained: its own token
   fallbacks, every class "ab-", so it drops into any app's stylesheet stack. Load it after the app's own CSS.
   Other repos carry a copy; this file is the source. Light only, no italics, square panels with the lift. */
.ab {
  --ab-ink: var(--ink, #17171b); --ab-soft: var(--ink-soft, #4a4a52); --ab-poppy: var(--poppy, #ef4a24);
  --ab-white: var(--white, #ffffff); --ab-rule: var(--rule, rgba(23, 23, 27, .2)); --ab-wash: var(--wash, rgba(23, 23, 27, .08));
  --ab-lift: var(--lift, 3px 4px 0 rgba(23, 23, 27, .12)); --ab-ease: var(--ease, cubic-bezier(.19, 1, .22, 1));
  --ab-display: var(--display, "Archivo", "Helvetica Neue", Arial, sans-serif);
  --ab-text: var(--text, "Instrument Sans", "Helvetica Neue", Arial, sans-serif);
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px;
  min-height: 72px; border-bottom: 1px solid var(--ab-rule); font-family: var(--ab-text); color: var(--ab-ink);
  grid-column: 1 / -1;
}
.ab-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ab-ink); text-decoration: none; min-width: 0; }
.ab-sign { display: block; flex: none; width: 34px; height: 34px; }
.ab-name { font-family: var(--ab-display); font-stretch: 125%; font-weight: 400; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; font-size: 22px; white-space: nowrap; }
.ab-stop { display: inline-block; width: .19em; height: .19em; margin-left: .05em; border-radius: 50%; background: var(--ab-poppy); vertical-align: baseline; }
.ab-nav { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 18px; font-size: 15px; }
.ab-wide { display: flex; align-items: center; gap: 22px; }
.ab-nav a, .ab-trigger { color: var(--ab-ink); text-decoration: none; padding: 0 0 2px; border: 0; border-bottom: 1px solid transparent; white-space: nowrap; font: inherit; }
.ab-nav a:hover, .ab-trigger:hover { border-bottom-color: var(--ab-rule); }
.ab-nav a.on, .ab-trigger.on { border-bottom-color: var(--ab-ink); }
.ab-group { position: static; }
.ab-trigger { display: inline-flex; align-items: center; gap: 7px; background: none; cursor: pointer; }
.ab-chev { transition: transform .25s var(--ab-ease); }
.ab-trigger[aria-expanded="true"] .ab-chev { transform: rotate(180deg); }
.ab-panel { position: absolute; z-index: 40; top: calc(100% + 16px); right: -1px; width: min(468px, calc(100vw - 32px)); background: var(--ab-white); border: 1px solid var(--ab-ink); box-shadow: var(--ab-lift); padding: 8px; }
.ab-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }
.ab-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ab-list li + li { border-top: 1px solid var(--ab-wash); }
.ab .ab-list a { display: grid; grid-template-columns: minmax(84px, max-content) minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 9px 10px 10px; border: 0; white-space: normal; }
.ab .ab-list a:hover, .ab .ab-list a:focus-visible { background: var(--ab-wash); }
.ab .ab-list a:focus-visible { outline-offset: -2px; }
.ab-t { font-weight: 500; }
.ab-d { font-size: 14px; line-height: 1.4; color: var(--ab-soft); }
.ab-list a.on .ab-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ab .ab-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: .25em 1.15em .22em; border: 1px solid var(--ab-ink); border-radius: 999px; font-size: 15px; }
.ab .ab-pill:hover, .ab .ab-pill.on { background: var(--ab-wash); border-bottom-color: var(--ab-ink); }
.ab .ab-dom { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0 -6px 0 -2px; border: 0; padding: 0; }
.ab-dom-ic { display: block; transition: transform .35s var(--ab-ease); }
.ab .ab-dom:hover .ab-dom-ic { transform: scale(1.08); }
.ab-menu { display: none; align-items: center; gap: 9px; min-height: 38px; padding: 0 14px; border: 1px solid var(--ab-ink); border-radius: 999px; background: transparent; color: var(--ab-ink); cursor: pointer; font: inherit; font-size: 15px; }
.ab-burger { display: block; width: 14px; height: 7px; border-top: 1.5px solid var(--ab-ink); border-bottom: 1.5px solid var(--ab-ink); }
.ab-menu[aria-expanded="true"] { background: var(--ab-wash); }
.ab-sheet { display: none; }
.ab-label { font-family: var(--ab-text); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 639.98px) {
  .ab-nav { gap: 8px; position: static; }
  .ab-wide, .ab .ab-dom { display: none; }
  .ab .ab-dom.ab-dom--always { display: inline-flex; width: 44px; height: 44px; }
  .ab-menu { display: inline-flex; }
  .ab .ab-pill, .ab-menu { min-height: 44px; }
  .ab-sheet:not([hidden]) { display: block; position: absolute; z-index: 40; top: calc(100% - 1px); left: -16px; right: -16px; max-height: calc(100dvh - 80px); overflow-y: auto; background: var(--ab-white); border-top: 1px solid var(--ab-ink); border-bottom: 1px solid var(--ab-ink); box-shadow: var(--ab-lift); padding: 6px 16px 14px; }
  .ab-sheet-group { padding-top: 14px; }
  .ab-sheet-group h2 { margin: 0 0 4px; color: var(--ab-soft); }
  .ab .ab-sheet .ab-list a { grid-template-columns: minmax(0, 1fr); gap: 1px; min-height: 48px; padding: 10px 2px; }
  .ab-sheet > * + * { border-top: 1px solid var(--ab-rule); margin-top: 6px; padding-top: 6px; }
  .ab-t--icon { display: inline-flex; align-items: center; gap: 10px; }
  .ab-name { font-size: 20px; }
}
