/* --Copyright (c) 2026 Robert A. Howell */

:root {
    font-size: 14px;
}

html {
    margin: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3 {
    margin-bottom: 0;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

#domSearchOutput {
    display: none;
    position: absolute;
    width: 500px;
    overflow: hidden;
    background-color: steelblue;
    opacity: 0;
    z-index: 5;
    height: 0;
    left: calc(-250px + 50vw);
    top: 100px;
    scale: 1.25;
    min-height: 27em;
    max-height: 80dvh;
    transition: opacity 120ms ease-in-out;
    padding: .5rem 1rem;
    border-radius: 1rem;
    box-shadow: 5px 5px 115px black;

    & #SearchOutputContainer {
        overflow: scroll;
        overflow-x: hidden;
        height: 100%;
        scrollbar-width: thin;

        & div {
            padding-top: .5rem;
            
            & .finding-title-link {
                font-weight: bolder;
            }

            & .finding-title-link:hover, div[title]:hover {
                background-color: #468aaaaa;
                cursor: pointer;
            }

            & div[data-dialog-index]:not([data-dialog-index="-1"]) {
                padding: .1rem 1rem 1rem 2rem;
                border-bottom: 1px solid darkslategrey;
            }

            &:nth-last-child(1 of [data-dialog-index="-1"]) {
                border-bottom: 2px solid darkslategrey;
            }
        }

        & .outer-finding {
                padding: .25rem 1rem 1rem 1rem;
                border-bottom: 1px solid darkslategrey;
        }

        & div[data-dialog-index] + div[title][data-dialog-index] {
            padding: .5rem 2rem 1rem 2rem;
            border-bottom: 1px solid darkslategrey;
        }

        div[title][data-dialog-index]:hover {
            background-color: #468aaaaa;
            cursor: pointer;
        }
    
        & hr.middle-hr {
            width: 100%;
        }
    
        & hr {
            border-color: steelblue;
        }
    }
}

body {
    margin: 0;

    &:has(#domSearchOutput[style="opacity: 1; display: inline-block;"]) #main {
        opacity: .45;
    }

    &:has(#domSearchOutput[style="opacity: 1; display: inline-block;"]) main[role="main"] iframe {
        opacity: .25;
    }

    &#page-view {
        height: 100%;
        display: inline-block;
    }

    #main {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        align-content: stretch;

        --iframe-width-base: 100dvw;
        --nav-projects-width: 503px;
        --nav-global-width: 305px;
        --nav-panels-min-width: 105px;
        --iframe-width-calc: calc(100dvw - var(--nav-projects-width) - var(--nav-global-width));
        --iframe-width: var(--iframe-width-calc);

        &:has(#nav-projects.nav-collapse.collapsed) {
            --iframe-width: calc(var(--iframe-width-base) - 3px - var(--nav-global-width));
        }

        &:has(#nav-global.nav-collapse.collapsed) {
            --iframe-width: calc(var(--iframe-width-base) - 3px - var(--nav-projects-width));
        }

        &:has(#nav-global.nav-collapse.collapsed):has(#nav-projects.nav-collapse.collapsed) {
            --iframe-width: calc(var(--iframe-width-base) - 3px - var(--nav-panels-min-width));
        }

        & div.nav {
            position: relative;
            line-height: 1;
            width: min-content;
            transition: width 400ms ease-in-out;

            & #nav-panels {
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-items: stretch;
                align-content: stretch;
            }

            & .page-frame-toggle {
                display: inline-block;
                cursor: pointer;
                margin-inline: 2rem;

                & .pill-toggle {
                    margin-inline: .5rem;
                    border: 1px solid black;
                    border-radius: .5rem;
                    background-color: antiquewhite;
                    display: flex;
                    width: 30px;
                    cursor: pointer;

                    & div {
                        display: inline-block;
                        width: 1rem;
                        aspect-ratio: 1;
                        background-color: green;
                        border-radius: 100%;
                        margin-inline: 1px;
                        transition: 400ms all ease-in-out;
                    }
                }

                & label {
                    cursor: pointer;
                }

                & input {
                    visibility: hidden;
                    display: none;
                }

                & #detailview {
                    display: none;
                }

                &:has(input:checked) {
                    & #frameview {
                        display: none;
                    }

                    & #detailview {
                        display: inline;
                    }

                    & #pill-display div {
                        transform: translateX(10px);
                    }
                }
            }

            & #nav-internal-links, .nav-external-links {
                width: var(--nav-global-width);

                & ul {
                    display: flex;
                    flex-direction: column;
                    gap: 2px;
                    margin: .5rem 0;

                    & li {
                        display: inline-block;
                        width: 100%;

                        & a {
                            width: 100%;
                            display: inline-block;
                            padding: .6rem 1rem;
                            border-radius: 6px;
                            text-decoration: none;
                            color: #2f4f4f;
                            transition: background .15s ease, color .15s ease;
                        }
                    }
                }

                & h2 {
                    margin: 1rem 0 .25rem;
                    padding-inline: 1rem;
                    font-size: 1rem;
                    letter-spacing: .02em;
                    color: #6b7280;
                    text-transform: uppercase;
                }

                & hr {
                    width: 100%;
                    border: none;
                    border-top: 1px solid #e5e7eb;
                    margin: 1rem 0;
                }

                & a:hover {
                    background: #fff2cc;
                    color: lightcoral;
                }

                & a:visited {
                    color: #2f4f4f;
                }

                & a:focus-visible {
                    outline: 2px solid #2d95c5;
                    outline-offset: -2px;
                    color: red;
                }
            }

            & .nav-external {
                display: inherit;

                & #nav-external-links {
                    display: flex;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    justify-content: flex-start;
                    align-items: stretch;
                    align-content: stretch;
                    height: 32px;
                    gap: 1rem;
                    margin: 1rem 0 .5rem 1rem;

                }

                & a {
                    & #GitHub-Invertocat {
                        border-radius: 100%;
                        height: 100%;
                        width: 32px;
                    }

                    &#li-in-bug {
                        & svg {
                            height: 100%;
                            width: auto;
                        }

                        &:visited {
                            color: #0000ee;
                        }
                    }
                }
            }

            & #nav-global {
                width: 100%;
                padding: 1rem .5rem;
            }

            &:has(#nav-projects.nav-collapse.collapsed) {
                width: var(--nav-global-width);

                & #nav-projects.nav-collapse.collapsed {
                    /*display: none;*/
                    opacity: 0;
                    & > * {
                        display: none;
                    }
                }
            }

            &:has(#nav-global.nav-collapse.collapsed) {
                width: var(--nav-projects-width);

                & #nav-global.nav-collapse.collapsed {
                    /*display: none;*/
                    opacity: 0;
                    & > * {
                        display: none;
                    }
                }
            }

            &:has(#nav-global.nav-collapse.collapsed):has(#nav-projects.nav-collapse.collapsed) {
                width: var(--nav-panels-min-width);
            } 

            & #nav-collapse-btn, #nav-expand-btn {
                border: none;
                width: max-content;
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 4px;
                border-radius: 2px;
                cursor: pointer;
            }

            & #nav-collapse-btn {
                margin-left: 24px;
                transition: all .3s ease-in-out;

                &.collapsed {
                    margin: 24px;
                }
            }

            & #global-nav-collapse-btn {
                cursor: pointer;

                & svg {
                    width: 24px;
                    height: 24px;
                }
            }

            & #nav-expand-btn {
                display: none;
                margin-left: calc(100% - 24px);
            }

            & #page-view-list li:hover {
                background-color: #eee;
            }
        }

        &:has(.nav.collapsed) #nav-expand-btn {
                display: inline;
            }

        & .page-view {
            width: var(--iframe-width);
            height: auto;
            flex: 1 1 auto;
        }

        & main[role="main"] {
            display: inline-grid;
            height: calc(100dvh - 20px);
            width: var(--iframe-width);
            flex: 1 1 auto;
            position: relative;

            & article {
                height: initial;
                width: clamp(400px, 100%, calc(100dvw - 255px));
                color: initial;

                &.tailored, .centered {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    padding-inline: 4em;
                    margin: 2em auto;

                    @media (min-width: 1775px) {
                        flex-direction: row;
                        align-items: flex-start;

                        & img {
                            margin-top: 150px;
                        }
                    }
                }

                &.centered:has(.content.intro) {
                    @media (min-width: 1775px) {
                        flex-direction: column;
                        align-items: center;
                    }
                }

                & img {
                    width: 450px;
                    border-radius: 8px;
                    box-shadow: 0 4px 8px black;
                }

                & .content {
                    display: flex !important;
                    flex-direction: column;
                    margin: 0 auto;
                    box-shadow: 0 4px 8px black;
                    border-radius: 8px;
                    background: #fff;
                    text-align: left;
                    font-family: 'Segoe UI', Geneva, Verdana, sans-serif;
                    padding: 4em;
                    text-wrap: pretty;
                    max-width: 80%;

                    & hgroup {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        color: #0077cc;

                        & h1 {
                            color: #0077cc !important;
                        }
                    }
                }

                & .toupper {
                    text-transform: uppercase;
                }

                & h2, h3, h4, h5 {
                    color: initial;
                }

                & h3 {
                    margin-top: 2rem;
                }

                & hgroup {
                    display: inline-block;
                }

                &#Status-Page {
                    & table.subdomain {
                        border-collapse: collapse;
                    }

                    

                    & .hidden-test-btn {
                        opacity: 0;
                        cursor: pointer;
                        margin-left: 0.5rem;
                    }

                    & .hide-domain-test-btn {
                        &:has(.hidden-test-btn:focus) .hidden-test-btn,
                        &:hover .hidden-test-btn {
                            opacity: 1;
                        }
                    }

                    & .hide-site-test-btn {
                        &:has(.open-hidden-btn:focus, .hidden-test-btn:focus) .hidden-test-btn,
                        &:hover .hidden-test-btn {
                            opacity: 1;
                        }
                    }

                    & .heading-height {
                        min-height: 2rem;
                    }

                    & .row-height {
                        height: 1.75rem;
                    }
                }

                &#Database-Page {
                    &.database-card-grid {
                        display: grid;
                        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
                        grid-auto-rows: minmax(0, auto);
                        gap: 1.5rem;
                        align-items: stretch;
                        padding: 2rem;
                    }

                    &.database-card-grid > div {
                        display: grid;
                        grid-row: span 3;
                        grid-template-rows: subgrid;
                        min-width: 0;
                        padding: 1.25rem;
                        border: 1px solid #d6dee6;
                        border-radius: 14px;
                        background: #fff;
                        box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
                    }

                    &.database-card-grid > div > a,
                    &.database-card-grid > div > .app-internal-link {
                        align-self: start;
                        width: fit-content;
                    }
                    &.database-card-grid > div > a:visited,
                    &.database-card-grid > div > .app-internal-link:visited {
                        color: #2f4f4f;
                    }
                    &.database-card-grid > div > a:focus-visible,
                    &.database-card-grid > div > .app-internal-link:focus-visible {
                        color: red;
                    }

                    &.database-card-grid table {
                        width: 100%;
                        min-width: 0;
                        border-collapse: collapse;
                        table-layout: fixed;
                        align-self: stretch;
                    }

                    &.database-card-grid caption {
                        margin-bottom: 0.75rem;
                        color: #333;
                        font-size: 1.1rem;
                        font-weight: 700;
                        text-align: left;
                    }

                    &.database-card-grid td {
                        overflow: hidden;
                        padding: 0.45rem 0.6rem;
                        border-bottom: 1px solid #e5e7eb;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                    }

                    &.database-card-grid tr:first-child td {
                        color: #374151;
                        background-color: #f3f6f9;
                        font-weight: 700;
                    }

                    &.database-card-grid tr:last-child td {
                        border-bottom: none;
                    }

                    @supports not (grid-template-rows: subgrid) {
                        &.database-card-grid > div {
                            display: flex;
                            flex-direction: column;
                            gap: 0.75rem;
                        }

                        &.database-card-grid table {
                            flex: 1;
                        }
                    }
                }
                &#Access {
                    max-width: 1100px;
                    margin: 0 auto;
                    padding: 2rem;

                    & .access-request-header {
                        margin-bottom: 2rem;

                        & h3 {
                            margin-top: 0;
                            font-size: 1.8rem;
                        }

                        & p {
                            max-width: 850px;
                            color: #4b5563;
                            line-height: 1.6;
                        }
                    }

                    & .access-request-panel {
                        overflow: hidden;
                        border: 1px solid #d1d5db;
                        border-radius: 12px;
                        background-color: #fff;
                        box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
                    }

                    & .access-request-panel-header {
                        display: flex;
                        justify-content: space-between;
                        align-items: flex-start;
                        gap: 1rem;
                        padding: 1.5rem;
                        border-bottom: 1px solid #e5e7eb;
                        background-color: #f8fafc;

                        & h2 {
                            margin-top: 0;
                            font-size: 1.35rem;
                        }

                        & p {
                            margin-bottom: 0;
                            color: #64748b;
                            line-height: 1.5;
                        }
                    }

                    & .access-request-list {
                        display: flex;
                        flex-direction: column;
                    }

                    & .access-request-row {
                        display: grid;
                        grid-template-columns: minmax(280px, 1fr) minmax(180px, auto) auto;
                        gap: 1.5rem;
                        align-items: center;
                        padding: 1.25rem 1.5rem;
                        border-bottom: 1px solid #e5e7eb;

                        &:last-child {
                            border-bottom: none;
                        }

                        &:hover {
                            background-color: #f9fafb;
                        }
                    }

                    & .access-request-main {
                        min-width: 0;
                    }

                    & .access-request-title {
                        display: inline-block;
                        margin-bottom: .75rem;
                        color: #075985;
                        font-size: 1.1rem;
                        font-weight: 700;
                        text-decoration-thickness: 2px;
                        text-underline-offset: 3px;
                    }

                    & .access-request-meta {
                        display: grid;
                        grid-template-columns: repeat(2, minmax(0, 1fr));
                        gap: .75rem 1.25rem;
                        margin: 0;

                        & div {
                            min-width: 0;
                        }

                        & dt {
                            color: #64748b;
                            font-size: .8rem;
                            font-weight: 700;
                            letter-spacing: .04em;
                            text-transform: uppercase;
                        }

                        & dd {
                            margin: .15rem 0 0;
                            color: #1f2937;
                        }
                    }

                    & .access-request-status {
                        display: flex;
                        flex-wrap: wrap;
                        gap: .5rem;
                        justify-content: flex-start;
                    }

                    & .status-pill {
                        display: inline-flex;
                        align-items: center;
                        width: fit-content;
                        min-height: 2rem;
                        padding: .35rem .7rem;
                        border-radius: 999px;
                        font-size: .85rem;
                        font-weight: 700;
                        white-space: nowrap;
                    }

                    & .status-pending {
                        color: #92400e;
                        background-color: #fef3c7;
                    }

                    & .status-info {
                        color: #075985;
                        background-color: #e0f2fe;
                    }

                    & .status-complete {
                        color: #166534;
                        background-color: #dcfce7;
                    }

                    & .access-request-actions {
                        display: flex;
                        justify-content: flex-end;
                    }

                    & .primary-action {
                        border: none;
                        border-radius: 8px;
                        padding: .65rem 1rem;
                        background-color: #0f766e;
                        color: white;
                        font-weight: 700;
                        cursor: pointer;
                        box-shadow: 0 2px 6px rgb(0 0 0 / 18%);

                        &:hover {
                            background-color: #115e59;
                        }

                        &:focus-visible {
                            outline: 3px solid #5eead4;
                            outline-offset: 2px;
                        }
                    }

                    @media (max-width: 925px) {
                        & .access-request-row {
                            grid-template-columns: 1fr;
                            gap: 1rem;
                        }

                        & .access-request-actions {
                            justify-content: flex-start;
                        }
                    }

                    @media (max-width: 750px) {
                        padding: 1rem;

                        & .access-request-panel-header,
                        & .access-request-row {
                            padding: 1rem;
                        }

                        & .access-request-meta {
                            grid-template-columns: 1fr;
                        }

                        & .access-request-actions {
                            justify-content: center;
                        }
                    }
                }

                & .nav-card {
                    display: flex;
                    align-items: flex-start;
                    gap: 1rem;
                    height: 100%;
                    padding: 1.5rem;
                    border: 1px solid rgba(0, 0, 0, 0.08);
                    border-radius: 14px;
                    background: #ffffff;
                    text-decoration: none;
                    color: inherit;
                    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
                    transition: transform 0.18s ease,
                    box-shadow 0.18s ease,
                    border-color 0.18s ease;
                }

                & .nav-card:hover,
                .nav-card:focus-visible {
                    transform: translateY(-4px);
                    border-color: rgba(37, 99, 235, 0.45);
                    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
                    outline: none;
                }

                & .nav-card:focus-visible {
                    outline: 3px solid rgba(37, 99, 235, 0.5);
                    outline-offset: 2px;
                }

                & .nav-card__icon {
                    flex: 0 0 auto;
                    font-size: 1.75rem;
                    line-height: 1;
                }

                & .nav-card__body {
                    flex: 1 1 auto;
                }

                & .nav-card__title {
                    margin: 0 0 0.4rem;
                    font-size: 1.15rem;
                    font-weight: 600;
                    color: #111827;
                }

                & .nav-card__text {
                    margin: 0;
                    font-size: 0.95rem;
                    line-height: 1.5;
                    color: #4b5563;
                }

                & .nav-card__extra {
                    margin-top: 0.75rem;
                    font-size: 0.9rem;
                }

                & .nav-card__arrow {
                    flex: 0 0 auto;
                    font-size: 1.15rem;
                    color: #9ca3af;
                    transition: transform 0.18s ease, color 0.18s ease;
                }

                & .nav-card:hover .nav-card__arrow,
                .nav-card:focus-visible .nav-card__arrow {
                    color: #2563eb;
                    transform: translateX(4px);
                }

                & .intro {
                    max-width: 1360px;
                    margin: 0 auto;
                    container-type: inline-size;
                }

                &.content.intro {
                    width: min(100%, 960px);
                    max-width: 1360px;
                    align-self: stretch;   /* override .centered's align-items: center */
                    margin-inline: auto;
                    padding: clamp(1.5rem, 4vw, 4em);
                }

                & .intro__hero {
                    text-align: center;
                    padding: 1rem 0 0.5rem;
                }

                & .intro__hero h1 {
                    margin: 0 0 0.35rem;
                    font-size: 2.25rem;
                    font-weight: 700;
                }

                & .intro__lead {
                    margin: 0;
                    font-size: 1.15rem;
                    color: #4b5563;
                }

                & .intro__attr {
                    margin: 0.5rem 0 0;
                    font-size: 0.9rem;
                    letter-spacing: 0.03em;
                    text-transform: uppercase;
                    color: #6b7280;
                }

                & .intro__summary {
                    max-width: 680px;
                    margin: 1.25rem auto;
                    text-align: center;
                    line-height: 1.6;
                    color: #374151;
                }

                & .intro__image {
                    display: block;
                    margin: 0.5rem auto 1.5rem;
                    border-radius: 12px;
                }

                & .intro__section-title {
                    text-align: center;
                    margin: 1.5rem 0 0.25rem;
                    font-size: 1.5rem;
                }

                & .intro__section-note {
                    text-align: center;
                    margin: 0 auto 1.5rem;
                    color: #6b7280;
                }

                & .intro__cards {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
                    gap: 1.25rem;
                    margin: 0 auto 2.5rem;
                }

                & .intro__projects {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                    gap: 1.5rem;
                    margin: 0 auto 2.5rem;
                }

                & .project-card {
                    display: flex;
                    flex-direction: column;
                    overflow: hidden;
                    border: 1px solid rgba(0, 0, 0, 0.08);
                    border-radius: 14px;
                    background: #ffffff;
                    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
                    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
                }

                & .project-card:hover,
                .project-card:focus-within {
                    transform: translateY(-4px);
                    border-color: rgba(37, 99, 235, 0.45);
                    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
                }

                & .project-card__image {
                    width: 100%;
                    height: 180px;
                    margin: 0;
                    object-fit: cover;
                    border-radius: 0;
                    box-shadow: none;
                }

                & .project-card__body {
                    display: flex;
                    flex: 1 1 auto;
                    flex-direction: column;
                    gap: 0.5rem;
                    padding: 1.25rem;
                }

                & .project-card__title {
                    margin: 0;
                    font-size: 1.15rem;
                    font-weight: 600;
                    color: #111827;
                }

                & .project-card__text {
                    margin: 0;
                    font-size: 0.95rem;
                    line-height: 1.5;
                    color: #4b5563;
                }

                & .project-card__actions {
                    display: flex;
                    gap: 0.75rem;
                    margin-top: auto;
                    padding-top: 0.5rem;
                    flex-wrap: wrap;
                }

                & button.button-action,
                .button-action, .project-card__link {
                    display: inline-block;
                    padding: 0.5rem 0.9rem;
                    border-radius: 8px;
                    font-size: 0.9rem;
                    font-weight: 600;
                    text-decoration: none;
                }
                & .button-action--download,
                .button-action--copy {
                    cursor: pointer;
                }

                & .button-action--download, 
                .button-action--copy, .project-card__link--frame {
                    background: #0f766e;
                    color: #ffffff;
                }

                & .button-action--download,
                .button-action--copy:hover, .project-card__link--frame:hover {
                    background: #115e59;
                    color: #ffffff;
                }

                & .project-card__link--thin {
                    background: #FAF9F8;
                    color: #2f4f4f;

                    &:hover {
                        background: #EDEBE9;
                    }
                }

                & .project-card__link--external {
                    background: #eef2f7;
                    color: #075985;
                }

                & .project-card__link--external:hover {
                    background: #e0f2fe;
                }

                & .intro__note {
                    max-width: 720px;
                    margin: 0 auto 2rem;
                    padding: 1.5rem;
                    border-radius: 12px;
                    background: #f9fafb;
                    border: 1px solid rgba(0, 0, 0, 0.06);
                    line-height: 1.6;
                    color: #374151;
                }

                & .intro__note h2 {
                    margin: 0 0 0.75rem;
                    font-size: 1.25rem;
                }

                & .intro__closing {
                    margin: 0 auto 2.5rem;
                    text-align: center;
                }

                & .intro__image {
                    display: block;
                    width: 100%;
                    height: auto;
                    max-width: 480px;
                    margin: 0 auto;
                    border-radius: 16px;
                    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
                }

                & .intro__closing-caption {
                    margin-top: 0.9rem;
                    font-size: 0.95rem;
                    font-style: italic;
                    color: #6b7280;
                }

                /* Small screens */
                @media (max-width: 480px) {
                    & .intro__hero h1 {
                        font-size: 1.75rem;
                    }

                    & .intro__cards {
                        grid-template-columns: 1fr;
                    }
                }

                @container (max-width: 480px) {
                    & .intro__hero h1 {
                        font-size: 1.75rem;
                    }

                    & .intro__cards {
                        grid-template-columns: 1fr;
                    }
                }
            }

            & div.content {
                display: none;

                & table {
                    border-collapse: collapse;
                    width: 90%;
                    margin-top: 1rem;
                    margin-bottom: 1rem;
                    border: 1px solid #ccc;
                    border-radius: 8px;

                    & th, td {
                        padding: 8px;
                        text-align: left;
                        border-bottom: 1px solid #ccc;
                    }

                    & th {
                        background-color: #f2f2f2;
                    }
                }

                & ol.bullet-disc {
                    list-style-type: disc;
                    padding-inline: 1rem;
                }
            }

            & iframe {
                position: absolute;
            }

            & iframe.page-view {
                min-height: 100%;
                border: 0;
                outline: 0;
                display: block;
                transition: all 2s ease-in-out;
            }
        }

        & #menu-selection {
            width: 500px;
            position: relative;
            padding-block: .75em .5rem;
            border-bottom: 1px solid #ccc;
            box-shadow: -4px 4px 8px black;

            & h1 {
                font-size: 1.35em;
                margin-block: .75rem 1rem;
                text-align: center;
                display: inline-block;
            }

            & img {
                display: block;
            }

            & #Details-Panel-External {
                font-weight: bold;
                color: #257ea6;
                margin-right: .5rem;
            }

            & #Details-Panel-External.external::after {
                position: absolute;
                right: -4px;
                top: 0;
            }
        }

        & #domSearch {
            display: inline-block;
            position: relative;
            margin: 1em;

            & search {
                display: inline-block;
                border: 2px solid black;
                border-radius: 1rem;
                padding: 0 .5rem;

                &:has(button#searchSubmit:focus-visible, input#search:focus-visible) {
                    outline: 2px solid #2d95c5;
                }

                & input#search {
                    border: none;

                    &:focus-visible {
                        outline: none;
                    }
                }

                & #searchSubmit {
                    border: none;
                    background: inherit;
                    cursor: pointer;

                    &:focus-visible {
                        outline: none;
                    }
                }
            }
        }

        & #details-panel-toggle {
            padding: 10px;
            width: 5.5rem;
            background-color: lightseagreen;
            border: none;
            font-weight: bold;
            border-radius: 10px;
            box-shadow: 0 2px 2px 2px lightgray;
            margin-left: 1rem;
            cursor: pointer;

            &.disabled {
                background-color: lightgray;
            }

            &.greyed {
                opacity: .5;
            }

            &:not(.disabled):hover {
                background-color: cyan;
            }

            &.secondary {
                text-align: center;
                box-shadow: none;
            }
        }

        & aside[data-panel-index="0"] {
            width: 0;
            background-color: ghostwhite;
            opacity: .97;
            color: black;
            cursor: text;
            font-size: 1.4em;
            border: 2px solid black;
            height: calc(100vh - 20px);
            max-height: 100vh;
            overflow: auto;
            z-index: 2;
            visibility: hidden;
            transition: all 800ms ease-in;
            padding: 0 !important;
            border-right: 3px solid black;

            &.show-details {
                width: clamp(275px, 50vw, 500px);
                visibility: revert;

                &.unmatched {
                    border-color: darkorange;
                }
            }

            & ul, ol {
                padding: revert;
                margin-block: 1rem;
            }

            & p span {
                font-size: 16px;
                font-style: italic;
            }

            & ol li {
                list-style: decimal;
            }

            & ul li {
                list-style: circle;
            }

            & h4 {
                margin-bottom: .5rem;
            }

            & a {
                display: block;
            }

            & button {
                cursor: pointer;
            }

            & .mb0 {
                margin-block: 0;
            }

            & .mb1 {
                margin-block: 1rem;
            }

            & .mb2 {
                margin-block: 2rem;
            }

            & > *:not(h3) {
                text-align: left;
            }

            & .inline-link {
                color: inherit;
                display: initial;
            }
        }

        & #menu:not(.information-panel) {
            width: 500px;
            display: inline-block;
            overflow-y: scroll;
            overflow-x: clip;
            overflow-clip-margin: 0px;
            scrollbar-width: thin;
            height: calc(100vh - 330px);

            & h1 {
                margin: revert;
                font-size: 1.75em;
            }

            &.projects.no-menu-selection {
                height: calc(100vh - 57px);
            }

            & img {
                width: 45%;
                max-width: 140px;
            }
        }

        &:has(.page-frame-toggle input:checked) main[role="main"] {
            & div.content {
                display: revert;
            }

            color: initial !important;

            & h2 {
                color: initial !important;
            }
        }

        &:has(.page-frame-toggle input:checked) main[role="main"] > iframe {
            transform: translateX(100%);
        }

        & .displaying:not(aside) {
            opacity: .5;
        }

        & ul:last-of-type li:last-of-type .information-panel {
            top: -275% !important;
        }

        & aside .page-view-detail.hidden-details {
            overflow: initial !important;
        }

        & .page-view-detail.hidden-details {
            display: inline-block !important; /* new selectors*/
            overflow: hidden;
            height: 0;
        }

        & .page-view-selection {
            width: 95%;
            max-width: 900px;
            margin: 0 auto;
            display: flex;
            flex-direction: row;

            & .page-view-selection-info {
                & div:first-child {
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                    align-items: center;
                    width: 100%;
                }

                & p {
                    margin: 3.5px 10.5px 3.5px 3.5px;
                }
            }

            & img {
                display: block;
                border-radius: 12px 12px 12px 12px;
            }

            & .overview-panel-button {
                padding: 5px;
                width: 5.5rem;
                background-color: lightseagreen;
                border: none;
                font-weight: bold;
                border-radius: 10px;
                box-shadow: 0 2px 2px 2px lightgray;
                cursor: pointer;

                &.slim {
                    width: revert;
                    background-color: lightgray;
                    text-decoration: none;
                    line-height: normal;
                    padding-bottom: 0;
                    color: darkslategrey;
                }

                &.offset-top {
                    margin-top: 3.5px;
                }

                &.offset-left {
                    margin-left: .5rem;
                }

                &.disabled {
                    background-color: lightgray;
                }

                &.greyed {
                    opacity: .5;
                }

                &:not(.disabled):hover {
                    background-color: cyan;
                }

                &.secondary {
                    text-align: center;
                    box-shadow: none;
                }
            }

            & .page-view-selection-text {
                width: 100%;

                &:hover {
                    transition: all 2s ease-in;
                }

                & div.information-panel-toggle {
                    display: inline;
                }

                & .information-panel-toggle {
                    color: darkcyan;
                    position: relative;

                    & div {
                        display: inline-block;
                        width: fit-content;
                    }

                    & .information-panel {
                        position: absolute;
                        top: 100%;
                        left: -250px;
                        visibility: hidden;
                        color: black;
                        background-color: lightseagreen;
                        border: none;
                        border-radius: 12px 12px 12px 12px;
                        padding: 8px;
                        width: 385px;
                        cursor: text;
                    }

                    & svg:hover {
                        color: steelblue;
                    }
                }

                & .information-panel-toggle:hover .information-panel {
                    visibility: initial;
                    z-index: 5;
                }
            }

            & .page-view-link {
                font-weight: bold;
                font-size: 14px;
                width: fit-content;
                background-color: #eee;
                text-decoration: underline;
                text-decoration-color: #0077cc;
                text-decoration-thickness: 2px;
                text-underline-offset: 2px;
                border-bottom: 1px solid #ccc;
                border-top: 1px solid #ccc;
                border-radius: 5px;
                cursor: pointer;
                padding-block: 7px;

                &:not([href]) {
                    border: 2px dotted gold;
                }

                &:hover {
                    background-color: #ddd;
                }
            }

            & .project-navigation-selection {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
                width: 100%;
                margin-bottom: 10px;
                height: 2em;

                & .app-nav-link {
                    width: 70%;
                }
            }
        }

        & div.icon-tray {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            position: relative;

            & > * {
                margin-inline: 4px;
            }

            & #alert-icon {
                fill: darkorange;

                & + span.alert-hover {
                    position: absolute;
                    top: 0;
                    left: 19px;
                    background-color: snow;
                    border: 1px dashed darkorange;
                    border-radius: 5px;
                    padding: 3px;
                    visibility: hidden;
                    font-size: 1rem;
                }

                &:hover + span.alert-hover {
                    visibility: initial;
                }

                &:hover {
                    cursor: pointer;
                }
            }
        }

        & a {

            &:visited {
                color: #2f4f4f;
            }

            &:focus-visible {
                color: red;
            }

            & .app-internal-link.hyperlink {
                border: none;
                background: initial;
                color: #11557C;
                padding: 0;
                font-size: 1.2rem;
                display: block;
                font-family: serif;
                text-decoration-line: underline;
                text-decoration-style: dotted;
            }

            & .app-internal-link {
                font-family: Arial, serif;
            }

            &:active {
                background-color: lightcyan !important;
            }

            a:visited {
                color: red;
            }

            a:focus-visible {
                color: red;
            }
        }

        & .page-view-detail {
            &[data-dialog-index] {
                display: inline; /* while in development */
            }

            padding-inline: 10px;

            &.external {
                position: relative;
            }
        }

        & a.external::after,
        a.external-link::after{
            content: "";
            display: inline-block;
            width: 12px;
            height: 12px;
            font-size: 0.8em;
            color: #0077cc;
            margin-bottom: 5px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="rgb(0, 119, 204)" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"/><path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"/></svg>');
            z-index: 1;

            &:hover {
                background-color: #ddd;
            }
        }

        & .page-view-link, .page-view-detail {
            text-align: center;
            display: inline-block;
        }

        & .copy-link {
            position: relative;
            background: none;
            border: none;
            cursor: copy;

            & svg {
                margin-top: 2.5px;
            }

            &.copied svg {
                background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard-fill" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M10 1.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5zm-5 0A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5v1A1.5 1.5 0 0 1 9.5 4h-3A1.5 1.5 0 0 1 5 2.5zm-2 0h1v1A2.5 2.5 0 0 0 6.5 5h3A2.5 2.5 0 0 0 12 2.5v-1h1a2 2 0 0 1 2 2V14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2"/></svg>');
            }

            &:hover svg {
                background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard-fill" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M10 1.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5zm-5 0A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5v1A1.5 1.5 0 0 1 9.5 4h-3A1.5 1.5 0 0 1 5 2.5zm-2 0h1v1A2.5 2.5 0 0 0 6.5 5h3A2.5 2.5 0 0 0 12 2.5v-1h1a2 2 0 0 1 2 2V14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2"/></svg>');
            }

            &:hover {
                background-color: #ddd;
            }
        }

        & .developer-attr {
            color: #2d95c5;
            margin-top: 0;
        }
    }

    ul, ol {
        padding: 0;
        list-style: none;
    }
}

#boot-indicator,
#route-indicator {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
}

.boot-indicator__bar {
    height: 100%;
    width: 40%;
    background: currentColor; /* match your accent/brand color */
    animation: boot-indicator-slide 1.1s ease-in-out infinite;
}

@keyframes boot-indicator-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

#boot-indicator.is-done {
    display: none;
}