/* Approved visual system; production anchors share the prototype button styles. */
:root{--portal-nav-height:108px}
html{scroll-padding-top:var(--portal-nav-height)}
.portal-header{position:sticky;top:0;z-index:100;background:var(--surface,#fff);box-shadow:0 1px 0 var(--line,#dedfd8)}
.place,.product-card,.guide-feature,.item{color:inherit;text-decoration:none;display:block}
.opening-title,#opening-title{white-space:pre-line}
.site-footer a{color:inherit}.site-footer-grid:has(>section:only-child){grid-template-columns:1fr}.site-footer-about{max-width:640px}
.search-actions{display:flex;gap:24px;margin:20px 0 32px}.search-actions a{color:inherit}
.article-copy img,.detail-section img{max-width:100%;height:auto}.guide-aside-panel .item{padding:14px 0;border-bottom:1px solid #ddd}
.guide-aside-panel .item strong,.guide-aside-panel .item span{display:block}.guide-aside-panel .item span{font-size:12px;margin-top:6px;color:#707579}
.portal-header .mast{min-height:108px}.portal-header .brand{flex-shrink:0}.portal-header .mast>nav{white-space:nowrap}
.portal-header .mast form input{min-width:0}.site-footer-qr-list img{width:112px;height:112px;object-fit:contain}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Approved cards adapt to the number of real published products. */
.product-card[hidden],.route-filter-empty[hidden]{display:none!important}
.product-gallery{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.product-card .photo-placeholder{height:160px;min-height:160px;border:0;border-radius:18px 18px 0 0;background:var(--light);color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:20px;text-align:center}
.product-card .photo-placeholder small{font-size:12px;line-height:1.6}
.destination-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.destination-product-grid .product-card{background:var(--light);border-radius:18px;overflow:hidden;height:100%}
.destination-product-grid .product-card>img,.destination-product-grid .product-card>.photo-placeholder{display:block;width:100%;height:210px;object-fit:cover}
.destination-product-grid .product-card>div:not(.photo-placeholder){padding:20px}
.destination-product-grid .product-card strong{font-size:19px;line-height:1.65;display:block;font-weight:500}
.destination-product-grid .product-card small{display:block;color:var(--muted);font-size:13px;margin:10px 0}
.destination-product-grid .product-card p{font-size:14px;line-height:1.9;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.destination-product-grid .product-card span{font-size:14px}
.search-product-results h2 small{font-size:14px;color:var(--muted);font-weight:400;margin-left:10px}
.route-filter-empty{color:var(--muted);text-align:center;padding:24px}
.site-footer-grid{align-items:start}.site-footer-contact dl>div{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:0;align-items:baseline}.site-footer-contact dl dd{margin:0;overflow-wrap:anywhere}
.site-footer-contact a:hover,.site-footer-legal a:hover{text-decoration:underline;text-underline-offset:4px}
.site-footer-qr-list img{width:96px;height:96px}
@media(max-width:1100px){.destination-product-grid{gap:20px}.product-gallery{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}}

/* Owner-provided website logo; preserve its original aspect ratio. */
.portal-header .brand{width:233px}.portal-header .portal-brand-image{display:block;width:233px;height:60px;max-width:100%;object-fit:contain}

/* Breadcrumbs follow the approved Sanxia reference, aligned with page content. */
.breadcrumb-band{background:#faf9f6;border-top:1px solid #e5e2dd;border-bottom:1px solid #e5e2dd}
.breadcrumb-band .breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:10px 15px;min-height:72px;padding-block:18px;margin:0 auto;font-size:14px;line-height:1.7;color:#65737c}
.breadcrumb-band .breadcrumb a{color:inherit;text-decoration:none;text-underline-offset:3px}
.breadcrumb-band .breadcrumb a:hover{color:var(--ink);text-decoration:underline}
.breadcrumb-band .breadcrumb a:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:2px}
.breadcrumb-band .breadcrumb .breadcrumb-home{display:inline-flex;align-items:center;gap:8px}
.breadcrumb-band svg{display:block;flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.breadcrumb-band .breadcrumb-separator{width:13px;height:13px;color:#87918f}
.breadcrumb-band [aria-current="page"]{color:#26353c;overflow-wrap:anywhere}

/* Match the user's reference: one centered copyright / filing / license row. */
.site-footer .site-footer-legal{display:block;text-align:center;padding:22px 0;color:var(--footer-muted);font-size:13px}
.site-footer .footer-legal-line{display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:6px 0;margin:0;line-height:1.8}
.site-footer .footer-legal-line>span{margin:0;max-width:100%;overflow-wrap:anywhere}
.site-footer .footer-legal-line>.footer-legal-separator{margin:0 10px;color:var(--footer-muted)}
.site-footer-about .image-credits-link{font-size:12px;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}

/* Home travel guides: lead story, three compact stories, then practical preparation. */
.guide-band .preparation{display:block}
.guide-band .guide-features{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:repeat(3,minmax(130px,auto));gap:24px 44px;align-items:stretch}
.guide-band .guide-feature{background:transparent;border-radius:0;min-width:0}
.guide-band .guide-feature:first-child{grid-row:1/span 3;display:flex;flex-direction:column}
.guide-band .guide-feature:first-child>img{width:100%;height:320px;min-height:0;object-fit:cover;border-radius:14px}
.guide-band .guide-feature:first-child>div{padding:18px 0 0;display:block}
.guide-band .guide-feature small{color:var(--muted);font-size:14px}
.guide-band .guide-feature:first-child strong{margin-top:8px;font-size:26px;line-height:1.5;font-weight:600}
.guide-band .guide-feature p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;line-height:1.85;margin:10px 0 0}
.guide-band .guide-feature:first-child span{display:block;margin:16px 0 0;padding:0;font-size:14px}
.guide-band .guide-feature:not(:first-child){display:grid;grid-template-columns:160px minmax(0,1fr);gap:20px;align-items:center;padding:0 0 22px;border-bottom:1px solid var(--line)}
.guide-band .guide-feature:not(:first-child)>img{width:160px;height:120px;min-height:0;object-fit:cover;border-radius:10px}
.guide-band .guide-feature:not(:first-child)>div{display:block;padding:0;min-width:0}
.guide-band .guide-feature:not(:first-child) strong{font-size:20px;line-height:1.55;font-weight:500;margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.guide-band .guide-feature:not(:first-child) p{margin-top:8px}
.guide-band .guide-feature:not(:first-child) span{display:none}
.guide-band .guide-feature:last-child:not(:first-child){border-bottom:0;padding-bottom:0}
.guide-band #preparation-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 26px;margin-top:38px;padding-top:26px;border-top:1px solid var(--line)}
.guide-band #preparation-list h3{grid-column:1/-1;font-size:22px;line-height:1.5;font-weight:600;padding:0;margin:0 0 2px}
.guide-band #preparation-list .item{padding:0;border:0;min-width:0}
.guide-band #preparation-list .item strong{display:block;font-size:16px;line-height:1.6}
.guide-band #preparation-list .item span{display:block;margin-top:7px;font-size:14px;line-height:1.8;color:var(--muted)}
.guide-band .guide-more{margin:26px 0 0;text-align:right;font-size:14px}
.guide-band .guide-more a:hover{text-decoration:underline;text-underline-offset:4px}
@media(min-width:1800px){.guide-band .guide-feature:first-child>img{height:350px}}
@media(max-width:1100px){.guide-band .guide-features{gap:22px 28px}.guide-band .guide-feature:not(:first-child){grid-template-columns:130px minmax(0,1fr);gap:16px}.guide-band .guide-feature:not(:first-child)>img{width:130px;height:110px}.guide-band .guide-feature:not(:first-child) strong{font-size:18px}.guide-band .guide-feature:first-child>img{height:300px}.guide-band .guide-feature:first-child strong{font-size:23px}.guide-band #preparation-list{gap:14px 20px}}
@media(max-width:800px){.guide-band .guide-features{grid-template-columns:1fr;grid-template-rows:none;gap:24px}.guide-band .guide-feature:first-child{grid-row:auto}.guide-band .guide-feature:not(:first-child){grid-template-columns:160px minmax(0,1fr)}.guide-band .guide-feature:not(:first-child)>img{width:160px;height:120px}.guide-band #preparation-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.guide-band .guide-feature:first-child>img{height:280px}}

/* Owner photographs retain their 1920:850 composition; copy follows each scene. */
.opening-picture[data-alignment] img{filter:none}
.opening-picture[data-alignment="right"]:after{background:linear-gradient(270deg,#12243288 0%,#12243244 34%,transparent 68%),linear-gradient(0deg,#12243244,transparent 30%)}
.opening-picture[data-alignment="center"]:after{background:linear-gradient(180deg,#12243255 0%,#12243244 45%,transparent 72%),linear-gradient(0deg,#12243233,transparent 24%)}
.opening-picture[data-alignment] .hero-caption{color:#fff;text-shadow:0 2px 12px #10202c55}
.opening-picture[data-alignment] strong{font-size:clamp(44px,4vw,76px);line-height:1.35;letter-spacing:.015em;max-width:none}
.opening-picture[data-alignment] small{font-size:17px;line-height:1.8;max-width:none;margin-top:22px}
@media(min-width:1024px){
 .opening:has(.opening-picture[data-alignment]){height:850px;min-height:850px;max-height:850px;--banner-gutter:max(56px,calc((100% - 1280px)/2))}
 .opening-picture[data-alignment="right"]>.hero-caption{left:auto;right:var(--banner-gutter);top:25%;width:min(490px,42%);text-align:left}
 .opening-picture[data-alignment="center"]>.hero-caption{left:50%;right:auto;top:26%;width:min(760px,75%);transform:translateX(-50%);text-align:center}
 .opening-picture[data-alignment="center"] .hero-action{margin-inline:auto}
}
@media(min-width:1800px){.opening:has(.opening-picture[data-alignment]){--banner-gutter:max(75px,calc((100% - 1500px)/2))}}

/* Keep the Three Gorges Dam visible: one compact line above the reservoir. */
@media(min-width:1024px){
 .opening-picture[data-alignment="center"]>.hero-caption{top:13%;width:min(1000px,85%)}
 .opening-picture[data-alignment="center"] strong{font-size:clamp(42px,3.6vw,68px);line-height:1.25;white-space:nowrap}
 .opening-picture[data-alignment="center"] small{margin-top:12px}
 .opening-picture[data-alignment="center"] .hero-action{margin-top:20px}
}

/* Preserve scene landmarks on wide displays; CSS also responds to live window resizing. */
.opening-picture[data-alignment] img{object-position:var(--hero-position,50% 50%)}
@media(min-width:1921px){.opening-picture[data-alignment] img{object-position:var(--hero-wide-position,var(--hero-position,50% 50%))}}
