/* Canada Create Showcase: shared case-study components for every portfolio project (16 Oct 2026).
   Square corners, navy #071B38, red #E31507, light #F5F7FA, line #E3E8EF, muted #55657B. */
.ccsc{--sc-navy:#071B38;--sc-red:#E31507;--sc-red-d:#C41105;--sc-light:#F5F7FA;--sc-line:#E3E8EF;--sc-mut:#55657B;--sc-txt:#33445C;--sc-shadow:0 24px 60px -34px rgba(7,27,56,.45)}
html{overflow-x:clip}

/* Summary: facts bar + lead visual */
html body .ccsc .ccsc-intro{padding-top:56px;padding-bottom:64px}
.ccsc-facts{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 40px;align-items:center;background:var(--sc-light);border:1px solid var(--sc-line);padding:26px 30px;margin:0}
html body .ccsc .ccsc-facts dl{display:flex;flex-wrap:wrap;gap:18px 0;margin:0;padding:0}
.ccsc-facts dl>div{flex:1 1 200px;min-width:0;padding:0 28px;border-left:1px solid var(--sc-line)}
.ccsc-facts dl>div:first-child{padding-left:0;border-left:0}
html body .ccsc .ccsc-facts dt{margin:0 0 8px;font:700 15px/1.2 'Inter',sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--sc-mut)}
html body .ccsc .ccsc-facts dd{margin:0;font:500 16px/1.45 'Inter',sans-serif;color:var(--sc-navy)}
html body .ccsc .ccsc-facts dd ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
html body .ccsc .ccsc-facts dd li::before{content:none!important;display:none!important}
html body .ccsc .ccsc-facts dd li{margin:0;padding:0}
html body .ccsc .ccsc-facts dd a{color:var(--sc-navy)!important;text-decoration:none!important;border:0!important;background:none!important}
html body .ccsc .ccsc-facts dd a:hover,html body .ccsc .ccsc-facts dd a:focus-visible{color:var(--sc-red)!important;}
html body .ccsc .ccsc-facts dd ul.ccsc-chips{flex-direction:row;flex-wrap:wrap;gap:8px}
html body .ccsc .ccsc-chips li{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;background:#fff;border:1px solid var(--sc-line);font:500 13.5px/1.2 'Inter',sans-serif;color:var(--sc-navy);white-space:nowrap}
.ccsc-chips li::after{content:"";order:-1;width:6px;height:6px;background:var(--sc-red)}
.ccsc-facts__cta{display:flex;align-items:center;gap:24px}
html body .ccsc .ccsc-facts__cta .cch-btn{margin:0!important;white-space:nowrap}
.ccsc-facts__cta .cch-call a{color:var(--sc-navy)}
.ccsc-facts__cta .cch-call a:hover{color:var(--sc-red)}

.ccsc-lead{margin:40px 0 0;padding:0}
.ccsc-lead .ccsc-zoom{display:flex;justify-content:center;align-items:center;background:linear-gradient(180deg,#fff 0%,var(--sc-light) 100%);border:1px solid var(--sc-line);padding:clamp(16px,3vw,40px)}
html body .ccsc .ccsc-lead img{display:block;width:auto;height:auto;max-width:100%;max-height:min(70vh,720px);object-fit:contain;box-shadow:var(--sc-shadow);margin:0 auto}

/* Zoom affordance */
.ccsc-zoom{position:relative;cursor:zoom-in;color:inherit}



.ccsc-zoom:focus-visible{outline:2px solid var(--sc-red);outline-offset:3px}


/* Story */
.ccsc-split{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:56px;align-items:start}
.ccsc-split__head{position:sticky;top:120px}
html body .ccsc .ccsc-split__head h2,html body .ccsc .ccsc-work h2{margin:0!important}
html body .ccsc .ccsc-prose{font:400 17px/1.75 'DM Sans',sans-serif;color:var(--sc-txt);max-width:72ch}
html body .ccsc .ccsc-prose p{margin:0 0 18px}
html body .ccsc .ccsc-prose p:last-child{margin-bottom:0}
html body .ccsc .ccsc-prose ul,html body .ccsc .ccsc-prose ol{margin:0 0 18px;padding-left:22px}
html body .ccsc .ccsc-prose li{margin:0 0 8px}
html body .ccsc .ccsc-prose table{width:100%;border-collapse:collapse;margin:8px 0 18px;font-size:15px}
html body .ccsc .ccsc-prose th,html body .ccsc .ccsc-prose td{border:1px solid var(--sc-line);padding:10px 12px;text-align:left;vertical-align:top}
html body .ccsc .ccsc-prose th{background:var(--sc-light);color:var(--sc-navy);font-weight:600}
.ccsc-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.ccsc-steps--one{grid-template-columns:minmax(0,1fr);max-width:900px}
.ccsc-step{position:relative;background:#fff;border:1px solid var(--sc-line);padding:34px 34px 32px;box-shadow:0 14px 40px -30px rgba(7,27,56,.4);transition:border-color .2s ease,transform .2s ease}
.ccsc-step:hover{border-color:var(--sc-red);transform:translateY(-2px)}
.ccsc-step--wide{grid-column:1/-1}
.ccsc-step__n{display:block;font:400 40px/1 'Inter',sans-serif;letter-spacing:-.02em;color:var(--sc-red);margin:0 0 18px}
html body .ccsc .ccsc-step h3{margin:0 0 14px!important;font-family:'Inter',sans-serif!important;font-weight:400!important;font-size:24px!important;line-height:1.25!important;letter-spacing:-.01em;color:var(--sc-navy)!important;text-transform:none!important}
html body .ccsc .ccsc-step .ccsc-prose{font-size:16.5px;max-width:none}

/* Gallery (Amir 16 Oct 2026: pure white band, no boxes, images in line at natural ratio, 3/2/1 columns) */
html body .ccsc section.ccsc-gallery{background:#fff!important;background-image:none!important;color:var(--sc-navy)}
html body .ccsc .ccsc-gallery .cch-head{margin-bottom:36px}
html body .ccsc .ccsc-gallery h2{color:var(--sc-navy)!important}
html body .ccsc .ccsc-gallery .cch-eyebrow{color:var(--sc-red-d)!important}
html body .ccsc .ccsc-gallery__sub{margin:12px 0 0;color:var(--sc-mut)!important;font:400 16px/1.6 'DM Sans',sans-serif}
html body .ccsc ul.ccsc-grid{list-style:none!important;margin:0!important;padding:0!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 32px;align-items:start;justify-items:stretch}
html body .ccsc ul.ccsc-grid>li{margin:0!important;padding:0!important;min-width:0}
html body .ccsc ul.ccsc-grid>li::before{content:none!important;display:none!important}
html body .ccsc a.ccsc-tile{display:block;background:none!important;border:0!important;padding:0!important;box-shadow:none!important;outline:0}
html body .ccsc .ccsc-tile img{display:block;width:100%!important;height:auto!important;max-width:100%;object-fit:contain;transition:opacity .2s ease}
html body .ccsc .ccsc-tile:hover img{opacity:.88}
html body .ccsc .ccsc-tile:focus-visible{outline:2px solid var(--sc-red);outline-offset:4px}

html body .ccsc a.ccsc-tile.ccsc-tile--dark{background:var(--sc-navy)!important;padding:clamp(20px,3vw,36px)!important}
.ccsc-lb__img.is-dark{background:#071B38!important;padding:clamp(16px,4vw,48px);box-sizing:border-box}

/* Previous / next */
html body .ccsc .ccsc-nav .cch-in{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:20px;align-items:stretch}
html body .ccsc .ccsc-nav .cch-btn{align-self:center;white-space:nowrap}
html body .ccsc .ccsc-nav .cch-pn{min-height:44px;justify-content:center}
html body .ccsc .ccsc-nav .cch-pn--next{text-align:right!important;align-items:flex-end}
html body .ccsc .ccsc-nav .cch-pn small{color:var(--sc-red-d)}
html body .ccsc .ccsc-nav .cch-pn strong{font-weight:500!important}

/* Lightbox (portalled to body) */
html.ccsc-lock,html.ccsc-lock body{overflow:hidden!important}
.ccsc-lb{position:fixed;inset:0;z-index:2147483000;background:rgba(4,12,26,.95);display:grid;grid-template-columns:24px minmax(0,1fr) 24px;grid-template-rows:64px minmax(0,1fr);align-items:center;opacity:0;transition:opacity .2s ease;-webkit-tap-highlight-color:transparent}
.ccsc-lb[hidden]{display:none}
.ccsc-lb.is-open{opacity:1}
.ccsc-lb__bar{grid-column:1/-1;grid-row:1;display:flex;justify-content:space-between;align-items:center;padding:0 16px 0 24px}
.ccsc-lb__count{margin:0;color:rgba(255,255,255,.8);font:500 14px/1 'Inter',sans-serif;letter-spacing:.08em}
.ccsc-lb__fig{grid-column:2;grid-row:2;margin:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:0 0 24px;min-height:0}
.ccsc-lb__img{display:block;max-width:100%;max-height:calc(100vh - 150px);width:auto!important;height:auto!important;object-fit:contain;background:#fff;box-shadow:0 30px 80px -30px rgba(0,0,0,.8);transition:opacity .2s ease}
.ccsc-lb.is-loading .ccsc-lb__img{opacity:.35}
.ccsc-lb__cap{color:rgba(255,255,255,.86);font:400 15px/1.5 'DM Sans',sans-serif;text-align:center;max-width:70ch}
.ccsc-lb button.ccsc-lb__btn{all:unset;box-sizing:border-box!important;display:flex!important;align-items:center;justify-content:center;width:52px!important;height:52px!important;border:1px solid rgba(255,255,255,.45)!important;background:transparent!important;color:#fff!important;border-radius:0!important;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,color .2s ease}
.ccsc-lb button.ccsc-lb__btn[hidden]{display:none!important}
.ccsc-lb button.ccsc-lb__btn:hover{border-color:var(--sc-red,#E31507)!important;background:rgba(227,21,7,.12)!important}
.ccsc-lb button.ccsc-lb__btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.ccsc-lb button.ccsc-lb__close{width:48px!important;height:48px!important}
.ccsc-lb button.ccsc-lb__prev{grid-column:1;grid-row:2;justify-self:center}
.ccsc-lb button.ccsc-lb__next{grid-column:3;grid-row:2;justify-self:center}
@media (prefers-reduced-motion:reduce){.ccsc-lb,.ccsc-tile img,.ccsc-step,.ccsc-zoom__ic{transition:none}}

/* Tablet */
@media (max-width:1024px){
	.ccsc-facts{grid-template-columns:minmax(0,1fr)}
	.ccsc-split{grid-template-columns:minmax(0,1fr);gap:24px}
	.ccsc-split__head{position:static}
	html body .ccsc ul.ccsc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}
}
/* Phone */
@media (max-width:767px){
	html body .ccsc .ccsc-intro{padding-top:32px;padding-bottom:40px}
	.ccsc-facts{padding:20px 18px;gap:20px}
	html body .ccsc .ccsc-facts dl{flex-direction:column;gap:16px}
	.ccsc-facts dl>div{flex:none;padding:0 0 16px;border-left:0;border-bottom:1px solid var(--sc-line)}
	.ccsc-facts dl>div:last-child{padding-bottom:0;border-bottom:0}
	.ccsc-facts__cta{flex-direction:column;align-items:stretch;gap:16px}
	html body .ccsc .ccsc-facts__cta .cch-btn{width:100%;justify-content:center;min-height:48px}
	.ccsc-lead{margin-top:24px}
	html body .ccsc .ccsc-lead img{max-height:min(60vh,520px)}
	.ccsc-steps{grid-template-columns:minmax(0,1fr);gap:16px}
	.ccsc-step{padding:24px 20px}
	.ccsc-step__n{font-size:32px;margin-bottom:12px}
	html body .ccsc .ccsc-step h3{font-size:20px!important}
	html body .ccsc ul.ccsc-grid{grid-template-columns:minmax(0,1fr);gap:28px}
	html body .ccsc .ccsc-nav .cch-in{grid-template-columns:minmax(0,1fr)!important}
	html body .ccsc .ccsc-nav .cch-pn--next{text-align:left!important;align-items:flex-start}
	html body .ccsc .ccsc-nav .cch-btn{justify-self:stretch;justify-content:center;min-height:48px}
	.ccsc-lb{grid-template-columns:12px minmax(0,1fr) 12px;grid-template-rows:60px minmax(0,1fr)}
	.ccsc-lb__img{max-height:calc(100vh - 160px)}
	.ccsc-lb__cap{font-size:14px}
	.ccsc-lb button.ccsc-lb__prev{grid-column:1;grid-row:3;justify-self:end;margin-right:10px}
	.ccsc-lb button.ccsc-lb__next{grid-column:2;grid-row:3;justify-self:start;margin-left:10px}
}
/* p26oct-midwidth (Amir, 26 Oct 2026): the phone block sits under the "Start a similar project" button, never beside it. */
@media (min-width:768px){.ccsc-facts__cta{flex-direction:column;align-items:flex-start;gap:18px}}
/* p26oct-midwidth-b: 26 px card padding (C17) between 768 and 1279 px so step text stays over 260 px wide. */
@media (min-width:768px) and (max-width:1279px){html body .ccsc .ccsc-step{padding:30px 26px 28px}}
