/* ==========================================================================
   Digitação Online — tema
   Mobile first · amarelo do logo + preto · sem serifa · bordas arredondadas

   ÍNDICE (busque pelo número, ex.: "/* 7.")
     1. Tokens ............ cores, fontes, raios, sombras, larguras (mude a paleta aqui)
     2. Base .............. reset, tipografia, links, foco, .container
     3. Botões, chips, campos  .btn, .chip, .badge, inputs, .notice
     4. Cabeçalho ......... topo fixo, menu, menu mobile, busca     (header.php)
     5. Heros e seções .... .page-hero, hero da home, destaques, passos, CTA (front-page.php)
     6. Layout com sidebar  grade conteúdo + barra lateral
     7. Cards ............. cards de post das listagens            (template-parts/card.php)
     8. Sidebar / widgets . widgets da barra lateral               (sidebar.php)
     9. Post / conteúdo ... .prose, autor, tags, comentários, anúncios (.ad-slot e .ad-break) (single.php)
    10. Rodapé ............ faixa de CTA, colunas, copyright       (footer.php)
    11. Teste de digitação  painel, placar, texto, resultado      (template-parts/typing/test.php)
    12. Movimento reduzido  prefers-reduced-motion

   Outros arquivos de CSS (carregados só onde são usados):
     - test-modes.css ...... tipos de exercício e formulário "Tipo de teste" (home e páginas do teste)
     - keyboard-test.css ... teste de teclado e guia
     - editor.css .......... visual do editor de blocos no wp-admin
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
	/* Marca: amarelo do logo (#FFD66B) + preto do "D". Amarelo é fundo; texto/links usam âmbar escuro (WCAG AA). */
	--c-brand: #ffd66b;
	--c-brand-strong: #ffc93c;
	--c-brand-ink: #1c1917;
	--c-primary: #8a5c00;
	--c-primary-600: #b07a00;
	--c-primary-700: #6f4a00;
	--c-primary-50: #fffbeb;
	--c-primary-100: #fff1c2;
	--c-accent: #f5a524;
	--c-ink: #1c1917;
	--c-text: #292524;
	--c-muted: #78716c;
	--c-line: #ece7dc;
	--c-bg: #ffffff;
	--c-bg-alt: #fffaf0;
	--c-ok: #059669;
	--c-ok-bg: #d1fae5;
	--c-err: #dc2626;
	--c-err-bg: #fee2e2;
	--c-warn-bg: #fef3c7;

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Poppins", var(--font-body);
	--font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgb(28 25 23 / .06);
	--shadow: 0 8px 24px -8px rgb(28 25 23 / .14), 0 2px 6px rgb(28 25 23 / .05);
	--shadow-lg: 0 24px 48px -16px rgb(176 122 0 / .30);

	--container: 1200px;
	--narrow: 800px;
	--gap: clamp(16px, 3vw, 32px);
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font: 400 1rem/1.7 var(--font-body);
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--c-primary-700); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--c-ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--c-primary-600); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c-primary-100); }
.icon { flex: none; vertical-align: middle; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--c-ink); color: #fff; border-radius: var(--radius-sm);
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: calc(var(--narrow) + 40px); }
.center { text-align: center; }

/* 3. Botões, chips, campos ------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
	font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s, color .15s, border-color .15s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-brand); color: var(--c-brand-ink); box-shadow: 0 6px 16px -8px rgb(176 122 0 / .55); }
.btn--primary:hover { background: var(--c-brand-strong); color: var(--c-brand-ink); box-shadow: 0 10px 22px -8px rgb(176 122 0 / .6); }
.btn--ghost { background: #fff; color: var(--c-primary); border-color: var(--c-primary-100); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-700); }
.btn--light { background: #fff; color: var(--c-primary-700); }
.btn--light:hover { background: var(--c-primary-50); color: var(--c-primary-700); }
.btn--sm { padding: 8px 16px; font-size: .875rem; }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn.is-active { background: var(--c-primary-50); border-color: var(--c-primary); }

.icon-btn {
	display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px;
	border-radius: 10px; border: 1px solid var(--c-line); background: #fff; color: var(--c-text);
	font: 600 .85rem var(--font-body); cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-50); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
	display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
	background: var(--c-primary-50); color: var(--c-primary-700); font-size: .78rem; font-weight: 600;
	text-decoration: none; letter-spacing: .01em; transition: background .15s, color .15s;
}
.chip:hover, .chip.is-active { background: var(--c-brand); color: var(--c-brand-ink); }
.chip--ghost { background: #fff; border: 1px solid var(--c-line); color: var(--c-muted); }
.badge { display: inline-block; vertical-align: middle; padding: 4px 12px; border-radius: 999px; background: var(--c-ok-bg); color: var(--c-ok); font: 700 .8rem/1.2 var(--font-body); letter-spacing: .02em; text-transform: uppercase; }
.eyebrow { margin: 0 0 10px; color: var(--c-primary); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .15s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], input[type="password"], select, textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff;
	font: inherit; color: var(--c-text); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary-600); box-shadow: 0 0 0 4px var(--c-primary-100); }
label { font-weight: 600; font-size: .9rem; color: var(--c-ink); }

.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--c-primary-50); }
.notice--warn { background: var(--c-warn-bg); }

/* 4. Cabeçalho ----------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.site-branding img, .custom-logo { display: block; max-height: 52px; width: auto; }
.site-title { font: 800 1.25rem var(--font-head); color: var(--c-ink); text-decoration: none; }

.menu-toggle {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle.is-open .menu-toggle__open { display: none; }
.menu-toggle.is-open .menu-toggle__close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
	display: flex; flex-direction: column; gap: 16px;
	position: absolute; inset: 100% 0 auto 0; padding: 16px 20px 24px;
	background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow);
	max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.menu { list-style: none; margin: 0; padding: 0; }
.menu--primary > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--c-line); }
.menu--primary a { display: block; flex: 1; padding: 12px 4px; color: var(--c-ink); font-weight: 600; text-decoration: none; }
.menu--primary a:hover, .menu--primary .current-menu-item > a, .menu--primary .current-menu-ancestor > a, .menu--primary .current_page_parent > a { color: var(--c-primary); }
.submenu-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--c-muted); cursor: pointer; }
.submenu-toggle svg { transition: transform .2s; }
.submenu-toggle.is-open svg { transform: rotate(180deg); }
.menu--primary .sub-menu { display: none; width: 100%; list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; }
.menu--primary li.is-open > .sub-menu, .menu--primary .submenu-toggle.is-open + .sub-menu { display: block; }
.menu--primary .sub-menu a { padding: 8px 4px; font-weight: 500; color: var(--c-muted); }
.site-nav__actions { display: flex; align-items: center; gap: 10px; }
.search-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-ink); cursor: pointer; transition: border-color .15s, color .15s; }
.search-toggle:hover { border-color: var(--c-primary); color: var(--c-primary); }
.header-search { border-top: 1px solid var(--c-line); background: #fff; padding: 16px 0; }

@media (min-width: 1024px) {
	.menu-toggle { display: none; }
	.site-nav, .site-nav.is-open {
		display: flex; flex-direction: row; align-items: center; gap: 22px;
		position: static; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
	}
	.menu--primary { display: flex; gap: 2px; }
	.menu--primary > li { border: 0; flex-wrap: nowrap; }
	.menu--primary > li > a { padding: 8px 12px; border-radius: 999px; font-size: .94rem; }
	.menu--primary > li > a:hover { background: var(--c-primary-50); }
	.menu--primary > li.menu-item-has-children > a { padding-right: 4px; }
	.submenu-toggle { width: 24px; height: 24px; margin-right: 4px; }
	.menu--primary .sub-menu {
		display: block; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 8px; margin: 0;
		background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
	}
	.menu--primary .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
	.menu--primary li:hover > .sub-menu, .menu--primary li:focus-within > .sub-menu, .menu--primary li.is-open > .sub-menu, .menu--primary .submenu-toggle.is-open + .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.menu--primary .sub-menu a { padding: 9px 12px; border-radius: 10px; color: var(--c-text); }
	.menu--primary .sub-menu a:hover { background: var(--c-primary-50); color: var(--c-primary); }
}

/* 5. Heros e seções ------------------------------------------------------ */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px);
	background:
		radial-gradient(800px 400px at 85% 10%, rgb(255 214 107 / .16), transparent 60%),
		radial-gradient(700px 500px at 0% 100%, rgb(176 122 0 / .12), transparent 60%),
		linear-gradient(180deg, #fffdf5, #fff);
}
.hero__inner { display: grid; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 20px; }
.hero__title span { display: block; background: linear-gradient(90deg, var(--c-primary-700), var(--c-primary-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--c-muted); max-width: 56ch; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 32px 0 0; color: var(--c-muted); font-size: .92rem; }
.hero__facts strong { color: var(--c-ink); font-family: var(--font-head); margin-right: 4px; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }

.demo-window { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px 22px 22px; transform: rotate(-1.2deg); }
.demo-window__bar { display: flex; gap: 6px; margin-bottom: 18px; }
.demo-window__bar span { width: 11px; height: 11px; border-radius: 50%; background: #e7e5e4; }
.demo-window__bar span:first-child { background: #fca5a5; } .demo-window__bar span:nth-child(2) { background: #fcd34d; } .demo-window__bar span:nth-child(3) { background: #86efac; }
.demo-window__text { font: 500 clamp(1.1rem, 2.2vw, 1.45rem)/1.6 var(--font-mono); margin: 0 0 20px; color: #a8a29e; }
.demo-window__text .ok { color: var(--c-ok); }
.demo-window__text .err { color: var(--c-err); background: var(--c-err-bg); border-radius: 3px; }
.demo-window__text .cur { position: relative; }
.demo-window__text .cur::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 2px; background: var(--c-primary); animation: blink 1s steps(1) infinite; }
.demo-window__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-window__stats div { background: var(--c-bg-alt); border-radius: 12px; padding: 10px 12px; }
.demo-window__stats small { display: block; color: var(--c-muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.demo-window__stats strong { font: 800 1.5rem var(--font-head); color: var(--c-primary); }
.demo-keys { display: flex; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.demo-keys kbd {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
	background: #fff; border: 1px solid var(--c-line); box-shadow: 0 3px 0 var(--c-line);
	font: 600 1rem var(--font-body); color: var(--c-ink);
}
.demo-keys kbd.home { background: var(--c-brand); border-color: var(--c-brand-strong); color: var(--c-brand-ink); box-shadow: 0 3px 0 var(--c-brand-strong); }
@keyframes blink { 50% { opacity: 0; } }

.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); background: linear-gradient(180deg, var(--c-bg-alt), #fff); }
.page-hero--compact { padding-bottom: 24px; }
.page-hero__title { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.page-hero__lead { font-size: 1.08rem; color: var(--c-muted); max-width: 64ch; margin-bottom: 0; }
.page-hero--post .page-hero__title { font-size: clamp(1.8rem, 4.2vw, 3rem); margin-top: 12px; }
.page-hero .search-form { max-width: 520px; margin: 24px auto 0; }

.breadcrumbs { font-size: .85rem; color: var(--c-muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); }

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--c-bg-alt); }
.section-title { font-size: clamp(1.45rem, 2.8vw, 2.05rem); font-weight: 800; letter-spacing: -.015em; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-head .section-title { margin: 0; }

.features { display: grid; gap: 20px; }
@media (min-width: 800px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 28px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary-100); }
.feature h2 { font-size: 1.25rem; margin-top: 18px; }
.feature p { color: var(--c-muted); font-size: .97rem; }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-brand); color: var(--c-brand-ink); }
.feature__icon .icon { width: 26px; height: 26px; }

.steps-wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .steps-wrap { grid-template-columns: 1fr 1fr; } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; color: var(--c-muted); }
.steps li::before {
	content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px;
	border-radius: 50%; background: var(--c-brand); color: var(--c-brand-ink); font: 700 .95rem var(--font-head);
}
.steps li strong { display: block; color: var(--c-ink); }
.metrics { display: grid; gap: 14px; margin: 0; }
@media (min-width: 560px) { .metrics { grid-template-columns: 1fr 1fr; } }
.metrics div { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; }
.metrics dt { font: 800 1.35rem var(--font-head); color: var(--c-primary); }
.metrics dd { margin: 4px 0 0; color: var(--c-muted); font-size: .93rem; }

.cta-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	margin: 40px 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
	background:
		radial-gradient(420px 220px at 100% 0%, rgb(255 214 107 / .22), transparent 70%),
		linear-gradient(120deg, #1c1917, #292524);
	color: #d6d3d1;
	box-shadow: 0 24px 48px -20px rgb(28 25 23 / .5);
}
.cta-box h2 { color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.65rem); margin-bottom: 6px; }
.cta-box p { margin: 0; }
.cta-box .btn--light { background: var(--c-brand); color: var(--c-brand-ink); }
.cta-box .btn--light:hover { background: var(--c-brand-strong); color: var(--c-brand-ink); }
.cta-box--wide { margin: 0; }

/* 6. Layout com sidebar ---------------------------------------------------- */
.layout { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 72px; }
@media (min-width: 1024px) {
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
}
.layout__main { min-width: 0; }

/* 7. Cards ---------------------------------------------------------------- */
.cards { display: grid; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
	display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
	background: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary-100); }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-primary-100); }
.card__placeholder .icon { width: 56px; height: 56px; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.card__title { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.card__title a { color: var(--c-ink); text-decoration: none; }
.card__title a:hover { color: var(--c-primary); }
.card__excerpt { color: var(--c-muted); font-size: .93rem; margin: 0; flex: 1; }
@media (min-width: 640px) {
	.card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
	.card--featured .card__media { aspect-ratio: auto; min-height: 280px; }
	.card--featured .card__body { justify-content: center; padding: 32px; }
	.card--featured .card__title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
}

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--c-muted); font-size: .84rem; }
.post-meta__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.post-meta__author a { color: var(--c-ink); text-decoration: none; }
.post-meta__avatar { border-radius: 50%; }

.empty-state { padding: 48px 24px; text-align: center; border: 1px dashed var(--c-line); border-radius: var(--radius-lg); }

/* Paginação */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-weight: 600; font-size: .92rem; transition: all .15s;
}
a.page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-numbers.current { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-brand-ink); }
.page-numbers.dots { border: 0; }

/* 8. Sidebar / widgets ---------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.widget { padding: 22px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: #fff; font-size: .94rem; }
.widget:has(> .wp-block-image:only-child), .widget:has(> figure:only-child) { padding: 0; border: 0; overflow: hidden; }
/* Widget que só tem um título (padrão usado na sidebar atual): vira o cabeçalho do widget seguinte. */
.sidebar .widget:has(> .wp-block-heading:only-child) { padding: 0 4px; border: 0; background: none; margin-bottom: -12px; }
.sidebar .widget:has(> .wp-block-heading:only-child) .wp-block-heading { margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.widget:has(.adsbygoogle) { padding: 0; border: 0; background: none; }
.widget-title, .widget h2, .widget .wp-block-heading { font-size: 1rem; margin: 0 0 14px; letter-spacing: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--c-text); text-decoration: none; font-weight: 500; }
.widget li a:hover { color: var(--c-primary); }
.widget img { border-radius: var(--radius); display: block; }
.widget .wp-block-image { margin: 0; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget .wp-block-search__button { border: 0; border-radius: 10px; padding: 0 16px; background: var(--c-brand); color: var(--c-brand-ink); font-weight: 600; cursor: pointer; }
.widget .wp-block-latest-posts__post-date { display: block; color: var(--c-muted); font-size: .8rem; }
.widget .adsbygoogle { margin-inline: auto; }

.search-form { position: relative; display: flex; align-items: center; gap: 8px; }
.search-form > .icon { position: absolute; left: 14px; color: var(--c-muted); pointer-events: none; }
.search-form__input { padding-left: 42px !important; }

/* 9. Post / conteúdo ------------------------------------------------------ */
.single__thumb { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.single__thumb img { display: block; width: 100%; }
.single__tags { margin: 32px 0 0; }

.prose { font-size: 1.07rem; line-height: 1.8; color: #44403c; overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 1.25em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 2em; }
.prose h3 { font-size: clamp(1.2rem, 2.1vw, 1.4rem); margin-top: 1.7em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.5em; }
.prose a { font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--c-primary); }
.prose img { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-element-caption { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: 8px; }
.prose blockquote, .wp-block-quote { margin-inline: 0; padding: 18px 24px; border-left: 4px solid var(--c-brand); background: var(--c-bg-alt); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.08rem; }
.prose blockquote p:last-child { margin: 0; }
.prose hr, .wp-block-separator { border: 0; height: 1px; background: var(--c-line); margin: 2.5em auto; }
.prose code { font: .9em var(--font-mono); background: var(--c-bg-alt); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--c-ink); color: #e7e5e4; padding: 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--c-bg-alt); color: var(--c-ink); }
.prose tr:hover td { background: #fffcf2; }
.wp-block-table { overflow-x: auto; }
.wp-block-embed { margin-inline: 0; }
.wp-block-embed__wrapper iframe { border-radius: var(--radius); }
.wp-block-button__link { border-radius: 999px; background: var(--c-brand); color: var(--c-brand-ink); padding: 12px 24px; font-weight: 600; text-decoration: none; }
.wp-block-button__link:hover { background: var(--c-brand-strong); color: var(--c-brand-ink); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; text-align: center; }
.prose .alignwide, .prose .alignfull { margin-inline: 0; }
.entry-content--full > .alignfull { margin-inline: 0; width: 100%; }
.entry-content--full > *:not(.alignfull):not(.alignwide) { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.wp-block-social-links { gap: 10px; }

.author-box {
	display: flex; align-items: center; gap: 20px; margin: 40px 0 0; padding: 22px;
	border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-bg-alt);
}
.author-box img { border-radius: 50%; flex: none; width: 80px; height: 80px; }
.author-box__label { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.author-box__name { font-size: 1.15rem; margin: 2px 0 6px; }
.author-box__name a { color: var(--c-ink); text-decoration: none; }
.author-box p:last-child { margin: 0; color: var(--c-muted); font-size: .93rem; }

.post-navigation { margin: 40px 0; }
.post-navigation .nav-links { display: grid; gap: 14px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.post-navigation a:hover { border-color: var(--c-primary); box-shadow: var(--shadow); }
.post-navigation .nav-next { text-align: right; }
.post-nav__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.post-nav__title { display: block; color: var(--c-ink); font-weight: 600; line-height: 1.4; margin-top: 4px; }
.related { margin-top: 48px; }

/* Anúncios (migrado do Neve Child) */
.ad-slot { clear: both; margin: 36px auto; padding-top: 18px; border-top: 1px solid var(--c-line); text-align: center; position: relative; }
.ad-slot::after { content: ""; display: block; width: 120px; margin: 18px auto 0; border-bottom: 1px solid var(--c-line); }
.ad-slot__label { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 10px; background: #fff; color: var(--c-muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.ad-slot img { display: block; margin: 0 auto; max-width: 100%; border-radius: var(--radius); }

/* AdSense das ferramentas (inc/ads.php → digitacao_test_ad): marcador antes e depois.
   min-height reserva o espaço (evita a página "pular"); bloco sem anúncio é recolhido. */
.ad-break { clear: both; max-width: 100%; margin: clamp(28px, 5vw, 44px) auto; text-align: center; }
.ad-break__mark {
	display: flex; align-items: center; gap: 12px; margin: 0;
	color: var(--c-muted); font: 600 .68rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.ad-break__mark::before, .ad-break__mark::after { content: ""; flex: 1; border-top: 1px solid var(--c-line); }
.ad-break__unit { min-height: 280px; margin: 12px 0; overflow: hidden; }
@media (min-width: 760px) { .ad-break__unit { min-height: 100px; } }
.ad-break__unit .adsbygoogle, .ad-break__unit .adsbygoogle-deferred { margin-inline: auto; }
.ad-break:has(ins[data-ad-status="unfilled"]) { display: none; }
.typing__done .ad-break { margin: 32px 0 0; } /* distância dos botões do resultado (evita clique acidental) */
.prose .ad-break__mark { margin: 0; }

/* Comentários */
.comments { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; }
.comment-metadata a { color: var(--c-muted); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; }

/* 10. Rodapé ------------------------------------------------------------- */
.site-footer {
	position: relative; margin-top: 96px; padding: 0 0 28px; font-size: .94rem; color: #a8a29e;
	background:
		radial-gradient(700px 300px at 100% 0%, rgb(255 214 107 / .10), transparent 60%),
		radial-gradient(600px 300px at 0% 100%, rgb(176 122 0 / .14), transparent 60%),
		var(--c-ink);
}
/* Links de texto do rodapé (não afeta botões). */
.site-footer a:not(.btn) { color: #d6d3d1; text-decoration: none; transition: color .15s; }
.site-footer a:not(.btn):hover { color: #fff; }

/* Faixa de CTA que "sobe" sobre o topo do rodapé */
.footer-cta {
	position: relative; top: -56px; margin-bottom: -16px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
	padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
	background: linear-gradient(120deg, var(--c-brand), #ffcf4d);
	box-shadow: 0 24px 48px -20px rgb(0 0 0 / .6);
	color: #44403c;
}
.footer-cta h2 { color: var(--c-brand-ink); font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 4px; }
.footer-cta p { margin: 0; }
.footer-cta .btn--light { background: var(--c-brand-ink); color: #fff; box-shadow: 0 8px 20px -8px rgb(28 25 23 / .55); }
.footer-cta .btn--light:hover { background: #000; color: var(--c-brand); }

/* Grade de colunas */
.footer-grid { display: grid; gap: 36px 28px; padding-bottom: 40px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 900px) {
	.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
	.footer-brand { grid-column: auto; }
}
.footer-brand .custom-logo-link {
	display: inline-flex; padding: 8px 14px; border-radius: 12px; background: #fff;
	box-shadow: 0 6px 18px -8px rgb(0 0 0 / .5);
}
.footer-brand img { display: block; max-height: 38px; width: auto; }
.footer-brand .site-title { color: #fff; font-size: 1.2rem; }
.footer-brand > p { margin: 18px 0 20px; line-height: 1.65; }

.footer-col__title {
	margin: 4px 0 16px; color: #fff; font: 700 .8rem/1.2 var(--font-body);
	letter-spacing: .12em; text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a:not(.btn) { display: inline-block; }
.footer-col a:not(.btn):hover { transform: translateX(2px); }

/* Widgets dentro da coluna da marca (ex.: redes sociais) */
.footer-brand__widgets .widget { padding: 0; border: 0; background: none; color: #a8a29e; }
.footer-brand__widgets .widget-title, .footer-brand__widgets .widget h2 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-brand__widgets .widget li { border-color: rgb(168 162 158 / .15); }

/* Redes sociais: botões redondos com contraste */
.site-footer .wp-block-social-links { display: flex; flex-wrap: wrap; gap: 10px !important; margin: 0; padding: 0; justify-content: flex-start !important; }
.site-footer .wp-block-social-links .wp-social-link {
	display: inline-flex; margin: 0; padding: 0; border: 0; border-bottom: 0;
	background: rgb(255 255 255 / .08) !important; color: #e7e5e4 !important;
	border-radius: 12px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
	transition: background .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
}
.site-footer .wp-block-social-links .wp-social-link a {
	display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: inherit !important;
}
.site-footer .wp-block-social-links .wp-social-link svg { width: 20px; height: 20px; fill: currentColor; filter: none; }
.site-footer .wp-block-social-links .wp-social-link:hover {
	background: var(--c-brand) !important; color: var(--c-brand-ink) !important; transform: translateY(-2px);
	box-shadow: 0 8px 18px -6px rgb(176 122 0 / .7);
}

/* Barra inferior */
.footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
	padding-top: 24px; border-top: 1px solid rgb(168 162 158 / .16); font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom__top {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
}
.footer-bottom__top:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); }

/* 11. Teste de digitação --------------------------------------------------- */
.container--test { padding-bottom: 72px; }
.panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 32px); box-shadow: var(--shadow-sm); }
.typing { display: grid; gap: 20px; }
.typing__setup { display: grid; gap: 18px; align-items: end; }
@media (min-width: 760px) { .typing__setup { grid-template-columns: 1fr 1fr auto; } .typing__start { grid-column: 3; grid-row: 1; } .typing__custom { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field--inline { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.field--inline input { width: 80px; }
.typing__custom { border-top: 1px solid var(--c-line); padding-top: 14px; }
.typing__custom summary { cursor: pointer; font-weight: 600; color: var(--c-primary); }
.typing__custom p { color: var(--c-muted); font-size: .93rem; margin: 10px 0; }
.typing__custom-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: var(--c-muted); }
.typing__loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px; color: var(--c-muted); font-weight: 500; }
.spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--c-primary-100); border-top-color: var(--c-brand-strong); animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.typing__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--c-bg-alt); border-radius: 12px; padding: 10px 14px; }
.stat small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.stat strong { font: 800 1.45rem/1.2 var(--font-head); color: var(--c-primary); font-variant-numeric: tabular-nums; }
.stat--err strong { color: var(--c-err); }
.typing__progress { height: 6px; border-radius: 999px; background: var(--c-line); overflow: hidden; margin-bottom: 18px; }
.typing__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-brand), var(--c-accent)); transition: width .15s; }
.typing__text {
	max-height: 13.5em; overflow-y: auto; padding: 18px 20px; border-radius: var(--radius); background: var(--c-bg-alt);
	font: 500 24px/1.75 var(--font-mono); color: #a8a29e; letter-spacing: .01em; cursor: text; position: relative;
	scrollbar-width: thin;
}
.noselect { user-select: none; -webkit-user-select: none; }
.letter { border-radius: 3px; transition: color .08s, background .08s; }
.letter.correct { color: var(--c-ok); }
.letter.wrong { color: var(--c-err); background: var(--c-err-bg); }
.letter.current { color: var(--c-ink); box-shadow: inset 0 -3px 0 var(--c-ink); background: var(--c-brand); }
/* Digitação direto no texto: o campo real fica invisível dentro do palco. */
.typing__stage { position: relative; }
.typing__text { scroll-behavior: smooth; }
.typing__input {
	position: absolute !important; left: 20px; top: 18px; width: 1px !important; height: 1px; padding: 0 !important;
	border: 0 !important; opacity: 0; pointer-events: none; font-size: 16px !important; /* 16px evita zoom no iOS */
}
.typing__stage.is-typing .letter.current { animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 50% { box-shadow: inset 0 -3px 0 transparent; } }
.typing__focus {
	position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 10px;
	border: 0; border-radius: var(--radius); background: rgb(255 255 255 / .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
	font: 600 1rem var(--font-body); color: var(--c-ink); cursor: pointer;
}
.typing__focus span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.typing__stage.is-blurred .typing__focus { display: flex; }
@media (prefers-reduced-motion: reduce) { .typing__text { scroll-behavior: auto; } .typing__stage.is-typing .letter.current { animation: none; } }
.typing__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; color: var(--c-muted); font-size: .9rem; }
.typing__font { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
#typing-sound .off { display: none; }
#typing-sound.is-off .on { display: none; }
#typing-sound.is-off .off { display: inline; }
#typing-sound.is-off { color: var(--c-muted); }

.typing__done { text-align: center; }
.typing__done .actions { justify-content: center; }
.result-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 20px; text-align: center; }
.result-card { flex: 1 1 120px; background: var(--c-bg-alt); border-radius: var(--radius); padding: 14px; }
.result-card--main { flex-basis: calc(50% - 6px); }
.result-card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.result-card strong { display: block; font: 800 1.6rem/1.2 var(--font-head); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.result-card span { font-size: .8rem; color: var(--c-muted); }
.result-card--main { background: var(--c-brand); color: var(--c-brand-ink); }
.result-card--main small, .result-card--main span { color: rgb(28 25 23 / .7); }
.result-card--main strong { color: var(--c-brand-ink); font-size: 2.6rem; }
.result-meta { color: var(--c-muted); font-size: .88rem; text-align: center; }
.typing__save { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--c-muted); }
.typing__save.is-ok { color: var(--c-ok); font-weight: 600; }
.typing__save.is-error { color: var(--c-err); font-weight: 600; }

.typing__legend summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-ink); }
.typing__legend[open] summary { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; }
.table-wrap tr:hover td { background: var(--c-bg-alt); }

.test-info { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .test-info { grid-template-columns: 1fr 1fr; } }
.test-info h2 { font-size: 1.2rem; }
.test-info img { display: block; margin-inline: auto; border-radius: var(--radius); }

.lookup label { display: block; margin-bottom: 10px; }
.lookup__row { display: flex; gap: 10px; }
.lookup__row input { flex: 1; }

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

/* Tipo do teste na página de resultado */
.result-type { margin: -4px 0 14px; }
.result-type .chip { font-size: .85rem; padding: 6px 14px; }
