/* PIILOTA ELEMENTIT */
.site-info {
  display: none;
}
.blog-info {
  display: none;
}
.blog-credits {
  display: none;
}
.byline span {
  display: none;
}
.navigation {
  display: none;
}
.nav-previous {
	display: none;
}
.nav-next {
	display: none;
}
.cat-links {
	display: none;
}
.tags-links {
	display: none;
}



/* PIILOTA OTSIKKO */
.page-id-9386 .entry-header .entry-title,
.page-id-9797 .entry-header .entry-title {
  display: none;	
}


/* TASAA QUERY */
.wp-block-post-template {
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}


/* SIVUSTON OTSIKKOPALKKI */
.site-header {
padding: 60px;
margin-inline: 0px;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
height: 148px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #999;

}

.entry-header {
	margin-top: 148px;
}

.tarinat {
  font-size: 12pt;
	line-height: 1.5;
}


/* LEIPÄTEKSTI */


p, li, .posted-on {
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.7;
}

strong {
	font-weight: 500;
}

.rpbt-excerpt, .tiivistelma p {
	text-align: left;
}

td, th {
	font-size: 12pt;
	font-weight: 300;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
}

.rpbt-excerpt a {
	font-size: 13pt;
	line-height: 1.6em;
}


.nelio p {
	font-size: 14pt;
	font-weight: 300;
	line-height: 1.4;
}


.page .entry-header .entry-title {
	font-weight: 100;
	font-size: 36pt;
	letter-spacing: 0;
	padding-top: 180px;
	padding-bottom: 180px;
	text-transform: uppercase;
	display: grid;
  place-items: center;
	margin-top: -20px;
  margin-inline: -20px;
	margin-bottom: 20px;
	border-top: 0px solid;
}



.main-navigation .menu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation .menu li {
  flex: 0 0 auto;
  margin: 0 1em;
}
.main-navigation .menu li a {
  display: inline-block;
  width: auto;
  padding: 1rem 0.5em;
  border-left: 0px solid #616161;
  text-align: left;
}
.main-navigation .menu li:first-child a {
  border-left: none;
}



.menu-item a {
 border-top: 1px solid #222;	
}






/* AJATUKSIA */
.page-item-9927, 
header:has(+ .site-content > .content-area > .site-main > article.category-ajatuksia) #site-navigation .menu-item-9948 > a, header:has(+ .site-content > .content-area > .site-main > article.category-jokumuutosmika) 
  #site-navigation .menu-item-9948 > a {
 font-weight: 900;
 border-top: 1px solid #6699ff;
}

.menu-item-9948 a,
.menu-item-9948 a:visited {
	color: #6699ff;
}

#site-navigation .menu-item-9948 > a:hover {
  color: #6699ff;
	border-top: 1px solid #6699ff;
}

.post-9927 .entry-header .entry-title {
	border-color: #6699ff;
	background-color: #222222;
	color: #6699ff;
}

header:has(+ .site-content > .content-area > .site-main > article.category-ajatuksia) + .site-content > .content-area > .site-main > article.category-ajatuksia .entry-header,
header:has(+ .site-content > .content-area > .site-main > article.category-jokumuutosmika) + .site-content > .content-area > .site-main > article.category-jokumuutosmika .entry-header {
	border-right-color: #6699ff;
}

header:has(+ .site-content > .content-area > .site-main > article.category-ajatuksia) + .site-content > .content-area > .site-main > article.category-ajatuksia .entry-content,
header:has(+ .site-content > .content-area > .site-main > article.category-jokumuutosmika) + .site-content > .content-area > .site-main > article.category-jokumuutosmika .entry-content {
	border-left-color: #6699ff;
	border-top-color: #6699ff;
}




/* KUINKA TEEN */
.page-item-10123, 
header:has(+ .site-content > .content-area > .site-main > article.category-kuinkateen)
  #site-navigation .menu-item-10126 > a {
 font-weight: 900;
 border-top: 1px solid #99ff66;
}
.menu-item-10126 a,
.menu-item-10126 a:visited {
 color: #99ff66;
}

#site-navigation .menu-item-10126 > a:hover {
  color: #99ff66;
	border-top: 1px solid #99ff66;
}

.post-10123 .entry-header .entry-title {
	border-color: #99ff66;
	background-color: #222222;
	color: #99ff66;
}




/* TARINAT */
.page-item-10119, 
header:has(+ .site-content > .content-area > .site-main > article.category-tarinat)
  #site-navigation .menu-item-10122 > a {
 font-weight: 900;
 border-top: 1px solid #ffcc66;
}
.post-10119 .entry-header .entry-title {
	border-color: #ffcc66;
	background-color: #222222;
	color: #ffcc66;
}
.menu-item-10122 a,
.menu-item-10122 a:visited {
 color: #ffcc66;
}

#site-navigation .menu-item-10122 > a:hover {
  color: #ffcc66;
	border-top: 1px solid #ffcc66;
}

header:has(+ .site-content > .content-area > .site-main > article.category-tarinat) + .site-content > .content-area > .site-main > article.category-tarinat .entry-header {
	border-right-color: #ffcc66;
}

header:has(+ .site-content > .content-area > .site-main > article.category-tarinat) + .site-content > .content-area > .site-main > article.category-tarinat .entry-content {
	border-left-color: #ffcc66;
	border-top-color: #ffcc66;
}




/* YHTEYS */
body.page-id-9387 
  #site-navigation .menu-item-9418 > a {
 font-weight: 900;
 border-top: 1px solid #ff6699;
}
.menu-item-9418 a,
.menu-item-9418 a:visited {
 color: #ff6699;
}

#site-navigation .menu-item-9418 > a:hover {
  color: #ff6699;
	border-top: 1px solid #ff6699;
}

.post-9387 .entry-header .entry-title {
	border-color: #ff6699;
	background-color: #222222;
	color: #ff6699;
}






.custom-header {
	border-radius: 0;
}


.entry-header .entry-title {
	font-weight: 900;
	color: #616161;
	font-size: 2.25em;
	letter-spacing: 0;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	text-transform: none;
	margin: 0 auto;
}

h2 {
	font-size: 20pt;
	color: #616161;
	font-weight: 500;
	line-height: 1.4;
	padding-top: 0;
	letter-spacing: -0.05em;
	text-transform: none;
	margin-top: 0px;
}

.wp-block-post-title a,
.entry-wrapper .entry-title a {
  font-size: 14pt;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.05em;
	text-transform: none;
	padding-bottom: 0.5em;
}


h3,
.wpnbha .article-section-title span {
	font-size: 15pt;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0em;
}

h3 {
	border-top: 0pt solid #616161;
  border-bottom: 1pt solid #ddd;
	padding-bottom: 0em;
	padding-top: 0;
	margin-top: 0;
	color: #616161;
	text-transform: none;
}


.nelio {
  background-color: #ff6699;
	padding-top: 20px;
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 0px;
	letter-spacing: -0.038em;
	line-height: 1.4;
	border-radius: 0.5rem;
	display: grid;
  place-items: center;
}

.tiivistelma div {
  background-color: #efefef;
	padding-top: 2.5rem;
	padding-left: 2.5rem;
	padding-right: 5rem;
	padding-bottom: 1.25rem;
	border-radius: 0 5rem 0 0;
	margin-top: 5rem;
	margin-bottom: 1.25rem;
	border: 1px dashed #616161;
}

.tiivistelma p {
	font-size: 1.25rem;
	font-weight: 200;
	line-height: 1.6;
}

.padding {
	padding-bottom: 40px;
}

.gallery-icon img, 
img {
	border-radius: 1.25rem 0 5rem 0;
	padding-bottom: 0px;
	border: 0;
}

.site-logo {
	border-radius: 0;
}


.wp-block-image,
.wp-block-post-featured-image,
.wp-block-columns {
	margin-bottom: 1.4em;
}

.wp-block-column .wp-block-image {
	margin-bottom: 0px;
}

.entry-wrapper .entry-title {
	border-top: 1pt solid #616161;
  border-bottom: 1pt solid #616161;
	padding-bottom: 0.382em;
	padding-top: 0.382em;
  line-height: 0.5;
	color: #616161;
}

.wpnbha .article-section-title,
.wpnbha.is-grid .article-section-title {
	margin: 0;
}


.post-navigation-link__label {
  display: block;
  font-size: 1.25rem;
  font-weight: bold;
	border-top: 1px solid #616161;
	margin-top: 0px;
	padding-top: 10px;
	padding-bottom: 10px;
  color: #616161;
	text-decoration: none;
}

.wp-block-post-navigation-link {
	padding-bottom: 40px;
}

.gallery-caption,
.gallery-caption a {
  margin-left: 0;
	padding-top: 20px;
	font-weight: 500;
	line-height: 1.4;
	
}

.rpbt-excerpt a {
  text-decoration: none;
  color: inherit;
	font-weight: 400;
}

.rpbt-excerpt {
	padding-top: 10px;
}

.kokoartikkelisarja {
	font-weight: 600;
	
}

.aiheeseenliittyvaa .rpbt-excerpt {
  display: none;
}

.aiheeseenliittyvaa .gallery-icon img {
    aspect-ratio: 1.618 / 1;
    object-fit: cover;
    width: 100%;
    height: auto;
    display: block;
}


@media (min-width: 768px) {
  .gallery-icon img {
    aspect-ratio: 1.618 / 1;
    object-fit: cover;
    width: 100%;
    height: auto;
    display: block;
  }
	
	.drop-cap {
		text-align: justify;
		font-size: 14pt;
}
	
.wp-block-column .paakirjoitus {
	text-align: justify;
	font-size: 14pt;
}
	
}

.site-header .site-title a {
	text-decoration: none;
  color: #9d9d9d;
	text-transform: none;
	font-weight: 900;
	font-size: 1.4em;
	letter-spacing: -0.03em;
}

.drop-cap::first-letter {
  float: left;
  font-size: 8.6em; /* kokeile esim. 4–6 em, riippuen fontista */
  line-height: 0.75;
  margin-left: -15px;
  padding-top: 0;
  font-weight: 100;
	color: #616161;
}

	.drop-cap {
	margin-bottom: 0.382em;
	letter-spacing: -0.5px;
	font-size: 13pt;
	font-weight: 400;
	line-height: 1.6;
}
	
.wp-block-column .paakirjoitus {
	margin-bottom: 0.382em;
	text-indent: 20px;
	letter-spacing: -0.5px;
	font-weight: 400;
	line-height: 1.6;
}

.site-header {
	margin-bottom: 0px;
	background-color: #222222;
}


/* FOOTER */
.site {
	padding-bottom: 0;
}

@media screen and (min-width: 75em) {
.site {
margin-bottom: 0px;
padding-bottom: 0px;}
}

.site-footer {
border: 0px;
clear: both;
margin: 0;
padding: 0;
}

.hentry {
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.entry-meta, .portfolio-entry-meta {
font-size: 0.8125em;
line-height: 2em;
color: #999999;
font-weight: normal;
letter-spacing: 1px;
margin-bottom: 0px;
padding: 0px;
text-transform: uppercase;
}

.entry-footer {
font-size: 0.8125em;
line-height: 2em;
color: #999999;
font-weight: normal;
letter-spacing: 1px;
margin-bottom: 0px;
padding: 0px;
text-transform: uppercase;
}

.footerblokki {
  margin-bottom: 0em;
	padding-top: 20px;
	margin-inline: -20px;
  border-top: 0px solid #616161;
	background-color: #222;
}

.footerblokki a,
.footerblokki a:visited,
.footerblokki a:hover,
.footerblokki {
color: #fff;
font-weight: 100;
}

.footerblokki .wp-block-column {
	padding: 16px;
}

.site {
padding: 0px;
}

.site-content {
padding-left: 16px;
padding-right: 16px;
}




/* START DESKTOP */
@media screen and (min-width: 75em) {
.site {
margin: 0;
max-width: 100%;
padding: 0px;
margin-top: -27px;	
}
	
.site-content {
padding-left: 16px;
padding-top: 20px;
padding-bottom: 0px;
}
	
.site-logo {
	padding-left: 10px;
	padding-top: 10px;
}

p {
  text-align: justify;
}



.post .entry-header {
	width: 61.8%;
	margin: 0 auto;
	padding-left: 5rem;
	padding-right: 5rem;
	padding-top: 5rem;
	padding-bottom: 5rem;
	margin-top: 106px;
	border-right-width: 5rem;
	border-right-style: solid;
  position: relative;
}


.post .entry-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  border-bottom-width: 1px;
	border-bottom-style: solid;
}

.post .entry-content {
	width: 61.8%;
	margin: 0 auto;
	padding-left: 5rem;
	padding-right: 5rem;
	padding-top: 5rem;
	border-left-width: 1px;
	border-left-style: solid;
	border-top-width: 1px;
	border-top-style: solid;	
	border-radius: 1.25rem 0 0 0;
	margin-top: -1px;
}
	
}
/* END DESKTOP */

.fullwidth {
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	padding: 1.25rem;
	background-color: #efefef;
	margin-bottom: 0px;
}

.footerblokki {
	width: 100vw;
	margin-top: 0px;
	margin-left: calc(-50vw + 50%);
}