/* MAGODUCK V40: one branded shell for homepage, tools, blog, information and legal pages. */
.mg-chrome-header,.mg-chrome-footer{box-sizing:border-box;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.mg-chrome-header *,.mg-chrome-footer *{box-sizing:border-box}
.mg-chrome-wrap{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.mg-chrome-header{position:relative;z-index:80;isolation:isolate;width:100%;min-height:72px;background:#fff;border-bottom:1px solid #e5eaf3;box-shadow:0 4px 20px rgba(16,30,60,.045);color:#122342}
.mg-chrome-header-row{min-height:72px;display:flex;align-items:center;gap:28px}
.mg-chrome-brand{display:flex;flex:0 0 auto;align-items:center;min-width:0}
.mg-chrome-brand img{display:block;width:168px;height:auto;max-width:100%;object-fit:contain}
.mg-chrome-desktop-nav{display:flex;align-items:center;justify-content:center;gap:22px;min-width:0;flex:1 1 auto}
.mg-chrome-desktop-nav>a,.mg-chrome-desktop-nav>.mg-chrome-disabled{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 1px;color:#344560;font-size:14px;font-weight:700;white-space:nowrap;text-decoration:none;position:relative}
.mg-chrome-desktop-nav>a:hover,.mg-chrome-desktop-nav>a.is-current{color:#1268e5}
.mg-chrome-desktop-nav>a.is-current::after{content:"";position:absolute;inset:auto 0 5px;height:3px;background:linear-gradient(90deg,#ffb500,#ffdc54);border-radius:8px}
.mg-chrome-desktop-nav>.mg-chrome-disabled{color:#9aa7bb;cursor:not-allowed}
.mg-chrome-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:0 0 auto;min-width:0}
.mg-chrome-search{position:relative;display:flex;align-items:center;min-width:0;width:222px;height:43px;border:1px solid #dce4f0;border-radius:13px;background:#f7faff;color:#24354f;transition:border-color .18s ease,box-shadow .18s ease}
.mg-chrome-search:focus-within{border-color:#468cf4;box-shadow:0 0 0 3px rgba(65,122,240,.15)}
.mg-chrome-search-label{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.mg-chrome-search input{min-width:0;flex:1 1 auto;width:100%;height:100%;padding:0 9px 0 13px;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#152944!important;font-size:14px!important;font-weight:500}
.mg-chrome-search input::placeholder{color:#77879d;opacity:1}
.mg-chrome-search button{width:43px;height:41px;display:grid;place-items:center;border:0;background:transparent;color:#3564b9;cursor:pointer;border-radius:11px;flex:none}
.mg-chrome-search button:hover{background:#e7f0ff}
.mg-chrome-search button svg,.mg-chrome-menu-toggle svg,.mg-chrome-theme svg,.mg-chrome-search-toggle svg{width:21px;height:21px;fill:none}
.mg-chrome-theme,.mg-chrome-menu-toggle,.mg-chrome-search-toggle{display:grid;place-items:center;width:43px;height:43px;flex:none;padding:0;border:1px solid #dce4f0;border-radius:13px;background:#fff;color:#315aa3;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.mg-chrome-theme:hover,.mg-chrome-menu-toggle:hover,.mg-chrome-search-toggle:hover{background:#eef5ff;border-color:#aacaf7}
.mg-chrome-search-toggle{display:none}
.mg-chrome-menu-toggle{display:none}
.mg-chrome-mobile-nav{display:none}
.mg-chrome-search .search-results{position:absolute;top:calc(100% + 7px);right:0;left:0;z-index:95;max-height:310px;overflow:auto;background:#fff;border:1px solid #dce4f0;border-radius:12px;box-shadow:0 15px 35px rgba(11,29,61,.15);padding:6px}
.mg-chrome-search .search-results[hidden]{display:none}
.mg-chrome-search .search-results a,.mg-chrome-search .search-results p{display:block;margin:0;padding:10px;border-radius:7px;color:#263d63;font-size:13px;text-decoration:none}
.mg-chrome-search .search-results a:hover{background:#eaf2ff}
.mg-chrome-header :focus-visible,.mg-chrome-footer :focus-visible{outline:3px solid #357cf3!important;outline-offset:3px}

.mg-chrome-footer{width:100%;margin-top:55px;background:radial-gradient(circle at 88% -10%,#233f71 0%,transparent 39%),linear-gradient(145deg,#0f203a,#101a31 75%);border-top:4px solid #ffc439;color:#f3f7ff}
.mg-chrome-footer .mg-chrome-wrap{padding-top:48px}
.mg-chrome-footer-top{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-bottom:34px;border-bottom:1px solid rgba(216,228,255,.15)}
.mg-chrome-footer-brand{max-width:560px}
.mg-chrome-footer-brand>a{display:inline-flex;align-items:center;padding:5px;background:#fff;border-radius:12px}
.mg-chrome-footer-brand img{display:block;width:173px;height:auto}
.mg-chrome-footer-brand p{max-width:440px;margin:14px 0 0;color:#b9c9df;font-size:14px;line-height:1.7;font-weight:400}
.mg-chrome-footer-cta{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:46px;padding:11px 20px;border-radius:12px;background:#ffc439;color:#12223d!important;font-size:14px;font-weight:800;text-decoration:none!important;white-space:nowrap;box-shadow:0 10px 25px rgba(255,195,60,.13);transition:background .18s ease,transform .18s ease}
.mg-chrome-footer-cta:hover{background:#ffdc7c;transform:translateY(-2px)}
.mg-chrome-footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;padding:35px 0 36px}
.mg-chrome-footer-grid nav{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:11px}
.mg-chrome-footer-grid h2{font-family:inherit;font-size:14px;line-height:1.4;font-weight:800;letter-spacing:.02em;color:#fff;margin:0 0 7px}
.mg-chrome-footer-grid a,.mg-chrome-footer-grid .mg-chrome-disabled,.mg-chrome-footer-grid nav>span[aria-disabled]{font-family:inherit;display:inline-flex;align-items:center;max-width:100%;font-size:13px;line-height:1.5;font-weight:500;color:#c3d0e3;text-decoration:none;margin:0;padding:0;text-align:left;overflow-wrap:anywhere}
.mg-chrome-footer-grid a:hover{color:#ffd369;text-decoration:underline;text-underline-offset:4px}
.mg-chrome-footer-grid .mg-chrome-disabled,.mg-chrome-footer-grid nav>span[aria-disabled]{color:#788aa4}
.mg-chrome-footer-grid .mg-chrome-disabled small,.mg-chrome-footer-grid nav>span[aria-disabled] small{display:none}
.mg-chrome-privacy-note{margin:7px 0 0;color:#9daecc;font-size:12px;line-height:1.65;max-width:230px}
.mg-chrome-footer-bottom{border-top:1px solid rgba(216,228,255,.15);padding:21px 0 25px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12px;color:#9daecc}
.mg-chrome-footer-bottom a{color:#ffe0a2;text-decoration:none;font-weight:700}
.mg-chrome-footer-bottom a:hover{text-decoration:underline}
[data-theme=dark] .mg-chrome-header{background:#14233c;color:#f4f7ff;border-color:#2f4566}
[data-theme=dark] .mg-chrome-desktop-nav>a{color:#d3def0}
[data-theme=dark] .mg-chrome-desktop-nav>a:hover,[data-theme=dark] .mg-chrome-desktop-nav>a.is-current{color:#ffdb80}
[data-theme=dark] .mg-chrome-search,[data-theme=dark] .mg-chrome-theme,[data-theme=dark] .mg-chrome-menu-toggle,[data-theme=dark] .mg-chrome-search-toggle{background:#233552;border-color:#465979;color:#e4ebf8}
[data-theme=dark] .mg-chrome-search input{color:#fff!important}
@media(max-width:1140px){.mg-chrome-header-row{gap:16px}.mg-chrome-desktop-nav{gap:13px}.mg-chrome-desktop-nav>a,.mg-chrome-desktop-nav>.mg-chrome-disabled{font-size:13px}.mg-chrome-brand img{width:150px}.mg-chrome-search{width:178px}}
@media(max-width:950px){.mg-chrome-wrap{width:min(100% - 30px,1180px)}.mg-chrome-header,.mg-chrome-header-row{min-height:66px}.mg-chrome-desktop-nav{display:none}.mg-chrome-menu-toggle{display:grid}.mg-chrome-actions{margin-left:auto}.mg-chrome-search{width:min(240px,36vw)}.mg-chrome-mobile-nav{position:absolute;top:100%;left:0;right:0;width:100%;max-height:min(75dvh,560px);overflow-y:auto;padding:13px max(15px,calc((100% - 1180px)/2));margin:0;border-top:1px solid #edf1f7;border-bottom:1px solid #d7e0ef;background:#fff;box-shadow:0 16px 32px rgba(17,30,54,.14);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;z-index:100}.mg-chrome-mobile-nav[hidden]{display:none!important}.mg-chrome-mobile-nav>a,.mg-chrome-mobile-nav>.mg-chrome-disabled{display:flex;align-items:center;min-height:44px;padding:11px 13px;border-radius:9px;background:#f4f7fd;color:#1a3a68;text-decoration:none;font-size:14px;font-weight:700}.mg-chrome-mobile-nav>a[aria-current=page]{background:#e1edff;color:#1256b5}.mg-chrome-mobile-nav>.mg-chrome-disabled{color:#8995a8;background:#f6f7f9}.mg-chrome-footer-grid{gap:20px}}
@media(max-width:630px){.mg-chrome-header-row{gap:9px}.mg-chrome-brand img{width:148px}.mg-chrome-actions{gap:7px}.mg-chrome-search{display:none;position:absolute;top:calc(100% + 7px);left:15px;right:15px;width:auto;max-width:none;z-index:105;box-shadow:0 12px 35px rgba(11,29,61,.18);background:#fff}.mg-chrome-search.is-open{display:flex}.mg-chrome-search-toggle{display:grid;width:44px;height:44px}.mg-chrome-menu-toggle{width:44px;height:44px}.mg-chrome-theme{width:42px;height:44px}.mg-chrome-footer{margin-top:35px}.mg-chrome-footer .mg-chrome-wrap{padding-top:35px}.mg-chrome-footer-top{align-items:flex-start;flex-direction:column;gap:20px;padding-bottom:26px}.mg-chrome-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px;padding:28px 0}.mg-chrome-footer-grid h2{font-size:13px}.mg-chrome-footer-grid a{font-size:12px}.mg-chrome-footer-brand p{font-size:13px}.mg-chrome-footer-cta{width:100%}.mg-chrome-footer-bottom{justify-content:flex-start}.mg-chrome-footer-bottom span:nth-child(2){display:none}}
@media(max-width:365px){.mg-chrome-mobile-nav{grid-template-columns:1fr}.mg-chrome-footer-grid{grid-template-columns:1fr 1fr}.mg-chrome-brand img{width:134px}.mg-chrome-theme{display:none}}
/* Legacy tool styles hide .search-wrap on phones. The common toggle must be
   able to reveal its search input on every tool, including the original WebP converter. */
@media(max-width:630px){.magoduck-tool .mg-chrome-header .mg-chrome-search.is-open{display:flex!important;position:absolute!important;top:calc(100% + 7px)!important;left:15px!important;right:15px!important;width:auto!important;min-width:0!important;max-width:none!important}}
@media(prefers-reduced-motion:reduce){.mg-chrome-header *, .mg-chrome-footer *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Actionable replacement for the previous disabled newsletter sign-up. */
.magoduck-blog .idu-blog-newsletter-form{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.magoduck-blog .idu-blog-newsletter-link{display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:44px;padding:11px 20px;border-radius:10px;background:#0b72e7;color:#fff;font-weight:800;font-size:14px;text-decoration:none;white-space:nowrap;transition:background .18s ease,transform .18s ease}
.magoduck-blog .idu-blog-newsletter-link:hover{background:#0959b6;color:#fff;transform:translateY(-2px)}
.magoduck-blog .idu-blog-newsletter-link:focus-visible{outline:3px solid #ffc439;outline-offset:3px}
@media(max-width:630px){.magoduck-blog .idu-blog-newsletter-form{justify-content:stretch}.magoduck-blog .idu-blog-newsletter-link{width:100%}}

/* Related-tool headings should never introduce an empty grid of unavailable cards. */
.magoduck-tool section:has(.related-grid:not(:has(*))){display:none}
.magoduck-inline-reference:not([href]) { color:inherit; text-decoration:none; cursor:text; }
.magoduck-inline-reference[hidden] { display:none !important; }
