/*
 * HAR SHALOM CEMETERY — the office's sign-in door: its own pieces.
 *
 * File     public/harshalom/static/login.css  (served at /harshalom/static/login.css)
 * Version  0.001
 * Owner    lane L1b (routing, caching, offline, the office door)
 * Page     app/harshalom/login/page.tsx only. The card itself (.hsa-door, .hsa-door__card,
 *          .hsa-brand) is static/admin.css's; this file adds the door's own parts: the provider
 *          buttons, the "for the office" lines, the way back to the site.
 *
 * LIGHT (owner law; DESIGN_V2.md): every colour is a token from static/hs.css. Every rule sits
 * under `.hs` (BUILD_CONTRACT 5); the door's own classes start `hsl-`. A static file: no nesting,
 * no @import. It is an OFFICE file — no public page links it, so the offline worker does not
 * precache it (lib/harshalom/__tests__/service-worker.test.ts OFFICE_ONLY).
 *
 * THREE EXPERIENCES (owner item 11)
 *   PHONE    < 700px    the card fills the width (16px gutters), the buttons full width, 44px
 *                       tall; a landscape phone (short screen) tightens the spacing and the card
 *                       starts at the top instead of being cut off.
 *   TABLET   700-1199px the card centred, 440px wide, 44px touch targets.
 *   COMPUTER >= 1200px  the same card, 40px buttons, hover and focus rings.
 *
 * CHANGELOG (Rule 45)
 *   0.001 · 2026-11-02 · feat/harshalom-v3-audit, lane L1b — created (audit V-18).
 */

/* ── the page: the card centred when it fits, from the top when it does not ── */

.hs.hsl-door {
  /* admin.css centres with justify-content; a card taller than a landscape phone would then be
     cut off at the top with no way to scroll to it. Auto margins centre it only when it fits. */
  justify-content: flex-start;
}

.hs .hsl-door__card {
  margin-top: auto;
  margin-bottom: auto;
}

/* ── the name ─────────────────────────────────────────────────────────── */

.hs .hsl-door__brand {
  border-radius: var(--hs-r);
}

.hs .hsl-door__brand .hsa-brand__he {
  /* under the English name, from its start (it is a column; rtl text alone would hug the right) */
  align-self: flex-start;
}

.hs .hsl-door__for {
  margin: 0;
}

/* ── the platform's sign-in buttons ───────────────────────────────────── */

.hs .hsl-door__providers {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.hs .hsl-door__provider {
  width: 100%;
  gap: 10px;
  color: var(--hs-ink);
}

.hs .hsl-door__ic {
  display: inline-flex;
  flex: none;
  width: 20px;
  height: 20px;
}

.hs .hsl-door__ic svg {
  width: 20px;
  height: 20px;
}

.hs .hsl-door__note {
  margin: 0;
  font-size: var(--hs-fs-sm);
  color: var(--hs-muted);
}

/* ── the way back to the site ─────────────────────────────────────────── */

.hs .hsl-door__back {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--hs-line);
  font-size: var(--hs-fs-sm);
}

.hs .hsl-door__back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hs-accent);
  font-weight: 600;
  text-decoration: none;
}

.hs .hsl-door__back a:hover {
  text-decoration: underline;
}

.hs.hsl-door a:focus-visible,
.hs.hsl-door button:focus-visible {
  outline: 2px solid var(--hs-accent);
  outline-offset: 2px;
}

/* ── PHONE, landscape or short (844x390): tighter, so the card fits ───── */

@media (max-height: 520px) {
  .hs.hsl-door {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hs .hsl-door__card {
    gap: 8px;
  }

  .hs .hsl-door__back {
    padding-top: 2px;
  }
}

/* ── COMPUTER (>= 1200px): a mouse, so the way back need not be 44px ──── */

@media (min-width: 1200px) {
  .hs .hsl-door__back a {
    min-height: 32px;
  }
}
