/* Shared instruction answers and first FAQ card; legacy Nifedipine aliases remain compatible. */
.nif-instruction-answer.em-quick-answer,
.em-instruction-answer.em-quick-answer { padding-left: 0; padding-right: 0; }
.nif-instruction-faq .schema-faq-section:first-child,
.em-instruction-faq--featured-first .schema-faq-section:first-child { padding: 24px; border: 1px solid #c9e7ff; border-radius: 15px; background: #edf7ff; color: #183247; }
.nif-instruction-faq .schema-faq-section:first-child .schema-faq-question,
.em-instruction-faq--featured-first .schema-faq-section:first-child .schema-faq-question { margin-top: 0; }
.nif-instruction-faq .schema-faq-answer,
.em-instruction-faq--featured-first .schema-faq-answer { font-size: 18px; line-height: 1.65; }
.nif-instruction-faq a,
.em-instruction-faq--featured-first a { overflow-wrap: anywhere; }
@media (max-width: 767px) {
    .nif-instruction-faq .schema-faq-section:first-child,
    .em-instruction-faq--featured-first .schema-faq-section:first-child { padding: 24px 20px; }
}
.em-quick-answer { margin-bottom: 54px; }
.em-quick-answer__card { padding: 32px 36px; border: 1px solid #c9e7ff; border-radius: 15px; background: #edf7ff; color: #183247; }
.em-quick-answer .em-quick-answer__heading { margin: 0 0 18px; font-size: 24px; line-height: 1.4; font-weight: 700; color: #183247; scroll-margin-top: 170px; }
.em-quick-answer .em-quick-answer__text p { margin: 0 0 16px; font-size: 18px; line-height: 1.65; color: #183247; }
.em-quick-answer .em-quick-answer__more { margin: 18px 0 0; font-size: 16px; line-height: 1.5; }
.em-quick-answer a, .em-instruction-sources a { color: #007bff; text-decoration: underline; text-underline-offset: 3px; }
.em-quick-answer a:focus-visible { outline: 2px solid #007bff; outline-offset: 3px; }
.em-instruction-faq { margin-top: 48px; margin-bottom: 40px; }
.em-instruction-faq h2, .em-instruction-sources h2 { font-size: 32px; line-height: 1.3; scroll-margin-top: 170px; }
.em-instruction-faq .schema-faq-question { margin: 24px 0 14px; font-size: 24px; line-height: 1.4; font-weight: 700; }
.em-instruction-faq .schema-faq-answer p { font-size: 18px; line-height: 1.65; }
.em-instruction-faq .schema-faq-section { scroll-margin-top: 170px; }
.em-instruction-sources .article-sources-list { list-style: disc; padding-left: 22px; }
.em-instruction-sources .article-sources-list li { padding-left: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 767px) {
    .em-quick-answer { margin-bottom: 36px; padding-left: 20px; padding-right: 20px; }
    .em-quick-answer__card { padding: 24px 20px; }
    .em-quick-answer .em-quick-answer__heading { font-size: 22px; scroll-margin-top: 95px; }
    .em-instruction-faq h2, .em-instruction-sources h2 { font-size: 25px; scroll-margin-top: 95px; }
    .em-instruction-faq .schema-faq-question { font-size: 22px; }
    .em-instruction-faq .schema-faq-section { scroll-margin-top: 95px; }
}

/* Shared editorial templates opt in through an explicitly typed table of contents. */
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-8 {
    background: #edf7ff;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-8 .row {
    align-items: flex-start;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-8 .author {
    margin-top: 0;
    padding-top: 0;
}
.em-server-toc[data-em-layout] .h2,
:where(body:has(.em-server-toc[data-em-layout])) .em-sidebar h2,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] h2 {
    margin: 0 0 18px;
    font: 700 24px/1.3 Montserrat, sans-serif;
}
.em-server-toc[data-em-layout] ul {
    display: block;
    columns: 2;
    column-gap: 32px;
    list-style: disc outside;
    padding-left: 22px;
    margin: 0;
}
.em-server-toc[data-em-layout] li,
.em-server-toc[data-em-layout] li a {
    font: 400 18px/1.45 'Open Sans', sans-serif;
}
.em-server-toc[data-em-layout] li {
    display: list-item;
    list-style: disc outside;
    break-inside: avoid;
    padding: 0;
    margin: 0 0 8px;
}
.em-server-toc[data-em-layout] li::before,
:where(body:has(.em-server-toc[data-em-layout])) .em-sidebar li::before,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] li::before {
    display: none;
}
.em-server-toc[data-em-layout] a,
:where(body:has(.em-server-toc[data-em-layout])) .em-sidebar a,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] a {
    color: #007bff;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-7 > .row {
    align-items: stretch;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-7 .col-4 {
    align-self: stretch;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-7 .col-7,
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-7 .col-4 {
    min-width: 0;
    overflow-wrap: anywhere;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-7 .col-7 > :first-child,
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-7 .col-7 > :first-child h2:first-child {
    margin-top: 0;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-sidebar,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] {
    position: sticky;
    top: 115px;
}
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] {
    max-height: calc(100vh - 135px);
    overflow: hidden;
}
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] .instruction-sidebar-track {
    transition: transform .3s ease;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-sidebar section,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] .instruction-sidebar-block {
    margin: 0 0 42px;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-sidebar ul, :where(body:has(.em-server-toc[data-em-layout])) .em-sidebar section > p,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-sidebar li,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] li {
    list-style: none;
    padding: 0;
    margin: 0;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-sidebar section > a, :where(body:has(.em-server-toc[data-em-layout])) .em-sidebar li > a, :where(body:has(.em-server-toc[data-em-layout])) .em-sidebar .em-sidebar-link,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] li,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] .em-sidebar-link {
    display: block;
    font: 400 14px/1.45 'Open Sans',sans-serif;
    border-bottom: 1px solid #ededed;
    padding: 7px 0;
    text-decoration: none;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-sidebar a:hover,
:where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] a:hover {
    text-decoration: underline;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-product-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin: 18px 0;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-product-grid .em-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    color: #000;
    background: #fff;
    text-align: center;
    text-decoration: none;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-product-grid .em-product-card img {
    width: 100%;
    max-width: 145px;
    height: 92px;
    object-fit: contain;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-product-grid .em-product-card span {
    font: 600 14px/1.35 Montserrat,sans-serif;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-article-products {
    margin: 42px 0;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-article-products .em-product-grid {
    grid-template-columns: repeat(auto-fit,minmax(125px,1fr));
}
:where(body:has(.em-server-toc[data-em-layout])) .em-catalog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #c9e7ff;
    color: #000;
    font-weight: 700;
    text-decoration: none;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-7 [id] {
    scroll-margin-top: 115px;
}
:where(body:has(.em-server-toc[data-em-layout])) .em-instruction-answer .em-quick-answer__heading,
:where(body:has(.em-server-toc[data-em-layout])) .em-instruction-faq--featured-first .schema-faq-question {
    color: #000;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .em-instruction-sources .article-sources-list {
    padding-left: 24px;
    list-style: disc outside;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .em-instruction-sources .article-sources-list li {
    display: list-item;
    list-style: disc outside;
}
.em-editorial-layout:has(.em-server-toc[data-em-layout]) .em-instruction-sources li::before {
    display: none;
}
@media (max-width: 768px) {
    .em-server-toc[data-em-layout] ul { columns: 1; }
    .em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-7 > .row,
    .em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-8 .row {
        flex-direction: column;
        gap: 26px;
    }
    .em-editorial-layout:has(.em-server-toc[data-em-layout]) :is(.row-7,.row-8) .row > :is(.col-4,.col-7) {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }
    :where(body:has(.em-server-toc[data-em-layout])) .em-sidebar,
    :where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] {
        position: static;
        max-height: none;
        overflow: visible;
    }
    :where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] .instruction-sidebar-track {
        transform: none;
    }
    .em-editorial-layout:has(.em-server-toc[data-em-layout]) .row-7 [id] { scroll-margin-top: 95px; }
}
@media (prefers-reduced-motion: reduce) {
    :where(body:has(.em-server-toc[data-em-layout])) .instruction-context-sidebar[data-em-sidebar="staged"] .instruction-sidebar-track { transition: none; }
}
/* Native product layout and Gutenberg sidebar. All rules are opt-in. */
.em-product-page .product-page-hero-grid,.em-product-page .em-product-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:clamp(20px,4vw,56px);align-items:start}
.em-product-page .product-page-toc .h2{font:600 24px/1.3 Montserrat,sans-serif}
.em-product-page .product-page-toc ul{columns:2;column-gap:24px;padding-left:1.2em;margin-bottom:0}
.em-product-page .product-page-toc li{break-inside:avoid;font:400 18px/1.55 "Open Sans",sans-serif}
.em-product-page .product-page-editor .col-4{width:auto;max-width:none;flex:none;padding:0}
.em-product-page .product-page-editor .thumbnail img{width:60px;height:60px;object-fit:cover;border-radius:50%}
.em-product-page .em-product-columns{margin-top:24px}
.em-product-page .em-product-copy{min-width:0}
.em-product-page [id]{scroll-margin-top:115px}
.em-product-page .em-product-aside{position:sticky;top:115px;max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px);overflow-y:auto;scrollbar-gutter:stable;min-width:0}
.em-product-page .em-package-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:16px}
.em-product-page .em-package-gallery figure{margin:0 0 20px}
.em-product-page .em-package-gallery img{display:block;width:auto;max-width:100%;height:auto;max-height:280px;object-fit:contain}
.em-product-page .em-package-gallery figcaption{font-size:.92em;margin-top:8px}
.em-product-sidebar{box-sizing:border-box;min-width:0;background:#f2f8fc;border-radius:8px;padding:18px}
.em-product-sidebar h2{font:600 20px/1.35 Montserrat,sans-serif;margin:1.1em 0 .55em}
.em-product-sidebar h2:first-child{margin-top:0}
.em-product-sidebar p{margin:0 0 .75em}
.em-product-sidebar .em-related-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.em-product-sidebar .em-related-items a{display:flex;flex-direction:column;gap:4px;padding:8px;background:white;border-radius:6px;overflow-wrap:anywhere}
.em-product-sidebar .em-related-items img{display:block;width:100%;height:78px;object-fit:contain}
.em-product-sidebar .em-related-items small{font-size:.78em;color:#3d5267}
.em-product-sidebar .em-product-cta{display:block;margin:12px 0 0;padding:10px 12px;color:#fff;background:#16629a;border-radius:5px;text-align:center;text-decoration:none}
.em-product-sidebar .em-product-cta:hover,.em-product-sidebar .em-product-cta:focus{background:#104872;color:#fff}
.em-product-sidebar ul{margin:0;padding-left:1.2em}
@media (max-width:767px){
 .em-product-page .product-page-hero-grid,.em-product-page .em-product-columns{grid-template-columns:minmax(0,1fr);gap:16px}
 .em-product-page .product-page-toc ul{columns:1}
 .em-product-page .em-product-aside{position:static;max-height:none;overflow:visible}
 .em-product-page [id]{scroll-margin-top:88px}
}

