/* Load after styles.css. Local, script-free header and mayor grid refinements. */
.header {
    background: #fff;
    border-block-start: 4px solid #294c38;
    border-block-end: 1px solid #dae1d9;
}
.header .header-inner {
    min-height: 112px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding-block: 16px;
}
.header .brand {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
}
.header .logo {
    display: block;
    width: 152px;
    max-width: 40vw;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}
.header .brand-text {
    display: block;
    border: 0;
    border-inline-start: 1px solid #dae1d9;
    padding: 0;
    padding-inline-start: 22px;
    font-size: .875rem;
    line-height: 1.8;
    color: #526158;
    overflow-wrap: anywhere;
}
.header .brand-text b {
    display: block;
    color: #294c38;
    font-size: 1.25rem;
    line-height: 1.7;
}
.header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: .9375rem;
    min-width: 0;
    max-width: 100%;
}
.header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 4px;
    line-height: 1.6;
    color: #294c38;
    text-align: center;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.header nav a:hover,
.header nav a:focus-visible {
    background: #edf2e9;
    color: #17392d;
}
.header nav a[href="#contact"] {
    border: 1px solid #294c38;
}
a:focus-visible, button:focus-visible {
    outline: 3px solid #956820;
    outline-offset: 4px;
}
/* DOM order remains right-to-left: the current mayor starts at top right. */
.mayors .section-top {
    display: block;
    margin-block-end: 36px;
}
.mayor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    align-items: stretch;
}
.mayor-grid .mayor {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #d7dfd3;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgb(23 57 45 / 4%);
    /* Cards contain information, not links; no pointer or hover animation. */
}
.mayor-grid .mayor--current {
    border-color: #648253;
}
.mayor-grid .portrait {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    background: #e8ede4;
    border: 0;
    border-block-end: 3px solid #829769;
    border-radius: 7px 7px 0 0;
    overflow: hidden;
}
.mayor-grid .portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
    color: #294c38;
    font-size: 1rem;
}
.mayor-grid .mayor-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 20px;
}
.mayor-grid .mayor h3 {
    margin: 0 0 8px;
    color: #23352c;
    font-size: 1.125rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.mayor-grid .mayor p {
    margin: 0;
    color: #526158;
    font-size: .9375rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.mayor-grid .memorial {
    display: block;
    margin: -2px 0 8px;
    color: #526158;
    font-size: .875rem;
    line-height: 1.8;
}
.mayor-grid .current {
    display: inline-block;
    margin-block-start: 14px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #edf2e9;
    color: #294c38;
    font-size: .875rem;
    line-height: 1.8;
}
/* Permit long contact addresses to wrap at enlarged text sizes. */
.footer-main > div { min-width: 0; }
.contact-links a { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 63.99rem) {
    .mayor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header .header-inner { justify-content: center; gap: 14px; }
    .header nav { width: 100%; }
}
@media (max-width: 35.99rem) {
    .mayor-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .header .header-inner { padding-block: 14px 12px; }
    .header .brand { gap: 14px; }
    .header .logo { width: 116px; }
    .header .brand-text { padding-inline-start: 14px; }
    .header .brand-text b { font-size: 1.125rem; }
    .header nav {
        border-block-start: 1px solid #e4e9e2;
        padding-block-start: 12px;
        gap: 6px;
    }
    .header nav a { flex: 1 1 auto; padding: 8px 10px; font-size: .875rem; }
    .mayor-grid .mayor-details { padding: 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
