/*!
 * PWM public chrome â€” BS5 look-match + theme tokens.
 * Town-specific spacing can stay in default.css; colors come from --pwm-*.
 */

.hidden { display: none !important; }
.pull-left { float: left !important; }
.pull-right { float: right !important; }
.rel { position: relative; }

.cf::before,
.cf::after {
    content: "";
    display: table;
}

.cf::after { clear: both; }

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

[x-cloak] { display: none !important; }

/* Old compiled default.css is Bootstrap 3: .fade / .collapse use .in.
   BS5 tabs, modals, and accordions use .show. Without this, News & Archives
   panes stay opacity:0 and look empty even though the articles are in the DOM. */
.fade.show,
.fade.in {
    opacity: 1;
}

.collapse.show,
.collapse.in {
    display: block;
}

tr.collapse.show,
tr.collapse.in {
    display: table-row;
}

tbody.collapse.show,
tbody.collapse.in {
    display: table-row-group;
}

/* Stop BS5 row overflow on the fluid shell */
.site-container.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Fluid until the last breakpoint. BS5 steps 540/720/960/1140/1320;
   only cap at 1440 from 1400px. Gutters stay. */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 100%;
}

@media (min-width: 1400px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1440px;
    }
}

.site-header-wrap.row,
.site-header-wrap .feature-wrap,
.feature-wrap.row,
footer.site-footer {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Logo â€” keep the home seal in the accessibility tree and centered */
.site-header #logo-container {
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.site-header #logo-container a {
    display: block;
    text-align: center;
    max-width: 100%;
}

.site-header #logo-container img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.site-header #main-menu-container,
#main-menu-container {
    background-color: var(--pwm-nav-bkg);
    height: auto;
    min-height: 50px;
    overflow: visible;
    position: relative;
    z-index: 1100;
}

/* Old town default.css used .feature-wrap { z-index: 1030 } so the
   interior banner stacked above the nav stacking context (z-index 999)
   and hid flyouts. Keep the banner under the menu. A leftover .row on
   this sibling of .site-header hangs 12px past each edge (BS5 gutters). */
.feature-wrap,
.feature-img-interior {
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

/* Menu-bar wash over the interior photo. The banner already forms a
   stacking context, so z-index -1 stays above the image and under the title. */
.feature-img-interior::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--pwm-nav-bkg);
    opacity: 0.84;
}

.feature-img-interior .container {
    padding-top: 1.65rem;
    padding-bottom: 1.5rem;
}

.feature-img-interior .pwm-interior-heading .path {
    display: block;
    margin: 0 0 0.35rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    font-weight: var(--pwm-weight-normal, 400);
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.feature-img-interior .pwm-interior-heading .path a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.feature-img-interior .pwm-interior-heading .path a:hover,
.feature-img-interior .pwm-interior-heading .path a:focus-visible {
    color: #fff;
}

.feature-img-interior .pwm-interior-heading .path a:focus-visible {
    outline-color: #fff;
}

.pwm-interior-identity {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
}

a.pwm-interior-seal {
    display: inline-flex;
    flex: 0 0 auto;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    line-height: 0;
    text-decoration: none;
}

a.pwm-interior-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

a.pwm-interior-seal:focus-visible {
    outline-color: #fff;
}

.feature-img-interior .pwm-interior-heading .title {
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(1.75rem, 1.15rem + 1.8vw, 2.5rem);
    font-weight: var(--pwm-weight-bold, 700);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    text-wrap: balance;
}

@media (max-width: 767.98px) {
    .feature-img-interior .container {
        padding-top: 1.1rem;
        padding-bottom: 1rem;
    }

    a.pwm-interior-seal {
        display: none;
    }
}

/* News tabs â€” HDS Tabs (https://hds.hel.fi/components/tabs/) */
.section-tabs {
    --pwm-tab-height: 48px;
    --pwm-tab-min-width: 148px;
    --pwm-tab-spacing: 16px;
    --pwm-tab-font-size: 1.0625rem;
    --pwm-tab-active-border-size: 5px;
    --pwm-tab-track-size: 1px;
    --pwm-tab-track-color: #cccccc;
    --pwm-tab-scroll-size: 26px;
    --pwm-tab-focus-size: 2px;
    margin-bottom: 12px;
}

.section-tabs-bar {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding-top: var(--pwm-tab-focus-size);
    border-bottom: var(--pwm-tab-track-size) solid var(--pwm-tab-track-color);
}

.section-tabs-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--pwm-tab-scroll-size);
    align-self: flex-end;
    width: var(--pwm-tab-scroll-size);
    height: var(--pwm-tab-height);
    color: var(--pwm-primary);
}

.section-tabs-scroll[hidden] {
    display: none !important;
}

.section-tabs-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--pwm-tab-scroll-size);
    padding: 0;
    border: var(--pwm-tab-focus-size) solid transparent;
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.section-tabs-scroll-btn i,
.section-tabs-scroll-btn .svg-inline--fa {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.section-tabs-scroll-btn:focus,
.section-tabs-scroll-btn:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: var(--pwm-focus, #003d66);
}

.section-tabs-viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.section-tabs-viewport::-webkit-scrollbar {
    display: none;
}

.section-tabs[data-pwm-tabs-ready] .section-tabs-viewport {
    overflow-x: hidden;
}

.section-tabs .nav {
    display: block;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    border-bottom: 0;
    flex-wrap: nowrap;
}

.section-tabs[data-pwm-tabs-ready] .nav {
    will-change: transform;
}

.section-tabs .nav > .nav-item {
    display: inline-block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.section-tabs .nav-link,
.section-tabs .nav > li > a,
.section-tabs .nav > li > button.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: var(--pwm-tab-min-width);
    height: var(--pwm-tab-height);
    min-height: var(--pwm-tab-height);
    margin: 0;
    padding: 0 var(--pwm-tab-spacing);
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: var(--pwm-primary);
    font-size: var(--pwm-tab-font-size);
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
}

.section-tabs .nav-link:focus,
.section-tabs .nav-link:focus-visible {
    box-shadow: none;
}

.section-tabs .nav-link::before,
.section-tabs .nav-link:hover:not(.active)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0;
    background-color: var(--pwm-primary);
    pointer-events: none;
    z-index: 1;
}

.section-tabs .nav-link:hover:not(.active)::after {
    height: 2px;
    z-index: 2;
}

.section-tabs .nav-link.active,
.section-tabs .nav-link.active:hover,
.section-tabs .nav-link.active:focus-visible {
    color: var(--pwm-primary);
    background-color: transparent;
    border-color: transparent;
}

.section-tabs .nav-link.active::before,
.section-tabs .nav-link.active:hover::before,
.section-tabs .nav-link.active:focus-visible::before {
    height: var(--pwm-tab-active-border-size);
}

/* News cards: title across the top. From 768px the picture sits in a left
   column beside the story and stays small — zoom is the large view.
   Aspect is kept (no crop). CKEditor inline sizes lose to these rules.
   On a phone the picture spans the card. */
.main-content .tab-content article header h2 {
    margin: 0 0 4px;
    line-height: 1.25;
}

.main-content .tab-content article header .article-date {
    margin: 0 0 14px;
}

.article-layout {
    display: block;
}

.article-copy {
    display: flow-root;
    min-width: 0;
}

.main-content .tab-content article .article-body p {
    margin: 0 0 0.75em !important;
}

.main-content .tab-content article .article-body p:last-child {
    margin-bottom: 0 !important;
}

.main-content .tab-content article .article-body ul,
.main-content .tab-content article .article-body ol {
    display: block;
}

.tab-content article .article-zoom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    border-radius: var(--pwm-radius);
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 0;
    text-align: center;
    cursor: zoom-in;
    appearance: none;
    overflow: hidden;
}

.tab-content article > img.article-cover,
.tab-content article > img.pull-left,
.tab-content article > img.float-start,
.tab-content article .article-body img,
.main-content .tab-content article p img:only-child,
.tab-content article .article-zoom img {
    float: none;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: contain;
    object-position: center;
    margin: 0 !important;
    border-radius: inherit;
}

@media (min-width: 768px) {
    .article-layout.has-media {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 28px;
        align-items: start;
    }

    .article-layout > .article-zoom {
        justify-self: start;
        width: max-content;
        max-width: 240px;
        margin: 0;
        padding: 0;
        background: transparent;
        justify-content: flex-start;
    }

    .tab-content article .article-layout > .article-zoom img {
        width: auto !important;
        max-width: 240px !important;
        max-height: 320px !important;
    }

    .tab-content article .article-body .article-zoom {
        float: left;
        width: auto;
        max-width: min(240px, 46%);
        margin: 0 28px 12px 0;
        background: transparent;
    }

    .tab-content article .article-body .article-zoom img,
    .tab-content article .article-body img,
    .main-content .tab-content article .article-body p img:only-child {
        width: auto !important;
        max-width: 240px !important;
        max-height: 320px !important;
    }
}

@media (min-width: 1200px) {
    .article-layout.has-media {
        column-gap: 36px;
    }

    .article-layout > .article-zoom,
    .tab-content article .article-body .article-zoom {
        max-width: 340px;
    }

    .tab-content article .article-layout > .article-zoom img,
    .tab-content article .article-body .article-zoom img,
    .tab-content article .article-body img,
    .main-content .tab-content article .article-body p img:only-child {
        max-width: 340px !important;
        max-height: 440px !important;
    }
}

.tab-content article button.read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin: 16px 0 0;
    padding: 12px 4px 4px;
    border: 0;
    border-top: 1px solid #e4e7eb;
    border-radius: 0;
    background: transparent;
    color: var(--pwm-primary);
    box-shadow: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.tab-content article button.read-more i {
    font-size: 0.72rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.tab-content article button.read-more[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.tab-content article button.read-more:hover,
.tab-content article button.read-more:focus-visible,
.tab-content article button.read-more:active {
    background: transparent;
    color: var(--pwm-primary);
    text-decoration: none;
}

.tab-content article button.read-more:hover span,
.tab-content article button.read-more:focus-visible span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tab-content article button.read-more:focus-visible {
    outline: 3px solid var(--pwm-focus, #003d66);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .tab-content article button.read-more i {
        transition: none;
    }
}

.article-zoom-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(8, 12, 18, 0);
    opacity: 1;
    pointer-events: none;
    transition: background-color 160ms ease;
}

.article-zoom-hint i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #fff;
    color: #14181f;
    font-size: 1.05rem;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 160ms ease, transform 160ms ease;
}

.article-zoom:hover .article-zoom-hint,
.article-zoom:focus-visible .article-zoom-hint {
    background: rgba(8, 12, 18, 0.42);
}

.article-zoom:hover .article-zoom-hint i,
.article-zoom:focus-visible .article-zoom-hint i {
    opacity: 1;
    transform: none;
}

.article-zoom:focus-visible {
    outline: 3px solid var(--pwm-focus, #003d66);
    outline-offset: 3px;
}

html.pwm-zoom-open,
html.pwm-zoom-open body {
    overflow: hidden;
}

.news-zoom {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 28px;
    border: 0;
    background: transparent;
}

.news-zoom-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 12, 18, 0.84);
    backdrop-filter: blur(6px);
}

.news-zoom-figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.news-zoom-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1120px, 100%);
    max-height: calc(100vh - 112px);
    object-fit: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.news-zoom-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    margin: 0;
    padding: 0 16px 0 14px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #14181f;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.news-zoom-close i {
    font-size: 1.15rem;
}

.news-zoom-close:hover,
.news-zoom-close:focus-visible {
    background: #f3f5f7;
}

.news-zoom-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.tab-content a.read-more,
.tab-content button.read-more,
.content-department button.read-more {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 8px;
    background-color: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
    border: 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.tab-content a.read-more:hover,
.tab-content a.read-more:focus,
.tab-content button.read-more:hover,
.tab-content button.read-more:focus,
.content-department button.read-more:hover,
.content-department button.read-more:focus-visible {
    background-color: var(--pwm-button-hover);
    color: var(--pwm-button-text);
}

.content-department ul,
.article-body ul {
    list-style: disc;
    padding-left: 1.25em;
    margin: 0.75em 0;
}

.content-department ol,
.article-body ol {
    list-style: decimal;
    padding-left: 1.25em;
    margin: 0.75em 0;
}

.content-department hr.pwm-more,
.article-body hr.pwm-more {
    display: none;
}

/* CMS page tables. CKEditor writes border, width, and height inline, so the
   skin has to win on those. Horizontal rules only, full content column.
   A table nested in a cell is layout, and is put back below. */
.dyn-page-content .page-body table {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 1.5rem 0;
    border: 1px solid var(--pwm-calendar-line, #dde5e4) !important;
    border-radius: var(--pwm-radius, 10px);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--pwm-white, #fff);
    font-size: var(--pwm-font-body);
    line-height: var(--pwm-line-body, 1.5);
}

.dyn-page-content .page-body table:first-child {
    margin-top: 0;
}

.dyn-page-content .page-body table:last-child {
    margin-bottom: 0;
}

.dyn-page-content .page-body table caption {
    caption-side: top;
    padding: 0 0.15rem 0.55rem;
    color: var(--pwm-text-muted, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
    font-weight: var(--pwm-weight-ui, 600);
    text-align: start;
}

.dyn-page-content .page-body table :is(th, td) {
    height: auto !important;
    padding: 0.7rem 0.95rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pwm-calendar-line, #dde5e4) !important;
    color: var(--pwm-text, #333);
    font-weight: var(--pwm-weight-normal, 400);
    text-align: start;
    vertical-align: top;
    white-space: normal !important;
    overflow-wrap: break-word;
}

.dyn-page-content .page-body table > thead > tr > :is(th, td),
.dyn-page-content .page-body table > tbody > tr:first-child:not(:has(td)) > th {
    background: var(--pwm-calendar-muted-bkg, #f7f9f9);
    color: var(--pwm-title, var(--pwm-primary));
    font-weight: var(--pwm-weight-ui, 600);
    vertical-align: bottom;
}

.dyn-page-content .page-body table > tbody th {
    font-weight: var(--pwm-weight-ui, 600);
}

.dyn-page-content .page-body table > :is(tbody, tfoot) > tr:last-child > :is(th, td) {
    border-bottom: 0 !important;
}

.dyn-page-content .page-body table > tbody > tr:hover > :is(th, td) {
    background: var(--pwm-calendar-list-hover, #f1f7f6);
}

.dyn-page-content .page-body table > tbody > tr:first-child:not(:has(td)):hover > th {
    background: var(--pwm-calendar-muted-bkg, #f7f9f9);
}

.dyn-page-content .page-body table img {
    max-width: 100%;
    height: auto;
}

.dyn-page-content .page-body table table {
    width: auto !important;
    margin: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
}

.dyn-page-content .page-body table table > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
    color: inherit;
    font-weight: inherit;
}

.dyn-page-content .page-body table table > tbody > tr:hover > :is(th, td) {
    background: transparent;
}

.tab-content .article-btn a,
.tab-content a.article-btn,
.tab-content .article-btn-full a {
    background-color: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
}

.notices-section {
    background-color: var(--pwm-notice-bkg);
    padding: 16px 18px 12px;
    margin-bottom: 24px;
}

.notices-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 4px solid var(--pwm-primary);
    margin-bottom: 12px;
}

.notices-section .title {
    text-transform: uppercase;
    color: var(--pwm-primary) !important;
    border-bottom: none !important;
    line-height: 1.3;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.notices-section-all {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--pwm-primary);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.notices-section-all:hover,
.notices-section-all:focus-visible {
    color: var(--pwm-primary);
}

.notices-section-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notices-section .notice-item {
    background-color: #fff;
    margin: 0;
    border: 1px solid #e2e2e2;
    border-radius: var(--pwm-radius, 6px);
}

.notices-section .notice-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px;
    color: var(--pwm-notice-link);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.notices-section .notice-item a span {
    float: none !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    text-transform: none !important;
    font-weight: inherit !important;
    font-size: inherit !important;
}

.notices-section .notice-item a img {
    margin-right: 0;
    flex-shrink: 0;
}

.notices-section .notice-item a span.notice-widget-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px !important;
    border-radius: var(--pwm-radius, 4px) !important;
    background-color: var(--pwm-notice-button-bkg) !important;
    color: var(--pwm-notice-button-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

.notices-section .notice-widget-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.notices-section .notice-item a span.notice-widget-title {
    color: var(--pwm-notice-link) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notices-section .notice-item a span.notice-widget-meta,
.notices-section .notice-item a span.notice-widget-meta span {
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.4;
}

.notices-section .notice-item:hover,
.notices-section .notice-item:focus-within {
    background-color: #fafafa;
}

.notices-section .notice-item a:focus-visible {
    outline: 2px solid var(--pwm-notice-title);
    outline-offset: 2px;
}

.notices-page .notices-block {
    margin-bottom: 40px;
}

.notices-page .notices-block .title {
    color: var(--pwm-notice-title);
    border-bottom: 4px solid var(--pwm-notice-title);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.3;
}

.notices-page .notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notices-page .notice-list li {
    border-bottom: 1px solid #f3f3f3;
    padding: 0;
}

.notices-page .notice-hdr {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 44px;
    padding: 12px 0;
    text-decoration: none;
}

.notices-page ul.notice-list li a.notice-hdr .notice-icon {
    float: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 44px;
    min-height: 44px;
    margin-right: 0;
    padding: 0 8px;
    line-height: 1.2;
    border-radius: var(--pwm-radius, 4px);
    background-color: var(--pwm-notice-button-bkg) !important;
    color: var(--pwm-notice-button-text) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
}

.notices-page ul.notice-list li a.notice-hdr:hover .notice-icon,
.notices-page ul.notice-list li a.notice-hdr:focus-visible .notice-icon {
    background-color: var(--pwm-notice-button-bkg) !important;
    color: var(--pwm-notice-button-text) !important;
}

.notices-page .notice-info {
    float: none;
    min-width: 0;
}

.notices-page .notices-count,
.notices-page .notices-empty {
    color: #475569;
    font-size: 14px;
    margin: 8px 0 12px;
}

.notice-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.notice-pager-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: var(--pwm-radius, 6px);
    background: #fff;
    color: var(--pwm-notice-title);
    font-weight: 600;
    cursor: pointer;
}

.notice-pager-btn:hover:not(:disabled),
.notice-pager-btn:focus-visible {
    background: #f8fafc;
}

.notice-pager-btn.is-current {
    background: var(--pwm-notice-title);
    border-color: var(--pwm-notice-title);
    color: #fff;
    cursor: default;
}

.notice-pager-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.site-header #main-menu-container,
.site-header .main-nav,
#main-menu {
    overflow: visible;
}

/* Same square-arrow as the quick-links rail. Flyout rows are flex, so the
   glyph sits on the trailing edge; footer and drawer labels keep it inline. */
.pwm-external-icon {
    flex: 0 0 auto;
    font-size: 0.7em;
    line-height: 1;
    opacity: 0.82;
}

footer.site-footer .pwm-external-icon,
.pwm-nav-row-label .pwm-external-icon {
    margin-left: 0.4em;
}

@keyframes pwm-nav-pop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Main nav band (1200px and up)

   pwmMenu() renders this list only on desktop. It sets --pwm-nav-font-size,
   --pwm-nav-item-pad-x and --pwm-nav-tracking on the list, then parks what
   still does not fit in More. Each top item is a 40px pill centred in the
   56px band. The section holding the current page carries a
   --pwm-nav-accent bar on the band's bottom edge. Flyouts are white cards on
   the --pwm-menu-* surface tokens; pwmMenu() adds .is-flipped to a card that
   would run past the viewport, so it opens the other way.

   Town default.css still draws this list as a SmartMenus table: display:
   table !important, 1% cells, and flyout links with !important colour and
   padding. The !important flags here answer those.
   -------------------------------------------------------------------------- */

@media (min-width: 1200px) {
    /* Parked off-screen the button stayed in the tab order, so desktop users
       hit an invisible control before the first nav item. */
    .navbar-toggler,
    .main-menu-btn {
        display: none;
    }

    .site-header #main-menu-container,
    #main-menu-container {
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), 0 12px 24px -20px rgba(0, 0, 0, 0.6);
    }

    #main-menu,
    #main-menu:not(.is-open) {
        display: flex !important;
        align-items: stretch;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 2px;
        width: 100%;
        min-height: 56px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #main-menu > li {
        position: relative;
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        width: auto;
        float: none;
    }

    #main-menu > li.pwm-nav-overflow {
        display: none !important;
    }

    #main-menu.is-nav-fitting .nav-sub {
        display: none !important;
    }

    #main-menu > li > a,
    #main-menu > li > .nav-trigger {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.4375rem;
        width: auto;
        height: 40px;
        margin: 0;
        padding: 0 var(--pwm-nav-item-pad-x, 14px);
        border: 0;
        border-radius: 8px;
        background-color: transparent;
        color: var(--pwm-nav-link);
        font-family: inherit;
        font-size: var(--pwm-nav-font-size, 0.9375rem);
        font-weight: var(--pwm-weight-ui, 600);
        letter-spacing: var(--pwm-nav-tracking, 0.02em);
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 0.15s ease;
    }

    #main-menu > li > a:hover,
    #main-menu > li > a:focus-visible,
    #main-menu > li > .nav-trigger:hover,
    #main-menu > li > .nav-trigger:focus-visible,
    #main-menu > li.is-open > .nav-trigger {
        background-color: var(--pwm-nav-hover);
        color: var(--pwm-nav-link);
    }

    #main-menu > li > a[aria-current="page"]::after,
    #main-menu > li.is-current-branch > a::after,
    #main-menu > li.is-current-branch > .nav-trigger::after {
        content: "";
        position: absolute;
        right: var(--pwm-nav-item-pad-x, 14px);
        bottom: -8px;
        left: var(--pwm-nav-item-pad-x, 14px);
        height: 3px;
        border-radius: 3px 3px 0 0;
        background-color: var(--pwm-nav-accent, var(--pwm-nav-link));
    }

    #main-menu .nav-trigger {
        appearance: none;
        -webkit-appearance: none;
        text-align: left;
    }

    #main-menu .nav-caret {
        display: inline-block;
        flex: 0 0 auto;
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.18s ease;
    }

    #main-menu > li.is-open > .nav-trigger .nav-caret {
        transform: translateY(2px) rotate(-135deg);
    }

    #main-menu > li[data-nav-slot="search"] {
        margin-left: 6px;
        padding-left: 10px;
    }

    #main-menu > li[data-nav-slot="search"]::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 1px;
        height: 24px;
        margin-top: -12px;
        background-color: var(--pwm-nav-link);
        opacity: 0.3;
    }

    #main-menu .pwm-nav-search {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background-color: transparent;
        color: var(--pwm-nav-link);
        font-size: 0.9375rem;
        line-height: 1;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    #main-menu .pwm-nav-search:hover {
        background-color: var(--pwm-nav-hover);
    }

    #main-menu .pwm-nav-search[aria-expanded="true"] {
        background-color: var(--pwm-nav-link);
        color: var(--pwm-nav-bkg);
    }

    #main-menu .nav-sub {
        display: none;
        position: absolute;
        z-index: 1100;
        width: max-content;
        min-width: 240px;
        max-width: 320px;
        margin: 0;
        padding: 8px;
        list-style: none;
        border: 1px solid var(--pwm-menu-line, #e6eaee);
        border-radius: 12px;
        background-color: var(--pwm-menu-surface, #ffffff);
        box-shadow: 0 18px 40px -16px rgba(15, 23, 32, 0.32), 0 2px 8px rgba(15, 23, 32, 0.08);
    }

    #main-menu li.is-open > .nav-sub {
        display: block !important;
        animation: pwm-nav-pop 0.16s ease-out;
    }

    #main-menu > li > .nav-sub {
        top: calc(100% + 4px);
        left: 0;
    }

    /* Spans the gap under the band so the pointer never leaves the item. */
    #main-menu > li > .nav-sub::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 6px;
    }

    #main-menu > li > .nav-sub.is-flipped {
        right: 0;
        left: auto;
    }

    #main-menu .nav-sub-2,
    #main-menu .nav-sub-3 {
        top: -9px;
        left: calc(100% + 4px);
        z-index: 1101;
    }

    #main-menu .nav-sub-2.is-flipped,
    #main-menu .nav-sub-3.is-flipped {
        right: calc(100% + 4px);
        left: auto;
    }

    #main-menu .nav-sub li {
        position: relative;
        display: block;
        margin: 0;
        border: 0;
        text-align: left;
    }

    #main-menu .nav-sub li,
    #main-menu .nav-sub li:hover,
    #main-menu .nav-sub li:focus-within {
        background-color: transparent;
    }

    #main-menu .nav-sub a,
    #main-menu .nav-sub .nav-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 44px;
        height: auto !important;
        margin: 0;
        padding: 10px 12px !important;
        border: 0;
        border-radius: 8px;
        background-color: transparent;
        color: var(--pwm-menu-text, var(--pwm-text, #333333)) !important;
        font-family: inherit;
        font-size: 0.9375rem;
        font-weight: var(--pwm-weight-normal, 400);
        letter-spacing: normal;
        line-height: 1.35;
        text-decoration: none;
        white-space: normal;
        cursor: pointer;
        transition: background-color 0.12s ease;
    }

    #main-menu .nav-sub a:hover,
    #main-menu .nav-sub a:focus-visible,
    #main-menu .nav-sub .nav-trigger:hover,
    #main-menu .nav-sub .nav-trigger:focus-visible,
    #main-menu .nav-sub li.is-open > .nav-trigger {
        background-color: var(--pwm-menu-tint, #f3f5f7);
    }

    /* Weight plus a straight bar mark the page, so colour is not the only cue.
       An inset shadow follows the row's rounded corners and paints a parenthesis. */
    #main-menu .nav-sub a[aria-current="page"] {
        position: relative;
        color: var(--pwm-menu-accent, var(--pwm-primary, #1e3a5f)) !important;
        font-weight: var(--pwm-weight-ui, 600);
    }

    #main-menu .nav-sub a[aria-current="page"]::before {
        content: "";
        position: absolute;
        top: 10px;
        bottom: 10px;
        left: 0;
        width: 3px;
        border-radius: 2px;
        background-color: var(--pwm-menu-accent, var(--pwm-primary, #1e3a5f));
    }

    #main-menu .nav-sub .nav-caret {
        color: var(--pwm-menu-muted, #595959);
        transform: rotate(-45deg);
    }

    #main-menu .nav-sub li:has(> .nav-sub.is-flipped) > .nav-trigger .nav-caret {
        transform: rotate(135deg);
    }
}

@media (max-width: 1199px) {
    .main-menu-btn[aria-expanded="true"] .main-menu-btn-icon {
        height: 0;
        background: transparent;
    }

    .main-menu-btn[aria-expanded="true"] .main-menu-btn-icon:before,
    .main-menu-btn[aria-expanded="true"] .main-menu-btn-icon:after {
        top: 0;
    }

    .main-menu-btn[aria-expanded="true"] .main-menu-btn-icon:before {
        transform: rotate(-45deg);
    }

    .main-menu-btn[aria-expanded="true"] .main-menu-btn-icon:after {
        transform: rotate(45deg);
    }
}

.feature-icons-section {
    --feature-cols: 6;
    max-height: none !important;
    overflow: visible !important;
    background-color: var(--pwm-featured-bkg);
    padding: 16px 0 18px;
}

.feature-icons-section[data-feature-cols="4"] { --feature-cols: 4; }
.feature-icons-section[data-feature-cols="3"] { --feature-cols: 3; }
.feature-icons-section[data-feature-cols="8"] { --feature-cols: 8; }

.feature-cards-shell {
    position: relative;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 479px) {
    .feature-icons-section:not(.is-carousel) .feature-cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .feature-cards {
        grid-template-columns: repeat(var(--feature-cols, 6), minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .feature-icons-section[data-feature-cols="6"] .feature-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.feature-card {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.feature-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 160px;
    padding: 14px 12px 12px;
    color: var(--pwm-featured-link);
    text-decoration: none;
    background-color: color-mix(in srgb, var(--pwm-featured-bkg) 82%, #000);
    border: 0;
    border-radius: var(--pwm-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card a:hover,
.feature-card a:focus-within {
    background-color: var(--pwm-featured-hover);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.feature-card-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 11px;
    background-color: color-mix(in srgb, var(--pwm-featured-icon) 12%, transparent);
    color: var(--pwm-featured-icon);
}

.feature-card-badge i,
.feature-card-badge .svg-inline--fa {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1;
}

.feature-card-badge img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.feature-card-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--pwm-featured-link);
}

.feature-card-divider {
    display: block;
    width: 32px;
    height: 2px;
    margin: 7px auto 6px;
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 2px;
}

.feature-card-desc {
    display: block;
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--pwm-featured-link);
}

.feature-card.legal-ads a {
    background-color: #fff;
    color: var(--pwm-nav-bkg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.feature-card.legal-ads .feature-card-badge {
    background-color: color-mix(in srgb, var(--pwm-nav-bkg) 10%, #fff);
    color: var(--pwm-nav-bkg);
}

.feature-card.legal-ads .feature-card-title,
.feature-card.legal-ads .feature-card-desc {
    color: var(--pwm-nav-bkg);
}

.feature-card.legal-ads .feature-card-divider {
    background-color: color-mix(in srgb, var(--pwm-nav-bkg) 28%, #fff);
}

.feature-card.legal-ads a:hover,
.feature-card.legal-ads a:focus-within {
    background-color: #f4f4f4;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.feature-card.legal-ads a:focus-visible {
    outline-color: var(--pwm-nav-bkg);
}

.feature-icons-section .new-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    background: var(--pwm-new-tag);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 0 var(--pwm-radius-lg) 0 8px;
}

.feature-cards-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: var(--pwm-featured-arrow);
    background-color: color-mix(in srgb, var(--pwm-featured-bkg) 55%, #000);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
}

.feature-cards-arrow.prev { left: -6px; }
.feature-cards-arrow.next { right: -6px; }

.feature-cards-arrow:hover,
.feature-cards-arrow:focus-visible {
    background-color: var(--pwm-featured-arrow-hover);
    color: var(--pwm-featured-arrow);
}

.feature-cards-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.feature-cards-arrow:disabled {
    opacity: 0.38;
    cursor: default;
}

.feature-cards-arrow i,
.feature-cards-arrow .svg-inline--fa {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
}

.feature-cards-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
}

.feature-cards-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.feature-cards-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--pwm-featured-arrow) 38%, transparent);
}

.feature-cards-dot[aria-current="true"] span {
    width: 22px;
    background-color: var(--pwm-featured-arrow);
}

.feature-cards-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 8px;
}

.feature-icons-section.is-carousel {
    --feature-carousel-gap: 10px;
    --feature-carousel-visible: 2;
}

.feature-icons-section.is-carousel .feature-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--feature-carousel-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    padding: 2px 8px 4px;
}

.feature-icons-section.is-carousel .feature-cards::-webkit-scrollbar {
    display: none;
}

.feature-icons-section.is-carousel .feature-card {
    flex: 0 0 calc((100% - (var(--feature-carousel-visible) - 1) * var(--feature-carousel-gap)) / var(--feature-carousel-visible));
    min-width: 0;
    scroll-snap-align: start;
}

.feature-icons-section.is-carousel .feature-card a {
    min-height: 148px;
    padding: 12px 8px 10px;
}

.feature-icons-section.is-carousel .feature-card-title {
    font-size: 0.8125rem;
}

.feature-icons-section.is-carousel .feature-card-desc {
    font-size: 0.75rem;
}

.feature-icons-section.is-carousel .feature-cards-arrow.prev { left: 4px; }
.feature-icons-section.is-carousel .feature-cards-arrow.next { right: 4px; }

@media (prefers-reduced-motion: reduce) {
    .feature-card a {
        transition: none;
    }
}

/* Home hero (pwmSliders). Staff choose every photo and line of text, so
   contrast never depends on the photo. The copy sits in the middle of the
   photo on a blurred glow that stays at about 0.63 over every glyph: white
   clears 4.5:1 even over a pure white photo. --pwm-hero-panel fills the band
   only when there is no photo. */
.pwm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    min-height: clamp(440px, 38vw, 580px);
    background-color: var(--pwm-hero-panel, #0c1926);
    color: #fff;
}

.pwm-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* The outgoing photo stays opaque under the incoming one, then drops,
   so a crossfade never dips to the panel color. */
.pwm-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.7s ease 0.7s;
}

.pwm-hero-img.is-base {
    opacity: 1;
    transition: none;
}

.pwm-hero-img.is-active {
    z-index: 1;
    opacity: 1;
    transition-delay: 0s;
}

.pwm-hero-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3rem 0;
}

.pwm-hero-body > .container {
    width: 100%;
}

/* fit-content keeps the glow on the words, not the widest the column may
   grow. The slides share one grid cell, so it is sized by the longest slide
   and does not resize as they rotate. */
.pwm-hero-copy {
    position: relative;
    isolation: isolate;
    width: fit-content;
    max-width: min(46rem, 92%);
    margin-inline: auto;
    text-align: center;
}

/* An ellipse 7.5rem above and below the words and 16rem to either side,
   blurred by 72px, so the shade is wide and has no edge. The plate is 0.66;
   at this inset the blur keeps the copy's corners at about 0.63, and white
   stays above 4.5:1 on a white photo. White needs 0.57 — shrink the inset
   or grow the blur and re-check. */
.pwm-hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -7.5rem -16rem;
    border-radius: 50%;
    background-color: rgba(9, 16, 22, 0.66);
    filter: blur(72px);
    pointer-events: none;
}

.pwm-hero.is-bare {
    min-height: 0;
}

.pwm-hero.is-bare .pwm-hero-copy::before {
    content: none;
}

/* Every slide shares one grid cell, so the band is as tall as the longest
   copy and does not jump between slides. */
.pwm-hero-slides {
    display: grid;
}

.pwm-hero-slide {
    grid-area: 1 / 1;
    align-self: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.pwm-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.45s ease 0.2s, transform 0.45s ease 0.2s, visibility 0s;
}

.pwm-hero-title,
.pwm-hero-sitename {
    margin: 0;
    font-family: var(--pwm-font-sans);
    font-size: clamp(2rem, 1.1rem + 2.4vw, 3.25rem);
    font-weight: var(--pwm-weight-bold, 700);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: #fff;
    text-wrap: balance;
    overflow-wrap: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 24px rgba(0, 0, 0, 0.35);
}

.pwm-hero-caption {
    max-width: 34rem;
    margin: 0.875rem auto 0;
    font-size: clamp(1rem, 0.9rem + 0.35vw, 1.1875rem);
    line-height: 1.5;
    color: #fff;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

.pwm-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 48px;
    margin-top: 1.5rem;
    padding: 0.75rem 1.375rem;
    border-radius: 999px;
    background-color: var(--pwm-hero-accent, #ffffff);
    color: var(--pwm-hero-accent-text, #111111);
    font-size: 1rem;
    font-weight: var(--pwm-weight-bold, 700);
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease;
}

.pwm-hero-cta:hover {
    color: var(--pwm-hero-accent-text, #111111);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.pwm-hero-cta i {
    font-size: 0.875em;
    transition: transform 0.2s ease;
}

.pwm-hero-cta:hover i {
    transform: translateX(3px);
}

.pwm-hero-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.pwm-hero-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pwm-hero-btn:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.pwm-hero-dots {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.pwm-hero-dot {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 44px;
    padding: 0 3px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.pwm-hero-dot span {
    position: relative;
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 999px;
    overflow: hidden;
    transition: width 0.3s ease;
}

.pwm-hero-dot:hover span {
    background-color: rgba(255, 255, 255, 0.45);
}

/* The current dot stretches into a bar that fills over the slide's time,
   so the visitor can see the slideshow is moving and when it will change. */
.pwm-hero-dot.is-active span {
    width: 40px;
    border-color: var(--pwm-hero-accent, #ffffff);
    background-color: rgba(255, 255, 255, 0.2);
}

.pwm-hero-dot.is-active span::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--pwm-hero-accent, #ffffff);
    transform-origin: left center;
}

.pwm-hero-dot.is-timing span::after {
    animation: pwm-hero-progress var(--pwm-hero-interval, 7000ms) linear both;
}

.pwm-hero.is-held .pwm-hero-dot.is-timing span::after {
    animation-play-state: paused;
}

@keyframes pwm-hero-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.pwm-hero-count {
    margin: 0 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: var(--pwm-weight-ui, 600);
    font-variant-numeric: tabular-nums;
    color: #fff;
}

/* Below lg the photo is taller and the type is a step smaller. The copy
   stays centered, with the same scrim behind the words. */
@media (max-width: 991.98px) {
    .pwm-hero {
        min-height: clamp(420px, 118vw, 560px);
        min-height: min(clamp(420px, 118vw, 560px), 88svh);
    }

    .pwm-hero-body {
        padding: 2.5rem 0;
    }

    .pwm-hero.is-bare .pwm-hero-body {
        padding: 1.5rem 0;
    }

    .pwm-hero-copy {
        max-width: min(40rem, 92%);
    }

    .pwm-hero-title,
    .pwm-hero-sitename {
        font-size: clamp(1.625rem, 1.15rem + 2.2vw, 2.25rem);
        line-height: 1.12;
    }

    .pwm-hero-caption {
        margin-top: 0.5rem;
        font-size: 1rem;
    }

    .pwm-hero-cta {
        min-height: 44px;
        margin-top: 1rem;
        padding: 0.625rem 1.125rem;
        font-size: 0.9375rem;
    }

    .pwm-hero-controls {
        gap: 0.375rem;
        margin-top: 1rem;
        padding-top: 0;
        border-top: 0;
    }
}

footer.site-footer {
    /* Derived hairline for the group dividers and the credits rule. Chrome-only
       name â€” it resolves from the footer text color, do not seed it into
       ThemeTokens. */
    --pwm-footer-rule: rgba(255, 255, 255, 0.18);
    border-top: 2px solid color-mix(in srgb, var(--pwm-footer-bkg) 85%, #000);
    background-color: var(--pwm-footer-bkg);
    color: var(--pwm-footer-text);
}

footer.site-footer h3 { color: var(--pwm-footer-title); }
footer.site-footer a { color: var(--pwm-footer-link); }
footer.site-footer a:hover,
footer.site-footer a:focus { color: var(--pwm-footer-link-hover); }

footer nav .submenu {
    list-style-type: disc;
    padding-left: 18px;
    margin-top: 4px;
}

/* Footer photo slider — one frame for every slide. A shared height plus cover
   crops a portrait and a panorama to the same band. */
.home-bottom-slider .carousel-item {
    background-color: #d5dbe1;
}

.home-bottom-slider .carousel-item img {
    width: 100%;
    height: clamp(200px, 32vw, 360px);
    object-fit: cover;
    object-position: center center;
    display: block;
}

.home-bottom-slider .carousel-control-prev,
.home-bottom-slider .carousel-control-next {
    /* A percent width is narrower than the icon on a phone, and the flex item
       then squashes into a tall oval. Keep a fixed square instead. */
    width: 2.75rem;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.home-bottom-slider .carousel-control-prev { left: 0.65rem; }
.home-bottom-slider .carousel-control-next { right: 0.65rem; }

.home-bottom-slider .carousel-control-prev-icon,
.home-bottom-slider .carousel-control-next-icon {
    display: block;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    max-width: 2.75rem;
    max-height: 2.75rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1rem 1rem;
}

.home-bottom-slider .carousel-indicators [data-bs-target] {
    /* The control is at least 24px square (2.5.8). The dash is only the
       painted strip; drop-shadow follows that strip, not the hit box. */
    box-sizing: border-box;
    width: 30px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    margin-right: 3px;
    margin-left: 3px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-image: linear-gradient(var(--pwm-white, #ffffff), var(--pwm-white, #ffffff));
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 3px;
    box-shadow: none;
    filter:
        drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.9));
}

.home-bottom-slider .carousel-pause {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 2.75rem;
    transform: translateX(-50%);
    min-width: 44px;
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background-color: var(--pwm-text, #333333);
    color: var(--pwm-white, #ffffff);
    font: inherit;
    font-size: var(--pwm-font-small, 0.875rem);
    font-weight: var(--pwm-weight-ui, 600);
    line-height: 1.2;
    cursor: pointer;
}

.sidebar .title-sidebar {
    color: var(--pwm-sidebar-title);
    border-bottom-color: var(--pwm-sidebar-line);
}

/* Sidebar accordions â€” a flat list of section rules under the rail heading, not
   a card: no surface, no radius, no shadow. Panels are independent (no Bootstrap
   data-bs-parent) so a visitor can hold meetings and events open side by side. */
.pwm-accordion__group {
    border-bottom: 1px solid #ccd4dc;
}

.pwm-accordion + .pwm-accordion {
    border-top: 1px solid #e3e8ed;
}

.pwm-accordion__heading {
    margin: 0;
}

.pwm-accordion__button {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 12px 4px;
    border: 0;
    background: none;
    color: var(--pwm-sidebar-text);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: var(--pwm-weight-ui);
    line-height: var(--pwm-line-heading);
    text-align: left;
    cursor: pointer;
    transition: color 0.16s ease;
}

.pwm-accordion__button:hover,
.pwm-accordion__button[aria-expanded="true"] {
    color: var(--pwm-link);
}

.pwm-accordion__button:hover .pwm-accordion__label {
    text-decoration: underline;
}

.pwm-accordion__button:focus-visible {
    outline: 3px solid var(--pwm-focus);
    outline-offset: -2px;
}

/* The chevron trails the label so every row starts on the rail's left edge,
   in line with the heading above it. */
.pwm-accordion__chevron {
    order: 2;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--pwm-sidebar-arrow);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), color 0.16s ease;
}

.pwm-accordion__button:hover .pwm-accordion__chevron,
.pwm-accordion__button[aria-expanded="true"] .pwm-accordion__chevron {
    color: inherit;
}

.pwm-accordion__button[aria-expanded="true"] .pwm-accordion__chevron {
    transform: rotate(180deg);
}

.pwm-accordion__label {
    order: 1;
    flex: 1 1 auto;
}

/* An open section hangs off a rule instead of sitting on a tinted panel. */
.pwm-accordion__content {
    padding: 0 4px 16px 14px;
    border-left: 2px solid #e3e8ed;
}

.sidebar-resources .ul-dated,
.sidebar-resources .pwm-accordion__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-resources .ul-dated li,
.sidebar-resources .pwm-accordion__content ul li {
    margin: 0 0 10px;
}

.sidebar-resources .ul-dated li:last-child,
.sidebar-resources .pwm-accordion__content ul li:last-child {
    margin-bottom: 0;
}

.sidebar-resources .pwm-accordion__content a {
    color: var(--pwm-link);
    text-decoration: none;
}

.sidebar-resources .pwm-accordion__content a:hover,
.sidebar-resources .pwm-accordion__content a:focus-visible {
    color: var(--pwm-link-hover);
    text-decoration: underline;
}

.sidebar-resources .ul-dated a {
    display: block;
}

.sidebar-resources .ul-dated span {
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 1.35;
}

.sidebar-resources .ul-dated strong {
    display: block;
    font-weight: 600;
    color: var(--pwm-link);
}

.sidebar-resources .budget-years {
    margin-top: -4px;
}

.sidebar-resources .budget-year .pwm-accordion__button {
    min-height: 44px;
    padding: 8px 0;
}

/* Each budget year opens on its own. The panel is not a Bootstrap collapse:
   the year list is drawn after fetch, and a bound .show class would fight
   the open/closed state. */
.sidebar-resources .budget-year__panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.26s;
}

.sidebar-resources .budget-year__panel.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition-delay: 0s;
}

.sidebar-resources .budget-year__clip {
    min-height: 0;
    overflow: hidden;
}

.sidebar-resources .budget-year .pwm-accordion__content {
    padding: 0 0 8px;
    border-left: 0;
}

@media (max-width: 767.98px) {
    .sidebar-resources .budget-year .pwm-accordion__button {
        min-height: 48px;
        padding: 10px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-resources .budget-year__panel {
        transition: none;
    }
}

/* Finance department card — same year accordion as Home Resources, with
   document rows laid out like the Forms list. */
.sidebar .pwm-budgets-widget .pwm-budget-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .pwm-budgets-widget .pwm-budget-links > li {
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar .pwm-budgets-widget .pwm-budget-links > li:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.sidebar .pwm-budgets-widget .pwm-budget-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: var(--pwm-link);
    font-size: 0.9375rem;
    font-weight: var(--pwm-weight-ui);
    line-height: 1.4;
    text-decoration: none;
}

.sidebar .pwm-budgets-widget .pwm-budget-link > i,
.sidebar .pwm-budgets-widget .pwm-budget-link > .svg-inline--fa {
    flex: 0 0 1.25em;
    width: 1.25em;
    margin-top: 0.22em;
    font-size: 0.875rem;
    color: var(--pwm-text-muted, #595959);
    text-align: center;
}

.sidebar .pwm-budgets-widget .pwm-budget-link-label {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar .pwm-budgets-widget .pwm-budget-link:hover,
.sidebar .pwm-budgets-widget .pwm-budget-link:focus-visible {
    color: var(--pwm-link-hover);
}

.sidebar .pwm-budgets-widget .pwm-budget-link:hover > i,
.sidebar .pwm-budgets-widget .pwm-budget-link:focus-visible > i,
.sidebar .pwm-budgets-widget .pwm-budget-link:hover > .svg-inline--fa,
.sidebar .pwm-budgets-widget .pwm-budget-link:focus-visible > .svg-inline--fa {
    color: var(--pwm-link-hover);
}

.sidebar .pwm-budgets-widget .pwm-budget-link:hover .pwm-budget-link-label,
.sidebar .pwm-budgets-widget .pwm-budget-link:focus-visible .pwm-budget-link-label {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sidebar-resources .dept-children {
    padding-left: 14px;
    margin-top: 6px;
}

.sidebar-resources .sidebar-empty {
    margin: 0;
    color: #777;
    font-size: 13px;
}

/* Below md the sidebar drops under the article at full width, so the rows get
   thumb-sized and the open section gets more room to breathe. */
@media (max-width: 767.98px) {
    .pwm-accordion__button {
        min-height: 48px;
        padding: 14px 4px;
        font-size: var(--pwm-font-body);
    }

    .pwm-accordion__content {
        padding: 0 4px 18px 16px;
    }
}

.main-content > .container > .row,
.featured-home-buttons.row,
.featured-home-buttons .row {
    --bs-gutter-x: 30px;
}

/* Quick links — a compact floating launcher opens a modern right drawer. */
.quick-links-tab {
    appearance: none;
    display: inline-grid;
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    top: auto;
    place-items: center;
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    margin: 0;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--pwm-quicklinks-tab);
    background-image: none;
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    z-index: 9998;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.quick-links-tab::after {
    content: "Quick Links";
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    width: max-content;
    padding: 0.42rem 0.65rem;
    border-radius: 6px;
    background: #17212b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(5px, -50%);
    transition: opacity 160ms ease, transform 160ms ease;
}

.quick-links-tab:hover,
.quick-links-tab:focus-visible {
    background: var(--pwm-quicklinks-tab);
    color: #fff;
    filter: brightness(0.92);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.34);
}

.quick-links-tab:hover::after,
.quick-links-tab:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

#overlay.toggled {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

#sidebar-quicklinks {
    z-index: 99999;
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    width: min(420px, calc(100vw - 20px));
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: var(--pwm-quicklinks-menu);
    box-shadow: -18px 0 45px rgba(15, 23, 42, 0.2);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 280ms;
}

#sidebar-quicklinks.visible {
    right: 0;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
}

#sidebar-quicklinks .quicklinks-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 92px;
    padding: 1.15rem 1rem 1.1rem 1.25rem;
    background: var(--pwm-quicklinks-tab);
    color: #fff;
}

#sidebar-quicklinks .quicklinks-head-icon {
    display: inline-grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

#sidebar-quicklinks .quicklinks-head-copy {
    min-width: 0;
}

#sidebar-quicklinks .quicklinks-eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

#sidebar-quicklinks .quicklinks-head h2 {
    margin: 0;
    color: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

#sidebar-quicklinks button.arrow-close {
    display: inline-grid;
    position: static;
    flex: 0 0 44px;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

#sidebar-quicklinks button.arrow-close:hover,
#sidebar-quicklinks button.arrow-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: rotate(4deg);
}

#sidebar-quicklinks .quicklinks-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f5f7fa;
    scrollbar-color: #aeb7c2 transparent;
    scrollbar-width: thin;
}

#sidebar-quicklinks .quicklinks-intro {
    margin: 0 0 1rem;
    color: var(--pwm-text-muted, #5c6670);
    font-size: 0.875rem;
    line-height: 1.5;
}

#sidebar-quicklinks .filter-quicklinks {
    position: relative;
    margin: 0 0 1.2rem;
}

#sidebar-quicklinks .filter-quicklinks label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--pwm-text);
    font-size: 0.8125rem;
    font-weight: 700;
}

#sidebar-quicklinks .quicklinks-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0 0.45rem 0 0.9rem;
    border: 1px solid #c9d1da;
    border-radius: 10px;
    background: #fff;
    color: #65717e;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

#sidebar-quicklinks .quicklinks-search:focus-within {
    border-color: var(--pwm-focus);
    box-shadow: 0 0 0 3px rgba(0, 61, 102, 0.12);
}

#sidebar-quicklinks .quicklinks-search input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0.7rem 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--pwm-text);
    font: inherit;
    font-size: 0.9375rem;
}

#sidebar-quicklinks .quicklinks-search input::-webkit-search-cancel-button {
    display: none;
}

#sidebar-quicklinks .quicklinks-clear {
    display: inline-grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #65717e;
    cursor: pointer;
}

#sidebar-quicklinks .quicklinks-clear:hover,
#sidebar-quicklinks .quicklinks-clear:focus-visible {
    background: #e9edf2;
    color: var(--pwm-text);
}

#sidebar-quicklinks .ql-group {
    margin: 0 0 0.65rem;
    overflow: hidden;
    border: 1px solid #d9dfe6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

#sidebar-quicklinks .ql-group.is-open {
    border-color: #bac4cf;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}

#sidebar-quicklinks .ql-group h3 {
    margin: 0;
    padding: 0;
    font: inherit;
}

#sidebar-quicklinks .ql-heading {
    appearance: none;
    display: block;
    position: relative;
    width: 100%;
    min-height: 54px;
    padding: 0.8rem 3.25rem 0.8rem 1rem;
    border: 0;
    background: transparent;
    color: var(--pwm-text);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    transition: background-color 160ms ease, color 160ms ease;
}

#sidebar-quicklinks .ql-heading:hover,
#sidebar-quicklinks .ql-heading:focus-visible,
#sidebar-quicklinks .ql-group.is-open .ql-heading {
    background: #f8fafc;
    color: var(--pwm-quicklinks-tab);
}

#sidebar-quicklinks .ql-heading::before {
    content: "";
    position: absolute;
    right: 0.95rem;
    top: 50%;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #edf1f5;
    transform: translateY(-50%);
}

#sidebar-quicklinks .ql-heading::after {
    content: "";
    position: absolute;
    right: 1.52rem;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #56616c;
    border-bottom: 2px solid #56616c;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 180ms ease;
}

#sidebar-quicklinks .ql-group.is-open .ql-heading::after {
    transform: translateY(-30%) rotate(-135deg);
}

#sidebar-quicklinks .ql-heading:focus-visible {
    outline: 2px solid var(--pwm-focus);
    outline-offset: -3px;
}

#sidebar-quicklinks .ql-links,
#sidebar-quicklinks .ql-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#sidebar-quicklinks .ql-links {
    border-top: 1px solid #e3e7ec;
    background: #fbfcfd;
}

#sidebar-quicklinks .ql-links li,
#sidebar-quicklinks .ql-search-results li {
    margin: 0;
    border-top: 1px solid #e7ebef;
}

#sidebar-quicklinks .ql-links li:first-child,
#sidebar-quicklinks .ql-search-results li:first-child {
    border-top: 0;
}

#sidebar-quicklinks .ql-links a,
#sidebar-quicklinks .ql-search-results a {
    display: flex;
    position: relative;
    align-items: center;
    min-height: 46px;
    padding: 0.65rem 2.25rem 0.65rem 1rem;
    color: var(--pwm-link);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, padding-left 150ms ease;
}

#sidebar-quicklinks .ql-links a::after,
#sidebar-quicklinks .ql-search-results a::after {
    content: "\203A";
    position: absolute;
    right: 1rem;
    color: #7b8794;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
}

#sidebar-quicklinks .ql-links a:hover,
#sidebar-quicklinks .ql-links a:focus-visible,
#sidebar-quicklinks .ql-search-results a:hover,
#sidebar-quicklinks .ql-search-results a:focus-visible {
    padding-left: 1.2rem;
    background: #eef3f7;
    color: var(--pwm-link-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#sidebar-quicklinks .ql-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    color: var(--pwm-text);
    font-size: 0.8125rem;
    font-weight: 700;
}

#sidebar-quicklinks .ql-results-head strong {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 24px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #e4e9ee;
    color: #46515c;
    font-size: 0.75rem;
}

#sidebar-quicklinks .ql-search-results ul {
    overflow: hidden;
    border: 1px solid #d9dfe6;
    border-radius: 10px;
    background: #fff;
}

#sidebar-quicklinks .ql-searching,
#sidebar-quicklinks .ql-empty {
    margin: 0;
    padding: 1.1rem;
    border: 1px dashed #c9d1da;
    border-radius: 10px;
    background: #fff;
    color: var(--pwm-text-muted, #5c6670);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 480px) {
    .quick-links-tab {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 54px;
        min-width: 54px;
        height: 54px;
        min-height: 54px;
    }

    #sidebar-quicklinks {
        width: 100vw;
        border-radius: 0;
    }

    #sidebar-quicklinks .quicklinks-body {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-links-tab,
    .quick-links-tab::after,
    #sidebar-quicklinks,
    #sidebar-quicklinks .ql-heading::after {
        transition: none;
    }
}

.main-content .tab-content .btn-lm {
    background-color: #f3f3f3;
    color: var(--pwm-text);
    min-height: 44px;
    font-weight: 700;
}

.main-content .tab-content .btn-lm:hover,
.main-content .tab-content .btn-lm:focus-visible {
    background-color: #e8e8e8;
    color: var(--pwm-text);
}

body a {
    color: var(--pwm-link);
    text-decoration: none;
}

body a:hover {
    color: var(--pwm-link-hover);
    text-decoration: none;
}

.main-content h1 a,
.main-content h2 a,
.main-content h3 a,
.main-content h4 a,
.page .title a {
    text-decoration: none;
}

/* Interior page header â€” muted Home / Section crumb, large title.
   Color and the 4px rule stay on --pwm-title. */
.main-content .page .path {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: var(--pwm-weight-normal, 400);
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--pwm-text-muted, #595959);
}

.main-content .page .path a {
    color: inherit;
    text-decoration: none;
}

.main-content .page .path a:hover,
.main-content .page .path a:focus-visible {
    color: var(--pwm-link);
    text-decoration: underline;
}

.main-content .page > .title,
.main-content .page .path + .title,
.main-content .inner-section.page > .title,
.main-content .page :is(h2, h3).title {
    margin: 0 0 1.25rem !important;
    padding: 0 0 0.45rem;
    color: var(--pwm-title, var(--pwm-primary));
    border-bottom: 4px solid var(--pwm-title, var(--pwm-primary));
    font-size: clamp(1.5625rem, 1.15rem + 1.3vw, 2rem);
    font-weight: var(--pwm-weight-bold, 700);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: none;
    text-wrap: balance;
}

/* Cover sits on the heading rule. The 1.25rem title margin is the gap above it. */
.main-content .page > .title:has(+ .cover-img) {
    margin-bottom: 0 !important;
}

/* Public FAQ — a light disclosure list instead of stacked brand-color bars.
   Any number of answers can be open. The exact-content grid animation avoids
   a brittle max-height cap; visibility and inert keep closed links unreachable. */
#faq.pwm-faq {
    margin: 2rem 0 2.5rem;
    padding: 0;
}

.pwm-faq-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.75rem;
}

/* Beat `.main-content h2 { margin-bottom: 1em }` so the first row sits close. */
.main-content #faq.pwm-faq .pwm-faq-title {
    margin: 0;
    padding: 0;
    color: var(--pwm-text);
    font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.625rem);
    font-weight: var(--pwm-weight-bold, 700);
    line-height: var(--pwm-line-heading, 1.25);
    letter-spacing: -0.02em;
}

.pwm-faq-expand {
    appearance: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.5rem 0.875rem;
    border: 1px solid #ccd3db;
    border-radius: 999px;
    background: #fff;
    color: var(--pwm-link);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.pwm-faq-expand:hover,
.pwm-faq-expand:focus-visible {
    border-color: #9eabb8;
    background: #f5f7f9;
    color: var(--pwm-link-hover);
}

.pwm-faq-list {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.pwm-faq-item {
    margin: 0;
    padding: 0;
    border: 1px solid #d7dde4;
    border-radius: var(--pwm-radius, 10px);
    background: #fff;
    box-shadow: 0 1px 2px rgba(12, 25, 38, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pwm-faq-item.is-open {
    border-color: #b6c1cc;
    box-shadow: 0 5px 16px rgba(12, 25, 38, 0.08);
}

.main-content .pwm-faq-q-heading {
    margin: 0;
    padding: 0;
    font: inherit;
}

.pwm-faq-q {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: calc(var(--pwm-radius, 10px) - 1px);
    background: none;
    color: var(--pwm-text);
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    transition: background-color 180ms ease, color 180ms ease;
}

.pwm-faq-q > span {
    flex: 1 1 auto;
    min-width: 0;
}

.pwm-faq-q::after {
    content: "";
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    margin: -0.2rem 0.25rem 0 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pwm-faq-item.is-open > .pwm-faq-q-heading .pwm-faq-q::after {
    margin-top: 0.2rem;
    transform: rotate(-135deg);
}

.pwm-faq-q:hover,
.pwm-faq-q:focus-visible {
    background: #f5f7f9;
    color: var(--pwm-link-hover);
}

.pwm-faq-item.is-open > .pwm-faq-q-heading .pwm-faq-q {
    border-radius: calc(var(--pwm-radius, 10px) - 1px) calc(var(--pwm-radius, 10px) - 1px) 0 0;
    background: #f5f7f9;
    color: var(--pwm-link);
}

.pwm-faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0s linear 260ms;
}

.pwm-faq-item.is-open > .pwm-faq-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition-delay: 0s;
}

/* 0fr still sizes to min-content unless the grid child can shrink to 0.
   Padding lives on the grandchild so it cannot leak a line of answer. */
.pwm-faq-clip {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.pwm-faq-a {
    max-width: var(--pwm-measure);
    margin: 0 1rem;
    padding: 0.875rem 2.75rem 1rem 0;
    border-top: 1px solid #e3e7eb;
    color: var(--pwm-text);
}

.pwm-faq-a > *:first-child {
    margin-top: 0;
}

.pwm-faq-a > *:last-child {
    margin-bottom: 0;
}

.pwm-faq-a img {
    max-width: 100%;
    height: auto;
}

/* CMS-authored FAQ blocks. Some legacy pages carry their own inline navy-bar
   skin and display:none click script; the platform layer deliberately wins on
   specificity and pwmCmsFaq() supplies disclosure state and exact-height motion. */
.main-content .page-body .faq-accordion {
    width: 100%;
    margin: 1.5rem 0 2.25rem;
}

.main-content .page-body .faq-accordion .faq-controls {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.75rem;
}

.main-content .page-body .faq-accordion .faq-toggle-all {
    min-height: 44px;
    margin: 0;
    padding: 0.5rem 0.875rem;
    border: 1px solid #ccd3db;
    border-radius: 999px;
    background: #fff;
    color: var(--pwm-link);
    cursor: pointer;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.main-content .page-body .faq-accordion .faq-toggle-all:hover,
.main-content .page-body .faq-accordion .faq-toggle-all:focus-visible {
    border-color: #9eabb8;
    background: #f5f7f9;
    color: var(--pwm-link-hover);
}

.main-content .page-body .faq-accordion .faq-item {
    margin: 0 0 0.625rem;
    padding: 0;
    overflow: visible;
    border: 1px solid #d7dde4;
    border-radius: var(--pwm-radius, 10px);
    background: #fff;
    box-shadow: 0 1px 2px rgba(12, 25, 38, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.main-content .page-body .faq-accordion .faq-item.is-open {
    border-color: #b6c1cc;
    box-shadow: 0 5px 16px rgba(12, 25, 38, 0.08);
}

.main-content .page-body .faq-accordion .faq-question {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: calc(var(--pwm-radius, 10px) - 1px);
    background: #fff;
    color: var(--pwm-text);
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    transition: background-color 180ms ease, color 180ms ease;
}

.main-content .page-body .faq-accordion .faq-question::after {
    content: "";
    position: static;
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    margin: -0.2rem 0.25rem 0 auto;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    font-size: 0;
    transform: rotate(45deg);
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-content .page-body .faq-accordion .faq-question:hover,
.main-content .page-body .faq-accordion .faq-question:focus-visible {
    background: #f5f7f9;
    color: var(--pwm-link-hover);
}

.main-content .page-body .faq-accordion .faq-question.active {
    border-radius: calc(var(--pwm-radius, 10px) - 1px) calc(var(--pwm-radius, 10px) - 1px) 0 0;
    background: #f5f7f9;
    color: var(--pwm-link);
}

.main-content .page-body .faq-accordion .faq-question.active::after {
    content: "";
    margin-top: 0.2rem;
    transform: rotate(-135deg);
}

.main-content .page-body .faq-accordion[data-pwm-cms-faq-ready] .faq-answer {
    display: grid !important;
    grid-template-rows: 0fr;
    visibility: hidden;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--pwm-text);
    line-height: var(--pwm-line-body, 1.5);
    transition: grid-template-rows 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0s linear 260ms;
}

.main-content .page-body .faq-accordion[data-pwm-cms-faq-ready] .faq-item.is-open > .faq-answer,
.main-content .page-body .faq-accordion[data-pwm-cms-faq-ready] .faq-question.active + .faq-answer {
    grid-template-rows: 1fr;
    visibility: visible;
    transition-delay: 0s;
}

.main-content .page-body .faq-accordion .faq-answer-clip {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.main-content .page-body .faq-accordion .faq-answer-content {
    max-width: var(--pwm-measure);
    margin: 0 1rem;
    padding: 0.875rem 2.75rem 1rem 0;
    border-top: 1px solid #e3e7eb;
}

.main-content .page-body .faq-accordion .faq-answer-content > :first-child {
    margin-top: 0;
}

.main-content .page-body .faq-accordion .faq-answer-content > :last-child {
    margin-bottom: 0;
}

.ticker { background-color: var(--pwm-ticker-bkg); }
.ticker .ticker-alert {
    background-color: var(--pwm-ticker-alert-bkg);
    color: var(--pwm-ticker-alert-text) !important;
}
.ticker .ticker-attention {
    background-color: var(--pwm-ticker-attention-bkg);
    color: var(--pwm-ticker-attention-text) !important;
}
.ticker .ticker-update {
    background-color: var(--pwm-ticker-update-bkg);
    color: var(--pwm-ticker-update-text) !important;
}

/* --------------------------------------------------------------------------
   2026 public rhythm â€” Public Sans + spacing / radius / hover
   -------------------------------------------------------------------------- */
body#site-body {
    --bs-link-decoration: none;
    font-family: var(--pwm-font-sans);
    font-size: var(--pwm-font-body);
    font-weight: var(--pwm-weight-normal);
    line-height: var(--pwm-line-body);
    -webkit-font-smoothing: antialiased;
}

.site-header #logo-container {
    padding: 18px 0 14px;
}

@media (min-width: 768px) {
    .site-header #logo-container img {
        max-height: 140px;
    }
}

.main-content {
    padding-top: 40px;
    /* Soft gray canvas on home and interior. Margin becomes padding
       so the gray runs to the next band / footer. */
    margin-bottom: 0;
    padding-bottom: 72px;
    background-color: #fafafa;
}

/* The hero, the interior banner, and the newsletter are full-bleed bands
   inside main. This padding is a strip under the menu and, on the home
   page, another above the footer. Drop the top padding when the hero or
   the interior banner is the first child, and the bottom padding when the
   newsletter is the last. This outranks the phone padding below. The gray
   well stays under interior page content. */
.main-content:has(> .pwm-hero:first-child),
.main-content:has(> .feature-wrap:first-child) {
    padding-top: 0;
}

.main-content:has(> .pwm-newsletter:last-child) {
    padding-bottom: 0;
}

/* Home and interior drop main's top padding so the hero / banner sit
   flush under the menu. Put that same canvas gap back between the
   featured-icons or interior banner and the content row. */
.feature-icons-section + .container,
.feature-icons-section + .container-fluid,
.feature-icons-section + .container-sm,
.feature-icons-section + .container-md,
.feature-icons-section + .container-lg,
.feature-icons-section + .container-xl,
.feature-icons-section + .container-xxl,
.feature-wrap + .container,
.feature-wrap + .container-fluid,
.feature-wrap + .container-sm,
.feature-wrap + .container-md,
.feature-wrap + .container-lg,
.feature-wrap + .container-xl,
.feature-wrap + .container-xxl {
    padding-top: 40px;
}

/* Keep container padding equal to half the row gutter. A BS5 .row
   uses negative margins; without matching padding the article sits
   on the viewport edge. */
.main-content > .container,
.main-content > .container-fluid,
.main-content > .container-sm,
.main-content > .container-md,
.main-content > .container-lg,
.main-content > .container-xl,
.main-content > .container-xxl {
    --bs-gutter-x: 36px;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.main-content > .container > .row {
    --bs-gutter-x: 36px;
    row-gap: 28px;
}

.featured-home-buttons.row,
.featured-home-buttons .row {
    --bs-gutter-x: 24px;
    row-gap: 28px;
}

.notices-section {
    padding: 22px 22px 16px;
    border-radius: var(--pwm-radius-lg);
    margin-bottom: 32px;
}

.main-content .tab-content article,
.main-content .tab-content #section-news .featured-article {
    background: #fff;
    border: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    border-radius: var(--pwm-radius-lg);
    padding: 22px 22px 16px !important;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(1, 64, 76, 0.05);
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.tab-content a.read-more,
.tab-content button.read-more,
.content-department button.read-more {
    border-radius: 8px;
    padding: 12px 18px;
    margin-top: 12px;
}

.sidebar .title-sidebar {
    margin: 0 0 12px;
    padding: 0 0 8px;
    letter-spacing: 0.04em;
    font-size: 1.0625rem !important;
    font-weight: var(--pwm-weight-bold);
    line-height: var(--pwm-line-heading);
    text-transform: uppercase;
    border-bottom-width: 4px;
    border-bottom-style: solid;
}

.sidebar .buttons-resources {
    margin-top: 28px;
}

/* Featured home buttons â€” town CSS owns the photos and desktop min-height;
   this block owns the card treatment (scrim, bottom-left title / bottom-right
   arrow, hover lift) and the compact phone height so every town gets the same
   polish. */
.featured-home-buttons {
    margin-top: 8px;
}

.featured-home-buttons .button-parent .buttons-child,
.featured-home-buttons .button-parent a {
    border-radius: var(--pwm-radius);
    overflow: hidden;
}

.featured-home-buttons .button-parent .buttons-child {
    background-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-home-buttons .button-parent .buttons-child:hover,
.featured-home-buttons .button-parent .buttons-child:focus-within {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

/* Light 22% wash lets the town photo read. White title/icon sit on a
   bottom-up gradient (58% extra black at the baseline over that wash â‰ˆ
   #54 on a white photo, ~7.5:1 â€” AAA large / AA+ normal). 1.4.3 does not
   depend on the photo being dark. Hover/keyboard focus deepen both layers. */
.featured-home-buttons .button-parent a {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px 18px;
    background-color: rgba(0, 0, 0, 0.22);
    background-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.20) 50%,
        rgba(0, 0, 0, 0) 78%
    );
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.featured-home-buttons .button-parent .buttons-child:hover a,
.featured-home-buttons .button-parent .buttons-child:focus-within a {
    background-color: rgba(0, 0, 0, 0.30);
    background-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.64) 0%,
        rgba(0, 0, 0, 0.26) 50%,
        rgba(0, 0, 0, 0) 78%
    );
}

/* Title sits bottom-left and the arrow bottom-right. Town default.css still
   centers the label in text and sets display:block; chrome loads after. */
.featured-home-buttons .button-parent a .button-label {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding-top: 0;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    line-height: 1.35;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    text-wrap: balance;
}

.featured-home-buttons .button-parent a .button-label > span:not(.icon-arrow) {
    flex: 1 1 auto;
    min-width: 0;
}

/* Font Awesome arrow in a ringed circle; hover/keyboard focus fills it white,
   flips the glyph dark, and nudges it right. */
.featured-home-buttons .button-parent a .button-label .icon-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-top: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 1.125rem;
    text-shadow: none;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.featured-home-buttons .button-parent .buttons-child:hover .icon-arrow,
.featured-home-buttons .button-parent .buttons-child:focus-within .icon-arrow {
    transform: translateX(6px);
    background-color: #fff;
    color: #1f1f1f;
}

/* Town default.css keeps desktop min-height at 220px. On phones the stacked
   photo tiles were the same tall cards; chrome overrides that so the label
   and 44px arrow stay readable without eating the viewport. */
@media (max-width: 767.98px) {
    .featured-home-buttons .button-parent a {
        min-height: 148px;
        padding: 16px 14px;
    }

    .featured-home-buttons .button-parent a .button-label {
        gap: 10px;
        font-size: 1.0625rem;
    }
}

.home-bottom-slider {
    margin-top: 40px;
    /* The newsletter band supplies the space under the photo. */
    margin-bottom: 0 !important;
}

.home-bottom-slider .home-bottom-caption {
    margin: 0;
    padding: 12px 16px;
    background: #0f172a;
    color: #fff;
    text-align: center;
    line-height: 1.5;
}

.home-bottom-slider .carousel-pause:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.home-bottom-slider .carousel-inner {
    border-radius: var(--pwm-radius-lg);
    overflow: hidden;
}

/* Footer â€” three columns from md up, a stack of disclosures below. Every group
   heading is a real button (pwmFooter) so a phone can collapse the column it
   owns; from md up the panel is always shown and the button is inert, so the
   heading reads as the plain title it used to be. */
footer.site-footer {
    padding: 36px 0 8px;
    /* Beats default.css `footer { font-size: 15px }` so links, address, and
       sitemap inherit the same 13px as the desktop submenu. */
    font-size: 0.8125rem;
    line-height: 1.35;
}

/* The footer zeroes --bs-gutter-x on itself for the row-overflow fix at the top
   of this file, which also zeroed its container padding and left the columns on
   the viewport edge. Carry the main-content gutter instead. */
footer.site-footer > .container {
    --bs-gutter-x: 36px;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

footer.site-footer > .container > .row {
    --bs-gutter-x: 36px;
}

footer.site-footer .pwm-footer-heading {
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.9375rem;
    line-height: var(--pwm-line-heading);
}

footer.site-footer .pwm-footer-toggle {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: 0.04em;
    text-align: left;
    /* md and up this is a title, not a control; the tab stop goes with it. */
    cursor: default;
    pointer-events: none;
}

footer.site-footer .pwm-footer-chevron {
    display: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

/* The panel owns the space under a group, not the Bootstrap list margin. */
footer.site-footer .pwm-footer-panel > ul,
footer.site-footer ul.pwm-footer-panel {
    margin-bottom: 0;
}

/* Meetings and Contact Us share the third column; the group columns themselves
   are row siblings and must not pick up this gap. */
footer.site-footer .col-md-4 > .pwm-footer-group + .pwm-footer-group {
    margin-top: 16px;
}

/* default.css still spaces elected-official and sitemap rows by 10px. */
footer.site-footer li {
    margin: 0;
}

footer.site-footer li > a {
    display: inline-block;
    min-height: 0;
    padding: 6px 0;
}

footer.site-footer li > a:hover,
footer.site-footer li > a:focus-visible,
footer.site-footer .pwm-footer-address a:hover,
footer.site-footer .pwm-footer-address a:focus-visible,
footer.site-footer .credits a:hover,
footer.site-footer .credits a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer.site-footer .pwm-footer-label {
    flex: 1 1 auto;
}

/* Site map parent rows. These stay live at every width â€” Bootstrap collapse
   owns the panel and flips aria-expanded on the button. The chevron trails the
   label here; it only moves to the row edge once the column is a phone row. */
footer.site-footer .pwm-footer-sub-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--pwm-footer-link);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

footer.site-footer .pwm-footer-sub-toggle:hover,
footer.site-footer .pwm-footer-sub-toggle:focus-visible {
    color: var(--pwm-footer-link-hover);
}

footer.site-footer .pwm-footer-sub-toggle:hover .pwm-footer-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer.site-footer .pwm-footer-sub-toggle .pwm-footer-chevron {
    display: block;
    width: 16px;
    height: 16px;
}

footer.site-footer .pwm-footer-toggle[aria-expanded="true"] .pwm-footer-chevron,
footer.site-footer .pwm-footer-sub-toggle[aria-expanded="true"] .pwm-footer-chevron {
    transform: rotate(180deg);
}

footer.site-footer .pwm-footer-address {
    margin: 0 0 8px;
}

footer.site-footer .pwm-footer-address strong {
    display: block;
    margin-bottom: 4px;
    font-weight: var(--pwm-weight-ui);
}

/* Stand-in for the officials column: town name, then labeled contact lines. */
@media (min-width: 768px) {
    footer.site-footer .pwm-footer-place .pwm-footer-heading {
        margin-bottom: 16px;
        font-size: 1.125rem;
        font-weight: 600;
    }

    footer.site-footer .pwm-footer-place .pwm-footer-toggle {
        letter-spacing: 0;
    }
}

footer.site-footer .pwm-footer-place-block {
    margin: 0 0 14px;
}

footer.site-footer .pwm-footer-place-block:last-child {
    margin-bottom: 0;
}

footer.site-footer .pwm-footer-place-label {
    display: block;
    margin-bottom: 2px;
    color: var(--pwm-footer-text);
    font-weight: 700;
}

footer.site-footer .pwm-footer-place-value {
    white-space: pre-line;
}

footer.site-footer .pwm-footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer.site-footer .pwm-footer-contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 6px 0;
}

footer.site-footer .pwm-footer-contact-list i,
footer.site-footer .pwm-footer-contact-list .svg-inline--fa {
    width: 16px;
    font-size: 14px;
    text-align: center;
    opacity: 0.8;
}

footer.site-footer .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

footer.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

footer.site-footer .footer-social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

footer.site-footer .footer-social img {
    display: block;
    width: 38px;
    height: 38px;
}

footer.site-footer .credits {
    align-items: center;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 12px 0 0;
    border-top: 1px solid color-mix(in srgb, var(--pwm-newsletter-bkg, var(--pwm-footer-bkg, #102133)) 72%, #000);
    font-size: 0.8125rem;
}

footer.site-footer .credits hr {
    display: none;
}

.pwm-footer-policies {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 8px;
    margin-top: 6px;
}

.pwm-footer-policies a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Below md the columns stack, so each group becomes a 56px disclosure row with
   a hairline under it and every list row clears the 44px target. */
@media (max-width: 767.98px) {
    footer.site-footer {
        padding: 12px 0 8px;
    }

    /* Wider than the main-content phone gutter on purpose: the group dividers
       run the full width of the band, so the rows need the inset to read as a
       list rather than text on the screen edge. */
    footer.site-footer > .container,
    footer.site-footer > .container > .row {
        --bs-gutter-x: 32px;
    }

    footer.site-footer .pwm-footer-group {
        border-bottom: 1px solid var(--pwm-footer-rule);
    }

    footer.site-footer .col-md-4 > .pwm-footer-group + .pwm-footer-group {
        margin-top: 0;
    }

    footer.site-footer .pwm-footer-heading {
        margin: 0;
    }

    footer.site-footer .pwm-footer-toggle {
        min-height: 56px;
        padding: 8px 0;
        cursor: pointer;
        pointer-events: auto;
    }

    footer.site-footer .pwm-footer-toggle .pwm-footer-chevron {
        display: block;
    }

    footer.site-footer .pwm-footer-panel {
        padding-bottom: 12px;
    }

    footer.site-footer li > a,
    footer.site-footer .pwm-footer-sub-toggle,
    footer.site-footer .pwm-footer-contact-list a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: 6px 0;
    }

    footer.site-footer .pwm-footer-sub-toggle {
        justify-content: space-between;
        gap: 12px;
    }

    footer.site-footer .footer-social a {
        min-width: 44px;
        min-height: 44px;
    }

    footer.site-footer .credits {
        margin-top: 16px;
        padding-top: 0;
        border-top: 0;
    }

    .pwm-footer-policies a {
        min-height: 44px;
    }

    /* The last group divider already closes the list â€” two hairlines 13px apart
       is not a separator, it is a mistake. */
    footer.site-footer .credits hr {
        display: none;
    }
}

/* Stable policy routes use the CMS page body when present and these bundled,
   municipality-aware defaults otherwise. Keep legal copy readable without
   stretching lines across the full desktop content column. */
.pwm-policy-page .inner-section {
    width: 100%;
}

.pwm-policy-content {
    max-width: 78ch;
    font-size: var(--pwm-font-body);
    line-height: 1.7;
}

.pwm-policy-content h2 {
    margin: 2.25rem 0 0.65rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.25;
}

.pwm-policy-content h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.0625rem;
    line-height: 1.35;
}

.pwm-policy-content li + li {
    margin-top: 0.45rem;
}

.pwm-policy-content address {
    padding-left: 1rem;
    border-left: 4px solid var(--pwm-primary, #1e3a5f);
    font-style: normal;
}

.pwm-policy-updated {
    margin: 0 0 1.5rem;
    color: var(--pwm-muted, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
}

.pwm-policy-legal {
    font-size: 0.9375rem;
}

.feature-img-interior .container .internal-logo {
    margin: 36px 0;
}

/* Desktop search covers the nav links in the same band. visibility keeps the
   closed field out of the tab order, and it snaps visible on open so the
   input can take focus immediately. */
.main-nav {
    position: relative;
}

#search-bar-container {
    --pwm-sitesearch-ms: 180ms;
    --pwm-sitesearch-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    position: absolute;
    z-index: 30;
    inset: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: var(--pwm-nav-bkg);
    /* visibility waits out the fade on close and snaps visible on open,
       so the field can take focus on the first try. */
    transition: opacity var(--pwm-sitesearch-ms) var(--pwm-sitesearch-ease),
                visibility 0s linear var(--pwm-sitesearch-ms);
}

/* Flyouts paint above the bar. Hide them while search covers the links. */
.main-nav:has(#search-bar-container.is-open) #main-menu .nav-sub {
    display: none !important;
}

#search-bar-container.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity var(--pwm-sitesearch-ms) var(--pwm-sitesearch-ease);
}

.pwm-sitesearch {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    opacity: 0;
    transition: opacity var(--pwm-sitesearch-ms) linear;
}

#search-bar-container.is-open .pwm-sitesearch {
    opacity: 1;
}

/* 40px tall, same as a nav pill, with an 8px corner instead of a full pill. */
.pwm-sitesearch-field {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
    height: 40px;
    padding: 0 4px 0 14px;
    border-radius: 8px;
    background: var(--pwm-menu-surface);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.pwm-sitesearch-icon {
    flex: 0 0 auto;
    color: var(--pwm-menu-muted);
    font-size: 16px;
    line-height: 1;
}

.pwm-sitesearch-field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pwm-menu-text);
    font: inherit;
    font-size: 0.9375rem;
    appearance: none;
    -webkit-appearance: none;
}

.pwm-sitesearch-field input::placeholder {
    color: var(--pwm-menu-muted);
    opacity: 1;
}

/* WebKit paints its own clear glyph on type="search", which crowds the field
   next to the submit block. */
.pwm-sitesearch-field input::-webkit-search-cancel-button,
.pwm-sitesearch-field input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.pwm-sitesearch-go {
    flex: 0 0 auto;
    height: 32px;
    min-height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: var(--pwm-button-bkg, var(--pwm-menu-accent));
    color: var(--pwm-button-text, #ffffff);
    font: inherit;
    font-weight: var(--pwm-weight-ui, 600);
    cursor: pointer;
    transition: background-color 160ms ease;
}

.pwm-sitesearch-go:hover,
.pwm-sitesearch-go:focus-visible {
    background: var(--pwm-button-hover, var(--pwm-menu-accent));
}

.pwm-sitesearch-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: transparent;
    color: var(--pwm-nav-link, #ffffff);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.pwm-sitesearch-close:hover,
.pwm-sitesearch-close:focus-visible {
    border-color: var(--pwm-nav-link, #ffffff);
    background: var(--pwm-nav-hover, rgba(255, 255, 255, 0.2));
}

@media (prefers-reduced-motion: reduce) {
    #search-bar-container,
    #search-bar-container.is-open,
    .pwm-sitesearch {
        transition: none;
    }
}

/* ==========================================================================
   Search results page (/search)
   Google CSE injects its own stylesheet after ours and hardcodes Google blue,
   14px type, table paddings and a 1.4em clipped title, so overriding it needs
   both the .pwm-search-output scope and !important. Everything outside the
   .gsc-/.gs- selectors is ours and needs neither.
   ========================================================================== */

.pwm-search-form {
    margin: 0 0 20px;
}

.pwm-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 5px 5px 5px 18px;
    border: 1px solid var(--pwm-menu-line, #e6eaee);
    border-radius: 999px;
    background: var(--pwm-menu-surface, #ffffff);
    box-shadow: 0 1px 2px rgba(15, 23, 32, 0.06);
}

.pwm-search-field:focus-within {
    border-color: var(--pwm-focus, #1a4d9c);
}

.pwm-search-field-icon {
    flex: 0 0 auto;
    color: var(--pwm-text-muted, #595959);
    font-size: 17px;
    line-height: 1;
}

.pwm-search-field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pwm-text, #333333);
    font: inherit;
    font-size: 1.0625rem;
    appearance: none;
    -webkit-appearance: none;
}

.pwm-search-field input::placeholder {
    color: var(--pwm-text-muted, #595959);
    opacity: 1;
}

.pwm-search-field input::-webkit-search-cancel-button,
.pwm-search-field input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.pwm-search-submit {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: var(--pwm-button-bkg, var(--pwm-primary));
    color: var(--pwm-button-text, #ffffff);
    font: inherit;
    font-weight: var(--pwm-weight-ui, 600);
    cursor: pointer;
    transition: background-color 160ms ease;
}

.pwm-search-submit:hover,
.pwm-search-submit:focus-visible {
    background: var(--pwm-button-hover, var(--pwm-primary));
}

/* Replaces Google's "About 33 results (0.16 seconds)" */
.pwm-search-summary {
    margin: 0 0 4px;
    color: var(--pwm-text-muted, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
}

.pwm-search-summary[hidden] {
    display: none;
}

.pwm-search-aside {
    margin: 8px 0 32px;
    padding: 20px 22px;
    border-left: 6px solid var(--pwm-title, var(--pwm-primary));
    background: var(--pwm-menu-tint, #f3f5f7);
    border-radius: var(--pwm-radius, 10px);
}

.pwm-search-aside[hidden] {
    display: none;
}

/* Two classes deep so default.css .page h2 does not win the size back */
.pwm-search-aside .pwm-search-aside-title {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: var(--pwm-title, var(--pwm-primary));
    font-size: 1.25rem;
    font-weight: var(--pwm-weight-bold, 700);
    line-height: var(--pwm-line-heading, 1.25);
}

.pwm-search-aside p,
.pwm-search-aside li {
    max-width: var(--pwm-measure, 65ch);
    line-height: var(--pwm-line-body, 1.5);
}

.pwm-search-aside ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.pwm-search-aside li {
    margin-bottom: 6px;
}

.pwm-search-aside p:last-child {
    margin-bottom: 0;
}

/* --- Google CSE output --------------------------------------------------- */

/* The page is a column in the layout row, not a nested .container, so the
   widget has to inherit that full width instead of Google's implicit table. */
.pwm-search-page,
.pwm-search-output,
.pwm-search-output .gsc-control-cse,
.pwm-search-output .gsc-control-wrapper-cse,
.pwm-search-output .gsc-results-wrapper-visible,
.pwm-search-output .gsc-results-wrapper-nooverlay,
.pwm-search-output .gsc-wrapper,
.pwm-search-output .gsc-resultsbox-visible,
.pwm-search-output .gsc-resultsRoot,
.pwm-search-output .gsc-results,
.pwm-search-output .gsc-expansionArea,
.pwm-search-output .gsc-webResult,
.pwm-search-output .gs-webResult,
.pwm-search-output .gsc-table-result,
.pwm-search-output table.gsc-table-result,
.pwm-search-output .gsc-above-wrapper-area,
.pwm-search-output .gsc-above-wrapper-area-backfill-container,
.pwm-search-output table.gsc-above-wrapper-area-container {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.pwm-search-output .gsc-control-cse {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-family: inherit !important;
}

/* The widget renders a second, unlabelled search box. One field per page. */
.pwm-search-output form.gsc-search-box,
.pwm-search-output .gsc-search-box-tools {
    display: none !important;
}

/* [data-search-summary] says the same thing without the stopwatch reading */
.pwm-search-output .gsc-result-info {
    display: none !important;
}

/* CSE injects max-width: 700px on this strip after chrome loads */
.pwm-search-output .gsc-above-wrapper-area {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pwm-menu-line, #e6eaee) !important;
    background: transparent !important;
}

.pwm-search-output .gsc-above-wrapper-area-container,
.pwm-search-output .gsc-above-wrapper-area-container td {
    padding: 0 0 10px !important;
    border: 0 !important;
}

/* The count cell is empty now, so let it absorb the slack and keep sort right */
.pwm-search-output table.gsc-above-wrapper-area-container,
.pwm-search-output td.gsc-result-info-container {
    width: 100% !important;
    max-width: none !important;
}

.pwm-search-output .gsc-orderby-container {
    text-align: right;
    white-space: nowrap;
}

.pwm-search-output .gsc-orderby-label {
    padding: 0 8px 0 0 !important;
    color: var(--pwm-text-muted, #595959) !important;
    font-size: var(--pwm-font-small, 0.875rem) !important;
}

/* Google's sort menu is a stack of plain divs; pwm.js gives them a tab stop
   and Enter/Space, so they also need to read and size like real controls. */
.pwm-search-output .gsc-selected-option-container,
.pwm-search-output .gsc-option-menu-item {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    padding: 0 12px !important;
    border-radius: var(--pwm-radius, 10px);
    color: var(--pwm-text, #333333) !important;
    font-size: 0.9375rem !important;
    cursor: pointer;
}

.pwm-search-output .gsc-selected-option-container {
    justify-content: space-between;
    gap: 10px;
    min-width: 132px;
    border: 1px solid var(--pwm-menu-line, #e6eaee) !important;
    background: var(--pwm-menu-surface, #ffffff) !important;
}

.pwm-search-output .gsc-selected-option-container [data-pwm-sort-value] {
    font-weight: var(--pwm-weight-ui, 600);
}

.pwm-search-output .gsc-option-menu-item:hover,
.pwm-search-output .gsc-selected-option-container:hover {
    background: var(--pwm-menu-tint, #f3f5f7) !important;
}

.pwm-search-output .gsc-results {
    border: 0 !important;
    background: transparent !important;
}

.pwm-search-output .gsc-webResult.gsc-result {
    margin: 0 !important;
    padding: 18px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pwm-menu-line, #e6eaee) !important;
    background: transparent !important;
}

.pwm-search-output .gsc-webResult.gsc-result:last-of-type {
    border-bottom: 0 !important;
}

/* Google clips the title to 1.4em, so a long page name loses its second line */
.pwm-search-output .gs-title,
.pwm-search-output .gsc-thumbnail-inside .gs-title {
    height: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.pwm-search-output a.gs-title,
.pwm-search-output a.gs-title b {
    color: var(--pwm-link, #1877b7) !important;
    font-size: 1.125rem !important;
    font-weight: var(--pwm-weight-ui, 600) !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

.pwm-search-output a.gs-title:hover,
.pwm-search-output a.gs-title:hover b,
.pwm-search-output a.gs-title:focus-visible,
.pwm-search-output a.gs-title:focus-visible b {
    color: var(--pwm-link-hover, #0e5b8f) !important;
    text-decoration: underline !important;
}

.pwm-search-output .gs-snippet {
    max-width: none;
    margin-top: 4px;
    color: var(--pwm-text, #333333) !important;
    font-size: var(--pwm-font-body, 0.9375rem) !important;
    line-height: var(--pwm-line-body, 1.5) !important;
}

.pwm-search-output .gs-visibleUrl,
.pwm-search-output .gs-visibleUrl-breadcrumb,
.pwm-search-output .gs-visibleUrl-breadcrumb span {
    color: var(--pwm-text-muted, #595959) !important;
    font-size: var(--pwm-font-small, 0.875rem) !important;
}

.pwm-search-output .gs-image-box img.gs-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--pwm-radius, 10px);
}

/* [data-search-help] carries the spelling and browse suggestions instead */
.pwm-search-page.is-empty .pwm-search-output .gsc-results,
.pwm-search-page.is-empty .pwm-search-output .gsc-above-wrapper-area {
    display: none !important;
}

/* 2.5.8 Target Size â€” Google ships 8x16px inline text for the pager */
.pwm-search-output .gsc-cursor-box {
    margin: 24px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.pwm-search-output .gsc-cursor {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pwm-search-output .gsc-cursor-page {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid var(--pwm-menu-line, #e6eaee) !important;
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-menu-surface, #ffffff) !important;
    color: var(--pwm-link, #1877b7) !important;
    font-size: 1rem !important;
    font-weight: var(--pwm-weight-ui, 600);
    text-decoration: none !important;
    cursor: pointer;
}

.pwm-search-output .gsc-cursor-page:hover {
    background: var(--pwm-menu-tint, #f3f5f7) !important;
}

.pwm-search-output .gsc-cursor-page.gsc-cursor-current-page {
    border-color: var(--pwm-button-bkg, var(--pwm-primary)) !important;
    background: var(--pwm-button-bkg, var(--pwm-primary)) !important;
    color: var(--pwm-button-text, #ffffff) !important;
    cursor: default;
}

.pwm-search-output .gcsc-more-maybe-branding-root,
.pwm-search-output .gcsc-find-more-on-google-branding {
    margin-top: 18px;
}

@media (max-width: 767px) {
    .pwm-search-field {
        gap: 8px;
        padding-left: 14px;
    }

    .pwm-search-field input {
        font-size: 1rem;
    }

    .pwm-search-submit {
        padding: 0 16px;
    }

    .pwm-search-aside {
        padding: 16px 18px;
    }

    .pwm-search-output .gsc-orderby-container {
        display: block;
        text-align: left;
    }

    /* The thumbnail column squeezes the snippet to a few words on a phone */
    .pwm-search-output .gsc-table-cell-thumbnail,
    .pwm-search-output .gsc-thumbnail {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .site-header #logo-container {
        padding: 12px 12px 8px;
    }

    .main-content {
        padding-top: 24px;
        margin-bottom: 0;
        padding-bottom: 48px;
    }

    .feature-icons-section + .container,
    .feature-icons-section + .container-fluid,
    .feature-icons-section + .container-sm,
    .feature-icons-section + .container-md,
    .feature-icons-section + .container-lg,
    .feature-icons-section + .container-xl,
    .feature-icons-section + .container-xxl,
    .feature-wrap + .container,
    .feature-wrap + .container-fluid,
    .feature-wrap + .container-sm,
    .feature-wrap + .container-md,
    .feature-wrap + .container-lg,
    .feature-wrap + .container-xl,
    .feature-wrap + .container-xxl {
        padding-top: 24px;
    }

    .main-content > .container,
    .main-content > .container-fluid,
    .main-content > .container-sm,
    .main-content > .container-md,
    .main-content > .container-lg,
    .main-content > .container-xl,
    .main-content > .container-xxl,
    .main-content > .container > .row,
    .featured-home-buttons.row,
    .featured-home-buttons .row {
        --bs-gutter-x: 16px;
    }

    .main-content .tab-content article,
    .main-content .tab-content #section-news .featured-article {
        padding: 16px 14px 12px !important;
    }

    .tab-content article .article-zoom,
    .tab-content article .article-body .article-zoom {
        float: none;
        width: fit-content;
        max-width: 100%;
        margin: 0 auto 12px;
        background: transparent;
    }

    .tab-content article > img.article-cover,
    .tab-content article > img.pull-left,
    .tab-content article > img.float-start,
    .tab-content article .article-body img,
    .main-content .tab-content article p img:only-child,
    .tab-content article .article-zoom img,
    .main-content .tab-content article img {
        float: none !important;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 320px !important;
        object-fit: contain;
        margin: 0 auto !important;
    }

    .article-body.is-clamped {
        max-height: 6.5rem;
        overflow: hidden;
    }

    .article-body.is-clamped.is-overflow {
        -webkit-mask-image: linear-gradient(#000 58%, transparent);
        mask-image: linear-gradient(#000 58%, transparent);
    }
}

/* Calendar page â€” head row, filter bar, legend */
.calendar-page .pwm-cal-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.calendar-page .pwm-cal-head .title {
    margin: 0;
}

.calendar-page .pwm-cal-archive {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--pwm-button-bkg);
    border-radius: var(--pwm-radius);
    color: var(--pwm-button-bkg);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.calendar-page .pwm-cal-archive:hover,
.calendar-page .pwm-cal-archive:focus-visible {
    background-color: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
    text-decoration: none;
}

/* One filter bar. The two selects used to own a full Bootstrap row each,
   which pushed the grid below the fold on a laptop. */
.calendar-page .pwm-cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.calendar-page .pwm-cal-filter {
    flex: 0 1 240px;
    min-width: 180px;
}

.calendar-page .pwm-cal-filter .form-label {
    margin-bottom: 4px;
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
    color: var(--pwm-text);
}

.calendar-page .pwm-cal-filter .form-select {
    min-height: 44px;
    border-radius: var(--pwm-radius);
    border-color: var(--pwm-field-border);
    background-color: var(--pwm-field-bkg);
    color: var(--pwm-field-text);
}

.calendar-page .pwm-cal-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--pwm-field-border);
    border-radius: var(--pwm-radius);
    color: var(--pwm-text);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
    cursor: pointer;
}

.calendar-page .pwm-cal-reset:hover {
    background-color: var(--pwm-calendar-muted-bkg);
}

/* Calendar chips â€” type tokens, AA text, hover darkens the same hue */
.pwm-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 14px;
    color: var(--pwm-text);
}

/* The key still earns its place in list view â€” the row accent bars carry
   the same type colors as the month chips. */
.calendar-page .pwm-cal-toolbar .pwm-calendar-legend {
    margin: 0 0 0 auto;
    align-self: center;
}

.pwm-calendar-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border-radius: 4px;
    vertical-align: -2px;
}

.pwm-calendar-legend-event { background-color: var(--pwm-calendar-event-bkg); }
.pwm-calendar-legend-meeting { background-color: var(--pwm-calendar-meeting-bkg); }
.pwm-calendar-legend-health { background-color: var(--pwm-calendar-health-bkg); }
.pwm-calendar-legend-canceled { background-color: var(--pwm-calendar-canceled-bkg); }

/* The calendar itself sits in a card. FullCalendar's own variables are
   pointed at the town tokens so its defaults â€” notably the yellow today
   cell â€” stop fighting the palette. */
.section-calendar {
    position: relative;
    padding: 16px;
    background-color: var(--pwm-calendar-surface);
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius-lg);
    box-shadow: var(--pwm-shadow);
}

.section-calendar .fc {
    --fc-border-color: var(--pwm-calendar-line);
    --fc-page-bg-color: var(--pwm-calendar-surface);
    --fc-neutral-bg-color: var(--pwm-calendar-muted-bkg);
    --fc-today-bg-color: var(--pwm-calendar-today-bkg);
    --fc-highlight-color: var(--pwm-calendar-today-bkg);
    --fc-list-event-hover-bg-color: var(--pwm-calendar-list-hover);
    --fc-small-font-size: var(--pwm-font-small);
    font-family: var(--pwm-font-sans);
}

/* Month grid */
.section-calendar .fc .fc-scrollgrid-section-sticky > * {
    background-color: var(--pwm-calendar-surface);
}

/* Day names are a quiet label row, not a colored band â€” the town color
   is worth more on today and on the active view button, where it marks
   something. `--pwm-calendar-header` is that accent now. */
body .section-calendar .fc .fc-col-header-cell,
body .section-calendar .fc-unthemed th {
    background-color: var(--pwm-calendar-muted-bkg);
    border-color: var(--pwm-calendar-line);
    color: var(--pwm-text);
}

body .section-calendar .fc .fc-col-header-cell:first-child {
    border-top-left-radius: var(--pwm-radius);
}

body .section-calendar .fc .fc-col-header-cell:last-child {
    border-top-right-radius: var(--pwm-radius);
}

body .section-calendar .fc .fc-col-header-cell-cushion {
    display: block;
    padding: 12px 4px;
    color: var(--pwm-text);
    font-size: 12px;
    font-weight: var(--pwm-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.section-calendar .fc .fc-daygrid-day-frame {
    min-height: 112px;
    padding: 6px;
}

.section-calendar .fc .fc-daygrid-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--pwm-text);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: background-color 150ms ease;
}

.section-calendar .fc .fc-daygrid-day-number:hover {
    background-color: var(--pwm-calendar-today-bkg);
}

.section-calendar .fc .fc-day-today .fc-daygrid-day-number {
    background-color: var(--pwm-calendar-header);
    color: var(--pwm-white);
}

/* FullCalendar dims trailing days to 0.3 opacity, which drops the number
   under AA. Tint the cell instead and keep the text readable. */
.section-calendar .fc .fc-day-other .fc-daygrid-day-frame {
    background-color: var(--pwm-calendar-muted-bkg);
}

.section-calendar .fc .fc-day-other .fc-daygrid-day-top {
    opacity: 1;
}

.section-calendar .fc .fc-day-other .fc-daygrid-day-number {
    color: var(--pwm-text-muted);
}

/* Month chips. A list row carries `fc-event` too, so each selector
   excludes it â€” the row is a card, not a chip.

   The type color is a band down the left edge instead of a fill: a week
   of filled blocks was a wall of color, and the title had to fight its
   own background. FullCalendar writes the type color inline as
   `border-color`, so only the other three sides are repainted here and
   the band keeps whatever the API sent â€” including a meeting type's own
   chip color. */
body .section-calendar .fc-event:not(.fc-list-event),
body .section-calendar a.fc-event:not(.fc-list-event) {
    padding: 0 !important;
    background-color: var(--pwm-calendar-surface) !important;
    border-style: solid !important;
    border-width: 1px 1px 1px 3px !important;
    border-top-color: var(--pwm-calendar-line) !important;
    border-right-color: var(--pwm-calendar-line) !important;
    border-bottom-color: var(--pwm-calendar-line) !important;
    border-radius: 6px;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

/* Fallback band color if an event ever arrives without one inline. */
.section-calendar .fc-event.Event:not(.fc-list-event) { border-left-color: var(--pwm-calendar-event-bkg); }
.section-calendar .fc-event.Meeting:not(.fc-list-event) { border-left-color: var(--pwm-calendar-meeting-bkg); }
.section-calendar .fc-event.HealthService:not(.fc-list-event) { border-left-color: var(--pwm-calendar-health-bkg); }

/* FullCalendar keeps day-grid events on one line; a chip that says this
   much has to wrap. */
.pwm-cal-chip {
    display: block;
    padding: 5px 8px;
    white-space: normal;
}

.pwm-cal-chip-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 5px;
    color: var(--pwm-text-muted);
    font-size: 11px;
    font-weight: var(--pwm-weight-ui);
    line-height: 1.3;
}

.pwm-cal-chip-time {
    color: var(--pwm-text);
    font-weight: var(--pwm-weight-bold);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* The type reads in words as well as the glyph â€” color alone cannot
   carry it (1.4.1), and a band is easy to miss at chip size. It is set
   as a label rather than separated by a middot, which was left stranded
   at the end of a line whenever the meta row wrapped. */
.pwm-cal-chip-kind {
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pwm-cal-chip-kind.is-canceled {
    padding: 0 7px;
    border-radius: 999px;
    background-color: var(--pwm-calendar-canceled-bkg);
    color: var(--pwm-calendar-canceled-text);
    font-weight: var(--pwm-weight-bold);
}

.pwm-cal-chip-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 1px;
    color: var(--pwm-text);
    font-size: 12.5px;
    font-weight: var(--pwm-weight-bold);
    line-height: 1.35;
}

.section-calendar .fc .fc-daygrid-event {
    margin-bottom: 4px;
}

.section-calendar .fc .fc-daygrid-more-link {
    display: inline-block;
    margin-top: 2px;
    padding: 3px 9px;
    border-radius: 999px;
    background-color: var(--pwm-calendar-today-bkg);
    color: var(--pwm-calendar-header);
    font-size: 12px;
    font-weight: var(--pwm-weight-ui);
    text-decoration: none;
}

.section-calendar .fc .fc-daygrid-more-link:hover {
    background-color: var(--pwm-calendar-line);
}

.section-calendar .fc .fc-popover {
    background-color: var(--pwm-calendar-surface);
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.section-calendar .fc .fc-popover-header {
    padding: 10px 12px;
    background-color: var(--pwm-calendar-muted-bkg);
    border-bottom: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius) var(--pwm-radius) 0 0;
    color: var(--pwm-title);
    font-weight: var(--pwm-weight-bold);
}

.section-calendar .fc .fc-popover-body {
    padding: 10px 12px;
}

body .section-calendar .fc-event.Canceled:not(.fc-list-event) {
    background-color: var(--pwm-calendar-muted-bkg) !important;
    border-left-color: var(--pwm-calendar-canceled-bkg);
}

.section-calendar .fc-event.Canceled:not(.fc-list-event) .pwm-cal-chip-title {
    color: var(--pwm-text-muted);
    text-decoration: line-through;
}

body .section-calendar .fc-event:not(.fc-list-event):hover,
body .section-calendar a.fc-event:not(.fc-list-event):hover {
    background-color: var(--pwm-calendar-list-hover) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

/* Heading band â€” the range on screen, what is in it, and the month
   picker. It heads both views, so FullCalendar's own title chunk is
   hidden rather than said twice. */
/* Three columns so the range sits dead centre whatever the controls on
   either side are doing. Above FullCalendar's sticky day-name row, which
   would otherwise paint over the open picker. */
.calendar-page .pwm-cal-band {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px 12px;
    margin: -16px -16px 14px;
    padding: 10px 16px;
    background-color: var(--pwm-calendar-surface);
    border-bottom: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius-lg) var(--pwm-radius-lg) 0 0;
}

.pwm-cal-band-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* The picker hangs off this block, not off the title alone, so it opens
   below the count instead of on top of it. */
.pwm-cal-band-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pwm-cal-band-views {
    display: flex;
    justify-content: flex-end;
}

.pwm-cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--pwm-calendar-line);
    border-radius: 999px;
    color: var(--pwm-calendar-header);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.pwm-cal-today {
    min-height: 44px;
    margin-left: 4px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    color: var(--pwm-calendar-header);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.pwm-cal-nav-btn:hover,
.pwm-cal-today:hover:not(:disabled) {
    background-color: var(--pwm-calendar-today-bkg);
    border-color: var(--pwm-calendar-header);
}

/* Disabled means "you are already here", so it stays readable rather
   than fading out. */
.pwm-cal-today:disabled {
    background-color: var(--pwm-calendar-muted-bkg);
    color: var(--pwm-text-muted);
    cursor: default;
}

/* Month | List reads as one segmented control. */
.pwm-cal-view-btn {
    min-height: 44px;
    padding: 8px 18px;
    background-color: var(--pwm-calendar-surface);
    border: 1px solid var(--pwm-calendar-line);
    color: var(--pwm-calendar-header);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.pwm-cal-view-btn:first-child {
    border-radius: var(--pwm-radius) 0 0 var(--pwm-radius);
}

.pwm-cal-view-btn:last-child {
    margin-left: -1px;
    border-radius: 0 var(--pwm-radius) var(--pwm-radius) 0;
}

.pwm-cal-view-btn:hover:not(.is-active) {
    background-color: var(--pwm-calendar-today-bkg);
}

.pwm-cal-view-btn.is-active {
    position: relative;
    z-index: 1;
    background-color: var(--pwm-calendar-header);
    border-color: var(--pwm-calendar-header);
    color: var(--pwm-white);
}

.pwm-cal-band-picker {
    position: static;
}

/* `.main-content h3` sets 32px type and a 1em bottom margin, which would
   leave the band three lines tall around a 17px title. */
.calendar-page .pwm-cal-band-title {
    margin: 0;
    font-size: inherit;
    line-height: 1;
}

/* The range doubles as the picker trigger â€” stepping prev / next a month
   at a time was the only way to reach next spring. */
.pwm-cal-band-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 2px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--pwm-radius);
    color: var(--pwm-title);
    font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.625rem);
    font-weight: var(--pwm-weight-bold);
    line-height: var(--pwm-line-heading);
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

/* Page titles set 13px on every span inside an h3. This span is the
   month name, so it keeps the trigger size and color. */
.calendar-page .pwm-cal-band-trigger span {
    font-size: inherit;
    color: inherit;
}

.pwm-cal-band-trigger:hover {
    background-color: var(--pwm-calendar-muted-bkg);
    border-color: var(--pwm-calendar-line);
}

.pwm-cal-band-trigger i {
    color: var(--pwm-text-muted);
    font-size: 0.7em;
    transition: transform 150ms ease;
}

.pwm-cal-band-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.pwm-cal-band-count {
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
    line-height: 1.3;
}

.pwm-cal-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 20;
    width: 276px;
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
    padding: 12px;
    background-color: var(--pwm-calendar-surface);
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.pwm-cal-picker-year {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pwm-cal-picker-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--pwm-calendar-line);
    border-radius: 999px;
    color: var(--pwm-calendar-header);
    cursor: pointer;
}

.pwm-cal-picker-step:hover {
    background-color: var(--pwm-calendar-today-bkg);
}

.pwm-cal-picker-yearlabel {
    color: var(--pwm-title);
    font-size: 1rem;
    font-weight: var(--pwm-weight-bold);
    font-variant-numeric: tabular-nums;
}

.pwm-cal-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pwm-cal-picker-month {
    min-height: 44px;
    padding: 6px 4px;
    background-color: var(--pwm-calendar-muted-bkg);
    border: 1px solid transparent;
    border-radius: var(--pwm-radius);
    color: var(--pwm-text);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.pwm-cal-picker-month:hover {
    background-color: var(--pwm-calendar-today-bkg);
}

/* This month carries a ring; the month on screen is filled. */
.pwm-cal-picker-month.is-today {
    border-color: var(--pwm-calendar-header);
}

.pwm-cal-picker-month.is-current,
.pwm-cal-picker-month.is-current:hover {
    background-color: var(--pwm-calendar-header);
    border-color: var(--pwm-calendar-header);
    color: var(--pwm-white);
}

/* List view â€” a month of events read top to bottom. FullCalendar's table
   is flattened to blocks and each row becomes a card built in `pwm.js`:
   a date rail, then the type, the time, the title, the place and the
   opening of the description. The day header rows go away because every
   card states its own date. */
.section-calendar .fc .fc-list {
    background: transparent;
    border: 0;
}

.section-calendar .fc .fc-list-table,
.section-calendar .fc .fc-list-table tbody,
.section-calendar .fc .fc-list-table tr,
.section-calendar .fc .fc-list-table th,
.section-calendar .fc .fc-list-table td {
    display: block;
    width: auto;
    padding: 0;
}

/* The row is left out â€” its border is the card edge. */
.section-calendar .fc .fc-list-table,
.section-calendar .fc .fc-list-table tbody,
.section-calendar .fc .fc-list-table th,
.section-calendar .fc .fc-list-table td {
    border: 0;
}

/* Day headers, the time cell and the dot are all restated by the card.
   The element names are here to outrank the `display: block` above. */
.section-calendar .fc tr.fc-list-day,
.section-calendar .fc td.fc-list-event-time,
.section-calendar .fc td.fc-list-event-graphic {
    display: none;
}

.section-calendar .fc .fc-list-event {
    overflow: hidden;
    margin-bottom: 10px;
    background-color: var(--pwm-calendar-surface);
    border: 1px solid var(--pwm-calendar-line);
    border-left: 3px solid var(--pwm-calendar-event-bkg);
    border-radius: var(--pwm-radius);
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.section-calendar .fc .fc-list-table tr.fc-list-event:last-child {
    margin-bottom: 0;
}

.section-calendar .fc .fc-list-event.Event { border-left-color: var(--pwm-calendar-event-bkg); }
.section-calendar .fc .fc-list-event.Meeting { border-left-color: var(--pwm-calendar-meeting-bkg); }
.section-calendar .fc .fc-list-event.HealthService { border-left-color: var(--pwm-calendar-health-bkg); }
.section-calendar .fc .fc-list-event.Canceled { border-left-color: var(--pwm-calendar-canceled-bkg); }

.section-calendar .fc .fc-list-event:hover {
    background-color: var(--pwm-calendar-list-hover);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* FullCalendar tints the cell and underlines the whole anchor on hover.
   The card is the anchor now, so only the title should move. */
.section-calendar .fc .fc-list-event:hover td,
.section-calendar .fc .fc-list-event.fc-event-forced-url:hover a {
    background-color: transparent;
    text-decoration: none;
}

.pwm-cal-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 16px;
    color: var(--pwm-text);
    font-size: var(--pwm-font-body);
    line-height: var(--pwm-line-body);
    text-decoration: none;
}

.pwm-cal-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 16px;
    border-right: 1px solid var(--pwm-calendar-line);
    line-height: 1.1;
}

.pwm-cal-rail-dow {
    color: var(--pwm-text-muted);
    font-size: 11px;
    font-weight: var(--pwm-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pwm-cal-rail-day {
    margin-top: 4px;
    color: var(--pwm-title);
    font-size: 1.75rem;
    font-weight: var(--pwm-weight-bold);
    font-variant-numeric: tabular-nums;
}

.pwm-cal-rail.is-today .pwm-cal-rail-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    border-radius: 999px;
    background-color: var(--pwm-calendar-header);
    color: var(--pwm-white);
}

.pwm-cal-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pwm-cal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.pwm-cal-when {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
    font-variant-numeric: tabular-nums;
}

/* The fill is the type color and the text is the partner the API picked
   against it, so no town palette drops the label below AA. */
.pwm-cal-kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: var(--pwm-weight-bold);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pwm-cal-kind.is-muted {
    padding: 1px 9px;
    background-color: var(--pwm-calendar-muted-bkg);
    border: 1px solid var(--pwm-calendar-line);
    color: var(--pwm-text-muted);
}

.pwm-cal-title {
    color: var(--pwm-title);
    font-size: 1.0625rem;
    font-weight: var(--pwm-weight-bold);
    line-height: var(--pwm-line-heading);
}

.pwm-cal-card:hover .pwm-cal-title {
    color: var(--pwm-link-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pwm-cal-where,
.pwm-cal-summary {
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
    line-height: 1.5;
}

.pwm-cal-where {
    display: flex;
    gap: 7px;
}

.pwm-cal-where i {
    flex: none;
    margin-top: 0.2em;
}

.pwm-cal-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: var(--pwm-measure);
}

.section-calendar .fc .fc-list-event.Canceled .pwm-cal-title,
.section-calendar .fc .fc-list-event.Canceled .pwm-cal-card:hover .pwm-cal-title {
    color: var(--pwm-text-muted);
    text-decoration: line-through;
}

.section-calendar .fc .fc-list-empty {
    min-height: 160px;
    background-color: var(--pwm-calendar-muted-bkg);
    border: 1px dashed var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
}

/* Canceled is strikethrough plus color in the grid; in the list it gets a
   word, because strikethrough alone on a card row is easy to miss. */
.pwm-cal-canceled {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background-color: var(--pwm-calendar-canceled-bkg);
    color: var(--pwm-calendar-canceled-text);
    font-size: 12px;
    font-weight: var(--pwm-weight-bold);
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
}

/* Hover / focus tooltip. Lives on <body> â€” the day cells clip overflow, so
   a panel rendered in-cell is cut off on the bottom row. */
.pwm-cal-tip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    max-width: 320px;
    background-color: var(--pwm-calendar-surface, #ffffff);
    border: 1px solid var(--pwm-calendar-line, #dfe3ea);
    border-radius: var(--pwm-radius, 10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
}

.pwm-cal-tip[hidden] {
    display: none;
}

.pwm-cal-tip .pwm-cal-tip-accent {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background-color: var(--pwm-primary);
}

.pwm-cal-tip .pwm-cal-tip-body {
    padding: 12px 16px 12px 18px;
}

.pwm-cal-tip p {
    margin: 0;
}

.pwm-cal-tip .pwm-cal-tip-kind {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pwm-text-muted);
    font-size: 11px;
    font-weight: var(--pwm-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pwm-cal-tip .pwm-cal-tip-canceled {
    padding: 1px 8px;
    border-radius: 999px;
    background-color: var(--pwm-calendar-canceled-bkg);
    color: var(--pwm-calendar-canceled-text);
    letter-spacing: 0.02em;
}

.pwm-cal-tip .pwm-cal-tip-title {
    margin-top: 5px;
    color: var(--pwm-title);
    font-size: 1rem;
    font-weight: var(--pwm-weight-bold);
    line-height: var(--pwm-line-heading);
}

.pwm-cal-tip .pwm-cal-tip-when {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: var(--pwm-text);
    font-size: var(--pwm-font-small);
}

.pwm-cal-tip .pwm-cal-tip-when i {
    width: 14px;
    color: var(--pwm-text-muted);
    text-align: center;
}

.pwm-cal-tip .pwm-cal-tip-hint {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--pwm-calendar-line);
    color: var(--pwm-text-muted);
    font-size: 12px;
}

.pwm-cal-tip .pwm-cal-tip-arrow {
    position: absolute;
    top: -6px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background-color: var(--pwm-calendar-surface);
    border-top: 1px solid var(--pwm-calendar-line);
    border-left: 1px solid var(--pwm-calendar-line);
    transform: rotate(45deg);
}

.pwm-cal-tip.is-above .pwm-cal-tip-arrow {
    top: auto;
    bottom: -6px;
    border-top: 0;
    border-left: 0;
    border-right: 1px solid var(--pwm-calendar-line);
    border-bottom: 1px solid var(--pwm-calendar-line);
}

.section-calendar .pwm-cal-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pwm-radius-lg);
    background-color: rgba(255, 255, 255, 0.72);
}

.pwm-cal-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--pwm-calendar-line);
    border-top-color: var(--pwm-primary);
    border-radius: 50%;
    animation: pwm-cal-spin 700ms linear infinite;
}

@keyframes pwm-cal-spin {
    to { transform: rotate(360deg); }
}

/* Reduced motion stops the spin globally, so the disc keeps a static
   two-tone ring instead of reading as a plain circle. */
@media (prefers-reduced-motion: reduce) {
    .pwm-cal-spinner {
        border-right-color: var(--pwm-primary);
    }
}

@media (max-width: 767.98px) {
    .section-calendar {
        padding: 10px;
    }

    /* The band stacks: range on top, then nav and the view switch on one
       row, because three columns at 360px leave the title two words wide. */
    .calendar-page .pwm-cal-band {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .calendar-page .pwm-cal-band,
    .pwm-cal-band-main,
    .pwm-cal-band-nav,
    .pwm-cal-band-views {
        min-width: 0;
    }

    .pwm-cal-band-main {
        order: -1;
        grid-column: 1 / -1;
        align-items: flex-start;
        text-align: left;
    }

    .pwm-cal-band-trigger {
        margin-left: 0;
    }

    .pwm-cal-picker {
        left: 0;
        transform: none;
    }

    .pwm-cal-today {
        padding: 8px 12px;
    }

    .pwm-cal-view-btn {
        padding: 8px 14px;
    }

    .section-calendar .fc .fc-daygrid-day-frame {
        min-height: 64px;
    }

    /* The rail stays beside the card â€” a date stacked above the title
       costs a line on every row and reads as a heading. */
    .pwm-cal-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .pwm-cal-rail {
        padding-right: 12px;
    }

    .pwm-cal-rail-day {
        font-size: 1.5rem;
    }

    .pwm-cal-rail.is-today .pwm-cal-rail-day {
        min-width: 36px;
        min-height: 36px;
    }

    .calendar-page .pwm-cal-band {
        margin: 0 0 12px;
        padding: 6px 0;
    }

    .section-calendar,
    .section-calendar .fc,
    .section-calendar .fc .fc-view-harness,
    .section-calendar .fc .fc-scroller,
    .section-calendar .fc .fc-scroller-harness,
    .section-calendar .fc table {
        min-width: 0;
        max-width: 100%;
    }

    /* A 276px panel would hang off a 360px screen from the card inset. */
    .pwm-cal-picker {
        width: min(276px, 100%);
    }

    .calendar-page .pwm-cal-filter {
        flex: 1 1 100%;
        min-width: 0;
    }

    .calendar-page .pwm-cal-toolbar .pwm-calendar-legend {
        margin-left: 0;
    }
}

@media print {
    .calendar-page .pwm-cal-head .pwm-cal-archive,
    .calendar-page .pwm-cal-toolbar,
    .pwm-cal-band-nav,
    .pwm-cal-band-views,
    .pwm-cal-tip {
        display: none !important;
    }

    .section-calendar {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    /* A band pinned to the viewport prints on top of the first rows. */
    .calendar-page .pwm-cal-band {
        position: static;
        display: block;
        margin: 0 0 12px;
        padding: 0 0 8px;
    }

    .pwm-cal-band-main {
        align-items: flex-start;
        text-align: left;
    }

    .pwm-cal-band-trigger {
        margin-left: 0;
        padding: 0;
    }

    .pwm-cal-band-trigger i,
    .pwm-cal-picker {
        display: none !important;
    }

    .section-calendar .fc .fc-list-event {
        break-inside: avoid;
    }
}

.meeting-item tr.meeting-canceled td {
    color: var(--pwm-calendar-canceled-bkg, #595959);
    text-decoration: line-through;
}

.meeting-item tr.meeting-canceled .meeting-canceled-label {
    display: inline-block;
    margin-left: 0.4em;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

/* Meetings page (/Meetings). Own pwm-mtg-* classes so the legacy
   .meeting-section / .meeting-table rules in default.css never apply;
   .meeting-item above belongs to the sidebar archives widget. */
.pwm-meetings {
    padding-top: 24px;
    padding-bottom: 48px;
}

.pwm-meetings .pwm-mtg-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 24px;
    row-gap: 16px;
    margin: 0 0 32px;
    padding: 18px 20px;
    background: var(--pwm-calendar-muted-bkg);
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
}

.pwm-meetings .pwm-mtg-intro {
    grid-column: 1 / -1;
    max-width: var(--pwm-measure);
    margin: 0;
    color: var(--pwm-text);
}

.pwm-meetings .pwm-mtg-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-self: start;
    width: min(100%, 420px);
}

.pwm-meetings .pwm-mtg-filter label {
    margin: 0;
    color: var(--pwm-text);
    font-weight: var(--pwm-weight-ui);
}

.pwm-meetings .pwm-mtg-select {
    min-height: 44px;
    border-color: var(--pwm-field-border);
    border-radius: 6px;
    background-color: var(--pwm-field-bkg);
    color: var(--pwm-field-text);
    font-size: 16px;
}

.pwm-meetings .pwm-mtg-actions {
    display: flex;
    flex-wrap: wrap;
    justify-self: end;
    gap: 8px;
}

.pwm-meetings .pwm-mtg-action,
.pwm-meetings .pwm-mtg-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--pwm-button-bkg);
    border-radius: 6px;
    background: var(--pwm-white);
    color: var(--pwm-button-bkg);
    font: inherit;
    font-weight: var(--pwm-weight-ui);
    line-height: 1.2;
    cursor: pointer;
}

.pwm-meetings .pwm-mtg-action:hover,
.pwm-meetings .pwm-mtg-action:focus-visible,
.pwm-meetings .pwm-mtg-more:hover,
.pwm-meetings .pwm-mtg-more:focus-visible {
    background: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
}

.pwm-meetings .pwm-mtg-state {
    margin: 0 0 24px;
    padding: 28px 20px;
    border: 1px dashed var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    color: var(--pwm-text-muted);
    text-align: center;
}

.pwm-meetings .pwm-mtg-state p {
    margin: 0 0 12px;
}

.pwm-meetings .pwm-mtg-year {
    margin: 0 0 40px;
}

/* default.css shrinks every span in a .main-content h2/h3 to 13px near-black.
   Beats that (0,1,2 > 0,1,1) and still loses to the pwm-mtg-* classes. */
.pwm-meetings h2 span,
.pwm-meetings h3 span {
    font-size: inherit;
    color: inherit;
}

.pwm-meetings .pwm-mtg-year-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 2px solid var(--pwm-sidebar-line);
    color: var(--pwm-sidebar-line);
    font-size: 1.75rem;
    font-weight: var(--pwm-weight-bold);
    line-height: var(--pwm-line-heading);
    text-transform: none;
    scroll-margin-top: 16px;
}

.pwm-meetings .pwm-mtg-year-count {
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
}

.pwm-meetings .pwm-mtg-boards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwm-meetings .pwm-mtg-board {
    overflow: hidden;
    background: var(--pwm-white);
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    transition: box-shadow 160ms ease;
}

.pwm-meetings .pwm-mtg-board.is-open {
    box-shadow: var(--pwm-shadow);
}

.pwm-meetings .pwm-mtg-board-heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    text-transform: none;
}

/* Name | next + count | chevron on one row; the meta drops under the
   name on phones (see the max-width: 767.98px block). */
.pwm-meetings .pwm-mtg-board-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px 16px;
    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: var(--pwm-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pwm-meetings .pwm-mtg-board-toggle:hover {
    background: var(--pwm-calendar-list-hover);
}

/* The card clips overflow for its rounded corners, so the ring goes inside. */
.pwm-meetings .pwm-mtg-board-toggle:focus-visible {
    outline: 3px solid var(--pwm-focus);
    outline-offset: -3px;
}

.pwm-meetings .pwm-mtg-board-name {
    color: var(--pwm-title);
    font-size: 1.125rem;
    font-weight: var(--pwm-weight-bold);
    line-height: 1.3;
}

.pwm-meetings .pwm-mtg-board-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 16px;
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
}

.pwm-meetings .pwm-mtg-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pwm-text);
    font-weight: var(--pwm-weight-ui);
}

.pwm-meetings .pwm-mtg-chevron {
    width: 20px;
    height: 20px;
    color: var(--pwm-text-muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 200ms ease;
}

.pwm-meetings .pwm-mtg-board-toggle[aria-expanded="true"] .pwm-mtg-chevron {
    transform: rotate(180deg);
}

.pwm-meetings .pwm-mtg-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    /* Closed tables use overflow:auto. Their scrollable overflow still
       lengthens the page past the footer unless the panel contains paint. */
    contain: paint;
    transition: grid-template-rows 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0s linear 260ms;
}

.pwm-meetings .pwm-mtg-panel.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    contain: none;
    transition-delay: 0s;
}

.pwm-meetings .pwm-mtg-clip {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.pwm-meetings .pwm-mtg-scroll {
    overflow-x: auto;
    border-top: 1px solid var(--pwm-calendar-line);
}

.pwm-meetings .pwm-mtg-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: var(--pwm-font-body);
}

.pwm-meetings .pwm-mtg-table th,
.pwm-meetings .pwm-mtg-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--pwm-calendar-line);
    color: var(--pwm-text);
    text-align: left;
    vertical-align: middle;
}

.pwm-meetings .pwm-mtg-table thead th {
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--pwm-calendar-muted-bkg);
    color: var(--pwm-text-muted);
    font-size: 0.8125rem;
    font-weight: var(--pwm-weight-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pwm-meetings .pwm-mtg-table tbody tr:last-child > * {
    border-bottom: 0;
}

.pwm-meetings .pwm-mtg-table tbody tr:hover {
    background: var(--pwm-calendar-list-hover);
}

.pwm-meetings .pwm-mtg-date {
    min-width: 11rem;
    font-weight: var(--pwm-weight-normal);
}

.pwm-meetings .pwm-mtg-day {
    display: block;
    font-weight: var(--pwm-weight-bold);
}

.pwm-meetings .pwm-mtg-weekday {
    display: block;
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
}

.pwm-meetings .pwm-mtg-subtitle {
    display: block;
    margin-top: 4px;
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
}

.pwm-meetings .pwm-mtg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.pwm-meetings .pwm-mtg-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: var(--pwm-weight-bold);
    letter-spacing: 0.02em;
    line-height: 1.5;
    white-space: nowrap;
}

.pwm-meetings .pwm-mtg-tag--canceled {
    background: var(--pwm-calendar-canceled-bkg);
    color: var(--pwm-calendar-canceled-text);
}

.pwm-meetings .pwm-mtg-tag--next {
    background: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
}

.pwm-meetings .pwm-mtg-table tbody tr.is-next {
    background: var(--pwm-calendar-today-bkg);
}

.pwm-meetings .pwm-mtg-table tbody tr.is-next > th {
    box-shadow: inset 4px 0 0 var(--pwm-button-bkg);
}

/* Canceled reads from the tag; the row only steps back. No strikethrough —
   visitors still need to read which date was dropped. */
.pwm-meetings .pwm-mtg-table tbody tr.is-canceled .pwm-mtg-day,
.pwm-meetings .pwm-mtg-table tbody tr.is-canceled .pwm-mtg-time,
.pwm-meetings .pwm-mtg-table tbody tr.is-canceled .pwm-mtg-location {
    color: var(--pwm-text-muted);
}

.pwm-meetings .pwm-mtg-doc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--pwm-calendar-line);
    border-radius: 6px;
    background: var(--pwm-white);
    color: var(--pwm-link);
    font-weight: var(--pwm-weight-ui);
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.pwm-meetings .pwm-mtg-doc:hover,
.pwm-meetings .pwm-mtg-doc:focus-visible {
    border-color: var(--pwm-link);
    background: var(--pwm-calendar-list-hover);
    color: var(--pwm-link-hover);
    text-decoration: underline;
}

.pwm-meetings .pwm-mtg-doc i {
    font-size: 1rem;
}

.pwm-meetings .pwm-mtg-none {
    color: var(--pwm-text-muted);
}

.pwm-meetings .pwm-mtg-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.pwm-meetings .pwm-mtg-more {
    min-width: 240px;
    background: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
}

.pwm-meetings .pwm-mtg-more:hover,
.pwm-meetings .pwm-mtg-more:focus-visible {
    background: var(--pwm-button-hover);
    border-color: var(--pwm-button-hover);
}

/* Phones: each meeting becomes a small card with its own labels. The
   explicit ARIA roles in the view keep table semantics once display
   changes. */
@media (max-width: 767.98px) {
    .pwm-meetings .pwm-mtg-toolbar {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .pwm-meetings .pwm-mtg-filter {
        width: 100%;
    }

    .pwm-meetings .pwm-mtg-actions {
        justify-self: stretch;
        width: 100%;
    }

    .pwm-meetings .pwm-mtg-action {
        flex: 1 1 0;
    }

    .pwm-meetings .pwm-mtg-year-title {
        font-size: 1.5rem;
    }

    .pwm-meetings .pwm-mtg-board-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 14px 16px;
    }

    .pwm-meetings .pwm-mtg-board-meta {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .pwm-meetings .pwm-mtg-chevron {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .pwm-meetings .pwm-mtg-table,
    .pwm-meetings .pwm-mtg-table tbody,
    .pwm-meetings .pwm-mtg-table tr,
    .pwm-meetings .pwm-mtg-table th,
    .pwm-meetings .pwm-mtg-table td {
        display: block;
    }

    .pwm-meetings .pwm-mtg-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .pwm-meetings .pwm-mtg-table tbody tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--pwm-calendar-line);
    }

    .pwm-meetings .pwm-mtg-table tbody tr:last-child {
        border-bottom: 0;
    }

    .pwm-meetings .pwm-mtg-table tbody th,
    .pwm-meetings .pwm-mtg-table tbody td {
        padding: 0;
        border: 0;
    }

    .pwm-meetings .pwm-mtg-date {
        min-width: 0;
        margin-bottom: 8px;
    }

    .pwm-meetings .pwm-mtg-table tbody td {
        display: grid;
        grid-template-columns: 6.5rem minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 4px 0;
    }

    .pwm-meetings .pwm-mtg-table tbody td::before {
        content: attr(data-label);
        color: var(--pwm-text-muted);
        font-size: var(--pwm-font-small);
        font-weight: var(--pwm-weight-ui);
    }

    .pwm-meetings .pwm-mtg-table tbody tr.is-next > th {
        box-shadow: none;
    }

    .pwm-meetings .pwm-mtg-table tbody tr.is-next {
        box-shadow: inset 4px 0 0 var(--pwm-button-bkg);
    }

    .pwm-meetings .pwm-mtg-doc {
        justify-self: start;
    }

    .pwm-meetings .pwm-mtg-more {
        width: 100%;
    }
}

@media print {
    .pwm-meetings .pwm-mtg-toolbar,
    .pwm-meetings .pwm-mtg-more-wrap,
    .pwm-meetings .pwm-mtg-chevron {
        display: none !important;
    }

    .pwm-meetings .pwm-mtg-panel {
        grid-template-rows: 1fr;
        visibility: visible;
        contain: none;
    }

    .pwm-meetings .pwm-mtg-board {
        box-shadow: none;
    }

    .pwm-meetings .pwm-mtg-table tr {
        break-inside: avoid;
    }
}

/* Meeting / event entry pages (/meetings/{slug-id}, /events/{slug-id}).
   Own pwm-entry-* classes so the legacy .meeting-view / #Event_Link rules
   in default.css never apply. Headings are .pwm-entry scoped to beat the
   32px .main-content h2 rule. */
.pwm-entry {
    padding-top: 8px;
    padding-bottom: 48px;
}

.pwm-entry-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
}

.pwm-entry-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: var(--pwm-weight-bold);
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
}

.pwm-entry-tag--kind {
    border-color: var(--pwm-calendar-line);
    background: var(--pwm-calendar-muted-bkg);
    color: var(--pwm-text);
}

.pwm-entry-tag--soon {
    background: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
}

.pwm-entry-tag--past {
    border-color: var(--pwm-calendar-line);
    background: var(--pwm-white);
    color: var(--pwm-text-muted);
}

.pwm-entry-tag--canceled {
    background: var(--pwm-calendar-canceled-bkg);
    color: var(--pwm-calendar-canceled-text);
}

.pwm-entry-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 24px;
    padding: 14px 18px;
    border: 1px solid var(--pwm-calendar-canceled-bkg);
    border-left-width: 6px;
    border-radius: var(--pwm-radius);
    background: var(--pwm-white);
    color: var(--pwm-text);
}

.pwm-entry-alert i {
    margin-top: 3px;
    color: var(--pwm-calendar-canceled-bkg);
    font-size: 1.25rem;
}

.pwm-entry-alert p {
    margin: 0;
}

.pwm-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: start;
    gap: 32px;
}

.pwm-entry-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.pwm-entry-main {
    min-width: 0;
}

.pwm-entry-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.pwm-entry-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 32px;
}

.pwm-entry-fact {
    flex: 1 1 220px;
    padding: 14px 16px;
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    background: var(--pwm-calendar-muted-bkg);
}

.pwm-entry-fact--wide {
    flex-basis: 100%;
}

.pwm-entry-fact dt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pwm-entry-fact dt i {
    width: 1.1em;
    color: var(--pwm-button-bkg);
    text-align: center;
}

.pwm-entry-fact dd {
    margin: 0;
    color: var(--pwm-text);
    font-size: 1.125rem;
    font-weight: var(--pwm-weight-bold);
    line-height: 1.35;
}

.pwm-entry-fact-text {
    display: block;
    overflow-wrap: anywhere;
}

.pwm-entry-join {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 4px;
    color: var(--pwm-link);
    font-size: 1rem;
    font-weight: var(--pwm-weight-ui);
}

.pwm-entry-join:hover,
.pwm-entry-join:focus-visible {
    color: var(--pwm-link-hover);
}

.pwm-entry-section {
    margin: 0 0 32px;
}

.pwm-entry .pwm-entry-heading {
    margin: 0 0 14px;
    padding: 0 0 8px;
    border-bottom: 2px solid var(--pwm-title);
    color: var(--pwm-title);
    font-size: 1.375rem;
    font-weight: var(--pwm-weight-bold);
    line-height: var(--pwm-line-heading);
    text-transform: none;
}

.pwm-entry-prose {
    max-width: var(--pwm-measure);
    color: var(--pwm-text);
}

.pwm-entry-prose > :last-child {
    margin-bottom: 0;
}

.pwm-entry-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pwm-entry-files > li {
    margin: 0;
}

.pwm-entry-file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    background: var(--pwm-white);
    color: var(--pwm-text);
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.pwm-entry-file:hover,
.pwm-entry-file:focus-visible {
    border-color: var(--pwm-link);
    background: var(--pwm-calendar-list-hover);
    box-shadow: var(--pwm-shadow);
    color: var(--pwm-text);
    text-decoration: none;
}

.pwm-entry-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--pwm-calendar-muted-bkg);
    color: var(--pwm-button-bkg);
    font-size: 1.375rem;
}

.pwm-entry-file-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pwm-entry-file-eyebrow {
    color: var(--pwm-text-muted);
    font-size: 12px;
    font-weight: var(--pwm-weight-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pwm-entry-file-title {
    color: var(--pwm-link);
    font-weight: var(--pwm-weight-bold);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pwm-entry-file:hover .pwm-entry-file-title,
.pwm-entry-file:focus-visible .pwm-entry-file-title {
    color: var(--pwm-link-hover);
    text-decoration: underline;
}

.pwm-entry-file-meta {
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
}

.pwm-entry-file-go {
    color: var(--pwm-text-muted);
    font-size: 0.875rem;
}

.pwm-entry-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 18px 20px;
    border: 1px dashed var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    color: var(--pwm-text-muted);
}

.pwm-entry-card {
    overflow: hidden;
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    background: var(--pwm-white);
    box-shadow: var(--pwm-shadow);
}

.pwm-entry-card-body {
    padding: 18px 20px 20px;
}

.pwm-entry .pwm-entry-card-title {
    margin: 0 0 8px;
    color: var(--pwm-text);
    font-size: 1.125rem;
    font-weight: var(--pwm-weight-bold);
    line-height: var(--pwm-line-heading);
    text-transform: none;
}

.pwm-entry-map {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--pwm-calendar-muted-bkg);
}

.pwm-entry-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.pwm-entry-place-text {
    margin: 0 0 14px;
    color: var(--pwm-text);
    overflow-wrap: anywhere;
}

.pwm-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--pwm-button-bkg);
    border-radius: 6px;
    background: var(--pwm-white);
    color: var(--pwm-button-bkg);
    font-weight: var(--pwm-weight-ui);
    line-height: 1.2;
    text-decoration: none;
}

.pwm-entry-btn:hover,
.pwm-entry-btn:focus-visible {
    background: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
    text-decoration: none;
}

.pwm-entry-btn i {
    width: 1.1em;
    text-align: center;
}

.pwm-entry-btn-note {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
}

.pwm-entry-atc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.pwm-entry-atc-list li {
    margin: 0;
}

.pwm-entry-atc-list .pwm-entry-btn {
    width: 100%;
}

.pwm-entry-pager {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--pwm-calendar-line);
}

.pwm-entry-pager-side--next {
    display: flex;
    justify-content: flex-end;
    text-align: right;
}

.pwm-entry-pager-link {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--pwm-calendar-line);
    border-radius: var(--pwm-radius);
    background: var(--pwm-white);
    color: var(--pwm-text);
    text-decoration: none;
}

.pwm-entry-pager-link:hover,
.pwm-entry-pager-link:focus-visible {
    border-color: var(--pwm-link);
    background: var(--pwm-calendar-list-hover);
    color: var(--pwm-text);
    text-decoration: none;
}

.pwm-entry-pager-dir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pwm-text-muted);
    font-size: var(--pwm-font-small);
    font-weight: var(--pwm-weight-ui);
}

.pwm-entry-pager-side--next .pwm-entry-pager-dir {
    justify-content: flex-end;
}

.pwm-entry-pager-date {
    color: var(--pwm-link);
    font-weight: var(--pwm-weight-bold);
}

.pwm-entry-pager-link:hover .pwm-entry-pager-date,
.pwm-entry-pager-link:focus-visible .pwm-entry-pager-date {
    color: var(--pwm-link-hover);
    text-decoration: underline;
}

.pwm-entry-pager-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 6px;
    background: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
    font-weight: var(--pwm-weight-ui);
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.pwm-entry-pager-all:hover,
.pwm-entry-pager-all:focus-visible {
    background: var(--pwm-button-hover);
    color: var(--pwm-button-text);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .pwm-entry-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .pwm-entry-map {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 575.98px) {
    .pwm-entry-pager {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .pwm-entry-pager-side:not(:has(a)) {
        display: none;
    }

    .pwm-entry-pager-side--next {
        justify-content: flex-start;
        text-align: left;
    }

    .pwm-entry-pager-side--next .pwm-entry-pager-dir {
        justify-content: flex-start;
    }

    .pwm-entry-pager-link,
    .pwm-entry-pager-all {
        width: 100%;
    }
}

@media print {
    .pwm-entry-map,
    .pwm-entry-atc,
    .pwm-entry-pager,
    .pwm-entry-place .pwm-entry-btn,
    .pwm-entry-file-go {
        display: none !important;
    }

    .pwm-entry-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pwm-entry-card,
    .pwm-entry-file {
        box-shadow: none;
        break-inside: avoid;
    }

    .pwm-entry-file::after {
        content: attr(href);
        grid-column: 2 / -1;
        font-size: 11px;
        overflow-wrap: anywhere;
    }
}

/* Forms directory */
.forms-page .pwm-forms-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 20px;
    margin: 0 0 24px;
}

.forms-page .pwm-forms-field {
    flex: 1 1 240px;
    max-width: 420px;
    min-width: 0;
}

.forms-page .pwm-forms-search-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--pwm-text);
}

.forms-page .pwm-forms-search,
.forms-page .pwm-forms-dept {
    display: block;
    width: 100%;
    min-height: 44px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    color: var(--pwm-text);
    background-color: var(--pwm-white);
}

.forms-page .pwm-forms-search {
    padding: 8px 12px;
}

.forms-page .pwm-forms-dept {
    padding: 8px 36px 8px 12px;
}

.forms-page .pwm-forms-empty {
    margin: 0 0 20px;
    color: var(--pwm-text);
}

.forms-page .pwm-forms-clear {
    display: inline-block;
    margin-left: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.forms-page .pwm-forms-clear:hover,
.forms-page .pwm-forms-clear:focus-visible {
    background: var(--pwm-button-hover);
}

/* Pinned menu height. Under 1200px the mast is 85px (64px logo, 10px
   padding, 1px border). From 1200px the band is 56px. default.js
   replaces this with the live #main-menu-container height. */
:root {
    --pwm-sticky-nav: 85px;
}

@media (min-width: 1200px) {
    :root {
        --pwm-sticky-nav: 56px;
    }
}

.forms-page .form-section {
    margin: 0 0 28px;
    scroll-margin-top: calc(var(--pwm-sticky-nav, 85px) + 12px);
}

.forms-page .form-section-title {
    margin: 0 0 10px;
    padding: 0 0 6px;
    color: var(--pwm-sidebar-title);
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--pwm-sidebar-line);
    scroll-margin-top: calc(var(--pwm-sticky-nav, 85px) + 12px);
}

.forms-page .form-section-title:focus {
    outline: 2px solid var(--pwm-focus, #003d66);
    outline-offset: 2px;
}

.forms-page .form-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forms-page .form-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 2px;
    background: #f8f8f8;
    border-radius: 6px;
}

.forms-page .form-item:nth-child(even) {
    background: #f1f1f1;
}

.forms-page .form-title {
    flex: 1 1 auto;
    color: var(--pwm-text);
    font-weight: 600;
    line-height: 1.4;
}

.forms-page a.form-title {
    color: var(--pwm-link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.forms-page a.form-title:hover,
.forms-page a.form-title:focus-visible {
    color: var(--pwm-link-hover);
}

.forms-page .form-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.forms-page .form-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.forms-page .form-action:hover,
.forms-page .form-action:focus-visible {
    background: var(--pwm-button-hover);
    color: var(--pwm-button-text);
}

.forms-page .form-action-web {
    background: var(--pwm-link);
}

.forms-page .form-action-web:hover,
.forms-page .form-action-web:focus-visible {
    background: var(--pwm-link-hover);
    color: var(--pwm-white);
}

@media (max-width: 767px) {
    .forms-page .form-item {
        flex-direction: column;
        align-items: stretch;
    }

    .forms-page .form-links {
        justify-content: flex-start;
    }

    .forms-page .pwm-forms-field {
        flex-basis: 100%;
        max-width: none;
    }
}

/* Department sidebar forms â€” no nested scroll; chip actions match Forms directory */
.sidebar .forms-box .pwm-forms-widget {
    width: 100%;
}

.sidebar .forms-box .form-list-sb {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .forms-box .form-list-sb-item,
aside section.sb-section.forms-box ul.form-list-sb li.form-list-sb-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 0;
    border-top: none;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar .forms-box .form-list-sb-item:last-child,
aside section.sb-section.forms-box ul.form-list-sb li.form-list-sb-item:last-child {
    border-bottom: none;
}

.sidebar .forms-box .form-list-sb-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--pwm-link);
    font-size: 1rem;
    font-weight: var(--pwm-weight-ui);
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar .forms-box .form-list-sb-title > i,
.sidebar .forms-box .form-list-sb-title > .svg-inline--fa {
    flex: 0 0 1.25em;
    width: 1.25em;
    margin-top: 0.22em;
    font-size: 0.875rem;
    color: var(--pwm-text-muted, #595959);
    text-align: center;
}

.sidebar .forms-box .form-list-sb-label {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar .forms-box .form-list-sb-title:hover,
.sidebar .forms-box .form-list-sb-title:focus-visible {
    color: var(--pwm-link-hover);
}

.sidebar .forms-box .form-list-sb-title:hover > i,
.sidebar .forms-box .form-list-sb-title:focus-visible > i,
.sidebar .forms-box .form-list-sb-title:hover > .svg-inline--fa,
.sidebar .forms-box .form-list-sb-title:focus-visible > .svg-inline--fa {
    color: var(--pwm-link-hover);
}

.sidebar .forms-box .form-list-sb-title-plain {
    color: var(--pwm-sidebar-text);
    cursor: default;
    font-weight: 700;
}

.sidebar .forms-box .form-list-sb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: calc(1.25em + 10px);
}

.sidebar .forms-box .form-list-sb-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-button-bkg);
    color: var(--pwm-button-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar .forms-box .form-list-sb-action:hover,
.sidebar .forms-box .form-list-sb-action:focus-visible {
    background: var(--pwm-button-hover);
    color: var(--pwm-button-text);
}

.sidebar .forms-box .form-list-sb-action-web {
    background: var(--pwm-link);
}

.sidebar .forms-box .form-list-sb-action-web:hover,
.sidebar .forms-box .form-list-sb-action-web:focus-visible {
    background: var(--pwm-link-hover);
    color: var(--pwm-white, #fff);
}

.sidebar .forms-box .form-list-sb-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--pwm-link);
    font-size: 0.9375rem;
    font-weight: var(--pwm-weight-ui);
    line-height: 1.3;
    cursor: pointer;
}

.sidebar .forms-box .form-list-sb-more:hover,
.sidebar .forms-box .form-list-sb-more:focus-visible {
    color: var(--pwm-link-hover);
}

.sidebar .forms-box .form-list-sb-more-count {
    font-weight: var(--pwm-weight-normal);
    color: var(--pwm-text-muted, #595959);
}

.sidebar .forms-box .form-list-sb-more > i,
.sidebar .forms-box .form-list-sb-more > .svg-inline--fa {
    font-size: 0.75rem;
}

/* Interior sidebar â€” same gold titles, readable hierarchy */
aside.sidebar section.sb-section {
    margin: 0 0 2rem;
    width: 100%;
}

aside.sidebar section.sb-section:last-child {
    margin-bottom: 0;
}

/* Empty rail â€” pwmSyncSidebar marks the aside; .pwm-sheet { display:flex }
   would otherwise resurrect [hidden] on phones. */
aside.sidebar.pwm-sidebar-empty,
aside.sidebar[hidden] {
    display: none !important;
}

/* Nested .row inside the rail cancels the aside's col padding, so Resources
   (and other row-wrapped sections) paint wider than Links / Contact cards
   that sit in the padded content box. Zero the gutter so every card shares
   one width. */
.sidebar .sidebar-resources.row,
.sidebar section.sb-section.row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
}

/* Stacked Resources sections (e.g. Belleville promo strip + accordion)
   share margin:0 on the card cols — space the next card from the prior. */
.sidebar .sidebar-resources + .sidebar-resources {
    margin-top: 1.75rem;
}

/* Sidebar section cards — Contact, Forms, Financial Documents, Meeting
   Archives, Social, Resources, and quick-link groups share one white card.
   A light gray 3px top edge marks each main card.
   Resources accordion rows stay a flat divided list inside that card.
   default.css forces .sidebar .title-sidebar to uppercase + a 4px underline;
   the heading rules below win with higher specificity and !important. */
.sidebar .dept-contact,
.sidebar .pwm-forms-widget,
.sidebar .pwm-budgets-widget,
.sidebar .pwm-archives-widget,
.sidebar .sidebar-resources > [class*="col-"],
.sidebar .sb-section > [class*="col-"]:has(> .title-sidebar),
.buttons-resources .ql-group {
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.875rem;
    border: 0 !important;
    border-top: 3px solid #ccc !important;
    border-radius: 8px;
    background: var(--pwm-white);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* Resources: flat accordion rows inside the outer card — no nested cards. */
.sidebar .sidebar-resources .pwm-accordion__group {
    border-bottom: 0;
}

.sidebar .sidebar-resources .pwm-accordion__group > .pwm-accordion {
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar .sidebar-resources .pwm-accordion__group > .pwm-accordion + .pwm-accordion {
    border-top: 1px solid #e5e5e5 !important;
}

.buttons-resources .ql-group + .ql-group {
    margin-top: 1.75rem;
}

.sidebar .dept-contact > .title-sidebar,
.sidebar .pwm-forms-widget > .title-sidebar,
.sidebar .pwm-budgets-widget > .title-sidebar,
.sidebar .pwm-archives-widget > .title-sidebar,
.sidebar .sidebar-resources > [class*="col-"] > .title-sidebar,
.sidebar .sb-section > [class*="col-"] > .title-sidebar,
.buttons-resources .ql-group > .title-sidebar {
    margin: 0 0 0.625rem;
    padding: 0.125rem 0.125rem 0.375rem;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    color: var(--pwm-sidebar-text) !important;
    font-size: 1.125rem !important;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none !important;
}

/* Quick links rail (department + home). Rows stay #eee with left icons and
   faint text chips. default.css still skins .buttons-resources ul li with
   !important in some towns, so the widget classes and the !important below
   are what beat it. */
.sidebar .buttons-resources ul.ql-list,
.buttons-resources ul.ql-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar .buttons-resources ul.ql-list > li.ql-item,
aside .buttons-resources ul.ql-list > li.ql-item {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
}

.sidebar .buttons-resources ul.ql-list > li.ql-item > a.ql-link,
aside .buttons-resources ul.ql-list > li.ql-item > a.ql-link {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.625rem 0.75rem;
    border: 0;
    border-radius: 8px;
    background: #eee !important;
    box-shadow: none;
    color: var(--pwm-sidebar-text) !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.35;
    text-decoration: none !important;
    transition: background-color 150ms ease;
}

.sidebar .buttons-resources ul.ql-list > li.ql-item > a.ql-link:hover,
.sidebar .buttons-resources ul.ql-list > li.ql-item > a.ql-link:focus-visible,
aside .buttons-resources ul.ql-list > li.ql-item > a.ql-link:hover,
aside .buttons-resources ul.ql-list > li.ql-item > a.ql-link:focus-visible {
    background: #e3e5e8 !important;
    box-shadow: none;
    color: var(--pwm-sidebar-text) !important;
    text-decoration: none !important;
}

.sidebar .buttons-resources ul.ql-list > li.ql-item > a.ql-link:active,
aside .buttons-resources ul.ql-list > li.ql-item > a.ql-link:active {
    background: #d8d8d8 !important;
}

.buttons-resources .ql-link:focus-visible {
    outline: 3px solid var(--pwm-primary);
    outline-offset: -3px;
}

.buttons-resources .ql-link-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    justify-content: center;
    box-sizing: content-box;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0.15rem 0.35rem 0.15rem 0;
    color: var(--pwm-secondary);
    font-size: 1rem;
    line-height: 1;
}

.buttons-resources .ql-link-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.buttons-resources .ql-link-label {
    min-width: 0;
    overflow-wrap: anywhere;
    text-wrap: pretty;
    font-weight: 600;
}

.buttons-resources .ql-link:hover .ql-link-label,
.buttons-resources .ql-link:focus-visible .ql-link-label {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.buttons-resources .ql-link-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.buttons-resources .ql-link-chip {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #5c6b7a !important;
    font-size: 0.6875rem !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.buttons-resources .ql-link-chip-external {
    border: 0 !important;
    border-radius: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.buttons-resources .ql-link:hover .ql-link-chip,
.buttons-resources .ql-link:focus-visible .ql-link-chip {
    background: transparent !important;
    color: #5c6b7a !important;
}

@media (prefers-reduced-motion: reduce) {
    .buttons-resources ul.ql-list > li.ql-item > a.ql-link {
        transition: none;
    }
}

/* Contact rail type scale â€” one job per color, one body size.
   gold = rail title, navy = office, muted = eyebrow + icons,
   near-black = names and plain values, blue = actionable link. */
.dept-contact {
    width: 100%;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.dept-contact .contact-group + .contact-group,
.dept-contact .contact-block + .contact-block {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #e6e6e6;
}

.dept-contact .contact-heading {
    margin: 0 0 0.5rem;
    padding: 0;
    font-family: var(--pwm-font-sans);
    font-size: 1rem;
    font-weight: var(--pwm-weight-bold);
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pwm-primary);
}

/* A role is a label for the person under it, not a second title. */
.dept-contact .contact-block-person .contact-heading {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: var(--pwm-weight-bold);
    line-height: 1.4;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pwm-text-muted, #595959);
}

.dept-contact .contact-block-note .contact-heading {
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: var(--pwm-weight-ui);
    line-height: 1.45;
    color: var(--pwm-text-muted, #595959);
}

.dept-contact .contact-name {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 0.1rem;
    font-family: var(--pwm-font-sans);
    font-size: 0.9375rem;
    font-weight: var(--pwm-weight-ui);
    line-height: 1.45;
    color: var(--pwm-text);
}

.dept-contact .contact-list,
aside section.sb-section .dept-contact .contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dept-contact .contact-row,
aside section.sb-section .dept-contact .contact-list .contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 4px 0 !important;
    border: none !important;
    color: var(--pwm-text);
}

.dept-contact .contact-name > i,
.dept-contact .contact-row > i,
.dept-contact .contact-name > .svg-inline--fa,
.dept-contact .contact-row > .svg-inline--fa {
    flex: 0 0 1.25em;
    width: 1.25em;
    margin-top: 0.28em;
    font-size: 0.8125rem;
    color: var(--pwm-text-muted, #595959);
    text-align: center;
}

.dept-contact .contact-row-text {
    min-width: 0;
    margin: 0;
    flex: 1 1 auto;
}

.dept-contact .contact-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: var(--pwm-weight-normal);
    line-height: 1.45;
    color: var(--pwm-text);
    overflow-wrap: anywhere;
}

.dept-contact .contact-row a.contact-value {
    color: var(--pwm-link);
    text-decoration: none;
}

.dept-contact .contact-row a.contact-value:hover,
.dept-contact .contact-row a.contact-value:focus-visible {
    color: var(--pwm-link-hover);
    text-decoration: underline;
}

/* Town default.css sets cursor:text on tel links from 768px up, which makes
   a real phone link look like plain text. Match the email link instead. */
@media screen and (min-width: 768px) {
    .sidebar .contact-list li a[href*="tel:"],
    .bio-contact .contact-list li a[href*="tel:"],
    .dept-contact .contact-row a.contact-value[href*="tel:"] {
        cursor: pointer;
        color: var(--pwm-link) !important;
        text-decoration: none;
    }

    .sidebar .contact-list li a[href*="tel:"]:hover,
    .sidebar .contact-list li a[href*="tel:"]:focus-visible,
    .bio-contact .contact-list li a[href*="tel:"]:hover,
    .bio-contact .contact-list li a[href*="tel:"]:focus-visible,
    .dept-contact .contact-row a.contact-value[href*="tel:"]:hover,
    .dept-contact .contact-row a.contact-value[href*="tel:"]:focus-visible {
        color: var(--pwm-link-hover) !important;
        text-decoration: underline;
    }
}

.sidebar .pwm-archives-widget .pwm-accordion__button {
    font-weight: var(--pwm-weight-bold);
    color: var(--pwm-text);
}

.sidebar .pwm-archives-widget .pwm-accordion__button:hover,
.sidebar .pwm-archives-widget .pwm-accordion__button[aria-expanded="true"] {
    color: var(--pwm-link);
}

.sidebar .pwm-archives-widget .pwm-archives-folder {
    order: 0;
    flex: 0 0 auto;
    width: 1.15em;
    color: var(--pwm-sidebar-title);
    font-size: 1.05em;
    text-align: center;
}

/* Exact content height, same motion as the FAQ disclosures. 0fr still sizes
   to min-content unless the grid child can shrink to 0. */
.sidebar .pwm-archives-widget .pwm-archives-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0s linear 260ms;
}

.sidebar .pwm-archives-widget .pwm-archives-panel.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition-delay: 0s;
}

.sidebar .pwm-archives-widget .pwm-archives-clip {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.sidebar .pwm-archives-widget .meeting-item {
    margin-bottom: 0;
}

/* ==========================================================================
   Mobile navigation drawer (< 1200px)

   A white surface carrying the town lockup, one saturated band holding search,
   and a stack of drill-down panels. Only the panels on the current path are in
   the DOM; the desktop table nav is not rendered at all on phones (and this
   drawer is not rendered on desktop) â€” see pwmMenu().

   Under 560px the surface is full-bleed. From 560px it is a 420px panel hinged
   to the menu button with the page dimmed behind it, because a full-bleed
   drawer on a tablet stretches a 56px row past 1100px and parks its chevron a
   hand's width from its label.
   ========================================================================== */

:root {
    --pwm-menu-surface: #ffffff;
    --pwm-menu-line: #e6eaee;
    --pwm-menu-tint: #f3f5f7;
    --pwm-menu-press: #e7ecf0;
    --pwm-menu-band: var(--pwm-nav-bkg, #1e3a5f);
    --pwm-menu-accent: var(--pwm-primary, #1e3a5f);
    --pwm-menu-rail: var(--pwm-secondary, #c4a35a);
    --pwm-menu-text: var(--pwm-text, #333333);
    --pwm-menu-muted: var(--pwm-text-muted, #595959);
    --pwm-menu-scrim: rgba(12, 18, 28, 0.55);
    --pwm-menu-panel-w: 420px;
}

@media (min-width: 1200px) {
    .pwm-drawer { display: none; }
}

#main-menu-container.pwm-nav-open {
    z-index: 10050;
}

.pwm-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10050;
    visibility: hidden;
    pointer-events: none;
    /* Clip the shell while it slides, so a translated panel cannot widen the page. */
    overflow: clip;
    transition: visibility 0s linear 260ms;
}

.pwm-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
}

.pwm-drawer-scrim {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--pwm-menu-scrim);
    opacity: 0;
    transition: opacity 220ms linear;
}

.pwm-drawer.is-open .pwm-drawer-scrim {
    opacity: 1;
}

.pwm-drawer-shell {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: var(--pwm-menu-surface);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 160ms linear;
    will-change: transform;
}

@media (min-width: 560px) {
    .pwm-drawer-shell {
        left: auto;
        width: min(var(--pwm-menu-panel-w), 92vw);
        box-shadow: -18px 0 42px rgba(12, 18, 28, 0.28);
    }
}

.pwm-drawer.is-open .pwm-drawer-shell {
    transform: none;
    opacity: 1;
}

/* After the close transition, park the shell inside the overlay. Leaving it
   at translateX(100%) keeps a closed drawer in the scrollable overflow. */
.pwm-drawer.is-parked .pwm-drawer-shell {
    transform: none;
    opacity: 0;
    transition: none;
}

/* Identity â€” the same lockup the mast shows, so opening the menu never drops
   the visitor into an unbranded surface. The head stays white and the brand
   colour is spent on the band below it. */
.pwm-drawer-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    background: var(--pwm-menu-surface);
    border-bottom: 1px solid var(--pwm-menu-line);
}

.pwm-drawer-mark {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 6px;
    line-height: 0;
}

.pwm-drawer-mark img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.pwm-drawer-mark:focus-visible {
    outline: 2px solid var(--pwm-focus, var(--pwm-menu-accent));
    outline-offset: 3px;
}

/* Small phones: the lockup gives up height before it gives up the Close pill. */
@media (max-width: 400px) {
    .pwm-drawer-mark img {
        height: 42px;
    }
}

/* A word beside the X: "close" is the one control every visitor needs to find
   under pressure, and the glyph alone asks them to guess. */
.pwm-drawer-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 14px 0 11px;
    border: 1px solid var(--pwm-menu-line);
    border-radius: 999px;
    background: var(--pwm-menu-surface);
    color: var(--pwm-menu-accent);
    font: inherit;
    cursor: pointer;
}

.pwm-drawer-close:hover {
    background: var(--pwm-menu-tint);
}

.pwm-drawer-close:active {
    background: var(--pwm-menu-press);
}

.pwm-drawer-close:focus-visible {
    outline: 2px solid var(--pwm-focus, var(--pwm-menu-accent));
    outline-offset: 2px;
}

.pwm-drawer-close-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pwm-drawer-close-icon {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.pwm-drawer-close-icon::before,
.pwm-drawer-close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 2px;
    margin: -1px 0 0 -8.5px;
    border-radius: 1px;
    background: currentColor;
}

.pwm-drawer-close-icon::before { transform: rotate(45deg); }
.pwm-drawer-close-icon::after { transform: rotate(-45deg); }

/* Search â€” the one saturated band, placed on the primary action */
.pwm-drawer-band {
    flex: 0 0 auto;
    padding: 12px 16px 13px;
    background: var(--pwm-menu-band);
}

/* Typing filters the menu, which nothing else on the page announces. */
.pwm-drawer-band-hint {
    margin: 8px 2px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

/* The submit block is inset inside the white pill so it never reads as a bite
   out of the pill in towns where the button token matches the nav token. */
.pwm-drawer-search {
    display: flex;
    align-items: stretch;
    gap: 5px;
    padding: 5px;
    border-radius: 12px;
    background: var(--pwm-menu-surface);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.pwm-drawer-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--pwm-menu-text);
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
}

.pwm-drawer-search input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.pwm-drawer-search input:focus-visible {
    outline: 2px solid var(--pwm-menu-accent);
    outline-offset: 0;
}

/* Safari is the only engine that draws a clear control on type="search", so
   the drawer owns one â€” a filter you cannot empty traps the visitor. */
.pwm-drawer-search-clear {
    flex: 0 0 auto;
    width: 40px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--pwm-menu-muted);
    font-size: 15px;
    cursor: pointer;
}

.pwm-drawer-search-clear:hover,
.pwm-drawer-search-clear:active {
    background: var(--pwm-menu-tint);
    color: var(--pwm-menu-text);
}

.pwm-drawer-search-clear:focus-visible {
    outline: 2px solid var(--pwm-menu-accent);
    outline-offset: -2px;
}

.pwm-drawer-search-go {
    flex: 0 0 auto;
    width: 48px;
    border: 0;
    border-radius: 7px;
    background: var(--pwm-button-bkg, var(--pwm-menu-accent));
    color: var(--pwm-button-text, #ffffff);
    font-size: 17px;
    cursor: pointer;
}

.pwm-drawer-search-go:active {
    background: var(--pwm-button-hover, var(--pwm-menu-accent));
}

.pwm-drawer-hits {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--pwm-menu-surface);
}

/* A desktop-width tablet still gets a real scrollbar, and the default one
   lands a stepper arrow on the panel edge. */
.pwm-drawer-hits,
.pwm-drawer-panel {
    scrollbar-width: thin;
    scrollbar-color: #c3ccd5 transparent;
}

.pwm-drawer-hits::-webkit-scrollbar,
.pwm-drawer-panel::-webkit-scrollbar {
    width: 8px;
}

.pwm-drawer-hits::-webkit-scrollbar-track,
.pwm-drawer-panel::-webkit-scrollbar-track {
    background: transparent;
}

.pwm-drawer-hits::-webkit-scrollbar-thumb,
.pwm-drawer-panel::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 4px;
    background: #c3ccd5;
    background-clip: content-box;
}

.pwm-drawer-hits-count {
    margin: 0;
    padding: 11px 20px 10px;
    background: var(--pwm-menu-tint);
    border-bottom: 1px solid var(--pwm-menu-line);
    color: var(--pwm-menu-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.pwm-drawer-empty {
    padding: 22px 20px 26px;
}

.pwm-drawer-empty-title {
    margin: 0 0 6px;
    color: var(--pwm-menu-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.pwm-drawer-empty-hint {
    margin: 0;
    color: var(--pwm-menu-muted);
    font-size: 14px;
    line-height: 1.5;
}

.pwm-suggest-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pwm-menu-tint);
    color: var(--pwm-menu-accent);
    font-size: 15px;
}

.pwm-suggest-icon-page {
    background: transparent;
    color: var(--pwm-menu-muted);
}

.pwm-suggest-search {
    background: var(--pwm-menu-tint);
}

.pwm-suggest-search .pwm-nav-row-chevron {
    background: var(--pwm-menu-surface);
    box-shadow: inset 0 0 0 1px var(--pwm-menu-line);
    color: var(--pwm-menu-accent);
}

.pwm-suggest-search .pwm-suggest-icon {
    background: var(--pwm-button-bkg, var(--pwm-menu-accent));
    color: var(--pwm-button-text, #ffffff);
}

.pwm-suggest-action {
    color: var(--pwm-menu-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.pwm-suggest-query {
    overflow: hidden;
    color: var(--pwm-menu-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pwm-nav-row-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.pwm-nav-row-crumb {
    color: var(--pwm-menu-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Panel stack */
.pwm-drawer-stack {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.pwm-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--pwm-menu-surface);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 150ms linear, visibility 0s linear 240ms;
}

.pwm-drawer-panel.is-current {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 150ms linear, visibility 0s;
}

.pwm-drawer-panel.is-behind {
    transform: translateX(-24%);
}

/* Where am I, and how do I get back â€” both answered before the first row. */
.pwm-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 20px 14px;
    background: var(--pwm-menu-surface);
    border-bottom: 1px solid var(--pwm-menu-line);
    box-shadow: 0 8px 16px rgba(12, 18, 28, 0.05);
}

.pwm-panel-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 40px;
    margin: 0 0 10px;
    padding: 0 14px 0 11px;
    border: 1px solid var(--pwm-menu-line);
    border-radius: 999px;
    background: var(--pwm-menu-surface);
    color: var(--pwm-menu-accent);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pwm-panel-back:hover {
    background: var(--pwm-menu-tint);
}

.pwm-panel-back:active {
    background: var(--pwm-menu-press);
}

.pwm-panel-back:focus-visible {
    outline: 2px solid var(--pwm-focus, var(--pwm-menu-accent));
    outline-offset: 2px;
}

.pwm-panel-back-icon {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.pwm-panel-back-copy {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.pwm-panel-back-eyebrow {
    flex: 0 0 auto;
    color: var(--pwm-menu-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pwm-panel-back-label {
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pwm-panel-title {
    position: relative;
    margin: 0;
    padding: 0 0 10px;
    color: var(--pwm-menu-accent);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* The same gold rule the sidebar and page titles carry. */
.pwm-panel-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--pwm-menu-rail);
}

.pwm-panel-title:focus-visible {
    outline: 2px solid var(--pwm-focus, var(--pwm-menu-accent));
    outline-offset: 4px;
}

/* Rows */
.pwm-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pwm-nav-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 14px 18px 14px 20px;
    border: 0;
    border-bottom: 1px solid var(--pwm-menu-line);
    background: var(--pwm-menu-surface);
    color: var(--pwm-menu-text);
    font: inherit;
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* The connect block brings its own top rule, so the row above it must not. */
.pwm-nav-list > li:last-child .pwm-nav-row {
    border-bottom: 0;
}

.pwm-nav-row::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: transparent;
}

.pwm-nav-row-label {
    flex: 1 1 auto;
    min-width: 0;
}

/* A disc, not a bare tick: the row's one affordance has to survive a thumb
   and a 55% zoom, and it doubles as the hover target's centre of gravity. */
.pwm-nav-row-chevron {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pwm-menu-tint);
    color: var(--pwm-menu-muted);
}

.pwm-nav-row-chevron::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: -2px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

/* How much sits behind a section, so nobody drills in to count. */
.pwm-nav-row-count {
    flex: 0 0 auto;
    color: var(--pwm-menu-muted);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pwm-nav-row-tag {
    flex: 0 0 auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--pwm-menu-tint);
    color: var(--pwm-menu-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (hover: hover) {
    .pwm-nav-row:hover {
        background: var(--pwm-menu-tint);
        color: var(--pwm-menu-accent);
    }

    .pwm-nav-row:hover .pwm-nav-row-chevron {
        background: var(--pwm-menu-press);
        color: var(--pwm-menu-accent);
    }
}

.pwm-nav-row:active {
    background: var(--pwm-menu-press);
}

.pwm-nav-row:focus-visible {
    outline: 2px solid var(--pwm-focus, var(--pwm-menu-accent));
    outline-offset: -3px;
}

/* The branch holding the page you are on, and the page itself */
.pwm-nav-row.is-current,
.pwm-nav-row.is-active-branch {
    background: var(--pwm-menu-tint);
    color: var(--pwm-menu-accent);
    font-weight: 700;
}

.pwm-nav-row.is-current::before,
.pwm-nav-row.is-active-branch::before {
    background: var(--pwm-menu-rail);
}

.pwm-nav-row.is-current .pwm-nav-row-chevron,
.pwm-nav-row.is-active-branch .pwm-nav-row-chevron {
    background: var(--pwm-menu-surface);
    color: var(--pwm-menu-accent);
}

/* Contact and social, at the foot of the root panel only. Call, directions and
   the staff directory are the three things residents open a township menu for,
   so they are cards rather than another run of link rows. */
.pwm-drawer-connect {
    padding: 22px 20px 28px;
    background: var(--pwm-menu-tint);
    border-top: 1px solid var(--pwm-menu-line);
}

.pwm-drawer-connect-title {
    margin: 0 0 10px;
    color: var(--pwm-menu-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pwm-drawer-connect-list {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.pwm-drawer-connect-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--pwm-menu-line);
    border-radius: 12px;
    background: var(--pwm-menu-surface);
    color: var(--pwm-menu-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.pwm-drawer-connect-list a:hover,
.pwm-drawer-connect-list a:focus-visible {
    border-color: var(--pwm-menu-accent);
    color: var(--pwm-menu-accent);
}

.pwm-drawer-connect-list a:active {
    background: var(--pwm-menu-press);
}

.pwm-drawer-connect-list a:focus-visible {
    outline: 2px solid var(--pwm-focus, var(--pwm-menu-accent));
    outline-offset: 2px;
}

.pwm-drawer-connect-list i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pwm-menu-tint);
    color: var(--pwm-menu-accent);
    font-size: 14px;
}

/* Say what the tap does, then the value â€” a phone number alone does not tell
   a visitor whether they are about to dial or land on a contact page. */
.pwm-drawer-connect-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.pwm-drawer-connect-eyebrow {
    color: var(--pwm-menu-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pwm-drawer-connect-value {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.pwm-drawer-social {
    display: flex;
    gap: 10px;
}

.pwm-drawer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--pwm-menu-line);
    border-radius: 50%;
    background: var(--pwm-menu-surface);
}

.pwm-drawer-social a:hover,
.pwm-drawer-social a:focus-visible {
    border-color: var(--pwm-menu-accent);
}

.pwm-drawer-social a:focus-visible {
    outline: 2px solid var(--pwm-focus, var(--pwm-menu-accent));
    outline-offset: 2px;
}

.pwm-drawer-social img {
    width: 22px;
    height: 22px;
}

/* Persistent actions */
.pwm-drawer-foot {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 12px 16px 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--pwm-menu-surface);
    border-top: 1px solid var(--pwm-menu-line);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
}

.pwm-drawer-action {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--pwm-menu-accent);
    border-radius: 999px;
    background: var(--pwm-menu-surface);
    color: var(--pwm-menu-accent);
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.pwm-drawer-action:active {
    background: var(--pwm-menu-press);
}

.pwm-drawer-action:focus-visible {
    outline: 2px solid var(--pwm-focus, var(--pwm-menu-accent));
    outline-offset: 2px;
}

.pwm-drawer-action.is-primary {
    border-color: var(--pwm-button-bkg, var(--pwm-menu-accent));
    background: var(--pwm-button-bkg, var(--pwm-menu-accent));
    color: var(--pwm-button-text, #ffffff);
}

.pwm-drawer-action.is-primary:active {
    background: var(--pwm-button-hover, var(--pwm-menu-accent));
}

/* The global reduce-motion rule shortens durations but leaves delays intact */
@media (prefers-reduced-motion: reduce) {
    .pwm-drawer,
    .pwm-drawer-scrim,
    .pwm-drawer-panel,
    .pwm-drawer-panel.is-current {
        transition-delay: 0s !important;
    }
}

/* --------------------------------------------------------------------------
   Combined mast (< 1200px)

   White identity row: town lockup on the left, search and menu on the right.
   The language strip stays off at these sizes. Translate is in the menu
   drawer. Horizontal nav starts at 1200px, with items sized to their labels.
   -------------------------------------------------------------------------- */

@media (min-width: 1200px) {
    .pwm-mast { display: none; }
}

@media (max-width: 1199px) {
    .pwm-home-mast {
        display: none !important;
    }

    .site-header #main-menu-container,
    #main-menu-container {
        background-color: var(--pwm-menu-surface, #ffffff);
        min-height: 0;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    }

    .main-nav {
        display: none;
    }

    .pwm-mast-utility {
        display: none;
    }

    .pwm-mast-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 76px;
        padding: 10px 12px 10px 16px;
        background: var(--pwm-menu-surface, #ffffff);
        border-bottom: 1px solid var(--pwm-menu-line);
    }

    .pwm-mast-logo {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        line-height: 0;
    }

    .pwm-mast-logo img {
        display: block;
        width: auto;
        height: 64px;
        max-width: 100%;
        object-fit: contain;
        object-position: left center;
    }

    .pwm-mast-tools {
        flex: 0 0 auto;
        display: flex;
        align-items: stretch;
        overflow: hidden;
        border: 1px solid var(--pwm-menu-line);
        border-radius: 999px;
        background: var(--pwm-menu-surface, #ffffff);
    }

    .pwm-mast-search,
    .pwm-mast-menu.main-menu-btn {
        display: inline-flex;
        position: relative;
        top: auto;
        left: auto;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--pwm-menu-accent);
        font-size: 16px;
        overflow: visible;
        text-indent: 0;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
    }

    .pwm-mast-search {
        border-right: 1px solid var(--pwm-menu-line);
    }

    .pwm-mast-search:hover,
    .pwm-mast-search:active,
    .pwm-mast-menu.main-menu-btn:hover,
    .pwm-mast-menu.main-menu-btn:active {
        background: var(--pwm-menu-tint);
    }

    .pwm-mast-search:focus-visible,
    .pwm-mast-menu.main-menu-btn:focus-visible {
        outline: 2px solid var(--pwm-focus, var(--pwm-menu-accent));
        outline-offset: -3px;
    }

    /* default.css centres the icon span with position:absolute. Anchor the
       three bars to the span so they cannot drift out of the capsule. */
    .pwm-mast-menu .main-menu-btn-icon {
        position: relative;
        top: auto;
        left: auto;
        flex: 0 0 auto;
        width: 18px;
        height: 2px;
        border-radius: 1px;
        background: currentColor;
    }

    .pwm-mast-menu .main-menu-btn-icon::before,
    .pwm-mast-menu .main-menu-btn-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 18px;
        height: 2px;
        border-radius: 1px;
        background: currentColor;
    }

    .pwm-mast-menu .main-menu-btn-icon::before { top: -6px; }
    .pwm-mast-menu .main-menu-btn-icon::after { top: 6px; }

    .pwm-mast-menu[aria-expanded="true"] .main-menu-btn-icon {
        height: 0;
        background: transparent;
    }

    .pwm-mast-menu[aria-expanded="true"] .main-menu-btn-icon::before,
    .pwm-mast-menu[aria-expanded="true"] .main-menu-btn-icon::after {
        top: 0;
    }

    .pwm-mast-menu[aria-expanded="true"] .main-menu-btn-icon::before {
        transform: rotate(-45deg);
    }

    .pwm-mast-menu[aria-expanded="true"] .main-menu-btn-icon::after {
        transform: rotate(45deg);
    }
}

/* ==========================================================================
   Mobile sidebar dock â€” interior pages under 768px
   The sidebar stacks below the article on phones, so Contact and Forms end up
   thousands of pixels down the page. Here the aside becomes a bottom sheet and
   a fixed bar opens one section at a time. The bar borrows the masthead's
   dark-band-and-accent pairing and the rail's uppercase micro-label so it reads
   as part of the site frame; the accent runs through --pwm-dock-icon so a town
   palette cannot drop the icons below the contrast floor.
   pwmSidebarDock() adds .pwm-sheet and .pwm-dock-on, so with JS off the aside
   stays an ordinary block.
   Z-order: bar 1120 (above the open sheet so sections stay switchable),
   sheet 1111, scrim 1110, all under the nav drawer and the quick links rail.
   ========================================================================== */

/* The header is injected into the aside and stays there. It must not show up
   in the desktop rail after a visitor rotates a tablet or resizes. */
.pwm-sheet-head {
    display: none;
}

/* Belt and braces: x-show already hides the dock above the breakpoint. */
@media (min-width: 768px) {
    .pwm-dock {
        display: none;
    }
}

@media (max-width: 767.98px) {
    :root {
        /* Matches the 56px button target in _pwm-a11y.css. */
        --pwm-dock-h: 56px;

        /* Dock icons are graphics on the nav band (1.4.11, 3:1) and the active
           micro-label is 11px text (1.4.3, 4.5:1). A town tunes
           --pwm-secondary-bright against the white sidebar, so its contrast on
           a dark --pwm-nav-bkg is luck â€” a bright accent clears 5:1 while a
           deeper shade of the same hue can sit near 1.8:1. Default to
           --pwm-nav-link, the one foreground the town already guarantees
           against the bar. */
        --pwm-dock-icon: var(--pwm-nav-link);

        /* The active button darkens the bar instead of lightening it, so the
           icon and label gain contrast when a section is open rather than
           losing it. Black at 28% works on any bar color. */
        --pwm-dock-active-bkg: rgba(0, 0, 0, 0.28);
    }

    /* Where relative color is available, keep the town's accent hue and chroma
       and only raise its lightness to a legible floor. An accent already at or
       above 0.82 is passed through untouched, so a town whose dock reads
       correctly today does not shift; a dark accent is lifted into range
       instead of being swapped for a different color. A town that still needs
       a different icon color overrides --pwm-dock-icon in _pwm-theme.css. */
    @supports (color: oklch(from white max(l, 0.82) c h)) {
        :root {
            --pwm-dock-icon: oklch(from var(--pwm-secondary-bright) max(l, 0.82) c h);
        }
    }

    /* Accent hue carries no meaning here, so drop to the guaranteed foreground. */
    @media (prefers-contrast: more) {
        .pwm-dock {
            --pwm-dock-icon: var(--pwm-nav-link);
            --pwm-dock-active-bkg: rgba(0, 0, 0, 0.5);
        }
    }

    body.pwm-dock-on {
        padding-bottom: calc(var(--pwm-dock-h) + env(safe-area-inset-bottom, 0px));
    }

    .pwm-dock-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1120;
        display: flex;
        align-items: stretch;
        background: var(--pwm-nav-bkg);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.28);
    }

    .pwm-dock-btn {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--pwm-nav-link);
        cursor: pointer;
    }

    .pwm-dock-btn > i,
    .pwm-dock-btn > .svg-inline--fa {
        font-size: 1.375rem;
        line-height: 1;
        color: var(--pwm-dock-icon);
    }

    .pwm-dock-label {
        max-width: 100%;
        overflow: hidden;
        font-size: 0.6875rem;
        font-weight: var(--pwm-weight-ui);
        line-height: 1.2;
        letter-spacing: 0.06em;
        text-align: center;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .pwm-dock-btn.is-active {
        background: var(--pwm-dock-active-bkg);
        box-shadow: inset 0 3px 0 0 var(--pwm-dock-icon);
    }

    .pwm-dock-btn.is-active .pwm-dock-label {
        color: var(--pwm-dock-icon);
    }

    .pwm-dock-btn:focus-visible {
        outline: 2px solid var(--pwm-dock-icon);
        outline-offset: -3px;
    }

    .pwm-dock-scrim {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1110;
        background: rgba(0, 0, 0, 0.45);
    }

    /* Guard rail for a town that grows past four sections. */
    .pwm-dock-overflow {
        position: fixed;
        right: 8px;
        bottom: calc(var(--pwm-dock-h) + 8px + env(safe-area-inset-bottom, 0px));
        left: 8px;
        z-index: 1121;
        display: flex;
        flex-direction: column;
        background: var(--pwm-nav-bkg);
        border: 1px solid var(--pwm-dock-icon);
        border-radius: var(--pwm-radius, 6px);
        overflow: hidden;
    }

    .pwm-dock-overflow-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 10px 14px;
        border: 0;
        background: transparent;
        color: var(--pwm-nav-link);
        font-size: 0.9375rem;
        font-weight: var(--pwm-weight-ui);
        text-align: left;
        cursor: pointer;
    }

    .pwm-dock-overflow-btn + .pwm-dock-overflow-btn {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .pwm-dock-overflow-btn > i,
    .pwm-dock-overflow-btn > .svg-inline--fa {
        flex: 0 0 1.25em;
        color: var(--pwm-dock-icon);
        text-align: center;
    }

    /* The aside is the sheet. Nothing is cloned, so every widget keeps the
       data it fetched and any accordion the visitor already opened. */
    aside.sidebar.pwm-sheet {
        position: fixed;
        right: 0;
        bottom: calc(var(--pwm-dock-h) + env(safe-area-inset-bottom, 0px));
        left: 0;
        z-index: 1111;
        display: flex;
        flex-direction: column;
        width: auto;
        max-width: none;
        max-height: 72vh;
        margin: 0;
        padding: 0;
        background: #fff;
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 180ms ease-out, visibility 0s linear 180ms;
    }

    aside.sidebar.pwm-sheet.is-open {
        transform: none;
        visibility: visible;
        transition: transform 180ms ease-out, visibility 0s;
    }

    /* Finger-tracking sets an inline translateY. Drop the open/close ease
       while that value is live so the sheet stays under the pointer. */
    aside.sidebar.pwm-sheet.is-dragging {
        transition: none;
    }

    /* Grabber on top, then a short title row. The whole head is the drag
       surface; the close button stays the single-pointer way to dismiss. */
    aside.sidebar.pwm-sheet > .pwm-sheet-head {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 8px 0 16px;
        border-bottom: 3px solid var(--pwm-sidebar-line);
        touch-action: none;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
    }

    aside.sidebar.pwm-sheet.is-dragging > .pwm-sheet-head {
        cursor: grabbing;
    }

    .pwm-sheet-grab {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 16px;
        margin: 0 0 2px;
    }

    /* 4px pill on white. #8a8a8a clears 3:1 so the handle reads as a control. */
    .pwm-sheet-grab::before {
        content: "";
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: #8a8a8a;
    }

    .pwm-sheet-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
    }

    /* #main-content h2 is 32px with a 1em bottom margin. That rule wins on
       specificity and was shoving the title off the close icon. */
    #main-content .pwm-sheet-head .pwm-sheet-title,
    .pwm-sheet-head .pwm-sheet-title {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        font-size: 0.875rem;
        font-weight: var(--pwm-weight-bold);
        line-height: 1.2;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--pwm-sidebar-title);
    }

    .pwm-sheet-close {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid #e2e2e2;
        border-radius: 999px;
        background: #fff;
        color: var(--pwm-text);
        font-size: 0.9375rem;
        line-height: 1;
        cursor: pointer;
    }

    .pwm-sheet-close:focus-visible {
        outline: 2px solid var(--pwm-focus, var(--pwm-sidebar-title));
        outline-offset: 2px;
    }

    .pwm-sheet-dupe-title {
        display: none !important;
    }

    aside.sidebar.pwm-sheet > section.sb-section {
        display: none;
    }

    aside.sidebar.pwm-sheet > section.sb-section.is-active {
        display: block;
        flex: 1 1 auto;
        width: 100%;
        margin: 0;
        padding: 16px 18px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* .row gutters would push the content past the sheet edges. */
    aside.sidebar.pwm-sheet > section.sb-section.is-active > [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

    /* The sheet already frames the section. These cards' gray top edge and
       inner padding only nest a second box around the rows. */
    aside.sidebar.pwm-sheet .dept-contact,
    aside.sidebar.pwm-sheet .pwm-forms-widget,
    aside.sidebar.pwm-sheet .pwm-budgets-widget,
    aside.sidebar.pwm-sheet .pwm-archives-widget,
    aside.sidebar.pwm-sheet .sidebar-resources > [class*="col-"],
    aside.sidebar.pwm-sheet .sb-section > [class*="col-"]:has(> .title-sidebar),
    aside.sidebar.pwm-sheet .buttons-resources .ql-group {
        padding: 0;
        border-top: 0 !important;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
}

/* --------------------------------------------------------------------------
   Translate picker â€” flag + code trigger, searchable listbox, Google host
   -------------------------------------------------------------------------- */

.pwm-translate {
    position: relative;
    display: inline-flex;
    z-index: 6;
}

.pwm-translate.is-open {
    z-index: 1300;
}

.pwm-translate-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 12px 4px 6px;
    margin: 0;
    border: 1px solid var(--pwm-translate-border, #d9d9d9);
    border-radius: 999px;
    background: var(--pwm-translate-bkg, #ffffff);
    color: var(--pwm-translate-text, #000000);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.pwm-translate-trigger:hover {
    filter: brightness(0.97);
}

.pwm-translate-flagwrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.pwm-translate-flag {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.pwm-translate-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pwm-translate-row-hover, #f4f6f8);
    color: var(--pwm-translate-text, #000);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0;
}

.pwm-translate-code {
    min-width: 2.2em;
}

.pwm-translate-caret {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 150ms ease;
}

.pwm-translate.is-open .pwm-translate-caret {
    transform: rotate(180deg);
}

.pwm-translate--bar .pwm-translate-trigger {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--pwm-nav-link, #ffffff);
}

.pwm-translate--bar .pwm-translate-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    filter: none;
}

.pwm-translate--bar .pwm-translate-trigger:focus-visible {
    outline: 2px solid var(--pwm-nav-link, #ffffff);
    outline-offset: 2px;
}

.pwm-translate--bar .pwm-translate-flag {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.pwm-translate--bar .pwm-translate-mono {
    background: rgba(255, 255, 255, 0.18);
    color: var(--pwm-nav-link, #ffffff);
}

.pwm-translate--pill .pwm-translate-trigger {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.pwm-translate--footer .pwm-translate-trigger {
    gap: 4px;
    min-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--pwm-footer-link, #ffffff);
    letter-spacing: 0.02em;
}

.pwm-translate--footer .pwm-translate-trigger:hover {
    background: transparent;
    filter: none;
    opacity: 0.75;
}

.pwm-translate--footer .pwm-translate-mono {
    background: rgba(255, 255, 255, 0.16);
    color: var(--pwm-footer-link, #ffffff);
}

.pwm-translate-scrim {
    display: none;
}

.pwm-translate-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    max-height: min(60vh, 480px);
    border: 1px solid var(--pwm-translate-border, #d9d9d9);
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-translate-panel-bkg, #ffffff);
    box-shadow: var(--pwm-shadow, 0 8px 28px rgba(12, 25, 38, 0.12));
    color: var(--pwm-text, #333);
    overflow: hidden;
}

.pwm-translate--footer .pwm-translate-panel {
    top: auto;
    bottom: calc(100% + 8px);
}

.pwm-translate-handle {
    display: none;
}

.pwm-translate-search {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--pwm-translate-border, #d9d9d9);
    background: var(--pwm-translate-panel-bkg, #ffffff);
}

.pwm-translate-search > .fa-magnifying-glass,
.pwm-translate-search > .svg-inline--fa {
    flex: 0 0 auto;
    color: var(--pwm-text-muted, #595959);
    font-size: 13px;
}

.pwm-translate-q {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 36px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--pwm-text, #333);
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.pwm-translate-q::placeholder {
    color: var(--pwm-text-muted, #595959);
}

.pwm-translate-listwrap {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pwm-translate-list {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.pwm-translate-group {
    padding: 8px 14px 4px;
    color: var(--pwm-text-muted, #595959);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pwm-translate-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 14px;
    cursor: pointer;
}

.pwm-translate-option:hover,
.pwm-translate-option.is-active {
    background: var(--pwm-translate-row-hover, #f4f6f8);
}

.pwm-translate-option.is-current .pwm-translate-en {
    font-weight: 700;
    color: var(--pwm-translate-active, var(--pwm-primary, #1e3a5f));
}

.pwm-translate-names {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1 1 auto;
    min-width: 0;
}

.pwm-translate-en {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pwm-text, #333);
}

.pwm-translate-native {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--pwm-text-muted, #595959);
}

.pwm-translate-chip {
    flex: 0 0 auto;
    color: var(--pwm-text-muted, #595959);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pwm-translate-empty {
    padding: 16px 14px;
    color: var(--pwm-text-muted, #595959);
    font-size: 14px;
}

.pwm-translate-more {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0;
    padding: 8px 14px;
    border: 0;
    border-top: 1px solid var(--pwm-translate-border, #d9d9d9);
    background: var(--pwm-translate-panel-bkg, #ffffff);
    color: var(--pwm-translate-active, var(--pwm-primary, #1e3a5f));
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.pwm-translate-more:hover {
    background: var(--pwm-translate-row-hover, #f4f6f8);
}

.pwm-home-mast {
    position: relative;
}

.pwm-home-mast-tools {
    position: absolute;
    right: 0;
    top: 8px;
    z-index: 6;
}

/* The list is position:absolute inside this box. Raising .pwm-translate
   alone cannot clear #main-menu-container (z-index 1100), because this
   box is the stacking context. Lift it only while the picker is open. */
.pwm-home-mast-tools:has(.pwm-translate.is-open) {
    z-index: 1300;
}

.pwm-interior-mast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pwm-interior-heading {
    min-width: 0;
}

footer #translate-btn-footer {
    text-align: right;
}

@media (max-width: 767px) {
    footer #translate-btn-footer {
        display: flex;
        justify-content: center;
        text-align: center;
        margin-top: 12px;
    }
}

@media (max-width: 1199px) {
    .pwm-translate--pill {
        display: none;
    }
}

@media (max-width: 767px) {
    .pwm-translate-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1290;
        background: rgba(12, 25, 38, 0.45);
    }

    .pwm-translate-panel {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-width: none;
        max-height: min(80vh, 560px);
        border-radius: 16px 16px 0 0;
        z-index: 1300;
    }

    .pwm-translate--footer .pwm-translate-panel {
        bottom: 0;
    }

    .pwm-translate-handle {
        display: block;
        width: 40px;
        height: 4px;
        margin: 10px auto 0;
        border-radius: 999px;
        background: #d0d4d8;
    }
}

.pwm-translate-host {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html.translated-ltr body,
html.translated-rtl body {
    top: 0 !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
body > .skiptranslate,
#goog-gt-tt,
.goog-tooltip,
.goog-te-balloon-frame,
.goog-logo-link,
.goog-te-gadget {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Public forms â€” HDS Fieldset (https://hds.hel.fi/components/fieldset/)

   Related inputs sit in a <fieldset> under a <legend>, one field per row.
   State lives on the .pwm-field wrapper so the label, control, and message
   move together. Error and success carry an icon as well as a color, so the
   states still read under forced-colors and pass 1.4.1. Nothing here sets a
   brand hex; buttons and page layout belong to the page that uses the kit.
   -------------------------------------------------------------------------- */

.pwm-form {
    --pwm-field-border-w: 2px;
    --pwm-field-height: 48px;
    --pwm-field-radius: 6px;
    max-width: var(--pwm-measure, 65ch);
}

/* A fieldset's default min-inline-size is min-content, which lets a long
   option or a wide reCAPTCHA push the whole column sideways. */
.pwm-fieldset {
    min-width: 0;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.pwm-fieldset:last-of-type {
    margin-bottom: 20px;
}

.pwm-fieldset-legend {
    float: none;
    width: 100%;
    margin-bottom: 4px;
    padding: 0;
    color: var(--pwm-title, var(--pwm-primary, #1e3a5f));
    font-size: 1.0625rem;
    font-weight: var(--pwm-weight-bold, 700);
    line-height: var(--pwm-line-heading, 1.25);
}

.pwm-fieldset-hint {
    margin: 0 0 16px;
    color: var(--pwm-field-hint, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
    line-height: 1.45;
}

.pwm-field {
    margin-bottom: 20px;
}

.pwm-field:last-child {
    margin-bottom: 0;
}

.pwm-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--pwm-text, #333333);
    font-size: var(--pwm-font-body, 0.9375rem);
    font-weight: var(--pwm-weight-ui, 600);
    line-height: var(--pwm-line-heading, 1.25);
}

.pwm-field-req {
    color: var(--pwm-error, #b01038);
}

.pwm-field-hint {
    display: block;
    margin: -2px 0 6px;
    color: var(--pwm-field-hint, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
    font-weight: var(--pwm-weight-normal, 400);
    line-height: 1.45;
}

.pwm-input,
.pwm-select,
.pwm-textarea {
    display: block;
    width: 100%;
    min-height: var(--pwm-field-height, 48px);
    padding: 10px 12px;
    border: var(--pwm-field-border-w, 2px) solid var(--pwm-field-border, #808080);
    border-radius: var(--pwm-field-radius, 6px);
    background: var(--pwm-field-bkg, #ffffff);
    color: var(--pwm-field-text, #1a1a1a);
    font-family: inherit;
    font-size: var(--pwm-font-body, 0.9375rem);
    line-height: var(--pwm-line-body, 1.5);
}

.pwm-textarea {
    min-height: 148px;
    resize: vertical;
}

.pwm-input::placeholder,
.pwm-textarea::placeholder {
    color: var(--pwm-field-hint, #595959);
}

/* The ring itself comes from the global :focus-visible rule in _pwm-a11y.css;
   the border darkens so the field still reads as active on a mouse click. */
.pwm-input:focus,
.pwm-select:focus,
.pwm-textarea:focus {
    border-color: var(--pwm-focus, #1e3a5f);
}

.pwm-field.is-invalid .pwm-input,
.pwm-field.is-invalid .pwm-select,
.pwm-field.is-invalid .pwm-textarea {
    border-color: var(--pwm-error, #b01038);
}

.pwm-field-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 0;
    color: var(--pwm-error, #b01038);
    font-size: var(--pwm-font-small, 0.875rem);
    font-weight: var(--pwm-weight-ui, 600);
    line-height: 1.45;
}

.pwm-field-count {
    display: block;
    margin-top: 6px;
    color: var(--pwm-field-hint, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
    text-align: right;
}

.pwm-field-count.is-over {
    color: var(--pwm-error, #b01038);
    font-weight: var(--pwm-weight-ui, 600);
}

/* Status icons are masks, not markup â€” the wording next to them already
   carries the meaning, so losing them under forced-colors costs nothing. */
.pwm-field-error::before,
.pwm-form-summary-title::before,
.pwm-form-alert-title::before,
.pwm-form-done-title::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background: currentColor;
    -webkit-mask: var(--pwm-form-mask) center / contain no-repeat;
    mask: var(--pwm-form-mask) center / contain no-repeat;
}

.pwm-field-error,
.pwm-form-summary-title,
.pwm-form-alert-title {
    --pwm-form-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-7h-2v5h2V9z'/%3E%3C/svg%3E");
}

.pwm-form-done-title {
    --pwm-form-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.5-4.2-4.2 1.7-1.7 2.5 2.5 5.8-5.8 1.7 1.7-7.5 7.5z'/%3E%3C/svg%3E");
}

/* Safety copy sits above the form because it decides whether the visitor
   should be using the form at all. */
.pwm-form-note {
    margin: 0 0 24px;
    padding: 12px 16px;
    border-left: 8px solid var(--pwm-secondary, #c4a35a);
    border-radius: var(--pwm-field-radius, 6px);
    background: var(--pwm-notice-bkg, #eeeeee);
    color: var(--pwm-text, #333333);
    font-size: var(--pwm-font-small, 0.875rem);
    line-height: 1.5;
}

/* Summary of everything that failed, so a visitor on a phone does not have to
   hunt the column for the one red field. Rows focus their control. */
.pwm-form-summary,
.pwm-form-alert {
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid var(--pwm-error, #b01038);
    border-left-width: 8px;
    border-radius: var(--pwm-field-radius, 6px);
    background: var(--pwm-error-bkg, #f6e2e6);
    color: var(--pwm-text, #333333);
}

.pwm-form-summary-title,
.pwm-form-alert-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--pwm-error, #b01038);
    font-size: 1rem;
    font-weight: var(--pwm-weight-bold, 700);
    line-height: var(--pwm-line-heading, 1.25);
}

.pwm-form-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pwm-form-summary-list li + li {
    margin-top: 4px;
}

.pwm-form-summary-link {
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--pwm-error, #b01038);
    font: inherit;
    font-size: var(--pwm-font-small, 0.875rem);
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.pwm-form-alert-body,
.pwm-form-alert-hint {
    margin: 0;
    font-size: var(--pwm-font-small, 0.875rem);
    line-height: 1.5;
}

.pwm-form-alert-hint {
    margin-top: 6px;
    color: var(--pwm-field-hint, #595959);
}

.pwm-form-captcha {
    display: inline-block;
}

.pwm-form-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pwm-form-spin 700ms linear infinite;
}

@keyframes pwm-form-spin {
    to { transform: rotate(360deg); }
}

/* Sent state. The panel replaces the form rather than sitting above it, so
   there is no stale set of fields to re-submit, and it takes focus. */
.pwm-form-done {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--pwm-success, #007a64);
    border-left-width: 8px;
    border-radius: var(--pwm-field-radius, 6px);
    background: var(--pwm-success-bkg, #e2f5f3);
}

.pwm-form-done:focus {
    outline: none;
}

.pwm-form-done-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--pwm-success, #007a64);
    font-size: 1.25rem;
    font-weight: var(--pwm-weight-bold, 700);
    line-height: var(--pwm-line-heading, 1.25);
}

.pwm-form-done-title::before {
    width: 24px;
    height: 24px;
    margin-top: 1px;
}

.pwm-form-done p {
    margin: 0 0 10px;
    line-height: var(--pwm-line-body, 1.5);
}

.pwm-form-done-note {
    color: var(--pwm-field-hint, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
}

.pwm-form-again {
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 18px;
    border: 2px solid var(--pwm-success, #007a64);
    border-radius: var(--pwm-field-radius, 6px);
    background: transparent;
    color: var(--pwm-success, #007a64);
    font: inherit;
    font-weight: var(--pwm-weight-ui, 600);
    cursor: pointer;
}

.pwm-form-again:hover {
    background: var(--pwm-success, #007a64);
    color: var(--pwm-white, #ffffff);
}

/* 2.5.8 Target Size â€” the controls already clear 44px via --pwm-field-height */
.pwm-form-summary-link {
    min-height: 44px;
}

@media (forced-colors: active) {
    .pwm-input,
    .pwm-select,
    .pwm-textarea {
        border-color: ButtonBorder;
    }

    .pwm-field.is-invalid .pwm-input,
    .pwm-field.is-invalid .pwm-select,
    .pwm-field.is-invalid .pwm-textarea {
        border-style: dashed;
    }
}

/* --------------------------------------------------------------------------
   Contact Us — shared layout for Views/ContactUs.

   Intro and emergency line, then the form card beside the town card: map,
   name plate, phone, hours, directory. Colors are tokens only, so each
   town's plate carries its own --pwm-primary. White on --pwm-primary has to
   pass 4.5:1; it does wherever --pwm-title is the primary, because that
   pair already has to pass on white.
   -------------------------------------------------------------------------- */
.pwm-contact {
    --pwm-contact-line: color-mix(in srgb, var(--pwm-primary, #1e3a5f) 16%, #d4d4d4);
    --pwm-contact-tint: color-mix(in srgb, var(--pwm-primary, #1e3a5f) 7%, #ffffff);
    padding-top: 32px;
    padding-bottom: 56px;
}

.pwm-contact-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 40px;
    margin-bottom: 28px;
}

.pwm-contact-lede {
    flex: 1 1 24rem;
    max-width: 54ch;
    margin: 0;
    color: var(--pwm-text, #333333);
    font-size: 1.0625rem;
    line-height: var(--pwm-line-body, 1.5);
}

.pwm-contact-emergency {
    display: flex;
    flex: 0 1 26rem;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 16px 10px 10px;
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-notice-bkg, #eeeeee);
    color: var(--pwm-text, #333333);
    font-size: var(--pwm-font-small, 0.875rem);
    line-height: 1.45;
}

.pwm-contact-emergency strong {
    color: var(--pwm-error, #b01038);
}

/* The transparent borders on the icon tiles, step numbers, and chips turn
   into visible outlines under forced colors, where their fills drop out. */
.pwm-contact-emergency-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: var(--pwm-error, #b01038);
    color: var(--pwm-white, #ffffff);
}

.pwm-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px;
    align-items: start;
}

.pwm-contact-card,
.pwm-contact-place {
    border: 1px solid var(--pwm-contact-line);
    border-radius: var(--pwm-radius-lg, 14px);
    background: var(--pwm-white, #ffffff);
}

.pwm-contact-card {
    padding: clamp(20px, 2.6vw, 36px);
}

.pwm-contact-card-head {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pwm-contact-line);
}

/* default.css sets every .main-content h2 and h3 to 32px. */
.pwm-contact .pwm-contact-card-title {
    margin: 0 0 6px;
    color: var(--pwm-title, var(--pwm-primary, #1e3a5f));
    font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.625rem);
    font-weight: var(--pwm-weight-bold, 700);
    letter-spacing: -0.01em;
    line-height: var(--pwm-line-heading, 1.25);
}

.pwm-contact-card-note {
    margin: 0;
    color: var(--pwm-text-muted, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
}

.pwm-contact .pwm-form-summary-title,
.pwm-contact .pwm-form-alert-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: var(--pwm-weight-bold, 700);
}

.pwm-contact .pwm-form-done {
    margin-top: 0;
}

.pwm-contact .pwm-form-done-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: var(--pwm-weight-bold, 700);
}

/* Fieldsets are numbered because they are filled in order. The counter
   follows whichever fieldsets render, so an optional Security check simply
   becomes step 3 or disappears. */
.pwm-contact .pwm-form {
    --pwm-field-border-w: 1px;
    max-width: none;
    counter-reset: pwm-contact-step;
}

.pwm-contact .pwm-fieldset {
    counter-increment: pwm-contact-step;
}

.pwm-contact .pwm-fieldset + .pwm-fieldset {
    padding-top: 24px;
    border-top: 1px solid var(--pwm-contact-line);
}

.pwm-contact .pwm-fieldset-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 1.125rem;
}

.pwm-contact .pwm-fieldset-legend::before {
    content: counter(pwm-contact-step);
    content: counter(pwm-contact-step) / "";
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: var(--pwm-primary, #1e3a5f);
    color: var(--pwm-white, #ffffff);
    font-size: 0.8125rem;
    font-weight: var(--pwm-weight-bold, 700);
    line-height: 1;
}

.pwm-contact .pwm-field.is-invalid .pwm-input,
.pwm-contact .pwm-field.is-invalid .pwm-select,
.pwm-contact .pwm-field.is-invalid .pwm-textarea {
    box-shadow: inset 0 0 0 1px var(--pwm-error, #b01038);
}

.pwm-contact .pwm-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23595959' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 18px;
    -webkit-appearance: none;
    appearance: none;
}

.pwm-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 12rem;
    min-height: 48px;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-primary, #1e3a5f);
    color: var(--pwm-button-text, #ffffff);
    font: inherit;
    font-weight: var(--pwm-weight-bold, 700);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

/* The label span must keep the button text token. A broader span rule
   can otherwise paint body text onto the filled button (1.4.3). */
.pwm-contact .pwm-contact-submit span {
    color: var(--pwm-button-text, #ffffff);
}

.pwm-contact-submit:hover,
.pwm-contact-submit:focus-visible {
    background: color-mix(in srgb, var(--pwm-primary, #1e3a5f) 82%, #000);
}

.pwm-contact-submit:active {
    background: color-mix(in srgb, var(--pwm-primary, #1e3a5f) 70%, #000);
}

.pwm-contact-submit:disabled {
    cursor: progress;
}

.pwm-contact-place {
    overflow: hidden;
}

.pwm-contact-map {
    width: 100%;
    aspect-ratio: 16 / 10;
    /* max-height + aspect-ratio shrinks width to keep the ratio; keep full card width */
    background: var(--pwm-contact-tint);
}

.pwm-contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.pwm-contact-plate {
    padding: 22px 24px 24px;
    background: var(--pwm-primary, #1e3a5f);
    color: var(--pwm-white, #ffffff);
}

.pwm-contact .pwm-contact-plate-title {
    margin: 0;
    color: inherit;
    font-size: 1.3125rem;
    font-weight: var(--pwm-weight-bold, 700);
    letter-spacing: -0.01em;
    line-height: var(--pwm-line-heading, 1.25);
    text-wrap: balance;
}

.pwm-contact-plate-address {
    margin: 8px 0 16px;
    font-style: normal;
    line-height: var(--pwm-line-body, 1.5);
}

.pwm-contact .pwm-contact-plate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--pwm-white, #ffffff);
    color: var(--pwm-primary, #1e3a5f);
    font-weight: var(--pwm-weight-ui, 600);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.pwm-contact .pwm-contact-plate-link:hover,
.pwm-contact .pwm-contact-plate-link:focus-visible {
    background: var(--pwm-contact-tint);
    color: var(--pwm-primary, #1e3a5f);
}

.pwm-contact-facts {
    margin: 0;
    padding: 6px 24px 0;
    list-style: none;
}

.pwm-contact-facts li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.pwm-contact-facts li + li {
    border-top: 1px solid var(--pwm-contact-line);
}

.pwm-contact-fact-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-contact-tint);
    color: var(--pwm-primary, #1e3a5f);
}

.pwm-contact-fact-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pwm-contact-fact-label {
    color: var(--pwm-text-muted, #595959);
    font-size: 0.75rem;
    font-weight: var(--pwm-weight-bold, 700);
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.pwm-contact-fact-value {
    color: var(--pwm-text, #333333);
    font-weight: var(--pwm-weight-ui, 600);
    line-height: 1.45;
}

.pwm-contact a.pwm-contact-fact-value {
    color: var(--pwm-link, #1e5a8a);
    text-decoration: none;
}

.pwm-contact a.pwm-contact-fact-value:hover,
.pwm-contact a.pwm-contact-fact-value:focus-visible {
    color: var(--pwm-link-hover, #154266);
    text-decoration: underline;
}

.pwm-contact .pwm-contact-directory {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 16px 16px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-contact-tint);
    color: var(--pwm-text, #333333);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.pwm-contact .pwm-contact-plate + .pwm-contact-directory {
    margin-top: 16px;
}

.pwm-contact .pwm-contact-directory:hover,
.pwm-contact .pwm-contact-directory:focus-visible {
    background: color-mix(in srgb, var(--pwm-primary, #1e3a5f) 13%, #ffffff);
    color: var(--pwm-text, #333333);
}

.pwm-contact-directory .pwm-contact-fact-icon {
    background: var(--pwm-white, #ffffff);
}

.pwm-contact-directory-title {
    color: var(--pwm-title, var(--pwm-primary, #1e3a5f));
    font-weight: var(--pwm-weight-bold, 700);
    line-height: 1.3;
}

.pwm-contact-directory-note {
    color: var(--pwm-text-muted, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
    line-height: 1.4;
}

.pwm-contact-directory-arrow {
    margin-left: auto;
    color: var(--pwm-primary, #1e3a5f);
    transition: transform 0.15s ease;
}

.pwm-contact-directory:hover .pwm-contact-directory-arrow,
.pwm-contact-directory:focus-visible .pwm-contact-directory-arrow {
    transform: translateX(3px);
}

.pwm-contact-social {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px 18px;
    border-top: 1px solid var(--pwm-contact-line);
}

.pwm-contact-social ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pwm-contact .pwm-contact-social a {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pwm-contact-line);
    border-radius: 50%;
    background: var(--pwm-white, #ffffff);
    color: var(--pwm-primary, #1e3a5f);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pwm-contact .pwm-contact-social a:hover,
.pwm-contact .pwm-contact-social a:focus-visible {
    border-color: var(--pwm-primary, #1e3a5f);
    background: var(--pwm-primary, #1e3a5f);
    color: var(--pwm-white, #ffffff);
}

@media (min-width: 1200px) {
    .pwm-contact-grid {
        gap: 40px;
    }
}

/* Only where the whole card fits; a stuck card taller than the screen
   would hide its own directory link until the form ends. */
@media (min-width: 992px) and (min-height: 860px) {
    .pwm-contact-aside {
        position: sticky;
        top: 24px;
    }
}

@media (max-width: 991.98px) {
    .pwm-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .pwm-contact-emergency {
        flex-basis: 100%;
    }
}

@media (max-width: 575.98px) {
    .pwm-contact {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .pwm-contact-submit {
        width: 100%;
    }

    .pwm-contact-plate {
        padding: 20px;
    }

    .pwm-contact-facts,
    .pwm-contact-social {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (forced-colors: active) {
    .pwm-contact .pwm-select {
        padding-right: 12px;
        background-image: none;
        -webkit-appearance: auto;
        appearance: auto;
    }

    .pwm-contact-plate {
        border-bottom: 1px solid CanvasText;
    }
}

/* --------------------------------------------------------------------------
   Error pages (404 / 500) â€” shared chrome for Views/Errors
   -------------------------------------------------------------------------- */
.pwm-errorpage {
    padding: 40px 12px 56px;
}

.pwm-errorpage-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.pwm-errorpage-copy {
    flex: 1 1 420px;
    max-width: var(--pwm-measure, 65ch);
}

.pwm-errorpage-eyebrow {
    margin: 0 0 6px;
    color: var(--pwm-text-muted, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
    font-weight: var(--pwm-weight-ui, 600);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pwm-errorpage-title {
    margin: 0 0 12px;
    color: var(--pwm-title, #1e3a5f);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--pwm-weight-bold, 700);
    line-height: var(--pwm-line-heading, 1.25);
}

.pwm-errorpage-lede {
    margin: 0 0 14px;
    color: var(--pwm-text, #333333);
    line-height: var(--pwm-line-body, 1.5);
}

.pwm-errorpage-path {
    margin: 0 0 18px;
    color: var(--pwm-text-muted, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
    overflow-wrap: anywhere;
}

.pwm-errorpage-path code {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--pwm-notice-bkg, #eeeeee);
    color: inherit;
}

.pwm-errorpage-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.pwm-errorpage-search input[type="search"] {
    flex: 1 1 240px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--pwm-field-border, #808080);
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-field-bkg, #ffffff);
    color: var(--pwm-field-text, #1a1a1a);
    font: inherit;
}

.pwm-errorpage-search button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-button-bkg, #162c44);
    color: var(--pwm-button-text, #ffffff);
    font: inherit;
    font-weight: var(--pwm-weight-ui, 600);
    cursor: pointer;
}

.pwm-errorpage-search button:hover,
.pwm-errorpage-search button:focus-visible {
    background: var(--pwm-button-hover, #1a334f);
}

.pwm-errorpage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pwm-errorpage-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 22px;
    border: 2px solid var(--pwm-button-bkg, #162c44);
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-button-bkg, #162c44);
    color: var(--pwm-button-text, #ffffff);
    font-weight: var(--pwm-weight-ui, 600);
    text-decoration: none;
}

.pwm-errorpage-btn:hover,
.pwm-errorpage-btn:focus-visible {
    border-color: var(--pwm-button-hover, #1a334f);
    background: var(--pwm-button-hover, #1a334f);
    color: var(--pwm-button-text, #ffffff);
}

.pwm-errorpage-btn-ghost {
    background: transparent;
    color: var(--pwm-title, #1e3a5f);
}

.pwm-errorpage-art {
    flex: 0 1 380px;
}

.pwm-errorpage-art img {
    width: 100%;
    height: auto;
}

.pwm-errorpage-why,
.pwm-errorpage-destinations,
.pwm-errorpage-help {
    margin-bottom: 36px;
}

.pwm-errorpage-why h2,
.pwm-errorpage-destinations h2,
.pwm-errorpage-help h2 {
    margin: 0 0 12px;
    color: var(--pwm-title, #1e3a5f);
    font-size: 1.375rem;
    font-weight: var(--pwm-weight-bold, 700);
    line-height: var(--pwm-line-heading, 1.25);
}

.pwm-errorpage-why ul {
    margin: 0;
    padding-left: 20px;
    color: var(--pwm-text, #333333);
}

.pwm-errorpage-why li {
    margin: 4px 0;
    line-height: var(--pwm-line-body, 1.5);
}

.pwm-errorpage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pwm-errorpage-grid a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--pwm-translate-border, #d9d9d9);
    border-radius: var(--pwm-radius-lg, 14px);
    background: var(--pwm-white, #ffffff);
    color: var(--pwm-text, #333333);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pwm-errorpage-grid a:hover,
.pwm-errorpage-grid a:focus-visible {
    border-color: var(--pwm-primary, #1e3a5f);
    box-shadow: var(--pwm-shadow, 0 8px 28px rgba(12, 25, 38, 0.1));
    transform: translateY(-2px);
}

.pwm-errorpage-grid i {
    margin-bottom: 4px;
    color: var(--pwm-primary, #1e3a5f);
    font-size: 1.25rem;
}

.pwm-errorpage-card-label {
    color: var(--pwm-title, #1e3a5f);
    font-weight: var(--pwm-weight-ui, 600);
}

.pwm-errorpage-card-note {
    color: var(--pwm-text-muted, #595959);
    font-size: var(--pwm-font-small, 0.875rem);
    line-height: var(--pwm-line-body, 1.5);
}

.pwm-errorpage-help p {
    margin: 0 0 10px;
    color: var(--pwm-text, #333333);
}

.pwm-errorpage-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pwm-errorpage-contact li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.pwm-errorpage-contact i {
    color: var(--pwm-primary, #1e3a5f);
}

.pwm-errorpage-contact a {
    color: var(--pwm-link, #1e5a8a);
    font-weight: var(--pwm-weight-ui, 600);
}

.pwm-errorpage-contact a:hover,
.pwm-errorpage-contact a:focus-visible {
    color: var(--pwm-link-hover, #154266);
}

@media (max-width: 767.98px) {
    .pwm-errorpage {
        padding-top: 24px;
    }

    .pwm-errorpage-hero {
        flex-direction: column-reverse;
        gap: 20px;
        margin-bottom: 28px;
    }

    .pwm-errorpage-art {
        flex-basis: auto;
        max-width: 240px;
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwm-errorpage-grid a {
        transition: none;
    }

    .pwm-errorpage-grid a:hover,
    .pwm-errorpage-grid a:focus-visible {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Newsletter band — email signup between the home photo slider and the footer.

   Full-bleed on the footer background (--pwm-newsletter-bkg defaults to
   --pwm-footer-bkg). Headings use the footer title color; body, the label,
   and the note use the footer text color; Privacy and Terms use the footer
   link colors.

   The address field and Subscribe share one white slot, so Subscribe is
   judged against white: white on --pwm-newsletter-submit-bkg must pass 4.5:1
   (--pwm-secondary-bright does not).
   -------------------------------------------------------------------------- */
.pwm-newsletter {
    margin: 48px 0 0;
    padding: 56px 0 48px;
    border-bottom: 1px solid color-mix(in srgb, var(--pwm-newsletter-bkg, var(--pwm-footer-bkg, #102133)) 72%, #000);
    background: var(--pwm-newsletter-bkg, var(--pwm-footer-bkg, #102133));
    color: var(--pwm-footer-text, #ffffff);
}

.pwm-newsletter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
    gap: 28px 64px;
    align-items: center;
}

.pwm-newsletter-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--pwm-footer-title, var(--pwm-footer-text, #ffffff));
    font-size: 0.75rem;
    font-weight: var(--pwm-weight-bold, 700);
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pwm-newsletter-kicker i {
    font-size: 1rem;
    letter-spacing: 0;
}

.pwm-newsletter-title {
    max-width: 18ch;
    margin: 0;
    color: var(--pwm-footer-title, var(--pwm-footer-text, #ffffff));
    font-family: var(--pwm-font-sans);
    font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
    font-weight: var(--pwm-weight-bold, 700);
    letter-spacing: -0.015em;
    line-height: 1.1;
    text-transform: none;
    text-wrap: balance;
}

.pwm-newsletter-lede {
    max-width: 38ch;
    margin: 14px 0 0;
    color: var(--pwm-footer-text, #ffffff);
    font-size: 1.0625rem;
    line-height: var(--pwm-line-body, 1.5);
}

.pwm-newsletter-form {
    --pwm-field-height: 48px;
    position: relative;
    margin: 0;
}

.pwm-newsletter .pwm-field {
    margin-bottom: 0;
}

.pwm-newsletter .pwm-field-label {
    margin-bottom: 10px;
    color: var(--pwm-footer-text, #ffffff);
}

.pwm-newsletter-row {
    display: flex;
    align-items: stretch;
    gap: 4px;
    padding: 4px;
    border: 1px solid color-mix(in srgb, var(--pwm-primary, #1e3a5f) 16%, #d4d4d4);
    border-radius: var(--pwm-radius, 10px);
    background: var(--pwm-field-bkg, #ffffff);
}

.pwm-newsletter .pwm-field.is-invalid .pwm-newsletter-row {
    border-color: var(--pwm-error, #b01038);
}

.pwm-newsletter-row .pwm-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    border: 0;
    border-radius: calc(var(--pwm-radius, 10px) - 4px);
    background: transparent;
}

.pwm-newsletter .pwm-field-error {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: calc(var(--pwm-radius, 10px) - 4px);
    background: var(--pwm-error-bkg, #f6e2e6);
    color: var(--pwm-error, #b01038);
}

.pwm-newsletter-submit {
    flex: 0 0 auto;
    min-width: 8.5rem;
    min-height: var(--pwm-field-height, 48px);
    padding: 10px 22px;
    border: 0;
    border-radius: calc(var(--pwm-radius, 10px) - 4px);
    background: var(--pwm-newsletter-submit-bkg, var(--pwm-primary, #1e3a5f));
    color: var(--pwm-newsletter-submit-text, #ffffff);
    font: inherit;
    font-weight: var(--pwm-weight-bold, 700);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pwm-newsletter-submit:hover,
.pwm-newsletter-submit:focus-visible {
    background: color-mix(in srgb, var(--pwm-newsletter-submit-bkg, var(--pwm-primary, #1e3a5f)) 82%, #000);
    color: var(--pwm-newsletter-submit-text, #ffffff);
}

.pwm-newsletter-submit:active {
    background: color-mix(in srgb, var(--pwm-newsletter-submit-bkg, var(--pwm-primary, #1e3a5f)) 70%, #000);
}

.pwm-newsletter-status {
    margin: 12px 0 0;
    color: var(--pwm-footer-text, #ffffff);
    font-size: var(--pwm-font-small, 0.875rem);
    font-weight: var(--pwm-weight-ui, 600);
    line-height: 1.5;
}

.pwm-newsletter-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 14px 0 0;
    color: var(--pwm-footer-text, #ffffff);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.pwm-newsletter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-top: 4px;
}

.pwm-newsletter-note a {
    color: var(--pwm-footer-link, #ffffff);
    font-weight: var(--pwm-weight-ui, 600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pwm-newsletter-note a:hover,
.pwm-newsletter-note a:focus-visible {
    color: var(--pwm-footer-link-hover, var(--pwm-footer-link, #ffffff));
}

/* Mailchimp's spam trap. Off-canvas rather than display:none, which the
   service reads as a tampered form. */
.pwm-newsletter-trap {
    position: absolute;
    left: -5000px;
}

@media (max-width: 991.98px) {
    .pwm-newsletter {
        padding: 52px 0 44px;
    }

    .pwm-newsletter-panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pwm-newsletter-title,
    .pwm-newsletter-lede {
        max-width: none;
    }
}

@media (max-width: 479.98px) {
    .pwm-newsletter {
        padding: 44px 0 36px;
    }

    .pwm-newsletter-row {
        flex-direction: column;
    }

    .pwm-newsletter-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwm-newsletter-submit {
        transition: none;
    }
}

@media (forced-colors: active) {
    .pwm-newsletter-row,
    .pwm-newsletter .pwm-field-error {
        border: 1px solid CanvasText;
        box-shadow: none;
    }

    .pwm-newsletter-submit {
        border: 1px solid ButtonBorder;
        color: ButtonText;
        background: ButtonFace;
    }
}

/* Button links from the editor Styles menu. The class sits on the paragraph;
   the link inside is the button. These rules are not limited to .tab-content,
   so a page body, news article, or notice shows the same button. */
.main-content .article-btn a,
.main-content a.article-btn,
.article-body .article-btn a,
.article-body a.article-btn,
.page-body .article-btn a,
.page-body a.article-btn {
    display: inline-block;
    padding: 10px 16px;
    background-color: var(--pwm-button-bkg, var(--pwm-primary));
    color: var(--pwm-button-text, #fff);
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    line-height: 1.3;
}

.main-content .article-btn a:hover,
.main-content a.article-btn:hover,
.article-body .article-btn a:hover,
.article-body a.article-btn:hover,
.page-body .article-btn a:hover,
.page-body a.article-btn:hover {
    background-color: var(--pwm-primary-10, var(--pwm-button-bkg));
    color: var(--pwm-button-text, #fff);
    text-decoration: none;
}

.main-content .article-btn-full a,
.main-content a.article-btn-full,
.article-body .article-btn-full a,
.article-body a.article-btn-full,
.page-body .article-btn-full a,
.page-body a.article-btn-full {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    background-color: var(--pwm-button-bkg, var(--pwm-primary));
    color: var(--pwm-button-text, #fff);
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    line-height: 1.3;
}

.main-content .article-btn-full a:hover,
.main-content a.article-btn-full:hover,
.article-body .article-btn-full a:hover,
.article-body a.article-btn-full:hover,
.page-body .article-btn-full a:hover,
.page-body a.article-btn-full:hover {
    background-color: var(--pwm-primary-10, var(--pwm-button-bkg));
    color: var(--pwm-button-text, #fff);
    text-decoration: none;
}

/* Slideshows saved from the admin carousel window. */
.pwm-article-carousel {
    position: relative;
    margin: 1.25rem 0 1.5rem;
    background: #0f172a;
}

.pwm-article-carousel .carousel-item img,
.main-content article.article-full .pwm-article-carousel img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    max-width: 100%;
}

.pwm-article-carousel .carousel-control-prev,
.pwm-article-carousel .carousel-control-next {
    width: 8%;
    opacity: 0.85;
}

.pwm-article-carousel .pwm-carousel-caption {
    margin: 0;
    padding: 12px 16px;
    background: #0f172a;
    color: #fff;
    text-align: center;
    line-height: 1.5;
}

.pwm-article-carousel .carousel-pause {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background-color: #0f172a;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.pwm-article-carousel .carousel-pause:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
