/*
 * Responder app. Read with a helmet on, at a red light, in the rain.
 * Bigger type, fewer words, one action per screen.
 */

.auth-top { text-align: center; margin-bottom: 28px; }
.brand { font-size: 20px; font-weight: 700; }
.brand-sub { color: var(--text-dim); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* --- duty bar ------------------------------------------------------------- */

.duty-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 16px 0 14px;
}
.duty-state { font-size: 19px; font-weight: 650; }
.duty-sub { color: var(--text-dim); font-size: 14px; margin-top: 2px; }
.duty-bar.is-on { border-color: var(--ok); }
.duty-bar.is-stale { border-color: var(--warn); }

.switch {
  width: 64px; height: 38px; border-radius: 999px; border: 0;
  background: var(--bg-input); position: relative; cursor: pointer; flex: none;
}
.switch span {
  position: absolute; top: 4px; inset-inline-start: 4px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--text-dim);
  transition: transform .15s ease, background .15s ease;
}
.switch[aria-checked="true"] { background: rgba(47,191,113,.25); }
.switch[aria-checked="true"] span { background: var(--ok); transform: translateX(26px); }
[dir="rtl"] .switch[aria-checked="true"] span { transform: translateX(-26px); }

.board-empty { color: var(--text-dim); text-align: center; padding: 48px 0; }
.board-foot { margin-top: auto; display: flex; gap: 8px; padding-top: 16px; }
.board-foot .btn { flex: 1; }

/* --- an offer card on the board ------------------------------------------- */

.offer {
  background: var(--bg-raised); border: 2px solid var(--danger);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.offer-eta { font-size: 26px; font-weight: 700; }
.offer-left { color: var(--text-dim); font-size: 14px; }

/* --- the ringing screen --------------------------------------------------- */

.ring { background: #2a0a0c; justify-content: center; text-align: center; }
.ring-top {
  font-size: 15px; font-weight: 700; letter-spacing: .3em;
  color: var(--danger); padding-top: 10px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: .3; } }
.ring-eta { font-size: 56px; font-weight: 750; line-height: 1.05; margin: 6px 0 2px; }
.ring-cat { color: var(--text-dim); font-size: 18px; margin-bottom: 14px; min-height: 26px; }
.ring .map { height: 220px; margin-bottom: 12px; }
.ring-count { font-size: 34px; font-weight: 750; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
/* The bar drains with the seconds: readable at a glance, through a visor. */
.ring-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 16px; }
.ring-bar { height: 100%; background: var(--ok); transform-origin: left; transform: scaleX(1); transition: transform .25s linear; }
[dir="rtl"] .ring-bar { transform-origin: right; }
/* The last ten seconds say so without a word. */
.ring.is-urgent .ring-count { color: var(--danger); }
.ring.is-urgent .ring-bar { background: var(--danger); }
.btn.big { min-height: 74px; font-size: 21px; margin-bottom: calc(8px + var(--safe-bottom)); }

/* --- the job -------------------------------------------------------------- */

.job-head { display: flex; align-items: center; gap: 14px; padding: 16px 0 10px; }
/* The face, at the size you actually compare against a street: big enough to
   recognise, small enough that the rest of the screen still works. */
.job-face {
  width: 68px; height: 68px; border-radius: 16px; object-fit: cover; flex: none;
  background: var(--bg-input); border: 1px solid var(--line);
}
.job-name { font-size: 24px; font-weight: 650; }
.job-state { color: var(--text-dim); font-size: 15px; margin-top: 2px; }
.job-code {
  font-size: 34px; font-weight: 750; letter-spacing: .1em;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px 14px; font-variant-numeric: tabular-nums;
}
.say-code { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }

.duress {
  background: var(--danger); color: #fff; font-weight: 700;
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
  animation: blink 1.4s steps(2, start) infinite;
}

/*
 * Where we are in the intervention. One action is on screen at a time — a
 * gloved hand needs one big target, not three — so this rail is what says the
 * step after it, without inviting a press.
 */
.steps {
  display: flex; list-style: none; margin: 14px 0 0; padding: 0; gap: 6px;
  counter-reset: step;
}
.steps li {
  flex: 1; text-align: center; font-size: 14px; color: var(--text-dim);
  padding-top: 14px; position: relative;
}
.steps li::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px;
  border-radius: 999px; background: var(--bg-input);
}
.steps li.is-done { color: var(--text); }
.steps li.is-done::before { background: var(--ok); }
.steps li.is-now { color: var(--text); font-weight: 650; }
.steps li.is-now::before { background: var(--accent); }

.job-actions { padding-top: 14px; }
.job-actions .btn.ghost { margin-top: 14px; }
