/* The availability page (availability.htm, js/availability.js): a month of days, each showing its morning and afternoon in one of
   four colours. Its own small stylesheet, because the site's built stylesheet only holds the classes the other pages use. */
.av-box { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.av-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.av-nav { width: 2.75rem; height: 2.75rem; border: 1px solid #d1d5db; border-radius: .5rem; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.av-nav:hover:not(:disabled) { background: #f3f4f6; }
.av-nav:disabled { opacity: .3; cursor: default; }
.av-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.av-dow { text-align: center; font-size: .8rem; font-weight: 600; color: #6b7280; padding-bottom: .2rem; }
.av-cell { min-height: 3.6rem; border: 1px solid #e5e7eb; border-radius: .4rem; background: #fff; padding: .2rem; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: stretch; gap: .15rem; }
.av-cell .av-num { font-weight: 600; font-size: .95rem; text-align: left; padding-left: .15rem; }
.av-cell .av-half { flex: 1; min-height: .7rem; border-radius: .2rem; }
.av-cell:hover:not(:disabled) { border-color: #111827; }
.av-cell[aria-pressed="true"] { outline: 3px solid #111827; outline-offset: 1px; }
.av-cell:disabled { cursor: default; opacity: .35; }
.av-cell.av-today .av-num { text-decoration: underline; }
.av-good { background: #16a34a; }
.av-limited { background: #facc15; }
.av-very { background: #f97316; }
.av-none { background: #111827; }
.av-unknown { background: #e5e7eb; }
/* a month still loading: its days grey and gently pulsing, "Loading…" by its name */
.av-title { display: flex; flex-direction: column; align-items: center; }
.av-loading-note { font-size: .85rem; color: #6b7280; }
.av-loading-note[hidden] { display: none; }
.av-cal.av-loading .av-half { animation: av-pulse 1.1s ease-in-out infinite; }
@keyframes av-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .av-cal.av-loading .av-half { animation: none; } }
.av-day { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; display: grid; gap: .4rem; }
.av-day[hidden], .av-problem[hidden] { display: none; }
.av-btn { display: inline-block; margin-top: .4rem; padding: .7rem 1.4rem; background: #ef4444; color: #fff; font-weight: 600; border-radius: .5rem; text-decoration: none; }
.av-btn:hover { background: #dc2626; }
.av-problem { margin-top: .75rem; color: #b91c1c; }
.av-key { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.av-key li { display: flex; gap: .7rem; align-items: flex-start; }
.av-swatch { flex: none; width: 1.4rem; height: 1.4rem; border-radius: .3rem; margin-top: .15rem; }
/* a special offer on the day: a small red tag in its top right corner (and in the key) */
.av-cell { position: relative; }
.av-offer-tag { position: absolute; top: .15rem; right: .2rem; background: #b91c1c; color: #fff; font-size: .6rem; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; line-height: 1; padding: .15rem .25rem; border-radius: .2rem; }
.av-cell.av-offer { border-color: #b91c1c; }
.av-offer-key { position: static; flex: none; margin-top: .25rem; }
.av-day-offer { background: #fef2f2; border-left: 4px solid #b91c1c; padding: .45rem .6rem; border-radius: .25rem; }
.av-day-offer a { color: #b91c1c; font-weight: 700; text-decoration: underline; }
.av-day-offer + .av-day-offer { margin-top: .5rem; }
@media (max-width: 480px) { .av-cell { min-height: 3rem; } .av-cell .av-num { font-size: .85rem; } }
