/* JAPAN IN MOMENTS — src/languages.css: what only the pages of a translated language load, after the site's styles
   (docs/BASE_DESIGN.md §7). The original languages' pages do not load this file. */
/* The link to the same page in the language the page is translated from, where the original languages have their button. */
a.lang-button{display:inline-flex;align-items:center;color:inherit;text-decoration:none}
a.lang-button:hover,a.lang-button:focus-visible{text-decoration:underline}
/* The mark on a link that leads to a page in another language: that language's name, small, after the link's words. */
.away-mark{display:inline-block;margin-left:.5em;padding:0 .45em;border:1px solid currentColor;border-radius:3px;font:600 10px/1.6 var(--sans);letter-spacing:.06em;text-transform:uppercase;opacity:.7;vertical-align:middle;white-space:nowrap;align-self:flex-start;justify-self:start}
/* On a card with a picture the mark sits on the picture's corner, so the card's own lines keep their places. */
.moment-card{position:relative}
.moment-card>.away-mark{position:absolute;top:10px;left:10px;margin:0;border-color:transparent;background:var(--paper);color:var(--ink);opacity:.94}
/* The typefaces of a language the site's own stacks do not name. The site's stacks put the Japanese faces first, so Korean
   and Traditional Chinese would be drawn with Japanese letterforms; here each gets the faces of its own script. */
:root:lang(ko){--sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR','Noto Sans CJK KR',sans-serif;--serif:'Iowan Old Style','Palatino Linotype','AppleMyungjo','Nanum Myeongjo','Noto Serif KR','Noto Serif CJK KR',Batang,Georgia,serif}
:root:lang(zh-Hant){--sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang TC','Microsoft JhengHei','Noto Sans TC','Noto Sans CJK TC',sans-serif;--serif:'Iowan Old Style','Palatino Linotype','Songti TC','Noto Serif TC','Noto Serif CJK TC',PMingLiU,Georgia,serif}
/* Simplified Chinese (2026-12-02): the faces of its own script, so that its characters are not drawn with Japanese (or
   Traditional) letterforms, and those only Simplified has do not fall to another face. Apple: PingFang SC, Songti SC; Windows:
   Microsoft YaHei, SimSun; Android and Linux: Noto Sans/Serif SC. Line height, spacing and line breaks are as for Traditional. */
:root:lang(zh-Hans){--sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei','Noto Sans SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif;--serif:'Iowan Old Style','Palatino Linotype','Songti SC','Noto Serif SC','Noto Serif CJK SC','Source Han Serif SC',SimSun,Georgia,serif}
/* Korean breaks its lines between words, not inside them; a word longer than its box may still break. */
:root:lang(ko) body{word-break:keep-all;overflow-wrap:break-word}
/* The one Japanese character that stands where a picture is to come keeps its Japanese form. */
:root:lang(ko) .kanji,:root:lang(zh-Hant) .kanji,:root:lang(zh-Hans) .kanji,:root:lang(th) .kanji{font-family:'Yu Mincho','Hiragino Mincho ProN','Noto Serif JP',serif}
/* Thai (2026-11-28; measured with stand-in Thai text, docs/BASE_DESIGN.md §9.13).
   Typefaces: the site's Latin faces first, as on its other pages, then the Thai faces each system has (Android: Noto Sans
   Thai; Windows: Leelawadee UI, older ones Tahoma; Apple: Thonburi, Sukhumvit Set). Without these the browser picks one by
   itself, and not the same one in headings and text.
   Line height: Thai letters carry marks above and below (ที่ น้ำ ผู้ กตัญญู ฤดู). A line with the tallest of them has ink about
   1.4 times the type size, so the tight lines the site sets for headings (1.04–1.3) would run into each other; headings
   get 1.45. The text itself (1.5 and more) needs nothing.
   Letter-spacing: the site pulls its large headings together (negative letter-spacing), which crowds Thai marks; none here.
   Line breaks: Thai has no spaces between words and the browser finds the words itself. Nothing may break inside a word
   (never word-break:break-all); a word longer than its box may still break, between letters and never inside one. */
:root:lang(th){--sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans Thai','Leelawadee UI',Thonburi,'Sukhumvit Set',Tahoma,sans-serif;--serif:Georgia,'Iowan Old Style','Palatino Linotype','Noto Serif Thai','Noto Sans Thai','Leelawadee UI',Thonburi,Tahoma,serif}
:root:lang(th) body{overflow-wrap:break-word}
:root:lang(th) :is(h1,h2,h3,h4,.stage-phrase,.journey-question,.stage-headline,.stage-name,.stage-prompt,.hl-name){line-height:1.45;letter-spacing:0}
/* The large headings, a little smaller (2026-12-03, the owner, after seeing the pages). With the room the marks need, a Thai
   line of these headings stood a third higher than the English one at the same type size (a title of two lines at 375px: 116px
   for 86px). The line height stays; the type is 0.8 of the site's on the large picture (articles, destinations, the home page)
   and 0.85 on a place or a guide, which leaves a Thai line about 7% higher than the English one. The other headings were
   already no higher than English (an article without a large picture, the lists' titles, the cards) and keep their sizes. */
/* Not every h1 on the large picture is its title (2026-12-05): a month's page has its small label there (h1.stage-kicker,
   9–11px) and the home page its own headline (h1.stage-headline), each with a size of its own in the site's sheet. The rule
   above reached them too, and the label was drawn as large as a title (32px on a phone, 63px on a wide screen). They are
   left out here and keep the site's sizes. */
:root:lang(th) .stage h1:not(.stage-kicker,.stage-headline),:root:lang(th) .stage .stage-phrase{font-size:clamp(35px,4.96vw,75px)}
:root:lang(th) .stage.is-article h1{font-size:clamp(32px,4.32vw,67px)}
:root:lang(th) .place-head h1{font-size:37px}
@media(max-width:650px){:root:lang(th) .stage h1:not(.stage-kicker,.stage-headline),:root:lang(th) .stage .stage-phrase,:root:lang(th) .stage.is-article h1{font-size:32px}:root:lang(th) .place-head h1{font-size:29px}}
/* Spanish (2026-12-02; measured with the translated words at 375px and 1280px). The labels of a place's facts stand in a
   76px column; Spanish has one that is a single longer word (Estacionamiento, 97px), which ran into the fact beside it.
   The column is wider there. And in every translated language a label that is one word longer than its column breaks
   inside the column (the labels of a place's own facts come from the translation, not from the dictionary). */
:root:lang(es) .place-glance li{grid-template-columns:104px 1fr}
.place-glance b{overflow-wrap:break-word;min-width:0}
