/* CMG Treasure - clean directory style */
*{box-sizing:border-box;margin:0;padding:0}
html,body{overflow-x:clip}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#222;background:#fafafa;line-height:1.5}
img{max-width:100%;height:auto}
a{color:#0b6bcb;text-decoration:none}
a:hover{text-decoration:underline}
/* 2026-10-14 (pipes rail spec §1): the header itself does NOT stick
   any more — it scrolls away and the nine-pipe rail (.pipes-rail-wrap)
   is the sticky element, so the channel switcher is what stays on
   screen. Was position:sticky until the rail rollout. */
.site-header{background:#fff;border-bottom:1px solid #e3e3e3;position:relative;z-index:10}
.header-inner{max-width:1100px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;gap:24px}
.logo{font-size:24px;font-weight:800;color:#b3540a;white-space:nowrap}
.searchbar{flex:1;display:flex;max-width:560px}
.searchbar input{flex:1;padding:10px 14px;border:1px solid #d9dee3;border-radius:6px 0 0 6px;font-size:15px}
.searchbar button{padding:10px 22px;background:#b3540a;color:#fff;border:2px solid #b3540a;border-radius:0 6px 6px 0;font-size:15px;cursor:pointer}
.breadcrumb{max-width:1100px;margin:0 auto;padding:8px 20px;font-size:13px;color:#777}
.breadcrumb a{color:#0b6bcb}
.hero{background:#123a5c;color:#fff;padding:48px 20px;text-align:center}
.hero h1{font-size:34px;margin-bottom:10px}
.hero p{font-size:17px;opacity:.9;max-width:640px;margin:0 auto}
.container{max-width:1100px;margin:0 auto;padding:28px 20px}
.section-title{font-size:22px;margin:6px 0 18px}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.cat-card{background:#fff;border:1px solid #e6e6e6;border-radius:10px;padding:18px;display:block;color:#222;min-width:0;overflow-wrap:break-word}
.cat-card:hover{border-color:#b3540a;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.cat-card h3{font-size:17px;margin-bottom:6px}
.cat-card .cn{font-size:13px;color:#888}
.cat-card p{font-size:14px;color:#555;margin-top:6px}
.cat-card .count{font-size:12px;color:#999;margin-top:8px}
.sub-list{background:#fff;border:1px solid #e6e6e6;border-radius:10px;overflow:hidden}
.sub-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid #f0f0f0}
.sub-row:last-child{border-bottom:none}
.sub-row .name{font-size:16px;font-weight:600;min-width:0;overflow-wrap:break-word}
.sub-row .name .cn{font-weight:400;color:#888;font-size:13px;margin-left:8px}
.badge-live{font-size:12px;background:#e7f6ec;color:#1a7a3a;padding:3px 10px;border-radius:20px;white-space:nowrap}
.badge-soon{font-size:12px;background:#f1f1f1;color:#888;padding:3px 10px;border-radius:20px;white-space:nowrap}
.merchant{background:#fff;border:1px solid #e6e6e6;border-radius:10px;padding:18px;margin-bottom:14px}
.merchant h3{font-size:18px;margin-bottom:8px}
.merchant .meta{font-size:14px;color:#444;margin:4px 0}
.merchant .meta .label{color:#888;display:inline-block;min-width:70px}
.site-footer{background:#1c1c1c;color:#ccc;margin-top:40px}
.footer-inner{max-width:1100px;margin:0 auto;padding:36px 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.footer-inner h4{color:#fff;margin-bottom:10px;font-size:15px}
.footer-inner p{font-size:13px;line-height:1.6}
.footer-inner a{color:#7db9f0}
.footer-bottom{text-align:center;padding:14px;font-size:12px;color:#888;border-top:1px solid #333}
.note{background:#fff8e6;border:1px solid #f0dfae;border-radius:8px;padding:12px 16px;font-size:14px;color:#6b5518;margin-bottom:18px}
.nearme-bar{background:#fff;border:1px solid #e6e6e6;border-radius:10px;padding:14px 18px;margin-bottom:18px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.nearme-bar .btn-near{padding:10px 20px;background:#1a7a3a;color:#fff;border:none;border-radius:6px;font-size:15px;cursor:pointer}
.nearme-bar .btn-near:disabled{opacity:.6;cursor:wait}
.nearme-bar .btn-reset{padding:10px 16px;background:#fff;color:#555;border:1px solid #ccc;border-radius:6px;font-size:14px;cursor:pointer}
.nearme-status{font-size:13px;color:#666;flex-basis:100%}
.dist-badge{font-size:13px;color:#1a7a3a;font-weight:400}
#nearme-title-note{font-size:14px;color:#1a7a3a;font-weight:400;margin-left:10px}
/* --- Mobile responsive (iPhone 375px and similar) --- */
@media(max-width:640px){
  /* header stays a compact wrapped row (see the <=720px block) — it
     must never stack into full-width bars (Dong 2026-10-13) */
  .header-inner{gap:10px 14px;padding:10px 14px}
  .logo{font-size:20px}
  .searchbar input{font-size:16px;min-width:0} /* 16px prevents iOS auto-zoom */
  .searchbar button{padding:10px 16px;white-space:nowrap}
  .hero{padding:32px 16px}
  .hero h1{font-size:24px;line-height:1.3}
  .hero p{font-size:15px}
  .container{padding:20px 16px}
  .section-title{font-size:19px}
  .cat-grid{grid-template-columns:1fr;gap:14px}
  .cat-card{padding:14px}
  .cat-banner{max-height:60px}
  .cat-card .cat-thumb{height:90px}
  .footer-inner{grid-template-columns:1fr;gap:18px}
  .sub-row{padding:12px 14px}
  .merchant{padding:14px}
  .form-card{margin:4vh 12px;padding:22px 18px}
  .nearme-bar{padding:12px 14px}
}

/* --- Booking / quote forms (CMG Treasure lead capture) --- */
.cta-row{margin:16px 0}
.btn-book,.btn-quote{display:inline-block;padding:12px 26px;border:none;border-radius:6px;font-size:16px;font-weight:700;cursor:pointer;color:#fff;background:#b3540a}
.btn-book:hover,.btn-quote:hover{opacity:.92;text-decoration:none}
.btn-quote{background:#123a5c}
.book-row{margin-top:12px}
.form-modal{display:none;position:fixed;z-index:100;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.55);overflow-y:auto}
.form-modal.open{display:block}
.form-card{background:#fff;max-width:520px;margin:6vh auto;padding:26px 24px;border-radius:12px;position:relative}
.form-card h3{font-size:20px;margin-bottom:4px}
.form-card .form-sub{font-size:14px;color:#777;margin-bottom:16px}
.form-close{position:absolute;top:10px;right:14px;font-size:26px;border:none;background:none;cursor:pointer;color:#999}
.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.form-group label .cn{font-weight:400;color:#888}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:11px 12px;border:1px solid #ccc;border-radius:6px;font-size:15px;font-family:inherit}
.form-group textarea{resize:vertical;min-height:80px}
.form-submit{width:100%;padding:13px;background:#b3540a;color:#fff;border:none;border-radius:6px;font-size:16px;font-weight:700;cursor:pointer}
.form-submit:hover{opacity:.92}
.form-ok{display:none;background:#e7f6ec;border:1px solid #bfe3c9;color:#1a7a3a;border-radius:8px;padding:14px 16px;font-size:15px;margin-top:14px}
.quote-hero{background:#123a5c;color:#fff;padding:36px 20px;text-align:center}
.quote-hero h1{font-size:28px;margin-bottom:8px}
.quote-hero p{opacity:.9;max-width:560px;margin:0 auto}
.quote-wrap{max-width:560px;margin:0 auto;background:#fff;border:1px solid #e6e6e6;border-radius:12px;padding:26px 24px}

/* Category banner + thumbnails (real photos) */
.cat-banner{width:100%;max-height:90px;object-fit:cover;border-radius:10px;margin-bottom:18px;display:block}
.cat-card .cat-thumb{width:100%;height:160px;object-fit:cover;border-radius:8px;margin-bottom:10px;display:block}

/* Merchant free-join CTA block (site-wide, on every listing page) */
.merchant-join-cta{background:#eef4fb;border:1px solid #bcd3ea;border-radius:8px;padding:14px 18px;margin:0 0 18px;font-size:15px;color:#123a5c;line-height:1.55}
.merchant-join-cta strong{font-size:16px}
.merchant-join-cta a{font-weight:700;color:#b3540a;white-space:nowrap}
.merchant-join-cta a:hover{text-decoration:underline}
.agree-box{display:flex;gap:10px;align-items:flex-start;background:#f7f9fc;border:1px solid #dfe7f2;border-radius:8px;padding:12px 14px;font-size:14px;color:#333;line-height:1.6}
.agree-box input[type=checkbox]{margin-top:4px;flex:none;width:18px;height:18px}

/* 2026-10-10 central-platform template repair: search, language, location, fallback */
.lang-switch { display:flex; align-items:center; gap:6px; color:#44536a; font-size:13px; white-space:nowrap; }
.lang-switch select { border:1px solid #c3cfdd; border-radius:6px; padding:6px; background:#fff; color:#1a3a5c; max-width:132px; }
.sample-note { font-size:12px; color:#667; margin-top:8px; }
.badge-topic { background:#e3f2e5; color:#27632a; padding:3px 9px; border-radius:10px; font-size:12px; white-space:nowrap; }
.location-panel, .fallback-panel { background:#f4f8ff; border:1px solid #c9dcf5; border-radius:12px; padding:20px; margin:22px 0; }
.location-panel h2, .fallback-panel h2 { color:#1a3a5c; margin-bottom:8px; font-size:22px; }
.location-controls { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; margin-top:12px; }
.location-controls .btn-location { height:42px; display:inline-flex; align-items:center; }
.btn-location, .btn-area { background:#fff; color:#1a3a5c; border:1.5px solid #1a3a5c; padding:10px 16px; border-radius:8px; font-weight:700; cursor:pointer; text-decoration:none; display:inline-block; }
.area-form { display:grid; grid-template-columns:1fr 1fr auto; gap:10px 12px; align-items:end; flex:1 1 460px; }
.area-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.area-field label { font-size:13px; font-weight:700; color:#345; }
.area-form select, .area-form input { width:100%; min-width:0; height:42px; padding:10px; border:1px solid #a9bfd8; border-radius:8px; background:#fff; box-sizing:border-box; font-size:15px; color:#222; }
.borough-row[hidden] { display:none; }
.area-form button { height:42px; background:#1a3a5c; color:#fff; border:0; border-radius:8px; padding:10px 16px; font-weight:700; cursor:pointer; white-space:nowrap; }
.location-note { margin-top:12px; font-size:13.5px; color:#56707e; line-height:1.55; }
.location-status { margin-top:12px; display:flex; align-items:flex-start; gap:10px; background:#eef4fa; border:1px solid #d3e0ef; border-radius:8px; padding:9px 12px; font-size:13.5px; color:#456; line-height:1.5; }
.location-status[hidden] { display:none; }
.location-status-text { flex:1; }
.location-status-close { background:none; border:0; color:#678; font-size:17px; line-height:1.2; cursor:pointer; padding:0 2px; flex:none; }
/* Slim location strip for category pages (2026-10-13): one narrow row
   after the popular cards — never a first-screen roadblock.  Desktop
   strip height: 10+40+10 padding/controls = ~60px; mobile wraps to
   two rows (~108px). */
.location-strip { margin:16px 0 4px; background:#f4f8ff; border:1px solid #c9dcf5; border-radius:10px; padding:10px 12px; }
.area-form.area-form-slim { display:flex; align-items:center; gap:8px; }
.area-form-slim select, .area-form-slim input { flex:1 1 140px; width:auto; height:40px; padding:8px 10px; font-size:14.5px; }
.area-form-slim .btn-set-slim { flex:0 0 auto; height:40px; padding:8px 14px; font-size:14px; }
.area-form-slim .btn-gps-icon { flex:0 0 auto; width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; background:#fff; color:#1a3a5c; border:1.5px solid #1a3a5c; border-radius:8px; padding:0; }
.location-strip .borough-row { margin-top:10px; }
.location-strip .location-status { margin-top:10px; }
.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.borough-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:14px; font-size:13px; color:#456; }
.borough-chip { background:#fff; border:1px solid #9db9d8; color:#1a3a5c; border-radius:999px; padding:6px 11px; cursor:pointer; font-weight:600; }
.fallback-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.search-large { display:flex; gap:10px; margin:20px 0 8px; }
.search-large input { flex:1; border:1px solid #a9bfd8; border-radius:9px; padding:13px; font-size:16px; }
.search-large button { background:#1a3a5c; color:#fff; border:0; border-radius:9px; padding:12px 20px; font-weight:700; cursor:pointer; }
.search-summary { color:#456; margin:8px 0 14px; }
.search-results { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; margin-bottom:10px; }
.result-card { display:block; background:#fff; border:1px solid #dce6f2; border-radius:10px; padding:16px; text-decoration:none; color:#222; box-shadow:0 1px 4px rgba(20,50,90,.06); }
.result-card:hover { border-color:#7aa5d8; transform:translateY(-1px); }
.result-card h3 { color:#1a3a5c; margin:5px 0 7px; }
.result-card p { color:#556; font-size:14px; }
.result-type { font-size:12px; font-weight:700; color:#b8860b; text-transform:uppercase; letter-spacing:.03em; }
@media (max-width:720px) {
  /* Header layout (Dong 2026-10-13): one compact row — small back
     button top-left, logo, language switch, post shortcut — with the
     search bar as the single full-width element below them. */
  .header-inner { flex-wrap:wrap; }
  .nav-back-btn { order:0; }
  .logo { order:1; }
  .lang-switch { order:2; margin-left:auto; }
  .post-link { order:3; }
  .searchbar { order:4; flex-basis:100%; max-width:none; }
  .search-large { flex-direction:column; }
  /* Full location panel (homepage): stack the fields full-width. */
  .location-controls { flex-direction:column; align-items:stretch; }
  .location-controls .btn-location { width:100%; justify-content:center; }
  .area-form { grid-template-columns:1fr; }
  .area-form > button { width:100%; }
  /* Slim strip: two rows — state+city, then Set area + GPS icon. */
  .area-form-slim { flex-wrap:wrap; }
  .area-form-slim select, .area-form-slim input { flex:1 1 42%; }
  .area-form-slim .btn-set-slim { flex:1 1 auto; }
}

/* Merchant centre entry — lives in the footer portal strip on every
   page (Dong 2026-10-13: entrances are spread out, not stacked in the
   header). The button style below is for the footer context. */
.merchant-login-link{background:#123a5c;color:#fff;padding:8px 14px;border-radius:6px;font-weight:700;font-size:14px;white-space:nowrap;text-decoration:none}
.merchant-login-link:hover{opacity:.9;text-decoration:none}

/* 2026-10-13 type layer (Dong Yelp-style spec): hero photo, popular type
   cards, type dropdown, all-types overlay, per-type pages. */
.cat-banner{height:200px;max-height:none;border-radius:14px}
.topics-inner{padding:18px}
.types-heading{font-size:19px;color:#1a3a5c;margin:2px 0 12px}
.type-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.type-grid-big{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.type-card{display:flex;align-items:center;gap:12px;background:#f7fafd;border:1px solid #dce6f2;border-radius:12px;padding:14px;text-decoration:none;color:#1c2b3a}
.type-card:hover{border-color:#7aa5d8;background:#eef4fb}
.type-card-big{padding:20px 16px}
.type-icon{width:28px;height:28px;flex:none;color:#1a3a5c}
.type-card-big .type-icon{width:44px;height:44px}
.type-card-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.type-name,.type-zh{display:block}
.type-name{font-weight:700;font-size:16px;line-height:1.25}
.type-card-big .type-name{font-size:18px}
.type-zh{font-size:13px;color:#5a6b7d}
.type-count{margin-left:auto;flex:none;background:#e8eff7;color:#1a3a5c;font-size:13px;font-weight:700;border-radius:999px;padding:3px 10px}
.type-picker-row{margin-top:20px}
.type-picker-label{display:block;font-weight:700;color:#1a3a5c;margin-bottom:8px;font-size:16px}
.type-picker{width:100%;padding:13px 12px;font-size:16px;border:1.5px solid #a9bfd8;border-radius:9px;background:#fff;color:#1c2b3a}
.type-browser-bar{text-align:right;margin-top:14px}
.btn-all-types{background:#1a3a5c;color:#fff;border:0;border-radius:9px;padding:12px 18px;font-size:15px;font-weight:700;cursor:pointer}
.btn-all-types:hover{opacity:.92}
.type-overlay{position:fixed;inset:0;background:rgba(10,25,45,.55);z-index:80;display:flex;align-items:center;justify-content:center;padding:14px}
.type-overlay[hidden]{display:none}
.type-overlay-panel{background:#fff;border-radius:14px;width:min(1060px,96vw);max-height:92vh;overflow:auto;padding:20px}
.type-overlay-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;font-size:17px;color:#1a3a5c}
.type-overlay-close{background:#b3540a;color:#fff;border:0;border-radius:8px;padding:9px 14px;font-weight:700;cursor:pointer;font-size:15px}
.type-overlay-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.type-overlay-foot{margin-top:16px}
.sub-row-link{text-decoration:none;color:inherit;cursor:pointer}
.sub-row-link:hover{background:#f4f8ff}
.row-arrow{color:#8aa0b5;font-size:22px;font-weight:400;flex:none}
.type-intro{color:#555;margin-bottom:18px}
.type-zh-title{font-size:.62em;color:#5a6b7d;font-weight:400}
.type-back{margin:16px 0 4px}
@media (max-width:720px){
  .cat-banner{height:128px}
  .topics-inner{padding:12px}
  .type-grid,.type-grid-big,.type-overlay-grid{grid-template-columns:repeat(2,1fr)}
  .type-card{padding:11px;gap:9px}
  .type-card-big{padding:14px 12px}
  .type-icon{width:26px;height:26px}
  .type-card-big .type-icon{width:32px;height:32px}
  .type-name{font-size:15px}
  .type-overlay-panel{padding:14px}
}

/* --- Site chrome (2026-10-13, Dong): logo image, back button,
   fixed bottom nav. The back button is ONE small button at the
   top-left (Dong 2026-10-13: never a full-width bar). The bottom bar
   is 64px tall; body padding keeps it from ever covering page
   content (incl. the form submit). Its z-index stays below the type
   overlay (80) and the form modal (100), so both cover the bar
   while open. --- */
.logo{display:inline-flex;align-items:center;gap:10px}
.logo:hover{text-decoration:none}
.logo-img{width:40px;height:40px;object-fit:contain;border-radius:50%;flex:none}
.logo-text{line-height:1.1}
.nav-back-btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:7px 13px;font-family:inherit;font-size:15px;font-weight:700;color:#123a5c;background:#eef4fa;border:2px solid #123a5c;border-radius:10px;cursor:pointer;white-space:nowrap;flex:none}
.nav-back-btn:hover{background:#dde9f5}
.nav-back-btn:disabled{opacity:.4;cursor:default}
.nav-back-btn:disabled:hover{background:#eef4fa}
.nav-back-arrow{font-size:20px;line-height:1}
body{padding-bottom:88px}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;background:#123a5c;box-shadow:0 -2px 10px rgba(0,0,0,.2)}
.bottom-nav-item{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:64px;padding:7px 4px;color:#fff;background:none;border:0;font-family:inherit;font-size:13px;font-weight:600;line-height:1.25;text-align:center;cursor:pointer;min-width:0}
.bottom-nav-item svg{width:24px;height:24px;flex:none}
a.bottom-nav-item:hover{text-decoration:none;background:rgba(255,255,255,.09)}
button.bottom-nav-item:hover{background:rgba(255,255,255,.09)}
button.bottom-nav-item:disabled{opacity:.45;cursor:default}
button.bottom-nav-item:disabled:hover{background:none}
@media (max-width:640px){
  .logo-img{width:34px;height:34px}
  .nav-back-btn{min-height:40px;padding:7px 12px;font-size:14px}
  .bottom-nav-item{font-size:12px}
}

/* --- structure slots (2026-10-13): ad slots / publish cards / post page /
       pipe "coming soon" pages. New rules only; nothing above is changed. --- */
.post-link{flex:none;display:inline-flex;align-items:center;background:#b3540a;color:#fff;padding:8px 14px;border-radius:6px;font-weight:700;font-size:14px;white-space:nowrap;text-decoration:none}
.post-link:hover{opacity:.9;text-decoration:none}
.footer-postbar{text-align:center;padding:12px 14px;border-top:1px solid #333}
.footer-postbar a{color:#ffc85e;font-weight:700;font-size:15px;text-decoration:none}
.footer-postbar a:hover{text-decoration:underline}
.ad-slot{position:relative;background:#eef4fa;border:1px solid #cfdde9;border-radius:10px;overflow:hidden;height:144px;margin:16px 0;width:100%}
.ad-slot-wide{width:min(1100px,calc(100% - 32px));margin:16px auto}
.cat-grid .ad-slot{grid-column:1/-1;margin:0}
.ad-slide{position:absolute;inset:0;display:none;align-items:center;gap:16px;padding:26px 20px 12px}
.ad-slide:first-child{display:flex}
.ad-slot.js-rot .ad-slide{display:none}
.ad-slot.js-rot .ad-slide.on{display:flex}
.ad-badge{position:absolute;top:0;left:0;background:#123a5c;color:#fff;font-size:11px;font-weight:700;letter-spacing:.02em;padding:2px 8px;border-radius:0 0 8px 0;z-index:2}
.ad-badge-paid{display:none}
.ad-slide-body{flex:1;min-width:0}
.ad-slide-title{display:block;font-size:17px;line-height:1.25;font-weight:700;color:#123a5c}
.ad-slide-text{display:block;font-size:14px;line-height:1.4;color:#45525e;margin-top:2px}
.ad-slide-links{display:block;margin-top:6px}
.ad-mini-link{font-weight:700;color:#b3540a;font-size:14.5px;margin-right:16px;text-decoration:none}
.ad-mini-link:hover{text-decoration:underline}
.ad-slide-cta{flex:none;background:#123a5c;color:#fff;padding:11px 18px;border-radius:8px;font-weight:700;font-size:15px;text-decoration:none}
.ad-slide-cta:hover{opacity:.92;text-decoration:none}
.publish-card{display:flex;align-items:center;gap:16px;background:#fff8e6;border:2px solid #e8a33d;border-radius:12px;padding:18px 20px;margin:16px 0;text-decoration:none;color:#333}
.publish-card:hover{box-shadow:0 3px 12px rgba(0,0,0,.12);text-decoration:none}
.publish-body{flex:1;min-width:0}
.publish-title{display:block;font-size:19px;font-weight:800;color:#123a5c}
.publish-text{display:block;font-size:14.5px;color:#555;margin-top:3px}
.publish-cta{flex:none;font-weight:800;color:#b3540a;font-size:16px;white-space:nowrap}
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin:20px 0}
.post-route{display:block;background:#eef4fa;border:2px solid #123a5c;border-radius:12px;padding:22px 18px;text-decoration:none}
.post-route:hover{box-shadow:0 3px 12px rgba(0,0,0,.12);text-decoration:none}
.post-route .publish-cta{display:block;margin-top:12px}
.pipe-badge{display:inline-block;background:#fff3cd;border:1px solid #e0a800;color:#5a4500;border-radius:999px;padding:4px 14px;font-weight:700;font-size:14px;margin-bottom:12px}
.pipe-notify{background:#eef4fa;border:1px solid #cfdde9;border-radius:10px;padding:18px 20px;margin:22px 0}
.pipe-notify h2{font-size:19px;margin:0 0 6px;color:#123a5c}
.pipe-notify p{margin:0 0 14px;font-size:15px;color:#44525e}
.pipe-links{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.btn-ghost{display:inline-block;padding:11px 18px;border:2px solid #123a5c;border-radius:8px;color:#123a5c;font-weight:700;font-size:15px;text-decoration:none;background:#fff}
.btn-ghost:hover{background:#eef4fa;text-decoration:none}
@media (max-width:1024px){
  /* the header row gains the post link; let it wrap at tablet / landscape
     widths instead of pushing the last item off-screen */
  .header-inner{flex-wrap:wrap}
}
@media (max-width:640px){
  /* narrow screens: stack slide content (text full width, CTA below) so
     nothing is squeezed beside the button and clipped */
  .ad-slot{height:152px}
  .ad-slide{flex-direction:column;align-items:stretch;justify-content:center;gap:6px;padding:22px 14px 12px}
  /* in the stacked layout the body must hug its text — flex:1 here
     stretched it and pushed the CTA to the bottom, leaving the big
     blank band Dong flagged (2026-10-13) */
  .ad-slide-body{flex:none}
  .ad-slide-cta{align-self:flex-start;padding:7px 12px}
  .ad-slide-title{font-size:15px;line-height:1.25}
  .ad-slide-text{font-size:12.5px;line-height:1.3}
  .ad-slide-cta{padding:9px 12px;font-size:14px}
  .publish-card{padding:14px 16px}
  .publish-title{font-size:17px}
  .publish-cta{font-size:15px}
}

/* --- T2 restaurant two-choice (2026-10-13): the food last step.
       New rules only; nothing above is changed. --- */
.t2-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin:18px 0}
.t2-card{display:block;background:#eef4fa;border:2px solid #123a5c;border-radius:12px;padding:22px 20px;text-decoration:none;color:#333;min-height:120px}
.t2-card:hover{box-shadow:0 3px 12px rgba(0,0,0,.12);text-decoration:none}
.t2-card-t{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:800;color:#123a5c}
.t2-card-t svg{flex:none}
.t2-card-x{display:block;font-size:14.5px;line-height:1.45;color:#45525e;margin-top:8px}
.t2-card-c{display:block;margin-top:12px;font-weight:800;color:#b3540a;font-size:16px}
.t2-prompt{font-weight:700;color:#123a5c;margin:16px 0 0}
.fallback-panel .t2-grid{margin-bottom:6px}

/* --- Duo explanation block (2026-10-13, Dong 15:23): final layer
       only, sits directly UNDER the two choice cards in the same
       decision view. One block, one focus: the free promise leads
       (strong, accent colour); the how-we-earn line is a quieter
       second breath inside the same block via .duo-earn. --- */
.duo-block{margin:2px 0 18px}
.duo-intro{font-size:15px;line-height:1.6;color:#2b3a47;margin:0;max-width:72ch}
.duo-intro strong{font-weight:800;color:#b3540a}
.duo-earn{display:block;margin-top:7px;font-size:13.5px;line-height:1.55;color:#5a6672}
@media (max-width:640px){
  .t2-grid{grid-template-columns:1fr}
  .t2-card{padding:18px 16px;min-height:104px}
  .t2-card-t{font-size:17px}
}

/* --- Shell rework (2026-10-13, Dong): footer portal strip, homepage
       publish section, type-list pager. New rules only. --- */
.footer-portal{text-align:center;padding:12px 14px;border-top:1px solid #333}
.footer-portal .merchant-login-link{background:transparent;border:1.5px solid #7db9f0;color:#7db9f0}
.footer-portal .merchant-login-link:hover{opacity:1;background:rgba(125,185,240,.12);text-decoration:none}
.publish-section{margin:6px 0 26px}
.pub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin:20px 0}
.pub-grid .publish-card{margin:0}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 6px}
.pager .btn-area{flex:none}
.pager-off{opacity:.45;cursor:default}
.pager-info{font-size:14.5px;font-weight:600;color:#44536a;text-align:center}
@media (max-width:640px){
  .pub-grid{grid-template-columns:1fr}
  .pager-info{font-size:13.5px}
}

/* --- Publish photo cards (2026-10-13, Dong 10:29): the nine pipes sit
       like ad slots — photo first, name under it, whole card tappable.
       Same visual family as the category cards (.cat-card/.cat-thumb):
       full-width photo on top, text below. New rules only; the base
       .publish-card/.post-route rules above stay untouched. --- */
.publish-card{flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden}
.publish-card .publish-body{padding:14px 18px 2px}
.publish-card .publish-cta{padding:0 18px 16px;margin-top:8px}
.pub-img{display:block;width:100%;height:150px;object-fit:cover}
.post-route{padding:0;overflow:hidden}
.post-route .publish-title{padding:14px 18px 0}
.post-route .publish-text{padding:0 18px}
.post-route .publish-cta{padding:0 18px 16px}
@media (max-width:640px){
  .pub-img{height:132px}
  .publish-card .publish-body{padding:12px 16px 2px}
  .publish-card .publish-cta{padding:0 16px 14px}
  .post-route .publish-title{padding:12px 16px 0}
  .post-route .publish-text{padding:0 16px}
  .post-route .publish-cta{padding:0 16px 14px}
}


/* --- category directory (reorg phase 2, 2026-10-13) --- */
.dir-index{position:sticky;top:0;z-index:30;display:flex;gap:8px;overflow-x:auto;padding:10px 2px;background:#fff;border-bottom:1px solid #eee;margin:18px 0 6px}
.dir-chip{flex:0 0 auto;padding:6px 12px;border:1px solid #ddd;border-radius:999px;font-size:13px;color:#333;background:#fafafa}
.dir-chip:hover{border-color:#b3540a;text-decoration:none}
.dir-group{margin:14px 0}
.dir-details{border:1px solid #e6e6e6;border-radius:10px;background:#fff}
.dir-summary{cursor:pointer;padding:14px 18px;font-size:17px;font-weight:700}
.dir-meta{font-size:13px;color:#888;font-weight:400;margin-left:8px}
.dir-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;padding:0 18px 18px}
.dir-card{background:#fff;border:1px solid #e6e6e6;border-radius:10px;padding:18px;display:block;color:#222;min-width:0;overflow-wrap:break-word}
.dir-card:hover{border-color:#b3540a;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.dir-card h3{font-size:17px;margin-bottom:6px}
.dir-card .count{font-size:12px;color:#999;margin-top:8px}
.dir-card .cat-thumb{width:100%;height:160px;object-fit:cover;border-radius:8px;margin-bottom:10px;display:block}
.dir-back{padding:0 18px 14px;margin:0;font-size:13px}
@media (max-width:700px){ .dir-grid{grid-template-columns:1fr;gap:14px} .dir-card .cat-thumb{height:90px} }


/* ================================================================
   FLUID DESIGN SYSTEM (2026-10-13, Dong) — defined ONCE here.
   The whole site adapts continuously from these tokens: fluid
   spacing/type via clamp(), elastic flex/grid tracks, one button
   system, one locked header layout. No page or device gets its
   own patch; the width sweep 360-1440 in the batch report proves
   there is no broken in-between size. Modelled on large directory
   sites: header actions go icon-compact at phone widths, search
   owns its row, type scales smoothly with viewport width.
   ================================================================ */
:root{
  --brand:#b3540a;          /* primary orange */
  --navy:#123a5c;           /* secondary navy  */
  --btn-h:44px; --btn-radius:8px; --btn-font:15px; --btn-pad:10px 18px;
  --pad-page:clamp(12px,3.5vw,20px);
  --fs-hero:clamp(24px,5.6vw,30px);
  --fs-section:clamp(19px,4.6vw,22px);
  --fs-logo:clamp(17px,4.8vw,22px);
}
/* ---- spacing rhythm ---- */
.container{padding:26px var(--pad-page)}
.header-inner{padding:10px var(--pad-page)}
.breadcrumb{padding:8px var(--pad-page)}
.hero{padding:clamp(28px,6vw,48px) var(--pad-page)}
/* ---- header: locked seats, every page / width / orientation ----
   Row 1: [logo] ......... [back][language][Post]   Row 2: [search...]
   Back sits beside the language selector (Dong 2026-10-13 14:27):
   same height, same font size, same box style as the selector.
   Home has no back seat, so the language switch takes the auto
   margin there instead; same for any header without a back seat. */
.header-inner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.site-header .logo{order:1}
.site-header .nav-back-btn{order:2;margin-left:auto}
.site-header .lang-switch{order:3;margin-left:0}
.site-header .post-link{order:4}
.site-header .searchbar{order:5;flex:1 1 100%;max-width:none;min-width:0}
body[data-page="home"] .site-header .lang-switch{margin-left:auto}
.header-inner:not(:has(> .nav-back-btn)) .lang-switch{margin-left:auto}
body[data-page="home"] .site-header .nav-back-btn{display:none} /* home has no previous page */
/* ---- one button system: three kinds, one size spec ---- */
.btn-book,.searchbar button,.post-link,.form-submit,.type-overlay-close{background:var(--brand);color:#fff;border:2px solid var(--brand)}           /* primary   */
.btn-quote,.btn-all-types,.ad-slide-cta,.area-form button,.search-large button{background:var(--navy);color:#fff;border:2px solid var(--navy)}        /* secondary */
.nav-back-btn,.btn-area,.btn-ghost,.btn-location,.btn-reset{background:#fff;color:var(--navy);border:2px solid var(--navy)}                          /* outline   */
.btn-near{background:#1a7a3a;color:#fff;border:2px solid #1a7a3a}                                                                                      /* GPS action: green, same size */
.btn-book,.btn-quote,.btn-area,.btn-ghost,.btn-location,.btn-near,.btn-reset,.ad-slide-cta,.btn-all-types,.post-link,.merchant-login-link,.type-overlay-close,.search-large button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--btn-h);padding:var(--btn-pad);border-radius:var(--btn-radius);font-size:var(--btn-font);font-weight:700;line-height:1.25}
.nav-back-btn{min-height:var(--btn-h);padding:10px 14px;border-radius:var(--btn-radius);font-size:var(--btn-font)}
.form-submit{min-height:48px;border-radius:var(--btn-radius);font-size:var(--btn-font)}
.searchbar button{min-height:var(--btn-h);padding:var(--btn-pad);font-size:var(--btn-font);border-radius:0 var(--btn-radius) var(--btn-radius) 0}
.searchbar input{height:var(--btn-h);border-radius:var(--btn-radius) 0 0 var(--btn-radius)}
.lang-switch select{height:var(--btn-h);border-radius:var(--btn-radius)}
/* back button = the language selector's pair (Dong 2026-10-13 14:27):
   one box spec for both — white, 1px #c3cfdd border, #1a3a5c text,
   regular weight, one shared font size, same 44px height */
.site-header .nav-back-btn{background:#fff;color:#1a3a5c;border:1px solid #c3cfdd;font-weight:400}
.site-header .nav-back-btn:hover{background:#eef4fa}
.site-header .nav-back-btn,.site-header .lang-switch select{font-size:14px}
.borough-chip{min-height:36px;padding:6px 12px;border-radius:999px;font-size:13px}  /* chips: the one small-pill exception */
.footer-portal .merchant-login-link{display:inline-flex;align-items:center;justify-content:center}
/* ---- one type scale: fixed text sizes, display sizes fluid ---- */
body{font-size:16px}
.logo{font-size:var(--fs-logo)}
.logo-img{width:clamp(30px,8vw,40px);height:clamp(30px,8vw,40px)}
.hero h1{font-size:var(--fs-hero);line-height:1.3}
.hero p{font-size:16px}
.section-title{font-size:var(--fs-section);color:var(--navy);border-bottom:3px solid #f0b35e;padding-bottom:6px}
.types-heading{font-size:18px}
.cat-card h3,.dir-card h3{font-size:17px;color:var(--navy)}
.type-name{font-size:16px}
.type-card-big .type-name{font-size:17px}
.type-card-big .type-icon{color:var(--brand)}
.sub-row .name{color:var(--navy)}
.publish-title{font-size:18px}
.ad-slide-title{font-size:16px}
.breadcrumb{font-size:13px}
.bottom-nav-item{font-size:13px}
/* ---- media: fluid caps, never fixed pixel walls ---- */
.cat-banner{height:clamp(120px,26vw,200px);max-height:none}
.pub-img{height:clamp(120px,32vw,150px)}
.publish-card{flex-direction:column;align-items:stretch}
.ad-slot{height:clamp(150px,24vw,176px)}
/* ---- elastic card tracks (no fixed column counts) ---- */
.cat-grid,.dir-grid{grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr))}
@media (max-width:720px){
  .type-grid,.type-grid-big,.type-overlay-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr))}
  .ad-slot{height:clamp(168px,44vw,190px)}
}
/* ---- header compact mode (the header's single adaptation):
   the four labelled seats need ~650px; below 680px the back and
   Post buttons go icon-only — the way large sites keep one header
   row on phones — while logo, name and language keep their seats
   and spacing tightens. Search still owns row 2. ---- */
@media (max-width:680px){
  .header-inner{gap:8px 4px;padding:10px 8px}
  .site-header .logo{gap:5px}
  .site-header .nav-back-btn span[data-i18n="nav.back"]{display:none}
  .site-header .nav-back-btn{padding:10px;font-size:13px} /* pair: select is 13px here too */
  .site-header .post-link{font-size:0;padding:9px 10px}
  .site-header .post-link::after{content:"+";font-size:22px;font-weight:800;line-height:1;color:#fff}
  .site-header .lang-switch>span{display:none}
  .site-header .lang-switch select{max-width:80px;padding:5px 2px;font-size:13px}
}

/* --- house creatives (2026-10-13 dedup batch): every ad slot carries
   ONE creative with its own photo; slots on the same page never share
   a creative, a photo or a link. --- */
.ad-thumb{width:118px;align-self:stretch;object-fit:cover;flex:none}
@media (max-width:640px){ .ad-thumb{width:100%;height:60px;align-self:auto} }

/* --- type cards (fluid): the name column claims a 12ch flex basis;
   when a narrow card cannot grant it, the name wraps to its own
   full-width row instead of being clipped by the count pill. --- */
.type-card{flex-wrap:wrap}
.type-card .type-card-text{flex:1 1 12ch;min-width:0}
.type-name{overflow-wrap:break-word}

/* ================================================================
   DESIGN SYSTEM v1 APPLY (2026-10-13, Dong: surface = first
   impression) — tokens + overrides from design-system-v1-2026-10-13.md
   checklist items 1-6. New rules only; earlier sections stand
   except where a rule below restates it. Deliberately NOT changed
   here: the fluid button system above (one system, radius 8px,
   already unified) and the navy hero blocks (checklist has no
   hero item; design gap #5 stays for a later batch decision).
   ================================================================ */
:root{
  --ink-2:#5F6B73;        /* secondary text (Thumbtack #676D73 class) */
  --ink-3:#8A94A0;        /* tertiary: counts / footnotes */
  --link:#0B63C4;         /* link blue (band #006CE4-#1A73E8) */
  --line:#D9DEE3;         /* the one card/input border gray */
  --shadow-card:0 2px 12px rgba(15,35,55,.08);
  --lh-head:1.2;
}
/* -- checklist 5 (page ground): white page, not #FAFAFA -- */
body{background:#fff}
/* -- checklist 4: links read as links (blue band) -- */
a{color:var(--link)}
.breadcrumb a{color:var(--link)}
.merchant-join-cta a{color:var(--link)}
.ad-mini-link{color:var(--link)}
/* -- checklist 1: cards — 1px light border + soft shadow,
      tint grounds -> white, one 12px radius -- */
.cat-card,.dir-card,.merchant,.nearme-bar,.quote-wrap{border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-card)}
.result-card{border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-card)}
.sub-list,.dir-details{border:1px solid var(--line);border-radius:12px}
.t2-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-card)}
.publish-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-card)}
.post-route{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-card)}
.ad-slot{background:#fff;border:1px solid var(--line);border-radius:12px}
.merchant-join-cta{background:#fff;border:1px solid var(--line);border-radius:12px}
.pipe-notify{background:#fff;border:1px solid var(--line);border-radius:12px}
.location-panel,.fallback-panel{background:#fff;border:1px solid var(--line)}
.location-strip{background:#fff;border:1px solid var(--line);border-radius:12px}
.type-picker{border:1px solid var(--line)}
.dir-chip{background:#fff}
/* -- checklist 2: gray hierarchy — secondary text one mid gray,
      tertiary one light gray; hierarchy from gray + space,
      not from bigger/bolder type -- */
.cat-card p,.publish-text,.type-intro,.result-card p,.t2-card-x,.ad-slide-text,.pipe-notify p,.location-note,.search-summary,.nearme-status,.duo-earn,.sample-note{color:var(--ink-2)}
.cat-card .cn,.sub-row .name .cn,.form-group label .cn,.merchant .meta .label,.breadcrumb,.form-card .form-sub,.type-zh,.dir-meta{color:var(--ink-2)}
.cat-card .count,.dir-card .count{color:var(--ink-3)}
.result-type{color:var(--ink-2)}
/* -- checklist 3: heading grades — tight leading (1.2-1.25),
      card titles drop to 600, 800 weights normalise to 700;
      body stays 16px/1.5 -- */
.hero h1,.quote-hero h1{line-height:var(--lh-head)}
.section-title,.types-heading,.location-panel h2,.fallback-panel h2,.pipe-notify h2,.publish-title,.dir-summary{line-height:1.25}
.cat-card h3,.dir-card h3,.merchant h3,.result-card h3,.form-card h3{font-weight:600}
.publish-title,.t2-card-t,.publish-cta,.t2-card-c{font-weight:700}
/* -- checklist 5: header slimming (CSS size only; seats/DOM
      untouched) — vertical padding 10px -> 6px, row gap 8px -> 6px
      (row-gap longhand only, so the <=680px compact column gap
      from the fluid section is preserved) -- */
.header-inner{padding-top:6px;padding-bottom:6px;row-gap:6px}


/* ================================================================
   VISUAL BATCH 2 (2026-10-13, Dong 18:50: photos not uniform +
   ad slots too plain/static/repetitive) — one photo standard
   per slot type, photo carousels in the ad slots. New rules
   only; earlier sections stand except where restated here.
   ================================================================ */
/* -- Work A: card photos — ONE ratio standard. The source pool
      is 8:5 (1600x1000), so every card photo is an 8:5 frame:
      full-width, ratio height, cover crop, one inset radius.
      Replaces the fixed 160px/90px height walls.
      2026-10-14 SUPERSEDED (Dong 14:27 "图片是灵魂" + 14:47, on the
      big-site card comparison in image-card-reference-2026-10-14.md:
      image-first cards run ~70% photo; 8:5 is too flat): catalogue
      card photos (.cat-thumb, .pub-img) are now a 4:3 frame, cover
      crop from the same source pool. Ad-slot photos keep their own
      engineered sizes (.ad-thumb) and the category banner keeps
      16:5 — neither is a catalogue card. -- */
.cat-card .cat-thumb,.dir-card .cat-thumb{height:auto;aspect-ratio:4/3;border-radius:10px}
.pub-img{height:auto;aspect-ratio:4/3}
/* -- Work A: category banner — ONE wide-strip standard
      (16:5 frame, capped), radius joins the card family (12). -- */
.cat-banner{height:auto;aspect-ratio:16/5;max-height:220px;border-radius:12px}
/* -- Work B: ad photo — wide slots get a 200px 8:5 framed photo
      beside the text; NARROW slots (an item page's 560px column
      is narrow even on a desktop screen) get the stacked layout
      with a full-width 48px letterbox strip above the text —
      decided by the SLOT's own width via container queries,
      never by the viewport alone. Fallback where container
      queries are unavailable: a 150px photo in the row layout. -- */
.ad-slot{container-type:inline-size}
.ad-thumb{width:150px;height:auto;aspect-ratio:8/5;align-self:center;border-radius:10px}
@container (min-width:760px){
  .ad-thumb{width:200px}
}
@container (max-width:759px){
  /* stacked internals are trimmed (48px strip, tighter padding
     and type) so the tallest slide — the AI phone text — still
     fits the fixed slot height instead of clipping top/bottom */
  .ad-slide{flex-direction:column;align-items:stretch;justify-content:center;gap:4px;padding:14px 14px 8px}
  .ad-slide-body{flex:none}
  .ad-slide-cta{align-self:flex-start}
  .ad-slide-title{font-size:15px}
  .ad-slide-text{font-size:12.5px;line-height:1.3}
  .ad-thumb{width:100%;height:48px;aspect-ratio:auto;align-self:auto}
}
@media (max-width:720px){
  /* stacked slots need more height than the row layout's clamp:
     the tallest stacked slide measures ~193px at phone widths */
  .ad-slot{height:clamp(196px,54vw,212px)}
}
@media (max-width:640px){
  .ad-thumb{width:100%;height:48px;aspect-ratio:auto;align-self:auto;border-radius:10px}
}
/* -- Work B: carousel mechanics. No-JS (or reduced motion, where
      the script stays out): the first slide shows — it is the
      first DIV in the slot now that the badge sits at slot
      level, hence :first-of-type, not :first-child. With the
      rotator running (.js-rot), slides crossfade via opacity;
      display stays flex so the fade has something to blend. -- */
.ad-slot:not(.js-rot) .ad-slide:first-of-type{display:flex}
.ad-slot.js-rot .ad-slide{display:flex;opacity:0;visibility:hidden;transition:opacity .55s ease,visibility 0s linear .55s}
.ad-slot.js-rot .ad-slide.on{opacity:1;visibility:visible;transition:opacity .55s ease}
@media (prefers-reduced-motion: reduce){
  .ad-slide{transition:none}
}

/* ================================================================
   VERIFIED LISTINGS (2026-10-14 pilot, item: auto-repair-shop) —
   on-page verified-business listing section for item pages.
   One component for all items; see listing-section-spec-2026-10-14.md.
   Uses the design-system tokens above (--line / --shadow-card /
   --ink-2 / --ink-3 / --link / --navy / --brand). White cards,
   1px line border, soft shadow — same card language as .t2-card.
   ================================================================ */
.biz-section{margin:28px 0 4px}
.biz-intro{font-size:14.5px;line-height:1.55;color:var(--ink-2);margin:0 0 6px}
.biz-borough{font-size:16px;font-weight:800;color:var(--navy);margin:20px 0 10px}
.biz-list{display:flex;flex-direction:column;gap:12px}
.biz-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-card);padding:16px 18px}
.biz-name{font-size:16.5px;font-weight:800;color:var(--navy);margin:0 0 4px;line-height:1.3}
.biz-meta{font-size:14px;color:var(--ink-2);margin:0 0 6px;line-height:1.45}
.biz-star{color:var(--brand);font-weight:800}
.biz-addr{font-size:14px;color:#333;margin:0;line-height:1.45}
.biz-tel{font-size:14px;margin:5px 0 0}
.biz-tel a{color:var(--link);font-weight:700}
.biz-note{font-size:12.5px;color:var(--ink-3);line-height:1.55;margin:16px 0 0}

/* ================================================================
   NINE-PIPE HORIZONTAL RAIL (2026-10-14, Dong 14:19 + 14:53;
   spec: design-research-2026-10-13/pipes-horizontal-spec-2026-10-14
   .md §1). One component under the header on every page: a
   sideways-scrolling strip of nine chips (the nine pipes, fixed
   order); tapping a chip opens the panel below the strip with that
   pipe's two 44px entrances. The wrap is the sticky element
   (header no longer sticks — see the .site-header note above);
   the open panel sticks with it. Markup: add_structure_slots.py
   (slot cmg-slot:pipes-rail); behaviour: js/pipes-rail.js.
   ================================================================ */
.pipes-rail-wrap{position:sticky;top:0;z-index:60;background:#fff;box-shadow:0 1px 0 var(--line)}
.pipes-rail{max-width:1100px;margin:0 auto;position:relative}
.pipes-rail-label{padding:10px var(--pad-page) 4px;font-size:13px;color:var(--ink-2);display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.pipes-rail-label b{color:var(--navy);font-size:14px}
.pipes-scroll{display:flex;gap:8px;overflow-x:auto;padding:6px var(--pad-page) 12px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.pipes-scroll::-webkit-scrollbar{display:none}
.pr-chip{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:44px;padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#222;text-align:left;font-family:inherit;cursor:pointer;touch-action:manipulation}
.pr-chip .pr-chip-name{font-size:15px;font-weight:600;line-height:1.25;white-space:nowrap}
.pr-chip .pr-chip-tag{font-size:11px;color:var(--ink-3);line-height:1.2;white-space:nowrap}
/* Highlight law (Dong 2026-10-14 15:53): the dark fill follows the
   OPEN panel's chip only (.open). The page's own pipe (.active)
   gets a light identity mark instead — tint, navy text, brand
   underline bar and a brand number — never a second dark chip.
   .open rules come after .active so a chip carrying both states
   renders dark (it is the open one). */
.pr-chip.active{background:#e9f1f8;border-color:var(--navy);color:var(--navy);box-shadow:inset 0 -3px 0 var(--brand)}
.pr-chip.active .pr-num{color:var(--brand)}
.pr-chip.active .pr-chip-tag{color:var(--ink-2)}
.pr-chip.open{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:inset 0 -3px 0 var(--brand)}
.pr-chip.open .pr-num{color:inherit}
.pr-chip.open .pr-chip-tag{color:#cfe0ee}
.pipes-arrow{display:none}
.pr-panel{border-top:1px solid var(--line);background:#f7fafd;padding:14px var(--pad-page) 16px}
.pr-panel[hidden]{display:none}
.pr-panel h3{font-size:17px;font-weight:600;color:var(--navy)}
.pr-panel .pr-status{font-size:12px;color:var(--brand);font-weight:600}
.pr-panel p{font-size:14px;color:var(--ink-2);margin:4px 0 12px}
.pr-actions{display:flex;gap:12px}
.pr-actions a{flex:1;display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 16px;border-radius:8px;font-size:16px;font-weight:600;text-decoration:none;white-space:nowrap}
.pr-actions .pr-enter{background:var(--navy);border:1px solid var(--navy);color:#fff}
.pr-actions .pr-post{background:#fff;border:1px solid var(--navy);color:var(--navy)}
/* In-preparation pipes: Enter drops to the outline treatment, so the
   panel shows no solid "enter and use it" primary (audit M1). */
.pr-actions .pr-enter.pr-prep{background:#fff;border:1px solid var(--navy);color:var(--navy)}
@media (min-width:1024px){
  .pipes-arrow{display:flex;position:absolute;top:38px;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:#fff;align-items:center;justify-content:center;box-shadow:var(--shadow-card);z-index:2;font-size:18px;color:var(--navy);cursor:pointer;font-family:inherit}
  .pipes-arrow.left{left:4px}
  .pipes-arrow.right{right:4px}
  /* Audit C5 (2026-10-14): the arrows overlay the scroll track and
     covered the edge chips' numbers. Give the track clearance on
     desktop so the first/last chips sit fully clear of the arrows.
     Mobile is untouched — the arrows are display:none there. */
  .pipes-scroll{padding-left:48px;padding-right:48px}
}

/* ---- 2026-10-14 self-check fix: grid density + hub bands ----
   C1: the homepage category grid was one full-width card per row on
   phones (70 cards ≈ 36 screens). Two compact columns instead; the
   desktop elastic track above is untouched. Card content rules are
   unchanged (4:3 photo, name, type count; no price slot at this layer). */
@media (max-width:720px){
  .cat-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .cat-card{padding:10px}
  .cat-card h3{font-size:15px;line-height:1.25;margin-bottom:4px}
  .cat-card .count{margin-top:4px}
  .cat-card .cat-thumb{margin-bottom:8px}
}
/* M4/M5: same-name hub band (rail pipe <-> category page share one hub) */
.hub-band{max-width:1100px;margin:14px auto;padding:12px 20px;background:#eef4fa;border:1px solid #cfdde9;border-radius:10px;display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;justify-content:center;text-align:center}
.hub-band p{margin:0;font-size:14.5px;line-height:1.5;color:#123a5c}
.hub-band .hub-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}

/* i18n-rtl-bidi-fix (2026-10-14): in RTL pages, dict-driven text that is
 * still in an LTR language (fallback strings, names, emails) must render
 * with its own direction, or its punctuation flips and the sentence
 * garbles. unicode-bidi:plaintext resolves direction from the first
 * strong character of each element; native RTL strings are unaffected. */
html.i18n-rtl [data-i18n], html.i18n-rtl [data-i18n-html] { unicode-bidi: plaintext; }
