/* EnFavori canonical article detail */
:root{
    --efa-navy:#142844;
    --efa-navy-dark:#0d1b2d;
    --efa-blue:#2ea7ff;
    --efa-teal:#18d2c3;
    --efa-teal-dark:#0b817a;
    --efa-border:#e2e8f0;
    --efa-muted:#64748b;
    --efa-soft:#f7f9fc;
}

.ef-article-page,
.ef-article-page *,
.ef-article-page *::before,
.ef-article-page *::after{box-sizing:border-box}

.ef-article-page{width:100%;padding-bottom:42px;color:var(--efa-navy)}
.ef-article-page a{text-decoration:none}

/* Hero: same visual family as category / channel discovery */
.ef-article-hero{
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    gap:16px;
    align-items:start;
    min-height:132px;
    margin-bottom:16px;
    padding:21px 24px;
    overflow:visible;
    background:#fff;
    border:1px solid var(--efa-border);
    border-radius:18px;
    box-shadow:0 8px 28px rgba(20,40,68,.055)
}
.ef-article-hero__icon{
    width:64px;height:64px;display:grid;place-items:center;
    border-radius:16px;color:var(--efa-teal);background:var(--efa-navy);
    font-size:24px;box-shadow:0 9px 20px rgba(20,40,68,.17)
}
.ef-article-hero__copy{min-width:0}
.ef-article-hero__kicker{
    display:inline-flex;align-items:center;gap:6px;margin-bottom:5px;
    color:#728197;font-size:10px;font-weight:850;letter-spacing:.35px;text-transform:uppercase
}
.ef-article-hero__title{
    max-width:1180px;margin:0;color:var(--efa-navy);
    font-size:clamp(28px,3vw,40px);font-weight:950;line-height:1.08;letter-spacing:-.7px;
    overflow-wrap:anywhere
}
.ef-article-hero__meta{
    display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:12px
}
.ef-article-category-chip,
.ef-article-stat{
    display:inline-flex;align-items:center;gap:6px;min-height:30px;
    padding:0 10px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap
}
.ef-article-category-chip{
    color:#087d72;background:#effbf9;border:1px solid #cdece8
}
.ef-article-category-chip:hover,.ef-article-category-chip:focus{color:#087d72;background:#e7f8f5;outline:none}
.ef-article-stat{padding:0;color:#6b7b8e;background:transparent}
.ef-article-stat i{color:#0fae9f}
.ef-article-hero__lead{
    max-width:980px;margin:11px 0 0;color:#596e82;font-size:13px;font-weight:600;line-height:1.55
}

/* Hero actions */
.ef-article-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:13px;position:relative;z-index:40}
.ef-article-save-form{margin:0}
.ef-article-action{
    appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;
    height:38px;min-height:38px;padding:0 13px;border-radius:9px;
    font:inherit;font-size:11px;font-weight:850;line-height:1;white-space:nowrap;cursor:pointer
}
.ef-article-save-button{
    color:#142844;background:#fff;border:1px solid #d9e4ec;box-shadow:0 3px 10px rgba(20,40,68,.04)
}
.ef-article-save-button i{color:#0fae9f}
.ef-article-save-button:hover,.ef-article-save-button:focus{color:#087d72;border-color:#bfe3df;background:#f5fcfb;outline:none}
.ef-article-save-button.is-saved{color:#087d72;background:#e9fbf8;border-color:#bfe9e3}
.ef-article-share{position:relative;overflow:visible}
.ef-article-share__toggle{
    color:#fff;background:linear-gradient(135deg,#244e78 0%,#173d63 100%);
    border:1px solid rgba(92,139,184,.55);box-shadow:0 4px 12px rgba(20,53,88,.14)
}
.ef-article-share__toggle i{color:#72e0d7}
.ef-article-share__toggle:hover,.ef-article-share__toggle:focus{color:#fff;background:linear-gradient(135deg,#2a5b8b 0%,#1a466f 100%);outline:none}
.ef-article-share__menu[hidden]{display:none!important}
.ef-article-share__menu{
    position:absolute;z-index:160;top:calc(100% + 8px);left:0;
    display:flex;flex-direction:column;gap:3px;width:190px;padding:8px;
    background:#fff;border:1px solid #dce5ed;border-radius:12px;
    box-shadow:0 16px 38px rgba(20,40,68,.18)
}
.ef-article-share__item{
    width:100%;min-height:38px;display:flex;align-items:center;gap:10px;padding:0 11px;
    border:0;border-radius:9px;background:#fff;color:#4f6278!important;
    font:inherit;font-size:11px;font-weight:800;text-align:left;cursor:pointer
}
.ef-article-share__item:hover,.ef-article-share__item:focus{background:#f4f8fb;color:var(--efa-navy)!important;outline:none}
.ef-article-share__item i{width:17px;text-align:center;font-size:15px}
.ef-article-share__item.is-whatsapp i{color:#25d366}
.ef-article-share__item.is-telegram i{color:#229ed9}
.ef-article-share__item.is-x i{color:#111827}
.ef-article-share__item.is-facebook i{color:#1877f2}
.ef-article-share__item.is-copy i{color:var(--efa-teal-dark)}

/* Main + optional ad: same discovery rule */
.ef-article-layout{display:block;min-width:0}
.ef-article-main{min-width:0}
.ef-article-sidebar{
    min-width:0;padding:12px;overflow:hidden;text-align:center;
    background:#fff;border:1px solid var(--efa-border);border-radius:16px
}
.ef-article-sidebar__label{
    display:block;margin-bottom:8px;color:#97a5b3;font-size:9px;font-weight:850;letter-spacing:.45px;text-transform:uppercase
}
.ef-article-sidebar iframe,.ef-article-sidebar img,.ef-article-sidebar video,.ef-article-sidebar object{max-width:100%!important}

.ef-article-card{
    overflow:hidden;background:#fff;border:1px solid var(--efa-border);
    border-radius:18px;box-shadow:0 8px 28px rgba(20,40,68,.055)
}
.ef-article-cover{width:100%;aspect-ratio:16/9;overflow:hidden;background:#edf2f6}
.ef-article-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

.ef-article-author-row{
    display:flex;align-items:center;min-height:68px;margin:0 26px;padding:14px 0;
    border-bottom:1px solid #e8edf2
}
.ef-article-author,.ef-article-author-link{
    display:inline-flex;align-items:center;gap:9px;min-width:0;
    color:#40556a;font-size:11px;font-weight:750;line-height:1.2;text-decoration:none!important
}
.ef-article-author-link:hover,.ef-article-author-link:focus{color:#087d72;outline:none}
.ef-article-author-icon{
    width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;overflow:hidden;
    color:#fff;background:var(--efa-navy);border-radius:10px
}
.ef-article-author-icon img{display:block;width:100%;height:100%;object-fit:cover}
.ef-article-author strong{display:block;color:var(--efa-navy);font-size:11.5px;font-weight:900}
.ef-article-author span span{display:block;margin-top:2px;color:#8795a4;font-size:9.3px}

.ef-article-content-wrap{padding:28px 30px 34px}
.ef-article-content{
    width:100%;max-width:880px;margin:0 auto;color:#27364a;
    font-size:16px;line-height:1.82;overflow-wrap:anywhere
}
.ef-article-content>:first-child{margin-top:0!important}
.ef-article-content>p:first-child:empty,.ef-article-content>div:first-child:empty{display:none!important}
.ef-article-content h1,.ef-article-content h2,.ef-article-content h3,.ef-article-content h4,.ef-article-content h5,.ef-article-content h6{
    margin:1.65em 0 .6em;color:#10243e;font-weight:900;line-height:1.25;letter-spacing:-.015em
}
.ef-article-content h2{font-size:27px}.ef-article-content h3{font-size:22px}.ef-article-content h4{font-size:18px}
.ef-article-content p{margin:0 0 1.25em}
.ef-article-content a{color:#087d72;font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.ef-article-content strong{color:var(--efa-navy);font-weight:850}
.ef-article-content ul,.ef-article-content ol{margin:0 0 1.3em;padding-left:1.5em}.ef-article-content li{margin-bottom:.45em}
.ef-article-content blockquote{
    margin:1.6em 0;padding:16px 19px;color:#40566b;background:#f3faf9;
    border-left:4px solid #18b7a8;border-radius:0 10px 10px 0;font-size:15px;line-height:1.7
}
.ef-article-content hr{margin:2em 0;border:0;border-top:1px solid #dfe7ee}
.ef-article-content img{display:block;max-width:100%!important;height:auto!important;margin:1.5em auto;border-radius:11px}
.ef-article-content figure{max-width:100%;margin:1.5em auto}.ef-article-content figcaption{margin-top:7px;color:#7c8b9a;font-size:10.5px;text-align:center}
.ef-article-content iframe,.ef-article-content video{display:block;width:100%!important;max-width:100%!important;min-height:420px;margin:1.5em auto;border:0;border-radius:11px;background:#0f172a}
.ef-article-content video{height:auto!important;min-height:0}
.ef-article-content table{width:100%!important;margin:1.5em 0;border-collapse:collapse;font-size:13px}
.ef-article-content th,.ef-article-content td{padding:10px 11px;border:1px solid #dfe7ee;text-align:left;vertical-align:top}
.ef-article-content th{color:var(--efa-navy);background:#f4f7f9;font-weight:850}

.ef-article-footer{max-width:880px;margin:30px auto 0;padding-top:20px;border-top:1px solid #e8edf2}
.ef-article-tags{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.ef-article-tags-label{margin-right:3px;color:#6a7a8b;font-size:10px;font-weight:850;text-transform:uppercase}
.ef-article-tag{display:inline-flex;padding:5px 8px;color:#52677b;background:#f5f8fa;border:1px solid #e2e9ef;border-radius:7px;font-size:9.5px;font-weight:750}
.ef-article-tag:hover,.ef-article-tag:focus{color:#087d72;background:#e9fbf8;border-color:#bfe9e3;outline:none}
.ef-article-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}
.ef-article-back{display:inline-flex;align-items:center;gap:7px;color:var(--efa-navy);font-size:11px;font-weight:850}
.ef-article-back i{color:#18b7a8}.ef-article-back:hover,.ef-article-back:focus{color:#087d72;outline:none}
.ef-article-updated{color:#8a98a7;font-size:9.5px;font-weight:700}

@media(min-width:1200px){
    .ef-article-layout.has-sidebar-ad{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
    .ef-article-layout.has-sidebar-ad .ef-article-sidebar{position:sticky;top:126px}
}
@media(max-width:1199.98px){
    .ef-article-layout.has-sidebar-ad{display:flex;flex-direction:column;gap:16px}
    .ef-article-main{order:1}.ef-article-sidebar{order:2}
}
@media(max-width:767.98px){
    .ef-article-page{padding-left:12px;padding-right:12px;padding-bottom:28px}
    .ef-article-hero{grid-template-columns:44px minmax(0,1fr);gap:11px;min-height:0;margin-bottom:11px;padding:13px;border-radius:13px}
    .ef-article-hero__icon{width:44px;height:44px;border-radius:12px;font-size:18px}
    .ef-article-hero__kicker{font-size:8px;margin-bottom:3px}
    .ef-article-hero__title{font-size:23px;line-height:1.12}
    .ef-article-hero__meta{gap:6px 9px;margin-top:9px}
    .ef-article-category-chip,.ef-article-stat{min-height:27px;font-size:9px}
    .ef-article-hero__lead{font-size:10.5px;line-height:1.45;margin-top:8px}
    .ef-article-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;margin-top:10px}
    .ef-article-action,.ef-article-save-form,.ef-article-save-button,.ef-article-share,.ef-article-share__toggle{width:100%}
    .ef-article-share__menu{width:min(190px,calc(100vw - 40px));left:auto;right:0}
    .ef-article-card{border-radius:14px}
    .ef-article-cover{aspect-ratio:16/9}
    .ef-article-author-row{min-height:60px;margin:0 15px;padding:12px 0}
    .ef-article-author-icon{width:32px;height:32px;flex-basis:32px;border-radius:8px}
    .ef-article-content-wrap{padding:21px 15px 27px}
    .ef-article-content{font-size:14.5px;line-height:1.75}
    .ef-article-content h2{font-size:23px}.ef-article-content h3{font-size:19px}
    .ef-article-content iframe{min-height:230px}
    .ef-article-content table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
    .ef-article-bottom{align-items:flex-start;flex-direction:column}
}
