﻿
/* =========================================================
   calendar.css
   ========================================================= */


.mobile-event-filter {
    display: none;
    margin: 0 0 1rem 0;
}

.mobile-event-filter label {
    display: block;
    font-weight: 700;
    margin-bottom: .35rem;
}

.mobile-event-filter select {
    width: 100%;
    padding: .6rem;
    font: inherit;
}

.event-calendar-page {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 1rem 0;
}

.event-calendar-page *,
.event-calendar-page *::before,
.event-calendar-page *::after {
    box-sizing: border-box;
}

.event-calendar-header h1 {
    margin-top: 0;
}

.calendar-controls {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem 0;
}

.calendar-month-heading {
    margin: 0;
    text-align: center;
    font-size: 2rem;
    font-family: 'Merriweather', serif;

}

.calendar-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;

    min-width: 135px;
    padding: .8rem 1.2rem;

    border: 1px solid #1f1f1f;
    border-radius: .45rem;

    background: linear-gradient(to bottom, #5b5b5b 0%, #2f2f2f 100%);
    box-shadow:
        0 2px 5px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.18);

    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;

    transition:
        background .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

.calendar-nav-link:hover,
.calendar-nav-link:focus {
    background: linear-gradient(to bottom, #707070 0%, #3b3b3b 100%);
    box-shadow:
        0 4px 10px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.22);

    transform: translateY(-1px);
    text-decoration: none;
}

.calendar-nav-link:active {
    transform: translateY(1px);

    box-shadow:
        0 1px 3px rgba(0,0,0,.3),
        inset 0 2px 4px rgba(0,0,0,.25);
}

.calendar-nav-link span {
    font-size: 1.15rem;
    line-height: 1;
}

.calendar-grid-section {
    width: 100%;
    overflow-x: auto;
}

.calendar-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #b8b8b8;
    border: 1px solid #b8b8b8;
}

.calendar-weekday {
    padding: .6rem .5rem;
    background: #f0f0f0;
    font-weight: 700;
    text-align: center;
}

.calendar-day {
    min-height: 180px;
    padding: .5rem;
    background: #fff;
    overflow-wrap: anywhere;
}

.calendar-day-empty {
    background: #f8f8f8;
}

.calendar-date-number {
    font-weight: 700;
    margin-bottom: .4rem;
    background: #f8f8f8;
}

.calendar-today {
    outline: 3px solid #333;
    outline-offset: -3px;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.calendar-event-link {
	font-family: 'Archivo Narrow', sans-serif;
	font-weight:300;
    display: block;
    padding: .25rem .35rem;
    border-radius: .25rem;
    background: #eef3f7;
    border-left: 4px solid #476b82;
    font-size: .92rem;
    line-height: 1.25;
    text-decoration: none;
    text-align: left;
}

.calendar-event-link:hover,
.calendar-event-link:focus {
    text-decoration: underline;
}

.calendar-event-multiday {
    background: #eaf4ea;
    border-left-color: #2e6b3f;
}

.event-meeting-files {
    margin-top: .75rem;
    margin-bottom: 0;
    font-weight: 700;
}

.event-meeting-files a {
    color: #1f60c9;
}

.event-list-section {
    width: 100%;
    margin-top: 2rem;
}

.event-list {
    width: 100%;
    display: grid;
    gap: 1rem;
}

.event-detail {
	
	font-family: 'Archivo Narrow', sans-serif;
	font-weight:100;
	font-size:2vh;
	
    width: 100%;
    border: 1px solid #ccc;
    border-radius: .4rem;
    padding: 1rem;
    background: #fff;
}

.event-detail h3 {
	font-family: 'Merriweather', serif;
	font-weight:500;
    margin-top: 0;
}

.event-date {
    font-weight: 500;
    margin-bottom: .75rem;
    font-size:1.5em;
}

.event-description {
    margin-top: .75rem;
}

.event-pdf {
    margin-bottom: 0;
}

.event-highlight {
    outline: 3px solid #fdb610;
    outline-offset: 3px;
}

.no-events-message {
    padding: 1rem;
    border: 1px solid #ccc;
    background: #f8f8f8;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.calendar-animate-next {
    animation: calendarSlideInRight .28s ease-out;
}

.calendar-animate-prev {
    animation: calendarSlideInLeft .28s ease-out;
}

.event-source-label {
    display: inline-block;
    margin: 0 0 .5rem 0;
    padding: .2rem .45rem;
    background: #eef3f7;
    border-left: 4px solid #173B63;
    font-size: .9rem;
    font-weight: 700;
}

.home-event-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.home-event-date-wrap {
    width: auto !important;
    flex: 0 0 auto;
}

.home-event-date-box {
    width: 70px;
    height: 70px;
    background: #000f37;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,.25);
}

.home-event-month {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .05em;
}

.home-event-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.home-event-row .w3-5sixth {
    flex: 1 1 auto;
    width: auto !important;
}

@keyframes calendarSlideInRight {
    from {
        opacity: 0;
        transform: translateX(35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes calendarSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .calendar-animate-next,
    .calendar-animate-prev {
        animation: none;
    }
}

@media (max-width: 700px) {

    .home-event-row {
        gap: 12px;
        padding: 12px !important;
    }

    .home-event-date-box {
        width: 70px;
        height: 70px;
    }

    .home-event-day {
        font-size: 1.65rem;
    }

    .mobile-event-filter {
        display: block;
    }
        
    .calendar-grid-section {
        display: none;
    }

    .calendar-controls {
        gap: .5rem;
    }

    .calendar-month-heading {
        font-size: 1.15rem;
        font-family: 'Merriweather', serif;
    }

    .calendar-nav-link {
        padding: .5rem .6rem;
    }

    .event-list-section {
        margin-top: 1rem;
    }
}
