/* Shared interaction contract for the current Kindred surfaces. */
:root {
  --kindred-ink-1000: #050506;
  --kindred-ink-900: #0d0d10;
  --kindred-surface-900: #151116;
  --kindred-surface-800: #211923;
  --kindred-pink: #ff2f86;
  --kindred-pink-soft: #ffd0df;
  --kindred-ultraviolet: #8d72ff;
  --kindred-cyan: #5ee7e2;
  --kindred-positive: #8ce6c1;
  --kindred-warning: #f4cf85;
  --kindred-danger: #ff8e9e;
  --kindred-text-primary: #fff4f8;
  --kindred-text-secondary: #d6b5c2;
  --kindred-text-muted: #a77e8e;
  --kindred-line: rgba(255, 208, 223, 0.18);
  --kindred-line-strong: rgba(255, 95, 168, 0.52);
  --kindred-focus: #ffffff;
  --kindred-control-radius: 8px;
  --kindred-card-radius: 8px;
  --kindred-sheet-radius: 16px;
  --kindred-touch: 44px;
  --kindred-motion: 220ms;
}

button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:is(button, a, select, input, textarea):focus-visible {
  outline: 2px solid var(--kindred-focus);
  outline-offset: 3px;
}

@media (max-width: 767px), (max-width: 932px) and (max-height: 500px) and (orientation: landscape) {
  :root {
    --mobile-black: var(--kindred-ink-1000);
    --mobile-surface: var(--kindred-ink-900);
    --mobile-surface-raised: var(--kindred-surface-900);
    --mobile-hot-pink: var(--kindred-pink);
    --mobile-hot-pink-strong: #f51870;
    --mobile-pale-pink: var(--kindred-text-primary);
    --mobile-muted-pink: var(--kindred-text-muted);
    --mobile-line: var(--kindred-line);
    --mobile-line-strong: var(--kindred-line-strong);
    --mobile-good: var(--kindred-positive);
    --mobile-warn: var(--kindred-warning);
  }

  .mobile-app-shell :is(button, a, select, input, textarea) {
    min-height: var(--kindred-touch);
  }

  .mobile-app-shell .mobile-map-chrome {
    --kindred-map-chrome-height: 108px;
    display: grid;
    gap: 4px;
    padding: var(--mobile-safe-top) 12px 4px;
    background: rgba(5, 5, 6, 0.94);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
  }

  .mobile-map-header {
    min-height: 44px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .mobile-map-header > button:not(.mobile-map-city) {
    width: 44px;
    height: 44px;
    border-color: var(--kindred-line);
    border-radius: var(--kindred-control-radius);
    background: rgba(255, 255, 255, 0.03);
  }

  .mobile-map-city strong {
    font-size: 20px;
    letter-spacing: 0;
  }

  .mobile-map-control-row {
    min-height: 44px;
    height: 44px;
    display: grid;
    grid-template-columns: minmax(122px, 0.78fr) minmax(0, 1.22fr);
    gap: 8px;
  }

  .mobile-map-control-row .mobile-map-view-switch {
    min-height: 44px;
    height: 44px;
    border-color: var(--kindred-line-strong);
    border-radius: var(--kindred-control-radius);
  }

  .mobile-map-control-row .mobile-map-view-switch button {
    min-height: var(--kindred-touch);
    height: var(--kindred-touch);
    font-size: 12px;
  }

  .mobile-filter-summary {
    min-width: 0;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--kindred-line);
    border-radius: var(--kindred-control-radius);
    background: rgba(255, 47, 134, 0.08);
    color: var(--kindred-text-primary);
    padding: 4px 10px;
    text-align: left;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-filter-summary span {
    overflow: hidden;
    color: var(--kindred-text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-filter-summary small {
    color: var(--kindred-text-secondary);
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
  }

  .mobile-map-times,
  .mobile-map-types {
    display: none !important;
  }

  .home-shell.is-city-map .city-map-view {
    inset: calc(var(--mobile-safe-top) + 108px) 0 0;
    padding: 0 8px calc(86px + var(--mobile-safe-bottom));
  }

  .home-shell.is-city-map .local-map-card,
  .home-shell.is-city-map .local-map-canvas {
    border-radius: 0;
  }

  .home-shell.is-city-map .poi-strip {
    bottom: calc(74px + var(--mobile-safe-bottom));
  }

  .mobile-global-panel {
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.52);
  }

  .mobile-global-panel > section {
    width: min(100%, 560px);
    max-height: min(82dvh, 720px);
    border: 1px solid var(--kindred-line);
    border-bottom: 0;
    border-radius: var(--kindred-sheet-radius) var(--kindred-sheet-radius) 0 0;
    background: rgba(21, 17, 22, 0.98);
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.58);
  }

  .mobile-global-panel > section::before {
    content: "";
    width: 36px;
    height: 4px;
    position: absolute;
    top: 7px;
    left: 50%;
    border-radius: 99px;
    background: rgba(255, 208, 223, 0.42);
    transform: translateX(-50%);
  }

  .mobile-global-panel > section > header {
    min-height: 60px;
    padding-top: 12px;
  }

  .mobile-global-panel > section > header button {
    width: var(--kindred-touch);
    min-width: var(--kindred-touch);
    border: 1px solid var(--kindred-line);
    border-radius: 50%;
    color: var(--kindred-text-secondary);
    font-size: 0;
  }

  .mobile-global-panel > section > header button::before {
    content: "×";
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

  .mobile-global-panel h2 {
    color: var(--kindred-text-primary);
    font-size: 19px;
    letter-spacing: 0;
  }

  .mobile-panel-body {
    max-height: calc(min(82dvh, 720px) - 60px);
    padding: 14px 18px calc(20px + var(--mobile-safe-bottom));
  }

  .mobile-filter-panel {
    gap: 18px;
  }

  .mobile-filter-panel fieldset {
    padding-bottom: 18px;
  }

  .mobile-filter-panel fieldset > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-filter-panel button {
    width: 100%;
    min-height: var(--kindred-touch);
    border-radius: var(--kindred-control-radius);
    padding-inline: 10px;
  }

  .mobile-filter-panel fieldset:nth-of-type(2) > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-budget-field select,
  .mobile-settings-panel select {
    min-height: var(--kindred-touch);
    border-radius: var(--kindred-control-radius);
  }

  .mobile-filter-summary {
    border: 0;
    background: transparent;
    padding: 0;
  }

  .mobile-filter-panel .mobile-filter-summary {
    min-height: var(--kindred-touch);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--kindred-line);
    padding-top: 14px;
  }

  .mobile-filter-panel .mobile-filter-summary button {
    width: auto;
    min-width: 112px;
    border: 1px solid var(--kindred-line-strong);
    background: rgba(255, 47, 134, 0.1);
  }

  .mobile-settings-panel > :is(label, p, button, a) {
    min-height: 56px;
  }

  .mobile-settings-panel > button {
    color: var(--kindred-pink);
  }

  .home-shell.is-city-map .poi-detail-card {
    inset: 0 0 calc(74px + var(--mobile-safe-bottom)) 0 !important;
    padding: var(--mobile-safe-top) 16px 28px;
    background: var(--kindred-ink-1000);
  }

  .home-shell.is-city-map .poi-detail-sheet-bar {
    min-height: 52px;
    margin-inline: -16px;
    padding-inline: 16px;
    background: rgba(5, 5, 6, 0.94);
  }

  .home-shell.is-city-map .poi-detail-title-row {
    margin-top: 12px;
  }

  .home-shell.is-city-map .poi-detail-title-row h2 {
    max-width: 24ch;
    color: var(--kindred-text-primary);
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.05;
    letter-spacing: 0;
  }

  .home-shell.is-city-map .poi-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 7px;
    font-size: 12px;
  }

  .home-shell.is-city-map .poi-detail-card .poi-daily-intent {
    margin-top: 12px;
  }

  .home-shell.is-city-map .poi-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
    border-radius: var(--kindred-card-radius);
  }

  .home-shell.is-city-map .poi-glance > div {
    min-height: 62px;
    padding: 10px;
  }

  .home-shell.is-city-map .poi-glance small {
    font-size: 10px;
  }

  .home-shell.is-city-map .poi-glance strong {
    font-size: 13px;
  }

  .home-shell.is-city-map .poi-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
  }

  .home-shell.is-city-map .poi-quick-actions .is-primary {
    grid-column: auto;
  }

  .home-shell.is-city-map .poi-quick-actions :is(button, a) {
    min-height: 48px;
    border-radius: var(--kindred-control-radius);
    padding-inline: 6px;
    font-size: 11px;
  }

  .home-shell.is-city-map .poi-editorial-brief {
    margin-top: 12px;
    border-radius: var(--kindred-card-radius);
    padding: 13px;
  }

  .home-shell.is-city-map .poi-editorial-brief p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .home-shell.is-city-map .poi-detail-more {
    margin-top: 12px;
    border-radius: var(--kindred-card-radius);
    padding-inline: 12px;
  }

  .home-shell.is-city-map .poi-detail-more > summary {
    min-height: 48px;
    font-size: 13px;
  }

  .home-shell.is-city-map .poi-detail-more[open] {
    padding-bottom: 12px;
  }

  .home-shell.is-city-map .poi-readiness {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    border-top: 1px solid var(--kindred-line);
    padding-top: 12px;
  }

  .home-shell.is-city-map .poi-readiness span {
    color: var(--kindred-text-muted);
    font-size: 11px;
    line-height: 1.4;
  }

  .tip-dialog,
  .poi-action-dialog {
    border-radius: var(--kindred-sheet-radius) var(--kindred-sheet-radius) 0 0;
  }
}

/* Shared light product surfaces: keep task-specific palettes, align controls. */
body:has(.business-header) :is(.business-language select, .business-primary-action, .business-submit),
body:has(.app-shell) .language-switch select,
body.merchant-body :is(button, a, select, input, textarea),
body.consumer-body :is(button, a, select, input, textarea) {
  min-height: var(--kindred-touch);
}

body:has(.business-header) .business-header,
body:has(.app-shell) .legal-topbar {
  min-height: 68px;
}

body:has(.business-header) .business-language select,
body:has(.app-shell) .language-switch select {
  border-radius: var(--kindred-control-radius);
}

body:has(.business-header) .business-primary-action,
body:has(.business-header) .business-submit {
  border-radius: var(--kindred-control-radius);
  transition: transform var(--kindred-motion) ease, box-shadow var(--kindred-motion) ease;
}

body:has(.business-header) .business-primary-action:hover,
body:has(.business-header) .business-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(22, 9, 20, 0.2);
}

body:has(.business-header) .business-options article {
  min-height: 250px;
  border-radius: 0;
}

body:has(.panel.legal) .panel.legal {
  border-radius: var(--kindred-card-radius);
}

body:has(.panel.legal) .legal-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(18, 18, 20, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body:has(.panel.legal) .panel.legal p {
  max-width: 72ch;
  line-height: 1.7;
}

body:has(.credits-page) .credits-heading {
  margin-top: 30px;
}

body:has(.credits-page) .credits-grid {
  display: grid;
  gap: 28px;
}

body:has(.credits-page) .credit-card {
  border-radius: var(--kindred-card-radius);
}

body:has(.credits-page) .credits-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto;
  align-items: end;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid rgba(30, 21, 25, 0.14);
  border-radius: var(--kindred-card-radius);
  background: rgba(255, 255, 255, 0.42);
}

body:has(.credits-page) .credits-controls label {
  display: grid;
  gap: 6px;
  color: rgba(30, 21, 25, 0.62);
  font-size: 11px;
  font-weight: 850;
}

body:has(.credits-page) .credits-controls :is(input, select, button) {
  min-height: var(--kindred-touch);
  border: 1px solid rgba(30, 21, 25, 0.22);
  border-radius: var(--kindred-control-radius);
  background: rgba(255, 255, 255, 0.76);
  color: #1e1519;
  padding: 0 11px;
  font: inherit;
  font-size: 13px;
}

body:has(.credits-page) .credits-controls button {
  cursor: pointer;
}

body:has(.credits-page) .credits-summary {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(30, 21, 25, 0.58);
  font-size: 11px;
}

body:has(.credits-page) .credits-group {
  min-width: 0;
}

body:has(.credits-page) .credits-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(30, 21, 25, 0.16);
  padding-bottom: 9px;
}

body:has(.credits-page) .credits-group > header h2 {
  margin: 0;
  font-size: 19px;
}

body:has(.credits-page) .credits-group > header h2 small {
  color: rgba(30, 21, 25, 0.5);
  font-size: 11px;
  font-weight: 750;
}

body:has(.credits-page) .credits-group > header button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #9f164c;
  padding: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

body:has(.credits-page) .credits-group-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

body:has(.credits-page) .credits-group.is-collapsed .credits-group-items {
  display: none;
}

body.merchant-body .merchant-sidebar,
body.merchant-body .merchant-mobile-header {
  background: var(--kindred-ink-900);
}

body.merchant-body :is(.merchant-identity, .sidebar-note, .merchant-workspace, .summary-card, .form-section, .merchant-login-card),
body.consumer-body :is(.form-section, .purchase-column, .consumer-card) {
  border-radius: var(--kindred-card-radius);
}

body.merchant-body :is(.button, .icon-button),
body.consumer-body :is(.button, .dialog-close) {
  border-radius: var(--kindred-control-radius);
}

@media (prefers-reduced-motion: reduce) {
  :is(button, a, select, input, textarea) {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  body:has(.credits-page) .credits-controls {
    grid-template-columns: 1fr;
  }

  body:has(.credits-page) .credits-controls button {
    width: 100%;
  }
}

/* Legal pages keep the full policy text intact while making its structure scannable. */
body:has(.panel.legal) .panel.legal {
  width: min(1080px, 100%);
  padding: clamp(26px, 4vw, 46px);
}

body:has(.panel.legal) .legal-summary {
  margin: 26px 0 20px;
  border: 1px solid rgba(255, 95, 168, 0.34);
  border-radius: var(--kindred-card-radius);
  background: rgba(255, 47, 134, 0.08);
  padding: 18px;
}

body:has(.panel.legal) .legal-summary h2 {
  margin: 0 0 14px;
  color: var(--kindred-text-primary);
  font-size: 18px;
  letter-spacing: 0;
}

body:has(.panel.legal) .legal-summary ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:has(.panel.legal) .legal-summary li {
  min-width: 0;
  border-left: 2px solid var(--kindred-pink);
  padding-left: 12px;
}

body:has(.panel.legal) .legal-summary li strong {
  display: block;
  margin-bottom: 5px;
  color: var(--kindred-text-primary);
  font-size: 12px;
}

body:has(.panel.legal) .legal-summary li span {
  display: block;
  color: var(--kindred-text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

body:has(.panel.legal) .legal-toc:not(.legal-toc-desktop) {
  display: none;
}

body:has(.panel.legal) .legal-main-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

body:has(.panel.legal) .legal-toc-desktop {
  position: sticky;
  top: 88px;
  min-width: 0;
  border-right: 1px solid rgba(255, 95, 168, 0.24);
  padding-right: 18px;
}

body:has(.panel.legal) .legal-toc-desktop > p {
  margin: 0 0 10px;
  color: var(--kindred-text-primary);
  font-size: 12px;
  font-weight: 900;
}

body:has(.panel.legal) .legal-toc nav {
  display: grid;
  gap: 4px;
}

body:has(.panel.legal) .legal-toc a {
  display: block;
  min-height: 40px;
  border: 0;
  border-radius: var(--kindred-control-radius);
  color: var(--kindred-text-secondary);
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
  transform: none;
}

body:has(.panel.legal) .legal-toc a:hover,
body:has(.panel.legal) .legal-toc a[aria-current="location"] {
  background: rgba(255, 47, 134, 0.14);
  color: var(--kindred-text-primary);
  transform: none;
}

body:has(.panel.legal) .legal-content {
  min-width: 0;
}

body:has(.panel.legal) .legal-section {
  scroll-margin-top: 100px;
  border-top: 1px solid rgba(255, 95, 168, 0.22);
  padding: 24px 0 8px;
}

body:has(.panel.legal) .legal-section:first-child {
  border-top: 0;
  padding-top: 0;
}

body:has(.panel.legal) .legal-section h2 {
  margin: 0 0 12px;
  color: var(--kindred-text-primary);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

body:has(.panel.legal) .legal-section p {
  margin-bottom: 14px;
}

body:has(.panel.legal) .legal-toc summary {
  cursor: pointer;
  color: var(--kindred-text-primary);
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 767px) {
  body:has(.panel.legal) .legal-summary ul {
    grid-template-columns: 1fr;
  }

  body:has(.panel.legal) .legal-toc:not(.legal-toc-desktop) {
    display: block;
    margin: 0 0 22px;
    border: 1px solid rgba(255, 95, 168, 0.28);
    border-radius: var(--kindred-card-radius);
    background: rgba(255, 255, 255, 0.035);
    padding: 0 14px 12px;
  }

  body:has(.panel.legal) .legal-toc:not(.legal-toc-desktop) summary {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  body:has(.panel.legal) .legal-toc:not(.legal-toc-desktop) nav {
    padding-bottom: 2px;
  }

  body:has(.panel.legal) .legal-toc-desktop {
    display: none;
  }

  body:has(.panel.legal) .legal-main-grid {
    display: block;
  }

  body:has(.panel.legal) .legal-section {
    padding-top: 20px;
  }

  body:has(.panel.legal) .legal-section h2 {
    font-size: 20px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .mobile-app-shell .mobile-map-chrome,
  .mobile-global-panel > section,
  body:has(.panel.legal) .legal-topbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--kindred-surface-900);
  }
}

@media (forced-colors: active) {
  :is(button, a, select, input, textarea):focus-visible {
    outline: 2px solid CanvasText;
  }

  body:has(.panel.legal) .legal-summary,
  body:has(.panel.legal) .legal-toc:not(.legal-toc-desktop) {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  body:has(.panel.legal) .legal-toc a[aria-current="location"] {
    background: Highlight;
    color: HighlightText;
  }
}

/* Home image-free city index.
   The desktop journal used generated city scenes as navigation thumbnails. The
   directory is evidence-led now: city names, counts, and map coordinates carry
   the hierarchy while the mobile shell keeps its own visual system. */
.home-shell.journal-home:not(.is-city-map) {
  --home-ink: #fff4f8;
  --home-muted: #bca6b1;
  --home-dim: #806b76;
  --home-bg: #08090b;
  --home-surface: #111217;
  --home-surface-raised: #17191f;
  --home-line: rgba(255, 220, 232, 0.16);
  --home-line-strong: rgba(255, 47, 134, 0.62);
  --home-pink: #ff2f86;
  --home-pink-soft: #ffd0df;
  width: min(1440px, calc(100% - 16px)) !important;
  border-color: var(--home-line) !important;
  background: var(--home-bg) !important;
  color: var(--home-ink) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34) !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-hero {
  min-height: 520px !important;
  grid-template-columns: minmax(270px, 0.34fr) minmax(0, 0.66fr) !important;
  gap: 18px !important;
  padding: 28px 42px 52px !important;
  background: var(--home-bg) !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-hero-copy {
  min-height: 420px;
  align-content: center;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: var(--home-surface);
  padding: 38px 34px !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-hero h1 {
  color: var(--home-ink) !important;
  font-size: clamp(54px, 5vw, 74px) !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}

.home-shell.journal-home:not(.is-city-map) .journal-hero h1 span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

#top.home-shell.journal-home:not(.is-city-map) :lang(zh) .journal-hero h1,
:lang(zh) #top.home-shell.journal-home:not(.is-city-map) .journal-hero h1 {
  font-size: clamp(48px, 4.2vw, 64px) !important;
  letter-spacing: -0.045em !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-hero h1 .journal-pink {
  color: var(--home-pink) !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-hero-intro {
  color: var(--home-muted) !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-sticker-stage {
  position: relative !important;
  display: grid !important;
  min-height: 420px !important;
  height: auto !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-template-rows: auto !important;
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px !important;
  align-content: stretch;
  overflow: visible !important;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: var(--home-surface);
  isolation: isolate;
  padding: 22px !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-paper-map,
.home-shell.journal-home:not(.is-city-map) .journal-community-stamp,
.home-shell.journal-home:not(.is-city-map) .journal-hero-heart,
.home-shell.journal-home:not(.is-city-map) .journal-tape,
.home-shell.journal-home:not(.is-city-map) .journal-sticker-photo,
.home-shell.journal-home:not(.is-city-map) .featured-stage-image,
.home-shell.journal-home:not(.is-city-map) .city-directory-thumbnail {
  display: none !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-index-header {
  position: static !important;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  color: var(--home-muted) !important;
  font: 800 11px/1.1 var(--journal-body) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-shell.journal-home:not(.is-city-map) .journal-index-header i {
  color: var(--home-pink);
  font-style: normal;
}

.home-shell.journal-home:not(.is-city-map) .journal-sticker {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: grid !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 170px !important;
  grid-column: auto !important;
  grid-row: auto !important;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "index country arrow"
    "label label arrow"
    "meta meta arrow";
  align-items: start;
  gap: 9px 7px;
  margin: 0 !important;
  padding: 14px !important;
  overflow: hidden !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 8px !important;
  background: var(--home-surface-raised) !important;
  box-shadow: none !important;
  color: var(--home-ink) !important;
  transform: none !important;
  animation: none !important;
  text-align: left !important;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-sticker:hover,
.home-shell.journal-home:not(.is-city-map) .journal-sticker:focus-visible,
.home-shell.journal-home:not(.is-city-map) .journal-sticker[data-sticker-state="active"] {
  z-index: 3 !important;
  border-color: var(--home-line-strong) !important;
  background: #21151d !important;
  box-shadow: inset 3px 0 0 var(--home-pink) !important;
  transform: translateY(-3px) !important;
}

/* immersive-atlas.css owns an older six-cell collage with ID-qualified rules.
   Reset those placements at the same specificity so the text index remains a
   regular, predictable grid after the photo layer is removed. */
#top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-tokyo,
#top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-seoul,
#top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-taipei,
#top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-bangkok,
#top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-hong-kong {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 170px !important;
  aspect-ratio: auto !important;
}

@media (min-width: 1100px) and (min-height: 501px) {
  #top.home-shell.journal-home:not(.is-city-map) .journal-hero {
    min-height: 440px !important;
    grid-template-columns: minmax(270px, 0.34fr) minmax(0, 0.66fr) !important;
    gap: 18px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-hero-copy,
  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker-stage {
    min-height: 440px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-hero-copy {
    padding: clamp(34px, 4vw, 56px) !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker-stage {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto auto !important;
    grid-auto-rows: auto !important;
    align-content: space-between !important;
    padding: 22px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-tokyo,
  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-seoul,
  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-taipei,
  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-bangkok,
  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker.is-hong-kong {
    min-height: 300px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-city-explorer {
    width: min(1440px, calc(100% - 56px)) !important;
    margin: 36px auto 0 !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .country-city-directory {
    min-height: 520px !important;
    grid-template-columns: minmax(190px, 0.24fr) minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .country-directory-list {
    height: 440px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .featured-city-stage {
    min-height: 300px !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(230px, 0.92fr) !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .city-directory-track {
    height: 210px !important;
  }
}

.home-shell.journal-home:not(.is-city-map) .journal-sticker-index {
  grid-area: index;
  color: var(--home-pink);
  font: 900 11px/1 var(--journal-body);
  letter-spacing: 0.06em;
}

.home-shell.journal-home:not(.is-city-map) .journal-sticker-country {
  grid-area: country;
  min-width: 0;
  overflow: hidden;
  color: var(--home-dim);
  font: 800 9px/1.1 var(--journal-body);
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-shell.journal-home:not(.is-city-map) .journal-sticker-label,
.home-shell.journal-home:not(.is-city-map) .journal-sticker-label.is-pink {
  position: static !important;
  grid-area: label;
  min-width: 0 !important;
  align-self: end;
  padding: 0 !important;
  background: transparent !important;
  color: var(--home-ink) !important;
  font: 500 clamp(20px, 2vw, 30px)/0.95 var(--journal-display) !important;
  letter-spacing: 0.02em !important;
  text-align: left !important;
  text-transform: uppercase;
  transform: none !important;
}

#top.home-shell.journal-home:not(.is-city-map) .journal-sticker-label,
#top.home-shell.journal-home:not(.is-city-map) .journal-sticker-label.is-pink {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  grid-area: label !important;
  align-self: end !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--home-ink) !important;
  font: 500 clamp(20px, 2vw, 30px)/0.95 var(--journal-display) !important;
  letter-spacing: 0.02em !important;
  text-align: left !important;
  text-transform: uppercase !important;
  transform: none !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-sticker-meta {
  grid-area: meta;
  min-width: 0;
  overflow: hidden;
  color: var(--home-muted);
  font: 700 9px/1.2 var(--journal-body);
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-shell.journal-home:not(.is-city-map) .journal-sticker-arrow {
  grid-area: arrow;
  align-self: end;
  justify-self: end;
  color: var(--home-pink);
  font: 500 20px/1 var(--journal-body);
}

.home-shell.journal-home:not(.is-city-map) .journal-sticker-feedback {
  position: static !important;
  grid-column: 1 / -1;
  grid-row: auto !important;
  width: auto !important;
  margin: 0 !important;
  color: var(--home-dim) !important;
  font: 700 9px/1.3 var(--journal-body) !important;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
  transform: none !important;
}

.home-shell.journal-home:not(.is-city-map) .journal-city-explorer {
  margin-inline: 28px !important;
  border-top: 1px solid var(--home-line) !important;
  background: var(--home-bg) !important;
  color: var(--home-ink) !important;
}

.home-shell.journal-home:not(.is-city-map) .country-city-directory {
  grid-template-columns: minmax(190px, 0.24fr) minmax(0, 1fr) !important;
  gap: 28px !important;
}

.home-shell.journal-home:not(.is-city-map) .country-directory-panel,
.home-shell.journal-home:not(.is-city-map) .city-directory-panel {
  border: 1px solid var(--home-line) !important;
  border-radius: 10px !important;
  background: var(--home-surface) !important;
}

.home-shell.journal-home:not(.is-city-map) .country-directory-panel {
  overflow: hidden !important;
}

.home-shell.journal-home:not(.is-city-map) .country-directory-item {
  border-color: var(--home-line) !important;
  background: transparent !important;
  color: var(--home-muted) !important;
}

.home-shell.journal-home:not(.is-city-map) .country-directory-item:hover,
.home-shell.journal-home:not(.is-city-map) .country-directory-item:focus-visible,
.home-shell.journal-home:not(.is-city-map) .country-directory-item.is-active {
  border-color: var(--home-line-strong) !important;
  background: rgba(255, 47, 134, 0.12) !important;
  color: var(--home-ink) !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-city-stage {
  height: auto !important;
  min-height: 260px !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(230px, 0.92fr) !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 9px !important;
  background: #101116 !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-copy {
  min-width: 0;
  padding: 26px 28px 24px !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-kicker {
  color: var(--home-pink-soft) !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-number {
  display: block !important;
  color: var(--home-pink) !important;
  font-size: 50px !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-place strong {
  color: var(--home-ink) !important;
  font-size: clamp(30px, 3.1vw, 47px) !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-place em,
.home-shell.journal-home:not(.is-city-map) .featured-stage-place small,
.home-shell.journal-home:not(.is-city-map) .featured-stage-tags {
  color: var(--home-muted) !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-metric {
  position: static !important;
  display: flex !important;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-metric strong {
  color: var(--home-pink) !important;
  font-size: 30px !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-metric span {
  color: var(--home-muted) !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-action {
  margin-top: auto !important;
  border: 1px solid var(--home-pink) !important;
  border-radius: 6px !important;
  background: var(--home-pink) !important;
  color: #170a11 !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-evidence {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
  border-left: 1px solid var(--home-line);
  background: #0c0d11;
  padding: 26px 24px 22px;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-signal {
  display: grid;
  gap: 7px;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-signal p,
.home-shell.journal-home:not(.is-city-map) .featured-stage-signal span {
  margin: 0;
  color: var(--home-dim);
  font: 800 9px/1.2 var(--journal-body);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-signal strong {
  overflow-wrap: anywhere;
  color: var(--home-ink);
  font: 500 25px/1 var(--journal-display);
  text-transform: uppercase;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-facts > div {
  display: grid;
  grid-template-columns: minmax(70px, 0.5fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--home-line);
  padding-top: 10px;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-facts dt,
.home-shell.journal-home:not(.is-city-map) .featured-stage-facts dd {
  margin: 0;
  font: 700 10px/1.25 var(--journal-body);
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-facts dt {
  color: var(--home-dim);
  text-transform: uppercase;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-facts dd {
  overflow-wrap: anywhere;
  color: var(--home-ink);
  text-align: right;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-evidence-note {
  margin: 0;
  color: var(--home-dim);
  font: 700 9px/1.4 var(--journal-body);
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-categories {
  display: block !important;
  border-top: 1px solid var(--home-line);
  padding-top: 12px;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-categories > p {
  display: block !important;
  margin: 0 0 8px;
  color: var(--home-dim);
  font: 800 9px/1.2 var(--journal-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-shell.journal-home:not(.is-city-map) #featuredStageCategories {
  display: flex !important;
  max-width: none !important;
  gap: 7px;
  flex-wrap: wrap;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-category {
  min-width: 84px;
  min-height: 40px;
  border: 1px solid var(--home-line) !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: var(--home-muted) !important;
}

.home-shell.journal-home:not(.is-city-map) .featured-stage-category:hover,
.home-shell.journal-home:not(.is-city-map) .featured-stage-category:focus-visible {
  border-color: var(--home-line-strong) !important;
  background: rgba(255, 47, 134, 0.1) !important;
  color: var(--home-ink) !important;
}

.home-shell.journal-home:not(.is-city-map) .city-directory-track {
  max-height: 312px !important;
  overflow: auto !important;
  scrollbar-color: var(--home-pink) transparent;
}

.home-shell.journal-home:not(.is-city-map) .city-directory-card {
  grid-template-columns: 42px minmax(0, 1fr) 32px !important;
  height: 56px !important;
  min-height: 56px !important;
  border-bottom: 1px solid var(--home-line) !important;
  color: var(--home-ink) !important;
}

.home-shell.journal-home:not(.is-city-map) .city-directory-card:hover,
.home-shell.journal-home:not(.is-city-map) .city-directory-card:focus-visible {
  background: rgba(255, 47, 134, 0.08) !important;
}

.home-shell.journal-home:not(.is-city-map) .city-directory-index {
  color: var(--home-pink) !important;
  font: 900 10px/1 var(--journal-body);
}

.home-shell.journal-home:not(.is-city-map) .city-directory-rule {
  display: none !important;
}

.home-shell.journal-home:not(.is-city-map) .city-directory-copy {
  grid-template-columns: minmax(130px, 1fr) minmax(70px, auto) minmax(110px, 0.8fr) !important;
  gap: 14px !important;
}

.home-shell.journal-home:not(.is-city-map) .city-directory-copy strong {
  color: var(--home-ink) !important;
}

.home-shell.journal-home:not(.is-city-map) .city-directory-copy small,
.home-shell.journal-home:not(.is-city-map) .city-directory-copy em {
  color: var(--home-muted) !important;
}

.home-shell.journal-home:not(.is-city-map) .city-directory-arrow {
  color: var(--home-pink) !important;
}

@media (min-width: 768px) and (max-width: 1099px) {
  #top.home-shell.journal-home:not(.is-city-map) .journal-hero {
    width: min(100% - 32px, 1060px) !important;
    min-height: 440px !important;
    grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr) !important;
    gap: 16px !important;
    margin-top: 18px !important;
    padding-inline: 24px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-hero-copy {
    min-height: 440px !important;
    padding: 28px 22px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-rows: minmax(148px, auto) !important;
    min-height: 440px !important;
    align-content: start !important;
    padding: 18px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker {
    min-height: 148px !important;
  }

  .home-shell.journal-home:not(.is-city-map) .journal-sticker-label {
    font-size: clamp(19px, 2.6vw, 27px) !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-city-explorer {
    width: min(100% - 32px, 1060px) !important;
    margin: 34px auto 0 !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .country-city-directory {
    min-height: 520px !important;
    grid-template-columns: minmax(180px, 0.25fr) minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .featured-city-stage {
    min-height: 300px !important;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.8fr) !important;
  }

  .home-shell.journal-home:not(.is-city-map) .featured-stage-copy {
    padding-inline: 20px !important;
  }

  .home-shell.journal-home:not(.is-city-map) .featured-stage-evidence {
    padding-inline: 18px;
  }

  .home-shell.journal-home:not(.is-city-map) .city-directory-copy {
    grid-template-columns: minmax(110px, 1fr) minmax(64px, auto) !important;
  }

  .home-shell.journal-home:not(.is-city-map) .city-directory-copy em {
    display: none !important;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  :lang(zh) #top.home-shell.journal-home:not(.is-city-map) .journal-hero h1 {
    font-size: clamp(36px, 4vw, 42px) !important;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  #top.home-shell.journal-home:not(.is-city-map) .journal-hero {
    grid-template-columns: 1fr !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-hero-copy {
    min-height: 320px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-height: 560px !important;
  }

  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker-stage .journal-index-header,
  #top.home-shell.journal-home:not(.is-city-map) .journal-sticker-stage .journal-sticker-feedback {
    grid-column: 1 / -1;
  }

  #top.home-shell.journal-home:not(.is-city-map) .country-city-directory {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell.journal-home:not(.is-city-map) .journal-sticker:hover,
  .home-shell.journal-home:not(.is-city-map) .journal-sticker:focus-visible,
  .home-shell.journal-home:not(.is-city-map) .journal-sticker[data-sticker-state="active"] {
    transform: none !important;
  }
}
