/* Etkin Madde V6.8 — Only drug details, restores the framed V6.4/V6.5 look. */
/* Header reading order is brand / search / navigation on every inner page. */
@media(min-width:1025px){
 body.single-em_drug .site-header .header-inner.is-inner{
    display:grid!important;
    grid-template-columns:210px minmax(270px,1fr) auto!important;
    grid-template-areas:'brand search nav'!important;
    gap:26px!important;
    align-items:center!important;
 }
 body.single-em_drug .site-header .brand{grid-area:brand!important;justify-self:start!important}
 body.single-em_drug .site-header .header-search-wrap{
    grid-area:search!important;grid-column:auto!important;
    justify-self:center!important;width:min(100%,565px)!important;min-width:0!important;
 }
 body.single-em_drug .site-header .header-nav{
    grid-area:nav!important;grid-column:auto!important;display:flex!important;
    justify-self:end!important;gap:24px!important;white-space:nowrap;
 }
}
body.single-em_drug .site-header .header-search-wrap .search-form{
 background:#fff;border:1px solid #dce5f1;border-radius:15px;
 box-shadow:0 7px 18px rgba(20,51,89,.04);min-width:0;
}

/* Breadcrumbs are ABOVE the frame, in the gap between navigation and title. */
body.single-em_drug .em65-page{background:#f3f6fa}
body.single-em_drug .em65-page .em62-shell{padding-top:38px;width:min(1190px,calc(100% - 32px))}
body.single-em_drug .em65-page .em65-crumbs{
 display:flex!important;align-items:center;gap:8px;flex-wrap:wrap;
 margin:0 0 16px!important;font-size:12px;line-height:1.45;
 color:#496381;padding:0;
}
body.single-em_drug .em65-page .em65-crumbs a{color:#1a4b83;font-weight:730}

/* Restore the softly bordered main frame removed in V6.7. */
body.single-em_drug .em65-page .em65-board{
 display:block;background:#fff!important;border:1px solid #dce5ef!important;
 border-radius:21px!important;padding:16px 16px 20px!important;
 box-shadow:0 12px 33px rgba(14,41,79,.055)!important;
 margin:0!important;min-width:0;
}

/* One balanced, centered medicine title, without the extra eyebrow label. */
body.single-em_drug .em65-page .em62-hero-card{
 display:flex!important;position:relative;align-items:center;justify-content:center;
 min-height:138px!important;margin:0 0 16px!important;
 padding:22px 196px!important;border-radius:18px!important;
 border:1px solid rgba(255,255,255,.12);
 background:linear-gradient(110deg,#194681 0%,#145776 100%);
 box-shadow:none!important;
}
body.single-em_drug .em65-page .em62-hero-main{
 flex:1 1 auto;min-width:0;text-align:center;align-self:center;
}
body.single-em_drug .em65-page .em62-hero-main h1{
 font-size:clamp(19px,2vw,26px)!important;line-height:1.25!important;
 letter-spacing:-.02em!important;font-weight:800!important;
 color:#fff!important;max-width:none!important;margin:0!important;
 text-wrap:balance;overflow-wrap:anywhere;
}
/* Compact price chip: price only, tasteful accent instead of a huge slab. */
body.single-em_drug .em65-page .em62-price-card{
 position:absolute!important;top:50%;right:17px;transform:translateY(-50%);
 width:164px;min-height:79px!important;height:auto;
 padding:13px 13px!important;display:flex;align-items:center;justify-content:center;
 border-radius:16px!important;
 background:linear-gradient(135deg,#fc3a56 0%,#e71337 76%,#ce102e 100%)!important;
 border:1px solid rgba(255,255,255,.22)!important;
 box-shadow:0 9px 20px rgba(130,14,43,.17), inset 0 1px 0 rgba(255,255,255,.3)!important;
}
body.single-em_drug .em65-page .em62-price-card strong{
 font-size:clamp(20px,1.9vw,26px)!important;line-height:1.15;
 font-weight:830;color:#fff;letter-spacing:-.018em;
 text-align:center;font-variant-numeric:tabular-nums;
}

/* Single outer card + two equally high columns with same 14px rhythm. */
body.single-em_drug .em65-page .em63-grid{
 display:grid!important;
 grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)!important;
 align-items:stretch!important;gap:14px!important;
}
body.single-em_drug .em65-page .em63-left{
 display:flex!important;flex-direction:column;align-items:stretch;
 min-width:0;gap:0;height:100%;
}
body.single-em_drug .em65-page .em63-right{min-width:0;display:flex;align-items:stretch}
body.single-em_drug .em65-page .em63-left .em62-drug-panel{flex:1 1 auto}
body.single-em_drug .em65-page .em63-right .em62-pdf-panel{flex:1 1 auto;height:100%;min-width:0}
body.single-em_drug .em65-page .em62-ingredient-band{
 background:linear-gradient(180deg,#f0f8fa 0%,#e9f5f7 100%)!important;
 border:1px solid #d4e7ec!important;
 box-shadow:none!important;border-radius:13px!important;margin:0 0 10px!important;
}
body.single-em_drug .em65-page .em62-drug-panel,
body.single-em_drug .em65-page .em62-pdf-panel{
 border:1px solid #dce5ef!important;background:#fff!important;
 border-radius:16px!important;box-shadow:none!important;
}
body.single-em_drug .em65-page .em62-drug-panel{padding:14px!important}
body.single-em_drug .em65-page .em62-pdf-panel{padding:10px!important}
body.single-em_drug .em65-page .em62-facts-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;
}
body.single-em_drug .em65-page .em61-fact-card{
 min-height:68px;background:#fbfdff!important;border:1px solid #e1e8f1!important;
 border-radius:12px!important;padding:9px 11px!important;
}
body.single-em_drug .em65-page .em61-fact-card strong{overflow-wrap:anywhere}
body.single-em_drug .em65-page .em63-right .em62-pdf-panel .em-pdf-viewer__frame{
 display:block;width:100%;height:clamp(445px,55vh,550px)!important;
 min-height:445px!important;border:0;
}
body.single-em_drug .em65-page .em62-pdf-panel .em-pdf-viewer__content{
 overflow:hidden;border-radius:11px!important;
}

/* Three uniform footer cards (related drugs) with equal columns, no overview panel. */
body.single-em_drug .em65-page .em63-related-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 align-items:stretch!important;gap:14px!important;margin-top:14px!important;
}
body.single-em_drug .em65-page .em63-bottom-card{
 min-width:0;height:100%;margin:0!important;
 padding:13px!important;border:1px solid #dce5ef!important;
 border-radius:15px!important;background:#fff!important;box-shadow:none!important;
}
body.single-em_drug .em65-page .em63-bottom-card .em61-related-list li{
 grid-template-columns:minmax(0,1fr) auto;gap:8px;
}
body.single-em_drug .em65-page .em63-bottom-card .em61-related-list span{justify-self:end}

@media(max-width:1024px){
 body.single-em_drug .site-header .header-inner.is-inner{
   display:grid!important;grid-template-columns:1fr auto!important;
   grid-template-areas:'brand menu' 'search search'!important;
   gap:10px 12px!important;
 }
 body.single-em_drug .site-header .brand{grid-area:brand!important}
 body.single-em_drug .site-header .header-search-wrap{
   grid-area:search!important;grid-column:auto!important;width:100%!important;
   max-width:none!important;min-width:0!important;
 }
 body.single-em_drug .site-header .menu-button{grid-area:menu!important;justify-self:end!important;display:flex!important}
 body.single-em_drug .site-header .header-nav{grid-column:auto!important;grid-area:nav!important;display:none!important}
 body.single-em_drug .site-header .header-nav.is-open{
    display:flex!important;grid-area:nav!important;grid-column:1/-1!important;
    flex-direction:column;align-items:flex-start;gap:5px;
 }
 body.single-em_drug .em65-page .em63-grid{grid-template-columns:1fr!important}
 body.single-em_drug .em65-page .em63-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:650px){
 body.single-em_drug .em65-page .em62-shell{padding-top:18px;width:calc(100% - 18px)}
 body.single-em_drug .em65-page .em65-crumbs{margin-bottom:12px!important;font-size:11px}
 body.single-em_drug .em65-page .em65-board{padding:11px!important;border-radius:17px!important}
 body.single-em_drug .em65-page .em62-hero-card{
    display:flex!important;flex-direction:column;gap:12px;
    padding:17px 14px!important;min-height:0!important;
 }
 body.single-em_drug .em65-page .em62-hero-main h1{font-size:clamp(18px,5vw,23px)!important}
 body.single-em_drug .em65-page .em62-price-card{
   position:static!important;transform:none!important;min-height:0!important;
   width:auto;min-width:135px;padding:10px 18px!important;
 }
 body.single-em_drug .em65-page .em62-price-card strong{font-size:20px!important}
 body.single-em_drug .em65-page .em63-related-grid{grid-template-columns:1fr!important;gap:10px!important}
 body.single-em_drug .em65-page .em62-facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.single-em_drug .em65-page .em61-fact-card{min-width:0}
 body.single-em_drug .em65-page .em63-right .em62-pdf-panel .em-pdf-viewer__frame{
    height:min(65vh,510px)!important;min-height:400px!important;
 }
}
@media(max-width:375px){body.single-em_drug .em65-page .em62-facts-grid{grid-template-columns:1fr!important}}
