/* =========================================================
   LEITOR MT — APURAÇÃO ELEIÇÕES 2026 — v0.7.3
   Design system editorial / responsivo / isolado
   ========================================================= */

:root {
  --lmt-primary: #123b63;
  --lmt-primary-dark: #0b2c4b;
  --lmt-primary-soft: #edf4fa;
  --lmt-accent: #f2c400;
  --lmt-accent-soft: #fff9dc;
  --lmt-success: #16845f;
  --lmt-success-soft: #eaf8f2;
  --lmt-danger: #d83b43;
  --lmt-text: #182433;
  --lmt-text-dark: #0e1825;
  --lmt-muted: #64748b;
  --lmt-muted-2: #8b98a8;
  --lmt-bg: #f4f7fa;
  --lmt-card: #ffffff;
  --lmt-card-soft: #f8fafc;
  --lmt-border: #dfe6ee;
  --lmt-border-strong: #cbd5e1;
  --lmt-shadow-sm: 0 2px 9px rgba(15, 23, 42, .045);
  --lmt-shadow: 0 9px 28px rgba(15, 23, 42, .065);
  --lmt-shadow-hover: 0 14px 32px rgba(15, 23, 42, .105);
  --lmt-radius-sm: 8px;
  --lmt-radius: 14px;
  --lmt-radius-lg: 20px;
  --lmt-transition: 180ms cubic-bezier(.2,.7,.2,1);
}

.lmt-ap-page,
.lmt-ap-page * {
  box-sizing: border-box;
}

.lmt-ap-page {
  width: 100%;
  max-width: 1180px;
  margin: 30px auto;
  padding: 0 18px;
  color: var(--lmt-text);
  font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.lmt-ap-page button,
.lmt-ap-page input,
.lmt-ap-page select {
  font: inherit;
}

.lmt-ap-page h1,
.lmt-ap-page h2,
.lmt-ap-page h3,
.lmt-ap-page p {
  margin-top: 0;
}

/* =========================
   HERO — editorial election dashboard
   ========================= */
.lmt-ap-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 260px;
  grid-template-rows: auto auto;
  overflow: hidden;
  min-height: 214px;
  background: #fff;
  border: 1px solid var(--lmt-border);
  border-radius: var(--lmt-radius-lg);
  box-shadow: var(--lmt-shadow);
}

.lmt-ap-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--lmt-accent), #1c7aa7);
  z-index: 4;
}

.lmt-ap-hero::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -170px;
  top: -170px;
  border-radius: 50%;
  background: rgba(18,59,99,.045);
  box-shadow: 0 0 0 48px rgba(242,196,0,.035), 0 0 0 96px rgba(18,59,99,.018);
  pointer-events: none;
}

.lmt-ap-hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 31px 20px 27px 38px;
}

.lmt-ap-kicker,
.lmt-ap-section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--lmt-primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lmt-ap-kicker {
  gap: 7px;
  padding: 6px 10px;
  background: var(--lmt-primary-soft);
  border: 1px solid #dce8f2;
  border-radius: 999px;
}

.lmt-ap-kicker b { color: var(--lmt-accent); }

.lmt-ap-hero h1 {
  margin: 13px 0 5px;
  color: var(--lmt-text-dark);
  font-size: clamp(28px, 4vw, 39px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.035em;
}

.lmt-ap-hero p {
  margin: 0;
  color: var(--lmt-muted);
  font-size: 13px;
}

.lmt-ap-hero-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  background: linear-gradient(180deg,#fbfdff,#f4f8fb);
  border-left: 1px solid var(--lmt-border);
  border-right: 1px solid var(--lmt-border);
}

.lmt-ap-hero-art img {
  display: block;
  width: 176px;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 8px 14px rgba(18,59,99,.08));
}

.lmt-ap-hero-status {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 23px 24px;
  background: linear-gradient(180deg,#f8fafc,#eef3f7);
}

.lmt-ap-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lmt-ap-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 11px;
  background: var(--lmt-primary-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}

.lmt-ap-live i {
  display: block;
  width: 7px;
  height: 7px;
  background: #ff4c55;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,76,85,.13);
}

.lmt-ap-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--lmt-border);
  border-radius: 999px;
  background: #fff;
  color: var(--lmt-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
}

.lmt-ap-update small,
.lmt-ap-clock small {
  display: block;
  margin-bottom: 3px;
  color: var(--lmt-muted-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lmt-ap-update strong,
.lmt-ap-clock strong {
  display: block;
  color: var(--lmt-text-dark);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.lmt-ap-clock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 92px;
  padding-top: 2px;
}

.lmt-ap-hero-source {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 30px 10px 38px;
  background: var(--lmt-card-soft);
  border-top: 1px solid var(--lmt-border);
  color: var(--lmt-muted);
  font-size: 10px;
  font-weight: 600;
}

.lmt-ap-hero-source b {
  color: var(--lmt-primary);
  font-weight: 900;
}

/* =========================
   WARNING
   ========================= */
.lmt-ap-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0 20px;
  padding: 12px 15px;
  background: var(--lmt-accent-soft);
  border: 1px solid #ead681;
  border-radius: 10px;
  color: #6b5810;
  box-shadow: 0 3px 10px rgba(105, 85, 15, .035);
  font-size: 11px;
}

.lmt-ap-warning::before {
  content: "!";
  flex: 0 0 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  background: var(--lmt-accent);
  color: var(--lmt-primary-dark);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.lmt-ap-warning strong {
  margin-right: 3px;
  color: #5c4b0c;
  font-weight: 900;
}

/* =========================
   PROGRESS
   ========================= */
.lmt-ap-progress-panel {
  margin-bottom: 24px;
  padding: 20px 22px;
  background: var(--lmt-card);
  border: 1px solid var(--lmt-border);
  border-radius: var(--lmt-radius);
  box-shadow: var(--lmt-shadow-sm);
}

.lmt-ap-progress-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.lmt-ap-progress-header h2 {
  margin: 3px 0 0;
  color: var(--lmt-text-dark);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 850;
}

.lmt-ap-progress-value {
  color: var(--lmt-primary);
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.03em;
}

.lmt-ap-progress-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  background: #e8edf2;
  border-radius: 999px;
}

.lmt-ap-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lmt-primary), #2e79ad);
  border-radius: inherit;
  transition: width 700ms cubic-bezier(.2,.7,.2,1);
}

.lmt-ap-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 8px;
  color: var(--lmt-muted);
  font-size: 10px;
}

/* =========================
   SECTION HEADS
   ========================= */
.lmt-ap-section-head,
.lmt-ap-municipal-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.lmt-ap-section-head h2,
.lmt-ap-municipal-header h2 {
  margin: 4px 0 3px;
  color: var(--lmt-text-dark);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.02em;
}

.lmt-ap-section-head p,
.lmt-ap-municipal-header p {
  margin: 0;
  color: var(--lmt-muted);
  font-size: 12px;
}

.lmt-ap-order-note,
.lmt-ap-search-hint {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: var(--lmt-card-soft);
  border: 1px solid var(--lmt-border);
  border-radius: 7px;
  color: var(--lmt-muted);
  font-size: 10px;
  font-weight: 800;
}

/* =========================
   OFFICE SECTIONS
   ========================= */
.lmt-ap-office-section {
  margin-bottom: 17px;
  overflow: hidden;
  background: var(--lmt-card);
  border: 1px solid var(--lmt-border);
  border-radius: var(--lmt-radius-lg);
  box-shadow: var(--lmt-shadow-sm);
}

.lmt-ap-office-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 20px 16px;
  border-bottom: 1px solid var(--lmt-border);
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.lmt-ap-office-level {
  display: block;
  margin-bottom: 4px;
  color: var(--lmt-primary);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
}

.lmt-ap-office-head h3 {
  margin: 0;
  color: var(--lmt-text-dark);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.02em;
}

.lmt-ap-office-head h3 span {
  color: var(--lmt-muted);
  font-weight: 600;
}

.lmt-ap-office-head p {
  margin: 4px 0 0;
  color: var(--lmt-muted);
  font-size: 11px;
}

.lmt-ap-office-status {
  flex: 0 0 auto;
  padding: 7px 9px;
  background: var(--lmt-primary-soft);
  border-radius: 7px;
  color: var(--lmt-primary);
  font-size: 10px;
  font-weight: 800;
}

.lmt-ap-office-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  transition: opacity 160ms ease;
}

.lmt-ap-office-grid.is-loading {
  opacity: .55;
}

/* =========================
   CANDIDATE CARD
   ========================= */
.lmt-ap-candidate-card,
.lmt-ap-president-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--lmt-border);
  border-radius: 13px;
  transition: transform var(--lmt-transition), box-shadow var(--lmt-transition), border-color var(--lmt-transition);
}

.lmt-ap-candidate-card:hover,
.lmt-ap-president-card:hover {
  transform: translateY(-2px);
  border-color: var(--lmt-border-strong);
  box-shadow: var(--lmt-shadow-hover);
}

.lmt-ap-candidate-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 28px;
  padding: 4px 6px;
  background: var(--lmt-primary);
  color: #fff;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.lmt-ap-candidate-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 139px;
  padding: 18px 14px 12px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.lmt-ap-candidate-photo,
.lmt-ap-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 94px;
  overflow: hidden;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--lmt-border), 0 8px 20px rgba(15,23,42,.08);
}

.lmt-ap-candidate-photo-wrap > .lmt-ap-photo-fallback {
  display: none;
  position: absolute;
  background: var(--lmt-primary);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.lmt-ap-photo-static {
  background: var(--lmt-primary);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.lmt-ap-candidate-content {
  padding: 0 14px 15px;
}

.lmt-ap-candidate-content h3 {
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--lmt-text-dark);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lmt-ap-candidate-party {
  overflow: hidden;
  color: var(--lmt-muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lmt-ap-candidate-party span {
  margin: 0 3px;
  color: var(--lmt-muted-2);
}

.lmt-ap-candidate-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.lmt-ap-candidate-meta strong {
  color: var(--lmt-primary);
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}

.lmt-ap-candidate-meta span {
  color: var(--lmt-muted);
  font-size: 10px;
  white-space: nowrap;
}

.lmt-ap-progress {
  width: 100%;
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  background: #e9eef3;
  border-radius: 999px;
}

.lmt-ap-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lmt-primary), #2f7eaf);
  border-radius: inherit;
  transition: width 600ms ease;
}

.lmt-ap-candidate-status,
.lmt-ap-search-status {
  display: block;
  margin-top: 7px;
  color: var(--lmt-muted);
  font-size: 9px;
  font-weight: 700;
}

.lmt-ap-office-footer {
  display: flex;
  justify-content: center;
  padding: 1px 16px 18px;
}

.lmt-ap-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--lmt-primary);
  border-radius: 9px;
  color: var(--lmt-primary);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform var(--lmt-transition), background var(--lmt-transition), color var(--lmt-transition), box-shadow var(--lmt-transition);
}

.lmt-ap-expand b {
  font-size: 15px;
  line-height: 1;
}

.lmt-ap-expand:hover {
  transform: translateY(-1px);
  background: var(--lmt-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18,59,99,.16);
}

.lmt-ap-expand:focus-visible,
.lmt-ap-controls button:focus-visible,
.lmt-ap-search-controls button:focus-visible {
  outline: 3px solid rgba(242,196,0,.45);
  outline-offset: 2px;
}

.lmt-ap-president-loading,
.lmt-ap-president-empty {
  grid-column: 1 / -1;
  padding: 30px 20px;
  color: var(--lmt-muted);
  text-align: center;
  font-size: 12px;
}

.lmt-ap-president-empty strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lmt-text-dark);
}

/* =========================
   CANDIDATE SEARCH
   ========================= */
.lmt-ap-candidate-search,
.lmt-ap-municipal-panel,
.lmt-ap-results {
  background: var(--lmt-card);
  border: 1px solid var(--lmt-border);
  border-radius: var(--lmt-radius-lg);
  box-shadow: var(--lmt-shadow-sm);
}

.lmt-ap-candidate-search {
  margin: 27px 0;
  overflow: hidden;
}

.lmt-ap-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--lmt-border);
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.lmt-ap-search-head h2 {
  margin: 4px 0 3px;
  color: var(--lmt-text-dark);
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
}

.lmt-ap-search-head p {
  margin: 0;
  color: var(--lmt-muted);
  font-size: 12px;
}

.lmt-ap-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px 185px;
  gap: 12px;
  padding: 18px 24px 12px;
  background: #fbfcfd;
}

.lmt-ap-search-field,
.lmt-ap-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lmt-ap-search-field > span,
.lmt-ap-controls label > span {
  color: var(--lmt-text);
  font-size: 10px;
  font-weight: 900;
}

.lmt-ap-search-field input,
.lmt-ap-search-field select,
.lmt-ap-controls select {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--lmt-border-strong);
  border-radius: 9px;
  color: var(--lmt-text);
  font-size: 12px;
  outline: none;
  transition: border-color var(--lmt-transition), box-shadow var(--lmt-transition);
}

.lmt-ap-search-field input:focus,
.lmt-ap-search-field select:focus,
.lmt-ap-controls select:focus {
  border-color: var(--lmt-primary);
  box-shadow: 0 0 0 3px rgba(18,59,99,.09);
}

.lmt-ap-search-controls > button,
#lmtApRefresh {
  height: 45px;
  align-self: end;
  border: 0;
  border-radius: 9px;
  background: var(--lmt-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(18,59,99,.12);
  transition: transform var(--lmt-transition), background var(--lmt-transition), box-shadow var(--lmt-transition);
}

.lmt-ap-search-controls > button::before {
  content: "⌕";
  margin-right: 6px;
  font-size: 16px;
  vertical-align: -1px;
}

.lmt-ap-search-controls > button:hover,
#lmtApRefresh:hover {
  transform: translateY(-1px);
  background: var(--lmt-primary-dark);
  box-shadow: 0 8px 18px rgba(18,59,99,.17);
}

.lmt-ap-search-controls > button.is-loading {
  opacity: .7;
  cursor: wait;
  transform: none;
}

.lmt-ap-search-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border: 2px solid #cbd5e1;
  border-top-color: var(--lmt-primary);
  border-radius: 50%;
  animation: lmtSpin .7s linear infinite;
  vertical-align: -2px;
}

@keyframes lmtSpin { to { transform: rotate(360deg); } }

.lmt-ap-candidate-search-message {
  margin: 0 24px 14px;
  padding: 11px 13px;
  background: var(--lmt-card-soft);
  border: 1px solid var(--lmt-border);
  border-radius: 8px;
  color: var(--lmt-muted);
  font-size: 11px;
}

.lmt-ap-candidate-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 22px;
}

.lmt-ap-search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--lmt-border);
  border-radius: 11px;
  transition: transform var(--lmt-transition), box-shadow var(--lmt-transition), border-color var(--lmt-transition);
}

.lmt-ap-search-result-card:hover {
  transform: translateY(-1px);
  border-color: var(--lmt-border-strong);
  box-shadow: var(--lmt-shadow-sm);
}

.lmt-ap-search-photo,
.lmt-ap-search-photo-fallback {
  position: relative;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--lmt-border);
  background: #edf2f7;
}

.lmt-ap-search-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lmt-ap-search-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  background: var(--lmt-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.lmt-ap-search-result-main {
  min-width: 0;
  flex: 1;
}

.lmt-ap-search-result-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.lmt-ap-search-result-top strong {
  overflow: hidden;
  color: var(--lmt-text-dark);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lmt-ap-search-cargo {
  order: 2;
  padding: 3px 6px;
  background: var(--lmt-primary-soft);
  border-radius: 999px;
  color: var(--lmt-primary);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lmt-ap-search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
  margin-top: 6px;
  color: var(--lmt-muted);
  font-size: 10px;
}

.lmt-ap-search-result-meta span:first-child,
.lmt-ap-search-result-meta span:last-child {
  color: var(--lmt-primary);
  font-weight: 900;
}

/* =========================
   MUNICIPAL QUERY
   ========================= */
.lmt-ap-municipal-panel {
  margin-top: 28px;
  overflow: hidden;
}

.lmt-ap-municipal-header {
  align-items: center;
  margin: 0;
  padding: 22px 24px;
  border-bottom: 1px solid var(--lmt-border);
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.lmt-ap-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 190px;
  gap: 12px;
  padding: 18px 24px 22px;
  background: #fbfcfd;
}

.lmt-ap-municipio-wrap {
  display: none;
}

.lmt-ap-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.lmt-ap-summary > div {
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--lmt-border);
  border-radius: 10px;
  box-shadow: var(--lmt-shadow-sm);
}

.lmt-ap-summary strong {
  display: block;
  overflow: hidden;
  color: var(--lmt-text-dark);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lmt-ap-summary small {
  display: block;
  margin-top: 3px;
  color: var(--lmt-muted);
  font-size: 9px;
  font-weight: 700;
}

.lmt-ap-message {
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--lmt-card-soft);
  border: 1px solid var(--lmt-border);
  border-radius: 9px;
  color: var(--lmt-muted);
  font-size: 11px;
}

.lmt-ap-results {
  overflow: hidden;
  margin-top: 16px;
}

.lmt-ap-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--lmt-border);
}

.lmt-ap-results-head h2 {
  margin: 3px 0 2px;
  color: var(--lmt-text-dark);
  font-size: 19px;
  font-weight: 900;
}

.lmt-ap-results-head > div > span:last-child,
.lmt-ap-results-head > span {
  color: var(--lmt-muted);
  font-size: 10px;
}

.lmt-ap-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.lmt-ap-results table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.lmt-ap-results th {
  padding: 11px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--lmt-border);
  color: var(--lmt-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.lmt-ap-results td {
  padding: 11px 14px;
  border-bottom: 1px solid #edf1f5;
  color: var(--lmt-text);
  font-size: 11px;
  vertical-align: middle;
}

.lmt-ap-results tbody tr {
  transition: background var(--lmt-transition);
}

.lmt-ap-results tbody tr:hover {
  background: #f8fafc;
}

.lmt-ap-table-candidate {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
}

.lmt-ap-table-photo,
.lmt-ap-table-photo-fallback {
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: #edf2f7;
  border: 1px solid var(--lmt-border);
  border-radius: 50%;
}

.lmt-ap-table-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lmt-ap-table-photo-fallback {
  background: var(--lmt-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.lmt-ap-table-candidate strong {
  display: block;
  color: var(--lmt-text-dark);
  font-size: 12px;
  font-weight: 850;
}

.lmt-ap-table-candidate small {
  display: block;
  margin-top: 2px;
  color: var(--lmt-muted);
  font-size: 9px;
}

.lmt-ap-municipal-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 18px;
  background: #fbfcfd;
  border-top: 1px solid var(--lmt-border);
}

.lmt-ap-municipal-pager button {
  min-height: 40px;
  padding: 0 17px;
  background: #fff;
  border: 1px solid var(--lmt-primary);
  border-radius: 9px;
  color: var(--lmt-primary);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: background var(--lmt-transition), color var(--lmt-transition), transform var(--lmt-transition);
}

.lmt-ap-municipal-pager button:hover {
  transform: translateY(-1px);
  background: var(--lmt-primary);
  color: #fff;
}

.lmt-ap-municipal-pager span {
  color: var(--lmt-muted);
  font-size: 9px;
}

.lmt-ap-footnote {
  margin: 18px 2px 0;
  color: var(--lmt-muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.lmt-ap-locked {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 700px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--lmt-border);
  border-radius: var(--lmt-radius);
  color: var(--lmt-muted);
}

.lmt-ap-locked strong { color: var(--lmt-text-dark); }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1080px) {
  .lmt-ap-office-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lmt-ap-controls { grid-template-columns: 1fr 1fr; }
  #lmtApRefresh { width: 100%; }
}

@media (max-width: 860px) {
  .lmt-ap-hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .lmt-ap-hero-status { border-top: 1px solid var(--lmt-border); border-left: 0; flex-direction: row; align-items: center; justify-content: space-between; }
  .lmt-ap-hero-source { grid-column: 1; }
  .lmt-ap-search-controls { grid-template-columns: 1fr 1fr; }
  .lmt-ap-search-controls > button { grid-column: 1 / -1; }
  .lmt-ap-candidate-search-results { grid-template-columns: 1fr; }
  .lmt-ap-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .lmt-ap-page { margin: 18px auto; padding: 0 10px; }
  .lmt-ap-hero-main { padding: 23px 22px 20px 27px; }
  .lmt-ap-hero h1 { font-size: 28px; }
  .lmt-ap-hero-status { padding: 17px 20px; }
  .lmt-ap-hero-source { flex-direction: column; gap: 3px; padding: 9px 20px 9px 27px; }
  .lmt-ap-warning { align-items: flex-start; font-size: 10px; }
  .lmt-ap-progress-panel { padding: 17px 16px; }
  .lmt-ap-progress-meta { flex-direction: column; gap: 3px; }
  .lmt-ap-section-head, .lmt-ap-municipal-header, .lmt-ap-search-head { align-items: flex-start; flex-direction: column; }
  .lmt-ap-section-head h2, .lmt-ap-municipal-header h2 { font-size: 21px; }
  .lmt-ap-office-head { align-items: flex-start; padding: 16px; }
  .lmt-ap-office-head h3 { font-size: 18px; }
  .lmt-ap-office-status { margin-left: auto; }
  .lmt-ap-office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .lmt-ap-candidate-photo-wrap { min-height: 115px; padding: 13px 8px 9px; }
  .lmt-ap-candidate-photo, .lmt-ap-photo-fallback { width: 76px; height: 76px; }
  .lmt-ap-candidate-content { padding: 0 10px 12px; }
  .lmt-ap-candidate-content h3 { font-size: 12px; }
  .lmt-ap-candidate-meta strong { font-size: 20px; }
  .lmt-ap-candidate-meta span { font-size: 8px; }
  .lmt-ap-expand { width: calc(100% - 12px); }
  .lmt-ap-search-head, .lmt-ap-municipal-header { padding: 18px 16px; }
  .lmt-ap-search-controls, .lmt-ap-controls { grid-template-columns: 1fr; padding: 15px 16px 17px; }
  .lmt-ap-search-controls > button { grid-column: auto; }
  .lmt-ap-candidate-search-message { margin-left: 16px; margin-right: 16px; }
  .lmt-ap-candidate-search-results { padding: 0 16px 17px; }
  .lmt-ap-search-photo, .lmt-ap-search-photo-fallback { flex-basis: 46px; width: 46px; height: 46px; }
  .lmt-ap-summary { grid-template-columns: 1fr 1fr; }
  .lmt-ap-results-head { align-items: flex-start; flex-direction: column; padding: 16px; }
  .lmt-ap-municipal-pager { align-items: stretch; flex-direction: column; padding: 13px 12px; text-align: center; }
  .lmt-ap-municipal-pager button { width: 100%; }
}

@media (max-width: 420px) {
  .lmt-ap-office-grid { gap: 7px; padding: 8px; }
  .lmt-ap-candidate-rank { top: 7px; left: 7px; }
  .lmt-ap-candidate-party { font-size: 9px; }
  .lmt-ap-candidate-meta { display: block; }
  .lmt-ap-candidate-meta strong { display: block; margin-bottom: 3px; }
  .lmt-ap-summary { grid-template-columns: 1fr; }
}

/* =========================================================
   v0.7.3 — visual hardening / WordPress theme isolation
   ========================================================= */
.lmt-ap-page .lmt-ap-expand,
.lmt-ap-page .lmt-ap-municipal-pager button,
.lmt-ap-page #lmtApRefresh,
.lmt-ap-page #lmtApCandidateSearchButton {
  appearance: none;
  -webkit-appearance: none;
}

.lmt-ap-page .lmt-ap-expand {
  background: #fff !important;
  color: var(--lmt-primary) !important;
  border: 1px solid var(--lmt-primary) !important;
  text-decoration: none !important;
}

.lmt-ap-page .lmt-ap-expand:hover,
.lmt-ap-page .lmt-ap-expand:focus-visible {
  background: var(--lmt-primary) !important;
  color: #fff !important;
  border-color: var(--lmt-primary) !important;
}

.lmt-ap-page .lmt-ap-expand span { margin-right: 3px; }
.lmt-ap-page .lmt-ap-expand b { margin-left: 2px; }

.lmt-ap-page .lmt-ap-results th,
.lmt-ap-page .lmt-ap-results td {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lmt-ap-page .lmt-ap-results td strong {
  color: var(--lmt-text-dark);
  font-weight: 800;
}

/* Homepage CTA: one compact editorial entry point to the election hub. */
.lmt-ap-home-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  width: min(390px, calc(100vw - 32px));
}

.lmt-ap-home-cta-link {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 9px 12px 9px 9px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--lmt-border);
  border-left: 5px solid var(--lmt-accent);
  border-radius: 15px;
  box-shadow: 0 16px 40px rgba(15,23,42,.16);
  color: var(--lmt-text-dark);
  text-decoration: none !important;
  transition: transform var(--lmt-transition), box-shadow var(--lmt-transition), border-color var(--lmt-transition);
}

.lmt-ap-home-cta-link:hover,
.lmt-ap-home-cta-link:focus-visible {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 46px rgba(15,23,42,.21);
  color: var(--lmt-text-dark);
}

.lmt-ap-home-cta-icon {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--lmt-primary-soft);
}

.lmt-ap-home-cta-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lmt-ap-home-cta-copy { min-width: 0; }
.lmt-ap-home-cta-copy small {
  display: block;
  margin-bottom: 2px;
  color: var(--lmt-primary);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
}

.lmt-ap-home-cta-copy strong {
  display: block;
  overflow: hidden;
  color: var(--lmt-text-dark);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lmt-ap-home-cta-copy > span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--lmt-muted);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lmt-ap-home-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lmt-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  transition: transform var(--lmt-transition);
}

.lmt-ap-home-cta-link:hover .lmt-ap-home-cta-arrow,
.lmt-ap-home-cta-link:focus-visible .lmt-ap-home-cta-arrow {
  transform: translateX(3px);
}

@media (max-width: 1080px) {
  .lmt-ap-hero { grid-template-columns: minmax(0,1fr) 170px 245px; }
}

@media (max-width: 860px) {
  .lmt-ap-hero { grid-template-columns: 1fr 190px; grid-template-rows: auto auto auto; }
  .lmt-ap-hero-main { grid-column: 1 / -1; }
  .lmt-ap-hero-art { grid-column: 1; border-left: 0; border-right: 1px solid var(--lmt-border); }
  .lmt-ap-hero-status { grid-column: 2; border-left: 0; border-top: 1px solid var(--lmt-border); }
  .lmt-ap-hero-source { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .lmt-ap-hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; }
  .lmt-ap-hero-main { grid-column: 1; padding: 24px 20px 17px 27px; }
  .lmt-ap-hero h1 { font-size: 28px; }
  .lmt-ap-hero-art { grid-column: 1; border-right: 0; border-top: 1px solid var(--lmt-border); min-height: 145px; }
  .lmt-ap-hero-art img { width: 165px; }
  .lmt-ap-hero-status { grid-column: 1; padding: 15px 20px; border-top: 1px solid var(--lmt-border); }
  .lmt-ap-hero-source { grid-column: 1; padding: 9px 20px 9px 27px; }
  .lmt-ap-home-cta { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .lmt-ap-page *,
  .lmt-ap-home-cta-link,
  .lmt-ap-home-cta-arrow { transition: none !important; }
}

/* Tabela municipal — leitura editorial compacta */
.lmt-ap-page .lmt-ap-results table { min-width: 680px; }
.lmt-ap-page .lmt-ap-results th:first-child,
.lmt-ap-page .lmt-ap-results td:first-child { width: 72px; text-align: center; }
.lmt-ap-page .lmt-ap-results th:nth-child(3),
.lmt-ap-page .lmt-ap-results td:nth-child(3),
.lmt-ap-page .lmt-ap-results th:nth-child(4),
.lmt-ap-page .lmt-ap-results td:nth-child(4) { text-align: right; white-space: nowrap; }
.lmt-ap-table-votes { color: var(--lmt-text-dark); font-size: 13px; font-weight: 900; }
.lmt-ap-table-percent { color: var(--lmt-primary); font-size: 14px; font-weight: 900; }
.lmt-ap-table-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--lmt-border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--lmt-muted);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.lmt-ap-page .lmt-ap-results tbody tr:hover .lmt-ap-table-status {
  border-color: #cbd5e1;
  color: var(--lmt-primary);
}

.lmt-ap-table-photo { position: relative; }
.lmt-ap-table-photo .lmt-ap-table-photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
}


/* v0.7.3 — acompanhamento por abrangência + CTA editorial */
.lmt-ap-progress-panel { overflow: hidden; }
.lmt-ap-progress-intro {
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px;
  padding:22px 22px 14px;
}
.lmt-ap-progress-intro h2 { margin:3px 0 5px; font-size:24px; line-height:1.1; color:var(--lmt-text-dark); }
.lmt-ap-progress-intro p { margin:0; max-width:760px; color:var(--lmt-muted); font-size:12px; line-height:1.5; }
.lmt-ap-progress-refresh { flex:none; color:var(--lmt-muted); font-size:10px; font-weight:800; white-space:nowrap; }
.lmt-ap-progress-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:0 22px 22px; }
.lmt-ap-progress-card { padding:18px; border:1px solid var(--lmt-border); border-radius:14px; background:linear-gradient(180deg,#fff,#f8fafc); }
.lmt-ap-progress-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:15px; }
.lmt-ap-progress-card-head div span { display:block; color:var(--lmt-primary); font-size:9px; font-weight:900; letter-spacing:.08em; }
.lmt-ap-progress-card-head div strong { display:block; margin-top:4px; color:var(--lmt-text-dark); font-size:15px; }
.lmt-ap-progress-value { color:var(--lmt-primary); font-size:27px; line-height:1; font-weight:900; white-space:nowrap; }
.lmt-ap-progress-track { height:9px; margin-top:18px; overflow:hidden; background:#e7edf3; border-radius:999px; }
.lmt-ap-progress-track span { display:block; height:100%; background:linear-gradient(90deg,var(--lmt-primary),#2f7eaf); border-radius:inherit; transition:width .6s ease; }
.lmt-ap-progress-card-state .lmt-ap-progress-track span { background:linear-gradient(90deg,#0f766e,#22a06b); }
.lmt-ap-progress-meta { display:flex; justify-content:space-between; gap:12px; margin-top:9px; color:var(--lmt-muted); font-size:9px; font-weight:700; }

.lmt-ap-home-cta { width:min(450px,calc(100vw - 32px)); }
.lmt-ap-home-cta-link { grid-template-columns:70px minmax(0,1fr) auto; min-height:94px; padding:11px 13px 11px 11px; border-left-width:6px; }
.lmt-ap-home-cta-icon { width:70px; height:70px; border-radius:12px; background:#f4f7fa; }
.lmt-ap-home-cta-copy small { font-size:9px; }
.lmt-ap-home-cta-copy strong { font-size:15px; white-space:normal; }
.lmt-ap-home-cta-copy > span { font-size:10px; white-space:normal; }
.lmt-ap-home-cta-arrow { width:auto; min-width:104px; height:38px; padding:0 12px; border-radius:9px; font-size:10px; letter-spacing:.02em; text-transform:uppercase; }
.lmt-ap-home-cta-arrow::before { content:'VER APURAÇÃO'; }
.lmt-ap-home-cta-arrow { font-size:0; }
.lmt-ap-home-cta-link:hover { transform:translateY(-2px); box-shadow:0 20px 46px rgba(15,23,42,.2); }

@media (max-width:760px){
  .lmt-ap-progress-intro { display:block; padding:18px 16px 12px; }
  .lmt-ap-progress-refresh { display:block; margin-top:8px; }
  .lmt-ap-progress-grid { grid-template-columns:1fr; padding:0 16px 16px; }
  .lmt-ap-progress-card-head div strong { font-size:14px; }
  .lmt-ap-progress-value { font-size:23px; }
  .lmt-ap-home-cta-link { grid-template-columns:58px minmax(0,1fr); }
  .lmt-ap-home-cta-icon { width:58px; height:58px; }
  .lmt-ap-home-cta-arrow { grid-column:1/-1; width:100%; }
}


/* =========================================================
   v0.7.3 — redesign editorial / Leitor MT election hub
   ========================================================= */
.lmt-ap-page {
  --lmt-primary: #06344f;
  --lmt-primary-dark: #03283e;
  --lmt-primary-soft: #eef5f9;
  --lmt-accent: #f5c431;
  --lmt-accent-soft: #fff8dc;
  --lmt-success: #16845f;
  --lmt-text: #172433;
  --lmt-text-dark: #071a29;
  --lmt-muted: #64748b;
  --lmt-muted-2: #94a3b8;
  --lmt-bg: #f5f7f9;
  --lmt-border: #dce5ec;
  --lmt-shadow-sm: 0 4px 16px rgba(3,40,62,.045);
  --lmt-shadow: 0 14px 36px rgba(3,40,62,.075);
  max-width: 1160px;
  margin-top: 26px;
}
.lmt-ap-page h1,.lmt-ap-page h2,.lmt-ap-page h3 { letter-spacing:-.028em; }
.lmt-ap-page p,.lmt-ap-page span,.lmt-ap-page label,.lmt-ap-page button,.lmt-ap-page input,.lmt-ap-page select { letter-spacing:0; }

.lmt-ap-hero {
  min-height: 226px;
  border-color:#d7e1e8;
  border-radius:22px;
  box-shadow:0 18px 46px rgba(3,40,62,.10);
  background:linear-gradient(135deg,#fff 0%,#fff 58%,#f3f7fa 100%);
}
.lmt-ap-hero::before { width:7px; background:linear-gradient(180deg,#f5c431 0%,#0b7890 100%); }
.lmt-ap-hero-main { padding:34px 24px 30px 40px; }
.lmt-ap-kicker { color:#06344f; background:#eef5f9; border-color:#d7e5ee; font-size:10px; }
.lmt-ap-hero h1 { font-size:clamp(32px,4.1vw,44px); line-height:1.02; }
.lmt-ap-hero p { font-size:13px; max-width:640px; }
.lmt-ap-hero-art { background:linear-gradient(145deg,#f8fbfd,#eaf2f6); }
.lmt-ap-hero-art img { width:184px; }
.lmt-ap-hero-status { background:linear-gradient(180deg,#f4f8fa,#eaf1f5); padding:25px 25px; }
.lmt-ap-live { background:#06344f; }
.lmt-ap-source-badge { color:#06344f; }
.lmt-ap-update strong,.lmt-ap-clock strong { font-size:14px; }
.lmt-ap-hero-source { padding:11px 30px 11px 40px; font-size:10px; }

.lmt-ap-warning { margin:12px 0 14px; border-radius:12px; padding:11px 14px; }
.lmt-ap-warning span { line-height:1.45; }

/* Quick navigation */
.lmt-ap-quick-nav {
  position:sticky;
  top:12px;
  z-index:20;
  display:flex;
  gap:5px;
  align-items:center;
  margin:0 0 18px;
  padding:7px;
  overflow-x:auto;
  scrollbar-width:none;
  background:rgba(255,255,255,.94);
  border:1px solid #dce5ec;
  border-radius:13px;
  box-shadow:0 10px 28px rgba(3,40,62,.08);
  backdrop-filter:blur(12px);
}
.lmt-ap-quick-nav::-webkit-scrollbar { display:none; }
.lmt-ap-quick-nav a {
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:9px;
  color:#486174;
  font-size:10px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  transition:all .18s ease;
}
.lmt-ap-quick-nav a:first-child,.lmt-ap-quick-nav a:hover,.lmt-ap-quick-nav a:focus-visible {
  background:#06344f;
  color:#fff;
}

/* Progress panel */
.lmt-ap-progress-panel { margin-bottom:26px; padding:0; border-radius:18px; box-shadow:0 10px 28px rgba(3,40,62,.06); }
.lmt-ap-progress-intro { padding:23px 24px 15px; }
.lmt-ap-progress-intro h2 { font-size:27px; margin:3px 0 4px; }
.lmt-ap-progress-intro p { font-size:12px; max-width:720px; }
.lmt-ap-progress-refresh { font-size:10px; }
.lmt-ap-progress-grid { gap:12px; padding:0 24px 24px; }
.lmt-ap-progress-card {
  position:relative; padding:19px; border-radius:15px; background:#fff; box-shadow:0 4px 12px rgba(3,40,62,.025);
}
.lmt-ap-progress-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; border-radius:15px 0 0 15px; background:#06344f; }
.lmt-ap-progress-card-state::before { background:#f5c431; }
.lmt-ap-progress-card-head div span { color:#06344f; font-size:9px; }
.lmt-ap-progress-card-head div strong { font-size:16px; }
.lmt-ap-progress-value { font-size:30px; }
.lmt-ap-progress-track { height:10px; margin-top:19px; background:#e7edf1; }
.lmt-ap-progress-meta { font-size:10px; }

/* Office sections */
.lmt-ap-top-head { margin-bottom:11px; }
.lmt-ap-section-head h2,.lmt-ap-municipal-header h2 { font-size:28px; }
.lmt-ap-order-note { color:#06344f; background:#eef5f9; border-color:#dbe8ef; }
.lmt-ap-office-section { margin-bottom:14px; border-radius:18px; box-shadow:0 7px 22px rgba(3,40,62,.045); scroll-margin-top:78px; }
.lmt-ap-office-head { padding:18px 20px 15px; background:linear-gradient(180deg,#fff,#f8fafb); }
.lmt-ap-office-level { color:#06344f; font-size:9px; }
.lmt-ap-office-head h3 { font-size:22px; }
.lmt-ap-office-head h3 span { color:#64748b; font-size:.72em; }
.lmt-ap-office-status { background:#eef5f9; color:#06344f; border:1px solid #dce8ef; border-radius:999px; }
.lmt-ap-office-grid { gap:11px; padding:14px; }

.lmt-ap-candidate-card { border-color:#dce5ec; border-radius:14px; box-shadow:none; }
.lmt-ap-candidate-card:hover { transform:translateY(-3px); border-color:#bfd1dd; box-shadow:0 13px 28px rgba(3,40,62,.10); }
.lmt-ap-candidate-rank { background:#06344f; }
.lmt-ap-candidate-photo-wrap { background:linear-gradient(180deg,#f7fafb,#edf3f6); }
.lmt-ap-candidate-content { padding:0 12px 13px; }
.lmt-ap-candidate-content h3 { font-size:13px; }
.lmt-ap-candidate-party { color:#64748b; font-size:9px; }
.lmt-ap-candidate-meta strong { color:#06344f; font-size:25px; }
.lmt-ap-candidate-meta span { font-size:9px; }
.lmt-ap-progress { height:5px; background:#e9eef2; }
.lmt-ap-progress span { background:linear-gradient(90deg,#06344f,#1c7891); }
.lmt-ap-candidate-status { color:#16845f; font-size:9px; font-weight:800; }
.lmt-ap-office-footer { padding:0 14px 15px; }
.lmt-ap-page .lmt-ap-expand { min-height:38px; border-radius:9px !important; font-weight:850; }

/* Search and local query */
.lmt-ap-candidate-search,.lmt-ap-municipal-panel { border:1px solid #dce5ec; border-radius:18px; background:#fff; box-shadow:0 7px 22px rgba(3,40,62,.045); }
.lmt-ap-candidate-search { margin-top:24px; }
.lmt-ap-search-head,.lmt-ap-municipal-header { padding:21px 24px; background:linear-gradient(180deg,#fff,#f8fafb); }
.lmt-ap-search-head h2,.lmt-ap-municipal-header h2 { font-size:25px; }
.lmt-ap-search-controls { background:#f7fafb; border-top:1px solid #e4ebef; border-bottom:1px solid #e4ebef; }
.lmt-ap-search-controls input,.lmt-ap-search-controls select,.lmt-ap-controls select { min-height:42px; border-color:#cfdbe3; border-radius:9px; background:#fff; color:#172433; font-size:12px; }
.lmt-ap-search-controls > button,.lmt-ap-controls button { min-height:42px; border-radius:9px; background:#06344f; box-shadow:0 7px 16px rgba(3,40,62,.12); font-weight:850; }
.lmt-ap-search-controls > button:hover,.lmt-ap-controls button:hover { background:#0a496b; }
.lmt-ap-candidate-search-message,.lmt-ap-message { color:#526779; font-size:11px; }
.lmt-ap-search-result-card { border-radius:13px; border-color:#dce5ec; }

.lmt-ap-municipal-panel { margin-top:24px; overflow:hidden; }
.lmt-ap-controls { background:#f7fafb; border-top:1px solid #e4ebef; }
.lmt-ap-summary { margin:14px 0; }
.lmt-ap-summary > div { border-radius:12px; }
.lmt-ap-results { border:1px solid #dce5ec; border-radius:18px; box-shadow:0 7px 22px rgba(3,40,62,.045); }
.lmt-ap-results-head { background:linear-gradient(180deg,#fff,#f8fafb); }
.lmt-ap-results table { background:#fff; }
.lmt-ap-results th { background:#06344f; color:#fff; border-color:#174a65; }
.lmt-ap-results tbody tr { transition:background .15s ease; }
.lmt-ap-results tbody tr:hover { background:#f4f8fa; }
.lmt-ap-table-photo,.lmt-ap-table-photo-fallback { width:38px; height:38px; }
.lmt-ap-table-votes { font-size:14px; }
.lmt-ap-table-percent { font-size:15px; color:#06344f; }
.lmt-ap-table-status { border-color:#d4e0e7; background:#f6f9fb; }

/* Home CTA — stronger editorial entry point, safely above floating theme controls */
.lmt-ap-home-cta { right:22px; bottom:82px; width:min(520px,calc(100vw - 40px)); }
.lmt-ap-home-cta-link {
  position:relative;
  grid-template-columns:78px minmax(0,1fr) auto;
  min-height:112px;
  gap:15px;
  padding:13px 14px 13px 12px;
  border:1px solid #cbd9e2;
  border-left:6px solid #f5c431;
  border-radius:18px;
  background:linear-gradient(135deg,#fff 0%,#f8fbfc 100%);
  box-shadow:0 18px 48px rgba(3,40,62,.18);
}
.lmt-ap-home-cta-link::after { content:""; position:absolute; right:-65px; top:-80px; width:190px; height:190px; border-radius:50%; background:rgba(6,52,79,.045); pointer-events:none; }
.lmt-ap-home-cta-icon { position:relative; z-index:1; width:78px; height:78px; border-radius:14px; background:#edf4f7; }
.lmt-ap-home-cta-copy { position:relative; z-index:1; }
.lmt-ap-home-cta-copy small { margin-bottom:4px; color:#06344f; font-size:9px; }
.lmt-ap-home-cta-copy strong { font-size:17px; line-height:1.15; }
.lmt-ap-home-cta-copy > span { margin-top:5px; color:#5f7383; font-size:10px; line-height:1.35; }
.lmt-ap-home-cta-arrow { position:relative; z-index:2; min-width:122px; height:42px; padding:0 15px; border-radius:9px; background:#f5c431; color:#06344f; box-shadow:0 8px 16px rgba(245,196,49,.20); font-size:0; }
.lmt-ap-home-cta-arrow::before { content:'VER APURAÇÃO  →'; font-size:10px; font-weight:900; letter-spacing:.03em; }
.lmt-ap-home-cta-link:hover { transform:translateY(-3px); border-color:#aebfca; box-shadow:0 24px 56px rgba(3,40,62,.23); }
.lmt-ap-home-cta-link:hover .lmt-ap-home-cta-arrow { transform:translateX(2px); }

@media (max-width:760px){
  .lmt-ap-quick-nav { top:7px; margin-bottom:14px; }
  .lmt-ap-progress-intro { padding:19px 17px 12px; }
  .lmt-ap-progress-grid { padding:0 17px 17px; }
  .lmt-ap-home-cta { right:10px; bottom:72px; width:calc(100vw - 20px); }
  .lmt-ap-home-cta-link { grid-template-columns:60px minmax(0,1fr); min-height:96px; gap:11px; padding:10px; }
  .lmt-ap-home-cta-icon { width:60px; height:60px; }
  .lmt-ap-home-cta-copy strong { font-size:14px; }
  .lmt-ap-home-cta-copy > span { font-size:9px; }
  .lmt-ap-home-cta-arrow { grid-column:1/-1; width:100%; min-width:0; height:38px; }
}
@media (max-width:520px){
  .lmt-ap-page { margin-top:12px; }
  .lmt-ap-hero { border-radius:17px; }
  .lmt-ap-hero-main { padding:24px 18px 20px 24px; }
  .lmt-ap-hero h1 { font-size:30px; }
  .lmt-ap-section-head h2,.lmt-ap-municipal-header h2 { font-size:23px; }
  .lmt-ap-progress-intro h2 { font-size:23px; }
  .lmt-ap-office-head h3 { font-size:19px; }
}
