/*
Theme Name: Portal SI CEFET/RJ
Theme URI: https://www.cefet-rj.br
Author: Fábrica de Software — Curso de SI
Description: Tema institucional do Portal de Sistemas de Informação (base para Design System gov.br).
Version: 0.5.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: portal-si-cefet
*/

/*
 * Base do tema — tokens DS gov.br; layout da home em assets/css/home.css.
 */
:root {
	--ds-blue: #1351b4;
	--ds-blue-dark: #0c326f;
	--ds-yellow: #ffcd07;
	--ds-green: #168821;

	/* Tipografia DS gov.br — requer inc/fonts.php (Rawline + Raleway). */
	--font-body: "Rawline", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-heading: "Raleway", var(--font-body);

	--portal-color-text: #1a1a1a;
	--portal-color-bg: #fff;
	--portal-color-link: var(--ds-blue);
	--portal-color-link-hover: var(--ds-blue-dark);
	--portal-space: 1rem;
	--portal-max-width: 72rem;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	line-height: 1.5;
	color: var(--portal-color-text);
	background: var(--portal-color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
}

a {
	color: var(--portal-color-link);
}

a:hover {
	color: var(--portal-color-link-hover);
}

/* Busca global (RF33) */
.portal-global-search {
	display: flex;
	align-items: stretch;
	gap: 0.35rem;
	width: 100%;
}

.portal-global-search__label {
	flex: 1;
	margin: 0;
	min-width: 0;
}

.portal-global-search__input {
	width: 100%;
	padding: 0.45rem 0.6rem;
	font: inherit;
	line-height: 1.25;
	border: 1px solid #ccc;
	border-radius: 2px;
}

.portal-global-search__input:focus {
	outline: 2px solid var(--ds-blue);
	outline-offset: 1px;
}

.portal-global-search__submit {
	flex-shrink: 0;
	padding: 0.45rem 0.85rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	color: #fff;
	background: var(--ds-blue);
	border: 1px solid var(--ds-blue-dark);
	border-radius: 2px;
}

.portal-global-search__submit:hover {
	background: var(--ds-blue-dark);
}

.search-results-title {
	margin-top: 0;
}

.search-result {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

.search-result__meta {
	margin: 0 0 0.35rem;
	font-size: 0.8125rem;
	color: #555;
	text-transform: lowercase;
}

.search-no-results {
	margin-top: 0;
}

.breadcrumbs {
	max-width: var(--portal-max-width);
	margin: 0 auto;
	padding: 0.75rem var(--portal-space);
	font-size: 0.875rem;
	border-bottom: 1px solid #eee;
}

.breadcrumbs__current {
	font-weight: 600;
}

.site-main {
	max-width: var(--portal-max-width);
	margin: 0 auto;
	padding: var(--portal-space);
}

.entry-meta {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: #555;
}

.entry-meta a {
	color: inherit;
	text-decoration: underline;
}

.entry-content {
	max-width: 100%;
}

.archive-header {
	margin-bottom: 1.25rem;
}

.archive-description {
	margin-top: 0.5rem;
	color: #444;
	font-size: 0.9375rem;
}

.entry--excerpt {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

/* Link “Ir para o conteúdo” — visível ao focar (RNF03). */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link.screen-reader-text:focus {
	position: fixed;
	left: var(--portal-space);
	top: var(--portal-space);
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	background: #000;
	color: #fff;
	z-index: 100000;
	overflow: visible;
	clip: auto;
}
