/** Loopy Pro shared forum header/footer refresh **/
.lp-site-header {
    --lp-panel: rgba(8, 9, 11, 0.86);
    --lp-line: rgba(255, 255, 255, 0.09);
    --lp-ink: #f5f7fb;
    --lp-muted: #b5beca;
    --lp-orange: #ff8a1c;
    --lp-shell: 1272px;
    background: var(--lp-panel) !important;
    border-bottom: 1px solid var(--lp-line) !important;
    color: var(--lp-ink) !important;
    box-shadow: none !important;
}

.lp-site-header .lp-title-bar {
    background: rgba(8, 9, 11, 0.76);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-site-header .lp-title-bar-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: var(--lp-shell);
    min-height: 58px;
    margin: 0 auto;
    padding: 0.75rem 18px;
    font-family: Montserrat, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.lp-site-header .lp-forum-brand,
.lp-site-header .lp-forum-brand:focus,
.lp-site-header .lp-forum-brand:hover {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0;
    color: var(--lp-ink);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.lp-site-header .lp-forum-brand span {
    color: var(--lp-orange);
}

.lp-site-header .lp-primary-nav,
.lp-site-header .lp-forum-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.lp-site-header .lp-primary-nav a,
.lp-site-header .lp-forum-nav a {
    color: var(--lp-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.lp-site-header .lp-primary-nav a:focus,
.lp-site-header .lp-primary-nav a:hover,
.lp-site-header .lp-forum-nav a:focus,
.lp-site-header .lp-forum-nav a:hover,
.lp-site-header .lp-forum-nav a.is-active {
    color: var(--lp-ink);
}

.lp-site-header .lp-forum-nav a.is-active {
    color: var(--lp-orange);
}

.lp-site-header .Header-flexSpacer {
    flex: 1 1 auto;
}

.lp-site-header .Header-right {
    gap: 0.8rem;
    margin-left: 0;
}

.lp-site-header .MeBox-header {
    flex: 0 0 auto;
}

.lp-site-header .MeButton {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--lp-ink) !important;
}

.lp-site-header .MeButton:active,
.lp-site-header .MeButton:focus,
.lp-site-header .MeButton:hover,
.lp-site-header .ToggleFlyout.Open .MeButton {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: transparent !important;
    color: var(--lp-ink) !important;
}

.lp-site-header .MeButton .PhotoWrap,
.lp-site-header .MeButton .ProfilePhoto,
.lp-site-header .mobileMeBox-button,
.lp-site-header .mobileMeBox-button .PhotoWrap,
.lp-site-header .mobileMeBox-button img {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.lp-site-header .SignInLinks a {
    border-color: rgba(255, 138, 28, 0.42) !important;
    background: rgba(255, 138, 28, 0.12) !important;
    color: var(--lp-ink) !important;
}

.lp-site-header .SignInLinks a:active,
.lp-site-header .SignInLinks a:focus,
.lp-site-header .SignInLinks a:hover {
    background: rgba(255, 138, 28, 0.2) !important;
    border-color: rgba(255, 138, 28, 0.62) !important;
    color: var(--lp-ink) !important;
}

.lp-site-header .WhoIs > .Username {
    color: var(--lp-ink);
}

.lp-site-header .mobileMebox,
.lp-site-header .Navigation {
    background: rgba(8, 9, 11, 0.96);
    color: var(--lp-muted);
}

.lp-site-header .Navigation {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top: 1px solid var(--lp-line);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.lp-site-header .Navigation-link {
    color: var(--lp-muted);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    min-height: 38px;
    text-transform: uppercase;
}

.lp-site-header .Navigation-link:focus,
.lp-site-header .Navigation-link:hover,
.lp-site-header .Navigation-link.is-active {
    color: var(--lp-orange);
}

.lp-site-header .Navigation-linkContainer:after {
    background: rgba(255, 255, 255, 0.08);
}

.lp-site-footer {
    --lp-line: rgba(255, 255, 255, 0.09);
    --lp-ink: #f5f7fb;
    --lp-muted: #b5beca;
    --lp-shell: 1272px;
    border-top: 1px solid var(--lp-line) !important;
    background: rgba(8, 9, 11, 0.9) !important;
    color: var(--lp-muted) !important;
    font-size: 14px;
    line-height: 1.5;
    padding: 0;
}

.lp-footer-inner {
    display: grid;
    grid-template-columns: minmax(14rem, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    max-width: var(--lp-shell);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) 18px clamp(2.4rem, 5vw, 3.75rem);
}

.lp-footer-copy {
    max-width: 23rem;
}

.lp-footer-brand,
.lp-footer-link-group > span {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--lp-ink);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.lp-footer-copy p {
    max-width: 20rem;
    margin: 0;
    color: var(--lp-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.lp-footer-link-groups {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(8rem, 0.65fr);
    gap: clamp(1.35rem, 4vw, 3rem);
    justify-self: end;
    width: min(100%, 42rem);
}

.lp-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
}

.lp-site-footer a {
    color: var(--lp-muted);
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.lp-site-footer a:focus,
.lp-site-footer a:hover {
    color: var(--lp-ink);
    text-decoration: none;
    text-shadow: 0 0 18px rgba(255, 138, 28, 0.22);
}

@media screen and (max-width: 1120px) {
    .lp-site-header .lp-primary-nav { display: none; }
}

@media screen and (max-width: 920px) {
    .lp-site-header .lp-forum-nav { display: none; }
}

@media screen and (max-width: 768px) {
    .lp-site-header .lp-title-bar-content {
        min-height: 52px;
        padding: 0.65rem 0;
    }

    .lp-site-header .Hamburger { flex: 0 0 auto; }

    .lp-site-header .lp-forum-brand.mobile {
        display: flex;
        margin: 0 auto 0 0;
    }

    .lp-site-header .Header-logo:not(.mobile),
    .lp-site-header .Header-flexSpacer,
    .lp-site-header .MeBox-header {
        display: none;
    }

    .lp-site-header .Header-right { margin-left: auto; }
    .lp-site-header .mobileMeBox-button { position: static; }
    .lp-footer-inner { grid-template-columns: 1fr; }
    .lp-footer-link-groups { justify-self: stretch; width: 100%; }
}

@media screen and (max-width: 560px) {
    .lp-site-header .lp-title-bar-content {
        padding-left: 12px;
        padding-right: 12px;
        gap: 0.65rem;
    }

    .lp-site-header .lp-forum-brand,
    .lp-site-header .lp-forum-brand:focus,
    .lp-site-header .lp-forum-brand:hover {
        font-size: 0.98rem;
        letter-spacing: 0.05em;
    }

    .lp-footer-link-groups {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .lp-footer-links { gap: 0.55rem 0.9rem; }
}

.lp-footer-mode {
    align-self: start;
    margin-top: 1rem;
}

.lp-footer-mode #darkmode {
    color: var(--lp-muted);
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
}

.lp-footer-mode #darkmode:focus,
.lp-footer-mode #darkmode:hover {
    color: var(--lp-ink);
    text-decoration: none;
}
