:root {
	--green: #0B7A3B;
	--green-dark: #075226;
	--green-soft: #E1F2E6;
	--gold: #F2B90F;
	--ink: #17201B;
	--muted: #55605A;
	--line: #D9DDD3;
	--bg: #F7F7F7;
	--card: #FFFFFF;
	--danger: #B3261E;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; line-height: 1.2; }
h2 { font-size: 18px; line-height: 1.25; }
h3 { font-size: 15px; margin-top: 6px; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.pa-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.pa-muted { color: var(--muted); font-size: 14px; }
.pa-empty { color: var(--muted); padding: 24px 0; text-align: center; }

/* Topo */
.pa-header { background: var(--green); color: #fff; border-bottom: 6px solid var(--gold); }
.pa-header-in { display: flex; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 14px; }
.pa-logo { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; flex-shrink: 0; }
.pa-header-txt { flex: 1; min-width: 0; }
.pa-hello { font-size: 20px; font-weight: 700; line-height: 1.2; }
.pa-sub { font-size: 14px; color: #E3F2E8; }
.pa-header .pa-link-btn { color: #fff; }

/* Menu */
.pa-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.pa-nav-in { display: flex; gap: 4px; overflow-x: auto; }
.pa-nav a {
	flex-shrink: 0; min-height: 48px; padding: 0 12px; display: flex; align-items: center;
	color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
	border-bottom: 3px solid transparent;
}
.pa-nav a.on { color: var(--green); border-bottom-color: var(--green); }

.pa-main { padding-top: 16px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }

/* Cartões */
.pa-card {
	background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
	display: flex; flex-direction: column; gap: 10px;
}
.pa-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pa-card h2 a { color: var(--ink); text-decoration: none; }
.pa-card h2 a:hover { color: var(--green); }
.pa-feed { display: flex; flex-direction: column; gap: 12px; }
.pa-text { color: #3A443E; }
.pa-text p + p { margin-top: 10px; }
.pa-single h1 { font-size: 24px; }

.pa-tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.pa-tag.noticia { background: var(--green-soft); color: #0A5C2D; }
.pa-tag.aviso { background: #FBF0D9; color: #7A4F00; }
.pa-tag.video { background: #E1ECF7; color: #1D4E89; }

.pa-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #222; }
.pa-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pa-play {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
	border-radius: 50%; background: rgba(0, 0, 0, .65); border: 2px solid #fff;
}
.pa-play::after {
	content: ""; position: absolute; left: 25px; top: 18px;
	border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #fff;
}
.pa-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #222; }
.pa-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pa-back { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }

/* Filtros */
.pa-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pa-chips a {
	flex-shrink: 0; min-height: 44px; padding: 0 16px; display: flex; align-items: center;
	border: 1px solid #AEB5AA; border-radius: 22px; background: #fff; color: var(--ink);
	font-size: 14px; font-weight: 600; text-decoration: none;
}
.pa-chips a.on { background: var(--green); border-color: var(--green); color: #fff; }

/* Botões */
.pa-btn {
	min-height: 50px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--green); color: #fff;
	font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
.pa-btn:hover { background: var(--green-dark); color: #fff; }
.pa-btn.sec { background: #fff; color: var(--green); border: 1px solid var(--green); }
.pa-btn.sec:hover { background: var(--green-soft); color: var(--green-dark); }
.pa-btn.gold { background: var(--gold); color: #1A1A1A; }
.pa-btn.gold:hover { background: #DBA608; color: #1A1A1A; }
.pa-btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.pa-whats { width: 100%; }
.pa-link-btn {
	min-height: 44px; padding: 0 8px; background: none; border: 0; color: var(--green);
	font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline;
}
.pa-link-btn.danger { color: var(--danger); }

/* Formulários */
.pa-form { display: flex; flex-direction: column; gap: 8px; }
.pa-form label, .pa-inline label, .pa-flash label, .pa-seg legend { font-size: 14px; font-weight: 700; margin-top: 6px; }
.pa-form .pa-btn { margin-top: 10px; }
input[type="text"], input[type="password"], input[type="url"], input[type="tel"], select, textarea {
	width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #8F978C; border-radius: 10px;
	background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input[type="file"] { font: inherit; min-height: 44px; }
.pa-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.pa-inline label { width: 100%; margin: 0; }
.pa-inline input, .pa-inline select { flex: 1 1 180px; width: auto; min-height: 44px; }
.pa-check { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; min-height: 44px; }
.pa-seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pa-seg legend { padding: 0; margin-bottom: 6px; }
.pa-seg label { flex: 1 1 100px; margin: 0; position: relative; }
.pa-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pa-seg span {
	min-height: 46px; padding: 0 4px; display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap;
	border: 1px solid #AEB5AA; border-radius: 10px; background: #fff; font-weight: 700; font-size: 14px;
}
.pa-seg input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.pa-seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Avisos do sistema */
.pa-flash { border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; border: 1px solid; }
.pa-flash.ok { background: var(--green-soft); border-color: #9CCFAE; color: #0A4622; }
.pa-flash.erro { background: #FCE8E6; border-color: #E3A39E; color: #7A1A14; }
.pa-flash textarea { min-height: 130px; }

/* Listas */
.pa-row {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
	padding: 10px 0; border-top: 1px solid #E4E7DF;
}
.pa-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.pa-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pa-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.pa-status.on { background: var(--green-soft); color: #0A5C2D; }
.pa-status.wait { background: #FBF0D9; color: #7A4F00; }
.pa-status.off { background: #ECECEC; color: #4A4A4A; }
.pa-list { margin: 0; padding-left: 20px; }
.pa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pa-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.pa-stat strong { font-size: 20px; }
.pa-report { border-top: 1px solid #E4E7DF; padding: 6px 0; }
.pa-report summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; }
.pa-report summary::-webkit-details-marker { display: none; }
.pa-report p { font-size: 14px; padding: 4px 0; }
.pa-count { font-weight: 700; color: var(--green); white-space: nowrap; }
.pa-logo-preview { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; }

/* Login */
.pa-login { background: var(--green); color: #fff; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.pa-login-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.pa-login-logo { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 18px; padding: 10px; }
.pa-login h1 { font-size: 34px; line-height: 1.1; }
.pa-login-lead, .pa-login-foot { color: #E3F2E8; }
.pa-login-foot { font-size: 14px; text-align: center; margin-top: 8px; }
.pa-login-erro { background: #fff; color: #7A1A14; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.pa-login .pa-form label { color: #fff; }
.pa-login input { border-color: #075226; }
