/* calls.css - the look of the Teacher Calls page (calls.js; CALLS_PAGE 0001)
   ------------------------------------------------------------------------
   Every number here is the approved frames': Concept Art/teacher_calls.html
   C1 to C13 with C6b for the phone (.body, .intro, .ilabel, .itext, .tzone,
   .qlist, .qrow.day, .dhead, .dname, .dcount, .chev, .tgrid, .tchip,
   .spanel.callcard, .cwhen, .ctime, .cwho, .cnote, .chgnote, .drow, .dbtn
   and its .blue, .red, .quiet and .single, .cbtn.cblit and .cbname,
   .qlist.after-card, .cline, .empty, the overlay family's .scrim, .dialog,
   .dtitle and .dbody), wide_teacher_calls.html W1 to W3 for a computer and
   a tablet on its side (.xone, .xone .intro, .xone .ilabel, .xone .itext,
   .xcalls .tgrid, .xcalls .callcard .drow and .cbtn), and kit.html's
   caret 3 (.kbox, .c3.down and .c3.up) at the frames' .chev place and
   color. Each day is a list bubble lit by shell.css's two tokens and
   nothing else (D1699); the booked panel and every pop-up are flat. The
   band colors are shell.css's tokens (D550). Loaded from this origin, as
   the page's Content Security Policy allows (style-src 'self'): no inline
   style; the bean's place, which calls.js computes, is set through the
   style object. Every number is before nav.js's scale s; .nv-wide on the
   page's screen is nav.js's wide layout. The ဘာသာပြန် links are
   translate_text.css's own, never restyled here. */

/* ══ THE PAGE: nav's body (.body: 14 px in from each side), the sections
   one under the other, scrolling with the bean when longer than the room. ══ */
.tc-page {
  position: absolute;
  inset: 0;
}
.tc-scroll {
  position: absolute;
  inset: 0;
  padding: 0 14px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tc-scroll::-webkit-scrollbar {
  display: none;
}
.tc-list {
  position: relative;
  display: flex;
  flex-direction: column;
}
.tc-section {
  flex: none;
}

/* The intro (.intro): 8 px above, 18 below; its label (.ilabel) 12.5 px,
   700, upper-cased, 16 px tall, its course's color; its text (.itext)
   15 px at 1.5, 6 px under the label; the zone line (.intro .tzone)
   13.5 px, centered, 10 px under the text. */
.tc-intro {
  flex: none;
  padding: 8px 4px 18px;
}
.tc-label {
  height: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #AEBBD0;
}
.tc-itext {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: #AEBBD0;
}
.tc-zone {
  margin: 10px auto 0;
  font-size: 13.5px;
  text-align: center;
  color: #8FA2BF;
}

/* ══ THE DAYS (.qlist, .qrow.day): 10 px apart, each a list bubble lit by
   shell.css's two tokens (D1699); its head 68 px, the date (.dname)
   17.5 px 600 over its count (.dcount) 13.5 px, 3 px between, the caret at
   the right edge; open, its times three to a row (.tgrid), 10 px apart,
   18 px above the bubble's foot. ══ */
.tc-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
}
.tc-days.tc-after {
  margin-top: 22px;
}
.tc-day {
  flex: none;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  padding: 0 18px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}
.tc-dhead {
  position: relative;
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 24px 0 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.tc-dnames {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tc-dname {
  font-size: 17.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #EAF0FA;
}
.tc-dcount {
  margin-top: 3px;
  font-size: 13.5px;
  white-space: nowrap;
  color: #8FA2BF;
}
/* .chev at its place and color, as kit.html's caret 3 (.kbox, .c3): a
   9 px square, two 2 px borders, turned; down closed, up open (D579). */
.tc-kbox {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 22px;
  margin-top: -11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5C6B85;
}
.tc-caret {
  position: relative;
  top: -2px;
  flex: none;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.tc-caret.tc-up {
  top: 2px;
  transform: rotate(-135deg);
}
.tc-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 0 18px;
}
/* A time (.tchip): 46 px, the neutral treatment (CONCEPT_ART §1b). */
.tc-time {
  height: 46px;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #C8D3E4;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* ══ THE BOOKED CALL (.spanel.callcard): flat, as its frame draws it
   (D1699), 22 px above and 20 at its sides and foot, centered: the day
   (.cwhen) 21 px 600, the time and length (.ctime) 17.5 px 600, the
   teacher (.cwho) 15 px, each 6 px under the one before; the line about
   Join (.cnote) 15 px at 1.5, 16 px under; its buttons 18 px under. ══ */
.tc-panel {
  flex: none;
  padding: 22px 20px 20px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  overflow: hidden;
  background-color: #1D2739;
  text-align: center;
}
.tc-when {
  font-size: 21px;
  font-weight: 600;
  color: #FFFFFF;
}
.tc-ctime {
  margin-top: 6px;
  font-size: 17.5px;
  font-weight: 600;
  color: #EAF0FA;
}
.tc-who {
  margin-top: 6px;
  font-size: 15px;
  color: #AEBBD0;
}
.tc-note {
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 1.5;
  color: #AEBBD0;
}
.tc-chgnote {
  margin: 14px auto 0;
  font-size: 15px;
  color: #AEBBD0;
}
.tc-panel .tc-drow {
  margin-top: 18px;
}
/* Join Call (.cbtn.cblit): 62 px, the blue page button, 18 px under. */
.tc-cbtn {
  width: 100%;
  height: 62px;
  margin-top: 18px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6FAEFF;
  border-radius: 12px;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.tc-cbname {
  font-size: 17.5px;
  font-weight: 600;
}

/* A line in the days' place (.cline): 15 px at 1.5, centered. Under the
   panel while changing (C8 with no free time), 22 px under it. */
.tc-cline {
  margin: 0 auto;
  padding: 4px 10px 0;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: #AEBBD0;
}
.tc-cline.tc-after {
  margin-top: 22px;
}

/* ══ NOTHING TO BOOK (.empty, C12): centered in the body, 60 px of room
   under it; Little Sai Thura bowing above the line (figure.css's
   .ls-callsfig), the line 16 px. ══ */
.tc-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 14px 60px;
}
.tc-empty .tc-cline {
  font-size: 16px;
}

/* ══ LITTLE SAI THURA UNDER A BOOKED CALL'S PANEL (FIGURE_PLACES 0003; D2202
   (1), D2269; teacher_calls.html's places section 1a to 1d, wide_teacher_
   calls.html's 1a wide, 1b wide and 1d wide): the page's own holder, in the
   list after the last section (.tc-list is its containing block), taking no
   room, so no section, the scroll height or the bean moves, and a tap
   passes through it; SaiThuraFigure.place fills it (figure.css's
   .ls-callpanel). Each number is the drawing's, before nav.js's scale:
     --tc-w, --tc-h   his drawn box (thumb and watch shrink from it, his
                      shape kept, where the room is smaller; pace never)
     --tc-g           G, his gap from the panel's foot above him, and the
                      floor's from the list's visible foot under him
     --tc-foot        wide, that floor's gap where the drawing's own is
                      smaller than G (W2 at its own size)
     --tc-least       the smallest he is drawn on this page, the pacing
                      figure's drawn height (D2269 (1)): thumb and watch
                      under it are not drawn
     --tc-inset       pace's walk on the phone: its start, and its end's
                      gap, from the list's edges (the drawing's 24 px from
                      the screen's, less the scroll's 14 px)
     --tc-span        pace's walk on wide: from its start to its end's far
                      edge, centered under the panel (the buttons' 520 px
                      and 6.67 px past each end)
   calls.js sets the holder's top, its size and the walk's length (--ls-walk)
   alone, from these and the laid-out boxes. ══ */
.tc-fig {
  position: absolute;
  top: 0;
  pointer-events: none;
  --tc-least: 100px;
}
/* 1a and 1b (C5): 97 x 150, its top 490 under the panel's foot 449.5,
   centered under the panel (the drawing's left 146 of 390). */
.tc-fig.tc-still {
  left: 0;
  right: 0;
  margin: 0 auto;
  --tc-w: 97px;
  --tc-h: 150px;
  --tc-g: 40.5px;
}
/* 1c (C6, Join Call; C6b by the same rule): its top 423 under the
   panel's foot 383. */
.tc-fig.tc-still.tc-joined {
  --tc-g: 40px;
}
/* 1d (C5): 64 x 100, its top 520 under the panel's foot 449.5; the walk
   from 24 px to 24 px in from the screen's edges (its left 24, its 278 px
   walk at 390). */
.tc-fig.tc-pace {
  left: var(--tc-inset);
  --tc-w: 64px;
  --tc-h: 100px;
  --tc-g: 70.5px;
  --tc-inset: 10px;
}
/* Wide (W2; the render's own px over its 0.9): 1a wide and 1b wide 91 x 140
   of its 0.9, so 101.11 x 155.56, its top 400 under the panel's foot
   371.42, centered, its foot 7.14 above the list's visible foot (562.70);
   1d wide 64 x 100 of its 0.9, so 71.11 x 111.11, its top 420, its foot
   31.59 above the list's, its walk from 6.67 px before the buttons' left
   (340 of 1200) to 6.67 px past their right (860), 533.33 px from start to
   far edge. The drawing has no wide C6: W2's spot (its caption). */
.nv-wide .tc-fig.tc-still,
.nv-wide .tc-fig.tc-still.tc-joined {
  --tc-w: 101.11px;
  --tc-h: 155.56px;
  --tc-g: 28.58px;
  --tc-foot: 7.14px;
}
.nv-wide .tc-fig.tc-pace {
  left: 50%;
  margin-left: calc(var(--tc-span) / -2);
  --tc-w: 71.11px;
  --tc-h: 111.11px;
  --tc-g: 48.58px;
  --tc-foot: 31.59px;
  --tc-span: 533.33px;
}

/* ══ THE BUTTONS (.drow, .dbtn; CONCEPT_ART §1b): side by side, 10 px
   apart, 54 px, every one outlined; neutral, blue (the step forward), red
   (the one action that cannot be undone) and the frames' quiet neutral. ══ */
.tc-drow {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 20px;
}
.tc-dbtn {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #C8D3E4;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.tc-dbtn.tc-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}
.tc-dbtn.tc-red {
  border-color: #ED6A76;
  background: rgba(237, 106, 118, .07);
  color: #ED6A76;
}
.tc-dbtn.tc-quiet {
  background: transparent;
  color: #8FA2BF;
}
.tc-dbtn.tc-single {
  flex: none;
  width: 100%;
}

/* ══ THE POP-UPS (§1c; .scrim, .dialog): the scrim over the whole frame,
   the tab bar and the tiles included; the dialog in the middle, 330 px,
   flat (D1699); its title (.dtitle) the piece's first paragraph, 18 px,
   600, in the headlines' font; its body (.dbody) 15.5 px at 1.5, 8 px
   under. ══ */
.tc-scrim {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}
.tc-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  padding: 24px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background-color: #22304A;
  text-align: center;
}
.tc-dbody {
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}
/* The pop-up's title, the headlines' font (ART_FIX 0001; .dtitle). */
.tc-dialog .tt-text p:first-child {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}

/* §1e: the bean, 6 px, #8FA3C4, round, NO track; 6 px in from the list's
   right edge, 10 px clear of its top and bottom; only where it scrolls. */
.tc-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  z-index: 4;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}
.tc-bean-track.tc-scrolls {
  visibility: visible;
}
.tc-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* ══ WIDE (CONCEPT_ART §1g; wide_teacher_calls.html W1 to W3): one column
   24 px in from each side (.xone), every day the full width; the intro
   centered, its label 13.5 px and 18 tall, its text 17 px; an open day's
   times nine to a row (.xcalls .tgrid); the panel the full width, its
   buttons and Join Call 520 px across in its middle; pop-ups in the middle
   of the screen. The bean centered in the 24 px gutter. ══ */
.nv-wide .tc-scroll {
  padding: 2px 24px 0;
}
.nv-wide .tc-intro {
  padding: 4px 4px 16px;
  text-align: center;
}
.nv-wide .tc-label {
  height: 18px;
  font-size: 13.5px;
  line-height: 18px;
}
.nv-wide .tc-itext {
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
}
.nv-wide .tc-times {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
.nv-wide .tc-panel .tc-drow,
.nv-wide .tc-panel .tc-cbtn {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.nv-wide .tc-bean-track {
  right: 9px;
}

/* ══ COLOR MODIFIERS: a label's course family (D550), shell.css's tokens,
   written last so they win their ties. ══ */
.tc-earth {
  color: var(--earth);
}
.tc-water {
  color: var(--water);
}
.tc-fire {
  color: var(--fire);
}
.tc-air {
  color: var(--air);
}
