/* Shared IFBA layout. Select the site's accent with a Tiki theme option. */
@import url("../../default/css/default.css");

/* Keep Tiki's accessibility landmarks available to assistive technology. */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skipnav:not(:focus) {
    position: absolute !important;
    top: -100px !important;
    left: 0 !important;
}

:root {
    --ifba-accent: #0060c9;
    --ifba-accent-rgb: 0, 96, 201;
    --ifba-accent-hover: #003064;
    --ifba-accent-hover-rgb: 0, 48, 100;
    --bs-primary: var(--ifba-accent);
    --bs-primary-rgb: var(--ifba-accent-rgb);
    --bs-link-color: var(--ifba-accent);
    --bs-link-color-rgb: var(--ifba-accent-rgb);
    --bs-link-hover-color: var(--ifba-accent-hover);
    --bs-link-hover-color-rgb: var(--ifba-accent-hover-rgb);
}

body {
    background: #fff;
    color: #212529;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a,
.btn-link,
.pagetitle a {
    color: var(--ifba-accent);
}

a:hover,
.btn-link:hover,
.pagetitle a:hover {
    color: var(--ifba-accent-hover);
}

.text-primary {
    color: var(--ifba-accent) !important;
}

.btn-primary {
    background-color: var(--ifba-accent);
    border-color: var(--ifba-accent);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--ifba-accent-hover);
    border-color: var(--ifba-accent-hover);
    color: #fff;
}

.btn-secondary {
    background-color: #6d35a6;
    border-color: #6d35a6;
    color: #fff;
}

/* The identity band uses each site's own gallery logo and natural image size. */
.container.container-std {
    max-width: none;
    width: 100%;
}

#main-navbar,
body:not(.tiki-admin) #top_modules {
    background: #fff !important;
}

#main-navbar {
    padding: 0;
}

#top_modules {
    align-items: flex-start;
    display: flex;
    padding: 12px 25px 12px 32px;
    width: 100%;
}

/* Tiki's admin layout has its own 50px dark header and white home icon. */
body.tiki-admin #top_modules {
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

#top_modules .navbar-brand {
    margin: 0;
    padding: 0;
}

#top_modules .box-logo {
    min-width: 0;
    max-width: 100%;
}

#top_modules .sitelogo-img {
    height: auto !important;
    max-height: none !important;
    max-width: min(100%, calc(100vw - 150px));
    width: auto;
}

#top_modules .box-login_box {
    margin-left: auto;
}

body:not(.tiki-admin) #top_modules .box-login_box .btn-link {
    color: var(--ifba-accent) !important;
    font-weight: 400;
}

/* The sites share a black horizontal menu. */
#topbar_modules,
#topbar_modules .navbar {
    background: #000 !important;
}

#topbar_modules {
    margin-bottom: 20px !important;
    min-height: 40px;
}

#topbar_modules .nav-link,
#topbar_modules .dropdown-toggle {
    color: #fff !important;
    font-weight: 400;
}

#topbar_modules .nav-link:hover,
#topbar_modules .nav-link:focus,
#topbar_modules .nav-item.active > .nav-link,
#topbar_modules .nav-link.active {
    color: var(--ifba-accent) !important;
}

#topbar_modules .dropdown-menu {
    background: #fff;
}

#topbar_modules .dropdown-item {
    color: #212529;
}

#topbar_modules .dropdown-item:hover,
#topbar_modules .dropdown-item:focus {
    background: #e9ecef;
    color: var(--ifba-accent-hover);
}

@media (min-width: 992px) {
    #row-middle > #col2 {
        flex: 0 0 25%;
        margin-top: -20px;
        max-width: 25%;
        padding-left: 15px;
        padding-right: 15px;
        width: 25%;
    }

    #row-middle > #col1 {
        flex: 0 0 75%;
        max-width: 75%;
        padding-left: 15px;
        width: 75%;
    }
}

.pagetitle {
    font-size: 2.25rem;
    font-weight: 400;
}

/* Restore the compact news-feed list used in the three sidebars. */
#col2 .rsslist {
    display: block !important;
    padding-left: 46px;
}

#col2 .rssitem {
    display: list-item !important;
    list-style: disc outside;
    margin: 0 0 2px;
}

#col2 .rssitem > .d-flex,
#col2 .rssitem > .d-flex > .d-flex,
#col2 .rssitem > .d-flex > .d-flex > .d-flex,
#col2 .rssitem .text-secondary {
    display: inline !important;
}

#col2 .rssitem a {
    color: var(--ifba-accent) !important;
    font-weight: 400 !important;
}

#col2 .rssitem .text-secondary {
    color: #212529 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

#col2 .rssitem .text-secondary > span::before {
    content: " (";
}

#col2 .rssitem .text-secondary > span::after {
    content: ")";
}

#col2 .rssitem .icon-warning,
#col2 .rssitem hr {
    display: none !important;
}

#footer {
    background: #000;
    color: #f4f4f4;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    width: 100%;
}

#bottom_modules {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

#bottom_modules .module {
    flex: 0 1 auto;
}

@media (max-width: 991.98px) {
    #top_modules {
        gap: 8px;
        padding: 12px 15px;
    }

    #top_modules .sitelogo-img {
        max-width: min(100%, calc(100vw - 120px));
    }

    #topbar_modules .navbar-toggler {
        border-color: #fff;
        margin: 4px 0;
    }

    #topbar_modules .navbar-toggler-icon {
        filter: invert(1);
    }
}

@media (max-width: 575.98px) {
    #top_modules {
        align-items: stretch;
        flex-wrap: wrap;
    }

    #top_modules .sitelogo-img {
        max-width: 100%;
    }

    #top_modules .box-logo {
        width: 100%;
    }

    #top_modules .box-login_box {
        margin-left: 0;
    }

    #bottom_modules {
        align-items: flex-start;
        flex-direction: column;
    }
}
