/* =========================================================
   China Travel Kit — Stylesheet (sidebar docs layout)
   Left fixed nav with collapsible tree + right reading pane.
   One file, CSS variables, no framework. Calm, low-eye-strain.
   ========================================================= */

/* Ensure [hidden] attribute always works (safety net) */
[hidden] { display: none !important; }

:root {
  --ink:        #17212d;
  --body:       #46515f;
  --muted:      #727d8b;
  --bg:         #fcfcfb;
  --surface:    #f4f6f7;   /* sidebar bg */
  --surface-2:  #e9edf0;
  --brand:      #d8442f;
  --brand-dark: #b8361f;
  --brand-soft: #fdeee9;
  --line:       #e6e9ec;
  --ok:         #0f7b6c;
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 40px rgba(16,24,40,.10);
  --sidebar-w: 290px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.72;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); }
.eyebrow { display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--brand); margin-bottom:12px; }

/* ---------- Buttons ---------- */
.btn { display:inline-flex; align-items:center; gap:8px; padding:11px 19px; border-radius:999px; font-weight:600; font-size:.97rem; border:1px solid transparent; transition:transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background:var(--brand); color:#fff; box-shadow:0 6px 18px rgba(216,68,47,.22); }
.btn-primary:hover { background:var(--brand-dark); }
.btn-ghost { border-color:var(--line); color:var(--ink); background:#fff; }
.btn-ghost:hover { border-color:var(--ink); }

/* ---------- Mobile top bar (hidden on desktop) ---------- */
.topbar { display:none; position:sticky; top:0; z-index:70; align-items:center; gap:12px; height:60px; padding:0 18px; background:rgba(255,255,255,.9); backdrop-filter:saturate(180%) blur(10px); border-bottom:1px solid var(--line); }
.topbar .brand { font-weight:800; color:var(--ink); display:flex; align-items:center; gap:9px; font-size:1.02rem; }
.topbar .brand .logo { width:28px; height:28px; }
.topbar .menu-btn { margin-left:auto; background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 10px; display:inline-flex; }

/* ---------- Layout ---------- */
.layout { display:grid; grid-template-columns: var(--sidebar-w) minmax(0,1fr); min-height:100vh; }

/* ---------- Sidebar ---------- */
.sidebar { background:var(--surface); border-right:1px solid var(--line); padding:22px 16px; position:sticky; top:0; height:100vh; overflow-y:auto; scrollbar-color:#c7cdd3 transparent; scrollbar-width:thin; }
.sidebar-brand { display:flex; align-items:center; gap:10px; font-weight:800; color:var(--ink); font-size:1.05rem; margin-bottom:16px; padding:0 6px 16px; border-bottom:1px solid rgba(230,233,236,.8); }
.sidebar-brand .logo { width:30px; height:30px; flex:none; }
.sidebar-brand small { display:block; margin-top:1px; color:var(--muted); font-size:.68rem; font-weight:600; letter-spacing:.025em; }
.sidebar-search { position:relative; display:flex; align-items:center; gap:8px; margin:0 4px 12px; padding:0 11px; min-height:40px; background:#fff; border:1px solid var(--line); border-radius:10px; color:var(--muted); transition:border-color .15s ease, box-shadow .15s ease; }
.sidebar-search:focus-within { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
.sidebar-search svg { width:17px; height:17px; flex:none; }
.sidebar-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; font-size:.86rem; line-height:1.3; }
.sidebar-search input::placeholder { color:var(--muted); opacity:1; }
.search-results { position:absolute; z-index:90; top:calc(100% + 6px); right:0; left:0; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-lg); }
.search-results a, .search-empty { display:block; padding:10px 12px; font-size:.84rem; line-height:1.35; }
.search-results a { color:var(--body); }
.search-results a:hover, .search-results a:focus-visible { background:var(--brand-soft); color:var(--brand-dark); outline:0; }
.search-empty { color:var(--muted); }
.nav-label { padding:5px 12px 8px; color:var(--muted); font-size:.67rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.side-nav { display:flex; flex-direction:column; gap:2px; }
.side-link { display:block; padding:9px 12px; border-radius:10px; color:var(--body); font-weight:500; font-size:.97rem; transition:background .15s ease, color .15s ease, transform .15s ease; text-decoration:none; }
.side-link:hover { transform:translateX(2px); }
.side-link:hover, .side-link[aria-current="page"] { background:#fff; color:var(--brand); box-shadow:var(--shadow); }
.side-link--with-arrow { display: flex; align-items: center; justify-content: space-between; }
.side-link-arrow { flex-shrink: 0; opacity: 0.5; transition: opacity .15s ease, transform .15s ease; }
.side-link--with-arrow:hover .side-link-arrow { opacity: 1; transform: translateX(2px); }

/* collapsible groups (native <details>) */
.nav-group, .nav-subgroup { border-radius:10px; }
.nav-group > summary, .nav-subgroup > summary {
  list-style:none; cursor:pointer; display:block;
  padding:9px 12px; border-radius:10px; font-weight:500; color:var(--body); font-size:.97rem; user-select:none;
}
.nav-group > summary::-webkit-details-marker, .nav-subgroup > summary::-webkit-details-marker { display:none; }
.nav-group > summary::after, .nav-subgroup > summary::after {
  content:""; display:block; width:7px; height:7px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted);
  transform:rotate(-45deg); transition:transform .15s ease; margin:6px 0 0 2px; opacity:.6;
}
.nav-group[open] > summary::after, .nav-subgroup[open] > summary::after { transform:rotate(45deg); }
.nav-group > summary:hover, .nav-subgroup > summary:hover { background:rgba(255,255,255,.76); }
.nav-subgroup > summary { font-weight:500; color:var(--body); font-size:.95rem; }
.nav-subgroup > summary > a { color:inherit; text-decoration:none; }
.nav-subgroup > summary > a:hover, .nav-subgroup > summary > a[aria-current="page"] { color:var(--brand); }

.nav-group > ul, .nav-subgroup > ul { list-style:none; padding:0; }
.nav-group > ul { margin:2px 0 8px 14px; padding-left:12px; border-left:1px solid var(--line); }
.nav-subgroup > ul { margin:2px 0 6px 12px; padding-left:10px; border-left:1px solid var(--line); }
.nav-group > ul a, .nav-subgroup > ul a { position:relative; display:block; padding:7px 12px; border-radius:8px; color:var(--muted); font-size:.93rem; transition:background .15s ease, color .15s ease, transform .15s ease; }
.nav-group > ul a:hover, .nav-subgroup > ul a:hover { background:#fff; color:var(--brand); transform:translateX(2px); }
.nav-group > ul a[aria-current="page"], .nav-subgroup > ul a[aria-current="page"] { background:#fff; color:var(--brand-dark); font-weight:700; box-shadow:var(--shadow); }
.nav-group > ul a[aria-current="page"]::before, .nav-subgroup > ul a[aria-current="page"]::before { content:""; position:absolute; left:-13px; top:50%; width:5px; height:5px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 4px var(--brand-soft); transform:translateY(-50%); }
.nav-group:has(a[aria-current="page"]) > summary, .nav-subgroup:has(a[aria-current="page"]) > summary { color:var(--body); }

.sidebar-actions { display:flex; gap:8px; margin:20px 4px 0; padding-top:16px; border-top:1px solid var(--line); }
.sidebar-pill { flex:1; padding:8px 7px; border:1px solid var(--line); border-radius:999px; color:var(--body); background:#fff; text-align:center; font-size:.76rem; font-weight:700; line-height:1.2; transition:border-color .15s ease, color .15s ease, background .15s ease; }
.sidebar-pill:hover { border-color:var(--brand); color:var(--brand-dark); }
.sidebar-pill--primary { border-color:var(--brand); background:var(--brand); color:#fff; }
.sidebar-pill--primary:hover { background:var(--brand-dark); color:#fff; }
.side-foot { margin:10px 4px 0; padding:0 8px 4px; color:var(--muted); font-size:.76rem; }

/* ---------- Content ---------- */
.content { padding: clamp(28px, 4vw, 56px); min-width:0; }
.content-inner { max-width: 880px; margin-inline:auto; }
.article { max-width: 740px; margin-inline:auto; }

/* contained intro (home/about) */
.hero { padding: 8px 0 32px; border-bottom:1px solid var(--line); margin-bottom:38px; }
.hero h1 { margin-bottom:14px; }
.hero .lead { max-width:60ch; }

/* cards grid */
.grid { display:grid; gap:18px; }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-2 { grid-template-columns:repeat(2,1fr); }
.grid-auto { grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.card { position:relative; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; display:flex; flex-direction:column; height:100%; }
.card::before { content:""; position:absolute; top:0; left:22px; right:22px; height:3px; border-radius:0 0 99px 99px; background:var(--brand); transform:scaleX(0); transform-origin:left; transition:transform .2s ease; }
.card:hover { transform:translateY(-3px); border-color:#efd2ca; box-shadow:var(--shadow-lg); }
.card:hover::before { transform:scaleX(1); }
.card .icon { width:42px; height:42px; border-radius:12px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; margin-bottom:14px; }
.card .icon svg { width:21px; height:21px; }
.card h3 { margin-bottom:6px; }
.card p { color:var(--muted); font-size:.96rem; flex:1; }
.card .more { margin-top:14px; font-weight:600; color:var(--brand); font-size:.93rem; }
.section { margin-top:36px; }
.section h2 { position:relative; margin-bottom:7px; padding-left:15px; }
.section h2::before { content:""; position:absolute; left:0; top:.23em; width:4px; height:.95em; border-radius:99px; background:var(--brand); }
/* Prevent stray red lines from empty headings after content edits */
.section h2:empty,
.section h2:has(> br:only-child) { display: none; margin:0; padding:0; }
/* Remove excessive trailing whitespace on all pages */
.content-inner > *:last-child,
.prose > *:last-child,
.section > *:last-child { margin-bottom: 0; }
.section:last-child { margin-bottom: 0; }
/* Hide empty block-level elements that slip through cleaning as a safety net */
.section:empty,
div:empty,
p:empty { display: none; margin: 0; padding: 0; height: 0; }
body > .layout > .content { padding-bottom: clamp(28px, 4vw, 48px); }
.section .sub { color:var(--muted); margin-bottom:20px; }

/* ---------- Article prose ---------- */
.article-header { margin-bottom:28px; }
.article-header .tag { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--brand); background:var(--brand-soft); padding:5px 12px; border-radius:999px; margin-bottom:14px; }
.article-meta { color:var(--muted); font-size:.9rem; margin-top:12px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.article-meta .dot { width:4px; height:4px; border-radius:50%; background:var(--muted); }
.prose { font-size:1.06rem; color:var(--body); }
.prose h2 { margin-top:38px; margin-bottom:12px; font-size:1.45rem; }
.prose h3 { margin-top:26px; margin-bottom:8px; }
.prose p { margin-bottom:16px; }
.prose ul, .prose ol { margin:0 0 18px 1.2em; }
.prose li { margin-bottom:7px; }
.prose strong { color:var(--ink); }
.prose a.inline { color:var(--brand); font-weight:600; border-bottom:1px solid var(--brand-soft); }
.prose blockquote { border-left:3px solid var(--brand); background:var(--brand-soft); padding:13px 18px; border-radius:0 10px 10px 0; margin:0 0 20px; font-style:italic; }
.callout { border:1px solid var(--line); background:var(--surface); border-radius:var(--radius); padding:16px 18px; margin:22px 0; display:flex; gap:13px; }
.callout .icon { flex:none; width:26px; height:26px; color:var(--ok); }
.callout p { margin:0; font-size:.97rem; }
.callout strong { color:var(--ink); }
.table { width:100%; border-collapse:collapse; margin:18px 0; font-size:.97rem; }
.table th, .table td { text-align:left; padding:11px 13px; border-bottom:1px solid var(--line); }
.table th { color:var(--ink); background:var(--surface); }
.table tr:hover td { background:var(--surface); }
.related { border-top:1px solid var(--line); margin-top:42px; padding-top:26px; }
.related h3 { margin-bottom:14px; }

/* ---------- Footer (in content area) ---------- */
.site-footer { margin-top:40px; border-top:1px solid var(--line); padding-top:24px; color:var(--muted); font-size:.9rem; }
.site-footer .foot-grid { display:flex; flex-wrap:wrap; gap:28px; justify-content:space-between; }
.site-footer a { color:var(--muted); }
.site-footer a:hover { color:var(--brand); }
.site-footer .copy { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); font-size:.82rem; }

/* ---------- Utilities ---------- */
.center { text-align:center; }
.badge { display:inline-flex; align-items:center; gap:6px; font-size:.8rem; font-weight:600; color:var(--muted); background:var(--surface); border:1px solid var(--line); padding:5px 12px; border-radius:999px; }

/* ---------- a11y ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible, summary:focus-visible { outline:3px solid var(--brand); outline-offset:2px; border-radius:6px; }
.skip-link { position:absolute; left:-999px; top:8px; background:var(--ink); color:#fff; padding:10px 16px; border-radius:8px; z-index:100; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link:focus { left:12px; }
.overlay { display:none; }
.menu-btn[aria-expanded="true"] { /* no-op */ }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar { display:flex; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position:fixed; top:0; left:0; bottom:0; width:var(--sidebar-w); z-index:80; transform:translateX(-100%); transition:transform .22s ease; box-shadow:var(--shadow-lg); }
  .sidebar.open { transform:none; }
  .overlay.show { display:block; position:fixed; inset:0; background:rgba(16,24,40,.4); z-index:75; }
  .grid-3, .grid-2 { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .content { padding:22px 18px; }
}

/* =========================================================
   Imagery & trust blocks (added per Western-audience research)
   - Real photos convert better than none; stock photos hurt trust.
   - All <img> carry width/height + lazy/decode hints (CLS-safe, fast).
   - Placeholders are custom SVG so the site renders offline with no stock.
   ========================================================= */

/* Homepage hero: text + real photo, side by side */
.hero--split { display:grid; grid-template-columns:1.12fr .88fr; gap:clamp(30px,4vw,60px); align-items:center; }
.hero--split .hero-text { min-width:0; }
.hero--split .hero-text h1 { margin-bottom:16px; font-size:clamp(2.2rem,4.1vw,3.15rem); font-weight:800; letter-spacing:-.045em; }
.hero--split .hero-text .lead { max-width:44ch; margin-bottom:25px; line-height:1.82; }
.hero-media { position:relative; padding:0 0 14px 14px; }
.hero-media::before { content:""; position:absolute; inset:20px 20px 0 0; border:1px solid #efd3cc; border-radius:var(--radius); background:var(--brand-soft); }
.hero-photo { position:relative; width:100%; height:auto; aspect-ratio: 4 / 5; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow-lg); display:block; }
@media (max-width: 760px) {
  .hero--split { grid-template-columns:1fr; }
  .hero-media { order:-1; }
  .hero-media { padding:0 0 10px 10px; }
  .hero-media::before { inset:14px 14px 0 0; }
  .hero-photo { aspect-ratio: 16 / 10; }
}

/* Author trust block (homepage + about) */
.author-card { display:flex; gap:18px; align-items:flex-start; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; margin:4px 0 38px; }
.author-photo { width:84px; height:84px; border-radius:50%; object-fit:cover; flex:none; box-shadow:var(--shadow); }
.author-eyebrow { display:block; font-size:.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--brand); margin-bottom:6px; }
.author-card p { margin:0 0 8px; font-size:.98rem; }
.author-link { font-weight:600; color:var(--brand); font-size:.93rem; }
.author-link:hover { text-decoration:underline; }

.author-feature { display:flex; gap:20px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px 22px; margin-bottom:26px; }
.author-feature img { width:96px; height:96px; border-radius:50%; object-fit:cover; flex:none; box-shadow:var(--shadow); }
.author-feature .af-name { font-weight:700; color:var(--ink); font-size:1.05rem; }
.author-feature .af-role { color:var(--muted); font-size:.92rem; }

/* Destination / article hero image slot */
.page-hero { border-radius:var(--radius); overflow:hidden; margin-bottom:30px; box-shadow:var(--shadow); }
.page-hero img { width:100%; height:auto; aspect-ratio: 1200 / 480; object-fit:cover; display:block; }
.page-hero--full-map { background:var(--surface); }
.page-hero--full-map img { aspect-ratio:auto; object-fit:contain; }
.xian-food-walk-map { max-width:760px; margin:0 auto 30px; border:1px solid #dfd3bd; background:#fff8e8; }
.xian-food-walk-callout { margin:24px 0 30px; }
.xian-food-walk-stops { display:grid; gap:10px; margin:18px 0 30px; }
.xian-food-walk-stop { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:13px; align-items:center; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); text-decoration:none; box-shadow:0 8px 18px rgba(31,59,87,.05); transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.xian-food-walk-stop:hover,.xian-food-walk-stop:focus-visible { transform:translateY(-2px); border-color:#c85845; box-shadow:0 13px 25px rgba(31,59,87,.1); outline:0; }
.xian-food-walk-stop > span { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#fbe6de; color:#b84a38; font-size:.76rem; font-weight:800; }
.xian-food-walk-stop strong,.xian-food-walk-stop small { display:block; }.xian-food-walk-stop strong { font-size:1rem; }.xian-food-walk-stop small { margin-top:3px; color:var(--muted); font-size:.86rem; line-height:1.4; }.xian-food-walk-stop b { color:var(--brand); font-size:.78rem; white-space:nowrap; }
.xian-food-walk-foods { grid-template-columns:repeat(2,minmax(0,1fr)); }
.xian-stop-feature { margin:42px 0; padding-top:30px; border-top:1px solid var(--line); }
.xian-stop-feature__heading { display:flex; gap:12px; align-items:baseline; flex-wrap:wrap; margin-bottom:12px; }.xian-stop-feature__heading span { color:var(--brand); font-size:.72rem; font-weight:800; letter-spacing:.1em; }.xian-stop-feature__heading h2 { margin:0; }
.xian-stop-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:20px; }.xian-stop-gallery figure { margin:0; padding:8px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 8px 18px rgba(31,59,87,.05); }.xian-stop-gallery img { display:block; width:100%; height:250px; border-radius:9px; object-fit:cover; }.xian-stop-gallery figcaption { padding:9px 3px 2px; color:var(--muted); font-size:.8rem; line-height:1.45; }
@media (max-width:620px) { .xian-food-walk-stop { grid-template-columns:38px minmax(0,1fr); padding:13px; }.xian-food-walk-stop b { grid-column:2; }.xian-food-walk-foods,.xian-stop-gallery { grid-template-columns:1fr; }.xian-stop-gallery img { height:280px; } }
.content-image { display:block; width:100%; max-width:100%; aspect-ratio:16 / 9; height:auto; object-fit:cover; border-radius:var(--radius-sm); margin:22px 0; }
.guide-photo { margin:26px 0; }
.guide-photo img { display:block; width:100%; height:auto; aspect-ratio:16 / 9; object-fit:cover; border-radius:var(--radius); box-shadow:0 12px 30px rgba(31,59,87,.09); }
.guide-photo--portrait { max-width:580px; margin-left:auto; margin-right:auto; }
.guide-photo--portrait img { aspect-ratio:4 / 5; }
.guide-photo figcaption { margin:8px 4px 0; color:var(--muted); font-size:.8rem; line-height:1.5; }
.guide-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; margin:22px 0 30px; }
.guide-facts > div { padding:14px 15px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.guide-facts span,.guide-facts strong { display:block; }
.guide-facts span { margin-bottom:4px; color:var(--muted); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; }
.guide-facts strong { color:var(--ink); font-size:1rem; }
.first-timer-details { margin:24px 0; }
@media (max-width:620px) { .guide-photo--portrait { max-width:none; }.guide-photo--portrait img { aspect-ratio:4 / 5; } }
@media (max-width: 560px) { .page-hero img { aspect-ratio: 16 / 10; } }

/* Destination city hubs: a route board, not a generic list of attractions. */
.city-guide { max-width:880px; margin-inline:auto; }
.city-hero { min-height:310px; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr); gap:28px; align-items:end; padding:clamp(28px,5vw,54px); border-radius:22px; color:#fff; overflow:hidden; position:relative; background:#27384b; }
.city-hero::after { content:""; position:absolute; inset:auto -70px -120px auto; width:330px; height:330px; border:46px solid rgba(255,255,255,.1); border-radius:50%; pointer-events:none; }
.city-hero > * { position:relative; z-index:1; }
.city-hero--beijing { background:linear-gradient(130deg,#7d3025,#ca6544); }
.city-hero--beijing { background:linear-gradient(135deg,#f5f2eb,#e8eff2); border:1px solid #d5dfe5; color:#1f3b57; }
.city-hero--beijing::after { width:280px; height:280px; border-color:rgba(31,59,87,.08); }
.city-hero--beijing .city-kicker { color:#b64a3b; }.city-hero--beijing h1 { color:#1f3b57; }.city-hero--beijing p { color:#526477; }.city-hero--beijing .city-stats div { background:rgba(255,255,255,.72); border-color:#cedae1; }.city-hero--beijing .city-stats strong { color:#1f3b57; }.city-hero--beijing .city-stats span { color:#647588; }
.city-hero--xian { background:linear-gradient(130deg,#513827,#9a7049); }
.city-hero--chengdu { background:linear-gradient(130deg,#21483e,#4b8171); }
.city-hero--shanghai { background:linear-gradient(130deg,#253855,#516a9d); }
.city-kicker { display:block; margin-bottom:14px; color:rgba(255,255,255,.8); font-size:.72rem; letter-spacing:.14em; font-weight:800; }
.city-hero h1 { max-width:12ch; margin:0 0 13px; color:#fff; font-size:clamp(2.15rem,4vw,3.5rem); line-height:1.07; letter-spacing:-.05em; }
.city-hero p { max-width:48ch; margin:0; color:rgba(255,255,255,.88); font-size:1rem; line-height:1.75; }
.city-stats { display:grid; gap:8px; }
.city-stats div { padding:12px 14px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); border-radius:12px; backdrop-filter:blur(5px); }
.city-stats strong, .city-stats span { display:block; }
.city-stats strong { font-size:1.18rem; letter-spacing:-.03em; }.city-stats span { font-size:.78rem; color:rgba(255,255,255,.76); }
.route-intro { display:flex; align-items:baseline; gap:16px; padding:18px 2px; border-bottom:1px solid var(--line); }.route-intro span,.section-heading > span { color:var(--brand); font-weight:800; letter-spacing:.1em; font-size:.7rem; }.route-intro p { margin:0; color:var(--muted); font-size:.94rem; }
.route-board { margin-top:38px; }.section-heading { margin-bottom:22px; }.section-heading h2 { margin:5px 0 0; font-size:1.75rem; letter-spacing:-.04em; }
.route-day { display:grid; grid-template-columns:170px minmax(0,1fr); gap:28px; padding:25px 0; border-top:1px solid var(--line); }.route-day-label span,.route-day-label small { display:block; }.route-day-label span { color:var(--brand); font-size:.72rem; font-weight:800; letter-spacing:.09em; }.route-day-label strong { display:block; margin:4px 0; color:var(--ink); font-size:1.05rem; }.route-day-label small { color:var(--muted); line-height:1.45; }
.route-line { position:relative; padding-left:30px; }.route-line::before { content:""; position:absolute; top:20px; bottom:20px; left:10px; width:2px; background:linear-gradient(var(--brand),#f4d4cd); }.route-stop { position:relative; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); overflow:hidden; }.route-stop + .route-stop { margin-top:12px; }.route-stop summary { list-style:none; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:12px; padding:16px; cursor:pointer; }.route-stop summary::-webkit-details-marker { display:none; }.route-pin { position:relative; z-index:1; display:grid; place-items:center; width:38px; height:38px; color:#fff; background:var(--brand); border:4px solid #fff; border-radius:50%; box-shadow:0 0 0 2px var(--brand-soft); font-size:.73rem; font-weight:800; }.route-stop b,.route-stop em { display:block; }.route-stop b { color:var(--ink); }.route-stop em { margin-top:3px; color:var(--muted); font-size:.86rem; font-style:normal; }.route-toggle { color:var(--brand); font-size:.8rem; font-weight:700; }.route-detail { margin:0 16px 16px 66px; padding-top:13px; border-top:1px solid var(--line); color:var(--body); font-size:.93rem; }.route-detail p { margin:0 0 10px; line-height:1.65; }.route-detail a { font-weight:700; color:var(--brand); }.route-connector { position:relative; margin:10px 0 10px 8px; padding-left:26px; color:var(--muted); font-size:.8rem; }.route-connector::before { content:"↓"; position:absolute; left:0; color:var(--brand); font-size:1.1rem; }.route-note { margin:0 0 0 17px; padding:12px 14px; border-left:2px solid #f0cfc6; background:#fff9f7; color:var(--muted); font-size:.88rem; }.route-note b,.route-note span { display:block; }.route-note b { color:var(--ink); margin-bottom:2px; }
.city-guide-foot { margin-top:40px; padding-top:28px; border-top:1px solid var(--line); }.city-guide-foot h2 { margin-bottom:18px; font-size:1.35rem; }.mini-guide { padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; }.mini-guide b { color:var(--ink); font-size:.92rem; }.mini-guide p { margin:7px 0 0; color:var(--muted); font-size:.88rem; }.mini-guide a { color:var(--brand); font-weight:700; }
@media (max-width:700px) { .city-hero { grid-template-columns:1fr; min-height:0; }.city-stats { grid-template-columns:repeat(3,1fr); }.city-stats div { padding:10px; }.city-stats strong { font-size:1rem; }.route-day { grid-template-columns:1fr; gap:13px; }.route-day-label { display:grid; grid-template-columns:auto 1fr; column-gap:10px; align-items:baseline; }.route-day-label span { grid-row:span 2; }.route-day-label small { grid-column:2; }.route-stop summary { padding:13px; }.route-detail { margin-left:63px; }.route-intro { display:block; }.route-intro p { margin-top:5px; } }
@media (max-width:420px) { .city-stats { grid-template-columns:1fr; }.route-stop summary { grid-template-columns:34px minmax(0,1fr); }.route-toggle { display:none; }.route-detail { margin-left:16px; } }
/* Interactive destination maps */
.city-map-section { margin-top:38px; }
.city-map-copy { margin:6px 0 18px; color:var(--muted); }
.beijing-handdrawn-map { margin:0; padding:10px; border:1px solid #dfd3bd; border-radius:20px; background:#fff8e8; box-shadow:0 16px 36px rgba(65,45,25,.12); }
.beijing-handdrawn-map img { display:block; width:100%; height:auto; border-radius:13px; }
.beijing-handdrawn-map figcaption { margin:10px 4px 2px; color:#84735e; font-size:.82rem; font-weight:700; letter-spacing:.04em; }
.handdrawn-route-preview { margin:0; padding:14px; border:1px solid #dfd5c5; border-radius:20px; background:#f6f0e5; box-shadow:0 16px 36px rgba(65,45,25,.12); }
.handdrawn-route-preview img { display:block; width:100%; height:auto; border-radius:12px; background:#fffaf0; }
.handdrawn-route-preview figcaption { margin:12px 5px 2px; color:#7f7262; font-size:.9rem; }
.handdrawn-route-controls { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 12px; }
.handdrawn-route-controls button { display:inline-flex; align-items:center; gap:7px; border:1px solid #dacdb9; border-radius:999px; padding:9px 15px; background:#fffdf7; color:#33485c; font:700 .88rem/1 inherit; cursor:pointer; transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.handdrawn-route-controls button:hover,.handdrawn-route-controls button:focus-visible { border-color:#aa442f; transform:translateY(-1px); box-shadow:0 5px 14px rgba(68,48,28,.14); outline:0; }
.handdrawn-route-controls button[aria-pressed="true"] { color:#fff; border-color:#243d57; background:#243d57; }
.handdrawn-route-controls i { width:9px; height:9px; border-radius:50%; background:currentColor; }.handdrawn-route-controls [data-alex-route="three"] i { background:#c84c3d; }.handdrawn-route-controls [data-alex-route="five"] i { background:#37816c; }.handdrawn-route-controls [data-alex-route="seven"] i { background:#bf8a26; }
.alex-route-status { margin:0 0 12px; color:#756b5f; font-size:.9rem; }
.alex-route-map { position:relative; min-height:630px; overflow:hidden; border:1px solid #e3d5b8; border-radius:20px; background:#fff9ea; box-shadow:0 16px 36px rgba(65,45,25,.1); isolation:isolate; }
.alex-route-map::before { content:""; position:absolute; inset:0; opacity:.32; background:radial-gradient(circle at 20% 14%, rgba(228,184,95,.2), transparent 22%), radial-gradient(circle at 76% 72%, rgba(181,209,174,.18), transparent 26%), repeating-linear-gradient(0deg, transparent 0 31px, rgba(123,91,48,.06) 32px 33px); pointer-events:none; }
.alex-route-map svg { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }
.alex-route-map .sketch-boundary { fill:none; stroke:#cfbb95; stroke-width:1; stroke-dasharray:5 8; opacity:.55; }.alex-route-map .sketch-river { fill:none; stroke:#9aafae; stroke-width:3; opacity:.22; }
.alex-route-map .route-line { fill:none; stroke-width:3.5; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 1px 1px rgba(86,47,24,.14)); stroke-dasharray:900; stroke-dashoffset:900; opacity:0; transition:stroke-dashoffset .75s ease, opacity .2s ease; }
.alex-route-map .route-line.is-visible { stroke-dashoffset:0; opacity:1; }.alex-route-map .route-three { stroke:#c84c3d; }.alex-route-map .route-five { stroke:#37816c; }.alex-route-map .route-seven { stroke:#bf8a26; }
.alex-route-map .route-day-label { fill:#715d44; font:700 12px/1 'Plus Jakarta Sans', sans-serif; letter-spacing:1px; opacity:0; transition:opacity .25s ease .25s; }.alex-route-map .route-day-label.is-visible { opacity:1; }
.alex-stop { position:absolute; z-index:2; transform:translate(-50%,-50%); display:grid; grid-template-columns:28px max-content; gap:7px; align-items:center; color:#243d57; text-decoration:none; cursor:pointer; }.alex-stop:focus-visible { outline:3px solid rgba(200,76,61,.32); outline-offset:5px; border-radius:6px; }.alex-stop__pin { display:grid; place-items:center; width:25px; height:25px; border:2px solid #fff9ea; border-radius:50%; background:#c84c3d; color:#fff; box-shadow:0 2px 0 #803225,0 3px 8px rgba(56,38,23,.16); font-size:.62rem; font-weight:800; }.alex-stop__label { padding:3px 6px; border:1px solid rgba(151,118,74,.23); border-radius:5px; background:rgba(255,250,235,.9); box-shadow:0 2px 7px rgba(65,45,25,.05); font-size:.76rem; font-weight:800; line-height:1.2; }.alex-stop:hover .alex-stop__pin { background:#243d57; transform:scale(1.12); }.alex-stop:hover .alex-stop__label { color:#c84c3d; }
.alex-route-key { position:absolute; z-index:2; right:18px; bottom:15px; color:#897962; font-size:.72rem; line-height:1.55; text-align:right; }.alex-route-key strong { display:block; color:#5d4e3d; }
@media (max-width:650px) { .alex-route-map { min-height:660px; }.alex-stop { grid-template-columns:24px max-content; gap:4px; }.alex-stop__pin { width:23px; height:23px; font-size:.56rem; }.alex-stop__label { max-width:78px; padding:3px 4px; font-size:.63rem; white-space:normal; }.alex-route-key { left:14px; right:auto; text-align:left; }.handdrawn-route-controls button { padding:8px 11px; font-size:.8rem; } }
.city-map-plans { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.city-map-plan { border:1px solid #cbd5df; border-radius:999px; background:#fff; color:#31475b; padding:9px 15px; font:inherit; font-size:.88rem; font-weight:800; cursor:pointer; }
.city-map-plan:hover { border-color:#1f3b57; }
.city-map-plan[aria-pressed="true"] { color:#fff; border-color:#1f3b57; background:#1f3b57; box-shadow:0 5px 14px rgba(31,59,87,.2); }
.city-map-plan-summary { margin:0 0 16px; padding:12px 14px; border-left:3px solid #b64a3b; background:#f7f9fb; color:#526477; font-size:.9rem; line-height:1.65; }
.city-map-plan-summary strong { color:#1c2f42; }
.city-map { position:relative; height:clamp(390px,53vw,560px); overflow:hidden; border:1px solid #cdd6df; border-radius:16px; background:#e9edf0; box-shadow:0 14px 34px rgba(23,42,61,.12); isolation:isolate; }
.city-map-tiles,.city-map-routes,.city-map-markers { position:absolute; inset:0; }
.city-map-tiles { overflow:hidden; }.city-map-tiles img { position:absolute; width:256px; height:256px; max-width:none; user-select:none; pointer-events:none; }
.city-map-routes { z-index:1; pointer-events:none; }.city-map-markers { z-index:2; }
.map-route-line { fill:none; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; opacity:.92; filter:drop-shadow(0 1px 1px rgba(255,255,255,.8)); }
.map-marker { position:absolute; transform:translate(-50%,-100%); display:flex; align-items:center; gap:7px; color:#fff; text-decoration:none; white-space:nowrap; filter:drop-shadow(0 3px 5px rgba(24,43,61,.28)); transition:opacity .15s ease, transform .15s ease; }
.map-marker > span { display:grid; place-items:center; width:34px; height:34px; border:3px solid #fff; border-radius:50% 50% 50% 0; background:#b64a3b; transform:rotate(-45deg); }
.map-marker > span i { font-style:normal; font-size:.72rem; font-weight:800; transform:rotate(45deg); }
.map-marker > b { padding:5px 8px; border-radius:6px; background:rgba(27,45,62,.9); color:#fff; font-size:.78rem; font-weight:700; }
.map-marker.route-day-1 > span { background:#1f3b57; }.map-marker.route-day-2 > span { background:#b64a3b; }.map-marker.route-day-3 > span { background:#786548; }.map-marker.route-day-4 > span { background:#4e756b; }.map-marker.route-day-5 > span { background:#6f5c82; }
.map-marker.is-muted { opacity:.36; }.map-marker:hover,.map-marker:focus-visible { opacity:1; transform:translate(-50%,-100%) scale(1.08); outline:0; }
.city-map-credit { position:absolute; z-index:3; right:8px; bottom:6px; padding:3px 5px; background:rgba(255,255,255,.82); color:#46505e; font-size:.68rem; }.city-map-credit a { color:inherit; text-decoration:underline; }
.city-map-controls { position:absolute; z-index:3; top:12px; right:12px; display:grid; overflow:hidden; border:1px solid #cbd5df; border-radius:9px; box-shadow:0 4px 14px rgba(23,42,61,.15); }.city-map-controls button { width:34px; height:32px; border:0; border-bottom:1px solid #d8e0e7; background:#fff; color:#1f3b57; font-size:1.35rem; cursor:pointer; }.city-map-controls button:last-child { border-bottom:0; }.city-map-controls button:hover { background:#edf2f5; }
.map-place-grid { margin-top:20px; }.map-place-grid .card { min-height:0; }.map-place-grid .map-number { display:inline-grid; place-items:center; width:25px; height:25px; margin-bottom:10px; border-radius:50%; background:#eef2f5; color:#1f3b57; font-size:.72rem; font-weight:800; }
.city-hero--beijing .city-kicker { color:#b64a3b; }.city-hero--beijing h1 { color:#1f3b57; }.city-hero--beijing p { color:#526477; }.city-hero--beijing .city-stats strong { color:#1f3b57; }.city-hero--beijing .city-stats span { color:#647588; }
@media (max-width:650px) { .city-map { height:500px; }.map-marker > b { display:none; }.map-marker > span { width:32px; height:32px; } }

/* Beijing itinerary planner: a duration-first entry point with independent route pages. */
.beijing-duration-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:24px 0 34px; }
.beijing-duration-card { min-height:205px; display:flex; flex-direction:column; padding:20px; border:1px solid #ccd8df; border-radius:17px; background:#fff; color:#1f3b57; text-decoration:none; box-shadow:0 10px 22px rgba(31,59,87,.06); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.beijing-duration-card:hover,.beijing-duration-card:focus-visible { transform:translateY(-3px); border-color:#b64a3b; box-shadow:0 16px 30px rgba(31,59,87,.13); outline:0; }
.beijing-duration-card span { color:#b64a3b; font-size:.7rem; font-weight:800; letter-spacing:.12em; }.beijing-duration-card strong { margin:14px 0 8px; font-size:1.25rem; line-height:1.1; letter-spacing:-.04em; }.beijing-duration-card em { color:#607488; font-size:.88rem; font-style:normal; line-height:1.55; }.beijing-duration-card b { margin-top:auto; padding-top:18px; color:#b64a3b; font-size:.85rem; }
.beijing-duration-card--three { border-top:4px solid #c84c3d; }.beijing-duration-card--five { border-top:4px solid #37816c; }.beijing-duration-card--seven { border-top:4px solid #bf8a26; }
.beijing-plan-note { margin:0 0 40px; padding:22px 24px; border-left:4px solid #b64a3b; background:#f8fafb; }.beijing-plan-note > span { color:#b64a3b; font-size:.7rem; font-weight:800; letter-spacing:.12em; }.beijing-plan-note h2 { max-width:26ch; margin:7px 0 9px; color:#1f3b57; font-size:1.5rem; letter-spacing:-.035em; }.beijing-plan-note p { max-width:70ch; margin:0; color:#607488; line-height:1.7; }
.beijing-visitor-basics { margin-top:46px; }.beijing-basics-intro { max-width:74ch; margin:0 0 20px; color:#607488; line-height:1.7; }.visitor-basics-grid { align-items:stretch; }.visitor-basics-card { display:flex; flex-direction:column; min-height:260px; }.visitor-basics-card h3 { max-width:22ch; }.visitor-basics-card p { line-height:1.68; }.visitor-basics-card .more { margin-top:auto; padding-top:17px; }.beijing-basics-source-note { margin:18px 0 0; color:#738295; font-size:.78rem; }
.itinerary-page { max-width:880px; margin-inline:auto; }.itinerary-hero { display:flex; justify-content:space-between; gap:28px; align-items:flex-end; padding:clamp(28px,5vw,54px); border-radius:22px; color:#fff; overflow:hidden; background:#243d57; }.itinerary-hero--three { background:linear-gradient(135deg,#203d59,#355d7d); }.itinerary-hero--five { background:linear-gradient(135deg,#24594f,#397c6a); }.itinerary-hero--seven { background:linear-gradient(135deg,#6e5421,#b27e25); }.itinerary-hero span { display:block; margin-bottom:12px; font-size:.72rem; font-weight:800; letter-spacing:.13em; }.itinerary-hero h1 { margin:0 0 10px; color:#fff; font-size:clamp(2.25rem,5vw,4rem); line-height:1; letter-spacing:-.055em; }.itinerary-hero p { max-width:58ch; margin:0; color:rgba(255,255,255,.88); line-height:1.7; }.itinerary-hero > a { flex:none; border:1px solid rgba(255,255,255,.5); border-radius:999px; padding:9px 13px; color:#fff; font-size:.85rem; font-weight:800; text-decoration:none; white-space:nowrap; }
.itinerary-switcher { display:flex; gap:8px; margin:18px 0 30px; }.itinerary-switcher a { border:1px solid #ced9df; border-radius:999px; padding:8px 13px; color:#50677a; font-size:.86rem; font-weight:800; text-decoration:none; }.itinerary-switcher a[aria-current="page"] { border-color:#1f3b57; background:#1f3b57; color:#fff; }
.itinerary-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:23px 0 28px; }.itinerary-facts div { padding:13px; border:1px solid var(--line); border-radius:12px; background:#f9fbfc; }.itinerary-facts span,.itinerary-facts strong { display:block; }.itinerary-facts span { color:#728295; font-size:.7rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }.itinerary-facts strong { margin-top:4px; color:#1f3b57; font-size:.92rem; line-height:1.3; }
.itinerary-day { display:grid; grid-template-columns:165px minmax(0,1fr); gap:28px; padding:30px 0; border-top:1px solid var(--line); }.itinerary-day__label span { color:#b64a3b; font-size:.72rem; font-weight:800; letter-spacing:.12em; }.itinerary-day__label h2 { margin:6px 0 7px; color:#1f3b57; font-size:1.3rem; letter-spacing:-.035em; }.itinerary-day__label p { margin:0; color:#718094; font-size:.86rem; line-height:1.55; }.itinerary-day__body h3 { margin:0 0 7px; color:#243d57; font-size:1rem; }.itinerary-day__body h3:not(:first-child) { margin-top:17px; }.itinerary-day__body p { margin:0; color:#526477; line-height:1.7; }.itinerary-move { margin-top:14px !important; padding:11px 13px; border-left:3px solid #d9e2e8; background:#fafcfd; font-size:.9rem; }.itinerary-move a { font-weight:800; }
.itinerary-photo { margin:0 0 7px; }.itinerary-photo img { display:block; width:100%; height:auto; aspect-ratio:1200/480; object-fit:cover; border-radius:15px; }.itinerary-photo figcaption { margin:7px 4px 0; color:#718094; font-size:.8rem; line-height:1.5; }.itinerary-practical { margin:34px 0 0; padding:21px 23px; border:1px solid #d8e1e7; border-radius:15px; background:#f8fafb; }.itinerary-practical h2 { margin:0 0 12px; color:#1f3b57; font-size:1.25rem; }.itinerary-practical ul { margin:0; padding-left:20px; color:#526477; line-height:1.75; }
@media (max-width:700px) { .beijing-duration-nav { grid-template-columns:1fr; }.beijing-duration-card { min-height:155px; }.itinerary-hero { display:block; }.itinerary-hero > a { display:inline-block; margin-top:18px; }.itinerary-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }.itinerary-day { grid-template-columns:1fr; gap:10px; }.itinerary-day__label { display:grid; grid-template-columns:auto 1fr; column-gap:11px; align-items:baseline; }.itinerary-day__label span { grid-row:span 2; }.itinerary-day__label h2 { margin:0; }.itinerary-day__label p { grid-column:2; } }

/* Itinerary Hub page styles */
.itinerary-hub .itinerary-hero--hub { background:linear-gradient(135deg, #f8fafc 0%, #eef4f8 100%); color:#1f3b57; }
.itinerary-hub .itinerary-hero--hub h1 { color:#1f3b57; }
.itinerary-hub .itinerary-hero--hub p { color:#56687a; }
.itinerary-hub .itinerary-hero--hub span { color:#b64a3b; }
.itinerary-hub .itinerary-hero--hub > a { border-color:#cbd6dd; color:#3f556b; }
.itinerary-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:20px; margin:28px 0; }
.itinerary-card { display:block; padding:24px; border-radius:16px; border:1px solid var(--line); background:#fff; text-decoration:none; transition:transform .2s ease, box-shadow .2s ease; position:relative; }
.itinerary-card:hover { transform:translateY(-3px); box-shadow:0 8px 30px rgba(31,59,87,0.12); }
.itinerary-card--7 { border-top:4px solid #b64a3b; }
.itinerary-card--coming { opacity:0.7; cursor:default; pointer-events:none; }
.itinerary-card__length { display:inline-block; padding:4px 10px; border-radius:6px; background:#1f3b57; color:#fff; font-size:.72rem; font-weight:800; letter-spacing:.08em; margin-bottom:12px; }
.itinerary-card h3 { margin:0 0 10px; color:#1f3b57; font-size:1.25rem; letter-spacing:-.02em; }
.itinerary-card p { margin:0 0 16px; color:#5b6d7e; line-height:1.6; font-size:.92rem; }
.itinerary-card__cities { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:16px; font-size:.85rem; font-weight:600; color:#345; }
.itinerary-card__cities span { padding:4px 10px; background:#f0f5f8; border-radius:8px; }
.itinerary-card__arrow { color:#b64a3b !important; background:none !important; padding:0 !important; font-weight:900; }
.itinerary-card__cta { display:inline-block; color:#b64a3b; font-weight:700; font-size:.9rem; }
.itinerary-card__tag { display:inline-block; padding:4px 10px; background:#e7edf2; color:#718094; border-radius:6px; font-size:.75rem; font-weight:700; }
.city-itinerary-links { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:16px; margin:20px 0; }

/* Route map visualization on multi-day itineraries */
.itinerary-route-map { margin:28px 0 34px; padding:24px; border-radius:16px; background:#f8fbfd; border:1px solid #dce6ec; overflow-x:auto; overflow-y:visible; -webkit-overflow-scrolling:touch; }
.itinerary-route-map h3 { margin:0 0 18px; color:#1f3b57; font-size:1.1rem; }
.route-stops { display:flex; align-items:stretch; justify-content:flex-start; gap:18px; min-width:max-content; }
.itinerary-route-map .route-stop { flex:none; width:150px; min-height:130px; display:flex; flex-direction:column; justify-content:flex-start; align-items:center; padding:22px 14px; text-align:center; border-radius:14px; background:#fff; border:1px solid var(--line); position:static; overflow:visible; box-shadow:none; box-sizing:border-box; }
.itinerary-route-map .route-stop + .route-stop { margin-top:0; }
.itinerary-route-map .route-stop strong { display:block; margin:12px 0 0; color:#1f3b57; font-size:1.3rem; line-height:1.2; word-break:keep-all; white-space:nowrap; }
.itinerary-route-map .route-stop span:not(.route-stop__days) { display:none; }
.route-stop__days { display:inline-block !important; margin:0 0 4px 0 !important; padding:6px 12px; border-radius:7px; font-size:.8rem !important; line-height:1; font-weight:800; color:#fff !important; background:#1f3b57; box-sizing:border-box; min-width:max-content; }
.route-stop--beijing .route-stop__days { background:#b64a3b; }
.route-stop--xian .route-stop__days { background:#c28b2e; }
.route-stop--chengdu .route-stop__days { background:#a83232; }
.route-stop--shanghai .route-stop__days { background:#2e7d5b; }
.route-stop--hangzhou .route-stop__days { background:#5b7a56; }
.route-stop--suzhou .route-stop__days { background:#6b5b8c; }
.route-stop--zhangjiajie .route-stop__days { background:#3d7a55; }
.route-stop--wuhan .route-stop__days { background:#8c4f3a; }
.route-stop--nanjing .route-stop__days { background:#4a6b8c; }

/* Itinerary hero variants */
.itinerary-hero--ten { background: linear-gradient(135deg, #f0f7f4 0%, #e8f0e9 100%); border-left: 4px solid #2e7d5b; }
.itinerary-hero--ten h1 { color: #1f3b57; }
.itinerary-hero--ten span { color: #2e7d5b; }
.itinerary-hero--fourteen { background: linear-gradient(135deg, #f5f0f8 0%, #ece5f2 100%); border-left: 4px solid #6b5b8c; }
.itinerary-hero--fourteen h1 { color: #1f3b57; }
.itinerary-hero--fourteen span { color: #6b5b8c; }

/* Itinerary card variants */
.itinerary-card--10 { border-top: 3px solid #2e7d5b; }
.itinerary-card--14 { border-top: 3px solid #6b5b8c; }
.itinerary-practical-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px 28px; margin: 28px 0; }
.itinerary-practical-box h2 { margin-top: 0; font-size: 1.35rem; color: #1f3b57; }
.itinerary-practical-box ol, .itinerary-practical-box ul { margin: 12px 0; padding-left: 22px; }
.itinerary-practical-box li { margin-bottom: 8px; line-height: 1.6; }
body .itinerary-route-map .route-connector,
html body .itinerary-route-map .route-connector { position:static; flex:none; display:flex; align-items:center; justify-content:center; text-align:center; margin:0; padding:0 12px; color:#718094; font-size:.78rem; font-weight:600; white-space:nowrap; align-self:center; min-width:max-content; box-sizing:border-box; }
body .itinerary-route-map .route-connector::before,
html body .itinerary-route-map .route-connector::before { content:none !important; display:none !important; visibility:hidden !important; position:static !important; left:auto !important; width:0 !important; height:0 !important; }
body .itinerary-route-map .route-connector > span::after,
html body .itinerary-route-map .route-connector > span::after { content:" →"; color:#b64a3b; font-weight:700; }
.itinerary-day--travel { background:#fbfcfd; border-radius:14px; margin:8px 0; }

/* Destination hub */
.destination-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:18px; margin:28px 0; }
.destination-card { display:block; padding:22px; border-radius:16px; border:1px solid var(--line); background:#fff; text-decoration:none; transition:transform .2s ease, box-shadow .2s ease; }
.destination-card:hover { transform:translateY(-3px); box-shadow:0 8px 30px rgba(31,59,87,0.12); }
.destination-card h3 { margin:0 0 8px; color:#1f3b57; font-size:1.25rem; }
.destination-card p { margin:0 0 14px; color:#50677a; font-size:.93rem; line-height:1.55; }
.destination-card__meta { display:flex; gap:8px; flex-wrap:wrap; color:#7a8a9a; font-size:.8rem; margin-bottom:10px; }
.destination-card__cta { color:#b64a3b; font-weight:700; font-size:.9rem; }
.destination-card--beijing { border-top:3px solid #b64a3b; }
.destination-card--xian { border-top:3px solid #c28b2e; }
.destination-card--chengdu { border-top:3px solid #a83232; }
.destination-card--shanghai { border-top:3px solid #2e7d5b; }
.destination-card--hangzhou { border-top:3px solid #5b7a56; }
.destination-card--suzhou { border-top:3px solid #6b5b8c; }
.destination-card--nanjing { border-top:3px solid #4a6b8c; }
.destination-card--wuhan { border-top:3px solid #8c4f3a; }
.destination-card--zhangjiajie { border-top:3px solid #3d7a55; }

/* City "Top sights" card grid (attractions listed directly on each city page) */
.city-top-sights { margin: 46px 0 8px; }
.city-top-sights .section-heading { margin-bottom: 22px; }
.sight-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:14px; margin:0; }
.sight-card { display:flex; flex-direction:column; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; color:#1f3b57; text-decoration:none; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.sight-card:hover { transform:translateY(-3px); border-color:#b64a3b; box-shadow:0 10px 26px rgba(31,59,87,.1); }
.sight-card h3 { margin:0 0 8px; font-size:1.02rem; line-height:1.3; color:#1f3b57; }
.sight-card p { margin:0 0 12px; font-size:.88rem; line-height:1.55; color:#50677a; }
.sight-card__cta, .sight-card > span:last-child { margin-top:auto; font-size:.85rem; font-weight:800; color:#b64a3b; }
@media (max-width:700px) { .sight-grid { grid-template-columns:1fr; } .city-top-sights { margin:36px 0 0; } }

@media (max-width:700px) {
  .itinerary-route-map .route-stops { flex-direction:column; gap:0; align-items:stretch; min-width:0; justify-content:flex-start; }
  .itinerary-route-map .route-stop { width:100% !important; flex:none !important; min-height:auto !important; padding:18px 16px !important; }
  body .itinerary-route-map .route-connector,
  html body .itinerary-route-map .route-connector { position:relative; width:auto; min-height:48px; padding:12px 0 12px 24px; margin:0; text-align:left; border-left:2px dashed #b8c5cf; border-top:none; white-space:normal; display:block !important; align-self:auto !important; flex:auto !important; min-width:0 !important; }
  body .itinerary-route-map .route-connector::after { content:""; display:none !important; }
  body .itinerary-route-map .route-connector > span::after,
  html body .itinerary-route-map .route-connector > span::after { content:"" !important; display:none !important; }
  .itinerary-grid { grid-template-columns:1fr; }
  .destination-grid { grid-template-columns:1fr; }
  .city-itinerary-links { grid-template-columns:1fr; }
  .itinerary-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}



/* =========================================================
   HARD OVERRIDE: Route map in itinerary pages MUST win over
   the compressed .route-stop/.route-connector base rules on
   line 318. Uses !important on all critical props because
   old cached browsers + minified specificity caused cut-off
   badges, clipped city names, and wrong ↓ arrow direction.
   ========================================================= */
html body .itinerary-route-map,
body.page .itinerary-route-map { overflow-x:auto !important; overflow-y:visible !important; }
html body .itinerary-route-map .route-stops,
body.page .itinerary-route-map .route-stops {
  display:flex !important;
  flex-direction:row !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:18px !important;
  min-width:max-content !important;
}
html body .itinerary-route-map .route-stops > .route-stop,
body.page .itinerary-route-map .route-stops > .route-stop {
  flex:none !important;
  width:160px !important;
  min-width:160px !important;
  max-width:160px !important;
  min-height:140px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  align-items:center !important;
  padding:24px 14px !important;
  text-align:center !important;
  border-radius:14px !important;
  background:#fff !important;
  border:1px solid #e2e8f0 !important;
  position:static !important;
  overflow:visible !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
  margin:0 !important;
  margin-top:0 !important;
}
html body .itinerary-route-map .route-stop > .route-stop__days,
body.page .itinerary-route-map .route-stop > .route-stop__days {
  display:inline-block !important;
  visibility:visible !important;
  margin:0 0 10px 0 !important;
  padding:6px 14px !important;
  border-radius:8px !important;
  font-size:.82rem !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  color:#fff !important;
  min-width:max-content !important;
  width:auto !important;
  max-width:none !important;
  box-sizing:border-box !important;
  overflow:visible !important;
  text-align:center !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
  word-break:keep-all !important;
}
html body .itinerary-route-map .route-stop > strong,
body.page .itinerary-route-map .route-stop > strong {
  display:block !important;
  visibility:visible !important;
  margin:4px 0 0 0 !important;
  padding:0 !important;
  color:#1f3b57 !important;
  font-size:1.35rem !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  width:auto !important;
  max-width:none !important;
  overflow:visible !important;
  text-align:center !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
  word-break:keep-all !important;
}
html body .itinerary-route-map .route-stop > span:not(.route-stop__days),
body.page .itinerary-route-map .route-stop > span:not(.route-stop__days) {
  display:none !important;
  visibility:hidden !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
}
html body .itinerary-route-map .route-stops > .route-connector,
body.page .itinerary-route-map .route-stops > .route-connector {
  position:static !important;
  flex:none !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  align-self:center !important;
  margin:0 !important;
  padding:0 10px !important;
  padding-left:0 !important;
  color:#718094 !important;
  font-size:.8rem !important;
  font-weight:600 !important;
  white-space:nowrap !important;
  min-width:max-content !important;
  width:auto !important;
  max-width:none !important;
  box-sizing:border-box !important;
  overflow:visible !important;
  border:none !important;
  border-left:none !important;
}
html body .itinerary-route-map .route-stops > .route-connector::before,
body.page .itinerary-route-map .route-stops > .route-connector::before {
  content:none !important;
  display:none !important;
  visibility:hidden !important;
  position:static !important;
  left:auto !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
  color:transparent !important;
  font-size:0 !important;
}
html body .itinerary-route-map .route-stops > .route-connector > span,
body.page .itinerary-route-map .route-stops > .route-connector > span {
  display:inline !important;
  overflow:visible !important;
  white-space:nowrap !important;
  padding:0 !important;
  margin:0 !important;
}
html body .itinerary-route-map .route-stops > .route-connector > span::after,
body.page .itinerary-route-map .route-stops > .route-connector > span::after {
  content:" →" !important;
  display:inline !important;
  color:#b64a3b !important;
  font-weight:700 !important;
  visibility:visible !important;
}
/* Color the badge backgrounds correctly */
html body .itinerary-route-map .route-stop--beijing > .route-stop__days { background:#b64a3b !important; }
html body .itinerary-route-map .route-stop--xian > .route-stop__days    { background:#c28b2e !important; }
html body .itinerary-route-map .route-stop--chengdu > .route-stop__days { background:#a83232 !important; }
html body .itinerary-route-map .route-stop--shanghai > .route-stop__days{ background:#2e7d5b !important; }
html body .itinerary-route-map .route-stop--hangzhou > .route-stop__days{ background:#5b7a56 !important; }
html body .itinerary-route-map .route-stop--suzhou > .route-stop__days  { background:#6b5b8c !important; }
html body .itinerary-route-map .route-stop--zhangjiajie > .route-stop__days{ background:#3d7a55 !important; }
html body .itinerary-route-map .route-stop--wuhan > .route-stop__days   { background:#8c4f3a !important; }
html body .itinerary-route-map .route-stop--nanjing > .route-stop__days { background:#4a6b8c !important; }

/* Mobile: vertical stack, keep text legible */
@media (max-width:700px) {
  html body .itinerary-route-map .route-stops,
  body.page .itinerary-route-map .route-stops {
    flex-direction:column !important;
    gap:0 !important;
    min-width:0 !important;
    align-items:stretch !important;
  }
  html body .itinerary-route-map .route-stops > .route-stop,
  body.page .itinerary-route-map .route-stops > .route-stop {
    width:100% !important;
    min-width:100% !important;
    max-width:100% !important;
    min-height:auto !important;
    padding:20px 16px !important;
  }
  html body .itinerary-route-map .route-stops > .route-connector,
  body.page .itinerary-route-map .route-stops > .route-connector {
    position:relative !important;
    width:auto !important;
    min-height:48px !important;
    padding:12px 0 12px 24px !important;
    text-align:left !important;
    border-left:2px dashed #b8c5cf !important;
    display:block !important;
    flex:auto !important;
    min-width:0 !important;
  }
  html body .itinerary-route-map .route-stops > .route-connector > span::after,
  body.page .itinerary-route-map .route-stops > .route-connector > span::after {
    content:"" !important;
    display:none !important;
  }
}

/* =========================================================
   Growth & monetization blocks (per competitor research)
   - Newsletter / lead capture (the "China Survival Kit" hook)
   - Tool / affiliate callout (natural, disclosed)
   - Insider tip (local-perspective differentiation)
   Keep them calm and on-brand; no clutter, no popups.
   ========================================================= */

/* Newsletter / lead capture */
.newsletter { background:var(--brand-soft); border:1px solid #f6d8cf; border-radius:var(--radius); padding:26px 28px; margin:8px 0 38px; }
.newsletter h2 { margin-bottom:6px; font-size:1.4rem; }
.newsletter p { color:var(--body); margin-bottom:16px; font-size:.98rem; }
.newsletter form { display:flex; gap:10px; flex-wrap:wrap; align-items:stretch; }
.newsletter label { position:absolute; left:-999px; }
.newsletter input[type="email"] { flex:1 1 240px; min-width:0; padding:12px 16px; border:1px solid var(--line); border-radius:999px; font-size:.97rem; background:#fff; color:var(--ink); }
.newsletter input[type="email"]::placeholder { color:var(--muted); }
.newsletter input[type="email"]:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }
.newsletter .btn { flex:none; }
.newsletter .fine { margin:12px 0 0; font-size:.82rem; color:var(--muted); }
.newsletter .fine a { color:var(--muted); text-decoration:underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; }
}

/* Tool / affiliate callout (natural recommendation, disclosed) */
.tool-callout { border:1px solid var(--line); border-left:4px solid var(--brand); background:var(--surface); border-radius:var(--radius); padding:16px 18px; margin:24px 0; display:flex; gap:14px; align-items:flex-start; }
.tool-callout .icon { flex:none; width:36px; height:36px; border-radius:10px; background:#fff; color:var(--brand); display:grid; place-items:center; box-shadow:var(--shadow); }
.tool-callout .icon svg { width:20px; height:20px; }
.tool-callout .tc-body { flex:1; min-width:0; }
.tool-callout h3 { font-size:1.04rem; margin-bottom:3px; }
.tool-callout p { margin:0 0 10px; font-size:.94rem; color:var(--body); }
.tool-callout .tc-link { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--brand); font-size:.93rem; }
.tool-callout .tc-link:hover { text-decoration:underline; }
.tool-callout .tc-note { display:block; margin-top:8px; font-size:.78rem; color:var(--muted); }

/* Insider tip (local perspective — the site's differentiation) */
.insider-tip { border:1px dashed #c9a23f; background:#fdf8ec; border-radius:var(--radius); padding:16px 18px; margin:24px 0; }
.insider-tip .it-label { display:inline-flex; align-items:center; gap:6px; font-size:.72rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:#9a6b00; margin-bottom:8px; }
.insider-tip .it-label svg { width:15px; height:15px; }
.insider-tip p { margin:0; font-size:.97rem; color:var(--body); }
.insider-tip strong { color:var(--ink); }

/* Survival Kit landing hero */
.kit-hero { background:linear-gradient(135deg,#fff,var(--brand-soft)); border:1px solid #f6d8cf; border-radius:var(--radius); padding:30px; margin:8px 0 34px; display:flex; gap:22px; align-items:center; flex-wrap:wrap; }
.kit-hero .kh-text { flex:1 1 300px; min-width:0; }
.kit-hero h1 { margin-bottom:10px; }
.kit-hero p { color:var(--body); margin-bottom:18px; }
.kit-hero .kh-badge { display:inline-flex; align-items:center; gap:7px; font-size:.8rem; font-weight:600; color:var(--brand-dark); background:#fff; border:1px solid #f6d8cf; padding:6px 13px; border-radius:999px; }

/* Kit checklist (reuses prose lists; just a touch of spacing) */
.kit-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin:18px 0 8px; }
.kit-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:16px 18px; }
.kit-card h3 { font-size:1.02rem; margin-bottom:8px; }
.kit-card ul { margin:0 0 0 1.1em; }
.kit-card li { margin-bottom:6px; font-size:.95rem; color:var(--body); }

/* Resources / tools hub cards */
.res-card { display:flex; gap:14px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; box-shadow:var(--shadow); }
.res-card .icon { flex:none; width:40px; height:40px; border-radius:11px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; }
.res-card .icon svg { width:20px; height:20px; }
.res-card h3 { font-size:1.06rem; margin-bottom:4px; }
.res-card p { margin:0 0 10px; font-size:.93rem; color:var(--muted); }
.res-card .tc-link { font-weight:600; color:var(--brand); font-size:.92rem; }
.res-card .tc-link:hover { text-decoration:underline; }

/* =========================================================
   Visa checker (interactive, per inbound-travel research)
   ========================================================= */
.visa-checker { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px; margin:8px 0 26px; }
.visa-checker > label { display:block; font-weight:600; color:var(--ink); margin-bottom:10px; font-size:.95rem; }
.vc-select { width:100%; padding:13px 15px; border:1px solid var(--line); border-radius:999px; font:inherit; font-size:1rem; background:#fff; color:var(--ink); }
.vc-select:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }
.vc-result { margin-top:18px; }
.vc-hint { color:var(--muted); font-size:.95rem; margin:0; }
.vc-badge { display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:.95rem; padding:8px 15px; border-radius:999px; margin-bottom:12px; }
.vc-ok { background:#e6f5f1; color:var(--ok); }
.vc-blue { background:#e7f0fb; color:#1f5fbf; }
.vc-amber { background:#fdf3e3; color:#9a6b00; }
.vc-result p { margin:0 0 10px; }
.vc-result .btn { margin-top:4px; }
.vc-note { font-size:.9rem; color:var(--muted); }

/* =========================================================
   Itinerary tools (print / calendar export — Western habit)
   ========================================================= */
.itinerary-tools { display:flex; gap:10px; flex-wrap:wrap; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; margin:6px 0 30px; }
.itinerary-tools label { font-weight:600; color:var(--ink); font-size:.9rem; }
.itinerary-tools input[type="date"] { padding:9px 12px; border:1px solid var(--line); border-radius:999px; font:inherit; color:var(--ink); background:#fff; }
.itinerary-tools input[type="date"]:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }
.itinerary-tools .btn { font-size:.9rem; padding:9px 15px; }

/* Print: show only the article, hide all chrome */
@media print {
  .topbar, .sidebar, .overlay, .site-footer, .related, .itinerary-tools,
  .share-bar, .menu-btn, .side-foot, .skip-link { display:none !important; }
  .layout { display:block; }
  .content { padding:0; }
  .content-inner, .article { max-width:100%; }
  body { font-size:12pt; color:#000; }
  a { color:#000; }
  .callout, .tool-callout, .insider-tip, .table, blockquote { break-inside:avoid; }
  .article-header { margin-bottom:14px; }
}

/* =========================================================
   Share + save bar (per Western social/bookmark research)
   - Direct share URLs only: NO third-party tracking scripts
     (privacy-safe, GDPR-era trust signal).
   - Web Share API = native "send to phone / device" on mobile.
   - Save = private, no-account reading list (localStorage).
   ========================================================= */
.share-bar { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:0 0 26px; padding:12px 14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.share-bar .sb-label { font-size:.74rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-right:2px; }
.share-btn { width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:#fff; color:var(--body); display:grid; place-items:center; padding:0; transition:transform .15s ease, border-color .15s ease, color .15s ease; }
.share-btn:hover { transform:translateY(-2px); border-color:var(--brand); color:var(--brand); }
.share-btn svg { width:18px; height:18px; fill:currentColor; }
.share-btn:active { transform:translateY(0); }
.sb-sep { width:1px; height:24px; background:var(--line); margin:0 3px; }
.save-btn { display:inline-flex; align-items:center; gap:7px; padding:0 16px; height:38px; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--body); font-weight:600; font-size:.9rem; transition:all .15s ease; }
.save-btn svg { width:17px; height:17px; fill:currentColor; }
.save-btn:hover { border-color:var(--brand); color:var(--brand); }
.save-btn.saved, .save-btn.saved:hover { background:var(--brand); border-color:var(--brand); color:#fff; }

/* Saved reading-list page */
.saved-note { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:14px 18px; margin-bottom:22px; font-size:.95rem; color:var(--body); }
.saved-note strong { color:var(--ink); }
.saved-list { display:flex; flex-direction:column; gap:12px; margin-top:6px; }
.saved-item { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:15px 18px; box-shadow:var(--shadow); }
.saved-item a.si-title { font-weight:600; color:var(--ink); font-size:1.02rem; flex:1; min-width:0; }
.saved-item a.si-title:hover { color:var(--brand); }
.saved-item .si-date { color:var(--muted); font-size:.85rem; white-space:nowrap; }
.saved-item .si-remove { background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:7px 13px; font-size:.85rem; color:var(--body); }
.saved-item .si-remove:hover { border-color:var(--brand); color:var(--brand); }
.saved-empty { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:28px; text-align:center; color:var(--muted); font-size:.97rem; line-height:1.7; }
.saved-empty a { color:var(--brand); font-weight:600; }

/* =========================================================
   Recommended Tools page
   ========================================================= */
.notice { font-size:.95rem; }
.tool-list { display:flex; flex-direction:column; gap:24px; margin-top:18px; }
.tool-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px 28px; transition:border-color .15s ease, box-shadow .15s ease; }
.tool-card:hover { border-color:#d8dde2; box-shadow:var(--shadow); }
.tool-card--free { background:var(--surface); }
.tool-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:14px; flex-wrap:wrap; }
.tool-info h3 { font-size:1.15rem; margin-bottom:3px; }
.tool-tag { font-size:.82rem; color:var(--muted); font-weight:500; margin:0; }
.tool-btn { white-space:nowrap; flex-shrink:0; }
.tool-card p { font-size:.95rem; color:var(--body); line-height:1.7; margin:0 0 12px; }
.tool-card p:last-child { margin-bottom:0; }
.tool-meta { font-size:.85rem; color:var(--muted); padding-top:10px; border-top:1px dashed var(--line); margin-top:8px; }
.tool-meta a { color:var(--brand); font-weight:500; }
.tool-meta a:hover { text-decoration:underline; }

@media (max-width:600px) {
  .tool-card { padding:20px 18px; }
  .tool-card-header { flex-direction:column; align-items:flex-start; gap:12px; }
}
