/* ------------------------------------------------------------------
   One stylesheet for the whole site: the homepage and every inner page.
   Colours and fonts. Change them here first.
   Note: no red or blue. Those are kept free until the brokerage
   branding rules are confirmed.
------------------------------------------------------------------- */
:root{
  --paper:#ffffff;
  --stone:#F1F3EE;      /* Tyndall-stone grey, for quiet bands */
  --ink:#17231F;
  --muted:#56645E;
  --line:#D8DDD5;
  --buy:#1E5F4B;        /* buying path: elm green */
  --buy-tint:#E7F1EC;
  --sell:#99590A;       /* selling path: wheat amber */
  --sell-tint:#FAF0DC;
  --zh:system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC",sans-serif;
  --en:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","TeX Gyre Pagella","URW Palladio L",Georgia,serif;
  --r:14px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:1.5rem}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.85 var(--zh);padding-bottom:4.5rem}
/* The bilingual rule: Chinese speaks first in the sans face; English
   answers in a quieter serif. Every English run carries lang="en". */
[lang=en]{font-family:var(--en);line-height:1.55}
[lang|=zh]{font-family:var(--zh);line-height:1.85}
p,h1,h2,h3,dl,dd,ol,ul,figure{margin:0}
ol,ul{padding:0;list-style:none}
a{color:inherit;text-underline-offset:.2em;text-decoration-thickness:1px}
button,select,input,textarea{font:inherit;color:inherit}
a,button,select{touch-action:manipulation}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:4px}
.wrap{max-width:72rem;margin:0 auto;padding:0 clamp(1.25rem,4vw,2.5rem)}
.skip{position:absolute;left:.5rem;top:-5rem;z-index:50;background:#fff;padding:.6rem 1rem;border:2px solid var(--ink);border-radius:8px}
.skip:focus{top:.5rem}

/* Chinese and English side by side when there is room, stacked when not */
.pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17.5rem),1fr));gap:.45rem 2.5rem}
.pair>[lang=en]{color:var(--muted);font-size:.97em;text-wrap:pretty}

/* ---------- header ---------------------------------------------------- */
.top{border-bottom:1px solid var(--line)}
.top-in{display:grid;grid-template-columns:1fr auto;gap:.35rem 1rem;padding-top:.9rem;padding-bottom:.5rem}
.brand{display:inline-flex;flex-direction:column;text-decoration:none;line-height:1.25;justify-self:start}
.brand b{font-size:1.15rem;font-weight:700;letter-spacing:.02em}
.brand [lang=en]{font-size:.85rem;color:var(--muted)}
.nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr))}
.lang{align-self:center;display:inline-flex;align-items:center;min-height:2.75rem;padding:0 .2rem;font-size:.92rem}
.nav a{white-space:nowrap;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:3rem;text-decoration:none;line-height:1.2;font-size:.95rem;border-bottom:2px solid transparent}
.nav a span+span{font-size:.68rem;color:var(--muted)}
.nav a[aria-current=page]{border-bottom-color:var(--ink);font-weight:600}
.nav a:hover{border-bottom-color:var(--line)}

/* ---------- opening --------------------------------------------------- */
.open{padding:clamp(2.5rem,7vw,5.5rem) 0 clamp(2rem,5vw,3.5rem)}
.open h1{font-size:clamp(1.45rem,7.2vw,3.5rem);line-height:1.3;font-weight:700;letter-spacing:.01em}
.open h1 span{display:inline-block;white-space:nowrap}
.open-en{font-size:clamp(1.1rem,2.6vw,1.6rem);color:var(--muted);margin-top:.8rem;max-width:34em;text-wrap:balance}
.open-sub{margin-top:clamp(1.5rem,4vw,2.5rem);max-width:58rem}
/* the two-rivers picture: a strip above the headline on phones, beside it on wide screens */
.open-art{display:block;width:100%;height:clamp(9rem,42vw,15rem);object-fit:cover;object-position:50% 46%;margin-bottom:1.75rem;-webkit-mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent)}
.byline{margin-top:clamp(1.5rem,4vw,2.5rem);padding-top:1rem;border-top:1px solid var(--line);font-size:.92rem;line-height:1.6;max-width:58rem}
.byline b{font-weight:600}

/* ---------- the buyer / seller device --------------------------------- */
.dev{background:var(--stone);padding:clamp(1.25rem,4vw,3rem) 0 clamp(2.5rem,6vw,4.5rem)}
.dev-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(1.25rem,4vw,3rem)}
.dev-card h2{font-size:clamp(1.3rem,3vw,1.9rem);line-height:1.4;font-weight:700}
.dev-h-en{font-size:clamp(1rem,2vw,1.2rem);color:var(--muted);margin-top:.3rem}
.dev-hint{margin-top:.9rem;font-size:.95rem;color:var(--muted)}
.dev-hint>p:first-child{color:var(--ink)}
[data-path=buy]{--path:var(--buy);--path-tint:var(--buy-tint)}
[data-path=sell]{--path:var(--sell);--path-tint:var(--sell-tint)}
.tag{display:inline-block;padding:.1rem .75rem;border-radius:999px;background:var(--path-tint,var(--stone));color:var(--path,var(--ink));font-weight:600;font-size:.9rem;line-height:1.7}
.tag [lang=en]{font-weight:400}
.btn{display:inline-flex;align-items:center;gap:.5em;min-height:3rem;padding:.5rem 1.35rem;border-radius:999px;border:1.5px solid var(--path,var(--ink));background:var(--path,var(--ink));color:#fff;font-weight:600;line-height:1.3;text-decoration:none;cursor:pointer;transition:transform .12s ease}
.btn [lang=en]{font-weight:400;font-size:.94em;opacity:.9}
.btn.quiet{background:none;color:var(--path,var(--ink))}
.btn:active{transform:scale(.98)}
.go{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.5rem}

/* the chooser: three buttons, then questions, then one answer */
.paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.5rem,2vw,1rem);margin-top:clamp(1.25rem,3vw,2rem)}
.path{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;min-height:clamp(5rem,14vw,7.5rem);padding:.75rem .5rem;border:2px solid var(--path);border-radius:18px;background:#fff;color:var(--path);cursor:pointer;line-height:1.25;transition:background .15s ease,color .15s ease,transform .12s ease}
.path b{font-size:clamp(1.25rem,4.2vw,1.9rem);font-weight:700;text-wrap:balance}
@media (min-width:48rem){.paths{grid-template-columns:repeat(4,minmax(0,1fr))}}
.path [lang=en]{font-size:clamp(.9rem,2vw,1.1rem)}
.path:hover{background:var(--path-tint)}
.path:active{transform:scale(.98)}
.path[aria-pressed=true]{background:var(--path);color:#fff}
.ask{margin-top:clamp(1.5rem,4vw,2.25rem);font-weight:700;font-size:1.1rem}
.ask [lang=en]{font-weight:400;color:var(--muted);margin-left:.3em}
.qs{display:grid;gap:.6rem;margin-top:.8rem}
.q{display:flex;flex-wrap:wrap;align-items:baseline;gap:.1rem .6rem;width:100%;min-height:3.25rem;padding:.6rem 1.1rem;border:1.5px solid var(--line);border-radius:14px;background:#fff;text-align:left;cursor:pointer;line-height:1.4;transition:border-color .15s ease,background .15s ease}
.q b{font-weight:600}
.q [lang=en]{color:var(--muted);font-size:.95em}
.q:hover{border-color:var(--path)}
.q[aria-pressed=true]{border-color:var(--path);background:var(--path-tint)}
.q[aria-pressed=true] b{color:var(--path)}
/* (older sentence styles, no longer used) */
.say{margin-top:clamp(1.25rem,3vw,2rem)}
.say-zh{font-size:clamp(1.2rem,3.1vw,1.9rem);line-height:2.15;font-weight:600}
.say-en{font-size:clamp(1.02rem,2vw,1.3rem);line-height:2.1;color:var(--muted);margin-top:.5rem}
.say select{appearance:none;-webkit-appearance:none;max-width:100%;margin:0 .06em 0 .12em;padding:.02em 1.45em .02em .4em;border:0;border-bottom:2px solid var(--path);border-radius:8px 8px 0 0;color:var(--path);font-weight:600;cursor:pointer;
  background:var(--path-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2317231F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .5em center/.62em auto}
.say-en select{font-weight:400;font-style:italic}
.nb{display:inline-block;white-space:nowrap;max-width:100%}
.ruler{position:absolute;visibility:hidden;white-space:pre;pointer-events:none}
.next:empty{display:none}
.next{margin-top:clamp(1.25rem,3vw,2rem);padding-top:clamp(1.25rem,3vw,2rem);border-top:1px solid var(--line)}
.next-body{margin-top:1rem}
.go-link{align-self:center;font-weight:600;padding:.4rem .2rem}
.go-link [lang=en]{font-weight:400}
.full{grid-column:1/-1}
.full .more{margin-top:0}
.full .more [lang=en]{display:block}
.next-read{margin-top:1.4rem;padding:1rem 1.2rem;border-left:3px solid var(--path);background:var(--path-tint);border-radius:0 var(--r) var(--r) 0}
.next-read small{display:block;font-size:.88rem;color:var(--muted)}
.next-read a{font-weight:600}
.next-read a [lang=en]{font-weight:400;display:block}

/* ---------- sections --------------------------------------------------- */
.sec{padding:clamp(3.5rem,9vw,7rem) 0}
.sec.band{background:var(--stone)}
.split{display:grid;gap:2rem}
.hd h2{font-size:clamp(1.5rem,3.2vw,2.15rem);line-height:1.35;font-weight:700}
.hd>[lang=en]{font-size:clamp(1.05rem,2vw,1.3rem);color:var(--muted);margin-top:.25rem}
.hd-note{margin-top:1.1rem;font-size:.95rem;display:grid;gap:.4rem}
.hd-note [lang=en]{color:var(--muted)}

/* articles */
.meta{display:flex;align-items:center;gap:.8rem;font-size:.9rem;color:var(--muted)}
.meta time{font-variant-numeric:tabular-nums}
.tag.plain{--path:var(--ink);--path-tint:var(--stone)}
.lead{display:block;text-decoration:none;padding-bottom:2rem}
.lead h3{font-size:clamp(1.45rem,3.4vw,2.2rem);line-height:1.35;font-weight:700;margin-top:.7rem}
.lead-en{font-size:clamp(1.05rem,2vw,1.3rem);color:var(--muted);margin-top:.25rem}
.lead .pair{margin-top:1rem}
.lead:hover h3,.post a:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.post a{display:block;padding:1.25rem 0;border-top:1px solid var(--line);text-decoration:none}
.post h3{font-size:1.15rem;font-weight:600;line-height:1.45;margin-top:.4rem}
.post h3+[lang=en]{color:var(--muted)}
.more{display:inline-block;margin-top:1.25rem;font-weight:600}
.post:first-child a{border-top:0;padding-top:0}
.more [lang=en]{font-weight:400}

/* neighbourhoods */
.city{display:grid;gap:2rem;margin-top:2.5rem}
.map{max-width:34rem;margin:0 auto;width:100%;position:relative}
.map svg{display:block;width:100%;height:auto;background:#fff;border:1px solid var(--line);border-radius:22px}
.map figcaption{font-size:.84rem;color:var(--muted);text-align:center;margin-top:.6rem;line-height:1.5}
.map text{font-family:var(--zh);fill:var(--muted);font-size:13.5px}
.map text[lang=en]{font-family:var(--en);font-style:italic}
.m-peri{fill:none;stroke:#B9C2BB;stroke-width:1.8;stroke-dasharray:1 7;stroke-linecap:round}
.m-road{fill:none;stroke:#E1E5DF;stroke-width:3;stroke-linecap:round}
.map .m-rd{font-size:12px;fill:#9AA59F;font-family:var(--en)}
.m-river{fill:none;stroke:#A9C8DB;stroke-linecap:round;stroke-linejoin:round}
.m-red{stroke-width:13}.m-ass{stroke-width:10}
.map .m-water{fill:#4F7F9B;font-size:15px}
.m-forks{fill:var(--ink);stroke:#fff;stroke-width:2.5}
.map .m-place{fill:var(--ink);font-size:16px;font-weight:700;font-family:var(--en);paint-order:stroke;stroke:#fff;stroke-width:3px}
.m-n path{fill:none;stroke:#9AA59F;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.map .m-n text{text-anchor:middle;font-size:13px;fill:#9AA59F;font-family:var(--en)}
.dot{cursor:pointer;outline:none}
.m-area{stroke:#fff;stroke-width:1.5;transition:opacity .2s ease,stroke .2s ease}
.m-badge{fill:#fff;stroke:var(--ink);stroke-width:1.5;transition:fill .15s ease}
.map .m-num{fill:var(--ink);font-size:13.5px;font-weight:700;text-anchor:middle;font-family:var(--zh);pointer-events:none}
.map svg.has-on .dot:not(.on) .m-area{opacity:.35}
.dot:hover .m-area,.dot.hot .m-area,.dot:focus-visible .m-area,.dot.on .m-area{stroke:var(--ink);stroke-width:2}
.dot.on .m-badge{fill:var(--ink)}
.map .dot.on .m-num{fill:#fff}
.map-key{display:flex;align-items:center;justify-content:center;gap:.3rem;margin-top:.9rem;font-size:.84rem;color:var(--muted);line-height:1.2}
.map-key i{width:1.5rem;height:.65rem;border-radius:3px}
.map-key>span:first-child{margin-right:.4rem}.map-key>span:last-child{margin-left:.4rem}
.map-card{margin-top:1rem;padding:1.1rem 1.25rem;background:#fff;border:1px solid var(--line);border-radius:var(--r)}
.map-card h3{font-size:1.15rem;font-weight:700;line-height:1.4}
.map-card h3 small{font-weight:400;font-size:.9rem;color:var(--muted);margin-left:.5em}
.map-card .pair{margin-top:.4rem}
.map-hint{font-size:.95rem}
.map-hint [lang=en]{display:block;color:var(--muted)}
.map-card h3 b,.map-tip b{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:1.5rem;height:1.5rem;margin-right:.5rem;border-radius:50%;font-size:.8rem;font-variant-numeric:tabular-nums}
.map-card h3 b{background:var(--buy);color:#fff;vertical-align:.1em}
.map-tip{position:absolute;z-index:3;display:flex;align-items:center;max-width:calc(100% - 12px);padding:.45rem .85rem .45rem .5rem;background:var(--ink);color:#fff;border-radius:999px;box-shadow:0 6px 18px rgba(23,35,31,.2);pointer-events:none;font-size:.95rem;font-weight:700;line-height:1.3;white-space:nowrap}
.map-tip[hidden]{display:none}
.map-card{overflow-anchor:none}
.map-tip b{background:#fff;color:var(--ink)}
.map-tip small{font-weight:400;font-size:.82rem;color:#C9D3CD;margin-left:.6em}
.map-tip small [lang=en]{color:inherit}
.hood{cursor:pointer}
.hoods-js .hood{padding:.7rem 0}
.hoods-js .hood:not(.on) .pair{display:none}
.hoods-js .hood.hot .hood-n{background:var(--ink);color:#fff}
.hoods-js .hood:hover h3{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
.hood{display:grid;grid-template-columns:auto 1fr;gap:.15rem 1rem;padding:1.15rem 0;border-top:1px solid var(--line);scroll-margin-top:1.5rem}
.hood:last-child{border-bottom:1px solid var(--line)}
.hood-n{grid-row:1/4;align-self:start;display:flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;border:1.5px solid var(--ink);border-radius:50%;font-size:.9rem;font-weight:700;line-height:1;margin-top:.15rem;transition:background .15s ease,color .15s ease}
.hood.on .hood-n{background:var(--buy);border-color:var(--buy);color:#fff}
.hood h3{font-size:1.15rem;font-weight:700;line-height:1.4}
.hood h3 small{font-weight:400;font-size:.9rem;color:var(--muted);margin-left:.5em;font-variant-numeric:tabular-nums}
.hood-yr{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.95rem;line-height:1.4}
.hood .pair{grid-column:2;margin-top:.35rem}
.hood .now b{font-weight:600}
.hood .now>p:first-child b{color:var(--buy)}

/* contact */
.reach{display:grid;gap:1.5rem}
.wechat{display:grid;gap:1rem 2.25rem;justify-items:center;background:var(--stone);border-radius:22px;padding:clamp(1.25rem,4vw,2rem);text-align:center;scroll-margin-top:1.5rem}
.wechat h3{font-size:1.2rem;font-weight:700}
.wechat h3 [lang=en]{font-weight:400;color:var(--muted)}
.wechat img{display:block;width:min(100%,13rem);height:auto;border-radius:12px;background:#fff;padding:.5rem}
.wechat-id{font-size:1.5rem;font-weight:700;letter-spacing:.02em;margin-top:.3rem}
.wechat .btn{margin-top:.9rem}
.wechat .note{margin-top:1rem;font-size:.9rem;display:grid;gap:.3rem;text-align:left}
.wechat .note [lang=en]{color:var(--muted)}
.routes{display:grid;gap:0}
.routes>div{display:grid;grid-template-columns:6.5rem 1fr;gap:.75rem;padding:.85rem 0;border-top:1px solid var(--line)}
.routes dt{font-weight:600;line-height:1.5}
.routes dt [lang=en]{display:block;font-weight:400;color:var(--muted);font-size:.9rem}
.routes dd{line-height:1.6;overflow-wrap:anywhere}
.routes small{color:var(--muted);font-size:.9rem}
form{display:grid;gap:1rem;margin-top:2rem;padding-top:1.75rem;border-top:1px solid var(--line);scroll-margin-top:1.5rem}
form h3{font-size:1.2rem;font-weight:700}
form h3 [lang=en]{font-weight:400;color:var(--muted)}
.f2{display:grid;gap:1rem}
label.f{display:grid;gap:.3rem;font-weight:600;font-size:.95rem}
label.f [lang=en]{font-weight:400;color:var(--muted)}
input[type=text],select.in,textarea{width:100%;min-height:3rem;padding:.6rem .8rem;border:1px solid #9AA59F;border-radius:10px;background:#fff;font-weight:400;font-size:1.0625rem}
textarea{min-height:7rem;resize:vertical;line-height:1.6}
.check{display:grid;grid-template-columns:auto 1fr;gap:.7rem;align-items:start;font-size:.92rem;line-height:1.6}
.check input{width:1.25rem;height:1.25rem;margin-top:.2rem;accent-color:var(--ink)}
.check [lang=en]{display:block;color:var(--muted)}
.fine{font-size:.84rem;line-height:1.6;color:var(--muted);display:grid;gap:.4rem}
.status{display:none;padding:.8rem 1rem;border-radius:10px;background:var(--stone);font-size:.95rem;line-height:1.6}
.status.show{display:block}
.status.ok{background:var(--buy-tint);color:var(--buy)}
.status.err{background:#FBEFE2;color:#7A4300}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
button[disabled]{opacity:.6;cursor:wait}
.status [lang=en]{display:block;color:var(--muted)}

/* footer */
.foot{border-top:1px solid var(--line);padding:clamp(2.5rem,6vw,4rem) 0;font-size:.95rem;line-height:1.7}
.foot-in{display:grid;gap:2rem}
.plate{display:grid;gap:1.25rem;align-items:center}
.brokerage-logo{display:block;width:17rem;max-width:100%;height:auto;margin:.25rem 0 .5rem}
.plate-name{font-size:1.25rem;font-weight:700}
.who b{font-size:1.1rem}
.who [lang=en]{color:var(--muted)}
.legal{font-size:.86rem;color:var(--muted);max-width:58rem}
.legal .pair{gap:.4rem 2.5rem}
.legal .last{margin-top:1rem}

/* phone dock */
.dock{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:.6rem .75rem calc(.6rem + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-top:1px solid var(--line)}
.dock .btn{justify-content:center;min-height:2.9rem;padding:.3rem .5rem}

/* phones: guide buttons go full width with the English on its own line */
@media (max-width:29.99rem){
  .go{flex-direction:column}
  .go .btn{flex-direction:column;justify-content:center;gap:0;text-align:center;border-radius:18px;padding:.6rem 1rem}
  .go-link{text-align:center}
  .ask [lang=en]{display:block;margin-left:0}
  .go-link [lang=en]{display:block}
  .hood h3 small{display:block;margin-left:0}
}
/* ---------- wider screens ---------------------------------------------- */
@media (min-width:48rem){
  body{padding-bottom:0}
  .dock{display:none}
  .full{text-align:right}
  .full .more [lang=en]{display:inline}
  .qs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .f2{grid-template-columns:1fr 1fr}
  .f2 label.f [lang=en]{display:block}
  .wechat{grid-template-columns:13rem 1fr;justify-items:start;align-items:center;text-align:left}
  .plate{grid-template-columns:auto 1fr;gap:2rem}
}
@media (min-width:62rem){
  .top-in{grid-template-columns:auto 1fr auto;align-items:center;gap:1.5rem;padding-top:.6rem;padding-bottom:0}
  .nav{grid-column:auto}
  .lang{order:3}
  .nav{justify-self:end;grid-template-columns:repeat(8,auto);gap:.25rem}
  .nav a{padding:0 .8rem;min-height:3.6rem}
  .split{grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:4rem}
  .hd{position:sticky;top:2rem;align-self:start}
  .city{grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:3.5rem;align-items:start}
  .map-card{min-height:10.5rem}
  .open-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,27rem);gap:3rem;align-items:center}
  .open-art{order:2;height:auto;object-fit:contain;margin:0;-webkit-mask-image:none;mask-image:none}
  .open h1{font-size:clamp(2.2rem,4.1vw,3.25rem)}
  .open-txt .pair{grid-template-columns:1fr}
  .map{position:sticky;top:2rem}
  .foot-in{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  .legal{grid-column:1/3}
}
/* One quiet moment on load, and nothing else moves by itself */
@media (prefers-reduced-motion:no-preference){
  .open-txt>*,.open-art{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}
  .open-txt>:nth-child(2){animation-delay:.08s}
  .open-txt>:nth-child(3){animation-delay:.16s}
  .open-txt>:nth-child(4){animation-delay:.24s}
  .swap{animation:fade .25s ease both}
  @keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
  @keyframes fade{from{opacity:0}to{opacity:1}}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ==================================================================
   Inner pages: buying, selling, investing, articles, updates, about,
   contact, privacy. They keep their simple HTML; this gives it the
   same look as the homepage.
=================================================================== */
.draft-banner{margin:0;padding:.45rem 1rem;background:#FFF4D6;color:#5C4400;font-size:.85rem;line-height:1.5;text-align:center}
.draft-banner [lang=en]{display:block}
.note{padding:.8rem 1rem;border-radius:10px;background:#FFF4D6;color:#5C4400;line-height:1.6;font-size:.95rem}
.page{max-width:50rem;padding-top:clamp(1.75rem,5vw,3.5rem);padding-bottom:clamp(3rem,8vw,6rem)}
.page h1{font-size:clamp(1.7rem,5.5vw,2.6rem);line-height:1.3;font-weight:700;margin:.5rem 0 1rem;text-wrap:balance}
.page h2{font-size:clamp(1.25rem,3.4vw,1.6rem);line-height:1.4;font-weight:700;margin:2.6rem 0 .6rem;scroll-margin-top:1.5rem}
.page h3{font-size:1.15rem;line-height:1.4;font-weight:700;margin:.2rem 0}
.page p{margin:.9rem 0}
.page .small{font-size:.92rem;color:var(--muted)}
.page section{scroll-margin-top:1.5rem}
.page a{color:var(--path,var(--ink))}
.page .btn{color:#fff}
.page ul.links{list-style:disc;padding-left:1.3rem;margin:.9rem 0}
.page ul.links li{margin:.5rem 0}
.page ul.linklist{list-style:none;padding:0;margin:.5rem 0 0}
.page ul.linklist li{margin:0;padding:.85rem 0;border-top:1px solid var(--line)}
.page ul.linklist li:last-child{border-bottom:1px solid var(--line)}
.page ul.linklist a{font-weight:600;color:var(--buy)}
.page ul.linklist a::after{content:" \2197";font-weight:400}
.page ul.linklist span{display:block;color:var(--muted);font-size:.95rem;margin-top:.1rem}
.foot .last a+a{margin-left:.25rem}
.page ol.steps{counter-reset:s;margin:1.4rem 0}
.page ol.steps li{counter-increment:s;position:relative;padding:.1rem 0 1.3rem 3.1rem}
.page ol.steps li::before{content:counter(s);position:absolute;left:0;top:.15rem;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1.5px solid var(--path,var(--ink));border-radius:50%;color:var(--path,var(--ink));font-size:.95rem;font-weight:700;line-height:1}
.page ol.steps strong{display:block}
.btns{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.5rem}
.btn.alt,.page .btn.alt{background:none;color:var(--path,var(--ink))}
.page .posts{margin:1.5rem 0;border-bottom:1px solid var(--line)}
.page .card{display:block;padding:1.25rem 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.page .card h2{margin:0 0 .25rem;font-size:1.25rem}
.page .card p{margin:0;color:var(--muted)}
.page .card small{display:block;margin-top:.3rem;color:var(--muted);font-size:.88rem}
.page .card:hover h2{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.page ol.timeline{margin:1.2rem 0;padding-left:1.4rem;border-left:2px solid var(--line)}
.page ol.timeline li{position:relative;padding:0 0 1.6rem .5rem}
.page ol.timeline li::before{content:"";position:absolute;left:calc(-1.4rem - .45rem - 1px);top:.5rem;width:.9rem;height:.9rem;border-radius:50%;background:#fff;border:2px solid var(--buy)}
.page ol.timeline .yr{font-weight:700;color:var(--buy);font-variant-numeric:tabular-nums}
.page ol.timeline p{margin:.35rem 0}
.page ol.timeline .why{padding:.6rem .9rem;background:var(--buy-tint);border-radius:10px}
.page ol.timeline .why::before{content:"对买房的意义：";font-weight:600}
html[lang=en] .page ol.timeline .why::before{content:"Why it matters: "}
.page ol.timeline .src{font-size:.85rem;color:var(--muted)}
.page ol.timeline li.mine::before{border-color:#5C4400}
.page dl.facts{margin:1rem 0}
.page dl.facts dt{font-weight:600;margin-top:.9rem}
.page form{display:block;margin-top:1.5rem;padding-top:0;border-top:0}
.page form label{display:block;margin-top:1rem;font-weight:600;font-size:.95rem}
.page form label.check{display:grid;font-weight:400;margin-top:1.2rem}
.page form input[type=text],.page form select,.page form textarea{display:block;width:100%;min-height:3rem;margin-top:.35rem;padding:.6rem .8rem;border:1px solid #9AA59F;border-radius:10px;background:#fff;font-weight:400;font-size:1.0625rem}
.page form textarea{min-height:7rem}
.page form .btn{margin-top:1.25rem}
.page form .status{margin:1rem 0 0}
.page img.qr{display:block;width:11rem;height:11rem;margin:1rem 0;padding:.4rem;background:#fff;border:1px solid var(--line);border-radius:12px}
.page .empty{padding:1.5rem;border-radius:var(--r);background:var(--stone)}
/* English pages: English label first in the menu; two rows of four on phones so the words fit */
html[lang=en] .nav a span:first-child{font-family:var(--zh)}
@media (max-width:47.99rem){html[lang=en] .nav{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ==================================================================
   Home page, English-only view (the "English" button in the header).
   home.js tags the Chinese pieces with class "zh"; they are hidden here
   and the English, normally the quieter voice, is promoted.
=================================================================== */
button.lang{border:0;background:none;cursor:pointer;color:inherit;text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
html.pending body{visibility:hidden}
/* ---------- home page top: photo with the headline (Nov 16) ---------- */
/* Phones: headline on white, photo under it. Wide screens: headline over a soft white fade, top left. */
.hero{position:relative;overflow:hidden;background:#fff;padding:0}
.hero-pic{overflow:hidden;aspect-ratio:4/3;order:2}
.hero-pic img{display:block;width:100%;height:100%;object-fit:cover;object-position:78% 40%}
.hero{display:flex;flex-direction:column}
.hero-in{position:relative;z-index:1;width:100%;padding-top:clamp(1.75rem,6vw,4.5rem);padding-bottom:1.5rem}
.hero-credit{position:absolute;z-index:1;right:clamp(1rem,3vw,2rem);bottom:.6rem;font-size:.75rem;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.6);font-family:var(--en)}
.hero-by{padding-top:clamp(1.5rem,4vw,2.5rem);padding-bottom:clamp(1.5rem,4vw,2.5rem)}
.hero-by .open-sub{margin-top:0}
.hero-by .byline{margin-top:1.25rem}
@media (min-width:48rem){
  .hero{display:block;min-height:min(84vh,46rem)}
  .hero-pic{position:absolute;left:0;right:0;top:-6%;bottom:-6%;aspect-ratio:auto}
  .hero-pic img{object-position:50% 34%}
  .hero::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(95% 105% at 0% 0%,rgba(255,255,255,.96) 0%,rgba(255,255,255,.88) 34%,rgba(255,255,255,.45) 52%,rgba(255,255,255,0) 68%)}
  .hero h1 span{display:block}
  .hero h1{font-size:clamp(2.2rem,4.4vw,3.4rem)}
  .hero-in{padding-bottom:clamp(14rem,34vw,22rem)}
}
@media (prefers-reduced-motion:no-preference){
  .hero-pic img{animation:hero-drift 30s ease-in-out infinite alternate;transform-origin:70% 60%}
  .hero-in>*{animation:rise .8s cubic-bezier(.2,.7,.2,1) both}
  .hero-in>:nth-child(2){animation-delay:.1s}
  @keyframes hero-drift{from{transform:scale(1)}to{transform:scale(1.08)}}
}
@media (min-width:48rem){.hero .open-en{max-width:30rem}.en-only .hero .open-en{max-width:34rem}}
.btns .btn.ext::after{content:" \2197";font-weight:400}
/* ONE LANGUAGE AT A TIME (Nov 16). Chinese pages show Chinese only, English pages show English only.
   The other language stays in the HTML (marked with lang="en" or lang="zh-Hans") and is hidden here.
   The language switch (.lang) is the one thing that stays visible in the other language. */
html[lang^=zh]:not(.en-only) [lang=en]:not(.lang){display:none!important}
html[lang^=en] [lang|=zh]:not(.lang){display:none!important}
.pair>p:only-of-type,html[lang^=zh]:not(.en-only) .pair>p,.en-only .pair>p{max-width:44em}
.en-only .zh{display:none!important}
.en-only .brand [lang=en]{font-size:1.1rem;font-weight:700;color:var(--ink)}
.en-only .nav a span+span{font-size:.95rem;color:var(--ink)}
.en-only .open-en{font-size:clamp(1.7rem,6vw,3.2rem);line-height:1.2;font-weight:600;color:var(--ink);margin-top:0}
@media (min-width:62rem){.en-only .open-en{font-size:clamp(2rem,3.5vw,2.75rem)}}
.en-only .pair>[lang=en],.en-only .side .pair>[lang=en]{color:var(--ink);font-size:1em;opacity:1}
.en-only .byline>[lang=en],.en-only .legal .pair>[lang=en]{color:var(--muted)}
.en-only .hd>[lang=en],.en-only .dev-h-en{font-size:clamp(1.4rem,3.2vw,2rem);line-height:1.3;font-weight:600;color:var(--ink);margin-top:0}
.en-only .path [lang=en]{font-size:clamp(1.15rem,4vw,1.7rem);font-weight:700}
.en-only .ask [lang=en]{font-weight:700;color:var(--ink);margin-left:0}
.en-only .q [lang=en]{color:var(--ink);font-weight:600;font-size:1em}
.en-only .q[aria-pressed=true] [lang=en]{color:var(--path)}
.en-only .tag [lang=en],.en-only .btn [lang=en],.en-only .more [lang=en],.en-only .go-link [lang=en],.en-only .next-read a [lang=en]{font-weight:600;font-size:1em;opacity:1}
.en-only .post h3+[lang=en]{font-size:1.2rem;font-weight:600;color:var(--ink);margin-top:.4rem}
.en-only .wechat h3 [lang=en],.en-only form h3 [lang=en]{font-weight:700;color:var(--ink)}
.en-only .routes dt [lang=en],.en-only label.f [lang=en]{font-weight:600;color:var(--ink);font-size:1em}
.en-only .check [lang=en],.en-only .status [lang=en],.en-only .wechat .note [lang=en]{color:var(--ink)}
.en-only .who [lang=en]{color:var(--ink)}
.wechat .note{padding:0;border-radius:0;background:none;color:inherit}
.en-only .map-hint [lang=en],.en-only .map-key [lang=en]{color:inherit}

/* ------------------------------------------------------------------
   Guide pages (买房, 卖房, 初到温尼伯), added Nov 19, 2026.
   Same structure as the homepage: a tinted header band in the path
   colour, then sections with the heading on the left and the text on
   the right on wide screens, and a contact card at the end.
   Only pages whose <main> has class "guide" use these rules.
------------------------------------------------------------------- */
.page.guide{max-width:none;padding:0}
.guide .g-head{background:var(--path-tint,var(--stone));padding:clamp(2.5rem,7vw,5rem) 0 clamp(2rem,5vw,3.5rem)}
.guide .g-head h1{font-size:clamp(2rem,6vw,3.2rem);line-height:1.2;margin:0 0 1rem;color:var(--ink)}
.guide .g-head>.wrap>p{max-width:38rem;font-size:clamp(1.05rem,2.2vw,1.2rem);color:var(--ink);margin:0}
.guide .g-jump{margin-top:1.75rem}
.guide .g-jump p{margin:0 0 .5rem;font-size:.9rem;color:var(--muted)}
.guide .g-jump ul{display:flex;flex-wrap:wrap;gap:.5rem}
.guide .g-jump a{display:inline-block;padding:.3rem .95rem;border-radius:999px;background:#fff;border:1px solid color-mix(in srgb,var(--path) 35%,transparent);color:var(--path);font-weight:600;font-size:.95rem;text-decoration:none}
.guide .g-jump a:hover{background:var(--path);color:#fff}
.guide .g-sec{padding:clamp(2.5rem,6vw,4.5rem) 0;border-top:1px solid var(--line)}
.guide .g-head+.g-sec{border-top:0}
.guide .g-sec h2{margin:0;font-size:clamp(1.35rem,3.4vw,1.75rem);scroll-margin-top:1.5rem}
.guide .split{gap:1.25rem}
.guide .g-body{max-width:44rem}
.guide .g-body>:first-child{margin-top:0}
.guide .g-body>:last-child{margin-bottom:0}
/* steps: numbers joined by a thin line, like a route */
.guide ol.steps{margin:0}
.guide ol.steps li{padding-bottom:1.6rem}
.guide ol.steps li:last-child{padding-bottom:0}
.guide ol.steps li::after{content:"";position:absolute;left:calc(1rem - .75px);top:2.45rem;bottom:.15rem;width:1.5px;background:color-mix(in srgb,var(--path) 30%,transparent)}
.guide ol.steps li:last-child::after{display:none}
.guide ol.steps li::before{background:#fff}
.guide ol.steps strong{font-size:1.08rem;margin-bottom:.15rem}
.guide .note{margin-top:1.5rem}
/* closing contact card */
.guide .g-cta{background:var(--stone);border-top:0}
.guide .g-card{max-width:44rem;margin:0 auto;padding:clamp(1.75rem,5vw,2.75rem);background:#fff;border:1px solid var(--line);border-radius:22px;text-align:center}
.guide .g-card p{margin:.75rem auto 1.5rem;max-width:30rem;color:var(--muted)}
.guide .g-card .btns{justify-content:center}
@media (min-width:56rem){.guide .split{grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:4rem}}
/* Phone menu, Nov 19: "初到温尼伯" replaced "资讯" and is longer, so on
   small screens the menu is two even rows of four, and a long name may
   wrap inside its own slot. */
@media (max-width:47.99rem){
  .nav,html[lang=en] .nav{grid-template-columns:repeat(4,minmax(0,1fr))}
  .nav a{white-space:normal;text-align:center;padding:.2rem .15rem}
}

/* Newcomer button in the top photo section, added Nov 19, 2026 at Jett's request. */
.hero-new{display:inline-flex;flex-direction:column;gap:.15rem;margin-top:1.5rem;padding:.85rem 1.4rem;border-radius:16px;background:var(--buy);color:#fff;text-decoration:none;line-height:1.4;max-width:32rem;box-shadow:0 8px 22px rgba(23,35,31,.18);transition:background .15s ease,transform .12s ease}
.hero-new b{font-size:1.2rem}
.hero-new .sub{font-size:.95rem;opacity:.92}
.hero-new:hover{background:#174C3B}
.hero-new:active{transform:scale(.98)}
.hero-new:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
/* Headline 「在温尼伯安家」 (Nov 19) is short, so it can be larger on wide screens. */
@media (min-width:48rem){.hero h1{font-size:clamp(2.8rem,5.6vw,4.4rem);letter-spacing:.02em}}
/* Shorter top photo (Nov 19): Jett found he had to scroll to see anything else.
   The next section should start to show at the bottom of a laptop screen. */
.hero-pic{aspect-ratio:16/10}
@media (min-width:48rem){
  .hero{min-height:min(60vh,34rem)}
  .hero-in{padding-bottom:clamp(7rem,14vw,10rem)}
}
.hero-by{padding-top:1.25rem;padding-bottom:1.25rem}
.hero-by .byline{margin-top:.75rem}

/* Site name 「温尼伯安家」 with Jett's name underneath (Nov 19, 2026). */
.brand .by{font-size:.85rem;color:var(--muted);font-weight:400}
/* Nov 19 (later): the line under the site name is now a short description, not Jett's name (his name stays in the footer). */
html[lang^=zh]:not(.en-only) .brand [lang=en]{display:none!important}
html[lang^=en] .brand [lang=en]{font-size:1.15rem;font-weight:700;color:var(--ink);font-family:var(--zh)}

/* Home hero: skyline illustration (Nov 23, Claude). Overrides earlier hero picture rules. */
.hero-pic{aspect-ratio:16/8}
.hero-pic img{object-position:30% 100%}
@media (min-width:48rem){
  .hero{min-height:min(62vh,36rem)}
  .hero::after{display:none}
  .hero-pic{position:absolute;left:0;right:0;bottom:0;top:auto;height:62%;aspect-ratio:auto;-webkit-mask-image:linear-gradient(transparent,#000 28%);mask-image:linear-gradient(transparent,#000 28%)}
  .hero-pic img{object-position:45% 100%}
  .hero-in{padding-bottom:clamp(12rem,24vw,18rem)}
}
