/* Refinements based on direct comparison with the legacy homepage. */

body {
    background: #dddddd;
}

.legacy-content,
.legacy-content td,
.legacy-content th,
.legacy-content p,
.legacy-content div,
.legacy-content font,
.legacy-content span {
    font-size: 13px !important;
    line-height: 1.42 !important;
}

.legacy-content {
    background: #dddddd;
    border-color: #b9b9b9;
    box-shadow: none;
}

.legacy-content .pic_text_center,
.legacy-content [align="center"],
.legacy-content [style*="text-align: center"] {
    text-align: center !important;
}

.legacy-content .pic_text_center b,
.legacy-content .pic_text_center font {
    display: inline-block;
    text-align: center !important;
}

.home-partners {
    width: fit-content;
    max-width: 100%;
    margin: 12px auto 0;
    padding: 0;
    overflow: hidden;
    background: #5482d4;
    border-color: #3f69b1;
}

.home-partners h2 {
    margin: 0;
    padding: 9px 12px 4px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: 279px 234px;
    justify-content: center;
    gap: 0;
    padding: 0 14px 8px;
}

.sponsor-card,
.sponsor-card:hover {
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sponsor-card--alpan {
    width: 279px;
    height: 125px;
}

.sponsor-card--nika {
    width: 234px;
    height: 127px;
}

.sponsor-card--alpan img {
    width: 279px;
    height: 125px;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.sponsor-card--nika img {
    width: 234px;
    height: 127px;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.home-links {
    padding: 7px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 18px;
}

.home-links a,
.home-links a:hover {
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-links img {
    width: 48px;
    height: 48px;
    transition: transform 0.15s ease;
}

.home-links a:hover img,
.home-links a:focus-visible img {
    transform: translateY(-2px);
}

.home-news {
    margin-top: 12px;
    overflow: hidden;
    background: #dddddd;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
    box-shadow: none;
}

.home-news__header {
    min-height: 38px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #ffffff;
    background: var(--brand-dark);
}

.home-news__header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

.home-news__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.home-news__header a {
    color: #ffffff;
    font-size: 11px;
    white-space: nowrap;
}

.news-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 12px 12px;
    background: #dddddd;
}

.news-year {
    margin: 7px 0 4px;
    padding: 4px 8px;
    color: #ffffff;
    background: #6d7771;
    font-size: 12px;
    text-align: center;
}

.news-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    background: #eeeeee;
    border: 1px solid #c7cbc8;
    border-top: 0;
}

.news-item:first-of-type {
    border-top: 1px solid #c7cbc8;
}

.news-item__date {
    padding: 7px 8px;
    color: #ffffff;
    background: #808983;
    font-size: 11px;
    text-align: center;
}

.news-item__text {
    padding: 7px 10px;
    color: #111111;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.4;
}

.news-item__text br:first-child,
.news-item__text br:last-child {
    display: none;
}

.news-item__text a {
    font-size: inherit;
}

.news-empty {
    margin: 0;
    padding: 14px;
    text-align: center;
}

.site-search {
    margin: 4px;
    padding: 8px 6px 7px;
    background: #eeeeee;
    border: 1px solid #aeb5b0;
    text-align: center;
}

.site-search label {
    display: block;
    margin-bottom: 5px;
    color: #263129;
    font-size: 11px;
}

.site-search__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
}

.site-search input[type="search"] {
    min-width: 0;
    width: 100%;
    height: 25px;
    padding: 2px 5px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    border: 1px solid #8e9691;
    background: #ffffff;
}

.site-search button {
    height: 25px;
    padding: 2px 7px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    border: 1px solid #69736d;
    background: #d4d4d4;
    cursor: pointer;
}

.site-search button:hover {
    background: #c3c3c3;
}

.site-search__provider {
    display: block;
    margin-top: 4px;
    color: #3567b7;
    font-size: 10px;
}

.archive-page {
    padding: 16px 18px;
    background: #dddddd;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
}

.archive-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.archive-page__header h1 {
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-size: 18px;
}

.archive-page__header p {
    margin: 0;
    max-width: 760px;
    font-size: 12px;
}

.archive-page__header > a {
    white-space: nowrap;
}

.archive-links {
    margin-bottom: 16px;
    padding: 12px;
    background: #eeeeee;
    border: 1px solid #c2c6c3;
}

.archive-links h2,
.archive-news > h2 {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: 14px;
    text-align: center;
}

.archive-links__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 12px;
}

.archive-links__grid a {
    padding: 5px 7px;
    background: #dddddd;
    border: 1px solid #c4c4c4;
    text-align: center;
}

.news-list--archive {
    max-height: none;
    overflow: visible;
    padding: 0;
}

@media (max-width: 700px) {
    .home-news__header,
    .archive-page__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-news__actions {
        justify-content: flex-start;
    }

    .archive-links__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .legacy-content,
    .legacy-content td,
    .legacy-content th,
    .legacy-content p,
    .legacy-content div,
    .legacy-content font,
    .legacy-content span {
        font-size: 12px !important;
    }

    .home-partners {
        width: min(100%, 307px);
    }

    .sponsor-grid {
        grid-template-columns: minmax(0, 279px);
        padding-inline: 14px;
    }

    .sponsor-card--alpan,
    .sponsor-card--alpan img {
        width: min(279px, 100%);
        height: auto;
        min-height: 110px;
    }

    .sponsor-card--nika,
    .sponsor-card--nika img {
        width: min(234px, 100%);
        height: auto;
        min-height: 105px;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .news-item__date {
        text-align: left;
    }

    .archive-page {
        padding: 10px;
    }
}
