/*
Theme Name: SenseInvest Blog
Theme URI: https://blog.senseinvest.com.br
Author: SenseInvest
Author URI: https://senseinvest.com.br
Description: Tema block do blog SenseInvest — listagem, busca, artigos e comentários via código.
Version: 0.4.2
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: senseinvest
Tags: block-theme, blog, full-site-editing
*/

:root {
	--senseinvest-bg: #1f2937;
	--senseinvest-bg-deep: #111827;
	--si-max-width: 72rem;
	--si-gutter: clamp(1.25rem, 4vw, 2.5rem);
}

html,
body {
	background-color: var(--senseinvest-bg);
}

/* Largura total — sem margens do block theme */
body .is-root-container,
body .wp-site-blocks {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--senseinvest-bg);
}

/* Container alinhado ao app (largura confortável em telas grandes) */
.senseinvest-shell {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--si-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--si-gutter);
	padding-right: var(--si-gutter);
}

/* Header */
.senseinvest-header {
	width: 100%;
	background: var(--senseinvest-bg);
	border-bottom: 1px solid #374151;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.senseinvest-header__inner {
	gap: 1rem;
}

.senseinvest-header__brand {
	margin: 0;
	min-width: 0;
	flex-shrink: 1;
}

.senseinvest-header__logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.senseinvest-header__logo-img {
	display: block;
	width: auto;
	height: 1.75rem;
	max-width: 9.5rem;
}

@media (min-width: 768px) {
	.senseinvest-header__logo-img {
		height: 2rem;
		max-width: 11rem;
	}
}

.senseinvest-header__app-link {
	margin: 0;
	font-size: 0.9375rem;
}

.senseinvest-header__app-link a {
	color: #60a5fa;
	text-decoration: none;
	font-weight: 500;
}

.senseinvest-header__app-link a:hover {
	color: #93c5fd;
}

/* Hero vídeo — igual ao site (senseinvest-front JumbotroonVideo) */
.senseinvest-hero-video {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #000;
	line-height: 0;
}

.senseinvest-hero-video__media {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: top;
}

.senseinvest-hero-video__poster-fallback {
	display: none;
	width: 100%;
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.senseinvest-hero-video__media {
		display: none;
	}

	.senseinvest-hero-video__poster-fallback {
		display: block;
	}
}

/* Hero texto — faixa abaixo do vídeo */
.senseinvest-hero-blog,
.senseinvest-hero {
	width: 100%;
	max-width: none;
	margin: 0;
	padding-top: clamp(2.5rem, 6vw, 4rem);
	padding-bottom: clamp(2rem, 5vw, 3rem);
	border-bottom: 1px solid #374151;
}

.senseinvest-hero-blog {
	background: var(--senseinvest-bg);
}

.senseinvest-hero {
	background: linear-gradient(180deg, var(--senseinvest-bg-deep) 0%, var(--senseinvest-bg) 100%);
}

.senseinvest-hero-blog__inner,
.senseinvest-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.senseinvest-hero__accent {
	width: 3rem !important;
	max-width: 3rem;
	height: 4px !important;
	margin: 0 0 0.25rem !important;
	border: none;
	opacity: 1;
}

.senseinvest-hero__title,
.senseinvest-hero-blog .senseinvest-hero__title,
.senseinvest-hero .wp-block-query-title {
	color: #f9fafb !important;
	font-size: clamp(2rem, 5vw, 2.75rem) !important;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0;
}

.senseinvest-hero__lead {
	max-width: 42rem;
	margin: 0;
	line-height: 1.65;
}

.senseinvest-hero__back {
	margin: 0;
}

/* Busca */
.senseinvest-search.wp-block-search {
	width: 100%;
	max-width: 40rem;
}

.senseinvest-search--hero {
	max-width: 100%;
}

.senseinvest-search .wp-block-search__inside-wrapper {
	display: flex;
	border: 1px solid #4b5563;
	border-radius: 10px;
	background: #374151;
	padding: 5px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}

.senseinvest-search .wp-block-search__input {
	flex: 1;
	background: transparent;
	border: none;
	color: #f9fafb;
	font-size: 1rem;
	min-height: 2.75rem;
	padding: 0 0.75rem;
}

.senseinvest-search .wp-block-search__input::placeholder {
	color: #9ca3af;
}

.senseinvest-search .wp-block-search__input:focus {
	outline: none;
}

.senseinvest-search .wp-block-search__inside-wrapper:focus-within {
	border-color: #60a5fa;
	box-shadow: 0 0 0 2px rgb(96 165 250 / 0.35);
}

.senseinvest-search .wp-block-search__button {
	background: #60a5fa;
	color: #111827;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.6rem 1.25rem;
	cursor: pointer;
	white-space: nowrap;
}

.senseinvest-search .wp-block-search__button:hover {
	background: #93c5fd;
}

/* Listagem */
.senseinvest-posts {
	width: 100%;
	padding-top: clamp(2rem, 4vw, 3rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.senseinvest-posts__heading {
	margin: 0 0 1.5rem;
	font-weight: 600;
	color: #f9fafb;
}

.senseinvest-posts__grid,
.senseinvest-posts .wp-block-post-template {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (min-width: 640px) {
	.senseinvest-posts__grid,
	.senseinvest-posts .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.senseinvest-posts__grid,
	.senseinvest-posts .wp-block-post-template {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.75rem;
	}
}

/* Cards */
.senseinvest-post-card {
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid #374151;
	border-radius: 12px;
	background: #374151;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.senseinvest-post-card:hover {
	transform: translateY(-3px);
	border-color: #4b5563;
	box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}

.senseinvest-post-card .wp-block-post-featured-image {
	margin: 0;
}

.senseinvest-post-card .wp-block-post-featured-image img {
	width: 100%;
	height: 11rem;
	object-fit: cover;
	display: block;
}

.senseinvest-post-card .wp-block-post-featured-image:empty,
.senseinvest-post-card .senseinvest-post-card__image:not(:has(img)) {
	display: none;
}

.senseinvest-post-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
}

.senseinvest-post-card__date {
	margin: 0;
	text-transform: lowercase;
}

.senseinvest-post-card__title {
	margin: 0;
	line-height: 1.35;
}

.senseinvest-post-card__title a {
	color: #f9fafb !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.0625rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.senseinvest-post-card__title a:hover {
	color: #93c5fd !important;
}

.senseinvest-post-card__excerpt {
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.senseinvest-post-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.75rem;
	color: #34d399;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
}

.senseinvest-post-card .wp-block-post-excerpt__more-link:hover {
	color: #6ee7b7;
}

.senseinvest-reading-time {
	font-size: 0.875rem;
	color: #9ca3af;
}

/* Paginação */
.senseinvest-pagination {
	margin-top: 2.5rem;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.senseinvest-pagination a,
.senseinvest-pagination .page-numbers {
	color: #d1d5db;
	text-decoration: none;
	padding: 0.4rem 0.75rem;
	border-radius: 6px;
}

.senseinvest-pagination a:hover {
	background: #374151;
	color: #f9fafb;
}

.senseinvest-pagination .page-numbers.current {
	color: #60a5fa;
	font-weight: 700;
	background: rgb(96 165 250 / 0.12);
}

/* Footer — alinhado ao senseinvest-front/src/components/footer.tsx */
.senseinvest-footer {
	width: 100%;
	margin-top: auto;
	padding-top: clamp(2.5rem, 5vw, 3rem);
	padding-bottom: clamp(2.5rem, 5vw, 3rem);
	border-top: 1px solid #374151;
	background: var(--senseinvest-bg-deep);
	color: #d1d5db;
}

.senseinvest-footer__main {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.senseinvest-footer__grid {
	gap: 2rem !important;
	margin: 0;
}

@media (min-width: 768px) {
	.senseinvest-footer__grid {
		gap: 2.5rem !important;
	}
}

.senseinvest-footer__col {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.senseinvest-footer__title {
	margin: 0 0 0.25rem !important;
	font-size: 1.25rem !important;
	font-weight: 600;
	color: #f9fafb !important;
}

.senseinvest-footer__heading {
	margin: 0 0 0.25rem !important;
	font-size: 1.125rem !important;
	font-weight: 600;
	color: #f9fafb !important;
}

.senseinvest-footer__tagline,
.senseinvest-footer__contact-text {
	margin: 0;
	line-height: 1.6;
	max-width: 22rem;
}

.senseinvest-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.senseinvest-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 8px;
	color: #d1d5db;
	text-decoration: none;
	transition: color 0.15s ease, background 0.15s ease;
}

.senseinvest-footer__social-link:hover {
	color: #60a5fa;
	background: rgb(96 165 250 / 0.12);
}

.senseinvest-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.senseinvest-footer__links a {
	color: #d1d5db;
	text-decoration: none;
	font-size: 0.9375rem;
}

.senseinvest-footer__links a:hover {
	color: #60a5fa;
}

.senseinvest-footer__cta {
	margin-top: 0.25rem;
}

.senseinvest-footer__cta .wp-block-button__link {
	background: #3b82f6 !important;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 0.625rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.senseinvest-footer__cta .wp-block-button__link:hover {
	background: #2563eb !important;
	color: #fff !important;
}

.senseinvest-footer__legal {
	margin-top: 0.5rem;
	padding-top: 2rem;
	border-top: 1px solid #374151;
	text-align: center;
}

.senseinvest-footer__disclaimer {
	margin: 0 auto 1rem !important;
	max-width: 52rem;
	line-height: 1.65;
	font-size: 0.8125rem !important;
	color: #9ca3af !important;
}

.senseinvest-footer__copyright {
	margin: 0 !important;
	font-size: 0.875rem !important;
}

.senseinvest-no-results {
	padding: 2rem 0;
}

/* —— Página do artigo (Fase 3) —— */
.senseinvest-single {
	padding-top: clamp(1.5rem, 4vw, 2.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.senseinvest-single__layout {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.senseinvest-article-header {
	margin-bottom: 1.75rem;
}

/* Breadcrumb */
.senseinvest-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: #9ca3af;
}

.senseinvest-breadcrumb__link {
	color: #60a5fa;
	text-decoration: none;
}

.senseinvest-breadcrumb__link:hover {
	color: #93c5fd;
}

.senseinvest-breadcrumb__sep {
	color: #6b7280;
}

.senseinvest-breadcrumb__current {
	color: #d1d5db;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.senseinvest-single__title,
.senseinvest-single .wp-block-post-title,
.senseinvest-single .wp-block-post-title a {
	color: #f9fafb !important;
	font-size: clamp(1.75rem, 4vw, 2.35rem) !important;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-decoration: none;
	margin: 0 0 0.75rem;
}

.senseinvest-single__meta {
	gap: 0.35rem;
	margin-bottom: 0;
}

.senseinvest-single__date {
	color: #9ca3af !important;
	margin: 0;
}

.senseinvest-article-wrap {
	margin-bottom: 2.5rem;
}

.senseinvest-comments-wrap {
	width: 100%;
}

/*
 * Tipografia de leitura (~70ch) — posts com cores inline antigas.
 */
.senseinvest-article,
.senseinvest-single .wp-block-post-content {
	color: #e5e7eb;
	font-size: 1.125rem;
	line-height: 1.75;
	max-width: 70ch;
}

.senseinvest-article :where(
	p,
	li,
	span,
	div,
	td,
	th,
	dt,
	dd,
	blockquote,
	.wp-block-paragraph,
	.wp-block-list-item
) {
	color: #e5e7eb !important;
}

.senseinvest-article :where(h1, h2, h3, h4, h5, h6, .wp-block-heading) {
	color: #f9fafb !important;
	font-weight: 700;
	line-height: 1.3;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.senseinvest-article h2 {
	font-size: 1.5rem;
}

.senseinvest-article h3 {
	font-size: 1.25rem;
}

.senseinvest-article a {
	color: #60a5fa !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.senseinvest-article a:hover {
	color: #93c5fd !important;
}

.senseinvest-article strong,
.senseinvest-article b {
	color: #f9fafb !important;
	font-weight: 700;
}

.senseinvest-article :where(.wp-block-image, figure) {
	margin: 2rem 0;
}

.senseinvest-article :where(.wp-block-image img, figure img) {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.senseinvest-article figcaption,
.senseinvest-article .wp-element-caption {
	color: #9ca3af !important;
	font-size: 0.875rem;
	text-align: center;
	margin-top: 0.5rem;
}

.senseinvest-article blockquote {
	border-left: 4px solid #34d399;
	padding-left: 1rem;
	margin: 1.5rem 0;
	color: #d1d5db !important;
}

.senseinvest-article :where(ul, ol) {
	padding-left: 1.5rem;
	margin: 1rem 0;
}

.senseinvest-article hr {
	border: none;
	border-top: 1px solid #374151;
	margin: 2rem 0;
}

.senseinvest-article :where(pre, code) {
	background: #111827;
	color: #e5e7eb !important;
	border-radius: 6px;
	font-size: 0.9em;
}

.senseinvest-article pre {
	padding: 1rem;
	overflow-x: auto;
}

.senseinvest-article table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.senseinvest-article th,
.senseinvest-article td {
	border: 1px solid #374151;
	padding: 0.5rem 0.75rem;
}

.senseinvest-article th {
	background: #374151;
	color: #f9fafb !important;
}

.senseinvest-article :where(.wp-block-embed, .wp-block-video, iframe) {
	max-width: 100%;
	margin: 1.5rem 0;
}

.senseinvest-article .wp-block-embed iframe,
.senseinvest-article iframe {
	border-radius: 12px;
}

/* —— Comentários (bloco FSE + fallback PHP) —— */
.senseinvest-comments-section {
	margin-top: 0;
}

.senseinvest-comments,
.senseinvest-comments--php {
	color: #f9fafb;
	padding-top: 2rem;
	border-top: 1px solid #374151;
	max-width: 70ch;
}

.senseinvest-comments .wp-block-comments-title,
.senseinvest-comments__title {
	color: #f9fafb;
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
}

/* Texto auxiliar do formulário (logado, notas, cookies) */
.senseinvest-comments .logged-in-as,
.senseinvest-comments .comment-form-logged-in-as,
.senseinvest-comments .comment-notes,
.senseinvest-comments .comment-form-cookies-consent,
.senseinvest-comments .wp-block-post-comments-form > p {
	color: #d1d5db;
	font-size: 0.9375rem;
	line-height: 1.55;
	margin: 0 0 1rem;
}

/* Links na área de comentários — contraste alto no fundo escuro */
.senseinvest-comments a:where(:not(.comment-reply-link)):not(.wp-block-button__link) {
	color: #93c5fd !important;
	text-decoration: none;
	font-weight: 500;
}

.senseinvest-comments a:where(:not(.comment-reply-link)):not(.wp-block-button__link):hover {
	color: #bfdbfe !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.senseinvest-comment__content a {
	color: #93c5fd !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.senseinvest-comment__content a:hover {
	color: #bfdbfe !important;
}

.senseinvest-comment-template,
.senseinvest-comments__list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}

.senseinvest-comment {
	margin-bottom: 1.5rem;
}

.senseinvest-comment .wp-block-group {
	gap: 0.75rem;
}

.senseinvest-comment__avatar,
.senseinvest-comment__avatar img,
.comment-list .avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.senseinvest-comment__author,
.senseinvest-comment__author a,
.senseinvest-comment--php .comment-author a {
	color: #f9fafb !important;
	font-weight: 600;
	text-decoration: none;
}

.senseinvest-comment__date,
.senseinvest-comment__date a,
.senseinvest-comment--php .senseinvest-comment__date {
	color: #9ca3af !important;
	font-size: 0.8125rem;
	margin-left: 0.5rem;
}

.senseinvest-comment__content,
.senseinvest-comment__content p,
.senseinvest-comment--php .senseinvest-comment__content {
	color: #d1d5db !important;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0.5rem 0 0;
}

.senseinvest-comment__reply a,
.senseinvest-comment .comment-reply-link,
.senseinvest-comment--php .senseinvest-comment__reply a,
.senseinvest-comments a.comment-reply-link {
	color: #34d399 !important;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none !important;
}

.senseinvest-comment__reply a:hover,
.senseinvest-comment .comment-reply-link:hover,
.senseinvest-comments a.comment-reply-link:hover {
	color: #6ee7b7 !important;
	text-decoration: underline !important;
}

.senseinvest-comments .children,
.senseinvest-comments__list .children {
	list-style: none;
	margin: 1rem 0 0 1.25rem;
	padding: 0 0 0 1rem;
	border-left: 2px solid #374151;
}

.senseinvest-comments-pagination {
	margin: 1.5rem 0;
	gap: 1rem;
}

.senseinvest-comments-pagination a {
	color: #60a5fa;
}

/* Formulário de comentários */
.senseinvest-comment-form,
.senseinvest-comments .comment-form,
.senseinvest-comments .wp-block-post-comments-form form {
	margin-top: 1.5rem;
}

.senseinvest-comment-form label,
.senseinvest-comments .comment-form label,
.senseinvest-comments .wp-block-post-comments-form label {
	color: #e5e7eb;
	font-size: 0.9375rem;
	display: block;
	margin-bottom: 0.35rem;
}

.senseinvest-comment-form input[type="text"],
.senseinvest-comment-form input[type="email"],
.senseinvest-comment-form input[type="url"],
.senseinvest-comment-form textarea,
.senseinvest-comments input[type="text"],
.senseinvest-comments input[type="email"],
.senseinvest-comments input[type="url"],
.senseinvest-comments textarea,
.senseinvest-comments .wp-block-post-comments-form textarea,
.senseinvest-comments .wp-block-post-comments-form input:not([type="submit"]) {
	width: 100%;
	box-sizing: border-box;
	background: #374151;
	border: 1px solid #4b5563;
	color: #f9fafb;
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	margin-bottom: 1rem;
	font-family: inherit;
	font-size: 1rem;
}

.senseinvest-comment-form textarea,
.senseinvest-comments textarea {
	min-height: 8rem;
	resize: vertical;
}

.senseinvest-comment-form input:focus,
.senseinvest-comment-form textarea:focus,
.senseinvest-comments input:focus,
.senseinvest-comments textarea:focus {
	outline: 2px solid #60a5fa;
	outline-offset: 0;
	border-color: #60a5fa;
}

.senseinvest-comment-form .form-submit input[type="submit"],
.senseinvest-comment-form__submit,
.senseinvest-comments .form-submit input[type="submit"],
.senseinvest-comments .wp-block-post-comments-form input[type="submit"] {
	background: #60a5fa;
	color: #111827;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.65rem 1.5rem;
	cursor: pointer;
	width: auto;
}

.senseinvest-comment-form .form-submit input[type="submit"]:hover,
.senseinvest-comments .form-submit input[type="submit"]:hover {
	background: #93c5fd;
}

.senseinvest-comment-form .required {
	color: #f87171;
}

.senseinvest-comment--php .senseinvest-comment__meta {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin-bottom: 0.5rem;
}

.senseinvest-comment--php .senseinvest-comment__inner {
	padding-bottom: 0.5rem;
}

/* —— Fase 4: Acessibilidade e performance —— */

/* Contraste AA: texto secundário (#b0bac9 em #1f2937) */
.has-text-muted-color,
.senseinvest-hero__lead,
.senseinvest-post-card__excerpt,
.senseinvest-single__date,
.senseinvest-breadcrumb {
	color: #b0bac9;
}

/* Skip link (WordPress / tema) */
.skip-link.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.skip-link.screen-reader-text:focus,
.skip-link.screen-reader-text:focus-visible {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	background: #f9fafb;
	color: #111827;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.4);
	outline: 3px solid #60a5fa;
	outline-offset: 2px;
}

/* Foco visível — teclado */
:where(a, button, input, textarea, select, summary, [tabindex]:not([tabindex="-1"])):focus {
	outline: none;
}

:where(
	a,
	button,
	input,
	textarea,
	select,
	.senseinvest-search .wp-block-search__button,
	.senseinvest-pagination a,
	.senseinvest-pagination .page-numbers,
	.senseinvest-header__logo-link,
	.senseinvest-footer__social-link,
	.senseinvest-footer__links a,
	.senseinvest-footer__cta .wp-block-button__link
):focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 3px;
	border-radius: 4px;
}

.senseinvest-search .wp-block-search__inside-wrapper:focus-within {
	outline: 3px solid #93c5fd;
	outline-offset: 2px;
	border-color: #93c5fd;
}

.senseinvest-search .wp-block-search__input:focus {
	outline: none;
}

/* Busca: rótulo só para leitores de tela (se exibido pelo bloco) */
.senseinvest-search .wp-block-search__label {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
}

/* Imagens */
.senseinvest-article img[loading="lazy"],
.senseinvest-post-card img[loading="lazy"] {
	background-color: #374151;
}

.senseinvest-article img:not([alt]),
.senseinvest-post-card img:not([alt]) {
	outline: 2px dashed #f87171;
	outline-offset: 2px;
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.senseinvest-post-card:hover {
		transform: none;
	}
}
