.kubb-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0.85rem;
    box-sizing: border-box;
}

.kubb-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #d9deee;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7f9ff 0%, #ffffff 58%, #eef3ff 100%);
    box-shadow: 0 12px 28px rgba(0, 10, 61, 0.08);
}

.kubb-hero-text {
    flex: 1 1 620px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.eyebrow {
    margin: 0;
    color: #36508f;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 880px;
}

.kubb-hero-panel {
    flex: 0 1 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 1rem;
    border-radius: 16px;
    color: white;
    background: #000A3D;
}

.panel-number {
    display: block;
    font-size: 3.1rem;
    line-height: 1;
    font-weight: 700;
}

.panel-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.panel-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: #d8def8;
}

.article-section {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem;
    border: 1px solid #e2e5ef;
    border-radius: 16px;
    background: #fff;
}

.article-heading {
    font-size: clamp(1.55rem, 4vw, 2.45rem);
    line-height: 1.16;
    margin: 0;
    font-weight: 700;
    color: #071044;
}

.article-subheading {
    font-size: clamp(1.18rem, 2.6vw, 1.55rem);
    line-height: 1.22;
    margin: 0;
    font-weight: 700;
    color: #071044;
}

.article-paragraph {
    margin: 0.15rem 0;
    font-size: 0.99rem;
    line-height: 1.62;
    color: #202331;
}

.article-list {
    margin: 0.2rem 0 0 0;
    padding-left: 1.2rem;
}

.article-list li {
    margin: 0.32rem 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #202331;
}

.section-title-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.calendar-toggle {
    border: 0;
    border-radius: 999px;
    padding: 0.72rem 1rem;
    font: inherit;
    font-weight: 700;
    color: white;
    background: #000A3D;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 10, 61, 0.16);
}

.calendar-toggle:focus-visible,
.event-card summary:focus-visible,
.source-section a:focus-visible {
    outline: 3px solid #7aa7ff;
    outline-offset: 3px;
}

.kubb-table-wrap {
    overflow-x: auto;
    border: 1px solid #d9deee;
    border-radius: 14px;
}

.kubb-events-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.92rem;
}

.kubb-events-table th,
.kubb-events-table td {
    border: 1px solid #d9deee;
    padding: 0.55rem;
    vertical-align: top;
    text-align: left;
    word-break: break-word;
}

.kubb-events-table th {
    color: #081247;
    background: #f1f4fc;
    font-weight: 700;
}

.kubb-events-table tbody tr:nth-child(even) {
    background: #fbfcff;
}

.kubb-events-table a,
.source-section a {
    color: #0b3c96;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.event-card-list {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
}

.event-card {
    border: 1px solid #d9deee;
    border-radius: 14px;
    background: #fbfcff;
    overflow: hidden;
}

.event-card[open] {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 10, 61, 0.08);
}

.event-card summary {
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.78rem 0.85rem;
    cursor: pointer;
    list-style: none;
    color: #071044;
    font-weight: 700;
}

.event-card summary::-webkit-details-marker {
    display: none;
}

.event-card summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #000A3D;
    font-weight: 700;
}

.event-card[open] summary::after {
    content: "-";
}

.event-summary-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.event-summary-title span:first-child {
    font-size: 0.95rem;
}

.event-summary-title span:last-child {
    font-size: 0.82rem;
    color: #4b5679;
    font-weight: 600;
}

.event-definition {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    margin: 0;
    border-top: 1px solid #e2e5ef;
}

.event-definition dt,
.event-definition dd {
    margin: 0;
    padding: 0.62rem 0.78rem;
    border-bottom: 1px solid #edf0f7;
}

.event-definition dt {
    color: #071044;
    background: #f3f6fe;
    font-weight: 700;
}

.event-definition dd {
    color: #202331;
    background: #ffffff;
    word-break: break-word;
}

.event-definition dd a {
    color: #0b3c96;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.source-section {
    background: #f8faff;
}

@media (max-width: 860px) {
    .kubb-page {
        padding: 0.65rem;
    }

    .kubb-hero {
        padding: 0.85rem;
        border-radius: 15px;
    }

    .kubb-hero-panel {
        flex: 1 1 100%;
    }

    .kubb-table-wrap {
        display: none;
    }

    .event-card-list {
        display: flex;
    }

    .calendar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .article-section {
        padding: 0.75rem;
        border-radius: 13px;
    }

    .event-card summary {
        padding: 0.72rem;
    }

    .event-definition {
        grid-template-columns: minmax(82px, 40%) minmax(0, 1fr);
        font-size: 0.92rem;
    }

    .event-definition dt,
    .event-definition dd {
        padding: 0.55rem 0.6rem;
    }

    .panel-number {
        font-size: 2.55rem;
    }
}
