/* Global frame, theme tokens, navigation, and footer. */
@font-face {
    font-family: "Fira Code";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/kondo/fonts/FiraCode-Regular.ttf);
}

@font-face {
    font-family: "Fira Code";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/kondo/fonts/FiraCode-Bold.ttf);
}

@font-face {
    font-family: "document-text-font";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/kondo/fonts/OpenSans-Regular.ttf);
}

@font-face {
    font-family: "document-text-font";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/kondo/fonts/OpenSans-Bold.ttf);
}

@font-face {
    font-family: "document-heading-font";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/kondo/fonts/FiraCode-Bold.ttf);
}

:root,
:root[data-theme="mocha"] {
    color-scheme: dark;
    --ctp-rosewater: #f5e0dc;
    --ctp-flamingo: #f2cdcd;
    --ctp-pink: #f5c2e7;
    --ctp-mauve: #cba6f7;
    --ctp-red: #f38ba8;
    --ctp-maroon: #eba0ac;
    --ctp-peach: #fab387;
    --ctp-yellow: #f9e2af;
    --ctp-green: #a6e3a1;
    --ctp-teal: #94e2d5;
    --ctp-sky: #89dceb;
    --ctp-sapphire: #74c7ec;
    --ctp-blue: #89b4fa;
    --ctp-lavender: #b4befe;
    --ctp-text: #cdd6f4;
    --ctp-subtext1: #bac2de;
    --ctp-subtext0: #a6adc8;
    --ctp-overlay2: #9399b2;
    --ctp-overlay1: #7f849c;
    --ctp-overlay0: #6c7086;
    --ctp-surface2: #585b70;
    --ctp-surface1: #45475a;
    --ctp-surface0: #313244;
    --ctp-base: #1e1e2e;
    --ctp-mantle: #181825;
    --ctp-crust: #11111b;
}

:root[data-theme="latte"] {
    color-scheme: light;
    --ctp-rosewater: #dc8a78;
    --ctp-flamingo: #dd7878;
    --ctp-pink: #ea76cb;
    --ctp-mauve: #8839ef;
    --ctp-red: #d20f39;
    --ctp-maroon: #e64553;
    --ctp-peach: #fe640b;
    --ctp-yellow: #df8e1d;
    --ctp-green: #40a02b;
    --ctp-teal: #179299;
    --ctp-sky: #04a5e5;
    --ctp-sapphire: #209fb5;
    --ctp-blue: #1e66f5;
    --ctp-lavender: #7287fd;
    --ctp-text: #4c4f69;
    --ctp-subtext1: #5c5f77;
    --ctp-subtext0: #6c6f85;
    --ctp-overlay2: #7c7f93;
    --ctp-overlay1: #8c8fa1;
    --ctp-overlay0: #9ca0b0;
    --ctp-surface2: #acb0be;
    --ctp-surface1: #bcc0cc;
    --ctp-surface0: #ccd0da;
    --ctp-base: #eff1f5;
    --ctp-mantle: #e6e9ef;
    --ctp-crust: #dce0e8;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        color-scheme: light;
        --ctp-rosewater: #dc8a78;
        --ctp-flamingo: #dd7878;
        --ctp-pink: #ea76cb;
        --ctp-mauve: #8839ef;
        --ctp-red: #d20f39;
        --ctp-maroon: #e64553;
        --ctp-peach: #fe640b;
        --ctp-yellow: #df8e1d;
        --ctp-green: #40a02b;
        --ctp-teal: #179299;
        --ctp-sky: #04a5e5;
        --ctp-sapphire: #209fb5;
        --ctp-blue: #1e66f5;
        --ctp-lavender: #7287fd;
        --ctp-text: #4c4f69;
        --ctp-subtext1: #5c5f77;
        --ctp-subtext0: #6c6f85;
        --ctp-overlay2: #7c7f93;
        --ctp-overlay1: #8c8fa1;
        --ctp-overlay0: #9ca0b0;
        --ctp-surface2: #acb0be;
        --ctp-surface1: #bcc0cc;
        --ctp-surface0: #ccd0da;
        --ctp-base: #eff1f5;
        --ctp-mantle: #e6e9ef;
        --ctp-crust: #dce0e8;
    }
}

:root {
    --radius-card: 4px;
    --border-subtle: color-mix(in srgb, var(--ctp-overlay1) 55%, transparent);
    --panel-bg: color-mix(in srgb, var(--ctp-surface0) 82%, transparent);
    --panel-strong: color-mix(in srgb, var(--ctp-surface1) 72%, var(--ctp-base));
    --heading-gradient: linear-gradient(to right, var(--ctp-lavender), var(--ctp-sapphire));
    --button-color: var(--ctp-sapphire);
}

:root[data-theme="latte"] {
    --button-color: var(--ctp-teal);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --button-color: var(--ctp-teal);
    }
}

html {
    min-height: 100%;
    background: var(--ctp-crust);
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--ctp-crust);
    color: var(--ctp-text);
    overflow-x: clip;
}

body::before {
    content: "";
    position: absolute;
    z-index: 0;
    right: -10rem;
    top: 5rem;
    width: min(56vw, 42rem);
    aspect-ratio: 1;
    background: var(--ctp-surface1);
    mask: url(/logos/ucc-logo.svg) center / contain no-repeat;
    -webkit-mask: url(/logos/ucc-logo.svg) center / contain no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

:root[data-theme="latte"] body::before {
    background: var(--ctp-overlay2);
    opacity: 0.28;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) body::before {
        background: var(--ctp-overlay2);
        opacity: 0.28;
    }
}

main {
    flex: 1 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Pages rendered with "@bare" skip the site header/footer and chrome watermark entirely. */
body.page-bare {
    overflow: hidden;
}

body.page-bare::before {
    content: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--ctp-crust) 86%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--ctp-surface1) 65%, transparent);
    backdrop-filter: blur(18px);
}

.site-nav {
    min-height: 3.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 74rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    background: var(--ctp-sapphire);
    mask: url(/logos/ucc-logo.svg) center / contain no-repeat;
    -webkit-mask: url(/logos/ucc-logo.svg) center / contain no-repeat;
    transition: background-color 160ms ease;
}

.site-logo:hover,
.site-logo:focus-visible {
    background: var(--ctp-sapphire);
}

.legacy-header-logo {
    display: none;
}

.navigation-list {
    list-style-type: none;
}

.menu-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.menu-list li {
    display: inline-flex;
    align-items: center;
}

.menu-list a,
.active-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0 0.7rem;
    border-radius: var(--radius-card);
    color: var(--ctp-text);
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
    color: var(--ctp-sapphire);
    background: color-mix(in srgb, var(--ctp-surface0) 70%, transparent);
}

.active-nav-link {
    color: var(--ctp-crust);
    background: var(--button-color);
}

.theme-switch {
    display: none;
    align-items: center;
    margin-left: auto;
}

:root.js .theme-switch {
    display: inline-flex;
}

.theme-switch button {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid color-mix(in srgb, var(--ctp-lavender) 58%, var(--ctp-overlay1));
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--ctp-lavender) 18%, var(--ctp-surface0));
    color: var(--ctp-lavender);
    font: inherit;
    cursor: pointer;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.theme-switch button:hover,
.theme-switch button:focus-visible {
    border-color: var(--ctp-lavender);
    background: color-mix(in srgb, var(--ctp-lavender) 26%, var(--ctp-surface0));
}

.theme-switch svg {
    width: 1.1rem;
    height: 1.1rem;
}

.theme-icon-sun,
:root[data-theme="latte"] .theme-icon-moon {
    display: none;
}

:root[data-theme="latte"] .theme-icon-sun {
    display: block;
}

.menu-toggle {
    display: none;
    width: 2.4rem;
    height: 2.4rem;
    margin-left: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--ctp-surface0) 72%, transparent);
    color: var(--ctp-text);
    cursor: pointer;
    padding: 0.45rem;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 0.28rem 0;
    background: currentColor;
}

.breadcrumbs {
    margin: 0 0 0.8rem;
    color: var(--ctp-subtext0);
    font-size: 0.9rem;
    text-transform: lowercase;
}

.breadcrumbs a {
    color: var(--ctp-subtext1);
    text-decoration: none;
    transition: color 140ms ease, text-shadow 140ms ease;
}

.breadcrumbs a:hover {
    color: var(--ctp-sapphire);
    text-shadow: 0 0 12px color-mix(in srgb, var(--ctp-sapphire) 34%, transparent);
}

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid color-mix(in srgb, var(--ctp-surface1) 72%, transparent);
    background: color-mix(in srgb, var(--ctp-mantle) 86%, transparent);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 74rem;
    min-height: 3.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.footer-container > div:last-child {
    margin-left: auto;
}

.affiliate-logo {
    max-width: 8rem;
    max-height: 2.3rem;
    opacity: 1;
}

.footer-guild-logo {
    max-width: 2.4rem;
    max-height: 2.4rem;
}

.footer-uwa-logo {
    max-width: 11rem;
}

.footer-text {
    max-width: 48rem;
    color: var(--ctp-subtext0);
    font-size: 0.78rem;
    line-height: 1.45;
}

.footer-text a,
#edit-page-link {
    color: var(--ctp-subtext1);
    transition: color 140ms ease, text-shadow 140ms ease;
}

.footer-text a:hover,
#edit-page-link:hover {
    color: var(--ctp-sapphire);
    text-shadow: 0 0 12px color-mix(in srgb, var(--ctp-sapphire) 28%, transparent);
}

#edit-page-link {
    font-size: 0.75rem;
    opacity: 0.62;
    text-decoration: none;
}

@media only screen and (max-width: 860px) {
    .site-nav {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        gap: 0.7rem;
        align-items: center;
        padding: 0.45rem 1rem;
    }

    .site-logo {
        grid-column: 1;
    }

    .menu-toggle {
        display: block;
        grid-column: 3;
        margin-left: 0;
    }

    .theme-switch {
        grid-column: 4;
        margin-left: 0;
    }

    .menu-list {
        display: none;
        grid-column: 1 / -1;
        flex-wrap: wrap;
        padding-bottom: 0.55rem;
    }

    .menu-list.is-open {
        display: flex;
    }
}

@media only screen and (max-width: 640px) {
    body::before {
        right: -11rem;
        top: 4rem;
        width: 32rem;
        opacity: 0.1;
    }

    :root[data-theme="latte"] body::before {
        opacity: 0.17;
    }

    .site-nav {
        padding: 0.45rem 0.85rem;
    }

    .site-logo {
        width: 2.3rem;
        height: 2.3rem;
    }

    .menu-list a,
    .active-nav-link {
        min-height: 2rem;
        padding: 0 0.55rem;
    }

    .footer-container {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 1rem;
    }

    .footer-container > div:last-child {
        margin-left: 0;
        width: 100%;
    }
}

@media only screen and (max-width: 640px) and (prefers-color-scheme: light) {
    :root:not([data-theme]) body::before {
        opacity: 0.17;
    }
}
