* {
    font-family: "Noto Sans", sans-serif;
}

.lang-nav-bar{
    background-color: #f9f9f9;
}
.lang-nav-bar:lang(ar){
    direction: ltr;
}

.lang-nav-bar a {
    text-decoration: underline;
    color: #002B49;
}

.lang-nav-bar li.active-language a {
    font-weight:800;
    text-decoration: none;
}

.logo {
    width: 400px;
}

.footnotes {
    font-size: 0.8em;
}

blockquote p {
    color: black;
}

.body-content a {
    color: #0071b3;
}

.footnote-back {
    font-size:24px;
    margin-left: 10px;
}

.toc ul {
    list-style-type: none;
}

.body-content h2::after{
    content: "";
    display: block;
    margin-top: 8px;
    border-bottom: 2px solid #047BC1;
}

.body-content tbody tr:nth-child(even){
    background-color:#F2FAFD;
}

.body-content table td{
    border: 1px solid #f1f1f1;
    padding:1rem;
}

/* Desktop: sticky & scrollable */
.toc-desktop {
    position: sticky;
    top: 0; /* if you have a fixed navbar, use its height here, e.g., 56px */
    max-height: 100vh; /* or: calc(100vh - 56px) when using a fixed navbar */
    overflow-y: auto;
}

/* Mobile: collapse panel can scroll when long */
.toc-mobile {
    max-height: 60vh;
    overflow-y: auto;
}

h1, h2 {
    padding-bottom: 1rem;
}

h2 {
    border-bottom: 2px solid #047BC1;
}
h3,h4,h5,h6 {
    margin-top:1rem;
    margin-bottom:1rem;
}
table {
    margin-top:1rem;
    margin-bottom:1rem;
}

table, th, td {
    border: 1px solid #cfcfcf; /* Sets a 1px solid black border */
}

table th, table td {
    padding:.5rem;
}

#navbarNav .nav-item.active-language {
    font-weight: bold;
    text-decoration: none;
}

#navbarNav .nav-item {
    text-decoration: underline;
}

#navbarNav .nav-link {
    text-decoration: none;
    color: #002B49;
}

a {
    color:#0071b3;
}

#searchLink, .blueLink {
    color: #002B49;
    font-weight: bold;
}

.alert a {
    color:#002B49;
}

/* expand collapse for desktop-toc */
/* Inner lists are hidden by default */
.toc-desktop > ul > li > ul {
    display: none;
    margin-left: .5rem;
}

/* Show when open */
.toc-desktop > ul > li.open > ul {
    display: block;
}

/* The arrow */
.toc-arrow {
    cursor: pointer;
    user-select: none;
    margin-right: 6px;
    font-size: 0.85em;
}

/* Arrow states */
.toc-arrow::before {
    content: "▶";
    color:#002B49;
}
.toc-desktop > ul > li.open > .toc-arrow::before {
    content: "▼";
    color:#002B49;
}

.toc-desktop ul {
    list-style-type: none;
}

.toc-desktop ul li {
    margin-bottom: 0.5rem;
}

.toc-desktop ul li ul li:first-child {
    margin-top: 0.5rem;
}

#toggleNav {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 2000;
    transform: translateX(-50%);
    border-radius: 0 6px 6px 0;
    padding: 8px 10px;
    cursor: pointer;
    background-color: #002B49;
    opacity:1;
    transition: opacity 0.2s;
}

#toggleNav:hover {
    opacity:.85;
}

#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #002B49;

    /* Optional aesthetics */
    opacity: 1;
    transition: opacity 0.2s;
}

#backToTopBtn:hover {
    opacity: .85;
}

/* pagefind customization */
.pagefindInputt::placeholder {
    color: #2c3034;
}

#footnotes a {
    overflow-wrap: anywhere;
}

#footnotes li, #footnotes p {
    padding: 0;
    margin: 0;
}
