.rgp-public-calendar {
    --rgp-blue: #173f6d;
    --rgp-blue-dark: #14223a;
    --rgp-sage: #a8b48b;
    --rgp-sage-soft: #edf3e9;
    --rgp-orange: #d86e38;
    --rgp-orange-soft: #fff0e5;
    --rgp-cream: #fffaf0;
    --rgp-cream-2: #f8f0df;
    --rgp-card: rgba(255, 255, 255, 0.88);
    --rgp-border: rgba(38, 33, 24, 0.12);
    --rgp-muted: #706a62;
    --rgp-shadow: 0 22px 60px rgba(28, 35, 45, 0.10);

    position: relative;
    overflow: hidden;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 72px) clamp(16px, 3vw, 32px);
    color: var(--rgp-blue-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rgp-public-calendar::before,
.rgp-public-calendar::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.72;
}

.rgp-public-calendar::before {
    width: 320px;
    height: 320px;
    top: 10px;
    right: -120px;
    background: radial-gradient(circle, rgba(168, 180, 139, 0.42), rgba(168, 180, 139, 0));
}

.rgp-public-calendar::after {
    width: 360px;
    height: 360px;
    left: -160px;
    bottom: 50px;
    background: radial-gradient(circle, rgba(216, 110, 56, 0.22), rgba(216, 110, 56, 0));
}

.rgp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(248, 240, 223, 0.78)),
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    box-shadow: var(--rgp-shadow);
}

.rgp-hero::before,
.rgp-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.rgp-hero::before {
    width: 170px;
    height: 170px;
    top: -72px;
    left: -50px;
    background: rgba(244, 179, 127, 0.38);
}

.rgp-hero::after {
    width: 190px;
    height: 190px;
    right: -76px;
    bottom: -90px;
    background: rgba(168, 180, 139, 0.34);
}

.rgp-hero-content,
.rgp-hero-pill {
    position: relative;
    z-index: 1;
}

.rgp-eyebrow {
    margin: 0 0 10px;
    color: var(--rgp-orange);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.rgp-hero h2 {
    max-width: 780px;
    margin: 0 0 14px;
    color: var(--rgp-blue-dark);
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.rgp-intro {
    max-width: 720px;
    margin: 0;
    color: var(--rgp-muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.7;
}

.rgp-hero-pill {
    min-width: 260px;
    padding: 18px 22px;
    border: 1px solid rgba(23, 63, 109, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    text-align: center;
    box-shadow: 0 14px 32px rgba(28, 35, 45, 0.08);
}

.rgp-hero-pill span,
.rgp-hero-pill strong {
    display: block;
}

.rgp-hero-pill span {
    color: var(--rgp-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rgp-hero-pill strong {
    margin-top: 4px;
    color: var(--rgp-orange);
    font-size: 1.1rem;
}

.rgp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 34px;
}

.rgp-info-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--rgp-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 32px rgba(28, 35, 45, 0.06);
}

.rgp-info-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--rgp-orange-soft);
    font-size: 1.1rem;
}

.rgp-info-card p {
    margin: 0 0 2px;
    color: var(--rgp-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rgp-info-card strong {
    display: block;
    color: var(--rgp-blue-dark);
    line-height: 1.35;
}

.rgp-section-heading {
    margin: 0 0 14px;
}

.rgp-section-heading h3 {
    margin: 0;
    color: var(--rgp-blue-dark);
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    letter-spacing: -0.035em;
}

.rgp-card-list {
    display: grid;
    gap: 16px;
}

.rgp-card,
.rgp-empty-card,
.rgp-contact-card {
    border: 1px solid var(--rgp-border);
    border-radius: 28px;
    background: var(--rgp-card);
    box-shadow: 0 18px 50px rgba(28, 35, 45, 0.08);
    backdrop-filter: blur(10px);
}

.rgp-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 24px;
    padding: clamp(20px, 3vw, 30px);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.rgp-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 63, 109, 0.18);
    box-shadow: 0 24px 62px rgba(28, 35, 45, 0.12);
}

.rgp-empty-card {
    padding: 24px;
    color: var(--rgp-muted);
}

.rgp-date {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    color: var(--rgp-orange);
    font-weight: 850;
}

.rgp-date::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 999px;
    background: var(--rgp-orange);
}

.rgp-card h3 {
    margin: 0 0 10px;
    color: var(--rgp-blue-dark);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.rgp-location,
.rgp-note {
    margin: 8px 0 0;
    color: var(--rgp-muted);
    line-height: 1.55;
}

.rgp-card-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
}

.rgp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 850;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.rgp-status-open .rgp-badge {
    color: #203327;
    background: #dcefe3;
}

.rgp-status-low .rgp-badge {
    color: #593615;
    background: #fff0c9;
}

.rgp-status-full .rgp-badge {
    color: #5b2020;
    background: #f3d1d1;
}

.rgp-places {
    margin: 0;
    color: var(--rgp-muted);
}

.rgp-places strong {
    color: var(--rgp-blue-dark);
    font-size: 2rem;
    line-height: 1;
}

.rgp-progress {
    width: min(170px, 100%);
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 63, 109, 0.10);
}

.rgp-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rgp-sage), var(--rgp-orange));
}

.rgp-contact-card {
    display: grid;
    gap: 24px;
    margin: 22px 0 34px;
    padding: clamp(22px, 3vw, 32px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(237, 243, 233, 0.86)),
        radial-gradient(circle at top right, rgba(255, 240, 229, 0.75), rgba(255, 240, 229, 0));
}

.rgp-contact-head h3 {
    margin: 0 0 10px;
    color: var(--rgp-blue-dark);
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    letter-spacing: -0.03em;
}

.rgp-contact-intro,
.rgp-contact-note,
.rgp-contact-text {
    margin: 0;
    color: var(--rgp-muted);
    line-height: 1.65;
}

.rgp-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rgp-contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid rgba(23, 63, 109, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
}

.rgp-contact-icon {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rgp-orange-soft), rgba(237, 243, 233, 0.95));
    font-size: 1.25rem;
}

.rgp-contact-content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.rgp-contact-label {
    margin: 0;
    color: var(--rgp-orange);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rgp-contact-content h4 {
    margin: 0;
    color: var(--rgp-blue-dark);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.rgp-reveal-button {
    appearance: none;
    width: fit-content;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(23, 63, 109, 0.10);
    border-radius: 14px;
    background: var(--rgp-blue-dark);
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    box-shadow: 0 12px 28px rgba(20, 34, 58, 0.16);
}

.rgp-reveal-button:hover,
.rgp-reveal-button:focus-visible {
    transform: translateY(-1px);
    background: var(--rgp-blue);
    box-shadow: 0 16px 36px rgba(20, 34, 58, 0.20);
}

.rgp-reveal-button:focus-visible {
    outline: 2px solid rgba(216, 110, 56, 0.4);
    outline-offset: 2px;
}

.rgp-reveal-button[disabled] {
    cursor: default;
    transform: none;
    background: var(--rgp-sage);
    box-shadow: none;
    opacity: 0.9;
}

.rgp-reveal-output {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px dashed rgba(23, 63, 109, 0.18);
    color: var(--rgp-blue-dark);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.rgp-reveal-output a {
    color: inherit;
    text-decoration: none;
}

.rgp-reveal-output a:hover,
.rgp-reveal-output a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .rgp-hero,
    .rgp-card,
    .rgp-contact-grid {
        grid-template-columns: 1fr;
    }

    .rgp-hero-pill {
        width: fit-content;
        min-width: min(260px, 100%);
        text-align: left;
    }

    .rgp-info-grid {
        grid-template-columns: 1fr;
    }

    .rgp-card-side {
        align-items: flex-start;
        text-align: left;
        border-top: 1px solid var(--rgp-border);
        padding-top: 16px;
    }
}

@media (max-width: 560px) {
    .rgp-public-calendar {
        padding-inline: 12px;
    }

    .rgp-hero,
    .rgp-card,
    .rgp-info-card,
    .rgp-contact-card,
    .rgp-contact-method {
        border-radius: 22px;
    }

    .rgp-hero h2 {
        font-size: clamp(2.2rem, 15vw, 3.6rem);
    }

    .rgp-info-card,
    .rgp-contact-method {
        padding: 15px;
    }

    .rgp-contact-method {
        gap: 12px;
    }

    .rgp-contact-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 14px;
    }
}
