/* Public + admin calendar — dark/gold, time.ir-inspired layout */
/* Footer owns bottom-nav clearance; !important beats deferred mobile-nav.css .site-main rule */
.site-main:has(.pub-cal-page) {
    padding-bottom: 0 !important;
}

.pub-cal-page {
    max-width: 1120px;
    margin-inline: auto;
    padding-bottom: calc(var(--bottom-nav-offset, 83px) + 12px);
    overflow-x: clip;
}

.content-page.pub-cal-page {
    padding-bottom: calc(var(--bottom-nav-offset, 83px) + 12px) !important;
}

.pub-cal-page .page-title {
    margin: 0;
    font-family: Kalameh, sans-serif;
    font-size: clamp(1.25rem, 4.5vw, 1.55rem);
    line-height: 1.35;
    color: var(--text-heading, #f3ead7);
}

/* Jalali/Hijri/time vs Gregorian digit stacks */
.num-fa {
    font-family: Kalameh, sans-serif;
    font-variant-numeric: normal;
}
.num-en {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.pub-cal-page__header { margin-bottom: 14px; }

/* Today card — large Jalali + secondary dates + clock */
.pub-cal-today-card {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(218, 178, 93, .2);
    background: linear-gradient(145deg, rgba(18, 16, 13, .92), rgba(12, 10, 8, .72));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.pub-cal-today-card__primary {
    display: grid;
    gap: 4px;
}
.pub-cal-today-card__label {
    font-size: .78rem;
    color: var(--text-muted, #b9ad96);
}
.pub-cal-today-card__jalali {
    font-family: Kalameh, sans-serif;
    font-size: clamp(1.65rem, 7vw, 2.35rem);
    line-height: 1.15;
    color: var(--primary-color, #dab25d);
    font-weight: 700;
}
.pub-cal-today-card__secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pub-cal-today-card__secondary div {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(218, 178, 93, .12);
    background: rgba(255, 255, 255, .02);
}
.pub-cal-today-card__secondary span {
    display: block;
    font-size: .72rem;
    color: var(--text-muted, #b9ad96);
    margin-bottom: 2px;
}
.pub-cal-today-card__secondary strong {
    font-size: .92rem;
    color: var(--text-heading, #f3ead7);
}
.pub-cal-today-card__clock {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    border: 1px dashed rgba(218, 178, 93, .22);
    background: rgba(218, 178, 93, .04);
}
.pub-cal-today-card__clock-time {
    font-family: Kalameh, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading, #f3ead7);
    letter-spacing: .04em;
}

/* Mobile analog clock + Jalali date */
.pub-cal-analog {
    display: none;
}
.pub-cal-analog__clock {
    display: flex;
    justify-content: center;
}
.pub-cal-analog__face {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid rgba(218, 178, 93, .32);
    background:
        radial-gradient(circle at 50% 50%, rgba(218, 178, 93, .08), rgba(8, 7, 6, .55) 68%),
        rgba(12, 10, 8, .72);
    box-shadow: inset 0 0 0 1px rgba(218, 178, 93, .12), 0 6px 18px rgba(0, 0, 0, .22);
}
.pub-cal-analog__face::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(218, 178, 93, .1);
    pointer-events: none;
}
.pub-cal-analog__hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 999px;
    background: var(--primary-color, #dab25d);
    will-change: transform;
}
.pub-cal-analog__hand--hour {
    width: 3px;
    height: 24px;
    margin-left: -1.5px;
    opacity: .92;
}
.pub-cal-analog__hand--minute {
    width: 2px;
    height: 32px;
    margin-left: -1px;
}
.pub-cal-analog__center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: var(--primary-color, #dab25d);
    box-shadow: 0 0 0 2px rgba(18, 16, 13, .85);
    z-index: 2;
}
.pub-cal-analog__date {
    margin: 0;
    font-family: Kalameh, sans-serif;
    font-size: .92rem;
    font-weight: 650;
    color: var(--text-heading, #f3ead7);
    letter-spacing: .02em;
    text-align: center;
}

@media (min-width: 640px) {
    .pub-cal-today-card {
        grid-template-columns: 1.2fr 1fr auto;
        align-items: center;
    }
    .pub-cal-today-card__clock {
        min-width: 110px;
        min-height: 56px;
    }
}

/* Admin calendar-system chips (public /calendar has no filter chips) */
.pub-cal-sys {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    min-width: 0;
}
.pub-cal-sys a {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(218, 178, 93, .22);
    color: var(--text-muted, #b9ad96);
    text-decoration: none;
    font-size: .86rem;
    transition: border-color .15s, color .15s, background .15s;
}
.pub-cal-sys a.is-active,
.pub-cal-sys a:hover {
    border-color: rgba(218, 178, 93, .55);
    color: var(--text-heading, #f3ead7);
    background: rgba(218, 178, 93, .08);
}
.pub-cal-sys--admin { margin-top: 12px; }

/* Default + tablet: month grid above occasions. Wide desktop: two columns. */
.pub-cal-layout {
    display: grid;
    gap: 16px;
    align-items: start;
    grid-template-areas:
        "grid"
        "events";
}
.pub-cal-layout > .pub-cal-wrap { grid-area: grid; min-width: 0; }
.pub-cal-layout > .pub-cal-month-events { grid-area: events; min-width: 0; }
@media (min-width: 1100px) {
    .pub-cal-layout {
        grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
        /* RTL: first track is visual right — occasions stay beside the grid, not above it. */
        grid-template-areas: "events grid";
    }
}

/* Month events sidebar */
.pub-cal-month-events {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(218, 178, 93, .16);
    background: rgba(12, 10, 8, .42);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    max-height: none;
}
@media (min-width: 1100px) {
    .pub-cal-month-events {
        position: sticky;
        top: calc(var(--site-header-offset, 72px) + 12px);
        max-height: calc(100vh - var(--site-header-offset, 72px) - 32px);
        overflow: auto;
    }
}
.pub-cal-month-events__title {
    margin: 0 0 12px;
    font-family: Kalameh, sans-serif;
    font-size: 1rem;
    color: var(--text-heading, #f3ead7);
}
.pub-cal-month-events__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1px;
}
.pub-cal-month-events__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    padding: 3px 6px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color .15s, background .15s;
}
.pub-cal-month-events__item.is-active {
    border-color: rgba(218, 178, 93, .35);
    background: rgba(218, 178, 93, .07);
}
.pub-cal-month-events__date {
    font-size: .65rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-muted, #b9ad96);
    white-space: nowrap;
}
.pub-cal-month-events__label {
    font-size: .86rem;
    line-height: 1.3;
    color: var(--event-color, var(--text-heading, #f3ead7));
    text-decoration: none;
}
a.pub-cal-month-events__label:hover { text-decoration: underline; }
.pub-cal-month-events__item.is-holiday .pub-cal-month-events__label,
.pub-cal-month-events__item.is-holiday .pub-cal-month-events__date {
    color: #e86b6b;
}
.pub-cal-month-events__empty {
    margin: 0;
    font-size: .86rem;
    color: var(--text-muted, #b9ad96);
}

/* Calendar grid wrap */
.pub-cal-wrap {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(218, 178, 93, .16);
    background: rgba(12, 10, 8, .42);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    max-width: 100%;
    overflow: hidden;
}
.pub-cal-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.pub-cal-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(218, 178, 93, .28);
    background: rgba(218, 178, 93, .06);
    color: var(--text-heading, #f3ead7);
    text-decoration: none;
    font-size: 1.35rem;
    line-height: 1;
    transition: border-color .15s, background .15s;
}
.pub-cal-nav__btn:hover {
    border-color: rgba(218, 178, 93, .5);
    background: rgba(218, 178, 93, .12);
}
.pub-cal-title {
    margin: 0;
    text-align: center;
    font-family: Kalameh, sans-serif;
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: var(--text-heading, #f3ead7);
}
.pub-cal-goto-today {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
    min-height: 44px;
    font-size: .92rem;
    text-decoration: none;
}

/* Grid */
.pub-cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
}
.pub-cal__head {
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted, #b9ad96);
    padding: 8px 0;
    border-radius: 8px;
    background: rgba(218, 178, 93, .08);
    border: 1px solid rgba(218, 178, 93, .14);
}
.pub-cal__head.is-friday { color: #e86b6b; }
.pub-cal__cell {
    position: relative;
    min-height: 52px;
    border: 1px solid rgba(218, 178, 93, .12);
    border-radius: 10px;
    padding: 4px 4px 6px;
    background: rgba(8, 7, 6, .55);
    overflow: hidden;
}
.pub-cal__cell[data-pub-day] {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.pub-cal__cell[data-pub-day]:hover,
.pub-cal__cell[data-pub-day]:focus-visible {
    outline: none;
    border-color: rgba(218, 178, 93, .45);
    box-shadow: 0 0 0 2px rgba(218, 178, 93, .16);
}
.pub-cal__cell.is-empty {
    opacity: .12;
    pointer-events: none;
    min-height: 28px;
}
.pub-cal__cell.is-today {
    border-color: var(--primary-color, #dab25d);
    box-shadow: inset 0 0 0 1px rgba(218, 178, 93, .25);
}
.pub-cal__cell.is-friday .pub-cal__day,
.pub-cal__cell.is-holiday .pub-cal__day {
    color: #e86b6b;
}
.pub-cal__cell.is-active {
    border-color: rgba(218, 178, 93, .65);
    background: rgba(218, 178, 93, .1);
}
.pub-cal__meta {
    position: absolute;
    font-size: .62rem;
    line-height: 1;
    color: var(--text-muted, #b9ad96);
    opacity: .75;
    pointer-events: none;
}
.pub-cal__meta--greg { top: 3px; inset-inline-start: 4px; }
.pub-cal__meta--hijri { top: 3px; inset-inline-end: 4px; }
.pub-cal__dayrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    margin-top: 10px;
}
.pub-cal__day {
    font-weight: 700;
    font-size: clamp(.95rem, 3.5vw, 1.15rem);
    color: var(--text-heading, #f3ead7);
    font-family: Kalameh, sans-serif;
}
.pub-cal__dots {
    position: absolute;
    bottom: 4px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 3px;
}
[dir="rtl"] .pub-cal__dots { transform: translateX(50%); }
.pub-cal__dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: block;
}

@media (min-width: 640px) {
    .pub-cal__cell { min-height: 72px; padding: 6px; }
    .pub-cal__meta { font-size: .68rem; }
    .pub-cal__dayrow { min-height: 34px; margin-top: 12px; }
    .pub-cal__dots i { width: 6px; height: 6px; }
}

/* Day sheet / modal — must live on document.body (see calendar.js) so fixed
   positioning is not trapped by .site-main { z-index:1; overflow-x:clip }. */
.pub-cal-day-sheet {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}
.pub-cal-day-sheet[aria-hidden="false"] {
    pointer-events: auto;
    visibility: visible;
}
body.pub-cal-sheet-open {
    overflow: hidden;
}
body.pub-cal-sheet-open .mobile-nav,
body.pub-cal-sheet-open .site-footer {
    opacity: .35;
    pointer-events: none;
}
.pub-cal-day-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    transition: opacity .22s ease;
}
.pub-cal-day-sheet[aria-hidden="false"] .pub-cal-day-sheet__backdrop { opacity: 1; }
.pub-cal-day-sheet__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: min(85vh, 560px);
    max-height: min(85dvh, 560px);
    border-radius: 18px 18px 0 0;
    border: 1px solid rgba(218, 178, 93, .22);
    border-bottom: 0;
    background: #12100d;
    transform: translateY(105%);
    transition: transform .24s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
    box-sizing: border-box;
    /* Clear floating bottom nav so the last occasion card stays tappable */
    padding-bottom: calc(16px + var(--bottom-nav-offset, 83px));
}
.pub-cal-day-sheet[aria-hidden="false"] .pub-cal-day-sheet__panel { transform: translateY(0); }
.pub-cal-day-sheet__handle {
    flex-shrink: 0;
    width: 44px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: rgba(218, 178, 93, .45);
}
.pub-cal-day-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid rgba(218, 178, 93, .12);
}
.pub-cal-day-sheet__heading { min-width: 0; flex: 1; }
.pub-cal-day-sheet__title {
    margin: 0;
    font-size: 1rem;
    font-family: Kalameh, sans-serif;
}
.pub-cal-day-sheet__sub {
    margin: 4px 0 0;
    font-size: .78rem;
    color: var(--text-muted, #b9ad96);
}
.pub-cal-day-sheet__sub[hidden] { display: none; }
.pub-cal-day-sheet__close {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.pub-cal-day-sheet__list {
    overflow: auto;
    padding: 12px 16px 4px;
    -webkit-overflow-scrolling: touch;
}
.pub-cal-day-sheet__empty {
    margin: 0;
    color: var(--text-muted, #b9ad96);
}
.pub-cal-day-sheet__card {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid rgba(218, 178, 93, .16);
    background: rgba(218, 178, 93, .04);
    text-decoration: none;
    color: inherit;
}
.pub-cal-day-sheet__card strong {
    display: block;
    margin-bottom: 4px;
}
.pub-cal-day-sheet__card span {
    display: block;
    font-size: .82rem;
    color: var(--text-muted, #b9ad96);
}
.pub-cal-day-sheet__card .pub-cal-day-sheet__cat {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    border: 1px solid rgba(218, 178, 93, .25);
}
.pub-cal-day-sheet__card.is-holiday strong { color: #e86b6b; }

@media (min-width: 768px) {
    .pub-cal-day-sheet {
        align-items: center;
    }
    .pub-cal-day-sheet__panel {
        width: min(480px, calc(100vw - 32px));
        max-height: min(70vh, 520px);
        border-radius: 18px;
        border-bottom: 1px solid rgba(218, 178, 93, .22);
        padding-bottom: 16px;
        transform: translateY(8%) scale(.96);
        opacity: 0;
        transition: transform .22s ease, opacity .22s ease;
    }
    .pub-cal-day-sheet[aria-hidden="false"] .pub-cal-day-sheet__panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    body.pub-cal-sheet-open .mobile-nav,
    body.pub-cal-sheet-open .site-footer {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 767px) {
    /* Mobile: grid + day sheet only */
    .pub-cal-page__header,
    .pub-cal-today-card,
    .pub-cal-month-events {
        display: none !important;
    }

    .pub-cal-analog {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin: 0 0 10px;
        padding: 8px 10px;
        border-radius: 14px;
        border: 1px solid rgba(218, 178, 93, .16);
        background: rgba(12, 10, 8, .42);
    }

    .pub-cal-layout {
        gap: 0;
    }

    .pub-cal-wrap {
        padding: 10px 8px;
        border-radius: 14px;
    }

    .pub-cal-page,
    .content-page.pub-cal-page {
        padding-bottom: calc(var(--bottom-nav-offset, 83px) + 8px) !important;
    }
}

@media (max-width: 640px) {
    .pub-cal-nav__btn { width: 44px; height: 44px; }
}

@media (max-width: 374px) {
    .pub-cal-today-card__secondary { grid-template-columns: 1fr; }
    .pub-cal__head { font-size: .72rem; padding: 6px 0; }
    .pub-cal__cell { min-height: 46px; }
    .pub-cal__meta { font-size: .58rem; }
    .pub-cal { gap: 2px; }
}

/* Light theme — cream/glass cards, dark readable ink. Dark theme keeps charcoal above. */
html[data-theme="light"]:not(.theme-dark) .pub-cal-today-card,
html[data-theme="light"]:not(.theme-dark) .pub-cal-month-events,
html[data-theme="light"]:not(.theme-dark) .pub-cal-wrap,
html[data-theme="light"]:not(.theme-dark) .pub-cal-analog {
    background: linear-gradient(165deg, var(--glass-highlight, rgba(201, 162, 55, .16)), transparent 42%), var(--glass-bg, rgba(250, 244, 232, .92));
    border-color: var(--glass-border, rgba(160, 120, 42, .4));
    box-shadow: var(--glass-shadow, 0 12px 30px rgba(55, 38, 12, .1));
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-today-card__label,
html[data-theme="light"]:not(.theme-dark) .pub-cal-today-card__secondary span,
html[data-theme="light"]:not(.theme-dark) .pub-cal-month-events__date,
html[data-theme="light"]:not(.theme-dark) .pub-cal-month-events__empty,
html[data-theme="light"]:not(.theme-dark) .pub-cal__head,
html[data-theme="light"]:not(.theme-dark) .pub-cal__meta {
    color: var(--text-muted, rgba(26, 21, 16, .7));
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-today-card__jalali {
    color: var(--gold-ink, #7a5618);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-today-card__secondary strong,
html[data-theme="light"]:not(.theme-dark) .pub-cal-today-card__clock-time,
html[data-theme="light"]:not(.theme-dark) .pub-cal-month-events__title,
html[data-theme="light"]:not(.theme-dark) .pub-cal-month-events__label,
html[data-theme="light"]:not(.theme-dark) .pub-cal-title,
html[data-theme="light"]:not(.theme-dark) .pub-cal-nav__btn,
html[data-theme="light"]:not(.theme-dark) .pub-cal__day,
html[data-theme="light"]:not(.theme-dark) .pub-cal-analog__date,
html[data-theme="light"]:not(.theme-dark) .pub-cal-page .page-title {
    color: var(--text-heading, #100e0a);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-today-card__secondary div {
    background: rgba(255, 250, 240, .55);
    border-color: var(--glass-border, rgba(160, 120, 42, .28));
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-today-card__clock {
    background: var(--primary-soft, rgba(201, 162, 55, .18));
    border-color: var(--glass-border, rgba(160, 120, 42, .36));
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-nav__btn {
    background: var(--primary-soft, rgba(201, 162, 55, .18));
    border-color: var(--glass-border, rgba(160, 120, 42, .36));
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-nav__btn:hover {
    background: rgba(201, 162, 55, .28);
    border-color: rgba(160, 120, 42, .5);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal__head {
    background: var(--primary-soft, rgba(201, 162, 55, .16));
    border-color: rgba(160, 120, 42, .22);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal__cell {
    background: rgba(255, 250, 240, .55);
    border-color: rgba(160, 120, 42, .18);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal__cell.is-empty {
    background: rgba(26, 21, 16, .04);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal__cell.is-active,
html[data-theme="light"]:not(.theme-dark) .pub-cal-month-events__item.is-active {
    background: var(--primary-soft, rgba(201, 162, 55, .18));
    border-color: rgba(160, 120, 42, .4);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-analog__face {
    background:
        radial-gradient(circle at 50% 50%, var(--primary-soft, rgba(201, 162, 55, .18)), var(--glass-bg, rgba(250, 244, 232, .92)) 68%);
    border-color: var(--glass-border, rgba(160, 120, 42, .4));
    box-shadow: inset 0 0 0 1px rgba(160, 120, 42, .16), var(--glass-shadow, 0 6px 18px rgba(55, 38, 12, .1));
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-analog__face::before {
    border-color: rgba(160, 120, 42, .18);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-analog__center {
    box-shadow: 0 0 0 2px var(--glass-bg, #faf4e8);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-month-events__item.is-holiday .pub-cal-month-events__label,
html[data-theme="light"]:not(.theme-dark) .pub-cal-month-events__item.is-holiday .pub-cal-month-events__date,
html[data-theme="light"]:not(.theme-dark) .pub-cal__cell.is-friday .pub-cal__day,
html[data-theme="light"]:not(.theme-dark) .pub-cal__cell.is-holiday .pub-cal__day,
html[data-theme="light"]:not(.theme-dark) .pub-cal__head.is-friday {
    color: #b4232a;
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__panel {
    background: var(--glass-bg, #faf4e8);
    color: var(--text-heading, #100e0a);
    border-color: var(--glass-border, rgba(160, 120, 42, .4));
    box-shadow: 0 -12px 40px rgba(55, 38, 12, .14);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__title,
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__close,
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__card strong {
    color: var(--text-heading, #100e0a);
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__sub,
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__empty,
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__card span {
    color: var(--text-muted, rgba(26, 21, 16, .7));
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__close {
    background: var(--primary-soft, rgba(201, 162, 55, .18));
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__card {
    background: rgba(255, 250, 240, .6);
    border-color: var(--glass-border, rgba(160, 120, 42, .28));
}
html[data-theme="light"]:not(.theme-dark) .pub-cal-day-sheet__handle {
    background: rgba(160, 120, 42, .45);
}
