/*
 * FeastBell - month calendar on the site ([fcal_feast_calendar] and the Elementor widget).
 * Colours, font and corners come from custom properties set in Feasts > Appearance,
 * in the shortcode options or in the Elementor widget.
 */
.fcal-cal{
  --fcal-c-fixed:#1F6B57;--fcal-c-easter:#C0662F;--fcal-c-month:#B8893E;--fcal-c-accent:#2C816A;
  --fcal-c-text:#1F2A24;--fcal-c-bg:#FFFFFF;--fcal-c-border:#E3E1D8;--fcal-c-head:#F3F2EC;--fcal-font:inherit;--fcal-radius:12px;
  font-family:var(--fcal-font);color:var(--fcal-c-text);max-width:100%;line-height:1.4
}
.fcal-cal *,.fcal-cal *::before,.fcal-cal *::after{box-sizing:border-box}
.fcal-cal[aria-busy="true"]{opacity:.6;transition:opacity .2s}

.fcal-cal__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.fcal-cal__title{margin:0;font-family:inherit;font-size:1.4em;font-weight:600;line-height:1.2;color:inherit;text-align:center;flex:1}
.fcal-cal__nav{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border-radius:999px;
  border:1px solid var(--fcal-c-border);background:var(--fcal-c-bg);color:var(--fcal-c-accent);text-decoration:none;font-size:24px;line-height:1;transition:background .2s,color .2s}
.fcal-cal__nav:hover,.fcal-cal__nav:focus-visible{background:var(--fcal-c-accent);color:#fff;border-color:var(--fcal-c-accent)}
.fcal-cal a:focus-visible{outline:2px solid var(--fcal-c-accent);outline-offset:2px}

.fcal-cal__long{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.fcal-cal__long .fcal-cal__ev{font-size:.9em;padding:6px 12px}

.fcal-cal__grid{border:1px solid var(--fcal-c-border);border-radius:var(--fcal-radius);overflow:hidden;background:var(--fcal-c-bg)}
.fcal-cal__row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.fcal-cal__wd{padding:8px 6px;text-align:center;font-size:.75em;font-weight:600;letter-spacing:.06em;text-transform:uppercase;background:var(--fcal-c-head);border-bottom:1px solid var(--fcal-c-border);opacity:.85;font-size:max(12px,.75em)}
.fcal-cal__cell{min-height:96px;padding:6px;border-right:1px solid var(--fcal-c-border);border-bottom:1px solid var(--fcal-c-border);display:flex;flex-direction:column;gap:4px;min-width:0}
.fcal-cal__row .fcal-cal__cell:nth-child(7n){border-right:0}
.fcal-cal__grid .fcal-cal__row:last-child .fcal-cal__cell{border-bottom:0}
.fcal-cal__cell--pad{background:var(--fcal-c-head);opacity:.5}
.fcal-cal__num{font-size:.85em;font-weight:600}
.fcal-cal__cell--today .fcal-cal__num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--fcal-c-accent);color:#fff}
.fcal-cal__cell--in-month{box-shadow:inset 0 -3px 0 var(--fcal-c-month)}
.fcal-cal__cell--in-easter{box-shadow:inset 0 -3px 0 var(--fcal-c-easter)}
.fcal-cal__cell--in-fixed{box-shadow:inset 0 -3px 0 var(--fcal-c-fixed)}
.fcal-cal__easter{font-size:.7em;font-weight:600;color:var(--fcal-c-easter);text-transform:uppercase;letter-spacing:.05em}

.fcal-cal__ev{display:block;padding:3px 7px;border-radius:6px;background:var(--fcal-c-fixed);color:#fff;font-size:.78em;line-height:1.25;
  overflow:hidden;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.fcal-cal__long .fcal-cal__ev{display:inline-block}
.fcal-cal__ev a{color:inherit;text-decoration:none}
.fcal-cal__ev a:hover{text-decoration:underline}
.fcal-cal__ev--easter{background:var(--fcal-c-easter)}
.fcal-cal__ev--month{background:var(--fcal-c-month)}
.fcal-cal__ev--major{font-weight:600}

.fcal-cal__list{list-style:none;margin:14px 0 0;padding:0}
.fcal-cal__item{display:flex;align-items:baseline;gap:10px;padding:8px 2px;border-bottom:1px solid var(--fcal-c-border)}
.fcal-cal__item:last-child{border-bottom:0}
.fcal-cal__dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--fcal-c-fixed);transform:translateY(1px)}
.fcal-cal__dot--easter{background:var(--fcal-c-easter)}
.fcal-cal__dot--month{background:var(--fcal-c-month)}
.fcal-cal__date{min-width:9.5em;opacity:.75}
.fcal-cal__name a{color:inherit}
.fcal-cal__star{color:var(--fcal-c-accent);font-size:.85em}
.fcal-cal__none{margin:14px 0 0;opacity:.75}

/* month arrows: a CSS chevron (centred whatever the font), and a hover that theme link rules cannot override */
.fcal-cal .fcal-cal__nav span{font-size:0;width:9px;height:9px;border:solid currentColor;border-width:0 0 2px 2px}
.fcal-cal .fcal-cal__nav--prev span{transform:translateX(2px) rotate(45deg)}
.fcal-cal .fcal-cal__nav--next span{transform:translateX(-2px) rotate(-135deg)}
.fcal-cal a.fcal-cal__nav:hover,.fcal-cal a.fcal-cal__nav:focus-visible{color:#fff}
.fcal-cal .fcal-cal__ev a:hover{color:inherit}
.fcal-cal .fcal-time{white-space:nowrap;margin-left:.35em}

/* full="yes": whole names in the cells on desktop */
@media (min-width:641px){.fcal-cal--full .fcal-cal__cell .fcal-cal__ev{display:block;-webkit-line-clamp:unset;overflow:visible}}

@media (max-width:640px){
  .fcal-cal__cell{min-height:52px;padding:4px;align-items:center}
  .fcal-cal__cell .fcal-cal__ev{display:block;font-size:0;padding:0;width:8px;height:8px;border-radius:50%}
  .fcal-cal__cell .fcal-cal__ev a{display:none}
  .fcal-cal__easter{font-size:0;width:8px;height:8px;border-radius:50%;border:2px solid var(--fcal-c-easter)}
  .fcal-cal__cell--has{background:color-mix(in srgb,var(--fcal-c-head) 60%,transparent)}
  .fcal-cal__wd{font-size:max(11px,.68em);letter-spacing:0;padding:6px 2px}
  .fcal-cal__date{min-width:7.5em}
}
@media (prefers-reduced-motion:reduce){.fcal-cal,.fcal-cal__nav{transition:none}}
