/* Life Shenzhen move launcher -------------------------------------------
   Progressive enhancement for /moving-to-shenzhen/. The existing guide
   directory and eight native details cards remain the no-JavaScript view. */

/* Keep the breadcrumb and freshness stamp as a compact utility row instead
   of spending the first screen on an otherwise empty masthead. These rules
   are explicit rather than relying only on :has(), so older browsers receive
   the same compact layout. */
.moving-page section.home-buy.buy-page-content {
  padding: clamp(16px, 1.5vw, 22px) 4vw clamp(56px, 6vw, 82px);
}

.moving-page .home-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 0 0 clamp(16px, 2vw, 26px);
}

.moving-page .home-section-heading > :is(.crumb, .verified) {
  margin: 0;
}

.md-dashboard {
  --md-ink: #071b38;
  --md-deep: #031126;
  --md-cream: #f2f0e8;
  --md-paper: #fbfaf6;
  --md-lime: #3ce0b5;
  --md-coral: #d94870;
  --md-gold: #d9b37c;
  --md-line: rgba(242, 240, 232, 0.2);
  --md-muted: rgba(242, 240, 232, 0.72);
  position: relative;
  isolation: isolate;
  margin: 0 0 clamp(48px, 6vw, 78px);
  border: 1px solid var(--md-line);
  color: var(--md-cream);
  background:
    radial-gradient(circle at 88% 10%, rgba(45, 107, 255, 0.2), transparent 25rem),
    radial-gradient(circle at 12% 92%, rgba(60, 224, 181, 0.11), transparent 24rem),
    var(--md-deep);
  overflow: hidden;
}

.md-dashboard::after {
  content: "深";
  position: absolute;
  z-index: -1;
  right: -0.05em;
  top: -0.22em;
  color: rgba(217, 179, 124, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(190px, 28vw, 440px);
  line-height: 1;
  pointer-events: none;
}

.md-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(26px, 3vw, 42px);
}

.md-eyebrow,
.md-question-label,
.md-plan-label {
  margin: 0;
  color: var(--md-lime);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}

.md-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.md-eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.md-hero h1 {
  max-width: 850px;
  margin: 18px 0 0;
  color: var(--md-cream);
  letter-spacing: -0.06em;
  text-wrap: balance;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.9;
}

.md-hero h1 em {
  color: var(--md-gold);
  font-style: normal;
}

.md-hero-copy > p:last-child {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--md-muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
}

.md-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--md-line);
  background: rgba(255, 255, 255, 0.055);
}

.md-score {
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.md-score + .md-score {
  border-left: 1px solid var(--md-line);
}

.md-score strong {
  color: var(--md-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.md-score span {
  color: var(--md-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.4;
}

.md-interactive {
  display: none;
  border-top: 1px solid var(--md-line);
}

.md-dashboard.is-enhanced .md-interactive {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr);
}

.md-controls {
  border-right: 1px solid var(--md-line);
  background: rgba(255, 255, 255, 0.035);
  padding: clamp(24px, 3vw, 38px);
}

.md-question + .md-question {
  margin-top: 34px;
  border-top: 1px solid var(--md-line);
  padding-top: 30px;
}

.md-question h2,
.md-question h3 {
  margin: 9px 0 0;
  color: var(--md-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.12;
}

.md-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.md-choice,
.md-random {
  min-height: 48px;
  border: 1px solid rgba(242, 240, 232, 0.26);
  color: var(--md-cream);
  background: rgba(255, 255, 255, 0.045);
  padding: 10px 13px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.md-choice:hover,
.md-random:hover {
  border-color: var(--md-gold);
  transform: translateY(-1px);
}

.md-choice[aria-pressed="true"] {
  border-color: var(--md-lime);
  color: var(--md-ink);
  background: var(--md-lime);
}

.md-random {
  width: 100%;
  margin-top: 24px;
  border-color: var(--md-gold);
  color: var(--md-gold);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.md-plan {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 48px);
}

.md-plan-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.md-plan-label {
  color: var(--md-gold);
}

.md-plan h2 {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--md-cream);
  letter-spacing: -0.035em;
  text-wrap: balance;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.md-plan-summary {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.65;
}

.md-profile-mark {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(217, 179, 124, 0.65);
  border-radius: 50%;
  color: var(--md-gold);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.md-plan-list {
  margin: clamp(28px, 4vw, 44px) 0 0;
  border-top: 1px solid var(--md-line);
  padding: 0;
  list-style: none;
}

.md-plan-item {
  border-bottom: 1px solid var(--md-line);
}

.md-plan-item a {
  min-height: 92px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 4px;
  transition: color 150ms ease, padding 150ms ease, background 150ms ease;
}

.md-plan-item a:hover {
  color: var(--md-lime);
  background: rgba(60, 224, 181, 0.045);
  padding-inline: 10px;
}

.md-plan-index {
  color: var(--md-gold);
  letter-spacing: 0.12em;
  font-size: 9px;
  font-weight: 800;
}

.md-plan-item strong {
  display: block;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
}

.md-plan-item small {
  display: block;
  margin-top: 5px;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.45;
}

.md-plan-arrow {
  color: var(--md-gold);
  font-size: 21px;
}

.md-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
}

.md-plan-actions a {
  min-height: 46px;
  border: 1px solid rgba(242, 240, 232, 0.32);
  color: var(--md-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.md-plan-actions a:first-child {
  border-color: var(--md-gold);
  color: var(--md-ink);
  background: var(--md-gold);
}

.md-plan-actions a:hover {
  border-color: var(--md-lime);
  color: var(--md-ink);
  background: var(--md-lime);
}

.md-nojs {
  margin: 0;
  border-top: 1px solid var(--md-line);
  color: var(--md-muted);
  padding: 18px clamp(24px, 5vw, 72px);
  font-size: 13px;
  line-height: 1.55;
}

.md-live {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.md-browse-note {
  margin: 0 0 22px;
  border: 1px solid rgba(7, 27, 56, 0.24);
  color: rgba(7, 27, 56, 0.78);
  background: #fbfaf6;
  padding: 15px 18px;
  font-size: 13px;
  line-height: 1.55;
}

.md-browse-note strong {
  color: #071b38;
}

.md-browse-note a {
  border-bottom: 1px solid #b13455;
  color: #b13455;
}

.md-browse-note a:focus-visible {
  outline: 3px solid #b13455;
  outline-offset: 3px;
}

.md-dashboard :is(button, a):focus-visible {
  outline: 3px solid var(--md-gold);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .md-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .md-scoreboard {
    max-width: 650px;
  }

  .md-dashboard.is-enhanced .md-interactive {
    grid-template-columns: 1fr;
  }

  .md-controls {
    border-right: 0;
    border-bottom: 1px solid var(--md-line);
  }
}

@media (max-width: 700px) {
  .md-dashboard {
    margin-inline: -1px;
  }

  .md-hero,
  .md-controls,
  .md-plan {
    padding: 26px 20px;
  }

  .md-hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .md-scoreboard {
    grid-template-columns: 1fr;
  }

  .md-score {
    min-height: 84px;
    flex-direction: row;
    align-items: center;
  }

  .md-score + .md-score {
    border-top: 1px solid var(--md-line);
    border-left: 0;
  }

  .md-choice-grid {
    grid-template-columns: 1fr;
  }

  .md-plan-head {
    grid-template-columns: 1fr;
  }

  .md-profile-mark {
    grid-row: 1;
    width: 50px;
    height: 50px;
    font-size: 21px;
  }

  .md-plan-item a {
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    gap: 11px;
  }

  .md-plan-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .moving-page .nav .brand-name {
    display: none;
  }

  .md-hero,
  .md-controls,
  .md-plan {
    padding-inline: 16px;
  }

  .md-plan-item strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-dashboard *,
  .md-dashboard *::before,
  .md-dashboard *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .md-dashboard,
  .md-scoreboard,
  .md-choice,
  .md-random,
  .md-plan-actions a {
    border-color: CanvasText;
  }

  .md-choice[aria-pressed="true"] {
    color: HighlightText;
    background: Highlight;
  }
}

@media print {
  .md-dashboard {
    border: 1px solid #000;
    color: #000;
    background: #fff;
  }

  .md-dashboard::after,
  .md-controls,
  .md-plan-actions,
  .md-profile-mark {
    display: none !important;
  }

  .md-dashboard.is-enhanced .md-interactive {
    display: block;
  }

  .md-hero,
  .md-plan {
    padding: 8mm;
  }

  .md-dashboard :is(h1, h2, strong, p, small, span) {
    color: #000 !important;
  }
}

/* A wide-screen, single-line title makes the launcher faster to scan. The
   existing break remains in place below 1440px, where it protects legibility. */
@media screen and (min-width: 1440px) {
  .md-hero {
    gap: clamp(30px, 4vw, 68px);
    padding: clamp(24px, 3vw, 42px);
  }

  .md-hero h1 {
    max-width: none;
    margin-top: 18px;
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(40px, 3.2vw, 54px);
    line-height: 1;
  }

  .md-hero h1 br { display: none; }
  .md-hero h1 em { margin-left: 0.16em; }
  .md-hero-copy > p:last-child { margin-top: 20px; }
}
