/* Portal Editorial Tech — notícia (single), vídeo superior, corpo editorial e extras. */

/* ---------- Vídeo superior ---------- */
.pet-topvideo{background:#000}
.pet-topvideo__inner{position:relative;margin:0 auto}
.pet-topvideo__inner--v{width:min(264px,56vw)}
.pet-topvideo__inner--h{width:min(880px,100%)}
.pet-topvideo .pet-player{aspect-ratio:9/16;max-height:78vh}
.pet-topvideo__inner--h .pet-player{aspect-ratio:16/9}
.pet-topvideo__dur{position:absolute;right:8px;bottom:8px;color:#fff;font-size:13px;pointer-events:none;text-shadow:0 1px 3px #000}

/* ---------- Cabeçalho da matéria ---------- */
.pet-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;padding:22px 0 6px;font-size:17px;color:var(--text)}
.pet-crumbs__lead{font-weight:500}
.pet-crumbs__dot{opacity:.7}
.pet-crumbs__list{list-style:none;display:flex;flex-wrap:wrap;margin:0;padding:0}
.pet-crumbs__item+.pet-crumbs__item::before{content:"/";margin:0 .45em;color:var(--muted)}
.pet-crumbs a{color:var(--text)}
.pet-crumbs a:hover{color:var(--link-hover);text-decoration:underline}
.pet-crumbs .is-current{color:var(--link);font-weight:500}
.pet-single__head{max-width:1060px}
.pet-single__title{font:600 clamp(28px,4.3vw,var(--pet-h1-max,52px))/1.2 var(--font-heading);letter-spacing:-.012em;margin:10px 0 16px;color:var(--text);text-align:left;overflow-wrap:break-word;hyphens:none}
.pet-single__sub{font-size:var(--pet-sub-size);line-height:1.5;color:var(--pet-sub-color,var(--muted));margin:0 0 var(--pet-sub-gap);max-width:1060px}
.pet-single__sponsor{margin:0 0 20px;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.pet-single__sponsor .pet-sponsor{display:inline-flex;gap:6px;align-items:baseline}
.pet-single__sponsor .pet-sponsor__name{display:inline;font-size:15px}

/* ---------- Grade ---------- */
.pet-single__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;align-items:start}
.pet-single__grid.has-side{grid-template-columns:minmax(0,1fr) 320px}
.pet-single__col{min-width:0}
.pet-single__side{min-width:0;position:sticky;top:calc(var(--pet-adminbar,0px) + 90px)}
.pet-single__side>*+*{margin-top:28px}
.pet-single__col>.pet-meta,.pet-single__col>.pet-bottombar,.pet-single__col>.pet-tags,.pet-single__col>.pet-authorbox,.pet-single__col>.pet-ad{max-width:var(--pet-read);margin-left:auto;margin-right:auto}
.pet-single-has-sidebar .pet-single__col>.pet-meta,.pet-single-has-sidebar .pet-single__col>.pet-bottombar,.pet-single-has-sidebar .pet-single__col>.pet-tags,.pet-single-has-sidebar .pet-single__col>.pet-authorbox{margin-left:0;margin-right:0}

/* ---------- Autor e ferramentas ---------- */
.pet-meta{display:flex;flex-direction:column;gap:12px;margin-bottom:34px}
.pet-meta__author{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.pet-meta__avatar img{display:block;width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid var(--primary);padding:2px;background:var(--background)}
.pet-meta__by{font-size:15px;font-weight:600;margin:0}
.pet-meta__by a{color:var(--link)}
.pet-meta__date{font-size:14px;color:var(--muted);margin:2px 0 0}
.pet-tools{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}
.pet-tool{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 14px;border:1.5px solid var(--primary);border-radius:8px;background:var(--background);color:var(--link);font:500 15px/1 var(--font-body);cursor:pointer;text-decoration:none}
.pet-tool:hover{background:var(--surface-blue);color:var(--link)}
.pet-tool--icon{width:44px;padding:0;border-radius:50%}
.pet-tool--gift{background:var(--surface-blue)}
.pet-tool--text{height:42px;font-size:16px}
.pet-tool.is-saved,.pet-tool[aria-pressed="true"]{background:var(--btn-bg);color:var(--btn-text)}
.pet-tool.is-saved svg path,.pet-tool[aria-pressed="true"] svg path{fill:currentColor}
.pet-tool__count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--accent);color:#1b1b1b;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.pet-share{position:relative;display:inline-block}
.pet-share__menu{position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:210px;padding:6px;background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:10px;box-shadow:0 14px 32px rgba(0,0,0,.2)}
.pet-share__item{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;background:none;color:inherit;font:inherit;font-size:15px;border-radius:6px;cursor:pointer;text-align:left}
.pet-share__item:hover{background:var(--surface);color:inherit}

/* ---------- Corpo editorial ---------- */
.entry-content{font-size:18px;line-height:1.8;color:var(--text)}
.pet-single__content{margin:0}
.pet-single__content>*{max-width:var(--pet-read);margin-left:auto;margin-right:auto}
.pet-single-has-sidebar .pet-single__content>*{margin-left:0;margin-right:0}
.pet-single__content>.alignwide,.pet-single__content>figure,.pet-single__content>.wp-block-image,.pet-single__content>.pet-table-wrap,.pet-single__content>.pet-embed,.pet-single__content>.wp-block-embed,.pet-single__content>.wp-block-gallery,.pet-single__content>.wp-block-table{max-width:var(--pet-wide)}
.pet-single__content>.pet-breakout,.pet-single__content>.alignfull{max-width:none}
.pet-single-has-sidebar .pet-single__content>.alignwide,.pet-single-has-sidebar .pet-single__content>figure,.pet-single-has-sidebar .pet-single__content>.pet-breakout{max-width:100%}
.entry-content p{margin-top:0;margin-bottom:1.25em;text-align:justify;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
.entry-content a{color:var(--link);font-weight:600}
.entry-content a:hover{color:var(--link-hover);text-decoration:underline}
.entry-content strong,.entry-content b{font-weight:700}
.entry-content h2{font:600 clamp(22px,2.6vw,26px)/1.3 var(--font-heading);margin:1.7em auto .6em;text-align:left}
.entry-content h3{font:600 clamp(19px,2.2vw,22px)/1.35 var(--font-heading);margin:1.5em auto .5em;text-align:left}
.entry-content h4{font:600 19px/1.4 var(--font-heading);margin:1.4em auto .5em;text-align:left}
.entry-content h5,.entry-content h6{font:600 16px/1.4 var(--font-body);margin:1.3em auto .4em;text-transform:none;text-align:left}
.entry-content ul,.entry-content ol{padding-left:1.4em;margin-top:0;margin-bottom:1.3em;text-align:justify}
.entry-content li{margin:.35em 0;padding-left:.2em}
.entry-content ul>li::marker{color:var(--accent);font-size:1.15em}
.entry-content ol>li::marker{color:var(--link);font-weight:700}
.entry-content li>ul,.entry-content li>ol{margin:.4em 0}
.entry-content blockquote{margin-top:1.6em;margin-bottom:1.6em;padding:14px 22px;border-left:4px solid var(--primary);background:var(--surface);color:var(--text);border-radius:0 8px 8px 0}
.entry-content blockquote p{margin:0;font-style:italic}
.entry-content blockquote cite{display:block;margin-top:8px;font-size:14px;color:var(--muted);font-style:normal}
.entry-content figure{margin-top:2em;margin-bottom:2em;position:relative}
.entry-content figure img{display:block;width:100%;height:auto}
.entry-content img{max-width:100%;height:auto}
.entry-content figcaption,.entry-content .wp-caption-text{margin-top:8px;font-size:13px;line-height:1.5;color:var(--muted);text-align:left}
.entry-content figcaption em,.entry-content figcaption i{font-style:italic}
.entry-content .alignleft{float:left;margin:.3em 1.4em 1em 0;max-width:50%}
.entry-content .alignright{float:right;margin:.3em 0 1em 1.4em;max-width:50%}
.entry-content .aligncenter{display:block;margin-left:auto;margin-right:auto}
.entry-content hr{border:0;border-top:1px solid var(--border);margin:2em auto}
.pet-expand{position:absolute;top:10px;right:10px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:0;border-radius:6px;background:#000;color:#fff;cursor:pointer;opacity:.92}
.pet-expand:hover{background:var(--primary)}
.pet-table-wrap{overflow-x:auto;margin-top:1.6em;margin-bottom:1.6em;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:8px}
.entry-content table{border-collapse:collapse;width:100%;min-width:520px;font-size:15px;line-height:1.5;margin:0}
.entry-content th,.entry-content td{padding:10px 14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.entry-content th{background:var(--surface);font-weight:700}
.entry-content pre{overflow:auto;padding:16px 18px;border-radius:8px;background:#0f1320;color:#e8ecf5;font:14px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-align:left;white-space:pre;margin-top:1.6em;margin-bottom:1.6em}
.entry-content code{font:0.88em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:2px 6px;border-radius:4px;background:var(--surface);color:var(--text)}
.entry-content pre code{padding:0;background:none;color:inherit}
.entry-content iframe,.entry-content video{max-width:100%;border:0}
.entry-content .wp-block-embed{margin-top:1.8em;margin-bottom:1.8em}
.pet-pagelinks{margin:1.5em auto;font-weight:600}

/* ---------- Autor responsável (cartão) ---------- */
.pet-resp{display:flex;gap:16px;align-items:flex-start;padding:18px 20px;margin-top:1.8em;margin-bottom:1.8em;background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:10px;text-align:left}
.pet-resp__avatar{flex:none;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--surface-blue);color:var(--link)}
.pet-resp__body{min-width:0}
.pet-resp__label{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:0 0 2px;text-align:left}
.pet-resp__name{font:600 19px/1.3 var(--font-heading);margin:0 0 8px;text-align:left}
.pet-resp__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pet-resp__list li{display:flex;align-items:center;gap:10px;margin:0;padding:0;text-align:left;font-size:16px;overflow-wrap:anywhere}
.pet-resp__list .pet-icon{color:var(--link)}
.pet-resp__list a{font-weight:500}

/* ---------- Para você / Leia também / CTA ---------- */
.pet-foryou{margin-top:34px;margin-bottom:34px;padding-bottom:24px;border-bottom:1px solid var(--border);text-align:left}
.pet-foryou__title{font:500 17px/1.3 var(--font-body);color:var(--muted);margin:0 0 14px}
.pet-foryou__grid{display:grid;gap:20px;grid-template-columns:repeat(4,minmax(0,1fr))}
.pet-foryou__grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.pet-foryou__grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.pet-foryou__item{display:flex;gap:12px;align-items:flex-start;color:var(--text);font-weight:400}
.pet-foryou__item:hover{color:var(--link-hover);text-decoration:none}
.pet-foryou__thumb{flex:none;width:120px}
.pet-foryou__thumb .pet-media{aspect-ratio:3/2}
.pet-foryou__text{font-size:14px;line-height:1.45;color:inherit}
.pet-alsoread{margin-top:34px;margin-bottom:34px;text-align:left}
.pet-alsoread__title{font:600 22px/1.3 var(--font-heading);margin:0 0 16px}
.pet-alsoread__grid{display:grid;gap:24px;grid-template-columns:repeat(3,minmax(0,1fr))}
.pet-alsoread__grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.pet-alsoread__grid--1{grid-template-columns:minmax(0,1fr);max-width:420px}
.pet-alsoread .pet-card__title{font-size:17px}
.pet-cta{display:flex;align-items:center;gap:20px;max-width:var(--pet-read);margin:1.8em auto;padding:14px 18px;border-radius:10px;color:#fff;background:linear-gradient(135deg,var(--pet-cta-bg,#1233b8),#0a1d7a)}
.pet-cta__img{flex:none;width:110px}
.pet-cta__img img{display:block;width:100%;border-radius:6px}
.pet-cta__title{font:600 clamp(18px,2.2vw,22px)/1.3 var(--font-body);margin:0 0 12px;color:#fff;text-align:left}

/* ---------- Rodapé da matéria ---------- */
.pet-bottombar{margin-top:46px;padding:14px;background:var(--surface);border-radius:12px;text-align:center}
.pet-bottombar__row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center}
.pet-bottombar__err{margin:14px 0 0;font-size:15px}
.pet-bottombar__err a{color:var(--link);text-decoration:underline}
.pet-bottombar .pet-share__menu{right:auto;left:0}
.pet-tags{margin-top:30px}
.pet-tags__title{font:600 20px/1.3 var(--font-heading);margin:0 0 12px}
.pet-tags__list{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0}
.pet-tag{display:inline-block;padding:8px 18px;border-radius:999px;background:var(--chip-bg,#e2e3e6);color:var(--text);font-size:15px}
.pet-tag:hover{background:var(--primary);color:#fff}
.pet-authorbox{display:flex;gap:16px;margin-top:34px;padding:20px;background:var(--surface);border-radius:12px;align-items:flex-start}
.pet-authorbox__avatar img{display:block;width:80px;height:80px;border-radius:50%;object-fit:cover}
.pet-authorbox__name{font:600 18px/1.3 var(--font-heading);margin:0}
.pet-authorbox__job{font:400 15px/1 var(--font-body);color:var(--muted)}
.pet-authorbox__bio{margin:8px 0;color:var(--muted);font-size:15px}
.pet-authorbox__links{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:0;font-size:15px}
.pet-authorbox__links a{color:var(--link);font-weight:600}
.pet-comments-wrap{padding-top:10px}
.entry-content .pet-resp__list{padding:0;margin:0;list-style:none}
.entry-content .pet-resp__list li::marker{content:""}
.entry-content .pet-resp p{margin:0}
.pet-resp{margin-left:auto;margin-right:auto}

.pet-single--center .pet-single__head{margin-inline:auto;text-align:center}
.pet-single--center .pet-single__title,.pet-single--center .pet-single__sub{text-align:center;margin-inline:auto}
.pet-single--center .pet-crumbs{justify-content:center}
.pet-single--center .pet-single__sponsor{justify-content:center}
