/* V6.7 — UI refinement pack: stronger archive cards, aligned drug header, richer etken madde cards */
.site-header .header-inner.is-inner{grid-template-columns:auto minmax(420px,560px) auto;align-items:center;gap:22px}
.site-header .header-search-wrap{grid-column:2;max-width:560px;width:100%}
.site-header .header-nav{grid-column:3;justify-self:end}
.site-header .header-search-wrap .search-form{background:#fff;border:1px solid #d6e0eb;box-shadow:0 8px 18px rgba(21,33,55,.05)}
.site-header .header-search-wrap .search-form>button{min-width:92px}

/* Drug archives, search and company pages */
body.post-type-archive-em_drug .card-grid,
body.search .card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
body.post-type-archive-em_drug .inner-hero,
body.search .inner-hero{padding:34px 0 20px}
body.post-type-archive-em_drug .results-info,
body.search .results-info{margin:12px 0 16px;color:#5f7188;font-size:13px;font-weight:700}
.medicine-card{border:1px solid #d9e4ef;border-radius:20px;box-shadow:0 8px 24px rgba(16,33,54,.045);transition:transform .18s,border-color .18s,box-shadow .18s;background:#fff;overflow:hidden}
.medicine-card:hover{transform:translateY(-3px);border-color:#f1c3cb;box-shadow:0 14px 28px rgba(16,33,54,.07)}
.medicine-card__link{padding:18px 18px 14px;min-height:332px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.medicine-card__title{font-size:16px;line-height:1.42;min-height:68px;margin:0 0 12px;font-weight:810;letter-spacing:-.018em;color:#1c2a40;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.medicine-card__arrow{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:#fff1f4;color:#dd1734;flex:0 0 22px;font-size:18px;line-height:1}
.medicine-card__summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:62px;margin-bottom:12px}
.medicine-card__price-area{display:flex;flex-direction:column;gap:4px}
.medicine-card__price-caption{display:block;color:#78879b;font-size:11px;font-weight:760}
.medicine-card__price{display:flex;align-items:flex-start;gap:5px;font-size:18px;font-weight:850;color:#e11634;line-height:1.1;letter-spacing:-.02em}
.medicine-card__price .medicine-card__currency{font-size:15px;line-height:1.2;margin-top:1px}
.medicine-card__price-unavailable{display:inline-flex;align-items:center;min-height:36px;color:#63758d;font-weight:770;font-size:13px}
.medicine-card__sgk{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:999px;font-size:11px;font-weight:820;white-space:nowrap;border:1px solid #dce7e3;background:#eff7f2;color:#25735b}
.medicine-card__sgk.is-neutral{background:#eef3f4;color:#586f7f;border-color:#dbe3e7}
.medicine-card__facts{margin:0;font-size:12px;border-top:1px solid #e9eef4}
.medicine-card__facts>div{display:grid;grid-template-columns:76px minmax(0,1fr);gap:9px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #edf1f5}
.medicine-card__facts>div:last-child{border-bottom:0}
.medicine-card__facts dt{color:#7c8ba1;font-weight:760}
.medicine-card__facts dd{margin:0;color:#33445f;overflow-wrap:anywhere;line-height:1.45}
.medicine-card__foot{margin-top:auto;border-top:1px solid #e9eef4;padding-top:11px;display:flex;justify-content:space-between;gap:10px;align-items:center;color:#73849a;font-size:11px}
.medicine-card__foot strong{display:inline-flex;align-items:center;gap:5px;color:#dd1532;font-size:12px}
.medicine-card__guide-link{margin:0 14px 14px;padding:10px 12px;border-radius:12px;background:linear-gradient(180deg,#edf5ff 0%,#e7f0fd 100%);border:1px solid #d5e3f6;font-size:11.5px;font-weight:800;color:#17498d!important}
.medicine-card__guide-link:hover{background:#fff1f4;border-color:#ffd3d9;color:#d40f2c!important}
.company-page .medicine-grid--company{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.company-page .company-hero{padding:24px 26px 22px}
.company-page .company-meta .drug-tag{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#eef3fa;color:#284666;font-size:12px;font-weight:760}

/* Drug detail page: mimic etken madde spacing more closely */
.em65-page .em65-board{background:transparent;border:0;box-shadow:none;padding:0;border-radius:0}
.em65-page .em62-hero-card{margin-bottom:14px;border-radius:20px;padding:18px 22px;min-height:168px}
.em65-page .em62-price-card{border-radius:18px;min-height:102px}
.em65-page .em62-ingredient-band,
.em65-page .em62-drug-panel,
.em65-page .em62-pdf-panel,
.em65-page .em66-overview,
.em65-page .em63-bottom-card{background:#fff;border:1px solid #dce6f0;box-shadow:0 6px 18px rgba(17,29,51,.035)}
.em65-page .em62-drug-panel,
.em65-page .em62-pdf-panel,
.em65-page .em66-overview,
.em65-page .em63-bottom-card{border-radius:18px}
.em65-page .em62-ingredient-band{border-radius:16px;background:linear-gradient(180deg,#f1f8fb 0%,#ebf4f7 100%)}
.em65-page .em62-facts-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.em65-page .em61-fact-card{border-radius:14px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.em65-page .em63-related-grid{margin-top:14px}
.em65-page .em61-related-list li{grid-template-columns:minmax(0,1fr) auto}
.em65-page .em61-related-list span{justify-self:end}

/* Etken madde single and directory */
.em50-v7 .em50-aside-related .em50-all-ingredients{padding-top:2px}
.em50-v7 .em50-aside-related .em50-all-ingredients li:first-child{border-top:0}
.em50-v7 .em50-all-ingredients strong.is-current{background:linear-gradient(180deg,#fff1f4 0%,#ffeaf0 100%);border-left:4px solid #db1b39;border-radius:8px;color:#b71532;padding:10px 10px 10px 12px;box-shadow:inset 0 0 0 1px #f8d4dd}
.em50-v7 .em50-all-ingredients a{padding:9px 8px;border-radius:8px}
.em50-v7 .em50-all-ingredients a:hover,.em50-v7 .em50-all-ingredients a:focus{background:#edf4fe;color:#ad1932}
.em50-v7 .em50-bottom-resources{margin-top:18px}
.em50-directory header{border:1px solid #dbe5f0;background:linear-gradient(180deg,#f8fbff 0%,#f3f7fc 100%);border-radius:18px;padding:24px 24px 22px;box-shadow:0 7px 20px rgba(16,33,54,.04)}
.em50-directory .em50-kicker{display:block;margin:0 0 8px;color:#c41938;font-size:11px;letter-spacing:.11em;font-weight:840}
.em50-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.em50-list a{position:relative;gap:9px;padding:16px 16px 14px;border:1px solid #d9e4ee;border-radius:18px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);box-shadow:0 7px 18px rgba(16,33,54,.04);min-height:178px}
.em50-list a:before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(180deg,#e11a37 0%,#f57c8e 100%);border-radius:18px 0 0 18px}
.em50-list a:hover{border-color:#efc1ca;background:linear-gradient(180deg,#fff 0%,#fff7f9 100%)}
.em50-list a strong{font-size:16px;line-height:1.35;color:#1c446f}
.em50-list a small{font-size:11.5px;color:#cf1635;font-weight:770;display:inline-flex;align-items:center;align-self:flex-start;padding:6px 10px;border-radius:999px;background:#fff1f4}
.em50-list a em{display:block;font-style:normal;font-size:12.5px;line-height:1.65;color:#5b728b;max-height:62px;overflow:hidden}
.em50-list a span{margin-top:auto;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:820;color:#d51a39}
.em50-list a span:after{content:'→';font-size:14px;line-height:1}

@media(max-width:1180px){
  body.post-type-archive-em_drug .card-grid,body.search .card-grid,.company-page .medicine-grid--company{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:980px){
  .em50-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.post-type-archive-em_drug .card-grid,body.search .card-grid,.company-page .medicine-grid--company{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px){
  .site-header .header-inner.is-inner{grid-template-columns:1fr;gap:12px}
  .site-header .header-search-wrap,.site-header .header-nav,.site-header .brand{grid-column:auto;justify-self:stretch}
  .site-header .header-nav{justify-content:flex-start;padding-right:48px;overflow:auto}
}
@media(max-width:650px){
  body.post-type-archive-em_drug .card-grid,body.search .card-grid,.company-page .medicine-grid--company,.em50-list{grid-template-columns:1fr}
  .medicine-card__link{min-height:0;padding:15px 14px 12px}
  .medicine-card__title{font-size:14px;min-height:0}
  .medicine-card__summary{min-height:0;gap:8px;flex-wrap:wrap}
  .medicine-card__facts>div{grid-template-columns:1fr;gap:3px}
  .em65-page .em62-hero-card{padding:16px 16px 14px;min-height:0}
  .em65-page .em62-facts-grid{grid-template-columns:1fr}
}
