/* ─── ez-lo-ut.com ─── */
/* Mobile-first. No frameworks. Tailwind CDN for utilities only. */

:root {
  --green: #059669;
  --green-light: #ECFDF5;
  --navy: #0F2744;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #9CA3AF;
  --surface: #FFFFFF;
  --bg: #F9FAFB;
  --border: #E5E7EB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text-primary); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select { font: inherit; }

/* ─── Layout ─── */
.page-container { max-width: 680px; margin: 0 auto; padding: 0 16px 40px; }

/* ─── Header ─── */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; max-width: 680px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 28px; height: 28px; border-radius: 6px; background: var(--green); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 12px; }
.logo-text { font-weight: 800; font-size: 17px; letter-spacing: -0.5px; }
.logo-accent { color: var(--green); }
.desktop-nav { display: none; gap: 2px; }
.nav-link { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-secondary); transition: background 0.15s; }
.nav-link:hover { background: var(--bg); }
.nav-link.active { color: var(--green); background: var(--green-light); font-weight: 700; }
.mobile-menu-btn { display: block; padding: 4px; color: var(--text-primary); }
.mobile-nav { display: none; flex-direction: column; padding: 8px 16px 16px; max-width: 680px; margin: 0 auto; }
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) {
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--border); padding: 20px 16px; text-align: center; font-size: 12px; color: var(--text-tertiary); }
.site-footer a { color: var(--green); }
.footer-disclaimer { margin-top: 4px; font-size: 11px; }

/* ─── Avatar ─── */
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }

/* ─── Party badge ─── */
.party-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: 0.2px; }
.party-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ─── Candidate card ─── */
.candidate-card { display: block; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 16px; transition: box-shadow 0.15s, transform 0.15s; }
a.candidate-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }
.card-header { display: flex; align-items: flex-start; gap: 12px; }
.card-info { flex: 1; min-width: 0; }
.card-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.card-office { font-size: 13px; color: var(--text-secondary); margin: 2px 0 6px; }

/* ─── Card grid ─── */
.card-grid { display: flex; flex-direction: column; gap: 10px; }

/* ─── Search bar ─── */
.search-bar { position: relative; }
.search-bar input { width: 100%; padding: 12px 16px 12px 40px; border-radius: 10px; border: 1px solid var(--border); font-size: 15px; background: var(--surface); color: var(--text-primary); outline: none; transition: border-color 0.15s; }
.search-bar input:focus { border-color: var(--green); }
.search-bar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); }

/* ─── Filter bar ─── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filter-pill { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-secondary); background: var(--surface); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.filter-pill:hover { border-color: var(--text-tertiary); }
.filter-pill.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ─── Election countdown ─── */
.countdown-card { padding: 16px 20px; border-radius: 12px; background: linear-gradient(135deg, #1E3A5F, var(--navy)); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.countdown-name { font-size: 16px; font-weight: 600; }
.countdown-date { font-size: 13px; opacity: 0.7; margin-top: 2px; }
.countdown-type { font-size: 13px; opacity: 0.8; margin-bottom: 2px; }
.countdown-number { font-size: 32px; font-weight: 700; line-height: 1; }
.countdown-label { font-size: 12px; opacity: 0.7; }

/* ─── Section headers ─── */
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 12px; }
.section-title { font-size: 18px; font-weight: 700; }
.section-link { font-size: 13px; color: var(--green); font-weight: 600; }

/* ─── Hero ─── */
.hero { text-align: center; padding: 40px 0 32px; }
.hero-eyebrow { font-size: 13px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.hero p { font-size: 15px; color: var(--text-secondary); margin-top: 10px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ─── Quick actions grid ─── */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: box-shadow 0.15s; }
.quick-action:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.quick-action-icon { color: var(--green); flex-shrink: 0; }
.quick-action-label { font-weight: 600; font-size: 14px; }
.quick-action-sub { font-size: 12px; color: var(--text-tertiary); }

/* ─── Stats ─── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.stat-card { padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stat-number { font-size: 24px; font-weight: 800; color: var(--green); }
.stat-label { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── Empty state ─── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-tertiary); }
.empty-state p { font-size: 14px; margin-top: 8px; }

/* ─── Page title ─── */
.page-title { padding-top: 24px; margin-bottom: 16px; }
.page-title h1 { font-size: 24px; font-weight: 800; }
.page-title p { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }

/* ─── Candidate detail ─── */
.detail-header { display: flex; align-items: flex-start; gap: 16px; margin: 16px 0 24px; }
.detail-name { font-size: 24px; font-weight: 800; }
.detail-office { font-size: 15px; color: var(--text-secondary); margin: 2px 0 8px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.detail-section { margin-bottom: 24px; }
.detail-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.detail-section p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.back-link { display: inline-flex; align-items: center; gap: 4px; padding: 12px 0; font-size: 14px; color: var(--green); font-weight: 600; }

/* ─── Opponent list ─── */
.opponent-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 8px; }
a.opponent-card:hover { background: var(--bg); }
.opponent-info { flex: 1; min-width: 0; }
.opponent-name { font-weight: 600; font-size: 14px; }
.opponent-party { font-size: 12px; color: var(--text-secondary); }

/* ─── Tap targets ─── */
@media (pointer: coarse) {
  .nav-link { padding: 10px 12px; }
  .filter-pill { padding: 8px 16px; }
}
