/* Arauto do Vale — identidade visual sobre o GeneratePress */

:root {
	--av-ink: #121212;
	--av-ink-2: #3d3d3d;
	--av-muted: #5a5a5a;
	--av-rule: #dfdfdf;
	--av-accent: #1f4a5c;
	--av-paper: #ffffff;
	--av-wash: #f3f4f2;
	--av-black: "Germania One", "Old English Text MT", Georgia, serif;
	--av-head: "Newsreader", Georgia, "Times New Roman", serif;
	--av-text: "Source Serif 4", Georgia, "Times New Roman", serif;
	--av-ui: "Libre Franklin", Arial, Helvetica, sans-serif;
	--av-wrap: 1240px;
	--av-gutter: 32px;
}

/* Base ------------------------------------------------------------------ */

body {
	background: var(--av-paper);
	color: var(--av-ink);
	font-family: var(--av-text);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title {
	font-family: var(--av-head);
	font-weight: 600;
	color: var(--av-ink);
	line-height: 1.15;
	text-wrap: balance;
}

a { color: var(--av-ink); }
a:hover, a:focus { color: var(--av-accent); }
:focus-visible { outline: 2px solid var(--av-accent); outline-offset: 2px; }

button, input, select, textarea,
.button, .wp-block-button__link,
.entry-meta, .cat-links, .tags-links, .comments-link, .nav-links,
.wp-block-post-date, .wp-block-post-terms, .wp-block-query-pagination {
	font-family: var(--av-ui);
}

.arauto-wrap {
	max-width: var(--av-wrap);
	margin: 0 auto;
	padding: 0 var(--av-gutter);
	box-sizing: border-box;
}

/* Container do GeneratePress */
.site.grid-container { max-width: var(--av-wrap); }
.one-container .site-content { padding: 32px var(--av-gutter) 56px; }
.one-container.home .site-content,
.one-container.page .site-content { padding-top: 28px; }
.separate-containers .inside-article { background: transparent; }

/* Cabeçalho ------------------------------------------------------------- */

.arauto-masthead { background: var(--av-paper); padding-top: 18px; }

.arauto-topline {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	font-family: var(--av-ui);
	font-size: 12px;
	color: var(--av-ink-2);
}
.arauto-today { font-weight: 600; }
.arauto-place { text-align: center; }

.arauto-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px 0 8px;
}
.arauto-brand-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	color: var(--av-ink);
	text-decoration: none;
}
.arauto-brand-link:hover, .arauto-brand-link:focus { color: var(--av-ink); text-decoration: none; }
.arauto-emblem { display: block; flex: none; width: 96px; height: 96px; }
.arauto-name {
	margin: 0;
	font-family: var(--av-black);
	font-weight: 400;
	font-size: 88px;
	line-height: 1;
	letter-spacing: .005em;
	white-space: nowrap;
}
.arauto-tagline {
	margin: 0;
	font-family: var(--av-head);
	font-style: italic;
	font-size: 15px;
	color: var(--av-ink-2);
}

.arauto-masthead.is-compact { padding-top: 12px; }
.arauto-masthead.is-compact .arauto-brand { padding: 4px 0 10px; }
.arauto-masthead.is-compact .arauto-emblem { width: 52px; height: 52px; }
.arauto-masthead.is-compact .arauto-name { font-size: 46px; }
.arauto-masthead.is-compact .arauto-brand-link { gap: 12px; }

.arauto-nav {
	border-top: 1px solid var(--av-ink);
	border-bottom: 3px double var(--av-ink);
}
.arauto-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 26px;
	font-family: var(--av-ui);
	font-size: 13px;
	font-weight: 500;
}
.arauto-menu li { margin: 0; }
.arauto-menu a { color: var(--av-ink); text-decoration: none; white-space: nowrap; }
.arauto-menu a:hover, .arauto-menu a:focus { color: var(--av-accent); text-decoration: underline; }
.arauto-menu .current-menu-item > a,
.arauto-menu .current-menu-ancestor > a,
.arauto-menu .current-post-ancestor > a { font-weight: 700; }

/* Rodapé ---------------------------------------------------------------- */

.site-footer { background: var(--av-paper); }
.arauto-footer { padding: 0 0 40px; }
.arauto-footer .arauto-wrap {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 24px;
	border-top: 3px double var(--av-ink);
}
.arauto-footer-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.arauto-footer-brand img { display: block; width: 132px; height: auto; }
.arauto-footer-name { margin: 0; font-family: var(--av-black); font-size: 40px; line-height: 1; }
.arauto-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-family: var(--av-ui);
	font-size: 13px;
}
.arauto-footer-menu li { margin: 0; }
.arauto-footer-menu a { text-decoration: none; }
.arauto-footer-menu a:hover { text-decoration: underline; }
.arauto-copy { margin: 0; font-family: var(--av-ui); font-size: 12px; color: var(--av-muted); }
.arauto-copy a { color: inherit; }

/* Matéria e páginas ------------------------------------------------------ */

body.single .inside-article,
body.page:not(.home) .inside-article {
	max-width: 720px;
	margin: 0 auto;
}
body.single .entry-header, body.page .entry-header { margin-bottom: 24px; }
body.single .entry-title, body.page .entry-title { font-size: 44px; line-height: 1.1; margin-bottom: 14px; }
.single .entry-meta { font-size: 13px; color: var(--av-muted); }
.single .entry-meta a { color: var(--av-ink); font-weight: 600; }
.entry-content { font-size: 19px; line-height: 1.65; }
.entry-content > p,
.entry-content > ul,
.entry-content > ol { margin-bottom: 1.15em; }
.entry-content h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.entry-content blockquote {
	border-left: 3px solid var(--av-accent);
	margin: 1.6em 0;
	padding: 0 0 0 20px;
	font-family: var(--av-head);
	font-style: italic;
	font-size: 23px;
	line-height: 1.4;
}
.entry-content figcaption,
.wp-caption-text,
.wp-element-caption {
	font-family: var(--av-ui);
	font-size: 12px;
	color: var(--av-muted);
	text-align: left;
	margin-top: 6px;
}
.featured-image, .page-header-image-single { margin-bottom: 24px; }
.cat-links, .tags-links { font-size: 13px; }
.cat-links a {
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: 11px;
}

/* Linha fina: primeiro parágrafo em itálico, quando marcado com a classe .linha-fina */
.entry-content .linha-fina { font-size: 21px; line-height: 1.45; color: var(--av-ink-2); }

/* Editorias (arquivos) --------------------------------------------------- */

.archive .page-header, .search .page-header, .blog .page-header {
	border-bottom: 2px solid var(--av-ink);
	padding-bottom: 12px;
	margin-bottom: 28px;
}
.archive .page-title { font-size: 40px; margin: 0; }
.taxonomy-description { font-size: 16px; color: var(--av-ink-2); margin-top: 6px; }
.archive .site-main > article,
.blog .site-main > article,
.search .site-main > article {
	border-bottom: 1px solid var(--av-rule);
	padding-bottom: 20px;
	margin-bottom: 20px;
}
.archive .entry-title, .blog .entry-title, .search .entry-title { font-size: 26px; }
.archive .entry-summary, .blog .entry-summary, .search .entry-summary { font-size: 17px; color: var(--av-ink-2); }

/* Capa: blocos ---------------------------------------------------------- */

.av-kicker, .av-kicker a {
	font-family: var(--av-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--av-ink);
	text-decoration: none;
	margin: 0;
}
.av-kicker .wp-block-post-terms__separator { color: var(--av-muted); }
.av-op .av-kicker, .av-op .av-kicker a, .av-kicker.av-op { color: var(--av-accent); }

.av-hl, .av-hl a {
	font-family: var(--av-head);
	font-weight: 600;
	line-height: 1.12;
	color: var(--av-ink);
	text-decoration: none;
	margin: 0;
}
.av-hl a:hover { color: var(--av-accent); text-decoration: underline; }
.av-hl-xl { font-size: 44px; }
.av-hl-l { font-size: 26px; }
.av-hl-m { font-size: 21px; }
.av-hl-s { font-size: 18px; }
.av-italic, .av-italic a { font-style: italic; }

.av-dek {
	font-family: var(--av-text);
	font-size: 16px;
	line-height: 1.5;
	color: var(--av-ink-2);
	margin: 0;
}
.av-dek-l { font-size: 18px; }
.av-dek .wp-block-post-excerpt__excerpt { margin: 0; }
.av-dek .wp-block-post-excerpt__more-text { display: none; }

.av-meta, .av-meta a {
	font-family: var(--av-ui);
	font-size: 12px;
	color: var(--av-muted);
	margin: 0;
}
.av-byline { font-weight: 600; color: var(--av-ink); }

.av-photo img { display: block; width: 100%; height: auto; }
.av-photo { margin: 0; }

/* Lista de matérias com fio entre itens */
.av-list .wp-block-post-template { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.av-list .wp-block-post { display: flex; flex-direction: column; gap: 8px; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--av-rule); }
.av-list .wp-block-post:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.av-lead .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.av-lead .wp-block-post { display: flex; flex-direction: column; gap: 12px; margin: 0; }

/* Grade da capa: três colunas com fios verticais */
.av-front { gap: 0 !important; margin-bottom: 36px !important; }
.av-front > .av-col-left { padding-right: 24px; border-right: 1px solid var(--av-rule); }
.av-front > .av-col-main { padding: 0 24px; }
.av-front > .av-col-right { padding-left: 24px; border-left: 1px solid var(--av-rule); }
.av-pair { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--av-rule); }
.av-pair .wp-block-post-template { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.av-pair .wp-block-post { display: flex; flex-direction: column; gap: 8px; margin: 0; }

.av-section-label {
	font-family: var(--av-ui) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .09em;
	text-transform: uppercase;
	margin: 0 0 16px !important;
	padding-bottom: 8px;
}
.av-op.av-section-label { color: var(--av-accent); border-bottom: 2px solid var(--av-accent); }

/* Faixas (Vale, Ideias) */
.av-section { border-top: 2px solid var(--av-ink); padding-top: 10px; margin: 0 0 40px !important; }
.av-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.av-section-title { font-size: 26px !important; margin: 0 !important; }
.av-section-title a { text-decoration: none; }
.av-section-more { font-family: var(--av-ui); font-size: 12px; font-weight: 600; margin: 0; }
.av-section-more a { text-decoration: none; }
.av-section-more a:hover { text-decoration: underline; }

.av-band .wp-block-post-template { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.av-band .wp-block-post { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }

.av-ideias { gap: 40px !important; }

/* Mais lidas (WordPress Popular Posts) */
.av-ranking { list-style: none; margin: 0; padding: 0; counter-reset: av-rank; display: flex; flex-direction: column; }
.av-ranking li {
	counter-increment: av-rank;
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 0 0 14px;
	margin: 0 0 14px;
	border-bottom: 1px solid var(--av-rule);
}
.av-ranking li::before {
	content: counter(av-rank);
	font-family: var(--av-head);
	font-size: 30px;
	font-weight: 600;
	color: var(--av-accent);
	min-width: 22px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.av-ranking a { font-family: var(--av-head); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.av-ranking a:hover { text-decoration: underline; }
.av-ranking-wrap p { font-family: var(--av-ui); font-size: 13px; color: var(--av-muted); }

.av-empty { font-family: var(--av-ui); font-size: 13px; color: var(--av-muted); margin: 0; }

/* Contato (Contact Form 7) */
.wpcf7 label { font-family: var(--av-ui); font-size: 14px; font-weight: 600; display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 select, .wpcf7 textarea {
	width: 100%;
	border: 1px solid #b9bdb8;
	background: #fff;
	padding: 10px 12px;
	font-family: var(--av-ui);
	font-size: 15px;
	margin-top: 4px;
	box-sizing: border-box;
}
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: 13px; }
.wpcf7 input[type="submit"], .button, .wp-block-button__link {
	background: var(--av-ink);
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 12px 20px;
	font-family: var(--av-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover, .button:hover, .wp-block-button__link:hover { background: var(--av-accent); color: #fff; }

/* Responsivo ------------------------------------------------------------ */

@media (max-width: 1024px) {
	.av-band .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.av-front { flex-wrap: wrap !important; }
	.av-front > .wp-block-column { flex-basis: 100% !important; padding: 0 !important; border: 0 !important; }
	.av-front > .av-col-main { order: -1; margin-bottom: 28px; padding-bottom: 28px !important; border-bottom: 1px solid var(--av-rule) !important; }
	.av-front > .av-col-right { margin-top: 28px; }
	.av-hl-xl { font-size: 34px; }
	.arauto-name { font-size: 64px; }
	.arauto-emblem { width: 72px; height: 72px; }
}

@media (max-width: 768px) {
	:root { --av-gutter: 16px; }
	body { font-size: 17px; }
	.arauto-topline { grid-template-columns: 1fr; text-align: center; gap: 2px; }
	.arauto-topline-end { display: none; }
	.arauto-name { font-size: 44px; }
	.arauto-emblem { width: 56px; height: 56px; }
	.arauto-brand-link { gap: 12px; }
	.arauto-masthead.is-compact .arauto-name { font-size: 34px; }
	.arauto-masthead.is-compact .arauto-emblem { width: 40px; height: 40px; }
	.arauto-menu {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 22px;
		padding: 10px 2px;
	}
	.arauto-menu::-webkit-scrollbar { display: none; }
	.av-pair .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
	.av-ideias { flex-wrap: wrap !important; }
	.av-ideias > .wp-block-column { flex-basis: 100% !important; }
	body.single .entry-title, body.page .entry-title { font-size: 32px; }
	.entry-content { font-size: 18px; }
	.archive .page-title { font-size: 32px; }
}

@media (max-width: 560px) {
	.av-band .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
	.arauto-name { font-size: 36px; }
	.arauto-emblem { width: 46px; height: 46px; }
	.av-hl-xl { font-size: 30px; }
}


/* Ajustes pós-instalação --------------------------------------------- */

/* GeneratePress coloca um recuo interno nos grupos; a capa usa largura cheia */
.entry-content .av-section > .wp-block-group__inner-container,
.entry-content .av-section .wp-block-group__inner-container { padding: 0 !important; max-width: none !important; }
.av-section-label a { text-decoration: none; color: inherit; }

/* Banner de cookies (Complianz) nas cores do jornal */
.cmplz-cookiebanner {
	--cmplz_button_accept_background_color: #121212;
	--cmplz_button_accept_border_color: #121212;
	--cmplz_button_accept_text_color: #ffffff;
	--cmplz_button_deny_background_color: #ffffff;
	--cmplz_button_deny_border_color: #121212;
	--cmplz_button_deny_text_color: #121212;
	--cmplz_button_settings_background_color: #ffffff;
	--cmplz_button_settings_border_color: #b9bdb8;
	--cmplz_button_settings_text_color: #121212;
	--cmplz_hyperlink_color: #1f4a5c;
	--cmplz_button_border_radius: 2px;
	--cmplz_banner_border_radius: 4px;
	font-family: var(--av-ui);
}
.cmplz-cookiebanner .cmplz-btn { font-family: var(--av-ui); font-weight: 700; letter-spacing: .03em; }
.cmplz-cookiebanner .cmplz-title { font-family: var(--av-head); font-weight: 600; }

/* Fio duplo do rodapé alinhado ao conteúdo, como no cabeçalho */
.arauto-footer .arauto-wrap { border-top: 0; position: relative; }
.arauto-footer .arauto-wrap::before { content: ""; position: absolute; top: 0; left: var(--av-gutter); right: var(--av-gutter); border-top: 3px double var(--av-ink); }
.home .entry-content > * { max-width: none; }

/* Redes sociais -------------------------------------------------------- */
.arauto-follow { display: flex; align-items: center; gap: 14px; font-family: var(--av-ui); font-size: 12px; }
.arauto-follow-top { justify-content: flex-end; }
.arauto-follow-label { color: var(--av-muted); }
.arauto-follow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--av-ink); text-decoration: none; font-weight: 600; }
.arauto-follow-link:hover { color: var(--av-accent); }
.arauto-follow-top .arauto-follow-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.arauto-follow-footer { font-size: 13px; }

.arauto-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 26px; padding: 12px 0; border-top: 1px solid var(--av-rule); border-bottom: 1px solid var(--av-rule); font-family: var(--av-ui); }
.entry-content + .arauto-share, .inside-article > .arauto-share:last-child { margin-top: 28px; }
.arauto-share-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--av-muted); margin-right: 4px; }
.arauto-share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #b9bdb8; border-radius: 2px; background: #fff; color: var(--av-ink); font-family: var(--av-ui); font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; text-transform: none; letter-spacing: 0; }
.arauto-share-btn:hover, .arauto-share-btn:focus { border-color: var(--av-ink); background: var(--av-ink); color: #fff; }
.arauto-share-msg { font-size: 12px; color: var(--av-accent); }
@media (max-width: 560px) { .arauto-share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .arauto-share-btn { padding: 10px 12px; } }
