@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWCBl0-8Q.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}



/* =====================================
   GLOBAL FONT
===================================== */
body {
    font-family: "DM Sans", sans-serif, system-ui, Helvetica, Arial;
}


/* =====================================
   TOP ACCOUNT BAR
===================================== */
.account-masthead {
    background: #f2f6ff !important;
    padding: 5px;
    border-bottom: none !important;
}

.account-masthead .container {
    padding-left: 32px;
    padding-right: 32px;
}

.account-masthead a,
.account-masthead .username {
    color: #1f2937 !important;
    font-weight: 500;
}

.account-masthead a:hover {
    background: #f2f6ff !important;
    color: #1f2937 !important;
}

/* Apply font to entire header */
.masthead,
.masthead a,
.masthead .nav > li > a,
.masthead .site-title,
.masthead .navbar {
    font-family: "DM Sans", sans-serif, system-ui, Helvetica, Arial !important;
    font-size: 15px !important;
}

/* =====================================
   MAIN HEADER (ONLY STYLE, NO FLEX)
===================================== */
.masthead {
    background: #ffffff !important;
    padding: 14px 0;
    border-top: 1px dotted #1377C8;
    /* border-bottom: 1px dotted #1377C8; */
    border-bottom: none !important;
}


/* Control left-right spacing */
.masthead .container {
    padding-left: 0;
    padding-right: 0;
}

.masthead .navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

/* Remove Bootstrap auto right push */
.masthead .navbar-collapse {
    flex-grow: 0 !important;
    margin-left: 40px !important;   /* controls gap from title */
}

/* Make nav horizontal and clean */
.masthead .navbar-nav {
    display: flex !important;
    gap: 20px;
}



/* =====================================
   SITE TITLE
===================================== */
.masthead .site-title,
.masthead .site-title a {
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #111827 !important;
    text-decoration: none !important;
}


/* =====================================
   NAVIGATION LINKS
===================================== */
.masthead .main-navbar .nav > li > a {
    color: #111827 !important;
    font-weight: 600;
    font-size: 18px;
    padding: 8px 16px;
    background: transparent !important;
}


/* Hover style */
.masthead .main-navbar .nav > li:hover > a,
.masthead .main-navbar .nav > li.active > a {
    background-color: #f2f6ff !important;
    border-radius: 6px;
}


/* Remove CKAN focus glow */
.masthead .nav > li > a:focus,
.masthead .nav > li > a:active {
    box-shadow: none !important;
}


/* =============================== Remove CKAN default hover shadow/blue ================================ */ 
.masthead .main-navbar ul li:hover a, 
.masthead .main-navbar ul li:focus a, 
.masthead .main-navbar ul li.active a { border-radius: 0.3rem; background-color: #f2f6ff !important; }

/* Logo + navigation text */ 
.masthead a, .masthead .nav > li > a 
{ color: #1f2937 !important; /* black text */
    /* border-bottom: 1px dotted #1377C8;  */
    display: flex;
    padding: 4px 32px 4px 32px;
     }


/* Add full width dotted blue line */
.masthead::after {
    content: "";
    display: block;
    width: 100vw;
    height: 1px;
    border-bottom: 1px dotted #1377C8;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}