.tabbed-content {
    background-color: rgba(0,0,0,0);
    overflow: hidden;
    margin-top: 70px;
    width: 90%;
    border-radius: 5px;
}

.tab-list {
    margin-bottom: 50px;
    float:left;
    height: 40px;
    background-color:rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.tab-list a.active {
    background-image: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
    font-weight: bold;
}

.tab-list a {
    text-decoration: none;
    padding:10px;
    margin:0 10px 0 0;
    display:inline-block;
    color:rgb(0, 0, 0);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    overflow: hidden;
    border-radius: 0;
}

.tab-list a:last-child{
    margin-right:0;
    border-top-right-radius: 5px;
}


.tabs-content .content {
    display: none;
}

.tabs-content .content.active {
    display: block;
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
}

/* Parliament seat map */
.seatmap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    width: 100%;
}

.speaker-box {
    position: relative;
    min-width: 140px;
    padding: 14px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 248, 255, 0.9) 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transition: transform 120ms ease, box-shadow 120ms ease;
    cursor: pointer;
}

.speaker-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.speaker-title {
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.speaker-name {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.speaker-party {
    font-size: 11px;
    opacity: 0.75;
    text-align: center;
}

.seatmap-sides {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    width: 100%;
}

.seatmap-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(var(--seat-columns, 1), 96px);
    gap: 12px;
}

.seatmap-aisle {
    width: 96px;
    min-height: 160px;
}

.seat {
    position: relative;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    height: 110px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 248, 255, 0.9) 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
    overflow: hidden;
}

.seat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.seat-code {
    font-weight: bold;
    letter-spacing: 0.5px;
}

.seat-name {
    font-size: 14px;
    line-height: 1.2;
}

.seat-meta {
    font-size: 12px;
    color: rgb(60, 60, 60);
    line-height: 1.2;
}

.seat-empty {
    font-size: 12px;
    color: rgb(90, 90, 90);
}

.seat.occupied {
    border-color: var(--party-color, rgb(20, 90, 160));
}

.party-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 240px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    color: #0d1b2a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
    display: none;
    gap: 6px;
}

.party-tooltip strong {
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.party-tooltip .tooltip-line {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}

/* Cabinet Styles */
.cabinet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
}

.cabinet-card {
    position: relative;
    width: 220px;
    min-height: 1px;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(270deg, rgba(190, 16, 16, 0) 0%, var(--party-color) 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.cabinet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.cabinet-card.ruling-party {
    border-color: var(--party-color, #E00000);
    border-width: 2px;
}

.cabinet-position {
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--party-color, #0d1b2a);
}

.cabinet-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.cabinet-meta {
    font-size: 12px;
    color: rgb(60, 60, 60);
    line-height: 1.2;
}