:root
{
    --kestrel-navy: #13294b;
    --kestrel-teal: #145f5f;
    --kestrel-gold: #e0a526;
    --kestrel-warm-bg: #f6f4ef;
    --kestrel-text: #1a1a1a;
    --kestrel-muted: #4a5568;
    --kestrel-warn: #f5c842;
    --kestrel-focus: #0d6efd;
}

body
{
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--kestrel-text);
}

h1, h2, h3, .kestrel-site-title
{
    font-family: 'Source Serif 4', Georgia, serif;
}

.kestrel-demo-strip,
.camini-demo-strip.kestrel-demo-strip
{
    background: var(--kestrel-navy);
    color: #fff;
    text-align: center;
    font-size: 13px;
    padding: 0.35rem 0.75rem;
    line-height: 1.3;
}

.camini-demo-strip a
{
    color: #d9e8ff;
    border-bottom-color: rgba(217, 232, 255, 0.45);
}

.camini-demo-strip__current
{
    color: #fff;
}

.camini-demo-strip__line
{
    display: inline-block;
    max-width: 100%;
}

.kestrel-events-tabs__bar
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.5rem 0 0.75rem;
}

.kestrel-events-tabs__tab
{
    border: 1px solid #c9c5bb;
    background: #fff;
    color: var(--kestrel-navy);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.92rem;
    cursor: pointer;
}

.kestrel-events-tabs__tab[aria-selected="true"]
{
    background: var(--kestrel-teal);
    color: #fff;
    border-color: var(--kestrel-teal);
}

.kestrel-honeypot
{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.kestrel-problem-form label,
.kestrel-pay-lookup label,
#kestrel-pay-form label
{
    display: block;
    margin-bottom: 0.75rem;
}

.kestrel-pay-bill-card
{
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.kestrel-pay-demo-note
{
    font-weight: 600;
}

.kestrel-form-status
{
    min-height: 1.25rem;
}

#masthead,
#masthead .site-header-main-section-left,
#masthead .site-header-main-section-center,
#masthead .site-header-main-section-right,
body.home .entry-hero,
body.home .entry-hero-container,
body.home header.entry-hero,
body.home .page-title.entry-title,
body.home .kadence-breadcrumbs,
body.home .title-align-inherit,
body.home .entry-header.page-title-container
{
    display: none !important;
}

body:not(.home) .entry-hero,
body:not(.home) header.entry-hero
{
    display: block !important;
    background: #fff !important;
    min-height: 0 !important;
    padding: 0.65rem 0 0.35rem !important;
    margin: 0 !important;
    border-bottom: 1px solid #e5e2da;
}

body:not(.home) .entry-hero .entry-title,
body:not(.home) .page-title.entry-title
{
    display: block !important;
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    margin: 0 auto !important;
    max-width: 1140px;
    padding: 0 1rem;
    color: var(--kestrel-navy) !important;
}

body #wrapper.site.wp-site-blocks,
body #inner-wrap,
body #primary.content-area,
body .content-wrap,
body main#primary,
body .site-main
{
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.page .entry-content > h1:first-child,
body.page .entry-content > h2:first-child,
h1.kestrel-page-title
{
    font-size: 1.75rem;
    margin: 0.75rem 0 1rem;
    color: var(--kestrel-navy);
    line-height: 1.25;
}

.kestrel-site-header
{
    background: #fff;
    border-bottom: 3px solid var(--kestrel-teal);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.kestrel-site-header__inner
{
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.kestrel-brand-lockup
{
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    margin-right: auto;
    max-width: 100%;
}

.kestrel-logo-mark
{
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
}

.kestrel-wordmark,
.kestrel-site-title
{
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--kestrel-navy);
    line-height: 1.2;
}

.kestrel-brand-lockup:hover .kestrel-wordmark,
.kestrel-brand-lockup:focus-visible
{
    color: var(--kestrel-teal);
    outline: 2px solid var(--kestrel-focus);
    outline-offset: 2px;
}

.kestrel-live-filter__input
{
    width: min(100%, 22rem);
    padding: 0.45rem 0.65rem;
    border: 1px solid #c9c5bb;
    border-radius: 6px;
    font: inherit;
}

.kestrel-live-filter__status
{
    font-size: 0.92rem;
    color: var(--kestrel-muted);
    margin: 0.35rem 0 0.75rem;
}

.kestrel-live-filter__empty
{
    margin: 0.5rem 0 1rem;
}

.kestrel-link-btn
{
    background: none;
    border: none;
    padding: 0;
    color: var(--kestrel-teal);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.kestrel-meetings-list
{
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.kestrel-meetings-list li
{
    margin: 0.35rem 0;
}

.kestrel-business-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.kestrel-business-card
{
    border: 1px solid #d8d4cb;
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
}

.kestrel-business-card__cat
{
    color: var(--kestrel-teal);
    font-weight: 600;
    margin: 0.25rem 0;
}

.kestrel-confirm-card
{
    border: 1px solid #c9c5bb;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    background: #fff;
    margin: 1rem 0;
}

.kestrel-menu-toggle
{
    display: none;
    border: 1px solid var(--kestrel-navy);
    background: var(--kestrel-navy);
    color: #fff;
    border-radius: 6px;
    padding: 0.45rem 0.85rem;
    font: inherit;
    cursor: pointer;
}

.kestrel-menu-toggle:focus-visible
{
    outline: 2px solid var(--kestrel-focus);
    outline-offset: 2px;
}

.kestrel-primary-nav
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.kestrel-menu
{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem 0.75rem;
}

.kestrel-menu a
{
    color: var(--kestrel-navy);
    text-decoration: none;
    padding: 0.35rem 0.45rem;
    border-radius: 4px;
    white-space: nowrap;
}

.kestrel-menu a:hover,
.kestrel-menu a:focus-visible
{
    background: var(--kestrel-warm-bg);
    color: var(--kestrel-teal);
    outline: none;
}

.kestrel-translate
{
    color: var(--kestrel-navy);
    font-weight: 600;
    text-decoration: none;
}

.kestrel-primary-nav input[type="search"]
{
    border: 1px solid #666;
    color: #1a1a1a;
}

main a,
.entry-content a
{
    color: var(--kestrel-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

main a:hover,
main a:focus-visible
{
    color: var(--kestrel-navy);
}

.kestrel-btn
{
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.kestrel-btn--primary
{
    background: var(--kestrel-navy);
    color: #ffffff;
    border: 2px solid var(--kestrel-gold);
}

.kestrel-btn--primary:hover,
.kestrel-btn--primary:focus-visible
{
    filter: brightness(0.95);
    outline: 2px solid var(--kestrel-focus);
    outline-offset: 2px;
}

main a.kestrel-btn--primary,
main a.kestrel-btn--primary:visited,
.entry-content a.kestrel-btn--primary
{
    color: #ffffff !important;
    background: var(--kestrel-navy) !important;
    text-decoration: none !important;
}

.kestrel-alert
{
    background: var(--kestrel-warn);
    color: #1a1a1a;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    border-bottom: 1px solid #d4a80f;
}

.kestrel-alert__dismiss
{
    background: var(--kestrel-navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}

body.home .site-main,
body.home .entry-content
{
    margin-top: 0;
    padding-top: 0;
}

body.home .kestrel-alert + .kestrel-site-header + #wrapper,
body.home #wrapper
{
    margin-top: 0;
    padding-top: 0;
}

body.home .entry-content-wrap,
body.home .entry.single-entry
{
    margin-top: 0;
    padding-top: 0;
}

body.home .site-main .entry-content > .kestrel-hero:first-child
{
    margin-top: 0;
}

body.home .content-wrap,
body.home .entry-content-wrap
{
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.kestrel-hero
{
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    margin: 0 calc(50% - 50vw) 1.5rem;
    width: 100vw;
    max-width: 100vw;
}

@media (max-width: 782px)
{
    body.home .kestrel-hero
    {
        margin-top: 0;
    }
}

.kestrel-hero__overlay
{
    width: 100%;
    background: linear-gradient(180deg, rgba(19, 41, 75, 0.35) 0%, rgba(19, 41, 75, 0.88) 100%);
    padding: 2.5rem 1rem 2rem;
}

.kestrel-hero__inner
{
    max-width: 1140px;
    margin: 0 auto;
    color: #fff;
}

.kestrel-hero h1
{
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 1rem;
}

.kestrel-quick-links
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.kestrel-quick-links__item
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--kestrel-navy);
    color: #ffffff !important;
    border: 2px solid var(--kestrel-gold);
    text-decoration: none !important;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    text-align: center;
}

.kestrel-quick-links__item .kestrel-icon
{
    color: var(--kestrel-gold);
    flex-shrink: 0;
}

.kestrel-quick-links__label
{
    color: #ffffff;
    line-height: 1.25;
}

.kestrel-section
{
    padding: 2rem 0;
}

.kestrel-section--alt
{
    background: var(--kestrel-warm-bg);
    margin: 0 calc(50% - 50vw);
    padding: 2rem 1rem;
    width: 100vw;
}

.kestrel-section__inner
{
    max-width: 1140px;
    margin: 0 auto;
}

.kadence-footer-credits,
.wp-block-theme-credit,
.site-footer .footer-html a[href*="kadencewp.com"]
{
    display: none !important;
}

body.search .entry-header,
body.search article .entry-header
{
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

body.search .entry-header .posted-on,
body.search .entry-header .entry-meta
{
    display: block;
    color: var(--kestrel-muted);
    font-size: 0.95rem;
}

.kestrel-footer-note
{
    text-align: center;
    font-size: 14px;
    color: var(--kestrel-muted);
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.kestrel-polling-map
{
    height: 360px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.kestrel-ordinance-table-wrap
{
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kestrel-ordinance-table
{
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
}

.kestrel-ordinance-table th,
.kestrel-ordinance-table td
{
    border: 1px solid #ddd;
    padding: 0.5rem 0.65rem;
    text-align: left;
}

@media (max-width: 480px)
{
    .kestrel-ordinance-table
    {
        min-width: 0;
        border: 0;
    }

    .kestrel-ordinance-table thead
    {
        display: none;
    }

    .kestrel-ordinance-table tr
    {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 0.35rem 0;
    }

    .kestrel-ordinance-table td
    {
        display: block;
        border: none;
        padding: 0.35rem 0.75rem;
    }

    .kestrel-ordinance-table td::before
    {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--kestrel-navy);
    }
}

@media (min-width: 900px)
{
    .kestrel-site-header__inner
    {
        flex-wrap: nowrap;
    }

    .kestrel-site-title
    {
        flex: 0 0 auto;
        margin-right: 1rem;
    }

    .kestrel-primary-nav
    {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        width: auto;
    }

    .kestrel-menu
    {
        flex-wrap: nowrap;
        gap: 0.2rem 0.35rem;
        font-size: 0.92rem;
    }

    .kestrel-menu a
    {
        padding: 0.35rem 0.3rem;
    }

    .kestrel-translate
    {
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .kestrel-primary-nav .search-form
    {
        min-width: 9.5rem;
    }

    .kestrel-menu-toggle
    {
        display: none !important;
    }
}

@media (max-width: 782px)
{
    .kestrel-alert + .camini-demo-strip,
    .camini-demo-strip.kestrel-demo-strip
    {
        position: relative;
        z-index: 40;
    }

    .kestrel-site-header
    {
        position: relative;
        z-index: 30;
    }

    .kestrel-menu-toggle
    {
        display: inline-flex;
        margin-left: auto;
        position: relative;
        z-index: 35;
    }

    .kestrel-primary-nav
    {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .kestrel-primary-nav[hidden]
    {
        display: none !important;
    }

    .kestrel-primary-nav:not([hidden])
    {
        display: flex !important;
    }

    .kestrel-menu
    {
        flex-direction: column;
    }
}

.kestrel-countdown__days strong
{
    color: var(--kestrel-navy);
}

.tribe-common .tribe-common-c-btn,
.tribe-events .tribe-events-c-ical__link,
.tribe-events-c-view-selector__list-item-text
{
    color: var(--kestrel-navy) !important;
    background-color: #ffffff !important;
    border: 1px solid #5f7d95 !important;
}

.leaflet-control-attribution
{
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
}

.leaflet-control-attribution a
{
    color: var(--kestrel-navy) !important;
}

.kestrel-countdown__label
{
    color: #1a1a1a;
}

.tribe-common a,
.tribe-events a,
.tribe-events-calendar-month__calendar-event-title-link
{
    color: var(--kestrel-navy) !important;
}

.tribe-events-c-top-bar__datepicker-button,
.tribe-events-c-view-selector__list-item-text
{
    color: var(--kestrel-navy) !important;
}

.kestrel-ordinance-form .ff-btn-submit,
.fluentform_1 .ff-btn-submit,
.fluentform_1 .ff_submit_btn_wrapper .ff-btn-submit,
.fluentform .kestrel-ff-submit
{
    background: var(--kestrel-navy) !important;
    color: #fff !important;
    border: 2px solid var(--kestrel-gold) !important;
    border-radius: 6px !important;
    font-weight: 600;
}

.kestrel-ordinance-form .ff-btn-submit:hover,
.fluentform_1 .ff-btn-submit:hover
{
    filter: brightness(0.95);
}

.fluentform_1 .ff-el-input--label
{
    font-weight: 600;
    color: var(--kestrel-navy);
}

.kestrel-news-list
{
    list-style: none;
    margin: 0;
    padding: 0;
}

.kestrel-news-list__item
{
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.85rem;
}

.kestrel-news-list__title
{
    font-weight: 600;
    color: var(--kestrel-navy);
    text-decoration: none;
    display: block;
}

.kestrel-news-list__date
{
    display: block;
    color: var(--kestrel-muted);
    font-size: 0.95rem;
}

.kestrel-events-list
{
    list-style: none;
    margin: 0;
    padding: 0;
}

.kestrel-events-list__item
{
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.85rem;
}

.kestrel-events-list__title
{
    font-weight: 600;
    color: var(--kestrel-navy);
    text-decoration: none;
    display: block;
}

.kestrel-events-list__meta
{
    display: block;
    color: var(--kestrel-muted);
    font-size: 0.95rem;
    line-height: 1.35;
}

.kestrel-event-single
{
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.kestrel-event-single__title
{
    color: var(--kestrel-navy);
    margin: 0 0 1rem;
}

.kestrel-event-single__facts
{
    display: grid;
    grid-template-columns: minmax(7rem, 10rem) 1fr;
    gap: 0.35rem 1rem;
    margin: 0 0 1.25rem;
}

.kestrel-event-single__facts dt
{
    font-weight: 600;
    color: var(--kestrel-navy);
}

.kestrel-event-single__facts dd
{
    margin: 0;
}

.kestrel-event-single__ics
{
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--kestrel-navy);
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

body.kestrel-comment-thanks .ff-message-success .ff-t-cell,
body.kestrel-comment-thanks .ff-message-success h3,
body.fluentform_submission_success.single-kestrel_ordinance .ff-message-success h3
{
    display: none !important;
}

body.kestrel-comment-thanks .ff-message-success,
body.fluentform_submission_success .ff-message-success
{
    border: 1px solid #e5e2da;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-top: 0.5rem;
    background: #fff;
}

.kestrel-site-footer
{
    background: var(--kestrel-navy);
    color: #e8eef8;
    margin-top: 2rem;
    padding: 2rem 1.25rem 1.25rem;
}

.kestrel-site-footer a
{
    color: #d9e8ff;
}

.kestrel-site-footer__grid
{
    max-width: 1140px;
    margin: 0 auto 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.kestrel-site-footer__heading
{
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: #fff;
}

.kestrel-site-footer__links
{
    list-style: none;
    margin: 0;
    padding: 0;
}

.kestrel-site-footer__demo
{
    text-align: center;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.92rem;
}

.kestrel-eyebrow
{
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kestrel-teal);
    margin: 0 0 0.35rem;
}

.kestrel-eyebrow--light
{
    color: #c8e8e8;
}

.kestrel-section--wash
{
    background: linear-gradient(180deg, #eef5f5 0%, var(--kestrel-warm-bg) 100%);
    padding: 1.5rem 1rem 2rem;
    margin: 1rem 0;
    border-radius: 12px;
}

.kestrel-photo-strip
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 0.75rem;
}

.kestrel-cta-band
{
    background: linear-gradient(120deg, var(--kestrel-teal), var(--kestrel-navy));
    color: #fff;
    padding: 2rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 14px;
}

.kestrel-cta-band__inner
{
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.kestrel-cta-band__title,
.kestrel-cta-band h2
{
    color: #ffffff;
    margin: 0.35rem 0 0.75rem;
}

.kestrel-photo-strip--equal .kestrel-frame--photo img
{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.kestrel-btn--light
{
    background: #fff;
    color: var(--kestrel-navy) !important;
}

.kestrel-btn--ghost
{
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff !important;
}

.kestrel-frame--photo
{
    position: relative;
    padding: 0.45rem;
    background: #f6f4ef;
    border-radius: 12px;
    box-shadow: 0 2px 0 var(--kestrel-gold), 0 0 0 3px var(--kestrel-navy), 0 12px 28px rgba(19, 41, 75, 0.18);
    margin: 0;
}

.kestrel-frame--photo img
{
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.kestrel-frame--photo figcaption
{
    font-size: 0.78rem;
    padding: 0.35rem 0.15rem 0;
    color: var(--kestrel-muted);
}

.kestrel-frame--card
{
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(19, 41, 75, 0.08), 0 10px 24px rgba(19, 41, 75, 0.1), inset 0 0 0 1px rgba(224, 165, 38, 0.35);
}

.kestrel-card-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 0.85rem;
    list-style: none;
    padding: 0;
}

.kestrel-event-card,
.kestrel-news-card
{
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
}

.kestrel-event-card__thumb,
.kestrel-news-card img
{
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
}

.kestrel-summary-dl
{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
}

.kestrel-summary-dl dt
{
    font-weight: 600;
    color: var(--kestrel-navy);
}

.kestrel-receipt-head
{
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.kestrel-confirm-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 782px)
{
    .kestrel-site-footer__grid
    {
        grid-template-columns: 1fr;
    }

    .kestrel-frame--photo
    {
        box-shadow: 0 0 0 2px var(--kestrel-navy), 0 8px 16px rgba(19, 41, 75, 0.12);
    }
}

@media (prefers-reduced-motion: no-preference)
{
  .kestrel-frame--card:hover
  {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
  }
}