/* Artfully masterminded by ZURB */
/* --------------------------------------------------
   Table of Contents
-----------------------------------------------------
:: Shared Styles
:: Page Name 1
:: Page Name 2
*/


/* -----------------------------------------
  Frontpage
----------------------------------------- */



#post-nav {
    display: flex;
    justify-content: space-between;
    background: white;
    margin-bottom: 15px;
}

.post-next,
.post-previous {
    background-color: #0c4d97;
}

.frontpage .post-box article {
    /* background: #eaeaea;
   padding: 8px; */
    margin-bottom: 20px;
    padding: 8px;
    background: #efefef;
}

#left-sidebar article{
    display: flex;
    justify-content: center;
}

#left-sidebar article .sidebar-section{
    padding: 10px;
    background-color: #f1f1f1;
}

#left-sidebar article:nth-of-type(1) .sidebar-section {
    /* background-color: #0c4d97; */
}
#left-sidebar article:nth-of-type(1) .sidebar-section h6 {
  /* color: #fff; */
}

#left-sidebar article:nth-of-type(2) .sidebar-section {
    /* background-color: #7fa33e; */
}
#left-sidebar article:nth-of-type(3) .sidebar-section {
    /* background-color: #df8626; */
}

@media only screen and (max-width: 767px) {

    #left-sidebar article .sidebar-section{
    width:100%;
}
}

aside#left-sidebar {
    margin-top: 30px;
    margin-bottom: 30px;
}

#left-sidebar .sidebar-box {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    #left-sidebar .sidebar-box {
        margin: 0 20px;
        width: auto;
    }

    #left-sidebar article{
    display: block;
}
#left-sidebar .sidebar-box article{
    margin:0;
}

}


@media only screen and (max-width: 767px) {
    #left-sidebar .sidebar-box article {
        min-width: 100%;
    }
}

article .entry-date {
    font-size: 90%;
    margin: 3px 0 0 0;
}

#left-sidebar .sidebar-section {
  border-top: 10px solid;
    margin-top: 15px;
}

#left-sidebar article:nth-of-type(1) .sidebar-section {
    border-top-color: #0c4d97;
}

#left-sidebar article:nth-of-type(2) .sidebar-section {
    border-top-color: #7fa33e;
}

#left-sidebar article:nth-of-type(3) .sidebar-section {
    border-top-color: #df8626;
}

#left-sidebar article:nth-of-type(4) .sidebar-section {
    border-top-color: #0c4d97;
}

#left-sidebar article:nth-of-type(5) .sidebar-section {
    border-top-color: #7fa33e;
}

#left-sidebar article:nth-of-type(6) .sidebar-section {
    border-top-color: #df8626;
}


/* #left-sidebar article{ */
/* border-radius:5px;
    padding:5px 0px 5px 0px;
    margin-bottom:10px; */
/* } */

#left-sidebar article h6,
#left-sidebar article p {
    color: #000;
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom:10px;
    font-weight: normal;
}

#left-sidebar article h6 {
    font-size: 20px;
    font-weight: bold;
}

#left-sidebar a {
    text-decoration: underline;
    font-weight: bold;
}

#sidebar .sidebar-box article {
    padding-top: 120px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    border: 1px solid #d8d8d8;
    background: url('../images/ilo-int-100x.png') no-repeat 50% 10px;
    /* margin-top:16px; */
    box-sizing: border-box;
}



/* old snippet from moved to here from style.css */
/* #rss-3{padding-top:110px;background:url('images/ilo-int-100x.png') no-repeat 50% 0%;margin-top:16  px;} */
/* -----------------------------------------
   Shared Styles
----------------------------------------- */
a[target="_blank"]:after {
    content: ' (Öppnas i nytt fönster)';
    color: #5a5a5a;
    font-size: 14px;
}

a:focus {
    outline: auto;
}
#post-nav a:focus {
    outline-color: #0c4d97;
}

/* reset buttons*/
.button-reset {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;

    background: transparent;

    /* inherit font & color from ancestor */
    color: inherit;
    font: inherit;

    /* Normalize `line-height`. Cannot be changed from `normal` in Firefox 4+. */
    line-height: normal;

    /* Corrects font smoothing for webkit */
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;

    /* Corrects inability to style clickable `input` types in iOS */
    -webkit-appearance: none;
}

/* -----------------------------------------
   Nav
----------------------------------------- */

ul.nav {
    display: block;
    width: auto;
    height: 17px;
    margin: 0 0 0 10px;
    padding: 9px 0
}

ul.nav dt,
ul.nav li {
    float: left;
    display: inline;
}

ul.nav dt {
    color: #999;
    font-weight: normal;
}

ul.nav li a {
    text-decoration: none;
    margin-left: 6px;
    padding: 5px 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    color: white;
    text-transform: uppercase
}

ul.nav li a:hover {
    color: #eee;
    text-decoration: underline;
}

ul.nav li.current-menu-item a,
ul.nav li.current-post-ancestor a,
ul.nav li.current-menu-parent a,
ul.nav li.current-post-parent a {
    color: #0957a1;
    font-weight: bold;
    background: #fff;
}


@media only screen and (max-width: 767px) {

    ul.nav {
        height: auto;
    }

    ul.tabs.mobile,
    ul.nice.tabs.mobile {
        width: auto;
        margin: 20px -20px 40px;
        height: auto;
    }

    ul.tabs.mobile li,
    ul.nice.tabs.mobile li {
        float: none;
        height: auto;
    }

    ul.tabs.mobile li a {
        display: block;
        width: auto;
        height: auto;
        padding: 18px 20px;
        line-height: 1;
        border: solid 0px #ccc;
        border-width: 1px 0px 0px;
        margin: 0;
        color: #555;
        background: #eee;
        font-size: 15px;
        font-size: 1.5rem;
    }

    ul.tabs.mobile li a.active {
        height: auto;
        margin: 0;
        border-width: 1px 0px 0px;
    }

    .nice.tabs.mobile {
        border-bottom: solid 1px #ccc;
        height: auto;
    }

    .nice.tabs.mobile li a {
        padding: 18px 20px;
        border: none;
        border-left: none;
        border-right: none;
        border-top: 1px solid #ccc;
        background: #fff;
    }

    .nice.tabs.mobile li a.active {
        border: none;
        background: #00a6fc;
        color: #fff;
        margin: 0;
        position: static;
        top: 0px;
        height: auto;
    }

    .nice.tabs.mobile li:first-child a.active {
        margin: 0;
    }

    ul.contained.mobile,
    ul.nice.contained.mobile {
        margin-bottom: 0px;
    }

    ul.contained.tabs.mobile li a {
        padding: 18px 20px;
    }

    ul.nice.contained.tabs.mobile li a {
        padding: 18px 20px;
    }

    ul.nice li,
    ol.nice li {
        padding-left: 0;
        margin-bottom: 0;
    }

    ul.tabs.mobile li,
    ul.nice.tabs.mobile li {
        margin-bottom: 0 !important;
    }
}

@media only screen and (max-width: 767px) {
    .hide-on-phones {
        display: none !important;
    }

    .hide-on-tablets {
        display: block !important;
    }

    .hide-on-desktops {
        display: block;
    }

    .show-on-phones {
        display: block;
    }

    .show-on-tablets {
        display: none !important;
    }

    .show-on-desktops {
        display: none !important;
    }
}

@media (min-width: 767px) {
  nav {
      display: flex;
      margin-bottom: 15px;
  }
}

#searchform .input-text,
#searchformmobile .input-text {
    min-width: 150px;
    max-height: 50px;
}

form {
    max-height: 42px;
}

#searchform .button img {
    min-height: 14px;
    min-width: 14px;
}

#searchformmobile {
    padding-bottom: 0;
}


/* -----------------------------------------
   Left Sidebar
----------------------------------------- */

a:focus h6 {
    outline: auto;
}

h6>a {
    color: inherit;
}


/* -----------------------------------------
  Footer
----------------------------------------- */
.footer {
    background-color: #0c4d97;
    padding: 40px;
    max-width: 900px;
    min-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer a {
    color: white;
    font-weight: bold;
    font-size: 1.7rem;
}

.footer a:hover{
  text-decoration: underline;
}

.footer-nav li {
    display: inline-block;
    float: none;
}

.copyright{
  color: #fff;
  font-size: 1.5rem;
  margin-top: 20px;
}

#menu-huvudmeny-2 {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
}

@media only screen and (max-width: 767px) {

    .footer-nav li {
        display: block;
        float: none;
        white-space: nowrap;
    }

    .footer-content {
        align-items: flex-start;
    }

    #menu-huvudmeny-2 {
        flex-direction: column;
        margin-bottom: 15px;
    }
}


/* -----------------------------------------
   Mobile nav
----------------------------------------- */

@media (min-width: 767px) {
  .togglebutton-wrapper { display: none; }
}

#toggle-btn {
  color: #fff;
  background: #0957a1;
  width: 100%;
  padding: 12px 0;
  margin: 0;
  margin-top: -1px;
  margin-bottom: 30px;
  font-weight: bold;
}

#toggle-btn .feather-chevron-right {
  transform: rotate(90deg);
  transition: all 0.2s ease-in-out;
}

#toggle-btn.open .feather-chevron-right {
  transform: rotate(-90deg);
}


/* -----------------------------------------
   Page Name 2
----------------------------------------- */

.container.container {
    padding: 0;
}

@media only screen and (max-width: 767px) {
    #main, aside#sidebar {
        padding: 0 15px;
    }
    #documents--blank-state .button {
        margin-right: 0px;
    }

    aside#left-sidebar {
        margin-top: 0;
    }
}