@charset "UTF-8";

:root:has(.theme-switch-checkbox:checked) {
    --bg: var(--dark1);
    --fg: var(--light1);
    --global-invert: invert(1);
    --shadowh: 0.35rem;
}

@media (prefers-color-scheme: dark) {
    :root:has(.theme-switch-checkbox:checked) {
        --bg: var(--light1);
        --fg: var(--dark1);
        --global-invert: invert(0);
        --shadowh: 1.5rem;
    }
}

.th-invert {
    filter: var(--global-invert);
    transition: filter 0.15s;
}

:root {
    font-size: 20px;
    font-family: Lato, Aptos, Helvetica, Roboto, sans-serif;
    line-height: 1.65em;
    scroll-behavior: smooth;
    display: none;

    --navbar-unit: min(2vw, 0.5rem);
}

@media print {
    :root {
        --navbar-unit: 0;
    }

    header {
        display: none;
    }

    .toc {
        display: none;
    }
}

@media (scripting: none) {
    :root {
        display: block;
    }
}

.biglink {
    text-decoration: none;
}

.bigtitle {
    margin-top: 5rem;
}

#skip-to-content {
    position: fixed;
    padding: calc(var(--navbar-unit) * 0.5);
    left: calc(var(--navbar-unit) * 0.25);
    translate: 0;
    font-weight: 900;

    border-radius: 5%;
    text-decoration: none;

    opacity: 0;

    color: black;
    filter: invert(1);
    mix-blend-mode: difference;
}

#skip-to-content:focus {
    translate: 0 calc(var(--navbar-unit) * 8);
    z-index: 10000000;
    opacity: 1;
}

.figref {
    /* text-decoration: none; */
    font-style: italic;
}

figure {
    counter-increment: fig-counter;
}

figcaption::before {
    content: 'Figure ' counter(fig-counter) ' – ';
}

figcaption {
    font-size: 0.85em;
    font-style: italic;
    width: 100%;
    text-align: center;
}

:root,
body,
#content {
    width: auto !important;
    height: auto !important;
    overflow-x: clip;
}

object {
    border: none;
    min-height: 60vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.subtitle-container a {
    font-variant-caps: all-small-caps;
    text-decoration: none;
}

sup,
sub {
    position: relative;
    top: -0.5em;
    vertical-align: top;
    font-size: 0.6em;
}

.hide {
    display: none;
}

.multiple-images {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    grid-template-rows: auto;
    margin-bottom: 1em;
}

.results-images div {
    grid-column: span 2;
}

@media (scripting: none) {
    .yesscript {
        display: none;
    }
}

header {
    position: fixed;
    top: 0;

    z-index: 5;
}

.navbar {
    display: flex;
    flex-direction: row;
    flex: 1 1;
    align-items: start;

    width: calc(100vw - var(--navbar-unit) * 5);
    height: calc(var(--navbar-unit) * 6);

    font-size: min(calc(87.5vw - var(--navbar-unit) * 30) * 0.045, 1.75rem);

    padding: calc(var(--navbar-unit) * 1);
    padding-right: calc(var(--navbar-unit) * 4);

}

.navbar-bg {
    position: fixed;
    width: 100vw;
    height: calc(var(--navbar-unit) * 8);
    background-color: var(--bg);
    transition: background-color 0.15s;
    filter: drop-shadow(0 -0.35rem var(--shadowh) var(--dark1));
}

.navbar>a {
    text-decoration: none;
}

.navbar-logo {
    position: relative;
    width: calc(var(--navbar-unit) * 24);
    flex: 0 auto;
}

.theme-switch {
    margin-left: auto;
    cursor: pointer;
}

.theme-switch-checkbox {
    display: none;
}

.scroll-tracker {
    position: relative;
    top: calc(var(--navbar-unit) * 8 - 0.1rem);
    height: 0.1rem;
    background-color: var(--fg);
    transition: background-color 0.15s;
}

article {
    counter-reset: mn-counter fig-counter;
}

main {
    padding: 15vh;
    padding-left: 12.5vw;

    --right-portion: calc(100vw - 12.5vw);
    width: min(35rem, 60vw);
    --article-paddingr: calc(var(--right-portion) - min(35rem, 60%));
    /* calc(var(--right-portion) - var(--article-paddingr)); */
    padding-right: var(--article-paddingr);

    overflow-x: clip;
}

h1 {
    margin-top: 0;
    font-size: 3rem;
    line-height: 1.25em;
    overflow-wrap: anywhere;
    width: 100%;
}

h3 {
    margin-top: 0.5rem;
    font-size: 1.35rem;
}

a {
    color: inherit;
    text-underline-offset: 2px;
}

hr {
    margin: 0;
    padding: 0;
    height: 0;
    width: 100%;
    border: solid var(--fg) 0.125rem;
    transition: border-color 0.15s;
    border-left: none;
    border-right: none;
}

.subtitle-container {
    height: 0;
    width: 100%;
    overflow-x: clip;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 0.5em;

    margin-bottom: 1.5rem;
}

.mnote-label {
    display: inline;
    counter-increment: mn-counter;
    text-decoration: none;
}

.mnote-label .mnote-label-counter::after {
    content: "[" counter(mn-counter) "]";
}

input.mnote-toggle {
    display: none;
}

.mnote .mnote-counter {
    position: absolute;
    display: inline;
    top: -0.5em;
    vertical-align: top;
    left: -0.4em;
    width: 0;
}

.mnote .mnote-counter::before {
    position: absolute;
    right: 0;
    content: counter(mn-counter);
    text-align: right;

    font-size: 0.6em;
    /* line-height: 0; */
}

.mnote {
    position: relative;
    clear: right;
    float: right;
    margin-bottom: 1rem;


    /* article padding is (roughly) split 1:3:1 between left padding, width, and right padding */
    --margin: min(100%, calc(var(--right-portion) - 100%));
    margin-right: calc(-1 * var(--margin));
    width: calc(0.6 * var(--margin));
    padding-right: calc(0.2 * var(--margin));

    border-left: solid var(--fg) 0.075rem;
    transition: border-left-color 0.15s;
}

.mnote-content {
    height: 100%;
    padding: 0 0.75em;
    display: inline-block;
    width: 100%;
    font-size: 0.75em;
    line-height: 1.45em;
    overflow-wrap: anywhere;
}

.mnote:target .mnote-content {
    background-color: #222;
}

img {
    width: 100%;
}

table,
th,
td {
    border: 1px solid var(--dark1);
    border-collapse: collapse;
    padding: 0.5em;
    text-align: left;
    vertical-align: top;
}

.toc {
    display: none;
    background: var(--bg);
    z-index: 3;
    padding: 1rem;
    border: 0.125rem solid var(--fg);
    max-height: calc(100% + 4rem);
    overflow: scroll;
}

.tocgether {
    position: fixed;
    top: calc(var(--navbar-unit) * 8);

    z-index: 3;
    height: max(12.5vw, 12.5vh);
    width: inherit;
    pointer-events: none;
}

.toc-label,
.toc {
    pointer-events: all;
}

article * {
    scroll-margin-top: calc(var(--navbar-unit) * 8 + 5rem + max(12.5vw, 12.5vh));
}


.toc-label {
    position: absolute;
    left: -12.5vw;

    display: none;
    font-size: 2rem;

    flex-direction: row;
    justify-content: center;
    align-items: center;

    width: 12.5vw;
    height: 100%;
    text-align: center;
    cursor: pointer;

    display: flex;
    height: 100%;
}

.toc-chevron {
    transform: rotateZ(0deg);
}

.tocgether:has(#toc-switch:checked) .toc-chevron {
    transform: rotateZ(90deg);
}

#toc-switch {
    display: none;
}

.toc p,
.toc ul {
    margin: 0;
}

.tocgether #toc-switch:checked+.toc {
    display: block;
}

footer:not(.ss-footerhack) {
    border-top: 0.1rem var(--fg) solid;
    padding: 2.5rem;
    background-color: var(--bg);
    transition: background-color 0.15s, border-top-color 0.15s;
    filter: drop-shadow(0 0.35rem var(--shadowh) var(--dark1));
}

div.first-row,
div.second-row,
div.third-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 40px;
    padding-right: 25px;
}

div.first-row img {
    height: 20vh;
    width: 20vh;
}

div.first-row {
    justify-content: space-between;
}

div.second-row {
    justify-content: space-between;
}

div.second-row a,
div.second-row p,
div.third-row p,
div.first-row .first-row-text {
    margin-right: auto;
    text-decoration: none;
}

div.first-row .first-row-text {
    line-height: 1.2em;
}

div.second-row a.social-link {
    margin-left: 15px;
}

div.second-row a {
    text-decoration: underline;
}

div.third-row p {
    line-height: normal;
    vertical-align: top;
}

div.social-footer-icons {
    justify-content: flex-end;
}

div.social-footer-icons img {
    margin-right: 15px;
    height: 18px;
    var(--fg)
}

div.first-row-images {
    display: flex;
    gap: 20px;
}

@media (max-width: 750px) {

    div.first-row,
    div.second-row,
    div.third-row {
        display: block;
        padding: 25px 25px 25px 40px;
    }

    div.second-row {
        padding-bottom: 12.5px;
    }

    div.third-row {
        padding-top: 12.5px;
    }

    div.first-row-images {
        width: 100%;
        justify-content: space-between;
    }

    .social-footer-icons {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }

    div.third-row p {
        line-height: inherit;
        vertical-align: top;
    }

    div.second-row a.social-link {
        margin-left: 0px;
    }
}

#igem-attribution-form {
    width: 75vw;
}


@media (max-width: 950px) {
    #igem-attribution-form {
        width: 100%;
    }

    .tocgether {
        height: max(8vw, 8vh);
    }

    .toc-label {
        left: -8vw;
        width: 8vw;
    }

    main {
        padding: 5rem 8vw 0 8vw;
        width: 84vw;
    }

    .mnote {
        display: none;
        float: none;
        left: 1.5rem;
        clear: both;
        margin: 1rem 2.5%;
        margin-right: 5%;
        margin-left: 5%;
        width: calc(97.5% - 1.5rem);
    }

    .mnote-label {
        cursor: pointer;
    }

    .mnote-label-counter::after {
        text-decoration: underline;
        text-underline-offset: 0.15em;
    }

    .mnote-toggle:checked+.mnote {
        display: inline-block;
    }
}

object {
    width: 100%;
}

@media print and (max-width: 850px) {
    .mnote {
        display: block;
    }
}

@keyframes scroll-tracker {
    from {
        width: 0;
    }

    to {
        width: 100vw;
    }
}

@keyframes knockout-secret-windup {
    from {
        transform: translateX(0%) scale(100%, 100%);
    }

    to {
        transform: translateX(20%) scale(75%, 108%);
    }
}

@keyframes knockout-secret-blastoff {
    from {
        transform: translate(20%, 0%) scale(75%, 108%);
    }

    to {
        transform: translate(-400%, -80%) scale(200%, 40%) rotateZ(35deg);
    }
}

.navbar-logo:hover>img {
    animation: knockout-secret-windup forwards ease 0.3s;
}

.navbar-logo:hover:focus:not(:active)>img {
    animation: knockout-secret-blastoff forwards linear 0.5s;
}