/* =============================================================
   Tema O Candiru — base, cabeçalho, rodapé e layout
   (os blocos de notícia ficam no plugin: front.css / extra.css)
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0; background: #fff; color: var(--cdr-t, #2B3443);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
:root { --cdr-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --cdr-body: var(--cdr-font); }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--cdr-p, #0A5BD3); }
h1, h2, h3, h4 { font-family: var(--cdr-font); color: var(--cdr-d, #0B1324); line-height: 1.2; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cdr-skip { position: absolute; left: -999px; top: 8px; z-index: 10000; background: #fff; padding: 10px 14px; border-radius: 8px; }
.cdr-skip:focus { left: 8px; }

.cdr-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.cdr-pt { padding-top: 28px; }
.cdr-pt-lg { padding-top: 48px; }
.cdr-main { padding-bottom: 72px; min-height: 50vh; }
.cdr-stack { display: flex; flex-direction: column; gap: 56px; }

/* Duas colunas: conteúdo + lateral */
.cdr-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.cdr-col-main { min-width: 0; }
.cdr-col-side .cdr-sticky { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1025px) { .cdr-col-side .cdr-sticky { position: sticky; top: 100px; } }
.admin-bar .cdr-col-side .cdr-sticky { top: 132px; }

/* ---------- Barra superior ---------- */
.cdr-topbar { background: var(--cdr-d, #0B1324); color: rgba(255,255,255,.82); font-size: 12.5px; }
.cdr-topbar .cdr-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.cdr-topbar .cdr-redes a { color: rgba(255,255,255,.85) !important; }

/* ---------- Barra principal ---------- */
.cdr-mainbar {
	position: sticky; top: 0; z-index: 900; background: var(--cdr-p, #0A5BD3); color: #fff;
	transition: box-shadow .25s;
}
.admin-bar .cdr-mainbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .cdr-mainbar { top: 0; } }
.cdr-mainbar.is-stuck { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.cdr-mainbar .cdr-wrap { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.cdr-mainbar .cdr-logo { flex: none; }
.cdr-mainbar .cdr-logo img { transition: height .25s; }

.cdr-nav { flex: 1; display: flex; justify-content: center; }
.cdr-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cdr-nav__list > li { position: relative; }
.cdr-nav__list a {
	display: block; padding: 10px 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; position: relative;
}
.cdr-nav__list > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px;
	background: var(--cdr-a, #FF6A00); transform: scaleX(0); transition: transform .2s;
}
.cdr-nav__list > li > a:hover::after,
.cdr-nav__list > li.current-menu-item > a::after,
.cdr-nav__list > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.cdr-nav__list .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: 8px;
	background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.cdr-nav__list li:hover > .sub-menu, .cdr-nav__list li:focus-within > .sub-menu { display: block; }
.cdr-nav__list .sub-menu a { color: var(--cdr-d, #0B1324); border-radius: 8px; }
.cdr-nav__list .sub-menu a:hover { background: var(--cdr-soft, #F4F6F9); }

.cdr-actions { flex: none; display: flex; gap: 8px; margin-left: auto; }
.cdr-iconbtn {
	width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 0; cursor: pointer; padding: 0;
	background: rgba(255,255,255,.12); color: #fff; transition: background .2s;
}
.cdr-iconbtn:hover, .cdr-iconbtn:focus-visible { background: rgba(255,255,255,.22); }
.cdr-burger { display: none; }
.cdr-burger__close { display: none; }
.cdr-burger[aria-expanded="true"] .cdr-burger__open { display: none; }
.cdr-burger[aria-expanded="true"] .cdr-burger__close { display: block; }

/* ---------- Letreiro ---------- */
.cdr-tickerbar { background: var(--cdr-soft, #F4F6F9); padding: 12px 0; }

/* ---------- Busca ---------- */
.cdr-search {
	position: fixed; inset: 0; z-index: 10001; background: rgba(11,19,36,.94); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cdr-search[hidden] { display: none; }
.cdr-search__form { width: 100%; max-width: 760px; display: flex; gap: 10px; border-bottom: 2px solid rgba(255,255,255,.4); padding-bottom: 8px; }
.cdr-search__form input { flex: 1; background: transparent; border: 0; color: #fff; font-size: clamp(22px, 4vw, 36px); font-weight: 700; outline: none; min-width: 0; }
.cdr-search__form input::placeholder { color: rgba(255,255,255,.45); }
.cdr-search__go { border: 0; border-radius: 12px; padding: 0 20px; background: var(--cdr-a, #FF6A00); color: #fff; font-weight: 700; cursor: pointer; }
.cdr-search__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }

.cdr-searchform { display: flex; gap: 10px; max-width: 560px; margin: 16px 0 8px; }
.cdr-searchform input { flex: 1; border: 1.5px solid var(--cdr-line, #E6E9EF); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.cdr-searchform button { border: 0; border-radius: 12px; padding: 0 20px; background: var(--cdr-p, #0A5BD3); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Matéria ---------- */
.cdr-single__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.cdr-single__head .cdr-chip--solid { align-self: flex-start; }
.cdr-single__title { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.cdr-single__lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #4B5563; }
.cdr-single__bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	padding: 14px 0; border-top: 1px solid var(--cdr-line, #E6E9EF); border-bottom: 1px solid var(--cdr-line, #E6E9EF);
}
.cdr-single__img { margin: 0 0 28px; }
.cdr-single__img img { width: 100%; border-radius: 14px; display: block; }
.cdr-single__img figcaption { font-size: 13.5px; color: var(--cdr-muted, #6B7280); margin-top: 8px; font-style: italic; }
.cdr-single__foot { padding: 20px 0 8px; margin-top: 24px; border-top: 1px solid var(--cdr-line, #E6E9EF); }
.cdr-single__rel { padding-top: 32px; }
.cdr-video { margin: 24px 0; }
.cdr-video iframe, .cdr-video video { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; height: auto; }
.cdr-video--v iframe, .cdr-video--v video { max-width: 400px; aspect-ratio: 9 / 16; }

/* ---------- Páginas (Sobre, LGPD…) ---------- */
.cdr-page { max-width: 820px; }
.cdr-page__title {
	font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; margin: 0 0 28px;
	padding-bottom: 18px; border-bottom: 2px solid var(--cdr-line, #E6E9EF); position: relative;
}
.cdr-page__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--cdr-a, #FF6A00); }
.cdr-page__content.cdr-artigo { font-size: 17.5px; }
.cdr-page__content h2 { font-size: 22px; font-weight: 800; }
.cdr-404__txt { font-size: 18px; }

/* ---------- Rodapé ---------- */
.cdr-footer { background: var(--cdr-d, #0B1324); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: 14.5px; }
.cdr-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.cdr-footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cdr-footer__brand p { margin: 0; font-size: 15px; line-height: 1.6; }
.cdr-footer__h { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 16px; }
.cdr-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cdr-footer__menu a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .15s; }
.cdr-footer__menu a:hover, .cdr-footer__menu .current-menu-item > a { color: var(--cdr-a, #FF6A00); }
.cdr-footer__cta { display: inline-block; margin-top: 18px; color: var(--cdr-a, #FF6A00); font-weight: 700; text-decoration: none; }
.cdr-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,.12); font-size: 13px;
}
.cdr-footer__bottom a { color: rgba(255,255,255,.72); text-decoration: none; }
.cdr-footer__bottom a:hover { color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
	.cdr-cols { grid-template-columns: 1fr; gap: 48px; }
	.cdr-burger { display: grid; }
	.cdr-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
		box-shadow: 0 18px 40px rgba(0,0,0,.2); max-height: calc(100vh - 120px); overflow-y: auto;
	}
	.cdr-nav.is-open { display: block; }
	.cdr-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
	.cdr-nav__list a { color: var(--cdr-d, #0B1324); padding: 15px 22px; font-size: 17px; border-bottom: 1px solid var(--cdr-line, #E6E9EF); }
	.cdr-nav__list > li > a::after { display: none; }
	.cdr-nav__list .current-menu-item > a { color: var(--cdr-p, #0A5BD3); }
	.cdr-nav__list .sub-menu { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; }
	.cdr-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.cdr-mainbar .cdr-wrap { min-height: 64px; gap: 12px; }
	.cdr-mainbar .cdr-logo img { height: 46px !important; }
	.cdr-topbar .cdr-data { font-size: 11.5px; }
	.cdr-pt { padding-top: 18px; }
	.cdr-stack { gap: 44px; }
	.cdr-footer__cols { grid-template-columns: 1fr; gap: 28px; }
	.cdr-footer { padding-top: 48px; }
	.cdr-footer__brand .cdr-logo img { height: 80px !important; }
	html { scroll-padding-top: 76px; }
}
