/*
 Theme Name:   Astra Child
 Theme URI:    https://themainnews.com
 Description:  Child theme do Astra para The Main News.
 Author:       The Main News
 Template:     astra
 Version:      2.0.0
 Text Domain:  astra-child
*/

/*
 * Marca The Main News
 * - Título: Libre Baskerville
 * - Corpo: Quicksand
 * - Cores: #001d4a / #853d4c / fundo #f5f0e6
 */

:root {
	--tmn-primary: #001d4a;
	--tmn-accent: #853d4c;
	--tmn-bg: #f5f0e6;
	--tmn-text: #1a1f2e;
	--tmn-font-title: "Libre Baskerville", Georgia, "Times New Roman", serif;
	--tmn-font-body: "Quicksand", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	background-color: var(--tmn-bg);
	color: var(--tmn-text);
	font-family: var(--tmn-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.ast-archive-title,
.site-title,
.site-title a {
	font-family: var(--tmn-font-title);
	color: var(--tmn-primary);
}

a {
	color: var(--tmn-accent);
}

a:hover,
a:focus {
	color: var(--tmn-primary);
}

.site-header a,
.main-header-menu a,
.ast-header-break-point .main-header-menu a {
	color: var(--tmn-primary);
}

/* Logo no header */
.site-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-width: 220px;
}

.site-header .custom-logo-link img,
.site-header img.custom-logo {
	max-height: 84px;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	object-fit: contain;
}

/*
 * Com logo, esconde título/slogan em texto.
 * WP/Astra usam body.wp-custom-logo (não has-custom-logo).
 */
.wp-custom-logo .ast-site-title-wrap,
.wp-custom-logo .site-title,
.wp-custom-logo .site-description {
	display: none !important;
}

/* Featured image + caption na single */
.yaryo-single-featured {
	margin: 0 0 1.5rem;
}

.yaryo-single-featured__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	object-fit: cover;
}

.yaryo-featured-caption {
	display: block;
	position: relative;
	z-index: 12;
	margin: 0.5rem 0 0;
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1.4;
	font-style: italic;
	color: var(--tmn-text);
	opacity: 0.85;
	text-align: center;
}

/* Comentários: backup visual (também removidos no PHP) */
.single #comments,
.single .comments-area,
.single .comment-respond {
	display: none !important;
}

/*
 * Menu de categorias: logo + itens juntos,
 * pipes entre links, cores da marca.
 */
.ast-desktop .ast-primary-header-bar .ast-builder-grid-row.ast-builder-grid-row-has-sides {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1.35rem;
	grid-template-columns: none;
}

.ast-desktop .site-header-primary-section-left,
.ast-desktop .site-header-primary-section-right {
	width: auto;
	flex: 0 0 auto;
}

.ast-desktop .site-header-primary-section-right {
	justify-content: flex-start;
	margin-left: 0;
}

.ast-desktop .ast-builder-menu-1,
.ast-desktop .main-header-bar-navigation,
.ast-desktop .main-header-bar-navigation .site-navigation {
	width: auto;
	flex-grow: 0;
}

.main-header-menu {
	align-items: center;
	gap: 0;
}

.ast-desktop .main-header-menu > .menu-item {
	display: inline-flex;
	align-items: center;
}

.main-header-menu .menu-link {
	padding: 0.35rem 0.45rem !important;
	color: var(--tmn-primary) !important;
	font-family: var(--tmn-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.ast-desktop .main-header-menu > .menu-item:not(:last-child) > .menu-link::after {
	content: "|";
	display: inline-block;
	margin-left: 0.7rem;
	color: var(--tmn-primary);
	opacity: 0.38;
	font-weight: 400;
	pointer-events: none;
	user-select: none;
}

.main-header-menu .menu-link:hover,
.main-header-menu .menu-link:focus,
.main-header-menu .current-menu-item > .menu-link {
	color: var(--tmn-accent) !important;
}

@media (max-width: 921px) {
	.main-header-menu .menu-link {
		font-size: 0.9375rem;
		padding: 0.55rem 0.85rem !important;
		white-space: normal;
	}

	.ast-desktop .main-header-menu > .menu-item:not(:last-child) > .menu-link::after {
		display: none;
	}
}

/* Subtítulo do post (WP Subtitle) — logo abaixo do H1 */
.entry-header .yaryo-post-subtitle,
.ast-single-post-order .yaryo-post-subtitle,
.yaryo-post-subtitle {
	display: block;
	margin: 0.4rem 0 0.85rem;
	color: var(--tmn-text);
	font-family: var(--tmn-font-body);
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.45;
	opacity: 0.9;
}

.ast-blog-featured-section .yaryo-post-subtitle,
.ast-article-post .yaryo-post-subtitle {
	font-size: 1rem;
	margin: 0.25rem 0 0.55rem;
}

/* Selo da categoria acima do título (single) */
.yaryo-single-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	margin: 0 0 0.55rem;
}

.yaryo-single-categories__item {
	color: var(--tmn-accent);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.yaryo-single-categories__item:hover,
.yaryo-single-categories__item:focus {
	color: var(--tmn-primary);
	text-decoration: underline;
}

.yaryo-single-categories + .yaryo-single-categories {
	display: none;
}

/* Rodapé: legais + contato acima, copyright por último */
.ast-footer-copyright {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem 1.15rem;
	text-align: center;
}

.yaryo-footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.15rem;
	font-size: 0.875rem;
}

.yaryo-footer-legal a {
	color: var(--tmn-primary);
	text-decoration: none;
	padding: 0.15rem 0.45rem;
}

.yaryo-footer-legal a:hover,
.yaryo-footer-legal a:focus {
	color: var(--tmn-accent);
	text-decoration: underline;
}

.yaryo-footer-legal__sep {
	opacity: 0.45;
	user-select: none;
}

.yaryo-site-contact {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem 0.75rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid rgba(0, 29, 74, 0.18);
	border-radius: 999px;
	background: rgba(245, 240, 230, 0.65);
	font-size: 0.875rem;
	line-height: 1.3;
}

.yaryo-site-contact__label {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tmn-primary);
}

.yaryo-site-contact a {
	color: var(--tmn-accent);
	text-decoration: none;
}

.yaryo-site-contact a:hover,
.yaryo-site-contact a:focus {
	color: var(--tmn-primary);
	text-decoration: underline;
}

.yaryo-copyright-line {
	display: block;
	font-size: 0.8125rem;
	line-height: 1.4;
	opacity: 0.8;
}
