/* Clara calendar: scrapbook month view. Uses the site's own color/type variables. */
#clara-calendar { --cc-ink: var(--_clara-color---espresso-dark, #33241c); --cc-wine: var(--_clara-color---wine, #5a2a33); --cc-gold: var(--_clara-color---gold, #b3924f); --cc-paper: var(--_clara-color---birch, #f9f5eb); --cc-cream: var(--_clara-color---cream, #f1ead9); --cc-line: rgba(74, 52, 40, .14); --cc-hand: var(--_clara-type---font-hand, Caveat, cursive); --cc-display: var(--_clara-type---font-display, Dahlia, Georgia, serif); color: var(--cc-ink); margin: 0 0 2rem; }
#clara-calendar:empty { display: none; }

/* Sits above the page's decorative corner art so the arrows are always clickable */
.cc-bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.cc-nav { display: flex; align-items: center; gap: .75rem; }
.cc-month { font-family: var(--cc-display); font-weight: 400; font-size: 2.5rem; line-height: 1; margin: 0; min-width: 12ch; text-align: center; }
.cc-month span { color: var(--cc-gold); }
.cc-arrow { font: inherit; font-size: 1.75rem; line-height: 1; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--cc-line); background: var(--cc-paper); color: var(--cc-wine); cursor: pointer; transition: transform .15s, background .15s; }
.cc-arrow:hover:not([disabled]) { background: var(--cc-cream); transform: rotate(-6deg); }
.cc-arrow[disabled] { opacity: .3; cursor: default; }
.cc-toggle { display: inline-flex; border: 1px solid var(--cc-line); border-radius: 999px; padding: 3px; background: var(--cc-paper); }
.cc-toggle button { font: inherit; font-size: .875rem; letter-spacing: .04em; border: 0; background: none; padding: .45rem 1.1rem; border-radius: 999px; color: var(--cc-ink); cursor: pointer; }
.cc-toggle button.on { background: var(--cc-wine); color: var(--cc-paper); }

.cc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--cc-line); border-left: 1px solid var(--cc-line); background: var(--cc-paper); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 40px -28px rgba(51,36,28,.45); }
.cc-dow { font-family: var(--cc-hand); font-size: 1.35rem; color: var(--cc-wine); text-align: center; padding: .35rem 0; border-right: 1px solid var(--cc-line); border-bottom: 1px solid var(--cc-line); background: var(--cc-cream); }
.cc-day { position: relative; min-height: 10.5rem; padding: 2.1rem .55rem .7rem; border-right: 1px solid var(--cc-line); border-bottom: 1px solid var(--cc-line); display: flex; flex-direction: column; gap: .7rem; }
.cc-blank { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(74,52,40,.035) 8px 9px); }
.cc-num { position: absolute; top: .35rem; left: .55rem; font-family: var(--cc-hand); font-size: 1.5rem; line-height: 1; color: var(--cc-ink); }
.cc-today .cc-num { color: var(--cc-wine); }
.cc-today .cc-num::after { content: ""; position: absolute; inset: -.3rem -.5rem -.2rem -.45rem; border: 2px solid var(--cc-wine); border-radius: 55% 45% 50% 50%; transform: rotate(-8deg); }
.cc-past { background: rgba(241, 234, 217, .45); }
.cc-past .cc-card { opacity: .62; }
.cc-past .cc-photo img { filter: sepia(.35) saturate(.7); }
.cc-past .cc-num { opacity: .55; }

.cc-card { display: block; position: relative; text-decoration: none; color: inherit; background: #fff; padding: .35rem .35rem .45rem; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 6px 14px -8px rgba(51,36,28,.4); transform: rotate(var(--t, 0deg)); transition: transform .18s ease, box-shadow .18s ease; }
.cc-card:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.14), 0 14px 22px -10px rgba(51,36,28,.45); z-index: 2; }
/* Photos keep their own shape: nothing is cropped or zoomed */
.cc-photo { display: block; background: var(--cc-cream); min-height: 2rem; }
.cc-photo img { width: 100%; height: auto; display: block; }
.cc-name { display: block; font-size: .8125rem; line-height: 1.2; margin-top: .4rem; font-weight: 500; overflow-wrap: anywhere; }
.cc-time { display: block; font-family: var(--cc-hand); font-size: 1.05rem; line-height: 1.05; color: var(--cc-wine); margin-top: .1rem; }
.cc-slip { background: var(--cc-cream); padding-top: .8rem; }
.cc-tape { position: absolute; top: -.45rem; left: 50%; width: 3.2rem; height: .9rem; transform: translateX(-50%) rotate(-4deg); background: rgba(201, 185, 166, .75); box-shadow: 0 1px 1px rgba(0,0,0,.06); }
/* While the shows load: the month is already drawn, with soft placeholders */
.cc-month-pending .event-rows { display: none; }
.cc-ghost { display: block; height: 6.5rem; background: linear-gradient(100deg, rgba(74,52,40,.05) 30%, rgba(74,52,40,.11) 50%, rgba(74,52,40,.05) 70%); background-size: 200% 100%; animation: cc-shimmer 1.2s linear infinite; }
@keyframes cc-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cc-ghost { animation: none; } }

/* Closed sign: a little card hanging from a string */
.cc-shut { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(90,42,51,.04) 8px 9px); }
.cc-closed { position: relative; align-self: center; margin-top: .9rem; padding: .5rem .8rem .55rem; background: var(--cc-wine); color: var(--cc-paper); text-align: center; border-radius: 3px; transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 8px 14px -8px rgba(51,36,28,.5); max-width: 100%; }
.cc-closed::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2.6rem; height: .9rem; transform: translateX(-50%); border: 1px solid var(--cc-gold); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.cc-closed b { display: block; font-family: var(--cc-display); font-weight: 400; font-size: 1.15rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.cc-closed em { display: block; font-style: normal; font-family: var(--cc-hand); font-size: 1rem; line-height: 1.05; margin-top: .2rem; color: var(--cc-cream); overflow-wrap: anywhere; }
.cc-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; margin: 0 0 1.25rem; font-family: var(--_clara-type---font-hand, Caveat, cursive); font-size: 1.25rem; line-height: 1.2; color: var(--_clara-color---wine, #5a2a33); }
.cc-note b { font-weight: 400; color: var(--_clara-color---espresso-dark, #33241c); }
.cc-note i { font-style: normal; opacity: .5; }
.cc-more { font-family: var(--cc-hand); font-size: 1.1rem; color: var(--cc-wine); }

/* Past shows (list view and mobile) */
.cc-pastbox { margin-top: 2.5rem; border-top: 1px solid var(--_clara-color---espresso-light, #c9b9a6); padding-top: 1.25rem; }
.cc-pastbox summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; row-gap: 0; font-family: var(--_clara-type---font-display, Dahlia, Georgia, serif); font-size: 1.75rem; color: var(--_clara-color---espresso-dark, #33241c); }
.cc-pastbox summary::-webkit-details-marker { display: none; }
.cc-pastbox summary::before { content: "+"; font-family: var(--_clara-type---font-hand, Caveat, cursive); color: var(--_clara-color---wine, #5a2a33); width: 1ch; }
.cc-pastbox[open] summary::before { content: "–"; }
.cc-pastbox summary em { flex-basis: 100%; padding-left: calc(1ch + .75rem); font-style: normal; font-family: var(--_clara-type---font-hand, Caveat, cursive); font-size: 1.25rem; color: var(--_clara-color---wine, #5a2a33); }
.cc-pastlist { margin-top: 1rem; opacity: .8; }
.cc-past-row .stamp-img { filter: sepia(.3) saturate(.75); }
/* On phones the note sits where the page's corner ornament is: start it below */
@media (max-width: 991px) { .cc-note { padding-top: 2.75rem; position: relative; z-index: 1; } }
