@font-face {
    font-family: 'Jost';
    src: url('../Fonts/Jost-VAR.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../Fonts/Jost-Italic-VAR.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --button-bg: rgb(51, 51, 51);
    --button-bg-hover: rgb(77, 77, 77);
    --button-text: #fff;
    --font-family: 'Jost', sans-serif;
    --text-base: rgba(0, 0, 0, 0.84);
    --header-offset: 80px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-offset) + 20px);
}

.skip-link,
.visually-hidden {
    position: absolute;
}

.skip-link {
    top: 12px;
    left: 16px;
    z-index: 3000;
    padding: 10px 14px;
    background: #fff;
    color: #00497f;
    border: 1px solid #00497f;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-family);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-base);
    overflow-x: hidden;
}
header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 40px 14px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
header .logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}
header .logo-container h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-base);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

.anchor-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #ced4da;
    border-radius: 0;
    background: #fff;
    color: #212529;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
}

.anchor-nav-toggle:hover,
.anchor-nav-toggle:focus-visible {
    border-color: #9fb2c3;
    outline: none;
}

.anchor-nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
}

.anchor-nav-toggle-icon span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

.anchor-nav-toggle-label {
    line-height: 1;
}

.anchor-nav-toggle.is-open .anchor-nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.anchor-nav-toggle.is-open .anchor-nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.anchor-nav-toggle.is-open .anchor-nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.anchor-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.anchor-nav::-webkit-scrollbar {
    display: none;
}

.anchor-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 4px;
    border-bottom: 2px solid transparent;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.anchor-nav-link:hover,
.anchor-nav-link:focus-visible {
    color: #212529;
    outline: none;
    border-bottom-color: #adb5bd;
}

.anchor-nav-link[aria-current="true"] {
    border-bottom-color: currentColor;
    color: currentColor;
}

.anchor-nav-overlay[hidden] {
    display: none !important;
}

body.is-nav-open {
    overflow: hidden;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px 40px;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    z-index: 2000;
}
footer a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}
main {
    flex: 1;
    margin-top: calc(var(--header-offset) + 20px);
    margin-bottom: 80px;
    padding: 0 40px 40px 40px;
    width: 100%;
    max-width: 100%;
    align-self: center;
    box-sizing: border-box;
    overflow-x: hidden;
}

.manual-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.not-found-hero {
    padding: 32px 0 12px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 28px;
}

.not-found-eyebrow {
    margin: 0 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6c757d;
}

.not-found-hero h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.not-found-hero p {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.not-found-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    background: #00497f;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.not-found-link:hover,
.not-found-link:focus-visible {
    background: #00365d;
    outline: none;
}

.not-found-languages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.not-found-language {
    padding: 18px 20px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.not-found-language h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.not-found-language p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.not-found-language p:last-child {
    margin-bottom: 0;
}

.manual-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    margin-top: 4px;
}

.manual-search label {
    font-weight: 600;
}

.manual-search input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    min-width: 220px;
}

.manual-search button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: #f2f2f2;
    cursor: pointer;
}

.manual-search button:hover {
    background-color: #e5e5e5;
}

.manual-group h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-base);
}

.manual-entry {
    border: 1px solid #e5e5e5;
    background-color: #fff;
    margin-bottom: 12px;
}

.manual-entry.is-hidden {
    display: none;
}

.manual-group.is-hidden {
    display: none;
}

.manual-entry summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 600;
    list-style: none;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 4px;
    align-items: start;
}

.manual-entry summary::-webkit-details-marker {
    display: none;
}

.manual-entry summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #333;
    line-height: 1;
    width: 14px;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.manual-entry[open] summary::before {
    margin-top: -1px;
}

.manual-entry[open] summary::before {
    content: "-";
}

.entry-title {
    display: block;
    font-weight: 600;
    min-width: 0;
    grid-column: 2;
}

.entry-subtitle {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 0;
    min-width: 0;
    grid-column: 2;
    overflow-wrap: break-word;
}

.entry-links {
    padding: 6px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.entry-link {
    display: grid;
    grid-template-columns: minmax(96px, clamp(96px, 18vw, 180px)) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.lang-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 0;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
    transition: all 0.5s;
}

.lang-button:hover {
    background-color: var(--button-bg-hover);
}

.doc-type {
    color: var(--text-base);
    min-width: 0;
    overflow-wrap: break-word;
    align-self: center;
}

body.is-nav-mobile .anchor-nav-toggle {
    display: inline-flex;
}

body.is-nav-mobile .anchor-nav-desktop {
    display: none;
}

body.is-nav-mobile .anchor-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.28);
    padding: 0;
}

body.is-nav-mobile .anchor-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 100%);
    min-height: 100vh;
    background: #fff;
    box-sizing: border-box;
    padding: 24px 20px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}

body.is-nav-mobile .anchor-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

body.is-nav-mobile .anchor-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

body.is-nav-mobile .anchor-nav-close {
    border: 1px solid #ced4da;
    background: #fff;
    color: #212529;
    font: inherit;
    padding: 8px 12px;
    cursor: pointer;
}

body.is-nav-mobile .anchor-nav-panel .anchor-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    overflow: visible;
}

body.is-nav-mobile .anchor-nav-panel .anchor-nav-link {
    width: 100%;
    justify-content: flex-start;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
    min-height: 0;
    white-space: normal;
}

body.is-nav-mobile .anchor-nav-panel .anchor-nav-link:hover,
body.is-nav-mobile .anchor-nav-panel .anchor-nav-link:focus-visible,
body.is-nav-mobile .anchor-nav-panel .anchor-nav-link[aria-current="true"] {
    border-bottom-color: #00497f;
}

@media (max-width: 1023px) {
    header {
        padding: 10px 20px;
    }

    main {
        padding: 0 20px 40px 20px;
    }
}

@media (max-width: 640px) {
    .manual-search {
        flex-wrap: wrap;
    }

    .manual-search input {
        min-width: min(220px, 100%);
    }

    .entry-link {
        grid-template-columns: minmax(78px, clamp(78px, 26vw, 132px)) minmax(0, 1fr);
        gap: 10px;
    }
}
