/*
Theme Name: Glossique Verbete
Description: The Glossique theme: a clothing lexicon with marginal glosses.
Version: 1.2.0
Text Domain: glossique-verbete
*/

/* ── Faces (SIL Open Font License; the licences ship in assets/fonts) ── */
@font-face {
	font-family: "Bodoni Moda";
	src: url("assets/fonts/bodoni-moda.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Bodoni Moda";
	src: url("assets/fonts/bodoni-moda-italic.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-italic.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}

:root {
	--petroleo: #0d5c6e;
	--petroleo-fundo: #0a4a59;
	--tinta: #15191c;
	--papel: #ffffff;
	--brilho: #e8f3f4;
	--agua: #8fd3d8;
	--cinza: #5d6a70;
	--fio: #b7d3d7;
	--didone: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--texto: "Newsreader", Georgia, "Times New Roman", serif;
	--lombada: 7.5rem;
	--medida: 34rem;
	--margem: 18.75rem;
	--entre: 3.5rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--papel);
	color: var(--tinta);
	font-family: var(--texto);
	font-size: 1.1875rem;
	line-height: 1.65;
	font-optical-sizing: auto;
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
	text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--petroleo);
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-color: var(--agua);
	text-decoration-thickness: 0.14em;
}

:focus-visible {
	outline: 2px solid var(--petroleo);
	outline-offset: 3px;
	border-radius: 1px;
}

code {
	font-family: var(--didone);
	font-size: 0.92em;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--petroleo);
	background: var(--brilho);
	padding: 0.05em 0.3em;
}

::selection {
	background: var(--agua);
	color: var(--tinta);
}

h1,
h2,
h3,
h4 {
	font-family: var(--didone);
	font-weight: 500;
	line-height: 1.12;
	color: var(--tinta);
	text-wrap: pretty;
	hyphens: manual;
}

.salto {
	position: absolute;
	left: -999rem;
	top: 0.5rem;
	z-index: 50;
	background: var(--papel);
	padding: 0.5rem 1rem;
	border: 1px solid var(--petroleo);
}

.salto:focus {
	left: 0.5rem;
}

.leitor {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ── The spine: a fixed column on wide screens, a slim bar on phones ── */
.lombada {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 1.1rem;
	border-bottom: 1px solid var(--fio);
	background: var(--papel);
}

.lombada__marca {
	display: block;
	flex: none;
	width: 2.1rem;
	line-height: 0;
}

.lombada__marca img {
	width: 100%;
	display: block;
}

.lombada__nome {
	font-family: var(--didone);
	font-style: italic;
	font-weight: 500;
	font-size: 1.55rem;
	line-height: 1;
	color: var(--petroleo);
	text-decoration: none;
	letter-spacing: 0.01em;
}

.lombada__indice {
	margin-left: auto;
}

.lombada__indice ul,
.colofao__indice {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lombada__indice ul {
	display: flex;
	gap: 1.1rem;
}

.lombada__indice a {
	white-space: nowrap;
	font-style: italic;
	font-size: 1.02rem;
	color: var(--tinta);
	text-decoration: none;
	position: relative;
}

.lombada__indice a:hover {
	color: var(--petroleo);
	text-decoration: underline;
	text-decoration-color: var(--agua);
}

.lombada__indice .current-menu-item > a,
.lombada__indice .current-menu-parent > a,
.lombada__indice .current-post-ancestor > a {
	color: var(--petroleo);
}

.lombada__indice .current-menu-item > a::before,
.lombada__indice .current-menu-parent > a::before,
.lombada__indice .current-post-ancestor > a::before {
	content: "";
	display: inline-block;
	width: 0.36em;
	height: 0.36em;
	margin-right: 0.3em;
	border-radius: 50%;
	background: var(--petroleo);
	vertical-align: 0.16em;
}

@media (min-width: 68rem) {
	.lombada {
		position: fixed;
		inset: 0 auto 0 0;
		width: var(--lombada);
		flex-direction: column;
		align-items: center;
		gap: 1.75rem;
		padding: 2rem 0 2.25rem;
		border-bottom: 0;
		border-right: 1px solid var(--petroleo);
		z-index: 10;
	}

	.lombada__marca {
		width: 3.1rem;
	}

	.lombada__nome {
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		font-size: 2.6rem;
		letter-spacing: 0.02em;
		flex: 1 1 auto;
		text-align: end;
		padding-block: 0.5rem;
	}

	.lombada__indice {
		margin-left: 0;
	}

	.lombada__indice ul {
		flex-direction: column;
		align-items: center;
		gap: 0.6rem;
	}

	.lombada__indice a {
		font-size: 0.98rem;
	}

	.folha {
		margin-left: var(--lombada);
	}
}

/* ── The page ── */
.folha {
	padding: 2.5rem clamp(1.1rem, 5vw, 5rem) 0;
}

.prancha {
	max-width: calc(var(--medida) + var(--entre) + var(--margem));
	margin: 0 auto;
}

/* ── Article head ── */
.cabeca__figura {
	margin: 0 0 2.25rem;
	background: var(--brilho);
	line-height: 0;
}

.cabeca__figura img,
.capa__figura img,
.entrada__figura img {
	aspect-ratio: 1200 / 760;
	object-fit: contain;
}

.cabeca__figura img {
	width: 100%;
	display: block;
}

.cabeca__nicho {
	margin: 0 0 0.6rem;
	font-style: italic;
	font-size: 1rem;
	color: var(--cinza);
}

.cabeca__nicho a {
	color: var(--petroleo);
	text-decoration: none;
}

.cabeca__nicho a::before {
	content: "";
	display: inline-block;
	width: 0.36em;
	height: 0.36em;
	margin-right: 0.35em;
	border-radius: 50%;
	background: var(--petroleo);
	vertical-align: 0.16em;
}

.cabeca h1 {
	font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.6rem);
	font-weight: 500;
	margin: 0 0 1.1rem;
	max-width: 26ch;
	letter-spacing: -0.005em;
}

.cabeca__resumo {
	font-size: 1.32rem;
	line-height: 1.5;
	font-style: italic;
	color: var(--tinta);
	max-width: var(--medida);
	margin: 0 0 1.6rem;
}

.assinatura {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--cinza);
	padding: 0.9rem 0;
	border-top: 1px solid var(--fio);
	border-bottom: 1px solid var(--fio);
	margin: 0 0 2.75rem;
	max-width: calc(var(--medida) + var(--entre) + var(--margem));
}

.assinatura img {
	width: 2.6rem;
	height: 2.6rem;
	flex: none;
	border: 1px solid var(--fio);
}

.assinatura p {
	margin: 0;
}

.assinatura strong {
	font-family: var(--didone);
	font-style: italic;
	font-weight: 500;
	color: var(--tinta);
	font-size: 1.05rem;
}

/* ── The body, with its margin of glosses ── */
.corpo {
	display: block;
}

.corpo > * {
	max-width: var(--medida);
}

.corpo > h2 {
	font-size: 1.85rem;
	margin: 2.6rem 0 0.9rem;
}

.corpo > h3 {
	font-size: 1.35rem;
	font-style: italic;
	margin: 2rem 0 0.6rem;
}

.corpo > p {
	margin: 0 0 1.1rem;
	hanging-punctuation: first;
}

.corpo > p:first-child::first-line {
	font-variant-caps: small-caps;
	letter-spacing: 0.03em;
}

/* A term in the text: a petrol dot and an aqua underline. */
dfn {
	font-style: italic;
	text-decoration: underline;
	text-decoration-color: var(--agua);
	text-decoration-thickness: 0.2em;
	text-underline-offset: 0.08em;
	text-decoration-skip-ink: none;
}

dfn::before {
	content: "";
	display: inline-block;
	width: 0.34em;
	height: 0.34em;
	margin: 0 0.24em 0 0.05em;
	border-radius: 50%;
	background: var(--petroleo);
	vertical-align: 0.2em;
}

/* A gloss: under its paragraph on phones, in the margin on wide screens. */
.corpo > dl {
	margin: 0 0 1.3rem;
	padding: 0.7rem 0.95rem 0.75rem 1rem;
	background: var(--brilho);
	border-left: 2px solid var(--petroleo);
	font-style: italic;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.corpo > dl dt {
	font-family: var(--didone);
	font-style: italic;
	font-weight: 500;
	font-size: 1.08rem;
	line-height: 1.25;
	color: var(--petroleo);
	margin: 0 0 0.25rem;
}

.corpo > dl dt::before {
	content: "";
	display: inline-block;
	width: 0.34em;
	height: 0.34em;
	margin-right: 0.35em;
	border-radius: 50%;
	background: var(--petroleo);
	vertical-align: 0.18em;
}

dt small,
.lema__classe {
	font-family: var(--texto);
	font-size: 0.82em;
	font-weight: 400;
	color: var(--cinza);
	letter-spacing: 0.01em;
}

.corpo > dl dd {
	margin: 0;
}

@media (min-width: 60rem) {
	.corpo {
		display: grid;
		grid-template-columns: minmax(0, var(--medida)) var(--margem);
		column-gap: var(--entre);
		align-items: start;
	}

	.corpo > * {
		grid-column: 1;
	}

	.corpo > dl {
		grid-column: 2;
		background: none;
		border-left: 0;
		padding: 0.3rem 0 0 0;
		margin: 0 0 1rem;
		border-top: 1px solid var(--fio);
		color: var(--tinta);
	}

	.corpo > figure,
	.corpo > .corpo__largo {
		grid-column: 1 / -1;
		max-width: none;
	}

	.corpo > .corpo__pe {
		grid-column: 2;
	}
}

/* Figures and charts: drawn in petrol on white, wider than the text. */
.corpo > figure {
	margin: 2.2rem 0 2.4rem;
}

figure img {
	display: block;
	width: 100%;
	border: 1px solid var(--fio);
}

figcaption {
	margin-top: 0.7rem;
	font-style: italic;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--cinza);
	max-width: calc(var(--medida) + 6rem);
	padding-left: 0.95rem;
	border-left: 1px solid var(--petroleo);
}

/* On phones a drawing keeps a width at which its italic labels stay legible and slides
   sideways inside its frame; the caption stays put under it at the column's width. */
@media (max-width: 40rem) {
	.corpo > figure {
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--fio) transparent;
	}

	.corpo > figure img {
		width: 44rem;
		max-width: none;
	}

	.corpo > figure figcaption {
		position: sticky;
		left: 0;
	}
}

/* Lists */
.corpo ul {
	padding-left: 1.3rem;
	margin: 0 0 1.3rem;
	list-style: none;
}

.corpo ul > li {
	position: relative;
	margin: 0 0 0.55rem;
}

.corpo ul > li::before {
	content: "";
	position: absolute;
	left: -1.05rem;
	top: 0.68em;
	width: 0.32rem;
	height: 0.32rem;
	border-radius: 50%;
	background: var(--petroleo);
}

/* Steps: numbered senses, as in a dictionary entry. */
.corpo ol {
	counter-reset: acepcao;
	list-style: none;
	padding: 0;
	margin: 0.6rem 0 1.6rem;
}

.corpo ol > li {
	counter-increment: acepcao;
	position: relative;
	padding: 0.15rem 0 0.75rem 2.6rem;
	margin: 0;
	border-bottom: 1px solid var(--brilho);
}

.corpo ol > li + li {
	padding-top: 0.75rem;
}

.corpo ol > li::before {
	content: counter(acepcao) ".";
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--didone);
	font-style: italic;
	font-weight: 600;
	font-size: 1.6rem;
	line-height: 1.2;
	color: var(--petroleo);
}

.corpo ol > li + li::before {
	top: 0.6rem;
}

/* A key point. */
.corpo > aside {
	margin: 1.8rem 0 2rem;
	padding: 1.1rem 1.3rem 0.35rem 1.4rem;
	background: var(--brilho);
	border-top: 3px double var(--petroleo);
}

.corpo > aside strong:first-child {
	font-family: var(--didone);
	font-style: italic;
	font-weight: 600;
	color: var(--petroleo);
}

/* A takeaway, set like a cited usage. */
.corpo > blockquote {
	margin: 2.2rem 0;
	padding: 0 0 0 1.4rem;
	border-left: 1px solid var(--petroleo);
	font-family: var(--didone);
	font-style: italic;
	font-weight: 500;
	font-size: 1.55rem;
	line-height: 1.35;
	color: var(--petroleo);
}

.corpo > blockquote p {
	margin: 0;
}

/* Questions and answers: sub-entries that open. */
.corpo > details {
	border-top: 1px solid var(--fio);
	padding: 0.2rem 0;
	margin: 0;
}

.corpo > details:last-of-type {
	border-bottom: 1px solid var(--fio);
	margin-bottom: 1.6rem;
}

.corpo summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--didone);
	font-style: italic;
	font-weight: 500;
	font-size: 1.18rem;
	line-height: 1.35;
	padding: 0.7rem 2rem 0.7rem 0;
	position: relative;
	color: var(--tinta);
}

.corpo summary::-webkit-details-marker {
	display: none;
}

.corpo summary::after {
	content: "";
	position: absolute;
	right: 0.35rem;
	top: 50%;
	width: 0.75rem;
	height: 0.75rem;
	margin-top: -0.375rem;
	background:
		linear-gradient(var(--petroleo), var(--petroleo)) center / 100% 1.5px no-repeat,
		linear-gradient(var(--petroleo), var(--petroleo)) center / 1.5px 100% no-repeat;
	transition: transform 0.2s ease;
}

.corpo details[open] summary::after {
	transform: rotate(45deg);
}

.corpo details > *:not(summary) {
	margin: 0 0 1rem;
}

/* Tables: ruled, readable on a phone by reflowing each row. */
.corpo table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4rem 0 2rem;
	font-size: 1rem;
	line-height: 1.45;
	font-variant-numeric: lining-nums tabular-nums;
}

.corpo caption {
	caption-side: top;
	text-align: left;
	font-style: italic;
	font-size: 0.95rem;
	color: var(--cinza);
	padding-bottom: 0.6rem;
}

.corpo th {
	font-family: var(--didone);
	font-weight: 500;
	font-size: 0.98rem;
	text-align: left;
	color: var(--petroleo);
	border-bottom: 1px solid var(--petroleo);
	padding: 0.5rem 0.75rem 0.5rem 0;
	vertical-align: bottom;
}

.corpo td {
	border-bottom: 1px solid var(--fio);
	padding: 0.6rem 0.75rem 0.6rem 0;
	vertical-align: top;
}

.corpo td:first-child {
	font-style: italic;
}

@media (max-width: 40rem) {
	.corpo table,
	.corpo caption,
	.corpo tbody,
	.corpo tr,
	.corpo td {
		display: block;
	}

	.corpo thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.corpo tr {
		border-top: 1px solid var(--petroleo);
		padding: 0.5rem 0 0.4rem;
	}

	.corpo td {
		border: 0;
		padding: 0.15rem 0;
		display: grid;
		grid-template-columns: 5.5rem 1fr;
		gap: 0.75rem;
	}

	.corpo td::before {
		content: attr(data-rotulo);
		font-style: italic;
		color: var(--cinza);
		font-size: 0.9rem;
	}

	.corpo td:first-child {
		display: block;
		font-family: var(--didone);
		font-size: 1.15rem;
		color: var(--petroleo);
		padding-bottom: 0.3rem;
	}

	.corpo td:first-child::before {
		content: none;
	}
}

/* Sources: a short list at the end. */
.corpo > h2:last-of-type + ul {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--cinza);
}

/* ── Ad slots: set apart, labelled ── */
.verbete {
	margin: 2.4rem 0 2.6rem;
	padding: 0.55rem 0 0;
	border-top: 1px solid var(--fio);
	text-align: center;
	clear: both;
}

.verbete iframe {
	display: block;
	margin: 0 auto;
	border: 0;
	background: var(--papel);
}

.rubrica {
	display: block;
	text-align: left;
	font-style: italic;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	color: var(--cinza);
	margin-bottom: 0.6rem;
}

.corpo__pe .verbete,
.margem-pe .verbete {
	margin-top: 1rem;
}

/* ── After the article ── */
.fecho {
	margin: 3.5rem 0 0;
	padding: 1.6rem 0 0;
	border-top: 1px solid var(--petroleo);
	display: grid;
	gap: 2rem;
}

.fecho__equipe {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	max-width: var(--medida);
	font-size: 0.98rem;
	line-height: 1.55;
}

.fecho__equipe img {
	width: 3.4rem;
	height: 3.4rem;
	flex: none;
	border: 1px solid var(--fio);
}

.fecho__equipe p {
	margin: 0;
}

.fecho__equipe strong {
	font-family: var(--didone);
	font-style: italic;
	font-weight: 500;
}

/* Buttons the runtime prints: the cookie choice and the measurement notice. */
div.acepcao button,
.apostila button {
	font-family: var(--didone);
	font-style: italic;
	font-weight: 500;
	font-size: 1.15rem;
	line-height: 1;
	color: var(--petroleo);
	background: var(--papel);
	border: 1px solid var(--petroleo);
	border-radius: 0;
	padding: 0.8rem 1.5rem 0.85rem;
	min-width: 8.5rem;
	cursor: pointer;
}

div.acepcao button:hover,
.apostila button:hover {
	background: var(--petroleo);
	color: var(--papel);
}

/* ── A question as a headword: quiet margins, generous type, three clear choices ── */
.consulta {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	width: min(calc(100% - 2rem), 64rem);
	margin-inline: auto;
	padding: 1.15rem 0 0 1.2rem;
	border-left: 1px solid var(--fio);
}
.consulta__topo {
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--fio);
}
.consulta__logo {
	display: block;
	width: 8rem;
	line-height: 0;
}
.consulta__logo img {
	display: block;
	width: 100%;
}
.consulta__miolo {
	display: flex;
	align-items: center;
	flex: 1 0 auto;
	padding-block: clamp(1.5rem, 5vh, 3.5rem);
}
.consulta__entrada {
	width: 100%;
}
fieldset.acepcao {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
fieldset.acepcao > p {
	margin: 0;
	min-width: 0;
}
fieldset.acepcao legend {
	float: left;
	width: 100%;
	padding: 0;
	margin: 0 0 1rem;
	font-family: var(--didone);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(2.2rem, 9.7vw, 3.6rem);
	line-height: 1.1;
	letter-spacing: -0.035em;
	color: var(--tinta);
	text-wrap: balance;
}
/* The petrol dot belongs to the headword; the choices remain unnumbered. */
fieldset.acepcao legend::before {
	content: "";
	display: block;
	width: 0.4rem;
	height: 0.4rem;
	margin-bottom: 0.8rem;
	border-radius: 50%;
	background: var(--petroleo);
}
fieldset.acepcao button {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	isolation: isolate;
	display: block;
	width: 100%;
	min-height: 4.6rem;
	margin: 0;
	padding: 0.8rem 1.1rem 0.95rem;
	font-family: var(--didone);
	font-style: italic;
	font-weight: 500;
	font-size: 1.7rem;
	line-height: 1.15;
	text-align: center;
	color: var(--petroleo-fundo);
	background: var(--brilho);
	border: 1px solid var(--fio);
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
fieldset.acepcao button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--agua);
	opacity: 0;
}
fieldset.acepcao button::after {
	content: "";
	position: absolute;
	bottom: 0.55rem;
	left: 42%;
	width: 16%;
	height: 1px;
	background: var(--petroleo);
	opacity: 0;
}
fieldset.acepcao button:hover:not(:disabled) {
	border-color: var(--petroleo);
	background: var(--papel);
}
fieldset.acepcao button:focus-visible {
	outline: 2px solid var(--petroleo);
	outline-offset: 4px;
	background: var(--papel);
}
fieldset.acepcao button:disabled {
	cursor: progress;
	color: var(--cinza);
	background: var(--papel);
}
fieldset.acepcao button[aria-busy="true"] {
	color: var(--petroleo-fundo);
	background: var(--brilho);
	border-color: var(--petroleo);
}
fieldset.acepcao button[aria-busy="true"]::after {
	opacity: 1;
}
/* Three quiet lines stay available, so feedback never moves the answer targets. */
fieldset.acepcao > [role="status"] {
	min-height: 3.9em;
	margin: 0.1rem 0 0;
	font-family: var(--texto);
	font-style: italic;
	font-size: 1rem;
	line-height: 1.3;
	color: var(--petroleo-fundo);
}
fieldset.acepcao > [role="status"]:empty {
	visibility: hidden;
}
.consulta__pe {
	padding: 0.7rem 0 0.9rem;
	border-top: 1px solid var(--fio);
	font-size: 0.85rem;
	line-height: 1.35;
	color: var(--cinza);
}
.consulta__pe p {
	margin: 0 0 0.25rem;
}
.consulta__pe .colofao__indice {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.8rem;
}
.consulta__pe .colofao__indice li::after {
	content: none;
}
.consulta__pe .colofao__indice a {
	display: inline-flex;
	align-items: center;
	min-height: 1.6rem;
	padding-block: 0.15rem;
}
/* This spacing belongs to the notice on non-Quiz pages. */
html:has(.apostila:not([hidden])) {
	scroll-padding-bottom: 13rem;
}
@media (prefers-reduced-motion: no-preference) {
	fieldset.acepcao:not([aria-busy="true"]):not(:focus-within):not(:hover) button::before {
		animation: passagem-de-luz 14s ease-in-out 3;
	}
	fieldset.acepcao > p:nth-of-type(2) button::before {
		animation-delay: 0.3s;
	}
	fieldset.acepcao > p:nth-of-type(3) button::before {
		animation-delay: 0.6s;
	}
	fieldset.acepcao button[aria-busy="true"]::after {
		animation: linha-de-consulta 1.4s ease-in-out infinite alternate;
	}
}
@keyframes passagem-de-luz {
	0%, 20%, 34%, 100% { opacity: 0; }
	27% { opacity: 0.32; }
}
@keyframes linha-de-consulta {
	from { transform: translateX(-75%); }
	to { transform: translateX(75%); }
}
@media (min-width: 40rem) {
	html:has(.apostila:not([hidden])) {
		scroll-padding-bottom: 9rem;
	}
	.consulta {
		padding: 1.5rem 0 0 2rem;
	}
	.consulta__logo {
		width: 9rem;
	}
	.consulta__entrada {
		max-width: 34rem;
		margin-inline: auto;
	}
}
@media (min-width: 60rem) {
	.consulta {
		padding-left: 2.5rem;
	}
	.consulta__entrada {
		max-width: none;
	}
	fieldset.acepcao {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		column-gap: 4rem;
	}
	fieldset.acepcao legend {
		grid-column: 1;
		grid-row: 1 / 4;
		align-self: center;
		margin: 0;
		font-size: 3.8rem;
	}
	fieldset.acepcao > p {
		grid-column: 2;
	}
	fieldset.acepcao button {
		min-height: 5rem;
		font-size: 1.85rem;
	}
	fieldset.acepcao > [role="status"] {
		min-height: 3.9em;
	}
}

/* ── Home ── */
/* The page's title: the tagline, set like the title line of a dictionary page. */
.rosto {
	font-style: italic;
	font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem);
	line-height: 1.2;
	color: var(--petroleo);
	margin: 0 0 1.6rem;
	padding: 0 0 0.9rem;
	border-bottom: 1px solid var(--fio);
	max-width: calc(var(--medida) + 6rem);
}

.capa {
	margin: 0 0 4.5rem;
}

.capa__figura {
	margin: 0 0 2rem;
	background: var(--brilho);
	line-height: 0;
}

.capa__figura img {
	width: 100%;
	display: block;
}

.capa__texto h2 {
	font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.2rem);
	margin: 0 0 1.2rem;
}

.capa__texto h2 a {
	color: var(--tinta);
	text-decoration: none;
}

.capa__texto h2 a:hover {
	color: var(--petroleo);
	text-decoration: underline;
	text-decoration-color: var(--agua);
	text-decoration-thickness: 0.06em;
}

.capa__texto p {
	margin: 0 0 1rem;
}

.capa__resumo {
	font-style: italic;
	font-size: 1.3rem;
	line-height: 1.5;
	max-width: var(--medida);
}

.capa__meta {
	font-size: 0.95rem;
	font-style: italic;
	color: var(--cinza);
}

.capa__lema {
	font-family: var(--didone);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--petroleo);
	margin: 0 0 0.6rem;
}

.capa__lema::before {
	content: "";
	display: inline-block;
	width: 0.34em;
	height: 0.34em;
	margin-right: 0.4em;
	border-radius: 50%;
	background: var(--petroleo);
	vertical-align: 0.18em;
}

@media (min-width: 60rem) {
	.capa__texto {
		display: grid;
		grid-template-columns: minmax(0, var(--medida)) var(--margem);
		column-gap: var(--entre);
		align-items: end;
	}

	.capa__texto > .capa__lema,
	.capa__texto > h2 {
		grid-column: 1 / -1;
	}

	.capa__texto > .capa__meta {
		grid-column: 2;
		grid-row: 3;
		border-top: 1px solid var(--fio);
		padding-top: 0.5rem;
		margin-bottom: 1.25rem;
	}
}

.lexico {
	margin: 0 0 4rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--petroleo);
}

.lexico__cabeca {
	display: grid;
	gap: 0.4rem 3rem;
	margin: 0 0 2rem;
}

.lexico__cabeca h2 {
	font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
	font-style: italic;
	margin: 0;
}

.lexico__cabeca p {
	margin: 0;
	font-style: italic;
	color: var(--cinza);
	max-width: var(--medida);
}

.lexico__letras {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.9rem;
	margin: 0 0 1.8rem;
	padding: 0;
	list-style: none;
	font-family: var(--didone);
	font-size: 1.15rem;
}

.lexico__letras a {
	text-decoration: none;
}

.lexico__grupo {
	display: grid;
	grid-template-columns: 3.4rem 1fr;
	gap: 0 1.2rem;
	padding: 1.1rem 0 0.8rem;
	border-top: 1px solid var(--fio);
	scroll-margin-top: 1.5rem;
}

.lexico__inicial {
	font-family: var(--didone);
	font-weight: 500;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--petroleo);
	margin: 0;
}

.lexico__entradas {
	columns: 2 19rem;
	column-gap: 3rem;
}

.lema {
	break-inside: avoid;
	margin: 0 0 0.9rem;
	font-size: 1.02rem;
	line-height: 1.5;
}

.lema__termo {
	font-family: var(--didone);
	font-style: italic;
	font-weight: 600;
	font-size: 1.12rem;
	color: var(--tinta);
	text-decoration: none;
}

.lema__termo:hover {
	color: var(--petroleo);
	text-decoration: underline;
	text-decoration-color: var(--agua);
}

.lema__remissao {
	display: block;
	font-style: italic;
	font-size: 0.9rem;
	color: var(--cinza);
}

.casa {
	margin: 0 0 3rem;
}

.casa .corpo > p:first-child::first-line {
	font-variant-caps: normal;
	letter-spacing: 0;
}

/* ── Niche archive and search: a dictionary page ── */
.nicho-lema {
	margin: 0 0 2.6rem;
	padding-bottom: 1.6rem;
	border-bottom: 1px solid var(--petroleo);
}

.nicho-lema h1 {
	font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem);
	margin: 0 0 0.5rem;
}

.nicho-lema h1 small {
	font-family: var(--texto);
	font-size: 0.32em;
	font-style: italic;
	font-weight: 400;
	color: var(--cinza);
	margin-left: 0.15rem;
	vertical-align: 0.3em;
}

.nicho-lema__definicao {
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.55;
	max-width: var(--medida);
	margin: 0;
}

.entradas {
	list-style: none;
	margin: 0 0 3rem;
	padding: 0;
}

.entrada {
	display: grid;
	gap: 1rem 2rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--fio);
}

.entrada__figura {
	margin: 0;
	align-self: start;
	line-height: 0;
}

.entrada__figura img {
	width: 100%;
	display: block;
}

.entrada h2 {
	font-size: 1.65rem;
	margin: 0 0 0.5rem;
}

.entrada h2 a {
	color: var(--tinta);
	text-decoration: none;
}

.entrada h2 a:hover {
	color: var(--petroleo);
	text-decoration: underline;
	text-decoration-color: var(--agua);
}

.entrada p {
	margin: 0 0 0.5rem;
}

.entrada__meta {
	font-size: 0.92rem;
	font-style: italic;
	color: var(--cinza);
}

@media (min-width: 46rem) {
	.entrada:has(.entrada__figura) {
		grid-template-columns: 15rem 1fr;
	}
}

.busca {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin: 1.4rem 0 2.4rem;
	max-width: var(--medida);
}

.busca input[type="search"] {
	flex: 1 1 14rem;
	font: inherit;
	font-style: italic;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--petroleo);
	border-radius: 0;
	background: var(--papel);
	color: var(--tinta);
}

.busca button {
	font-family: var(--didone);
	font-style: italic;
	font-size: 1.05rem;
	padding: 0.6rem 1.3rem;
	border: 1px solid var(--petroleo);
	border-radius: 0;
	background: var(--petroleo);
	color: var(--papel);
	cursor: pointer;
}

.vazio {
	font-style: italic;
	max-width: var(--medida);
}

/* ── Institutional and policy pages ── */
.pagina-lema h1 {
	font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem);
	margin: 0 0 1rem;
}

.pagina-lema .cabeca__resumo {
	margin-bottom: 2.2rem;
}

.corpo > aside.margem-pe {
	background: none;
	border-top: 1px solid var(--fio);
	padding: 0.6rem 0 0;
	margin: 2.4rem 0 0;
}

.margem-pe {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--cinza);
	font-style: italic;
}

.margem-pe h2 {
	font-size: 1.05rem;
	font-style: italic;
	color: var(--petroleo);
	margin: 0 0 0.5rem;
}

.corpo .margem-pe ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1.4rem;
}

.corpo .margem-pe li {
	margin: 0 0 0.35rem;
}

.corpo .margem-pe li::before {
	content: none;
}

.margem-pe .fecho__equipe {
	flex-direction: column;
}

@media (min-width: 60rem) {
	.pagina-lema .corpo > .margem-pe {
		grid-column: 2;
		grid-row: 1 / span 4;
		margin-top: 0;
	}
}

/* The cookies page: the choice, set like a definition box. */
div.acepcao {
	margin: 1rem 0 2rem;
	padding: 1.2rem 1.4rem 1.3rem;
	background: var(--brilho);
	border-top: 3px double var(--petroleo);
}

div.acepcao p {
	margin: 0 0 0.8rem;
}

.remissao {
	font-style: italic;
	color: var(--petroleo);
	min-height: 1.5em;
}

/* Both buttons carry the same right margin, so they line up when they wrap on a phone. */
div.acepcao button {
	margin: 0 0.5rem 0.5rem 0;
}

/* ── The measurement notice, fixed to the bottom ── */
.apostila {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem 1rem;
	padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.1rem;
	background: var(--papel);
	border-top: 2px solid var(--petroleo);
	box-shadow: 0 -0.5rem 1.5rem rgba(13, 92, 110, 0.08);
}

.apostila p {
	flex: 1 1 26rem;
	margin: 0;
	font-style: italic;
	font-size: 0.98rem;
	line-height: 1.5;
}

.apostila button {
	font-size: 1.02rem;
	padding: 0.65rem 1.2rem 0.7rem;
	min-width: 7.5rem;
}

.apostila button + button {
	margin-left: 0;
}

@media (min-width: 68rem) {
	.apostila {
		left: var(--lombada);
	}
}

/* ── Colophon ── */
.colofao {
	margin-top: 4rem;
	padding: 1.8rem 0 2.6rem;
	border-top: 1px solid var(--petroleo);
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--cinza);
}

.colofao__corpo {
	display: grid;
	gap: 1rem 2.5rem;
}

.colofao__logo {
	display: block;
	width: 11rem;
	line-height: 0;
}

.colofao p {
	margin: 0 0 0.4rem;
}

.colofao__lema {
	font-family: var(--didone);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--petroleo);
}

.colofao__indice {
	display: inline;
	font-style: italic;
}

.colofao__indice li {
	display: inline;
}

.colofao__indice li:not(:last-child)::after {
	content: ";";
	color: var(--cinza);
	margin-right: 0.35em;
}

@media (min-width: 60rem) {
	.colofao__corpo {
		grid-template-columns: 12rem 1fr;
		align-items: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.lombada,
	.verbete,
	.apostila,
	.colofao {
		display: none;
	}

	.folha {
		margin: 0;
	}
}

.fecho__titulo {
	font-size: 1.6rem;
	font-style: italic;
	margin: 0 0 0.4rem;
}
