/*
Theme Name: Profissionais da Educação
Description: Tema editorial nacional para o portal Profissionais da Educação.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: pde-portal
*/

:root {
	--pde-ink: #102d42;
	--pde-teal: #006454;
	--pde-soft: #e9f3ee;
	--pde-muted: #485965;
	--pde-line: #d9e2e3;
	--pde-paper: #f8faf9;
	--pde-white: #fff;
	--pde-serif: Georgia, 'Times New Roman', serif;
	--pde-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-wrap: break-word; }
body { margin: 0; background: var(--pde-paper); color: var(--pde-ink); font: 1rem/1.55 var(--pde-sans); }
h1, h2, h3 { line-height: 1.15; }
h1, h2, h3, p { margin-block-start: 0; }
a { color: var(--pde-teal); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #008578; outline-offset: 3px; }
img, iframe, video { max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; }
.pde-shell { width: min(76rem, calc(100% - clamp(2rem, 7vw, 6rem))); margin-inline: auto; }
.screen-reader-text, .pde-skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pde-skip:focus { position: fixed; z-index: 10000; top: 1rem; left: 1rem; padding: .75rem 1rem; background: white; }

.pde-header { background: var(--pde-white); }
.pde-masthead { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.35rem; }
.pde-brand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.pde-brand-name { display: block; color: var(--pde-ink); font: 700 clamp(1.4rem, 3.2vw, 2.35rem)/1.05 var(--pde-serif); letter-spacing: -.045em; text-decoration: none; }
.pde-brand p { margin: .33rem 0 0; color: var(--pde-muted); font-size: .87rem; }
.pde-brand-mark { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 2px; width: 2.7rem; height: 2.7rem; border-radius: 8px; background: var(--pde-teal); }
.pde-brand-mark span { width: .72rem; height: 1rem; border: 2px solid #fff; border-radius: .2rem 0 0 .12rem; transform: skewY(12deg); }
.pde-brand-mark span + span { border-radius: 0 .2rem .12rem 0; transform: skewY(-12deg); }
.custom-logo { display: block; width: auto; max-width: 5rem; max-height: 3.6rem; object-fit: contain; }
.pde-search { display: flex; gap: .4rem; align-items: center; width: min(100%, 19rem); }
.pde-search label { flex: 1; min-width: 0; }
.pde-search input { width: 100%; min-height: 2.55rem; padding: .45rem .65rem; border: 1px solid #a9bac1; color: var(--pde-ink); border-radius: 6px; }
.pde-search button { min-height: 2.55rem; padding: .4rem .65rem; background: var(--pde-ink); border: 1px solid var(--pde-ink); border-radius: 6px; color: white; cursor: pointer; }
.pde-navigation { border-top: 1px solid var(--pde-line); border-bottom: 1px solid var(--pde-line); }
.pde-navigation ul, .pde-footer ul { display: flex; flex-wrap: wrap; gap: .2rem clamp(.75rem, 2.4vw, 1.7rem); margin: 0; padding: 0; list-style: none; }
.pde-navigation ul ul { padding-inline-start: .7rem; border-inline-start: 1px solid var(--pde-line); }
.pde-navigation a { display: inline-block; padding: .65rem 0; border-bottom: 3px solid transparent; color: var(--pde-ink); text-decoration: none; font-size: .875rem; font-weight: 650; }
.pde-navigation a:hover, .pde-navigation a[aria-current="page"], .pde-navigation .current-menu-item > a { border-color: var(--pde-teal); color: var(--pde-teal); }

.pde-home { padding-block: 2rem 3rem; }
.pde-section { margin-block-start: 2.75rem; }
.pde-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .85rem; padding-block-end: .7rem; border-bottom: 1px solid var(--pde-line); margin-block-end: 1.1rem; }
.pde-section-heading h1, .pde-section-heading h2 { margin: 0; font: 700 clamp(1.4rem, 2.8vw, 1.85rem)/1.07 var(--pde-serif); letter-spacing: -.035em; }
.pde-section-heading > a, .pde-more a { font-size: .9rem; font-weight: 650; text-decoration: none; }
.pde-section-heading > a:hover, .pde-more a:hover { text-decoration: underline; }

.pde-feature-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 1.2rem; align-items: stretch; }
.pde-feature-side { display: flex; flex-direction: column; gap: .75rem; }
.pde-kicker { margin: 0 0 .55rem; color: var(--pde-teal); font-size: .73rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.pde-tracker { border-radius: 10px; padding: 1.25rem; background: var(--pde-ink); color: white; }
.pde-tracker .pde-kicker { color: #b7e5d5; }
.pde-tracker h2 { margin: 0 0 .45rem; font: 700 clamp(1.6rem, 3vw, 2.15rem)/1.05 var(--pde-serif); letter-spacing: -.035em; }
.pde-tracker p { margin-bottom: .8rem; }
.pde-tracker-checked { color: #cfdce3; font-size: .8rem; }
.pde-tracker a { color: white; }
.pde-tracker-action { display: flex; justify-content: space-between; align-items: center; gap: .5rem; max-width: 19rem; padding: .55rem .75rem; border-radius: 5px; background: #d1eddf; color: #123d34 !important; font-size: .87rem; font-weight: 750; text-decoration: none; }
.pde-tracker-action:hover { text-decoration: underline; }
.pde-tracker-source { display: inline-block; margin-top: .65rem; font-size: .79rem; }

.pde-card { display: flex; flex-direction: column; min-width: 0; height: 100%; border: 1px solid var(--pde-line); border-radius: 10px; overflow: hidden; background: white; }
.pde-card-content { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.1rem; }
.pde-card-content h2, .pde-card-content h3 { margin: 0 0 .7rem; color: var(--pde-ink); font: 700 1.35rem/1.15 var(--pde-serif); letter-spacing: -.025em; }
.pde-card-content a { color: inherit; text-decoration: none; }
.pde-card-content a:hover { text-decoration: underline; }
.pde-card-content time { margin-top: auto; color: var(--pde-muted); font-size: .8rem; }
.pde-card-summary { color: var(--pde-muted); margin: 0 0 .8rem; }
.pde-card-image { aspect-ratio: 16 / 9; background: var(--pde-soft); }
.pde-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pde-card--lead { min-height: 22rem; }
.pde-card--lead:not(.pde-card--image) { background: var(--pde-soft); border-color: #c7dad1; }
.pde-card--lead:not(.pde-card--image) .pde-card-content { justify-content: center; }
.pde-card--lead:not(.pde-card--image) time { margin-top: .4rem; }
.pde-card--lead .pde-card-content { padding: clamp(1.3rem, 4vw, 2rem); }
.pde-card--lead h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.02; }
.pde-card--compact h3 { font-size: 1.16rem; }
.pde-card--compact .pde-card-content { padding: .8rem 1rem; }
.pde-card--initiative { max-width: 56rem; }
.pde-card--initiative.pde-card--image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: stretch; }
.pde-card--initiative .pde-card-image { height: 100%; }

.pde-guide-grid, .pde-news-grid { display: grid; gap: 1rem; }
.pde-guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pde-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pde-guide { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; padding: 1.05rem; border: 1px solid #c7dad1; border-radius: 8px; background: var(--pde-soft); color: var(--pde-ink); text-decoration: none; }
.pde-guide:hover strong { text-decoration: underline; }
.pde-guide strong { font: 700 1.16rem/1.15 var(--pde-serif); }
.pde-guide > span { color: var(--pde-teal); }
.pde-guide p { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--pde-muted); }
.pde-more { margin-top: 1.25rem; }

.pde-archive, .pde-singular { padding-block: 2.8rem 4rem; }
.pde-archive-header h1 { margin-bottom: 1.3rem; font: 700 clamp(2rem, 5vw, 3.5rem)/1.06 var(--pde-serif); }
.pde-article-header, .pde-article-body, .pde-comments { max-width: 47rem; margin-inline: auto; }
.pde-article-header { margin-block-end: 1.65rem; }
.pde-article-header h1 { margin: 0 0 .9rem; font: 700 clamp(2.1rem, 5.7vw, 4.15rem)/1.02 var(--pde-serif); letter-spacing: -.045em; }
.pde-article-subtitle { color: var(--pde-muted); margin: 0 0 1rem; font-size: 1.2rem; }
.pde-byline { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--pde-muted); font-size: .85rem; }
.pde-article-image { max-width: 60rem; margin: 0 auto 1.75rem; }
.pde-article-image img { display: block; width: 100%; border-radius: 10px; }
.pde-article-image figcaption { padding-top: .4rem; color: var(--pde-muted); font-size: .85rem; }
.pde-article-body { color: #233b49; font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.72; }
.pde-article-body h2, .pde-article-body h3 { margin-top: 1.5em; color: var(--pde-ink); }
.pde-article-body table, .pde-comments textarea { max-width: 100%; }
.pde-article-body pre, .pde-article-body .wp-block-table { overflow: auto; }
.pde-article-body blockquote { border-inline-start: 3px solid var(--pde-teal); padding-inline-start: 1rem; margin-inline: 0; }
.pde-article-source { border-top: 1px solid var(--pde-line); padding-block-start: 1rem; font-weight: 650; }
.pde-tags { color: var(--pde-muted); font-size: .85rem; }
.pde-comments { border-top: 1px solid var(--pde-line); margin-top: 2rem; padding-top: 1.5rem; }
.pde-comments input:not([type="checkbox"]), .pde-comments textarea { display: block; max-width: 100%; }
.pde-comments .children { padding-inline-start: 1rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.nav-links .current { font-weight: 700; }

.pde-footer { border-top: 1px solid var(--pde-line); background: var(--pde-ink); color: white; }
.pde-footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .8rem 2rem; padding-block: 2rem; }
.pde-footer strong { font: 700 1.35rem/1.2 var(--pde-serif); }
.pde-footer p { margin: .35rem 0 0; color: #cfdce3; font-size: .86rem; }
.pde-footer a { color: white; text-decoration-color: #b7e5d5; font-size: .9rem; }

@media (max-width: 900px) {
	.pde-guide-grid, .pde-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
	.pde-masthead { flex-direction: column; align-items: flex-start; gap: .9rem; padding-block: 1rem; }
	.pde-masthead .pde-search { width: 100%; }
	.pde-home { padding-top: 1.4rem; }
	.pde-feature-grid, .pde-card--initiative.pde-card--image { grid-template-columns: 1fr; }
	.pde-card--lead { min-height: 0; }
	.pde-feature-side { gap: .7rem; }
	.pde-section { margin-top: 2rem; }
}
@media (max-width: 440px) {
	.pde-news-grid { grid-template-columns: 1fr; }
	.pde-guide-grid { gap: .65rem; }
	.pde-guide { padding: .82rem; }
}
