/* EFMAG_LISTELER_HERO_V22
   Magazine inherits the exact same .ef-public-hero--compact base system as /listeler.
   Only magazine-specific photo, buttons, share popover and content rhythm below. */
.efmag.efmag--archive,
.efmag.efmag--issue {
    background:linear-gradient(180deg,#eff8fc 0%,#f5f9fc 780px,#fff 1450px);
    padding:0 0 48px;
    min-height:0;
}
.efmag .efmag-wrap {
    width:min(var(--ef-container,1180px),calc(100% - 32px));
    max-width:none;min-width:0;margin-inline:auto;
}
/* Match the /listeler compact hero: auto content height, shared top/bottom spacing,
   no V12/V21 fixed minimum height. Visible overflow is only for the share menu. */
.efmag .ef-public-hero.ef-public-hero--compact {
    display:block!important;
    box-sizing:border-box;
    height:auto!important;min-height:0!important;max-height:none!important;
    aspect-ratio:auto!important;
    margin:0!important;
    padding:var(--ef-page-start-space,12px) 0 24px!important;
    overflow:visible!important;
    position:relative;z-index:2;
}
/* Keep the illustration inside the rounded card even while share popup can escape. */
.efmag .ef-public-hero__art {overflow:hidden;border-radius:0 23px 23px 0;}
.efmag .ef-public-hero__art.efmag-hero-photo img {object-fit:cover;object-position:right center;}
/* The original circular pseudo-element otherwise bleeds below an overflow-visible hero. */
.efmag .ef-public-hero::before {display:none;}
/* The archive follow and the issue actions use the same EnFavori action row. */
.efmag .efmag-public-actions,
.efmag .efmag-issue-action-row {
    display:flex;align-items:center;align-content:start;flex-wrap:wrap;
    gap:8px 10px;max-width:100%;position:relative;z-index:5;
    margin:18px 0 0;
}
.efmag .efmag-issue-action-row .efmag-member-actions {display:contents;}
.efmag .efmag-member-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;max-width:100%;}
.efmag .efmag-member-actions form,
.efmag .efmag-public-actions form,
.efmag .efmag-issue-action-row form {margin:0;padding:0;min-width:0;}
.efmag .efmag-member-btn {
    box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;
    min-height:43px;max-width:100%;padding:7px 14px;
    border:1px solid #c5d9e3;border-radius:11px;background:#fff;color:#142844;
    font:inherit;font-size:12px;font-weight:800;line-height:1.2;
    text-decoration:none;cursor:pointer;white-space:nowrap;
}
.efmag .efmag-member-btn:hover {background:#f0faf9;border-color:#098f86;color:#087d78;}
.efmag .efmag-member-btn.is-active {background:#e5faf5;border-color:#0caaa0;color:#076f69;}
.efmag .efmag-member-btn:focus-visible {outline:3px solid #078f86;outline-offset:2px;}
.efmag .efmag-member-status {display:block;max-width:100%;font-size:12px;color:#076f69;line-height:1.4;margin-top:5px;}
.efmag .efmag-member-status:empty {display:none;}
.efmag .efmag-member-status.is-error {color:#ad2349;font-weight:700;}
.efmag .efmag-public-actions + .efmag-member-status {margin-top:5px;}
.efmag .efmag-issue-action-row .efmag-member-status {flex:0 0 100%;margin:0;}
/* Exact native EnFavori share partial, now beside Follow / Favorite in the hero. */
.efmag .efmag-share-toolbar {
    box-sizing:border-box;position:relative;z-index:20;
    display:flex;align-items:center;justify-content:flex-start;
    flex:0 0 auto;margin:0;padding:0;min-height:0;
}
.efmag .efmag-share-toolbar .ef-ct__share {display:block;position:relative;margin:0;isolation:isolate;z-index:1;max-width:100%;}
.efmag .efmag-share-toolbar .ef-ct__share[open] {z-index:30;}
.efmag .efmag-share-toolbar .ef-ct__share > summary {
    box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;
    min-height:43px;padding:7px 14px;border:1px solid #c5d9e3;border-radius:11px;
    background:#fff;color:#142844;list-style:none;font:inherit;font-size:12px;
    font-weight:800;line-height:1.2;cursor:pointer;user-select:none;
}
.efmag .efmag-share-toolbar .ef-ct__share > summary::-webkit-details-marker {display:none;}
.efmag .efmag-share-toolbar .ef-ct__share > summary svg {display:inline-block;width:17px;height:17px;flex:none;}
.efmag .efmag-share-toolbar .ef-ct__share > summary:hover,
.efmag .efmag-share-toolbar .ef-ct__share[open] > summary {background:#eafaf7;border-color:#0a9a93;color:#067b76;}
.efmag .efmag-share-toolbar .ef-ct__share > summary:focus-visible {outline:3px solid #0b9c96;outline-offset:2px;}
.efmag .efmag-share-toolbar .ef-ct__share > .ef-ct__share-menu {
    box-sizing:border-box;display:none!important;position:absolute;left:0;right:auto;
    top:calc(100% + 7px);width:min(230px,calc(100vw - 30px));
    max-height:min(360px,75vh);overflow-y:auto;
    flex-direction:column;gap:3px;padding:8px;border:1px solid #d8e5ec;
    border-radius:12px;background:#fff;box-shadow:0 12px 35px rgba(20,40,68,.18);
    color:#142844;z-index:50;text-align:left;
}
.efmag .efmag-share-toolbar .ef-ct__share[open] > .ef-ct__share-menu {display:flex!important;}
.efmag .efmag-share-toolbar .ef-ct__share-menu > a,
.efmag .efmag-share-toolbar .ef-ct__share-menu > button {
    box-sizing:border-box;display:flex!important;align-items:center;min-height:39px;
    width:100%;padding:9px 11px;border:0!important;border-radius:8px!important;
    background:#fff!important;color:#142844!important;font:inherit;font-size:12.5px;
    font-weight:700;line-height:1.35;text-align:left;text-decoration:none;
    cursor:pointer;opacity:1!important;visibility:visible!important;
}
.efmag .efmag-share-toolbar .ef-ct__share-menu > a:hover,
.efmag .efmag-share-toolbar .ef-ct__share-menu > button:hover {background:#edf9f8!important;color:#057d78!important;}
.efmag .efmag-share-toolbar .ef-ct__share-status {display:block;padding:0 8px;color:#087d78;font-size:11px;line-height:1.35;}
.efmag .efmag-share-toolbar .ef-ct__share-status:empty {display:none;}
/* Below-hero content starts immediately, without the former separate share row. */
.efmag.efmag--archive .efmag-archive-bar {margin-top:16px;margin-bottom:12px;padding-bottom:11px;}
.efmag.efmag--archive .efmag-grid {margin-top:0;}
.efmag.efmag--issue .efmag-reading-section {margin-top:16px;}
.efmag.efmag--issue .efmag-reading-head {align-items:flex-end;margin-bottom:12px;}
.efmag .efmag-reading-head__side {display:flex;gap:11px;align-items:center;justify-content:flex-end;flex-wrap:wrap;}
.efmag .efmag-reading-head__side > span {font-size:12px;color:#60748a;white-space:nowrap;}
.efmag.efmag--issue .efmag-empty {margin-top:16px;}
.efmag.efmag--issue .efmag-back--bottom {display:flex;justify-content:flex-start;margin:16px 0 0;}
.efmag.efmag--issue .efmag-back--bottom a {
    display:inline-flex;align-items:center;gap:7px;padding:7px 12px;min-height:36px;
    border:1px solid #d6e4ed;border-radius:9px;background:#fff;color:#142844;
    font-size:12px;font-weight:780;text-decoration:none;
}
.efmag.efmag--issue .efmag-back--bottom a:hover {border-color:#078f86;color:#078f86;}
/* v20 deliberately split issue title on small screens; desktop title remains original. */
.efmag.efmag--issue .ef-public-hero__title .efmag-issue-title-desktop,
.efmag.efmag--issue .ef-public-hero__title .efmag-issue-title-mobile {color:#142844!important;}
.efmag.efmag--issue .efmag-issue-title-mobile {display:none!important;}
@media(max-width:740px){
    .efmag.efmag--archive,.efmag.efmag--issue {padding:0 0 32px;}
    .efmag .efmag-wrap {width:min(var(--ef-container,1180px),calc(100% - 24px));}
    .efmag .ef-public-hero.ef-public-hero--compact {
        margin-top:0!important;padding:var(--ef-page-start-space,8px) 0 17px!important;
        min-height:0!important;height:auto!important;
    }
    .efmag .ef-public-hero__art {border-radius:0 17px 17px 0;}
    .efmag .ef-public-hero__art.efmag-hero-photo {opacity:.64;}
    .efmag .efmag-public-actions,.efmag .efmag-issue-action-row {margin-top:15px;gap:7px;}
    .efmag .efmag-member-btn {min-height:39px;padding:7px 10px;font-size:11px;}
    .efmag .efmag-share-toolbar {margin-left:0;}
    .efmag .efmag-share-toolbar .ef-ct__share > summary {min-height:39px;padding:7px 10px;font-size:11px;}
    .efmag .efmag-share-toolbar .ef-ct__share > .ef-ct__share-menu {left:0;right:auto;}
    .efmag.efmag--archive .efmag-archive-bar {margin-top:14px;margin-bottom:11px;}
    .efmag.efmag--issue .efmag-reading-head__side {align-items:flex-end;gap:6px;flex-direction:column;}
    .efmag.efmag--issue .efmag-issue-title-desktop {display:none!important;}
    .efmag.efmag--issue .efmag-issue-title-mobile {display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;max-width:100%;}
    .efmag.efmag--issue .efmag-issue-title-mobile>b {display:block;padding:0;margin:0;font:inherit;font-weight:inherit;line-height:inherit;color:inherit;white-space:nowrap;}
}
@media(max-width:380px){
    .efmag.efmag--issue .ef-public-hero .ef-public-hero__title {font-size:clamp(27px,7.8vw,32px);}
}
