html {
    background-color: #eee;
    font-family: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

:is(a, area, button, [tabindex="-1"], [tabindex="0"]):focus-visible {
    /* focus-visible: styles chosen for accessibility */
    overflow: visible; /* Ensure that the focus outline does not get cut off */
    outline: 0.375rem double #000 !important;
    outline-offset: initial !important;
    box-shadow: 0 0 0 0.25rem #fff !important;
}

:is(input, select, textarea):focus-visible {
    /* focus-visible: styles chosen for accessibility */
    overflow: visible; /* Ensure that the focus outline does not get cut off */
    outline: 0.1rem solid #000 !important;
    outline-offset: 0.0625rem !important;
    box-shadow: 0 0 0 0.0625rem #fff !important;
}

.visually-hidden {
    /*
    visually-hidden: used for elements that need to be present for screen readers or other
    accessibility tools, but don't need to be rendered normally.

    Sometimes we prefer to use "visually-hidden" tagged elements instead of aria-label,
    as content that is actually in the "text" of an element, rather than in an attribute,
    works better with screen readers and translators.
    */
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    inline-size: 0.0625rem;
    block-size: 0.0625rem;
    white-space: nowrap;
}

.subdued-text {
    color: #6E6E6E;
}

.display-block {
    display: block;
}

.full-width {
    width: 100%;
}

.code-input {
    box-sizing: border-box;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    padding-block: 0.4rem;
    padding-inline: 0.6rem;
    background-color: #f4f4f4;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    color: #1a1a1a;
}

[x-cloak] { display: none !important; }

p.skip-link > a {
    /* skip-link is an accessibility feature */
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: -100vw;
    z-index: 99999;
    margin: 0.5rem;
    padding-block: 0.5rem;
    padding-inline: 1rem;
    display: block;
    background-color: #fff;
    color: #000;
}

p.skip-link > a:focus-visible {
    inset-inline-start: 0;
}

a {
    color: #0172ad;
}

a:hover {
    color: #0a2a64;
}

.container {
    margin: 0 auto;
    max-width: 1200px;
}

.login .container {
    max-width: 500px;
}

.primary-container {
    box-shadow: 0 0 25px rgba(85, 85, 85, 0.28);
    padding-top: 0.5rem;
}

header {
    padding: 0 1.5rem;
}

.ipeer-logo {
    font-size: 2rem;
    background-image: url("../img/ipeer_logo.9b095630d0a1.svg");
    background-repeat: no-repeat;
    background-size: auto 80%;
    background-position: left center;
    padding-left: 2rem;
    margin: 0.3em 0;
}

.ipeer-logo a {
    text-decoration: none;
    color: #000;
}

.ipeer-logo a:hover {
    text-decoration: underline;
}

.navigation-wrapper {
    position: relative;
    z-index: 100;
    padding: 0 .5rem;
    margin-bottom: -1.5rem;
    border: solid 1px #ccc;
    box-shadow: 0 0 25px rgba(85, 85, 85, 0.28);
    background: #fff;
}

.navigation-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.navigation-wrapper nav.left-nav {
    float: left;
}

.navigation-wrapper nav.right-nav {
    float: right;
}

@media (max-width: 700px) {
    .navigation-wrapper nav.right-nav {
        float: none;
    }
}

.navigation-wrapper nav ul {
    margin-block-start: 0;
    margin-block-end: 0;
    padding-left: 0;
}

.navigation-wrapper nav li {
    display: inline-block;
    margin: 0;
    line-height: 1.2;
}

.navigation-wrapper nav a {
    display: inline-block;
    color: #0a2a64;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0;
    padding: 0.5em;
}

.navigation-wrapper nav a:hover,
.navigation-wrapper nav a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 gold;
    text-decoration: none;
}

.impersonation-banner,
.no-script-banner {
    position: relative;
    padding: 0.5em 0;
    text-align: center;
    z-index: 200;
}

.impersonation-banner {
    background: #ffcc00;
    border-bottom: 1px solid #ff9966;
}

.no-script-banner {
    background: #b00020;
    border-bottom: 1px solid #7f0017;
    color: #fff;
    font-weight: 700;
}

main {
    background-color: #fff;
    padding: 2.5rem 2rem 2rem;
}

#main-content {
    margin: 0 0 .3em;
}

.breadcrumb {
    font-size: .9rem;
    padding-bottom: .7em;
}

footer {
    text-align: center;
    padding: 1em 0;
}

footer small {
    display: block;
}

.button {
    display: inline-block;
    padding: 0.6em 0.9em;
    background: #0172ad;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: 0;
    cursor: pointer;
}

.button:hover {
    background-color: #01557e;
    color: #fff;
}


.lucide-icon {
    display: inline-block;
    line-height: 0;
    vertical-align: -0.125em; /* 0.125em = 1/8 of the font size which is the "descender" ratio for most fonts */
}

.lucide-icon img {
    display: block;
    width: 1em;
    height: 1em;
}

.button .lucide-icon {
    margin: 0 .3em 0 -.2em;
}

.button .lucide-icon img {
    filter: brightness(0) invert(1);
}

.button.btn-sm {
    padding: 0.3em 0.6em;
    font-size: 0.8rem;
}

.button.btn-secondary {
    background: #6c757d;
}

.button.btn-secondary:hover {
    background: #40434a;
}

.button.btn-warning {
    background: #88793c;
}

.button.btn-warning:hover {
    background: #655a2c;
}

.button.btn-success {
    background: #286536;
}

.button.btn-success:hover {
    background: #18401f;
}

.button.btn-danger {
    background: #853030;
}

.button.btn-danger:hover {
    background: #5c2121;
}

.button-group .button {
    margin-bottom: 0.5em;
}

.button-group .button:not(:last-child) {
    margin-right: 0.5em;
}

.basic-block-form p {
    margin-bottom: 1rem;
}

.basic-block-form label {
    font-weight: 600;
}

.basic-block-form input,
.basic-block-form select,
.basic-block-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.4rem 0.6rem;
    margin: 0.2rem 0;
}

.basic-block-form textarea {
    min-height: 6rem;
    resize: vertical;
}

.basic-block-form .helptext {
    font-size: 0.9rem;
}

.basic-block-form .errorlist {
    padding-left: 0;
    list-style: none;
    font-size: 0.9rem;
}

.callout {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0172ad;
    background-color: #e8f4fb;
    color: #0a2a64;
    border-radius: 0 4px 4px 0;
}

.callout p {
    margin: .5em 0;
}

.callout.callout-warning {
    border-left-color: #b45309;
    background-color: #fef3c7;
    color: #78350f;
}

.callout.callout-error {
    border-left-color: #b91c1c;
    background-color: #fee2e2;
    color: #7f1d1d;
}

.callout.callout-success {
    border-left-color: #15803d;
    background-color: #dcfce7;
    color: #0c321a;
}

code {
    background: #ddd;
    border-radius: 4px;
    padding: 0.15em 0.3em;
    font-size: 0.9em;
}

dialog {
    max-width: 400px;
}

dialog > :first-child {
    padding-top: 0;
    margin-top: 0;
}

dialog > :last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}
