/* Chinese, Japanese and Korean typesetting on the /zh/, /ja/, /ko/ copies.
   The Latin faces stay first in every stack, so brand names, prices and "ISK" keep the
   site's look; CJK glyphs fall through to the reader's own system fonts (PingFang /
   Hiragino / Apple SD Gothic Neo on Apple, YaHei / Yu Gothic / Malgun on Windows, Noto on
   Android). No CJK webfont is shipped: a single one is 2-8 MB, slower than the page. */
html.lang-zh {
  --sans: "Switzer", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --serif: "Newsreader", "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --mono: "Server Mono", "SF Mono", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", monospace;
}
html.lang-zh-hant {
  --sans: "Switzer", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  --serif: "Newsreader", "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "PMingLiU", serif;
  --mono: "Server Mono", "SF Mono", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", monospace;
}
html.lang-ja {
  --sans: "Switzer", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --serif: "Newsreader", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --mono: "Server Mono", "SF Mono", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", monospace;
}
html.lang-ko {
  --sans: "Switzer", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  --serif: "Newsreader", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Noto Serif CJK KR", serif;
  --mono: "Server Mono", "SF Mono", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", monospace;
}

/* Tracking: CJK glyphs are set solid. The site's tight negative tracking on headings and its
   open tracking on mono labels both read as mistakes on Han, kana and hangul. */
html.cjk body, html.cjk body * { letter-spacing: 0 !important; }

/* No CJK face has an italic; the browser would slant the glyphs. The serif italics in the
   headings keep their colour and lose the slant. */
html.cjk i, html.cjk em, html.cjk .h-sec i { font-style: normal; }

/* Leading: display lines set at 0.95-1.1 clip CJK ascenders; body copy wants air. */
html.cjk :is(h1, h2, h3, h4, .hero__title, .h-sec, .tour__title, .footer__tag) { line-height: 1.3; }
html.cjk :is(p, li, dd, dt, td, th, summary, .tour__prose) { line-height: 1.8; }
html.cjk .mono { line-height: 1.6; }

/* Line breaking: Chinese and Japanese break between any two characters but never before 。、）
   (strict); Korean breaks at spaces like English and must never split a word. Long Latin
   names (Norðurflug Helicopter Tours) may still wrap rather than overflow. */
html.lang-zh body, html.lang-zh-hant body, html.lang-ja body { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
html.lang-ko body { word-break: keep-all; overflow-wrap: anywhere; }
/* Japanese headings: proportional kana and punctuation, the way Japanese print sets titles */
html.lang-ja :is(h1, h2, h3, .hero__title, .h-sec) { font-feature-settings: "palt" 1; }

/* Uppercase transforms are for the Latin wordmark only; on CJK they do nothing, but the mono
   eyebrows set in caps look shouty beside hangul, so they drop the transform. */
html.cjk .mono:not(.footer__who):not(.footer__credit) { text-transform: none; }

/* ---------- the Chinese travel assistant (home band, buttons, its page) ----------
   Same parts as the rest of the site: the framed dark band of "Our partners", pill buttons,
   the concierge's orb. Motion comes from main.js (data-lines / data-fade-up on the home page). */
.assist-orb { display: inline-block; flex: none; width: 14px; height: 14px; margin-right: 0.55em; vertical-align: -2px; border: 1px solid currentColor; border-radius: 50%; position: relative; }
.assist-orb::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.assist-band__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4.5vw, 4.5rem); }
.assist-band__eyebrow { color: var(--band-muted); margin: 0 0 1.25rem; display: flex; align-items: center; }
.assist-band .h-sec { margin-bottom: 1.25rem; }
.assist-band .h-sec i { color: var(--band-muted); }
.assist-band__body { color: var(--band-body); font-size: 1.0625rem; max-width: 34em; margin: 0 0 1.75rem; }
.assist-band__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.assist-chip { font: inherit; font-size: 0.9375rem; line-height: 1.35; padding: 0.6rem 1rem; border-radius: var(--r-pill); cursor: pointer; text-align: left;
  background: transparent; color: var(--band-text); border: 1px solid var(--band-hairline);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
@media (hover: hover) { .assist-chip:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); } }
.assist-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.assist-band__more { color: var(--band-text); text-decoration: none; font-size: 0.9375rem;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% 1px; background-position: 0 100%; transition: background-size 0.45s var(--ease); }
@media (hover: hover) { .assist-band__more:hover { background-size: 100% 1px; } }
.assist-band__note { color: var(--band-muted); margin: 1.75rem 0 0; font-size: 0.75rem; }
/* the sample conversation: a still of the real chat, not a promise of a specific answer */
.assist-demo { background: var(--surface); color: var(--ink); border-radius: var(--r-card); padding: 1.25rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); max-width: 26rem; margin-left: auto; }
.assist-demo__head { display: flex; align-items: center; gap: 0.1rem; padding-bottom: 0.9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--hairline); font-size: 0.9375rem; color: var(--accent); }
.assist-demo__head b { color: var(--ink); font-weight: 600; }
.assist-demo p { margin: 0 0 0.75rem; font-size: 0.9375rem; line-height: 1.7; padding: 0.7rem 0.9rem; border-radius: 14px; }
.assist-demo__me { background: var(--ink); color: #fff; margin-left: 18% !important; border-bottom-right-radius: 4px !important; }
.assist-demo__ai { background: var(--tint); color: var(--body); margin-right: 8% !important; border-bottom-left-radius: 4px !important; }
.assist-demo__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.assist-demo__cards span { height: 64px; border-radius: 10px; background: linear-gradient(110deg, var(--tint) 40%, #f6f7f9 50%, var(--tint) 60%) 0 0 / 220% 100%; animation: assistShimmer 2.4s linear infinite; }
@keyframes assistShimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .assist-demo__cards span { animation: none; } }
@media (max-width: 900px) {
  .assist-band__grid { grid-template-columns: 1fr; }
  .assist-demo { margin: 0; max-width: none; }
}
/* buttons that open the assistant elsewhere */
.btn--line { background: transparent; color: var(--ink); border-color: var(--hairline); margin-left: 0.5rem; }
@media (hover: hover) { .btn--line:hover { border-color: var(--ink); } }
@media (max-width: 600px) { .btn--line { margin: 0.75rem 0 0; } }
.book__assist { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* the assistant page */
.assist__intro { font-size: 1.125rem; color: var(--ink) !important; }
.assist__can, .assist__how { margin-left: 1.2rem; }
.assist__can b, .assist__how b { color: var(--ink); font-weight: 600; margin-right: 0.35em; }
.assist .assist-chip { color: var(--ink); border-color: var(--hairline); }
@media (hover: hover) { .assist .assist-chip:hover { background: var(--tint); border-color: var(--ink); } }
.assist .btn .assist-orb { margin-right: 0; }
.assist__faq details { border-top: 1px solid var(--hairline); padding: 0.9rem 0; }
.assist__faq details:last-child { border-bottom: 1px solid var(--hairline); }
.assist__faq summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.assist__faq p { margin: 0.6rem 0 0 !important; }
