/* Registry section page styles.

   developer:   marionm
   requires:    /common/framework/css/framework.en.css
                /common/templates/www.wolframphysics.org/css/global.css.en
   ========================================================================== */

/* ==========================================================================
   shared styles
   ========================================================================== */

html {  }

main {
    display: grid;
    grid-template-areas: 'section';
    grid-template-columns: 1fr;
    min-height: calc(100vh - 3rem);
    position: relative;
}

section {
    grid-area: section;
    margin: 0 auto;
    max-width: 54rem;
    padding: 2rem 0 6rem 0;
    position: relative;
    width: calc(100% - 6rem);
}

p {
    color: #404040;
    line-height: 1.5;
    margin-bottom: 1rem;
}

a { color: #1f4d80; }

a:hover { color: #b50579; }

#background {
    background: #08234f linear-gradient(340deg, #02265d 25%, #7e04b5 100%);
    content: '';
    display: block;
    height: 100vh;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: -1;
}

@supports (mix-blend-mode: multiply) {
    #background:before {
        background: transparent url('/img/registry-background.jpg') no-repeat top center fixed;
        background-size: 120%;
        content: '';
        display: block;
        height: 100%;
        mix-blend-mode: multiply;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: -1;
    }
}

/* ==========================================================================
   index page styles
   ========================================================================== */

/* heading
   ========================================================================== */

#registry-index h1 {
    color: #fff;
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1.2;
    padding-bottom: 1.5rem;
}

/* toolbar
   ========================================================================== */

#index-toolbar {
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

#index-toolbar ul {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

#index-toolbar li {
    align-items: center;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-left: 1rem;
}

#index-toolbar li.linked {
    cursor: pointer;
    opacity: .8;
}

#index-toolbar li.linked:hover { opacity: 1; }

#index-toolbar input[type=text] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m10.75 4a6 6 0 1 1 -6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0 -7-7z' fill='%23fff'/%3E%3Cpath d='m20.25 20.5-5.5-5.5' fill='none' stroke='%23fff' stroke-miterlimit='10'/%3E%3C/svg%3E");
    background-position: top .125rem right .25rem;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .8);
    height: 1.5rem;
    margin: 0;
    padding: 0 .5rem;
    width: 10rem;
}

#index-toolbar input[type=text]::placeholder {
    color: #fff;
    font-size: .75rem;
    opacity: 1;
}

#index-toolbar input[type=text]:-ms-input-placeholder {
    color: #fff;
    font-size: .75rem;
}

#index-toolbar input[type=text]::-ms-input-placeholder {
    color: #fff;
    font-size: .75rem;
}

#index-toolbar input[type=text]:focus {
    border: 1px solid rgba(255, 255, 255, .8);
    outline: none;
}

#index-toolbar .icon {
    height: 1rem;
    margin-right: .25rem;
    opacity: .7;
    width: 1rem;
}

#index-toolbar select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    color: #fff;
    display: block;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    max-width: 100%;
    padding: 0;
    width: 100%;
}

#index-toolbar select::-ms-expand { display: none; }

#index-toolbar select:focus {
    border-color: rgba(255, 255, 255, .6);
    color: rgba(255, 255, 255, .6);
    outline: none;
}

#index-toolbar select option { font-weight: normal; }

/* grid
   ========================================================================== */

#index-grid {
    display: grid;
    grid-gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    margin: 1.5rem 0 4rem 0;
}

#index-grid a {
    --notchSize: .5rem;
    filter: drop-shadow(0 0 .5rem rgba(0, 0, 0, .5));
    position: relative;
    transition: opacity .15s ease-in-out, box-shadow .15s ease-in-out, background-color .15s ease-in-out;
}

#index-grid a:before {
    -webkit-backdrop-filter: blur(.25rem);
    -webkit-clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 100% 0%, 100% calc(100% - var(--notchSize)), calc(100% - var(--notchSize)) 100%, 0% 100%, 0% 0%);
    backdrop-filter: blur(.25rem);
    background-color: rgba(16, 14, 104, .45);
    bottom: 0;
    clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 100% 0%, 100% calc(100% - var(--notchSize)), calc(100% - var(--notchSize)) 100%, 0% 100%, 0% 0%);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background-color .15s ease-in-out;
    z-index: -1;
}

#index-grid a:hover:before { background-color: rgba(16, 14, 104, .65); }

#index-grid a:hover p {
    opacity: 1;
    transition: opacity .15s ease-in-out;
}

#index-grid a:hover .code {
    opacity: 1;
    transition: opacity .15s ease-in-out;
}

#index-grid .icon-wrapper {
    background-color: #1a132a;
    height: 8rem;
    opacity: 1;
    padding: 1rem .5rem;
    width: 100%;
}

#index-grid .icon {
    align-items: center;
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: center;
}

#index-grid .icon img {
    max-height: 100%;
    max-width: 100%;
}

#index-grid figcaption { padding: .75rem 0; }

#index-grid figcaption p {
    color: #fff;
    margin: 0;
    opacity: .7;
    text-align: center;
    transition: opacity .15s ease-in-out;
    width: 100%;
}

#index-grid .number {
    align-items: center;
    display: flex;
    flex-direction: row;
    font-size: 1.1rem;
    font-weight: 400;
    justify-content: center;
}

#index-grid .number:before {
    align-self: flex-start;
    color: rgba(159, 205, 255, .9);
    content: 'wm';
    font-size: 65%;
    font-weight: 300;
    margin-right: 2pt;
    margin-top: 2pt;
}

#index-grid .number span {
    align-self: flex-end;
    color: rgba(159, 205, 255, .9);
    font-size: 70%;
    font-weight: 300;
    margin-bottom: 2.5pt;
    margin-left: 2pt;
}

#index-grid .code {
    font-size: 80%;
    margin-top: -2pt;
    opacity: .7;
    position: relative;
    text-align: center;
    transition: opacity .15s ease-in-out;
}

#index-grid .deco code {
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: 80%;
    position: relative;
    top: 2pt;
}

/* pagination
   ========================================================================== */

#index-pagination ul {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#index-pagination li a {
    align-items: center;
    color: rgba(255, 255, 255, .6);
    display: flex;
    flex-direction: row;
    font-size: .75rem;
    height: 1.5rem;
    justify-content: center;
    margin: 0 .25rem;
    width: 1.5rem;
}

#index-pagination li a:hover,
#index-pagination li a.active {
    background-color: rgba(16, 14, 104, .65);
    box-shadow: 0 0 .5rem 0 rgba(0, 0, 0, .4);
    color: #fff;
}

/* api link
   ========================================================================== */

#index-apilink {
    align-items: center;
    border-top: 1px solid rgba(217, 217, 217, 0.25);
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: calc(1rem * 2);
    padding: calc(1rem * 2) 0 0 0;
}

#index-apilink a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

#index-apilink a:hover { color: white; }

/* ==========================================================================
   shingle page styles
   ========================================================================== */

/* heading
   ========================================================================== */

#registry-shingle h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.25;
    padding-bottom: 1.5rem;
    position: relative;
}

#registry-shingle h1 a {
    color: #fff;
    position: relative;
}

#registry-shingle h1 a:hover { color: rgba(159, 205, 255, .8); }

#registry-shingle h1 a .back {
    font-weight: 300;
    left: -.25rem;
    opacity: .3;
    position: absolute;
    transform: scale(1.4) translate(-.6rem, -.1rem);
    transition: transform .15s ease-in-out;
}

#registry-shingle h1 a:hover .back {
    opacity: .5;
    transform: scale(1.4) translate(-.75rem, -.1rem);
}

/* grid
   ========================================================================== */

#registry-shingle .shingle-grid {
    --notchSize: .75rem;
    background-color: transparent;
    filter: drop-shadow(0 0 .5rem rgba(0, 0, 0, .25));
    margin-bottom: 1rem;
    padding-bottom: 2rem;
    position: relative;
    width: 100%;
}

#registry-shingle .shingle-grid:before {
    -webkit-backdrop-filter: blur(.25rem);
    -webkit-clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 100% 0%, 100% calc(100% - var(--notchSize)), calc(100% - var(--notchSize)) 100%, 0% 100%, 0% 0%);
    backdrop-filter: blur(.25rem);
    background-color: rgba(16, 14, 104, .45);
    bottom: 0;
    clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 100% 0%, 100% calc(100% - var(--notchSize)), calc(100% - var(--notchSize)) 100%, 0% 100%, 0% 0%);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

/* hero
   ========================================================================== */

#registry-shingle .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.5rem;
    padding: 0;
}

#registry-shingle .hero .left {
    align-self: center;
    padding: 0;
    padding: 4rem 2rem;
    position: relative;
}

#registry-shingle .hero .left:after {
    content: '';
    padding-top: 100%;
}

#registry-shingle .hero .left .ratio img {
    background-color: #1a132a;
    box-shadow: 0 0 1rem 0 rgba(26, 19, 42, .75);
    max-height: 20rem;
    object-fit: contain;
    padding: 1.5rem;
    top: 0;
    width: 100%;
}

#registry-shingle .hero .left .ratio .iterate {
    bottom: -.75rem;
    position: relative;
}

#registry-shingle .hero .left .ratio .iterate p {
    color: rgba(255, 255, 255, 0.7);
    font-size: .55rem;
    font-style: italic;
    font-weight: 300;
}

#registry-shingle .hero .right {
    padding: 4rem 2rem 4rem 0;
    position: relative;
}

#registry-shingle .hero .right h2 {
    align-items: center;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-size: 4.5rem;
    font-weight: 300;
    height: 4.5rem;
    justify-content: flex-start;
    margin-bottom: 0;
    position: relative;
}

#registry-shingle .hero .right h2 .wm {
    align-self: flex-start;
    color: #9fcdff;
    font-size: 60%;
}

#registry-shingle .hero .right h2 .iterate {
    align-self: flex-end;
    color: #9fcdff;
    font-size: 60%;
    margin-bottom: 2pt;
}

#registry-shingle .hero .right .rules {
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 2.25rem;
    justify-content: flex-start;
    margin: 2.0rem 0 2.5rem 0;
}

#registry-shingle .hero .right .rules .label {
    color: #9fcdff;
    font-size: .6875rem;
    letter-spacing: 1pt;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

#registry-shingle .hero .right .rules p {
    color: rgba(210, 231, 255, .9);
    font-weight: 300;
    letter-spacing: 1pt;
    line-height: 1.1;
    margin: 0;
    position: relative;
}

#registry-shingle .hero .right .rules p code {
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: 60%;
    position: relative;
    top: .5rem;
}

#registry-shingle .hero .right .icon-wrapper .label {
    color: #9fcdff;
    cursor: pointer;
    font-size: .6875rem;
    letter-spacing: 1pt;
    margin-bottom: .25rem;
    padding-bottom: .25rem;
    position: relative;
    text-transform: uppercase;
}

#registry-shingle .hero .right .icon-wrapper .label.toggle:after {
    content: "\2023";
    font-size: 150%;
    margin-left: 2pt;
    opacity: .75;
    position: absolute;
    top: -.2rem;
}

#registry-shingle .hero .right .icon-wrapper .label.toggle:hover:after { opacity: 1; }

#registry-shingle .hero .right .icon-wrapper .label.toggle-active:after {
    content: "\00D7";
    font-size: 150%;
    margin-left: 2pt;
    position: absolute;
    top: -4pt;
}

#registry-shingle .hero .right .icon-wrapper figure {
    cursor: pointer;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

#registry-shingle .hero .right .icon-wrapper figure .rule-coder-copy {
    align-items: center;
    background: rgba(16, 14, 104, .45);
    bottom: -2rem;
    color: #fff;
    display: flex;
    flex-direction: row;
    font-size: .6875rem;
    height: 1.5rem;
    justify-content: center;
    left: -1pt;
    letter-spacing: 1pt;
    opacity: 0;
    padding: 0 .65rem;
    position: absolute;
    text-transform: uppercase;
    transition: opacity .15s ease-in-out;
    white-space: nowrap;
    width: auto;
    z-index: 10;
}

#registry-shingle .hero .right .icon-wrapper figure:hover .rule-coder-copy { opacity: 1; }

#registry-shingle .hero .right .icon-wrapper figure img {
    box-shadow: 0 0 .5rem 0 rgba(26, 19, 42, .75);
    width: 100%;
}

#registry-shingle .hero .right .icon-wrapper figure figcaption.rulecodesub {
    opacity: 1;
    position: relative;
    transition: opacity .15s ease-in-out, visibility .15s ease-in-out, height .15s ease-in-out;
}

#registry-shingle .hero .right .icon-wrapper figure figcaption.rulecodesub.rulehidden {
    opacity: 0;
    transition: opacity .15s ease-in-out, visibility .15s ease-in-out, height .15s ease-in-out;
}

#registry-shingle .hero .right .icon-wrapper figure figcaption.rulecodesub .rule-coder {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: flex-start;
}

#registry-shingle .hero .right .icon-wrapper figure figcaption.rulecodesub .rule-coder p {
    color: rgba(255, 255, 255, .7);
    display: flex;
    flex-direction: column;
    font-size: .75rem;
    letter-spacing: .5pt;
    margin: 0;
    padding: 0rem 2rem 0 0;
}

#registry-shingle .hero .right .icon-wrapper figure figcaption.rulecodesub .rule-coder p span { margin: 0 0 2pt 0; }

#registry-shingle .hero .right .icon-wrapper figure figcaption.rulecodesub .rule-coder p span:after {
    content: "\2192";
    margin-left: 2pt;
}

#registry-shingle .hero .right .icon-wrapper figure figcaption.rulecodesub .rule-coder p span:last-of-type:after { display: none; }

/* copy to clipboard
   ========================================================================== */

.clipboard-hover {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.clipboard-label {
    background: rgba(16, 14, 104, .45);
    bottom: -1.5rem;
    color: #fff;
    display: inline-block;
    font-size: .6875rem;
    letter-spacing: 1px;
    opacity: 0;
    padding: .5rem;
    position: absolute;
    text-transform: uppercase;
    transition: opacity .15s ease-in-out;
}

.icon-wrapper .clipboard-label { bottom: -2rem; }

.clipboard-hover:hover .clipboard-label { opacity: 1; }

.clipboard-copy {
    background-color: #f7f7f7;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
    color: #494949;
    display: none;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 13px;
    left: -999999px;
    line-height: 1.3;
    padding: 20px;
    position: absolute;
    top: 0;
    white-space: pre-wrap;
    width: 100%;
    word-break: break-all;
    z-index: 999999;
}

.clipboard-copy.show-code {
    display: block !important;
    left: 0;
    top: 0;
}

.clipboard-copy.clipboard-hover:active {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}

.clipboard-close {
    cursor: pointer;
    display: none;
    height: 30px;
    margin-top: 5px;
    position: absolute;
    right: 5px;
    text-align: center;
    top: 2px;
    width: 30px;
    z-index: 999998;
}

.clipboard-close.visible { display: block; }

/* notebook
   ========================================================================== */

#registry-shingle .notebook ul {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 1rem 2rem 1rem 2rem;
    width: 100%;
}

#registry-shingle .notebook li { margin-left: 1.35rem; }

#registry-shingle .notebook li a {
    align-items: center;
    color: #fff;
    display: flex;
    flex-direction: row;
    font-size: .6875rem;
    justify-content: flex-end;
    letter-spacing: 1pt;
    opacity: .7;
    text-transform: uppercase;
    white-space: nowrap;
}

#registry-shingle .notebook li a img {
    height: 1rem;
    margin-right: .35rem;
    width: 1rem;
}

#registry-shingle .notebook li a:hover { opacity: 1; }

#registry-shingle .notebook #notebook-embed {
    background-color: #fff;
    margin: 0 auto;
    position: relative;
    width: calc(100% - 4rem);
    z-index: 1;
}

#registry-shingle .notebook #notebook-embed.notebook-embed-shown {
    -webkit-mask-image: none;
    height: auto;
    mask-image: none;
    max-height: 100%;
}

#registry-shingle .notebook .notebook-masker {
    align-items: center;
    display: none;
    flex-direction: row;
    height: 4.5rem;
    justify-content: center;
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
}

#registry-shingle .notebook .notebook-masker.notebook-masker-shown { margin-top: 0; }

#registry-shingle .notebook .notebook-masker button {
    -webkit-appearance: none;
    align-items: center;
    appearance: none;
    background-color: transparent;
    border-radius: 3pt;
    border: 1px solid rgba(181, 5, 121, .8);
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-size: .6875rem;
    height: 1.25rem;
    justify-content: center;
    letter-spacing: 1pt;
    margin: 0;
    padding: 0 1rem;
    text-transform: uppercase;
    width: auto;
}

#registry-shingle .notebook .notebook-masker button:before { content: 'show more'; }

#registry-shingle .notebook .notebook-masker button:after {
    content: '\2039';
    transform: rotate(-90deg) translate(1pt, 2pt);
}

#registry-shingle .notebook .notebook-masker button.button-shown {
    background-color: rgba(181, 5, 121, .7);
    color: #fff;
}

#registry-shingle .notebook .notebook-masker button.button-shown:hover {
    background-color: #b50579;
    color: #fff;
}

#registry-shingle .notebook .notebook-masker button.button-shown:before { content: 'show less'; }

#registry-shingle .notebook .notebook-masker button.button-shown:after {
    content: '\2039';
    transform: rotate(90deg) translate(0pt, -2pt);
}

#registry-shingle .notebook .notebook-masker button:hover {
    background-color: rgba(181, 5, 121, .7);
    color: #fff;
}

/* ==========================================================================
   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) {
    section {
        max-width: 100vw;
        padding: 2rem 0 10rem 0;
        width: calc(100vw - 4rem);
    }

    #index-toolbar ul {
        align-items: flex-start;
        flex-direction: column;
    }

    #index-toolbar li {
        margin-bottom: .5rem;
        margin-left: 0;
        margin-top: .5rem;
    }

    #index-toolbar input[type=text] { margin: 0; }

    #index-grid { grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }

    #registry-shingle .hero { grid-template-columns: 1fr; }

    #registry-shingle .hero .right { padding: 0 2rem; }

    #registry-shingle .hero .right h2 {
        font-size: 12vw;
        height: 12vw;
    }

    #registry-shingle .hero .right .rules { margin: 2rem 0 1.5rem 0; }

    #registry-shingle .hero .right .icon-wrapper figure {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }

    #registry-shingle .hero .right .icon-wrapper figure img { width: 75%; }

    #registry-shingle .hero .right .icon-wrapper figure figcaption.rulecodesub.rulehidden { height: 0; }

    #registry-shingle .hero figure.left:after {
        content: '';
        padding-top: 0;
    }

    #registry-shingle .notebook ul {
        align-items: flex-end;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    #registry-shingle .notebook ul li {
        margin-bottom: .25rem;
        margin-left: 0;
        margin-top: .25rem;
    }

    #registry-shingle .notebook #notebook-embed { width: calc(100% - 2rem); }

    #registry-shingle .notebook .notebook-masker {
        height: 4rem;
        margin-top: -2rem;
    }
}

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

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

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

@media print {
}