:root {
    --surface: #ffffff;
    --muted: #667085;
    --border: #e6eaf0;
    --shadow: 0 14px 35px rgba(16, 24, 40, .08);
}

* {
    letter-spacing: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #f8fafc;
}

.navbar {
    box-shadow: 0 1px 12px rgba(16, 24, 40, .04);
}

.hero {
    padding: 4.5rem 0 2.25rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.search-panel,
.soft-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search-panel {
    position: sticky;
    top: 72px;
    z-index: 20;
}

.form-control,
.form-select,
.btn {
    border-radius: 8px;
}

.result-card {
    transition: box-shadow .15s ease;
}

.result-card:hover {
    box-shadow: 0 16px 38px rgba(16, 24, 40, .12);
}

.text-muted-2 {
    color: var(--muted);
}

.autocomplete-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 50;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.autocomplete-menu.show {
    display: block;
}

.stat {
    min-height: 104px;
}

.voter-slip {
    border: 2px solid #111827;
    background: #fff;
    color: #05070b;
}

.voter-slip-row {
    display: grid;
    grid-template-columns: minmax(120px, max-content) 1fr;
    gap: .4rem;
    align-items: baseline;
    min-height: 44px;
    padding: .55rem .8rem;
    border-bottom: 2px solid #111827;
}

.voter-slip-row span,
.voter-slip-grid span {
    font-weight: 800;
    text-transform: none;
}

.voter-slip-row strong {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.voter-slip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.voter-slip-grid > div {
    min-height: 64px;
    padding: .55rem .6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 2px solid #111827;
}

.voter-slip-grid > div:last-child {
    border-right: 0;
}

.voter-slip-grid strong {
    font-size: 1.05rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.voter-slip-sm {
    font-size: .88rem;
}

.voter-slip-sm .voter-slip-row {
    grid-template-columns: 112px 1fr;
    min-height: 36px;
    padding: .42rem .55rem;
    border-bottom-width: 1.5px;
}

.voter-slip-sm,
.voter-slip-sm .voter-slip-row,
.voter-slip-sm .voter-slip-grid > div {
    border-width: 1.5px;
}

.voter-slip-sm .voter-slip-grid > div {
    min-height: 52px;
}

.voter-slip-lg {
    max-width: 760px;
}

@media (max-width: 767px) {
    .hero {
        padding: 2.75rem 0 1.5rem;
    }

    .search-panel {
        top: 58px;
    }

    .voter-slip-row,
    .voter-slip-sm .voter-slip-row {
        grid-template-columns: 1fr;
        gap: .1rem;
    }
}
