﻿@font-face {
    font-family: 'Dharma Gothic';
    src: url('../fonts/DharmaGothicC-Bold.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

body .kg-width-wide {
    max-width: 1040px;
    font-family: 'Open Sans', sans-serif;
}

body .kg-width-full {
    max-width: 100vw;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}

/* Beginning of header */
.site-header {
    display: flex;
    flex-direction: column;
    background-color: #680024;
    color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Logo and title - left aligned at top */
.site-title {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    align-self: flex-start;
}

    .site-title a {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        color: #f9f9f9;
        font-size: 2.6rem;
        font-weight: 400;
        letter-spacing: 0.01em;
        font-family: 'Dharma Gothic', sans-serif;
        line-height: 1;
        text-transform: none !important;
    }

        .site-title a span {
            transform: scaleX(1.12);
            display: inline-block;
        }

    .site-title .site-logo {
        height: 1.2em;
        width: auto;
        display: inline-block;
        margin-right: 0.4em;
    }

/* Navigation row - horizontal below title, left aligned */
.site-nav-row {
    display: flex;
    align-items: center;
    gap: 0;
    align-self: flex-start;
}

.site-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

    .site-nav li {
        padding: 0 15px;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
    }

        .site-nav li:first-child {
            padding-left: 0;
        }

    .site-nav a {
        text-decoration: none;
        color: #f9f9f9;
        font-weight: 500;
        font-size: 0.95rem;
        transition: opacity 0.2s;
    }

        .site-nav a:hover {
            opacity: 0.7;
        }

/* Browse dropdown */
.browse-dropdown,
.contributors-dropdown {
    position: relative;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.browse-toggle,
.contributors-toggle {
    background: none;
    border: none;
    color: #f9f9f9;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: opacity 0.2s;
}

    .browse-toggle:hover,
    .contributors-toggle:hover {
        opacity: 0.7;
    }

    .browse-toggle svg,
    .contributors-toggle svg {
        width: 14px;
        height: 14px;
        transition: transform 0.2s;
    }

.browse-dropdown.open .browse-toggle svg,
.contributors-dropdown.open .contributors-toggle svg {
    transform: rotate(180deg);
}

.browse-menu,
.contributors-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #680024;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 100;
}

.browse-dropdown.open .browse-menu,
.contributors-dropdown.open .contributors-menu {
    display: block;
}

.browse-menu a,
.contributors-menu a {
    display: block;
    padding: 8px 16px;
    color: #f9f9f9;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    white-space: nowrap;
}

    .browse-menu a:hover,
    .contributors-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Responsive */
@media (max-width: 768px) {
    .site-title a {
        font-size: 2rem;
    }

    .site-nav-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav li,
    .browse-dropdown {
        padding: 0 10px;
    }
}

/*beginning of footer*/
.site-footer {
    background-color: #680024;
    padding: 20px 40px;
    text-align: center;
    font-size: 0.9rem;
    min-height: auto;
    position: relative;
    color: #f9f9f9;
}

    .site-footer p {
        margin: 0;
    }

.footer-social {
    position: absolute;
    bottom: 10px;
    right: 40px;
}

    .footer-social a {
        display: inline-block;
    }

.social-icon {
    width: 24px;
    height: 24px;
    transition: filter 0.2s;
}

.footer-social a:hover .social-icon {
    filter: invert(70%);
}
