/* -------------------- FONTIT -------------------- */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* -------------------- PERUSRUNKO ----------------- */

.com-content-category__items .badge.bg-info {
  display: none;
}

ul.mod-articlescategory.category-module.mod-list > li
{
  border-left: 0px;
  border-top: 0px; 
  border-right: 0px;
  border-bottom: 1px;
  border-color: #d3d3d3;
  border-style: solid; 
  font-size: 14px;
  font-family: "Roboto", sans-serif;
}

div.content-category > h1
{
  font-size: 20px;
  margin-bottom: -20px;
  margin-top: 10px;
}

.mod-articles-category-date
{
  font-weight: bold;
  font-size: 10px;
  font-family: "Roboto", sans-serif;
}

body  {
  width: 1220px;
  margin: auto;
  border: 10px;
  border-color: white;
  border-style: solid;
}

html {
  background-color: #FBFBFB;
} 

div.grid-child.container-below-top {
background: white;
height: 32px; 
/* margin-top: 5px;*/
}

header.header.container-header.full-width > div.grid-child
{
 padding-left: 0px;
 padding-right: 0px; 
 background: white;
}

p, h1, h2, h3, h4, a {
  color: #483737;
}

br {
  content: "";
  display: block;
  margin-bottom: 3px;
}


/* -------------------- LINKIT & NAPIT -------------------- */
a.btn.btn-secondary {
  color: #483737;
  background: white;
  font-size: 14px;
  font-weight: 500;
  border: none;
}

div.com-content-article__body  {
  font-size: 14px;
}

a.btn.btn-sm.btn-secondary.next {
  visibility: hidden;
}

li.active.page-item > a.page-link,
div#rapid_contact_form_rp_508002 > div > input,
div#search-form > form > fieldset > div > div > button,
div.com-tags-tags__filter.btn-group > button.btn.btn-primary {
  border: 1px white solid;
  font-size: 12px;
  background: #d40000;
  color: white;
}

/* -------------------- TYPOGRAFIA -------------------- */
/* Uusiotsikko */
article-title,
h2.item-title,
div.page-header > h2,
div.com-content-article.item-page > div.page-header > h1 {
  font-size: 1.6em;
  font-family: "Noto serif", serif;
  font-weight: 600;
  /*border-top: 1px #d3d3d3 solid ; */
  /* width: 100%; */
  /* padding-top: 5px;
  margin-top: 5px;
  margin-bottom: 15px;*/
}

li.list-group-item.list-group-item-action > h3 > a,
.mod-tagspopular-cloud.tagspopular.tagscloud > span.tag > a.tag-name,
h3.card-header {
  color: #483737;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

/* jatkuu juttua varten 

div.com-content-article.item-page >
div.com-content-article__body {

  margin-top: -60px;
    padding-top: 0px;
  
} */

/* -------------------- NAVIGOINTI -------------------- */
header.header.container-header.full-width {
  background: white;
  margin: auto; 
  margin-bottom: -35px;
  margin-top: 12px;
  width: 1200px;
}

@media screen and (max-width: 900px) { 
  .container-nav {
   background: white;
  }

ul.mod-menu.mod-list.nav {
    color: black;
    display: block;
    background: white;
    height: 30px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 13px;
  }

div.com-content-article.item-page > div.page-header > h1 {
    margin-top: 10px;
  }
} 

/* älä poista aaltosulkua */

@media screen and (min-width: 900px) {
  .container-nav {
    margin: auto;
    background: white;
    margin-bottom: 7px;
    font-weight: 500;
    color: black;
    font-size: 14px;
    height: 38px;
    font-family: "Roboto", sans-serif;
  }

  ul.mod-menu.mod-list.nav {
    color: black;
    padding-left: 10px;
    margin-top: -8px;
    height: 36px;
    padding-top: 4px;
    margin-bottom: 7px;
    background:white;
    /* border-top: 1px #d3d3d3 solid;    */
  }
} 

/*älä POISTA aaltosulkua */

ul.mod-menu.mod-list.nav a:hover {
  color: gray; 
  border-bottom: 4px #d3d3d3 solid; 
}

.nav-item.current.active {
  color: red;
/*  border-bottom: 4px #d3d3d3 solid; */
}

/* -------------------- ARTIKKELIT & LISTAT -------------------- */

.article-info.text-muted {
  display: flex; 
  justify-content: flex-start;
  flex-wrap: nowrap;     /* estää rivittymisen */
  gap: 0.2rem;           /* väli elementtien väliin */
  font-size: 12px;
  width: 100%; 
  float: left;
  background-color: #999;
  padding-left: 7px;
  padding-top: 7px;
  /* margin-bottom: 0px;*/
}

@media (width: 800px) {
  .article-info.text-muted {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Piilota kaikki artikkelien infoikonit */
.article-info.text-muted .icon,
.article-info.text-muted [class^="icon-"],
.article-info.text-muted [class*=" icon-"] {
 display: none !important;
}

/* .article-info.text-muted dd:not(:first-child)::before {  */
.article-info.text-muted dd:not(:first-child,:last-child)::after { 
  content: "|";
  margin: 0 0.4em;
  color: #999;  /* voit säätää väriä */
  font-weight: normal;
}

dt.article-info-term {
display: none;
} 

span.icon-chevron-right {
padding-right: 5px;
}

/* ul.com-tags-tag_category.category.list-group,
.list-group-item.list-group-item-action {
  border: none;
  border-bottom: 1px #d3d3d3 solid;
  padding: 0px;
}

.tags a.btn {
  background: white;
  color: gray;
  border: 0;
  font-size: 13px;
  margin-left: -10px;
  text-decoration: underline;
  font-weight: 400;
}

ul.tags.list-inline {
  margin-top: -10px;
  margin-bottom: -5px;
} 
*/
/* -------------------- GRID / LAYOUT -------------------- */

/* jutun tietojen yläpuolinen tila */
div.blog-item >
div.item-content >
ul.tags.list-inline
{
height: 110px;
}

 .site-grid {
  display: flex;
  max-width: 1200px;
  margin: auto;
  gap: 15px;
  margin-top: 20px;
}

.container-component {
flex: 8; 
  order: 1;
}

/*.container-sidebar-left {
  flex: 3;
  order: 2;
  background-color: #FBFBFB; 
}*/

.container-sidebar-right {
  flex: 4;
  order: 2;
}

/* -------------------- MUUT -------------------- */

/* Lisää vaakaviiva artikkeleiden väliin */

div.blog-featured >
div.blog-items.items-leading >
div.blog-item 
{
  border-bottom: 8px solid #FBFBFB;
}

div.blog-featured >
div.blog-items.items-leading >
div.blog-item: last-child  
{
  border-bottom: none;
}

.com-content-category_items.badge bg-info {
  display: none;
}
/* badge bg-info" */

.com-content-category_items.article-info.hits {
  display: none;}

h3.card-header {
    background: white;
    border-bottom: 1px #d3d3d3 solid;
}

div.card-body
{
background-color: #FBFBFB; 
}

/* kevyt mobiili --- */

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

  body {
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
  }

  header.header.container-header.full-width {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .site-grid {
    flex-direction: column;
    gap: 10px;
  }

  .container-sidebar-left,
  .container-sidebar-right {
    order: 3;
    flex: 1 1 100%;
  }

  .container-component {
    order: 1;
    flex: 1 1 100%;
      }

  /* NAVIGOINTI: vaakarivi + rivittyminen */
  
  ul.mod-menu.mod-list.nav {
    display: flex;
    flex-direction: row;    /* vaakasuunta */
    flex-wrap: wrap;        /* salli rivittyminen */
    justify-content: left; /* valinnainen: keskitys */
    height: auto;
    padding: 5px 0;
    gap: 8px;               /* väliä linkkien väliin */
    background: white;
  }

  ul.mod-menu.mod-list.nav li {
    margin: 0;              /* ei ylimääräisiä marginaaleja */
    border: none;
  }

  ul.mod-menu.mod-list.nav li a {
    display: inline-block;
    padding: 6px 6px;
  }

  /* TYPOGRAFIA hieman pienemmäksi */
  h1, h2, h3, h4, p, a {
    font-size: 90%;
  }

  .article-info.text-muted {
    flex-direction: column; /* oli column  */
    font-size: 11px;
    background: #FBFBFB;
    border: 1px #d3d3d3 solid ;
  }


  .article-info.text-muted dd:not(:first-child,:last-child)::after { 
  content: " ";
  margin: 0 0.4em;
  color: #999;  /* voit säätää väriä */
  font-weight: normal; }

  header.header.container-header.full-width {
    margin-bottom: -30px;   /* poistaa ylimääräisen tilan headerin alta */
    padding-bottom: 0;  /* jos paddingia jää */
  }

  main {
    margin-top: 0px;      /* poistaa ylimääräisen tilan mainin yläpuolelta */
    padding-top: 0px;
  }

  /* Jos vielä jää väliä, pakota suoraan komponenttikontaineriin */
  .container-component {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* vähän isommalle näytölle, ei pakollinen  
@media screen and (max-width: 1000px;) {
   .article-info.text-muted {
    flex-direction: row; 
    font-size: 11px;
  }
  } */