/*
 * Sipmate in Tallinn: /tallinn, /tallinn/et and /tallinn/ru, on top of
 * styles.css, landing.css and city.css (the pieces the Berlin pages share:
 * hero frame, kick-off pill, the Friday Night phone, steps, ground rules and
 * the closing section). This file only adds what is Tallinn's own: the
 * rooftops' room and a header that still fits three languages on a phone.
 *
 * Estonian advertising law keeps alcohol out of these pages, so nothing here
 * is a glass or a drink: type, the Spritz gradient, simple shapes, a clock,
 * and in the phone only faces (no drink in frame, no drink stickers). Same motion rules as city.css: only transform and opacity
 * move, and styles.css switches time-based animation off for
 * `prefers-reduced-motion: reduce`.
 */

/* Header: two other languages next to the download pill. On a phone the
   links shrink a little so brand, two languages and the pill stay on one line. */
@media (max-width: 480px) {
  .tallinn .lang-link {
    padding: 9px 5px;
    font-size: 13px;
  }

  .tallinn .get-app-pill {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* The Old Town skyline is lower than the Berlin bridge and has no train. */
.tallinn {
  --sky-h: clamp(220px, 25vw, 400px);
}

@media (max-width: 900px) {
  .tallinn {
    --sky-h: clamp(190px, 46vw, 300px);
  }
}

/* Words that are not Latin or Estonian (Russian) fall back to the system
   face for headings: Bricolage Display has no Cyrillic. Keep them heavy. */
html[lang='ru'] .hero-title,
html[lang='ru'] .bsection-title,
html[lang='ru'] .why h2,
html[lang='ru'] .values h2,
html[lang='ru'] .get-title,
html[lang='ru'] .bstep h3 {
  font-weight: 800;
}

/* Long Russian and Estonian words must not push a phone sideways. */
.tallinn h1,
.tallinn h2,
.tallinn h3,
.tallinn .hero-lede,
.tallinn .bstep p {
  overflow-wrap: break-word;
}

/* The rooftops are tall: more room under the copy than the Berlin bridge needs. */
.tallinn-hero {
  padding-bottom: calc(var(--sky-h) * 0.72);
}

@media (max-width: 900px) {
  .tallinn-hero {
    padding-bottom: calc(var(--sky-h) * 0.82);
  }
}

/* landing.css lays a photo (string lights and a drink in the blur) under the
   closing section. Not here: no alcohol on these pages. The Spritz gradient
   and the rooftops stand alone. */
.tallinn .get::before {
  content: none;
  background-image: none;
}
