:root{
  --orange:#ff6a00;--orange-dark:#e95700;--orange-soft:#fff3e8;--orange-pale:#fff9f4;
  --ink:#1d1a17;--muted:#746e68;--line:#ece5df;--bg:#fbfaf8;--card:#ffffff;
  --green:#12835b;--red:#bf3b2f;--shadow:0 18px 55px rgba(60,36,18,.09);--shadow-sm:0 8px 28px rgba(60,36,18,.07);
  --radius:24px;--max:1180px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.container{width:min(var(--max),calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:60;background:rgba(251,250,248,.94);backdrop-filter:blur(18px);border-bottom:1px solid rgba(236,229,223,.9)}.nav{height:72px;display:flex;align-items:center;gap:28px}.brand{display:flex!important;align-items:center;gap:10px;font-weight:950;font-size:23px;letter-spacing:-.8px;color:#201c19!important;margin:0!important}.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--orange);display:grid;place-items:center;box-shadow:0 9px 22px rgba(255,106,0,.22)}.brand-mark svg{width:25px;height:25px}.nav-links{display:flex;gap:23px;align-items:center;margin-left:auto;font-size:14px;font-weight:750}.nav-links a{margin:0}.nav-links a:hover{color:var(--orange)}.nav-cta{padding:11px 16px!important;background:#201c19!important;color:#fff!important;border-radius:12px}.menu-btn{display:none;margin-left:auto;border:1px solid var(--line);background:#fff;border-radius:12px;width:42px;height:42px;font-size:20px;cursor:pointer}
.home-popular{padding:58px 0 38px;background:linear-gradient(180deg,#fff 0%,#fbfaf8 100%);border-bottom:1px solid var(--line)}.home-title-row{display:flex;justify-content:space-between;gap:28px;align-items:end;margin-bottom:24px}.home-title-row .label{display:inline-flex;align-items:center;gap:8px;color:var(--orange-dark);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px}.home-title-row h1{font-size:clamp(32px,4.2vw,52px);line-height:1.05;letter-spacing:-2.1px;margin:0}.home-title-row p{max-width:480px;margin:0;color:var(--muted);font-size:15px}.popular-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.popular-card{position:relative;min-height:218px;background:#fff;border:1px solid var(--line);border-radius:26px;padding:24px;overflow:hidden;transition:.23s ease;box-shadow:0 1px 0 rgba(20,15,10,.02)}.popular-card:before{content:"";position:absolute;right:-45px;bottom:-65px;width:160px;height:160px;border-radius:50%;background:var(--orange-soft);transition:.25s ease}.popular-card:hover{transform:translateY(-4px);border-color:#ffc499;box-shadow:var(--shadow)}.popular-card:hover:before{transform:scale(1.2)}.popular-card .pop-icon{position:relative;width:58px;height:58px;border-radius:17px;background:var(--orange);color:#fff;display:grid;place-items:center;box-shadow:0 10px 22px rgba(255,106,0,.2);margin-bottom:24px}.popular-card .pop-icon svg{width:31px;height:31px}.popular-card h2{position:relative;margin:0 0 7px;font-size:20px;letter-spacing:-.45px}.popular-card p{position:relative;margin:0;color:var(--muted);font-size:13px;max-width:220px}.popular-card .go{position:absolute;right:20px;top:20px;width:34px;height:34px;border-radius:11px;background:#f6f3f0;display:grid;place-items:center;font-weight:900;color:#7c756f}
.section{padding:58px 0}.section.alt{background:#fff}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}.section-head h2{font-size:32px;letter-spacing:-1.2px;margin:0}.section-head p{margin:7px 0 0;color:var(--muted);font-size:14px}.text-link{font-weight:850;color:var(--orange-dark);font-size:14px}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.category-card,.tool-card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:19px;transition:.22s ease;position:relative;overflow:hidden}.category-card:hover,.tool-card:hover{transform:translateY(-3px);border-color:#ffc59c;box-shadow:var(--shadow-sm)}.category-card .icon,.tool-icon,.page-icon{width:50px;height:50px;border-radius:15px;background:var(--orange-soft);display:grid;place-items:center;color:var(--orange-dark);margin-bottom:16px;border:1px solid #ffe1ca}.icon svg,.tool-icon svg,.page-icon svg{width:28px;height:28px}.category-card h3,.tool-card h3{margin:0 0 6px;font-size:16px;letter-spacing:-.15px}.category-card p,.tool-card p{margin:0;color:var(--muted);font-size:12.5px}.count{margin-top:15px;font-size:12px;font-weight:850;color:var(--orange-dark)}.tools-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.tool-card{min-height:178px}.tool-card .arrow{position:absolute;right:15px;top:15px;width:30px;height:30px;border-radius:10px;background:#f7f4f1;display:grid;place-items:center;color:#8c847d;font-size:13px}.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.feature{border:1px solid var(--line);border-radius:20px;padding:24px;background:#fff}.feature b{display:block;margin-bottom:5px}.feature p{margin:0;color:var(--muted);font-size:13px}
.breadcrumbs{font-size:12.5px;color:#8c857e;padding-top:18px}.breadcrumbs a:hover{color:var(--orange)}.tool-hero{padding:42px 0 20px;text-align:center}.tool-hero .page-icon{margin:0 auto 14px;width:64px;height:64px;border-radius:19px;background:var(--orange);color:#fff;border:0;box-shadow:0 10px 26px rgba(255,106,0,.19)}.tool-hero .page-icon svg{width:34px;height:34px}.tool-hero h1{font-size:clamp(33px,4.8vw,49px);line-height:1.06;letter-spacing:-2px;margin:0 0 9px}.tool-hero p{color:var(--muted);max-width:650px;margin:0 auto;font-size:14.5px}.workspace{padding:18px 0 58px}.tool-shell{max-width:880px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow);padding:28px}.dropzone{border:1.7px dashed #ffb980;background:var(--orange-pale);border-radius:20px;padding:46px 22px;text-align:center;cursor:pointer;transition:.2s}.dropzone:hover,.dropzone.drag{background:#fff1e5;border-color:var(--orange)}.dropzone .big{width:66px;height:66px;border-radius:19px;background:#fff;color:var(--orange);border:1px solid #ffd7b8;display:grid;place-items:center;margin:0 auto 14px;box-shadow:0 8px 20px rgba(112,63,26,.06)}.dropzone .big svg{width:35px;height:35px}.dropzone h3{margin:0 0 5px;font-size:19px}.dropzone p{margin:0;color:var(--muted);font-size:13.5px}.dropzone .formats{margin-top:8px;font-size:11px;color:#9a8f85}.file-list{margin-top:14px;display:grid;gap:8px}.file-row{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:13px;padding:10px 12px;background:#fff}.file-row .file-dot{width:36px;height:36px;border-radius:10px;background:var(--orange-soft);display:grid;place-items:center;color:var(--orange);font-weight:950;font-size:11px}.file-meta{min-width:0;flex:1}.file-meta b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.file-meta small{color:var(--muted);font-size:11px}.remove-file{border:0;background:#f5f2ef;border-radius:9px;width:32px;height:32px;cursor:pointer}.settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:19px 0}.settings:empty{display:none}.settings .field.full{grid-column:1/-1}.field{display:grid;gap:6px}.field label{font-size:11.5px;font-weight:850;color:#665f59}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 12px;outline:0;background:#fff;min-height:45px}.field textarea{min-height:108px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#ffa05a;box-shadow:0 0 0 3px rgba(255,106,0,.08)}.field .hint{font-size:10.5px;color:#948a82}.process-btn{width:100%;border:0;background:var(--orange);color:#fff;border-radius:13px;padding:14px 18px;font-weight:900;cursor:pointer;box-shadow:0 10px 23px rgba(255,106,0,.2);transition:.2s}.process-btn:hover{background:var(--orange-dark);transform:translateY(-1px)}.process-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.status{margin-top:13px;padding:12px 13px;border-radius:11px;background:#f6f3f0;color:#5f5953;font-size:12.5px;display:none;white-space:pre-wrap;overflow-wrap:anywhere}.status.show{display:block}.status.success{background:#edf9f3;color:#176445}.status.error{background:#fff0ee;color:#9e2f26}.status.info{background:#fff6ed;color:#88430b}.result-box{margin-top:14px;border:1px solid var(--line);border-radius:14px;padding:14px;background:#fcfbfa;display:none}.result-box.show{display:block}.result-box pre{white-space:pre-wrap;word-break:break-word;margin:0;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;max-height:330px;overflow:auto}.tool-note{margin-top:12px;padding:11px 12px;border-radius:11px;background:#f9f7f5;color:#746d66;font-size:11.5px}.info-section{padding:10px 0 58px}.content-card{max-width:880px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px}.content-card h2{margin-top:0;font-size:24px}.content-card p,.content-card li{color:#6f6862;font-size:13.5px}.related{padding:52px 0}
.footer{margin-top:42px;border-top:1px solid var(--line);background:#211d1a;color:#fff}.footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:34px;padding:50px 0}.footer .brand{color:#fff!important}.footer .brand-mark{box-shadow:none}.footer p{color:#bdb4ad;font-size:12.5px;max-width:330px}.footer h4{margin:0 0 11px;font-size:13px}.footer a{display:block;color:#bdb4ad;font-size:12.5px;margin:8px 0}.footer a:hover{color:#fff}.copyright{border-top:1px solid #3b3530;padding:17px 0;color:#948a82;font-size:11.5px;display:flex;justify-content:space-between;gap:15px}.page-main{padding:48px 0}.page-main .prose{max-width:880px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px}.prose h1{font-size:40px;letter-spacing:-1.6px;margin-top:0}.prose h2{margin-top:28px}.prose p,.prose li{color:#6f6862}.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:18px}.contact-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px}.notice{background:#fff6ed;border:1px solid #ffd3b1;border-radius:13px;padding:12px 13px;color:#79400e;font-size:12.5px}.tool-search-results{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.empty{padding:28px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:17px}.mobile-tools{display:none}.all-tools-search{max-width:620px;margin:0 0 26px}.all-tools-search input{width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;outline:0}.all-tools-search input:focus{border-color:#ffa05a;box-shadow:0 0 0 3px rgba(255,106,0,.08)}
@media(max-width:980px){.popular-grid,.category-grid,.tools-grid{grid-template-columns:repeat(2,1fr)}.nav-links{display:none}.menu-btn{display:block}.nav-links.open{display:flex;position:absolute;left:20px;right:20px;top:62px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:15px;flex-direction:column;align-items:stretch}.feature-strip{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.contact-grid{grid-template-columns:1fr}.tool-search-results{grid-template-columns:repeat(2,1fr)}.home-title-row{align-items:flex-start;flex-direction:column}.home-title-row p{max-width:650px}}
@media(max-width:640px){.container{width:min(100% - 24px,var(--max))}.nav{height:62px}.brand{font-size:19px}.brand-mark{width:35px;height:35px;border-radius:11px}.home-popular{padding:34px 0 28px}.home-title-row{margin-bottom:18px;gap:10px}.home-title-row h1{font-size:32px;letter-spacing:-1.3px}.home-title-row p{font-size:13px}.popular-grid{grid-template-columns:1fr 1fr;gap:10px}.popular-card{min-height:174px;padding:16px;border-radius:18px}.popular-card .pop-icon{width:46px;height:46px;border-radius:13px;margin-bottom:18px}.popular-card .pop-icon svg{width:25px;height:25px}.popular-card .go{right:12px;top:12px;width:29px;height:29px}.popular-card h2{font-size:16px}.popular-card p{font-size:11.5px}.section{padding:38px 0}.section-head{align-items:flex-start;flex-direction:column;margin-bottom:18px}.section-head h2{font-size:27px}.category-grid,.tools-grid,.tool-search-results{grid-template-columns:1fr}.category-card,.tool-card{min-height:auto;padding:16px}.tool-shell{padding:15px;border-radius:19px}.dropzone{padding:31px 13px}.settings{grid-template-columns:1fr}.settings .field.full{grid-column:auto}.tool-hero{padding-top:30px}.tool-hero h1{font-size:34px;letter-spacing:-1.4px}.footer-grid{grid-template-columns:1fr;padding:36px 0}.copyright{flex-direction:column}.prose h1{font-size:32px}.page-main .prose{padding:22px}.mobile-tools{display:block;white-space:nowrap;overflow:auto;padding-bottom:8px}.mobile-tools a{display:inline-block;background:#fff;border:1px solid var(--line);padding:8px 11px;border-radius:999px;margin-right:5px;font-size:11.5px;font-weight:800}}
.eyebrow{display:inline-flex;align-items:center;gap:7px;background:var(--orange-soft);color:var(--orange-dark);border:1px solid #ffd9bd;padding:7px 11px;border-radius:999px;font-size:11.5px;font-weight:900;letter-spacing:.02em}.search-wrap{max-width:700px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:7px;display:flex;gap:7px;box-shadow:var(--shadow-sm)}.search-wrap input{flex:1;min-width:0;border:0;outline:0;padding:10px 11px;background:transparent;font-size:14px}.search-wrap button{border:0;background:var(--orange);color:#fff;padding:0 18px;border-radius:10px;font-weight:850;cursor:pointer}.search-wrap button:hover{background:var(--orange-dark)}
@media(max-width:640px){.search-wrap{width:100%}.search-wrap button{padding:0 13px}.eyebrow{font-size:10.5px}}


/* === TopaPDF mobile visibility + unified tool-card update (2026-09-10) === */
html,body{max-width:100%;overflow-x:hidden}img,canvas,video{max-width:100%;height:auto}svg{max-width:100%}.popular-grid,.tools-grid,.category-grid,.tool-search-results{min-width:0}.popular-grid>* ,.tools-grid>* ,.category-grid>* ,.tool-search-results>*{min-width:0}

/* Every tool card now follows the same visual language as Most Popular. */
.tool-card{position:relative;min-height:218px;background:#fff;border:1px solid var(--line);border-radius:26px;padding:24px;overflow:hidden;transition:.23s ease;box-shadow:0 1px 0 rgba(20,15,10,.02)}
.tool-card:before{content:"";position:absolute;right:-45px;bottom:-65px;width:160px;height:160px;border-radius:50%;background:var(--orange-soft);transition:.25s ease;pointer-events:none}
.tool-card:hover{transform:translateY(-4px);border-color:#ffc499;box-shadow:var(--shadow)}.tool-card:hover:before{transform:scale(1.2)}
.tool-card .tool-icon{position:relative;width:58px;height:58px;border-radius:17px;background:var(--orange);color:#fff;display:grid;place-items:center;box-shadow:0 10px 22px rgba(255,106,0,.2);margin-bottom:24px;border:0}
.tool-card .tool-icon svg{width:31px;height:31px}.tool-card h3{position:relative;margin:0 0 7px;font-size:20px;line-height:1.22;letter-spacing:-.45px}.tool-card p{position:relative;margin:0;color:var(--muted);font-size:13px;max-width:230px}.tool-card .arrow{z-index:2;right:20px;top:20px;width:34px;height:34px;border-radius:11px;background:#f6f3f0;color:#7c756f;font-size:14px}

/* Footer: two clear mobile menu rows — PDF Tools and Company. */
.footer-grid{grid-template-columns:1.25fr 1fr 1.45fr;align-items:start}.footer-menu{min-width:0}.footer-links{display:block}.footer-brand p{margin-bottom:0}

@media(max-width:980px){
  .footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}.footer-company{min-width:0}
}

@media(max-width:640px){
  body{font-size:15px}.container{width:calc(100% - 24px);max-width:var(--max)}
  .site-header{backdrop-filter:blur(12px)}.nav{height:62px;gap:12px}.nav .brand{min-width:0}.menu-btn{flex:0 0 42px}
  .nav-links.open{left:12px;right:12px;top:56px;max-height:calc(100vh - 72px);overflow-y:auto;z-index:100}

  /* Force the four essential cards to render on phones even if inherited CSS changes. */
  #popularTop{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;visibility:visible!important;opacity:1!important;height:auto!important;max-height:none!important;overflow:visible!important}
  #popularTop .popular-card{display:block!important;visibility:visible!important;opacity:1!important;min-width:0!important}
  .popular-card{min-height:184px;padding:16px;border-radius:19px}.popular-card .pop-icon{width:48px;height:48px;border-radius:14px;margin-bottom:20px}.popular-card .pop-icon svg{width:26px;height:26px}.popular-card .go{right:12px;top:12px;width:30px;height:30px}.popular-card h2{font-size:16px;line-height:1.2;padding-right:4px}.popular-card p{font-size:11.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

  /* Tool grids remain easy to read on phones while keeping the exact card styling. */
  .tools-grid,.tool-search-results{grid-template-columns:1fr!important;gap:12px}.tool-card{min-height:176px;padding:17px;border-radius:19px}.tool-card .tool-icon{width:48px;height:48px;border-radius:14px;margin-bottom:19px}.tool-card .tool-icon svg{width:26px;height:26px}.tool-card h3{font-size:17px;line-height:1.25;padding-right:36px}.tool-card p{font-size:12px;line-height:1.45;max-width:none}.tool-card .arrow{right:12px;top:12px;width:30px;height:30px}
  .category-grid{grid-template-columns:1fr!important;gap:12px}.category-card{min-height:0}

  .tool-shell,.content-card,.page-main .prose,.contact-card{width:100%;max-width:100%}.dropzone{overflow:hidden}.file-row{min-width:0}.file-meta{min-width:0}.field input,.field select,.field textarea{font-size:16px}.process-btn{min-height:48px}.settings{min-width:0}.settings>*{min-width:0}

  .footer{margin-top:28px}.footer-grid{display:block;padding:32px 0 22px}.footer-brand{padding-bottom:20px}.footer-brand .brand{font-size:20px}.footer-brand p{font-size:12px;max-width:100%;margin:10px 0 0}
  .footer-menu{border-top:1px solid #3b3530;padding:18px 0}.footer-menu h4{font-size:14px;margin:0 0 11px;color:#fff}.footer-links{display:flex;flex-wrap:wrap;gap:8px 16px}.footer .footer-links a{display:inline-flex;margin:0;color:#c8c0b9;font-size:12px;line-height:1.4;white-space:nowrap}
  .copyright{padding:16px 0 20px;gap:6px;font-size:11px;line-height:1.5}
}

@media(max-width:359px){
  #popularTop{grid-template-columns:1fr!important}.popular-card{min-height:168px}.home-title-row h1{font-size:29px}.brand{font-size:18px}.brand-mark{width:34px;height:34px}
}


/* ===== TopaPDF card + 3-row mobile footer refresh (2026-09-10) ===== */
/* Category cards now use the same visual system as Most Popular cards. */
.category-card{
  position:relative;min-height:218px;background:#fff;border:1px solid var(--line);border-radius:26px;
  padding:24px;overflow:hidden;transition:.23s ease;box-shadow:0 1px 0 rgba(20,15,10,.02)
}
.category-card:before{
  content:"";position:absolute;right:-45px;bottom:-65px;width:160px;height:160px;border-radius:50%;
  background:var(--orange-soft);transition:.25s ease;pointer-events:none
}
.category-card:after{
  content:"↗";position:absolute;right:20px;top:20px;width:34px;height:34px;border-radius:11px;
  background:#f6f3f0;display:grid;place-items:center;font-weight:900;color:#7c756f;z-index:2
}
.category-card:hover{transform:translateY(-4px);border-color:#ffc499;box-shadow:var(--shadow)}
.category-card:hover:before{transform:scale(1.2)}
.category-card .icon{
  position:relative;width:58px;height:58px;border-radius:17px;background:var(--orange);color:#fff;
  display:grid;place-items:center;box-shadow:0 10px 22px rgba(255,106,0,.2);margin-bottom:24px;border:0;z-index:1
}
.category-card .icon svg{width:31px;height:31px}
.category-card h3{position:relative;margin:0 0 7px;font-size:20px;line-height:1.22;letter-spacing:-.45px;z-index:1;padding-right:28px}
.category-card p{position:relative;margin:0;color:var(--muted);font-size:13px;max-width:230px;z-index:1}
.category-card .count{position:relative;z-index:1;margin-top:14px;font-size:12px;font-weight:850;color:var(--orange-dark)}

/* Footer desktop/tablet: brand + PDF Tools + Company + Legal. */
.footer-grid{grid-template-columns:1.35fr .9fr .9fr .9fr;gap:32px;align-items:start}
.footer-legal{min-width:0}

@media(max-width:980px){
  .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .footer-brand{grid-column:1/-1}
}

@media(max-width:640px){
  /* Every tool/category card is two per row on mobile, matching Most Popular. */
  .popular-grid,.tools-grid,.category-grid,.tool-search-results{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important
  }
  .popular-card,.tool-card,.category-card{
    min-width:0!important;min-height:184px;padding:16px;border-radius:19px;overflow:hidden
  }
  .popular-card .pop-icon,.tool-card .tool-icon,.category-card .icon{
    width:48px;height:48px;border-radius:14px;margin-bottom:20px
  }
  .popular-card .pop-icon svg,.tool-card .tool-icon svg,.category-card .icon svg{width:26px;height:26px}
  .popular-card .go,.tool-card .arrow,.category-card:after{
    right:12px;top:12px;width:30px;height:30px;border-radius:10px;font-size:13px
  }
  .popular-card h2,.tool-card h3,.category-card h3{
    font-size:16px;line-height:1.2;letter-spacing:-.2px;padding-right:20px;overflow-wrap:anywhere
  }
  .popular-card p,.tool-card p,.category-card p{
    font-size:11.5px;line-height:1.4;max-width:none;display:-webkit-box;-webkit-line-clamp:3;
    -webkit-box-orient:vertical;overflow:hidden
  }
  .category-card .count{font-size:11px;margin-top:10px}

  /* Footer becomes three clear menu rows below the brand. */
  .footer-grid{display:block;padding:32px 0 22px}
  .footer-brand{padding-bottom:20px}
  .footer-menu{display:block;width:100%;border-top:1px solid #3b3530;padding:18px 0}
  .footer-menu h4{font-size:14px;margin:0 0 11px;color:#fff}
  .footer-links{display:flex;flex-wrap:wrap;gap:8px 16px}
  .footer .footer-links a{display:inline-flex;margin:0;color:#c8c0b9;font-size:12px;line-height:1.4;white-space:normal}
}

@media(max-width:359px){
  /* Keep two cards per row even on 320px-class phones. */
  #popularTop,.popular-grid,.tools-grid,.category-grid,.tool-search-results{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important
  }
  .popular-card,.tool-card,.category-card{min-height:170px;padding:13px;border-radius:17px}
  .popular-card .pop-icon,.tool-card .tool-icon,.category-card .icon{width:42px;height:42px;border-radius:12px;margin-bottom:15px}
  .popular-card .go,.tool-card .arrow,.category-card:after{right:9px;top:9px;width:27px;height:27px}
  .popular-card h2,.tool-card h3,.category-card h3{font-size:14px;padding-right:15px}
  .popular-card p,.tool-card p,.category-card p{font-size:10.5px;-webkit-line-clamp:3}
  .category-card .count{font-size:10px;margin-top:8px}
}
