/* Portal's own top bar, in one place.
 *
 * These three rules were pasted into 26 pages. Core's juntos-shell.css deliberately stops at
 * POSITIONING the bar -- ".ju-topbar-actions { display:flex }" and a comment saying apps
 * style their own contents -- so the pill, the lockup size and the phone behaviour really are
 * Portal's to own. Owning them 26 times is what was wrong, not owning them.
 *
 * Duplication does not stay identical. By the time it was counted, two copies had drifted:
 * account/security had 8px where everything else had the radius token (10px) and a raw 13px
 * where everything else read --text-sm, and admin/people/fields differed in whitespace alone.
 * Nobody chose either of those; they are just what happens to the 26th copy. The other cost
 * was quieter -- a scan of "wrong font-weights" in this app reported 35 when the real number
 * was 6, because one duplicated rule counted 25 times.
 *
 * Named portal-*, not juntos-*, because juntos-* is the prefix for files GENERATED by Core's
 * scripts/generate-ui-css.js and copied into each app. This one is hand-written and Portal's.
 *
 * Load it AFTER juntos-shell.css and BEFORE the page's own <style>, so a page can still
 * override any of this for itself.
 */

/* The outlined pill on the right of the bar: sign out, a switcher, a help link. */
.ju-topbar-actions a,
.ju-topbar-signout {
  color: #fff;
  font: inherit;
  font-size: var(--text-sm, 13px);
  font-weight: 700;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.ju-topbar-actions a:hover,
.ju-topbar-signout:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.ju-topbar-actions a:focus-visible,
.ju-topbar-signout:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* The Juntos lockup is WIDE (416x96) and already contains the word JUNTOS, so it is sized by
   HEIGHT. The shared .ju-topbar-mark is a 38x38 SQUARE, which would letterbox this to about
   7px of actual wordmark. */
.ju-topbar-mark {
  width: auto;
  height: 30px;
}

/* On a phone the bar is one row, like every app's (2026-10-09, Core juntos-shell.css): the church name sits under
   "Portal", so it no longer has to be hidden here. The wide lockup shrinks to 20px tall to leave the words room. */
@media (max-width: 560px) {
  .ju-topbar-mark { height: 20px; }
}

/* A person's own words (a pasted link, a long name) wrap inside their box instead of running past it. `break-word`, not `anywhere` (2026-10-18): `anywhere` also let a squeezed column split ordinary words ("Photographe r", "Congregationa l Care" on Serving's Teams at 375px); `break-word` breaks a word only when it cannot fit on a line of its own. Tables keep break-word too, so a wide table still scrolls. Portal's pages do not use the shared shell's `ju-shell` class, so this sheet carries the rule. */
body { overflow-wrap: break-word; }
table, table * { overflow-wrap: break-word; }
