/* Chinaroutemap — shared styles (tokens, header, notices, posts, rail, footer) */
:root{
  --accent:#C73B22;
  --accent-deep:color-mix(in oklab, var(--accent), black 22%);
  --accent-soft:color-mix(in oklab, var(--accent), white 88%);
  --ink:#211C15;
  --ink-soft:#5C5346;
  --paper:#FBF7EE;
  --cream:#F4EDDF;
  --line:#E2D8C4;
  --green:#2E6B4F;
  --blue:#2C5E8A;
  --amber:#B07818;
  --teal:#1F6E6B;
  --card-shadow:0 1px 2px rgba(40,28,12,.18), 0 10px 24px -12px rgba(40,28,12,.45);
  --tilt-scale:1;
  font-size:16px;
}
body.no-tilt{ --tilt-scale:0; }
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:auto; }
body{
  font-family:"Bricolage Grotesque", sans-serif;
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  text-wrap:pretty;
}
.mono{ font-family:"Courier Prime", monospace; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; background:none; border:none; color:inherit; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

/* ---------- utility strip ---------- */
.strip{
  background:var(--ink); color:#EFE6D4;
  font-family:"Courier Prime", monospace; font-size:12.5px; letter-spacing:.04em;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:7px 28px;
}
.strip .dot{ color:var(--accent); }
.strip-right{ display:flex; gap:18px; align-items:center; }
.lang-toggle{ display:flex; border:1px solid #4a4234; border-radius:3px; overflow:hidden; }
.lang-toggle button{ padding:2px 9px; font-family:inherit; font-size:12px; color:#B7AC97; }
.lang-toggle button.on{ background:#EFE6D4; color:var(--ink); }

/* ---------- header ---------- */
header.site{
  display:flex; align-items:center; gap:36px;
  padding:18px 28px; border-bottom:2px solid var(--ink);
  background:var(--paper); position:sticky; top:0; z-index:50;
}
.logo{ display:flex; align-items:center; gap:12px; }
.logo-seal{
  width:38px; height:38px; background:var(--accent); color:#FFF6EA;
  display:grid; place-items:center; font-weight:700; font-size:20px;
  border-radius:4px; transform:rotate(-3deg);
  box-shadow:inset 0 0 0 2px rgba(255,246,234,.35);
}
.logo-name{ font-weight:750; font-size:21px; letter-spacing:-.02em; line-height:1; }
.logo-name small{ display:block; font-family:"Courier Prime",monospace; font-weight:400; font-size:10.5px; letter-spacing:.14em; color:var(--ink-soft); margin-top:3px; }
nav.primary{ display:flex; gap:4px; }
nav.primary a{ padding:8px 13px; font-weight:600; font-size:15px; border-radius:5px; color:var(--ink-soft); }
nav.primary a:hover{ background:var(--cream); color:var(--ink); }
nav.primary a.active{ color:var(--ink); box-shadow:inset 0 -3px 0 var(--accent); border-radius:5px 5px 0 0; }
.header-actions{ margin-left:auto; display:flex; gap:12px; align-items:center; }
.btn-ghost{ font-weight:600; font-size:15px; padding:9px 14px; border-radius:6px; }
.btn-ghost:hover{ background:var(--cream); }
.btn-pin{
  background:var(--accent); color:#FFF6EA; font-weight:650; font-size:15px;
  padding:10px 18px; border-radius:6px; box-shadow:0 2px 0 var(--accent-deep);
  display:flex; gap:8px; align-items:center;
}
.btn-pin:hover{ transform:translateY(-1px); box-shadow:0 3px 0 var(--accent-deep); }

/* ---------- placeholders & stamps ---------- */
.gcard img.gphoto{ width:100%; height:130px; object-fit:cover; border-radius:3px; margin-bottom:14px; display:block; background:var(--cream); }

/* ---------- city essentials (see / eat / know) ---------- */
.essentials .ess-grid{ display:grid; grid-template-columns:1.35fr 1.05fr 1.2fr; gap:18px; align-items:stretch; }
.ess-card{ background:#fff; border:1.5px solid var(--ink); border-radius:10px; padding:18px 20px 20px; box-shadow:4px 4px 0 var(--cream), 4px 4px 0 1.5px var(--line); }
.ess-card > h3{ font-size:12.5px; font-family:"Courier Prime",monospace; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--accent); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.ess-card > h3 .ei{ font-size:15px; }
.ess-card.eat > h3{ color:var(--amber); }
.ess-card.know > h3{ color:var(--blue); }
.ess-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.ess-chips span{ font-size:13.5px; font-weight:600; background:var(--paper); border:1.5px solid var(--line); border-radius:8px; padding:6px 11px; display:inline-flex; align-items:baseline; gap:6px; line-height:1.2; }
.ess-chips span i{ font-style:normal; font-family:"Courier Prime",monospace; font-size:10.5px; color:var(--ink-soft); font-weight:400; }
.ess-food{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.ess-food li{ font-size:13.5px; line-height:1.45; color:var(--ink-soft); padding-left:15px; position:relative; }
.ess-food li::before{ content:""; position:absolute; left:2px; top:8px; width:5px; height:5px; border-radius:50%; background:var(--amber); }
.ess-food li b{ color:var(--ink); font-weight:700; }
.ess-food li i{ font-style:normal; font-family:"Courier Prime",monospace; font-size:10.5px; color:var(--ink-soft); }
.ess-meta{ display:flex; flex-direction:column; margin-bottom:14px; }
.ess-meta > div{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:8px 0; border-bottom:1px dashed color-mix(in oklab,var(--ink),transparent 84%); }
.ess-meta > div:last-child{ border-bottom:none; }
.ess-meta .k{ font-family:"Courier Prime",monospace; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); }
.ess-meta .v{ font-size:13.5px; font-weight:700; color:var(--ink); text-align:right; }
.ess-tip{ font-size:12.5px; line-height:1.5; color:#6f5a31; background:#fcf6ee; border:1px solid #efe2cb; border-radius:8px; padding:11px 13px; }
.ess-tip b{ color:var(--amber); font-weight:700; }
@media (max-width:1080px){ .essentials .ess-grid{ grid-template-columns:1fr; } }

/* ---------- hub hero stamps ---------- */
.stamps{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.stamp{
  font-family:"Courier Prime",monospace; font-weight:700; font-size:9.5px; letter-spacing:.1em; text-transform:uppercase;
  border:1.5px solid currentColor; padding:2px 6px; border-radius:2px;
}
.st-ok{ color:var(--green); } .st-exp{ color:#8A5A10; } .st-official{ color:var(--blue); } .st-warn{ color:var(--accent); }
.kicker{
  font-family:"Courier Prime",monospace; font-size:13px; letter-spacing:.18em;
  color:var(--accent); text-transform:uppercase; margin-bottom:18px; display:flex; align-items:center; gap:10px;
}
.kicker::before{ content:""; width:34px; height:2px; background:var(--accent); display:inline-block; }

/* ---------- noticeboard ---------- */
.board-head{ display:flex; align-items:baseline; gap:20px; margin-bottom:18px; flex-wrap:wrap; }
.board-head h2{ font-size:30px; font-weight:760; letter-spacing:-.02em; }
.board-head .mono-note{ font-family:"Courier Prime",monospace; font-size:12.5px; color:var(--ink-soft); letter-spacing:.04em; }
.filters{ margin-left:auto; display:flex; gap:6px; flex-wrap:wrap; }
.filters button{
  font-family:"Courier Prime",monospace; font-size:12.5px; letter-spacing:.05em;
  padding:7px 13px; border:1.5px solid var(--line); border-radius:99px; background:#fff; color:var(--ink-soft);
}
.filters button.on{ background:var(--ink); border-color:var(--ink); color:var(--paper); }

.corkboard{
  border:14px solid transparent; border-radius:8px;
  border-image:linear-gradient(135deg,#9A6B3E,#7C4F27 38%,#A87C4C 62%,#6E441F) 1;
  box-shadow:0 18px 40px -18px rgba(50,30,8,.5), inset 0 0 0 2px rgba(0,0,0,.25);
  padding:30px 28px 22px; position:relative;
}
body[data-board="cork"] .corkboard{
  background-color:#B58456;
  background-image:
    radial-gradient(rgba(255,244,220,.10) 1px, transparent 1.4px),
    radial-gradient(rgba(61,35,10,.16) 1px, transparent 1.6px),
    linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.1));
  background-size:9px 9px, 14px 14px, 100% 100%;
  background-position:0 0, 4px 6px, 0 0;
}
body[data-board="felt"] .corkboard{
  background-color:#33524A;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px),
    radial-gradient(rgba(0,0,0,.22) 1px, transparent 1.6px),
    linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.12));
  background-size:8px 8px, 13px 13px, 100% 100%;
}
body[data-board="linen"] .corkboard{
  background-color:#E7DDC8;
  background-image:
    repeating-linear-gradient(0deg, rgba(120,100,66,.07) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(120,100,66,.07) 0 1px, transparent 1px 4px);
}
.cork-cols{ columns:4 260px; column-gap:20px; }

.notice{
  break-inside:avoid; margin:0 0 20px; position:relative;
  background:#FFFDF6; border-radius:3px; padding:38px 18px 14px;
  box-shadow:var(--card-shadow);
  transform:rotate(calc(var(--r,0deg) * var(--tilt-scale)));
  transition:transform .25s ease, box-shadow .25s ease;
}
.notice:hover{ transform:rotate(0deg) translateY(-3px); box-shadow:0 2px 4px rgba(40,28,12,.2), 0 18px 34px -12px rgba(40,28,12,.5); z-index:3; }
.notice.hidden{ display:none; }
.pin{
  position:absolute; top:11px; left:50%; margin-left:-8px; width:16px; height:16px; border-radius:50%;
  background:radial-gradient(circle at 34% 30%, rgba(255,255,255,.85) 0 18%, transparent 42%), var(--pin,#C73B22);
  box-shadow:0 1px 1px rgba(0,0,0,.4), 0 6px 6px -3px rgba(0,0,0,.45);
}
.pin::after{ content:""; position:absolute; left:6px; top:14px; width:3px; height:6px; background:linear-gradient(#888,#444); border-radius:0 0 2px 2px; }
.tape{
  position:absolute; top:-9px; left:50%; width:90px; height:24px; margin-left:-45px;
  background:rgba(244,235,205,.7); border-left:1px dashed rgba(160,140,90,.5); border-right:1px dashed rgba(160,140,90,.5);
  transform:rotate(calc(-2deg * var(--tilt-scale))); box-shadow:0 1px 2px rgba(0,0,0,.18);
}
.ncat{
  position:absolute; top:12px; left:14px;
  font-family:"Courier Prime",monospace; font-weight:700; font-size:10.5px; letter-spacing:.13em; text-transform:uppercase;
  color:#fff; background:var(--cat,#666); padding:3px 8px; border-radius:2px;
}
.ncity{
  position:absolute; top:12px; right:12px;
  font-family:"Courier Prime",monospace; font-size:10.5px; letter-spacing:.08em; color:var(--ink-soft);
}
.notice h3{ font-size:16.5px; font-weight:720; line-height:1.25; letter-spacing:-.01em; }
.notice .body{ margin-top:8px; font-size:13.5px; line-height:1.5; color:var(--ink-soft); }
.checklist{ margin:10px 0 2px; list-style:none; }
.checklist li{
  font-family:"Courier Prime",monospace; font-size:12.5px; line-height:1.45; color:var(--ink); padding:3px 0 3px 22px; position:relative;
}
.checklist li::before{ content:"☐"; position:absolute; left:2px; color:var(--accent); font-size:14px; }
.checklist li.done::before{ content:"☑"; color:var(--green); }
.nfoot{
  display:flex; align-items:center; gap:4px; margin-top:12px; padding-top:10px; border-top:1px dashed var(--line);
}
.vote{ display:flex; align-items:center; gap:5px; font-family:"Courier Prime",monospace; font-size:12.5px; font-weight:700; color:var(--ink-soft); padding:3px 8px 3px 5px; border-radius:5px; }
.vote:hover{ background:var(--cream); }
.vote .arr{ font-size:13px; line-height:1; }
.vote.voted{ color:var(--accent); }
.nfoot .meta-link{ font-family:"Courier Prime",monospace; font-size:12px; color:var(--ink-soft); padding:3px 8px; border-radius:5px; }
.nfoot .meta-link:hover{ background:var(--cream); }
.nfoot .save{ margin-left:auto; font-size:14px; color:var(--ink-soft); padding:3px 8px; border-radius:5px; }
.nfoot .save:hover{ background:var(--cream); }
.nfoot .save.saved{ color:var(--amber); }
.notice .cta{
  display:inline-block; margin-top:10px; font-weight:650; font-size:13.5px; color:var(--accent);
  border-bottom:1.5px solid color-mix(in oklab, var(--accent), transparent 60%);
}
.notice.alert-card{ background:#FFF6F2; box-shadow:var(--card-shadow), inset 0 0 0 1.5px color-mix(in oklab, var(--accent), transparent 55%); }
.notice.kraft{ background:#F3E5C8; }
.corkboard .board-tag{
  position:absolute; bottom:-13px; right:30px;
  font-family:"Courier Prime",monospace; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  background:var(--ink); color:var(--paper); padding:5px 12px; border-radius:2px;
}

/* ---------- board feed posts ---------- */
.feed-head{ display:flex; align-items:center; gap:18px; border-bottom:2px solid var(--ink); }
.feed-head h2{ font-size:24px; font-weight:760; letter-spacing:-.02em; padding-bottom:12px; }
.tabs{ margin-left:auto; display:flex; gap:2px; }
.tabs button{ font-weight:650; font-size:14px; padding:8px 14px 12px; color:var(--ink-soft); position:relative; }
.tabs button.on{ color:var(--ink); }
.tabs button.on::after{ content:""; position:absolute; left:10px; right:10px; bottom:-2px; height:3px; background:var(--accent); }
.post{
  display:grid; grid-template-columns:52px 1fr; gap:14px;
  padding:18px 4px; border-bottom:1px solid var(--line);
}
.post-votes{ display:flex; flex-direction:column; align-items:center; gap:2px; padding-top:2px; }
.post-votes button{ color:#B3A78F; font-size:15px; line-height:1; padding:3px 8px; border-radius:4px; }
.post-votes button:hover{ background:var(--cream); color:var(--ink); }
.post-votes .count{ font-family:"Courier Prime",monospace; font-weight:700; font-size:14px; }
.post-votes button.voted-up{ color:var(--accent); }
.post-tags{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-bottom:6px; }
.ptag{
  font-family:"Courier Prime",monospace; font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  padding:2px 7px; border-radius:2px; color:#fff; background:var(--cat,#666);
}
.ptag.outline{ color:var(--ink-soft); background:none; border:1px solid var(--line); font-weight:400; }
.post h3{ font-size:17.5px; font-weight:700; letter-spacing:-.01em; line-height:1.3; }
.post h3 a:hover{ color:var(--accent); }
.post img.pimg{ float:right; width:132px; height:94px; object-fit:cover; border-radius:3px; margin:2px 0 10px 16px; box-shadow:var(--card-shadow); border:3px solid #fff; transform:rotate(calc(1.4deg * var(--tilt-scale))); background:var(--cream); }
.post .excerpt{ margin-top:6px; font-size:14.5px; line-height:1.5; color:var(--ink-soft); max-width:64ch; }
.post-meta{
  display:flex; gap:14px; align-items:center; margin-top:10px;
  font-family:"Courier Prime",monospace; font-size:12px; color:var(--ink-soft); flex-wrap:wrap;
}
.post-meta .trust{ color:var(--green); font-weight:700; }
.worked{
  font-family:"Courier Prime",monospace; font-size:11.5px; font-weight:700; color:var(--green);
  border:1.5px solid color-mix(in oklab, var(--green), transparent 55%); border-radius:99px; padding:2.5px 9px;
}
.worked:hover{ background:color-mix(in oklab, var(--green), transparent 92%); }
.worked.confirmed{ background:var(--green); color:#fff; border-color:var(--green); }
.feed-more{ display:block; text-align:center; font-weight:650; font-size:14.5px; color:var(--ink-soft); padding:18px 0 4px; }
.feed-more:hover{ color:var(--accent); }

/* ---------- rail cards ---------- */
.rail{ display:flex; flex-direction:column; gap:26px; position:sticky; top:92px; }
.rail-card{
  background:#fff; border:1.5px solid var(--ink); border-radius:8px; padding:20px;
  box-shadow:5px 5px 0 var(--cream), 5px 5px 0 1.5px var(--line);
}
.rail-card.accent{ background:var(--accent-soft); }
.rail-kicker{ font-family:"Courier Prime",monospace; font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); }
.rail-card h3{ font-size:19px; font-weight:740; letter-spacing:-.015em; margin-top:6px; }
.steps{ list-style:none; margin-top:14px; counter-reset:step; }
.steps li{
  counter-increment:step; display:flex; gap:12px; align-items:baseline;
  padding:9px 0; border-bottom:1px dashed color-mix(in oklab, var(--ink), transparent 82%);
  font-size:14px; line-height:1.4;
}
.steps li:last-child{ border-bottom:none; }
.steps li::before{
  content:counter(step, decimal-leading-zero); font-family:"Courier Prime",monospace; font-weight:700; font-size:12px; color:var(--accent); flex:none;
}
.steps a{ font-weight:600; border-bottom:1px solid color-mix(in oklab, var(--ink), transparent 75%); }
.steps a:hover{ color:var(--accent); border-color:var(--accent); }
.steps small{ display:block; font-family:"Courier Prime",monospace; font-size:11px; color:var(--ink-soft); margin-top:2px; }
.rail-cta{
  display:block; text-align:center; margin-top:16px; background:var(--ink); color:var(--paper);
  font-weight:650; font-size:14.5px; padding:11px; border-radius:6px;
}
.rail-cta:hover{ background:var(--accent); }
.week-list{ list-style:none; margin-top:12px; }
.week-list li{ display:grid; grid-template-columns:52px 1fr; gap:12px; padding:9px 0; border-bottom:1px dashed color-mix(in oklab, var(--ink), transparent 82%); align-items:start; }
.week-list li:last-child{ border-bottom:none; }
.week-date{
  font-family:"Courier Prime",monospace; font-size:11px; font-weight:700; line-height:1.35; color:var(--ink); text-align:center;
  border:1.5px solid var(--line); border-radius:4px; padding:4px 2px; background:var(--paper);
}
.week-date b{ display:block; font-size:14px; }
.week-list h4{ font-size:14px; font-weight:650; line-height:1.3; }
.week-list p{ font-family:"Courier Prime",monospace; font-size:11px; color:var(--ink-soft); margin-top:3px; }
.city-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
.city-grid a{
  border:1.5px solid var(--line); border-radius:6px; padding:10px 12px; background:var(--paper);
  display:flex; flex-direction:column; gap:2px;
}
.city-grid a:hover{ border-color:var(--accent); }
.city-grid b{ font-size:14.5px; font-weight:700; }
.city-grid span{ font-family:"Courier Prime",monospace; font-size:10.5px; color:var(--ink-soft); }

/* ---------- footer ---------- */
footer{ margin-top:56px; border-top:2px solid var(--ink); background:var(--cream); }
.foot-inner{
  max-width:1280px; margin:0 auto; padding:34px 56px;
  display:flex; gap:40px; align-items:center; flex-wrap:wrap;
}
.foot-inner .logo-name{ font-size:18px; }
.foot-links{ display:flex; gap:22px; font-size:14px; font-weight:600; color:var(--ink-soft); flex-wrap:wrap; }
.foot-links a:hover{ color:var(--accent); }
.foot-note{ margin-left:auto; font-family:"Courier Prime",monospace; font-size:11.5px; color:var(--ink-soft); letter-spacing:.04em; }

@media (max-width: 1080px){
  html.crm-js nav.primary{ display:none; }
  .foot-inner{ padding-left:28px; padding-right:28px; }
}

/* strip: drop the descriptive note on narrow screens, keep clock/lang/theme */
@media (max-width: 720px){
  .strip-right > span{ display:none; }
}


/* ---------- airport / landing rail card ---------- */
.rail .air-dl{ display:flex; flex-direction:column; gap:9px; margin-top:12px; }
.rail .air-dl > div{ display:flex; flex-direction:column; gap:2px; }
.rail .air-dl dt{ font-family:"Courier Prime",monospace; font-size:9.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); }
.rail .air-dl dd{ font-size:13px; line-height:1.45; color:var(--ink-soft); }
.rail .air-dl dd b{ color:var(--ink); font-weight:700; }
.rail .air-tip{ margin-top:12px; font-size:12px; line-height:1.45; color:#6f5a31; background:#fcf6ee; border:1px solid #efe2cb; border-radius:8px; padding:9px 11px; }
.rail .air-tip b{ color:var(--amber); }

/* ===================== DARK MODE ===================== */
.theme-toggle{ font-family:"Courier Prime",monospace; font-size:12px; letter-spacing:.04em; color:#B7AC97; border:1px solid #4a4234; border-radius:3px; padding:2px 9px; white-space:nowrap; }
.theme-toggle:hover{ color:#EFE6D4; }

html.dark{
  --ink:#ECE3D3;
  --ink-soft:#A79C88;
  --paper:#15120C;
  --cream:#211C14;
  --line:#37301F;
  --accent:#E2563B;
  --accent-soft:#2A201B;
  --card-shadow:0 1px 2px rgba(0,0,0,.55), 0 12px 28px -14px rgba(0,0,0,.8);
  --surface:#1D1810;
  color-scheme:dark;
}

/* utility strip + language toggle stay dark */
html.dark .strip{ background:#100D08; color:#CFC5B2; }
html.dark .lang-toggle button.on{ background:var(--accent); color:#fff; }

/* header / nav */
html.dark header.site{ border-bottom-color:var(--line); }

/* card surfaces that hardcode white in light mode */
html.dark .ess-card,
html.dark .gcard,
html.dark .rail-card,
html.dark .citycard,
html.dark .aircard,
html.dark .fac2,
html.dark .flow2,
html.dark .app,
html.dark .app2,
html.dark .em-num,
html.dark .submit-card,
html.dark .ev-card,
html.dark .rc,
html.dark .rcard,
html.dark .how-card,
html.dark .season-card,
html.dark .cta-card,
html.dark .dest-card,
html.dark .composer,
html.dark .filters button,
html.dark .tr-chip,
html.dark .ev-chip,
html.dark .scene,
html.dark .bd-sorts,
html.dark .toc{ background:var(--surface); border-color:var(--line); }

html.dark .ess-chips span,
html.dark .week-date,
html.dark .city-grid a,
html.dark .city-more,
html.dark .ab-toc a{ background:var(--cream); border-color:var(--line); }

/* form fields */
html.dark input,
html.dark textarea,
html.dark select,
html.dark .search{ background:var(--cream); color:var(--ink); border-color:var(--line); }
html.dark input::placeholder, html.dark textarea::placeholder{ color:var(--ink-soft); }

/* warm callout tints → dark tint */
html.dark .ess-tip,
html.dark .rail .air-tip,
html.dark .ac-tip,
html.dark .gtip,
html.dark .note-card,
html.dark .ab-note,
html.dark .fl-note{ background:#241c10; color:#dcc69d; border-color:#3c3019; }

/* pink/alert cards → dark red tint */
html.dark .emergency,
html.dark .notice.alert-card,
html.dark .rcard.em,
html.dark .city-hero .fact{ background:#2a1712; }

/* accent CTAs read better solid in dark */
html.dark .filters button.on{ background:var(--accent); color:#fff; border-color:var(--accent); }
html.dark .rail-cta{ background:var(--accent); color:#fff; }
html.dark .rail-cta[style]{ background:var(--surface) !important; color:var(--ink) !important; }

/* corkboard paper notes stay light paper — re-assert light tokens locally */
html.dark .notice{ --ink:#211C15; --ink-soft:#5C5346; --line:#E2D8C4; --paper:#FBF7EE; --cream:#F4EDDF; color:#211C15; }
html.dark .notice.alert-card{ --ink:#211C15; --ink-soft:#6b4a42; background:#FFF6F2; }

/* board feed photo border + thumbnails */
html.dark .post img.pimg,
html.dark .gcard img.gphoto{ border-color:var(--line); }
html.dark .gphoto, html.dark .gc-photo{ filter:brightness(.92); }

/* ---- City photo wall (cities/<slug>/ pages) ---- */
.photo-wall{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.photo-wall figure{ margin:0; }
.photo-wall img{ width:100%; height:200px; object-fit:cover; border-radius:3px; display:block; background:var(--cream); }
@media (max-width:1080px){
  .photo-wall{ grid-template-columns:repeat(2,1fr); }
  .photo-wall img{ height:150px; }
}

/* ---------- print ---------- */
@media print{
  .strip, header.site, nav.primary, .crm-burger, .crm-mnav, .crm-mnav-back{ display:none !important; }
  [class*="hero"] img, .photo-wall, .gcard img.gphoto, .post img.pimg{ display:none !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important;
  }
}

/* ---------- i18n flash guard: hide page until the dictionary applies ---------- */
/* Pages add .crm-i18n-wait to <html> from an inline head script when the stored
   language is not English; chinaroutemap-i18n.js removes it after the first
   apply(). The 0s/2.5s animation is the no-JS / script-blocked fallback. */
html.crm-i18n-wait body{ opacity:0; }
html.crm-i18n-wait body{ animation:crmI18nShow 0s 2.5s forwards; }
@keyframes crmI18nShow{ to{ opacity:1; } }

/* 移动端顶条防横向溢出（与城市页内联规则同款） */
@media (max-width:480px){ .strip .bjw .bjw-sep, .strip .bjw .bjw-wx{ display:none; } }
@media (max-width:380px){ .strip{ padding-left:14px; padding-right:14px; } }
