/* Language switch in the top-right header, next to the X icon. */
.header-social-icons li.lang-toggle a {
  font-family: "Lato", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  padding: 0 4px;
}
.headroom--not-top .header-social-icons li.lang-toggle a,
.background-header .header-social-icons li.lang-toggle a,
.header-layout7 .header-social-icons li.lang-toggle a,
.header-layout8 .header-social-icons li.lang-toggle a {
  color: #000;
}
.header-social-icons li.lang-toggle a:hover { opacity: 0.7; }

/* Chinese pages: use the reader's system Chinese fonts after the site's Latin fonts. */
html:lang(zh-Hant) body,
html:lang(zh-Hant) h1, html:lang(zh-Hant) h2, html:lang(zh-Hant) h3,
html:lang(zh-Hant) h4, html:lang(zh-Hant) h5, html:lang(zh-Hant) h6,
html:lang(zh-Hant) .testimonial-item-text {
  font-family: "Lato", "Roboto", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
html:lang(zh-Hant) .pors-item-content p { line-height: 1.9; }

/* Story pages: Chinese translation first, English original underneath. */
.zh-translation .translation-note {
  font-size: 0.85em;
  opacity: 0.65;
  margin-top: 1.5em;
}
.en-original {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.en-original .en-original-label {
  font-size: 0.75em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Phones and tablets: the theme hides the header icons below 1025px, so show a copy beside the menu button. */
.lang-toggle-mobile { display: none; }
@media only screen and (max-width: 1024px) {
  .lang-toggle-mobile {
    display: block;
    position: absolute;
    top: 29px;
    right: 88px;
    z-index: 1000;
    font-family: "Lato", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 15px;
    letter-spacing: 0.08em;
    line-height: 22px;
    text-decoration: none;
    color: #fff;
  }
  .background-header .lang-toggle-mobile,
  .headroom--not-top .lang-toggle-mobile { color: #000; }
}
@media only screen and (max-width: 568px) {
  .lang-toggle-mobile { right: 64px; }
}

/* Home page (both languages): tighter editor quotes, and less empty space under them. */
.type-testimonials { padding-bottom: 24px; }
.testimonials-type4 .testimonial-item { margin-bottom: 0; }
.testimonials-type4 .testimonial-item-wrapper { padding-top: 22px; padding-bottom: 22px; }
.type-testimonials + .type-slogan { padding-top: 56px; }

/* Newsletter card runs edge to edge, like the quote band below it. */
.nl-band { padding: 0; }
.nl-card {
  max-width: none; border-left-width: 0; border-right-width: 0; border-radius: 0;
  padding: 20px max(28px, calc((100% - 1032px) / 2));
}
@media (max-width: 860px) {
  .nl-card { padding: 20px 16px; }
}
.nl-band + .type-gallery { padding: 0 !important; }

/* Short note on the same line as a story title on the home page. */
.service-title .title-note {
  display: inline; margin-left: 8px; vertical-align: baseline;
  font-size: 15px; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.4; color: #555;
}
html[lang="zh-Hant"] .service-title .title-note { font-style: normal; }
.service-title:has(.title-note) { line-height: 1.2; }

/* Chinese ellipsis and dash: drawn by a Chinese font so …… sits in the middle and —— is one unbroken line. */
.zh-p { font-family: "PingFang TC", "Heiti TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif; font-style: normal; font-weight: inherit; letter-spacing: 0; }

/* About page, "Two truths and one lie": one statement per line, a little space between. */
.service-content p.ttl-item { margin: 0 0 10px; }
.service-content p.ttl-item:last-child { margin-bottom: 0; }

/* Chinese story pages: small line under the title saying it is translated from the English original. */
.translation-byline { margin: 8px 0 0; font-size: 14px; letter-spacing: .08em; color: #777; font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
/* Phones: the book cover on Chinese story pages sits on its own line instead of squeezing the text. */
@media (max-width: 600px) {
  .zh-translation figure.wp-caption { float: none; margin: 0 auto 24px; max-width: 220px; width: auto !important; }
  .zh-translation figure.wp-caption img { width: 100%; height: auto; }
}
