/*
 * Portal Editorial Fashion — categoria, busca, notícia, páginas, formulários e componentes de texto.
 */

/* ---------- Cabeçalho de arquivo ---------- */
.pef-archive-head { margin: 44px 0 34px; }
.pef-archive-head__title { font-size: clamp(24px, 1.1rem + 1vw, 28px); font-weight: 700; line-height: 1.25; }
.pef-archive-head__desc { margin: 18px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted-strong); max-width: 920px; }
.pef-archive-head__search { margin-top: 20px; max-width: 560px; }
.pef-archive-head--page { margin-bottom: 20px; }
.pef-split--archive { margin-top: 0; }
.pef-split--archive .pef-sidebar { padding-top: 44px; }

/* ---------- Listagem horizontal ---------- */
.pef-hitem { display: grid; grid-template-columns: 338px minmax(0, 1fr); gap: 28px; align-items: start; padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--border); }
.pef-hitem:last-child { margin-bottom: 0; }
.pef-hitem__media { display: block; aspect-ratio: 1.55; overflow: hidden; background: var(--surface-2); }
.pef-hitem__title { font-size: clamp(21px, 1rem + 0.8vw, 26px); font-weight: 400; line-height: 1.25; margin: 6px 0 14px; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.pef-hitem__title a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pef-hitem__excerpt { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--muted-strong); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pef-hlist { min-width: 0; }
.pef-empty { padding: 32px 0; color: var(--muted-strong); font-size: 18px; }
.pef-loadmore { text-align: center; margin: 36px 0 0; }

/* Paginação */
.pef-pagination { margin: 42px 0 8px; }
.pef-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; justify-content: center; }
.pef-pagination li { margin: 0; }
.pef-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--border); color: var(--text); font-size: 15px; font-weight: 600; }
.pef-pagination a.page-numbers:hover { border-color: var(--text); color: var(--text); }
.pef-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--background); }
.pef-pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Notícia ---------- */
.pef-article { margin-top: 0; }
.pef-article-head { padding-top: 56px; }
.pef-article-head__title {
	font-family: var(--h1-font, var(--font-heading)); font-size: clamp(30px, 1.2rem + 3.4vw, var(--h1-size, 52px)); font-weight: var(--h1-weight, 700);
	line-height: var(--h1-lh, 1.22); letter-spacing: -0.02em; text-align: var(--h1-align, left); color: var(--text); text-transform: none; overflow-wrap: anywhere; text-wrap: balance;
}
.pef-article-head__sub { margin: var(--sub-gap, 24px) 0 0; font-size: clamp(17px, 1rem + 0.35vw, var(--sub-size, 20px)); line-height: 1.45; color: var(--sub-color, var(--muted-strong)); text-align: var(--h1-align, left); }
.pef-byline { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 30px 0 26px; flex-wrap: wrap; }
.pef-byline__author { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.pef-byline__avatar { border-radius: 50%; }
.pef-byline .pef-meta { font-size: 13px; }
.pef-byline__actions { display: flex; align-items: center; gap: 14px; }
.pef-follow { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--text); border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.pef-follow:hover { background: var(--primary); color: var(--background); border-color: var(--primary); }

/* Compartilhar */
.pef-share { position: relative; }
.pef-share__toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--text); background: transparent; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pef-share__toggle:hover, .pef-share__toggle[aria-expanded="true"] { background: var(--primary); color: var(--background); }
.pef-share__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 240px; padding: 8px; background: var(--background); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); }
.pef-share__panel[hidden] { display: none; }
.pef-share__list { list-style: none; }
.pef-share__list li { margin: 0; }
.pef-share__link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; font-size: 15px; text-align: left; cursor: pointer; color: var(--text); }
.pef-share__link:hover { background: var(--surface); color: var(--accent); }
.pef-share__status { margin: 4px 12px 6px; font-size: 13px; font-weight: 600; color: #11622c; min-height: 0; }
.pef-share__status:empty { display: none; }

/* Imagem destacada */
.pef-featured { margin: 0 0 40px; }
.pef-featured__img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.pef-featured__caption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Corpo do texto */
.pef-content { max-width: var(--article-width, 650px); margin-inline: auto; font-size: clamp(17px, 1rem + 0.2vw, var(--body-size, 19px)); line-height: 1.7; overflow-wrap: break-word; }
.pef-content > * { max-width: 100%; }
.pef-content p:not([class]), .pef-content > p { margin: 0 0 1.4em; }
.pef-content > p:not(.has-text-align-center):not(.has-text-align-right):not(.has-text-align-left), .pef-content > .wp-block-group > p:not([class]) {
	text-align: var(--body-justify, justify); -webkit-hyphens: var(--body-hyphens, auto); hyphens: var(--body-hyphens, auto); text-justify: inter-word; word-spacing: -0.01em;
}
.pef-content p:first-of-type > strong:first-child { color: var(--accent); }
.pef-content h2, .pef-content h3, .pef-content h4, .pef-content h5, .pef-content h6 { margin: 1.8em 0 0.6em; line-height: 1.25; text-align: left; font-weight: 700; }
.pef-content h2 { font-size: 1.55em; }
.pef-content h3 { font-size: 1.28em; }
.pef-content h4 { font-size: 1.1em; }
.pef-content h5, .pef-content h6 { font-size: 1em; text-transform: uppercase; letter-spacing: 0.04em; }
.pef-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pef-content a:hover { color: var(--accent-hover); }
.pef-content ul, .pef-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.pef-content li { margin: 0.35em 0; padding-left: 0.2em; }
.pef-content li > ul, .pef-content li > ol { margin: 0.4em 0 0; }
.pef-content blockquote { margin: 2em 0; padding: 0.2em 0 0.2em 1.4em; border-left: 3px solid var(--accent); font-size: 1.15em; line-height: 1.55; font-style: italic; text-align: left; }
.pef-content blockquote p { margin: 0 0 0.6em; text-align: left; }
.pef-content blockquote cite { display: block; font-size: 0.8em; font-style: normal; color: var(--muted); }
.pef-content figure { margin: 2em 0; max-width: 100%; }
.pef-content img { display: block; max-width: 100%; height: auto; }
.pef-content figcaption, .pef-content .wp-caption-text { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: left; }
.pef-content .wp-caption { max-width: 100%; }
.pef-content iframe, .pef-content video, .pef-content embed, .pef-content object { max-width: 100%; }
.pef-content .wp-block-embed__wrapper, .pef-content .wp-has-aspect-ratio { position: relative; }
.pef-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.pef-content .wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.pef-content table { width: 100%; border-collapse: collapse; font-size: 0.85em; margin: 0; }
.pef-content .wp-block-table, .pef-content figure.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pef-content table th, .pef-content table td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.pef-content table thead th { background: var(--surface); font-weight: 700; }
.pef-content pre { margin: 1.6em 0; padding: 18px 20px; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); font-size: 0.8em; line-height: 1.6; white-space: pre-wrap; word-break: break-word; text-align: left; }
.pef-content code { padding: 0.1em 0.35em; background: var(--surface); font-size: 0.88em; }
.pef-content pre code { padding: 0; background: none; }
.pef-content hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--border); }
.pef-content .alignleft { float: left; margin: 0.4em 1.4em 1em 0; max-width: 50%; }
.pef-content .alignright { float: right; margin: 0.4em 0 1em 1.4em; max-width: 50%; }
.pef-content .aligncenter { margin-inline: auto; }
.pef-content .alignwide { max-width: min(888px, 100vw - 40px); margin-inline: auto; position: relative; left: 0; }
.pef-content::after { content: ""; display: table; clear: both; }
.pef-page-links { margin: 24px 0; font-weight: 700; }
.pef-page-links a, .pef-page-links > span { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); margin-right: 4px; text-decoration: none; }

/* Autor responsável (cartão) */
.pef-content .pef-resp { clear: both; margin: 40px 0 8px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.pef-content .pef-resp::before { content: ""; display: block; height: 3px; background: var(--primary); }
.pef-content .pef-resp__body { padding: 20px 20px 24px; }
.pef-content .pef-resp p { margin: 0; text-align: left; }
.pef-content .pef-resp__label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pef-content .pef-resp__id { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.pef-content .pef-resp__avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--background); font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.pef-content .pef-resp__who { display: flex; flex-direction: column; min-width: 0; }
.pef-content .pef-resp__name { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.pef-content .pef-resp__role { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--muted); }
.pef-content .pef-resp__list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--border); }
.pef-content .pef-resp__item { margin: 0; padding: 0; }
.pef-content .pef-resp__link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px 8px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); color: var(--text); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.pef-content .pef-resp__link:hover { border-color: var(--accent); color: var(--text); }
.pef-content .pef-resp__link:hover .pef-resp__text { text-decoration: underline; text-underline-offset: 3px; }
.pef-content .pef-resp__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--accent); }
.pef-content .pef-resp__text { min-width: 0; }
.pef-content .pef-resp__icon svg { display: block; }
@media (min-width: 768px) {
	.pef-content .pef-resp__body { padding: 24px 28px 28px; }
	.pef-content .pef-resp__list { flex-direction: row; flex-wrap: wrap; }
}

/* Leia também (dentro do texto) */
.pef-readmore { clear: both; margin: 2.2em 0; font-size: 16px; line-height: 1.4; text-align: left; }
.pef-readmore__title { font-size: 20px; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin: 0; }
.pef-readmore__list { list-style: none; margin: 0; padding: 0; }
.pef-content .pef-readmore__list { padding: 0; }
.pef-thumbrow { margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.pef-content .pef-thumbrow { padding: 0; }
.pef-thumbrow__link { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px 0; color: var(--text); text-decoration: none !important; }
.pef-thumbrow__link:hover { color: var(--text) !important; }
.pef-thumbrow__link:hover .pef-thumbrow__title { text-decoration: underline; text-underline-offset: 3px; }
.pef-thumbrow__media { display: block; aspect-ratio: 1.45; overflow: hidden; background: var(--surface-2); }
.pef-thumbrow__title { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--muted-strong); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Após o texto */
.pef-article__after { max-width: var(--article-width, 650px); margin: 8px auto 0; }
.pef-article__after .pef-ad { max-width: 100%; }
.pef-rectitles__list { list-style: none; margin: 30px 0; }
.pef-titlerow { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--muted-strong); }
.pef-titlerow:first-child { border-top: 1px solid var(--border); }
.pef-titlerow a:hover { color: var(--accent); }
.pef-postnav { display: flex; justify-content: space-between; gap: 20px; margin: 44px 0 0; padding: 18px 0; border-bottom: 1px solid var(--border); }
.pef-postnav a { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 16px; }
.pef-postnav__next a { justify-content: flex-end; text-align: right; }
.pef-postnav__title { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.pef-postnav a:hover .pef-postnav__title { color: var(--accent); }
.pef-authorbox { display: flex; gap: 18px; margin: 36px 0; padding: 22px; border: 1px solid var(--border); background: var(--surface); }
.pef-authorbox__avatar { border-radius: 50%; flex: none; }
.pef-authorbox__name { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.pef-authorbox__bio { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--muted-strong); }
.pef-authorbox__link { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pef-article__after .pef-news--single { margin-top: 40px; }

/* Conteúdo publicitário identificado */
.pef-sponsored { margin: 56px 0 0; }
.pef-sponsored__title { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.pef-sp { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); min-width: 0; }
.pef-sp__link { display: block; color: var(--text); }
.pef-sp__link:hover { color: var(--text); }
.pef-sp__link:hover .pef-sp__title { text-decoration: underline; text-underline-offset: 2px; }
.pef-sp__media { display: block; aspect-ratio: 2; overflow: hidden; background: var(--surface-2); margin-bottom: 12px; }
.pef-sp__title { display: block; font-size: 18px; font-weight: 700; line-height: 1.35; }
.pef-sp--lead .pef-sp__title { font-size: 20px; }
.pef-sp__excerpt { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--muted-strong); }
.pef-sp__foot { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.pef-sp__source { font-weight: 700; }
.pef-sp__tag { font-weight: 400; }
.pef-sponsored__grid { display: grid; gap: 24px; }
.pef-sponsored__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pef-sponsored__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pef-sponsored__grid .pef-sp__media { aspect-ratio: 1.5; }

/* ---------- Páginas e 404 ---------- */
.pef-page-article .pef-content--page { margin-top: 12px; }
.pef-content--wide { max-width: 100%; }
.pef-404 { padding-bottom: 20px; }
.pef-404__search { margin: 24px 0 28px; max-width: 520px; }

/* ---------- Comentários ---------- */
.pef-comments { max-width: var(--article-width, 650px); margin: 48px auto 0; }
.pef-comments__title { font-size: 22px; margin-bottom: 18px; }
.pef-comments__list, .pef-comments .children { list-style: none; }
.pef-comments .comment-body { padding: 18px 0; border-top: 1px solid var(--border); }
.pef-comments .comment-meta { font-size: 13px; color: var(--muted); }
.pef-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.pef-comments .children { margin-left: 28px; }
.pef-comments .comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pef-comments .comment-form p { margin: 0 0 16px; }

/* ---------- Formulários (texto e Contact Form 7) ---------- */
.pef-content input[type="text"], .pef-content input[type="email"], .pef-content input[type="tel"], .pef-content input[type="url"],
.pef-content input[type="number"], .pef-content input[type="password"], .pef-content input[type="date"], .pef-content select, .pef-content textarea,
.pef-comments input[type="text"], .pef-comments input[type="email"], .pef-comments input[type="url"], .pef-comments textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea {
	display: block; width: 100%; max-width: 100%; padding: 12px 14px; border: 1px solid #c8c8c8; border-radius: 2px; background: var(--background); color: var(--text); font: inherit; font-size: 16px; line-height: 1.4;
}
.pef-content textarea, .wpcf7 textarea, .pef-comments textarea { min-height: 150px; resize: vertical; }
.pef-content input:focus, .pef-content select:focus, .pef-content textarea:focus, .wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus, .pef-comments input:focus, .pef-comments textarea:focus {
	border-color: var(--text); outline: none; box-shadow: 0 0 0 2px rgba(127, 127, 127, 0.2);
}
.wpcf7 { text-align: left; }
.wpcf7 label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; text-align: left; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 p { text-align: left; margin-bottom: 18px; }
.wpcf7 .wpcf7-list-item { display: block; margin: 0 0 6px; }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { width: 16px; height: 16px; margin-right: 8px; accent-color: var(--accent); vertical-align: -2px; }
.wpcf7 input[type="submit"], .wpcf7 .wpcf7-submit, .pef-comments input[type="submit"], .pef-content input[type="submit"], .pef-content button[type="submit"] {
	display: inline-flex; width: auto; padding: 14px 30px; border: 0; border-radius: 2px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover, .pef-comments input[type="submit"]:hover { background: var(--accent-hover); }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: var(--accent); }
.wpcf7 .wpcf7-response-output { margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--border); font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #11622c; color: #11622c; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--accent); color: var(--accent); }
.wpcf7-spinner { margin: 0 0 0 12px; }
