/*
 * Public events: /kegiatan and /kegiatan/{event}. Built phone-first with
 * large text, since many members read on their phones.
 */
.public-events-page .pe-shell {
    padding-top: 120px;
    padding-bottom: 72px;
}

.public-events-page .public-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5a6f86;
    font: 700 12.5px Manrope, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.public-events-page .public-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16c9f5;
    box-shadow: 0 0 0 5px rgba(22, 201, 245, .12);
}

.pe-hero {
    max-width: 720px;
}

.pe-hero h1 {
    margin: 14px 0 12px;
    font: 800 clamp(36px, 5vw, 60px) / 1.04 Manrope, sans-serif;
    letter-spacing: -.05em;
    color: var(--mt-navy, #0a2350);
}

.pe-hero h1 span {
    color: #087cff;
}

.pe-hero p {
    margin: 0;
    color: #4f6580;
    font-size: 17px;
    line-height: 1.65;
}

.pe-section {
    margin-top: 48px;
}

.pe-section > h2 {
    margin: 0 0 18px;
    font: 800 24px / 1.2 Manrope, sans-serif;
    letter-spacing: -.03em;
    color: var(--mt-navy, #0a2350);
}

.pe-empty {
    padding: 22px;
    border: 1px dashed #cfdced;
    border-radius: 16px;
    background: #f7faff;
    color: #5a6f86;
    font-size: 16px;
}

.pe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

/* ---- Card ---- */
.pe-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d9e3ee;
    border-radius: 20px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(10, 35, 80, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.pe-card:hover,
.pe-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(10, 35, 80, .12);
}

.pe-card-art {
    position: relative;
    display: block;
    height: 150px;
    background: linear-gradient(135deg, #0d3577, #087cff 60%, #36c5f0);
    background-size: cover;
    background-position: center;
}

.pe-card.tone-mint .pe-card-art:not(.has-banner) {
    background: linear-gradient(135deg, #0f5d63, #13a8a0 60%, #6be3c5);
}

.pe-card.tone-navy .pe-card-art:not(.has-banner) {
    background: linear-gradient(135deg, #061a3d, #0d3577 60%, #2a5fb8);
}

.pe-card-kind {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: rgba(6, 26, 61, .35);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pe-card-body {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 18px;
}

.pe-card-date {
    display: grid;
    align-self: start;
    align-content: start;
    justify-items: center;
    padding: 10px 0;
    border-radius: 14px;
    background: #eef5ff;
    color: var(--mt-navy, #0a2350);
}

.pe-card-date b {
    font: 800 24px / 1 Manrope, sans-serif;
}

.pe-card-date small {
    margin-top: 4px;
    color: #4b6a91;
    font-size: 12.5px;
    text-align: center;
}

.pe-card-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.pe-card-meta {
    color: #087cff;
    font-size: 13.5px;
    font-weight: 700;
}

.pe-card-copy strong {
    font: 800 19px / 1.25 Manrope, sans-serif;
    letter-spacing: -.02em;
    color: var(--mt-navy, #0a2350);
}

.pe-card-summary {
    color: #4f6580;
    font-size: 15.5px;
    line-height: 1.55;
}

.pe-card-place {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #4f6580;
    font-size: 14.5px;
}

.pe-card-place svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.pe-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pe-card-tags:empty {
    display: none;
}

.pe-tag {
    padding: 5px 11px;
    border-radius: 999px;
    background: #e8f7ef;
    color: #127a4a;
    font-size: 13px;
    font-weight: 700;
}

.pe-tag.is-member {
    background: #eef2ff;
    color: #3b4bb3;
}

.pe-tag.is-full {
    background: #fdecec;
    color: #b42318;
}

.pe-past-list {
    display: grid;
    gap: 10px;
}

.pe-card.is-compact {
    box-shadow: none;
}

.pe-card.is-compact .pe-card-body {
    padding: 14px 16px;
}

.pe-card.is-compact .pe-card-copy strong {
    font-size: 17px;
}

/* ---- Detail ---- */
.pe-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: #087cff;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
}

.pe-back svg {
    width: 18px;
    height: 18px;
}

.pe-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid #d9e3ee;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(10, 35, 80, .08);
}

.pe-detail-art {
    min-height: 260px;
    background: linear-gradient(135deg, #0d3577, #087cff 60%, #36c5f0);
    background-size: cover;
    background-position: center;
}

.pe-detail-hero.tone-mint .pe-detail-art:not(.has-banner) {
    background: linear-gradient(135deg, #0f5d63, #13a8a0 60%, #6be3c5);
}

.pe-detail-hero.tone-navy .pe-detail-art:not(.has-banner) {
    background: linear-gradient(135deg, #061a3d, #0d3577 60%, #2a5fb8);
}

.pe-detail-copy {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 28px;
}

.pe-detail-copy h1 {
    margin: 0;
    font: 800 clamp(30px, 3.4vw, 44px) / 1.08 Manrope, sans-serif;
    letter-spacing: -.04em;
    color: var(--mt-navy, #0a2350);
}

.pe-detail-copy p {
    margin: 0;
    color: #4f6580;
    font-size: 17px;
    line-height: 1.6;
}

.pe-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.pe-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 16px;
    order: 2;
}

.pe-main {
    display: grid;
    gap: 16px;
    order: 1;
}

.pe-facts,
.pe-register,
.pe-block {
    margin: 0;
    padding: 22px;
    border: 1px solid #d9e3ee;
    border-radius: 20px;
    background: #fff;
}

.pe-facts {
    display: grid;
    gap: 16px;
}

.pe-facts dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b6a91;
    font-size: 13.5px;
    font-weight: 700;
}

.pe-facts dt svg {
    width: 17px;
    height: 17px;
}

.pe-facts dd {
    margin: 6px 0 0;
    color: var(--mt-navy, #0a2350);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
}

.pe-facts dd span {
    color: #4f6580;
    font-weight: 400;
}

.pe-facts dd a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #087cff;
    font-weight: 700;
}

.pe-register {
    display: grid;
    gap: 12px;
    background: linear-gradient(160deg, #f4f9ff, #fff);
}

.pe-register h2,
.pe-block h2 {
    margin: 0;
    font: 800 20px / 1.25 Manrope, sans-serif;
    letter-spacing: -.02em;
    color: var(--mt-navy, #0a2350);
}

.pe-register p {
    margin: 0;
    color: #4f6580;
    font-size: 15.5px;
    line-height: 1.55;
}

.pe-register .button-light {
    border: 1px solid #cfdced;
}

.pe-register .button {
    justify-content: center;
    width: 100%;
    min-height: 52px;
    font-size: 16px;
}

.pe-block {
    display: grid;
    gap: 14px;
}

.pe-block > p {
    margin: 0;
    color: #34485f;
    font-size: 16.5px;
    line-height: 1.75;
}

.pe-agenda {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pe-agenda li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #edf3f8;
}

.pe-agenda li:first-child {
    border-top: 0;
    padding-top: 0;
}

.pe-agenda time {
    color: #087cff;
    font-size: 15px;
    font-weight: 800;
}

.pe-agenda strong {
    color: var(--mt-navy, #0a2350);
    font-size: 16px;
}

.pe-agenda p {
    margin: 4px 0 0;
    color: #4f6580;
    font-size: 15px;
    line-height: 1.55;
}

.pe-speakers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pe-speakers li {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f8fd;
}

.pe-speakers strong {
    color: var(--mt-navy, #0a2350);
    font-size: 16px;
}

.pe-speakers span {
    color: #4f6580;
    font-size: 14.5px;
}

.pe-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.pe-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .pe-detail-hero {
        grid-template-columns: 1fr;
    }

    .pe-detail-art {
        min-height: 170px;
    }

    .pe-detail-layout {
        grid-template-columns: 1fr;
    }

    /* On phones the date, place and sign-up come right after the title. */
    .pe-side {
        position: static;
        order: 1;
    }

    .pe-main {
        order: 2;
    }
}

@media (max-width: 640px) {
    .public-events-page .pe-shell {
        padding-top: 100px;
        padding-bottom: 48px;
    }

    .pe-hero h1 {
        font-size: clamp(34px, 10vw, 40px);
    }

    .pe-hero p {
        font-size: 16.5px;
    }

    .pe-section {
        margin-top: 36px;
    }

    .pe-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pe-card-art {
        height: 128px;
    }

    .pe-card-body {
        grid-template-columns: 52px 1fr;
        gap: 12px;
        padding: 16px;
    }

    .pe-detail-copy {
        padding: 20px;
    }

    .pe-detail-copy h1 {
        font-size: 30px;
    }

    .pe-detail-copy p {
        font-size: 16px;
    }

    .pe-facts,
    .pe-register,
    .pe-block {
        padding: 18px;
        border-radius: 18px;
    }

    .pe-agenda li {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }
}
