/* BlueCity Projects 1.2 — scoped styles, compact four-project browser. */
.bcp-reference{background:var(--bcp-section-bg,#f2f6fa);padding:24px 26px;max-width:1440px;--bcp-line:#d8e3ed;--bcp-card-height:min(var(--bcp-height,440px),50vh);border-top:3px solid var(--bcp-blue)}
.bcp-reference .bcp-heading{margin-bottom:14px}
.bcp-reference .bcp-heading h2{font-size:clamp(25px,2.6vw,34px);font-weight:600;color:var(--bcp-blue)}
.bcp-reference .bcp-all{color:var(--bcp-blue);padding:5px 0}
.bcp-browser-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:12px;color:var(--bcp-blue);font-size:13px;font-weight:600}
.bcp-browser-toolbar select{font:inherit;color:var(--bcp-blue);background:#fff;border:1px solid var(--bcp-line);border-radius:5px;padding:7px 30px 7px 12px;min-width:190px;max-width:100%;height:auto;line-height:1.5}
.bcp-reference .bcp-tabs{display:grid;grid-template-columns:minmax(0,48%) minmax(0,52%);position:relative;background:transparent;border:0;overflow:visible;isolation:isolate;min-height:300px}
.bcp-reference .bcp-panels{grid-column:1;grid-row:1;min-width:0}
.bcp-reference .bcp-tablist{grid-column:2;grid-row:1;align-self:stretch;height:max(300px,var(--bcp-card-height));max-height:none;background:#fff;overflow:hidden;display:flex;flex-direction:column}
.bcp-reference .bcp-tablist [role=tab]{position:relative;display:flex;flex:0 0 25%;flex-direction:column;justify-content:center;gap:4px;height:25%;min-height:0;padding:10px 28px;border:0;border-bottom:1px solid var(--bcp-line);border-inline-start:3px solid transparent;background:#fff!important;color:var(--bcp-blue)!important;font-size:clamp(14px,1.25vw,17px);font-weight:500;line-height:1.45;transition:background .2s ease;overflow:hidden}
.bcp-reference .bcp-tablist [role=tab]:last-child{border-bottom:0}
.bcp-reference .bcp-tablist [role=tab]:hover,.bcp-reference .bcp-tablist [role=tab][aria-selected=true]{background:var(--bcp-hover,#e4edf6)!important;color:var(--bcp-blue)!important;border-inline-start-color:var(--bcp-blue)}
.bcp-reference .bcp-tablist [role=tab]:focus-visible{outline-offset:-4px;z-index:1}
.bcp-reference .bcp-tab-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:start}
.bcp-category-label{display:block;color:var(--bcp-blue);font-size:11px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.bcp-tablist .bcp-category-label{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;opacity:.85}
.bcp-project-date{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:400;line-height:1.4}
.bcp-project-date::before{content:"";display:block;flex:0 0 11px;width:11px;height:11px;border:1px solid currentColor;border-radius:2px;background:linear-gradient(currentColor,currentColor) 0 3px/100% 1px no-repeat}
.bcp-reference .bcp-panel{position:relative;height:max(300px,var(--bcp-card-height));overflow:hidden;animation:bcp-enter .25s ease;background:var(--bcp-blue)}
.bcp-reference .bcp-cover{position:absolute;inset:0;aspect-ratio:auto;height:100%;width:100%}
.bcp-reference .bcp-cover img{height:100%;width:100%;object-fit:cover;transition:transform .55s ease}
.bcp-reference .bcp-panel:hover .bcp-cover img{transform:scale(1.025)}
.bcp-reference .bcp-placeholder{background:linear-gradient(135deg,#315674,#123a63)}
.bcp-reference .bcp-panel::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(18,58,99,.08),rgba(9,29,50,.5) 40%,rgba(7,23,40,.96));pointer-events:none}
.bcp-reference .bcp-preview-copy{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:22px 26px;color:#fff;pointer-events:none}
.bcp-reference .bcp-preview-copy>.bcp-category-label{color:#fff;background:rgba(18,58,99,.85);padding:3px 9px;border:1px solid rgba(255,255,255,.3);border-radius:3px;margin-bottom:8px;max-width:100%;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.bcp-reference .bcp-preview-copy h3{font-size:clamp(20px,2vw,28px);font-weight:500;line-height:1.4;color:#fff;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bcp-reference .bcp-preview-copy .bcp-project-date{margin-bottom:8px;color:#fff}
.bcp-reference .bcp-preview-copy p{font-size:12px;line-height:1.7;color:#fff;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bcp-reference .bcp-more{pointer-events:auto;display:inline-flex;gap:10px;background:transparent!important;padding:3px 0;border:0;border-bottom:1px solid rgba(255,255,255,.5);color:#fff!important;font-size:12px;font-weight:500}
.bcp-reference .bcp-more:hover{border-bottom-color:#fff}
.bcp-reference .bcp-more span{font-size:22px;line-height:1}
.bcp-reference .bcp-tabs::after{content:"";position:absolute;z-index:4;pointer-events:none;inset-inline-start:calc(48% - 15px);top:var(--bcp-marker,50%);width:16px;height:30px;transform:translateY(-50%);background:var(--bcp-hover,#e4edf6);clip-path:polygon(100% 0,100% 100%,0 50%)}
.bcp-reference[dir=rtl] .bcp-tabs::after{clip-path:polygon(0 0,0 100%,100% 50%)}
.bcp-reference .bcp-tabs[data-marker-hidden]::after{display:none}
.bcp-browse-controls{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin-top:10px;min-height:32px;font-size:12px;color:var(--bcp-blue)}
.bcp-browse-controls button{padding:5px 14px;border:1px solid var(--bcp-blue);border-radius:4px;background:var(--bcp-blue);color:#fff;box-shadow:none;font-size:12px;line-height:1.6}
.bcp-browse-controls button:hover:not(:disabled){background:#0b2948}
.bcp-browse-controls button:disabled{opacity:.4;cursor:default}
.bcp-browse-controls [role=status]{text-align:center}
.bcp-browser [aria-busy=true]{opacity:.65}
.bcp-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;background:var(--bcp-line);border:1px solid var(--bcp-line);margin:0 0 30px}
.bcp-facts>div{padding:18px 20px;background:#f2f6fa;min-width:0}
.bcp-facts dt{font-size:12px;color:#5a6d80;margin-bottom:5px}
.bcp-facts dd{font-size:15px;font-weight:600;margin:0;overflow-wrap:anywhere}
.bcp-page>.bcp-category-label{margin-bottom:16px}
.bcp-card .bcp-category-label{margin-top:12px}
.bcp-card{transition:background .2s,border-color .2s}
.bcp-card:hover{background:#f2f6fa;border-color:var(--bcp-blue)}
@media(max-width:900px){
 .bcp-reference{padding:20px 18px}
 .bcp-reference .bcp-tablist [role=tab]{padding:8px 18px;font-size:14px}
 .bcp-reference .bcp-preview-copy{padding:20px}
}
@media(max-width:640px){
 .bcp-reference{padding:16px 12px}
 .bcp-reference .bcp-heading{margin-bottom:10px;align-items:center}
 .bcp-reference .bcp-heading h2{font-size:24px}
 .bcp-browser-toolbar{gap:8px;font-size:12px;margin-bottom:10px}
 .bcp-browser-toolbar select{min-width:0;flex:1}
 .bcp-reference .bcp-tabs{display:flex;flex-direction:column;min-height:0}
 .bcp-reference .bcp-panels{width:100%;order:0}
 .bcp-reference .bcp-panel{height:230px;min-height:0;max-height:none}
 .bcp-reference .bcp-tablist{order:1;width:100%;height:256px;max-height:none;align-self:stretch}
 .bcp-reference .bcp-tablist [role=tab]{padding:5px 14px;gap:2px;min-height:0;font-size:13px}
 .bcp-reference .bcp-tab-title{-webkit-line-clamp:1}
 .bcp-reference .bcp-preview-copy{padding:16px 18px}
 .bcp-reference .bcp-preview-copy h3{font-size:21px}
 .bcp-reference .bcp-preview-copy p{font-size:11px;margin-bottom:6px}
 .bcp-reference .bcp-tabs::after{display:none}
 .bcp-browse-controls{justify-content:center;gap:12px}
}
@media(prefers-reduced-motion:reduce){.bcp-reference .bcp-panel{animation:none}.bcp-reference .bcp-cover img{transition:none}.bcp-reference .bcp-panel:hover .bcp-cover img{transform:none}}
