:root{--green:#294b3a;--deep:#19382b;--cream:#f7f8f5;--bronze:#ad8062;--ink:#172e24;--muted:#738076;--border:#e2e9e3}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:0;background:var(--green);color:white;border-radius:12px;padding:12px 18px;font-weight:650;transition:.2s}button:hover{background:#416b53}a{text-decoration:none}header{background:white;border-bottom:1px solid var(--border)}.header-inner{max-width:1170px;margin:auto;min-height:80px;padding:16px 25px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand,.header-actions{display:flex;align-items:center;gap:16px}.brand b{font-size:16px;display:block}.brand small{display:block;color:var(--muted);font-size:11px}.mark,.brand-icon{background:var(--green);color:white;display:grid;place-items:center;border-radius:13px;width:45px;height:45px;font-size:25px}.user-chip{color:var(--muted);font-size:12px}.ghost{background:#f1f5f0;color:var(--green)}.container{max-width:1170px;padding:0 25px;margin:auto}.hero{background:linear-gradient(125deg,#355a45,#1c3b2c);border-radius:0 0 28px 28px;padding:65px 65px 45px;color:white;position:relative;overflow:hidden}.hero:after{content:'✦';font-size:330px;position:absolute;right:4%;top:-105px;opacity:.055}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:var(--bronze)}.hero .eyebrow{color:#d8ae8c}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,serif;font-size:clamp(44px,6vw,70px);font-weight:400;letter-spacing:-2px;line-height:1.06;margin:18px 0}h1 em{color:#caa084;font-weight:400}h2{font:normal 31px Georgia,serif;margin:8px 0}h3{font:normal 26px Georgia,serif;margin:5px 0}.hero p{max-width:560px;color:#d4e0d5;font-size:16px}.hero-stats{display:flex;gap:55px;margin-top:42px}.hero-stats div{display:flex;flex-direction:column}.hero-stats strong{font-size:28px}.hero-stats span{color:#c5d5c8;font-size:12px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:55px 0 22px}.outline{color:var(--green);border:1px solid #cddbd0;padding:12px 18px;border-radius:12px;font-weight:700}.offices{display:grid;gap:17px}.office,.panel,.empty{background:#fff;border:1px solid var(--border);border-radius:20px;padding:27px;box-shadow:0 7px 30px #1b3d2908}.office-head{display:flex;justify-content:space-between;align-items:start;gap:14px}.status{font-size:11px;padding:8px 12px;border-radius:30px;background:#f1f3f1;color:#69736a;white-space:nowrap}.status.open{background:#e8f6ec;color:#237746}.status.published{background:#f9efe5;color:#9d6440}.status.closed{background:#fff5d9;color:#916c13}.candidate-list{margin:20px 0 8px;display:grid;gap:9px}.candidate{display:flex;align-items:center;gap:12px;background:#f8faf8;padding:12px 14px;border-radius:13px}.candidate>span{flex:1;font-weight:600}.avatar{width:34px;height:34px;border-radius:50%;background:#e1ebe3;color:var(--green);display:grid;place-items:center;font-weight:700}.result-track{height:7px;background:#e1e7e2;width:100px;border-radius:20px;overflow:hidden}.result-track div{height:100%;background:var(--bronze)}.candidate b{min-width:65px;text-align:right;font-size:12px}.small{font-size:12px;padding:9px 14px;border-radius:9px}.office-footer{border-top:1px solid var(--border);margin-top:20px;padding-top:18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.office-footer span,.muted-note{color:var(--muted);font-size:13px}.winner{background:#edf5ee;color:#26563a;border-radius:12px;padding:14px;margin-top:17px}.muted-note{padding-top:15px}.inline{display:flex;gap:10px;margin-top:20px}.inline input{flex:1}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:35px 0}.panel p{color:var(--muted)}label{display:block;font-size:12px;font-weight:700;margin:16px 0 7px}input,select{width:100%;padding:13px 14px;border:1px solid #d9e3db;border-radius:10px;background:white;color:var(--ink);outline:none}input:focus,select:focus{border-color:#8cae98;box-shadow:0 0 0 3px #d9e9dd}.panel form>button{margin-top:16px;width:100%}.notice{background:#eaf2e9;color:#245b37;border:1px solid #cce2d0;border-radius:12px;padding:15px;margin:22px 0}.password{margin:25px 0}.password summary{cursor:pointer;color:var(--green)}.password .panel{max-width:500px;margin-top:15px}footer{border-top:1px solid var(--border);padding:30px 25px;margin-top:60px;text-align:center;color:#849187;font-size:11px;letter-spacing:1px}footer span{margin-left:20px;color:var(--bronze)}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#496d55,#1b372a 70%);padding:25px}.login-panel{width:min(100%,480px);padding:50px}.login-panel .brand-icon{margin-bottom:28px}.login-panel h1{font-size:54px}.login-panel p{color:#6e7f72}.login-panel small{display:block;text-align:center;margin-top:25px;color:#89978b}.login-panel form button{display:flex;justify-content:space-between}.error{color:#b52222!important}@media(max-width:700px){.header-inner{padding:12px 15px}.user-chip{display:none}.container{padding:0 13px}.hero{padding:43px 25px 32px;border-radius:0 0 20px 20px}.hero-stats{gap:22px;flex-wrap:wrap}.hero-stats strong{font-size:23px}.section-heading{margin-top:38px;align-items:center}.section-heading h2{font-size:25px}.office,.panel{padding:20px}.office-head{flex-wrap:wrap}.admin-grid{grid-template-columns:1fr}.candidate{flex-wrap:wrap}.result-track{width:50px}.inline{flex-direction:column}.office-footer{flex-wrap:wrap}}

/* =============================================
   COMISSAO 2027 - AJUSTES VISUAIS PERSONALIZADOS
   Mantem os estilos originais do sistema.
   ============================================= */

/* Area de identidade no cabecalho: verde institucional */
.header-inner .brand .mark,
.header-inner .brand .brand-icon {
  background-color: #294b3a !important;
  border-radius: 12px;
  overflow: hidden;
}

/* Quando a marca for uma imagem branca sobre fundo preto,
   screen torna o preto transparente visualmente sobre o verde.
   Aplica somente a imagens dentro da marca do cabecalho. */
.header-inner .brand .mark img,
.header-inner .brand .brand-icon img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* Se a imagem for filha direta de .brand, o blend deve ocorrer
   sobre uma superficie verde. */
.header-inner .brand:has(> img) {
  background-color: #294b3a;
  border-radius: 12px;
  overflow: hidden;
}
.header-inner .brand > img {
  mix-blend-mode: screen;
  object-fit: contain;
}

/* Botao do projetor: usar a classe especifica no HTML. */
.btn-projetor,
.btn-projetor:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #37634c !important;
  color: #fff !important;
  border: 1px solid #789584 !important;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}
.btn-projetor:hover,
.btn-projetor:focus-visible {
  background: #48785d !important;
  color: #fff !important;
}
.btn-projetor:focus-visible {
  outline: 3px solid #d4b18a;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .btn-projetor { padding: 10px 12px; font-size: 13px; }
  .header-inner .brand .mark,
  .header-inner .brand .brand-icon { flex-shrink: 0; }
}

/* CORRECAO FINAL: contraste do link Modo projetor no cabecalho.
   O sistema utiliza .header-actions e pode usar .outline ou .btn-projetor. */
header .header-inner .header-actions a.outline,
header .header-inner .header-actions a.btn-projetor,
header .header-inner .header-actions .btn-projetor,
header .header-inner .header-actions .outline {
  background: #37634c !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #789584 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
header .header-inner .header-actions a.outline:visited,
header .header-inner .header-actions a.btn-projetor:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
header .header-inner .header-actions a.outline *,
header .header-inner .header-actions a.btn-projetor *,
header .header-inner .header-actions .btn-projetor *,
header .header-inner .header-actions .outline * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}
header .header-inner .header-actions a.outline:hover,
header .header-inner .header-actions a.btn-projetor:hover,
header .header-inner .header-actions .btn-projetor:hover,
header .header-inner .header-actions .outline:hover {
  background: #48785d !important;
}
