body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 3rem auto 2rem auto;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

p {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.08rem;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    table-layout: fixed;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

th {
    background-color: #f7f9fc;
    color: #34495e;
    font-weight: 600;
    letter-spacing: 0.5px;
}

th:nth-child(1), td:nth-child(1) {
    width: 110px;
    white-space: nowrap;
}
th:nth-child(2), td:nth-child(2) {
    width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
th:nth-child(3), td:nth-child(3) {
    width: 40%;
}
th:nth-child(4), td:nth-child(4) {
    width: 120px;
    white-space: nowrap;
}

tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.abstract-row {
    display: none;
    background-color: #fafafa;
}

.abstract-cell {
    padding: 1.2rem 1rem 1.2rem 1rem;
    font-style: italic;
    color: #333;
}

.abstract-content {
    white-space: pre-wrap;
    line-height: 1.6;
}

.no-events {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.scrollable-past {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafbfc;
    padding: 1.2rem 1rem;
}

details[open] > summary {
    margin-bottom: 1.2rem;
}

summary {
    outline: none;
}

h3 {
    margin-top: 2.2rem;
    margin-bottom: 0.7rem;
    color: #2c3e50;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

ul {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.7rem;
    font-size: 1.03rem;
}

.calendar-note {
    position: absolute;
    right: 0;
    bottom: -2.2em;
    color: #666;
    font-size: 0.95em;
    background: #f7f9fc;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

@media (max-width: 700px) {
    .container {
        padding: 1rem 0.5rem;
    }
    table th, table td {
        padding: 0.7rem 0.5rem;
    }
    .scrollable-past {
        padding: 0.7rem 0.5rem;
    }
}
