/* Header Back button (partials/back_button.php): big tap target, shrinks to the arrow on narrow phones. */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 .75rem 0 .5rem;
  border-radius: 10px;
  border: 1px solid currentColor;
  border-color: rgba(127, 127, 127, .35);
  color: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.back-btn[hidden] { display: none; }
.back-btn:hover { background: rgba(127, 127, 127, .14); }
.back-btn:focus-visible { outline: 3px solid #4ea1ff; outline-offset: 2px; }
.back-ico { flex: 0 0 auto; }
@media (max-width: 340px) {
  .back-btn { padding: 0; justify-content: center; }
  .back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .back-btn { display: none; } }
/* Staff header: Back sits first (left edge, like a phone app). The desktop menu row is full, so
   there it is the arrow only (aria-label still says Back); the word shows on wide screens and
   on tablets, where the menu is in the bottom tab bar. */
.site-header .back-hdr { order: -1; margin-right: .25rem; }
@media (min-width: 900px) and (max-width: 1439px) {
  .site-header .back-hdr { padding: 0; justify-content: center; }
  .site-header .back-hdr .back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 900px) { .site-header .back-hdr { margin-right: 0; min-width: 40px; min-height: 40px; } }
/* Narrow phones: the wordmark gives up its room so "+ New/Nouveau" still fits next to Back. */
@media (max-width: 480px) { .site-header:has(.back-hdr) .brand-name { display: none; } }
