/* EMKAN FINAL CORE — authoritative public correction layer.
   All final responsive/layout/interaction corrections live here.
   Do not create numbered patch generations after this file. */
:root{
  --emkan-shell-max:1120px;
  --emkan-shell-pad:48px;
  --emkan-reading-max:900px;
  
  
}
html{width:100%;max-width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%;}
body{width:100%;max-width:100%;overflow-x:hidden!important;}
*,*::before,*::after{box-sizing:border-box;}
img,video,canvas,svg,iframe{max-width:100%;}
main,section,article,aside,nav,header,footer,div{min-width:0;}
.page-shell{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;}

/* ---------- Canonical page geometry ---------- */
.site-header,.project-subnav-shell,
.architecture-main,.module-main,.detail-main,.v49-main,.articles-main,.article-page,
.store-main,.store-category-main,.product-main,.checkout-main,.contact-main,.about-main,
.careers-main,.podcast-main,.emkan-search-main,.emkan-member-main,.account-shell,.project-main,
.research-main,.civil-main,.civil-projects-main,.content-main{
  width:min(var(--emkan-shell-max),calc(100% - var(--emkan-shell-pad)))!important;
  max-width:var(--emkan-shell-max)!important;
  min-width:0!important;
  margin-inline:auto!important;
}
.nav-frame,.project-subnav,.primary-nav,.nav-list{max-width:100%!important;min-width:0!important;}
.article-page>article,.detail-layout>article,.product-lower,.product-description,.article-flow,
.article-page-head,.article-references,#articleFooter,.v49-detail-copy,.v49-copy,.v49-long-copy,
.v49-rich-copy,.content-detail-copy,.content-copy,.about-copy,.contact-copy,.careers-copy{
  width:100%!important;max-width:min(var(--emkan-reading-max),100%)!important;
}
.article-page>article,.article-page-head,.article-flow,.article-references,#articleFooter{margin-inline:auto!important;}

/* ---------- EMKAN AI navigation: exactly one normal menu item ---------- */
.emkan-ai-nav-link{
  pointer-events:auto!important;cursor:pointer!important;text-decoration:none!important;
  white-space:nowrap!important;color:inherit!important;background:transparent!important;
  border:0!important;box-shadow:none!important;font:inherit!important;font-size:inherit!important;
  font-weight:inherit!important;letter-spacing:inherit!important;line-height:inherit!important;
}
.primary-nav .emkan-ai-nav-link{display:inline-flex!important;align-items:center!important;padding:0!important;gap:0!important;}
.primary-menu .emkan-ai-nav-link{display:block!important;color:inherit!important;padding:0!important;margin:0!important;}
.emkan-ai-nav-star{display:none!important;}

/* ---------- Original stepped two-line disclosure icon ---------- */
.emkan-final-chevron{display:none!important;}
:is(.category-chevron,.article-category-chevron,.detail-subcategory-chevron,.v49-filter-chevron,.emkan-disclosure-mark,
.store-subcategory-mark,.store-sort-mark,.store-sort-filter-mark,.message-subject-chevron,
.emkan-v131-disclosure-mark,.emkan-v132-disclosure-mark,.emkan-v133-disclosure-mark,.emkan-v147-disclosure-mark,.emkan-v148-disclosure-mark){
  position:relative!important;display:inline-block!important;visibility:visible!important;opacity:.82!important;
  width:12px!important;height:10px!important;min-width:12px!important;flex:0 0 12px!important;
  border:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;color:currentColor!important;
}
:is(.category-chevron,.article-category-chevron,.detail-subcategory-chevron,.v49-filter-chevron,.emkan-disclosure-mark,
.store-subcategory-mark,.store-sort-mark,.store-sort-filter-mark,.message-subject-chevron,
.emkan-v131-disclosure-mark,.emkan-v132-disclosure-mark,.emkan-v133-disclosure-mark,.emkan-v147-disclosure-mark,.emkan-v148-disclosure-mark)::before,
:is(.category-chevron,.article-category-chevron,.detail-subcategory-chevron,.v49-filter-chevron,.emkan-disclosure-mark,
.store-subcategory-mark,.store-sort-mark,.store-sort-filter-mark,.message-subject-chevron,
.emkan-v131-disclosure-mark,.emkan-v132-disclosure-mark,.emkan-v133-disclosure-mark,.emkan-v147-disclosure-mark,.emkan-v148-disclosure-mark)::after{
  content:""!important;display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;
  inset-inline-end:0!important;height:1px!important;background:currentColor!important;border:0!important;transform:none!important;
  transition:width .2s cubic-bezier(.22,.61,.36,1)!important;
}
:is(.category-chevron,.article-category-chevron,.detail-subcategory-chevron,.v49-filter-chevron,.emkan-disclosure-mark,
.store-subcategory-mark,.store-sort-mark,.store-sort-filter-mark,.message-subject-chevron,
.emkan-v131-disclosure-mark,.emkan-v132-disclosure-mark,.emkan-v133-disclosure-mark,.emkan-v147-disclosure-mark,.emkan-v148-disclosure-mark)::before{top:2px!important;width:6px!important;}
:is(.category-chevron,.article-category-chevron,.detail-subcategory-chevron,.v49-filter-chevron,.emkan-disclosure-mark,
.store-subcategory-mark,.store-sort-mark,.store-sort-filter-mark,.message-subject-chevron,
.emkan-v131-disclosure-mark,.emkan-v132-disclosure-mark,.emkan-v133-disclosure-mark,.emkan-v147-disclosure-mark,.emkan-v148-disclosure-mark)::after{top:7px!important;width:11px!important;}
:is(details[open]>summary,[aria-expanded="true"]) :is(.category-chevron,.article-category-chevron,.detail-subcategory-chevron,.v49-filter-chevron,.emkan-disclosure-mark,.store-subcategory-mark,.store-sort-mark,.store-sort-filter-mark,.message-subject-chevron,.emkan-v131-disclosure-mark,.emkan-v132-disclosure-mark,.emkan-v133-disclosure-mark,.emkan-v147-disclosure-mark,.emkan-v148-disclosure-mark)::before,
.category-panel.is-open .category-toggle :is(.category-chevron,.emkan-v131-disclosure-mark,.emkan-v132-disclosure-mark,.emkan-v133-disclosure-mark)::before{width:11px!important;opacity:1!important;}
:is(details[open]>summary,[aria-expanded="true"]) :is(.category-chevron,.article-category-chevron,.detail-subcategory-chevron,.v49-filter-chevron,.emkan-disclosure-mark,.store-subcategory-mark,.store-sort-mark,.store-sort-filter-mark,.message-subject-chevron,.emkan-v131-disclosure-mark,.emkan-v132-disclosure-mark,.emkan-v133-disclosure-mark,.emkan-v147-disclosure-mark,.emkan-v148-disclosure-mark)::after,
.category-panel.is-open .category-toggle :is(.category-chevron,.emkan-v131-disclosure-mark,.emkan-v132-disclosure-mark,.emkan-v133-disclosure-mark)::after{width:6px!important;opacity:1!important;}
:is(.category-toggle,.article-category-toggle,.detail-subcategory-toggle,.v49-filter-toggle,.message-subject-toggle,details>summary){align-items:center!important;}
.category-toggle,.article-category-toggle,.detail-subcategory-toggle{width:100%!important;justify-content:space-between!important;}

/* ---------- Articles: true two-step interaction + compact actions ---------- */
.articles-list .article-row:not(.is-open) .article-detail{grid-template-rows:0fr!important;opacity:0!important;padding-bottom:0!important;overflow:hidden!important;}
.articles-list .article-row:not(.is-open) .article-side{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:none!important;}
.articles-list .article-row:not(.is-open):is(:hover,:focus-within) .article-detail{grid-template-rows:0fr!important;opacity:0!important;padding-bottom:0!important;}
.articles-list .article-row:not(.is-open):is(:hover,:focus-within) .article-side{opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
.articles-list .article-row.is-open .article-detail{grid-template-rows:1fr!important;opacity:1!important;padding-bottom:22px!important;overflow:visible!important;}
.articles-list .article-row.is-open .article-side{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;}
.article-actions,.articles-list .article-row.is-open .article-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;}
.article-action,.articles-list .article-row.is-open .article-action{
  width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:1px 0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;
  justify-content:flex-start!important;gap:4px!important;font-size:8px!important;font-weight:400!important;line-height:1.55!important;
}
.article-action svg{width:10px!important;height:10px!important;}
.article-action:is(:hover,:focus-visible){border:0!important;background:transparent!important;color:var(--hover-accent)!important;}

/* ---------- Store product ---------- */
.product-stage{
  position:relative!important;display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(290px,.72fr)!important;
  gap:34px!important;align-items:start!important;border-bottom:0!important;
}
.product-stage::after,.product-main-image::before,.product-main-image::after{display:none!important;content:none!important;}
.product-stage::before{
  content:""!important;display:block!important;position:absolute!important;
  left:var(--emkan-product-divider-x,-9999px)!important;top:var(--emkan-product-divider-y,0)!important;
  width:1px!important;height:var(--emkan-product-divider-h,0)!important;background:var(--line)!important;
  pointer-events:none!important;z-index:2!important;
}
.product-gallery-panel{padding:0 0 28px!important;border:0!important;min-width:0!important;}
.product-gallery{max-width:none!important;min-width:0!important;}
.product-info{padding:3px 0 28px!important;position:sticky!important;top:24px!important;min-width:0!important;}
.buy-row{margin-bottom:0!important;padding-bottom:0!important;border-bottom:0!important;}
.product-post-actions{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;
  gap:14px!important;margin:9px 0 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
.product-post-actions .product-cart-shortcut,.product-post-actions .product-continue-shopping{
  appearance:none!important;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:1px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;
  color:var(--category-muted)!important;font:inherit!important;font-size:8.5px!important;line-height:1.6!important;text-decoration:none!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
.product-post-actions :is(.product-cart-shortcut,.product-continue-shopping):is(:hover,:focus-visible){background:transparent!important;border:0!important;color:var(--hover-accent)!important;}
.cart-drawer{padding:34px 28px!important;}
.cart-drawer h2{margin:0 0 24px!important;font-size:17px!important;font-weight:500!important;}
.cart-item{padding:15px 0!important;gap:16px!important;line-height:1.7!important;}
.cart-summary{margin-top:24px!important;padding-top:15px!important;border-top:1px solid var(--line)!important;}
.cart-actions{display:flex!important;gap:16px!important;align-items:center!important;margin-top:18px!important;}
.cart-actions a{min-height:0!important;padding:3px 0!important;border:0!important;background:transparent!important;font-size:8.5px!important;justify-content:flex-start!important;}


/* ---------- Content creation listing + single sample ---------- */
body.content-section-page #contentApp .v49-layout,
body.content-section-page #contentApp .v74-sample-index.v49-layout{
  display:grid!important;grid-template-columns:minmax(118px,160px) minmax(0,1fr)!important;gap:28px!important;align-items:start!important;
}
body.content-section-page #contentApp .v49-rail{grid-column:1!important;min-width:0!important;}
body.content-section-page #contentApp .v49-results-wrap{grid-column:2!important;min-width:0!important;}
body.content-section-page.emkan-v177-single #contentApp .v49-rail,
body.content-section-page #contentApp .v73-sample-detail .v49-rail{display:none!important;}
body.content-section-page #contentApp .v106-course-gallery{display:none!important;}

/* Product-like single sample, while keeping its editorial paragraph/details. */
body.content-section-page #contentApp .v73-sample-detail{width:100%!important;max-width:1040px!important;margin-inline:auto!important;}
body.content-section-page #contentApp .v73-sample-hero{
  display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(290px,.72fr)!important;grid-template-areas:"media info"!important;
  gap:34px!important;align-items:start!important;padding:28px 0!important;border-bottom:1px solid var(--line)!important;
}
body.content-section-page #contentApp .v73-sample-gallery{grid-area:media!important;display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;grid-template-areas:"thumbs hero"!important;gap:10px!important;min-width:0!important;position:relative!important;padding:0!important;}
body.content-section-page #contentApp .v73-sample-thumbs{grid-area:thumbs!important;width:64px!important;display:flex!important;flex-direction:column!important;gap:7px!important;}
body.content-section-page #contentApp .v73-sample-thumb{width:64px!important;height:46px!important;min-width:64px!important;min-height:46px!important;aspect-ratio:auto!important;padding:0!important;margin:0!important;overflow:hidden!important;background:transparent!important;}
body.content-section-page #contentApp .v73-sample-thumb img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;}
body.content-section-page #contentApp .v73-sample-main{grid-area:hero!important;width:100%!important;max-width:520px!important;aspect-ratio:4/5!important;height:auto!important;margin:0!important;overflow:hidden!important;position:relative!important;background:var(--panel)!important;}
body.content-section-page #contentApp .v73-sample-main::before,
body.content-section-page #contentApp .v73-sample-main::after{display:none!important;content:none!important;}
body.content-section-page #contentApp .v73-sample-main img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important;}
body.content-section-page #contentApp .v73-sample-info{grid-area:info!important;min-width:0!important;padding:4px 0 24px!important;background:none!important;}
body.content-section-page #contentApp .v73-sample-info h1{margin-top:0!important;}
body.content-section-page #contentApp .v73-sample-info p{max-width:46ch!important;line-height:2!important;white-space:pre-line!important;}
body.content-section-page #contentApp .v84-sample-lower{max-width:900px!important;margin-inline:auto!important;}

/* ---------- EMKAN AI page ---------- */
body.emkan-ai-page .emkan-ai-main{width:min(960px,calc(100% - 48px))!important;margin-top:46px!important;padding-top:28px!important;}
body.emkan-ai-page .emkan-ai-intro{padding-top:0!important;padding-bottom:22px!important;gap:30px!important;align-items:start!important;}
body.emkan-ai-page .emkan-ai-intro h1{font-size:clamp(25px,2.45vw,34px)!important;line-height:1.52!important;font-weight:430!important;margin-top:0!important;max-width:610px!important;}
body.emkan-ai-page .emkan-ai-intro p{font-size:10.5px!important;line-height:2!important;max-width:360px!important;}
body.emkan-ai-page .emkan-ai-tabs{padding:10px 0 4px!important;gap:26px!important;border-bottom:1px solid var(--ai-line)!important;}
body.emkan-ai-page .emkan-ai-tab{padding:0 0 2px!important;margin:0!important;}
body.emkan-ai-page .emkan-ai-tab::after{bottom:-5px!important;}
body.emkan-ai-page .emkan-ai-prompt-form{border-top:0!important;margin-top:0!important;padding-top:17px!important;}
body.emkan-ai-page .emkan-ai-prompt-form::before{display:none!important;content:none!important;}
body.emkan-ai-page .emkan-ai-prompt-form textarea{font-size:clamp(17px,1.65vw,23px)!important;}

/* ---------- Responsive system: phone / tablet / laptop / large monitor ---------- */
@media (max-width:1280px){
  :root{--emkan-shell-pad:40px;}
  .site-header,.project-subnav-shell,.architecture-main,.module-main,.detail-main,.v49-main,.articles-main,.article-page,
  .store-main,.store-category-main,.product-main,.checkout-main,.contact-main,.about-main,.careers-main,.podcast-main,
  .emkan-search-main,.emkan-member-main,.account-shell,.project-main,.research-main,.civil-main,.civil-projects-main,.content-main{
    width:calc(100% - 40px)!important;max-width:1120px!important;
  }
}
@media (max-width:1024px){
  :root{--emkan-shell-pad:32px;}
  .site-header,.project-subnav-shell,.architecture-main,.module-main,.detail-main,.v49-main,.articles-main,.article-page,
  .store-main,.store-category-main,.product-main,.checkout-main,.contact-main,.about-main,.careers-main,.podcast-main,
  .emkan-search-main,.emkan-member-main,.account-shell,.project-main,.research-main,.civil-main,.civil-projects-main,.content-main{
    width:calc(100% - 32px)!important;max-width:none!important;padding-inline:0!important;
  }
  main :is(.projects-layout,.detail-layout,.articles-layout-architecture,.store-category-layout,.product-layout,.checkout-layout,.contact-composition,.careers-layout,.podcast-workspace,.about-company-visual-grid,.v49-workspace,.research-layout,.civil-project-listing){width:100%!important;max-width:100%!important;min-width:0!important;}
  :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid){gap:18px 12px!important;}
  .product-stage{grid-template-columns:minmax(0,1fr)!important;gap:26px!important;}
  .product-stage::before{display:none!important;}
  .product-info{position:static!important;padding-top:0!important;}
  
}
@media (max-width:900px){
  html,body{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;}
  :root{--emkan-shell-pad:24px;}
  .site-header,.project-subnav-shell,.architecture-main,.module-main,.detail-main,.v49-main,.articles-main,.article-page,
  .store-main,.store-category-main,.product-main,.checkout-main,.contact-main,.about-main,.careers-main,.podcast-main,
  .emkan-search-main,.emkan-member-main,.account-shell,.project-main,.research-main,.civil-main,.civil-projects-main,.content-main{
    width:calc(100% - 24px)!important;max-width:none!important;
  }
  .site-header .nav-frame{width:100%!important;max-width:100%!important;min-width:0!important;}
  .site-header .primary-nav{width:100%!important;max-width:100%!important;min-width:0!important;padding-inline:0!important;}
  .site-header .nav-list{width:100%!important;max-width:100%!important;min-width:0!important;}
  :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid){grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;max-width:100%!important;gap:16px 10px!important;}
  :is(.gallery-item,.category-card,.store-card,.product-card,.v49-card,.v49-course,.v49-work-card,.research-entry,.civil-entry,.person-card){min-width:0!important;max-width:100%!important;}
  
  
  body.content-section-page #contentApp .v49-layout,
  body.content-section-page #contentApp .v74-sample-index.v49-layout{grid-template-columns:128px minmax(0,1fr)!important;gap:18px!important;}
  body.content-section-page #contentApp .v73-sample-hero{grid-template-columns:1fr!important;grid-template-areas:"media" "info"!important;gap:22px!important;}
  body.content-section-page #contentApp .v73-sample-gallery{max-width:560px!important;margin-inline:auto!important;}
  body.content-section-page #contentApp .v73-sample-info{max-width:560px!important;width:100%!important;margin-inline:auto!important;}
  body.emkan-ai-page .emkan-ai-main{width:calc(100% - 32px)!important;margin-top:34px!important;padding-top:20px!important;}
}
@media (max-width:720px){
  :root{--emkan-shell-pad:20px;}
  html{font-size:13px!important;}
  body{font-size:13px!important;}
  .site-header,.project-subnav-shell,.architecture-main,.module-main,.detail-main,.v49-main,.articles-main,.article-page,
  .store-main,.store-category-main,.product-main,.checkout-main,.contact-main,.about-main,.careers-main,.podcast-main,
  .emkan-search-main,.emkan-member-main,.account-shell,.project-main,.research-main,.civil-main,.civil-projects-main,.content-main{width:calc(100% - 20px)!important;}
  :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px 8px!important;}
  
  
  
  
  
  body.content-section-page #contentApp .v49-layout,
  body.content-section-page #contentApp .v74-sample-index.v49-layout{grid-template-columns:104px minmax(0,1fr)!important;gap:13px!important;}
  body.content-section-page #contentApp .v73-sample-gallery{grid-template-columns:54px minmax(0,1fr)!important;gap:8px!important;}
  body.content-section-page #contentApp .v73-sample-thumbs{width:54px!important;}
  body.content-section-page #contentApp .v73-sample-thumb{width:54px!important;height:39px!important;min-width:54px!important;min-height:39px!important;}
  .cart-drawer{width:min(94vw,390px)!important;padding:28px 20px!important;}
  body.emkan-ai-page .emkan-ai-main{width:calc(100% - 24px)!important;margin-top:28px!important;padding-top:18px!important;}
  body.emkan-ai-page .emkan-ai-intro{grid-template-columns:1fr!important;gap:18px!important;padding-bottom:16px!important;}
  body.emkan-ai-page .emkan-ai-intro h1{font-size:21px!important;line-height:1.55!important;}
  body.emkan-ai-page .emkan-ai-tabs{padding-top:8px!important;padding-bottom:3px!important;gap:18px!important;}
  body.emkan-ai-page .emkan-ai-prompt-form{padding-top:14px!important;}
}
@media (max-width:480px){
  :root{--emkan-shell-pad:16px;}
  html,body{font-size:12px!important;}
  .site-header,.project-subnav-shell,.architecture-main,.module-main,.detail-main,.v49-main,.articles-main,.article-page,
  .store-main,.store-category-main,.product-main,.checkout-main,.contact-main,.about-main,.careers-main,.podcast-main,
  .emkan-search-main,.emkan-member-main,.account-shell,.project-main,.research-main,.civil-main,.civil-projects-main,.content-main{width:calc(100% - 16px)!important;}
  :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 7px!important;}
  
  body.content-section-page #contentApp .v49-layout,
  body.content-section-page #contentApp .v74-sample-index.v49-layout{grid-template-columns:86px minmax(0,1fr)!important;gap:10px!important;}
  body.content-section-page #contentApp .v49-rail{font-size:10px!important;}
  body.content-section-page #contentApp .v73-sample-gallery{grid-template-columns:1fr!important;grid-template-areas:"hero" "thumbs"!important;}
  body.content-section-page #contentApp .v73-sample-thumbs{width:100%!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  body.content-section-page #contentApp .v73-sample-thumb{width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important;}
  body.content-section-page #contentApp .v73-sample-main{max-width:100%!important;}
  .product-post-actions{gap:10px!important;}
}

/* Chrome/safety fail-open: a late script failure must never leave a public page invisible. */
body.content-section-page.is-preload .page-shell{opacity:1!important;transform:none!important;}

/* ---------- Final media/card sizing contract ---------- */
:is(.gallery-item,.project-card,.category-card,.store-card,.product-card,.v49-card,.v49-course,.v49-work-card,.civil-entry,.research-entry,.person-card){
  width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:0!important;
}
:is(.gallery-item img,.project-card img,.category-card img,.store-card img,.product-card img,.v49-card img,.v49-course img,.v49-work-card img,.civil-entry img,.research-entry img,.person-card img){
  max-width:100%!important;height:auto;
}
:is(.category-media,.gallery-item-media,.project-card-media,.store-card-media,.product-card-media,.v49-card-media,.v49-course-media,.v49-work-media,.civil-entry-media,.research-entry-media){
  width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;
}

.product-post-actions::before,.product-post-actions::after{display:none!important;content:none!important;}
body.content-section-page #contentApp .v73-sample-info{border-inline-start:1px solid var(--line)!important;padding-inline-start:28px!important;}

@media (min-width:901px) and (max-width:1024px){
  :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width:900px){
  body.content-section-page #contentApp .v73-sample-info{border-inline-start:0!important;padding-inline-start:0!important;}
  .product-main-image{max-height:min(54vh,460px)!important;}
  .product-main-image img{object-fit:contain!important;object-position:center!important;}
}
@media (max-width:720px){
  :is(.category-media,.gallery-item-media,.project-card-media,.store-card-media,.product-card-media,.v49-card-media,.v49-course-media,.v49-work-media,.civil-entry-media,.research-entry-media){
    max-height:min(34vh,260px)!important;
  }
  .product-main-image{max-height:min(48vh,360px)!important;aspect-ratio:4/5!important;}
}
@media (max-width:480px){
  :is(.category-media,.gallery-item-media,.project-card-media,.store-card-media,.product-card-media,.v49-card-media,.v49-course-media,.v49-work-media,.civil-entry-media,.research-entry-media){
    max-height:min(29vh,210px)!important;
  }
  .product-main-image{max-height:min(44vh,320px)!important;}
}

/* ======================================================================
   EMKAN FINAL CORE — precision corrections after live verification
   This remains the single authoritative public correction stylesheet.
   ====================================================================== */

/* Keep the public navigation label visually identical to its siblings. */
html body .primary-nav .emkan-ai-nav-link,
html body .primary-menu .emkan-ai-nav-link{
  font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;
  line-height:inherit!important;letter-spacing:inherit!important;color:inherit!important;
}
@media (max-width:900px){
  html body .primary-nav li[data-emkan-search-nav]{display:flex!important;justify-content:center!important;align-items:center!important;text-align:center!important;}
  html body .primary-nav li[data-emkan-search-nav]>.emkan-ai-nav-link{margin-inline:auto!important;text-align:center!important;justify-content:center!important;}
}

/* Responsive cards: late legacy styles must not enlarge cards after first paint. */
@media (min-width:901px) and (max-width:1180px){
  html body .page-shell :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid){
    grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:22px 14px!important;
  }
  html body .page-shell :is(.gallery-item,.project-card,.category-card,.store-card,.product-card,.v49-card,.v49-course,.v49-work-card,.civil-entry,.research-entry,.person-card){
    width:88%!important;max-width:210px!important;justify-self:center!important;margin-inline:auto!important;
  }
}
@media (min-width:721px) and (max-width:900px){
  html body .page-shell :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px 12px!important;
  }
  html body .page-shell :is(.gallery-item,.project-card,.category-card,.store-card,.product-card,.v49-card,.v49-course,.v49-work-card,.civil-entry,.research-entry,.person-card){
    width:88%!important;max-width:190px!important;justify-self:center!important;margin-inline:auto!important;
  }
}
@media (max-width:720px){
  html body .page-shell :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 8px!important;
  }
  html body .page-shell :is(.gallery-item,.project-card,.category-card,.store-card,.product-card,.v49-card,.v49-course,.v49-work-card,.civil-entry,.research-entry,.person-card){
    width:84%!important;max-width:158px!important;justify-self:center!important;margin-inline:auto!important;
  }
  html body .page-shell :is(.category-media,.gallery-item-media,.project-card-media,.store-card-media,.product-card-media,.v49-card-media,.v49-course-media,.v49-work-media,.civil-entry-media,.research-entry-media){
    width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:1/1!important;
  }
}
@media (max-width:420px){
  html body .page-shell :is(.gallery-item,.project-card,.category-card,.store-card,.product-card,.v49-card,.v49-course,.v49-work-card,.civil-entry,.research-entry,.person-card){
    width:82%!important;max-width:146px!important;
  }
}


/* Store: remove the old boxed secondary actions permanently. */
html body .product-stage::after,
html body .product-main-image::before,
html body .product-main-image::after{display:none!important;content:none!important;}
html body .product-post-actions{
  display:flex!important;grid-template-columns:none!important;width:calc(100% - 92px)!important;max-width:none!important;
  margin:7px 0 0 auto!important;padding:0!important;border:0!important;border-top:0!important;border-bottom:0!important;
  background:transparent!important;box-shadow:none!important;justify-content:center!important;align-items:center!important;gap:10px!important;
}
html[dir="rtl"] body .product-post-actions{margin-left:0!important;margin-right:auto!important;}
html body .product-post-actions .product-cart-shortcut,
html body .product-post-actions .product-continue-shopping{
  appearance:none!important;display:inline-flex!important;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:0!important;border:0!important;border-top:0!important;border-bottom:0!important;outline:0!important;
  background:transparent!important;box-shadow:none!important;border-radius:0!important;color:var(--category-muted)!important;
  font:inherit!important;font-size:8px!important;font-weight:400!important;line-height:1.55!important;text-decoration:none!important;
}
html body .product-post-actions .product-cart-shortcut:is(:hover,:focus-visible),
html body .product-post-actions .product-continue-shopping:is(:hover,:focus-visible){border:0!important;background:transparent!important;box-shadow:none!important;color:var(--hover-accent)!important;}
@media (max-width:900px){html body .product-post-actions{width:100%!important;margin-inline:auto!important;}}


html body .detail-subcategory-filter>summary .detail-subcategory-chevron,
html body .detail-subcategory-filter[open]>summary .detail-subcategory-chevron{
  display:inline-block!important;visibility:visible!important;opacity:.88!important;color:var(--fg)!important;filter:none!important;
}
html body .detail-subcategory-filter>summary .detail-subcategory-chevron::before,
html body .detail-subcategory-filter>summary .detail-subcategory-chevron::after,
html body .detail-subcategory-filter[open]>summary .detail-subcategory-chevron::before,
html body .detail-subcategory-filter[open]>summary .detail-subcategory-chevron::after{
  display:block!important;visibility:visible!important;opacity:1!important;background:var(--fg)!important;filter:none!important;
}

/* EMKAN Assistant: two clear modes, quieter typography, less visual weight. */
html body.emkan-ai-page .emkan-ai-main{width:min(900px,calc(100% - 48px))!important;margin-top:40px!important;padding-top:18px!important;}
html body.emkan-ai-page .emkan-ai-intro{grid-template-columns:minmax(0,1fr) minmax(220px,.48fr)!important;gap:34px!important;padding-bottom:18px!important;align-items:center!important;}
html body.emkan-ai-page .emkan-ai-intro h1{font-size:clamp(23px,2.2vw,31px)!important;line-height:1.48!important;font-weight:450!important;max-width:520px!important;}
html body.emkan-ai-page .emkan-ai-intro p{font-size:9.8px!important;line-height:1.9!important;max-width:320px!important;}
html body.emkan-ai-page .emkan-ai-process{padding:10px 0!important;gap:10px!important;}
html body.emkan-ai-page .emkan-ai-process-step{font-size:8.7px!important;gap:7px!important;}
html body.emkan-ai-page .emkan-ai-tabs{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;padding:0!important;margin-top:16px!important;border-top:1px solid var(--ai-line)!important;border-bottom:1px solid var(--ai-line)!important;
}
html body.emkan-ai-page .emkan-ai-tab{
  min-height:42px!important;padding:0 14px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
  font-size:9.6px!important;font-weight:450!important;color:var(--ai-muted)!important;
}
html body.emkan-ai-page .emkan-ai-tab+ .emkan-ai-tab{border-inline-start:1px solid var(--ai-line)!important;}
html body.emkan-ai-page .emkan-ai-tab::after{bottom:-1px!important;inset-inline:24%!important;}
html body.emkan-ai-page .emkan-ai-tab.is-active{color:var(--ai-ink)!important;font-weight:650!important;background:var(--ai-soft)!important;}
html body.emkan-ai-page .emkan-ai-composer,
html body.emkan-ai-page .emkan-ai-search-block{padding-top:18px!important;}
html body.emkan-ai-page .emkan-ai-prompt-form{min-height:112px!important;padding:18px 0 16px!important;}
html body.emkan-ai-page .emkan-ai-prompt-form textarea{min-height:70px!important;font-size:clamp(17px,1.7vw,22px)!important;line-height:1.7!important;}
@media (max-width:900px){
  html body.emkan-ai-page .emkan-ai-main{width:calc(100% - 32px)!important;margin-top:28px!important;padding-top:14px!important;}
  html body.emkan-ai-page .emkan-ai-intro{grid-template-columns:1fr!important;gap:8px!important;text-align:center!important;justify-items:center!important;}
  html body.emkan-ai-page .emkan-ai-intro h1,html body.emkan-ai-page .emkan-ai-intro p{margin-inline:auto!important;text-align:center!important;}
  html body.emkan-ai-page .emkan-ai-tabs{max-width:620px!important;margin-inline:auto!important;width:100%!important;}
}
@media (max-width:520px){
  html body.emkan-ai-page .emkan-ai-main{width:calc(100% - 22px)!important;}
  html body.emkan-ai-page .emkan-ai-process{display:none!important;}
  html body.emkan-ai-page .emkan-ai-tabs{grid-template-columns:1fr!important;}
  html body.emkan-ai-page .emkan-ai-tab+ .emkan-ai-tab{border-inline-start:0!important;border-top:1px solid var(--ai-line)!important;}
  html body.emkan-ai-page .emkan-ai-tab{min-height:38px!important;font-size:9px!important;}
}

/* Store source-lock: outrank the old v180 parity block without another stylesheet generation. */
@media (min-width:861px){
  html body .product-main.product-main .product-stage.product-stage{
    display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(300px,.72fr)!important;
    grid-template-areas:"media info"!important;column-gap:34px!important;row-gap:0!important;gap:34px!important;
    align-items:start!important;padding-top:28px!important;border-bottom:0!important;position:relative!important;
  }
  html body .product-main.product-main .product-stage.product-stage::before{
    content:""!important;display:block!important;position:absolute!important;
    left:var(--emkan-product-divider-x,-9999px)!important;top:var(--emkan-product-divider-y,0)!important;
    width:1px!important;height:var(--emkan-product-divider-h,0)!important;background:var(--line)!important;
    pointer-events:none!important;z-index:2!important;
  }
  html body .product-main.product-main .product-stage.product-stage::after{display:none!important;content:none!important;}
  html body .product-main.product-main .product-gallery-panel.product-gallery-panel{padding:0 0 26px!important;border:0!important;}
  html body .product-main.product-main .product-info.product-info{padding:3px 0 26px!important;position:sticky!important;top:24px!important;}
}

/* ======================================================================
   FINAL LIVE POLISH — 2026-09-25
   These rules intentionally stay in the single authoritative final layer.
   ====================================================================== */

/* 1) AI navigation: exact visual parity with ordinary navigation items. */
html body .primary-nav .nav-list>li>.emkan-ai-nav-link{
  font-family:var(--font-en)!important;
  font-size:clamp(11px,.91vw,14px)!important;
  font-weight:400!important;
  line-height:1.25!important;
  letter-spacing:normal!important;
  padding:0!important;
  margin:0!important;
  color:var(--menu-text)!important;
}
:is(html[lang="fa"],html[lang="ar"]) body .primary-nav .nav-list>li>.emkan-ai-nav-link{
  font-family:var(--font-fa)!important;
  font-size:clamp(12px,.94vw,14.5px)!important;
  font-weight:400!important;
}
html body .primary-nav .nav-list>li>.emkan-ai-nav-link:is(:hover,:focus-visible){color:var(--hover-accent)!important;}
html body .primary-menu .menu-cell>.emkan-ai-nav-link{
  font-family:inherit!important;font-size:inherit!important;font-weight:400!important;line-height:inherit!important;
  letter-spacing:inherit!important;color:inherit!important;padding:0!important;margin:0!important;
}

/* AI page: compact intro + vertical 3-step guide; no oversized horizontal strip. */
html body.emkan-ai-page .emkan-ai-stage{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(180px,230px)!important;
  grid-template-areas:"intro process" "workspace workspace"!important;
  column-gap:clamp(26px,4vw,54px)!important;
  row-gap:16px!important;
  align-items:start!important;
}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-stage{grid-template-areas:"process intro" "workspace workspace"!important;}
html body.emkan-ai-page .emkan-ai-intro{
  grid-area:intro!important;
  display:block!important;
  padding:14px 0 16px!important;
  margin:0!important;
}
html body.emkan-ai-page .emkan-ai-intro h1{
  font-size:clamp(22px,2vw,29px)!important;
  line-height:1.55!important;
  font-weight:430!important;
  margin:0 0 8px!important;
  max-width:540px!important;
}
html body.emkan-ai-page .emkan-ai-intro p{
  font-size:9.5px!important;
  line-height:1.9!important;
  max-width:390px!important;
  margin:0!important;
}
html body.emkan-ai-page .emkan-ai-process{
  grid-area:process!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  padding:4px 0!important;
  margin:0!important;
  border:0!important;
  align-self:stretch!important;
}
html body.emkan-ai-page .emkan-ai-process-line{display:none!important;}
html body.emkan-ai-page .emkan-ai-process-step{
  min-height:38px!important;
  display:grid!important;
  grid-template-columns:26px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 0!important;
  border-bottom:1px solid var(--ai-line)!important;
  font-size:8.6px!important;
  line-height:1.55!important;
  white-space:normal!important;
}
html body.emkan-ai-page .emkan-ai-process-step:last-child{border-bottom:0!important;}
html body.emkan-ai-page .emkan-ai-process-step b{font-size:7px!important;font-weight:500!important;}
html body.emkan-ai-page .emkan-ai-workspace{grid-area:workspace!important;}
html body.emkan-ai-page .emkan-ai-tabs{margin-top:2px!important;}
html body.emkan-ai-page .emkan-ai-tab{background:transparent!important;font-weight:400!important;}
html body.emkan-ai-page .emkan-ai-tab.is-active{background:transparent!important;font-weight:520!important;}
html body.emkan-ai-page .emkan-ai-tab::after{background:transparent!important;height:1px!important;}
html body.emkan-ai-page .emkan-ai-tab.is-active::after{background:var(--hover-accent)!important;}
@media (max-width:900px){
  html body.emkan-ai-page .emkan-ai-stage{
    grid-template-columns:minmax(0,1fr) minmax(160px,210px)!important;
    column-gap:22px!important;
  }
  html body.emkan-ai-page .emkan-ai-intro{text-align:inherit!important;justify-items:initial!important;}
  html body.emkan-ai-page .emkan-ai-intro h1,html body.emkan-ai-page .emkan-ai-intro p{text-align:inherit!important;margin-inline:0!important;}
}
@media (max-width:640px){
  html body.emkan-ai-page .emkan-ai-stage{display:block!important;}
  html body.emkan-ai-page .emkan-ai-process{margin:2px 0 14px!important;}
  html body.emkan-ai-page .emkan-ai-process-step{min-height:34px!important;}
}

/* 2) Store: remove every legacy separator source; keep only calculated stage divider. */
html body .product-main .product-gallery-panel,
html body .product-main .product-info,
html body .product-main .product-gallery{
  border-inline-start:0!important;border-inline-end:0!important;
  border-left:0!important;border-right:0!important;
  background-image:none!important;
}
html body .product-main .product-gallery-panel::before,
html body .product-main .product-gallery-panel::after,
html body .product-main .product-info::before,
html body .product-main .product-info::after,
html body .product-main .product-gallery::before,
html body .product-main .product-gallery::after{
  content:none!important;display:none!important;
}
/* the sole intentional vertical separator */
@media (min-width:861px){
  html body .product-main .product-stage::before{display:block!important;}
}

/* 3) Content-creation sample: same media geometry and subtle hover as Store. */
@media (min-width:721px){
  html body.content-section-page #contentApp .v73-sample-detail{
    width:min(1040px,100%)!important;max-width:1040px!important;
  }
  html body.content-section-page #contentApp .v73-sample-hero{
    display:grid!important;
    grid-template-columns:minmax(0,1.12fr) minmax(290px,.72fr)!important;
    grid-template-areas:"media info"!important;
    gap:34px!important;
    align-items:start!important;
    padding:28px 0!important;
  }
  html[dir="rtl"] body.content-section-page #contentApp .v73-sample-hero{grid-template-areas:"info media"!important;}
  html body.content-section-page #contentApp .v73-sample-gallery{
    grid-area:media!important;
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    grid-template-areas:"thumbs hero"!important;
    gap:10px!important;
    width:100%!important;
    max-width:500px!important;
    margin:0!important;
    padding:0!important;
    background:none!important;
  }
  html[dir="rtl"] body.content-section-page #contentApp .v73-sample-gallery{
    grid-template-columns:minmax(0,1fr) 58px!important;
    grid-template-areas:"hero thumbs"!important;
  }
  html body.content-section-page #contentApp .v73-sample-thumbs{
    grid-area:thumbs!important;width:58px!important;display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;padding:0!important;
  }
  html body.content-section-page #contentApp .v73-sample-thumb{
    width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;aspect-ratio:1!important;
    border:1px solid var(--line)!important;background:transparent!important;overflow:hidden!important;
  }
  html body.content-section-page #contentApp .v73-sample-thumb img{
    width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;filter:grayscale(100%)!important;
    transition:filter .25s ease,opacity .2s ease!important;
  }
  html body.content-section-page #contentApp .v73-sample-thumb.is-active{border-color:var(--hover-accent)!important;}
  html body.content-section-page #contentApp .v73-sample-main{
    grid-area:hero!important;
    width:100%!important;max-width:390px!important;height:auto!important;aspect-ratio:1/1!important;
    margin:0!important;border:1px solid var(--line)!important;background:var(--panel)!important;overflow:hidden!important;
  }
  html body.content-section-page #contentApp .v73-sample-main img{
    width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;
    transform:scale(1)!important;filter:none!important;transition:transform .7s cubic-bezier(.22,.61,.36,1)!important;
  }
  html body.content-section-page #contentApp .v73-sample-info{
    grid-area:info!important;padding:4px 0 24px!important;margin:0!important;min-width:0!important;
  }
  html body.content-section-page #contentApp .v73-sample-info p{max-width:44ch!important;line-height:1.95!important;}
}


@media (min-width:721px) and (hover:hover) and (pointer:fine){
  html body.content-section-page #contentApp .v73-sample-main:hover img{transform:scale(1.012)!important;}
  html body.content-section-page #contentApp .v73-sample-thumb:hover img{filter:grayscale(0)!important;}
}

/* 4) Completed education report gallery: one line only, product-scale thumbnails, correct RTL side. */
html body.v115-course-detail #contentApp#contentApp .v120-report{
  border-top:1px solid var(--line)!important;
  border-bottom:0!important;
  padding-bottom:0!important;
}
html body.v115-course-detail #contentApp .v120-report-gallery{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  width:100%!important;
  max-width:100%!important;
  margin:16px 0 0!important;
  padding:14px 0 0!important;
  border-top:1px solid var(--line)!important;
  border-bottom:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  background:none!important;
  box-shadow:none!important;
}
html body.v115-course-detail #contentApp .v120-report-gallery::-webkit-scrollbar{display:none!important;}
html[lang="fa"] body.v115-course-detail #contentApp .v120-report-gallery,
html[lang="ar"] body.v115-course-detail #contentApp .v120-report-gallery{direction:rtl!important;justify-content:flex-start!important;}
html[lang="en"] body.v115-course-detail #contentApp .v120-report-gallery{direction:ltr!important;justify-content:flex-start!important;}
html body.v115-course-detail #contentApp .v120-report-gallery img{
  flex:0 0 72px!important;
  width:72px!important;min-width:72px!important;height:72px!important;
  aspect-ratio:1!important;object-fit:contain!important;object-position:center!important;
  margin:0!important;border:1px solid var(--line)!important;background:var(--panel)!important;
  filter:grayscale(100%)!important;opacity:.88!important;transform:none!important;
}
@media (hover:hover) and (pointer:fine){
  html body.v115-course-detail #contentApp .v120-report-gallery img:hover{filter:grayscale(0)!important;opacity:1!important;border-color:var(--hover-accent)!important;}
}
@media (max-width:700px){
  html body.v115-course-detail #contentApp .v120-report-gallery img{flex-basis:62px!important;width:62px!important;min-width:62px!important;height:62px!important;}
}

/* =========================================================
   FINAL HOST CLEANUP — responsive centering, project media,
   articles, AI assistant, content samples, and product divider.
   This remains the single authoritative correction layer.
   ========================================================= */

/* Navigation assistant must be visually identical to ordinary nav items. */
html body .primary-nav .nav-link.emkan-ai-nav-link,
html body .primary-menu a.emkan-ai-nav-link{
  font-weight:400!important;
  letter-spacing:normal!important;
  transform:none!important;
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
}
html[lang="en"] body .primary-nav .nav-link.emkan-ai-nav-link{font-family:var(--font-en,Arial,sans-serif)!important;font-size:clamp(11px,.91vw,14px)!important;}
:is(html[lang="fa"],html[lang="ar"]) body .primary-nav .nav-link.emkan-ai-nav-link{font-family:var(--font-fa,inherit)!important;font-size:clamp(12px,.94vw,14.5px)!important;}

/* Mobile/tablet listing geometry: centered cards, no split-to-edges layout. */
@media (max-width:720px){
  html body :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid){
    width:min(100%,328px)!important;
    margin-inline:auto!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:center!important;
    align-content:start!important;
    column-gap:10px!important;
    row-gap:16px!important;
  }
  html body :is(.projects-layout,.civil-project-listing,.store-category-layout),
  html body.content-section-page #contentApp :is(.v49-layout,.v74-sample-index.v49-layout){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"side" "results"!important;
    gap:18px!important;
    width:100%!important;
    max-width:100%!important;
  }
  html body.content-section-page #contentApp :is(.v49-layout,.v74-sample-index.v49-layout)>.v49-rail{
    grid-area:side!important;grid-column:auto!important;width:min(100%,328px)!important;margin-inline:auto!important;
  }
  html body.content-section-page #contentApp :is(.v49-layout,.v74-sample-index.v49-layout)>.v49-results-wrap{
    grid-area:results!important;grid-column:auto!important;width:100%!important;
  }
  html body.content-section-page #contentApp .v49-search-group,
  html body.content-section-page #contentApp .project-search{
    display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;
  }
  html body.content-section-page #contentApp .v49-search-group input,
  html body.content-section-page #contentApp .project-search input{width:100%!important;min-width:0!important;max-width:100%!important;}
}


/* Inline video: poster/video in the main row, play action under the media. */


/* Articles: compact bordered actions; only one article stays open, first title click opens, second navigates. */
html body .articles-list .article-row .article-actions{display:flex!important;gap:7px!important;align-items:center!important;flex-wrap:wrap!important;}
html body .articles-list .article-row .article-action{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:58px!important;min-height:24px!important;height:24px!important;
  padding:0 8px!important;margin:0!important;border:1px solid var(--line)!important;background:transparent!important;
  border-radius:0!important;box-shadow:none!important;font-size:7.5px!important;font-weight:400!important;line-height:1!important;text-align:center!important;
}
html body .articles-list .article-row .article-action span{display:inline-block!important;text-align:center!important;line-height:1!important;}
html body .articles-list .article-row .article-action svg{width:8px!important;height:8px!important;flex:0 0 8px!important;}
html body .articles-list .article-row .article-action:is(:hover,:focus-visible){border-color:var(--hover-accent)!important;color:var(--hover-accent)!important;background:transparent!important;}
html body .articles-list .article-row:not(.is-open) :is(.article-detail,.article-side){pointer-events:none!important;}

/* Store: remove every historical divider source; only product-stage::before may render the current calculated divider. */
html body .product-gallery-panel,
html body .product-gallery,
html body .product-info,
html body .product-main-image{border:0!important;border-inline:0!important;border-inline-start:0!important;border-inline-end:0!important;box-shadow:none!important;background-image:none!important;}
html body .product-gallery-panel::before,html body .product-gallery-panel::after,
html body .product-gallery::before,html body .product-gallery::after,
html body .product-info::before,html body .product-info::after,
html body .product-main-image::before,html body .product-main-image::after{display:none!important;content:none!important;}

/* Content-creation single products: product-like proportions, without an image frame; extra copy remains below. */
html body.content-section-page #contentApp .v73-sample-detail{max-width:1040px!important;}
html body.content-section-page #contentApp .v73-sample-hero{grid-template-columns:minmax(0,1.12fr) minmax(280px,.72fr)!important;gap:34px!important;padding:22px 0 26px!important;}
html body.content-section-page #contentApp .v73-sample-gallery{grid-template-columns:58px minmax(0,1fr)!important;gap:9px!important;align-items:start!important;}
html body.content-section-page #contentApp .v73-sample-thumbs{width:58px!important;gap:7px!important;}
html body.content-section-page #contentApp .v73-sample-thumb{width:58px!important;height:46px!important;min-width:58px!important;min-height:46px!important;border:0!important;}
html body.content-section-page #contentApp .v73-sample-main{
  max-width:500px!important;aspect-ratio:5/4!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
html body.content-section-page #contentApp .v73-sample-main img{object-fit:contain!important;}
html body.content-section-page #contentApp .v73-sample-info{padding-top:0!important;}
/* Educational product/course large image: no surrounding frame. */
html body.content-section-page #contentApp :is(.v106-course-gallery-main,.v115-course-media,.v115-course-media-frame){border:0!important;box-shadow:none!important;background:transparent!important;}
html body.content-section-page #contentApp :is(.v106-course-gallery-main,.v115-course-media,.v115-course-media-frame)::before,
html body.content-section-page #contentApp :is(.v106-course-gallery-main,.v115-course-media,.v115-course-media-frame)::after{display:none!important;content:none!important;}

/* Internal content-product/sample indexes always expose search in the side rail. */
html body.content-section-page #contentApp .v74-sample-index>.v74-sample-rail{display:block!important;visibility:visible!important;opacity:1!important;}
html body.content-section-page #contentApp .v74-sample-index .v49-search-group{display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;min-height:34px!important;}
html body.content-section-page #contentApp .v74-sample-index .v49-search-group input{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;color:var(--fg)!important;}
html[dir="rtl"] body.content-section-page #contentApp .v74-sample-index{grid-template-columns:minmax(0,1fr) minmax(118px,160px)!important;}
html[dir="rtl"] body.content-section-page #contentApp .v74-sample-index>.v49-results-wrap{grid-column:1!important;}
html[dir="rtl"] body.content-section-page #contentApp .v74-sample-index>.v49-rail{grid-column:2!important;}
@media (max-width:720px){
  html[dir="rtl"] body.content-section-page #contentApp .v74-sample-index{grid-template-columns:minmax(0,1fr)!important;}
  html[dir="rtl"] body.content-section-page #contentApp .v74-sample-index>.v49-results-wrap,
  html[dir="rtl"] body.content-section-page #contentApp .v74-sample-index>.v49-rail{grid-column:auto!important;}
}

/* EMKAN Assistant page: compact split overview with a tree-like process. */
html body.emkan-ai-page .emkan-ai-main{width:min(960px,calc(100% - 48px))!important;margin-top:42px!important;padding-top:18px!important;}
html body.emkan-ai-page .emkan-ai-overview{
  display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(270px,.75fr)!important;gap:46px!important;
  align-items:center!important;padding:28px 0 26px!important;border-top:1px solid var(--ai-line)!important;border-bottom:1px solid var(--ai-line)!important;
}
html body.emkan-ai-page .emkan-ai-intro{display:block!important;padding:0!important;margin:0!important;}
html body.emkan-ai-page .emkan-ai-intro h1{font-size:clamp(23px,2.15vw,31px)!important;line-height:1.5!important;margin:0 0 10px!important;}
html body.emkan-ai-page .emkan-ai-intro p{font-size:10px!important;line-height:1.95!important;max-width:44ch!important;margin:0!important;}
html body.emkan-ai-page .emkan-ai-process{display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;margin:0!important;border:0!important;position:relative!important;}
html body.emkan-ai-page .emkan-ai-process::before{content:""!important;position:absolute!important;inset-block:12px!important;inset-inline-start:5px!important;width:1px!important;background:var(--ai-line)!important;}
html body.emkan-ai-page .emkan-ai-process-step{display:grid!important;grid-template-columns:11px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;min-height:0!important;padding:8px 0!important;border:0!important;white-space:normal!important;color:var(--ai-muted)!important;}
html body.emkan-ai-page .emkan-ai-process-step>i{width:11px!important;height:11px!important;border:1px solid var(--ai-muted)!important;border-radius:50%!important;background:var(--ai-bg)!important;position:relative!important;z-index:1!important;margin-top:3px!important;}
html body.emkan-ai-page .emkan-ai-process-step>div{min-width:0!important;}
html body.emkan-ai-page .emkan-ai-process-step strong{display:block!important;font-size:10px!important;line-height:1.55!important;font-weight:500!important;color:var(--ai-ink)!important;}
html body.emkan-ai-page .emkan-ai-process-step small{display:block!important;margin-top:2px!important;font-size:8.5px!important;line-height:1.75!important;color:var(--ai-muted)!important;font-weight:400!important;}
html body.emkan-ai-page .emkan-ai-process-line,html body.emkan-ai-page .emkan-ai-process-step>b{display:none!important;}
html body.emkan-ai-page .emkan-ai-tabs{margin-top:8px!important;}
@media (max-width:760px){
  html body.emkan-ai-page .emkan-ai-overview{grid-template-columns:1fr!important;gap:20px!important;padding:22px 0!important;}
  html body.emkan-ai-page .emkan-ai-process{max-width:430px!important;}
}


/* =========================================================
   LIVE PATCH v3 — unresolved QA items from host review.
   These rules intentionally come last.
   ========================================================= */


/* B) Articles */
html body .articles-list .article-row:not(.is-open) .article-detail,
html body .articles-list .article-row:not(.is-open):hover .article-detail,
html body .articles-list .article-row:not(.is-open):focus-within .article-detail{grid-template-rows:0fr!important;opacity:0!important;padding-bottom:0!important;}
html body .articles-list .article-row.is-open .article-detail{grid-template-rows:1fr!important;opacity:1!important;padding-bottom:18px!important;}
html body .articles-list .article-row:not(.is-open) .article-side,
html body .articles-list .article-row:not(.is-open):hover .article-side,
html body .articles-list .article-row:not(.is-open):focus-within .article-side{opacity:0!important;pointer-events:none!important;transform:none!important;}
html body .articles-list .article-row.is-open .article-side{opacity:1!important;pointer-events:auto!important;transform:none!important;}
html body .articles-list .article-row .article-actions{gap:6px!important;}
html body .articles-list .article-row .article-action{min-width:52px!important;min-height:22px!important;height:22px!important;padding:0 7px!important;font-size:7.2px!important;line-height:1!important;}
html body .articles-list .article-row .article-action svg{width:7px!important;height:7px!important;flex:0 0 7px!important;}

/* C) Store */
html body .product-main .product-stage::before{display:none!important;content:none!important;}

/* D) Completed educational-report gallery */
html body.v115-course-detail #contentApp .v120-report-gallery img{flex:0 0 80px!important;width:80px!important;min-width:80px!important;height:80px!important;}
@media (max-width:700px){html body.v115-course-detail #contentApp .v120-report-gallery img{flex-basis:68px!important;width:68px!important;min-width:68px!important;height:68px!important;}}

/* E) Content-creation single sample page */
html body.content-section-page #contentApp .v73-sample-gallery{max-width:none!important;align-items:start!important;}
html body.content-section-page #contentApp .v73-sample-main{width:100%!important;max-width:500px!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;}
html body.content-section-page #contentApp .v73-sample-main img{display:block!important;width:100%!important;height:auto!important;max-height:430px!important;object-fit:contain!important;object-position:top center!important;}

/* F) EMKAN Assistant page */
html body.emkan-ai-page .emkan-ai-main{width:min(960px,calc(100% - 44px))!important;margin-top:34px!important;padding-top:10px!important;}
html body.emkan-ai-page .emkan-ai-overview{direction:ltr!important;display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(260px,.72fr)!important;grid-template-areas:"intro process"!important;align-items:center!important;gap:44px!important;padding:26px 0 24px!important;}
html body.emkan-ai-page .emkan-ai-intro{grid-area:intro!important;min-width:0!important;}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-intro{text-align:right!important;}
html[dir="ltr"] body.emkan-ai-page .emkan-ai-intro{text-align:left!important;}
html body.emkan-ai-page .emkan-ai-intro h1{font-size:clamp(22px,2.05vw,30px)!important;line-height:1.48!important;margin:0 0 10px!important;}
html body.emkan-ai-page .emkan-ai-intro p{font-size:10px!important;line-height:1.95!important;max-width:44ch!important;margin:0!important;}
html body.emkan-ai-page .emkan-ai-process{grid-area:process!important;max-width:300px!important;margin-inline-start:auto!important;position:relative!important;padding:0 0 0 14px!important;}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-process{padding:0 14px 0 0!important;}
html body.emkan-ai-page .emkan-ai-process::before{content:""!important;position:absolute!important;top:10px!important;bottom:10px!important;left:5px!important;width:1px!important;background:var(--ai-line)!important;}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-process::before{left:auto!important;right:5px!important;}
html body.emkan-ai-page .emkan-ai-process-step{display:grid!important;grid-template-columns:14px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;padding:10px 0!important;border:0!important;white-space:normal!important;}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-process-step{grid-template-columns:minmax(0,1fr) 14px!important;}
html body.emkan-ai-page .emkan-ai-process-step>i{width:14px!important;height:14px!important;border:1px solid var(--ai-muted)!important;border-radius:50%!important;background:var(--bg)!important;margin-top:3px!important;position:relative!important;z-index:1!important;}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-process-step>i{grid-column:2!important;justify-self:center!important;}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-process-step>div{grid-column:1!important;text-align:right!important;}
html body.emkan-ai-page .emkan-ai-process-step strong{display:block!important;font-size:11px!important;line-height:1.6!important;font-weight:500!important;color:var(--fg)!important;}
html body.emkan-ai-page .emkan-ai-process-step small{display:block!important;margin-top:2px!important;font-size:8.7px!important;line-height:1.82!important;color:var(--ai-muted)!important;}
@media (max-width:760px){html body.emkan-ai-page .emkan-ai-overview{grid-template-columns:1fr!important;grid-template-areas:"process" "intro"!important;gap:20px!important;padding:20px 0!important;}html body.emkan-ai-page .emkan-ai-process{max-width:100%!important;margin-inline:0!important;}}

/* =========================================================
   FINAL QA PASS v4 — numbered user issues 1–4
   ========================================================= */


/* Keep main viewer complete, not cropped. */

/* Inline video: play button is on the poster, as in the original interaction. */


/* Fullscreen video: a thin seek line is always reserved below the media. */


/* 2) RESPONSIVE — one late, high-specificity contract for all cover/list pages. */
html,body{max-width:100%!important;overflow-x:hidden!important;}
html body .page-shell{width:100%!important;max-width:100%!important;min-width:0!important;}
html body :is(main,.site-header,.nav-frame,.emkan-context-bar,.store-context-bar,.product-toolbar,#contentApp){min-width:0!important;max-width:100%!important;}
html body :is(img,video,iframe,canvas,svg){max-width:100%;}
@media (max-width:900px){
  html body :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid,.projects-grid){
    width:min(100%,720px)!important;margin-inline:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;padding-inline:0!important;
  }
  html body :is(.projects-layout,.civil-project-listing,.store-category-layout),
  html body.content-section-page #contentApp :is(.v49-layout,.v74-sample-index.v49-layout){
    width:100%!important;max-width:720px!important;margin-inline:auto!important;grid-template-columns:150px minmax(0,1fr)!important;gap:18px!important;
  }
  html[dir="rtl"] body :is(.projects-layout,.civil-project-listing,.store-category-layout),
  html[dir="rtl"] body.content-section-page #contentApp :is(.v49-layout,.v74-sample-index.v49-layout){grid-template-columns:minmax(0,1fr) 150px!important;}
  html body :is(.category-panel,.civil-filter-rail,.v49-rail,.store-category-side,.emkan-store-filter-rail){min-width:0!important;width:100%!important;max-width:150px!important;overflow:hidden!important;}
  html body :is(.project-search,.civil-search,.v49-search-group,.product-search){width:100%!important;min-width:0!important;max-width:100%!important;}
  html body :is(.project-search input,.civil-search input,.v49-search-group input,.product-search input){width:100%!important;min-width:0!important;max-width:100%!important;}
}
@media (max-width:720px){
  html body .page-shell{padding-inline:14px!important;}
  html body :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid,.projects-grid){
    width:min(100%,420px)!important;margin-inline:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:12px!important;row-gap:18px!important;
  }
  html body :is(.category-card,.gallery-item,.v49-card,.project-card,.civil-entry,.store-card,.product-card,.research-entry){min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;}
  html body :is(.projects-layout,.civil-project-listing,.store-category-layout),
  html body.content-section-page #contentApp :is(.v49-layout,.v74-sample-index.v49-layout){
    width:min(100%,440px)!important;max-width:440px!important;margin-inline:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"side" "results"!important;gap:16px!important;
  }
  html body :is(.category-panel,.civil-filter-rail,.v49-rail,.store-category-side,.emkan-store-filter-rail){grid-area:side!important;width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;align-items:start!important;}
  html body :is(.v49-results-wrap,.projects-results,.civil-results,.store-category-results){grid-area:results!important;min-width:0!important;width:100%!important;}
  html body :is(.project-search,.civil-search,.v49-search-group,.product-search){grid-column:1/-1!important;}
  html body :is(.category-filter,.civil-filter,.v49-filter,.store-subcategory-filter,.store-sort-filter){min-width:0!important;width:100%!important;max-width:100%!important;}
}
@media (max-width:390px){
  html body .page-shell{padding-inline:10px!important;}
  html body :is(.category-grid,.gallery-items-container,.v49-grid,.v49-work-grid,.civil-entry-grid,.research-grid,.store-category-grid,.store-grid,.people-grid,.projects-grid){width:min(100%,344px)!important;gap:9px 10px!important;}
}

/* 3) EMKAN Assistant — same tree language as About: slim spine + diamonds + hover fill. */
html body.emkan-ai-page .emkan-ai-overview{border-top:0!important;}
html body.emkan-ai-page .emkan-ai-process{position:relative!important;display:flex!important;flex-direction:column!important;gap:0!important;max-width:300px!important;padding-block:0!important;}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-process{padding-right:24px!important;padding-left:0!important;}
html[dir="ltr"] body.emkan-ai-page .emkan-ai-process{padding-left:24px!important;padding-right:0!important;}
html body.emkan-ai-page .emkan-ai-process::before{content:""!important;display:block!important;position:absolute!important;top:22px!important;bottom:22px!important;width:1px!important;background:var(--ai-line)!important;}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-process::before{right:5px!important;left:auto!important;}
html[dir="ltr"] body.emkan-ai-page .emkan-ai-process::before{left:5px!important;right:auto!important;}
html body.emkan-ai-page .emkan-ai-process-step{position:relative!important;display:block!important;width:100%!important;min-height:54px!important;margin:0!important;padding:7px 0!important;border:0!important;background:transparent!important;}
html body.emkan-ai-page .emkan-ai-process-step>i{position:absolute!important;top:50%!important;width:8px!important;height:8px!important;border:1px solid var(--ai-muted)!important;border-radius:0!important;background:var(--bg)!important;transform:translateY(-50%) rotate(45deg)!important;transition:background-color .18s ease,border-color .18s ease!important;z-index:2!important;}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-process-step>i{right:-22px!important;left:auto!important;}
html[dir="ltr"] body.emkan-ai-page .emkan-ai-process-step>i{left:-22px!important;right:auto!important;}
html body.emkan-ai-page .emkan-ai-process-step:hover>i,
html body.emkan-ai-page .emkan-ai-process-step:focus-within>i{background:var(--hover-accent)!important;border-color:var(--hover-accent)!important;}
html body.emkan-ai-page .emkan-ai-process-step strong{font-size:10.5px!important;line-height:1.6!important;font-weight:500!important;}
html body.emkan-ai-page .emkan-ai-process-step small{margin-top:2px!important;font-size:8.5px!important;line-height:1.75!important;}

/* 4) STORE — keep exactly one vertical separator: calculated product-stage divider. */
html body .product-main :is(.product-gallery-panel,.product-gallery,.product-info,.product-main-image){border-left:0!important;border-right:0!important;border-inline-start:0!important;border-inline-end:0!important;background-image:none!important;box-shadow:none!important;}
html body .product-main :is(.product-gallery-panel,.product-gallery,.product-info,.product-main-image)::before,
html body .product-main :is(.product-gallery-panel,.product-gallery,.product-info,.product-main-image)::after{content:none!important;display:none!important;}
@media (min-width:861px){
  html body .product-main .product-stage::before{content:""!important;display:block!important;position:absolute!important;left:var(--emkan-product-divider-x,-9999px)!important;top:var(--emkan-product-divider-y,0)!important;width:1px!important;height:var(--emkan-product-divider-h,0)!important;background:var(--line)!important;pointer-events:none!important;z-index:2!important;}
}
@media (max-width:860px){html body .product-main .product-stage::before{display:none!important;content:none!important;}}


/* Thumbnail rail: one geometry and one spacing rule for every item. */


/* Exactly one subtle separator midway through the same 9px gap for every pair. */


/* Main viewer video: persistent, small play affordance until playback starts. */


/* Expanded video keeps one play/pause toggle plus the thin seek line. */


/* ======================================================================
   EMKAN v7 — focused final corrections (2026-09-25)
   Scope: navigation parity, AI process interaction geometry, search scale.
   ====================================================================== */

/* Assistant link is a normal navigation item. Never give it a special size/weight,
   including while the Assistant page itself is current. */
html body .primary-nav .nav-list > li > .nav-link.emkan-ai-nav-link,
html body .primary-nav .nav-list > li > .nav-link.emkan-ai-nav-link.is-current{
  font-family:var(--font-en)!important;
  font-size:clamp(11px,.91vw,14px)!important;
  font-weight:400!important;
  line-height:1.25!important;
  letter-spacing:normal!important;
  transform:none!important;
}
:is(html[lang="fa"],html[lang="ar"]) body .primary-nav .nav-list > li > .nav-link.emkan-ai-nav-link,
:is(html[lang="fa"],html[lang="ar"]) body .primary-nav .nav-list > li > .nav-link.emkan-ai-nav-link.is-current{
  font-family:var(--font-fa)!important;
  font-size:clamp(12px,.94vw,14.5px)!important;
  font-weight:400!important;
}
html body .primary-nav .nav-list > li > .nav-link.emkan-ai-nav-link:hover,
html body .primary-nav .nav-list > li > .nav-link.emkan-ai-nav-link:focus-visible{transform:translateY(-1px)!important;}
html body .emkan-ai-nav-star{display:none!important;}

/* EMKAN Assistant process: brought inward, keyboard/click selectable, with a clear
   changing explanation in the adjacent copy area. */
html body.emkan-ai-page .emkan-ai-overview{align-items:center!important;}
html body.emkan-ai-page .emkan-ai-process{
  width:min(100%,270px)!important;
  max-width:270px!important;
  justify-self:center!important;
  margin-inline:auto!important;
}
html body.emkan-ai-page .emkan-ai-process-step{
  cursor:pointer!important;
  outline:0!important;
  transition:color .18s ease,opacity .18s ease!important;
}
html body.emkan-ai-page .emkan-ai-process-step:is(:hover,:focus-visible,.is-active)>i{
  background:var(--hover-accent)!important;
  border-color:var(--hover-accent)!important;
}
html body.emkan-ai-page .emkan-ai-process-step.is-active strong{color:var(--hover-accent)!important;}
html body.emkan-ai-page .emkan-ai-process-step:focus-visible strong{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;}
html body.emkan-ai-page #aiProcessDetail{
  min-height:4.2em!important;
  max-width:48ch!important;
  transition:opacity .16s ease!important;
}
html body.emkan-ai-page #aiProcessDetail.is-changing{opacity:.18!important;}
html body.emkan-ai-page .emkan-ai-process-hint{
  display:block!important;
  margin-top:9px!important;
  color:var(--ai-muted)!important;
  font-size:8.2px!important;
  line-height:1.8!important;
}
@media (max-width:760px){
  html body.emkan-ai-page .emkan-ai-process{justify-self:start!important;margin-inline:0!important;width:min(100%,330px)!important;max-width:330px!important;}
}

/* Global search should read like a utility, not a hero page. */
html body.emkan-global-search-page .emkan-search-main{
  padding-top:clamp(34px,4.8vh,52px)!important;
}
html body.emkan-global-search-page .emkan-search-head{
  margin-bottom:17px!important;
  padding-bottom:11px!important;
}
html body.emkan-global-search-page .emkan-search-head #searchTitle{
  font-size:clamp(17px,1.55vw,21px)!important;
  font-weight:500!important;
  line-height:1.5!important;
  letter-spacing:0!important;
}
html body.emkan-global-search-page .emkan-search-meta{
  font-size:8px!important;
  line-height:1.7!important;
  opacity:.78!important;
}
html body.emkan-global-search-page .emkan-search-form{padding-bottom:9px!important;}
html body.emkan-global-search-page .emkan-search-input{font-size:12px!important;}


/* v7 search hard lock: direct selector works even before helper JS adds a body class. */
html body .emkan-search-main .emkan-search-head #searchTitle{
  display:block!important;
  margin:0!important;
  font-size:clamp(17px,1.55vw,21px)!important;
  font-weight:500!important;
  line-height:1.5!important;
  letter-spacing:0!important;
}
html body .emkan-search-main .emkan-search-meta{
  font-size:8px!important;
  line-height:1.7!important;
  opacity:.78!important;
}

/* ======================================================================
   EMKAN v8 — focused corrections requested 2026-09-25
   Scope: R&D articles, R&D single-poster detail pages, EMKAN AI process.
   ====================================================================== */

/* R&D ARTICLES — disclosure is click-only. Hover/focus may tint the title,
   but must never open the accordion. The shared final JS owns the two-step
   interaction: first title click opens; second title click follows the link. */
html body .articles-list .article-row:not(.is-open) .article-detail,
html body .articles-list .article-row:not(.is-open):hover .article-detail,
html body .articles-list .article-row:not(.is-open):focus-within .article-detail{
  grid-template-rows:0fr!important;
  opacity:0!important;
  padding-bottom:0!important;
  pointer-events:none!important;
}
html body .articles-list .article-row.is-open .article-detail{
  grid-template-rows:1fr!important;
  opacity:1!important;
  padding-bottom:18px!important;
  pointer-events:auto!important;
}
html body .articles-list .article-row:not(.is-open) .article-side,
html body .articles-list .article-row:not(.is-open):hover .article-side,
html body .articles-list .article-row:not(.is-open):focus-within .article-side{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:none!important;
}
html body .articles-list .article-row.is-open .article-side{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:none!important;
}

/* Equal, quiet text-only actions: مطالعه / دانلود. */
html body .articles-list .article-actions{
  width:100%!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:6px!important;
}
html body .articles-list .article-action{
  width:100%!important;
  min-width:0!important;
  height:31px!important;
  min-height:31px!important;
  padding:0 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  border:1px solid var(--line)!important;
  background:transparent!important;
  font-size:9px!important;
  font-weight:430!important;
  line-height:1!important;
  text-align:center!important;
}
html body .articles-list .article-action svg{display:none!important;}
html body .articles-list .article-action:hover,
html body .articles-list .article-action:focus-visible{
  color:var(--hover-accent)!important;
  border-color:var(--hover-accent)!important;
  background:transparent!important;
}
@media (max-width:900px){
  html body .articles-list .article-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  html body .articles-list .article-action{width:100%!important;}
}

/* R&D SINGLE DETAILS — phase zero/studies, emerging technologies and books.
   Poster/cover is deliberately more compact and keeps its real aspect ratio. */
html body .research-entry-detail .research-entry-hero{
  grid-template-columns:minmax(0,320px) minmax(0,1fr)!important;
  gap:0!important;
}
html body .research-entry-detail .research-entry-media{
  width:320px!important;
  max-width:320px!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  justify-self:start!important;
  padding-inline-end:30px!important;
}
html body .research-entry-detail .research-entry-media img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:350px!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center top!important;
}
html body .research-entry-detail .research-entry-copy{padding-inline-start:30px!important;}
@media (max-width:900px){
  html body .research-entry-detail .research-entry-hero{grid-template-columns:1fr!important;gap:20px!important;}
  html body .research-entry-detail .research-entry-media{width:min(100%,300px)!important;max-width:300px!important;padding:0!important;justify-self:center!important;}
  html body .research-entry-detail .research-entry-copy{padding:18px 0 0!important;}
}

/* EMKAN AI — only the process tree remains in the overview. The former
   “From need to path” headline, explanatory copy and hint are intentionally
   removed. The tree sits cleanly inside its own compact area, with no rule
   underneath it. */
html body.emkan-ai-page .emkan-ai-intro{display:none!important;}
html body.emkan-ai-page .emkan-ai-overview{
  direction:inherit!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:"process"!important;
  align-items:center!important;
  min-height:0!important;
  gap:0!important;
  padding:24px 0 22px!important;
  border:0!important;
  border-top:0!important;
  border-bottom:0!important;
}
html body.emkan-ai-page .emkan-ai-process{
  grid-area:process!important;
  width:min(100%,310px)!important;
  max-width:310px!important;
  margin:0!important;
  padding-block:0!important;
  border:0!important;
  border-top:0!important;
  border-bottom:0!important;
  align-self:center!important;
}
html[dir="rtl"] body.emkan-ai-page .emkan-ai-process{justify-self:end!important;margin-inline:0 16px!important;}
html[dir="ltr"] body.emkan-ai-page .emkan-ai-process{justify-self:start!important;margin-inline:16px 0!important;}
html body.emkan-ai-page .emkan-ai-process-hint,
html body.emkan-ai-page #aiProcessDetail,
html body.emkan-ai-page #aiPageTitle{display:none!important;}
@media (max-width:760px){
  html body.emkan-ai-page .emkan-ai-overview{min-height:0!important;padding:18px 0!important;}
  html[dir="rtl"] body.emkan-ai-page .emkan-ai-process,
  html[dir="ltr"] body.emkan-ai-page .emkan-ai-process{justify-self:stretch!important;margin-inline:0!important;width:min(100%,330px)!important;max-width:330px!important;}
}


/* ======================================================================
   EMKAN v9 — scoped corrections requested 2026-09-25
   Scope only: menu typography, Civil disclosure marks, Assistant overview,
   Assistant search copy, R&D article interaction/actions, R&D detail header.
   ====================================================================== */

/* 2) Main menu and header navigation: Assistant is visually identical to
      its siblings. Persian is slightly reduced; Persian/Arabic converge. */
html[lang="fa"] body .primary-menu .menu-item,
html[lang="fa"] body .primary-menu .menu-item.emkan-ai-nav-link{
  font-family:var(--font-fa,inherit)!important;
  font-size:clamp(13px,.90vw,15.5px)!important;
  font-weight:400!important;
  letter-spacing:0!important;
  text-indent:0!important;
}
html[lang="ar"] body .primary-menu .menu-item,
html[lang="ar"] body .primary-menu .menu-item.emkan-ai-nav-link{
  font-family:var(--font-fa,inherit)!important;
  font-size:clamp(13px,.90vw,15.5px)!important;
  font-weight:400!important;
  letter-spacing:0!important;
  text-indent:0!important;
}
html[lang="en"] body .primary-menu .menu-item.emkan-ai-nav-link{
  font-family:var(--font-en,inherit)!important;
  font-size:clamp(12px,.88vw,15px)!important;
  font-weight:400!important;
  letter-spacing:clamp(.15em,.22vw,.23em)!important;
  text-indent:clamp(.15em,.22vw,.23em)!important;
}
html[lang="fa"] body .primary-nav .nav-list>li>.nav-link,
html[lang="fa"] body .primary-nav .nav-list>li>.nav-link.emkan-ai-nav-link{
  font-family:var(--font-fa,inherit)!important;
  font-size:clamp(11.8px,.90vw,14px)!important;
  font-weight:400!important;
}
html[lang="ar"] body .primary-nav .nav-list>li>.nav-link,
html[lang="ar"] body .primary-nav .nav-list>li>.nav-link.emkan-ai-nav-link{
  font-family:var(--font-fa,inherit)!important;
  font-size:clamp(11.8px,.90vw,14px)!important;
  font-weight:400!important;
}
html body .primary-nav .nav-list>li>.nav-link.emkan-ai-nav-link.is-current,
html body .primary-menu .menu-item.emkan-ai-nav-link{
  font-weight:400!important;
}

/* 3) Civil Industrialization / Passive Defense disclosure icon:
      keep the exact mark visible in both closed and open states. */
html body .detail-nav details.detail-subcategory-filter>summary>.detail-subcategory-chevron,
html body .detail-nav details.detail-subcategory-filter[open]>summary>.detail-subcategory-chevron{
  position:relative!important;
  display:inline-block!important;
  visibility:visible!important;
  opacity:.88!important;
  width:12px!important;height:10px!important;min-width:12px!important;flex:0 0 12px!important;
  border:0!important;background:transparent!important;color:var(--fg)!important;
  transform:none!important;filter:none!important;
}
html body .detail-nav details.detail-subcategory-filter>summary>.detail-subcategory-chevron::before,
html body .detail-nav details.detail-subcategory-filter>summary>.detail-subcategory-chevron::after,
html body .detail-nav details.detail-subcategory-filter[open]>summary>.detail-subcategory-chevron::before,
html body .detail-nav details.detail-subcategory-filter[open]>summary>.detail-subcategory-chevron::after{
  content:""!important;display:block!important;visibility:visible!important;opacity:1!important;
  position:absolute!important;inset-inline-end:0!important;height:1px!important;
  background:currentColor!important;border:0!important;transform:none!important;
}
html body .detail-nav details.detail-subcategory-filter>summary>.detail-subcategory-chevron::before{top:2px!important;width:6px!important;}
html body .detail-nav details.detail-subcategory-filter>summary>.detail-subcategory-chevron::after{top:7px!important;width:11px!important;}
html body .detail-nav details.detail-subcategory-filter[open]>summary>.detail-subcategory-chevron::before{top:2px!important;width:11px!important;}
html body .detail-nav details.detail-subcategory-filter[open]>summary>.detail-subcategory-chevron::after{top:7px!important;width:6px!important;}

/* 4) Assistant overview: two side-by-side functional areas only.
      Process/tree stays on the left; the selected-step explanation sits in
      the adjacent right area. No headline and no instructional hint. */
html body.emkan-ai-page .emkan-ai-overview{
  direction:ltr!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(245px,310px)!important;
  grid-template-areas:"process detail"!important;
  align-items:stretch!important;
  gap:56px!important;
  min-height:0!important;
  padding:26px 0 24px!important;
  border:0!important;
}
html body.emkan-ai-page .emkan-ai-process{
  grid-area:process!important;
  direction:rtl!important;
  width:min(100%,480px)!important;
  max-width:480px!important;
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
  padding:0 8px 0 0!important;
  border:0!important;
}
html[lang="en"] body.emkan-ai-page .emkan-ai-process{direction:ltr!important;padding:0 0 0 8px!important;}
html body.emkan-ai-page .emkan-ai-process-detail{
  grid-area:detail!important;
  direction:rtl!important;
  width:100%!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:0!important;
  border:0!important;
  color:var(--ai-muted,var(--caption-sub))!important;
}
html[lang="en"] body.emkan-ai-page .emkan-ai-process-detail{direction:ltr!important;text-align:left!important;}
html body.emkan-ai-page #aiProcessDetail{
  display:block!important;
  width:100%!important;
  max-width:34ch!important;
  min-height:0!important;
  margin:0!important;
  color:inherit!important;
  font-size:10px!important;
  line-height:2!important;
  font-weight:400!important;
  transition:opacity .16s ease!important;
}
html body.emkan-ai-page #aiProcessDetail.is-changing{opacity:.18!important;}
html body.emkan-ai-page #aiPageTitle,
html body.emkan-ai-page .emkan-ai-process-hint{display:none!important;}
@media (max-width:760px){
  html body.emkan-ai-page .emkan-ai-overview{
    grid-template-columns:1fr!important;grid-template-areas:"process" "detail"!important;
    gap:18px!important;min-height:0!important;padding:18px 0!important;
  }
  html body.emkan-ai-page .emkan-ai-process{justify-self:stretch!important;width:min(100%,420px)!important;max-width:420px!important;padding:0!important;}
  html body.emkan-ai-page .emkan-ai-process-detail{min-height:0!important;padding:0!important;}
  html body.emkan-ai-page #aiProcessDetail{max-width:58ch!important;}
}

/* 5) Assistant search pane: remove the descriptive sentence; keep the
      remaining heading intentionally quiet rather than hero-sized. */
html body.emkan-ai-page .emkan-ai-search-copy>p{display:none!important;}
html body.emkan-ai-page .emkan-ai-search-copy h2{
  margin:0 0 16px!important;
  font-size:clamp(14px,1.25vw,17px)!important;
  line-height:1.65!important;
  font-weight:500!important;
  letter-spacing:0!important;
}

/* 6) R&D articles — hard final contract.
      No hover-open. First title click opens one row; second click is handled
      by main-v9.js and navigates. Actions are equal, compact buttons. */
html body .articles-list .article-row:not(.is-open) .article-detail,
html body .articles-list .article-row:not(.is-open):hover .article-detail,
html body .articles-list .article-row:not(.is-open):focus-within .article-detail{
  grid-template-rows:0fr!important;opacity:0!important;padding-bottom:0!important;overflow:hidden!important;pointer-events:none!important;
}
html body .articles-list .article-row:not(.is-open) .article-side,
html body .articles-list .article-row:not(.is-open):hover .article-side,
html body .articles-list .article-row:not(.is-open):focus-within .article-side{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:none!important;
}
html body .articles-list .article-row.is-open .article-detail{
  grid-template-rows:1fr!important;opacity:1!important;padding-bottom:18px!important;overflow:visible!important;pointer-events:auto!important;
}
html body .articles-list .article-row.is-open .article-side{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;
}
html body .articles-list .article-actions,
html body .articles-list .article-row.is-open .article-actions{
  width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:6px!important;align-items:stretch!important;
}
html body .articles-list .article-action,
html body .articles-list .article-row.is-open .article-action{
  width:100%!important;min-width:0!important;max-width:none!important;height:30px!important;min-height:30px!important;
  margin:0!important;padding:0 8px!important;border:1px solid var(--line)!important;background:transparent!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;
  font-size:8.5px!important;font-weight:400!important;line-height:1!important;text-align:center!important;text-decoration:none!important;
}
html body .articles-list .article-action svg{display:none!important;}
html body .articles-list .article-action:is(:hover,:focus-visible){color:var(--hover-accent)!important;border-color:var(--hover-accent)!important;background:transparent!important;}
@media (max-width:900px){
  html body .articles-list .article-actions,
  html body .articles-list .article-row.is-open .article-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
}

/* 7) R&D single details: remove the tiny clickable parent/category label.
      The divider now exactly follows the media height. */
html body .research-entry-detail .research-entry-parent{display:none!important;}
html body .research-entry-detail .research-entry-media::after{
  top:0!important;bottom:0!important;height:auto!important;min-height:0!important;
}

/* v27 AI authority: the spine is now a real DOM element, never a legacy pseudo-element. */
html body.emkan-ai-page.emkan-ai-page .emkan-ai-process.emkan-ai-process::before{content:none!important;display:none!important}
