/* Styling for Debates index page */

.hero {
    background: var(--off-white);
    border-bottom: 3px solid lightgrey;
    padding: 18px 56px 10px;
    text-align: center;
}

.hero h2 {
    font-size: 32px;         
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--heading);
    margin-bottom: 8px;  
}

/* Search Engine */ 

.debate-controls {
    margin-bottom: 24px;
}

.debate-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--green-deep);
    padding-bottom: 8px;
    padding-top: 15px;
}

.debate-search svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.debate-search input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    padding: 0;
}

.debate-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.filter-pill {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
    border: 1px solid var(--green-deep);
    color: var(--green-deep);
    cursor: pointer;
    user-select: none;
}

.filter-pill.is-active {
    background: var(--green-deep);
    color: #ffffff;
}

.filter-placeholder {
    font-size: 11px;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 3px;
    padding: 5px 10px;
    margin-left: auto;
}

.debate-layout {
    display: flex;
    gap: 24px;
}

.date-rail {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 560px;
    overflow-y: auto;
}

.rail-year {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 10px 0 4px 12px;
}

.rail-year:first-of-type {
    padding-top: 0;
}

.rail-item {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    padding: 7px 0 7px 12px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.rail-item:first-child {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.rail-item.is-active {
    color: var(--green-mid);
    border-left-color: var(--green-mid);
    font-weight: 600;
}

.rail-item.is-dim {
    opacity: 0.35;
}

.debate-entries {
    flex: 1;
    min-width: 0;
    border-left: 1px solid var(--border);
    padding-left: 22px;
}

.entries-meta {
    display: flex;
    justify-content: flex-end;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.entry-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 11px 0;
    border-bottom: 1px solid var(--green-light);
}

.entry-row:last-child {
    border-bottom: none;
}

.entry-row a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.entry-row a:hover {
    color: orange;
}

.entry-leader {
    flex: 1;
    border-bottom: 1px dotted var(--border);
    margin: 0 4px 4px;
}

.entry-tag {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

@media (max-width: 700px) {
    .debate-layout {
        flex-direction: column;
    }

    .date-rail {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        width: 100%;
    }

    .rail-item {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 6px 10px;
    }

    .rail-item.is-active {
        border-left: none;
        border-bottom-color: var(--gold);
    }

    .debate-entries {
        border-left: none;
        padding-left: 0;
        margin-top: 16px;
    }
}