/* THIS SECTION WAS ALL WRITTEN BY SILVERCHAIR */

    [data-sitename = "physicstoday"] .hero-row {
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.50)), url('/data/SiteBuilderAssetsOriginals/Live/Images/apl/hero-bg-journal.jpg');
    }

    .article-body a:visited {
        color: #06c !important;
    }

    .fig-section a:visited {
        color: #fff !important;
    }

    .fig-caption a:visited {
        color: #06c !important;
    }

    .ref-content .volume {
        font-weight: bold !important;
    }

    .article-top-widget span.pipe {
        display: none !important;
    }

    .article-top-widget span.article-date {
        display: none !important;
    }

/* EVERYTHING ABOVE THIS WAS WRITTEN BY SILVERCHAIR */

/* Logo size */
.journal-header .journal-header_content .journal-logo_wrap img {
    max-height: 24px;
    padding: 0;
}

/* header banner ad height */
#placement_576697_adBlockHeader {
    height: 90px !important;
}

@media (max-width: 970px) {
    .widget-instance-HeaderAd img {
        height: auto;
    }
}

/* PT wide setting for images */
img {
    height: auto;
}

a.link.link-uri {
    font-weight: normal;
}

/* search menu width and alignment */
.navbar-search-container.mobile-dropdown.search-dropdown {
    width: 450px;
    padding-left: calc(30vw - 230px);
}

    /* Homepage custom main area widget styling */
        /* "Latest content" positioning */
        .theme-homepage-layout div[class*=sub-row]>.widget-dynamic__header {
            padding-left: 0;
        }

        /* squish 6 block down to 4 block responsively */
        .theme-homepage-layout div[class*=pt-featured] > .widget-dynamic-inner-wrap {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
        }

        .pt-featured .widget-dynamic__header {
            display: none;
        }

        .pt-featured .widget-SelectableContentList.widget-instance-Home_MainContentB0B0B0B2home-SelectableContentList-Featured {
            box-sizing: border-box;
            grid-column: span 2;
        }

        .pt-featured .widget-SelectableContentList.widget-instance-Home_MainContentB0B0B0B2home-SelectableContentList-Featured::before {
            content: "Featured content";
            text-transform: uppercase;
            margin-top: 2px;
            margin-bottom: .5rem;
            display: block;
            text-align: left;
            font-weight: 700;
            font-size: 24px;
            padding-bottom: .25rem;
            border-bottom: 2px solid #03639c;
        }

        .pt-featured > .widget-dynamic-inner-wrap > .widget-SelfServeContent.widget-instance-physicstoday_PT-cover {
            border: none;
        }

        .widget-instance-Home_MainContentB0B0B0B1::before {
            content: "Latest content";
            text-transform: uppercase;
            margin-top: 2px;
            margin-bottom: .5rem;
            display: block;
            text-align: left;
            font-weight: 700;
            font-size: 24px;
            padding-bottom: .25rem;
            border-bottom: 2px solid #03639c;
        }

        .theme-homepage-layout div[class*=sub-row]>.widget-dynamic__header {
            padding-bottom: 0;
        }

/* Sidebar widget vertical spacing */
    .news .column2 .widget-dynamic-inner-wrap > div.widget-instance-physicstoday_PT-Subscribe {
        border: 0;
        margin-bottom: 0;
    }

    .news .column2 .widget-dynamic-inner-wrap > div.widget-instance-physicstoday_PT-emails,
    .news .column2 .widget-dynamic-inner-wrap > div.widget-instance-physicstoday_from-the-vault {
        border: 0;
        margin-bottom: 1.5em;
    }

    .sidebar-widget_wrap .widget-dynamic-inner-wrap > div:nth-of-type(-n+2) {
        margin-top: 0;
    }

    .page-column--right .widget-dynamic-inner-wrap > div:nth-of-type(-n+2) {
        margin-top: 0;
    }

    .widget-SelectableContentList .widget-dynamic-content.advanced-view .widget-dynamic-entry-wrap .widget-dynamic-entry {
        margin-bottom: 0;
    }

    .cms-post-view_wrap .widget-DynamicWidgetLayout:nth-of-type(n+5) {
        margin-top: 1.5em;
    }

    /* Sticky sidebar ad */
        /* Composer */
        .page-column--right {
            position: sticky;
            top: -120px;
        }

        .page-column--right:has(#blueconic) {
            top: -560px;
        }

        /* homepage */
        .widget .widget-dynamic .column2 {
            position: sticky;
            top: -530px;    
        }

        /* print */
        .sidebar-widget_wrap {
          position: sticky;
          top: -280px;
        }

        .sidebar-widget_wrap:has(#blueconic) {
            top: -800px;
        }

        /* TOC */
        .issue-browse_content #Sidebar .sidebar-widget_wrap {
            position: sticky;
            top: -105px;
        }

/* homepage featured article */
[data-sitestyletemplate=Journal] div[class$=SelectableContentList-Featured-hero] .widget-dynamic-content.advanced-view {
    padding: 0 0 1.5rem;
}

/* homepage custom widgets to link to the TOC & Most recent online */
.selectable-content-medium .widget-dynamic-inner-wrap .widget-SelfServeContent.widget-instance-physicstoday_TOC-link,
.selectable-content-medium .widget-dynamic-inner-wrap .widget-SelfServeContent.widget-instance-physicstoday_MostRecent-link {
    border: 0;
    margin-top: -3em;
    grid-row: 2;
}

/* homepage - print article section */

    /* removes section padding */
    .theme-homepage-layout div[class*=home-row]>.widget-dynamic-inner-wrap {
        padding: 0;
    }

    /* makes widget full width */
    .widget-SelectableContentList .widget-dynamic-content {
        padding: 0;
    }

    /* make image full size */
    .news .widget-SelectableContentList .widget-dynamic-journal-image-wrap img {
        height: auto;
        width: 100%;
    }

    /* hide article label type */
    .news .widget-SelectableContentList .item .widget-dynamic-type-date-wrap {
        display: none;
    }

    /* better spacing between from the magazine images and view more link */
    .widget-dynamic-browse {
        margin-bottom: 1.5rem;
        margin-top: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px dotted black;
    }

    .home-row2 {
        background: #fff !important;
    }


/* homepage - spacing between the content widget sections */
    .theme-homepage-layout div[class*="sub-row"] {
        padding: 0;
    }

    .theme-homepage-layout div[class*="home-row"] {
        padding: 0;
    }

    .theme-homepage-layout div[class*="home-row"]:first-of-type {
        padding: 2em 0 0;
    }

/* homepage sidebar */
    /* width */
    .widget-ArticleListNewAndPopular.widget-instance-Home_MainContentB0B0B1home-article-list-new-and-popular-combined,
    .widget-SelfServeContent.widget-instance-physicstoday_PT_BC {
        width: 300px;
    }

    .widget-SelfServeContent.widget-instance-physicstoday_PT_BC {
        border: none !important;
    }

    /* spacing */
    .news .column2 .widget-dynamic-inner-wrap > div {
        margin-bottom: 1.5rem;
    }

/* sidebar most read */
    .widget-ArticleListNewAndPopular .widget-dynamic-entry-wrap .fb-item-title a {
        font-size: 1rem;
    }
    .widget-dynamic-entry:not(:first-of-type) {
        padding-top: 1em;
    }
    .fb-item-title .article-authors {
        margin-bottom: 0;
    }

/* someone made navigation background black. this fixes that for us */
#microsite-nav-menu {
  background: white;
}

/* Article styling */

    /* Print multipart references */
        .ref-content span.label {
            float: left;
        }

        .citation.mixed-citation {
            display: block;
        }

        .citation div.pub-id, .citation div.pub-id-doi {
            display: inline;
        }

        .citation div.citation-links {
            display: inline;
            margin-left: 1rem;
        }

        .citation a:not(.link-pub-id) {
            word-break: inherit;
        }

    /* Print access challenge page */
        /* width of the subscribe box */
        .widget-SelfServeContent.widget-instance-Self-serverInlinePPV_SS {
            width: 100%;
        }

    /* MathML block math centering */
        .formula-wrap {
            justify-content: center;
        }

        html .formula-wrap .disp-formula {
            width: auto;
            overflow-x: hidden
        }

        .block-child-p {
            font-family: Helvetica,Arial,sans-serif;
            font-size: 1rem;
            margin-top: 1rem;
        }

    /* Composer figures */
    figure {
        width: 100%;
    }

    figure.fullwidth {
        margin: 0 auto 20px;
    }

    .rightfloat {
        float: right;
        margin-left: 10px;
    }

    figcaption {
        margin: 0.5rem 20px;
        font-family: Georgia, Times New Roman, serif;
        line-height: 1.5;
        font-size: 0.9rem;
    }

    .fn p {
        margin: 0;
    }
    
    .body-text figure~p {
        overflow: unset;
    }

    .body-text a, .body-text em, .body-text strong, figcaption a, figcaption strong, figcaption em {
        font-family: inherit !important;
    }

    table p {
        margin: 0;
    }

    table {
        margin: 0 auto 1rem;
    }

    /* Composer and print boxed text */
    aside.boxedtext, div.boxed-text {
        margin: 0 auto 20px;
        padding: 0 20px 0;
        width: 90%;
        max-width: 900px;
        border: 1px solid black;
        border-bottom: 5px solid black;
        border-top: 5px solid black;
        border-radius: 5px;
        font-size: 16px;
        font-family: Montserrat;
        line-height: 24px;
        background: rgb(231 231 231);
    }

    aside.boxedtext h4 { /* Composer */
        font-family: Georgia;
    }

    aside.boxedtext.rightfloat { /* Composer */
        max-width: 330px;
    }

    div.boxed-text { /* Print only */
        padding: 1rem;
    }

    div.boxed-text .title { /* Print only */
        font-size: 20px;
        margin-bottom: 0.75rem;
        font-weight: bold;
    }

    /* media query for both figures and boxed text */

    @media (max-width: 600px) {
        .rightfloat {
            float: none;
            margin: 0 auto 20px;
            max-width: none;
        }
    }

    /* Composer pull quotes */
    aside.pullquote {
        width: 40%;
        float: right;
        margin: 0 1rem 0.75rem;
        border-top: 5px black solid;
        border-bottom: 5px black solid;
        padding: 1rem;
        font-size: 1.5rem;
        line-height: 1.4;
        font-family: 'Montserrat';
    }

    @media (max-width: 600px) {
        aside.pullquote {
            width: 90%;
            float: none;
            margin: 0 auto 0.75rem;
        }
    }

    .quoteauthor {
        display: grid;
        justify-content: end;
        font-size: 1.2rem;
    }

    /* Composer lists */
    .cms-post-view ul, ol {
        line-height: 1.5;
        margin-bottom: 0.75rem;
        margin-left: 3rem;
        width: 70%;
    }

    /* Composer blockquotes */
    .cms-post-view blockquote {
        margin: 1.25rem 2rem;
        width: 90%;
        line-height 1.75;
    }

    /* Composer superscripted links */
    .cms-post-view sup a {
        font-size: 0.675rem;
    }

/* Collection pages */
    .pg_Collections .widget-MultiQuerySelectableContentList .widget-dynamic-entry>div:not(.widget-dynamic-journal-image-wrap) {
        margin-left: 0;
    }

    .pg_Collections .widget-dynamic-entry {
        margin-top: 1rem;
    }

/* site-wide text styling */
.small-caps {
    font-size: inherit;
}

/* hide the print article section navigation */
.widget-ArticleJumpLinks.widget-instance-ArticleJumpLinks_Widget {
    display: none;
}

/* hide EISSN and "Topics" from Composer content */
.metadata-eissn, .keyword-wrap {
    display: none;
}