/*
 * Portal — blocos do WordPress no visual do site.
 * Usado na página da matéria E no editor (o WordPress aplica no editor sozinho),
 * para o que o Gabriel vê escrevendo ser o que vai ao ar.
 */

/* ---------- Listas ---------- */
.wp-block-list li::marker,
.post-content ul li::marker,
.post-content ol li::marker { color: #E85D20; }

/* ---------- Imagens: alinhamentos ---------- */
.wp-block-image img { height: auto; }
.wp-block-image.alignleft,
.wp-block-image.alignright { max-width: 50%; }
.wp-block-image.alignleft { float: left; margin: 0.3em 1.6em 1em 0; }
.wp-block-image.alignright { float: right; margin: 0.3em 0 1em 1.6em; }
.wp-block-image.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 600px) {
	.wp-block-image.alignleft,
	.wp-block-image.alignright { float: none; max-width: 100%; margin: 0; }
}

/* ---------- Tabela ---------- */
.wp-block-table { overflow-x: auto; }
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(240, 237, 230, 0.82);
}
.wp-block-table th,
.wp-block-table td {
	border: 0;
	border-bottom: 1px solid rgba(240, 237, 230, 0.08);
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
}
.wp-block-table thead { border-bottom: 1px solid #E85D20; }
.wp-block-table thead th,
.wp-block-table th {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(240, 237, 230, 0.6);
}
.wp-block-table tfoot td { font-weight: 500; color: #F0EDE6; border-top: 1px solid rgba(240, 237, 230, 0.2); }
.wp-block-table.is-style-stripes { border: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #141414; }
.wp-block-table.is-style-stripes td { border-bottom: 0; }

/* ---------- Botões ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button .wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #E85D20;
	color: #0A0A0A;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 14px 28px;
	min-height: 48px;
	border: 0;
	border-radius: 4px;
	transition: opacity 0.2s;
}
.wp-block-button .wp-block-button__link:hover { opacity: 0.88; color: #0A0A0A; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: #F0EDE6;
	border: 1px solid rgba(240, 237, 230, 0.2);
	font-weight: 400;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: rgba(240, 237, 230, 0.45); opacity: 1; color: #F0EDE6; }

/* ---------- Destaque (Pullquote) ---------- */
.wp-block-pullquote {
	border: 0;
	border-top: 1px solid rgba(240, 237, 230, 0.12);
	border-bottom: 1px solid rgba(240, 237, 230, 0.12);
	padding: 1.6em 0;
	margin: 2.2em 0;
	text-align: center;
	color: #F0EDE6;
}
.wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; font-size: 1em; }
.wp-block-pullquote p {
	font-family: 'Newsreader', Georgia, serif;
	font-style: italic;
	font-weight: 550;
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	line-height: 1.2;
	color: #F0EDE6;
}
.wp-block-pullquote blockquote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: 1em;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	font-style: normal;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #E85D20;
}

/* ---------- Colunas e Mídia + texto ---------- */
.wp-block-columns { gap: 2rem; }
.wp-block-column > * + * { margin-top: 1em; }
.wp-block-media-text { gap: 2rem; }
.wp-block-media-text__content { padding: 0; }
.wp-block-media-text__content > * + * { margin-top: 1em; }

/* ---------- Detalhes ("clique para abrir") ---------- */
.wp-block-details {
	border: 1px solid rgba(240, 237, 230, 0.1);
	border-radius: 4px;
	padding: 0.9em 1.2em;
}
.wp-block-details summary {
	cursor: pointer;
	font-weight: 500;
	color: #F0EDE6;
	list-style-position: inside;
}
.wp-block-details summary::marker { color: #E85D20; }
.wp-block-details[open] summary { margin-bottom: 0.8em; }
.wp-block-details > * + * { margin-top: 0.8em; }

/* ---------- Arquivo para baixar ---------- */
.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 1px solid rgba(240, 237, 230, 0.1);
	border-radius: 4px;
	padding: 14px 16px;
	font-size: 15px;
}
.wp-block-file a:not(.wp-block-file__button) { color: #F0EDE6; text-decoration: none; }
.wp-block-file .wp-block-file__button {
	background: transparent;
	color: #E85D20;
	border: 1px solid rgba(232, 93, 32, 0.4);
	border-radius: 4px;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.wp-block-file .wp-block-file__button:hover { background: rgba(232, 93, 32, 0.1); }

/* ---------- Áudio e vídeo enviados ---------- */
.wp-block-audio audio { width: 100%; }
.wp-block-video video { width: 100%; border-radius: 2px; }

/* ---------- Código e texto pré-formatado ---------- */
.wp-block-code,
.wp-block-preformatted {
	background: #141414;
	border: 1px solid rgba(240, 237, 230, 0.08);
	border-radius: 4px;
	padding: 1em 1.2em;
	font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 14px;
	line-height: 1.6;
	color: #F0EDE6;
	overflow-x: auto;
	white-space: pre-wrap;
}
.wp-block-code code { font: inherit; background: none; padding: 0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; background: #141414; padding: 0.1em 0.35em; border-radius: 3px; }

/* ---------- Poesia / letra ---------- */
.wp-block-verse {
	font-family: 'Newsreader', Georgia, serif;
	font-style: italic;
	font-size: 1.15em;
	background: none;
	padding: 0 0 0 1.4em;
	border-left: 1px solid rgba(240, 237, 230, 0.2);
	white-space: pre-wrap;
}

/* ---------- Capa (imagem com texto por cima) ---------- */
.wp-block-cover { border-radius: 2px; }
.wp-block-cover .wp-block-cover__inner-container { color: #F0EDE6; }
.wp-block-cover h2, .wp-block-cover h3 { color: #F0EDE6; }

/* ---------- Separador ---------- */
.wp-block-separator { border: 0; height: 1px; background: rgba(240, 237, 230, 0.12); opacity: 1; margin: 2.5em auto; }
.wp-block-separator.is-style-dots { height: auto; background: none; text-align: center; color: #E85D20; }
.wp-block-separator.is-style-dots::before { color: #E85D20; letter-spacing: 1.2em; }
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) { max-width: 120px; }

/* ---------- Incorporações (YouTube, Instagram, X, TikTok…) ---------- */
.wp-block-embed { margin-left: 0; margin-right: 0; }
.wp-block-embed iframe { max-width: 100%; }
.wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-block-embed.is-type-rich .wp-block-embed__wrapper { display: flex; justify-content: center; }
