.municipal-councillor {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.municipal-councillor img {
    display: block;
    width: 100%;
    height: auto;
}

.municipal-councillor h3 {
    margin-top: 0;
}

.municipal-councillor p {
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .municipal-councillor {
        grid-template-columns: 75px minmax(0, 1fr);
        gap: 12px;
    }
}

.page-id-373 .page-entry {
    margin: 0 0 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-bottom: 4px solid #81bd00;
    background: #fff;
    box-shadow: 0 1px 3px #b5b5b5;
}

.page-id-373 .section-heading {
    margin: 0 0 8px;
    padding: 0 0 13px;
    border-bottom: 1px solid #eee;
}

.page-id-373 .entry-content table {
    width: 100% !important;
    max-width: 100%;
    border: 1px solid #dfdfdf !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 3px;
    background: #f9f9f9;
    color: #333;
    font-family: Arial, "Bitstream Vera Sans", Helvetica, Verdana, sans-serif;
    table-layout: auto;
}

.page-id-373 .entry-content table td,
.page-id-373 .entry-content table th {
    padding: 4px 7px !important;
    border: 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #dfdfdf;
    color: #555;
    font-size: 12px;
    line-height: 18px;
    vertical-align: top;
}

.page-id-373 .entry-content table tr:last-child td,
.page-id-373 .entry-content table tr:last-child th {
    border-bottom: 0;
}

@media (max-width: 760px) {
    .page-id-373 .entry-content table td,
    .page-id-373 .entry-content table th {
        overflow-wrap: anywhere;
    }
}

/* Administration and Finance procedures guide. */
.finance-guide-page .wp-reforge-divider {
    margin: 0 0 28px;
}

.finance-guide {
    overflow: hidden;
    margin: 0 0 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f5f5f5;
    box-shadow: inset 0 1px 0 #fff;
}

.finance-guide > summary {
    position: relative;
    padding: 12px 42px 12px 16px;
    cursor: pointer;
    color: #444;
    font: normal 20px/1.25 Georgia, serif;
    list-style: none;
}

.finance-guide > summary::-webkit-details-marker {
    display: none;
}

.finance-guide > summary::after {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 18px;
    height: 4px;
    border-radius: 1px;
    background: #d65239;
    box-shadow: 0 1px 2px #aaa;
    content: '';
    transform: translateY(-50%);
}

.finance-guide:not([open]) > summary::after {
    height: 18px;
    background: linear-gradient(#d65239, #d65239) center/18px 4px no-repeat,
        linear-gradient(#d65239, #d65239) center/4px 18px no-repeat;
}

.finance-guide__body {
    padding: 10px 16px 16px;
    border-top: 1px solid #ddd;
}

.finance-guide__columns,
.finance-guide__row {
    display: grid;
    grid-template-columns: minmax(230px, 2fr) minmax(120px, 1fr) minmax(120px, 1fr);
}

.finance-guide__columns {
    margin-top: 12px;
    background: #81bd00;
    color: #444;
    font-weight: bold;
    text-align: center;
}

.finance-guide__columns span {
    padding: 5px 8px;
    border-right: 1px solid #9ccb36;
}

.finance-guide__columns span:last-child {
    border-right: 0;
}

.finance-guide__row {
    border-bottom: 8px solid #eee;
    background: #ccc;
}

.finance-guide__row:last-child {
    border-bottom: 0;
}

.finance-guide__video,
.finance-guide__documents {
    min-width: 0;
    padding: 10px;
    border-right: 1px solid #ddd;
}

.finance-guide__row > :last-child {
    border-right: 0;
}

.finance-guide__video iframe {
    display: block;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 300 / 170;
    height: auto;
    margin: 0 auto;
    border: 0;
}

.finance-guide__documents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.finance-guide__document {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 74px;
    padding: 8px 4px;
    color: #444 !important;
    text-decoration: none !important;
}

.finance-guide__document + .finance-guide__document {
    border-top: 1px solid #e5e5e5;
}

.finance-guide__document:hover,
.finance-guide__document:focus-visible {
    background: #d8d8d8;
    color: #0e8008 !important;
}

.finance-guide__document img {
    display: block;
    width: 35px;
    height: 35px;
    margin: 0;
}

.entry-content > iframe,
.single-entry .entry-content iframe {
    display: block;
    max-width: 100%;
    border: 0;
}

@media (max-width: 760px) {
    .finance-guide__columns {
        display: none;
    }

    .finance-guide__row {
        display: block;
        margin-top: 12px;
        border: 1px solid #ddd;
    }

    .finance-guide__video,
    .finance-guide__documents {
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }

    .finance-guide__row > :last-child {
        border-bottom: 0;
    }
}

/* Single news posts follow the original Sahifa-era municipal layout. */
.single-entry {
    margin: 0 0 20px;
    border: 1px solid #ddd;
    border-bottom: 4px solid #81bd00;
    background: #fff;
    box-shadow: 0 1px 3px #b5b5b5;
}

.single-entry__thumbnail,
.single-entry__thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.single-entry__thumbnail:hover img {
    opacity: .88;
}

.single-entry__inner {
    padding: 20px;
}

.single-entry__header h1 {
    margin: 0 0 10px;
    color: #555;
    font: normal 28px/1.05 BebasNeueRegular, Arial, Georgia, serif;
    text-transform: uppercase;
}

.single-entry__meta {
    margin: 0 0 10px;
    padding: 0 0 6px;
    border-bottom: 1px solid #f2f2f2;
    color: #999;
    font-size: 11px;
}

.single-entry .entry-content {
    line-height: 1.55;
}

.single-entry .entry-content p {
    padding: 1em 0;
}

.single-entry__share {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 10px -20px -20px;
    padding: 0 10px;
    border-top: 1px solid #eaeaea;
    background: #f7f7f7;
}

.single-entry__share > span {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    margin-left: -10px;
    padding: 0 10px;
    background: #81bd00;
    color: #fff;
    font: normal 19px/1 BebasNeueRegular, Arial, Georgia, serif;
    text-transform: uppercase;
}

.single-entry__share a {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 13px;
    border-radius: 999px;
    background: #050505;
    color: #fff;
    font: 600 12px/1 Arial, sans-serif;
    text-decoration: none;
}

.single-entry__share a:hover,
.single-entry__share a:focus-visible {
    background: #333;
    color: #fff;
}

.single-entry__navigation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 20px;
}

.single-entry__navigation a {
    position: relative;
    width: 245px;
    color: #444;
    font-size: 14px;
    line-height: 1.35;
}

.single-entry__navigation span {
    display: block;
    color: #999;
    font-size: 11px;
}

.single-entry__previous {
    padding-left: 40px;
}

.single-entry__next {
    margin-left: auto;
    padding-right: 40px;
    text-align: right;
}

.single-entry__previous::before,
.single-entry__next::after {
    position: absolute;
    top: 50%;
    color: #ccc;
    font: normal 56px/.4 Georgia, serif;
}

.single-entry__previous::before {
    left: 0;
    content: '«';
}

.single-entry__next::after {
    right: 0;
    content: '»';
}

.single-entry__comments-closed {
    margin: 0 0 20px;
    text-align: center;
}

@media (max-width: 760px) {
    .single-entry__inner {
        padding: 14px;
    }

    .single-entry__header h1 {
        font-size: 24px;
    }

    .single-entry__share {
        margin-right: -14px;
        margin-bottom: -14px;
        margin-left: -14px;
    }

    .single-entry__navigation {
        flex-direction: column;
        gap: 16px;
    }

    .single-entry__navigation a,
    .single-entry__next {
        width: 100%;
        margin-left: 0;
    }
}

/* Municipal news index, based on the official portal's listing template. */
.news-index__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    padding: 3px 0;
}

.news-index__heading h1 {
    margin: 0;
    color: #333;
    font: normal 26px/1 BebasNeueRegular, Arial, Georgia, serif;
    text-transform: uppercase;
}

.news-index__heading::after {
    content: '';
    flex: 1;
    height: 12px;
    margin-top: 3px;
    background: repeating-linear-gradient(135deg, #eee 0, #eee 2px, transparent 2px, transparent 5px);
}

.news-index__listing {
    border: 1px solid #ddd;
    border-bottom: 4px solid #81bd00;
    background: #fff;
    box-shadow: 0 1px 3px #b5b5b5;
}

.news-index__item {
    overflow: hidden;
    padding: 20px 20px 25px;
    border-bottom: 1px solid #f2f2f2;
}

.news-index__item:last-child {
    border-bottom: 0;
}

.news-index__item h2 {
    margin: 0;
    color: #333;
    font: normal 22px/1.1 BebasNeueRegular, Arial, Georgia, serif;
    text-transform: uppercase;
}

.news-index__item h2 a {
    color: inherit;
}

.news-index__item h2 a:hover,
.news-index__item h2 a:focus-visible {
    color: #0e8008;
}

.news-index__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin: 10px 0;
    color: #aaa;
    font-size: 11px;
}

.news-index__thumbnail {
    display: block;
    float: left;
    width: 160px;
    margin: 0 15px 4px 0;
    padding: 2px;
}

.news-index__thumbnail img {
    display: block;
    width: 150px;
    height: 84px;
    padding: 4px;
    background: #fff;
    box-shadow: 0 0 2px #b5b5b5;
    object-fit: cover;
    transition: opacity .2s ease, box-shadow .2s ease;
}

.news-index__thumbnail:hover img,
.news-index__thumbnail:focus-visible img {
    opacity: .7;
    box-shadow: 0 0 2px #666;
}

.news-index__excerpt {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.news-index__excerpt a {
    color: #0e8008;
    font-weight: bold;
    text-decoration: none;
}

.news-index__pagination {
    overflow: hidden;
    margin: 20px 0 25px;
}

.news-index__pagination > div {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.news-index__pagination a,
.news-index__pagination .page-numbers {
    padding: 5px 10px;
    color: #777;
    font-size: 12px;
    text-decoration: none;
}

.news-index__pagination .current {
    padding: 5px 10px;
    background: #81bd00;
    color: #fff;
    text-shadow: 0 1px 0 #547e00;
}

.news-index__pagination a:hover,
.news-index__pagination a:focus-visible {
    color: #0e8008;
}

.news-index__pages {
    float: right;
    padding: 6px 0;
    color: #777;
    font-size: 11px;
}

.news-index__empty {
    padding: 20px;
    border: 1px solid #ddd;
    border-bottom: 4px solid #81bd00;
    background: #fff;
    box-shadow: 0 1px 3px #b5b5b5;
}

@media (max-width: 760px) {
    .news-index__item {
        padding: 15px;
    }

    .news-index__item h2 {
        font-size: 20px;
    }

    .news-index__thumbnail {
        float: none;
        width: 100%;
        margin: 0 0 12px;
    }

    .news-index__thumbnail img {
        width: 100%;
        height: 170px;
    }

    .news-index__pages {
        float: none;
        display: block;
        margin-bottom: 5px;
    }
}
