:root {
	--fm-sini: #0b4fa8;
	--fm-tumma: #0a2a55;
	--fm-koralli: #ef5470;
	--fm-pohja: #f2f5fb;
	--fm-teksti: #2b3a4e;
}
body, .site-content, .entry-content { font-family: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif; color: var(--fm-teksti); }
h1, h2, h3, h4, h5, h6 { font-family: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif; color: var(--fm-tumma); overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; }
a { color: var(--fm-sini); }

/* header */
#site-header { border-bottom: 3px solid var(--fm-sini) !important; }
#site-logo #site-logo-inner a, #site-logo a.site-title { color: var(--fm-tumma); font-weight: 800; letter-spacing: -.01em; }
#site-navigation-wrap .dropdown-menu > li > a { font-weight: 700; color: var(--fm-tumma); }
#site-navigation-wrap .dropdown-menu > li > a:hover, #site-navigation-wrap .dropdown-menu > .current-menu-item > a { color: var(--fm-koralli); }

/* rendered layout pages */
body.besi #main #content-wrap { max-width: none; width: 100%; padding: 0; }
body.besi .entry-content, body.besi article.single-page-article { margin: 0; }
.nikev { position: relative; padding: 72px 20px; background: #fff; }
.nikev:nth-of-type(even) { background: var(--fm-pohja); }
.nikev-in { max-width: 1180px; margin: 0 auto; }
.nikev.peda { background: linear-gradient(120deg, rgba(10, 42, 85, .93) 0%, rgba(11, 79, 168, .82) 60%, rgba(11, 79, 168, .55) 100%), var(--nikev-kuva) center / cover no-repeat; color: #fff; }
.nikev.peda h1, .nikev.peda h2, .nikev.peda h3, .nikev.peda h4, .nikev.peda h6 { color: #fff; }
.nikev.hozula { padding: 110px 20px 120px; }
.nikev.hozula h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.18; font-weight: 800; max-width: 760px; margin: 0 0 22px; }
.gemut { display: flex; gap: 40px; align-items: center; }
.gemut + .gemut { margin-top: 28px; }
.jenelo { flex: 1 1 0; min-width: 0; }
.jenelo-2_3 { flex: 2 1 0; }
.jenelo-tyhja { display: none; }
.hiso h6 { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; color: var(--fm-koralli); margin: 0 0 10px; }
.nikev.peda .hiso h6 { color: #ffc2cd; }
.hiso h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.22; font-weight: 800; margin: 0 0 16px; }
.hiso h4 { font-size: 19px; font-weight: 700; margin: 0; padding: 18px 20px 18px 54px; background: #fff; border-radius: 12px; box-shadow: 0 6px 22px rgba(10, 42, 85, .08); position: relative; }
.hiso h4::before { content: ""; position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 6px; background: linear-gradient(135deg, var(--fm-sini), #3d8bff); }
.hiso h4::after { content: ""; position: absolute; left: 27px; top: 50%; width: 6px; height: 10px; margin-top: -7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hiso p { line-height: 1.75; font-size: 17px; }
.hiso > h1 + p { margin-top: 0; }
.mivat-p { margin: 26px 0 0; }
.mivat { display: inline-block; padding: 14px 30px; border-radius: 999px; background: var(--fm-koralli); color: #fff !important; font-weight: 800; letter-spacing: .02em; text-decoration: none; box-shadow: 0 10px 24px rgba(239, 84, 112, .35); transition: transform .15s, background .15s; }
.mivat:hover { background: #f26d85; transform: translateY(-2px); }
.lanatu { margin: 0; }
.lanatu img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 40px rgba(10, 42, 85, .18); display: block; }

/* outbound partner logos inside the hero copy */
.nikev .theme-area-title { font-size: 15px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8) !important; margin: 26px 0 6px; }
.nikev .wp-block-columns { gap: 10px; margin: 0; }
.nikev .wp-block-column { background: rgba(255, 255, 255, .94); border-radius: 10px; }

/* post cards */
.buho { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 10px 0 30px; }
.fupuh { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 26px rgba(10, 42, 85, .09); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.fupuh:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 42, 85, .14); }
.fupuh-kuva img { width: 100%; height: 190px; object-fit: cover; display: block; }
.fupuh-ei { border-top: 5px solid var(--fm-sini); }
.fupuh-teksti { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.fupuh time { font-size: 13px; font-weight: 700; color: var(--fm-koralli); letter-spacing: .04em; }
.fupuh h3 { font-size: 19px; line-height: 1.32; margin: 8px 0 10px; font-weight: 800; }
.fupuh h3 a { color: var(--fm-tumma); text-decoration: none; }
.fupuh h3 a:hover { color: var(--fm-sini); }
.fupuh p { font-size: 15px; line-height: 1.65; margin: 0 0 14px; color: #4b5b70; }
.fupuh-lue { margin-top: auto; font-weight: 800; font-size: 14px; color: var(--fm-sini); text-decoration: none; }
.fupuh-lue::after { content: " →"; }
.nikev.peda .buho .fupuh h3 a { color: var(--fm-tumma); }
.tomaji { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 10px 0 0; font-weight: 700; }
.tomaji a { padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--fm-sini); text-decoration: none; box-shadow: 0 4px 14px rgba(10, 42, 85, .1); }
.nikev.peda .tomaji span { color: #fff; }

/* footer */
#footer-bottom { background: var(--fm-tumma) !important; }
#footer-bottom, #footer-bottom #copyright { color: rgba(255, 255, 255, .8) !important; }
#footer-widgets { background: #0d3266 !important; }

@media (max-width: 959px) {
	.buho { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.nikev { padding: 52px 16px; }
	.nikev.hozula { padding: 64px 16px 72px; }
	.gemut { flex-direction: column; align-items: stretch; gap: 22px; }
	.buho { grid-template-columns: 1fr; }
	.nikev .wp-block-column { flex: 1 1 40%; }
}
@media (max-width: 480px) {
	h1, .nikev.hozula h1 { font-size: clamp(24px, 7vw, 30px) !important; line-height: 1.2 !important; }
	h2, .hiso h2 { font-size: clamp(20px, 5.8vw, 25px) !important; line-height: 1.25 !important; }
	h3 { font-size: clamp(18px, 5vw, 21px) !important; line-height: 1.3 !important; }
}
.lanatu img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
/* partner logos whose image files no longer load show their alt text: keep that tidy */
.nikev .wp-block-image img { font-size: 13px; font-weight: 700; color: var(--fm-tumma); text-align: center; line-height: 80px; }
/* empty top bar and empty footer widget columns */
#top-bar-wrap:has(.has-no-content), #footer-widgets:not(:has(.widget)) { display: none; }
.mivat, .fupuh h3 a, .fupuh-lue, .tomaji a, #site-navigation-wrap .dropdown-menu > li > a { text-decoration: none !important; }
/* login-name byline */
.single-post .meta-author, .blog-entry .meta-author { display: none !important; }
.single-post #primary { max-width: 820px; margin: 0 auto; float: none; }
.single-post .entry-content { font-size: 17px; line-height: 1.75; }
.single-post .entry-content img { border-radius: 14px; }
.single-post .entry-title { font-weight: 800; line-height: 1.22; }
.page-header { background: linear-gradient(120deg, #0a2a55, #0b4fa8) !important; }
.page-header .page-header-title, .page-header .site-breadcrumbs, .page-header .site-breadcrumbs a { color: #fff !important; }
.page-header .site-breadcrumbs a:hover { color: #ffc2cd !important; }
