/****************************
 * SITE-WIDE STYLES
 ****************************/

/****************************
 * Variables
 ****************************/
:root {
    --white: #ffffff;
    --evergreen: #03272d;
    --toxic-green: #72db2b;
    --emerald-green: #07841b;
    --light-gray: #edeeef;
    /* --medium-gray: #515e61; */
    --black-16: rgba(0, 0, 0, 0.16);
    /* --evergreen: #7b8d91; */
    /* --light-gray: #f6f6f7; */
    --medium-gray: #a2a9ab;
    --black: #0a0a0a;
    --dark-gray: #333333;
    --disabled-color: #c6c6c7;
    --horizontal-rule-dark: #7b8d91;
    --horizontal-rule-light: #e5e9e9;
    --vertical-separator-color: #cacaca;
    --dark-red: #d10000;
    /************************************
    UGH - Can't use these in selectors!
    Screen Size Breakpoint Dimensions
      20em  = 320px
      40em  = 640px
      64em  = 1024px
      80em  = 1280px
      120em = 1920px
  ************************************/
    --xsmall-min-width: 0; /* ??? */
    --xsmall-max-width: 19.9375em; /* ??? */

    --small-min-width: 20; /* ??? */
    --small-max-width: 39.9375em;
    --medium-min-width: 40em;
    --medium-max-width: 63.9375em;
    --large-min-width: 64em;
    --large-max-width: 79.9375em;
    --xlarge-min-width: 80em; /* ??? */
    --xlarge-max-width: 120em; /* ??? */
}

/**************************************
  Responsive variables
**************************************/

/* X-Small & Small */
@media screen {
    :root {
        --font-size: 1rem;
        --side-margin: 1rem;
    }
}

/* Medium */
@media screen and (min-width: 40em) {
    :root {
        --font-size: 1.2rem;
        --side-margin: 5.5rem;
    }
}

/* Large */
@media screen and (min-width: 64em) {
    :root {
        --font-size: 1.35rem;
        /* --side-margin: 5.75rem; */
    }
}

/* X-Large & larger */
@media screen and (min-width: 80em) {
    :root {
        --side-margin: 11.5rem;
    }
}


/****************************
 * Layout
 ****************************/

main {
    justify-content: center;
    /* padding: 2rem; */
}

#main-content {
    /* padding: 1rem var(--side-margin); */
    /* margin: 0 auto; */
    /* font-size: var(--font-size); */
    margin: 1rem auto;
    /* max-width: 90rem; */
    width: 100%;
}

@media (max-width: 600px) {
    #download {
        padding-bottom: 20px !important;
    }
  }

#content {
    margin: 0 auto;
}

/* Sidebar */
#sidebar {
    /*background-color: var(--light-gray);*/
    font-size: 1.0rem;
    padding: 0;
    margin-bottom: 1rem;
    margin-right: 2rem;
    /* max-width: 26rem; */
    /* width: 100%; */
    width: 18rem;
}

    #sidebar a,
    #sidebar a:hover {
        color: var(--black);
    }

/****************************
 * Typography
 ****************************/

main h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 0;
}

#content h1 {
    font-size: 2.5em;
    /* margin: 2rem; */
    /* margin-bottom: 1rem; */
}

/* Sidebar */
#sidebar h3 {
    font-size: 1.875;
    font-weight: 800;
}

.disabled {
    color: var(--disabled-color);
}

/* Buttons */
.button {
    border-radius: 5px;
}

/* Action links (bold & underlined) */
a.action {
    border-bottom: solid 2px var(--toxic-green);
    font-weight: bold;
}

/****************************
 * Main nav bar
 ****************************/
/* .navbar-links { 
    display: inline-block;
    margin: 0 0 1rem 0;
    margin: 0 0 0 2.0rem;
    list-style: none;
}

.navbar li {
    float: left;
    margin-left: 2rem;
}

    .navbar li:not(.current) a {
        color: var(--white);
    }

        .navbar li:not(.current) a:hover {
            color: var(--toxic-green);
            text-decoration: underline;
        }*/

/****************************
 * Banner
 ****************************/
#banner {
    display: flex;
    align-items: center;
    background-color: var(--evergreen);
    justify-content: center;
    text-align: center;
    position: relative;
    height: 200px;
}
    /* Banner image hack to apply opacity w/o affecting text */
    /* See: https://stackoverflow.com/a/23254532/3716406 */
    #banner:after {
        content: '';
        background: url(/images/banner.jpg);
        background-position: center;
        background-size: cover;
        opacity: 0.2;
        position: absolute;
        top: 0px;
        left: 0px;
        height: 100%;
        width: 100%;
    }

    #banner h1 {
        color: var(--white);
        font-weight: bold;
        line-height: 1.2;
        text-shadow: 2px 2px var(--dark-gray);
    }

/****************************
 * Local nav bar
 ****************************/
.local-nav {
    border-top: 2px solid var(--horizontal-rule-dark);
    border-bottom: 2px solid var(--horizontal-rule-dark);
    grid-column: 1/-1;
    padding: 0.7rem 0;
}

    .local-nav a {
        /* FIXME: */
        color: var(--emerald-green);
    }

    .local-nav ul {
        /* font-size: 1.125rem; */
        font-size: var(--font-size);
        list-style: none;
        /* margin: 0 0 1.5rem 1rem; */
        margin: 0;
        /* text-transform: uppercase; */
    }

/****************************
 * Author
 ****************************/
.author-block .author-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 1.25rem;
    text-align: center;
}

.author-photo img {
    border-radius: 50%;
    object-fit: cover;
    height: 128px;
    width: 128px;
}

/****************************
 * User login dropdown menu
 ****************************/
.header-top .dropdown .is-dropdown-submenu a {
    font-size: 0.85rem;
    padding: 0.5rem;
}

/*
.dropdown.menu > li > a,
/* .dropdown.menu > li:hover > a, * /
.dropdown.menu > li.is-active > a {
  color: var(--white);
  padding-top: 0;
  padding-bottom: 0;
}
.dropdown .is-dropdown-submenu a {
  font-size: 1.0rem;
  padding: 0 0.25rem;
}
.dropdown.menu > li.is-dropdown-submenu-parent>a::after {
  border-color: var(--white) transparent transparent;
}
.dropdown.menu .submenu {
  background-color: var(--white);
}
.dropdown.menu .submenu a:hover {
  color: var(--emerald-green);
}

/* Restore defaults * /
.dropdown .is-dropdown-submenu {
  position: absolute;
  min-height: 0;
}

.dropdown .is-dropdown-submenu {
  padding: 0.5rem;
  /* display: block; * /
  flex-direction: initial;
  justify-content: initial;
  /* width: 100%; * /
}
.dropdown .is-dropdown-submenu a {
  line-height: 1.5rem;
}

.dropdown.menu li.divider {
  border-bottom: 1px solid var(--medium-gray);
}
*/


/************************************************
  RESPONSIVENESS
************************************************/

/************************************************
  Screen Size Breakpoints (based on Foundation):
      X-Small
    20em (320px)
      Small
    40em (640px)
      Medium
    64em (1024px)
      Large
    80em (1280px)
      X-Large
    120em (1920px)
      XX-Large
************************************************/

/**************************************
  PROGRESSIVE DISPLAY STYLES
  (Applied from smallest to largest)
**************************************/

/*** X-SMALL DISPLAYS ***/
@media screen {

    .content-wrapper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    #banner {
        height: 85px;
    }

        #banner h1 {
            font-size: 1.5rem;
        }
}

/*** SMALL DISPLAYS ***/
@media screen and (min-width: 20em) {

    .content-wrapper {
        padding-left: 1.0rem;
        padding-right: 1.0rem;
    }

    #banner {
        height: 100px;
    }

        #banner h1 {
            font-size: 2.5rem;
        }
}

/*** MEDIUM DISPLAYS ***/
@media screen and (min-width: 40em) {
    .content-wrapper {
        padding-left: 2.0rem;
        padding-right: 2.0rem;
    }

    #banner {
        height: 200px;
    }

        #banner h1 {
            font-size: 3.75rem;
        }
}

/*** LARGE DISPLAYS ***/
@media screen and (min-width: 64em) {
}

/*** X-LARGE DISPLAYS ***/
@media screen and (min-width: 80em) {
}

/*** XX-LARGE DISPLAYS ***/
@media screen and (min-width: 90em) {
}

/*** XXX-LARGE DISPLAYS ***/
@media screen and (min-width: 100em) {
}


/**************************************
  SPECIFIC SCREEN SIZES
**************************************/

/*** X-SMALL & SMALL DISPLAYS ***/
@media screen and (max-width: 39.9375em) {

    /****************
   * Layout
   ****************/

    /* Disable flex layout for mobile */
    #main-content {
        display: block;
    }

    #sidebar {
        width: 100%;
    }

    #content {
        /* padding: 1rem 0.5rem; */
    }

    /* Center nav links */
    #main-header nav {
        text-align: center;
    }

    .navbar-links {
        margin: auto;
    }

    /****************
   * Breadcrumbs
   ****************/

    /* Reduce font size - NEEDED??? */
    .header .header__breadcrumbs .breadcrumbs li {
        /* font-size: 0.75rem; */
    }

    /* Tighten spacing around path separators */
    .breadcrumbs li:not(:last-child)::after {
        margin: 0 .25rem;
    }

    /* Hide "Home" */
    /*
  .breadcrumbs li:first-child {
    display: none;
  }
  */
}
