/* Chongqing Guide — city-scale photographs, clear routes, quiet editorial detail. */

:root {
  color-scheme: light;
  --ink: #151a1c;
  --muted: #596367;
  --accent: #ed4b2b;
  --accent-dark: #b82e14;
  --paper: #f2f6f6;
  --line: #d8e0e1;
  --white: #fff;
  --max: 1296px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --panel-gutter: clamp(1rem, 3vw, 2rem);
  --header-height: 128px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1.5rem); }
body { margin: 0; color: var(--ink); background: var(--white); font: 400 1.125rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, summary, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
button:disabled { cursor: default; }
::selection { color: var(--ink); background: #f8c4b7; }
svg { vertical-align: middle; }
.external-link-icon { display: inline-block; width: .78em; height: .78em; margin-inline-start: .22em; vertical-align: -.05em; }
main { min-height: 55vh; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { margin-bottom: 1.25rem; }
ul, ol { padding-left: 1.35em; }
strong { font-weight: 700; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: 1rem; z-index: 100; padding: .75rem 1.2rem; color: var(--white); background: var(--ink); transform: translateY(-180%); font-size: 1rem; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The header stays compact so the photograph can carry the opening. */
.site-header { position: sticky; top: 0; z-index: 50; isolation: isolate; transition: transform .18s ease; }
.site-header::before { content: ""; position: absolute; z-index: -1; inset: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); transition: bottom .18s ease, background-color .18s ease; }
.site-header.header-compact { transform: translateY(-100%); }
.site-header.header-compact::before { bottom: calc(-1 * var(--compact-header-height)); background: rgba(255, 255, 255, .78); }
.header-inner > .brand { position: relative; z-index: 1; transform-origin: top left; transition: transform .18s ease; }
.header-inner > .brand .brand-text { font-size: 20px; }
.site-header.header-compact .header-inner > .brand { transform: translateY(var(--compact-brand-shift)) scale(.8); }
.header-search-row, .header-controls, .site-header > .header-nav { transition: opacity .18s ease; }
.site-header.header-compact .header-search-row, .site-header.header-compact .header-controls, .site-header.header-compact > .header-nav { opacity: 0; }

.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 74px; width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .75rem; color: var(--accent-dark); text-decoration: none; }
.brand:hover { color: var(--accent-dark); }
.brand-domain { color: var(--ink); }
.brand-text { white-space: nowrap; font-size: 1.1rem; font-weight: 750; line-height: 1.1; letter-spacing: -.025em; }
.header-search-row { display: flex; flex: 1 1 20rem; min-width: 0; max-width: 520px; margin: 0 auto; }
.header-search { position: relative; display: flex; flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; border: 1px solid var(--line); background: var(--white); }
.mobile-map-link { display: none; }
.header-search input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 44px; padding: .6rem .85rem; border: 0; border-radius: 0; color: var(--ink); background: transparent; font-size: 1rem; line-height: 1.4; appearance: none; }
.header-search input::placeholder { color: var(--muted); opacity: 1; }
.header-search input:focus-visible { outline-offset: -3px; }
.search-submit { display: grid; flex: 0 0 44px; place-items: center; min-width: 44px; min-height: 44px; padding: .5rem; border: 0; color: var(--white); background: var(--ink); }
.search-submit:hover { background: #36474f; }
.search-suggestions { position: absolute; z-index: 58; top: calc(100% + .4rem); left: -1px; right: -1px; max-height: min(27rem, calc(100svh - var(--header-height) - 1rem)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); background: var(--white); box-shadow: 0 15px 35px #101d201a; }
#site-search-results { padding: .25rem; }
#site-search-results > a { display: block; min-height: 44px; padding: .65rem .75rem; text-decoration: none; }
#site-search-results > a + a { border-top: 1px solid var(--line); }
#site-search-results > a:hover, #site-search-results > a[aria-selected="true"] { color: var(--ink); background: var(--paper); }
.search-suggestion-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ink); font-size: .9375rem; font-weight: 650; line-height: 1.4; }
.search-suggestion-section { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: .2rem; color: var(--accent-dark); font-size: .8125rem; line-height: 1.4; }
.search-suggestion-category { display: block; margin-top: .15rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.search-suggestions-empty { margin: 0; padding: .8rem 1rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.header-controls { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: .7rem; min-width: 0; max-width: 240px; }
.header-nav { position: relative; display: grid; grid-template-columns: auto auto repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.nav-link { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 50px; padding: .45rem .3rem; font-size: .875rem; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--accent-dark); }
.nav-map-link { color: var(--accent-dark); }
.map-link-icon { flex: 0 0 auto; }
.nav-topic { position: relative; min-width: 0; }
.nav-topic > .nav-link { height: 100%; }
.topic-name { min-width: 0; overflow-wrap: anywhere; }
.topic-chevron { flex: 0 0 auto; color: var(--muted); }
.topic-panel { position: absolute; z-index: 56; top: 100%; left: 0; display: none; width: min(22rem, calc(100vw - var(--gutter) * 2)); max-height: calc(100svh - var(--header-height) - 1rem); overflow-y: auto; padding: .75rem 1rem; border: 1px solid var(--line); color: var(--ink); background: var(--white); box-shadow: 0 15px 35px #101d201a; }
.nav-topic:nth-last-child(-n + 3) .topic-panel { right: 0; left: auto; }
.nav-topic:hover > .topic-panel, .nav-topic:focus-within > .topic-panel { display: block; }
.header-nav:has(> .nav-topic:hover) > .nav-topic:not(:hover) > .topic-panel { display: none; }
.topic-all { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding-block: .5rem .75rem; border-bottom: 1px solid var(--line); color: var(--accent-dark); font-size: .9375rem; font-weight: 650; line-height: 1.5; text-decoration: none; }
.topic-guides { display: grid; gap: 0; margin: .35rem 0 0; padding: 0; list-style: none; }
.topic-guides a { display: block; min-height: 44px; padding-block: .6rem; font-size: .875rem; line-height: 1.5; text-decoration: none; }
.topic-guides a:hover { color: var(--accent-dark); }
.topic-panel-grouped { width: min(36rem, calc(100vw - var(--gutter) * 2)); }
.topic-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.topic-group-title { margin: .85rem 0 .25rem; color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1.5; }
.lang-switch { position: relative; flex: 0 1 auto; min-width: 0; font-size: .875rem; }
.lang-switch > summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding-inline: .2rem; cursor: pointer; list-style: none; font-weight: 600; }
.lang-icon { flex: 0 0 20px; color: var(--muted); }
.lang-flag { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; line-height: 1; white-space: nowrap; }
.lang-flag-icon { display: block; flex: 0 0 auto; width: 16px; height: auto; }
.lang-current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-switch > summary::-webkit-details-marker, .menu-toggle::-webkit-details-marker { display: none; }
.lang-switch > summary::after { content: ""; flex: 0 0 .75rem; width: .75rem; height: .75rem; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.lang-list { position: absolute; top: calc(100% + .6rem); right: 0; z-index: 57; min-width: 190px; max-height: calc(100svh - var(--header-height) - 1rem); overflow-y: auto; margin: 0; padding: .45rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 30px #101d2014; list-style: none; }
.lang-list a { display: flex; align-items: center; gap: .55rem; padding: .7rem .8rem; font-size: .875rem; text-decoration: none; white-space: nowrap; }
.lang-list a:hover, .lang-list a[aria-current="page"] { background: var(--paper); color: var(--accent-dark); }
.mobile-nav { display: none; }
.menu-toggle { display: flex; align-items: center; justify-content: center; gap: .45rem; min-width: 44px; min-height: 44px; padding: .5rem; border: 1px solid var(--line); cursor: pointer; list-style: none; font-size: .875rem; font-weight: 600; }

/* Opening photograph. */
.hero { position: relative; overflow: hidden; min-height: min(790px, 88svh); color: var(--white); background: #080f15; isolation: isolate; }
.hero-picture { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; }
.hero-picture img, img.hero-picture { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(3, 9, 14, .84) 0%, rgba(3, 9, 14, .54) 50%, rgba(3, 9, 14, .16) 100%), linear-gradient(0deg, rgba(3, 9, 14, .8), transparent 42%); }
.hero-content { position: relative; width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; padding-top: clamp(5.5rem, 10vw, 9rem); padding-bottom: 2rem; }
.eyebrow, .kicker, .article-category { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.45rem; font-size: .75rem; line-height: 1.4; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before, .kicker::before { content: ""; flex: 0 0 auto; width: 26px; height: 2px; background: var(--accent); }
.eyebrow { color: #f5f7f7; }
.hero-title { max-width: 950px; margin-bottom: 1.75rem; font-size: clamp(3.65rem, 7.3vw, 7.6rem); font-weight: 730; line-height: 1.12; letter-spacing: normal; }
.hero-title em { font-family: var(--serif); font-weight: 400; letter-spacing: normal; }
.hero-intro { max-width: 33rem; margin-bottom: 2rem; color: #e8edef; font-size: 1.125rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; padding: .8rem 1.3rem; border: 1px solid transparent; font-size: .875rem; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; transition: background-color .18s, border-color .18s, color .18s; }
.button-primary { color: var(--white); background: var(--accent-dark); }
.button-primary:hover { color: var(--white); background: #94250f; }
.button-ghost { border-color: #ffffff75; color: var(--white); background: transparent; }
.button-ghost:hover { border-color: var(--white); color: var(--ink); background: var(--white); }
.hero-bottom { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; width: min(calc(100% - var(--gutter) * 2), var(--max)); margin: clamp(2.5rem, 6vw, 5rem) auto 0; padding-block: 1.3rem 1.75rem; border-top: 1px solid #ffffff45; }
.hero-note { max-width: 28rem; margin: 0; font-size: .875rem; color: #e0e6e8; line-height: 1.6; }
.hero-caption { max-width: 27rem; margin: 0; color: #cdd6db; font-size: .75rem; line-height: 1.5; text-align: right; }
.hero-caption a { color: inherit; }

/* Sections and the asymmetric city reading list. */
.section { padding-block: clamp(3.5rem, 6.2vw, 6rem); }
main > .section:nth-of-type(even) { background: var(--paper); }
main > .section.container:nth-of-type(even) { padding-inline: var(--panel-gutter); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 1.5rem 4rem; align-items: end; margin-bottom: 2.5rem; }
.section-head > .kicker { grid-column: 1 / -1; margin-bottom: -.4rem; }
.kicker { color: var(--muted); }
.section-title { margin: 0; font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 650; line-height: 1.25; letter-spacing: normal; }
.section-intro { max-width: 33rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.section-head > a { justify-self: end; font-size: .875rem; font-weight: 650; }
.home-map-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 3.5rem; }
.home-map-photo { min-width: 0; margin: 0; }
.home-map-photo img { width: 100%; aspect-ratio: 1.3; object-fit: cover; }
.home-map-copy { min-width: 0; }
.home-map-copy .section-title { margin-bottom: 1.4rem; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.home-map-copy > p:not(.kicker) { margin-bottom: 1.5rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; }
.home-map-types { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-top: 1.2rem; }
.home-map-types a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; }
.home-map-types a:hover { color: var(--accent-dark); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.6rem; }
.guide-card { position: relative; display: flex; min-width: 0; flex-direction: column; border-bottom: 1px solid var(--line); background: transparent; }
.card-image { display: block; overflow: hidden; aspect-ratio: 1.5; background: #d9e2e3; }
.card-image > picture { width: 100%; height: 100%; }
.card-image img, img.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.guide-card:hover .card-image img { transform: scale(1.035); }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.3rem 0 1.5rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .7rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.card-meta > :first-child { color: var(--accent-dark); font-weight: 650; }
.card-meta span + span::before { content: "·"; margin-right: .65rem; color: var(--muted); }
.card-title { margin: 0 0 .75rem; font-size: clamp(1.35rem, 1.9vw, 1.65rem); font-weight: 650; line-height: 1.3; letter-spacing: normal; }
.card-title a { display: block; text-decoration: none; }
.card-dek { margin: 0 0 1.2rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.card-link { display: inline-flex; align-items: center; gap: .65rem; margin-top: auto; font-size: .875rem; font-weight: 650; text-decoration: none; }
.card-link::after { content: "↗"; color: var(--accent); font-size: 1.1rem; }
.guide-card-photo { isolation: isolate; overflow: hidden; min-height: 280px; border: 0; background: #172021; color: #fff; }
.guide-card-photo .card-image { position: absolute; inset: 0; aspect-ratio: auto; }
.guide-card-photo .card-body { position: relative; justify-content: flex-end; width: 100%; padding: 4rem 1.25rem 1.25rem; background: linear-gradient(180deg, rgb(0 0 0 / 0) 33.33%, rgb(0 0 0 / .55) 66.67%, rgb(0 0 0 / .85) 100%); }
.guide-card-photo .card-meta { margin-bottom: .5rem; color: #fff; }
.guide-card-photo .card-meta > :first-child, .guide-card-photo .card-meta span + span::before { color: #fff; }
.guide-card-photo .card-title { margin-bottom: .5rem; font-size: 1.35rem; line-height: 1.35; letter-spacing: normal; }
.guide-card-photo .card-title a { color: #fff; }
.guide-card-photo .card-title a::after { position: absolute; inset: 0; content: ""; }
.guide-card-photo:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.guide-card-photo .card-dek { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 0; color: #fff; font-size: .9rem; line-height: 1.55; }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.start-grid > .guide-card:first-child { grid-row: span 2; }
.start-grid > .guide-card:first-child .card-title { max-width: 27rem; font-size: clamp(1.9rem, 2.6vw, 2.6rem); }
.start-grid > .guide-card:not(:first-child) { min-height: 240px; }

/* Numbered entry points give the city a clear structure. */
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 260px; padding: 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-number { margin-bottom: 2.5rem; color: var(--accent-dark); font-size: .875rem; font-weight: 650; line-height: 1; }
.category-name { margin-bottom: .65rem; font-size: 1.5rem; font-weight: 650; line-height: 1.3; letter-spacing: normal; }
.category-description { margin-bottom: 1.25rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.category-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: auto; font-size: .875rem; font-weight: 650; text-decoration: none; }
.category-link::after { content: "→"; color: var(--accent); }
.category-card:hover { background: #fff; }
.itinerary { padding: clamp(1.5rem, 3vw, 3rem); border: 1px solid var(--line); background: var(--paper); }
.itinerary .section-head { margin-bottom: 2rem; }
.day-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.day-card { min-width: 0; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.day-number { display: block; margin-bottom: 1.5rem; color: var(--accent-dark); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.day-title { margin-bottom: .7rem; font-size: 1.45rem; font-weight: 650; line-height: 1.3; letter-spacing: normal; }
.day-card p { margin-bottom: 1rem; color: var(--muted); font-size: 1rem; }
.day-card a { font-size: .875rem; font-weight: 650; }
.practical-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.practical-card { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); align-content: start; column-gap: .8rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.practical-number { grid-row: span 4; padding-top: .2rem; color: var(--accent-dark); font-size: .8125rem; font-weight: 650; }
.practical-card h3 { margin-bottom: .5rem; font-size: 1.25rem; font-weight: 650; line-height: 1.35; letter-spacing: normal; }
.practical-card p { margin-bottom: .75rem; color: var(--muted); font-size: 1rem; }
.practical-card a { font-size: .875rem; font-weight: 650; }

/* Guide index. */
.guide-index { padding-bottom: 5rem; }
.index-header { padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.index-header .kicker { margin-bottom: 1rem; }
.index-header h1 { max-width: 55rem; margin-bottom: 1.25rem; font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 650; line-height: 1.2; letter-spacing: normal; overflow-wrap: anywhere; }
.index-header p { max-width: 38rem; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 2.5rem; padding-block: 1.2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-chip { min-height: 44px; padding: .6rem 1rem; border: 1px solid transparent; color: var(--muted); background: transparent; font-size: .875rem; font-weight: 600; line-height: 1.4; }
.filter-chip:hover { color: var(--ink); background: var(--paper); }
.filter-chip.is-active, .filter-chip[aria-pressed="true"] { color: var(--white); background: var(--ink); }
.search-wrap { position: relative; flex: 1 1 15rem; max-width: 26rem; margin-left: auto; }
.search-label { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
.search-input { width: 100%; min-height: 44px; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--white); font-size: 1rem; line-height: 1.4; appearance: none; }
.search-input::placeholder { color: #667378; opacity: 1; }
.no-results { padding: 3rem 1.5rem; border: 1px solid var(--line); color: var(--muted); background: var(--paper); text-align: center; }
.card-search-section { display: inline-flex; align-items: center; min-height: 44px; margin-block: -.25rem .5rem; color: var(--accent-dark); font-size: .875rem; line-height: 1.5; text-underline-offset: .2em; }

/* Article opening and reading column. */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; padding-block: 1.5rem; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden="true"] { color: #829094; }
.article-head { padding-inline: var(--panel-gutter); border-bottom: 1px solid var(--line); background: var(--paper); }
.article-header-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 3.5rem; padding-block: 1.5rem 3rem; }
.article-header-copy { min-width: 0; }
.article-category { margin-bottom: 1.1rem; color: var(--accent-dark); }
.article-title { margin-bottom: 1.5rem; font-size: clamp(2.45rem, 4.3vw, 4.3rem); font-weight: 650; line-height: 1.2; letter-spacing: normal; }
.article-dek { max-width: 35rem; margin-bottom: 1.8rem; color: #4e5c61; font-size: 1.125rem; line-height: 1.75; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.article-meta span + span::before { content: "·"; margin-right: 1rem; }
.article-cover { min-width: 0; margin: 0; }
.article-cover img { width: 100%; aspect-ratio: 1.12; object-fit: cover; }
.article-cover .article-cover-original img { height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
.image-credit { display: block; margin-top: .5rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.image-credit a { color: inherit; }
.quick-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding-block: 1.2rem 1.35rem; border-top: 1px solid var(--line); }
.quick-facts:has(> .fact:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.fact-label { display: block; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; font-weight: 600; }
.fact-value { display: block; min-width: 0; margin: 0; font-size: 1rem; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.article-layout { display: grid; grid-template-columns: minmax(200px, 220px) minmax(0, 780px); justify-content: start; gap: 3rem; padding-block: 3.5rem 5rem; }
.article-layout > .article-body { grid-column: 2; grid-row: 1; }
.article-layout > .article-toc { grid-column: 1; grid-row: 1; }
.article-body, .prose { min-width: 0; font-size: 1.125rem; line-height: 1.8; overflow-wrap: break-word; }
.article-body > :first-child, .prose > :first-child { margin-top: 0; }
.article-photo { min-width: 0; margin: 2rem 0; break-inside: avoid; }
.article-photo picture, .article-photo img { display: block; width: 100%; height: auto; }
.article-photo figcaption { margin-top: .8rem; line-height: 1.5; }
.article-photo-caption { display: block; font-size: .95rem; }
.article-photo .photo-credit { display: block; margin-top: .4rem; color: var(--muted); font-size: .75rem; }
.article-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.article-photo-grid .article-photo { margin: 0; }
@media (max-width: 680px) { .article-photo-grid { grid-template-columns: minmax(0, 1fr); } }
.article-body h2, .prose h2 { margin: 3rem 0 1.2rem; padding-top: .25rem; font-size: clamp(1.75rem, 2.7vw, 2.35rem); font-weight: 650; line-height: 1.3; letter-spacing: normal; }
.article-body h3, .prose h3 { margin: 2rem 0 .9rem; font-size: 1.35rem; font-weight: 650; line-height: 1.35; letter-spacing: normal; }
.article-body h4, .prose h4 { margin: 1.75rem 0 .7rem; font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.article-body h2 a, .article-body h3 a, .prose h2 a, .prose h3 a { text-decoration: none; }
.article-body p, .prose p { margin-bottom: 1.5rem; }
.article-body a, .prose a { color: var(--accent-dark); }
.article-body ul, .article-body ol, .prose ul, .prose ol { margin-block: 1rem 1.75rem; }
.article-body li, .prose li { margin-bottom: .65rem; padding-left: .15rem; }
.article-body li > ul, .article-body li > ol, .prose li > ul, .prose li > ol { margin-block: .65rem; }
.article-body li::marker, .prose li::marker { color: var(--accent-dark); }
.article-body blockquote, .prose blockquote { margin: 2rem 0; padding: 1.3rem 1.6rem; border-left: 3px solid var(--accent); background: var(--paper); color: #374348; }
.article-body blockquote > :last-child, .prose blockquote > :last-child { margin-bottom: 0; }
.article-body hr, .prose hr { height: 1px; margin-block: 3rem; border: 0; background: var(--line); }
.article-body figure, .prose figure { margin: 2rem 0; }
.article-body figure img, .prose figure img { width: 100%; }
.article-body figcaption, .prose figcaption { margin-top: .6rem; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
@media (min-width: 821px) {
 .article-body > .article-photo { max-width: 560px; margin-inline: auto; }
 .article-body .article-photo img { width: 100%; max-height: 400px; object-fit: contain; }
}
.table-wrap { overflow-x: auto; margin-block: 1.5rem 2rem; overscroll-behavior-x: contain; }
.article-body table, .prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin-block: 1.5rem 2rem; border-collapse: collapse; font-size: 1rem; line-height: 1.6; }
.table-wrap table { display: table; margin: 0; }
.article-body th, .prose th { color: var(--ink); background: var(--paper); font-weight: 650; text-align: left; }
.article-body th, .article-body td, .prose th, .prose td { min-width: 120px; padding: .85rem 1rem; border: 1px solid var(--line); vertical-align: top; }
.article-body pre, .prose pre { overflow-x: auto; padding: 1.2rem; background: var(--paper); font-size: 1rem; }
.article-body code, .prose code { font-size: .9em; }
.article-body dt, .prose dt { margin-top: 1rem; font-weight: 650; }
.article-body dd, .prose dd { margin: .3rem 0 1rem; }
.article-lead { padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); font-size: 1.25rem; line-height: 1.8; }
.article-toc { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; padding-top: 1rem; border-top: 2px solid var(--ink); }
.toc-title { margin-bottom: 1rem; font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.toc-toggle { display: none; }
.toc-links { display: grid; gap: .2rem; max-height: calc(100svh - var(--header-height) - 7rem); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; margin: 0; padding: .35rem .5rem .35rem .35rem; list-style: none; }
.toc-links a { display: block; padding: .45rem .65rem; border-radius: .3rem; color: var(--muted); font-size: .875rem; line-height: 1.55; text-decoration: none; transition: color 160ms, background-color 160ms; }
.toc-links a:hover { color: var(--accent-dark); background: var(--paper); }
.toc-links a[aria-current="location"] { color: var(--accent-dark); background: #fff0e9; font-weight: 650; }
.article-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.article-tools button, .article-tools a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .8rem; border: 1px solid var(--line); color: var(--ink); background: var(--white); font-size: .875rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.article-tools button:hover, .article-tools a:hover { background: var(--paper); }
.reading-progress { position: fixed; z-index: 60; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); pointer-events: none; }

/* Useful local names can be read, copied, and shown to a driver. */
.place-cards { display: grid; gap: .3rem; margin-block: 1rem; }
.place-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem .75rem; min-width: 0; padding: .75rem; border: 1px solid var(--line); background: var(--paper); }
.place-labels { display: contents; }
.place-name { grid-column: 1 / -1; font-size: .9375rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.place-chinese { min-width: 0; font-size: 1.1875rem; line-height: 1.5; overflow-wrap: anywhere; }
.place-chinese .pronunciation-term { display: flex; gap: .5rem; white-space: normal; }
.place-chinese .pronunciation-term > span { flex: 1; }
.place-card .pronunciation-button { margin: 0; }
.place-card .place-copy-button { grid-column: 2; width: auto; min-width: 44px; min-height: 44px; padding: .5rem; border-color: var(--line); background: var(--white); }
.place-card .place-copy-button:hover { border-color: var(--line); background: var(--white); }
.place-copy-check, .place-copy-button[data-copied-state="true"] .place-copy-icon { display: none; }
.place-copy-button[data-copied-state="true"] .place-copy-check { display: block; color: var(--accent-dark); }
.place-cards + .article-map-cta { margin-bottom: .5rem; }
.article-map-cta { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; max-width: 100%; margin-block: .5rem 1.75rem; padding: .65rem .9rem; border: 1px solid var(--line); color: var(--accent-dark); background: var(--paper); font-size: .9375rem; font-weight: 650; line-height: 1.5; text-decoration: none; }
.article-map-cta > span { min-width: 0; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem .8rem; border: 1px solid #b8c5c8; color: var(--ink); background: var(--white); font-size: .875rem; font-weight: 600; line-height: 1.5; }
.copy-button:hover { border-color: var(--ink); }
.faq-list { margin-block: 1.5rem 2rem; border-top: 1px solid var(--line); }
.faq-item { padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.faq-item > summary { position: relative; padding-right: 2rem; cursor: pointer; font-size: 1.0625rem; font-weight: 650; line-height: 1.6; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { position: absolute; top: 0; right: .2rem; content: "+"; color: var(--accent-dark); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] > summary::after { content: "−"; }
.faq-item > p, .faq-item > div { margin: 1rem 0 .25rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.sources h2 { margin-top: 0; font-size: 1.5rem; }
.article-feedback { margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.5; }
.feedback-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.25rem; }
.article-body .feedback-question { margin: 0; font-weight: 600; }
.feedback-votes, .feedback-reasons > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.feedback-vote, .feedback-reason { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--white); font: inherit; cursor: pointer; }
.feedback-vote { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; }
.feedback-vote[data-vote="unhelpful"] svg { transform: rotate(180deg); }
.feedback-vote:hover, .feedback-reason:hover { background: var(--paper); }
.feedback-vote[aria-pressed="true"], .feedback-reason[aria-pressed="true"] { border-color: var(--ink); color: var(--white); background: var(--ink); }
.feedback-vote:disabled, .feedback-reason:disabled { cursor: wait; opacity: .6; }
.feedback-reasons { padding-top: 1rem; }
.article-body .feedback-reasons p { margin: 0 0 .6rem; color: var(--muted); font-size: .875rem; }
.feedback-reason { padding: .5rem .8rem; font-size: .8125rem; }
.article-body .feedback-status { margin: .65rem 0 0; color: var(--muted); font-size: .8125rem; }
.feedback-status:empty { display: none; }
.source-list { margin: 0; padding-left: 1.25rem; font-size: .875rem; line-height: 1.7; }
.source-list li { margin-bottom: .85rem; }
.source-list small { display: block; color: var(--muted); font-size: .8125rem; }
.source-list a { overflow-wrap: anywhere; }

/* Site information pages. */
.legal-page { max-width: 860px; margin-inline: auto; padding-block: 4rem 5rem; }
.legal-page > h1 { margin-bottom: 2rem; font-size: clamp(2.3rem, 4vw, 3.8rem); font-weight: 650; line-height: 1.2; letter-spacing: normal; }
.legal-page .prose { max-width: 760px; }
.not-found { min-height: 65vh; padding-block: 5rem; }
.not-found h1 { max-width: 55rem; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.2; letter-spacing: normal; }
.not-found > p { max-width: 35rem; color: var(--muted); }
.not-found-recommendations { margin-top: 4rem; }

/* The footer closes with the same simple city wordmark. */
.site-footer { padding-top: 3.5rem; color: #e5ecee; background: #111b20; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; padding-bottom: 3rem; }
.footer-brand { max-width: 25rem; }
.footer-brand .brand { margin-bottom: 1.1rem; color: #ff927b; }
.footer-brand .brand-domain { color: var(--white); }
.footer-brand p { margin-bottom: .5rem; color: #a7b6bc; font-size: .9375rem; line-height: 1.75; }
.footer-links h2, .footer-links h3 { margin-bottom: 1rem; color: #a7b6bc; font-size: .75rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.footer-links ul { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: block; padding-block: .35rem; color: #e5ecee; font-size: .875rem; text-decoration: none; }
.footer-links a:hover { color: #ff8c72; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-block: 1.4rem; border-top: 1px solid #ffffff24; color: #a7b6bc; font-size: .75rem; line-height: 1.7; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }
.footer-pronunciation { padding-block: .25rem 1.1rem; }
.site-footer .pronunciation-help { margin: 0; }
.site-footer .pronunciation-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .8rem; margin: 0; color: #a7b6bc; font-size: .8125rem; font-weight: 400; line-height: 1.7; }
.site-footer .pronunciation-hint, .site-footer .pronunciation-credit { color: #a7b6bc; }
.site-footer .pronunciation-credit { font-size: .75rem; }
.site-footer .pronunciation-credit:hover { color: #ff8c72; }

@media (min-width: 1500px) {
  .hero { min-height: 820px; }
  .hero-title { max-width: 1030px; }
}

@media (max-width: 1100px) {
  :root { --header-height: 128px; }
  .header-inner { gap: 1.4rem; }
  .brand-text { font-size: 1rem; }
  .hero-title { font-size: clamp(3.65rem, 8vw, 6rem); }
  .hero { min-height: 690px; }
  .section-head { gap: 1.4rem 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); }
  .start-grid { gap: 1.5rem 2rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 220px; }
  .category-number { margin-bottom: 1.75rem; }
  .article-header-grid { gap: 2rem; }
  .article-layout { gap: 2.5rem; grid-template-columns: 210px minmax(0, 1fr); }
  .quick-facts { gap: 1rem; }
  .quick-facts:has(> .fact:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --header-height: 128px; }
  .header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem .8rem; min-height: 0; padding-block: .6rem .75rem; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .header-controls { grid-column: 2; grid-row: 1; max-width: none; }
  .header-search-row { grid-column: 1 / -1; grid-row: 2; gap: .55rem; width: 100%; max-width: none; }
  .mobile-map-link { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: .35rem; min-width: 44px; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); color: var(--accent-dark); background: var(--paper); font-size: .875rem; font-weight: 650; line-height: 1.4; text-decoration: none; white-space: nowrap; }
  .header-nav { display: none; }
  .mobile-nav { display: block; flex: 0 0 auto; }
  .mobile-nav .header-nav, .mobile-nav > nav { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100svh - var(--header-height)); overflow-y: auto; margin: 0; padding: .7rem var(--gutter) 1rem; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 15px 20px #101d2010; }
  .mobile-nav:not([open]) .header-nav, .mobile-nav:not([open]) > nav { display: none; }
  .mobile-nav .nav-link { justify-content: flex-start; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 1rem; text-align: left; }
  .mobile-nav .nav-link:last-child { border-bottom: 0; }
  .mobile-topic { border-bottom: 1px solid var(--line); }
  .mobile-topic > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: .45rem .3rem; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 600; }
  .mobile-topic > summary::-webkit-details-marker { display: none; }
  .mobile-topic[open] > summary { color: var(--accent-dark); }
  .mobile-topic[open] > summary .topic-chevron { transform: rotate(180deg); }
  .mobile-topic-content { padding: 0 .75rem .65rem; }
  .mobile-topic .topic-groups { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .hero { min-height: 680px; }
  .hero-content { padding-top: 5rem; }
  .hero-title { max-width: 39rem; font-size: clamp(3.6rem, 9.8vw, 5.5rem); }
  .hero-shade { background: linear-gradient(90deg, rgba(3, 9, 14, .84), rgba(3, 9, 14, .3)), linear-gradient(0deg, rgba(3, 9, 14, .82), transparent 70%); }
  .hero-bottom { margin-top: 3.5rem; }
  .hero-note { max-width: 23rem; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
  .section-head > .kicker { grid-column: auto; margin-bottom: .25rem; }
  .section-head > a { justify-self: start; }
  .section-intro { max-width: 40rem; }
  .home-map-teaser { grid-template-columns: 1fr; gap: 2rem; }
  .home-map-photo img { aspect-ratio: 1.7; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-grid { grid-template-columns: 1fr 1fr; gap: 1.7rem 1.3rem; }
  .start-grid > .guide-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .start-grid > .guide-card:first-child .card-title { max-width: 40rem; }
  .day-list { gap: 1.2rem; }
  .day-title { font-size: 1.3rem; }
  .practical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
  .search-wrap { max-width: none; flex-basis: 100%; margin-top: .7rem; }
  .article-header-grid { grid-template-columns: 1fr; padding-top: 1rem; gap: 1.5rem; }
  .article-header-copy { order: -1; }
  .article-title { max-width: 48rem; font-size: clamp(2.8rem, 6.7vw, 4rem); }
  .article-cover img { aspect-ratio: 1.75; max-height: 450px; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .article-layout > .article-body { grid-column: 1; grid-row: 2; }
  .article-layout > .article-toc { grid-column: 1; grid-row: 1; }
  .article-toc { position: static; grid-row: 1; padding: 0; border-block: 1px solid var(--line); }
  .toc-title { display: none; }
  .toc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .75rem .35rem; font-size: .9375rem; font-weight: 650; line-height: 1.5; list-style: none; cursor: pointer; }
  .toc-toggle::-webkit-details-marker { display: none; }
  .toc-toggle svg { flex: 0 0 auto; transition: transform 180ms; }
  .toc-disclosure[open] .toc-toggle svg { transform: rotate(180deg); }
  .toc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1rem; max-height: 18rem; padding-bottom: .75rem; }
  .article-tools { margin-top: .75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { max-width: 34rem; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.25rem; --header-height: 124px; }
  body { font-size: 1.0625rem; }
  .header-inner { gap: .65rem .7rem; }
  .brand { gap: .55rem; }
  .brand-text { font-size: .9375rem; }
  .header-controls { gap: .45rem; }
  .lang-switch > summary { gap: .3rem; font-size: .875rem; }
  .menu-toggle { gap: .3rem; padding-inline: .6rem; }
  .lang-list { position: fixed; top: var(--header-height); right: var(--gutter); left: var(--gutter); min-width: 0; max-height: calc(100svh - var(--header-height) - var(--gutter)); overflow-y: auto; }
  .lang-list a { white-space: normal; overflow-wrap: anywhere; }
  .hero { min-height: 700px; }
  .hero-picture img, img.hero-picture { width: auto; min-width: 100%; max-width: none; object-position: center; transform: translateX(calc(100vw - 100%)); animation: hero-pan-right 10s cubic-bezier(.22, .61, .36, 1) both; }
  .hero-content { padding-top: 3.5rem; padding-bottom: 1rem; }
  .eyebrow { margin-bottom: 1.3rem; font-size: .6875rem; letter-spacing: .13em; }
  .hero-title { font-size: clamp(3.2rem, 12.9vw, 4.2rem); line-height: 1.12; letter-spacing: normal; margin-bottom: 1.5rem; }
  .hero-intro { max-width: 25rem; font-size: 1.0625rem; line-height: 1.7; }
  .hero-actions { gap: .65rem; }
  .button { min-height: 48px; padding-inline: 1.1rem; }
  .hero-bottom { display: block; margin-top: 2rem; padding-bottom: 1.3rem; }
  .hero-note { max-width: 28rem; margin-bottom: 1rem; }
  .hero-caption { max-width: 29rem; text-align: left; font-size: .6875rem; }
  .section { padding-block: 3.25rem; }
  .section-title { font-size: 2.05rem; }
  .kicker { font-size: .6875rem; letter-spacing: .13em; }
  .card-grid, .start-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .start-grid > .guide-card:first-child { grid-column: auto; }
  .start-grid > .guide-card:first-child .card-title { font-size: 1.9rem; }
  .start-grid > .guide-card:not(:first-child) .card-title, .card-title { font-size: 1.55rem; }
  .card-body { padding-top: 1.1rem; }
  .guide-card-photo, .start-grid > .guide-card-photo:not(:first-child) { min-height: 260px; }
  .guide-card-photo .card-title, .start-grid > .guide-card-photo:first-child .card-title { font-size: 1.4rem; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 260px; padding: 1.15rem; }
  .category-number { margin-bottom: 1.9rem; }
  .category-name { font-size: 1.25rem; }
  .category-description { font-size: 1rem; line-height: 1.6; }
  .category-link { font-size: .875rem; }
  .itinerary { padding: 1.3rem; }
  .day-list { grid-template-columns: 1fr; gap: 1.65rem; }
  .day-number { margin-bottom: .8rem; }
  .day-title { font-size: 1.5rem; }
  .practical-grid { grid-template-columns: 1fr; }
  .practical-card { padding-block: 1.3rem; }
  .index-header { padding-block: 3rem 1.5rem; }
  .index-header h1 { font-size: 2.75rem; }
  .filter-bar { margin-bottom: 2rem; gap: .25rem; }
  .filter-chip { padding-inline: .8rem; }
  .guide-index { padding-bottom: 3.5rem; }
  .breadcrumbs { padding-block: 1.1rem; font-size: .75rem; }
  .article-header-grid { padding-bottom: 1.5rem; gap: 1rem; }
  .article-category { font-size: .6875rem; letter-spacing: .13em; }
  .article-title { margin-bottom: 1.2rem; font-size: 2.55rem; line-height: 1.2; }
  .article-dek { font-size: 1.0625rem; line-height: 1.75; }
  .article-meta { gap: .35rem .65rem; font-size: .75rem; }
  .article-meta span + span::before { margin-right: .65rem; }
  .article-cover img { aspect-ratio: 1.4; }
  .quick-facts, .quick-facts:has(> .fact:nth-child(4):last-child) { grid-template-columns: 1fr; gap: .85rem; padding-block: 1rem; }
  .fact { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: baseline; gap: 1rem; }
  .fact-label { margin-bottom: 0; }
  .fact-value { font-size: 1rem; }
  .article-layout { padding-block: 2rem 3.5rem; }
  .article-body, .prose { font-size: 1.0625rem; line-height: 1.8; }
  .article-body h2, .prose h2 { margin-top: 2.5rem; font-size: 1.85rem; }
  .article-body h3, .prose h3 { font-size: 1.3rem; }
  .article-lead { font-size: 1.15rem; }
  .article-body blockquote, .prose blockquote { padding: 1rem 1.1rem; }
  .toc-links { grid-template-columns: 1fr; gap: 0; }
  .toc-links a { padding-block: .45rem; }
  .home-map-photo img { aspect-ratio: 1.4; }
  .sources { margin-top: 2.5rem; }
  .legal-page { padding-block: 3rem 3.5rem; }
  .legal-page > h1 { font-size: 2.7rem; }
  .site-footer { padding-top: 2.75rem; }
  .footer-grid { gap: 2rem 1.5rem; padding-bottom: 2.5rem; }
  .footer-brand p { font-size: 1rem; }
  .footer-bottom { display: block; }
  .footer-bottom > * { display: block; }
  .footer-bottom > * + * { margin-top: .7rem; }
}

@media (max-width: 480px) {
  .lang-switch > summary > .lang-icon { display: none; }
}

@media (max-width: 360px) {
  .lang-switch > summary { gap: .125rem; padding-inline: 0; font-size: .75rem; }
  .lang-switch > summary > .lang-flag { gap: 1px; }
  .brand-text { font-size: .875rem; }
  .header-inner { column-gap: .4rem; }
  .hero-title { font-size: 2.85rem; }
  .hero-actions .button { width: 100%; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 215px; }
  .category-number { margin-bottom: 1.4rem; }
  .fact { grid-template-columns: 1fr; gap: .3rem; }
}

@keyframes hero-pan-right {
  from { transform: translateX(calc(50vw - 50%)); }
  to { transform: translateX(calc(100vw - 100%)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-picture img, img.hero-picture { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .guide-card:hover .card-image img { transform: none; }
}

@media print {
  :root { --gutter: 0; --panel-gutter: 0; }
  html { scroll-behavior: auto; }
  body { font-size: 11pt; line-height: 1.5; color: #000; background: #fff; }
  .site-header, .site-footer, .skip-link, .reading-progress, .article-toc, .article-tools, .article-feedback, .article-map-cta, .copy-button, .hero, .filter-bar, .hero-actions, .article-cover, .card-image, .mobile-nav { display: none !important; }
  .container { width: 100%; max-width: none; }
  .article-head { border-bottom: 1px solid #999; background: #fff; }
  .breadcrumbs { font-size: 9pt; padding-block: 0 12pt; }
  .article-header-grid { display: block; padding-block: 0 12pt; }
  .article-title { font-size: 28pt; line-height: 1.2; letter-spacing: normal; }
  .article-dek { max-width: none; color: #222; font-size: 12pt; }
  .article-meta { font-size: 9pt; color: #333; }
  .quick-facts, .quick-facts:has(> .fact:nth-child(4):last-child) { grid-template-columns: repeat(3, 1fr); padding-block: 10pt; }
  .fact-label { font-size: 8pt; color: #333; }
  .fact-value { font-size: 10pt; }
  .article-layout { display: block; padding-block: 18pt 0; }
  .article-body, .prose { font-size: 11pt; line-height: 1.6; }
  .article-body h2, .prose h2 { margin-top: 20pt; font-size: 18pt; }
  .article-body h3, .prose h3 { font-size: 14pt; }
  .article-body h2, .article-body h3, .prose h2, .prose h3 { break-after: avoid; }
  .article-body p, .prose p, .article-body li, .prose li { orphans: 3; widows: 3; }
  .article-body p, .prose p { margin-bottom: 10pt; }
  .article-body a, .prose a { color: #000; text-decoration: underline; }
  .article-lead { font-size: 12pt; }
  .article-body table, .prose table, .table-wrap { display: table; width: 100%; overflow: visible; font-size: 9pt; }
  .article-body th, .article-body td, .prose th, .prose td { min-width: 0; padding: 6pt; }
  .article-body blockquote, .prose blockquote { background: #fff; border-color: #555; }
  .place-cards { grid-template-columns: 1fr; gap: 3pt; }
  .place-card { grid-template-columns: 1fr; padding: 4pt 6pt; background: #fff; break-inside: avoid; }
  .place-name { grid-column: 1 / -1; font-size: 10pt; }
  .place-chinese { font-size: 11pt; }
  .faq-item { break-inside: avoid; }
  .faq-item > summary { font-size: 11pt; }
  .faq-item > summary::after { display: none; }
  .faq-item > p, .faq-item > div { display: block; font-size: 10pt; }
  .sources { display: block; margin-top: 20pt; border-color: #555; }
  .sources h2 { font-size: 14pt; }
  .source-list, .source-list small { font-size: 9pt; }
  .source-list a[href^="http"]::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
  .legal-page { max-width: none; padding: 0; }
  .guide-card-photo, .start-grid > .guide-card-photo:not(:first-child) { min-height: 0; overflow: visible; background: #fff; color: #000; break-inside: avoid; }
  .guide-card-photo .card-body { padding: 12pt 0; background: none; }
  .guide-card-photo .card-title a, .guide-card-photo .card-meta, .guide-card-photo .card-meta > :first-child, .guide-card-photo .card-meta span + span::before, .guide-card-photo .card-dek { color: #000; }
  .guide-card-photo .card-dek { display: block; }
}

.quick-guide-index-card { height: 100%; border-top: 4px solid var(--accent); background: var(--paper); }
.quick-guide-index-card .card-body { padding-block: 2rem; }
.quick-guide-index-card .kicker { margin-bottom: 1.25rem; }
.quick-guide-index-card .text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: 1rem; color: var(--accent-dark); font-weight: 650; }
.quick-guide-shortcut { margin: 0 0 1.5rem; }
.quick-guide-shortcut a { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); background: var(--paper); color: var(--accent-dark); font-weight: 650; text-decoration: none; }
.quick-guide-shortcut a:hover { border-color: var(--accent-dark); }

@media screen {
 .defer-home-images main > .section picture { content-visibility: hidden; }
 .defer-home-images .home-map-photo picture { aspect-ratio: 1.3; }
}
@media screen and (max-width: 820px) { .defer-home-images .home-map-photo picture { aspect-ratio: 1.7; } }
@media screen and (max-width: 560px) { .defer-home-images .home-map-photo picture { aspect-ratio: 1.4; } }

@media screen {
 .defer-category-images .guide-index picture.lazy-picture { content-visibility: hidden; }
}
@media screen and (max-width: 560px) {
 .defer-not-found-images .not-found-recommendations picture.lazy-picture { content-visibility: hidden; }
}

/* Retain the native detail of the inspected Gongtan merchant photographs. */
.article-body [data-article-photo="ranyu-cured-pork"], .article-body [data-article-photo="ranyu-yellow-catfish"] { max-width: 315px; margin-inline: auto; }
.article-body [data-article-photo="gongtan-river-day"], .article-body [data-article-photo="gongtan-river-night"] { max-width: 500px; margin-inline: auto; }
.article-body [data-article-photo="ranyu-storefront"] { max-width: 270px; margin-inline: auto; }
.article-body [data-article-photo="ranyu-storefront"] img { max-height: none; }

/* Reserve both labels so copying does not move nearby controls. */
.copy-feedback { display:inline-grid; vertical-align:middle; }
.copy-feedback > span { grid-area:1 / 1; }
.copy-feedback-success { visibility:hidden; }
.copy-feedback[data-complete="true"] > span:first-child { visibility:hidden; }
.copy-feedback[data-complete="true"] > .copy-feedback-success { visibility:visible; }
