/* MEDIPHARM Super App v1.3.26 — responsive ebook action cards.
   Scope: converted Drive links inside the article body only. Membership shortcode,
   sidebars, book-cover cards and all other module screens are intentionally untouched. */
.syh-book-app .syh-book-content {
    container-type: inline-size;
}
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) max-content !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    column-gap: 16px !important;
    row-gap: 12px !important;
    width: min(100%, 690px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 90px !important;
    margin: 26px auto !important;
    padding: 16px 18px !important;
    border: 1px solid #d8e5f2 !important;
    border-radius: 17px !important;
    background: linear-gradient(120deg, #f7fbff, #eff7fd) !important;
    box-shadow: 0 8px 23px rgba(30, 80, 130, .07) !important;
    box-sizing: border-box !important;
    text-align: left !important;
    float: none !important;
    clear: both !important;
    overflow: hidden !important;
}
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-icon {
    display: grid !important;
    place-items: center !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 13px !important;
    background: #e1f3ed !important;
    color: #117c66 !important;
    align-self: center !important;
    justify-self: start !important;
    line-height: 1.1 !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    box-sizing: border-box !important;
}
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    text-align: left !important;
    box-sizing: border-box !important;
}
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-copy > strong,
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-copy > small {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    white-space: normal !important;
    text-overflow: clip !important;
    line-height: 1.4 !important;
}
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-copy > strong {
    color: #203b57 !important;
    font-weight: 750 !important;
    font-size: 15px !important;
}
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-copy > small {
    color: #637f97 !important;
    font-size: 13px !important;
}
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > a {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 130px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #2067be !important;
    color: #fff !important;
    font-weight: 750 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > a:hover {
    background: #15569e !important;
}
.syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > a:focus-visible {
    outline: 3px solid #61b2f5 !important;
    outline-offset: 3px !important;
}
/* Fit the action to the width of the reading column, not the monitor viewport.
   On a narrow 2-column article the card stays usable without text overflow. */
@container (max-width: 440px) {
    .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        padding: 14px !important;
        column-gap: 12px !important;
    }
    .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-icon {
        width: 46px !important;
        height: 46px !important;
    }
    .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > a {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
    }
}
/* Fallback for older clients without container-query support. */
@supports not (container-type: inline-size) {
    @media (max-width: 640px) {
        .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card {
            grid-template-columns: 46px minmax(0, 1fr) !important;
            grid-template-rows: auto auto !important;
        }
        .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > a {
            grid-column: 1 / -1 !important;
            grid-row: 2 !important;
            width: 100% !important;
            min-width: 0 !important;
        }
    }
}
html.nah-sdp-night-active .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card,
html.nah-sdp-dark-mode .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card {
    border-color: #344c61 !important;
    background: linear-gradient(120deg, #182b40, #102338) !important;
    box-shadow: 0 9px 22px rgba(0,0,0,.18) !important;
}
html.nah-sdp-night-active .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-copy > strong,
html.nah-sdp-dark-mode .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-copy > strong {color:#eaf4ff!important}
html.nah-sdp-night-active .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-copy > small,
html.nah-sdp-dark-mode .syh-book-app .syh-book-content aside.syh-file-card.syh-book-download-card > .syh-file-copy > small {color:#a4bdd2!important}
