/* Project detail overrides. Keep landing and admin typography unchanged. */
.restored-project,.restored-project *{box-sizing:border-box}
.restored-project :is(#stack,#overview,#gallery,#project-links){scroll-margin-top:115px}
.restored-project .project-intro>div:first-child{min-width:0}
.restored-project .project-intro h1{overflow-wrap:anywhere}
.restored-project .project-intro-links{flex-wrap:wrap;max-width:100%}
.restored-project .project-intro-links .button{white-space:normal;text-align:center}
.restored-project .technology-spotlight{padding:22px 24px 24px}
.restored-project .stack-section-heading{margin-bottom:18px}
.restored-project .stack-section-heading h2{font-size:27px}
.restored-project .stack-hero-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:12px}
.restored-project .stack-hero-card{min-width:0;min-height:76px;padding:14px 22px 14px 14px;gap:11px;overflow:hidden}
.restored-project .tech-icon-wrap{width:42px;height:42px;border-radius:11px;flex:0 0 42px}
.restored-project .tech-icon-wrap>img{width:28px;height:28px;object-fit:contain}
.restored-project .tech-icon-wrap .technology-monogram{width:28px;height:28px;font-size:14px}
.restored-project .stack-hero-card strong{min-width:0;font-size:16px;line-height:1.4;letter-spacing:-.2px;overflow-wrap:anywhere}
.restored-project .tech-card-heart{font-size:15px;right:7px;top:5px}
.restored-project .banner-frame,.restored-project .embed-shell{position:relative;aspect-ratio:16/9;min-height:0;width:100%;overflow:hidden}
.restored-project .banner-frame>img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.restored-project .embed-shell iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.restored-project .project-facts{grid-template-columns:1fr 1fr}
.restored-project .project-content-grid{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:75px}
.restored-project .project-content-grid>*{min-width:0}
.restored-project .project-reading .overview-panel>h2{font-size:34px;margin:0 0 24px;line-height:1.25}
.restored-project .project-reading .prose :is(p,li){font-size:17px;line-height:1.95;color:#6a505d}
.restored-project .project-reading .prose p{margin:0 0 18px}
.restored-project .project-reading .prose h3{font-size:24px;line-height:1.4;margin:28px 0 10px;letter-spacing:-.4px}
.restored-project .project-reading .integration-panel{border-top:1px solid #f0dce6;margin-top:35px;padding-top:25px}
.restored-project .project-reading .integration-panel>h2{font-size:26px;line-height:1.35;margin:0 0 17px}
.restored-project .project-narrative{overflow-wrap:anywhere}
.restored-project .project-narrative pre{max-width:100%;overflow:auto;background:#fff1f6;border-radius:10px;padding:15px}
.restored-project .project-sidebar dl{display:block;margin:23px 0 0}
.restored-project .project-sidebar dl>div{border-top:1px solid #efd8e3;padding:16px 0}
.restored-project .project-sidebar dt{font-size:11px;line-height:1.6;letter-spacing:1px;color:#805569;margin-bottom:8px}
.restored-project .project-sidebar dd{font-size:14px;line-height:1.9;color:#6d5061;overflow-wrap:anywhere}
.restored-project .sidebar-link{font-size:14px;line-height:1.8}
.restored-project .gallery-stage{border:8px solid white}
.restored-project .gallery-slide>img{display:block;width:100%;height:auto;aspect-ratio:16/10;max-height:580px;object-fit:contain}
.restored-project .gallery-thumbnails{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.restored-project .gallery-thumbnails button{min-width:0;overflow:hidden}
.restored-project .gallery-thumbnails img{width:100%;height:94px;object-fit:cover}
.restored-project .gallery-thumbnails span{display:block;padding:10px;overflow-wrap:anywhere;font-size:13px}
.restored-project .gallery-empty{padding:35px 24px;border:1px dashed #e7bdce;border-radius:15px;color:#795264;background:#fff4f8}
.restored-project .project-pagination>a{min-width:0}
.restored-project .project-pagination strong{overflow-wrap:anywhere}
.restored-project .detail-contact p{font-size:15px;line-height:1.8}
.project-lightbox .lightbox-image{width:100%;height:auto;max-height:72vh;object-fit:contain}
.project-lightbox .lightbox-image-wrap{position:relative}
.detail-header .nav-links{font-size:14px;gap:25px}
.detail-header .reading-progress{overflow:hidden}
@media(max-width:1100px){.restored-project .project-content-grid{gap:40px;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.restored-project .project-reading .prose :is(p,li){font-size:16px}.detail-header .nav-links{gap:17px;font-size:13px}}
@media(max-width:760px){
.restored-project :is(#stack,#overview,#gallery,#project-links){scroll-margin-top:95px}
.restored-project .technology-spotlight{padding:20px 16px}
.restored-project .stack-hero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.restored-project .stack-hero-card{padding:13px 14px 13px 10px;gap:8px;min-height:68px;align-items:center}
.restored-project .tech-icon-wrap{width:32px;height:32px;flex-basis:32px;border-radius:9px}
.restored-project .tech-icon-wrap>img{width:23px;height:23px}
.restored-project .stack-hero-card strong{font-size:14px;line-height:1.4}
.restored-project .tech-card-heart{font-size:12px;right:4px;top:3px}
.restored-project .project-facts{grid-template-columns:1fr;gap:19px}
.restored-project .project-content-grid{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:39px}
.restored-project .project-reading .overview-panel>h2{font-size:30px;margin-bottom:21px}
.restored-project .project-reading .prose h3{font-size:22px;margin-top:24px}
.restored-project .project-reading .integration-panel>h2{font-size:25px}
.restored-project .project-sidebar{position:relative;top:0;padding:25px}
.restored-project .project-sidebar dl{display:block}
.restored-project .gallery-stage{border-width:5px}
.restored-project .gallery-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.restored-project .gallery-thumbnails img{height:80px}
.restored-project .gallery-thumbnails span{font-size:12px;padding:8px}
.restored-project .media-launch{gap:8px;padding:12px}
.restored-project .embed-project-name{font-size:clamp(18px,6vw,30px)}
.restored-project .play-ring{width:38px;height:38px;font-size:16px;flex-shrink:0}
.restored-project .media-launch>strong{font-size:14px}
.restored-project .launch-description{font-size:12px}
.restored-project .detail-contact p{font-size:14px}
.detail-header .nav-links{font-size:15px}
.detail-header .nav-links.is-open a{display:block!important;width:100%;padding:10px}
}
