/* THE LAST LECTURE: the Japanese pages (seed guide, films). LL Sans JP is IBM Plex Sans JP (SIL OFL 1.1, Reserved
   Font Name Plex) cut to the characters these pages use and renamed, as the licence asks of a changed font
   (assets/fonts/ja/OFL-IBMPlexSansJP.txt). Latin and digits stay in Bai Jamjuree. */
@font-face{font-family:"LL Sans JP";font-weight:100 300;font-style:normal;font-display:block;src:url(/static/assets/fonts/ja/plexjp-300.woff2) format("woff2")}
@font-face{font-family:"LL Sans JP";font-weight:400;font-style:normal;font-display:block;src:url(/static/assets/fonts/ja/plexjp-400.woff2) format("woff2")}
@font-face{font-family:"LL Sans JP";font-weight:500;font-style:normal;font-display:block;src:url(/static/assets/fonts/ja/plexjp-500.woff2) format("woff2")}
@font-face{font-family:"LL Sans JP";font-weight:600;font-style:normal;font-display:block;src:url(/static/assets/fonts/ja/plexjp-600.woff2) format("woff2")}
@font-face{font-family:"LL Sans JP";font-weight:700 900;font-style:normal;font-display:block;src:url(/static/assets/fonts/ja/plexjp-700.woff2) format("woff2")}
@font-face{font-family:"Bai Jamjuree";font-weight:300;font-display:block;src:url(/static/assets/fonts/ja/plexjp-300.woff2) format("woff2");unicode-range:U+2026}
@font-face{font-family:"Bai Jamjuree";font-weight:400;font-display:block;src:url(/static/assets/fonts/ja/plexjp-400.woff2) format("woff2");unicode-range:U+2026}
@font-face{font-family:"Bai Jamjuree";font-weight:500;font-display:block;src:url(/static/assets/fonts/ja/plexjp-500.woff2) format("woff2");unicode-range:U+2026}
@font-face{font-family:"Bai Jamjuree";font-weight:600;font-display:block;src:url(/static/assets/fonts/ja/plexjp-600.woff2) format("woff2");unicode-range:U+2026}
@font-face{font-family:"Bai Jamjuree";font-weight:700;font-display:block;src:url(/static/assets/fonts/ja/plexjp-700.woff2) format("woff2");unicode-range:U+2026}
html[lang="ja"]{--f-ui:"Bai Jamjuree","LL Sans JP",sans-serif;line-break:strict;overflow-wrap:anywhere}
html[lang="ja"] .pl text{font-family:"Bai Jamjuree","LL Sans JP",sans-serif}
html[lang="ja"] :is(.context-text,.btn,.pill){word-break:auto-phrase;overflow-wrap:break-word}
/* headings and labels: a line breaks only between the BudouX phrases set apart by <wbr> (phrase.py) */
html[lang="ja"] :is(h1,h2,h3,h4,.acts-n,.eyebrow,.cr-role,.card-h){word-break:keep-all;overflow-wrap:break-word;text-wrap:balance}
html[lang="ja"] .nw{white-space:normal}
/* three flags and a longer button than the English: the bar fits a 320 wide phone */
@media (max-width:400px){html[lang="ja"] .context{gap:8px;padding-left:12px}html[lang="ja"] .context .ll-lang{gap:4px}html[lang="ja"] .context .ll-lang a{width:22px;height:15px}html[lang="ja"] .context-logo{height:26px}html[lang="ja"] .context-go svg{display:none}}
/* the museum and seed buttons wrap inside their pill on a small phone, as the English pages do */
html[lang="ja"] .mus-go{white-space:normal;text-align:center}
/* even lines in card titles and bullets */
html[lang="ja"] :is(.item-title,.inside li,.tt){text-wrap:balance}
/* the seed guide title fits a phone in three clean lines; two kit cards side by side at 320 */
@media (max-width:600px){html[lang="ja"] .hero h1{font-size:clamp(28px,8.4vw,44px)}}
@media (max-width:360px){html[lang="ja"] .item-title{font-size:15px}}
/* an opening bracket at the start of a line sits flush */
html[lang="ja"] :is(h1,h2,h3){text-spacing-trim:trim-start}
/* r56d: the menu of lecture rooms in Japanese (home_ja.py): its words in LL Sans JP beside Bai Jamjuree */
html[lang="ja"] body.ll-home{font-family:"Bai Jamjuree","LL Sans JP",system-ui,sans-serif}
html[lang="ja"] body.ll-home :is(h1,p){word-break:auto-phrase;overflow-wrap:break-word}
html[lang="ja"] body.ll-home :is(.hint,.hint span,.plate span){text-wrap:balance}
