/* =============================================================
   2027 Nigeria Elections Hub — Stylesheet
   dailypost.ng/2027-elections/
   ============================================================= */

/* ---- Breadcrumb ---- */
.elec-breadcrumb {
    font-size: 13px;
    color: #666;
    margin: 0 0 18px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}
.elec-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}
.elec-breadcrumb li {
    display: inline-flex;
    align-items: center;
}
.elec-breadcrumb a {
    color: #c0392b;
    text-decoration: none;
}
.elec-breadcrumb a:hover { text-decoration: underline; }
.elec-breadcrumb span { color: #333; }
.elec-bc-sep { color: #aaa; margin: 0 2px; }

/* ---- Hub wrapper ---- */
#elec-hub-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ---- E-E-A-T editorial note ---- */
.elec-editorial-note {
    background: #f9f9f9;
    border-left: 4px solid #c0392b;
    padding: 8px 14px;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}
.elec-editorial-note strong { color: #333; }

/* ---- Section headings ---- */
.elec-section-head {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 3px solid #c0392b;
    padding-bottom: 6px;
    margin: 32px 0 16px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ---- Key Facts Panel ---- */
.elec-facts-panel {
    background: #1a1a2e;
    color: #fff;
    border-radius: 6px;
    padding: 20px 24px;
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.elec-facts-panel h2 {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: 700;
    color: #e8c84a;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.elec-fact-item { display: flex; flex-direction: column; gap: 4px; }
.elec-fact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: .6px;
}
.elec-fact-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* ---- Candidate Cards Grid ---- */
.elec-candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}
.elec-candidate-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.elec-candidate-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    text-decoration: none;
}
.elec-candidate-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
}
.elec-candidate-card-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 36px;
}
.elec-candidate-card-body {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.elec-candidate-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.elec-candidate-card-party {
    font-size: 12px;
    color: #c0392b;
    font-weight: 600;
}
.elec-candidate-card-status {
    display: inline-block;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: 4px;
    align-self: flex-start;
}
.elec-status-declared  { background: #d4edda; color: #155724; }
.elec-status-rumoured  { background: #fff3cd; color: #856404; }
.elec-status-withdrawn { background: #f8d7da; color: #721c24; }

/* ---- Party Cards ---- */
.elec-parties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}
.elec-party-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s;
}
.elec-party-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    text-decoration: none;
}
.elec-party-acronym {
    font-size: 28px;
    font-weight: 900;
    color: #c0392b;
    line-height: 1;
    margin-bottom: 4px;
}
.elec-party-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.elec-party-meta {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* ---- Timeline ---- */
.elec-timeline {
    position: relative;
    padding-left: 28px;
    margin: 0 0 8px;
}
.elec-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.elec-timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.elec-timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c0392b;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #c0392b;
}
.elec-timeline-item.confirmed::before { background: #27ae60; box-shadow: 0 0 0 2px #27ae60; }
.elec-timeline-date {
    font-size: 11px;
    font-weight: 700;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}
.elec-timeline-item.confirmed .elec-timeline-date { color: #27ae60; }
.elec-timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
.elec-timeline-desc {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}
.elec-timeline-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    background: #fff3cd;
    color: #856404;
    margin-left: 6px;
    vertical-align: middle;
}
.elec-timeline-badge.confirmed { background: #d4edda; color: #155724; }

/* ---- States Grid ---- */
.elec-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}
.elec-state-tile {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px 12px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.elec-state-tile:hover {
    background: #c0392b;
    color: #fff;
    text-decoration: none;
    border-color: #c0392b;
}
.elec-state-tile-zone {
    font-size: 10px;
    font-weight: 400;
    color: #999;
    display: block;
    margin-top: 2px;
}
.elec-state-tile:hover .elec-state-tile-zone { color: rgba(255,255,255,.7); }

/* ---- News Feed ---- */
.elec-news-feed { margin: 0; padding: 0; list-style: none; }
.elec-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}
.elec-news-item:last-child { border-bottom: none; }
.elec-news-item:hover .elec-news-title { color: #c0392b; }
.elec-news-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
}
.elec-news-thumb-placeholder {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    background: #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}
.elec-news-body { flex: 1; min-width: 0; }
.elec-news-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c0392b;
    letter-spacing: .5px;
    margin-bottom: 3px;
}
.elec-news-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.elec-news-date { font-size: 11px; color: #999; }

/* ---- Single CPT page layout ---- */
.elec-single-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 40px;
}
.elec-single-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.elec-single-photo {
    flex-shrink: 0;
    width: 140px;
    height: 160px;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    border: 3px solid #e0e0e0;
}
.elec-single-photo-placeholder {
    flex-shrink: 0;
    width: 140px;
    height: 160px;
    background: #eee;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 48px;
    border: 3px solid #e0e0e0;
}
.elec-single-meta { flex: 1; }
.elec-single-meta h1 {
    font-size: 26px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.2;
}
.elec-meta-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.elec-meta-table td { padding: 4px 8px 4px 0; vertical-align: top; }
.elec-meta-table td:first-child {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    width: 140px;
}
.elec-meta-table td:last-child { color: #1a1a1a; }

/* ---- "Also covering" link block ---- */
.elec-also-covering {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 32px;
}
.elec-also-covering h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
    margin: 0 0 10px;
}
.elec-also-covering ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.elec-also-covering a {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #c0392b;
    text-decoration: none;
    transition: background .15s;
}
.elec-also-covering a:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

/* ---- Results page ---- */
.elec-results-coming {
    text-align: center;
    padding: 60px 20px;
}
.elec-results-coming .elec-results-icon {
    font-size: 56px;
    margin-bottom: 16px;
    color: #c0392b;
}
.elec-results-coming h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.elec-results-coming p { font-size: 15px; color: #666; max-width: 480px; margin: 0 auto; }

/* ---- Intro paragraph ---- */
.elec-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 24px;
}

/* ---- "View all" link ---- */
.elec-view-all {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 16px;
    background: #c0392b;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background .15s;
}
.elec-view-all:hover { background: #a93226; color: #fff; text-decoration: none; }

/* ---- Key Dates table ---- */
.elec-dates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 8px;
}
.elec-dates-table th {
    background: #1a1a2e;
    color: #e8c84a;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.elec-dates-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.elec-dates-table tr:hover td { background: #fafafa; }
.elec-dates-table .elec-td-date {
    white-space: nowrap;
    font-weight: 600;
    color: #c0392b;
    width: 160px;
}
.elec-dates-table .elec-td-status {
    width: 90px;
}

/* ---- FAQ accordion ---- */
.elec-faq { margin: 0 0 8px; }
.elec-faq-item {
    border-bottom: 1px solid #e8e8e8;
}
.elec-faq-q {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 14px 32px 14px 0;
    cursor: pointer;
    position: relative;
    list-style: none;
    user-select: none;
}
.elec-faq-q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #c0392b;
    font-weight: 400;
    transition: transform .2s;
}
details[open] > .elec-faq-q::after {
    content: '−';
}
.elec-faq-a {
    font-size: 14px;
    color: #444;
    line-height: 1.65;
    padding: 0 0 14px;
}

/* ---- Datawrapper embed ---- */
.elec-datawrapper-wrap { margin: 0 0 28px; }
.elec-dw-embed iframe {
    width: 100% !important;
    border: none;
}
.elec-dw-placeholder {
    background: #f9f9f9;
    border: 2px dashed #e0e0e0;
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .elec-facts-panel { grid-template-columns: 1fr 1fr; }
    .elec-candidates-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .elec-parties-grid { grid-template-columns: 1fr 1fr; }
    .elec-states-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .elec-single-header { flex-direction: column; }
    .elec-single-photo,
    .elec-single-photo-placeholder { width: 100%; height: 200px; }
    .elec-dates-table { font-size: 13px; }
    .elec-dates-table .elec-td-date { width: auto; }
}
