/* translate_text.css - the look of the ဘာသာပြန် link (translate_text.js)
   ------------------------------------------------------------------------
   Copied from the approved renders' values (CONCEPT_ART §1i, D1253 (3),
   D1268): the link is Noto Sans Myanmar, #8FA2BF, weight 500, underlined
   4 px below at half strength, never italic, in Leave-for-now's quiet shape;
   once tapped it reads Translate, in Inter.

   Loaded from this origin, which is what the page's Content Security Policy
   allows: style-src 'self', so there is no inline style anywhere. The app
   ships one font file, the headlines' (shell.css), and none of these, so the
   families are named as the renders name them and the system falls back. */

/* One piece: its paragraphs, and its link when it has one. Its height is
   never fixed: Burmese runs taller, and the box grows with it. */
translate-text {
  display: block;
}

/* A page line and its link sit in one shrink-wrapped box (the renders'
   .tblock), so the link centers on the words, not on the box around them:
   a short line centers it on the line, a wrapped paragraph on the
   paragraph. */
.tt-piece.tt-page {
  display: table;
  max-width: 100%;
}

.tt-text p {
  margin: 0;
}

.tt-text p + p {
  margin-top: 8px;
}

/* The link itself: a real button, so a keyboard and a screen reader reach
   it, dressed as a quiet underlined word. */
.tt-link {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: "Noto Sans Myanmar", Inter, sans-serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #8FA2BF;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(143, 162, 191, 0.5);
  -webkit-tap-highlight-color: transparent;
}

/* Tapped: the word is Translate, in English. */
.tt-link.tt-en {
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* Under a page's line (.tline): a blank line of 22 px, then the link,
   centered. */
.tt-link.tt-link-page {
  display: block;
  margin: 22px auto 0;
  font-size: 13.5px;
  line-height: 22px;
}

/* Wide (every wide_*.html: .tblock .tline): 10 px down, 14.5 px. */
.nv-wide .tt-link.tt-link-page,
.sd-wide .tt-link.tt-link-page {
  margin-top: 10px;
  font-size: 14.5px;
}

/* Under a pop-up's buttons (.tlink): 10 px down, centered, 30 px tall. */
.tt-link.tt-link-group {
  display: block;
  height: 30px;
  margin: 10px auto 0;
  font-size: 14.5px;
  line-height: 30px;
}

/* On a weekly prompt's label line (.ttag): in the middle of the line. */
.tt-label-host {
  position: relative;
}

.tt-link.tt-link-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
}

/* A Burmese word is never broken across lines (ART_FIX 0001; the drawings'
   .nw): translate_text.js sets each one in its own span. */
.tt-w {
  white-space: nowrap;
}

/* An element's name in a sentence (ELEMENT_WORDS 0001; D2187 (1), D2057;
   Concept Art/T3_result.html frame 7): bold, in its element's color, the
   shell's own four tokens (shell.css), never a color typed again. */
.tt-el {
  font-weight: 700;
}

.tt-el-earth {
  color: var(--earth);
}

.tt-el-water {
  color: var(--water);
}

.tt-el-air {
  color: var(--air);
}

.tt-el-fire {
  color: var(--fire);
}
