/* Câmara Parlamentares: páginas públicas, com o visual da Home 2027. */
.cpar-pub {
	--cpar-blue: #092a4b;
	--cpar-blue-3: #06203a;
	--cpar-gold: #c8b768;
	--cpar-gold-text: #6d6130;
	--cpar-paper: #f6f3ea;
	--cpar-line: #e3dfd2;
	--cpar-ink: #1d2733;
	--cpar-muted: #566170;
	color: var(--cpar-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}
.cpar-pub *, .cpar-pub *::before, .cpar-pub *::after { box-sizing: border-box; }
.cpar-pub img { display: block; max-width: 100%; height: auto; }
.cpar-pub ul { margin: 0; padding: 0; list-style: none; }
.cpar-pub h1, .cpar-pub h2, .cpar-pub h3, .cpar-pub p { margin: 0; }
.cpar-pub a { color: var(--cpar-blue); text-decoration: underline; text-underline-offset: 2px; }
.cpar-pub a:hover, .cpar-pub a:focus { color: var(--cpar-gold-text); }
.cpar-pub :focus-visible { outline: 3px solid var(--cpar-gold); outline-offset: 2px; }
.cpar-icon { flex: none; width: 20px; height: 20px; }

/* O tema aplica rosa em botões; mantém as cores da Câmara. */
.cpar-pub button,
.cpar-pub button:hover,
.cpar-pub button:focus {
	padding: 8px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--cpar-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.cpar-pub button:hover, .cpar-pub button:focus { background: var(--cpar-blue-3); }

/* Perfil */
.cpar-profile { padding: 40px 0 64px; background: var(--cpar-paper); }
.cpar-wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.cpar-back { margin-bottom: 20px; font-size: 14.5px; }
.cpar-profile-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 40px; align-items: start; }
.cpar-side { padding: 20px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(6, 32, 58, .08); }
.cpar-profile-photo { position: relative; overflow: hidden; margin-bottom: 18px; border-radius: 8px; background: #dfe4ea; aspect-ratio: 4 / 5; }
.cpar-profile-photo img, .cpar-card-photo img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 15%; }
.cpar-profile-photo em, .cpar-card-photo em { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 4px; background: var(--cpar-gold); color: var(--cpar-blue-3); font-size: 13px; font-style: normal; font-weight: 800; text-align: center; }
.cpar-photo-empty { display: block; width: 100%; height: 100%; }
.cpar-kicker { color: var(--cpar-gold-text); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cpar-profile h1 { margin: 4px 0 2px; color: var(--cpar-blue); font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; }
.cpar-party { color: var(--cpar-muted); font-weight: 600; }
.cpar-tenure { margin-top: 12px !important; padding: 8px 12px; border-left: 3px solid var(--cpar-gold); background: var(--cpar-paper); font-size: 14.5px; font-weight: 600; }
.cpar-contacts { margin-top: 22px; }
.cpar-contacts h2, .cpar-main h2 { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--cpar-gold); color: var(--cpar-blue); font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cpar-contacts li { display: flex; gap: 10px; align-items: center; padding: 6px 0; overflow-wrap: anywhere; }
.cpar-contacts .cpar-icon { color: var(--cpar-blue); }
.cpar-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; min-width: 0; }
.cpar-side { min-width: 0; }
.cpar-main section { padding: 24px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(6, 32, 58, .08); }
.cpar-text p { margin: 0 0 1em; }
.cpar-text p:last-child { margin-bottom: 0; }
.cpar-roles li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 9px 0; border-bottom: 1px solid var(--cpar-line); }
.cpar-roles li:last-child { border-bottom: 0; }
.cpar-roles span { color: var(--cpar-muted); }
.cpar-roles .is-current strong { color: var(--cpar-blue); }
.cpar-history { margin-top: 14px; }
.cpar-history summary { color: var(--cpar-blue); font-weight: 700; cursor: pointer; }
.cpar-history h3 { margin: 16px 0 6px; color: var(--cpar-blue); font-size: 15px; }
.cpar-history > ul { margin-top: 8px; }
.cpar-history > ul li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 7px 0; border-bottom: 1px solid var(--cpar-line); }
.cpar-table-wrap { overflow-x: auto; }
.cpar-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cpar-table th, .cpar-table td { padding: 9px 10px; border-bottom: 1px solid var(--cpar-line); text-align: left; vertical-align: top; }
.cpar-table th { color: var(--cpar-blue); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.cpar-empty, .cpar-note { color: var(--cpar-muted); font-size: 14.5px; }

/* Listas */
.cpar-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; }
.cpar-filter label { font-weight: 700; }
.cpar-pub .cpar-filter select { width: auto; max-width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid #b9c1cb; border-radius: 6px; background: #fff; color: var(--cpar-ink); font: inherit; }
.cpar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cpar-grid a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(6, 32, 58, .1); color: var(--cpar-blue); text-align: center; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.cpar-pub .cpar-grid a, .cpar-pub .cpar-grid a * { text-decoration: none; }
.cpar-grid a:hover, .cpar-grid a:focus { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(6, 32, 58, .2); color: var(--cpar-blue); }
.cpar-card-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #dfe4ea; }
.cpar-card-photo em { font-size: 11.5px; }
.cpar-grid strong { padding: 10px 8px 0; font-size: 15px; line-height: 1.25; }
.cpar-grid small { padding: 2px 8px 10px; color: var(--cpar-muted); font-size: 13px; }
.cpar-grid small.cpar-note { margin-top: -8px; color: var(--cpar-gold-text); font-weight: 700; }
.cpar-grid--mesa { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.cpar-comissoes h2 { margin-bottom: 4px; color: var(--cpar-blue); }
.cpar-comissoes > .cpar-note { margin-bottom: 18px; }
.cpar-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.cpar-card { padding: 22px; border-top: 4px solid var(--cpar-gold); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(6, 32, 58, .1); }
.cpar-card h3 { color: var(--cpar-blue); font-size: 19px; line-height: 1.25; }
.cpar-card header { margin-bottom: 12px; }
.cpar-card .cpar-text { margin-bottom: 12px; color: var(--cpar-muted); font-size: 14.5px; }
.cpar-members li { display: flex; gap: 10px; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--cpar-line); }
.cpar-members li span { color: var(--cpar-muted); font-size: 14px; }
.cpar-members li a { font-weight: 600; text-align: right; }
.cpar-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 14px 0 0; font-size: 13.5px; }
.cpar-facts dt { color: var(--cpar-blue); font-weight: 700; }
.cpar-facts dd { margin: 0; color: var(--cpar-muted); }

@media (max-width: 820px) {
	.cpar-profile { padding-top: 24px; }
	.cpar-profile-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.cpar-side { max-width: 460px; }
	.cpar-main section { padding: 18px; }
	.cpar-cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.cpar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.cpar-grid a { transition: none; }
	.cpar-grid a:hover { transform: none; }
}
