/*
Theme Name: Online PDF Web Tools Theme
Version: 3.1.0
Description: Tema para portais de ferramentas PDF, artigos e páginas editoriais.
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: opwt-theme
License: GNU General Public License v2 or later
*/
:root {
  --accent: #22514a;
  --ink: #162a31;
  --muted: #4c6265;
  --line: #d8e3e0;
  --canvas: #f6faf8;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.62 system-ui, sans-serif; color: var(--ink); background: #fff; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #328675; outline-offset: 3px; }
.shell { width: min(100%, 1240px); margin-inline: auto; padding-inline: 24px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; min-height: 74px; padding-block: 12px; }
.brand { font-weight: 820; font-size: 1.2rem; letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.site-nav { margin-inline-start: auto; }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 0; }
.site-nav a { color: var(--ink); text-decoration: none; }
.search-form { display: flex; gap: 5px; max-width: 100%; }
.search-field { width: 150px; max-width: 100%; border: 1px solid var(--line); padding: 6px 10px; border-radius: 7px; }
.search-submit, .cta { border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: white; padding: 6px 11px; text-decoration: none; }
.hero { padding: clamp(40px, 7vw, 90px) 0 38px; background: linear-gradient(115deg, #e5f2eb, #f7faf8 70%); border-bottom: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.19; }
h1 { font-size: clamp(2rem, 6vw, 4.1rem); letter-spacing: -.055em; margin: 0 0 14px; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.03em; }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 0; }
.featured-tools { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.featured-tools:empty { display: none; }
.featured-link { background: white; padding: 8px 14px; border: 1px solid #aac4bc; border-radius: 8px; text-decoration: none; font-weight: 650; }
.featured-link:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.catalog { padding-block: 18px 35px; }
.catalog .opwt-category h2 { margin-top: 28px; }
.catalog .opwt-card { min-height: 95px; }
.page-main { padding-block: 38px 55px; }
.page-main:has(.opwt-editor) { width: min(100%, 1460px); }
.page-title { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.page-content > :where(p, ul, ol, h2, h3, .wp-block-quote) { max-width: 760px; }
.page-content > .opwt:not(.opwt-editor) { max-width: 900px; margin-inline: 0; }
.editorial { width: min(100%, 830px); margin: 35px auto; padding-inline: 24px; }
.editorial:empty { display: none; }
.editorial details { border-bottom: 1px solid var(--line); padding: 9px 0; }
.editorial summary { cursor: pointer; font-weight: 650; }
.article-list { padding-block: 16px 52px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.post-card { padding: 16px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; }
.post-card a { text-decoration: none; }
.post-card img { border-radius: 6px; }
.site-footer { background: #122a29; color: #e0eeeb; padding: 34px 0; }
.site-footer a { color: #e0eeeb; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.skip-link, .screen-reader-text { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.skip-link:focus { width: auto; height: auto; clip-path: none; padding: 8px; background: #fff; top: 5px; left: 6px; z-index: 100; }
.custom-logo { max-height: 44px; width: auto; }
.alignwide { max-width: 1180px; }
.wp-caption { max-width: 100%; }
@media (max-width: 600px) {
  .shell { padding-inline: 14px; }
  .header-inner { gap: 10px 14px; }
  .site-nav { margin-inline-start: 0; }
  .search-form { flex-basis: 100%; }
}

/* Zene document studio */
:root { --accent:#654de3; --ink:#191c37; --line:#e2e4ef; --canvas:#f5f6fb; --muted:#62677d; }
body { background:#f7f8fc; }
.shell { max-width:1240px; }
.site-header { background:#fff; border-bottom:1px solid #daddeb; }
.brand { display:inline-flex;align-items:center;gap:10px;font-size:1.45rem; }
.brand::before { content:"";width:30px;height:30px;border-radius:9px;background:linear-gradient(140deg,#bba7ff 0 27%,#7560f5 28% 50%,#3d37ac 51% 73%,#212452 74%); }
.site-nav a { font-weight:600;font-size:.89rem; }
.search-field { border-radius:8px;background:#f5f5fb; }
.hero { position:relative;isolation:isolate;overflow:hidden;color:white;background:radial-gradient(ellipse at 83% 54%,#544382 0,transparent 44%),linear-gradient(113deg,#10142a 5%,#242044 65%,#302749);padding:0;border:0; }
.hero::before { content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#c2b3ff45 .8px,transparent .8px);background-size:18px 18px;mask-image:linear-gradient(95deg,transparent 20%,black); }
.hero-inner { display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.85fr);align-items:center;gap:35px;min-height:390px;padding-block:50px; }
.hero-copy h1 { max-width:750px;font-size:clamp(2.8rem,5.7vw,5rem);font-weight:740;letter-spacing:-.065em;line-height:1.02; }
.hero-copy h1 em { color:#c6b5ff;font-style:normal; }
.hero-copy p { color:#d2d2e4;font-size:1.1rem;line-height:1.55;max-width:520px; }
.featured-tools { gap:8px; }
.featured-link { background:#ffffff0c;color:#f1eeff;border-color:#ffffff38;border-radius:9px;font-size:.86rem; }
.featured-link:first-child { background:#dbceff;color:#26183f;border-color:#dbceff; }
.featured-link:hover { box-shadow:0 0 0 2px #b6a4ff; }
.paper-art { position:relative;height:270px;max-width:410px;width:100%;margin:auto; }
.orbit {position:absolute;inset:6% 0;border:1px solid #c9bfff32;border-radius:50%;transform:rotate(-26deg);}
.art-sheet { width:143px;height:185px;position:absolute;top:15%;left:35%;border-radius:10px;box-shadow:0 14px 24px #0c0b1a44; }
.art-sheet.back { background:#9877fc;transform:translate(24px,-10px) rotate(21deg); }
.art-sheet.mid { background:linear-gradient(130deg,#9395ff,#7c7be6);transform:translate(-21px,13px) rotate(-21deg); }
.art-sheet.front { background:linear-gradient(128deg,#fff,#e9e5ff);transform:rotate(-8deg);padding:29px 19px;color:#28233e; }
.art-sheet b { font-size:36px;letter-spacing:-3px;line-height:1.1; }
.art-sheet i {display:block;height:5px;background:#bdb5d8;margin:9px 0;border-radius:3px; }
.art-sheet i:nth-of-type(2) {width:75%} .art-sheet i:nth-of-type(3) {width:48%}
.art-sheet span { display:block;background:#6646d4;height:20px;width:59px;margin-top:20px;border-radius:5px; }
.art-pencil { position:absolute;top:51%;left:66%;width:18px;height:115px;background:linear-gradient(90deg,#a9a4f8,#f7eaff 50%,#9175e4 52%);transform:rotate(38deg);border-radius:5px 5px 0 0;box-shadow:3px 3px 9px #28214144; }
.art-pencil::after {content:"";position:absolute;bottom:-15px;border-top:16px solid #ead8c1;border-inline:9px solid transparent;}
.catalog { padding-block:36px 54px; }
.catalog-title,.article-list>h2 {font-size:clamp(1.7rem,3vw,2.5rem);margin:0 0 20px;}
.opwt { --opwt-accent:#644ed9;--opwt-ink:#23243f;--opwt-line:#dedfee; }
.catalog .opwt-search { max-width:none; font-size:.86rem;font-weight:650;color:#4a5066; }
.catalog .opwt-search input { width:100%;padding:13px 16px;border-radius:12px;background:white;box-shadow:0 3px 8px #26274006; }
.studio-categories { display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 26px; }
.studio-categories a { font-size:.8rem;color:#504673;border:1px solid #dcd9eb;background:#f1eff8;padding:5px 11px;border-radius:20px;text-decoration:none; }
.opwt-category { --tile:#ede9ff;--symbol:#624ec4;scroll-margin-top:20px; }
.opwt-category:nth-of-type(4n+2) {--tile:#e1efff;--symbol:#356ab2;}
.opwt-category:nth-of-type(4n+3) {--tile:#ffe8e2;--symbol:#a9533a;}
.opwt-category:nth-of-type(4n+4) {--tile:#daf4ed;--symbol:#247961;}
.opwt-category .opwt-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.opwt-category .opwt-card {position:relative; min-height:130px;padding:18px;border-radius:15px;border-color:#e1e2ee;box-shadow:0 4px 13px #282a5208;}
.opwt-card>.dashicons {color:var(--symbol);background:var(--tile);width:34px;height:34px;padding:7px;border-radius:10px;}
.opwt-card::after {content:"↗";position:absolute;right:16px;top:13px;color:#73768c;}
.opwt-category .opwt-card:hover {border-color:#aa9cdd;background:#fff;box-shadow:0 8px 22px #51488b18;}
.opwt .opwt-card span:not(.dashicons) {color:#5c6077;}
.post-card {background:#fff;border-radius:16px;overflow:hidden;}
.post-card img {width:100%;aspect-ratio:16/9;object-fit:cover;}
.site-footer {background:#18192e;}
.page-heading nav {font-size:.8rem;color:#636981;margin:0 0 14px;}
.page-heading nav span {margin:0 6px;}
.page-heading .page-title {margin:0;letter-spacing:-.055em;}
.page-content>.opwt:not(.opwt-editor) {max-width:none;}
.page-content .opwt-drop {border:1px dashed #a99eda;border-radius:18px;background:radial-gradient(ellipse at top,#f1edff,transparent 69%),#fff;padding:25px 16px;box-shadow:0 7px 30px #24275209;}
.opwt-drop>.dashicons {width:40px;height:40px;padding:9px;background:#e8e2ff;color:#6651c7;border-radius:12px;margin-bottom:8px;}
.opwt-drop label {font-weight:650;}
.opwt-drop input::file-selector-button {border:none;border-radius:7px;color:#fff;background:#5849bd;font:inherit;padding:7px 12px;margin-right:9px;cursor:pointer;}
.opwt-editor:has(.opwt-studio:not([hidden])) .opwt-drop {display:flex;gap:14px;align-items:center;text-align:left;padding:10px 15px;flex-wrap:wrap;border-style:solid;}
.opwt-editor:has(.opwt-studio:not([hidden])) .opwt-drop p,.opwt-editor:has(.opwt-studio:not([hidden])) .opwt-drop small {display:none;}
.opwt-editor:has(.opwt-studio:not([hidden])) .opwt-drop label {display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:.85rem;}
.opwt-editor:has(.opwt-studio:not([hidden])) .opwt-drop>.dashicons {margin:0;}
.opwt-editor .opwt-studio {border-color:#cfd1e2;border-radius:16px;box-shadow:0 12px 40px #25224c14;}
.opwt-studio .opwt-toolbar {background:white;}
.opwt-toolbar .opwt-tool-row {border-color:#e2e2ec;}
.opwt-toolbar .opwt-tool-row:first-child {background:#24253e;align-items:center;}
.opwt-toolbar .opwt-tool-row:first-child button {background:#34354e;color:#fff;border-color:#484960;}
.opwt-toolbar .opwt-tool-row:first-child button:last-child {display:inline-flex;gap:7px;align-items:center;background:#d7ccff;border-color:#d7ccff;color:#292049;font-weight:700;}
.opwt-toolbar .opwt-tool-row:nth-child(2) {display:flex;flex-wrap:nowrap;overflow:auto;padding:8px;gap:4px;}
.opwt-toolbar .opwt-tool-row:nth-child(2) button {display:grid;align-content:center;justify-items:center;gap:4px;flex:1 0 auto;font-size:.73rem;white-space:nowrap;border:1px solid transparent;background:white;padding:6px 9px;}
.opwt-toolbar .opwt-tool-row:nth-child(2) button[aria-pressed=true] {color:#5137af;background:#eee9ff;border-color:#c7b9ee;}
.opwt-toolbar .dashicons {width:17px;height:17px;font-size:17px;}
.opwt-studio .opwt-thumbs,.opwt-studio .opwt-inspector {background:#fafaff;}
.opwt-studio .opwt-stage {background:#e0e1eb;}
.opwt-studio .opwt-page-list button[aria-current=page] {background:#e8e3fb;color:#342070;border-color:#8c79d1;}
.opwt-editorial {background:white;padding:clamp(18px,4vw,42px);border:1px solid var(--line);border-radius:20px;}
.opwt-editorial nav {background:#f2effc;}
.opwt-editorial details {padding:12px 0;}
@media(max-width:900px){.opwt-category .opwt-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.hero-inner{min-height:320px;}}
@media(max-width:620px){.hero-inner{grid-template-columns:1fr;min-height:0;padding-block:36px;gap:0;}.paper-art{display:none;}.hero-copy p{font-size:1rem;}.hero-copy h1{font-size:2.9rem;}.featured-link{font-size:.79rem;}.opwt-category .opwt-card{padding:13px;}.opwt .opwt-card span:not(.dashicons){font-size:.79rem;}.opwt-editor-body{min-width:0;}.opwt-stage{min-width:0;}.page-heading .page-title{font-size:2.25rem;}.header-inner .search-form{display:none;}.header-inner{min-height:58px;}.site-nav{margin-left:auto;}}
@media(max-width:350px){.opwt-category .opwt-grid{grid-template-columns:1fr;}}
.search-submit .dashicons {vertical-align:middle;font-size:18px;}
.opwt-card::after {content:"↗︎";}
@media(max-width:620px){.header-inner .search-form{display:flex;flex-basis:auto;}.header-inner .search-field{width:108px;}.header-inner{row-gap:8px;}}
.opwt-toolbar .studio-tool-icon {width:19px;height:19px;display:block;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.studio-case p,.studio-routes p {line-height:1.65;}
.studio-related {display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none;}
.studio-related a {display:block;padding:6px 12px;border-radius:8px;background:#f1eefc;text-decoration:none;}
.studio-routes {margin:0 auto 42px;padding:clamp(18px,3vw,32px);background:#fff;border:1px solid var(--line);border-radius:18px;}
.studio-routes h2,.studio-routes h3 {margin:0 0 10px;}
.studio-routes>div {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:24px;margin-top:22px;}
.studio-routes p {margin:0;color:var(--muted);}
