/* ============================================================================
 * Reprodução do Preflight do Tailwind.
 *
 * O knxsite carrega `@import "tailwindcss"` antes de `khoinix.css`, e o Preflight
 * do Tailwind faz parte do que o design assume. Sem ele o WordPress renderiza com
 * as margens e estilos padrão do navegador, e a paridade quebra.
 *
 * Aqui vai só o subconjunto do qual o design depende de fato — não o Preflight
 * inteiro. Enfileirado ANTES de khoinix.css, como no original.
 * ============================================================================ */

*,
::before,
::after {
	box-sizing: border-box;
	border-width: 0;
	border-style: solid;
}

html {
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	tab-size: 4;
}

body {
	margin: 0;
	line-height: inherit;
}

hr {
	height: 0;
	color: inherit;
	border-top-width: 1px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-size: inherit;
	font-weight: inherit;
	margin: 0;
}

p,
figure,
blockquote,
dl,
dd,
pre {
	margin: 0;
}

ol,
ul,
menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

a {
	color: inherit;
	text-decoration: inherit;
}

b,
strong {
	font-weight: bolder;
}

code,
kbd,
samp,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
		"Courier New", monospace;
	font-size: 1em;
}

small {
	font-size: 80%;
}

table {
	text-indent: 0;
	border-color: inherit;
	border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-feature-settings: inherit;
	font-variation-settings: inherit;
	font-size: 100%;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	margin: 0;
	padding: 0;
}

button,
select {
	text-transform: none;
}

button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
	-webkit-appearance: button;
	background-color: transparent;
	background-image: none;
}

:-moz-focusring {
	outline: auto;
}

progress {
	vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

summary {
	display: list-item;
}

fieldset,
legend {
	margin: 0;
	padding: 0;
}

textarea {
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	opacity: 1;
	color: currentColor;
}

/*
 * O Preflight do Tailwind v3 declarava `button, [role="button"] { cursor: pointer }` e
 * `:disabled { cursor: default }`. O v4 removeu as duas — o guia de migração diz, com
 * essas palavras, que "buttons use cursor: default to match browser behavior" — e o
 * knxsite usa v4. Medido no site em execução: os botões do banner de cookies, que só têm
 * utilitários do Tailwind, computam `cursor: default`.
 *
 * As regras ficaram aqui até a Fase 6, quando o extrator passou a medir `cursor` e a
 * diferença apareceu. Quem tem `pointer` no original tem por regra própria: `.btn` e
 * `.nav-toggle` declaram em khoinix.css, e o switch do painel usa `cursor-pointer`.
 */

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
	display: block;
	vertical-align: middle;
}

img,
video {
	max-width: 100%;
	height: auto;
}

[hidden] {
	display: none;
}
