/* events.fergies.com */
:root {
    --fergies-green: #05723b;
    --fergies-green-dark: #04532b;
    --fergies-ink: #222;
    --fergies-muted: #5c5c5c;
}

body {
    color: var(--fergies-ink);
    background: #fff;
}

a { color: var(--fergies-green); }
a:hover { color: var(--fergies-green-dark); }

.test-banner {
    background: #fff3cd;
    color: #664d03;
    border-bottom: 1px solid #ffecb5;
    padding: .375rem 1rem;
    text-align: center;
    font-size: .9rem;
}

.events-header {
    background: var(--fergies-green);
    color: #fff;
    padding: .5rem 1rem;
}
.events-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}
.events-brand:hover { color: #fff; }
.events-brand img { border-radius: 50%; }
.events-brand-sub { font-weight: 400; opacity: .9; }

main { padding-top: 1.25rem; padding-bottom: 2rem; max-width: 760px; }

.events-title { font-size: 1.75rem; margin-bottom: .25rem; color: var(--fergies-green); }
.events-summary { color: var(--fergies-muted); }
.events-note { color: var(--fergies-muted); }

main h2 {
    font-size: 1.25rem;
    color: var(--fergies-green);
    border-bottom: 2px solid var(--fergies-green);
    padding-bottom: .25rem;
    margin-top: 1.75rem;
}
main h2.h5 { border: 0; margin-top: 0; font-size: 1.1rem; }
.events-day-date { font-weight: 400; font-size: 1rem; color: var(--fergies-muted); margin-left: .35rem; }
main h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fergies-ink);
    margin: 1.25rem 0 .25rem;
}

.event-list { list-style: none; padding: 0; margin: 0; }
.event { padding: .75rem 0; border-bottom: 1px solid #e5e5e5; }
.event:last-child { border-bottom: 0; }
.event-head { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.event-time { font-weight: 700; color: var(--fergies-green); white-space: nowrap; }
.event-title { font-weight: 700; font-size: 1.05rem; }
.event-badge { background: var(--fergies-green); color: #fff; font-size: .7rem; letter-spacing: .03em; }
.event-badge-canceled { background: #842029; color: #fff; font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; }
.event-canceled .event-time,
.event-canceled .event-title { text-decoration: line-through; color: var(--fergies-muted); }
.event-meta { color: var(--fergies-muted); font-size: .9rem; }
.event-off { color: #842029; font-size: .9rem; }
.event-desc { margin: .35rem 0 0; font-size: .95rem; }
.event-desc p:last-child { margin-bottom: 0; }
.event-desc img { max-width: 100%; height: auto; }

/* the event a notification was about (js/app.js) */
.event-highlight {
    background: #e6f2ea;
    box-shadow: inset 4px 0 0 var(--fergies-green);
    padding-left: .75rem;
    padding-right: .5rem;
    border-radius: .25rem;
    animation: event-flash 1.2s ease-out 2;
}
.event-highlight:focus:not(:focus-visible) { outline: none; }
@keyframes event-flash {
    0% { background: #bfe0cc; }
    100% { background: #e6f2ea; }
}
@media (prefers-reduced-motion: reduce) {
    .event-highlight { animation: none; }
}

.notify-card {
    border: 1px solid #bcd9c7;
    background: #f3f9f5;
    border-radius: .5rem;
    padding: 1rem;
    margin: 1rem 0;
}
.notify-card summary { cursor: pointer; }
.notify-card summary h2 { display: inline; margin: 0; }
.notify-card details[open] summary { margin-bottom: .75rem; }
.notify-card fieldset { margin: .5rem 0; }
.notify-card legend { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.notify-card .btn { margin: .25rem .5rem .25rem 0; }
.notify-status:empty { display: none; }
.notify-status { margin: .5rem 0 0; font-weight: 600; }
.notify-steps { padding-left: 1.25rem; margin-bottom: 0; }

.btn-fergies {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--fergies-green);
    --bs-btn-border-color: var(--fergies-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--fergies-green-dark);
    --bs-btn-hover-border-color: var(--fergies-green-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--fergies-green-dark);
    --bs-btn-active-border-color: var(--fergies-green-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--fergies-green);
    --bs-btn-disabled-border-color: var(--fergies-green);
}

.events-footer {
    border-top: 1px solid #e5e5e5;
    color: var(--fergies-muted);
    font-size: .9rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    max-width: 760px;
}
.events-footer p { margin-bottom: .25rem; }
.events-footer a[href^="tel:"] { white-space: nowrap; }

/* Accessibility (templates/accessibility.md) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible, .form-control:focus-visible, .form-check-input:focus-visible {
    outline: 3px solid var(--fergies-green-dark);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
}
main:focus, main[tabindex]:focus-visible { outline: none; box-shadow: none; }
.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    padding: .5rem 1rem;
    background: #fff;
    color: var(--fergies-green-dark);
    font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
