/* CPDN customization  */

/*
 Add a small Oxford 'blue' bar at the top of each page.
 This works because BOINC’s page_head() places project_banner() 
 inside Bootstrap’s .container-fluid, which has 15px left/right padding. 
 The negative horizontal margins cancel that padding, making the
 borderless bar reach both viewport edges while retaining normal 
 layout for the CPDN logo, search bar, navbar, and page content.
 Do not add it to individual pages or bootstrap.inc. 
 It will appear once at the top of every normal page through project_banner().
*/

.cpdn-top-bar {
    height: 6px;
    margin: 0 -15px;
    background-color: #002147;
}

/*  Footer customization */

.cpdn-footer {
    margin: 1rem -15px 0;
    padding: 0.45rem 15px;
    background-color: #002147;
    color: #fff;
}

.cpdn-footer-row,
.cpdn-footer-boinc-group,
.cpdn-footer-right,
.cpdn-footer-links {
    display: flex;
    align-items: center;
}

.cpdn-footer-row {
    justify-content: space-between;
    gap: 1.25rem;
}

.cpdn-footer-boinc-group {
    gap: 1rem;
}

.cpdn-footer-right {
    justify-content: flex-end;
    gap: 1.5rem;
}

.cpdn-footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 2.5rem;
}

.cpdn-footer-boinc img {
    display: block;
    height: 32px;
    width: auto;
}

.cpdn-footer-oxford img {
    display: block;
    height: 66px;
    width: auto;
}

.cpdn-footer-copyright,
.cpdn-footer-generated {
    white-space: nowrap;
}

/* BOINC fixes to light-background themes */

table a:not(.btn), .table a:not(.btn), table a, .table a, a {
    text-decoration: none;
}

table a:hover, .table a:hover, a:hover {
    text-decoration: underline;
}

blockquote {
    font-size: 15px;
}

.bg-primary a {
    color: white;
    text-decoration: underline;
}

.form-horizontal .control-label {
    padding-top: 0px;
}
