/* Shared locale controls; loaded after the base page and demonstration styles. */
html:lang(zh-TW) { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", sans-serif; }
html:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
html:lang(ko) { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; }
html:is(:lang(ja), :lang(ko)) :is(h1, h2, h3) { letter-spacing: -.025em; overflow-wrap: anywhere; }
html:is(:lang(fr), :lang(de)) :is(h1, h2, h3) { overflow-wrap: anywhere; hyphens: auto; }
.header { justify-content: space-between; gap: 16px; }
#site-language {
  width: auto;
  max-width: 132px;
  min-height: 36px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  background: transparent;
  color: #5f6c59;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
#site-language:hover { background: #eef1eb; }
#site-language:focus-visible { outline: 2px solid #657d5c; outline-offset: 2px; }
.report-content { overflow-wrap: anywhere; }
html:is(:lang(en), :lang(fr), :lang(de)) .hero h1 { font-size: clamp(44px, 6.5vw, 92px); line-height: 1.08; letter-spacing: -.045em; }
html:is(:lang(en), :lang(fr), :lang(de)) .hero-description { max-width: 640px; margin-inline: auto; text-wrap: pretty; }
html:is(:lang(en), :lang(fr), :lang(de)) .section-heading h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.15; letter-spacing: -.03em; }
html:is(:lang(en), :lang(fr), :lang(de)) .demo-study h3 { font-size: clamp(22px, 2.4vw, 31px); line-height: 1.3; }
html:is(:lang(en), :lang(fr), :lang(de)) .demo-complete h3 { line-height: 1.2; text-wrap: balance; }
html:is(:lang(en), :lang(fr), :lang(de)) .philosophy h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.15; letter-spacing: -.025em; }
html:is(:lang(en), :lang(fr), :lang(de)) .closing h2 { font-size: clamp(34px, 4.5vw, 64px); line-height: 1.15; letter-spacing: -.03em; }
html:is(:lang(en), :lang(fr), :lang(de)) .recall-summary time { font-size: 11px; }
@media (max-width: 520px) {
  #site-language { max-width: 116px; font-size: 12px; }
  html:is(:lang(en), :lang(fr), :lang(de)) .hero h1 { font-size: clamp(40px, 10.5vw, 55px); }
  html:is(:lang(en), :lang(fr), :lang(de)) .demo-study h3 { font-size: 22px; }
  html:is(:lang(en), :lang(fr), :lang(de)) .demo-study .demo-ratings button { padding-inline: 16px; font-size: 13px; }
  html:is(:lang(en), :lang(fr), :lang(de)) .photo-caption > span { font-size: 23px; }
}
@media (max-height: 700px) {
  .demo-complete { min-height: 0; padding-block: 12px 8px; }
  .demo-complete h3 { margin: 0 0 14px; font-size: 24px; line-height: 1.25; }
  .demo-complete > p:not(.demo-kicker) { margin-bottom: 16px; font-size: 13px; line-height: 1.65; }
  .demo-complete .recall-summary { margin-bottom: 16px; }
  .demo-complete .recall-summary article { padding-block: 12px; }
}
@media (max-width: 520px) and (max-height: 700px) {
  html:is(:lang(en), :lang(fr), :lang(de)) .demo-study h3 { margin-block: 12px 8px; font-size: 20px; line-height: 1.25; }
  html:is(:lang(en), :lang(fr), :lang(de)) .demo-study .demo-answer-copy { padding-top: 12px; }
  html:is(:lang(en), :lang(fr), :lang(de)) .demo-study .demo-answer-copy > .demo-kicker { margin-bottom: 6px; font-size: 11px; line-height: 1.4; }
}

@media (max-width: 520px) {
  html:is(:lang(fr), :lang(de), :lang(ja), :lang(ko)) .demo-ratings { gap: 8px; }
  html:is(:lang(fr), :lang(de), :lang(ja), :lang(ko)) .demo-ratings button { min-width: 0; max-width: calc(50% - 4px); padding-inline: 12px; min-height: 44px; font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
  html:is(:lang(ja), :lang(ko)) .hero h1 { font-size: clamp(32px, 9.5vw, 48px); line-height: 1.3; text-wrap: balance; }
  html:is(:lang(ja), :lang(ko)) .demo-study h3 { font-size: 22px; line-height: 1.4; }
}
@media (max-width: 520px) {
  html:is(:lang(fr), :lang(de)) .recall-summary article { grid-template-columns: minmax(0, 1fr) minmax(0, 48%); }
  html:is(:lang(fr), :lang(de)) .recall-summary :is(strong, time) { max-width: 100%; text-align: right; }
  html:is(:lang(fr), :lang(de)) .recall-summary time { font-size: 10px; line-height: 1.4; }
  html:is(:lang(fr), :lang(de)) .recall-summary article > div { gap: 8px; }
}
@media (max-width: 520px) and (max-height: 700px) {
  html:is(:lang(fr), :lang(de)) .demo-complete > p:not(.demo-kicker) { font-size: 12px; line-height: 1.55; }
}
@media (max-width: 520px) and (max-height: 700px) {
  html:is(:lang(fr), :lang(de)) .demo-complete h3 { font-size: 22px; margin-bottom: 10px; }
  html:is(:lang(fr), :lang(de)) .demo-complete > p:not(.demo-kicker) { margin-bottom: 12px; }
  html:is(:lang(fr), :lang(de)) .demo-complete .recall-summary article { padding-block: 8px; gap: 4px 12px; }
}
@media (max-width: 520px) {
  html:is(:lang(fr), :lang(de)) .demo-result-header { gap: 10px; }
  html:is(:lang(fr), :lang(de)) .demo-result-header .text-button { flex-shrink: 0; font-size: 11px; letter-spacing: 0; white-space: nowrap; }
}
@media (max-width: 520px) and (max-height: 700px) {
  html:is(:lang(fr), :lang(de)) .demo-study h3 { font-size: 19px; margin-top: 8px; }
  html:is(:lang(fr), :lang(de)) .demo-study > .demo-kicker { margin-bottom: 8px; }
  html:lang(ja) .demo-study h3 { margin-block: 12px 8px; font-size: 20px; line-height: 1.3; }
  html:lang(ja) .demo-study .demo-answer-copy { padding-top: 12px; }
  html:lang(ja) .demo-study .demo-answer-copy > .demo-kicker { margin-bottom: 6px; font-size: 11px; line-height: 1.4; }
}
