/* GFC Builds: styles owned by shell (see CONTRACT.md). */
.topbar a.brand { color: inherit; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.topbar a.brand:focus-visible { border-radius: 10px; }
.shell.bare .main { padding-bottom: 0; }
/* Bare screens (sign-in, the walkthrough runner) never get the desktop sidebar grid,
   the main column's padding or its max width: they own the whole window. */
@media (min-width: 1024px) {
  .shell.bare { display: block; }
  .shell.bare .main { padding: 0; }
  .shell.bare .main-in { max-width: none; }
}

/* ---------- bad signal (11/2): the offline / waiting-to-send bar ----------
   One slim bar that sits right above the tab bar. Everything that sits above the tab
   bar (toasts, the + button, the brain box, the page's bottom padding) moves up by
   --net-h while it shows, so it never covers anything. */
body.has-netbar { --net-h: 48px; }
.netbar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: var(--z-tabbar);
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px var(--gutter, 16px);
  background: var(--amber-tint); border-top: var(--bw) solid var(--amber-edge); color: var(--amber-ink);
  font: 750 15px/1.25 var(--font);
}
.netbar[hidden] { display: none; }
.netbar .ic { flex: none; width: 20px; height: 20px; stroke-width: 2.4; }
.netbar-t { flex: 1; min-width: 0; }
.netbar-t b { font-weight: 850; }
.netbar .btn { flex: none; min-height: 40px; padding: 0 14px; font-size: 15px; }
body.no-tabbar .netbar { bottom: var(--safe-b); }
@media (min-width: 1024px) { .netbar { left: var(--sidebar-w); bottom: 0; } }

/* A new version is ready: one tap reloads (never automatic, so nothing typed is lost). */
.updbar {
  position: fixed; left: 12px; right: 12px; top: calc(var(--safe-t, 0px) + 10px); z-index: var(--z-toast);
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--r-lg);
  background: var(--navy); color: var(--on-navy); box-shadow: var(--sh-toast);
  font: 750 15.5px/1.3 var(--font);
}
.updbar span { flex: 1; }
.updbar .btn { min-height: 44px; background: var(--amber); border-color: var(--amber); color: var(--navy); }

/* ---------- keyboard open (iOS) ----------
   While someone types, the tab bar and the netbar step aside, and a sticky brain box
   drops into the page flow when the field being typed in is not its own, so the
   keyboard never ends up with a box sitting over the field. */
body.kb .tabbar, body.kb .netbar { display: none; }
body.kb { --tabbar-h: 0px; --net-h: 0px; }
body.kb-other .rent-bd, body.kb-other .brain-slot:not(:empty) { position: static; }

/* ---------- the brain box, compact on phones ----------
   One line until there is something in it, then it grows (autosize), capped. */
.bd-ta { min-height: 52px; max-height: 40vh; padding: 13px 14px; line-height: 1.35; }
.bd { padding: 8px; }
.bd-ta::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- narrow phones (first-gen SE, 320px) ----------
   Three-across trays put "Walkthroughs" past its button's edges: two across there. */
@media (max-width: 359px) {
  .tray.t3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jtabs, .jobpage .jtabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobpage .jtabs a { font-size: 14.5px; letter-spacing: -.01em; }
  :root { --gutter: 14px; }
}
