.home-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-about {
    padding: 22px 24px;
}

.home-about__eyebrow,
.home-news__eyebrow,
.home-calendar__eyebrow,
.home-carousel__eyebrow {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.home-about__title,
.home-news__title,
.home-calendar__title,
.home-carousel__title {
    margin: 0 0 12px;
    color: var(--color-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
}

.home-about__text,
.home-carousel__text,
.home-news__card-text,
.home-calendar__card-text,
.home-news__meta,
.home-calendar__meta {
    margin: 0 0 12px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.home-news-calendar__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.home-news,
.home-calendar {
    padding: 22px 24px;
}

.home-news__header,
.home-calendar__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.home-news__link,
.home-calendar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    text-decoration: none;
    color: #f5efdf;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(38, 74, 46, 0.96), rgba(29, 56, 35, 0.98));
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.home-news__link:hover,
.home-calendar__link:hover {
    transform: translateY(-1px);
    border-color: rgba(185, 146, 31, 0.34);
    background: linear-gradient(180deg, rgba(47, 89, 56, 0.98), rgba(34, 65, 41, 1));
}

.home-news__card,
.home-calendar__card {
    padding: 20px;
    border: 1px solid rgba(38, 74, 46, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 232, 214, 0.96));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.home-news__card-title,
.home-calendar__card-title {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .home-news-calendar__grid {
        grid-template-columns: 1fr;
    }
}/* Homepage final polish */
.home-page {
    gap: 14px;
}

.home-about {
    padding: 24px 26px;
    border: 1px solid rgba(38, 74, 46, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 243, 232, 0.95), rgba(236, 227, 207, 0.98));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.home-about__text {
    max-width: 68ch;
}

@media (max-width: 900px) {
    .home-page {
        gap: 12px;
    }

    .home-about {
        padding: 20px 18px;
        border-radius: 18px;
    }
}


/* Homepage news/calendar anchor and theme polish */
#latest-news,
#calendar {
    scroll-margin-top: 22px;
}

.home-news-calendar {
    position: relative;
}

.home-news-calendar__grid {
    align-items: stretch;
}

.home-news,
.home-calendar {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(212, 166, 58, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(36, 20, 24, 0.94), rgba(18, 22, 19, 0.92)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.12), transparent 42%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 22px 46px rgba(0, 0, 0, 0.22);
}

.home-news::before,
.home-calendar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 34%),
        linear-gradient(0deg, rgba(212, 166, 58, 0.08), transparent 46%);
    pointer-events: none;
}

.home-news__header,
.home-calendar__header,
.home-news__body,
.home-calendar__body {
    position: relative;
    z-index: 1;
}

.home-news__eyebrow,
.home-calendar__eyebrow {
    color: #d4a63a;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.home-news__title,
.home-calendar__title {
    color: #f5ead7;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.36);
}

.home-news__list,
.home-calendar__list {
    display: grid;
    gap: 14px;
}

.home-news__card,
.home-calendar__card {
    border-color: rgba(245, 234, 215, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
        rgba(18, 20, 18, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.16);
}

.home-news__meta,
.home-calendar__meta,
.home-calendar__time,
.home-calendar__tag,
.home-calendar__detail-label {
    color: rgba(245, 234, 215, 0.70);
}

.home-news__card-title,
.home-calendar__card-title {
    color: #ffffff;
}

.home-news__card-text,
.home-calendar__card-text,
.home-calendar__detail-text {
    color: rgba(245, 234, 215, 0.82);
}

.home-calendar__toggle {
    color: #f5ead7;
    border-color: rgba(212, 166, 58, 0.24);
    background: rgba(0, 0, 0, 0.18);
}

.home-calendar__toggle:hover,
.home-calendar__toggle:focus-visible {
    border-color: rgba(212, 166, 58, 0.42);
    background: rgba(212, 166, 58, 0.12);
}

@media (max-width: 900px) {
    #latest-news,
    #calendar {
        scroll-margin-top: 74px;
    }

    .home-news,
    .home-calendar {
        padding: 22px 18px;
        border-radius: 20px;
    }
}

/* Premium homepage news/calendar refresh */
.home-section-heading {
    max-width: 860px;
    margin: 0 0 18px;
    padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 30px);
    border: 1px solid rgba(212, 166, 58, 0.20);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(245, 234, 215, 0.94), rgba(220, 229, 209, 0.74)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.20), transparent 42%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 18px 42px rgba(0, 0, 0, 0.14);
}

.home-section-heading__eyebrow,
.home-panel-premium__eyebrow {
    margin: 0 0 8px;
    color: #d4a63a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.home-section-heading__title {
    margin: 0;
    color: #173721;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.6vw, 3.8rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.home-section-heading__text {
    max-width: 62ch;
    margin: 12px 0 0;
    color: rgba(23, 55, 33, 0.76);
    font-size: clamp(1rem, 1.25vw, 1.08rem);
    line-height: 1.65;
}

.home-news-calendar {
    position: relative;
}

.home-news-calendar::before {
    content: "";
    position: absolute;
    inset: 36px -12px auto;
    height: 220px;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(212, 166, 58, 0.18), transparent 34%),
        radial-gradient(circle at 78% 34%, rgba(47, 89, 56, 0.20), transparent 36%);
    filter: blur(10px);
    opacity: 0.85;
}

.home-news-calendar__grid {
    position: relative;
    z-index: 1;
    gap: clamp(16px, 2vw, 24px);
    align-items: start;
}

.home-panel-premium {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100%;
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid rgba(212, 166, 58, 0.24);
    border-radius: 28px;
    background:
        linear-gradient(150deg, rgba(34, 17, 23, 0.94), rgba(18, 26, 20, 0.94) 56%, rgba(18, 36, 22, 0.92)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.20), transparent 38%),
        radial-gradient(circle at bottom right, rgba(47, 89, 56, 0.26), transparent 42%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        0 28px 58px rgba(0, 0, 0, 0.28);
}

.home-panel-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(0deg, rgba(212, 166, 58, 0.10), transparent 54%);
    pointer-events: none;
}

.home-panel-premium::after {
    content: "";
    position: absolute;
    top: 0;
    right: 28px;
    left: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 234, 215, 0.42), transparent);
    pointer-events: none;
}

.home-panel-premium__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.home-panel-premium__title {
    margin: 0;
    color: #fff7e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 2.6vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.home-panel-premium__count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    color: rgba(255, 247, 232, 0.88);
    border: 1px solid rgba(212, 166, 58, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-feed-list {
    display: grid;
    gap: 14px;
}

.home-feed-card {
    position: relative;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
    padding: clamp(16px, 2vw, 22px);
    border: 1px solid rgba(245, 234, 215, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
        rgba(10, 12, 11, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 14px 34px rgba(0, 0, 0, 0.18);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.home-feed-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 166, 58, 0.30);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
        rgba(10, 12, 11, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 20px 42px rgba(0, 0, 0, 0.24);
}

.home-feed-card--featured {
    border-color: rgba(212, 166, 58, 0.32);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.13), transparent 40%),
        rgba(10, 12, 11, 0.32);
}

.home-feed-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: 72px;
    border: 1px solid rgba(212, 166, 58, 0.30);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(212, 166, 58, 0.20), rgba(212, 166, 58, 0.055)),
        rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 22px rgba(0, 0, 0, 0.20);
}

.home-feed-card__date-month {
    color: #d4a63a;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-feed-card__date-day {
    margin-top: 4px;
    color: #fff7e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 0.9;
}

.home-feed-card__content {
    min-width: 0;
}

.home-feed-card__topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
}

.home-feed-card__label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: #122318;
    border-radius: 999px;
    background: linear-gradient(180deg, #e2b94e, #c9992d);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.10em;
    line-height: 1;
    text-transform: uppercase;
}

.home-feed-card__meta {
    color: rgba(245, 234, 215, 0.66);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-feed-card__title {
    margin: 0;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.32rem, 1.75vw, 1.85rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.home-feed-card__text {
    margin: 10px 0 0;
    color: rgba(245, 234, 215, 0.82);
    font-size: 0.98rem;
    line-height: 1.58;
}

.home-event-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.home-event-card__location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(245, 234, 215, 0.78);
    font-size: 0.9rem;
    font-weight: 750;
}

.home-event-card__image-button,
.home-calendar__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    color: #fff7e8;
    border: 1px solid rgba(212, 166, 58, 0.30);
    border-radius: 999px;
    background: rgba(212, 166, 58, 0.10);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-event-card__image-button:hover,
.home-event-card__image-button:focus-visible,
.home-calendar__toggle:hover,
.home-calendar__toggle:focus-visible {
    border-color: rgba(212, 166, 58, 0.50);
    background: rgba(212, 166, 58, 0.18);
}

.home-calendar__image-panel {
    margin-top: 16px;
}

.home-calendar__image-wrap {
    overflow: hidden;
    border: 1px solid rgba(245, 234, 215, 0.15);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.16);
}

.home-calendar__image {
    display: block;
    width: 100%;
    height: auto;
}

.home-feed-card--empty {
    min-height: 180px;
    align-items: center;
}

@media (max-width: 900px) {
    .home-section-heading {
        margin-bottom: 14px;
        border-radius: 22px;
    }

    .home-news-calendar__grid {
        grid-template-columns: 1fr;
    }

    .home-panel-premium {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .home-panel-premium__header {
        flex-direction: column;
        gap: 10px;
    }

    .home-panel-premium__count {
        min-height: 30px;
    }

    .home-feed-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
        border-radius: 18px;
    }

    .home-feed-card__date {
        min-width: 56px;
        min-height: 64px;
        border-radius: 15px;
    }

    .home-feed-card__date-day {
        font-size: 1.65rem;
    }

    .home-feed-card__text {
        font-size: 0.94rem;
    }
}

@media (max-width: 520px) {
    .home-feed-card {
        grid-template-columns: 1fr;
    }

    .home-feed-card__date {
        width: 74px;
        min-height: 58px;
        flex-direction: row;
        gap: 6px;
    }

    .home-feed-card__date-day {
        margin-top: 0;
    }

    .home-feed-card__topline {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Homepage news/calendar theme refinement */
.home-news-calendar {
    margin-top: clamp(18px, 3vw, 34px);
}

.home-news-calendar::before {
    opacity: 0.55;
    background:
        radial-gradient(circle at 22% 16%, rgba(212, 166, 58, 0.18), transparent 34%),
        radial-gradient(circle at 72% 30%, rgba(23, 55, 33, 0.18), transparent 38%);
}

.home-news-calendar__grid {
    gap: clamp(16px, 2vw, 22px);
}

.home-panel-premium {
    color: #1c2f22;
    border-color: rgba(212, 166, 58, 0.30);
    background:
        linear-gradient(145deg, rgba(246, 241, 226, 0.91), rgba(220, 229, 209, 0.78)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.16), transparent 38%),
        radial-gradient(circle at bottom right, rgba(23, 55, 33, 0.18), transparent 44%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 22px 48px rgba(8, 20, 13, 0.22);
}

.home-panel-premium::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.30), transparent 34%),
        linear-gradient(0deg, rgba(23, 55, 33, 0.06), transparent 58%);
}

.home-panel-premium::after {
    background: linear-gradient(90deg, transparent, rgba(212, 166, 58, 0.48), transparent);
}

.home-panel-premium__eyebrow {
    color: #b08322;
    text-shadow: none;
}

.home-panel-premium__title {
    color: #173721;
    text-shadow: none;
}

.home-panel-premium__count {
    color: #173721;
    border-color: rgba(23, 55, 33, 0.18);
    background: rgba(255, 255, 255, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.home-feed-card {
    color: #1c2f22;
    border-color: rgba(23, 55, 33, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 252, 244, 0.84), rgba(239, 235, 218, 0.72)),
        rgba(255, 255, 255, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 12px 28px rgba(8, 20, 13, 0.13);
}

.home-feed-card:hover {
    border-color: rgba(212, 166, 58, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 252, 244, 0.92), rgba(236, 232, 214, 0.80)),
        rgba(255, 255, 255, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.68),
        0 18px 38px rgba(8, 20, 13, 0.18);
}

.home-feed-card--featured {
    border-color: rgba(212, 166, 58, 0.34);
    background:
        linear-gradient(150deg, rgba(255, 252, 244, 0.94), rgba(226, 232, 214, 0.76)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.12), transparent 40%);
}

.home-feed-card__date {
    border-color: rgba(23, 55, 33, 0.18);
    background:
        linear-gradient(180deg, rgba(212, 166, 58, 0.24), rgba(212, 166, 58, 0.10)),
        rgba(255, 255, 255, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 8px 20px rgba(8, 20, 13, 0.13);
}

.home-feed-card__date-month {
    color: #9a741d;
}

.home-feed-card__date-day {
    color: #173721;
    text-shadow: none;
}

.home-feed-card__label {
    color: #172817;
    background: linear-gradient(180deg, #e7c35d, #c99b31);
}

.home-feed-card__meta,
.home-event-card__location {
    color: rgba(23, 55, 33, 0.66);
}

.home-feed-card__title {
    color: #173721;
    text-shadow: none;
}

.home-feed-card__text {
    color: rgba(23, 55, 33, 0.78);
}

.home-event-card__image-button,
.home-calendar__toggle {
    color: #173721;
    border-color: rgba(23, 55, 33, 0.18);
    background: rgba(255, 255, 255, 0.36);
}

.home-event-card__image-button:hover,
.home-event-card__image-button:focus-visible,
.home-calendar__toggle:hover,
.home-calendar__toggle:focus-visible {
    border-color: rgba(212, 166, 58, 0.42);
    background: rgba(212, 166, 58, 0.16);
}

.home-calendar__image-wrap {
    border-color: rgba(23, 55, 33, 0.14);
    background: rgba(255, 255, 255, 0.34);
}

@media (max-width: 900px) {
    .home-news-calendar {
        margin-top: 18px;
    }

    .home-panel-premium {
        padding: 18px 16px;
    }
}

/* Homepage news/calendar clean glass correction */
.home-news-calendar {
    margin-top: clamp(12px, 2vw, 22px);
}

.home-news-calendar::before {
    display: none;
}

.home-news-calendar__grid {
    gap: clamp(14px, 1.8vw, 20px);
    align-items: start;
}

.home-panel-premium,
.home-news.site-panel,
.home-calendar.site-panel {
    min-height: 0;
    height: auto;
    padding: clamp(18px, 2vw, 24px);
    color: #f5ead7;
    border: 1px solid rgba(245, 234, 215, 0.20);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(245, 234, 215, 0.08), rgba(245, 234, 215, 0.025)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.10), transparent 38%),
        rgba(14, 25, 19, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-panel-premium::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.22;
}

.home-panel-premium::after {
    right: 18px;
    left: 18px;
    background: linear-gradient(90deg, transparent, rgba(212, 166, 58, 0.35), transparent);
}

.home-panel-premium__header {
    align-items: flex-start;
    margin-bottom: 16px;
}

.home-panel-premium__eyebrow {
    margin-bottom: 7px;
    color: #d4a63a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

.home-panel-premium__title {
    color: #fff7e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.home-panel-premium__count {
    min-height: 28px;
    padding: 0 10px;
    color: rgba(255, 247, 232, 0.78);
    border-color: rgba(245, 234, 215, 0.20);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    box-shadow: none;
}

.home-feed-list {
    gap: 12px;
}

.home-feed-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: clamp(14px, 1.7vw, 18px);
    color: #173721;
    border: 1px solid rgba(245, 234, 215, 0.58);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 252, 244, 0.92), rgba(234, 239, 225, 0.82)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.10), transparent 42%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 10px 22px rgba(0, 0, 0, 0.12);
    transform: none;
}

.home-feed-card:hover {
    transform: none;
    border-color: rgba(212, 166, 58, 0.40);
    background:
        linear-gradient(135deg, rgba(255, 252, 244, 0.96), rgba(234, 239, 225, 0.88)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.12), transparent 42%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.70),
        0 12px 24px rgba(0, 0, 0, 0.14);
}

.home-feed-card--featured {
    border-color: rgba(245, 234, 215, 0.62);
    background:
        linear-gradient(135deg, rgba(255, 252, 244, 0.94), rgba(234, 239, 225, 0.84)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.11), transparent 42%);
}

.home-feed-card__date {
    min-width: 54px;
    min-height: 58px;
    border-color: rgba(23, 55, 33, 0.12);
    border-radius: 13px;
    background:
        linear-gradient(180deg, rgba(245, 234, 215, 0.86), rgba(219, 226, 207, 0.78));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 8px 14px rgba(0, 0, 0, 0.08);
}

.home-feed-card__date-month {
    color: #a47a22;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.home-feed-card__date-day {
    color: #173721;
    font-size: 1.55rem;
    text-shadow: none;
}

.home-feed-card__topline {
    margin-bottom: 6px;
}

.home-feed-card__label {
    min-height: 22px;
    padding: 0 8px;
    color: #173721;
    border: 1px solid rgba(212, 166, 58, 0.18);
    background: rgba(212, 166, 58, 0.28);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.home-feed-card__meta,
.home-event-card__location {
    color: rgba(23, 55, 33, 0.58);
    font-size: 0.78rem;
}

.home-feed-card__title {
    color: #173721;
    font-size: clamp(1.08rem, 1.35vw, 1.34rem);
    line-height: 1.14;
    text-shadow: none;
}

.home-feed-card__text {
    margin-top: 7px;
    color: rgba(23, 55, 33, 0.72);
    font-size: 0.9rem;
    line-height: 1.48;
}

.home-event-card__actions {
    margin-top: 10px;
}

.home-event-card__image-button,
.home-calendar__toggle {
    min-height: 30px;
    padding: 0 10px;
    color: #173721;
    border-color: rgba(23, 55, 33, 0.14);
    background: rgba(255, 255, 255, 0.44);
    font-size: 0.68rem;
}

.home-feed-card--empty {
    min-height: 124px;
}

@media (max-width: 900px) {
    .home-panel-premium,
    .home-news.site-panel,
    .home-calendar.site-panel {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .home-panel-premium__header {
        flex-direction: row;
        align-items: flex-start;
    }

    .home-feed-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        border-radius: 15px;
    }

    .home-feed-card__date {
        min-width: 50px;
        min-height: 54px;
    }

    .home-feed-card__date-day {
        font-size: 1.35rem;
    }
}

@media (max-width: 520px) {
    .home-panel-premium__header {
        flex-direction: column;
        gap: 8px;
    }

    .home-feed-card {
        grid-template-columns: 1fr;
    }

    .home-feed-card__date {
        width: 70px;
        min-height: 46px;
        flex-direction: row;
        gap: 6px;
    }
}

/* Calendar category/month/year filters */
.home-calendar__filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: -2px 0 16px;
}

.home-calendar__filter-field {
    min-width: 0;
}

.home-calendar__filter-label {
    display: block;
    margin: 0 0 6px;
    color: rgba(245, 234, 215, 0.72);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-calendar__filter-select {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    color: #173721;
    border: 1px solid rgba(245, 234, 215, 0.48);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(234, 239, 225, 0.86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 8px 16px rgba(0, 0, 0, 0.10);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 750;
}

.home-calendar__filter-select:focus-visible {
    outline: 2px solid rgba(212, 166, 58, 0.78);
    outline-offset: 2px;
}

.home-calendar__filtered-empty[hidden],
[data-calendar-event-card][hidden] {
    display: none !important;
}

@media (max-width: 820px) {
    .home-calendar__filters {
        grid-template-columns: 1fr;
    }
}

/* Homepage News/Calendar readability pass */
.home-news.site-panel,
.home-calendar.site-panel,
.home-panel-premium {
    border-color: rgba(245, 234, 215, 0.34);
    background:
        linear-gradient(135deg, rgba(18, 37, 26, 0.74), rgba(29, 51, 37, 0.64)),
        radial-gradient(circle at top left, rgba(212, 166, 58, 0.12), transparent 38%),
        rgba(14, 25, 19, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 32px rgba(0, 0, 0, 0.18);
}

.home-news__eyebrow,
.home-calendar__eyebrow,
.home-panel-premium__eyebrow {
    color: #f0c85a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.home-news__title,
.home-calendar__title,
.home-panel-premium__title {
    color: #fff8e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    line-height: 1.08;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.home-news__card,
.home-calendar__card,
.home-feed-card {
    color: #102319;
    border-color: rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(135deg, rgba(255, 252, 243, 0.96), rgba(238, 242, 228, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 10px 22px rgba(0, 0, 0, 0.14);
}

.home-news__card:hover,
.home-calendar__card:hover,
.home-feed-card:hover {
    border-color: rgba(240, 200, 90, 0.58);
    background:
        linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(241, 246, 233, 0.95));
}

.home-news__meta,
.home-calendar__meta,
.home-feed-card__meta {
    color: #405342;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.045em;
}

.home-news__card-title,
.home-calendar__card-title,
.home-feed-card__title {
    color: #102319;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.22rem, 1.65vw, 1.55rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.home-news__card-text,
.home-calendar__card-text,
.home-calendar__detail-text,
.home-feed-card__text {
    color: #263a2c;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1rem, 1.18vw, 1.1rem);
    font-weight: 500;
    line-height: 1.62;
}

.home-calendar__detail-label,
.home-calendar__tag,
.home-feed-card__label {
    color: #102319;
    background: rgba(240, 200, 90, 0.42);
    border-color: rgba(156, 113, 26, 0.22);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
}

.home-calendar__filters {
    gap: 12px;
}

.home-calendar__filter-label {
    color: #fff4d7;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.36);
}

.home-calendar__filter-select {
    min-height: 44px;
    color: #102319;
    border-color: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(240, 245, 232, 0.95));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 750;
}

.home-calendar__filter-select:focus-visible,
.home-calendar__toggle:focus-visible,
.home-news__read-more:focus-visible {
    outline: 3px solid rgba(240, 200, 90, 0.95);
    outline-offset: 3px;
}

.home-news__read-more,
.home-calendar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 12px;
    padding: 0 14px;
    color: #102319;
    border: 1px solid rgba(156, 113, 26, 0.24);
    border-radius: 999px;
    background: rgba(240, 200, 90, 0.42);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.home-news__read-more:hover,
.home-calendar__toggle:hover {
    background: rgba(240, 200, 90, 0.58);
}

.home-calendar__card-title + .home-calendar__details,
.home-calendar__details {
    border-color: rgba(16, 35, 25, 0.16);
}

@media (max-width: 900px) {
    .home-news.site-panel,
    .home-calendar.site-panel,
    .home-panel-premium {
        padding: 18px 16px;
    }

    .home-news__card,
    .home-calendar__card,
    .home-feed-card {
        padding: 16px;
    }

    .home-news__card-text,
    .home-calendar__card-text,
    .home-calendar__detail-text,
    .home-feed-card__text {
        font-size: 1.02rem;
        line-height: 1.65;
    }

    .home-calendar__filter-select {
        min-height: 46px;
        font-size: 1.02rem;
    }
}

/* Homepage News/Calendar stronger readability */
.home-news.site-panel,
.home-calendar.site-panel,
.home-panel-premium {
    background:
        linear-gradient(135deg, rgba(32, 66, 43, 0.70), rgba(47, 83, 56, 0.58)),
        radial-gradient(circle at top left, rgba(240, 200, 90, 0.16), transparent 38%),
        rgba(20, 38, 27, 0.50);
}

.home-news__title,
.home-calendar__title,
.home-panel-premium__title {
    color: #fff9e8;
    font-weight: 900;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.56),
        0 0 1px rgba(255, 255, 255, 0.45);
}

.home-news__eyebrow,
.home-calendar__eyebrow,
.home-panel-premium__eyebrow,
.home-calendar__filter-label {
    color: #ffd86a;
    font-weight: 950;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.62),
        0 0 1px rgba(255, 255, 255, 0.35);
}

.home-news__card,
.home-calendar__card,
.home-feed-card {
    border-color: rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(135deg, rgba(255, 254, 248, 0.985), rgba(244, 249, 236, 0.955));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 24px rgba(0, 0, 0, 0.16);
}

.home-news__meta,
.home-calendar__meta,
.home-feed-card__meta {
    color: #1b3324;
    font-weight: 950;
}

.home-news__card-title,
.home-calendar__card-title,
.home-feed-card__title {
    color: #0b1d13;
    font-weight: 950;
}

.home-news__card-text,
.home-calendar__card-text,
.home-calendar__detail-text,
.home-feed-card__text {
    color: #14291c;
    font-weight: 750;
}

.home-calendar__filter-select {
    color: #0b1d13;
    background: linear-gradient(180deg, rgba(255, 254, 248, 1), rgba(245, 249, 238, 0.98));
    font-weight: 900;
}

.home-calendar__tag,
.home-calendar__detail-label,
.home-feed-card__label {
    color: #0b1d13;
    font-weight: 950;
}

@media (max-width: 900px) {
    .home-news__card-text,
    .home-calendar__card-text,
    .home-calendar__detail-text,
    .home-feed-card__text {
        font-weight: 800;
    }
}

/* Homepage News/Calendar title readability */
.home-news__title,
.home-calendar__title,
.home-panel-premium__title {
    color: #fff7dc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.68),
        0 0 1px rgba(0, 0, 0, 0.85);
}

.home-news__eyebrow + .home-news__title,
.home-calendar__eyebrow + .home-calendar__title {
    margin-top: 6px;
}

/* Homepage News/Calendar theme match pass */
.home-news.site-panel,
.home-calendar.site-panel,
.home-panel-premium {
    border: 1px solid rgba(241, 233, 214, 0.42);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(214, 223, 212, 0.18), rgba(153, 171, 157, 0.14)),
        linear-gradient(180deg, rgba(34, 51, 41, 0.52), rgba(49, 67, 55, 0.44)),
        rgba(28, 41, 34, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 32px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-news__eyebrow,
.home-calendar__eyebrow,
.home-panel-premium__eyebrow {
    color: #e2bb53;
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.42);
}

.home-news__title,
.home-calendar__title,
.home-panel-premium__title {
    color: #eef0e7;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.32);
}

.home-news__card,
.home-calendar__card,
.home-feed-card {
    border: 1px solid rgba(233, 237, 228, 0.30);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(205, 219, 205, 0.26), rgba(171, 191, 172, 0.18)),
        rgba(52, 73, 59, 0.30);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.10);
}

.home-news__card:hover,
.home-calendar__card:hover,
.home-feed-card:hover {
    border-color: rgba(233, 237, 228, 0.42);
    background:
        linear-gradient(135deg, rgba(212, 225, 212, 0.28), rgba(178, 196, 178, 0.21)),
        rgba(55, 77, 62, 0.34);
}

.home-news__meta,
.home-calendar__meta,
.home-feed-card__meta {
    color: rgba(239, 241, 232, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
}

.home-news__card-title,
.home-calendar__card-title,
.home-feed-card__title {
    color: #f7f7f2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.home-news__card-text,
.home-calendar__card-text,
.home-calendar__detail-text,
.home-feed-card__text {
    color: rgba(239, 241, 232, 0.96);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.home-calendar__details,
.home-calendar__card-title + .home-calendar__details {
    border-color: rgba(241, 233, 214, 0.16);
}

.home-calendar__filter-label {
    color: #f0d37a;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.home-calendar__filter-select {
    min-height: 42px;
    color: #243427;
    border: 1px solid rgba(237, 233, 220, 0.78);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(250, 248, 241, 0.96), rgba(229, 232, 220, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 4px 10px rgba(0, 0, 0, 0.08);
}

.home-calendar__filter-select option {
    color: #243427;
    background: #f5f3eb;
}

.home-news__read-more,
.home-calendar__toggle,
.home-calendar__tag,
.home-calendar__detail-label,
.home-feed-card__label {
    color: #233327;
    border-color: rgba(169, 126, 37, 0.26);
    background: rgba(226, 187, 83, 0.52);
}

.home-news__read-more:hover,
.home-calendar__toggle:hover {
    background: rgba(226, 187, 83, 0.66);
}

@media (max-width: 900px) {
    .home-news.site-panel,
    .home-calendar.site-panel,
    .home-panel-premium {
        border-radius: 20px;
    }

    .home-news__card,
    .home-calendar__card,
    .home-feed-card {
        border-radius: 16px;
    }
}

/* Homepage News/Calendar card contrast pass */
.home-news.site-panel,
.home-calendar.site-panel,
.home-panel-premium {
    background:
        linear-gradient(135deg, rgba(214, 223, 212, 0.16), rgba(153, 171, 157, 0.12)),
        linear-gradient(180deg, rgba(36, 55, 44, 0.50), rgba(52, 70, 58, 0.42)),
        rgba(28, 41, 34, 0.32);
}

.home-news__card,
.home-calendar__card,
.home-feed-card {
    border-color: rgba(255, 249, 232, 0.62);
    background:
        linear-gradient(135deg, rgba(247, 241, 220, 0.86), rgba(224, 231, 211, 0.78)),
        rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 10px 20px rgba(0, 0, 0, 0.12);
}

.home-news__card:hover,
.home-calendar__card:hover,
.home-feed-card:hover {
    border-color: rgba(255, 249, 232, 0.76);
    background:
        linear-gradient(135deg, rgba(250, 245, 228, 0.92), rgba(230, 236, 218, 0.84)),
        rgba(255, 255, 255, 0.28);
}

.home-news__meta,
.home-calendar__meta,
.home-feed-card__meta {
    color: #203224;
    text-shadow: none;
}

.home-news__card-title,
.home-calendar__card-title,
.home-feed-card__title {
    color: #102018;
    text-shadow: none;
}

.home-news__card-text,
.home-calendar__card-text,
.home-calendar__detail-text,
.home-feed-card__text {
    color: #213527;
    text-shadow: none;
}

.home-calendar__details,
.home-calendar__card-title + .home-calendar__details {
    border-color: rgba(32, 50, 36, 0.20);
}

.home-calendar__filter-select {
    background:
        linear-gradient(180deg, rgba(255, 250, 235, 0.98), rgba(236, 238, 225, 0.96));
}

.home-calendar__eyebrow,
.home-news__eyebrow,
.home-panel-premium__eyebrow,
.home-calendar__filter-label {
    color: #f0ca5f;
}

@media (max-width: 900px) {
    .home-news__card,
    .home-calendar__card,
    .home-feed-card {
        background:
            linear-gradient(135deg, rgba(250, 244, 226, 0.90), rgba(227, 234, 215, 0.84)),
            rgba(255, 255, 255, 0.24);
    }
}

/* Homepage News/Calendar sidebar-style visual pass */
.home-news.site-panel,
.home-calendar.site-panel,
.home-panel-premium {
    border: 1px solid rgba(255, 248, 226, 0.58);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(244, 239, 218, 0.54), rgba(214, 224, 205, 0.40)),
        radial-gradient(circle at top left, rgba(255, 245, 210, 0.18), transparent 40%),
        rgba(230, 229, 211, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 16px 34px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.home-news.site-panel::before,
.home-calendar.site-panel::before,
.home-panel-premium::before {
    opacity: 0.14;
}

.home-news__eyebrow,
.home-calendar__eyebrow,
.home-panel-premium__eyebrow,
.home-calendar__filter-label {
    color: #b78218;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28),
        0 1px 4px rgba(0, 0, 0, 0.18);
}

.home-news__title,
.home-calendar__title,
.home-panel-premium__title {
    color: #1c3524;
    font-weight: 900;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.32);
}

.home-news__card,
.home-calendar__card,
.home-feed-card {
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 252, 239, 0.70), rgba(226, 235, 217, 0.56)),
        rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 8px 18px rgba(0, 0, 0, 0.10);
}

.home-news__card:hover,
.home-calendar__card:hover,
.home-feed-card:hover {
    border-color: rgba(255, 255, 255, 0.70);
    background:
        linear-gradient(135deg, rgba(255, 253, 243, 0.78), rgba(231, 239, 222, 0.64)),
        rgba(255, 255, 255, 0.24);
}

.home-news__meta,
.home-calendar__meta,
.home-feed-card__meta {
    color: #294331;
    font-weight: 950;
    text-shadow: none;
}

.home-news__card-title,
.home-calendar__card-title,
.home-feed-card__title {
    color: #102419;
    font-weight: 950;
    text-shadow: none;
}

.home-news__card-text,
.home-calendar__card-text,
.home-calendar__detail-text,
.home-feed-card__text {
    color: #254130;
    font-weight: 800;
    text-shadow: none;
}

.home-calendar__details,
.home-calendar__card-title + .home-calendar__details {
    border-color: rgba(31, 56, 39, 0.18);
}

.home-calendar__filter-select {
    min-height: 42px;
    color: #17301f;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 253, 244, 0.96), rgba(236, 240, 226, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.70),
        0 5px 12px rgba(0, 0, 0, 0.09);
}

.home-news__read-more,
.home-calendar__toggle,
.home-calendar__tag,
.home-calendar__detail-label,
.home-feed-card__label {
    color: #17301f;
    border-color: rgba(183, 130, 24, 0.26);
    background: rgba(218, 176, 73, 0.44);
}

@media (max-width: 900px) {
    .home-news.site-panel,
    .home-calendar.site-panel,
    .home-panel-premium {
        border-radius: 21px;
        background:
            linear-gradient(135deg, rgba(244, 239, 218, 0.58), rgba(214, 224, 205, 0.44)),
            rgba(230, 229, 211, 0.30);
    }
}

/* Homepage News/Calendar final transparent navy-green pass */
.home-news.site-panel,
.home-calendar.site-panel,
.home-panel-premium {
    border: 2px solid rgba(232, 229, 211, 0.74);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(24, 49, 45, 0.62), rgba(35, 65, 52, 0.54)),
        rgba(20, 40, 38, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 16px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-news__eyebrow,
.home-calendar__eyebrow,
.home-panel-premium__eyebrow,
.home-calendar__filter-label {
    color: #e1b949;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.17em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
}

.home-news__title,
.home-calendar__title,
.home-panel-premium__title {
    color: #07120d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.24),
        0 0 1px rgba(255, 255, 255, 0.38);
}

.home-news__card,
.home-calendar__card,
.home-feed-card {
    border: 1px solid rgba(232, 229, 211, 0.58);
    border-radius: 17px;
    background:
        linear-gradient(135deg, rgba(235, 239, 224, 0.36), rgba(210, 224, 207, 0.26)),
        rgba(237, 240, 226, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 18px rgba(0, 0, 0, 0.10);
}

.home-news__card:hover,
.home-calendar__card:hover,
.home-feed-card:hover {
    border-color: rgba(232, 229, 211, 0.72);
    background:
        linear-gradient(135deg, rgba(238, 242, 228, 0.44), rgba(214, 228, 211, 0.32)),
        rgba(237, 240, 226, 0.22);
}

.home-news__meta,
.home-calendar__meta,
.home-feed-card__meta {
    color: #07120d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.94rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-shadow: none;
}

.home-news__card-title,
.home-calendar__card-title,
.home-feed-card__title {
    color: #07120d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.12rem, 1.45vw, 1.38rem);
    font-weight: 950;
    line-height: 1.22;
    text-shadow: none;
}

.home-news__card-text,
.home-calendar__card-text,
.home-calendar__detail-text,
.home-feed-card__text {
    color: #07120d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(0.98rem, 1.12vw, 1.08rem);
    font-weight: 850;
    line-height: 1.55;
    text-shadow: none;
}

.home-calendar__details,
.home-calendar__card-title + .home-calendar__details {
    border-color: rgba(7, 18, 13, 0.20);
}

.home-calendar__filter-select {
    min-height: 42px;
    color: #07120d;
    border: 1px solid rgba(232, 229, 211, 0.74);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(248, 246, 236, 0.92), rgba(225, 232, 219, 0.86));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.46),
        0 5px 12px rgba(0, 0, 0, 0.10);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.96rem;
    font-weight: 900;
}

.home-calendar__filter-select option {
    color: #07120d;
    background: #f2f1e7;
}

.home-news__read-more,
.home-calendar__toggle,
.home-calendar__tag,
.home-calendar__detail-label,
.home-feed-card__label {
    color: #07120d;
    border-color: rgba(225, 185, 73, 0.44);
    background: rgba(225, 185, 73, 0.48);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 900;
}

@media (max-width: 900px) {
    .home-news.site-panel,
    .home-calendar.site-panel,
    .home-panel-premium {
        border-width: 2px;
        border-radius: 20px;
        background:
            linear-gradient(135deg, rgba(24, 49, 45, 0.66), rgba(35, 65, 52, 0.58)),
            rgba(20, 40, 38, 0.52);
    }

    .home-news__card,
    .home-calendar__card,
    .home-feed-card {
        border-radius: 16px;
        background:
            linear-gradient(135deg, rgba(235, 239, 224, 0.42), rgba(210, 224, 207, 0.30)),
            rgba(237, 240, 226, 0.22);
    }
}

/* Homepage News/Calendar heading font fix */
.home-news__title,
.home-calendar__title,
.home-panel-premium__title {
    color: #f7f4e8;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.42rem, 2vw, 1.9rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.42);
}

.home-news__eyebrow,
.home-calendar__eyebrow,
.home-panel-premium__eyebrow {
    color: #e6bd4f;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
}

.home-calendar__filter-label {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

@media (max-width: 900px) {
    .home-news__title,
    .home-calendar__title,
    .home-panel-premium__title {
        font-size: clamp(1.32rem, 3vw, 1.7rem);
    }
}

/* Homepage News/Calendar container image backgrounds */
.home-news.site-panel,
.home-calendar.site-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 2px solid rgba(236, 229, 207, 0.82);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(16, 37, 39, 0.74), rgba(27, 54, 47, 0.66)),
        rgba(13, 31, 34, 0.66);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 16px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-news.site-panel::before,
.home-calendar.site-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.38;
    pointer-events: none;
}

.home-news.site-panel::before {
    background-image: url("/assets/images/container3.png");
}

.home-calendar.site-panel::before {
    background-image: url("/assets/images/container5.png");
}

.home-news.site-panel::after,
.home-calendar.site-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(6, 20, 22, 0.34), rgba(12, 31, 26, 0.22)),
        radial-gradient(circle at top left, rgba(225, 185, 73, 0.12), transparent 42%);
    pointer-events: none;
}

.home-news.site-panel > *,
.home-calendar.site-panel > * {
    position: relative;
    z-index: 1;
}

.home-news__eyebrow,
.home-calendar__eyebrow,
.home-panel-premium__eyebrow,
.home-calendar__filter-label {
    color: #f0c75a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.62);
}

.home-news__title,
.home-calendar__title,
.home-panel-premium__title {
    color: #fff8e5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.70),
        0 0 1px rgba(0, 0, 0, 0.80);
}

.home-news__card,
.home-calendar__card,
.home-feed-card {
    border: 1px solid rgba(255, 252, 239, 0.72);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(247, 244, 232, 0.78), rgba(220, 231, 215, 0.66)),
        rgba(255, 255, 255, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 9px 18px rgba(0, 0, 0, 0.14);
}

.home-news__card:hover,
.home-calendar__card:hover,
.home-feed-card:hover {
    border-color: rgba(255, 252, 239, 0.88);
    background:
        linear-gradient(135deg, rgba(250, 247, 236, 0.84), rgba(226, 237, 221, 0.72)),
        rgba(255, 255, 255, 0.32);
}

.home-news__meta,
.home-calendar__meta,
.home-feed-card__meta {
    color: #07120d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-shadow: none;
}

.home-news__card-title,
.home-calendar__card-title,
.home-feed-card__title {
    color: #07120d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.12rem, 1.45vw, 1.38rem);
    font-weight: 950;
    line-height: 1.22;
    text-shadow: none;
}

.home-news__card-text,
.home-calendar__card-text,
.home-calendar__detail-text,
.home-feed-card__text {
    color: #07120d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: clamp(0.98rem, 1.12vw, 1.08rem);
    font-weight: 850;
    line-height: 1.55;
    text-shadow: none;
}

.home-calendar__filter-select {
    min-height: 42px;
    color: #07120d;
    border: 1px solid rgba(255, 252, 239, 0.82);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(250, 248, 239, 0.94), rgba(228, 235, 222, 0.90));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        0 5px 12px rgba(0, 0, 0, 0.12);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 0.96rem;
    font-weight: 900;
}

.home-calendar__filter-select option {
    color: #07120d;
    background: #f2f1e7;
}

.home-news__read-more,
.home-calendar__toggle,
.home-calendar__tag,
.home-calendar__detail-label,
.home-feed-card__label {
    color: #07120d;
    border-color: rgba(225, 185, 73, 0.46);
    background: rgba(225, 185, 73, 0.52);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 900;
}

@media (max-width: 900px) {
    .home-news.site-panel,
    .home-calendar.site-panel {
        border-radius: 21px;
    }

    .home-news.site-panel::before,
    .home-calendar.site-panel::before {
        opacity: 0.34;
    }

    .home-news__card,
    .home-calendar__card,
    .home-feed-card {
        background:
            linear-gradient(135deg, rgba(249, 246, 234, 0.82), rgba(224, 235, 219, 0.72)),
            rgba(255, 255, 255, 0.30);
    }
}

/* Homepage News/Calendar sidebar-footer color match */
.home-news.site-panel,
.home-calendar.site-panel {
    border-color: rgba(226, 185, 83, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.16),
        0 0 0 1px rgba(255, 247, 232, 0.16),
        0 16px 32px rgba(0, 0, 0, 0.22);
}

.home-news.site-panel::after,
.home-calendar.site-panel::after {
    background:
        linear-gradient(135deg, rgba(6, 20, 22, 0.26), rgba(12, 31, 26, 0.18)),
        radial-gradient(circle at top left, rgba(226, 185, 83, 0.14), transparent 42%);
}

.home-news__eyebrow,
.home-calendar__eyebrow,
.home-panel-premium__eyebrow,
.home-calendar__filter-label {
    color: #e2b94e;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.68),
        0 0 1px rgba(0, 0, 0, 0.8);
}

.home-news__title,
.home-calendar__title,
.home-panel-premium__title {
    color: #fff7e8;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.42rem, 2vw, 1.9rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.76),
        0 0 1px rgba(0, 0, 0, 0.92);
}

.home-news__card,
.home-calendar__card,
.home-feed-card {
    border-color: rgba(226, 185, 83, 0.32);
    background:
        linear-gradient(135deg, rgba(19, 43, 44, 0.46), rgba(30, 58, 48, 0.34)),
        rgba(8, 22, 24, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.10),
        0 8px 18px rgba(0, 0, 0, 0.16);
}

.home-news__card:hover,
.home-calendar__card:hover,
.home-feed-card:hover {
    border-color: rgba(226, 185, 83, 0.48);
    background:
        linear-gradient(135deg, rgba(21, 48, 49, 0.52), rgba(32, 63, 52, 0.40)),
        rgba(8, 22, 24, 0.32);
}

.home-news__meta,
.home-calendar__meta,
.home-feed-card__meta {
    color: rgba(255, 247, 232, 0.92);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.58),
        0 0 1px rgba(0, 0, 0, 0.75);
}

.home-news__card-title,
.home-calendar__card-title,
.home-feed-card__title {
    color: #fff7e8;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.12rem, 1.45vw, 1.38rem);
    font-weight: 900;
    line-height: 1.22;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.62),
        0 0 1px rgba(0, 0, 0, 0.78);
}

.home-news__card-text,
.home-calendar__card-text,
.home-calendar__detail-text,
.home-feed-card__text {
    color: rgba(255, 247, 232, 0.88);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: clamp(0.98rem, 1.12vw, 1.08rem);
    font-weight: 800;
    line-height: 1.55;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.56),
        0 0 1px rgba(0, 0, 0, 0.70);
}

.home-calendar__details,
.home-calendar__card-title + .home-calendar__details {
    border-color: rgba(255, 247, 232, 0.18);
}

.home-calendar__filter-select {
    color: #17301f;
    border-color: rgba(226, 185, 83, 0.44);
    background:
        linear-gradient(180deg, rgba(255, 247, 232, 0.96), rgba(228, 235, 222, 0.90));
    font-weight: 900;
}

.home-news__read-more,
.home-calendar__toggle,
.home-calendar__tag,
.home-calendar__detail-label,
.home-feed-card__label {
    color: #17301f;
    border-color: rgba(226, 185, 83, 0.58);
    background: rgba(226, 185, 83, 0.70);
    text-shadow: none;
}

@media (max-width: 900px) {
    .home-news__card,
    .home-calendar__card,
    .home-feed-card {
        background:
            linear-gradient(135deg, rgba(19, 43, 44, 0.52), rgba(30, 58, 48, 0.40)),
            rgba(8, 22, 24, 0.34);
    }

    .home-news__card-text,
    .home-calendar__card-text,
    .home-calendar__detail-text,
    .home-feed-card__text {
        font-weight: 850;
    }
}

/* FINAL News/Calendar requested font colors only */
/* Keeps existing backgrounds, borders, images, shadows, and date colors unchanged. */

#latest-news.home-news .home-news__title,
#latest-news .home-news__title,
#latest-news .home-panel-premium__title,
#calendar.home-calendar .home-calendar__title,
#calendar .home-calendar__title,
#calendar .home-panel-premium__title {
    color: #fff7e8 !important;
}

#latest-news.home-news .home-news__card-title,
#latest-news .home-news__card-title,
#latest-news .home-feed-card__title,
#calendar.home-calendar .home-calendar__card-title,
#calendar .home-calendar__card-title,
#calendar .home-feed-card__title {
    color: rgba(244, 240, 228, 0.78) !important;
}

#latest-news.home-news .home-news__card-text,
#latest-news .home-news__card-text,
#latest-news .home-feed-card__text,
#calendar.home-calendar .home-calendar__card-text,
#calendar .home-calendar__card-text,
#calendar .home-calendar__detail-text,
#calendar .home-feed-card__text {
    color: #fff7e8 !important;
}

/* Keep date colors unchanged: intentionally no .home-news__meta or .home-calendar__meta override. */

/* Home calendar mobile size and footer spacing */
@media (max-width: 900px) {
    body.page--home .home-news-calendar {
        width: min(100vw - 20px, 760px);
        margin-right: auto;
        margin-bottom: clamp(54px, 12vw, 86px);
        margin-left: auto;
    }

    body.page--home .home-news-calendar__grid {
        gap: 22px;
    }

    body.page--home .home-calendar.site-panel,
    body.page--home .home-news.site-panel {
        width: 100%;
        padding: clamp(22px, 5.5vw, 30px);
        border-radius: 24px;
        box-sizing: border-box;
    }

    body.page--home .home-calendar.site-panel {
        min-height: clamp(640px, 92vh, 860px);
        margin-bottom: clamp(32px, 8vw, 58px);
    }

    body.page--home .home-calendar__header {
        margin-bottom: 22px;
    }

    body.page--home .home-calendar__filters {
        gap: 16px;
        margin-bottom: 24px;
    }

    body.page--home .home-calendar__filter-select {
        min-height: 56px;
        border-radius: 16px;
        padding-right: 44px;
        padding-left: 18px;
        font-size: 1.05rem;
    }

    body.page--home .home-calendar__list {
        gap: 18px;
    }

    body.page--home .home-calendar__card {
        padding: 20px 18px;
        border-radius: 20px;
    }
}

@media (max-width: 520px) {
    body.page--home .home-news-calendar {
        width: calc(100vw - 18px);
        margin-bottom: 74px;
    }

    body.page--home .home-calendar.site-panel,
    body.page--home .home-news.site-panel {
        padding: 24px 18px;
        border-radius: 24px;
    }

    body.page--home .home-calendar.site-panel {
        min-height: 720px;
        margin-bottom: 52px;
    }
}


/* Home calendar cleanup: remove yellow highlights and use image modal */
body.page--home #calendar .home-calendar__tag,
body.page--home #calendar .home-calendar__detail-label,
body.page--home #calendar .home-calendar__toggle,
body.page--home #calendar .home-calendar__toggle-label,
body.page--home #calendar .home-news__read-more,
body.page--home #calendar [class*="label"],
body.page--home #calendar [class*="tag"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.page--home #calendar .home-calendar__detail-label {
    display: inline !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    color: rgba(245, 234, 215, 0.72) !important;
}

body.page--home #calendar .home-calendar__tag {
    display: inline !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    color: rgba(240, 202, 95, 0.88) !important;
}

body.page--home #calendar .home-calendar__toggle {
    border: 1px solid rgba(244, 236, 215, 0.24) !important;
    border-radius: 999px !important;
    padding: 0.55rem 0.82rem !important;
    color: #fff7e8 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(8, 13, 9, 0.28) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.10) !important;
}

body.page--home #calendar .home-calendar__toggle:hover,
body.page--home #calendar .home-calendar__toggle:focus-visible {
    border-color: rgba(244, 236, 215, 0.36) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(8, 13, 9, 0.38) !important;
}

body.page--home #calendar .home-calendar__detail-label::before,
body.page--home #calendar .home-calendar__detail-label::after,
body.page--home #calendar .home-calendar__tag::before,
body.page--home #calendar .home-calendar__tag::after,
body.page--home #calendar .home-calendar__toggle-label::before,
body.page--home #calendar .home-calendar__toggle-label::after {
    content: none !important;
    display: none !important;
}

body.page--home #calendar .home-calendar__image-panel {
    display: none !important;
}

html.is-calendar-image-modal-open {
    overflow: hidden;
}

.home-calendar-image-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.home-calendar-image-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-calendar-image-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 7, 4, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.home-calendar-image-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 32px));
    max-height: min(82vh, 820px);
    padding: 12px;
    border: 1px solid rgba(244, 236, 215, 0.28);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(18, 24, 17, 0.96), rgba(7, 11, 7, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.08),
        0 26px 64px rgba(0, 0, 0, 0.44);
    transform: translateY(10px) scale(0.985);
    transition: transform 180ms ease;
}

.home-calendar-image-modal.is-open .home-calendar-image-modal__dialog {
    transform: translateY(0) scale(1);
}

.home-calendar-image-modal__image {
    display: block;
    width: 100%;
    max-height: calc(82vh - 24px);
    object-fit: contain;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
}

.home-calendar-image-modal__close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(244, 236, 215, 0.32);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(15, 20, 18, 0.14), rgba(15, 20, 18, 0.22)),
        url("/assets/images/button.png") center / cover no-repeat;
    color: #fff7e8;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 10px 22px rgba(0, 0, 0, 0.26);
}

@media (max-width: 640px) {
    .home-calendar-image-modal {
        padding: 14px;
    }

    .home-calendar-image-modal__dialog {
        width: calc(100vw - 28px);
        padding: 9px;
        border-radius: 20px;
    }

    .home-calendar-image-modal__image {
        max-height: 78vh;
        border-radius: 14px;
    }

    .home-calendar-image-modal__close {
        top: -12px;
        right: -8px;
        width: 40px;
        height: 40px;
    }
}

/* Home calendar: force View Image into popup modal, not dropdown */
body.page--home #calendar .home-calendar__image-panel,
body.page--home #calendar [data-calendar-image-panel] {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

html.is-calendar-image-modal-open,
html.is-calendar-image-modal-open body {
    overflow: hidden !important;
}

.home-calendar-image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.home-calendar-image-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-calendar-image-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(2, 6, 3, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.home-calendar-image-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 42px);
    padding: 10px;
    border: 1px solid rgba(244, 236, 215, 0.30);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(18, 24, 17, 0.97), rgba(6, 10, 6, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.08),
        0 28px 70px rgba(0, 0, 0, 0.50);
    transform: translateY(8px) scale(0.985);
    transition: transform 180ms ease;
}

.home-calendar-image-modal.is-open .home-calendar-image-modal__dialog {
    transform: translateY(0) scale(1);
}

.home-calendar-image-modal__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 70px);
    object-fit: contain;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.22);
}

.home-calendar-image-modal__close {
    position: absolute;
    top: -13px;
    right: -9px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(244, 236, 215, 0.34);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(15, 20, 18, 0.16), rgba(15, 20, 18, 0.25)),
        url("/assets/images/button.png") center / cover no-repeat;
    color: #fff7e8;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 10px 22px rgba(0, 0, 0, 0.30);
}

body.page--home #calendar .home-calendar__tag,
body.page--home #calendar .home-calendar__detail-label,
body.page--home #calendar .home-calendar__toggle-label,
body.page--home #calendar [class*="highlight"],
body.page--home #calendar [class*="Highlight"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

@media (max-width: 640px) {
    .home-calendar-image-modal {
        padding: 12px;
    }

    .home-calendar-image-modal__dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 36px);
        padding: 8px;
        border-radius: 20px;
    }

    .home-calendar-image-modal__image {
        max-height: calc(100vh - 58px);
        border-radius: 14px;
    }

    .home-calendar-image-modal__close {
        top: -11px;
        right: -6px;
        width: 40px;
        height: 40px;
    }
}

/* Home calendar popup: remove image texture from close button */
.home-calendar-image-modal__close {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(15, 20, 18, 0.88), rgba(8, 12, 8, 0.96)) !important;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(15, 20, 18, 0.88), rgba(8, 12, 8, 0.96)) !important;
}

.home-calendar-image-modal__close:hover,
.home-calendar-image-modal__close:focus-visible {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)),
        linear-gradient(180deg, rgba(22, 30, 19, 0.92), rgba(10, 15, 10, 0.98)) !important;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)),
        linear-gradient(180deg, rgba(22, 30, 19, 0.92), rgba(10, 15, 10, 0.98)) !important;
}
