@import "theme.css";

/* Put the navigation below the Federal government website notice */
.wy-nav-side {
    top: 89px;
    min-height: calc(100% - 89px);
}

.wy-nav-content-wrap {    
    margin-top: 89px;
}

/* Ensure that links to headers don't get hidden under the page header */
.wy-nav-content-wrap a,
.wy-nav-content-wrap section,
.wy-nav-content-wrap span
{
    scroll-margin-top: 89px !important;
}

/* Allow content to take up the full remaining width of the page */
.wy-nav-content {
    max-width: none;
}

.wy-table-responsive table td {
    white-space: normal !important;
}
.wy-table-responsive {
    overflow: visible !important;
}

/* Set more Census-y colors */
.wy-side-nav-search {
    border-top: 1px solid #ccc;
    background-color: #112e51;
}

.wy-side-nav-search a {
    font-size: 140%;
}
  
.wy-menu-vertical p.caption {
    color: #5792db;
}

a {
    color: ##245fa8;
}

.suggested-citation li {
    list-style-type: none !important;
}

/* Add PDF and external site images to links as needed */
a[href]:where(
  [href*=".pdf"],
)::after {
    content: url("https://lehd.ces.census.gov/images/pdficon.gif");
    margin-left: 0.5em;
}

a[href]:where(
    [href^="http"],
):not(:where(
  [href*=".gov/"],
  [href$=".gov"],
))::after {
    content: url("https://www.census.gov/main/www/img/offsite.gif");
    margin-left: 0.5em;
}


/* Header styling */

.usa-banner {
    position: fixed;
    top: 0;
    left: 0;
    height: 25px !important;
    width: 100%;
    z-index: 100;
}

header.hdr-primary,
header.hdr-primary>nav {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    z-index: 100;  
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 64px !important;
    background-color: #112e51 !important;
    border-color: #112e51 !important;
}

header.hdr-primary>nav>div {
    box-sizing: border-box !important;
    height: 36.62px !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    line-height: 30px !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
    padding: 0 0 0 16px !important;
    margin: 0 !important;
    min-width: 150px !important;
}

header.hdr-primary>nav>div>a,
header.hdr-primary>nav>div>a>img {
    padding: 0 !important;
    margin: 0 !important;
    border-style: none !important;
    background: transparent !important;
    text-decoration: none !important;
}

header.hdr-primary>nav>div>a {
    box-sizing: border-box !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

header.hdr-primary>nav>div>a>img {
    width: 86px !important;
    height: 33.62px !important;
    margin-left: 15px !important;
}

/* Configuration options for mermaid.js */
@media screen and (max-width: 1200px) {
    .rst-content .sidebar {
        float: none;
        width: 100%;
        margin-left: 0;
    }
    .mermaid {
        float: none;
        max-width: 100%;
    }
}

@media screen and (min-width: 1201px) {
    .mermaid {
        max-width: 60%;
    }
}

.mermaidTooltip {
    /* Position tooltips below */
    position: absolute;
    top: 100%;
    left: 50%;

    text-align: center;
    max-width: 200px;
    padding: 2px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
}

.mermaidTooltip::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}
