/* Styling for debate text page */

.hero {
    background: var(--off-white);
    border-bottom: 3px solid lightgrey;
    padding: 32px 56px 30px;
    text-align: center;
}

.hero h2 {
    font-size: 32px;         
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--heading);
    margin-bottom: 8px;  
}

.back_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-mid);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.back_button:hover {
    background: orange;
    transform: translateY(-2px);
}

.back_button svg {
    transition: transform 0.15s ease;
}

.back_button:hover svg {
    transform: translateX(3px);
}

.debateheader_date {
    font-size: 14px;
    color: var(--text-muted);
}

/* Debate Page Layout */
.debate_container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

/* Section headers */
.section_header {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--heading);
    padding: 4px 0 14px;
    border-bottom: 3px solid lightgray;
}

/* Table */
.debatetable {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.debatetable th {
    background: #f9fafb;
    color: #111827;
    padding: 12px 16px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.debatetable td {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.debatetable tr:hover {
    background-color: #f0fdf4;
}

/* Right Column */
.right_column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Irish Percentage Box */
.irish_box {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-size: 15px;
}

/* Speakers Box */
.speakers_box {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-size: 15px;
}

.speakers_box h3 {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.speakers_box table {
    width: 100%;
    border-collapse: collapse;
}

.speakers_box th {
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.speakers_box td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
}

.speakers_box tr:last-child td {
    border-bottom: none;
}

.speakers_box tr:hover td {
    background: #f9fafb;
}

.speakers_box a {
    color: #166534;
    text-decoration: none;
    font-weight: 600;
}

.speakers_box a:hover {
    text-decoration: underline;
}

.debatetext {
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.7;
    color: #111827;
}

/* Contribution list (per-speaker blocks with photo) */
.contributions_list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 16px;
}
 
.contribution {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
 
.contribution_speaker {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
 
.contribution_speaker_link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
 
.contribution_speaker_link:hover .contribution_name {
    text-decoration: underline;
}
 
.contribution_photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}
 
.contribution_name {
    font-weight: 700;
    color: #166534;
    font-size: 14px;
    line-height: 1.4;
}
 
.contribution_text {
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: #111827;
    white-space: pre-wrap;
}
 
.contribution_plain {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
    font-style: italic;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
 
/* Individual TD speaker-contribution page */
.overall_sentiment_badge {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 14px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}
 
.speaker_contributions_list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
}
 
.speaker_contribution {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
 
.speaker_contribution_text {
    font-size: 15px;
    line-height: 1.7;
    color: #111827;
    white-space: pre-wrap;
    margin-bottom: 12px;
}
 
.speaker_contribution_sentiment {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-align: right;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
}