/* Breathing pacer: the card in the page header, and the how-to below it. Uses the pas.css tokens.
   Behaviour lives in breathing.js and is unchanged (5 s in, 5 s out, a two-minute timer); it needs the ids
   orb, phase, clock, mainBtn, openBtn, resetBtn, rmNote and the .hidden class. */

/* ---------- the pacer card ---------- */
.br-card { padding: 36px 32px 28px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); text-align: center; }
.pacer { position: relative; width: min(340px, 72vw, 44vh); aspect-ratio: 1; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.pacer-wash { position: absolute; inset: 3.5%; border-radius: 50%; background: radial-gradient(circle, rgba(237, 245, 243, 0) 30%, var(--teal-50) 100%); }
.pacer-ring { position: absolute; inset: 3.5%; border-radius: 50%; border: 1.5px solid rgba(30, 88, 86, .22); }
.pacer-ring-inner { position: absolute; inset: 33%; border-radius: 50%; border: 1px dashed rgba(30, 88, 86, .24); }
.pacer-orb {
  position: relative; width: 54%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #b8e2d9 0%, #7fb5ac 26%, #4f918a 58%, #2b776e 82%, #1e5856 100%);
  box-shadow: 0 18px 44px -20px rgba(22, 70, 68, .55), inset 0 -10px 26px rgba(22, 70, 68, .16), inset 0 6px 18px rgba(255, 255, 255, .22);
  transform: scale(0.62); will-change: transform, opacity;
}
.pacer-phase { margin-top: 24px; min-height: 1.3em; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.pacer-clock { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pacer-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.pacer-main { min-width: 184px; }
.pacer-spec { margin-top: 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); text-wrap: balance; }
.pacer-rm { margin-top: 6px; }
.pacer-spec .nw { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .pacer-orb { transform: scale(0.85); }
}

/* ---------- how to breathe with the circle ---------- */
.br-steps { counter-reset: br; border-top: 1px solid var(--line); }
.br-steps li { counter-increment: br; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.br-steps li::before {
  content: counter(br); grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.br-steps h3 { margin: 6px 0 8px; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.br-steps p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }

@media (max-width: 720px) {
  .br-card { padding: 28px 16px 22px; border-radius: 24px; }
  .pacer-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .pacer-main { grid-column: 1 / -1; }
  .br-steps li { grid-template-columns: 50px minmax(0, 1fr); padding: 20px 0 22px; }
  .br-steps h3 { font-size: 20px; }
  .br-steps p { font-size: 16.5px; }
}
