/* Detail/Places scope only. Home, People and approved person-card styling are retained. */
body.sg-detail-ui{
 --sg-detail-surface:rgba(18,28,26,.94);--sg-detail-ink:#f7f1e6;
 --sg-detail-label:#b7c5bc;--sg-detail-gold:#d9bf8c;--sg-detail-line:#d9bf8c26;
}
body.sg-detail-ui #sg-ui-main .sg-back-link{
 display:inline-flex;align-items:center;min-height:44px;max-width:100%;
 padding:8px 0;gap:6px;border:0;color:var(--sg-detail-gold);
 font:500 14px/1.6 Arial,"Microsoft YaHei",sans-serif;overflow-wrap:anywhere;
}
body.sg-detail-ui #sg-ui-main .sg-back-link:focus-visible{outline:2px solid var(--sg-detail-gold);outline-offset:3px;border-radius:4px}
body.sg-detail-ui #sg-ui-main .sg-back-link:hover{text-decoration:underline;text-underline-offset:4px}
body.sg-page-person #sg-ui-main .person-detail{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
 gap:20px 32px;padding-top:16px;align-items:start;
}
body.sg-page-person #sg-ui-main .person-detail .profile-heading{grid-column:1/-1;min-width:0}
body.sg-page-person #sg-ui-main .person-detail .profile-identity{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
body.sg-page-person #sg-ui-main .person-detail .profile-name{
 font:500 clamp(28px,4vw,38px)/1.3 Georgia,"Songti SC","Microsoft YaHei",serif;
 letter-spacing:.015em;color:var(--sg-detail-ink);margin:0;overflow-wrap:anywhere;
}
body.sg-page-person #sg-ui-main .person-detail .profile-number{color:var(--sg-detail-gold)!important;font:500 14px/1.6 Arial,sans-serif!important;margin:0;font-variant-numeric:tabular-nums}
body.sg-page-person #sg-ui-main .person-detail .detail-media{display:block!important;grid-column:1;grid-row:2;min-width:0;padding:0!important}
body.sg-page-person #sg-ui-main .person-detail .gallery{min-width:0;width:100%;max-width:none;margin:0}
body.sg-page-person #sg-ui-main .person-detail .gallery-main{aspect-ratio:4/5!important;border-radius:12px!important;touch-action:pan-y}
body.sg-page-person #sg-ui-main .person-detail .gallery-slide-count{
 position:static;display:block;width:auto;padding:0;margin:8px 0 0;
 text-align:center;border-radius:0;background:none;color:var(--sg-detail-label);
 font:400 12px/1.5 Arial,sans-serif;font-variant-numeric:tabular-nums;
}
body.sg-page-person #sg-ui-main .person-detail .gallery-thumbs{
 gap:10px!important;margin:4px 0 0;padding:8px 3px!important;
 overscroll-behavior-x:contain;scroll-padding-inline:3px;
}
body.sg-page-person #sg-ui-main .person-detail .gallery-thumb{
 flex:0 0 clamp(112px,29vw,124px)!important;width:clamp(112px,29vw,124px)!important;
 min-width:112px!important;max-width:124px!important;height:96px!important;
 aspect-ratio:auto;border:2px solid transparent;border-radius:9px;background:#101816;
 box-shadow:none;touch-action:manipulation;
}
body.sg-page-person #sg-ui-main .person-detail .gallery-thumb img{object-fit:contain;object-position:center}
body.sg-page-person #sg-ui-main .person-detail .gallery-thumb[aria-pressed="true"]{border-color:var(--sg-detail-gold);box-shadow:0 0 0 1px #d9bf8c33}
body.sg-page-person #sg-ui-main .person-detail .gallery-swipe-controls button{width:44px;height:44px;border-radius:50%;background:#07100dbc;color:var(--sg-detail-ink);font-size:25px}
body.sg-page-person #sg-ui-main .person-detail .profile-content{
 grid-column:2;grid-row:2;display:flex;flex-direction:column;min-width:0;
 width:auto;padding:0;gap:16px;background:none;border:0;box-shadow:none;
}
body.sg-page-person #sg-ui-main .person-detail .profile-section{
 padding:16px;border:1px solid var(--sg-detail-line);border-radius:14px;
 background:var(--sg-detail-surface);box-shadow:0 10px 24px #0002;
}
body.sg-page-person #sg-ui-main .person-detail :is(.profile-section,.profile-about,.profile-video) h2{
 font:600 19px/1.5 Arial,"Microsoft YaHei",sans-serif;letter-spacing:0;
 margin:0 0 12px;color:var(--sg-detail-ink);
}
body.sg-page-person #sg-ui-main .person-detail :is(.profile-section,.profile-about,.profile-video) h2 small{
 font:400 12px/1.5 Arial,sans-serif;color:var(--sg-detail-label);margin-left:6px;
}
body.sg-page-person #sg-ui-main .person-detail .profile-core{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
 margin:0;padding:0;border:0;
}
body.sg-page-person #sg-ui-main .person-detail .profile-core .profile-fact{
 display:block;min-width:0;padding:12px!important;border:1px solid #ffffff0c!important;
 border-radius:9px;background:#ffffff05;box-shadow:none;
}
body.sg-page-person #sg-ui-main .person-detail .profile-fact dt{font:400 12px/1.55 Arial,"Microsoft YaHei",sans-serif;color:var(--sg-detail-label);margin:0 0 5px}
body.sg-page-person #sg-ui-main .person-detail .profile-fact dd{font:600 19px/1.45 Arial,"Microsoft YaHei",sans-serif;color:var(--sg-detail-ink);margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body.sg-page-person #sg-ui-main .person-detail .profile-core .profile-affiliation{grid-column:1/-1}
body.sg-page-person #sg-ui-main .person-detail .profile-core [data-field="price"] dd{color:#efd5a1}
body.sg-page-person #sg-ui-main .person-detail .profile-fact dd a{color:inherit;text-decoration:underline;text-decoration-color:#d9bf8c55;text-underline-offset:4px}
body.sg-page-person #sg-ui-main .person-detail .profile-location{margin:0;gap:10px}
body.sg-page-person #sg-ui-main .person-detail .profile-location .profile-fact{padding:0!important;background:none}
body.sg-page-person #sg-ui-main .person-detail .profile-location .profile-fact dd{font-size:16px;font-weight:500}
body.sg-page-person #sg-ui-main .person-detail .profile-about{padding:0 2px}
body.sg-page-person #sg-ui-main .person-detail .profile-about p{font-size:15px;line-height:1.75;color:#e3e7df;margin:0;overflow-wrap:anywhere}
body.sg-page-person #sg-ui-main .person-detail .contact-panel{order:initial;margin:0!important;padding:0!important}
body.sg-page-person #sg-ui-main .person-detail .contact-buttons{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
body.sg-page-person #sg-ui-main .person-detail .contact-trigger{min-height:48px;border-radius:10px!important;font-weight:600!important}
body.sg-page-person #sg-ui-main .person-detail .profile-video{margin:20px 0 0;min-width:0}
body.sg-page-person #sg-ui-main .person-detail .profile-video video{border-radius:12px;overflow:hidden}
body.sg-detail-ui #sg-ui-main #place-people{scroll-margin-top:16px;padding-top:24px}
body.sg-detail-ui #sg-ui-main #place-people h2{font:500 clamp(24px,3vw,30px)/1.4 Georgia,"Songti SC",serif;color:#ecd9b5;margin:0 0 16px;letter-spacing:.02em}
body.sg-detail-ui #sg-ui-main #place-people .heading-en{font:400 12px/1.5 Arial,sans-serif;color:var(--sg-detail-label);letter-spacing:.02em;margin-top:4px}
body.sg-page-place #sg-ui-main .merchant-detail{align-items:start;padding-top:20px;gap:24px 36px}
body.sg-page-place #sg-ui-main .merchant-detail>div:nth-child(2){background:var(--sg-detail-surface);padding:16px;border:1px solid var(--sg-detail-line);border-radius:14px}
body.sg-page-place #sg-ui-main .merchant-detail h1{font-size:clamp(28px,4vw,40px);line-height:1.3;margin:8px 0 16px;color:var(--sg-detail-ink)}
body.sg-page-place #sg-ui-main .merchant-detail p{font-size:15px;line-height:1.75;color:#e3e7df}
body.sg-page-place #sg-ui-main .merchant-detail dl{font-size:14px;margin:16px 0;padding:16px 0}
body.sg-page-place #sg-ui-main .merchant-detail dt{color:var(--sg-detail-label)}
body.sg-page-place #sg-ui-main .merchant-detail dd{color:var(--sg-detail-ink)}
body.sg-page-place #sg-ui-main .merchant-detail .gallery-thumbs{flex-wrap:nowrap;overflow-x:auto}
body.sg-page-places #sg-ui-main .places-location-filter{background:var(--sg-detail-surface);border-color:var(--sg-detail-line);gap:12px;border-radius:14px}
body.sg-page-places #sg-ui-main .places-location-filter label{min-width:0;font-size:12px;color:var(--sg-detail-label)}
body.sg-page-places #sg-ui-main .places-location-filter select{min-height:48px;font-size:16px;border:1px solid #ffffff26;border-radius:10px;background:#101816;color:var(--sg-detail-ink)}
body.sg-page-places #sg-ui-main .places-location-filter button{min-height:48px;border-radius:10px;font-size:14px;background:var(--sg-detail-gold);color:#14201a}
body.sg-page-places #sg-ui-main .places-location-back a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
body.sg-page-places #sg-ui-main .places-location-back{margin:12px 0 0}
body.sg-page-places #sg-ui-main .places-f-results{margin-top:20px}
body.sg-page-places #sg-ui-main .places-f-results-heading{align-items:baseline;flex-wrap:wrap;gap:8px}
body.sg-page-places #sg-ui-main .places-f-results-heading h2{font-size:20px;line-height:1.5}
@media(max-width:700px){
 body.sg-detail-ui #sg-ui-main>.wrap{width:calc(100% - 32px)}
 body.sg-page-person #sg-ui-main .person-detail{grid-template-columns:minmax(0,1fr);gap:16px;padding-top:8px}
 body.sg-page-person #sg-ui-main .person-detail .profile-heading{grid-column:1;grid-row:1}
 body.sg-page-person #sg-ui-main .person-detail .detail-media{grid-column:1;grid-row:2}
 body.sg-page-person #sg-ui-main .person-detail .gallery{max-width:440px;margin-inline:auto}
 body.sg-page-person #sg-ui-main .person-detail .profile-content{grid-column:1;grid-row:3}
 body.sg-page-person #sg-ui-main .person-detail .profile-section{padding:14px}
 body.sg-page-person #sg-ui-main .person-detail .profile-core .profile-fact{padding:11px!important}
 body.sg-page-person #sg-ui-main .person-detail .profile-fact dd{font-size:18px}
}
