/* share_sheet.css - the look of the share sheet (share_sheet.js;
   SHARE_SHEET 0001; D2262 (2), D2332). Concept Art/share_moments.html
   round 3, its own style written under this file's prefix, ssh-: the
   scrim (.sh-scrim), the sheet (.sh-sheet: on the phone's foot, slot-sb;
   .wsheet: in the middle of a wide window, slot-w2), the grabber
   (.sh-grab), the title row (.sh-head, .sh-x), the two shape buttons
   (.sh-shape span, .on: the chosen one filled light, as drawn), the
   picture's box (.sh-pic: 9:16 140.625 x 250, .f45 200 x 250, the same
   height), the three buttons (.sh-b, .blue: the kit's blue button; the
   paper plane 18 px), the line after Post saved (.sh-line.saved) and the
   one ဘာသာပြန် link (.tline: 12 px under the last row, 22 px tall,
   13.5 px). Every box is flat as drawn (D1699): no light, grain or shadow
   but what the drawing gives the picture and the chosen shape. The title
   is the drawing's small capitals label in the body's font, as drawn.
   Loaded from this origin (style-src 'self'): no inline style anywhere;
   the frame's scale and the sheet's room, which share_sheet.js computes,
   are set through the style object. */

/* The two holders: from the bot's link, a screen of its own over the
   moving background (the background's layers its first and last
   children); from a page, a layer over that page. */
.ssh-screen,
.ssh-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: #C8D3E4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.ssh-screen {
  z-index: 5;
  background: #0E1526;
}
.ssh-layer {
  z-index: 18;
}

.ssh-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 16, .62);
}

/* The frame: the screen at nav's scale (share_sheet.js sets its size and
   transform). */
.ssh-frame {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

/* The sheet on the phone's foot (.sh-sheet). */
.ssh-sheet {
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  background: #1D2739;
  border-top: 1px solid #37476B;
  border-radius: 22px 22px 0 0;
  padding: 10px 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  line-height: normal;
}

/* Wide (.wsheet): in the middle of the window, its own frame all round,
   no grabber. */
.ssh-wide .ssh-sheet {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: 390px;
  transform: translate(-50%, -50%);
  border: 1px solid #37476B;
  border-radius: 22px;
  padding-top: 18px;
  padding-bottom: 22px;
}
.ssh-wide .ssh-grab {
  display: none;
}

.ssh-grab {
  flex: none;
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: #3A4864;
  margin-bottom: 12px;
}

/* The title row (.sh-head) and its close mark (.sh-x .ic: 22 px). */
.ssh-head {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9AA8BF;
  font-weight: 600;
}
.ssh-title {
  min-width: 0;
}
.ssh-title .tt-text p {
  line-height: normal;
}
.ssh-x {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  color: #AEBBD0;
  cursor: pointer;
}
.ssh-mark {
  display: block;
  width: 22px;
  height: 22px;
}

/* The two shape buttons (.sh-shape span, .on). */
.ssh-shape {
  flex: none;
  align-self: stretch;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.ssh-shp {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #DCE5F2;
  cursor: pointer;
}
.ssh-shp.ssh-on {
  border-color: #DCE5F2;
  background: #DCE5F2;
  color: #0E1526;
  box-shadow: 0 0 10px rgba(220, 229, 242, .22);
}

/* The picture's box (.sh-pic): 9:16 and, at the same height, 4:5. */
.ssh-pic {
  flex: none;
  width: 140.625px;
  height: 250px;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  background: #101A2E;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .1);
}
.ssh-pic.ssh-f45 {
  width: 200px;
}
.ssh-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* The three buttons (.sh-btns, .sh-b, .sh-b.blue, .sh-b .ic). */
.ssh-btns {
  flex: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.ssh-b {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: 50px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #DCE5F2;
  cursor: pointer;
}
.ssh-b[hidden] {
  display: none;
}
.ssh-b.ssh-blue {
  border-color: #6FAEFF;
  color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
}
.ssh-plane {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
}

/* The line after Post saved the picture (.sh-line.saved). */
.ssh-line {
  flex: none;
  align-self: stretch;
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 21px;
  color: #DCE5F2;
  text-align: center;
}
.ssh-line[hidden] {
  display: none;
}
.ssh-line .tt-piece {
  display: block;
}

/* The one ဘာသာပြန် link (.sh-sheet .tline): 12 px under the last row,
   22 px tall, 13.5 px, centered. */
.ssh-sheet .tt-link.tt-link-group {
  flex: none;
  height: 22px;
  margin: 12px auto 0;
  font-size: 13.5px;
  line-height: 22px;
}
