/*
Theme Name: Piratininga Painel
Theme URI: https://piratininga.org/
Author: Piratininga
Description: The theme of Piratininga: an instrument panel at dusk, with lamps that light up where the reader is.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 8.2
License: GNU General Public License v2 or later
Text Domain: piratininga-painel
*/

@font-face {
	font-family: "Oxanium";
	src: url("assets/fonts/oxanium-variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Golos Text";
	src: url("assets/fonts/golos-text-variable.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--amber: #f2a10a;
	--amber-glow: #ffd27a;
	--panel: #1f2327;
	--panel-raised: #2b3036;
	--panel-line: #3a4047;
	--lamp-dim: #59616a;
	--on-panel: #e6e8ea;
	--on-panel-soft: #aab1b9;
	--ground: #f3f4f5;
	--sheet: #ffffff;
	--ink: #1b1f24;
	--muted: #4f5761;
	--rule: #d5d9de;
	--bay: #e6e9ec;
	--link: #1b5cb8;
	--info: #2f7de1;
	--info-tint: #e8f1fc;
	--done: #2f9e57;
	--done-tint: #e6f4ec;
	--amber-tint: #fdf3df;
	--measure: 40rem;
	--wide: 74rem;
	--radius: 14px;
	--radius-small: 8px;
	--head: "Oxanium", "Avenir Next Condensed", "Arial Narrow", sans-serif;
	--body: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.125rem;
	line-height: 1.6;
	font-kerning: normal;
	overflow-wrap: break-word;
}

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

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--info);
	outline-offset: 3px;
	border-radius: 4px;
}

.painel :focus-visible,
.rodape :focus-visible,
.faixa :focus-visible,
.visor :focus-visible {
	outline-color: var(--amber-glow);
}

h1,
h2,
h3,
h4 {
	font-family: var(--head);
	font-weight: 650;
	line-height: 1.18;
	letter-spacing: 0;
	text-wrap: balance;
	margin: 0;
}

.pular {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 30;
	background: var(--amber);
	color: var(--panel);
	font-family: var(--head);
	font-weight: 700;
	padding: 0.6rem 1rem;
	border-radius: var(--radius-small);
	text-decoration: none;
}

.pular:focus {
	top: 1rem;
}

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

.trilho {
	width: min(100% - 2.5rem, var(--wide));
	margin-inline: auto;
}

/* ------------------------------------------------------------------
   The panel band: header
------------------------------------------------------------------ */

.painel {
	background: var(--panel);
	color: var(--on-panel);
	border-bottom: 1px solid var(--panel-line);
}

.painel__linha {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.75rem;
	padding-block: 0.75rem;
}

.marca {
	display: inline-flex;
	flex: none;
	border-radius: 10px;
}

.marca img {
	display: block;
	width: auto;
	height: 2.6rem;
}

/* Tell-tale lamps, the menu: dim until they are the reader's place. */

.luzes ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.4rem;
	margin: 0;
	padding: 0;
}

.luzes a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.35rem 0.1rem;
	color: var(--on-panel-soft);
	font-family: var(--head);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
}

.luzes a:hover {
	color: var(--on-panel);
}

.lampada {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 2rem;
	height: 2rem;
	border-radius: 9px;
	background: var(--panel-raised);
	color: var(--lamp-dim);
	box-shadow: inset 0 0 0 1px var(--panel-line);
}

.lampada svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: currentColor;
}

.luzes .current-menu-item > a,
.luzes .current-menu-parent > a,
.luzes .current-post-ancestor > a,
.luzes .current-menu-ancestor > a,
.luzes .current-category-ancestor > a {
	color: var(--on-panel);
}

.luzes .current-menu-item .lampada,
.luzes .current-menu-parent .lampada,
.luzes .current-post-ancestor .lampada,
.luzes .current-menu-ancestor .lampada,
.luzes .current-category-ancestor .lampada,
.lampada--acesa {
	background: var(--amber);
	color: var(--panel);
	box-shadow: 0 0 0 1px var(--amber), 0 0 14px rgba(242, 161, 10, 0.45);
}

/* ------------------------------------------------------------------
   Title strips on the panel (every page but the home)
------------------------------------------------------------------ */

.faixa {
	background: var(--panel);
	color: var(--on-panel);
	padding-block: 2.5rem 3rem;
}

.faixa__lugar {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1.1rem;
	font-family: var(--head);
	font-weight: 600;
	color: var(--on-panel);
	text-decoration: none;
}

.faixa__lugar:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.faixa h1 {
	font-size: clamp(2rem, 1.35rem + 2.6vw, 3.3rem);
	font-weight: 700;
	max-width: 22ch;
	color: #f6f7f8;
}

.faixa__resumo {
	max-width: 46rem;
	margin: 1rem 0 0;
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--on-panel-soft);
}

.faixa--curta {
	padding-block: 2.25rem 2.5rem;
}

.ficha {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem 2rem;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--panel-line);
	font-size: 0.95rem;
	color: var(--on-panel-soft);
}

.ficha__autor {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ficha__autor img {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	box-shadow: 0 0 0 1px var(--panel-line);
}

.ficha__nome {
	display: block;
	font-family: var(--head);
	font-weight: 650;
	color: var(--on-panel);
}

.ficha__datas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0;
	font-family: var(--head);
}

.ficha__datas div {
	display: flex;
	gap: 0.4rem;
}

.ficha__datas dt {
	color: var(--on-panel-soft);
}

.ficha__datas dd {
	margin: 0;
	color: var(--on-panel);
}

/* Section lamps: the article's parts, lit for the one being read. */

.secoes {
	margin-top: 1.5rem;
}

.secoes__titulo {
	margin: 0 0 0.6rem;
	font-family: var(--head);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--on-panel-soft);
}

.secoes ol {
	list-style: none;
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0 0 0.35rem;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--panel-line) transparent;
}

.secoes a {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	width: 12.5rem;
	height: 100%;
	padding: 0.7rem 0.8rem;
	border-radius: 10px;
	background: var(--panel-raised);
	color: var(--on-panel-soft);
	font-size: 0.86rem;
	line-height: 1.35;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px var(--panel-line);
}

.secoes a::before {
	content: "";
	flex: none;
	width: 0.7rem;
	height: 0.7rem;
	margin-top: 0.2rem;
	border-radius: 3px;
	background: var(--lamp-dim);
}

.secoes a:hover {
	color: var(--on-panel);
}

.secoes a[aria-current="true"] {
	color: var(--on-panel);
	box-shadow: inset 0 0 0 1px var(--amber);
}

.secoes a[aria-current="true"]::before {
	background: var(--amber);
	box-shadow: 0 0 8px rgba(242, 161, 10, 0.7);
}

@media (min-width: 64rem) {
	.secoes ol {
		flex-wrap: wrap;
		overflow: visible;
	}
}

/* ------------------------------------------------------------------
   Home: the panel hero and the lamp check
------------------------------------------------------------------ */

.abertura {
	background: var(--panel);
	color: var(--on-panel);
	padding-block: 3.5rem 3.75rem;
	overflow: hidden;
}

.abertura h1 {
	font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
	font-weight: 700;
	line-height: 1.04;
	max-width: 14ch;
	color: #f6f7f8;
}

.abertura__texto {
	max-width: 38rem;
	margin: 1.25rem 0 0;
	font-size: 1.2rem;
	color: var(--on-panel-soft);
}

.checagem {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.75rem;
	max-width: 52rem;
	margin: 2.75rem 0 0;
	padding: 1rem;
	border-radius: 18px;
	background: #191c20;
	box-shadow: inset 0 0 0 1px var(--panel-line);
}

.checagem li {
	display: grid;
	justify-items: center;
	gap: 0.55rem;
	text-align: center;
	font-family: var(--head);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--on-panel-soft);
}

.checagem .lampada {
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 13px;
	animation: lamp-check 0.5s ease-out both;
	animation-delay: calc(0.25s + var(--ordem, 0) * 0.16s);
}

.checagem .lampada svg {
	width: 1.9rem;
	height: 1.9rem;
}

@keyframes lamp-check {
	from {
		background: var(--panel-raised);
		color: var(--lamp-dim);
		box-shadow: inset 0 0 0 1px var(--panel-line);
	}
	to {
		background: var(--amber);
		color: var(--panel);
		box-shadow: 0 0 0 1px var(--amber), 0 0 18px rgba(242, 161, 10, 0.5);
	}
}

@media (min-width: 64rem) {
	.abertura__grade {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		grid-template-areas: "titulo luzes" "texto luzes";
		align-items: end;
		column-gap: 4rem;
	}

	.abertura__grade h1 {
		grid-area: titulo;
	}

	.abertura__grade .abertura__texto {
		grid-area: texto;
		align-self: start;
	}

	.abertura__grade .checagem {
		grid-area: luzes;
		align-self: center;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.4rem 0.75rem;
		margin: 0;
		padding: 1.6rem 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.checagem .lampada {
		animation-duration: 0.01s;
		animation-delay: 0s;
	}
}

/* ------------------------------------------------------------------
   Lists of articles: home, archive, search
------------------------------------------------------------------ */

.lista {
	width: min(100% - 2.5rem, 56rem);
	margin: 3rem auto;
}

.lista__titulo {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1.25rem;
	font-size: 1.35rem;
}

.lista__titulo::before {
	content: "";
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 4px;
	background: var(--panel);
}

.lista ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

.cartao {
	display: grid;
	grid-template-columns: 13rem minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
	padding: 1rem;
	background: var(--sheet);
	border-radius: 18px;
	box-shadow: 0 1px 0 var(--rule), inset 0 0 0 1px #e3e6e9;
}

.cartao--pagina {
	grid-template-columns: minmax(0, 1fr);
	padding: 1.1rem 1.4rem;
}

.cartao__janela {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: var(--panel);
	overflow: hidden;
	box-shadow: inset 0 0 0 5px var(--panel-raised);
}

.cartao__janela img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cartao__nicho {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.4rem;
	font-family: var(--head);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--muted);
}

.cartao__nicho .lampada {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 6px;
	background: var(--panel);
	color: var(--amber);
	box-shadow: none;
}

.cartao__nicho .lampada svg {
	width: 1rem;
	height: 1rem;
}

.cartao h2,
.cartao h3 {
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
	font-weight: 650;
}

.cartao h2 a,
.cartao h3 a {
	color: var(--ink);
	text-decoration: none;
}

.cartao h2 a:hover,
.cartao h3 a:hover {
	text-decoration: underline;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 3px;
}

.cartao p {
	margin: 0.5rem 0 0;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.55;
}

.cartao time {
	display: block;
	margin-top: 0.6rem;
	font-family: var(--head);
	font-size: 0.88rem;
	color: var(--muted);
}

.vazio {
	padding: 1.5rem;
	border-radius: 14px;
	background: var(--sheet);
	color: var(--muted);
}

.paginas {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	font-family: var(--head);
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Reading column and every content block
------------------------------------------------------------------ */

.capa {
	width: min(100% - 2.5rem, 52rem);
	margin: -1.75rem auto 0;
	position: relative;
}

.capa img {
	display: block;
	width: 100%;
	border-radius: 18px;
	background: var(--panel);
	box-shadow: 0 0 0 6px var(--panel-raised), 0 14px 30px rgba(27, 31, 36, 0.18);
}

.leitura {
	width: min(100% - 2.5rem, var(--measure));
	margin: 2.75rem auto 3.5rem;
}

.leitura > * + * {
	margin-top: 1.15em;
}

.leitura p,
.leitura ul,
.leitura ol,
.leitura dl {
	margin-bottom: 0;
}

.leitura > p:first-child {
	font-size: 1.22rem;
	line-height: 1.55;
}

.leitura h2 {
	position: relative;
	margin-top: 2.6em;
	padding-left: 1.6rem;
	font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.9rem);
	scroll-margin-top: 1.5rem;
}

.leitura h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.38em;
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 4px;
	background: var(--lamp-dim);
	opacity: 0.55;
}

.leitura h2[data-aceso]::before {
	background: var(--amber);
	opacity: 1;
	box-shadow: 0 0 0 3px var(--panel), 0 0 10px rgba(242, 161, 10, 0.6);
}

.leitura h3 {
	margin-top: 2em;
	font-size: 1.3rem;
}

.leitura h2 + *,
.leitura h3 + * {
	margin-top: 0.6em;
}

.leitura strong {
	font-weight: 650;
}

.leitura ul {
	list-style: none;
	padding-left: 1.4rem;
}

.leitura ul > li {
	position: relative;
}

.leitura ul > li + li,
.leitura ol > li + li {
	margin-top: 0.45em;
}

.leitura ul > li::before {
	content: "";
	position: absolute;
	left: -1.25rem;
	top: 0.6em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 2px;
	background: var(--muted);
}

/* Ordered lists are steps: numbered plates on the panel. */

.leitura ol {
	list-style: none;
	padding-left: 0;
	counter-reset: passo;
}

.leitura ol > li {
	position: relative;
	counter-increment: passo;
	padding: 0.15rem 0 0 3rem;
	min-height: 2.2rem;
}

.leitura ol > li::before {
	content: counter(passo);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 9px;
	background: var(--panel);
	color: var(--amber);
	font-family: var(--head);
	font-weight: 700;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

/* Figures sit on charcoal plates, a little wider than the column. */

.leitura figure {
	margin: 2.2rem 0;
}

.leitura figure img,
.leitura figure svg {
	display: block;
	width: 100%;
	background: var(--panel);
	border-radius: var(--radius);
	padding: clamp(0.5rem, 2vw, 1rem);
	box-shadow: inset 0 0 0 1px var(--panel-line);
}

.leitura figcaption {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.75rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--muted);
}

.leitura figcaption::before {
	content: "";
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	margin-top: 0.42em;
	border-radius: 2px;
	background: var(--amber);
}

@media (min-width: 60rem) {
	.leitura figure {
		margin-inline: -3.5rem;
	}

	.leitura figcaption {
		padding-inline: 3.5rem;
	}
}

/* Asides are lit callouts: amber attention by default, blue information, green done. */

.leitura aside {
	--luz: var(--amber);
	--luz-fundo: var(--amber-tint);
	position: relative;
	margin: 2rem 0;
	padding: 1.15rem 1.25rem 1.15rem 3.6rem;
	border-radius: var(--radius);
	background: var(--luz-fundo);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--luz) 35%, transparent);
	font-size: 1.02rem;
}

.leitura aside::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 1.25rem;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 6px;
	background: var(--luz);
	box-shadow: 0 0 0 4px var(--panel), 0 0 14px color-mix(in srgb, var(--luz) 60%, transparent);
}

.leitura aside.info {
	--luz: var(--info);
	--luz-fundo: var(--info-tint);
}

.leitura aside.feito {
	--luz: var(--done);
	--luz-fundo: var(--done-tint);
}

.leitura aside > :first-child {
	margin-top: 0;
}

.leitura aside > * + * {
	margin-top: 0.7em;
}

.leitura aside p {
	margin: 0;
}

/* Questions and answers open like a lamp switching on. */

.leitura details {
	margin: 0.7rem 0 0;
	border-radius: 12px;
	background: var(--sheet);
	box-shadow: inset 0 0 0 1px var(--rule);
}

.leitura details + details {
	margin-top: 0.6rem;
}

.leitura summary {
	position: relative;
	display: block;
	padding: 0.95rem 1.1rem 0.95rem 3rem;
	cursor: pointer;
	font-family: var(--head);
	font-weight: 650;
	line-height: 1.35;
	list-style: none;
}

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

.leitura summary::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 1.15rem;
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 4px;
	background: var(--rule);
	box-shadow: inset 0 0 0 1px var(--lamp-dim);
}

.leitura details[open] summary::before {
	background: var(--amber);
	box-shadow: 0 0 0 3px var(--panel);
}

.leitura details > :not(summary) {
	margin: 0;
	padding: 0 1.25rem 1rem 3rem;
}

.leitura details > :not(summary) + :not(summary) {
	padding-top: 0;
}

/* Tables: a charcoal header row, readable on a phone by scrolling. */

.leitura .tabela {
	margin: 2rem 0;
	max-width: 100%;
	overflow-x: auto;
	border-radius: var(--radius);
	background: var(--sheet);
	box-shadow: inset 0 0 0 1px var(--rule);
}

.leitura table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.98rem;
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
}

.leitura th,
.leitura td {
	padding: 0.7rem 0.9rem;
	text-align: left;
	vertical-align: top;
	min-width: 9rem;
}

.leitura thead th {
	background: var(--panel);
	color: var(--on-panel);
	font-family: var(--head);
	font-weight: 650;
	white-space: nowrap;
}

.leitura thead th:first-child {
	border-top-left-radius: var(--radius);
}

.leitura thead th:last-child {
	border-top-right-radius: var(--radius);
}

.leitura tbody tr + tr td {
	border-top: 1px solid var(--rule);
}

.leitura tbody td:first-child {
	font-weight: 600;
}

.leitura blockquote {
	margin: 2.2rem 0;
	padding: 0.2rem 0 0.2rem 1.4rem;
	border-left: 5px solid var(--panel);
	font-family: var(--head);
	font-size: 1.32rem;
	font-weight: 600;
	line-height: 1.4;
}

.leitura blockquote p {
	margin: 0;
}

.leitura dl {
	padding: 1rem 1.25rem;
	border-radius: var(--radius);
	background: var(--sheet);
	box-shadow: inset 0 0 0 1px var(--rule);
}

.leitura dt {
	font-family: var(--head);
	font-weight: 650;
}

.leitura dt + dd {
	margin-top: 0.15rem;
}

.leitura dd {
	margin: 0;
	color: var(--muted);
}

.leitura dd + dt {
	margin-top: 0.8rem;
}

.leitura hr {
	border: 0;
	height: 0.6rem;
	margin: 2.5rem auto;
	width: 6rem;
	background: radial-gradient(circle, var(--lamp-dim) 0.22rem, transparent 0.24rem) 0 0 / 1.5rem 0.6rem repeat-x;
}

/* ------------------------------------------------------------------
   Ad slots and the measurement banner (runtime classes)
------------------------------------------------------------------ */

.mostrador {
	display: block;
	margin: 2.5rem 0;
	padding: 0.75rem;
	border-radius: var(--radius);
	background: var(--bay);
	box-shadow: inset 0 0 0 1px #d3d8dd;
	text-align: center;
}

.mostrador iframe {
	display: block;
	margin-inline: auto;
	max-width: 100%;
	border: 0;
}

.plaqueta {
	display: block;
	margin: 0 0 0.55rem;
	font-family: var(--head);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--muted);
	text-align: left;
}

.baia {
	width: min(100% - 2.5rem, var(--measure));
	margin: 2.5rem auto;
}

.baia .mostrador {
	margin: 0;
}

.visor {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 40;
	max-width: 46rem;
	margin-inline: auto;
	padding: 1.1rem 1.25rem;
	border-radius: 16px;
	background: var(--panel);
	color: var(--on-panel);
	box-shadow: 0 0 0 1px var(--panel-line), 0 16px 40px rgba(0, 0, 0, 0.35);
	font-size: 0.98rem;
	line-height: 1.5;
}

.visor p {
	margin: 0;
}

.visor a {
	color: var(--amber-glow);
}

.visor button,
.interruptor button {
	min-width: 7.5rem;
	margin: 0.8rem 0.6rem 0 0;
	padding: 0.6rem 1.2rem;
	border: 1px solid var(--on-panel-soft);
	border-radius: 10px;
	background: var(--panel-raised);
	color: var(--on-panel);
	font-family: var(--head);
	font-size: 1rem;
	font-weight: 650;
	cursor: pointer;
}

.visor button:hover,
.interruptor button:hover {
	border-color: var(--on-panel);
}

.interruptor {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem 1.2rem;
	border-radius: var(--radius);
	background: var(--panel);
	color: var(--on-panel);
}

.interruptor p {
	margin: 0;
}

.indicador {
	display: block;
	margin-top: 0.8rem;
	font-family: var(--head);
	font-weight: 600;
	color: var(--amber-glow);
}

.interruptor .indicador {
	color: var(--amber-glow);
}

/* ------------------------------------------------------------------
   Closing plate: byline and related reading
------------------------------------------------------------------ */

.fecho {
	width: min(100% - 2.5rem, 52rem);
	margin: 0 auto 4rem;
	padding: 1.5rem;
	border-radius: 18px;
	background: var(--panel);
	color: var(--on-panel);
}

.fecho__autor {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.fecho__autor img {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 12px;
}

.fecho h2 {
	font-size: 1.15rem;
	color: #f6f7f8;
}

.fecho__papel {
	margin: 0.1rem 0 0;
	font-family: var(--head);
	font-size: 0.9rem;
	color: var(--on-panel-soft);
}

.fecho__bio {
	margin: 0.6rem 0 0;
	font-size: 0.98rem;
	color: var(--on-panel-soft);
}

.fecho a {
	color: var(--amber-glow);
}

.fecho__mais {
	margin-top: 1.4rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--panel-line);
}

.fecho__mais h2 {
	margin-bottom: 0.6rem;
}

.fecho__mais ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.fecho__mais li {
	display: flex;
	gap: 0.6rem;
	align-items: baseline;
}

.fecho__mais li::before {
	content: "";
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 2px;
	background: var(--amber);
}

/* ------------------------------------------------------------------
   Institutional and policy pages, search, missing page
------------------------------------------------------------------ */

.pagina .leitura {
	margin-top: 2.75rem;
}

.politica .leitura h2 {
	font-size: 1.4rem;
}

.busca {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.5rem;
	max-width: 36rem;
}

.busca input {
	flex: 1 1 14rem;
	min-width: 0;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--panel-line);
	border-radius: 10px;
	background: #15181b;
	color: var(--on-panel);
	font: inherit;
}

.busca input::placeholder {
	color: var(--on-panel-soft);
}

.busca button {
	padding: 0.7rem 1.2rem;
	border: 0;
	border-radius: 10px;
	background: var(--amber);
	color: var(--panel);
	font-family: var(--head);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

.apagadas {
	display: flex;
	gap: 0.6rem;
	margin: 0 0 1.5rem;
}

.apagadas .lampada {
	width: 2.4rem;
	height: 2.4rem;
}

/* ------------------------------------------------------------------
   Footer on the panel
------------------------------------------------------------------ */

.rodape {
	background: var(--panel);
	color: var(--on-panel-soft);
	padding-block: 3rem 2.5rem;
	font-size: 0.98rem;
}

.rodape__grade {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem 3rem;
}

.rodape__marca {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
}

.rodape__marca img {
	width: 3rem;
	height: 3rem;
	border-radius: 11px;
	box-shadow: 0 0 0 1px var(--panel-line);
}

.rodape__nome {
	margin: 0;
	font-family: var(--head);
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--on-panel);
}

.rodape__lema {
	margin: 0.2rem 0 0;
}

.rodape h2 {
	margin-bottom: 0.7rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--on-panel);
}

.rodape ul {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 1.5rem;
}

.rodape li {
	break-inside: avoid;
	margin-bottom: 0.4rem;
}

.rodape a {
	color: var(--on-panel);
	text-decoration-color: var(--lamp-dim);
}

.rodape a:hover {
	text-decoration-color: var(--amber);
}

.rodape p {
	margin: 0;
}

.rodape__editor p + p {
	margin-top: 0.4rem;
}

.rodape__base {
	margin-top: 2.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--panel-line);
	font-size: 0.9rem;
}

/* ------------------------------------------------------------------
   Narrow screens
------------------------------------------------------------------ */

@media (max-width: 52rem) {
	.rodape__grade {
		grid-template-columns: minmax(0, 1fr);
	}

	.checagem {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 40rem) {
	body {
		font-size: 1.0625rem;
	}

	.painel__linha {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.marca img {
		height: 2.2rem;
	}

	.luzes ul {
		gap: 0.3rem 1rem;
	}

	.abertura {
		padding-block: 2.5rem 2.75rem;
	}

	.checagem {
		gap: 0.6rem 0.4rem;
		padding: 0.8rem 0.5rem;
	}

	.checagem li {
		font-size: 0.8rem;
	}

	.checagem .lampada {
		width: 2.75rem;
		height: 2.75rem;
	}

	.cartao {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.faixa {
		padding-block: 2rem 2.5rem;
	}

	.faixa__resumo {
		font-size: 1.08rem;
	}

	.capa {
		margin-top: -1.25rem;
	}

	.leitura > p:first-child {
		font-size: 1.12rem;
	}

	.leitura aside {
		padding-left: 3.1rem;
	}

	.leitura aside::before {
		left: 0.9rem;
		width: 1.2rem;
		height: 1.2rem;
	}

	.fecho {
		padding: 1.25rem;
	}

	.rodape ul {
		columns: 1;
	}
}

@media print {
	.painel,
	.rodape,
	.visor,
	.mostrador,
	.secoes {
		display: none;
	}
}


@media screen {
	.visor {
		left: 0.5rem;
		right: 0.5rem;
		bottom: max(0.5rem, env(safe-area-inset-bottom));
		width: auto;
		max-width: 36rem;
		margin: 0 auto;
		transform: none;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
		padding: 0.75rem;
		border: 1px solid var(--rule);
		border-radius: 8px;
		background: var(--sheet);
		color: var(--muted);
		box-shadow: none;
		font: 400 0.875rem/1.4 var(--body);
	}
	.visor::before,
	.visor::after { display: none; }
	.visor p {
		grid-column: 1 / -1;
		margin: 0;
		max-width: none;
		font: inherit;
	}
	.visor a {
		color: var(--link);
		font-weight: 400;
		white-space: normal;
		text-decoration: underline;
	}
	.visor button {
		min-width: 0;
		min-height: 44px;
		width: 100%;
		margin: 0;
		padding: 0.4rem 0.5rem;
		border: 1px solid var(--rule);
		border-radius: 8px;
		background: var(--sheet);
		color: var(--muted);
		box-shadow: none;
		font: 500 0.875rem/1.25 var(--body);
		font-stretch: normal;
		letter-spacing: normal;
		text-transform: none;
		cursor: pointer;
	}
	.visor button:hover { background: var(--ground); border-color: var(--rule); }
	.visor :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
	body:has(.visor) { padding-bottom: 10rem; }
}
@media screen and (max-width: 620px) {
	body:has(.visor) { padding-bottom: 12rem; }
}
