/* certificates.css - the look of the Certificates page (certificates.js;
   CERTIFICATES_PAGE 0001)
   ------------------------------------------------------------------------
   Every number here is the approved drawings': Concept Art/certificates.html
   (.body, .cards, .crow, .cicon, .cname, .cwhen, .dl, .band5, .band6; the
   empty state .empty, .eicon, .etitle, .esub), the icon set's two
   Certificates frames (the_icon_set.html `certs` and `certs0`: .ic,
   .cicon .ic, .eicon .ic, .dl .ic) and Concept Art/wide_list_pages.html
   (CE1 .cempty, CE2 .wcards). The light is D1699's: each row a list bubble
   lit by shell.css's two tokens; the empty block flat.

   ⛔ Every mark is the icon set's drawing (certificates.js builds it); never
      a typed character. Loaded from this origin (style-src 'self'): no
      inline style anywhere; the bean's size is set through the element's
      style object. */

/* The frames' type sits at Inter's normal line height (1.21 of its size),
   never the app body's 1.5. */
.ce-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.21;
}

/* ══ THE ROWS (certificates.html frame 2 .body, .cards; wide_list_pages.html
   CE2 .wcards): one column 14 px from the sides, the first row 6 px under
   the top bar, scrolling with the bean when longer than its room. ══ */
.ce-list {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.ce-scroll {
  position: absolute;
  inset: 0;
  padding: 6px 14px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ce-scroll::-webkit-scrollbar {
  display: none;
}
.ce-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* .sbar, .sthumb (§1e): the bean, 6 px, no track, only where it scrolls. */
.ce-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  z-index: 3;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}
.ce-bean-track.ce-scrolls {
  visibility: visible;
}
.ce-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* .crow: 68 px, 18 px corner, 18 px in, the mark 14 px before the words;
   a list bubble (D1699). A tap anywhere on it downloads (D944). */
.ce-row {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 68px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
  font: inherit;
  color: #C8D3E4;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* .cicon and the icon set's .cicon .ic: the certificate mark 1.15 em of
   26 px, in a 30 px box. */
.ce-icon {
  flex: none;
  width: 30px;
  font-size: 26px;
  line-height: 1;
  text-align: center;
}
.ce-mark {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.15em;
  overflow: visible;
}
.ce-text {
  display: block;
  min-width: 0;
}
.ce-name {
  display: block;
  font-size: 17.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ce-when {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: #7D8CA5;
  white-space: nowrap;
}

/* .dl and the icon set's .dl .ic: the download mark, 1 em of 19 px, 18 px
   from the right, the row's middle, in place of the chevron (D944). */
.ce-dl {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  color: #6FAEFF;
}
.ce-dl .ce-mark {
  width: 1em;
  height: 1em;
}

/* The band colors (D550): a course by its element (shell.css's tokens). */
.ce-fire {
  color: var(--fire);
}
.ce-water {
  color: var(--water);
}
.ce-earth {
  color: var(--earth);
}
.ce-air {
  color: var(--air);
}

/* ══ NO CERTIFICATES YET (frame 1 .empty, `certs0`; CE1 .cempty): centered,
   the mark's top 84 px under the top bar; flat. ══ */
.ce-empty {
  flex: none;
  margin: 0 14px;
  padding: 84px 24px 0;
  text-align: center;
}
.ce-eicon {
  font-size: 44px;
  line-height: 1;
}
.ce-etitle {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 600;
  color: #EAF0FA;
}
.ce-esub {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: #7D8CA5;
}

/* Wide (CE2 .wcards, CE1 .cbody2 .cempty): the same rows 24 px from the
   sides, 2 px under the top row; the empty block as on the phone, inside
   the wide body's 24 px. */
.nv-wide .ce-scroll {
  padding: 2px 24px 10px;
}
.nv-wide .ce-empty {
  margin: 0 24px;
}
.nv-wide .ce-bean-track {
  right: 9px;
}
