/* Scoped styles also work in embedded app calendars, without Bootstrap. */
.fest-container { container: oj-fest / inline-size; color: #412c25; line-height: 1.65; min-width: 0; }
.fest-container *, .fest-container *::before, .fest-container *::after { box-sizing: border-box; }
.fest-container .fest-title { margin: 0 0 12px; font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.5; text-align: start; color: #762c29; }
.fest-container .fest-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 12px; margin: 0 0 12px; border: 1px solid #eadfce; border-radius: 10px; background: #fffaf1; font-size: .9rem; overflow-wrap: anywhere; }
.fest-container .fest-coordinates { color: #655d58; font-size: .8rem; }
.fest-container .fest-period { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; padding-inline-start: 10px; border-inline-start: 4px solid #c96b22; font-size: 1.35rem; line-height: 1.6; text-align: start; color: #762c29; }
.fest-container .fest-table { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; width: 100%; margin: 0; padding: 0; }
.fest-container .fest-row { min-width: 0; margin: 0; padding: 0; border: 1px solid #e6dce9; border-radius: 16px; background: #fff; box-shadow: 0 3px 14px #38213f08; overflow-wrap: anywhere; }
.fest-container .fest-card-header { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px 10px; padding: 12px; border-radius: 15px 15px 0 0; border-bottom: 1px solid #eee4d7; background: linear-gradient(115deg, #fff6e4, #fdf9f3); }
.fest-container .fest-date-cell { display: flex; align-items: center; justify-content: center; align-self: start; min-height: 52px; padding: 8px 4px; border: 1px solid #edcfaa; border-radius: 9px; background: #fff; text-align: center; color: #873d15; }
.fest-container .fest-day { display: block; font: 750 1.7rem/1.05 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.fest-container .fest-full-date { display: block; color: #762c29; font-size: 1.08rem; font-weight: 700; line-height: 1.7; }
.fest-container .fest-month { font-size: inherit; }
.fest-container .fest-card-heading { min-width: 0; }
.fest-container .fest-weekday { color: #ffe0b0; font-size: .9rem; line-height: 1.7; margin-top: 3px; }
.fest-container .fest-year { font-variant-numeric: tabular-nums; }
.fest-container .tithi-text { grid-column: 1 / -1; display: grid; gap: 2px; padding-top: 7px; border-top: 1px solid #eddfcd; color: #703b18; font-size: .88rem; font-weight: 500; line-height: 1.7; }
.fest-container .fest-tithi-label { font-size: .74rem; color: #756653; font-weight: 400; }
.fest-container .fest-content-cell { min-width: 0; padding: 0 12px; }
.fest-container .fest-item { display: flow-root; margin: 0; padding: 9px 0; border-bottom: 1px solid #ecddc3; }
.fest-container .fest-item:last-child { border-bottom: 0; }
.fest-container .fest-name { display: flow-root; margin: 0; color: #6b2825; font-size: 1.04rem; font-weight: 650; line-height: 1.8; }
.fest-container .fest-name a { color: inherit; text-decoration: underline; text-decoration-color: #c99c54; text-underline-offset: 4px; text-decoration-thickness: 1px; border: 0; }
.fest-container .fest-name a:hover { color: #983821; text-decoration-color: currentColor; }
.fest-container .fest-name small { display: inline-block; margin-top: 6px; color: #564437; font-size: .88rem; font-weight: 400; line-height: 1.8; }
.fest-container .fest-details { margin-top: 2px; }
.fest-container .fest-details > summary { display: flex; align-items: center; gap: 6px; width: fit-content; min-height: 30px; padding: 3px 2px; color: #8b421e; font-size: .85rem; font-weight: 600; cursor: pointer; list-style: none; }
.fest-container .fest-details > summary::-webkit-details-marker { display: none; }
.fest-container .fest-details > summary::before { content: '+'; font: 500 1.15rem/1 system-ui, sans-serif; }
.fest-container .fest-details[open] > summary::before { content: '−'; }
.fest-container .fest-desc { display: block; margin: 3px 0 2px; padding: 8px 10px; border-inline-start: 3px solid #c99c54; border-radius: 0 8px 8px 0; background: #fff8e8; color: #564437; font-size: .9rem; line-height: 1.85; }
.fest-container .fest-desc small { color: inherit; font-size: inherit; }
.fest-container .oj-subscribe-bell { float: inline-end; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 28px; padding: 4px; margin: 1px 0 2px 6px; border: 1px solid #eadbea; border-radius: 6px; background: #fbf7fc; color: #704478; font: inherit; font-size: .78rem; line-height: 1; cursor: pointer; }
.fest-container .oj-subscribe-bell:hover { background: #f2e8f5; border-color: #bc96c6; }
.fest-container a:focus-visible, .fest-container button:focus-visible, .fest-container summary:focus-visible { outline: 3px solid #965524; outline-offset: 3px; border-radius: 4px; }
.fest-container .badge-live, .fest-container .badge-completed { display: inline-block; padding: 2px 7px; margin: 4px 4px; border: 1px solid #ddd3df; border-radius: 6px; background: #fff8e8; color: #63556a; font-size: .75rem; font-weight: 500; line-height: 1.7; vertical-align: middle; }
.fest-container .badge-live { color: #a82825; background: #fff4f1; border-color: #efc4be; }
.fest-container blockquote { margin: 16px 0; padding: 14px 16px; border-inline-start: 3px solid #dfc5a1; background: #fffbf5; border-radius: 8px; }
@container oj-fest (min-width: 700px) { .fest-container .fest-table { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container oj-fest (max-width: 360px) {
    .fest-container .fest-card-header { grid-template-columns: 48px minmax(0, 1fr); gap: 7px 8px; padding: 10px; }
    .fest-container .fest-content-cell { padding: 0 10px; }
    .fest-container .fest-name { font-size: 1rem; }
}
@media print {
    .fest-container { container-type: normal; }
    .fest-container .fest-table { display: block; }
    .fest-container .fest-row { break-inside: avoid; margin-bottom: 14px; box-shadow: none; }
    .fest-container .oj-subscribe-bell { display: none; }
}

/* Saffron, kumkum and antique gold, with generous space for regional scripts. */
.fest-container { font-family: var(--oj-font-normal, "Nirmala UI", sans-serif); }
.fest-container .fest-table { gap: 22px; }
.fest-container .fest-row { border: 1px solid #cba264; border-top: 5px solid #c58d38; border-radius: 14px; background: #fffdf7; box-shadow: 0 5px 18px #71321c0c; }
.fest-container .fest-card-header { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 18px; border-radius: 8px 8px 0 0; border-bottom: 3px double #c99c54; background: linear-gradient(120deg, #752d2b, #943e2c); }
.fest-container .fest-date-cell { min-height: 62px; padding: 12px 4px; border: 3px double #d3aa64; border-radius: 8px; background: #fff5d9; color: #742b28; }
.fest-container .fest-day { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 700; }
.fest-container .fest-full-date { color: #fff9e9; font-family: var(--oj-font-heading, "Nirmala UI", serif); font-size: 1.12rem; }
.fest-container .fest-weekday { color: #ffe0b0; }
.fest-container .tithi-text { border-top-color: #ffffff35; padding-top: 10px; color: #fff5df; }
.fest-container .fest-tithi-label { color: #f6d19a; font-size: .78rem; }
.fest-container .fest-content-cell { padding: 4px 18px; }
.fest-container .fest-item { padding: 14px 0; }
.fest-container .fest-name { font-family: var(--oj-font-heading, "Nirmala UI", serif); font-weight: 700; }
.fest-container .fest-name small { font-family: var(--oj-font-normal, "Nirmala UI", sans-serif); }
.fest-container .fest-desc { background: #fff5e1; }
.fest-container .oj-subscribe-bell { width: 34px; height: 34px; border-color: #dbc39a; background: #fff7e5; color: #754024; }
.fest-container .oj-subscribe-bell:hover { background: #f6e7c9; border-color: #b88d4c; }
.fest-container .fest-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-top: 3px double #d7b77f; border-radius: 0 0 12px 12px; background: #fcf2dd; }
.fest-container .fest-card-brand { min-width: 0; flex: 1 1 170px; }
.fest-container .fest-brand-name { display: block; font: 700 1.05rem/1.5 Georgia, serif; color: #7a3029; letter-spacing: .015em; }
.fest-container .fest-card-location { display: block; margin-top: 3px; color: #705336; font-size: .73rem; line-height: 1.65; overflow-wrap: anywhere; }
.fest-container .fest-share-image, .fest-share-dialog .fest-image-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid #752d2b; border-radius: 8px; background: #752d2b; color: #fff8e7; font: 600 .9rem/1.5 var(--oj-font-normal, "Nirmala UI", sans-serif); text-align: center; text-decoration: none; cursor: pointer; }
.fest-container .fest-share-image:hover, .fest-share-dialog .fest-image-action:hover { background: #56201e; color: #fff; }
.fest-container .fest-share-image svg { flex: none; width: 18px; height: 18px; }
.fest-container [hidden], .fest-share-dialog [hidden] { display: none !important; }
.fest-share-dialog { box-sizing: border-box; width: min(92vw, 680px); max-height: 92vh; max-height: 92dvh; margin: auto; padding: 20px; border: 2px solid #c99c54; border-radius: 16px; background: #fffaf0; color: #412c25; box-shadow: 0 20px 80px #0005; overflow-y: auto; font-family: var(--oj-font-normal, "Nirmala UI", sans-serif); }
.fest-share-dialog::backdrop { background: #27140fbb; }
.fest-share-dialog .fest-preview-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.fest-share-dialog .fest-preview-heading { margin: 0; font-size: 1.15rem; line-height: 1.8; color: #752d2b; }
.fest-share-dialog .fest-preview-close { flex: none; min-height: 44px; min-width: 44px; border: 1px solid #dbc39a; border-radius: 8px; background: #fff4dd; color: #752d2b; font: 1.5rem/1 sans-serif; cursor: pointer; }
.fest-share-dialog .fest-preview-image { display: block; width: 100%; height: auto; margin: 14px 0; border: 1px solid #dbc39a; }
.fest-share-dialog .fest-preview-status { margin: 8px 0; font-size: .9rem; line-height: 1.7; }
.fest-share-dialog .fest-preview-actions { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: -20px; margin: 0 -20px -20px; padding: 14px 20px; background: #fffaf0; border-top: 1px solid #dbc39a; }
.fest-share-dialog .fest-preview-actions a { background: #fff4dd; color: #752d2b; }
.fest-share-dialog :focus-visible { outline: 3px solid #965524; outline-offset: 3px; }
@media (max-width: 420px) { .fest-container .fest-card-header { padding: 14px; } .fest-container .fest-card-footer { padding: 12px 14px; } }
@media print { .fest-container .fest-share-image, .fest-share-dialog { display: none !important; } }
