:root {
    --archive-page-blue: #8db1ec;
    --archive-border-blue: #2f599f;
    --archive-nav-blue: #32698b;
    --archive-orange: #f26722;
    --archive-text: #666766;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--archive-text);
    background: var(--archive-page-blue);
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 16px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--archive-orange);
}

a:hover {
    color: #ababab;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.fruit-panel:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 50%;
    padding: 0.65rem 1rem;
    color: #fff;
    background: #111;
    transform: translate(-50%, -140%);
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

.site-frame {
    width: 1018px;
    max-width: calc(100% - 24px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 7px 7px;
    background: #fff;
    border-right: 7px solid var(--archive-border-blue);
    border-left: 7px solid var(--archive-border-blue);
}

.site-header {
    position: relative;
}

.header-banner {
    position: relative;
    height: 97px;
    background-color: #cadb2b;
    background-image: url("../images/template/header_bckg.jpg");
    background-repeat: repeat-x;
    background-position: left top;
    border-bottom: 2px solid #5f8571;
}

.brand {
    position: absolute;
    z-index: 20;
    top: 4px;
    left: 29px;
    width: 100px;
    height: 130px;
}

.brand img {
    width: 100px;
    height: 130px;
}

.language-flags {
    position: absolute;
    top: 49px;
    right: 11px;
    display: flex;
    gap: 5px;
}

.language-flags a {
    display: block;
    border: 1px solid transparent;
}

.language-flags a:hover,
.language-flags a:focus-visible,
.language-flags a[aria-current="page"] {
    border-color: #fff;
}

.language-flags img {
    width: 25px;
    height: 18px;
}

.primary-nav {
    min-height: 46px;
    padding-left: 180px;
    background-color: #383838;
    background-image: url("../images/template/header_menu_bckg.jpg");
    background-repeat: repeat-x;
    background-position: left top;
}

.primary-nav ul {
    display: flex;
    min-height: 46px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav li {
    display: flex;
}

.primary-nav a {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    font-family: Arial, "Trebuchet MS", Verdana, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: #fff;
    background-color: var(--archive-nav-blue);
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 40px;
    padding: 8px 9px;
    color: #fff;
    background: var(--archive-border-blue);
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.fruit-showcase {
    height: 270px;
    overflow: hidden;
}

.fruit-accordion {
    position: relative;
    width: 100%;
    height: 270px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.fruit-panel {
    position: absolute;
    top: 0;
    width: 320px;
    height: 270px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    transition: left 520ms ease;
}

.fruit-panel:nth-child(1) { left: 0; z-index: 1; }
.fruit-panel:nth-child(2) { left: 320px; z-index: 2; }
.fruit-panel:nth-child(3) { left: 454px; z-index: 3; }
.fruit-panel:nth-child(4) { left: 588px; z-index: 4; }
.fruit-panel:nth-child(5) { left: 722px; z-index: 5; }
.fruit-panel:nth-child(6) { left: 856px; z-index: 6; }

.fruit-panel img {
    width: 320px;
    max-width: none;
    height: 200px;
    object-fit: fill;
}

.fruit-caption {
    position: absolute;
    top: 200px;
    left: 0;
    width: 320px;
    height: 70px;
    padding: 5px 15px 10px;
    color: #fff;
    background: #181818;
    text-shadow: none;
}

.fruit-panel:nth-child(1) .fruit-caption { background: #434343; }
.fruit-panel:nth-child(2) .fruit-caption { background: #353535; }
.fruit-panel:nth-child(3) .fruit-caption { background: #272727; }
.fruit-panel:nth-child(4) .fruit-caption { background: #191919; }
.fruit-panel:nth-child(5) .fruit-caption { background: #101010; }
.fruit-panel:nth-child(6) .fruit-caption { background: #080808; }

.fruit-caption strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 15px;
    line-height: 18px;
}

.fruit-caption p {
    margin: 0;
    color: #fff;
    font-size: 11px;
    line-height: 14px;
    opacity: 0;
    transition: opacity 260ms ease 240ms;
}

.fruit-panel.is-active {
    cursor: default;
}

.fruit-panel.is-active .fruit-caption p {
    opacity: 1;
}

.content-layout {
    display: grid;
    grid-template-columns: 30% 68%;
    grid-template-areas:
        "sidebar content"
        ". social";
    column-gap: 2%;
    align-items: start;
}

.page-content {
    grid-area: content;
    min-width: 0;
    min-height: 208px;
    padding: 12px 0 10px;
    border-top: 4px solid #e6e6e6;
    color: var(--archive-text);
}

.page-content > h1 {
    margin: 0 0 12px;
    padding: 0;
    color: #1d3d4e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.2;
}

.page-content-home {
    padding-top: 81px;
}

.page-content-home > h1 {
    color: var(--archive-text);
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    text-align: center;
}

.page-content-home > h1::first-line {
    font-weight: 400;
}

.article-content {
    color: var(--archive-text);
}

.article-content p,
.article-content ul,
.article-content ol {
    margin: 0 0 20px;
    font-size: 12px;
    line-height: 1.9;
}

.article-content ul,
.article-content ol {
    padding-left: 35px;
}

.article-content ul {
    list-style: disc;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 0;
    padding: 0 0 10px;
    color: #424242;
    font-family: Tahoma, Geneva, sans-serif;
}

.article-content h2 {
    color: #1d3d4e;
    font-size: 20px;
    font-weight: 400;
}

.article-content h3 {
    font-size: 18px;
}

.article-content figure {
    margin: 5px 8px 20px 5px;
}

.article-content figure img,
.article-content > img {
    max-width: 100%;
    border: 1px solid #d6d6d5;
}

.article-content figcaption {
    margin-top: 5px;
    font-size: 11px;
}

.article-content table {
    width: 100%;
    margin-bottom: 10px;
    border-collapse: collapse;
    font-size: 12px;
}

.article-content th,
.article-content td {
    padding: 5px 10px;
}

.article-content th {
    color: #fff;
    background: #4086aa;
    border-top: 3px solid #2b5b78;
}

.article-content td {
    border-bottom: 1px solid #ddd;
}

.side-menu {
    grid-area: sidebar;
    padding-right: 10px;
    color: #999;
}

.side-menu h2 {
    height: 40px;
    margin: 0;
    padding: 10px 0 0 10px;
    color: #000;
    border-left: 4px solid var(--archive-orange);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
}

.side-menu ul {
    margin: 0;
    padding: 0 2px;
    background: #fef7f7;
    list-style: none;
}

.side-menu li {
    margin: 0;
    padding: 6px 6px 6px 15px;
    border-bottom: 1px dashed #ddd;
    font-size: 13px;
    line-height: 17px;
}

.side-menu a {
    display: block;
    padding-left: 12px;
    color: var(--archive-orange);
    background-image: url("../images/template/list-marker.gif");
    background-repeat: no-repeat;
    background-position: left 7px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
}

.side-menu a:hover,
.side-menu a:focus-visible {
    color: #244c65;
    text-decoration: underline;
}

.social-links {
    grid-area: social;
    display: flex;
    gap: 5px;
    min-height: 36px;
    padding-top: 1px;
}

.social-links a {
    display: block;
}

.social-links img {
    width: 27px;
    height: 28px;
}

.site-footer {
    min-height: 132px;
    margin: 0;
    padding: 15px 18px;
    color: #fff;
    background: var(--archive-border-blue);
    border-top: 3px solid #363895;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
}

.site-footer a {
    color: #ccc;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
    border-color: #ccc;
}

.site-credit {
    min-height: 17px;
    color: #ababab;
    background: #fff;
    font-size: 11px;
}

.site-credit a {
    color: #ababab;
}

@media (max-width: 1020px) {
    .site-frame {
        max-width: 100%;
        border-right-width: 4px;
        border-left-width: 4px;
    }

    .language-flags {
        top: 22px;
    }

    .menu-toggle {
        position: absolute;
        top: 49px;
        right: 11px;
        display: block;
    }

    .primary-nav {
        min-height: 6px;
        padding-left: 0;
    }

    .primary-nav ul {
        display: none;
        min-height: 0;
        padding: 6px 0 8px;
    }

    .primary-nav.is-open ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .primary-nav li {
        display: block;
    }

    .primary-nav a {
        min-height: 42px;
        padding: 8px 18px;
        background-position: 7px center;
        white-space: normal;
    }

    .fruit-showcase,
    .fruit-accordion {
        height: auto;
        overflow: visible;
    }

    .fruit-accordion {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fruit-panel,
    .fruit-panel:nth-child(n) {
        position: relative;
        top: auto;
        left: auto !important;
        width: auto;
        height: auto;
        min-width: 0;
        cursor: default;
    }

    .fruit-panel img {
        width: 100%;
        height: auto;
        aspect-ratio: 320 / 200;
        object-fit: cover;
    }

    .fruit-caption {
        position: static;
        width: auto;
        height: 70px;
    }

    .fruit-caption p,
    .fruit-panel.is-active .fruit-caption p {
        display: none;
    }
}

@media (max-width: 760px) {
    .brand {
        left: 18px;
    }

    .fruit-accordion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "sidebar"
            "social";
    }

    .page-content {
        min-height: 0;
        padding: 20px 14px;
    }

    .page-content-home {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .side-menu {
        padding: 0 10px;
    }

    .social-links {
        padding: 0 12px 12px;
    }

    .site-footer {
        min-height: 108px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .site-footer nav {
        gap: 8px 9px;
    }

    .site-footer a {
        font-size: 12px;
    }
}

@media (max-width: 460px) {
    .site-frame {
        padding-right: 3px;
        padding-left: 3px;
        border-right-width: 3px;
        border-left-width: 3px;
    }

    .header-banner {
        height: 92px;
    }

    .brand {
        top: 3px;
        left: 10px;
        width: 69px;
        height: 90px;
    }

    .brand img {
        width: 69px;
        height: 90px;
    }

    .language-flags {
        top: 16px;
        right: 9px;
    }

    .menu-toggle {
        top: 43px;
        right: 9px;
    }

    .primary-nav.is-open ul {
        grid-template-columns: 1fr;
    }

    .fruit-panel img {
        aspect-ratio: 16 / 7;
    }

    .fruit-caption {
        height: 42px;
        padding-top: 10px;
    }

    .site-footer nav span {
        display: none;
    }

    .site-credit {
        padding: 4px 2px;
        line-height: 1.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
