/* Type ladder per language: the site has ONE ladder (base.css :root, six sizes). Each language rescales the same ladder instead of patching single elements.
   Spanish is about 25% longer than English, so the display sizes step down; Chinese glyphs are denser and visually larger, so display sizes step down more. Body sizes stay. */
html[lang="es"]{--t-poster:clamp(38px,4.8vw,70px);--t-block:clamp(28px,3.1vw,46px)}
html[lang^="zh"]{--t-poster:clamp(36px,4.6vw,66px);--t-block:clamp(28px,3vw,44px)}
/* language switcher (desktop globe menu, phone row in the opened menu, footer row) and Chinese type */
.lang{position:relative;margin-left:auto;margin-right:30px;font-size:15px}
.lang summary{list-style:none;display:flex;align-items:center;gap:7px;cursor:pointer;padding:10px 2px;opacity:.8;transition:opacity .2s;user-select:none}
.lang summary::-webkit-details-marker{display:none}
.lang summary:hover,.lang[open] summary{opacity:1}
.lg-globe{flex:none}
.lang ul{position:absolute;right:0;top:100%;margin:6px 0 0;padding:6px;list-style:none;min-width:150px;background:var(--paper);color:var(--ink);border:1px solid var(--line);box-shadow:0 10px 30px rgba(0,0,0,.14);z-index:60}
.lang li a{display:block;padding:10px 14px;font-size:15px;white-space:nowrap}
.lang li a:hover{background:rgba(0,0,0,.05)}
.lang li a[aria-current]{font-weight:500}
.lang li a[aria-current]::after{content:"\2713";float:right;margin-left:18px}
.lang-row{display:none}
.lang-foot{display:flex;gap:22px;justify-content:center;flex-wrap:wrap;padding:6px var(--gut,20px) 28px;font-size:14px}
.lang-foot a{opacity:.75}.lang-foot a:hover,.lang-foot a[aria-current]{opacity:1}
.lang-foot a[aria-current]{text-decoration:underline;text-underline-offset:5px}
.lg-note{margin:0 0 28px;padding:12px 16px;border-left:2px solid var(--line);font-size:14px;opacity:.8}
@media (max-width:860px){
  .lang{display:none}
  .menu .lang-row{display:flex;gap:10px;padding:8px 0 18px;border-bottom:1px solid var(--line)}
  .menu .lang-row a{flex:1;display:block;text-align:center;padding:13px 4px;border:1px solid var(--line);border-bottom:1px solid var(--line);opacity:1;white-space:nowrap;
    font-family:"Hanken Grotesk","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;font-weight:400;line-height:1.2;text-transform:none;letter-spacing:0;text-decoration:none}
  .menu .lang-row a[aria-current]{background:var(--ink);color:var(--paper);border-color:var(--ink);text-decoration:none}
}
/* Chinese type system. Roles, each with a real, fully legible Chinese face:
   display = Noto Serif SC 600: headings and the poster line. (ZCOOL XiaoWei, Li's first pick, was tested character by character and dropped: it draws 己/已/巳 and 末/未 alike, 本 looks like 朩, 主 like 王, and 回 is a solid box.)
   text    = Noto Serif SC 400/600: paragraphs and card text
   ui      = Noto Sans SC 400/500: menu, buttons, tabs, form fields, captions, labels, footer */
html[lang^="zh"]{--head:'Noto Serif SC','Songti SC','SimSun',serif;--serif:var(--head);--sans:'Hanken Grotesk','Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  --zh-display:'Noto Serif SC','Songti SC','SimSun',serif;--zh-hero:var(--zh-display);--zh-text:'Noto Serif SC','Songti SC','SimSun',serif;--zh-ui:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif}
html[lang^="zh"] body{font-family:var(--zh-text);font-weight:400;line-height:1.95;letter-spacing:.02em;line-break:strict;text-wrap:pretty;font-kerning:normal}
html[lang^="zh"] h1,html[lang^="zh"] h2,html[lang^="zh"] h3,html[lang^="zh"] h4,html[lang^="zh"] .ph{font-family:var(--zh-display);font-weight:600;text-transform:none;letter-spacing:.015em;line-height:1.3;text-wrap:balance}
html[lang^="zh"] .btn,html[lang^="zh"] .menu a,html[lang^="zh"] .pbar b,html[lang^="zh"] .hc-t b,html[lang^="zh"] .cs-t,html[lang^="zh"] .lang-row a,html[lang^="zh"] .lk-t span,html[lang^="zh"] .door-go{font-family:var(--zh-ui);font-weight:500;text-transform:none;letter-spacing:.06em}
html[lang^="zh"] summary{font-family:var(--zh-display);font-weight:600;letter-spacing:.03em;line-height:1.6}
html[lang^="zh"] .poster-copy .ph{font-family:var(--zh-hero);font-weight:600;letter-spacing:.015em;line-height:1.28;max-width:44vw;margin-bottom:.35em}
html[lang^="zh"] .poster-copy p:not(.ph){font-family:var(--zh-text);font-size:17px;line-height:1.85;letter-spacing:.03em}
html[lang^="zh"] b,html[lang^="zh"] strong{font-family:var(--zh-text);font-weight:600}
html[lang^="zh"] small,html[lang^="zh"] .small,html[lang^="zh"] label,html[lang^="zh"] input,html[lang^="zh"] textarea,html[lang^="zh"] select,
html[lang^="zh"] footer,html[lang^="zh"] footer *,html[lang^="zh"] .tlink,html[lang^="zh"] .lang-foot a,html[lang^="zh"] .lg-note,html[lang^="zh"] figcaption,html[lang^="zh"] caption,
html[lang^="zh"] th,html[lang^="zh"] td,html[lang^="zh"] dt{font-family:var(--zh-ui);font-weight:400;letter-spacing:.02em}
html[lang^="zh"] .logo{font-family:Anton,var(--zh-ui);text-transform:uppercase;letter-spacing:.02em;line-height:1}
html[lang^="zh"] [data-price],html[lang^="zh"] .price{font-family:var(--sans)}
@media (max-width:860px){html[lang^="zh"] .poster-copy .ph{font-size:clamp(34px,9vw,44px);max-width:none}}
/* Spanish runs about 20% longer than English: let long words and buttons wrap instead of overflowing */
@media (min-width:861px){html[lang="es"] .poster-copy .ph{max-width:46vw;line-height:1.18}}
@media (max-width:860px){
  html[lang="es"] .poster-copy .ph{font-size:clamp(34px,9.4vw,46px);max-width:none;line-height:1.16}
  html[lang="es"] .pbar .pb b,html[lang="zh"] .pbar .pb b{white-space:nowrap}
  html[lang="es"] .pbar{gap:14px}
  html[lang="es"] .pbar .pb b{font-size:14.5px}
}
/* capital letters with accents (Á É Í Ó Ú Ñ) need room above the line, or the accent touches the line above */
html[lang="es"] h1,html[lang="es"] h2,html[lang="es"] h3,html[lang="es"] .hc-s .h1{line-height:1.2}
html[lang="es"] .btn,html[lang="es"] h1,html[lang="es"] h2,html[lang="es"] h3{overflow-wrap:anywhere;hyphens:auto}
/* The English "looks" rows justify every line edge to edge; stretched across Chinese characters that opens huge gaps, so Chinese sets them centred */
html[lang^="zh"] .lk-row h2,html[lang^="zh"] .lk-row p{text-align:center;text-align-last:center;letter-spacing:.06em}

/* Layout rules that hold in every language (text lengths differ, the layout must not) */
/* 1. cards in a row: pictures, titles, texts and links share rows, so a two-line title in one card never pushes its text out of line with the others */
@media (min-width:861px){
  .doors{grid-template-rows:auto auto 1fr auto}
  .door{display:grid;grid-template-rows:subgrid;grid-row:span 4;row-gap:10px}
  .door-go{margin-top:0}
}
/* 2. tab panels sit in one grid cell, so the block is as tall as its tallest panel and nothing moves when another tab is picked; text starts at the same top line */
.cswitch.fmt{display:grid;grid-template-columns:minmax(0,1fr)}
.cswitch.fmt>.cs-tabs{grid-row:1;grid-column:1}
.cswitch.fmt>.case{grid-row:2;grid-column:1;align-items:start}
.cswitch.fmt>.case[hidden]{display:grid;visibility:hidden;pointer-events:none}
.cswitch.fmt .fm{align-items:start}
/* 3. the language button: globe and letters on one centre line */
.lang summary{align-items:center;line-height:1}
.lang summary span{display:block;line-height:1}
.lang .lg-globe{display:block;flex:none;position:relative;top:0}

/* Chinese lines break only between words (build inserts <wbr> between words), never inside one, and never before closing punctuation */
html[lang^="zh"] body{word-break:keep-all;overflow-wrap:anywhere}

/* tab labels stay on one line (the strip scrolls sideways on phones); a wrapped first tab made the row uneven */
.cs-t{white-space:nowrap;flex:0 0 auto;overflow-wrap:normal}

/* a social link without an address stays hidden: the icon rule (display:flex) must not override the hidden attribute */
.soc a[hidden],.ct-social a[hidden]{display:none!important}
