/* v168: a single outer content rail, preserving internal page layouts. */
:root{--emkan-content-width:min(1280px,calc(100vw - 224px))}
@media(min-width:901px) and (max-width:1279px){:root{--emkan-content-width:calc(100vw - 96px)}}
@media(max-width:900px){:root{--emkan-content-width:calc(100vw - 32px)}}
html body .page-shell > main:not(.welcome):not(.menu-page),
html body .page-shell > .emkan-v164-context-portal{
 box-sizing:border-box!important;width:var(--emkan-content-width)!important;max-width:var(--emkan-content-width)!important;min-width:0!important;
 margin-left:calc((100% - var(--emkan-content-width))/2)!important;margin-right:calc((100% - var(--emkan-content-width))/2)!important;
 left:auto!important;right:auto!important;transform:none!important;
}
html body .page-shell > main.detail-main,
html body .page-shell > main.articles-main,
html body .page-shell > main.article-page{padding-inline:0!important}
.emkan-v168-deadline{display:flex;align-items:center;gap:6px;margin:10px 0;font-size:11px;line-height:1.8;color:var(--muted,var(--fg));font-weight:400;white-space:normal}
.emkan-v168-clock{display:inline-block;width:13px;height:13px;flex:0 0 13px;vertical-align:-2px;color:inherit}
.v49-facts dt .emkan-v168-clock{margin-inline-end:5px}
.category-card>.emkan-v168-deadline{font-size:10px;margin-block:5px 0;justify-content:center}
/* Detail dividers reach the same outer rail in civil and research pages. */
html body .page-shell > main.detail-main > .detail-layout,
html body .page-shell > main.detail-main .civil-entry-detail,
html body .page-shell > main.detail-main .research-entry-detail{
 width:100%!important;max-width:100%!important;margin-inline:0!important;box-sizing:border-box!important;
}

/* v169: independent breadcrumb hover, gallery and sample breathing room. */
html body .emkan-v164-context-path:is(:hover,:focus-visible){color:var(--muted,#707981)!important;opacity:.86!important}
html body .emkan-v164-context-path > a.emkan-v167-crumb:is(:hover,:focus-visible){color:var(--hover-accent,var(--accent,#6f9fb2))!important;opacity:1!important;text-decoration:underline!important}
html body.content-section-page #contentApp > .v74-sample-index,
html body.content-section-page #contentApp > .v73-sample-detail,
html body.content-section-page #contentApp > .v71-sample-detail{padding-top:clamp(28px,4vh,44px)!important}
html body.content-section-page #contentApp .v73-sample-main{cursor:zoom-in}
html body.content-section-page #contentApp .v73-sample-thumb{cursor:pointer}

/* v170: individual colour-only breadcrumb feedback. */
html body .emkan-v164-context-path > a.emkan-v167-crumb,
html body .emkan-v164-context-path > a.emkan-v167-crumb:is(:hover,:focus-visible){text-decoration:none!important}
.emkan-v168-clock,.emkan-v168-deadline{display:none!important}
html body #contentApp #registrationApp[data-closed="1"]{display:block!important}
/* Registration steps mirror the restrained product tabs. */
html body #contentApp#contentApp .v49-progress{
 display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:stretch!important;
 gap:clamp(16px,3vw,36px)!important;width:100%!important;box-sizing:border-box!important;
 border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;
 padding:0!important;margin:18px 0 24px!important;list-style:none!important;
}
html body #contentApp#contentApp .v49-progress li{
 position:relative!important;display:flex!important;align-items:center!important;min-height:44px!important;
 padding:0 0 1px!important;margin:0 0 -1px!important;border:0!important;border-bottom:1px solid transparent!important;
 font-size:11px!important;font-weight:400!important;line-height:1.7!important;white-space:normal!important;background:none!important;color:var(--fg)!important;
}
html body #contentApp#contentApp .v49-progress li::before,
html body #contentApp#contentApp .v49-progress li::after{content:none!important;display:none!important}
html body #contentApp#contentApp .v49-progress li[aria-current="step"]{color:var(--hover-accent,var(--accent))!important;border-bottom-color:currentColor!important}
/* Exclude both architectural and civil single-project viewers entirely. */
html body:not(:has(main.project-main)) main :is(.category-square,.img-wrapper,.v73-sample-main,.v73-sample-thumb,.v106-course-thumb,.emkan-related-media,.product-main-image,.product-thumb,.store-card-media){overflow:hidden!important}
html body:not(:has(main.project-main)) main img:not(.emkan-no-hover){
 filter:grayscale(1)!important;transform:scale(1)!important;transform-origin:center!important;
 transition:filter .35s ease,transform .35s ease!important;backface-visibility:hidden;
}
html body:not(:has(main.project-main)) main img:not(.emkan-no-hover):hover,
html body:not(:has(main.project-main)) main :is(.category-card,.gallery-item,.v73-sample-thumb,.product-thumb,.emkan-related-item):hover img{
 filter:grayscale(0)!important;transform:scale(1.025)!important;
}
html body:not(:has(main.project-main)) main :is(.category-card,.gallery-item,.v73-sample-thumb,.product-thumb,.emkan-related-item):hover{transform:none!important}
@media(prefers-reduced-motion:reduce){html body:not(:has(main.project-main)) main img{transition:none!important}}

/* v171: sample galleries use the exact store gallery measurements. */
html body #contentApp#contentApp .v73-sample-gallery,
html[dir="ltr"] body #contentApp#contentApp .v73-sample-gallery{
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  grid-template-areas:"thumbs hero"!important;
  gap:10px!important;
  align-items:start!important;
  width:min(100%,430px)!important;
  max-width:430px!important;
  margin-inline:auto!important;
}
html body #contentApp#contentApp .v73-sample-main{
  grid-area:hero!important;
  width:min(100%,350px)!important;
  max-width:350px!important;
  aspect-ratio:1/1!important;
  margin-inline:auto!important;
  align-self:start!important;
  overflow:hidden!important;
  border:1px solid var(--line)!important;
  background:var(--panel)!important;
}
html body #contentApp#contentApp .v73-sample-main img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
}
html body #contentApp#contentApp .v73-sample-thumbs{
  grid-area:thumbs!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-auto-rows:52px!important;
  gap:7px!important;
  margin:0!important;
  padding:0!important;
  align-content:start!important;
}
html body #contentApp#contentApp .v73-sample-thumb{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  aspect-ratio:1/1!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--line)!important;
  background:transparent!important;
  overflow:hidden!important;
}
html body #contentApp#contentApp .v73-sample-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
}

html body #contentApp#contentApp .v73-sample-gallery{direction:inherit!important}
html body:not(:has(main.project-main)) main :is(.product-main-image,.v73-sample-main,.v106-course-gallery-main){position:relative!important;overflow:hidden!important}
html body:not(:has(main.project-main)) main :is(.product-main-image,.v73-sample-main,.v106-course-gallery-main,.v115-course-poster,.learning-course-cover,.emkan-v147-learning-poster,.article-body,.article-flow,.v49-section) img:not(.emkan-v171-outgoing),
html body:not(:has(main.project-main)) main :is(.product-main-image,.v73-sample-main,.v106-course-gallery-main,.v115-course-poster,.learning-course-cover,.emkan-v147-learning-poster,.article-body,.article-flow,.v49-section):hover img:not(.emkan-v171-outgoing){filter:none!important;transform:none!important;opacity:1!important;transition:none!important}
html body:not(:has(main.project-main)) main :is(.product-thumb,.v73-sample-thumb,.v106-course-thumb) img{filter:grayscale(1)!important;transform:scale(1)!important;transition:filter .3s ease,transform .3s ease!important}
html body:not(:has(main.project-main)) main :is(.product-thumb,.v73-sample-thumb,.v106-course-thumb):is(:hover,:focus-visible) img{filter:grayscale(0)!important;transform:scale(1.025)!important}
html body .about-main :is(.person-card,.person-card-media,.team-member,.team-member-photo) img,
html body .about-main :is(.person-card,.person-card-media,.team-member,.team-member-photo):hover img{transform:none!important;scale:1!important}
@media(max-width:900px){html body #contentApp#contentApp .v73-sample-gallery{width:min(100%,390px)!important;max-width:390px!important}html body #contentApp#contentApp .v73-sample-main{width:min(100%,330px)!important;max-width:330px!important}}
@media(max-width:620px){
 html body #contentApp#contentApp .v73-sample-gallery{grid-template-columns:1fr!important;grid-template-areas:"hero" "thumbs"!important;width:100%!important;max-width:340px!important;gap:9px!important}
 html body #contentApp#contentApp .v73-sample-main{width:min(100%,300px)!important;max-width:300px!important}
 html body #contentApp#contentApp .v73-sample-thumbs{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;gap:7px!important;overflow-x:auto!important;padding:0 2px 2px!important}
 html body #contentApp#contentApp .v73-sample-thumb{flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important}
}

/* The same miniature rail for the existing course gallery. */
html body #contentApp#contentApp .v106-course-gallery,
html[dir="ltr"] body #contentApp#contentApp .v106-course-gallery{
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  grid-template-areas:"thumbs hero"!important;
  gap:10px!important;
  align-items:start!important;
  width:min(100%,430px)!important;
  max-width:430px!important;
  margin-inline:auto!important;
}
html body #contentApp#contentApp .v106-course-gallery-main{
  grid-area:hero!important;
  width:min(100%,350px)!important;
  max-width:350px!important;
  aspect-ratio:1/1!important;
  margin-inline:auto!important;
  align-self:start!important;
  overflow:hidden!important;
  border:1px solid var(--line)!important;
  background:var(--panel)!important;
}
html body #contentApp#contentApp .v106-course-gallery-main img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
}
html body #contentApp#contentApp .v106-course-gallery-thumbs{
  grid-area:thumbs!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-auto-rows:52px!important;
  gap:7px!important;
  margin:0!important;
  padding:0!important;
  align-content:start!important;
}
html body #contentApp#contentApp .v106-course-thumb{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  aspect-ratio:1/1!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--line)!important;
  background:transparent!important;
  overflow:hidden!important;
}
html body #contentApp#contentApp .v106-course-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
}


@media(max-width:620px){html body #contentApp#contentApp .v106-course-gallery{grid-template-columns:1fr!important;grid-template-areas:"hero" "thumbs"!important;max-width:340px!important}html body #contentApp#contentApp .v106-course-gallery-thumbs{display:flex!important;justify-content:center!important;gap:7px!important}html body #contentApp#contentApp .v106-course-thumb{width:44px!important;height:44px!important;min-width:44px!important}}

/* v172: exact scoped corrections; project viewers remain excluded. */
html body .about-main .person-card.person-card .person-card-media,
html body .about-main .person-card.person-card .person-card-media img,
html body .about-main .person-card.person-card:is(:hover,:focus-within) .person-card-media,
html body .about-main .person-card.person-card:is(:hover,:focus-within) .person-card-media img{
 transform:none!important;scale:1!important;translate:none!important;
}
html body .about-main .person-card.person-card .person-card-media img{filter:grayscale(1)!important;transition:filter .3s ease!important;opacity:1!important}
html body .about-main .person-card.person-card:is(:hover,:focus-within) .person-card-media img{filter:grayscale(0)!important}
html body main.emkan-member-main .emkan-member-photo,
html body main.emkan-member-main .emkan-member-photo img,
html body main.emkan-member-main .emkan-member-photo:hover img{filter:none!important;transform:none!important;scale:1!important;transition:none!important;opacity:1!important}
html body main.emkan-member-main .emkan-member-grid{min-width:0!important;max-width:100%!important}
html body main.emkan-member-main .emkan-member-copy{min-width:0!important;overflow-wrap:anywhere}
html body #contentApp#contentApp .v73-sample-gallery,
html body #contentApp#contentApp .v106-course-gallery{direction:ltr!important}
html[lang="fa"] body #contentApp#contentApp .v73-sample-gallery,
html[lang="ar"] body #contentApp#contentApp .v73-sample-gallery,
html[lang="fa"] body #contentApp#contentApp .v106-course-gallery,
html[lang="ar"] body #contentApp#contentApp .v106-course-gallery{direction:rtl!important}
html body #contentApp#contentApp :is(.v73-sample-thumbs,.v106-course-gallery-thumbs){grid-area:thumbs!important;position:static!important;inset:auto!important;transform:none!important;order:initial!important}
html body #contentApp#contentApp :is(.v73-sample-main,.v106-course-gallery-main){grid-area:hero!important;position:relative!important;inset:auto!important;transform:none!important;order:initial!important}
html body #contentApp#contentApp .v73-sample-thumb{position:relative!important;inset:auto!important;transform:none!important;pointer-events:auto!important;z-index:1!important}
html body:not(:has(main.project-main)) main :is(.v115-course-poster,.v115-course-media,.learning-course-cover,.emkan-v147-learning-poster,.v71-sample-visual,.v73-sample-main,.v106-course-gallery-main,.article-cover,.article-body,.article-flow,.article-media,.v49-section,.research-entry-media) img:not(.emkan-v171-outgoing),
html body:not(:has(main.project-main)) main :is(.v115-course-poster,.v115-course-media,.learning-course-cover,.emkan-v147-learning-poster,.v71-sample-visual,.v73-sample-main,.v106-course-gallery-main,.article-cover,.article-body,.article-flow,.article-media,.v49-section,.research-entry-media):hover img:not(.emkan-v171-outgoing){filter:none!important;transform:none!important;scale:1!important;opacity:1!important;transition:none!important}
@media(max-width:900px){
 html body .site-header .nav-frame{grid-template-columns:76px minmax(0,1fr) 76px!important;grid-template-rows:34px auto!important;align-items:center!important}
 html body .site-header .nav-frame .mobile-menu-button{position:static!important;inset:auto!important;transform:none!important;align-self:center!important;justify-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;height:30px!important;line-height:1!important}
 html body .site-header .mobile-menu-button .mobile-menu-icon{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;margin:0!important;align-self:center!important}
}
@media(max-width:760px){
 html body main.emkan-member-main .emkan-member-grid{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 html body main.emkan-member-main .emkan-member-photo{width:min(100%,300px)!important;max-width:100%!important;aspect-ratio:1!important;height:auto!important;margin-inline:auto!important}
 html body main.emkan-member-main .emkan-member-photo img{width:100%!important;height:100%!important;object-fit:cover!important}
 html body .about-main .person-card{min-width:0!important;max-width:100%!important}
}

#panel-registration:has(#registrationApp[data-closed="1"]) .v49-progress{display:none!important}
