/* ABOUTME: Styles for the month-grid thumbnail squares and hover card (see assets/calendar-thumbs.js). */
.tder-cal__event.has-thumb { display: flex !important; align-items: center; gap: 7px; padding: .3em .5em .3em .3em; line-height: 1.25; }
.tdcac-pill__text { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.tdcac-pill__thumb { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 4px; object-fit: cover; background: #e6e9ee; }
.tdcac-evcard { position: absolute; z-index: 9999; width: 280px; background: #fff; color: #222; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; opacity: 0; transform: translateY(4px); pointer-events: none; cursor: pointer; text-decoration: none; transition: opacity .12s ease, transform .12s ease; }
.tdcac-evcard.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.tdcac-evcard:hover .tdcac-evcard__title { text-decoration: underline; }
.tdcac-evcard__img { display: block; width: 100%; height: 140px; object-fit: cover; }
.tdcac-evcard__body { padding: 10px 12px 12px; }
.tdcac-evcard__title { font-weight: 700; font-size: .95rem; line-height: 1.3; margin-bottom: 3px; }
.tdcac-evcard__meta { font-size: .8rem; color: var(--tder-accent, #0069AE); margin-bottom: 6px; }
.tdcac-evcard__excerpt { font-size: .82rem; line-height: 1.45; color: #555; }
@media (hover: none) { .tdcac-evcard { display: none; } }
/* The card is an <a>; keep the theme's link underline off its body text. */
.tdcac-evcard, .tdcac-evcard * { text-decoration: none !important; }
.tdcac-evcard__title { color: #1d2327; }
.tdcac-evcard:hover .tdcac-evcard__title { color: var(--tder-accent, #0069AE); }

/* Cells grow to fit their pills instead of clipping (EventRail fixes height: 7em; overflow: hidden). */
body .tder-cal__cell { height: auto; min-height: 7em; overflow: visible; }
body .tder-cal__events li { margin-bottom: 4px; }
/* "+N more" becomes a real control */
.tdcac-more__btn { background: none; border: 0; padding: 2px 4px; margin: 0; font: inherit; font-size: .82em; text-transform: none; letter-spacing: 0; color: var(--tder-accent, #0069AE); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.tdcac-more__btn:hover { color: #1d2327; }
/* Day popover */
.tdcac-daypop { position: absolute; z-index: 10000; width: 320px; background: #fff; color: #222; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; }
.tdcac-daypop__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 14px; font-weight: 700; font-size: .95rem; background: color-mix(in srgb, var(--tder-accent, #0069AE) 8%, #fff); border-bottom: 1px solid rgba(0,0,0,.06); }
.tdcac-daypop__close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #555; padding: 0 6px; }
.tdcac-daypop__list { list-style: none; margin: 0; padding: 6px 0; max-height: 60vh; overflow-y: auto; }
.tdcac-daypop__list li { margin: 0; padding: 0; }
.tdcac-daypop__item { display: flex; gap: 10px; align-items: center; padding: 8px 14px; text-decoration: none !important; color: inherit; }
.tdcac-daypop__item:hover { background: color-mix(in srgb, var(--tder-accent, #0069AE) 7%, #fff); }
.tdcac-daypop__thumb { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #e6e9ee; }
.tdcac-daypop__text { display: flex; flex-direction: column; min-width: 0; }
.tdcac-daypop__title { font-weight: 600; font-size: .9rem; line-height: 1.3; color: #1d2327; }
.tdcac-daypop__item:hover .tdcac-daypop__title { color: var(--tder-accent, #0069AE); }
.tdcac-daypop__meta { font-size: .78rem; color: #666; }
