/* Styles for all notes-related pages: individual notes, chapter/section/page
   notes listings, and the notes table of contents (formerly separate
   notes-chapter.en.css/notes-section.en.css/notes-page.en.css/notes-toc.css.en
   -- merged since between them there was only one real rule and one small
   rule block outside of this file). Page-type-specific rules below are
   scoped with the html.<type> class each renderer sets.

   developer:   marionm
   requires:    /nks/css/shared.css.en
   ========================================================================== */

/* chapter notes pages
   ========================================================================== */

html.notes-chapter #content section > div:last-child hr { display: none; }

/* notes table of contents
   ========================================================================== */

html.notes-toc #content a {
    color: var(--shared-gray-heading);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

html.notes-toc #content a:last-child { margin-bottom: 0; }

html.notes-toc #content a span { color: var(--shared-red); }

html.notes-toc #content a:focus-visible span,
html.notes-toc #content a:hover span { color: var(--fw-black); }

/* text version of page
   ========================================================================== */

#content .text-content { margin: 0 auto; }

#content .text-content p {
    font-size: 1em;
    line-height: 1.65;
    margin-bottom: 1em;
}

#related-pages .thumbnails img {
    border: 1px solid #e5e5e5;
    box-shadow: -2px 2px 5px #d9d9d9;
    box-sizing: content-box;
    display: inline-block;
    transition: border .25s;
}

html.reduced-motion #related-pages .thumbnails img { transition: none; }

#related-pages .thumbnails a:focus-visible img,
#related-pages .thumbnails a:hover img { border: 1px solid var(--shared-thumbnail-hover-border); }

/* classes generated by mathematica
   ================================== */

#content .text-content .notehead {
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 .75em;
    padding-left: 1rem;
    position: relative;
}
#content .text-content .notehead:before {
    background: var(--fw-black);
    content: '';
    height: 6px;
    left: 0;
    position: absolute;
    top: .5rem;
    width: 6px;
}

#content .text-content .notehead img { display: none; }

#content .text-content .notesubhead { font-weight: 700; }

/* names index tooltips
   ========================================================================== */

.names-index-modal {
    background: rgba(0, 0, 0, .5);
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--shared-z-overlay);
}

.names-index-link {
    color: var(--shared-content-link);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.names-index-link:focus-visible,
.names-index-link:hover { color: var(--shared-content-link-hover); }

.names-index-tooltip {
    bottom: auto;
    cursor: default;
    display: none;
    left: 0;
    margin: auto;
    padding-top: .5rem;
    position: absolute;
    right: auto;
    top: 1.25rem;
    white-space: normal;
    z-index: var(--shared-z-overlay-top);
}

html:not(.__600):not(.__320) .names-index-tooltip:before {
    background: url('/nks/img/names-index-down.png') no-repeat;
    content: '';
    display: block;
    height: 11px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: -.1rem;
    width: 21px;
    z-index: var(--shared-z-overlay-top);
}

.names-index-box {
    background: var(--fw-white);
    border-radius: 5px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, .5);
    color: var(--fw-black);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 0;
    padding: .5rem 1rem .9rem;
    text-align: left;
    width: 300px;
}

html.__600 .names-index-box,
html.__320 .names-index-box { width: 100%; }

.names-index-close {
    background: none;
    border: none;
    color: #a9a9a9;
    cursor: pointer;
    display: none;
    font-size: inherit;
    height: 30px;
    line-height: 30px;
    padding: 0;
    position: absolute;
    right: 0;
    text-align: center;
    top: .5rem;
    width: 30px;
    z-index: var(--shared-z-overlay-top);
}

.names-index-close:hover,
.names-index-close:focus-visible { color: var(--shared-content-link-hover); }

html.__600 .names-index-close,
html.__320 .names-index-close { display: block; }

.names-index-tooltip .term,
.names-index-tooltip .indent {
    display: inline-block;
    width: 100%;
    word-wrap: break-word;
}

.names-index-tooltip .term {
    line-height: 1.5;
    padding: .25rem 1rem .25rem 0;
    position: relative;
}

.names-index-tooltip .indent {
    font-size: .875rem;
    line-height: 1.3;
    padding-left: 1rem;
}

/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for large screens (1200px)
   ========================================================================== */

@media all and (max-width: 1200px) {}

/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {}

/* styles for small screens (600px)
   ========================================================================== */

@media all and (max-width: 600px) {
    #related-notes  .cols-1__600 { column-count: 1; }
}

/* styles for minimum supported screen width (320px)
   ========================================================================== */

@media all and (max-width: 320px) {}

/* printer styles
   ========================================================================== */

@media print {}