:root {
    --wine: #8d1f4d;
    --blue: #365d9a;
    --orange: #eb4d09;
    --green: #008442;
    --yellow: #efc81b;
    --border: #c9c9c9;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: #25304a;
}

html {
    background: #fff;
}

body {
    background-color: #fff;
    background-image: linear-gradient(to bottom, #e0e0e1 0, #fff 70px, #fff 110px);
    background-repeat: no-repeat;
    background-size: 100% 110px;
    background-position: center top;
}

a {
    color: #244f96;
}

.site-shell {
    width: 1000px;
    margin: 0 auto;
}

.site-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: block;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 232px;
    height: auto;
}

.social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.social-links img {
    max-width: 50px;
    max-height: 50px;
}

.hero {
    width: 950px;
    height: 260px;
    margin: 0 auto 20px;
    background: url('/assets/img/bgmain02.jpg') right top no-repeat;
    position: relative;
    overflow: hidden;
}

.site-grid {
    display: grid;
    grid-template-columns: 200px 552px 200px;
    gap: 24px;
    align-items: start;
}

.side-menu {
    border: 10px solid var(--wine);
    border-radius: 5px;
    background: var(--wine);
}

.side-menu-right {
    border-color: var(--blue);
    background: var(--blue);
}

.side-menu h2 {
    margin: 0;
    padding: 0 0 8px;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

.side-menu a {
    margin-bottom: 8px;
    display: block;
    background: #fff;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

.side-menu a:hover,
.side-menu a:focus-visible {
    filter: brightness(.92) saturate(1.08);
    transform: translateX(2px);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .24);
}

.side-menu a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.side-menu a img {
    display: block;
    width: 100%;
    height: auto;
}

.side-menu a:last-child {
    margin-bottom: 0;
}

.main-column {
    min-width: 0;
}

.tabs {
    height: 22px;
    display: flex;
    justify-content: flex-end;
    align-items: end;
    gap: 5px;
}

.tabs a {
    width: 117px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
}

.tab-news {
    background: var(--yellow);
}

.tab-about {
    background: var(--orange);
}

.tab-ask {
    background: var(--green);
}

.content-panel {
    min-height: 472px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fff;
}

.content-panel-news {
    background: #f7e8e9;
}

.content-panel>h1,
.content-panel article>h1 {
    margin: 0 0 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid #ccc;
    color: var(--wine);
    font-size: 17px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.news-card {
    border: 1px solid #888;
    background: #fff;
    font-size: 11px;
}

.news-card-link {
    display: block;
    height: 100%;
    padding: 8px;
    color: inherit;
    text-decoration: none;
}

.news-card-link:visited {
    color: inherit;
}

.news-card-link:hover,
.news-card-link:focus-visible {
    color: inherit;
    background: #eee;
}

.news-card-link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

.news-card h2 {
    margin: 0 0 6px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #aaa;
    font-size: 11px;
}

.news-card h2 {
    color: #172335;
}

.news-card footer {
    color: var(--wine);
    font-weight: bold;
    text-align: right;
}

.news-card time {
    margin-left: 8px;
    color: #555;
    font-weight: normal;
}

.article-list-item {
    padding: 10px 4px 18px;
    border-bottom: 1px dotted #aaa;
    font-size: 12px;
}

.article-list-item time {
    float: right;
}

.article-list-item h2 {
    margin: 0 0 8px;
    font-size: 14px;
}

.article-body {
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

.article-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.article-images img {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

.after-story {
    min-height: 120px;
    overflow: hidden;
    border-bottom: 1px dotted #aaa;
}

.after-thumbnail {
    float: left;
    width: 140px;
    height: 105px;
    margin: 0 12px 8px 0;
    object-fit: cover;
}

.archive-list {
    columns: 2;
}

.tags {
    padding: 6px;
    background: #eee;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 12px;
    padding: 7px;
    background: #eee;
    font-size: 11px;
}

.tag-filter a[aria-current] {
    color: var(--wine);
    font-weight: bold;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    padding: 14px 8px 3px;
    border-top: 1px solid #d8c7cd;
    font-size: 12px;
}

.pagination a,
.pagination [aria-current] {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #c9b8be;
    border-radius: 4px;
    background: #fff;
    color: var(--wine);
    text-decoration: none;
}

.pagination a:hover,
.pagination a:focus-visible {
    border-color: var(--wine);
    background: #f3e3e9;
    color: #641334;
}

.pagination a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.pagination [aria-current] {
    border-color: var(--wine);
    background: var(--wine);
    color: #fff;
    font-weight: bold;
}

.pagination-ellipsis {
    min-width: 18px;
    color: #777;
    text-align: center;
}

.map-frame {
    position: relative;
    width: 100%;
    padding-top: 62%;
    margin-bottom: 16px;
}

.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.library-list,
.document-list {
    padding: 0;
    list-style: none;
}

.library-list li,
.document-list li {
    margin: 8px 0;
    padding: 9px;
    border-left: 4px solid var(--blue);
}

.password-form {
    display: flex;
    gap: 12px;
    align-items: end;
}

.password-form label {
    display: grid;
    gap: 5px;
}

.password-form input {
    padding: 7px;
}

.error {
    color: #b00020;
}

.site-footer {
    width: 100%;
    height: 300px;
    margin-top: 0;
    padding-top: 140px;
    text-align: center;
    background: url('/assets/img/footimage.gif') center top no-repeat, url('/assets/img/bgfoot.gif') left top repeat-x;
}

.site-footer nav {
    display: block;
    width: 1000px;
    max-width: 100%;
    margin: 0 auto 30px;
    text-align: center;
}

.site-footer nav a {
    display: inline-block;
}

.site-footer nav img {
    width: auto;
    height: auto;
    margin-right: 5px;
    border: 1px solid #ccc;
    vertical-align: top;
}

@media (max-width:1020px) {
    .site-shell {
        width: 100%;
    }

    .hero {
        width: 95%;
        height: auto;
        aspect-ratio: 950 / 260;
    }

    .site-grid {
        overflow-x: auto;
    }
}

@media (max-width:860px) {
    .site-grid {
        grid-template-columns: 160px minmax(360px, 1fr) 160px;
        padding: 0 18px;
    }

    .side-menu {
        border-width: 8px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .side-menu a {
        transition: none;
    }
}