/* LocVox Elections — shared profile vocabulary. THE single stylesheet for the public
   candidates page AND the candidate form's preview modal (one-renderer rule: nothing
   may duplicate these classes elsewhere). Ported 1:1 from mockup-candidates-page.html. */

:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --teal: #0d7377;
  --teal-light: #e6f4f4;
  --teal-mid: #14a085;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --text: #1a2332;
  --text-mid: #4a5568;
  --text-muted: #9ca3af;
  --border: #e5e9ef;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --radius: 16px;
  --radius-sm: 10px;
}

.lve-main { max-width: 1280px; margin: 0 auto; padding: 0 24px 56px; }

/* ═══ HERO ═══ */
.el-hero {
  background: linear-gradient(120deg, #0a5e62 0%, var(--teal) 55%, var(--teal-mid) 100%);
  color: #fff;
  padding: 48px 24px 88px;
  position: relative;
  overflow: hidden;
}
.el-hero--quiet { padding-bottom: 56px; }
.el-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,0.05);
}
.el-hero::before {
  content: ""; position: absolute; right: 90px; bottom: -120px;
  width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,0.04);
}
.el-hero-inner { max-width: 1232px; margin: 0 auto; position: relative; z-index: 1; }
.el-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px;
  color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.12);
  padding: 7px 14px; border-radius: 50px; margin-bottom: 18px;
}
.el-hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin: 0 0 12px; }
/* Kadence heading color beats the hero's inherited white; force it (same clobber family as buttons). */
body.lve-body .el-hero h1 { color: #fff; }
.el-hero-sub { font-size: 1.02rem; color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 0 26px; }
.el-hero--quiet .el-hero-sub { margin-bottom: 0; }

.el-dates { display: flex; flex-wrap: wrap; gap: 10px; }
.el-date-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; padding: 10px 16px;
}
.el-date-chip .lbl {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: rgba(255,255,255,0.65); display: block; line-height: 1.3;
}
.el-date-chip .val { font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.el-date-chip.countdown { background: var(--amber); border-color: var(--amber); color: #442c02; }
.el-date-chip.countdown .lbl { color: rgba(68,44,2,0.65); }
a.el-date-chip--link { color: inherit; text-decoration: none; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
a.el-date-chip--link .el-chip-ext { color: rgba(255,255,255,0.55); margin-left: 2px; flex-shrink: 0; transition: color 0.15s; }
a.el-date-chip--link:hover, a.el-date-chip--link:focus-visible {
  background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.38);
  color: inherit; transform: translateY(-1px);
}
a.el-date-chip--link:hover .el-chip-ext, a.el-date-chip--link:focus-visible .el-chip-ext { color: #fff; }
a.el-date-chip--link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ═══ NOTE CARD ═══ */
.el-note {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 18px 24px; display: flex; align-items: flex-start; gap: 14px;
  margin-top: -44px; margin-bottom: 40px; position: relative; z-index: 2;
}
.el-hero--quiet + .lv-main .el-note, .el-hero--quiet + .lve-main .el-note { margin-top: 24px; }
.el-note-icon {
  width: 36px; height: 36px; border-radius: 9px; background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.el-note p { font-size: 0.88rem; color: var(--text-mid); margin: 0; }
.el-note strong { color: var(--text); }

/* ═══ SECTIONS ═══ */
.el-section { margin-bottom: 44px; }
.el-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.el-section-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.el-section-head .kicker {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px;
  color: var(--text-muted); display: block; line-height: 1.4;
}
.el-section-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; margin: 0; }
.el-seat-chip {
  margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--teal);
  background: var(--teal-light); padding: 6px 14px; border-radius: 50px; white-space: nowrap;
}

/* ═══ CANDIDATE CARDS ═══ */
.el-grid-mayor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.el-grid-council { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lve-empty { color: var(--text-muted); font-style: italic; }

.cand-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.cand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.cand-card:focus-visible { outline: 3px solid rgba(13,115,119,0.35); outline-offset: 2px; }

.cand-card--mayor { flex-direction: row; text-align: left; align-items: center; gap: 20px; padding: 26px; }
.cand-card--mayor .cand-body { flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cand-card--mayor .cand-avatar { width: 92px; height: 92px; font-size: 1.7rem; }
.cand-card--mayor .cand-name { font-size: 1.2rem; }
.cand-card--mayor .cand-tags { justify-content: flex-start; }

.cand-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal);
  font-size: 1.4rem; font-weight: 800; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 8px; overflow: hidden;
}
.cand-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cand-avatar--muted { background: #eef1f4; color: var(--text-muted); }

.cand-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.2px; line-height: 1.3; }
.cand-office {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted);
}
.cand-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.cand-tag {
  font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 50px;
  background: var(--amber-light); color: #92600a;
}
.cand-tag--elected { background: var(--teal); color: #fff; }
.cand-votes { font-size: 0.8rem; font-weight: 700; color: var(--text-mid); margin-top: 6px; }
.cand-tagline { font-size: 0.85rem; color: var(--text-mid); margin-top: 8px; line-height: 1.5; }
.cand-source-note { font-size: 0.76rem; color: var(--text-muted); font-style: italic; margin-top: 8px; line-height: 1.5; }

.cand-view {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 700; color: var(--teal); background: var(--teal-light);
  border: none; font-family: inherit; padding: 9px 18px; border-radius: 50px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cand-card:hover .cand-view { background: var(--teal); color: #fff; }

.cand-card--pending { cursor: default; }
.cand-card--pending:hover { transform: none; box-shadow: var(--shadow); border-color: transparent; }
.cand-pending-note { margin-top: 10px; font-size: 0.8rem; color: var(--text-muted); font-style: italic; line-height: 1.5; }
.cand-pending-note a { color: var(--teal); font-weight: 600; font-style: normal; text-decoration: none; }
.cand-pending-note a:hover { text-decoration: underline; }

/* ═══ MODAL ═══ */
.el-modal-backdrop {
  position: fixed; inset: 0; background: rgba(16,24,40,0.55); backdrop-filter: blur(3px);
  z-index: 500; display: none; align-items: flex-start; justify-content: center;
  padding: 48px 20px; overflow-y: auto;
}
.el-modal-backdrop.open { display: flex; }
.el-modal {
  background: var(--card); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  max-width: 640px; width: 100%; overflow: hidden; animation: lveModalIn 0.22s ease;
}
@keyframes lveModalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.el-modal-head {
  background: linear-gradient(120deg, #0a5e62, var(--teal)); color: #fff;
  padding: 26px 28px; display: flex; align-items: center; gap: 20px; position: relative;
}
.el-modal-head .cand-avatar {
  width: 84px; height: 84px; font-size: 1.6rem; margin-bottom: 0;
  background: rgba(255,255,255,0.16); color: #fff;
}
.el-modal-office {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.75); margin-bottom: 2px;
}
.el-modal-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; }
.el-modal-head .cand-tag { margin-top: 7px; display: inline-block; }
.el-modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.el-modal-close:hover { background: rgba(255,255,255,0.3); }
.el-modal-body { padding: 26px 28px 28px; }
.el-modal-compiled {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--amber-light); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 20px;
}
.el-modal-compiled svg, .el-modal-compiled i { color: #92600a; flex-shrink: 0; margin-top: 2px; }
.el-modal-compiled p { font-size: 0.82rem; color: #92600a; margin: 0; line-height: 1.55; }
.el-modal-compiled a { color: #92600a; font-weight: 700; }
.el-modal-section { margin-bottom: 22px; }
.el-modal-section:last-child { margin-bottom: 0; }
.el-modal-section h3 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px;
  color: var(--text-muted); margin: 0 0 8px; display: flex; align-items: center; gap: 7px;
}
.el-modal-section h3 svg, .el-modal-section h3 i { color: var(--teal); }
.el-modal-section p { font-size: 0.92rem; color: var(--text-mid); margin: 0; white-space: pre-line; }
.el-priorities { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.el-priorities li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text-mid);
  background: var(--bg); border-radius: var(--radius-sm); padding: 10px 14px;
}
.el-priorities li svg, .el-priorities li i { color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.el-modal-links { display: flex; gap: 10px; flex-wrap: wrap; }
.el-modal-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--teal); background: var(--teal-light);
  padding: 9px 16px; border-radius: 50px; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.el-modal-link:hover { background: var(--teal); color: #fff; }

/* ═══ ARCHIVE LANDING ═══ */
.lve-archive-list { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.lve-archive-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 24px; display: flex; align-items: center; gap: 18px;
  text-decoration: none; color: var(--text); border: 1.5px solid transparent;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.lve-archive-item:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.lve-archive-item svg, .lve-archive-item i { margin-left: auto; color: var(--teal); }
.lve-archive-year {
  font-size: 1.3rem; font-weight: 800; color: var(--teal);
  background: var(--teal-light); border-radius: 12px; padding: 10px 16px;
}
.lve-archive-label { font-weight: 700; }
.lve-archive-date { font-size: 0.82rem; color: var(--text-muted); }

/* ═══ DISCLAIMER ═══ */
.lve-disclaimer {
  max-width: 760px; margin: 0 auto; padding: 24px 24px 8px; text-align: center;
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.6;
}
.lve-disclaimer a { color: var(--teal); font-weight: 600; text-decoration: none; }

/* ═══ KADENCE BUTTON RESETS ═══
   Kadence's global button styles clobber custom button CSS (standing site gotcha);
   body.lve-body scoping + full defensive resets so ours always win. */
body.lve-body .el-modal-close {
  background: rgba(255,255,255,0.15); color: #fff; border: none; border-radius: 50%;
  box-shadow: none; padding: 0; min-height: 0; width: 34px; height: 34px;
  text-transform: none; line-height: 1;
}
body.lve-body .el-modal-close:hover { background: rgba(255,255,255,0.3); color: #fff; }
body.lve-body .cand-view {
  background: var(--teal-light); color: var(--teal); border: none; border-radius: 50px;
  box-shadow: none; padding: 9px 18px; min-height: 0; text-transform: none;
  font-weight: 700; font-size: 0.82rem; line-height: 1.4;
}
body.lve-body .cand-card:hover .cand-view { background: var(--teal); color: #fff; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 980px) {
  .el-grid-council { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .el-hero { padding: 36px 16px 80px; }
  .el-hero--quiet { padding-bottom: 48px; }
  .el-hero h1 { font-size: 1.85rem; }
  .lve-main { padding: 0 16px 40px; }
  .el-grid-mayor, .el-grid-council { grid-template-columns: 1fr; }
  .cand-card--mayor { flex-direction: column; text-align: center; }
  .cand-card--mayor .cand-body { align-items: center; }
  .cand-card--mayor .cand-tags { justify-content: center; }
  .el-seat-chip { margin-left: 0; }
  .el-modal-backdrop { padding: 0; align-items: flex-end; }
  .el-modal { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; animation: lveSheetIn 0.25s ease; }
  .el-modal-head { flex-direction: column; text-align: center; gap: 12px; padding-top: 34px; }
}
@keyframes lveSheetIn { from { transform: translateY(40px); opacity: 0.5; } to { transform: none; opacity: 1; } }
