/* pulses.css - the look of the Pulses tab (pulses.js; PULSES 0001)
   ------------------------------------------------------------------------
   Every number here is the approved renders': Concept Art/pulses.html for
   the phone (.plist, .prow, .pwk, .ptitle, .chev, .sbar, .sthumb, .fadebot;
   .panel, .stmt, .stmt-em, .stmt-wk, .stmt-h, .stmt-sub; .qscroll, .qhead,
   .opts, .opt, .radio, .otext, .is-right, .is-wrong, .reply, .reply-h,
   .reply-b, .fadeup, .posline; .actions, .btn, .btn.blue), and
   wide_pulses.html for a computer and a tablet on its side (.pscroll,
   .ppanel, .wstmt, .pgrid, .pq, .popts, .popt, .bandline; the buttons in
   the bottom row's middle, nav.css's slot); the week rows lit as list
   bubbles by shell.css's tokens, the panels flat (D1699); the
   headlines' font on the titles (.ty-head :is(.stmt-h, .ptitle)). Loaded
   from this origin, which is what the page's Content Security Policy
   allows: style-src 'self', so there is no inline style anywhere; a size
   pulses.js computes (the bean) is set through the element's style object.

   ⛔ The upright page is 12 px shorter than the renders draw it (the 70 px
      tab bar of the Founder's ruling 8, D1657, takes them from the page
      above it): the panels the renders draw 532 and 496 px are 520 and 484
      on the 844 px phone, and every other number is as drawn.
   ⛔ No ဘာသာပြန် on a Pulse (D1418): the renders' .tline under the
      question and under the reply is not built, and its 22 px gap and 22 px
      line close up. */

.pu-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Every button of these pages: one class, so every rule below it decides
   its own look. */
.pu-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ══ P1, THE WEEK LIST (pulses.html .plist, .prow): 68 px rows, 14 px in,
   18 px corners, 10 px apart, the list scrolling under the top bar. ══ */
.pu-list {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.pu-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pu-scroll::-webkit-scrollbar,
.pu-qscroll::-webkit-scrollbar {
  display: none;
}

.pu-row {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 68px;
  padding: 0 18px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  /* A list bubble: the light, shell.css's tokens (D1699). */
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}

.pu-rtext {
  display: block;
  flex: 1;
  min-width: 0;
  padding-right: 24px;
}

.pu-wk {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.pu-title {
  /* The headlines' font (ART_FIX 0001, the Founder's ruling 3;
     surface_numbers_and_type.html .ty-head :is(.ptitle)). */
  font-family: var(--font-headline);
  display: block;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 17.5px;
  font-weight: 600;
  color: #EAF0FA;
}

/* The chevron: the icon set's drawing, 20 px (.chev .ic, 1em of 20 px), 18
   px from the row's right edge. */
.pu-chev {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 20px;
  height: 20px;
  color: #5C6B85;
}

/* §1e: the bean, 6 px, #8FA3C4, round, NO track; 6 px in from the right of
   what scrolls, 10 px clear of its top and bottom; only where something
   scrolls. */
.pu-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  z-index: 4;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}

.pu-track.pu-scrolls {
  visibility: visible;
}

.pu-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* The fades: P1's under the list while more is below it (.fadebot, 56
   px), P3's under the card's top edge once it has scrolled (.fadeup, 46
   px). */
.pu-fade {
  position: absolute;
  z-index: 3;
  visibility: hidden;
  pointer-events: none;
}

.pu-list > .pu-fade {
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(14, 21, 38, 0), #0E1526);
}

.pu-list.pu-below > .pu-fade {
  visibility: visible;
}

.pu-panel > .pu-fade {
  left: 1px;
  right: 1px;
  top: 1px;
  height: 46px;
  border-radius: 17px 17px 0 0;
  background: linear-gradient(to bottom, #1D2739, rgba(29, 39, 57, 0));
}

.pu-panel.pu-above > .pu-fade {
  visibility: visible;
}

/* ══ THE PEEK'S SPOT (FIGURE_PLACES 0002, D2202 (2); pulses.html, the places
   section's "6 · a Pulse not started: peek in from the right", a copy of
   P1 · one course): the list's own holder for Little Sai Thura's peek
   (SaiThuraFigure.place, figure.css's .ls-a-peek-fig inside it), his
   97 x 150 box 36 px under the last row (the drawing's top 556, its last
   row's foot 520) and 64 px in from the screen's right edge (its left 326
   of the frame's 390), so its last 33 px lie past the edge, where the list
   clips him (.pu-list's overflow) and his slide in and out begins and
   ends. pulses.js sets its top alone (the last row's foot); it takes no
   room, so no row, the scroll height, the bean or the fade moves, and a
   tap passes through it. ══ */
.pu-peek {
  position: absolute;
  right: -33px;
  width: 97px;
  height: 150px;
  margin-top: 36px;
  pointer-events: none;
}

/* ══ THE PANEL (pulses.html .panel): the card, 14 px in, 18 px corners,
   flat (D1699). ══ */
.pu-panel {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  margin: 0 14px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
}

/* ══ P2 AND P4, THE STATEMENT (pulses.html .stmt): top-aligned, never
   centered (D537); the block 128 px down (D553), a pixel value, ⛔ never a
   percentage padding, which resolves against the width. ══ */
.pu-stmt {
  padding: 128px 30px 0;
  text-align: center;
}

.pu-sline {
  display: block;
}

/* On the phone, with Little Sai Thura at the top of the statement
   (little_sai_thura_and_big_moments.html .stmt.ls-pstart, .stmt.ls-pend;
   PULSES 0001 Amendment A): P2's block 20 px down, his 100 px and 8 px
   then leaving the label 128 px down as before; P4's 54 px, his 124 px
   then leaving the title where the 🎉 left it. figure.css draws him. */
.pu-stmt.pu-pstart {
  padding-top: 20px;
}

.pu-stmt.pu-pend {
  padding-top: 54px;
}

.pu-swk {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.pu-sh {
  /* The headlines' font, extra bold, a little tighter
     (surface_numbers_and_type.html .ty-head .stmt-h: 800, -0.02 em). */
  font-family: var(--font-headline);
  margin-top: 11px;
  font-size: 27.5px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.02em;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

.pu-sh.pu-done {
  margin-top: 22px;
}

.pu-ssub {
  margin-top: 22px;
  font-size: 18.5px;
  line-height: 1.5;
  color: #AEBBD0;
}

.pu-em {
  font-size: 50px;
  line-height: 1;
}

/* ══ THE BUTTONS (pulses.html .actions, .btn): 84 px, 9 px apart, 14 px in,
   10 px under what is above them; every button outlined (D548), the first
   listed blue. ══ */
.pu-actions {
  flex: none;
  display: flex;
  gap: 9px;
  margin-top: 10px;
  padding: 0 14px;
}

.pu-btn {
  flex: 1;
  min-width: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: #C8D3E4;
}

.pu-btn.pu-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}

/* ══ P3, A QUESTION (pulses.html .qscroll, .opts, .opt, .reply): the panel
   scrolls, the reply right after the last option and nothing held open for
   it before a tap. ══ */
.pu-qscroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 30px 22px 26px;
}

.pu-qhead {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

.pu-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.pu-opt {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}

.pu-radio {
  flex: none;
  display: block;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
}

.pu-otext {
  display: block;
  min-width: 0;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #DCE5F2;
  overflow-wrap: anywhere;
}

/* Good's and Again's own pairs (D540, D549): a near-black fill, the text
   and the dot carry the color, only on the option the student picked. */
.pu-opt.pu-right {
  border-color: rgba(113, 217, 140, .55);
  background: #13221A;
}

.pu-opt.pu-right .pu-otext {
  font-weight: 600;
  color: #71D98C;
}

.pu-opt.pu-right .pu-radio {
  border-color: #71D98C;
  background: #71D98C;
}

.pu-opt.pu-wrong {
  border-color: rgba(237, 106, 118, .55);
  background: #231317;
}

.pu-opt.pu-wrong .pu-otext {
  font-weight: 600;
  color: #ED6A76;
}

.pu-opt.pu-wrong .pu-radio {
  border-color: #ED6A76;
  background: #ED6A76;
}

.pu-reply {
  margin-top: 22px;
}

.pu-rh {
  font-size: 17.5px;
  font-weight: 700;
}

.pu-rh.pu-ok {
  color: #71D98C;
}

.pu-rh.pu-no {
  color: #ED6A76;
}

.pu-rb {
  margin-top: 7px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #AEBBD0;
  overflow-wrap: anywhere;
}

/* The bottom line: the course and week alone (D556), 26 px, 10 px under
   the card, never drawn empty; its words one span. */
.pu-posline {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
}

.pu-pos {
  white-space: nowrap;
}

/* ══ P1 BEFORE THE FIRST PULSE (pulses.html §5, P1e and P1f; D1879):
   Nothing due today's block (overlays_and_end_states.html E2, as study.css
   built it: .es .esh .esp) centered in the column under the top bar (P1e)
   or the class picker's row (P1f), 24 px from each side; Little Sai Thura
   juggling above it (FIGURE_PLACES 0002, D2202 (5): in place of his calm
   stand, in its stage, same spot, placed by SaiThuraFigure.place) at the
   stage's full 100 x 150, there being no button on this screen (D1733,
   D1736). Flat: no light, no panel (D1699).
   ⛔ No button, no ဘာသာပြန် (D1418). ══ */
.pu-empty {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}

.pu-empty .ls-stage.calm {
  height: 156px;
}

.pu-empty .ls-stage.calm .ls-fig {
  height: 150px;
  width: 100px;
}

/* E2's headline (.esh), as study.css's .sd-esh: 26 px, white, the
   headlines' font, extra bold, a little tighter (surface_numbers_and_type
   .html A5, .ty-head .esh). */
.pu-esh {
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #FFFFFF;
}

/* E2's line (.esp): 14 px under the headline, 16 px at 1.5. */
.pu-esp {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #AEBBD0;
}

/* ══ THE WAITING PAGE (PULSE_DESIGN 9; D1910, D1929, D1907's look): the
   doors' ONE waiting box (D1929 (2)(a): Pulse's matches the Reading tab's;
   READING_LINK 0001), here once for both, the Pulse's (.pu-) and Reading's
   (.rd-) names side by side: its page's body, the element background, and
   centered on it one box in writing.html E3's dialog look, copied here
   (⛔ never a class of writing.css, ⛔ never a copy in reading.css):
   .dialog's 330 px, 24 px 20 px 20 px, #22304A, the 1 px #37476B edge,
   20 px corners; .dbody's 15.5 px at 1.5, #AEBBD0, centered, 8 px down;
   .tlink's 30 px link 10 px under it. Flat, no scrim, no button. ══ */
.pu-waitpage,
.rd-waitpage {
  align-items: center;
  justify-content: center;
}

.pu-wait,
.rd-wait {
  box-sizing: border-box;
  width: 330px;
  max-width: calc(100% - 32px);
  padding: 24px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background-color: #22304A;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #C8D3E4;
}

.pu-wait .tt-text p,
.rd-wait .tt-text p {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}

.pu-wait [lang="my"] p,
.rd-wait [lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}

.pu-wait .tt-link.tt-link-page,
.nv-wide .pu-wait .tt-link.tt-link-page,
.rd-wait .tt-link.tt-link-page,
.nv-wide .rd-wait .tt-link.tt-link-page {
  height: 30px;
  margin: 10px auto 0;
  font-size: 14.5px;
  line-height: 30px;
}

/* ══ WIDE (CONCEPT_ART §1g; wide_pulses.html U1 to U7): nav's frame
   (.nv-wide). The buttons sit in the bottom row's middle (nav.css's slot),
   so the column's are not drawn. ══ */
.nv-wide .pu-actions {
  display: none;
}

/* U1: one column, each row the full width, 24 px from each side, the bean
   in the 24 px gutter; no fade is drawn. */
.nv-wide .pu-scroll {
  padding: 2px 24px 0;
}

.nv-wide .pu-list > .pu-track {
  right: 9px;
}

.nv-wide .pu-list > .pu-fade {
  display: none;
}

/* Never on wide (D2202 (2): U1's list fills the screen edge to edge): a
   phone P1 turned wide while he peeks hides him, his one play going on
   unseen, so turning back never plays it again. */
.nv-wide .pu-peek {
  visibility: hidden;
}

/* U2 and U6: the phone's card the full width, the block the same share of
   it down as on the phone (128 of 532 px, 24% of the panel's own height:
   `top`, which resolves against the height), its type larger. */
.nv-wide .pu-panel {
  margin: 0 24px;
}

.nv-wide .pu-stmt {
  position: absolute;
  left: 0;
  right: 0;
  top: 24%;
  padding: 0 40px;
}

.nv-wide .pu-em {
  font-size: 60px;
}

.nv-wide .pu-swk {
  font-size: 18px;
}

.nv-wide .pu-sh {
  margin-top: 13px;
  font-size: 33px;
}

.nv-wide .pu-sh.pu-done {
  margin-top: 26px;
}

.nv-wide .pu-ssub {
  margin-top: 24px;
  font-size: 22px;
}

/* U3 and U5: the question and its reply in a card on the left, the options
   on the right, 24 px apart; the course and week centered under both. */
.pu-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin: 0 24px;
  padding-top: 2px;
}

.nv-wide .pu-qcard {
  margin: 0;
}

.nv-wide .pu-qscroll {
  padding: 30px 32px;
}

.nv-wide .pu-qhead {
  font-size: 23px;
}

.nv-wide .pu-reply {
  margin-top: 30px;
}

.nv-wide .pu-rh {
  font-size: 21px;
}

.nv-wide .pu-rb {
  font-size: 18.5px;
}

.pu-wopts {
  min-height: 0;
  margin-top: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.pu-wopts::-webkit-scrollbar {
  display: none;
}

.nv-wide .pu-opt {
  gap: 15px;
  min-height: 68px;
  padding: 14px 20px;
}

.nv-wide .pu-radio {
  width: 22px;
  height: 22px;
}

.nv-wide .pu-otext {
  font-size: 18px;
}

/* U7: P1e's block as wide_card_states.html E2 centers it, its type the
   wide app's (32 px and 19 px, the line 16 px under), Little Sai Thura at
   the phone's 100 x 150. */
.nv-wide .pu-esh {
  font-size: 32px;
}

.nv-wide .pu-esp {
  margin-top: 16px;
  font-size: 19px;
}

/* ══ THE BAND COLORS, declared last so a label's color wins (CONCEPT_ART
   §1's band palette, D550): a course by its family, the shell's own
   tokens. ══ */
.pu-earth {
  color: var(--earth);
}

.pu-water {
  color: var(--water);
}

.pu-fire {
  color: var(--fire);
}

.pu-air {
  color: var(--air);
}
