/* Consensus Page Specific Styles */

/* Match About page spacing for title block */
.consensus-section .section-title {
    margin-bottom: 60px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Search bar styling */
.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    width: 250px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4a6fa0;
}

.search-input::placeholder {
    color: #999999;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-size: 0.95rem;
}

/* Consensus list */
.consensus-table {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.consensus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

.consensus-info {
    flex: 1;
    min-width: 0;
}

.consensus-item:hover {
    background-color: #f9f9f9;
}

.consensus-item:last-child {
    border-bottom: none;
}

.consensus-info h3 {
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 1rem;
}

.consensus-info p {
    margin-bottom: 4px;
    line-height: 1.45;
    font-size: 0.9rem;
}

.consensus-info p:last-child {
    margin-bottom: 0;
}

.consensus-title {
    display: inline-block;
    width: 75%;
    max-width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

@media (max-width: 768px) {
    .search-container {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .consensus-title {
        width: 100%;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        overflow: hidden;
        word-break: break-word;
    }

    .consensus-item .btn {
        display: inline-block;
        width: auto;
        margin-bottom: 0;
    }
}
