/* PDFMaple workspace — shared, accessible desktop and mobile surfaces. */
:root{--bg:#f8f9fb;--text:#20252d;--muted:#626b77;--border:#e3e6eb;--primary:#c9253e;--primaryHover:#ac1e34;--primarySoft:#fff0f2;--radius:14px;--shadowSm:0 4px 16px #20252d08}
body{background:var(--bg);font-size:16px;line-height:1.55}
.container{max-width:1240px!important;padding-left:28px!important;padding-right:28px!important}
.topbar{background:#fff;border-bottom:1px solid var(--border);backdrop-filter:none}
.topbar-row{min-height:76px;gap:24px}.brandname{font-size:24px;letter-spacing:-1px}.brandmark{filter:none;width:34px;height:34px}
.nav{gap:22px}.nav a{font-size:14px;font-weight:600;color:var(--muted)}.nav a:hover{color:var(--primary)}
.btn{min-height:44px;border-radius:9px;font-size:14px;font-weight:650;box-shadow:none;transition:background .15s,transform .15s}
.btn.primary{background:var(--primary);border-color:var(--primary);box-shadow:none}.btn.primary:hover{background:var(--primaryHover);border-color:var(--primaryHover)}
.btn.ghost{background:#fff}.btn:disabled{opacity:.55;cursor:wait}.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c9253e66;outline-offset:3px}
.skip-link{position:fixed;top:-80px;left:16px;z-index:1000;padding:12px 20px;background:white;color:var(--primary);border:2px solid var(--primary);border-radius:8px}.skip-link:focus{top:12px}
.nav-toggle{display:none}.hero-eyebrow{font-size:12px;font-weight:750;letter-spacing:.16em;color:var(--primary);margin:0 0 18px}
body[data-page=home] .main>.page{padding-top:0}
body[data-page=home] .hero-grid.hero-grid--single{padding:52px 0 30px;display:block;overflow:visible}
body[data-page=home] .hero-grid::before{display:none}
body[data-page=home] .hero-left{max-width:800px;text-align:left;margin:0}
body[data-page=home] .hero-title{font-size:clamp(36px,4.5vw,58px);font-weight:750;letter-spacing:-.045em;line-height:1.08;margin:0 0 18px;max-width:850px}
.hero-title span{color:var(--primary)}
body[data-page=home] .hero-lede{font-size:17px;line-height:1.65;max-width:640px;margin:0}
body[data-page=home] .hero-actions{display:none}
body[data-page=home] .hero-trust{margin:20px 0 0;justify-content:flex-start;gap:12px;color:var(--muted);font-size:13px;flex-wrap:wrap}
.hero-trust-item{font-weight:500!important}.hero-trust-dot{color:#bdc3cc}
.tools-section{scroll-margin-top:95px;margin-top:0!important;padding-top:20px!important;border-top:1px solid var(--border)}
.tools-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px!important}.explorer-title{font-size:23px;letter-spacing:-.025em;margin:0;font-weight:700}
.tools-actions{min-width:0;flex:0 1 440px}.searchbox{background:#fff;border:1px solid #d9dee5;border-radius:10px;box-shadow:none;min-height:48px;flex:1}.searchbox input{font-size:14px;min-width:0;width:100%}
.chips{gap:8px;margin:0 0 24px!important;flex-wrap:wrap}.chip{font-size:14px;min-height:40px;border-radius:8px;padding:8px 15px;background:#fff;border:1px solid var(--border);font-weight:550;box-shadow:none}
.chip.active{background:#252b35;color:white;border-color:#252b35}.chip:hover:not(.active){border-color:#c9253e88;color:var(--primary)}
.cat{margin:0 0 28px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.cat-head{margin-bottom:4px}.cat-title{font-size:19px;font-weight:700;letter-spacing:-.02em}.cat-count{font-size:12px;color:var(--muted);background:transparent;border:0;padding:0}.cat>.muted{font-size:14px;margin-bottom:16px}
body[data-page=home] .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body[data-page=home] .tool-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:13px;min-height:170px;padding:22px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:none;transition:transform .18s,border-color .18s,box-shadow .18s}
body[data-page=home] .tool-card:hover{transform:translateY(-3px);border-color:#c9253e88;box-shadow:0 6px 18px #20252d09}
body[data-page=home] .tool-card::after{content:'↗';position:absolute;right:18px;top:18px;color:#a0a7b0;font-size:18px}
.tool-ico-box{width:42px!important;height:42px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;flex-shrink:0}.tool-ico-box svg{width:42px;height:42px}
.tool-card .tool-main{padding:0;margin:0;min-width:0}.tool-title{font-size:16px;line-height:1.35;font-weight:700;letter-spacing:-.015em}.tool-desc{font-size:14px!important;line-height:1.5;margin-top:6px;color:var(--muted);-webkit-line-clamp:3}
.home-more{padding-top:12px;padding-bottom:30px}.home-tool-directory{margin:0!important}.home-tool-directory .card{padding:28px;border:1px solid var(--border);box-shadow:none;background:white}.home-tool-directory-grid{gap:28px}.home-tool-group h3{font-size:16px}.home-tool-group p{font-size:14px}.home-tool-group a{color:var(--primary);font-size:14px}.home-tool-group ul{line-height:1.9}
.blog-featured{border-top:1px solid var(--border);padding-top:32px}.blog-card{box-shadow:none;border:1px solid var(--border);border-radius:12px;overflow:hidden}.blog-title{font-size:18px}.blog-excerpt{font-size:14px}.blog-readmore{font-size:14px}.footer{background:white;border-top:1px solid var(--border);margin-top:28px}.footer-row{padding-top:26px!important;padding-bottom:26px!important}.footer-links{gap:16px;flex-wrap:wrap}.footer-link{font-size:13px}
body[data-page=tool] main.tool-main{padding-top:24px}.tool-breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:26px}.backlink{display:none}.tool-head{display:flex;align-items:flex-start;gap:20px;margin:0 0 28px!important}.tool-head h1{font-size:clamp(28px,3.5vw,40px);line-height:1.15;letter-spacing:-.035em;margin:0 0 10px}.tool-head p{font-size:16px;max-width:720px}.tool-head>.tool-ico{background:#fff;border:1px solid var(--border);width:68px;height:68px;border-radius:16px;padding:12px;flex-shrink:0}.tool-meta{display:none}.tool-trustbar{font-size:13px;margin-top:12px;gap:12px}.tool-trustbar span{background:transparent;border:0;padding:0;color:var(--muted)}
.tool-layout{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:20px;align-items:start}.panel{border:1px solid var(--border);border-radius:14px;padding:26px;box-shadow:none;background:#fff}.panel h2{font-size:17px;display:flex;gap:10px;align-items:center;margin:0 0 22px}.step-number{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--primarySoft);color:var(--primary);font-size:13px}
.uploader{background:#fafbfc;border:1.5px dashed #cbd2dc;border-radius:12px;padding:24px}.uploader.drag-active{background:var(--primarySoft);border-color:var(--primary)}.uploader-top{align-items:start}.uploader-title{font-size:19px;font-weight:650}.uploader .pill{font-size:11px;white-space:nowrap;border:0;background:#eaf4ef;color:#36694f}.upload-inputs{margin-top:22px}.filebtn{position:relative;min-height:60px;gap:10px;border:1px solid #d8dee6;background:#fff;border-radius:10px;padding:14px;font-size:14px;cursor:pointer}.filebtn input{cursor:pointer}.filebtn:focus-within{outline:3px solid #c9253e66;outline-offset:2px}.filemeta{font-size:12px}.formgrid{margin-top:20px;gap:16px}.field>span{font-size:14px;font-weight:600}.field input,.field select{font-size:16px;min-height:44px;border:1px solid #d2d9e2;border-radius:8px;background:white;max-width:100%;min-width:0}.field .muted{font-size:13px;line-height:1.5}
.selected-files{display:grid;gap:8px;margin-top:12px}.selected-file{display:flex;align-items:center;gap:8px;font-size:13px;padding:10px 12px;border-radius:8px;background:white;border:1px solid var(--border)}.selected-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.file-action{background:white;border:1px solid var(--border);border-radius:5px;padding:4px 7px;cursor:pointer;min-height:30px;color:var(--muted)}.file-action:hover{color:var(--primary);border-color:var(--primary)}
#runBtn{min-height:52px;font-size:16px}#status{font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin-top:16px}#status[data-state=error]{color:#af1f35;background:#fff0f2;padding:12px;border-radius:8px}#status[data-state=processing]::before{content:'';display:inline-block;width:13px;height:13px;margin-right:9px;border:2px solid #cbd2dc;border-top-color:var(--primary);border-radius:50%;animation:pm-spin 1s linear infinite}#status[data-state=success]{color:#286348}
.download{display:flex;flex-direction:column;align-items:stretch;gap:15px;background:#f0f8f3;border:1px solid #d4e9dc;padding:18px;border-radius:10px;margin-top:16px}.download-title{font-size:17px}.download .muted{font-size:13px;overflow-wrap:anywhere}.download a{background:white!important;border:1px solid #b6d5c2;color:#245b40}.tool-learnmore .learnmore-title{font-size:23px}.tool-learnmore{font-size:16px}.tool-learnmore h2,.tool-learnmore h3{letter-spacing:-.02em}
@keyframes pm-spin{to{transform:rotate(360deg)}}
@media(min-width:1100px){#popularToolsContainer{grid-template-columns:repeat(5,minmax(0,1fr))}#popularToolsContainer .tool-card{padding:18px;min-height:173px}}
@media(max-width:1000px){.nav{gap:13px}.nav a{font-size:13px}.topbar-row{gap:12px}.auth{gap:6px}body[data-page=home] .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tool-layout{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}.panel{padding:20px}}
@media(max-width:780px){.container{padding-left:20px!important;padding-right:20px!important}.topbar-row{flex-wrap:wrap;min-height:68px;position:relative}.brandname{font-size:22px}.nav-toggle{display:inline-flex;margin-left:auto}.nav{display:none!important;order:4;width:100%;padding:12px 0;flex-wrap:wrap;gap:18px}.nav.is-open{display:flex!important}.auth #openSignup{display:none}.auth #openLogin{padding:8px 10px}.hero-trust{font-size:12px!important}body[data-page=home] .hero-grid.hero-grid--single{padding-top:32px;padding-bottom:25px}.tools-head{align-items:stretch;flex-direction:column;gap:16px}.tools-actions{flex:auto;width:100%}.tool-layout{grid-template-columns:1fr}.tool-head{gap:14px}.tool-head>.tool-ico{width:52px;height:52px;padding:8px}.tool-trustbar{flex-wrap:wrap}.home-tool-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.blog-grid--featured{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-row{align-items:flex-start;gap:15px}.home-tool-directory .card{padding:22px}.chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}.chip{flex-shrink:0}}
@media(max-width:560px){body[data-page=home] .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body[data-page=home] .tool-card{padding:16px;min-height:179px;gap:12px}.tool-desc{font-size:13px!important}.tool-title{font-size:15px}.tool-ico-box,.tool-ico-box svg{width:36px!important;height:36px!important}.hero-lede{font-size:16px!important}.hero-title{font-size:39px!important}.hero-eyebrow{font-size:11px}.explorer-title{font-size:21px}.home-tool-directory-grid{grid-template-columns:1fr}.blog-grid--featured{grid-template-columns:1fr}.panel{padding:18px}.uploader{padding:16px}.uploader-top{display:block}.uploader .pill{display:inline-block;margin-top:12px}.formgrid{grid-template-columns:1fr}.tool-head>.tool-ico{display:none}.footer-row{flex-direction:column}.tools-actions>.btn{padding:8px 12px}.tool-head h1{font-size:32px}.searchbox{min-width:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Match the existing theme's scoped selectors. */
body[data-page=home] .hero-left{align-items:flex-start}
body[data-page=home] .chip{border-radius:8px;box-shadow:none;font-weight:550;background:#fff}
body[data-page=home] .chip.active{background:#252b35;border-color:#252b35;color:#fff}
body[data-page=tool] .tool-trustbar span{padding:0;border:0;background:transparent;box-shadow:none;font-weight:500}
