:root {
  color-scheme: light;
  --ink: #20211f;
  --muted: #646862;
  --line: #dedbd2;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --soft: #f1eee5;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --sun: #f4b942;
  --shadow: 0 18px 60px rgba(32, 33, 31, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 5vw;
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--sun);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: -0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.94rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-dark);
}

.home-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 4rem;
  align-items: center;
  padding: 5rem 5vw;
  border-bottom: 1px solid var(--line);
}

.hero-copy,
.listing,
.article-shell {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  margin: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy p:not(.eyebrow),
.dek {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.button:hover {
  background: var(--accent-dark);
}

.text-link {
  font-weight: 800;
}

.arrival-card,
.cta-panel,
.article-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.arrival-card {
  padding: 1.4rem;
}

.arrival-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.arrival-card li + li {
  margin-top: 0.7rem;
}

.section,
.listing,
.article-shell {
  padding: 4.5rem 5vw;
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.8rem;
}

.section-heading p,
.listing > .dek {
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card,
.guide-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.guide-card:hover,
.guide-row:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: var(--shadow);
}

.guide-card {
  min-height: 260px;
  padding: 1.1rem;
}

.guide-card span,
.guide-row span {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-card p,
.guide-row p {
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.tool-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  min-height: 100%;
  padding: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-card-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.tool-card-header p:not(.eyebrow) {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.tool-form {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.tool-form label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  color: #343633;
  line-height: 1.35;
}

.tool-form label:has(select) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  font-weight: 800;
}

.tool-form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.18rem;
  accent-color: var(--accent);
}

.tool-form select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.tool-result {
  align-self: end;
  min-height: 132px;
  padding: 0.9rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-result strong,
.tool-result p {
  display: block;
  margin: 0;
}

.tool-result strong {
  line-height: 1.25;
}

.tool-result p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.tool-result.is-good {
  background: #eef7f5;
  border-color: rgba(15, 118, 110, 0.35);
}

.tool-result.is-warn {
  background: #fff7df;
  border-color: rgba(244, 185, 66, 0.55);
}

.tool-result.is-bad {
  background: #fff0ed;
  border-color: rgba(212, 121, 74, 0.45);
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  padding-top: 0.2rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.tool-hub-list .guide-row h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin: 0;
}

.single-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 0.32fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}

.single-tool-grid .tool-card {
  min-height: 0;
}

.tool-detail-note {
  position: sticky;
  top: 96px;
}

.related-tools {
  padding-top: 0;
}

.listing {
  width: min(100%, 1080px);
}

.listing.narrow {
  width: min(100%, 820px);
}

.guide-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.guide-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
}

.article-hero {
  max-width: 860px;
  padding-bottom: 2rem;
}

.local-shops-shell {
  max-width: 1120px;
  padding: 4.5rem 5vw;
  margin: 0 auto;
}

.local-shops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 2rem;
  align-items: end;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.local-shops-hero h1 {
  max-width: 900px;
}

.local-life-note {
  padding: 1rem;
  border-left: 4px solid var(--sun);
  background: var(--panel);
}

.local-life-note p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.shop-directory {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.shop-filter {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.shop-filter:hover,
.shop-filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.local-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.local-shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.local-shop-card[hidden] {
  display: none;
}

.shop-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.local-shop-card h2 {
  margin: 1rem 0 0;
  font-size: 1.45rem;
}

.local-shop-card > p {
  color: var(--muted);
}

.local-shop-card .shop-chinese {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-weight: 800;
}

.local-shop-card dl {
  display: grid;
  gap: 0.7rem;
  margin: auto 0 1rem;
  padding-top: 1rem;
}

.local-shop-card dl div {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.local-shop-card dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.local-shop-card dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.local-shop-card > a {
  font-weight: 800;
}

.shop-count {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.local-shops-content {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 2.5rem;
  align-items: start;
  padding-top: 3.5rem;
}

.verified {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.3rem;
  margin: 0 0 2.4rem;
}

.cta-panel h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin: 0;
}

.cta-panel p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 2.5rem;
  align-items: start;
}

.article-note {
  padding: 1rem;
  position: sticky;
  top: 96px;
  color: var(--muted);
  font-size: 0.93rem;
}

.article-note p {
  margin: 0;
}

.article-note p + p {
  margin-top: 0.8rem;
}

.museum-map-section {
  margin: 2rem 0 3rem;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.museum-map-copy {
  max-width: 840px;
  margin-bottom: 1rem;
}

.museum-map-copy h2 {
  margin: 0 0 0.6rem;
}

.museum-map-copy p:not(.eyebrow),
.map-note {
  color: var(--muted);
}

.museum-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 1rem;
  align-items: stretch;
}

.museum-map {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.08), transparent 38%),
    linear-gradient(20deg, transparent 0 58%, rgba(244, 185, 66, 0.16) 58% 61%, transparent 61%),
    var(--soft);
}

.map-river {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 52% 35%, transparent 0 19%, rgba(15, 118, 110, 0.16) 19.5% 21.5%, transparent 22%),
    linear-gradient(105deg, transparent 0 44%, rgba(15, 118, 110, 0.16) 44% 47%, transparent 47% 100%);
  opacity: 0.85;
  pointer-events: none;
}

.map-label {
  position: absolute;
  color: rgba(32, 33, 31, 0.52);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.map-label-west {
  left: 1rem;
  top: 1rem;
}

.map-label-east {
  right: 1rem;
  top: 1rem;
}

.map-label-south {
  right: 1rem;
  bottom: 1rem;
}

.museum-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.26);
  cursor: pointer;
  z-index: 2;
}

.museum-pin:hover,
.museum-pin.is-active {
  background: var(--sun);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.12);
}

.museum-map-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: min(320px, calc(100% - 2rem));
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 3;
}

.museum-map-card h3,
.museum-map-card p {
  margin: 0;
}

.museum-map-card h3 {
  font-size: 1.05rem;
}

.museum-map-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.35rem;
}

.museum-map-card a {
  display: inline-flex;
  margin-top: 0.7rem;
  font-weight: 800;
}

.museum-map-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-height: 460px;
  overflow: auto;
}

.museum-map-list li {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.museum-map-list li.is-active {
  border-color: rgba(15, 118, 110, 0.45);
  background: #eef7f5;
}

.museum-map-list button,
.museum-map-list span {
  display: block;
}

.museum-map-list button {
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.28;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.museum-map-list span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.map-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.prose {
  min-width: 0;
}

.prose.standalone {
  max-width: 760px;
}

.prose h1 {
  display: none;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 0.8rem;
}

.prose h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

.prose p,
.prose li {
  color: #343633;
  overflow-wrap: anywhere;
}

.prose blockquote {
  border-left: 4px solid var(--sun);
  margin-left: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--soft);
}

.prose code {
  display: inline-block;
  max-width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.28rem;
  font-size: 0.92em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 5vw;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  max-width: 820px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.footer-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-dark);
}

@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .single-tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-detail-note {
    position: static;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .local-shops-hero,
  .local-shops-content {
    grid-template-columns: 1fr;
  }

  .local-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-note {
    position: static;
  }

  .museum-map-layout {
    grid-template-columns: 1fr;
  }

  .museum-map-list {
    max-height: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 5vw;
    gap: 0.75rem;
    position: static;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .home-hero,
  .section,
  .listing,
  .article-shell,
  .local-shops-shell {
    padding: 3rem 5vw;
  }

  h1 {
    font-size: clamp(2.15rem, 13vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .hero-copy p:not(.eyebrow),
  .dek {
    font-size: 1.04rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .local-shop-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
  }

  .guide-row {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .museum-map-section {
    padding: 1rem;
  }

  .museum-map {
    min-height: 360px;
  }
}

@media (max-width: 430px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .home-hero,
  .section,
  .listing,
  .article-shell,
  .local-shops-shell {
    padding-left: 4.25vw;
    padding-right: 4.25vw;
  }

  .arrival-card,
  .cta-panel,
  .article-note,
  .guide-card,
  .guide-row {
    border-radius: 7px;
  }

  .article-hero {
    padding-bottom: 1.5rem;
  }

  .cta-panel {
    margin-bottom: 1.8rem;
    padding: 1rem;
  }

  .prose h2 {
    margin-top: 2.4rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25rem;
  }

  .prose th,
  .prose td {
    padding: 0.65rem;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 15.5px;
  }

  .site-header {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .nav {
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(1.95rem, 12vw, 2.7rem);
  }

  .button {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}
