/*
 * MTG Platform
 * Copyright (c) 2026 Kevin Moseri
 * All rights reserved.
 */


.mtg-site-header{background:#fff;border-bottom:1px solid rgba(23,32,51,.08);position:sticky;top:0;z-index:50}
.mtg-header-inner{display:flex;align-items:center;justify-content:space-between;min-height:84px;gap:20px}
.mtg-brand{display:flex;align-items:center;gap:14px;text-decoration:none!important;color:inherit}
.mtg-brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:linear-gradient(135deg,var(--mtg-primary-2),var(--mtg-accent));color:#fff;font-weight:800}
.mtg-brand-copy strong{display:block;font-size:1.1rem}
.mtg-desktop-nav{display:flex;align-items:center;gap:28px}
.mtg-desktop-nav a{font-weight:600;color:var(--mtg-ink)}
.mtg-desktop-nav a.mtg-btn{padding:14px 22px;border-radius:16px;border:1px solid transparent;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--mtg-primary-2),var(--mtg-accent))}
.mtg-desktop-nav a.mtg-btn:hover{filter:brightness(.98)}

.mtg-mobile-header-actions{display:none;align-items:center;gap:10px}
.mtg-mobile-toggle{display:inline-flex;flex-direction:column;justify-content:center;gap:4px;width:42px;height:42px;border:1px solid var(--mtg-line);background:#fff;border-radius:12px}
.mtg-mobile-toggle span{display:block;width:18px;height:2px;background:var(--mtg-ink);margin:0 auto}
.mtg-mobile-drawer{background:#fff;border-top:1px solid rgba(23,32,51,.08)}
.mtg-mobile-drawer-inner{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:18px 0 22px;display:flex;flex-direction:column;gap:12px}
.mtg-mobile-drawer-inner a{padding:10px 0;font-weight:600;color:var(--mtg-ink)}
.mtg-site-footer{background:#fff;border-top:1px solid rgba(23,32,51,.08);padding:42px 0}
.mtg-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:24px}
.mtg-footer-links{list-style:none;margin:0;padding:0}
.mtg-footer-links li{margin:0 0 10px}

.mtg-site-header--tool{background:linear-gradient(180deg,#0D3F4A,#0D3F4A);border-bottom:1px solid rgba(255,255,255,.08)}
.mtg-site-header--tool .mtg-header-inner{min-height:72px}
.mtg-site-header--tool .mtg-brand-copy strong,.mtg-site-header--tool .mtg-brand-copy small,.mtg-site-header--tool .mtg-tool-nav a,.mtg-site-header--tool .mtg-tool-trust{color:#fff}
.mtg-site-header--tool .mtg-brand-mark{background:#fff;color:var(--mtg-primary);border-radius:12px}
.mtg-tool-nav{display:flex;align-items:center;gap:28px;margin-left:auto}
.mtg-tool-nav a{font-weight:700}
.mtg-tool-trust{font-weight:700;font-size:.98rem;opacity:.95;white-space:nowrap}
.mtg-site-header--tool .mtg-mobile-header-actions .mtg-btn{background:linear-gradient(135deg,var(--mtg-primary-2),var(--mtg-accent));color:#fff}

.mtg-tool-trust{display:flex;align-items:center;gap:10px}
.mtg-tool-trust-icon{display:inline-grid;place-items:center;font-size:1rem;line-height:1}
.mtg-site-header--tool .mtg-tool-trust-icon{color:#C6F6E5}
@media (max-width: 980px){.mtg-tool-nav{gap:16px}.mtg-tool-trust{font-size:.9rem}}
@media (max-width: 767px){.mtg-site-header--tool .mtg-header-inner{min-height:64px}.mtg-site-header--tool .mtg-tool-nav{display:none}}


/* Final responsive footer */
.mtg-site-footer{background:#fff;border-top:1px solid rgba(23,32,51,.08);padding:0}
.mtg-footer-cta-strip{border-bottom:1px solid rgba(23,32,51,.08);padding:34px 0;background:#fff}
.mtg-footer-cta-inner{display:grid;grid-template-columns:1.3fr .7fr;gap:24px;align-items:center}
.mtg-footer-cta-copy h2{margin:0 0 10px}
.mtg-footer-cta-copy p{margin:0;color:var(--mtg-muted)}
.mtg-footer-cta-actions{justify-content:flex-end}
.mtg-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px;padding:40px 0}
.mtg-footer-brand-text{margin:18px 0 0;color:var(--mtg-muted);max-width:42ch}
.mtg-footer-col h3{margin:0 0 14px}
.mtg-footer-links{list-style:none;margin:0;padding:0}
.mtg-footer-links li{margin:0 0 12px}
.mtg-footer-bottom{border-top:1px solid rgba(23,32,51,.08);padding:14px 0;background:#fff}
.mtg-footer-bottom-inner{display:flex;justify-content:space-between;gap:16px;align-items:center}
.mtg-footer-bottom p{margin:0;color:var(--mtg-muted);font-size:.95rem}


/* v3.10.8 mobile header cleanup */
@media (max-width: 768px){
  .mtg-mobile-header-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:0;
  }

  .mtg-mobile-header-actions .mtg-btn,
  .mtg-site-header--tool .mtg-mobile-header-actions .mtg-btn{
    display:none !important;
  }
}


/* v3.10.9 mobile header hard lock */
@media (max-width: 1100px){
  .mtg-desktop-nav,
  .mtg-tool-nav,
  .mtg-site-header .mtg-btn,
  .mtg-site-header a.mtg-btn{
    display:none !important;
  }

  .mtg-mobile-header-actions{
    display:flex !important;
    justify-content:flex-end;
    align-items:center;
    gap:0;
    margin-left:auto;
  }

  .mtg-mobile-header-actions > *:not(.mtg-mobile-toggle){
    display:none !important;
  }
}
