/* ===========================================================================
   BACK BUTTON — see shared/appback.js.

   Only ever in the DOM when the site is running as a home-screen app, so none
   of this applies to an ordinary visit. Sized to a 44px tap target, which is
   the smallest thing a thumb hits reliably.
   =========================================================================== */
.app-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;   /* optical: pulls it to the same edge as the brand */
  margin-right: .1rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  /* NOT `inherit`. Both headers are white bars, but the athletics one sits in
     a dark theme and inherits white text — an invisible button. An explicit
     dark ink reads on both, and matches the nav text beside it. */
  color: var(--ink-700, #3A3F47);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-back svg { width: 24px; height: 24px; }
.app-back:active { background: rgba(127, 127, 127, .18); }
.app-back:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* 44px has to come from somewhere. On a phone the header is already full, and
   Apply Now is the one item that is also in the drawer — the school header
   drops it below 640px for exactly this reason, and the athletics header now
   does the same, but ONLY when the back button is there to need the room.
   An ordinary visit never sees this rule. */
@media (max-width: 640px) {
  .has-appback .sch-cta .btn,
  .has-appback .nav-cta .btn { display: none; }
}

/* The school brand already gives itself room; on the narrowest phones claw a
   little back so the row still fits with the button in it. */
@media (max-width: 380px) {
  .app-back { width: 38px; height: 38px; margin-left: -8px; }
  .app-back svg { width: 21px; height: 21px; }
}
