/* header tuunaukset */
#main-header .site-branding {
	max-width: 420px;
}
#main-header .child-is-fixed .site-branding {
	}
#main-header .site-main-header-wrap {
    box-shadow: 0 2px 8px rgb(45 62 80 / 18%) !important;
}
/* Sticky header: site title */
.child-is-fixed .site-branding .site-title {
  font-size: 14px; /* säädä tähän haluamasi */
  line-height: 1.2;
  margin-bottom: 2px;
}

/* Sticky header: site description */
.child-is-fixed .site-branding .site-description {
  font-size: 10px;
  line-height: 1.2;
  max-width: 200px;
}

/* vihree yläpalkki aluevalinta aktiivinen */
.current-region > a {
  color: #fff !important;
  background: #13221b !important; /* haluamasi väri */

}
/* mobiilivalikon tuunaukset, alueiden valintanapit ym */

.mobile-area-label {
  padding:10px 0px 10px 7px;
  font-weight:bold;"
}

#mobile-alueet {
  padding-left: 0;
  margin: 0 !important;
}

#mobile-alueet li {
  color: #fff !important;
  font-size: 14px !important;
  list-style: none; 
}

#mobile-alueet a {
  text-decoration: none;
  font-size: 14px !important;
  color: #fff !important;

 }

 .mobile-header-button {
   border-radius: 999px !important;
   font-size: 17px;
   margin: 0.75em 0 0.75em 0 !important;
   min-width: 200px;
   text-align: center;
   padding: 0.5em 1em !important;
 }

 #mobile-alueet .kb-button {
  background: var(--global-palette7, #1e73be);
  color: #000 !important;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: all .2s ease;
  display: inline-block;
  padding: 0.5em 1em;
  margin: 0.5em 0;
  min-width: 200px;
}


/* aluevalinta menun tyylit: */
#secondary-menu {
	font-size: 80%;
	text-align: center;
	border: 1px solid #000;
	padding-inline: 1em;
	border-radius: 20px;
}

#secondary-menu .area {
	display: block;
}

/* ajankohtaista-teksti etusivulla: */
.wp-block-kadence-dynamichtml.ajankohtaista-teksti p {
  margin-block: 8px;
}

/* youtube upotus (käytetään etusivun ajankohtaisisa) */
.yt-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
}

/* yhteystiedot tai muut subpage yhdistelysivut */
section.subpage h1 {
  font-size: 28px;
}

/* rivit vuorovärisinä jlanpalvelukset, kerhot... */
.striped-query-items li.kb-query-item:nth-child(odd) {
	background: #F5F2E7;
}
/* hr rikkaasa editorissa */
.entry-content hr {
  border: 0; /* nollaa oletus */
  border-top: 6px solid #d4b483; /* brändiviiva */
  margin: 2em 0 !important; /* tilaa ympärille */
}


.tapahtumakortti .time_str {
  display: block;
  font-size: 21px;
}

.wp-block-kadence-advancedbtn.palaa-tapahtumalistaan .kb-button {
  border-radius: 999px;
  padding-inline: 2em;
  margin-block: 3em;
}

/*** facebook feedin säädöt ***/
#cff .cff-text {
  font-size: 14px;
}

/* 24.2.2024 piti lisätä korjauksia, ehkä teeman muutosten takia: */

/* Fix word-breaking and improve readability in the Lightbox */
#cff-lightbox-wrapper .cff-lightbox-caption-text {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.6 !important;
    font-size: 15px;
}

/* Ensure emojis render correctly using system-native emoji fonts */
#cff-lightbox-wrapper .cff-lightbox-caption-text,
.cff-post-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

/* Standardize WordPress emoji display */
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

/** etusivun rss syöte **/

ul.wp-block-rss  {
	padding-left: 0 !important;
}

.wp-block-rss li {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
  font-size: 0.9em;
  color: #000;
}

.wp-block-rss .wp-block-rss__item-publish-date {
  order: -1;       /* tuo ennen linkkiä */
  align-self: flex-start;  /* pysyy vasemmalla */
  margin-bottom: 0.3em;
  font-size: 0.8em;
  color: #305442;
}


/* hide extra p after footer (sometimes appears!) */
#wrapper footer + p {
	display: none;
}