/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-family:Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 1em;
    line-height: 1.5;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background:#F29647;
    color:#fff;
    text-shadow: none;
}

::selection {
    color:#fff;
    background:#F29647;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.container {
    background-color:#fff;
    width:100%;
}

.wrapper {
    margin:0 auto;
    max-width:1040px;
    width:96%;
}

.top-note {
    background-color:#def;
    color:#449;
    font-style:italic;
    margin-top:.75em;
    padding:.5em;
}

.ntj {
    background-color:#323944;
    display:block;
    font-size:1.25em;
    line-height:2;
    padding:0 1em;
}

.ntj-link,
.ntj-link a,
.ntj-link a:link,
.ntj-link a:visited
{
    color:#fff;
    display:block;
    float:left;
    text-decoration:none;
}

.ntj-cse {
    float:left;
    padding-right:2%;
    width:98%;
}

.ntj-cse .gsc-search-box {
    line-height:1;
    margin:0;
    padding:0;
    padding-top:.375em;
}

.tocnav-item {
    list-style-type:none;
}

.tocnav-item a {
    display:block;
    float:left;
    padding:.25em .5em;
    text-decoration:none;
}

.citation .paper-link {
    text-decoration:none;
}

.citation .volume {
    font-weight:bold;
}

.article-main {
    width:100%;
}

.article-main .sidebar-container .sidebar-toc {
    margin:0;
    padding:0;
}

.article-main .sidebar-container .sidebar-toc-item {
    font-size:.75em;
    line-height:1.25;
    list-style-type:none;
    margin:0;
    padding:0;
    padding-bottom:1em
}

.article-main .sidebar-container .sidebar {
    padding:0;
    padding-left:1.5em;
}

.article-main .sidebar-container .sidebar-toc-link {
    display:block;
    padding:.125em;
    text-decoration:none;
}

.article-main .sidebar-container .sidebar-toc-link:hover {
    background-color:#ffffae;
}

.journal-toc a {
    display:block;
    text-decoration:none;
}

.journal-toc li {
    list-style-type:none;
}

.journal-toc .journal-toc-volume-entry {
    background-color:#FEF6DE;
}

.journal-toc .journal-toc-volume,
.journal-toc .journal-toc-volume:link,
.journal-toc .journal-toc-volume:visited {
    color:#aab;
    font-size:.75em;
    letter-spacing:.125em;
    text-transform:uppercase;
}

.journal-toc .journal-toc-volume:hover {
    text-decoration:underline;
}

.journal-toc .journal-toc-issue,
.journal-toc .journal-toc-issue:link,
.journal-toc .journal-toc-issue:visited {
    color:#5f2f62;
/*    font-variant-caps:small-caps; */
}

.journal-toc .journal-toc-issue:hover {
    text-decoration:underline;
}

.issue-toc .issue-toc-entry {
    list-style-type:none;
}

.issue-toc .issue-toc-entry .title {
    padding:0 1em;
}

.issue-toc .issue-toc-entry .authors {
    color:#9ab;
    font-size:.9em;
    padding:0 1.1111em 1.1111em 1.1111em;
}

.issue-toc .issue-toc-entry a {
    text-decoration:none;
    font-weight:bold;
}

.issue-toc .issue-toc-entry a:link,
.issue-toc .issue-toc-entry a:visited {
    color:#333;
}

.issue-toc .issue-toc-entry a:hover {
    text-decoration:underline;
}

.volume-toc .volume-toc-item {
    list-style-type:none;
}

.volume-toc .volume-toc-item a {
    display:block;
    padding-bottom:1em;
    text-decoration:none;
}

.toc-container {
    padding-bottom:1em;
}

.footer-container,
.header-container {
    padding:1em 0;
}

.footer-container {
    background-color:#F29647;
    color:#fff;
}

.copyright {
    color:#fff;
    padding-top:1em;
}

.copyright-container {
    background-color:#323944;
    min-height:12em;
}

@media (min-width: 48em) {
    .article-main,
    .article-main .abstract-container,
    .article-main .sidebar-container {
        padding:0;
        margin:0;
    }

    .article-main .abstract-container {
        float:left;
        width:66.66667%;
    }

    .article-main .sidebar-container {
        float:left;
        width:33.33333%
    }

    .journal-toc .journal-toc-volume-entry,
    .issue-toc .issue-toc-entry {
        float:left;
        width:30%;
        padding:.5%;
        margin:.5%;
        height:15em;
        overflow:hidden;
    }

    .ntj-cse,
    .ntj-link {
        padding:0;
        width:50%;
    }

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
