@font-face {
    font-family: 'JaapokkiRegular';
    src: url('../fonts/jaapokki/jaapokki-regular.woff') format('woff');
    font-display: swap;
}

.statistics-header {
    position: relative;
    z-index: 2;
    border-top: 5px solid #007423;
    background: #191919;
}

.statistics-header-inner,
.statistics-menu,
.statistics-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.statistics-header-inner {
    justify-content: space-between;
}

.statistics-header-inner::before,
.statistics-header-inner::after {
    display: none;
}

.statistics-brand {
    display: block;
    padding: 4px 16px;
    background: #007423;
}

.statistics-brand img {
    display: block;
    width: auto;
    height: 54px;
}

.statistics-menu,
.statistics-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.statistics-menu > li {
    position: relative;
}

.statistics-menu > li > a,
.statistics-menu > li > details > summary {
    display: block;
    padding: 22px 0 20px;
    color: #fff;
    font: 14px/20px 'JaapokkiRegular', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
}

.statistics-menu > li > a:hover,
.statistics-menu > li > a:focus,
.statistics-menu > li > details > summary:hover {
    color: #dbeebd;
}

.statistics-menu summary {
    cursor: pointer;
}

.statistics-menu summary::after {
    content: " ▾";
}

.statistics-menu details[open] > summary {
    color: #007423;
}

.statistics-menu details ul {
    position: absolute;
    min-width: 225px;
    width: max-content;
    max-width: min(290px, 90vw);
    padding: 8px 16px;
    border: 1px solid #d6e2d7;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 22px #102d1f20;
}

.statistics-menu details ul a {
    display: block;
    padding: 8px 0;
    color: #333;
}

.statistics-banner {
    position: relative;
    min-height: 170px;
    background: #333;
}

.statistics-banner > img {
    display: block;
    width: 100%;
    height: clamp(170px, 15vw, 230px);
    object-fit: cover;
}

.statistics-banner .banner-title-content {
    top: 50%;
    height: auto;
    transform: translateY(-50%);
}

.statistics-banner h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
    font-family: 'JaapokkiRegular', sans-serif;
    text-transform: uppercase;
}

.statistics-banner .breadcrumb {
    margin: 10px 0 0;
    list-style: none;
    color: #fff;
}

.statistics-banner .breadcrumb li {
    display: inline;
}

.statistics-banner .breadcrumb li + li::before {
    padding: 0 7px;
    color: #fff;
    content: "/";
}

.statistics-banner .breadcrumb a {
    color: #fff;
    text-decoration: underline;
}

.compendium-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f9fbfa;
}

.compendium-section::before {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 61%;
    width: clamp(620px, 70vw, 1100px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    background: url(../images/logopagEH.png) center / contain no-repeat;
    opacity: .23;
    pointer-events: none;
    content: "";
}

.compendium-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
}

.compendium-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 18px;
}

.compendium-edition {
    margin: 0 0 14px;
}

.compendium-edition > summary {
    padding: 12px 16px;
    border: 1px solid #d5e2d7;
    border-radius: 4px;
    background: #fff;
    color: #173d24;
    font-weight: 700;
    cursor: pointer;
}

.compendium-edition[open] > summary {
    margin-bottom: 16px;
    border-left: 4px solid #007423;
}

.compendium-card h3 {
    align-self: stretch;
    min-height: calc(4.05em + 28px);
    margin: -18px -18px 12px;
    padding: 14px 18px;
    border-radius: 3px 3px 0 0;
    background: #007423;
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
}

.compendium-card h3 i {
    margin-right: 4px;
}

.compendium-files-link {
    margin-top: auto;
    font-weight: 700;
}

.compendium-files-link i {
    margin-left: 6px;
}

#capitulos-2009-2023 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    align-items: start;
}

#capitulos-2009-2023 .compendium-card {
    padding: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(23, 61, 36, .18);
}

#capitulos-2009-2023 .compendium-card h3 {
    margin: 0;
}

.compendium-topic-list {
    align-self: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.compendium-topic-list li + li {
    border-top: 1px solid #d5e2d7;
}

.compendium-topic-list a {
    display: block;
    padding: 7px 16px;
    background: #f5f8f5;
    color: #174d29;
    text-decoration: underline;
}

.compendium-topic-list a:hover,
.compendium-topic-list a:focus-visible {
    background: #e9f2e9;
}

.compendium-topic-list a:focus-visible {
    outline-offset: -3px;
}

.compendium-file-view {
    display: none;
    padding: 0;
    margin: 24px 0 0;
    scroll-margin-top: 20px;
}

.compendium-file-view:target,
.compendium-file-view:has(.compendium-topic:target) {
    display: block;
}

.compendium-file-view:has(.compendium-topic:target) .compendium-topic:not(:target) {
    display: none;
}

.compendium-topic {
    scroll-margin-top: 100px;
}

.compendium-topic h4 {
    margin: 16px 0 8px;
}

.compendium-file-view h3 {
    margin: 12px 0 8px;
    font-size: 22px;
    line-height: 1.3;
}

.compendium-file-table {
    margin-bottom: 0;
}

.compendium-file-table th[scope="row"] {
    font-weight: 400;
}

.compendium-file-table thead th {
    background: #007423;
    color: #fff;
}

.compendium-file-table thead th:last-child {
    width: 28%;
}

.compendium-file-table td a {
    color: #174d29;
    text-decoration: underline;
}

.compendium-file-group {
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.compendium-file-group[open] > summary {
    border-bottom: 1px solid #ddd;
}

.compendium-file-group summary {
    padding: 10px 12px;
    background: #f5f7f5;
    color: #174d29;
    font-weight: 700;
    cursor: pointer;
}

.compendium-file-group summary span {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 400;
}

.compendium-file-group ul {
    margin: 8px 0 0;
    padding: 0 0 0 14px;
    list-style: none;
}

.compendium-file-group li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 8px 0;
    border-top: 1px solid #ddd;
}

.statistics-links {
    justify-content: center;
}

.statistics-banner .parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .48);
}

.statistics-banner .parallax-overlay.statistics-banner-texture {
    background: url(../images/overaly.png) repeat;
}

.statistics-banner .banner-title-content {
    position: absolute;
    width: 100%;
    padding: 0 16px;
    text-align: center;
}

.statistics-office {
    padding: 38px 0;
}

.statistics-office-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 44px);
    max-width: 960px;
    margin: 0 auto;
}

.statistics-office figure {
    margin: 0;
    text-align: center;
}

.statistics-office figure img {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
}

.statistics-office figcaption {
    margin-top: 12px;
}

.statistics-office-summary h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.statistics-office-queries {
    padding: 38px 0 46px;
}

.statistics-office-queries h2 {
    margin: 0 0 20px;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.2;
}

.statistics-publications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.statistics-publications a {
    display: grid;
    align-content: start;
    gap: 5px;
    height: 100%;
    margin: 0;
    padding: 16px;
    border-left: 3px solid #007423;
    color: #252525;
}

.statistics-publications i {
    margin-bottom: 4px;
    color: #007423;
    font-size: 21px;
}

.statistics-publications a:hover,
.statistics-publications a:focus-visible {
    background: #f3f8f4;
    color: #004c24;
}

.statistics-header :focus-visible,
#contenido :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

#contenido .compendium-file-view:target:focus-visible,
#contenido .compendium-topic:target:focus-visible {
    outline: none;
}

@media (min-width: 992px) {
    .statistics-header {
        position: absolute;
        inset: 0 0 auto;
        background: transparent;
    }

    .statistics-header-inner {
        justify-content: flex-end;
    }

    .statistics-brand {
        position: absolute;
        inset: 0 auto auto 0;
        display: flex;
        justify-content: flex-end;
        width: 20%;
        height: 62px;
        padding: 4px clamp(12px, 2.2vw, 34px) 0 0;
    }

    .statistics-brand img {
        position: absolute;
        width: clamp(136px, 15.5vw, 222px);
        height: auto;
    }

    .statistics-banner .banner-title-content {
        top: 72%;
        padding-inline: 20%;
    }
}

@media (max-width: 600px) {
    .statistics-office-inner {
        grid-template-columns: 1fr;
    }

    .statistics-office.parallax {
        background-attachment: scroll !important;
    }
}

@media (max-width: 991px) {
    .statistics-header nav {
        width: 100%;
    }

    .statistics-menu {
        float: none;
        gap: 4px 16px;
    }

    .statistics-menu > li > a,
    .statistics-menu > li > details > summary {
        padding: 8px 0;
        font-size: 12px;
    }

    .statistics-menu details ul {
        position: static;
        width: auto;
        min-width: 0;
        box-shadow: none;
    }

}


.document-library {
    padding: 40px 0;
    background: #f5f8f5;
}

.document-library h2 {
    margin: 0 0 24px;
    text-align: center;
}

.document-years,
.document-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.document-years {
    justify-content: center;
}

.document-years a,
.document-years button {
    padding: 8px 20px;
    border: 1px solid #b4c8b6;
    border-radius: 6px;
    background: #fff;
    color: #174d29;
    font-weight: 700;
}

.document-years [aria-current="page"],
.document-years [aria-pressed="true"] {
    background: #174d29;
    color: #fff;
}

.document-toolbar {
    justify-content: space-between;
}

.document-toolbar label {
    margin: 0;
    max-width: 100%;
}

.document-toolbar input {
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #b4c8b6;
    border-radius: 6px;
    background: #fff;
}

.document-entry {
    margin-bottom: 6px;
    border: 1px solid #d3e2d3;
    border-radius: 6px;
    background: #fff;
}

.document-entry[hidden],
.document-library [data-document-empty][hidden] {
    display: none;
}

.document-entry summary {
    padding: 12px 16px;
    color: #174d29;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.document-entry summary:hover,
.document-entry[open] summary {
    background: #e9f2e9;
}

.document-entry summary i {
    margin-right: 6px;
}

.document-actions {
    padding: 12px 16px;
}

.document-actions iframe {
    display: block;
    width: 100%;
    height: 560px;
    margin-top: 12px;
    border: 1px solid #d3e2d3;
}

.document-pagination {
    margin: 18px 0 0;
}

.document-pagination[hidden] {
    display: none;
}

.document-pagination button:disabled {
    cursor: default;
    opacity: .55;
}
