/* Phrase pages (/translate/). Sits on top of /css/stc.css and uses only its tokens: ink, night, paper, white,
   mute, rule and the city's accent (play controls and Buy, nothing else). Built by Scripts/build-translate.py. */

/* ---------- Shared ---------- */
.tp-crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.72); }
.tp-crumbs a { text-decoration: none; }
.tp-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.tp-crumbs a + a::before { content: "/"; display: inline-block; margin: 0 10px; opacity: .55; }
.tp ruby rt { font-size: .3em; font-weight: 500; letter-spacing: 0; opacity: .7; }
.tp-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.tp-list a { display: grid; gap: 2px; padding: 18px 0 20px; border-top: 1px solid var(--rule); text-decoration: none; height: 100%; }
.tp-list .t { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.tp-list .t:lang(ko), .tp-list .t:lang(ja) { font-size: 22px; letter-spacing: 0; }
.tp-list .r { font-size: 15px; color: var(--mute); }
.tp-list .e { font-size: 16px; color: var(--ink); margin-top: 4px; }
.tp-list a:hover .e { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Phrase page: the opening ---------- */
.tp-hero { height: auto; min-height: max(640px, min(var(--screen), 980px)); display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); }
.tp-hero::before { display: none; }
.tp-hero .hero-photo { position: relative; inset: auto; order: 2; min-height: 100%; }
.tp-hero .hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(11,12,13,1) 0%, rgba(11,12,13,.35) 14%, rgba(11,12,13,0) 34%); }
.tp-hero .hero-photo picture { position: absolute; inset: 0; }
.tp-hero-body { align-self: end; padding: calc(var(--bar-h) + 64px) clamp(28px, 5vw, 88px) clamp(48px, 6vw, 88px) var(--pad); min-width: 0; }
.tp-hero h1 { margin-top: 30px; max-width: 26ch; font-size: clamp(21px, 1.8vw, 28px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: rgba(255,255,255,.86); text-wrap: balance; }
.tp-hero .line { margin-top: clamp(28px, 4vh, 52px); }
.tp-hero .say { color: #fff; }
.tp-s .say { font-size: clamp(60px, 8.6vw, 140px); }
.tp-m .say { font-size: clamp(48px, 6.2vw, 102px); }
.tp-l .say { font-size: clamp(38px, 4.5vw, 72px); line-height: 1.04; }
.tp-s .say:lang(ko), .tp-s .say:lang(ja) { font-size: clamp(52px, 7vw, 116px); }
.tp-m .say:lang(ko), .tp-m .say:lang(ja) { font-size: clamp(40px, 5vw, 82px); }
.tp-l .say:lang(ko), .tp-l .say:lang(ja) { font-size: clamp(32px, 3.7vw, 60px); }
.tp-hero .say:lang(ja) span { margin-right: .04em; }
.tp-hero .rom { color: rgba(255,255,255,.76); font-size: clamp(19px, 1.6vw, 24px); margin-top: 18px; }
.tp-plays { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.tp-plays .play { margin: 0; }
.tp-hero .wave-fill { color: #fff; }
.tp-hero .wave-base { opacity: .45; }
.tp-hero .play--chip { color: var(--ink); box-shadow: none; }
.tp-src { margin-top: clamp(32px, 5vh, 56px); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); max-width: 50ch; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.66); }
.tp-hero :focus-visible { outline-color: #fff; }

/* ---------- Phrase page: sections ---------- */
.tp-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(28px, 5vw, 96px); padding: clamp(64px, 8vw, 120px) var(--pad); background: var(--white); }
.tp-sec + .tp-sec { border-top: 1px solid var(--rule); }
.tp-sec h2 { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.035em; word-spacing: .06em; line-height: 1.05; }
.tp-body { max-width: 780px; min-width: 0; }
.tp-body > p { font-size: var(--t-body); max-width: 62ch; }
.tp-body > p + p { margin-top: 16px; }
.tp-lead { font-size: var(--t-lead) !important; line-height: 1.45; }
.tp-lead span[lang] { font-weight: 700; }
.tp-sec i { font-style: italic; }

.tp-gloss { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); column-gap: 32px; margin-top: 36px; counter-reset: none; }
.tp-gloss li { padding: 20px 0 24px; border-top: 2px solid var(--ink); }
.tp-gloss b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.tp-gloss b:lang(ko), .tp-gloss b:lang(ja) { font-size: 30px; font-weight: 700; letter-spacing: 0; }
.tp-gloss .r { display: block; font-size: 16px; color: var(--mute); margin-top: 6px; }
.tp-gloss .also { font-size: 15px; line-height: 1.45; color: var(--mute); margin-top: 12px; }
.tp-gloss .also a, .tp-gloss .also > span[lang] { color: var(--ink); font-weight: 600; }
.tp-gloss .also a { text-underline-offset: 3px; }
.tp-gloss .m { display: block; }
.tp-note { margin-top: 40px !important; padding-left: 22px; border-left: 3px solid var(--ink); font-size: 19px !important; line-height: 1.55; }

.tp-where { background: var(--paper); }
.tp-sec.tp-where + .tp-sec { border-top: 0; }
.tp-place { font-size: 16px !important; font-weight: 700; color: var(--mute); margin-bottom: 18px; }
.tp-where h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin: 56px 0 28px; }
.tp-lines { border-left: 2px solid var(--rule); padding-left: clamp(20px, 3vw, 36px); }
.tp-lines .line + .line { margin-top: 36px; }
.tp-lines .line--s .say { font-size: clamp(26px, 2.5vw, 38px); }
.tp-lines .line--s .say:lang(ko), .tp-lines .line--s .say:lang(ja) { font-size: clamp(24px, 2.2vw, 34px); }
.tp-lines .say:lang(ja) span { margin-right: .04em; }
.tp-lines .rom { font-size: 17px; margin-top: 8px; }
.tp-lines .mean { font-size: 18px; }
.tp-lines .play { margin-top: 12px; }
.tp-you .who { color: var(--ink); font-weight: 800; }

.tp-vars { list-style: none; margin-top: 18px; }
.tp-vars li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.tp-vars b { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.tp-vars .r { font-size: 15px; color: var(--mute); }

.tp-rel .tp-list { margin-top: 4px; }
.tp-all { margin-top: 28px; font-size: 17px; font-weight: 700; }
.tp-all a { text-underline-offset: 4px; }

/* ---------- The course, compact ---------- */
.tp-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px clamp(32px, 6vw, 96px); align-items: center; padding: clamp(64px, 8vw, 112px) var(--pad); background: var(--night); color: #fff; }
.tp-app .app-icon { width: 64px; height: 64px; margin-bottom: 24px; }
.tp-app h2 { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.tp-app-text p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 46ch; margin-top: 16px; }

/* ---------- Language index ---------- */
.tp-index-hero .hero-body > div:first-child { min-width: 0; }
.tp-index-hero .tp-crumbs { margin-bottom: 22px; }
.tp-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tp-strip a { padding-right: 12px; }
.tp-group { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); background: var(--white); }
.tp-group.flip { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); background: var(--paper); }
.tp-group.flip .scene-photo { order: 2; }
.tp-group .scene-photo { position: sticky; top: 0; height: var(--screen); align-self: start; }
.tp-group-text { padding: clamp(88px, 10vw, 144px) clamp(28px, 6vw, 104px) clamp(72px, 8vw, 120px); min-width: 0; }
.tp-group h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.04em; word-spacing: .08em; line-height: 1; text-wrap: balance; }
.tp-group-line { font-size: var(--t-lead); color: var(--mute); max-width: 44ch; margin-top: 20px; }
.tp-group h3 { font-size: 17px; font-weight: 700; color: var(--mute); margin: 56px 0 6px; }
.tp-group .tp-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tp-index-hero .hero-first .hero-say:lang(ja), .tp-index-hero .hero-first .hero-say:lang(ko) { letter-spacing: 0; }

/* ---------- Hub ---------- */
.tp-hub-top { background: var(--white); padding: calc(var(--bar-h) + clamp(56px, 8vw, 120px)) var(--pad) clamp(72px, 9vw, 128px); }
.tp-hub-head h1 { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.042em; word-spacing: .09em; line-height: .98; text-wrap: balance; }
.tp-hub-head p { font-size: var(--t-lead); color: var(--mute); max-width: 56ch; margin-top: 28px; }
.tp-compare { width: 100%; border-collapse: collapse; margin-top: clamp(56px, 7vw, 96px); text-align: left; }
.tp-compare thead th { padding: 0 24px 18px 0; vertical-align: bottom; width: 27%; }
.tp-compare thead th a { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.tp-compare thead th a:hover { text-decoration: underline; text-underline-offset: 5px; }
.tp-compare thead th span { display: block; font-size: 15px; font-weight: 600; color: var(--mute); margin-top: 2px; }
.tp-compare tbody th { font-size: 17px; font-weight: 700; padding: 22px 24px 22px 0; vertical-align: top; width: 19%; }
.tp-compare td { padding: 18px 24px 20px 0; vertical-align: top; }
.tp-compare tbody tr { border-top: 1px solid var(--rule); }
.tp-compare td > a { display: block; text-decoration: none; }
.tp-compare td .t { display: block; font-size: 25px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.tp-compare td .t:lang(ko), .tp-compare td .t:lang(ja) { letter-spacing: 0; font-size: 23px; }
.tp-compare td .r { display: block; font-size: 15px; color: var(--mute); margin-top: 2px; }
.tp-compare td > a:hover .t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tp-compare .play--chip { margin-top: 12px; }
.tp-city .note .btn { margin-top: 6px; }
.tp-city .say:lang(ja) span { margin-right: .04em; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1099px) {
  .tp-hero { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
  .tp-index-hero .hero-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .tp-hero { grid-template-columns: 1fr; min-height: 0; }
  .tp-hero .hero-photo { order: 0; height: min(64vw, 460px); min-height: 0; }
  .tp-hero .hero-photo::after { background: linear-gradient(to top, rgba(11,12,13,1) 0%, rgba(11,12,13,.4) 22%, rgba(11,12,13,0) 46%), linear-gradient(to bottom, rgba(11,12,13,.5) 0%, rgba(11,12,13,0) 26%); }
  .tp-hero-body { padding: 8px var(--pad) 56px; }
  .tp-hero h1 { margin-top: 22px; }
  .tp-sec { grid-template-columns: 1fr; }
  .tp-app { grid-template-columns: 1fr; }
  .tp-group, .tp-group.flip { grid-template-columns: 1fr; }
  .tp-group.flip .scene-photo { order: 0; }
  .tp-group .scene-photo { position: relative; height: min(72vw, 560px); }
  .tp-group-text { padding: 56px var(--pad) 72px; }
  .tp-compare, .tp-compare thead, .tp-compare tbody, .tp-compare tr, .tp-compare th, .tp-compare td { display: block; width: auto; }
  .tp-compare thead { display: none; }
  .tp-compare tbody tr { padding: 22px 0 8px; }
  .tp-compare tbody th { padding: 0 0 10px; font-size: 19px; width: auto; }
  .tp-compare td { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 12px 0; }
  .tp-compare td::before { content: attr(data-lang); font-size: 14px; font-weight: 600; color: var(--mute); }
  .tp-compare .play--chip { margin: 0; }
}
@media (max-width: 699px) {
  .tp-crumbs { font-size: 14px; }
  .tp-hero .hero-photo { height: 68vw; }
  .tp-s .say { font-size: clamp(46px, 14vw, 72px); }
  .tp-m .say { font-size: clamp(36px, 10.6vw, 56px); }
  .tp-l .say { font-size: clamp(30px, 8.4vw, 44px); }
  .tp-s .say:lang(ko), .tp-s .say:lang(ja) { font-size: clamp(40px, 12vw, 60px); }
  .tp-m .say:lang(ko), .tp-m .say:lang(ja) { font-size: clamp(30px, 8.6vw, 46px); }
  .tp-l .say:lang(ko), .tp-l .say:lang(ja) { font-size: clamp(26px, 7vw, 36px); }
  .tp-hero .rom { font-size: 18px; }
  .tp-plays .wave svg { width: 150px; }
  .tp-gloss { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .tp-gloss b { font-size: 28px; }
  .tp-gloss b:lang(ko), .tp-gloss b:lang(ja) { font-size: 25px; }
  .tp-note { font-size: 17px !important; padding-left: 16px; }
  .tp-where h3 { margin-top: 44px; }
  .tp-lines { padding-left: 18px; }
  .tp-lines .wave svg { width: 130px; }
  .tp-list .t { font-size: 22px; }
  .tp-index-hero .hero-body { bottom: 28px; }
  .tp-strip { display: none; }
  .tp-group h3 { margin-top: 40px; }
  .tp-hub-top { padding-top: calc(var(--bar-h) + 48px); }
  .tp-compare td { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .tp-compare td .t { font-size: 21px; }
  .tp-compare td .t:lang(ko), .tp-compare td .t:lang(ja) { font-size: 20px; }
}

/* ---------- Phrase page: the whole scene ---------- */
.tp-script { list-style: none; margin-top: 28px; }
.tp-script li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: start; padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.tp-script li > * { grid-column: 1; }
.tp-script .play--chip { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
.tp-script .who { margin-bottom: 4px; }
.tp-script .say { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; word-spacing: .04em; line-height: 1.25; }
.tp-script .say:lang(ko), .tp-script .say:lang(ja) { font-size: 22px; font-weight: 600; letter-spacing: 0; }
.tp-script .say:lang(ja) span { margin-right: .04em; }
.tp-script .rom { font-size: 15px; margin-top: 4px; }
.tp-script .mean { font-size: 16px; font-weight: 400; color: var(--mute); margin-top: 2px; }
.tp-script li.tp-here { border-top: 2px solid var(--ink); }
.tp-script li.tp-here .who { color: var(--ink); font-weight: 800; }
.tp-script li.tp-here .mean { color: var(--ink); }
.tp-scene h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin: 56px 0 14px; }
.tp-q { font-size: var(--t-lead) !important; font-weight: 600; }

/* Korean and Japanese in Latin letters keep the Latin face. */
[lang$="-Latn"] { font-family: var(--latin); }
