﻿/* China for free — design system
   Aesthetic: European editorial / Dutch minimalism
   Type: Serif headlines + sans body, generous whitespace
   Palette: paper white, ink, indigo, clay
*/

:root {
  --paper: #F7F4EE;
  --paper-warm: #EFE9DD;
  --ink: #1B2A41;
  --ink-soft: #4A5566;
  --indigo: #2E3D6B;
  --clay: #B68A5A;
  --clay-soft: #D9C2A0;
  --rule: rgba(27, 42, 65, 0.12);
  --max: 72ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

.serif {
  font-family: 'Spectral', 'Newsreader', 'Iowan Old Style', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--clay);
  transition: border-color 200ms ease, color 200ms ease;
}
a:hover { border-color: var(--ink); color: var(--indigo); }

/* ───────── Layout ───────── */
.shell {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.intro, .section, .about, .contact, footer {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.intro { padding-block-start: clamp(5rem, 11vw, 10rem); }

.lang-switch {
  position: fixed;
  top: 1rem;
  right: var(--gutter);
  z-index: 50;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: none;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.3rem 0.4rem;
  /* Opaque solid white pill — must not blend with the paper-coloured page */
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(27, 42, 65, 0.14);
  color: var(--ink);
}
.lang-switch > a {
  border: none;
  color: var(--ink);
  background: #FFFFFF;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 400;
  opacity: 0.75;
  transition: opacity 200ms ease, background 200ms ease;
}
.lang-switch > a:hover { opacity: 1; background: var(--paper-warm); }
.lang-switch > a.active {
  opacity: 1;
  font-weight: 500;
  background: var(--clay-soft);
  color: var(--ink);
}
.lang-switch .sep {
  color: var(--ink-soft);
  opacity: 0.35;
  font-weight: 300;
}

/* v4 — EN/FR stay in the pill; the dropdown is a separate .lang-menu box
   anchored to the <details>/<summary>, so the trigger never moves into
   the popup (cross-browser: Chrome/Firefox/Safari/Brave/iOS). */
.lang-switch .lang-nested {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.lang-switch .lang-nested summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  /* Opaque white button */
  background: #FFFFFF;
  color: var(--ink);
  opacity: 1;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background 200ms ease, border-color 200ms ease;
}
.lang-switch .lang-nested summary:hover {
  background: var(--paper-warm);
  border-color: var(--ink-soft);
}
.lang-switch .lang-nested summary::-webkit-details-marker { display: none; }
.lang-switch .lang-nested summary::after { content: " \25BE"; font-size: 0.65rem; margin-left: 0.25rem; }
.lang-switch .lang-nested[open] summary::after { content: " \25B4"; }

/* Popup panel — a plain wrapper div (not the <details> itself).
   Fixed per-breakpoint width + explicit column count: deterministic layout
   in every browser (block links fill column width and can never overflow).
   Shrink-to-fit widths on a multi-column box diverge between
   Chrome/Firefox/Safari and especially on RTL pages, so avoid width:auto. */
.lang-switch .lang-nested .lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  left: auto;
  z-index: 60;
  background: #1B2A41;
  padding: 0.7rem 0.9rem 0.85rem;
  border-radius: 0.65rem;
  box-shadow: 0 10px 34px rgba(0,0,0,0.28);
  width: 13rem;
  max-width: calc(100vw - 1.25rem);
  max-height: 72vh;
  overflow-x: hidden;
  overflow-y: auto;
  /* reserve scrollbar space so tracks never get pushed past the edge */
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.lang-switch .lang-nested[open] .lang-menu {
  /* Grid (not CSS columns): with multi-columns, when the vertical scrollbar
     appears its width is ignored by the column-width calculation and the last
     column is pushed outside the background. Grid tracks reflow against the
     real content box; minmax(0,1fr) lets tracks shrink under long labels. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  column-gap: 1.1rem;
  row-gap: 0;
}

.lang-switch .lang-nested[open] .lang-menu a {
  /* Block children naturally fill the COLUMN width — never width:100%,
     which in multi-column resolves against the whole panel and shifts links
     outside the background in Chrome/Firefox */
  display: block;
  margin: 0;
  padding: 0.32rem 0.2rem;
  opacity: 0.82;
  color: #F7F4EE;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0;
  line-height: 1.3;
  /* Long native names (e.g. "Bahasa Indonesia", "پښتو (شمالي)") wrap to a
     second line instead of overflowing the panel background.
     overflow-wrap:anywhere + min-width:0 guarantee a link can never be wider
     than its column, in every browser */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
  text-align: left;
  transition: opacity 200ms ease, color 200ms ease;
}
.lang-switch .lang-nested[open] .lang-menu a.active { opacity: 1; font-weight: 600; color: var(--clay-soft); }
.lang-switch .lang-nested[open] .lang-menu a:hover { opacity: 1; color: var(--clay-soft); }

/* Compact pill on very small screens (popup is 1 column by default);
   2 columns on tablets, 3 balanced columns on wide screens */
@media (max-width: 480px) {
  .lang-switch {
    font-size: 0.72rem;
    gap: 0.25rem;
  }
  .lang-switch .lang-nested summary { font-size: 0.72rem; padding: 0.24rem 0.55rem; }
}
@media (min-width: 481px) {
  .lang-switch .lang-nested[open] .lang-menu {
    width: 20rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 640px) {
  .lang-switch .lang-nested[open] .lang-menu {
    width: 29rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ───────── Intro ───────── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.title em {
  font-style: italic;
  color: var(--clay);
}

.lede {
  margin-top: 2.25rem;
  max-width: var(--max);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ───────── Section heads ───────── */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 12rem) 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: baseline;
}
.section-head .num {
  font-family: 'Spectral', serif;
  font-size: 0.95rem;
  color: var(--clay);
  font-feature-settings: 'tnum';
}
.section-head h2 {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ───────── Live in China — addresses ───────── */
.addresses {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.address {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) minmax(0, 12rem);
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.address .label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.address .where {
  font-family: 'Spectral', serif;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.4;
}
.address .where em {
  font-style: italic;
  color: var(--clay);
}
.address .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ───────── Learn Chinese — formats ───────── */
.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.format {
  padding: 2.5rem clamp(1.25rem, 2vw, 2rem) 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.format:first-child { padding-left: 0; }
.format + .format { border-left: 1px solid var(--rule); }

.format h3 {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-size: 1.45rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.format h3 em { font-style: italic; color: var(--clay); }
.format p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.format .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.25rem;
}

/* ───────── About (dl) ───────── */
.about .lead {
  display: grid;
  grid-template-columns: minmax(0, 12rem) 1fr;
  gap: 2.5rem;
  align-items: start;
}
.dl {
  display: grid;
  grid-template-columns: minmax(0, 11rem) 1fr;
  gap: 0.65rem 2rem;
  max-width: 48rem;
}
.dl dt {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
}
.dl dd {
  font-family: 'Spectral', serif;
  font-size: 1.02rem;
  line-height: 1.55;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

/* ───────── Contact ───────── */
.contact {
  background: var(--ink);
  color: var(--paper);
}
.contact .eyebrow { color: var(--clay-soft); }
.contact h2 {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  max-width: 18ch;
}
.contact h2 em { font-style: italic; color: var(--clay-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0;
  border-top: 1px solid rgba(247, 244, 238, 0.18);
}
.contact-cell {
  padding: 2rem clamp(1.25rem, 2vw, 2rem) 2rem 0;
}
.contact-cell:first-child { padding-left: 0; }
.contact-cell + .contact-cell { border-left: 1px solid rgba(247, 244, 238, 0.18); }

.contact-cell .kind {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-soft);
  margin-bottom: 0.85rem;
}
.contact-cell .val {
  font-family: 'Spectral', serif;
  font-size: 1.1rem;
  line-height: 1.4;
}
.contact-cell a {
  color: var(--paper);
  border-bottom-color: var(--clay-soft);
}
.contact-cell a:hover { color: var(--clay-soft); }

/* ───────── Footer ───────── */
footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ───────── Responsive ───────── */
@media (max-width: 720px) {
  html { font-size: 16px; }
  .section-head, .address, .about .lead {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .address .label, .address .meta { font-size: 0.78rem; }
  .format + .format { border-left: none; border-top: 1px solid var(--rule); }
  .contact-cell + .contact-cell { border-left: none; border-top: 1px solid rgba(247, 244, 238, 0.18); }
  .contact-cell, .format { padding-left: 0; }
  .dl { grid-template-columns: 1fr; gap: 0.25rem; }
  .dl dt { border-top: none; padding-top: 1.25rem; }
  .dl dd { padding-top: 0.4rem; }
}

/* ───────── Print ───────── */
@media print {
  .lang-switch, footer { display: none; }
  body { background: white; color: black; }
}

/* ───────── v12: Why free · Plans · Wizard · Book ───────── */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.reason {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  padding: 1.15rem 1.2rem 1.25rem;
}
.reason .n {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--clay);
  display: block;
  margin-bottom: 0.55rem;
}
.reason h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.reason p { font-size: 0.88rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.plans-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.plan-item {
  border-left: 2px solid var(--clay);
  padding: 0.15rem 0 0.15rem 1.05rem;
}
.plan-item h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.plan-item p { font-size: 0.87rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.badge-soon {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid var(--clay);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Wizard */
.wizard-box {
  margin-top: 2.5rem;
  background: #1B2A41;
  color: #F7F4EE;
  border-radius: 0.9rem;
  padding: 1.6rem 1.6rem 1.5rem;
  max-width: 46rem;
}
.wiz-progress {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.9rem;
}
.wiz-progress .bar {
  display: inline-block;
  width: 5.5rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(247,244,238,0.18);
  margin-left: 0.6rem;
  vertical-align: middle;
  overflow: hidden;
}
.wiz-progress .bar i {
  display: block;
  height: 100%;
  background: var(--clay-soft);
  transition: width 300ms ease;
}
.wizard-box h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: #F7F4EE;
}
.wiz-sub { font-size: 0.85rem; opacity: 0.72; margin: 0 0 1.2rem; line-height: 1.55; }
.wiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.wiz-options button {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  text-align: left;
  color: #F7F4EE;
  background: rgba(247,244,238,0.08);
  border: 1px solid rgba(247,244,238,0.22);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  line-height: 1.3;
  transition: background 180ms ease, border-color 180ms ease;
}
.wiz-options button:hover {
  background: rgba(247,244,238,0.18);
  border-color: var(--clay-soft);
}
.wiz-result-cards { display: grid; gap: 0.9rem; margin: 0.6rem 0 1.2rem; }
.wiz-card {
  background: rgba(247,244,238,0.07);
  border: 1px solid rgba(247,244,238,0.16);
  border-left: 3px solid var(--clay-soft);
  border-radius: 0.55rem;
  padding: 0.9rem 1.05rem;
}
.wiz-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-soft);
  margin: 0 0 0.45rem;
}
.wiz-card p { font-size: 0.88rem; line-height: 1.62; margin: 0; }
.wiz-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.wiz-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  border-radius: 999px;
  padding: 0.62rem 1.25rem;
  cursor: pointer;
  border: 1px solid rgba(247,244,238,0.35);
  background: transparent;
  color: #F7F4EE;
}
.wiz-btn.primary {
  background: var(--clay-soft);
  border-color: var(--clay-soft);
  color: #1B2A41;
  font-weight: 600;
}
.wiz-btn:hover { filter: brightness(1.08); }

/* Book a slot */
.book-box {
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  background: var(--paper-warm);
  padding: 1.6rem;
  max-width: 42rem;
}
.book-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.book-form label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.book-form input,
.book-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  padding: 0.62rem 0.75rem;
  margin-bottom: 0.9rem;
  box-sizing: border-box;
}
.book-form input:focus,
.book-form textarea:focus {
  outline: none;
  border-color: var(--clay);
}
.book-form textarea { min-height: 5.5rem; resize: vertical; }
.book-form .hp { position: absolute; left: -9999px; }
.book-submit {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.7rem;
  cursor: pointer;
}
.book-submit:hover { background: #2c405f; }
.book-msg { font-size: 0.88rem; margin-top: 0.8rem; line-height: 1.5; }
.book-msg.ok { color: #2c6e49; }
.book-msg.err { color: #b5453b; }
@media (max-width: 560px) {
  .book-form .row { grid-template-columns: 1fr; gap: 0; }
  .wizard-box { padding: 1.25rem 1.1rem; }
}

/* Back-home floating bar (company pages) */
#cff-backhome {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 9998;
  max-width: calc(100vw - 2rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #1B2A41;
  color: #F7F4EE;
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.6rem 0.85rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  text-decoration: none;
}
#cff-backhome b { color: #E8C7A8; font-weight: 600; }
#cff-backhome .x {
  margin-left: 0.3rem;
  opacity: 0.55;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.2rem;
}
#cff-backhome .x:hover { opacity: 1; }

/* ===== v14: Couchsurfing trust card ===== */
.cff-trust {
  margin-top: 2.2rem;
  padding: 1.7rem 1.9rem;
  border: 1px solid var(--clay-soft);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217,194,160,0.22), rgba(239,233,221,0.55));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.cff-trust .ct-badge {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  border: 1px solid var(--clay-soft);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  background: #fff;
}
.cff-trust h3 { margin: 0; font-size: 1.25rem; }
.cff-trust p { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--ink-soft); max-width: 62ch; }
.cff-trust .ct-btn {
  margin-top: 0.35rem;
  display: inline-block;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: filter 0.15s ease;
}
.cff-trust .ct-btn:hover { filter: brightness(1.25); }
.book-verify { margin: 0.25rem 0 0.9rem !important; font-size: 0.84rem !important; }
.book-verify a { color: var(--clay); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[dir="rtl"] .cff-trust, .cff-trust[dir="rtl"] { align-items: flex-end; text-align: right; }
@media (max-width: 560px) {
  .cff-trust { padding: 1.3rem 1.2rem; }
  .cff-trust h3 { font-size: 1.1rem; }
}

/* ===== v15: port-visa note + deep-guide modal ===== */
.wiz-portnote {
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  border-radius: 10px;
  background: rgba(217, 194, 160, 0.25);
  border: 1px solid var(--clay-soft);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.wiz-portnote p { margin: 0; }
.wp-i {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
}
.wp-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  color: var(--clay);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.wp-link:hover { filter: brightness(0.85); }

.cff-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 16, 12, 0.62);
  padding: 5vh 1rem;
  overflow-y: auto;
}
.cff-modal.show { display: flex; justify-content: center; align-items: flex-start; }
.cff-modal-card {
  position: relative;
  background: var(--paper-warm, #f8f4ea);
  color: var(--ink);
  border-radius: 16px;
  max-width: 44rem;
  width: 100%;
  padding: 1.8rem 1.9rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: cff-pop 0.18s ease;
}
@keyframes cff-pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.cff-modal-card h3 { margin: 0 2rem 0.5rem 0; font-size: 1.35rem; line-height: 1.3; }
.cff-modal-x {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.cff-modal-x:hover { background: rgba(0, 0, 0, 0.13); }
.pm-intro { font-size: 0.92rem; color: var(--ink-soft); margin: 0.3rem 0 1.1rem; }
.pm-block { margin: 0 0 1.05rem; }
.pm-block h4 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: var(--clay);
}
.pm-block p { margin: 0 0 0.45rem; font-size: 0.88rem; line-height: 1.62; }
.pm-warn {
  margin-top: 0.55rem !important;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: rgba(178, 70, 44, 0.1);
  border-inline-start: 3px solid #b2462c;
  font-weight: 600;
  color: #7a2f1e;
}
.pm-foot { margin-top: 1.2rem; text-align: center; }
[dir="rtl"] .cff-modal-x { right: auto; left: 0.9rem; }
[dir="rtl"] .pm-warn { border-inline-start: 0; border-inline-end: 3px solid #b2462c; }
@media (max-width: 560px) {
  .cff-modal { padding: 3vh 0.7rem; }
  .cff-modal-card { padding: 1.4rem 1.1rem 1.2rem; border-radius: 12px; }
  .cff-modal-card h3 { font-size: 1.15rem; }
  .pm-block p, .pm-intro { font-size: 0.85rem; }
}

/* ===== v16: port-visa page intro + standalone page ===== */
.pv-intro-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217,194,160,0.18), rgba(239,233,221,0.45));
  border: 1px solid var(--clay-soft);
}
.pv-intro-i {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
}
.pv-intro-box p { margin: 0 0 0.5rem; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }
.pv-intro-link {
  display: inline-block;
  color: var(--clay);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.88rem;
}
.pv-intro-link:hover { filter: brightness(0.8); }
[dir="rtl"] .pv-intro-box { flex-direction: row-reverse; }

/* standalone page */
.pv-page-wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.pv-page-wrap h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.pm-block { margin: 0 0 1.3rem; }
.pm-block h4 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--clay); }
.pm-block p { margin: 0 0 0.5rem; font-size: 0.92rem; line-height: 1.65; }
.pm-warn {
  margin-top: 0.6rem !important;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(178,70,44,0.1);
  border-inline-start: 3px solid #b2462c;
  font-weight: 600;
  color: #7a2f1e;
  font-size: 0.9rem;
  line-height: 1.55;
}
[dir="rtl"] .pm-warn { border-inline-start: 0; border-inline-end: 3px solid #b2462c; }
.pm-foot { margin-top: 1.5rem; text-align: center; }
.pv-back { margin-top: 2rem; text-align: center; font-size: 0.9rem; }
.pv-back a { color: var(--ink-soft); text-decoration: underline; }
@media (max-width: 560px) {
  .pv-page-wrap { padding: 1.8rem 1rem 3rem; }
  .pv-page-wrap h1 { font-size: 1.3rem; }
  .pm-block p { font-size: 0.85rem; }
}

/* ===== v16: port-visa page intro + standalone page ===== */
.pv-intro-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217,194,160,0.18), rgba(239,233,221,0.45));
  border: 1px solid var(--clay-soft);
}
.pv-intro-i {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
}
.pv-intro-box p { margin: 0 0 0.5rem; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }
.pv-intro-link {
  display: inline-block;
  color: var(--clay);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.88rem;
}
.pv-intro-link:hover { filter: brightness(0.8); }
[dir="rtl"] .pv-intro-box { flex-direction: row-reverse; }

/* standalone page */
.pv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--clay-soft);
}
.pv-logo {
  font-family: Georgia, "Spectral", serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--clay);
  text-decoration: none;
  white-space: nowrap;
}
.pv-topbar .lang-switch { font-size: 0.85rem; }
[dir="rtl"] .pv-topbar { flex-direction: row-reverse; }
@media (max-width: 560px) {
  .pv-topbar { flex-wrap: wrap; gap: 0.5rem; }
  .pv-logo { font-size: 0.95rem; }
}
.pv-page-wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.pv-page-wrap h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.pm-block { margin: 0 0 1.3rem; }
.pm-block h4 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--clay); }
.pm-block p { margin: 0 0 0.5rem; font-size: 0.92rem; line-height: 1.65; }
.pm-warn {
  margin-top: 0.6rem !important;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(178,70,44,0.1);
  border-inline-start: 3px solid #b2462c;
  font-weight: 600;
  color: #7a2f1e;
  font-size: 0.9rem;
  line-height: 1.55;
}
[dir="rtl"] .pm-warn { border-inline-start: 0; border-inline-end: 3px solid #b2462c; }
.pm-foot { margin-top: 1.5rem; text-align: center; }
.pv-back { margin-top: 2rem; text-align: center; font-size: 0.9rem; }
.pv-back a { color: var(--ink-soft); text-decoration: underline; }
@media (max-width: 560px) {
  .pv-page-wrap { padding: 1.8rem 1rem 3rem; }
  .pv-page-wrap h1 { font-size: 1.3rem; }
  .pm-block p { font-size: 0.85rem; }
}

/* ===== v17: anti-scrape email + e-bike reason ===== */
.book-email-hint {
  margin: 0.8rem 0 0 !important;
  font-size: 0.82rem !important;
  color: var(--ink-soft);
}
.be-label { font-weight: 500; }
.be-addr { font-family: monospace; letter-spacing: 0.02em; }

/* ===== v18: wizard result hierarchy — answer first, visa as minor footnote ===== */
.wiz-card--main {
  border-color: var(--clay);
  background: linear-gradient(135deg, rgba(217,194,160,0.22), rgba(239,233,221,0.5));
  box-shadow: 0 2px 12px rgba(140, 100, 60, 0.12);
}
.wiz-card--main h4 {
  color: var(--clay);
  font-size: 1.02rem;
}
.wiz-card--main p { font-size: 0.94rem; line-height: 1.68; }

.wiz-card--minor {
  opacity: 0.92;
  background: rgba(0, 0, 0, 0.025);
  border-style: dashed;
}
.wiz-card--minor h4 {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.wiz-card--minor p { font-size: 0.8rem; line-height: 1.55; }

.wiz-portline {
  margin: 0.5rem 0 0 !important;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.78rem !important;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.wiz-portline .wp-i {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.6rem;
}
.wiz-portline .wp-link { font-size: 0.78rem; white-space: normal; }
[dir="rtl"] .wiz-portline { flex-direction: row-reverse; }
