/* Labour Leadership Challenge Tracker - editorial (NYT/FT) style */

.lc-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.lc-kicker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin: 0 0 12px;
}

.lc-headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.12;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.lc-standfirst {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 8px;
}

.lc-updated {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #999;
    margin: 16px 0 0;
}

.lc-section {
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.lc-h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.lc-body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 16px;
}

.lc-body a { color: #333; text-decoration: underline; text-underline-offset: 2px; }

/* Status banner */
.lc-status {
    border: 1px solid #e0e0e0;
    border-left: 4px solid #999;
    background: #fafafa;
    padding: 20px 22px;
    margin: 24px 0 0;
}
.lc-status.is-monitoring { border-left-color: #888; }
.lc-status.is-challenge_triggered { border-left-color: #c62828; background: #fcf4f4; }
.lc-status.is-contest_live { border-left-color: #b8860b; background: #fbf8ef; }
.lc-status.is-resolved { border-left-color: #2e7d32; background: #f4f9f4; }

.lc-status-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin: 0 0 8px;
}
.lc-status-headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.25;
}
.lc-status-detail {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}
.lc-status-asof {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #999;
    margin: 12px 0 0;
}

/* Trigger / whip-count */
.lc-trigger-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0 0 24px;
}
.lc-stat {
    border: 1px solid #e0e0e0;
    padding: 16px 18px;
}
.lc-stat-num {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.lc-stat-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #666;
    margin: 8px 0 0;
    line-height: 1.4;
}

/* Horizontal bars */
.lc-bars { margin: 0 0 16px; }
.lc-bar-row { margin: 0 0 14px; }
.lc-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0 0 6px;
}
.lc-bar-head .lc-bar-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.lc-bar-track {
    position: relative;
    height: 22px;
    background: #f0f0f0;
    overflow: hidden;
}
.lc-bar-fill {
    height: 100%;
    width: 0;
    transition: width 0.6s ease;
}
.lc-bar-fill.is-against { background: #c62828; }
.lc-bar-fill.is-for { background: #1f6feb; }
.lc-bar-fill.is-unknown { background: #bdbdbd; }

.lc-threshold-note {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin: 4px 0 0;
}

/* Contest timetable */
.lc-tt-freeze {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fbf8ef;
    border-left: 3px solid #b8860b;
    padding: 12px 14px;
    margin: 0 0 16px;
}
table.lc-timetable {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
}
table.lc-timetable th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    border-bottom: 2px solid #1a1a1a;
    padding: 8px 10px;
}
table.lc-timetable td {
    border-bottom: 1px solid #e8e8e8;
    padding: 10px;
    vertical-align: top;
    color: #333;
}
table.lc-timetable tr:last-child td { border-bottom: 2px solid #1a1a1a; }
table.lc-timetable tr:hover td { background: #fafafa; }
.lc-tt-date {
    white-space: nowrap;
    font-weight: 600;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
    width: 38%;
}
@media (max-width: 600px) {
    .lc-tt-date { width: 42%; white-space: normal; }
    table.lc-timetable { font-size: 13px; }
}

/* Named-MP dropdowns */
.lc-drop {
    border: 1px solid #e0e0e0;
    margin: 0 0 10px;
}
.lc-drop summary {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}
.lc-drop summary::-webkit-details-marker { display: none; }
.lc-drop summary::after {
    content: "+";
    margin-left: auto;
    font-size: 18px;
    color: #999;
    font-weight: 400;
}
.lc-drop[open] summary::after { content: "\2212"; }
.lc-drop summary:hover { background: #fafafa; }
.lc-drop-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.lc-drop-dot.is-against { background: #c62828; }
.lc-drop-dot.is-for { background: #1f6feb; }
.lc-drop-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #666;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 1px 9px;
    font-size: 13px;
}
.lc-drop[open] summary .lc-drop-count { margin-right: 6px; }
.lc-drop summary .lc-drop-count { margin-right: 26px; }
.lc-drop-body {
    padding: 4px 16px 16px;
    border-top: 1px solid #f0f0f0;
}
.lc-drop-note {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
    margin: 12px 0 8px;
}
.lc-name-list {
    columns: 2;
    column-gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.lc-name-list li {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #333;
    padding: 5px 0;
    border-bottom: 1px solid #f4f4f4;
    break-inside: avoid;
}

@media (max-width: 600px) {
    .lc-name-list { columns: 1; }
}

/* Candidate cards */
.lc-cards { display: grid; gap: 0; }
.lc-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e8e8e8;
}
.lc-card:last-child { border-bottom: 2px solid #1a1a1a; }
.lc-card-main { flex: 1; }
.lc-card-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
}
.lc-card-role {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
}
.lc-card-notes {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    margin: 0;
}
.lc-card-notes a { color: #999; text-decoration: underline; text-underline-offset: 2px; }
.lc-badge {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
    color: #666;
}
.lc-badge.declared { background: #f4f9f4; border-color: #cfe6cf; color: #2e7d32; }
.lc-badge.speculated { background: #fafafa; border-color: #e0e0e0; color: #888; }
.lc-badge.incumbent { background: #f4f6fb; border-color: #d4ddf0; color: #1f6feb; }
.lc-badge.resigned { background: #fcf4f4; border-color: #e8cccc; color: #c62828; }
.lc-faction {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #999;
    margin: 8px 0 0;
}

/* Timeline */
.lc-timeline { margin: 8px 0 0; padding: 0; list-style: none; }
.lc-tl-item {
    position: relative;
    padding: 0 0 22px 22px;
    border-left: 2px solid #e0e0e0;
}
.lc-tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.lc-tl-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
}
.lc-tl-date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    margin: 0 0 2px;
}
.lc-tl-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.lc-tl-detail {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #444;
    margin: 0;
}
.lc-tl-detail a { color: #999; text-decoration: underline; text-underline-offset: 2px; }

/* Rules explainer */
.lc-rule {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
}
.lc-rule:last-child { border-bottom: none; }
.lc-rule-q {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.lc-rule-a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.lc-sources {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #999;
}
.lc-sources a { color: #999; }
.lc-sources li { margin: 0 0 4px; }

@media (max-width: 600px) {
    .lc-wrap { padding: 32px 16px 48px; }
    .lc-headline { font-size: 28px; }
    .lc-standfirst { font-size: 17px; }
    .lc-h2 { font-size: 20px; }
    .lc-trigger-grid { grid-template-columns: 1fr 1fr; }
    .lc-card { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
}
