.jpo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fade_in_show 0.3s ease-out;
    padding: 12px;
}

.jpo-overlay .jpo-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--bold-weight);
}

.jpo-frontpage {
    background-color: var(--surface-container);
    color: var(--on-surface);
    width: 100%;
    max-width: 880px;
    padding: 16px 14px;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    font-family: 'SansSerifFLF', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
}

.jpo-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: var(--on-surface-var);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}


.jpo-frontpage-header {
    text-align: center;
    margin-bottom: 8px;
    padding-top: 8px;
}

.jpo-frontpage-masthead {
    font-size: calc(var(--headline-small-font-size) * 0.95);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: var(--bold-weight);
    border-bottom: 1px solid var(--on-surface-var);
    padding-bottom: 4px;
}

.jpo-frontpage-subhead {
    font-size: calc(var(--body-medium-font-size) * 1.0);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 4px;
    color: var(--secondary);
}

.jpo-frontpage-headline {
    text-align: center;
    text-transform: uppercase;
    font-weight: var(--bold-weight);
    color: var(--primary);
    font-size: calc(var(--display-small-font-size) * 1.0);
    line-height: calc(var(--display-small-line-height) * 1.15);
}

.jpo-frontpage-chapo {
    margin-top: 8px;
    text-align: center;
    font-size: calc(var(--body-large-font-size) * 1.1);
    line-height: calc(var(--body-large-line-height) * 1);
}


.jpo-frontpage-rule {
    margin: 10px 0;
    border-top: 2px solid var(--primary);
}


.jpo-frontpage-body {
    display: block;
    padding: 0 4vw;
}

.jpo-frontpage-col-main {
    padding-right: 0;
    border-right: none;
}

.jpo-frontpage-section-title {
    font-size: calc(var(--headline-small-font-size) * 1.05);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 6px;
    color: var(--secondary);
}

.jpo-frontpage-text {
    font-size: calc(var(--body-large-font-size) * 1.05);
    line-height: calc(var(--body-large-line-height) * 1);
    text-align: center;
    margin-bottom: 6px;
}

.jpo-frontpage-dates {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 4vw;
    padding-right: 4vw;
    gap: unset;
}

.jpo-frontpage-dates-title {
    text-align: center;
    font-size: calc(var(--headline-small-font-size) * 1.05);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: var(--secondary);
}

.jpo-frontpage-dates-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jpo-frontpage-date-item {
    font-size: calc(var(--body-large-font-size) * 1.05);
    line-height: calc(var(--body-large-line-height) * 1.4);
    display: flex;
    justify-content: center;
}

.jpo-frontpage-date-day {
    font-weight: var(--bold-weight);
    text-transform: uppercase;
}

.jpo-frontpage-date-city {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.jpo-frontpage-date-time {
    margin-left: 0.5em;
}

.jpo-frontpage-date-separator {
    margin: 0 0.4em;
}

.jpo-frontpage-footer {
    padding-top: 8px;
    display: flex;
    justify-content: center;
}

.jpo-frontpage-cta {
    font-size: calc(var(--headline-small-font-size) * 1.0);
    line-height: calc(var(--headline-small-line-height) * 1.1);
    padding: 10px 22px;
}

@media screen and (max-width: 480px) {
    .jpo-frontpage {
        padding: 14px 10px;
    }

    .jpo-frontpage-headline {
        font-size: calc(var(--display-small-font-size) * 0.95);
    }

    .jpo-frontpage-chapo,
    .jpo-frontpage-text,
    .jpo-frontpage-date-item {
        font-size: var(--body-large-font-size);
    }
}

@media screen and (min-width: 900px) {
    .jpo-frontpage {
        padding: 20px 32px;
        max-width: 800px;
    }

    .jpo-frontpage-headline {
        font-size: calc(var(--display-medium-font-size) * 0.95);
        line-height: calc(var(--display-medium-line-height) * 1.05);
        margin-top: 12px;
    }

    .jpo-frontpage-chapo {
        font-size: calc(var(--body-large-font-size) * 1.1);
        line-height: calc(var(--body-large-line-height) * 1.5);
    }

    .jpo-frontpage-text,
    .jpo-frontpage-date-item {
        font-size: calc(var(--body-large-font-size) * 1.05);
        line-height: calc(var(--body-large-line-height) * 1.4);
    }

    .jpo-frontpage-cta {
        font-size: calc(var(--headline-small-font-size) * 1.0);
        padding: 10px 24px;
    }
}
