/*
 * Elementor Pro replacement styles (Dec 2026).
 * Values copied from the Pro-generated CSS of templates #134 (header), #10 (footer),
 * #2068 (single), #2118 (archive) and the Posts widgets on pages #7 and #88.
 * Plain CSS on purpose: the legacy Sage/Gulp build is not part of this fix.
 */

:root {
  --mk-accent: #9013fe;
  --mk-accent-light: #be74ff;
  --mk-ink: #07000c;
  --mk-text: #444;
  --mk-nav: #323335;
  --mk-footer: #223138;
  --mk-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --mk-body: "Finlandica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mk-admin-bar: 0px;
}
body.admin-bar { --mk-admin-bar: 32px; }
@media (max-width: 782px) { body.admin-bar { --mk-admin-bar: 46px; } }

html { scroll-behavior: smooth; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.mk-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--mk-accent);
  color: #fff;
  font-family: var(--mk-mono);
}
.mk-skip-link:focus { left: 1rem; top: calc(var(--mk-admin-bar) + 1rem); color: #fff; }

/* ------------------------------------------------------------------ Header */

.mk-header {
  position: fixed;
  top: var(--mk-admin-bar);
  right: 0;
  z-index: 999;
  max-width: 300px;
  padding: 30px 33px 20px 25px;
  font-family: var(--mk-mono);
}

.mk-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}

.mk-nav__list a {
  display: block;
  padding: 7px 0;
  color: var(--mk-nav);
  font-size: 16px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 20px;
  text-decoration: none;
  transition: color .2s;
}
.mk-nav__list a:hover,
.mk-nav__list a:focus { color: rgba(26, 37, 43, .57); text-decoration: none; }
.mk-nav__list .current-menu-item > a,
.mk-nav__list .current_page_item > a { color: var(--mk-accent-light); }

.mk-header__toggle {
  display: none;
  position: relative;
  z-index: 4;
  width: 54px;
  height: 54px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--mk-accent);
  color: #fafafa;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mk-header__toggle:hover { background: #fafafa; color: var(--mk-accent); }
.mk-header__toggle-bar {
  position: absolute;
  left: 13px;
  width: 28px;
  height: 3px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.mk-header__toggle-bar:nth-child(1) { top: 17px; }
.mk-header__toggle-bar:nth-child(2) { top: 25px; }
.mk-header__toggle-bar:nth-child(3) { top: 33px; }
.mk-header.is-open .mk-header__toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mk-header.is-open .mk-header__toggle-bar:nth-child(2) { opacity: 0; }
.mk-header.is-open .mk-header__toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
  .mk-header { padding: 0; max-width: none; }
  .mk-header__toggle { display: block; }

  .mk-nav {
    display: none;
    position: fixed;
    top: var(--mk-admin-bar);
    left: 0;
    right: 0;
    z-index: 2;
    max-height: calc(100vh - var(--mk-admin-bar));
    overflow-y: auto;
    padding: 30px clamp(24px, 10vw, 85px) 85px;
    background: var(--mk-accent);
  }
  .mk-header.is-open .mk-nav { display: block; }

  .mk-nav__list { text-align: center; padding-top: 24px; }
  .mk-nav__list li:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, .53); }
  .mk-nav__list a,
  .mk-nav__list a:hover,
  .mk-nav__list a:focus,
  .mk-nav__list .current-menu-item > a,
  .mk-nav__list .current_page_item > a {
    padding: 21px 0;
    color: #fafafa;
    font-weight: 500;
  }
}
@media (max-width: 767px) {
  .mk-nav__list a { letter-spacing: 1.5px; }
}

html.mk-nav-open { overflow: hidden; }

/* -------------------------------------------------------------- Layout bits */

.mk-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.mk-container--narrow { max-width: 738px; } /* 698px content + gutters */

.mk-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: var(--mk-ink);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}
.mk-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 12, .21);
  opacity: .5;
}
.mk-banner__title {
  position: relative;
  margin: 0;
  padding: 0 20px;
  color: #fff;
  font-family: var(--mk-mono);
  font-size: clamp(56px, 11vw, 140px);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.mk-button,
.mk-cta__button {
  display: inline-block;
  padding: 12px 24px;
  border: 3px solid var(--mk-accent);
  color: var(--mk-accent);
  font-family: var(--mk-mono);
  font-style: italic;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.mk-button:hover,
.mk-button:focus { background: var(--mk-accent); color: #fff; text-decoration: none; }

/* ------------------------------------------------------------ Single post */

.mk-article__header { padding-top: 100px; }
.mk-article__back { margin: 0 0 1em; font-family: var(--mk-mono); font-style: italic; }
.mk-article__back a { color: var(--mk-accent); text-decoration: none; }
.mk-article__title {
  margin: 0 0 .5em;
  color: var(--mk-ink);
  font-family: var(--mk-mono);
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
}
.mk-article__info {
  display: flex;
  flex-wrap: wrap;
  gap: .25em 1.25em;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #0c0c0c;
  font-family: var(--mk-body);
  font-size: 14px;
}
.mk-article__image { margin: 0; padding-top: 50px; }
.mk-article__image img { display: block; width: 100%; height: auto; }

.mk-article__content {
  padding-top: 50px;
  color: var(--mk-text);
  font-family: var(--mk-body);
  font-size: 18px;
  line-height: 1.6;
}
.mk-article__content a { color: var(--mk-accent); }
.mk-article__content img { max-width: 100%; height: auto; }

.mk-article__footer { padding-bottom: 100px; }
.mk-article__footer .comments,
.mk-article__footer #respond { padding-top: 100px; }

.mk-article__footer .post-navigation { padding-top: 50px; }
.mk-article__footer .nav-links { display: flex; justify-content: space-between; gap: 2rem; }
.mk-article__footer .nav-next { margin-left: auto; text-align: right; }
.mk-article__footer .nav-links a { text-decoration: none; }
.mk-article__nav-label { display: block; color: #00070c; font-family: var(--mk-body); }
.mk-article__nav-title { color: var(--mk-accent); font-family: var(--mk-mono); font-size: 15px; font-style: italic; }

.mk-cta {
  padding: 100px 20px;
  background: var(--mk-accent);
  text-align: center;
}
.mk-cta__title {
  max-width: 600px;
  margin: 0 auto 50px;
  color: #fff;
  font-family: var(--mk-mono);
  font-size: 30px;
  font-style: italic;
  font-weight: 500;
}
.mk-cta__button { border-color: #fefefe; color: #fefefe; }
.mk-cta__button:hover,
.mk-cta__button:focus { background: #fefefe; color: var(--mk-accent); text-decoration: none; }

/* ---------------------------------------------------------------- Archive */

.mk-archive__header { padding: 100px 0 50px; }
.mk-archive__title {
  margin: 0 0 1em;
  color: var(--mk-ink);
  font-family: var(--mk-mono);
  font-style: italic;
  font-weight: 600;
}
.mk-archive > .mk-container { padding-bottom: 100px; }

/* ------------------------------------------------------------- Posts loop */

.mk-posts {
  display: grid;
  grid-template-columns: repeat(var(--mk-cols, 1), minmax(0, 1fr));
  gap: 35px 30px;
}
@media (max-width: 1024px) { .mk-posts { grid-template-columns: minmax(0, 1fr); } }

.mk-post { position: relative; }
.mk-post__thumb { display: block; overflow: hidden; }
.mk-post__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-post__title { margin: 0; font-family: var(--mk-mono); font-style: italic; line-height: 1.25; }
.mk-post__title a { color: inherit; text-decoration: none; }
.mk-post__title a:hover { color: var(--mk-accent); }
.mk-post__meta { color: #adadad; font-family: var(--mk-mono); font-size: 12px; }
.mk-post__excerpt { font-family: var(--mk-body); color: var(--mk-text); }
.mk-post__excerpt p { margin: 0; }
.mk-post__more { font-family: var(--mk-mono); font-style: italic; text-decoration: none; }

/* Classic (front page widget cb8f12f, archive list) */
.mk-posts--classic .mk-post__thumb { margin-bottom: 20px; aspect-ratio: 1 / 1; }
.mk-posts--classic .mk-post__text { margin-bottom: 62px; }
.mk-posts--classic .mk-post__title { margin-bottom: 20px; color: var(--mk-ink); font-size: 37px; }
.mk-posts--classic .mk-post__meta { margin-bottom: 20px; }
.mk-posts--classic .mk-post__excerpt { margin-bottom: 40px; }
.mk-posts--classic .mk-post__more { color: var(--mk-ink); font-size: 20px; }
.mk-posts--classic .mk-post__more:hover { color: var(--mk-accent); }
@media (max-width: 767px) { .mk-posts--classic .mk-post__title { font-size: 26px; } }
.mk-archive .mk-posts--classic .mk-post__title { font-size: 28px; }
.mk-archive .mk-posts--classic .mk-post__thumb { aspect-ratio: 16 / 9; }

/* Cards (blog widget 66e61f1) */
.mk-posts--cards { gap: 65px 37px; }
.mk-posts--cards .mk-post {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 12, .15);
  background: #fff;
}
.mk-posts--cards .mk-post__thumb img { aspect-ratio: 3 / 2; height: auto; }
.mk-post__badge {
  position: absolute;
  top: 0;
  right: 0;
  margin: 20px;
  padding: .6em 1.2em;
  border-radius: 999px;
  background: #818a91;
  color: #fff;
  font-family: var(--mk-body);
  font-size: 12px;
  line-height: 1;
}
.mk-posts--cards .mk-post__text { flex: 1; margin-top: 26px; padding: 0 19px 20px; }
.mk-posts--cards .mk-post__title { margin-bottom: 15px; color: #0c0c0c; font-size: 20px; }
.mk-posts--cards .mk-post__excerpt { margin-bottom: 15px; }
.mk-posts--cards .mk-post__more { color: var(--mk-accent); font-size: 16px; text-transform: lowercase; }
.mk-post__meta--card { padding: 10px 19px; border-top: 1px solid #eaeaea; }

.mk-posts__pagination,
.mk-archive .pagination {
  padding-top: 50px;
  font-family: var(--mk-mono);
  line-height: 27px;
  text-align: center;
}
.mk-posts__pagination .page-numbers,
.mk-archive .pagination .page-numbers { margin: 0 4px; color: rgba(0, 1, 12, .54); text-decoration: none; }
.mk-posts__pagination .current,
.mk-archive .pagination .current { color: var(--mk-ink); font-weight: 600; }

/* ----------------------------------------------------------------- Footer */

.mk-footer {
  padding: 40px 20px;
  background: var(--mk-footer);
  color: #fff;
  text-align: center;
}
.mk-footer a,
.mk-footer a:hover,
.mk-footer a:focus { color: #fff; text-decoration: none; }

.mk-footer__links { margin: 0; font-family: var(--mk-mono); font-style: italic; }
.mk-footer__title {
  margin: 0;
  padding: 50px 0;
  color: #fff;
  font-family: var(--mk-mono);
  font-size: 50px;
  font-style: italic;
  font-weight: 600;
}
.mk-footer__social {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 0 50px;
  list-style: none;
}
.mk-footer__social a { display: flex; flex-direction: column; align-items: center; gap: 20px; font-family: var(--mk-body); }
.mk-footer__icon { width: 40px; height: 40px; }
.mk-footer__label { font-weight: 700; }
.mk-footer__handle { overflow-wrap: anywhere; }

.mk-footer__top { margin: 0; font-family: var(--mk-mono); font-style: italic; }
.mk-footer__legal { padding: 50px 0 0; color: rgba(183, 183, 183, .55); font-family: var(--mk-body); }
.mk-footer__legal p { margin: 0 0 .5em; }
.mk-footer__legal a,
.mk-footer__legal a:hover { color: inherit; }

@media (max-width: 1024px) { .mk-footer__label { display: none; } }
@media (max-width: 767px) {
  .mk-footer__links { display: none; }
  .mk-footer__title { font-size: 30px; }
  .mk-footer__social { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------- Rescued Pro element custom CSS
 * Elementor Free does not print the per-element "Custom CSS" (a Pro feature),
 * so these rules disappeared with Pro. Source: tools/pro-audit.php output,
 * published pages only (7 etusivu, 85 mikkel, 88 blogi, 129 medialle,
 * 2162 evästeseloste, 3150 tukijat) and the single-post template #2068.
 * Original rules were unscoped; they are scoped here to where they applied.
 */

/* heading custom CSS present on every published page */
.elementor-page a:hover { text-decoration: none !important; }

/* contact strip ("seuraa" icons) — 7, 85, 88, 3150 */
.contact-icon { max-width: 40px; margin: auto; }

/* Scoped to .elementor: lib/extras.php adds the page slug to <body>, so on the
   "medialle" page a bare .medialle selector also matched the footer links. */
.elementor .somepalkki a,
.elementor .mediapalkki a,
.elementor .medialle a,
.elementor .somepalkki a:hover,
.elementor .medialle a:hover { color: #000; text-decoration: none; }

/* section-level "a { color: black }" on blogi (#22a6bf0) and medialle (#f09e6bc) */
.page-id-88 .elementor a,
.page-id-129 .elementor a { color: #000; }

/* medialle heading links */
.otsikko a:link,
.otsikko a:visited,
.otsikko a:hover { color: #fff !important; }

/* mikkel — progress bars */
.elementor-progress-bar { height: 5px; }
.elementor-progress-percentage { color: var(--mk-accent); }

/* blogi — archive + tag cloud sidebar */
.arkistolista {
  font-family: var(--mk-body);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}
.tagipilvi { font-family: var(--mk-body); text-align: center; }
.arkistolista h5,
.tagipilvi h5 { color: var(--mk-accent); font-family: var(--mk-mono); font-style: italic; }
.tagipilvi a { color: #000; }

/* blogi — search box (Pro search-form stand-in) */
.mk-search { display: flex; max-width: 700px; margin: 0 auto; }
.mk-search__input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 2px solid rgba(0, 0, 12, .15);
  border-right: 0;
  border-radius: 0;
  font-family: var(--mk-body);
  font-size: 16px;
}
.mk-search__button {
  padding: 10px 20px;
  border: 2px solid var(--mk-accent);
  border-radius: 0;
  background: var(--mk-accent);
  color: #fff;
  font-family: var(--mk-mono);
  font-style: italic;
  cursor: pointer;
}
.mk-search__button:hover,
.mk-search__button:focus { background: #fff; color: var(--mk-accent); }

/* single post — comments (post-comments #099b113) */
.mk-article__footer .comments,
.mk-article__footer #respond { font-family: var(--mk-body); }
.mk-article__footer #submit {
  padding: 10px 24px;
  border: 3px solid var(--mk-accent);
  border-radius: 0;
  background-color: #fefefe;
  color: var(--mk-accent);
  font-family: var(--mk-mono);
  font-style: italic;
  font-weight: 600;
  cursor: pointer;
}

/* ------------------------------------------------------------------- 404 */

.mk-404__body { padding: 100px 20px; text-align: center; }
.mk-404__title {
  margin: 0 0 .5em;
  color: var(--mk-ink);
  font-family: var(--mk-mono);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 44px);
}
.mk-404__text {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--mk-text);
  font-family: var(--mk-body);
  font-size: 18px;
  line-height: 1.6;
}
.mk-404__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 40px 0 0;
}
