/*
 * The Events Calendar — Lied Randolph Public Library skin
 *
 * TEC loads this file automatically from the child theme's tribe-events/
 * folder, after its own stylesheets. Covers the default List, Month and
 * Day views (v2) and the single event page.
 *
 * Colours come from the --lrpl-* variables in style.css, so palette
 * changes there carry through. Fallback hexes are only used if style.css
 * fails to load.
 */

/* --------------------------------------------------------------------------
   1. TEC's own variables — most colours and fonts flow from these
   -------------------------------------------------------------------------- */
:root {
	--tec-font-family-sans-serif: 'Source Sans 3', system-ui, sans-serif;
	--tec-font-family-base: 'Source Sans 3', system-ui, sans-serif;

	--tec-color-text-primary: var(--lrpl-ink, #22261f);
	--tec-color-text-primary-light: var(--lrpl-ink-soft, #4a5242);
	--tec-color-text-secondary: var(--lrpl-ink-muted, #5d6555);
	--tec-color-text-disabled: #7d8574;
	--tec-color-text-events-title: var(--lrpl-ink, #22261f);
	--tec-color-text-event-title: var(--lrpl-ink, #22261f);
	--tec-color-text-event-date: var(--lrpl-ink-soft, #4a5242);
	--tec-color-text-day-of-week-month: var(--lrpl-ink-muted, #5d6555);

	--tec-color-link-primary: var(--lrpl-green, #3f6b18);
	--tec-color-link-accent: var(--lrpl-green, #3f6b18);
	--tec-color-link-accent-hover: var(--lrpl-green-dark, #2f5211);

	--tec-color-accent-primary: var(--lrpl-green, #3f6b18);
	--tec-color-accent-primary-hover: var(--lrpl-green-dark, #2f5211);
	--tec-color-accent-primary-active: var(--lrpl-green-dark, #2f5211);
	--tec-color-accent-primary-background: var(--lrpl-green-light, #f0f4e7);
	--tec-color-accent-primary-multiday: #c9dbb0;
	--tec-color-accent-primary-multiday-hover: #b7cf96;
	--tec-color-accent-primary-month-view-mobile-event-background: var(--lrpl-green-light, #f0f4e7);

	--tec-color-button-primary: var(--lrpl-green, #3f6b18);
	--tec-color-button-primary-hover: var(--lrpl-green-dark, #2f5211);
	--tec-color-button-primary-active: var(--lrpl-green-dark, #2f5211);
	--tec-color-button-primary-background: var(--lrpl-green-light, #f0f4e7);
	--tec-color-button-secondary: var(--lrpl-green-light, #f0f4e7);

	--tec-color-icon-primary: var(--lrpl-ink-muted, #5d6555);
	--tec-color-icon-active: var(--lrpl-green, #3f6b18);
	--tec-color-icon-focus: var(--lrpl-green, #3f6b18);
	--tec-color-icon-error: #a9631c;

	--tec-color-day-marker-current-month: var(--lrpl-ink, #22261f);
	--tec-color-day-marker-current-month-hover: var(--lrpl-green, #3f6b18);
	--tec-color-day-marker-past-month: #7d8574;
	--tec-color-day-marker-past-month-hover: var(--lrpl-ink-soft, #4a5242);

	--tec-color-border-default: var(--lrpl-rule, #dfe4d3);
	--tec-color-border-secondary: var(--lrpl-rule, #dfe4d3);
	--tec-color-border-tertiary: #c9cfbc;
	--tec-color-border-active: var(--lrpl-green, #3f6b18);
	--tec-color-border-hover: #c9cfbc;

	--tec-color-background: #fff;
	--tec-color-background-events: transparent;
	--tec-color-background-secondary: var(--lrpl-surface, #f4f6ee);
	--tec-color-background-secondary-hover: var(--lrpl-green-light, #f0f4e7);
	--tec-color-background-events-bar: var(--lrpl-surface, #f4f6ee);
	--tec-color-background-events-bar-submit-button: var(--lrpl-green, #3f6b18);
	--tec-color-background-events-bar-submit-button-hover: var(--lrpl-green-dark, #2f5211);
	--tec-color-background-events-bar-submit-button-active: var(--lrpl-green-dark, #2f5211);
	--tec-color-background-view-selector-list-item-hover: var(--lrpl-green-light, #f0f4e7);
	--tec-color-background-datepicker: var(--lrpl-green, #3f6b18);
	--tec-color-background-subscribe-list-item-hover: var(--lrpl-green-light, #f0f4e7);

	--tec-border-radius-default: 8px;
}

/* --------------------------------------------------------------------------
   2. Type — headings in Zilla Slab like the rest of the site
   -------------------------------------------------------------------------- */
.tribe-common .tribe-common-h1,
.tribe-common .tribe-common-h2,
.tribe-common .tribe-common-h3,
.tribe-common .tribe-common-h4,
.tribe-common .tribe-common-h5,
.tribe-common .tribe-common-h6,
.tribe-events .tribe-events-c-top-bar__datepicker-desktop,
.tribe-events .tribe-events-c-top-bar__datepicker-mobile,
.tribe-events-single .tribe-events-single-event-title {
	font-family: 'Zilla Slab', Georgia, 'Times New Roman', serif;
	font-weight: 600;
	letter-spacing: 0;
}

/* Body copy at the site's reading size, not TEC's smaller default */
.tribe-common .tribe-common-b1,
.tribe-common .tribe-common-b2,
.tribe-common .tribe-common-b3 {
	font-family: 'Source Sans 3', system-ui, sans-serif;
}
.tribe-common .tribe-common-b2 { font-size: 1.0625rem; line-height: 1.55; }
.tribe-common .tribe-common-b3 { font-size: 0.9375rem; }

/* Links: underlined in body text so they're findable without colour */
.tribe-events .tribe-events-calendar-list__event-description a,
.tribe-events .tribe-events-calendar-day__event-description a,
.tribe-events-single .tribe-events-content a {
	color: var(--lrpl-green, #3f6b18);
	text-decoration: underline;
}

/* Event titles: green links, underline on hover */
.tribe-common .tribe-events-calendar-list__event-title-link,
.tribe-common .tribe-events-calendar-day__event-title-link,
.tribe-common .tribe-events-calendar-month__calendar-event-title-link,
.tribe-common .tribe-events-calendar-month-mobile-events__mobile-event-title-link {
	color: var(--lrpl-green, #3f6b18);
	border-bottom: 0;
}
.tribe-common .tribe-events-calendar-list__event-title-link:hover,
.tribe-common .tribe-events-calendar-day__event-title-link:hover,
.tribe-common .tribe-events-calendar-month__calendar-event-title-link:hover,
.tribe-common .tribe-events-calendar-month-mobile-events__mobile-event-title-link:hover {
	color: var(--lrpl-green-dark, #2f5211);
	text-decoration: underline;
	border-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. Focus — same 3px green ring as the rest of the site
   -------------------------------------------------------------------------- */
.tribe-common a:focus-visible,
.tribe-common button:focus-visible,
.tribe-common input:focus-visible,
.tribe-events .tribe-events-calendar-month__day-cell:focus-visible {
	outline: 3px solid var(--lrpl-green-dark, #2f5211) !important;
	outline-offset: 2px !important;
}

/* --------------------------------------------------------------------------
   4. Events bar — search, view switcher
   -------------------------------------------------------------------------- */
.tribe-events .tribe-events-c-events-bar--border {
	border-color: var(--lrpl-rule, #dfe4d3);
	border-radius: var(--lrpl-radius, 12px);
}
.tribe-common .tribe-common-c-btn,
.tribe-common a.tribe-common-c-btn,
.tribe-events .tribe-events-c-search__button {
	min-height: var(--lrpl-tap, 48px);
	padding: 0 22px;
	border-radius: 999px;
	background: var(--lrpl-green, #3f6b18);
	color: #fff;
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-weight: 600;
	font-size: 1rem;
}
.tribe-common .tribe-common-c-btn:hover,
.tribe-common .tribe-common-c-btn:focus,
.tribe-events .tribe-events-c-search__button:hover {
	background: var(--lrpl-green-dark, #2f5211);
	color: #fff;
}
.tribe-events .tribe-events-c-search__input {
	font-size: 1rem;
	color: var(--lrpl-ink, #22261f);
}
.tribe-events .tribe-events-c-view-selector__list-item-link {
	min-height: var(--lrpl-tap, 48px);
	align-items: center;
}
.tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-text {
	color: var(--lrpl-green, #3f6b18);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Top bar — Today button, prev/next, date picker
   -------------------------------------------------------------------------- */
.tribe-common .tribe-common-c-btn-border,
.tribe-common a.tribe-common-c-btn-border,
.tribe-events .tribe-events-c-top-bar__today-button {
	min-height: 40px;
	padding: 0 16px;
	border: 2px solid var(--lrpl-rule, #dfe4d3);
	border-radius: 999px;
	color: var(--lrpl-ink, #22261f);
	font-weight: 600;
	background: #fff;
}
.tribe-common .tribe-common-c-btn-border:hover,
.tribe-events .tribe-events-c-top-bar__today-button:hover {
	border-color: var(--lrpl-green, #3f6b18);
	color: var(--lrpl-green, #3f6b18);
}
.tribe-events .tribe-events-c-top-bar__nav-link,
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next {
	min-width: 40px;
	min-height: 40px;
}
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next {
	color: var(--lrpl-green, #3f6b18);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. List view
   -------------------------------------------------------------------------- */
.tribe-events .tribe-events-calendar-list__month-separator-text {
	font-family: 'Zilla Slab', Georgia, serif;
	font-weight: 600;
	color: var(--lrpl-ink-muted, #5d6555);
}
.tribe-events .tribe-events-calendar-list__month-separator::after {
	background-color: var(--lrpl-rule, #dfe4d3);
}

/* Date tag: the same boxed day as the homepage event list */
.tribe-events .tribe-events-calendar-list__event-date-tag-datetime {
	padding: 8px 0;
	border: 1px solid var(--lrpl-rule, #dfe4d3);
	border-radius: 10px;
	background: var(--lrpl-surface, #f4f6ee);
}
.tribe-events .tribe-events-calendar-list__event-date-tag-weekday {
	font-weight: 600;
	text-transform: uppercase;
	color: var(--lrpl-ink-muted, #5d6555);
}
.tribe-events .tribe-events-calendar-list__event-date-tag-daynum {
	font-family: 'Zilla Slab', Georgia, serif;
	font-weight: 600;
	color: var(--lrpl-ink, #22261f);
}
.tribe-events .tribe-events-calendar-list__event-row--featured .tribe-events-calendar-list__event-date-tag-datetime::after {
	background-color: var(--lrpl-green, #3f6b18);
}
.tribe-events .tribe-events-calendar-list__event-datetime {
	color: var(--lrpl-ink-soft, #4a5242);
	font-weight: 600;
}
.tribe-events .tribe-events-calendar-list__event-featured-image {
	border-radius: var(--lrpl-radius, 12px);
}

/* --------------------------------------------------------------------------
   7. Month view
   -------------------------------------------------------------------------- */
.tribe-events .tribe-events-calendar-month__header-column {
    padding: var(--tec-spacer-2) 
}
.tribe-events .tribe-events-calendar-month__header tr th{
	background-color: #F4F6EE;
    border-color: var(--tec-color-border-secondary-month-grid);
    border-width: 1px 1px 1px 0;
    border-style: solid;
    width: 100%;
}
.tribe-events .tribe-events-calendar-month__header tr th:first-child{
border-left-width: 1px;
}
.tribe-events .tribe-events-calendar-month__header tr th<div{
	height: 100%;
}
   
.tribe-events .tribe-events-calendar-month__header-column-title {
	color: var(--lrpl-ink-muted, #5d6555);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.tribe-common--breakpoint-medium.tribe-common .tribe-common-b3 {
    font-size: var(--tec-font-size-2);
    line-height: var(--tec-line-height-1);
}
.tribe-events .tribe-events-calendar-month__body,
.tribe-events .tribe-events-calendar-month__week {
	border-color: var(--lrpl-rule, #dfe4d3);
}
.tribe-events .tribe-events-calendar-month__day {
	border-color: var(--lrpl-rule, #dfe4d3);
}
.tribe-events .tribe-events-calendar-month__day--past-month {
	background: #fafbf7;
}
.tribe-events .tribe-events-calendar-month__day-date-daynum {
	font-family: 'Zilla Slab', Georgia, serif;
	font-weight: 600;
}

/* Today: filled green circle, matching the site's calendar list */
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum,
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--lrpl-green, #3f6b18);
	color: #fff;
}

.tribe-events .tribe-events-calendar-month__calendar-event-datetime {
	color: var(--lrpl-ink-soft, #4a5242);
}
.tribe-events .tribe-events-calendar-month__multiday-event-bar {
	border-radius: 6px;
}
.tribe-events .tribe-events-calendar-month__more-events-link {
	color: var(--lrpl-green, #3f6b18);
	font-weight: 600;
}

/* Mobile month: day cells are buttons; give them a real tap size */
.tribe-events .tribe-events-calendar-month__day-cell--mobile {
	min-height: var(--lrpl-tap, 48px);
}
.tribe-events .tribe-events-calendar-month__mobile-events-icon--event {
	background-color: var(--lrpl-green, #3f6b18);
}
.tribe-events .tribe-events-calendar-month__day-cell--selected {
	background-color: var(--lrpl-green, #3f6b18);
}
.tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date,
.tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date-daynum {
	color: #fff;
}
.tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__mobile-events-icon--event {
	background-color: #fff;
}
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-day-heading,
.tribe-events .tribe-events-calendar-month-mobile-events__day-marker {
	font-family: 'Zilla Slab', Georgia, serif;
	font-weight: 600;
}

/* Hover tooltip on desktop month */
.tribe-events-tooltip-theme.tooltipster-base,
.tribe-events-tooltip-theme .tooltipster-box {
	border-color: var(--lrpl-rule, #dfe4d3);
	border-radius: var(--lrpl-radius, 12px);
}

/* --------------------------------------------------------------------------
   8. Day view
   -------------------------------------------------------------------------- */
.tribe-events .tribe-events-calendar-day__type-separator-text,
.tribe-events .tribe-events-calendar-day__time-separator-text {
	font-family: 'Zilla Slab', Georgia, serif;
	font-weight: 600;
	color: var(--lrpl-ink-muted, #5d6555);
}
.tribe-events .tribe-events-calendar-day__type-separator::after,
.tribe-events .tribe-events-calendar-day__time-separator::after {
	background-color: var(--lrpl-rule, #dfe4d3);
}
.tribe-events .tribe-events-calendar-day__event-datetime {
	color: var(--lrpl-ink-soft, #4a5242);
	font-weight: 600;
}
.tribe-events .tribe-events-calendar-day__event-featured-image {
	border-radius: var(--lrpl-radius, 12px);
}

/* --------------------------------------------------------------------------
   9. Empty state, subscribe, notices
   -------------------------------------------------------------------------- */
.tribe-events .tribe-events-c-messages__message {
	border-radius: var(--lrpl-radius, 12px);
	background: var(--lrpl-surface, #f4f6ee);
	color: var(--lrpl-ink, #22261f);
	font-size: 1.0625rem;
}
.tribe-events .tribe-events-c-subscribe-dropdown__button {
	border: 2px solid var(--lrpl-rule, #dfe4d3);
    background-color: var(--lrpl-green, #3f6b18);
	border-radius: 999px;
	color: var(--lrpl-green-light, #f0f4e7);
}
.tribe-events .tribe-events-c-subscribe-dropdown__button:hover,
.tribe-events .tribe-events-c-subscribe-dropdown__button:focus-within {
	border-color: var(--lrpl-green, #3f6b18);
	background: #fff;
	color: var(--lrpl-green, #3f6b18);
}
.tribe-events .tribe-events-c-subscribe-dropdown__button .tribe-common-c-svgicon__svg-fill{
	fill: var(--lrpl-green-light, #f0f4e7);
}
.tribe-events .tribe-events-c-subscribe-dropdown__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button-text {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding-block: 0;
    line-height: 1;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button-icon {
    margin-block: 0;
    flex-shrink: 0;
}
.tribe-events .tribe-events-c-subscribe-dropdown__content{
	border: 2px solid var(--lrpl-green, #3f6b18);
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   10. Single event page
   -------------------------------------------------------------------------- */
.tribe-events-single .tribe-events-back a,
.tribe-events-single .tribe-events-back a:visited {
	color: var(--lrpl-green, #3f6b18);
	font-weight: 600;
}
.tribe-events-single .tribe-events-schedule h2,
.tribe-events-single .tribe-events-schedule .tribe-events-cost {
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-weight: 600;
	color: var(--lrpl-ink-soft, #4a5242);
}
.tribe-events-single .tribe-events-event-meta {
	border-radius: var(--lrpl-radius, 12px);
	background: var(--lrpl-surface, #f4f6ee);
	border: 1px solid var(--lrpl-rule, #dfe4d3);
}
.tribe-events-single .tribe-events-event-meta .tribe-events-single-section-title {
	font-family: 'Zilla Slab', Georgia, serif;
	font-weight: 600;
}
.tribe-events-single .tribe-events-sub-nav a {
	color: var(--lrpl-green, #3f6b18);
	font-weight: 600;
}
.tribe-events-single .tribe-events-cal-links a,
.tribe-events-single .tribe-events-c-subscribe-dropdown__button {
	border-radius: 999px;
}

/* --------------------------------------------------------------------------
   11. Print — just the events, no controls
   -------------------------------------------------------------------------- */
@media print {
	.tribe-events .tribe-events-c-events-bar,
	.tribe-events .tribe-events-c-top-bar__nav,
	.tribe-events .tribe-events-c-subscribe-dropdown__container,
	.tribe-events .tribe-events-c-nav {
		display: none !important;
	}
}