/* Incentive Spirometer (ROADMAP-Calcs-SelfHealth.md SH39) — the breath pad, the emergency box,
   the notes and the day's sets. The pad is as big as the pulse counter's: many readers are using
   it in a hospital bed or a chair, a day or two after surgery. */
.chqt-sh-pair { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.chqt-sh-tapbox { display: grid; gap: 10px; justify-items: stretch; }
.chqt-sh-tap { width: 100%; min-height: 132px; border-radius: 16px; border: 3px solid #0F5E68; background: #0F5E68; color: #fff; font-size: 24px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.chqt-sh-tap:active, .chqt-sh-tap[data-hit="1"] { background: #0A444C; transform: scale(0.99); }
.chqt-sh-tap:focus-visible { outline: 4px solid #C2703B; outline-offset: 3px; }
.chqt-sh-emergency { border: 3px solid #B03A30; background: #FBEDEB; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.chqt-sh-emergency__text { margin: 0 0 6px; font-weight: 700; font-size: 18px; line-height: 1.45; color: #6E1E17; }
.chqt-sh-emergency__src { margin: 0; font-size: 16px; font-weight: 400; color: #6E1E17; white-space: nowrap; }
.chqt-sh-emergency__src a { color: inherit; }
.chqt-sh-today { border: 2px solid var(--chqt-line, #D9E5E8); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.chqt-sh-today p { margin: 0 0 4px; }
.chqt-sh-notes { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 10px; }
.chqt-sh-note { border-left: 4px solid var(--chqt-line, #D9E5E8); padding: 4px 0 4px 12px; line-height: 1.5; }
.chqt-sh-note--accuracy { border-left-color: #0F5E68; }
.chqt-sh-note--start { border-left-color: #C2703B; }
.chqt-sh-note blockquote { margin: 6px 0 0; padding: 0 0 0 10px; border-left: 3px solid var(--chqt-line, #D9E5E8); font-style: italic; font-size: 17px; }
.chqt-sh-src { display: block; font-size: 16px; color: var(--chqt-muted, #4E626D); margin-top: 3px; }
.chqt-sh-src a { color: inherit; }
.chqt-sh-howto { margin-top: 14px; }
.chqt-sh-howto ol { margin: 0 0 8px; padding-left: 1.3em; }
.chqt-sh-stop { margin: 14px 0; }
.chqt-sh-stop .chqt-list { margin: 4px 0 6px; padding-left: 1.3em; }
.chqt-sh-stop__em { margin: 0 0 4px; font-weight: 700; color: #6E1E17; }
/* the counter is its own section under the answer, so a phone reaches the answer first */
.chqt-sh-counter { display: grid; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--chqt-line, #D9E5E8); }
.chqt-sh-counter__h { margin: 0; font-size: 22px; line-height: 1.3; }
.chqt-sh-counter__out { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.4; min-height: 2.8em; }
/* ⚠️ the first phone screen (the gate's iPhone is 390×664 and the live header takes ~121 px):
   on a phone the lede, the kicker and the reading hint only repeat what the labels and the
   answer already say, so they give way to the answer */
@media (max-width: 460px) {
  .chqt[data-tool="incentive-spirometer"] .chqt-lede,
  .chqt[data-tool="incentive-spirometer"] .chqt-kicker,
  .chqt[data-tool="incentive-spirometer"] .chqt-sh-formhint { display: none; }
  .chqt[data-tool="incentive-spirometer"] .chqt-sh-emergency { padding: 8px 10px; margin-bottom: 10px; }
  .chqt[data-tool="incentive-spirometer"] .chqt-sh-emergency__text { margin: 0; }
  .chqt[data-tool="incentive-spirometer"] .chqt-result { padding-top: 12px; }
}
