/* The home and product page wrappers share this main element. */
body main.tj-site-main {
  padding-block-end: clamp(40px, 5vw, 64px);
}

body main.tj-site-main :is(.tc-home-content, .tc-subpage-content) {
  margin-block-end: 0;
}

:lang(fi) :is(main, footer) :is(h1, h2, h3, h4, h5, h6, p, li, figcaption, label, legend) {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Phone numbers and email addresses have their own line breaks. */
:lang(fi) :is(main, footer) :is(a[href^="mailto:"], a[href^="tel:"], .tc-home-caption-detail, .tc-subpage-hero-caption__detail) {
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: anywhere;
}

body footer.wp-block-template-part .tj-global-footer__contact {
  white-space: normal;
}
