:root {
  --navy: #142536;
  --ink: #1c2430;
  --muted: #5e6874;
  --paper: #f4f1ea;
  --white: #fbfaf6;
  --card: #ffffff;
  --red: #b4232c;
  --gold: #c4a35a;
  --teal: #1a7a86;
  --tile: #fff;
  --line: rgba(20, 37, 54, 0.12);
  --shadow: 0 18px 40px rgba(20, 37, 54, 0.08);
  --radius: 4px;
  --max: 1180px;
  --font: "Archivo", "Segoe UI", sans-serif;
  --display: "Archivo Narrow", "Archivo", sans-serif;
  --news: "Source Serif 4", Georgia, "Times New Roman", serif;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

html.font-lg { font-size: 19px; }
html.font-xl { font-size: 21px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 12px; }

.util {
  background: var(--navy);
  color: #e8eef6;
  font-size: 0.78rem;
}
.util-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.util a { color: #e8eef6; text-decoration: none; }
.util a:hover { color: #9ee7f0; }
.a11y { display: flex; gap: 6px; align-items: center; }
.a11y button {
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  min-width: 30px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.a11y button:hover,
.a11y button[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
}

.id-bar {
  display: flex;
  height: 5px;
  width: 100%;
}
.id-bar i { flex: 1; display: block; }
.id-bar i:nth-child(1) { background: #b4232c; }
.id-bar i:nth-child(2) { background: #1f5f9a; }
.id-bar i:nth-child(3) { background: #2f7d32; }
.id-bar i:nth-child(4) { background: #c4a35a; }
.id-bar i:nth-child(5) { background: #4aa3c7; }
.id-bar i:nth-child(6) { background: #e07a3d; }
.id-bar i:nth-child(7) { background: #6b4c9a; }
.id-bar i:nth-child(8) { background: #142536; }

.site-header {
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}
.brand-seal {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(22,50,79,.16));
}
.brand-seal img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.brand-type em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5c6573;
  font-weight: 800;
}
.brand-type strong {
  display: block;
  font-family: "Oswald", var(--display), sans-serif;
  font-size: 1.85rem;
  line-height: 0.95;
  color: #111;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: none;
}
.brand-mosaic {
  display: flex;
  gap: 3px;
  margin-top: 6px;
  height: 8px;
}
.brand-mosaic i {
  width: 12px;
  height: 8px;
  display: block;
}
.brand-mosaic i:nth-child(1) { background: #b4232c; }
.brand-mosaic i:nth-child(2) { background: #1f5f9a; }
.brand-mosaic i:nth-child(3) { background: #2f7d32; }
.brand-mosaic i:nth-child(4) { background: #c4a35a; }
.brand-mosaic i:nth-child(5) { background: #4aa3c7; }
.brand-mosaic i:nth-child(6) { background: #e07a3d; }
.brand-mosaic i:nth-child(7) { background: #6b4c9a; }
.brand-mosaic i:nth-child(8) { background: #16324f; }

.nav {
  margin-left: auto;
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}
.nav a {
  text-decoration: none;
  padding: 8px 7px;
  border-radius: 0;
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red);
}
.menu-btn {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  min-height: 520px;
  height: 62vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #071422;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 58%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,18,28,.55) 0%, rgba(10,18,28,.12) 46%, transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(10,18,28,.45) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 0 20px 44px;
  display: grid;
  justify-items: start;
  text-align: left;
}
.hero-panel {
  background: var(--navy);
  padding: 28px 32px 30px;
  max-width: 520px;
  box-shadow: 18px 18px 0 var(--gold);
}
.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-welcome h1 {
  font-family: "Oswald", var(--display), sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 0.95;
  margin: 0 0 18px;
  max-width: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: none;
}
.hero-welcome h1 span {
  display: block;
}
.hero-welcome h1 b {
  color: #fff;
  font-weight: 700;
}
.hero-search {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.hero-search input {
  flex: 1;
  border: 0;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: #223;
  outline: none;
  background: transparent;
}
.hero-search button {
  width: 52px;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}
.hero-search button:hover { background: #8e1b22; }
.kicker {
  display: inline-flex;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 0;
  border-radius: 0;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 0;
  padding: 11px 16px;
  font-weight: 750;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-line {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.section { padding: 72px 0; }
.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}
.section-head:has(+ .lead) {
  margin-bottom: 8px;
}
.section-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding-left: 5px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.05;
}
.section-head .section-title { margin: 0; }
main .wrap > .section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 14px;
  line-height: 1.15;
}
main .wrap > .search + .section-title {
  margin-top: 8px;
}
.section-title b {
  display: inline;
  color: inherit;
  font-weight: inherit;
}
.section-title::after {
  content: none;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 8px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lead { color: var(--muted); margin: 0 0 22px; max-width: 66ch; }
.section h2 + .lead { margin-top: 0; }

.grid-3, .grid-4, .grid-2 {
  display: grid;
  gap: 14px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 158px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.grid-4 > a.card:nth-child(3n+2),
.grid-2 > a.card:nth-child(3n+2),
.grid-4 > .card:nth-child(3n+2) { border-left-color: var(--red); }
.grid-4 > a.card:nth-child(3n),
.grid-2 > a.card:nth-child(3n),
.grid-4 > .card:nth-child(3n) { border-left-color: var(--gold); }
a.card:hover,
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 4px 0 0;
  font-size: 1.02rem;
  color: var(--navy);
  font-family: var(--display);
  letter-spacing: 0.02em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card .go {
  margin-top: auto;
  font-weight: 750;
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search input,
.search select {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 16px;
  font: inherit;
  background: #fff;
}
.search button {
  flex: 0 0 auto;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.tile {
  background: var(--tile);
  border-radius: var(--radius);
  padding: 18px 10px 16px;
  text-align: center;
  text-decoration: none;
  color: #3a4450;
  border: 1px solid var(--line);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.tile svg {
  width: 40px;
  height: 40px;
  color: #2c3a48;
}
.tile b {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: #4a5562;
}
.tile:hover {
  background: #fff;
}
.tile:hover svg { color: var(--teal); }

.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px 36px;
}
.news-list.news-home {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
.news-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
a.news-card:hover {
  transform: none;
  box-shadow: none;
}
.news-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b85c3a;
  margin-bottom: 12px;
}
.news-photo {
  display: block;
  border-radius: 0;
  overflow: hidden;
  background: #ddd8ce;
}
.news-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.news-card h3 {
  font-family: var(--news);
  font-size: clamp(1.22rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.22;
  color: #2c261e;
  margin: 16px 0 8px;
  letter-spacing: -0.015em;
  text-transform: none;
}
.news-card p {
  margin: 0;
  color: #6a645c;
  font-size: 0.98rem;
  line-height: 1.4;
}

.article-photo {
  border-radius: 0;
  overflow: hidden;
  margin: 0 0 22px;
}
.article-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.city-band {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  overflow: visible;
  padding-bottom: 24px;
}
.city-photo {
  position: relative;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: 0;
}
.city-photo::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  background: var(--navy);
  z-index: 0;
}
.city-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 35%;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.fact {
  background: transparent;
  border-radius: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.fact b {
  display: block;
  font-size: 1.25rem;
  color: var(--navy);
  font-family: var(--display);
}

.page-hero {
  background: var(--paper);
  color: var(--navy);
  padding: 36px 0 10px;
  border-bottom: 0;
}
.page-hero + .section {
  padding-top: 8px;
}
.page-hero + .section > .wrap > :first-child {
  margin-top: 0;
}
.page-hero h1 {
  font-family: var(--display);
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.page-hero p { margin: 0; color: var(--muted); max-width: 62ch; }
.article-meta {
  margin-top: 10px !important;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red) !important;
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.prose h2 { font-family: var(--display); color: var(--navy); }
.prose h3 { font-family: var(--display); color: var(--navy); font-size: 1.08rem; margin: 18px 0 8px; }
.prose ul { padding-left: 18px; }
.note {
  background: #e7f6f8;
  border-left: 4px solid var(--teal);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
.map-card {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe7ef;
}
.map-card iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.site-footer {
  background: var(--navy);
  color: #c5d0dc;
  padding: 14px 0;
  margin-top: 8px;
  font-size: 0.78rem;
}
.foot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #c5d0dc;
  font-size: 0.78rem;
}
.foot-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 500;
  align-items: center;
}
.site-footer a { color: #e8eef4; text-decoration: none; }
.site-footer a:hover { color: #9ee7f0; }
.social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}
.social-link:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.social-link svg {
  width: 15px;
  height: 15px;
  display: block;
}
.site-footer .social-link:hover { color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.a11y-symbol {
  font-size: 1.15rem;
  text-decoration: none;
  padding: 0 4px;
}
.util-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.util-search {
  display: flex;
  background: #fff;
  overflow: hidden;
}
.util-search input {
  border: 0;
  padding: 6px 10px;
  width: 160px;
  font: inherit;
  font-size: 0.82rem;
}
.util-search button {
  border: 0;
  background: var(--red);
  color: #fff;
  width: 34px;
  cursor: pointer;
}
.breadcrumb {
  background: #efebe3;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.breadcrumb li:not(:last-child)::after {
  content: " / ";
  color: var(--muted);
  margin-left: 8px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.org-prefeito { margin-bottom: 16px; }
.stamp { font-size: 0.82rem; color: var(--muted); margin: 0 0 18px; }
.unidades {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 0 22px;
  background: #fff;
}
.unidades th,
.unidades td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
}
.unidades th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.unidades caption {
  text-align: left;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0 0 8px;
}
.doc-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.doc-list li { margin: 0 0 8px; }
.doc-list a { color: var(--navy); font-weight: 700; }
.atos-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.atos-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.atos-nav a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.ato-card { min-height: 168px; }
.ato-tipo {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.ato-sub {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
}
.ato-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.atos-count {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.pager {
  margin: 22px 0 0;
}
.pager-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pager-btn {
  min-width: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 12px;
  cursor: pointer;
}
.pager-btn:hover:not(:disabled) {
  border-color: var(--navy);
}
.pager-btn[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pager-gap { color: var(--muted); padding: 0 4px; }
.certame-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.certame-toc a {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.certame-toc a:hover { border-color: var(--navy); }
.certame {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  padding: 22px 22px 8px;
  margin: 0 0 28px;
}
.certame.status-andamento { border-left-color: var(--teal); }
.certame.status-expirando { border-left-color: var(--gold); }
.certame-head { margin: 0 0 16px; }
.certame-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 3px 8px;
  color: var(--navy);
  margin: 0 0 10px;
}
.certame-head h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.35rem;
}
.certame-head p { margin: 0 0 8px; color: var(--ink); }
.certame-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.certame-sec {
  border-top: 1px solid var(--line);
  padding: 16px 0 12px;
}
.certame-sec h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.certame-sec h3 span { color: var(--muted); font-weight: 600; }
.certame-filtro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  max-width: 420px;
}
.certame-filtro input {
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--white);
}
.certame-docs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.certame-docs li { border-top: 1px solid var(--line); }
.certame-docs li:first-child { border-top: 0; }
.certame-docs a {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--ink);
}
.certame-docs a:hover { color: var(--navy); }
.certame-n {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.certame-docs li.certame-off,
.certame-docs li.certame-off span { color: var(--muted); }
.certame-docs li.certame-off {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 4px;
}
@media (max-width: 640px) {
  .certame-docs a { grid-template-columns: 2rem 1fr; }
  .certame-docs small { grid-column: 2; }
}
.busca-grupo { margin: 0 0 32px; }
.busca-grupo h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-family: var(--display);
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
html.contrast {
  --navy: #000;
  --ink: #fff;
  --paper: #000;
  --white: #000;
  --card: #111;
  --muted: #eee;
  --line: #fff;
}
html.contrast body,
html.contrast .site-header,
html.contrast .page-hero,
html.contrast .prose,
html.contrast .card {
  background: #000;
  color: #fff;
}
html.contrast a,
html.contrast .nav a,
html.contrast .section-title,
html.contrast .card h3 { color: #ff0; }
html.contrast .pager-btn {
  background: #000;
  color: #ff0;
  border-color: #fff;
}
html.contrast .pager-btn[aria-current="page"] {
  background: #ff0;
  color: #000;
  border-color: #ff0;
}
html.contrast .social-link {
  border-color: #fff;
  color: #ff0;
}
html.contrast .social-link:hover {
  background: #ff0;
  color: #000;
  border-color: #ff0;
}

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
}
@media (max-width: 900px) {
  .grid-4, .grid-3, .grid-2, .city-band, .contact-grid, .news-list, .news-list.news-home {
    grid-template-columns: 1fr;
  }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 420px; height: auto; }
  .hero-copy {
    padding: 36px 20px 28px;
  }
  .hero-panel {
    box-shadow: 10px 10px 0 var(--gold);
    padding: 22px 20px 22px;
  }
  .hero-shade {
    background: linear-gradient(180deg, rgba(8,16,28,.2) 0%, rgba(8,16,28,.5) 100%);
  }
  .city-photo::before { inset: 14px 0 -14px 14px; }
  .brand-seal, .brand-seal img { width: 58px; height: 58px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
