:root {
  --navy: #003778;
  --navy-dark: #002758;
  --green: #005a50;
  --orange: #ff6e00;
  --yellow: #ffc800;
  --ink: #18304d;
  --muted: #68768a;
  --line: #dfe5eb;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--ink); margin: 0; font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { z-index: 20; background: #fff; border-bottom: 1px solid #eef1f4; position: relative; }
/* PRD-05 §3.1 item 1: era min(1260px, ...), 80px mais largo que .container,
   o que desalinhava o logo com a 1a coluna da grade abaixo do header. */
.header-inner { align-items: center; gap: 38px; width: min(1180px, calc(100% - 40px)); min-height: 82px; margin: 0 auto; display: flex; }
.brand { flex: none; align-items: center; display: inline-flex; }
.brand-logo { width: 100%; height: auto; display: block; }
.header-logo { width: 175px; }
nav { flex: 1; justify-content: center; align-items: center; gap: 25px; display: flex; }
nav a { color: #3e4b5c; white-space: nowrap; padding: 30px 0 27px; font-size: 14px; font-weight: 700; position: relative; }
nav a::after { content: ""; background: var(--orange); border-radius: 3px; height: 3px; transition: transform .18s; position: absolute; bottom: 18px; left: 0; right: 0; transform: scaleX(0); }
nav a:hover::after, nav a.nav-active::after { transform: scaleX(1); }
.header-button { background: var(--orange); color: #fff; border-radius: 7px; padding: 12px 20px; font-size: 14px; font-weight: 800; box-shadow: 0 8px 18px #ff6e0038; }

.hero { background: linear-gradient(110deg, #003778fa 0%, #003778f0 50%, #005a50f0 100%), #003778; min-height: 470px; position: relative; overflow: hidden; }
.hero::before { content: ""; background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green)); height: 7px; position: absolute; inset: auto 0 0; }
.hero-grid { z-index: 2; grid-template-columns: 1.16fr .84fr; align-items: center; gap: 52px; min-height: 470px; padding: 55px 0 62px; display: grid; position: relative; }
.hero-orb { border: 1px solid #ffffff21; border-radius: 50%; position: absolute; }
.hero-orb-one { width: 390px; height: 390px; top: -160px; right: -100px; }
.hero-orb-two { width: 280px; height: 280px; bottom: -190px; left: -110px; }
.eyebrow { color: var(--yellow); letter-spacing: .16em; margin: 0 0 14px; font-size: 12px; font-weight: 900; }
.eyebrow.dark { color: var(--orange); }
.hero h1 { color: #fff; letter-spacing: -.045em; max-width: 720px; margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.03; }
.hero h1 em { color: var(--yellow); font-style: normal; display: block; }
.hero-text { color: #ffffffd6; max-width: 660px; margin: 24px 0 0; font-size: 18px; line-height: 1.7; }
.hero-visual { min-height: 350px; position: relative; }
.radar { background-image: linear-gradient(#ffffff1c 1px, transparent 1px), linear-gradient(90deg, #ffffff1c 1px, transparent 1px); background-size: 52px 52px; border: 1px solid #fff6; border-radius: 50%; width: 310px; height: 310px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: inset 0 0 50px #ffffff0a; }
.radar::after { content: ""; background: conic-gradient(from 0deg, transparent 0 78%, #ffc8005e 92%, transparent 100%); border-radius: 50%; animation: sweep 5s linear infinite; position: absolute; inset: 0; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-ring { border: 1px solid #ffffff52; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring-one { width: 205px; height: 205px; }
.ring-two { width: 105px; height: 105px; }
.radar-line { background: #ffffff38; width: 100%; height: 1px; position: absolute; top: 50%; left: 0; }
.radar-center { z-index: 2; background: var(--orange); color: #fff; border: 7px solid #ffffff21; border-radius: 50%; flex-direction: column; justify-content: center; align-items: center; width: 112px; height: 112px; display: flex; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 18px 35px #0000002e; }
.radar-center b { font-size: 17px; }
.radar-center span { letter-spacing: .09em; font-size: 9px; font-weight: 900; }
.radar-dot { z-index: 3; background: var(--yellow); border: 3px solid #fff; border-radius: 50%; width: 13px; height: 13px; position: absolute; box-shadow: 0 0 0 5px #ffc80026; }
.dot-one { top: 43px; left: 90px; }
.dot-two { background: var(--orange); bottom: 86px; right: 42px; }
.dot-three { background: #44c7b9; bottom: 50px; left: 45px; }
.opportunity-chip { z-index: 4; color: var(--navy); background: #fffffff2; border: 1px solid #ffffff4d; border-radius: 8px; padding: 9px 14px; font-size: 12px; font-weight: 900; position: absolute; box-shadow: 0 12px 25px #00000024; }
.chip-one { top: 37px; right: 25px; }
.chip-two { top: 145px; left: -10px; }
.chip-three { bottom: 25px; right: 0; }

.search-section { z-index: 8; margin-top: -32px; position: relative; }
.search-card { background: #fff; border: 1px solid #e6ebef; border-radius: 13px; grid-template-columns: 1fr auto; padding: 14px; display: grid; box-shadow: 0 16px 48px #14305024; }
.search-box { align-items: center; gap: 12px; padding: 0 10px; display: flex; }
.search-box span { color: var(--orange); font-size: 35px; line-height: 1; transform: rotate(-18deg); }
.search-box input { width: 100%; height: 48px; color: var(--ink); border: 0; outline: 0; font-size: 16px; }
.search-button, .alert-banner button { background: var(--orange); color: #fff; cursor: pointer; border: 0; border-radius: 8px; padding: 0 24px; font-weight: 900; transition: transform .16s, background .16s; }
.search-button:hover, .alert-banner button:hover { background: #e55f00; transform: translateY(-1px); }
.quick-links { color: var(--muted); flex-wrap: wrap; align-items: center; gap: 10px; padding: 15px 5px 0; font-size: 13px; display: flex; }
.quick-links button { color: var(--navy); cursor: pointer; text-underline-offset: 3px; background: transparent; border: 0; font-weight: 800; text-decoration: underline #b8c7d8; }

.directory { background: #f5f7f9; padding: 58px 0 90px; }
.directory-grid { grid-template-columns: 290px 1fr; align-items: start; gap: 34px; display: grid; }
.filters { background: #fff; border: 1px solid #e1e6eb; border-radius: 12px; padding: 26px; position: sticky; top: 20px; box-shadow: 0 10px 30px #1134560f; }
.filters-heading { justify-content: space-between; align-items: flex-end; margin-bottom: 22px; display: flex; }
.filters-heading p { color: var(--orange); letter-spacing: .14em; margin: 0 0 5px; font-size: 10px; font-weight: 900; }
.filters-heading h2 { color: var(--navy); margin: 0; font-size: 28px; }
.filters-heading button { color: var(--orange); cursor: pointer; background: transparent; border: 0; font-size: 12px; font-weight: 900; }
.field { margin-bottom: 18px; display: block; }
.field > span { color: #32465d; margin-bottom: 8px; font-size: 12px; font-weight: 900; display: block; }
.field select, .order select { color: #435267; cursor: pointer; background: #fff; border: 1px solid #dce3e9; border-radius: 7px; outline: 0; width: 100%; height: 45px; padding: 0 34px 0 12px; font-size: 12px; }
.field select:focus, .order select:focus, .search-box input:focus { box-shadow: 0 0 0 3px #ff6e0029; }
.filter-note { color: #70411d; background: #fff4e9; border-radius: 8px; align-items: flex-start; gap: 11px; margin-top: 24px; padding: 16px; display: flex; }
.filter-note span { color: var(--orange); }
.filter-note p { margin: 0; font-size: 11px; line-height: 1.5; }
.results-top { justify-content: space-between; align-items: flex-end; gap: 20px; min-height: 67px; margin-bottom: 22px; display: flex; }
.results-top h2 { color: var(--navy); margin: 0; font-size: 31px; }
.order { color: var(--muted); align-items: center; gap: 10px; font-size: 12px; display: flex; }
.order select { width: 188px; }
.result-list { gap: 18px; display: grid; }
.edital-card { background: #fff; border: 1px solid #dfe5eb; border-radius: 12px; grid-template-columns: 7px 1fr; transition: transform .18s, box-shadow .18s; display: grid; position: relative; overflow: hidden; box-shadow: 0 8px 26px #1335540e; }
.edital-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px #1335541a; }
.card-accent { background: linear-gradient(var(--orange), var(--yellow)); }
.card-body { padding: 25px 27px 22px; min-width: 0; }
.card-topline { justify-content: space-between; align-items: center; gap: 12px; display: flex; }
.status { letter-spacing: .03em; text-transform: uppercase; border-radius: 999px; align-items: center; gap: 7px; padding: 6px 10px; font-size: 10px; font-weight: 900; display: inline-flex; }
.status::before { content: ""; background: currentColor; border-radius: 50%; width: 6px; height: 6px; }
.status-aberto { color: #087448; background: #e5f6ee; }
.status-encerrado { color: #6f7b89; background: #eef1f4; }
.card-id { color: #9ba5b1; font-size: 10px; overflow-wrap: anywhere; }
.organization { color: var(--orange); letter-spacing: .025em; text-transform: uppercase; margin: 19px 0 7px; font-size: 11px; font-weight: 900; }
.edital-card h3 { color: var(--navy); margin: 0; font-size: 23px; line-height: 1.25; }
.summary { color: #657489; max-width: 820px; margin: 11px 0 18px; font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.facts { border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; grid-template-columns: .8fr 1fr 1.2fr; gap: 14px; padding: 15px 0; display: grid; }
.facts > div { align-items: center; gap: 10px; min-width: 0; display: flex; }
.fact-icon { flex: none; min-width: 29px; height: 29px; color: var(--orange); background: #fff0e4; border-radius: 50%; place-items: center; font-size: 10px; font-weight: 900; display: grid; }
.facts p { min-width: 0; flex-direction: column; gap: 2px; margin: 0; display: flex; }
.facts small { color: #8995a4; text-transform: uppercase; font-size: 9px; font-weight: 800; }
.facts strong { color: #33465d; font-size: 12px; overflow-wrap: anywhere; }
.card-footer { justify-content: space-between; align-items: center; gap: 18px; margin-top: 18px; display: flex; }
.tags { flex-wrap: wrap; gap: 7px; display: flex; }
.tags span { color: var(--green); background: #edf5f4; border-radius: 5px; padding: 6px 9px; font-size: 9px; font-weight: 900; }
.card-footer > a { color: var(--orange); flex: none; font-size: 12px; font-weight: 900; }
.card-footer > a span { margin-left: 5px; transition: transform .15s; display: inline-block; }
.card-footer > a:hover span { transform: translate(4px); }
.empty { text-align: center; background: #fff; border: 1px dashed #cad3dd; border-radius: 12px; padding: 60px 25px; }
.empty > span { color: var(--orange); font-size: 48px; display: block; }
.empty h3 { color: var(--navy); margin: 8px 0; }
.empty p { color: var(--muted); }
.empty button { color: var(--orange); cursor: pointer; background: transparent; border: 0; font-weight: 900; text-decoration: underline; }
.loading > span { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .35; transform: rotate(25deg); } }
.stale-notice { color: #8a5713; }

.alert-banner { background: var(--orange); color: #fff; padding: 52px 0; }
.alert-inner { grid-template-columns: auto 1fr minmax(390px, .9fr); align-items: center; gap: 25px; display: grid; }
.alert-icon { width: 62px; height: 62px; color: var(--yellow); border: 2px solid #ffffffbf; border-radius: 50%; place-items: center; font-size: 27px; display: grid; }
.alert-banner .eyebrow { color: var(--yellow); margin-bottom: 7px; }
.alert-banner h2 { margin: 0; font-size: 26px; }
.alert-banner form { background: #fff; border-radius: 9px; grid-template-columns: 1fr auto; gap: 7px; padding: 7px; display: grid; position: relative; }
.alert-banner input { color: var(--ink); border: 0; outline: 0; min-width: 0; height: 44px; padding: 0 12px; }
.alert-banner button { background: var(--navy); padding: 0 18px; }
.alert-banner button:hover { background: var(--navy-dark); }
.alert-banner button:disabled { cursor: wait; opacity: .75; }
.form-message { color: #fff; position: absolute; top: calc(100% + 6px); left: 7px; margin: 0; font-size: 11px; font-weight: 800; }
.form-message.error { color: #4d1900; }

footer { background: var(--navy-dark); color: #ffffffc2; padding: 52px 0 20px; }
.footer-logo { width: 210px; }
.footer-grid { grid-template-columns: 220px 1fr auto; align-items: center; gap: 45px; display: grid; }
.footer-grid p { max-width: 660px; margin: 0; font-size: 13px; line-height: 1.7; }
.footer-links { color: #fff; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 800; display: flex; }
.footer-bottom { border-top: 1px solid #ffffff1f; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 18px; font-size: 10px; display: flex; }

@media (max-width: 1000px) {
  nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr .75fr; }
  .hero h1 { font-size: 47px; }
  .radar { width: 260px; height: 260px; }
  .alert-inner { grid-template-columns: auto 1fr; }
  .alert-inner form { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container, .header-inner { width: min(calc(100% - 28px), 620px); }
  .site-header { position: static; }
  .header-inner { gap: 12px; min-height: 70px; }
  .header-logo { width: min(44vw, 145px); }
  .header-button { padding: 10px 14px; font-size: 12px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 55px 0 78px; }
  .hero h1 { font-size: 41px; }
  .hero-text { font-size: 16px; }
  .hero-visual { min-height: 300px; }
  .search-card { grid-template-columns: 1fr; gap: 8px; }
  .search-button { min-height: 48px; }
  .directory { padding-top: 40px; }
  .directory-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .results-top { flex-direction: column; align-items: flex-start; }
  .order { width: 100%; }
  .order select { flex: 1; }
  .facts { grid-template-columns: 1fr; }
  .card-footer { flex-direction: column; align-items: flex-start; }
  .alert-inner { text-align: center; grid-template-columns: 1fr; }
  .alert-icon { margin: 0 auto; }
  .alert-banner form { grid-column: auto; grid-template-columns: 1fr; }
  .alert-banner button { min-height: 44px; }
  .form-message { position: static; color: var(--navy); grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* PRD-05: elementos novos da busca dinamica (nao existiam no HTML estatico
   original) — mesma linguagem visual das classes existentes, nao redesenho. */
.chips { flex-wrap: wrap; gap: 6px; display: flex; margin: 6px 0; }
.chip { background: #eef1f4; color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 13px; border: 0; cursor: pointer; }
.empty.error button { background: var(--orange); color: #fff; border: 0; }
.status { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.status-recebendo_inscricoes, .status-fluxo_continuo, .status-previsto { background: #e6f4ea; color: #1b7a3d; }
.status-encerrado { background: #f4e6e6; color: #a33; }
.status-sem_data { background: #fdf2e0; color: #a3670a; }

/* hero + cartao (antes do /entrar, hoje usado pelo /cadastrar-edital) — mesma linguagem visual do hero da home
   (gradiente, orbs) com um cartao de acesso ao lado em vez do radar. */
.login-hero { min-height: 560px; }
.login-hero-grid { grid-template-columns: 1.05fr .95fr; min-height: 560px; }
.login-logo { height: 40px; width: auto; margin-bottom: 28px; filter: brightness(0) invert(1); }
.login-destaques { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.login-destaques li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #ffffffe6; }
.login-destaques li::before { content: "✦"; color: var(--yellow); flex: none; margin-top: 1px; }
.login-rodape { margin-top: 20px; text-align: center; font-size: 12px; color: var(--muted); }
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 34px;
  box-shadow: 0 20px 50px -20px #00000040, 0 2px 10px #00000022;
}
.login-card h2 { color: var(--navy); margin: 0 0 6px; font-size: 22px; }
.login-card-subtitulo { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.login-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  transition: box-shadow .15s, border-color .15s;
}
.login-field input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px #ff6e0029; background: #fff; }
.login-botao { width: 100%; height: 48px; margin-top: 6px; font-size: 15px; }

@media (max-width: 900px) {
  .login-hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 40px 0 48px; }
  .login-card { margin-top: 8px; }
}

/* /cadastrar-edital — pre-cadastro publico (sem login), mesmo visual do login */
.header-button-edital { background: #fff; color: var(--orange); border: 1px solid var(--orange); box-shadow: none; white-space: nowrap; }
.header-button-edital:hover { background: #fff5ec; }
.pre-hero { padding: 36px 0 48px; }
.pre-grid { align-items: start; }
.pre-card textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fbfcfd; border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical;
}
.pre-card textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px #ff6e0029; background: #fff; }
.pre-fontes { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 16px; background: #fbfcfd; }
.pre-fontes-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--navy); font-size: 14px; }
.pre-fontes-topo span { color: var(--muted); font-size: 12px; }
.pre-upload { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 2px dashed #c9d3de; border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.pre-upload:hover { border-color: var(--orange); }
.pre-upload-icone { font-size: 22px; color: var(--orange); }
.pre-upload small { color: var(--muted); font-size: 12px; }
.pre-lista { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pre-lista li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; overflow-wrap: anywhere; }
.pre-lista button { border: 0; background: transparent; color: #a33; font-size: 18px; cursor: pointer; line-height: 1; }
.pre-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.pre-audio audio { max-width: 100%; height: 36px; }
.pre-botao-audio { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.pre-botao-audio span { color: #c53030; }
.pre-botao-audio.gravando { background: #fdeceb; border-color: #c53030; color: #c53030; }
.pre-contato { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pre-armadilha { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pre-aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.pre-aceite input { margin-top: 3px; }
.pre-erro:not([hidden]) { color: #a33; background: #fdeceb; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.pre-progresso:not([hidden]) { color: var(--navy); background: #eef4fb; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.pre-sucesso { text-align: center; padding: 20px 0; }
.pre-sucesso-icone { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: #e6f4ea; color: #1b7a3d; font-size: 28px; margin-bottom: 10px; }
.pre-sucesso strong { color: var(--navy); font-size: 18px; }
.pre-novo { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 760px) {
  .pre-contato { grid-template-columns: 1fr; }
  .header-button-edital { padding: 10px 12px; font-size: 13px; }
}

.busca-aproximada { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #fff4dd; color: #7a5100; font-size: 13px; }

/* ===== "Ver oportunidade": modal de tela cheia (detalhes-edital.ts) ===== */
body.od-travado { overflow: hidden; }
.od-fundo { position: fixed; inset: 0; z-index: 100; background: #0b1f3acc; display: flex; animation: od-entrar-fundo .18s ease-out; }
/* tela cheia; o conteudo fica centralizado em ate' 1180px via --od-lado */
.od-modal { --od-lado: max(40px, calc((100vw - 1180px) / 2)); position: relative; width: 100%; height: 100%; background: #f6f8fa; display: flex; flex-direction: column; overflow: hidden; animation: od-entrar .22s ease-out; }
.od-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--od-lado); background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.od-marca { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.od-marca img { height: 26px; width: auto; }
.od-fechar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; transition: background .15s, transform .15s; }
.od-fechar:hover { background: #eef4fb; transform: rotate(90deg); }
.od-conteudo { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.od-carregando { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.od-spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid #dfe5eb; border-top-color: var(--orange); animation: od-girar .8s linear infinite; }

.od-ficha { --od-lado: 40px; display: flex; flex-direction: column; }
.od-modal .od-ficha { --od-lado: inherit; }
.od-hero { background: linear-gradient(110deg, #003778 0%, #003778 55%, #005a50 100%); color: #fff; padding: 40px var(--od-lado) 76px; position: relative; overflow: hidden; }
.od-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, #ff6e0040, transparent 70%); pointer-events: none; }
.od-hero-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.od-hero .status { font-size: 12px; }
.od-id { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #ffffffa8; background: #ffffff1a; border-radius: 999px; padding: 4px 10px; }
.od-organizacao { margin: 0 0 8px; color: var(--yellow); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.od-hero h2 { margin: 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.2; max-width: 900px; overflow-wrap: anywhere; }
.od-resumo { margin: 16px 0 0; max-width: 860px; color: #ffffffe0; font-size: 16px; line-height: 1.6; }

.od-fatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: -44px var(--od-lado) 0; position: relative; z-index: 1; }
.od-fato { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 30px -14px #00377866, 0 1px 3px #0000000f; }
.od-fato-icone { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff0e5; color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; }
.od-fato small { display: block; color: #8995a4; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.od-fato strong { display: block; color: var(--navy); font-size: 16px; margin-top: 2px; overflow-wrap: anywhere; }
.od-fato em { display: block; color: var(--muted); font-size: 12px; font-style: normal; margin-top: 3px; overflow-wrap: anywhere; }

.od-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 28px var(--od-lado) 8px; align-items: start; }
.od-principal { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.od-secao { background: #fff; border: 1px solid #e8edf2; border-radius: 14px; padding: 22px 24px; }
.od-secao h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--navy); font-size: 17px; }
.od-secao-icone { width: 28px; height: 28px; border-radius: 8px; background: #eef4fb; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.od-subtitulo { margin: 16px 0 6px; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.od-texto p { margin: 0 0 10px; color: #33465d; font-size: 15px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.od-texto p:last-child { margin-bottom: 0; }
.od-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.od-checklist li { position: relative; padding: 10px 12px 10px 38px; background: #f7f9fb; border-radius: 10px; color: #33465d; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.od-checklist li::before { content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: #e6f4ea; color: #1b7a3d; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.od-vazio { background: #fff; border: 1px dashed #d8dee5; border-radius: 14px; padding: 22px; color: var(--muted); }

.od-lateral { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.od-acoes { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #e8edf2; border-radius: 14px; padding: 18px; }
.od-botao { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--navy); color: var(--navy); background: #fff; font-weight: 800; font-size: 14px; text-align: center; cursor: pointer; transition: background .15s, transform .15s; }
.od-botao:hover { background: #eef4fb; transform: translateY(-1px); }
.od-botao-principal { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 10px 22px -8px #ff6e0080; }
.od-botao-principal:hover { background: #f06500; }
.od-botao-leve { border-color: var(--line); color: var(--muted); font-weight: 700; font-size: 13px; min-height: 40px; }
.od-bloco-lateral { background: #fff; border: 1px solid #e8edf2; border-radius: 14px; padding: 16px 18px; }
.od-bloco-lateral h4 { margin: 0 0 10px; color: #8995a4; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.od-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.od-chip { border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; background: #eef1f4; color: var(--ink); }
.od-chip-eixo { background: #e6f4ea; color: #145c2c; }
.od-chip-publico { background: #eef4fb; color: var(--navy); }
.od-chip-leve { background: #f7f9fb; color: var(--muted); font-weight: 600; }
.od-email { color: var(--navy); font-weight: 700; font-size: 14px; overflow-wrap: anywhere; text-decoration: underline; }
.od-aviso { margin: 18px var(--od-lado) 30px; color: var(--muted); font-size: 12px; text-align: center; }

/* pagina /edital/:id usa o mesmo conteudo, fora do modal */
.od-pagina { padding: 24px 0 40px; background: #f6f8fa; min-height: 100vh; }
.od-voltar { margin: 0 auto 14px; }
.od-voltar a { color: var(--navy); font-weight: 700; }
.od-pagina .od-ficha { border-radius: 18px; overflow: hidden; background: #f6f8fa; box-shadow: 0 10px 40px -20px #00000040; }

@keyframes od-entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes od-entrar-fundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes od-girar { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .od-modal, .od-ficha { --od-lado: 16px; }
  .od-corpo { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 4px; }
  .od-lateral { position: static; order: -1; }
  .od-hero { padding-top: 24px; padding-bottom: 64px; }
  .od-fatos { margin-top: -40px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .od-fatos { grid-template-columns: 1fr; }
  .od-secao { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .od-fundo, .od-modal, .od-spinner { animation: none; }
}
/* Botoes do cabecalho lado a lado: mesmo tamanho e mesma paleta laranja —
   "Cadastre-se" cheio (acao principal), os outros com contorno. Nao
   encolhem nem quebram o texto (antes o "Cadastre-se" era espremido). */
.header-acoes { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-acoes .header-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 18px; white-space: nowrap; flex-shrink: 0;
  font-size: 14px; font-weight: 800; border-radius: 7px; border: 1px solid var(--orange);
  transition: background .15s, color .15s;
}
.header-acoes .header-button-edital,
.header-acoes .header-button-admin { background: #fff; color: var(--orange); box-shadow: none; }
.header-acoes .header-button-edital:hover,
.header-acoes .header-button-admin:hover { background: #fff5ec; }
.header-acoes .header-button:not(.header-button-edital):not(.header-button-admin):hover { background: #e86300; }
@media (max-width: 1000px) { .header-acoes { gap: 8px; } .header-acoes .header-button { padding: 10px 14px; font-size: 13px; } }
/* celular: os botoes descem para uma linha propria, dividindo a largura */
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; padding: 10px 0 12px; }
  .header-acoes { width: 100%; gap: 6px; }
  .header-acoes .header-button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 8px 6px; font-size: 12px; }
}

/* ── Menu principal no celular/tablet (antes: nav escondido, sem acesso) ── */
.site-header .menu-toggle { display: none; }
@media (max-width: 1000px) {
  .site-header .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border: 1px solid #dfe5eb; border-radius: 8px;
    background: #fff; cursor: pointer; flex-shrink: 0; order: 3;
  }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--navy, #003778); transition: transform .2s, opacity .2s; }
  body.menu-aberto .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-aberto .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-aberto .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.menu-aberto nav#menu-principal {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    background: #fff; border-bottom: 1px solid #eef1f4; box-shadow: 0 16px 30px -18px #00275880; padding: 6px 20px 12px;
  }
  body.menu-aberto nav#menu-principal a { padding: 14px 4px; min-height: 48px; border-bottom: 1px solid #f1f4f7; font-size: 16px; }
  body.menu-aberto nav#menu-principal a:last-child { border-bottom: 0; }
  body.menu-aberto nav#menu-principal a::after { display: none; }
  body.menu-aberto nav#menu-principal a.nav-active { color: var(--orange); }
  .site-header { position: relative; }
  .header-acoes { order: 2; }
  .brand { order: 1; }
}
@media (max-width: 760px) {
  /* logo e menu na primeira linha; botoes de acao embaixo, largura cheia */
  .header-inner .brand { flex: 1; }
  .menu-toggle { order: 2; }
  .header-acoes { order: 3; }
}

/* ── Alvos de toque em celular e tablet: minimo ~44px (antes 15-18px) ── */
@media (max-width: 1000px) {
  .quick-links button, #buscas-populares button { min-height: 44px; padding: 10px 12px; display: inline-flex; align-items: center; }
  #clear-filters { min-height: 44px; padding: 10px 12px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
  a[href^="/edital/"] { display: inline-flex; align-items: center; min-height: 44px; }
  .pre-aceite input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
}

/* ficha do edital no celular/tablet: "Voltar" e links de contato tocaveis */
@media (max-width: 1000px) {
  .od-voltar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .od-bloco-lateral a { display: inline-flex; align-items: center; min-height: 44px; word-break: break-all; }
}

/* ── Celular: header, hero e cadastro (revisao mobile 29/09/2026) ── */
.nav-so-celular { display: none; }
@media (max-width: 760px) {
  /* 3 botoes nao cabem lado a lado em 320-375px ("+ Cadastrar edital" e
     "Administrativo" eram cortados): Administrativo vai para o menu */
  .header-acoes .header-button-admin { display: none; }
  body.menu-aberto nav#menu-principal a.nav-so-celular { display: flex; align-items: center; }
  .header-acoes .header-button { font-size: 13px; padding: 8px 10px; }
  /* radar ilustrativo: menor e sem chips encostando na borda */
  .hero-grid { gap: 28px; padding: 40px 0 70px; }
  .hero h1 { font-size: clamp(32px, 10vw, 41px); }
  .hero-visual { min-height: 250px; }
  .radar { width: 220px; height: 220px; }
  .ring-one { width: 150px; height: 150px; }
  .ring-two { width: 80px; height: 80px; }
  .radar-center { width: 90px; height: 90px; border-width: 5px; }
  .radar-center b { font-size: 14px; }
  .chip-one { top: 12px; right: 4px; }
  .chip-two { top: 110px; left: 4px; }
  .chip-three { bottom: 6px; right: 4px; }
  .dot-one { top: 20px; left: 30%; }
  /* cadastro: sem a altura minima do desktop (sobrava um vao no topo) */
  .login-hero, .login-hero-grid { min-height: 0; }
  .pre-hero { padding: 0 0 36px; }
  .login-hero-grid { padding: 28px 0 8px; gap: 22px; }
  .login-card { padding: 26px 18px; }
}
@media (max-width: 360px) {
  .header-acoes .header-button { font-size: 12px; padding: 8px 6px; }
  .header-logo { width: 120px; }
}
