/* Etkin Madde V6.4 – focused drug-detail refinements.
   Loaded only for em_drug singles, after legacy theme rules. */

.em64-page .em60-board {
  padding: 13px 16px 19px;
  border-radius: 20px;
}
.em64-page .em60-crumbs {
  margin-bottom: 10px;
  font-size: 11.5px;
  line-height: 1.5;
}

/* Balanced title strip – accessible, but no oversized text. */
.em64-page .em62-hero-card {
  grid-template-columns: minmax(0,1fr) 160px;
  padding: 12px 15px;
  margin-bottom: 12px;
  gap: 14px;
  border-radius: 17px;
  min-height: 94px;
}
.em64-page .em60-eyebrow {
  font-size: 10px;
  padding: 5px 10px;
  margin: 0 0 7px;
}
.em64-page .em60-eyebrow svg {width: 12px;height: 12px}
.em64-page .em62-hero-main h1 {
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.18;
  letter-spacing: -.018em;
  margin: 0;
  max-width: none;
}
.em64-page .em62-price-card {border-radius: 13px;padding: 9px 10px;}
.em64-page .em62-price-card strong {font-size: clamp(20px, 1.85vw, 26px);}

/* Slightly more space for the medicine information; enough room remains for PDF. */
.em64-page .em63-grid {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 13px;
}
.em64-page .em62-ingredient-band {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 13px;
  gap: 10px;
}
.em64-page .em62-ingredient-band__text span {
  margin-bottom: 3px;
  font-size: 10px;
}
.em64-page .em62-ingredient-band__text strong {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.3;
}
.em64-page .em60-copy {
  min-height: 36px;
  padding: 0 12px;
  font-size: 11.5px;
  border-radius: 10px;
}

/* Compact facts that remain legible on desktop and phone. */
.em64-page .em62-drug-panel {
  padding: 12px;
  border-radius: 15px;
}
.em64-page .em61-panel-head h2 {font-size: 16px;margin: 0 0 3px;}
.em64-page .em61-panel-head p {font-size: 11.5px;line-height: 1.5;}
.em64-page .em62-facts-grid {
  gap: 8px;
  margin-top: 9px;
}
.em64-page .em61-fact-card {
  min-height: 67px;
  padding: 9px 10px;
  gap: 4px;
  border-radius: 11px;
}
.em64-page .em61-fact-card small {
  font-size: 10px;
  line-height: 1.35;
}
.em64-page .em61-fact-card strong {
  font-size: 12.5px;
  line-height: 1.4;
}
.em64-page .em61-pill {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 11.5px;
  border-radius: 9px;
}
.em64-page .em61-panel-actions {gap: 7px;margin-top: 10px;}
.em64-page .em60-action-link {
  min-height: 35px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.35;
}
.em64-page .em60-action-link svg {width: 15px;height: 15px;flex: 0 0 15px;}
.em64-page .em60-disclaimer {font-size: 10.5px;margin: 10px 0 0;line-height: 1.5;}
.em64-page .em60-note {padding: 8px 10px;margin-bottom: 9px;font-size: 11px;}

/* One clear PDF viewer card, with natural internal scrolling. */
.em64-page .em62-pdf-panel {padding: 8px;border-radius: 15px;}
.em64-page .em62-pdf-panel .em-pdf-viewer {border: 0;border-radius: 11px;box-shadow: none;}
.em64-page .em62-pdf-panel .em-pdf-viewer__tabs {gap: 7px;padding: 0 0 7px;}
.em64-page .em62-pdf-panel .em-pdf-viewer__tab {
  min-height: 41px;
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 12px;
}
.em64-page .em62-pdf-panel .em-pdf-viewer__tab-abbr {padding: 3px 5px;font-size: 10px;}
.em64-page .em62-pdf-panel .em-pdf-viewer__content {border-radius: 10px;}
.em64-page .em63-right .em62-pdf-panel .em-pdf-viewer__frame {
  width: 100%;
  display: block;
  height: clamp(445px, 55vh, 550px);
  min-height: 445px;
  border: 0;
}

/* Three lists stay at the bottom, but no longer overwhelm the page. */
.em64-page .em63-related-grid {gap: 12px;margin-top: 13px;}
.em64-page .em63-bottom-card {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  min-width: 0;
}
.em64-page .em61-sidebar-head {gap: 8px;margin-bottom: 7px;align-items: flex-start;}
.em64-page .em61-sidebar-head h2 {
  gap: 5px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
.em64-page .em61-sidebar-head h2 svg {width: 14px;height: 14px;flex: 0 0 14px;}
.em64-page .em61-sidebar-head a {font-size: 10.5px;}
.em64-page .em63-bottom-card .em61-related-list li {
  gap: 7px;
  padding: 7px 0;
  align-items: center;
}
.em64-page .em61-related-list a {
  font-size: 11.75px;
  line-height: 1.38;
  font-weight: 650;
}
.em64-page .em61-related-list span {
  padding: 4px 7px;
  min-width: 0;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 760;
}
.em64-page .em63-bottom-card small {font-size: 10.5px;line-height: 1.5;margin-top: 9px;}
.em64-page .em64-more {border-top: 1px solid #edf1f7;margin-top: 5px;}
.em64-page .em64-more summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0 2px;
  font-size: 11px;
  font-weight: 750;
  color: #1b5ca8;
}
.em64-page .em64-more summary::-webkit-details-marker {display: none;}
.em64-page .em64-more summary::after {content: '⌄';font-size: 16px;line-height: 1;}
.em64-page .em64-more[open] summary::after {content: '⌃';}
.em64-page .em64-more summary:focus-visible {outline: 2px solid #1b5ca8;outline-offset: 3px;}

@media (max-width: 1200px) {
  .em64-page .em63-grid {grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);}
  .em64-page .em63-related-grid {grid-template-columns: repeat(3,minmax(0,1fr));}
}
@media (max-width: 940px) {
  .em64-page .em63-grid {grid-template-columns: 1fr;}
  .em64-page .em63-related-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
  .em64-page .em63-right .em62-pdf-panel .em-pdf-viewer__frame {
    height: min(65vh, 535px);min-height: 440px;
  }
}
@media (max-width: 630px) {
  .em64-page .em60-board {padding: 12px 10px 16px;}
  .em64-page .em62-hero-card {grid-template-columns: 1fr;padding: 13px;gap: 9px;}
  .em64-page .em62-hero-main h1 {font-size: clamp(19px,5.3vw,23px);}
  .em64-page .em62-price-card {padding: 10px 12px;justify-content: flex-start;}
  .em64-page .em62-price-card strong {font-size: 21px;}
  .em64-page .em62-ingredient-band {align-items: stretch;}
  .em64-page .em60-copy {width: 100%;}
  .em64-page .em62-facts-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
  .em64-page .em61-fact-card {min-height: 70px;}
  .em64-page .em63-related-grid {grid-template-columns: 1fr;}
  .em64-page .em63-bottom-card .em61-related-list li {grid-template-columns: minmax(0,1fr) auto;}
  .em64-page .em63-bottom-card .em61-related-list span {justify-self: end;}
  .em64-page .em63-right .em62-pdf-panel .em-pdf-viewer__frame {
    height: min(65vh, 510px);min-height: 400px;
  }
}
@media (max-width: 370px) {
  .em64-page .em62-facts-grid {grid-template-columns: 1fr;}
  .em64-page .em63-bottom-card .em61-related-list li {grid-template-columns: 1fr;}
  .em64-page .em63-bottom-card .em61-related-list span {justify-self: start;}
}

/* Prevent inherited wide-screen header search rules from causing mobile horizontal scroll. */
@media (max-width: 630px) {
  body.single-em_drug .site-header .header-inner.is-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) 43px;
    column-gap: 10px;
    row-gap: 8px;
    width: calc(100% - 28px);
    margin-inline: auto;
    padding: 9px 0;
  }
  body.single-em_drug .site-header .brand {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    max-width: 180px;
  }
  body.single-em_drug .site-header .header-search-wrap {
    grid-row: 2;
    grid-column: 1/-1;
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  body.single-em_drug .site-header .header-search-wrap .search-form {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    padding: 3px 3px 3px 10px;
  }
  body.single-em_drug .site-header .header-search-wrap .search-form input[type="search"] {
    box-sizing: border-box;
    display: block;
    width: auto;
    min-width: 0;
    flex: 1 1 0%;
    padding: 0 3px;
    font-size: 12px;
  }
  body.single-em_drug .site-header .header-search-wrap .search-form > button {
    flex: 0 0 62px;
    min-width: 0;
    width: 62px;
    height: 40px;
    padding: 0 8px;
  }
  body.single-em_drug .site-header .menu-button {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    justify-self: end;
    width: 42px;
    height: 42px;
  }
  body.single-em_drug .site-header .header-nav {
    display: none;
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: white;
    border: 1px solid #e4eaf2;
    border-radius: 0 0 12px 12px;
    padding: 8px 16px;
    overflow: visible;
  }
  body.single-em_drug .site-header .header-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  body.single-em_drug .site-header .header-nav a {
    width: 100%;
    padding: 10px 0;
  }
}
