/* Bavarian Lodge — shared gold date calendar. Paired with bl-cal.js.
   Colours are the lodge's: gold #e2bf68, hover #d9b455, cream #fffdf8, brown #8B7355. */

.blcal {
  --blcal-gold: #e2bf68;
  --blcal-gold-dark: #c9a349;
  --blcal-gold-soft: #f7ecd2;
  --blcal-cream: #fffdf8;
  --blcal-ink: #333;
  --blcal-muted: #9a9287;
  --blcal-line: #e6ddcb;
  box-sizing: border-box;
  background: var(--blcal-cream);
  border: 1px solid var(--blcal-gold);
  box-shadow: 0 14px 40px rgba(40, 30, 10, .22);
  padding: 14px 16px 12px;
  font-family: "Open Sans", Roboto, Arial, sans-serif;
  color: var(--blcal-ink);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.blcal *, .blcal *::before, .blcal *::after { box-sizing: border-box; }

.blcal.blcal-float {
  position: absolute;
  z-index: 2147483100;
  display: none;
  width: max-content;
  max-width: calc(100vw - 16px);
}
.blcal.blcal-float.is-open { display: block; }
.blcal.blcal-inline { width: 100%; box-shadow: none; }
.blcal.blcal-inline .blcal-months { justify-content: center; }

.blcal-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* header */
.blcal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.blcal-title {
  flex: 1; text-align: center;
  font-family: "Cormorant Garamond", Spectral, Georgia, serif;
  font-size: 18px; letter-spacing: .04em; color: #2b2b2b;
}
.blcal-nav {
  flex: 0 0 auto; width: 32px; height: 32px; padding: 0;
  background: transparent; border: 1px solid var(--blcal-line);
  color: #6f665a; font-size: 20px; line-height: 1; cursor: pointer;
  border-radius: 0;
}
.blcal-nav:hover:not(:disabled) { background: var(--blcal-gold); border-color: var(--blcal-gold); color: #3a3126; }
.blcal-nav:disabled { opacity: .3; cursor: default; }
.blcal-nav:focus-visible { outline: 2px solid var(--blcal-gold-dark); outline-offset: 1px; }

/* months */
.blcal-months { display: flex; gap: 22px; }
.blcal-month { flex: 0 0 245px; width: 245px; }
.blcal-cap { display: none; }
.blcal-months > .blcal-month + .blcal-month { border-left: 1px solid var(--blcal-line); padding-left: 22px; }

.blcal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.blcal-grid th {
  padding: 0 0 6px; font-weight: 600; font-size: 10.5px; letter-spacing: .1em;
  color: var(--blcal-muted); text-align: center;
}
.blcal-grid th abbr { text-decoration: none; border: 0; cursor: inherit; }
.blcal-grid td { padding: 1px; text-align: center; }

.blcal-day {
  width: 100%; min-width: 30px; height: 34px; padding: 0;
  background: transparent; border: 0; border-radius: 0;
  font-family: inherit; font-size: 14px; color: var(--blcal-ink);
  cursor: pointer; transition: background-color .12s ease, color .12s ease;
}
.blcal-day:hover:not(:disabled) { background: var(--blcal-gold-soft); }
.blcal-day:focus-visible { outline: 2px solid var(--blcal-gold-dark); outline-offset: -2px; }
.blcal-day:disabled { color: #cfc8bc; cursor: default; }

.blcal-cell.is-today .blcal-day { box-shadow: inset 0 -2px 0 var(--blcal-gold); }
.blcal-cell.is-mid .blcal-day { background: var(--blcal-gold-soft); }
.blcal-cell.is-start .blcal-day,
.blcal-cell.is-end .blcal-day {
  background: var(--blcal-gold); color: #3a3126; font-weight: 700;
}
.blcal-cell.is-start .blcal-day:hover,
.blcal-cell.is-end .blcal-day:hover { background: var(--blcal-gold-dark); }

/* footer */
.blcal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--blcal-line);
}
.blcal-hint {
  font-family: "Cormorant Garamond", Spectral, Georgia, serif;
  font-size: 15px; color: #5f574b; line-height: 1.3;
}
.blcal-clear {
  flex: 0 0 auto; background: none; border: 0; padding: 2px 0;
  font-family: inherit; font-size: 12px; color: #8B7355;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.blcal-clear:hover { color: #6d5a42; }

@media (max-width: 760px) {
  .blcal { padding: 12px 12px 10px; }
  .blcal-months { gap: 0; }
  .blcal-month { flex: 1 1 auto; width: auto; }
  .blcal-day { height: 40px; font-size: 15px; }
  .blcal-title { font-size: 17px; }
  .blcal-hint { font-size: 14px; }
}
