/* DailyCoin footer redesign (2026-11-23). Markup: framework/modules/footer/templates/parts/footer-dc.php
   Colours and button styles come from header-redesign.css (--bg, --accent, .subscribe-btn). */
:root{--sheet-r:28px;--footer-bg:#10141d;}

/* White page "sheet" with rounded bottom corners resting on the dark footer */
.mkd-content{position:relative;z-index:2;background:#fff;border-radius:0 0 var(--sheet-r) var(--sheet-r);padding-bottom:24px;margin-bottom:0!important;}

.dc-footer{
    position:relative;z-index:1;
    margin-top:calc(var(--sheet-r) * -1);
    padding-top:var(--sheet-r);
    background:var(--footer-bg);
    /* dark fill behind the sheet's rounded corners, so no white page background can show through */
    box-shadow:0 calc(var(--sheet-r) * -2) 0 0 var(--footer-bg);
    color:var(--text-dim,#8d93a3);
    font-family:inherit;
}
.dc-footer *{box-sizing:border-box;}
.dc-footer__inner{max-width:1320px;margin:0 auto;padding:72px 24px 0;}

/* top: brand + link columns */
.dc-footer__top{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;}
.dc-footer__logo{display:inline-block;line-height:0;}
.dc-footer__logo-svg{height:28px;width:auto;display:block;}
.dc-footer__about{margin:20px 0 24px;max-width:36ch;font-size:15px;line-height:1.6;color:var(--text-dim,#8d93a3);}
.dc-footer__subscribe{display:inline-flex;}
.dc-footer__subscribe:active{transform:translateY(0) scale(.98);}

.dc-footer__nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;}
.dc-footer__heading{
    margin:0 0 16px!important;padding:0 0 0 10px!important;border-left:3px solid var(--accent,#f7be23);
    font-family:inherit!important;font-size:14px!important;line-height:1.3!important;font-weight:600!important;
    letter-spacing:0!important;text-transform:none!important;color:var(--text,#f4f5f8)!important;
}
.dc-footer__links{list-style:none!important;margin:0!important;padding:0!important;display:grid;gap:12px;}
.dc-footer__links li{margin:0!important;padding:0!important;list-style:none!important;}
.dc-footer__links li::before{display:none!important;}
.dc-footer__links a{
    font-size:14.5px;line-height:1.4;color:var(--text-dim,#8d93a3)!important;text-decoration:none!important;
    text-transform:none!important;transition:color .2s ease;
}
.dc-footer__links a:hover{color:var(--text,#f4f5f8)!important;}

/* popular sections as pills */
.dc-footer__topics{margin-top:56px;padding-top:32px;border-top:1px solid var(--border,rgba(255,255,255,.08));}
.dc-footer__pills{list-style:none!important;margin:0!important;padding:0!important;display:flex;flex-wrap:wrap;gap:8px;}
.dc-footer__pills li{margin:0!important;padding:0!important;list-style:none!important;}
.dc-footer__pills li::before{display:none!important;}
.dc-footer__pills a{
    display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;
    background:rgba(255,255,255,.04);border:1px solid var(--border,rgba(255,255,255,.08));
    font-size:13.5px;font-weight:500;color:var(--text,#f4f5f8)!important;text-decoration:none!important;text-transform:none!important;
    transition:border-color .2s ease,color .2s ease,background-color .2s ease;
}
.dc-footer__pills a:hover{border-color:rgba(247,190,35,.45);color:var(--accent,#f7be23)!important;background:rgba(255,255,255,.07);}

/* bottom bar */
.dc-footer__bottom{
    margin-top:48px;padding:24px 0 32px;border-top:1px solid var(--border,rgba(255,255,255,.08));
    display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.dc-footer__copy{margin:0!important;font-size:13px;line-height:1.4;color:var(--text-dim,#8d93a3);}
.dc-footer__social{display:flex;align-items:center;gap:8px;}
.dc-footer__social a{
    width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    border:1px solid var(--border,rgba(255,255,255,.08));color:var(--text-dim,#8d93a3)!important;
    transition:color .2s ease,border-color .2s ease,background-color .2s ease,transform .2s ease;
}
.dc-footer__social a:hover{color:var(--accent,#f7be23)!important;border-color:rgba(247,190,35,.45);background:rgba(255,255,255,.07);transform:translateY(-1px);}
.dc-footer__social svg{width:15px;height:15px;display:block;}

.dc-footer a:focus-visible,.dc-footer button:focus-visible{outline:2px solid var(--accent,#f7be23);outline-offset:3px;border-radius:6px;}
.dc-footer__pills a:active,.dc-footer__social a:active{transform:scale(.97);}
.dc-footer__pills a:focus-visible,.dc-footer__social a:focus-visible,.dc-footer__subscribe:focus-visible{border-radius:999px;}

@media (max-width:980px){
    .dc-footer__top{grid-template-columns:1fr;gap:40px;}
    .dc-footer__inner{padding-top:56px;}
}
@media (max-width:600px){
    :root{--sheet-r:20px;}
    .dc-footer__nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;}
    .dc-footer__nav .dc-footer__col:last-child{grid-column:1 / -1;}
    .dc-footer__topics{margin-top:40px;}
    .dc-footer__bottom{flex-direction:column-reverse;align-items:flex-start;gap:20px;}
}
@media (prefers-reduced-motion:reduce){
    .dc-footer *{transition:none!important;}
}
