/*** Site theme colors ***/
.governing-highlight, .governing-pill {
    background-color: #ed202f;
}

.governing-highlight.btn-label, .governing-pill.btn-label {
    border: #ed202f solid .1rem;
}

.governing-color, .governing-hover:hover, .governing-hover:active, .active.governing-hover {
    color: #ed202f;
}

div.governing-title.title:before {
    border-top: 12px solid #ed202f;
}

.governing-header-hat {
    background-color: #ed202f;
}

.nav-link.governing-hover, .nav-link.governing-hover:active, .nav-link.governing-hover:hover, .governing-pill, .govtech-pill {
    color: white;
}

.nav-link.governing-hover:active, .nav-link.governing-hover:hover, .nav-link.govtech-hover:active, .nav-link.govtech-hover:hover {
    text-decoration: underline;
}

.governing-header, .governing-footer {
    background-color: #000;
}

.govtech-highlight, .govtech-pill {
    background-color: #f47421;
}

.govtech-highlight.btn-label, .govtech-pill.btn-label {
    border: #f47421 solid .1rem;
}

.governing-pill, .govtech-pill {
    padding: 1px 8px;
    margin: 5px 1px;
    display: inline-block;
}

.govtech-color, .govtech-hover:hover, .govtech-hover:active, .active.govtech-hover {
    color: #f47421;
}

div.govtech-title.title:before {
    border-top: 12px solid #f47421;
}

.govtech-header-hat {
    background-color: #e6e6e6;
}

.govtech-header, .govtech-footer {
    background-color: #0f2933;
}
/*** end site theme ***/

/*** header navigation styling ***/
.hat-nav {
    display: -ms-flexbox;
    display: flex;
    color: #132934;
}
.hat-nav .hat-nav-items {
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    letter-spacing: 0.5px;
    height: 35px;
}

.header-hat {
    height: 45px;
    padding: 5px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    font-size: 1.4rem;
}

.header {
    padding: 0px 54px;
    height: 120px;
    position: fixed;
    top: 45px;
    z-index: 50;
    width: 100%;
}

.hat-nav-items {
    margin: 0 auto;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    flex-wrap: wrap;
    font-size: 1.4rem;
    justify-content: flex-end;
    overflow-wrap: anywhere;
    padding-inline-start: 0;
}

.hat-nav-items-item {
    list-style-type: none;
    font-weight: 600;
}

.hat-nav-items-item .nav-link {
    padding: 1rem 1.2rem;
    text-transform: capitalize;
}

section {
    margin-top: 165px;
}
/*** end header navigation styling ***/

.link-icon {
    aspect-ratio: 129 / 167;
    overflow-y: hidden;
    position: relative;
    display: block;
    box-shadow: 0px 5px 5px 0px #444;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.link-icon-label {
    display:block;
    padding: 12px;
    font-weight: bold;
}

.social > div {
    cursor: pointer;
    display: inline;
}

.social > * svg {
    width: 42px;
    height: 50px;
}

body {
    font-family: proximanovaregular;
    font-size: 16px;
}

.body-content {
    min-height: calc(100vh - 240px);
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.download-btn {
    position: absolute;
    top: -50px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.detail-btn {
    position: absolute;
    top: 50px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.button-links {
    position: relative;
    top: 0px;
    aspect-ratio: 129 / 167;
}

.button-links > a > span {
    width: 190px;
    text-align: center;
    margin: auto;
    display: block;
    color: #fff;
    z-index: 5;
}

.promo-hover {
    opacity: 30%;
}

.btn-label {
    color: #fff;
    text-transform: uppercase;
    font-family: proximanovaregular;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0 2rem;
    height: 4rem;
    line-height: 4rem;
    min-width: 12rem;
    margin-bottom: 1rem;
}

.btn-label:hover, btn-label > a:hover {
    color: #000;
    background-color: #fff;
}

.btn-label > a:focus {
    text-decoration: none;
}

div.title {
    font-family: ProximaNovaBold;
    padding-top: 18px;
    font-size: 25px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

div.title:before {
    content: '';
    width: 120px;
    position: absolute;
    top: 0;
}

.h5, h5 {
    font-size: 1.8rem;
}

p {
    margin: 0 0 10px;
}

.paper .thumbnail
{
    border:0;
}

.thumbnail a>img, .thumbnail>img {
    max-width: 100%;
    display: block;
    height: auto;
}

.thumbnail {
    position: absolute;
    top: 0;
}

img {
    vertical-align: middle;
}

.logo > a {
    height: auto;
    width: auto;
}

a.logo > img, a.logo > svg {
    max-width: 300px;
    height: 120px;
}

.pull-right {
    padding: 3rem 0;
}

.cdeNav, .governingNav, .govtechNav {
    color: #fff;
    display: none;
}

.govtechNav > .links > .dropdown > .dropdown-menu {
    background-color: #292a2c;
    padding: 15px 10px 5px;
}

.dropdown {
    padding-bottom: 10px;
}

.dropdown-menu {
    display: none;
    background-color: inherit;
    z-index: 2;
    padding: 15px 10px 10px;
    top: 20px;
    left: -5px;
}

.copyright {
    text-transform: uppercase;
    text-align: right;
    color: #fff;
    font-size: 1.2rem;
    padding-top: 3.2rem;
    padding-bottom: 1.6rem;
    display: grid;
    grid-gap: 1rem;
    grid-template-areas: "footer-left footer-right";
}

.copyright > a:hover {
    opacity: .8;
}

.footer-left {
    grid-area: footer-left;
    text-align: start;
}

.footer-right {
    grid-area: footer-right;
    text-align: end;
}

.paper-thumb {
    text-align: center;
}

.container {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

.right-align {
    text-align: right;
}

hr {
    margin-top: .5rem;
}

.logo-container {
    width: fit-content;
}

.papers-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    grid-gap: 10px;
}

.papers-listing-grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    grid-gap: 10px;
}

.papers-listing-grid > div, .papers-listing-grid2 > div  {
    padding-bottom: 20px;
    width: 100%;
}

.grid-container, .related-listing {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 10px;
    padding: 10px 0;
    align-items: start;    
}

.grid-container > a > img, .related-listing > a > img {
    -moz-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.grid-container > div, .detail-grid > div, .related-listing > div {
    padding: 5px 0;
}

.filter-menu {
    font-size: 16px;
    position: sticky;
    top: 165px;
    height: calc(100vh - 165px);
    overflow-y: scroll;
}

.topic-menu {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.form-control {
    font-size: inherit;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 4fr 3fr;
    grid-template-areas: "title title sidebar"
    "img abstract sidebar";
    grid-gap: 0 10px;
    padding: 10px 0;
}

.detail-abstract {
    grid-area: abstract;
}

.detail-img {
    grid-area: img;
}

.detail-img > img {
    max-width: 230px;
    box-shadow: 0px 3px 3px 2px #777;
}

.detail-img > img:hover {
    cursor: pointer;
}

.detail-sidebar {
    grid-area: sidebar;
    margin-top: 10px;
    background-color: #eee;
}

.content-list {
    padding: 0 1rem;
    position: relative;
}

.detail-title {
    grid-area: title;
}

.detail-title > h1 {
    margin: auto;
    font-family: 'ProximaNovaBold';
}

.filter-pull-right {
    padding: .45rem 0 .45rem 1rem;
    float: right !important;
    display: none;
}

.governing-header-hat {
    height: 36px;
    padding: 0px;
    position: relative;
}

.governing-header-hat > .hat-nav {
    height: 36px;
}

.governing-header-hat > .hat-nav > .hat-nav-items {
    height: 36px;
    width: auto;
}

.governing-header-hat > .hat-nav > .hat-nav-items > .hat-nav-items-item {
    height: 36px;
    display: flex;
    justify-content: space-between;
}

.governing-header-hat > .hat-nav > .hat-nav-items > .hat-nav-items-item > .nav-link {
    padding: 10px;
}

.governing-header {
    height: 130px;
    top: 0 !important;
    position: relative;
}

.governing-header > .container > .logo {
    display: flex;
    align-items: center;
}

.governing-header > .container > .logo > svg {
    max-width: 400px;
    margin: 27px auto;
    height: unset;
    display: block;
}

.governing-body .email {
    color: #ed202f;
}

.governing-body .btn {
    background-color: #ed202f;
    border-color: #ed202f;
}

.governing-body {
    margin-top: 0px;
}

section.governing-section {
    margin-top: 0px;
}

section.governing-section > .grid-container > .filter-menu {
    top: 0px;
    height: 100vh;
}

/*** page size adjustments ***/
@media only screen and (max-width: 1280px) {
    .header {
        height: 80px;
    }

    section.governing-section > .grid-container > .filter-menu, .filter-menu {
        height: 100vh;
    }

    .logo-container {
        margin-left: auto;
        margin-right: auto;
    }

    a.logo > img, a.logo > svg {
        height: 80px;
        margin: auto;
    }

    .governing-header > .container > .logo > svg {
        max-width: 400px;
        margin: 0 auto;
    }

    section {
        margin-top: 125px;
    }
}

@media only screen and (max-width: 1200px) {
    .container {
        max-width: 970px;
    }
}

@media only screen and (max-width: 992px) {
    .container {
        max-width: 750px;
    }

    .grid-container {
        grid-template-columns: 1fr 2fr;
    }

    .papers-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .papers-listing-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .topics-list {
        display: none;
    }

    .filter-pull-right {
        display: inline;
    }

    .paper-listing {
        padding: 5px !important;
    }

    .container {
        max-width: 100%;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }

    .related-listing > a > img {
        width: 50%;
        margin: 0 auto 10px auto;
        vertical-align: middle;
    }

    .detail-grid {
        display: block;
    }

    .hat-nav-items {
        font-size: 1.2rem;
        justify-content: start;
    }

    .detail-social {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }

    .detail-img > img {
        max-width: 100%;
    }

    .header {
        height: 70px;
    }

    section.governing-section > .grid-container > .filter-menu, .filter-menu {
        position: unset;
        height: unset;
    }

    a.logo > img, a.logo > svg {
        height: 70px;
    }

    section {
        margin-top: 115px;
    }

    .governing-header > .container > .logo > svg {
        max-width: 400px;
        margin: 0 auto;
        height: 70px;
    }

    .related-listing {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 480px) {
    .copyright {
        display: block;
    }

    .button-links > a > span {
        width: 95%;
        font-size: 1.2rem;
    }

    .hat-nav-items-item .nav-link {
        padding: 10px 6px;
        text-transform: capitalize;
    }
    
    .footer-right {
        text-align: start;
    }
}