﻿/*Header*/

/* ---- HEADER: single source of truth ---- */

/*Navbar*/
#main-header > .container{
  width: 95%;
  max-width: none;         /* ignore Bootstrap's fixed container caps */
  margin-inline: auto;     /* keep it centered */
}

.header-section, .header-section.active {
    background-color: #09214f; /* #304153;*/
    background: #09214f; /*#304153;*/
    /*    background-color: #374b5f;*/
}

/* Ensure the logo and heading stay on the left */
.navbar-brand {
    display: flex;
    align-items: center; /* Align logo and heading horizontally */
}

a.navbar-brand {
    border-bottom: none;
}

.navbar-brand img {
    width: 100%;
}

/* Force the navbar items to the right */
.navbar-nav {
    margin-left: auto; /* Push the navbar to the right */
}

.navbar h1 {
    border-left: 2px solid white;
    padding: 15px;
}

.navbar-dark .navbar-toggler {
    color: #fff;
    border: none;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0;
}

.navbar-dark .navbar-nav, .navbar-dark .navbar-nav .show > .nav-link {
    color: #fff;
    padding: 10px;
    /*  border-bottom: solid;*/
}

.nav-item:hover {
    border-bottom: solid 1px #fff;
}

.nav-link {
    color: #0d6efd;
    text-decoration: none;
}
/* Keep header on one line by default */
#main-header .navbar .container-fluid {
    flex-wrap: nowrap;
}

/* Left cluster (logo + title) */
.logo-heading-container {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    white-space: nowrap;
}

/* Title */
.site-title {
    font-size: clamp(1rem,2.5vw,2.5rem);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
}

.site-title-link {
    color: inherit; /* keep the white from the h1 */
    text-decoration: none;
}

A.site-title-link:hover {
    text-decoration: none !important;
    color: inherit; /* keep the white from the h1 */
    opacity: 0.85; /* optional subtle hover effect */
}

/* Right cluster must not shrink into logo */
#main-header .right-cluster {
    flex-shrink: 0;
}

/* Logo size defaults */
.navbar-brand img {
    max-height: 100px;
    height: auto;
    width: auto;
}

@media (max-width: 1070px) and (min-width: 991px ) {

    .section-header .title {
        margin-bottom: 10px;
    }
}

/* Desktop: right border on the left cluster */
@media (min-width: 992px) {
    .logo-heading-container {
        padding-right: 1rem;
        margin-right: 1rem;
    }
}

/* ---- ORIENTATION TWEAK (phones in landscape) ---- */
/* In landscape you have less vertical height; shrink logo & title a bit so it doesn't force wrap */
@media (max-width: 600px) and (orientation: landscape) {

    .site-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 1200px) {

    .dev-context {
        display: none !important;
    }

    .navbar-brand img {
        max-height: 80px;
        min-height: 50px;
        width: auto;
    }

    #main-header > .container {
        width: 100%;
    }
}

/* Dev context hidden below lg, account label hidden below lg */
@media (max-width: 600px) {

    /* Stack logo over title and flip border to bottom */
    .logo-heading-container {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
        border-right: none;
        padding-bottom: .5rem;
        margin-bottom: .5rem;
    }

    .site-title {
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        margin-top: .25rem;
    }

    .acct-label {
        display: none !important;
    }

    .logo-heading-container {
        display: block;
        width: 60%;
    }

    .navbar-brand img {
        max-width: 100%;
        height: auto;
    }


    a.navbar-brand {
        border-bottom: 1px solid #fff;
    }

    .navbar h1 {
        font-size: 24px; /*Set font size to 16px */
        margin-left: 0;
        margin-top: 0px;
        text-align: left;
        border-left: none;
        padding: 10px 0px;
    }

    .header-section {
        padding: 0px;
        background-color: #09214f;
        top: 0px;
    }

    .header-section .container {
        padding: 0px;
    }

    .navbar {
        padding-top: 0px;
        padding-bottom: 0px;
    }
}