/* Event calendar, "notebook" look: the site's white page, workshop names marked with a real-looking highlighter
   in their type colour (two strokes, darker where they overlap), and orange pen circles for real reasons to book now. */
.cal-band { background: #fff; padding-block: 28px 64px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal-head h2 { margin: 0; white-space: nowrap; font-size: 22px; }
.cal-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cal-today { background: #fff; border: 1.5px solid var(--hair); border-radius: 999px; padding: 8px 16px; color: var(--ink); font: inherit; font-weight: 800; font-size: 14px; line-height: 1.2; cursor: pointer; }
.cal-band .cal-arrow { border: 1.5px solid var(--hair); }
@media (hover: hover) { .cal-today:hover, .cal-band .cal-arrow:hover { border-color: var(--ink); } }
.cal-band .filters { margin-bottom: 8px; }
.chip-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.cal-ev:nth-child(odd) .hl::after { left: -8px; right: 52%; top: 2px; bottom: 4px; transform: rotate(-.6deg) skewX(-8deg); }


/* the orange pen circle */
.pen-unused { display: inline-block; color: #E24A0A; font-weight: 800; font-size: 12px; line-height: 1.25; padding: 3px 11px 4px; transform: rotate(-3deg);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'><path d='M14 6 C40 -1 86 2 95 14 C103 27 74 38 46 37 C18 36 2 29 4 18 C6 9 22 4 40 4' fill='none' stroke='%23E24A0A' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>") center / 100% 100% no-repeat; }

/* one workshop */
.cal-ev { display: block; color: var(--ink); text-decoration: none; padding: 4px 0 10px; }
.cal-ev__t { display: block; font-size: 12px; color: #6b6f76; font-variant-numeric: tabular-nums; }
.cal-ev__name { display: block; font-weight: 700; font-size: 15px; line-height: 1.5; margin: 1px 0 2px; overflow-wrap: anywhere; }
.cal-ev__price { display: inline-block; font-weight: 800; font-size: 13px; margin-right: 6px; }
.cal-ev__note { display: inline-block; font-size: 12px; font-weight: 700; color: #6b6f76; margin-top: 2px; }
.cal-ev__note.nxt { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.cal-ev.full .hl { color: #6b6f76; }
.cal-ev.full .hl::before, .cal-ev.full .hl::after { opacity: .2; }
.cal-ev.off { pointer-events: none; opacity: .55; }
.cal-ev.cx .hl { text-decoration: line-through; }
@media (hover: hover) { a.cal-ev:hover .hl::before { opacity: .6; } a.cal-ev:hover .hl::after { opacity: .5; } }

/* computer: the month laid out in weeks, no boxes */
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 18px; }
.cal-week { display: none; }
.cal-cell { min-height: 110px; padding: 12px 0 8px; border-top: 1.5px solid var(--hair); min-width: 0; }
.cal-cell.blank { border-top-color: transparent; }
.cal-cell.past { opacity: .45; }
.cal-num { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 20px; line-height: 1.1; margin-bottom: 6px; }
.cal-num b { font-family: var(--body); font-style: normal; font-size: 13px; color: #8a8f96; margin-left: 2px; }
.cal-cell.today .cal-num, .cal-cell.today .cal-num b { color: var(--orange); }

/* phones: a list of days */
.cal-list { display: none; }
.cal-day { padding: 14px 0 6px; border-top: 1.5px solid var(--hair); }
.cal-day h2 { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 24px; margin: 0 0 6px; }
.cal-day.today h2 { color: var(--orange); }
.cal-day .cal-ev { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 6px 0; }
.cal-day .cal-ev__t { grid-column: 1; grid-row: 1; font-size: 14px; }
.cal-day .cal-ev__t { white-space: nowrap; overflow: hidden; width: 50px; }
.cal-day .cal-ev__name { grid-column: 2; grid-row: 1; font-size: 17px; margin: 0; }
.cal-day .cal-ev__price { grid-column: 3; grid-row: 1; font-size: 15px; margin: 0; }
.cal-day .cal-ev__note { grid-column: 2 / 4; grid-row: 2; justify-self: start; margin-top: 4px; }
.cal-empty { padding: 18px 0; color: var(--muted); }
@media (max-width: 760px) {
  .cal-grid { display: none; }
  .cal-list { display: block; }
  .cal-band { padding-block: 20px 40px; }
}
.cal-day .cal-ev__t .te { display: none; }

.cal-ev .hl { display: inline-block; max-width: 100%; }
.cal-ev__note.pen { color: #E24A0A; font-size: 12px; }
.cal-grid .cal-ev__note.pen { font-size: 11px; padding: 5px 12px 6px; }

/* phones: name gets the full line, price and note sit underneath */
.cal-day .cal-ev { grid-template-columns: 50px minmax(0, 1fr); }
.cal-day .cal-ev__price { grid-column: 2; grid-row: 2; font-size: 15px; }
.cal-day .cal-ev__note { grid-column: 2; grid-row: 2; justify-self: start; margin: 0 0 0 0; }
.cal-day .cal-ev__price + .cal-ev__note { grid-row: 3; }
.cal-ev .hl { width: fit-content; }
.cal-grid .cal-ev__note.pen { padding: 7px 14px 8px; line-height: 1.1; }

/* soft sky background so the page isn't all white; on blue the marker can't multiply (goes muddy), so it's laid on top */
.cal-band { background: var(--surface); }
.cal-band .hl::before, .cal-band .hl::after { mix-blend-mode: normal; }
.cal-band .hl::before { opacity: .75; } .cal-band .hl::after { opacity: .6; }
.cal-band .cal-ev.full .hl::before, .cal-band .cal-ev.full .hl::after { opacity: .3; }
.cal-band .cal-cell, .cal-band .cal-day { border-top-color: rgba(10,10,10,.08); }
.cal-band .cal-today, .cal-band .cal-arrow { background: #fff; border-color: #fff; }
.cal-band .filters--row .chip { --hc: #FFD0E6; --hd: #F7A9CF; }
.cal-band .filters--row .chip::before, .cal-band .filters--row .chip::after { mix-blend-mode: normal; }
.cal-band .filters--row .chip.on::before, .cal-band .filters--row .chip[aria-pressed="true"]::before { opacity: .95; }
.cal-band .filters--row .chip.on::after, .cal-band .filters--row .chip[aria-pressed="true"]::after { opacity: .85; }
.cal-band .filters--row .chip > * { position: relative; }

/* blue page, white day cards (the marker sits on white again, so it can multiply like real ink) */
.cal-band .cal-grid { row-gap: 10px; column-gap: 10px; }
.cal-band .cal-cell { background: #fff; border-top: 0; border-radius: 14px; padding: 12px 12px 8px; }
.cal-band .cal-cell.blank { background: transparent; }
.cal-band .cal-cell.past { opacity: .5; }
.cal-band .cal-day { background: #fff; border-top: 0; border-radius: 16px; padding: 14px 16px 8px; margin-bottom: 10px; }
.cal-band .hl::before, .cal-band .hl::after { mix-blend-mode: multiply; }
.cal-band .hl::before { opacity: .42; } .cal-band .hl::after { opacity: .36; }
.cal-band .cal-ev.full .hl::before, .cal-band .cal-ev.full .hl::after { opacity: .2; }
.cal-day .cal-ev__price, .cal-day .cal-ev__note:not(.pen) { padding-left: 4px; }
@media (max-width: 520px) { .cal-head #calMonth { font-size: 21px; } }
