/* ----- Theme ----- */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

html {
    font-family: "Nunito Sans";
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    scrollbar-gutter: stable;
}

body {
    font-family: "Nunito Sans";
}

/* ----- Bootstrap Overrides ----- */
.btn-primary {
    --bs-btn-bg: #1a73d3;
    --bs-btn-border-color: #1a73d3;
    --bs-btn-hover-bg: #1560b3;
    --bs-btn-hover-border-color: #1560b3;
    --bs-btn-active-bg: #1257a0;
    --bs-btn-active-border-color: #1257a0;
}

hr {
    opacity:  .5;
}

.nav-link {
    --bs-nav-link-font-size: 14px;
}

/* ----- Navbar ----- */
#header-container {
    border-bottom: 1px solid #d8d8d8;
}

@media (min-width: 992px) {
    #header-container .nav-item {
        margin-inline: 0.7rem;
    }
}

/* SVG logos often have no intrinsic dimensions, so an explicit height is
   required to keep them from collapsing or falling back to the 300x150 default. */
.navbar-brand .brand-logo {
    height: 50px;
    max-height: 50px;
    max-width: 300px;
    width: auto;
    object-fit: contain;
    transform-origin: left center;
    view-transition-name: page-logo;
}

@media (max-width: 991.98px) {
    .navbar-brand .brand-logo {
        max-width: 200px;
    }
}

@keyframes logo-fade-shrink {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.85); }
}

@keyframes logo-fade-grow {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

::view-transition-old(page-logo) {
    animation: logo-fade-shrink 500ms ease forwards;
}

::view-transition-new(page-logo) {
    animation: logo-fade-grow 500ms ease forwards;
}

@media (max-width: 991.98px) {
    .navbar-brand .brand-logo {
        max-width: 200px;
    }
}

#mobile-menu-icon{
    font-size: 36px;
}

/* ----- Body Content ----- */
.partner-library-title-banner img {
    max-width: 100%;
    height: auto;
}

#install-message-text {
    color: rgb(0, 107, 159);
}

.search-icon {
    color: #212529;
}

.latest-issue-article-title {
    color: #4a4a4a;
}

.issue-label {
    font-size: 15px !important;
    text-decoration: none;
    padding-top: 15px;
}

#latest-issue-title{
    font-size: 40px;
}

a {
    text-decoration: none;
}

#latest-issue-hr{
    margin-top: 0;
}

.login-card-container {
    position: relative;
    z-index: 999;
    margin-top: 16px;
    max-width: 425px;
    margin-left: auto;
    margin-right: auto;
}

/* Banner is forced to a fixed aspect ratio so its rendered height is always
   (container width * 3 / 8), regardless of the source image dimensions. */
.login-banner {
    position: relative;
    line-height: 0;
    overflow: hidden;
    aspect-ratio: 8 / 3;
}

    .login-banner img,
    .login-banner picture {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (min-width: 992px) {
    /* Percentage margins resolve against the container width, so -18.75%
       (= half of the 3/8 aspect ratio) always lands the card's top edge
       exactly halfway down the banner at any viewport width. */
    .login-card-container.login-card-overlap {
        margin-top: -18.75%;
        margin-bottom: 0;
    }
}

h1 {
    color: rgb(74, 74, 74);
}

#login-h1 {
    letter-spacing: .2px;
}

#login-lock-image{
    margin-top: -4px;
}

#partnerLibraryTitle {
    text-align: center;
    color: black;
    margin: auto;
    font-weight: 400;
    font-size: 40px;
    line-height: 1.2;
}

#nav-search-input{
    border-radius: 10px;
}

#latest-issue-title {
    font-weight: 400;
}

.issueTitle{
    margin-bottom: 15px;
}

.downLoadIssue{
    margin-top: 10px;
}

.swiper-slide .cover-navigation-image {
    max-width: 192px;
    max-height: 250px;
    object-fit: contain;
    /*opacity: .6;*/
    /*transition: opacity 0.3s ease, max-width 0.3s ease, max-height 0.3s ease;*/
}

.title-view-more-button {
    font-weight: 600;
}

.latest-issue-article-body {
    color: #4a4a4a;
}

/* Backwards compat when people put pictures in the partner library h1 property */
.partner-library-title-banner picture {
    display: block;
}



@media (min-width: 1200px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1140px;
    }
}

/* ----- Footer ----- */
.site-footer {
    border-top: 1px solid #d8d8d8;
}

.site-footer #custom-footer-html-container {
    margin-inline: auto;
}

.site-footer #custom-footer-html-container img {
    max-width: 100%;
    height: auto;
}

.footer-social {
    --footer-accent: #3574cc;
}

.footer-social a {
    color: var(--footer-accent);
    display: inline-flex;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    opacity: 0.75;
}

/* ----- Featured Articles ----- */
.featured-article-scroller {
    position: relative;
}

/* The track scrolls, not the wrapper, so the nav buttons can stay anchored */
.featured-article-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.featured-article-track::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .featured-article-track {
        scroll-behavior: auto;
    }
}

.featured-article-scroller .featured-article-slide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 375px;
    scroll-snap-align: center;
}

/* Fit three articles inside the scroller on desktop instead of overflowing */
@media (min-width: 992px) {
    .featured-article-scroller .featured-article-slide {
        width: 33.3333%;
        max-width: none;
    }
}

.featured-article-scroller .featured-article-row {
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
}

.featured-article-scroller .featured-article-image-col {
    flex: 0 0 145px;
    max-width: 145px;
    overflow: hidden;
}

/* Drop the utility top margin so a full-height image can't spill past the slide */
.featured-article-image-col a {
    display: block;
    height: 100%;
}

.featured-article-image-col img {
    margin-top: 0;
}

.featured-article-card {
    height: 100%;
}

/* Keep the "Read More" link inside the slide by letting the body text absorb the leftover space */
.featured-article-text-col {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.featured-article-text-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.featured-article-body {
    flex: 1 1 auto;
    min-height: 0;
}

/* Tighten the gap between adjacent articles */
.featured-article-scroller .featured-article-card {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.featured-article-nav {
    position: absolute;
    z-index: 1;
    color: #000;
    padding: 0;
}

.featured-article-nav[hidden] {
    display: none;
}

.featured-article-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.featured-article-nav-next {
    right: 20px;
}

.featured-article-nav-prev {
    left: 20px;
}

.thin-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.thin-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.thin-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.thin-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Timeline */
#issue-year-container {
    font-weight: 400;
    color: #4a4a4a;
}

.page-link {
    color: #4a4a4a;
}