/* Konsta Tyyli: paletti B. Syvä sininen, turkoosi, koralli, indigo. Valkoinen ja sävytetyt taustat. */
:root {
  --k-navy: #0A2540;
  --k-teal: #00A19B;
  --k-coral: #FF5A36;
  --k-indigo: #5B6CFF;
  --k-ink: #0A2540;
  --k-muted: rgba(10, 37, 64, .72);
  --k-line: rgba(10, 37, 64, .10);
  --k-shadow: 0 18px 40px -22px rgba(10, 37, 64, .45);
}

/* ---------- Osiot ---------- */
.k-sec { position: relative; }
.k-tint { background: linear-gradient(180deg, rgba(10, 37, 64, .035) 0%, rgba(91, 108, 255, .06) 100%) !important; }
.k-dark {
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(91, 108, 255, .60), transparent 62%),
    radial-gradient(760px 520px at 4% 104%, rgba(0, 161, 155, .50), transparent 62%),
    linear-gradient(135deg, #0A2540 0%, #0A2540 100%) !important;
  overflow: hidden;
}
.k-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.k-dark .section-content { position: relative; z-index: 1; }
.k-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 0); z-index: 2;
}
.k-cta { text-align: center; }

/* ---------- Typografia ---------- */
.k-h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; color: #fff; margin-bottom: .5em; text-transform: none; }
.k-lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; color: rgba(255, 255, 255, .9); max-width: 36em; }
.k-lead--center { margin-left: auto; margin-right: auto; }
.k-h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--k-ink); text-transform: none; }
.k-h2::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 4px; margin: 18px auto 0; background: linear-gradient(90deg, var(--k-teal), var(--k-indigo)); }
.k-h2--left::after { margin-left: 0; }
.k-h2--light { color: #fff; }
.k-intro { font-size: 1.12rem; line-height: 1.65; color: var(--k-muted); max-width: 44em; margin: 18px auto 0; }
.k-intro--left { margin-left: 0; }
.k-after { color: var(--k-muted); margin-top: 8px; }
.k-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--k-indigo); margin-bottom: 12px; }
.k-eyebrow--light { color: var(--k-teal); }
.k-head { margin-bottom: 36px; }
.k-prose p { font-size: 1.12rem; line-height: 1.75; color: var(--k-muted); }

/* ---------- Hero ---------- */
.k-hero__row { align-items: center; }
.k-hero__art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: k-float 7s ease-in-out infinite; }
@keyframes k-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .k-hero__art svg { animation: none; } }
.k-chips { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.k-chips li { margin: 0; padding: 7px 16px; border-radius: 99px; font-size: .86rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22); }
.k-chips li::before { content: "✓"; margin-right: 8px; color: var(--k-teal); font-weight: 800; }

/* ---------- Napit ---------- */
.k-btn, .button.k-btn {
  background: var(--k-coral) !important; border: 0 !important; color: #fff !important;
  font-weight: 800 !important; font-size: 18px !important; letter-spacing: .01em; text-transform: none !important;
  border-radius: 12px !important; padding: 0 28px; box-shadow: 0 14px 28px -12px rgba(255, 90, 54, .75);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.k-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 18px 32px -12px rgba(255, 90, 54, .85); }
.k-btn--ghost, .button.k-btn--ghost {
  background: transparent !important; color: #fff !important; box-shadow: none;
  border: 2px solid rgba(255, 255, 255, .65) !important;
}
.k-btn--ghost:hover { background: rgba(255, 255, 255, .12) !important; box-shadow: none; }
.k-btn--sm, .button.k-btn--sm {
  background: var(--k-navy) !important; font-size: 16px !important; box-shadow: none; padding: 0 22px;
}
.k-btn--sm:hover { background: var(--k-indigo) !important; box-shadow: none; }

/* ---------- Kortit ---------- */
.k-eq { align-items: stretch; }
.k-eq > .col > .col-inner { height: 100%; display: flex; flex-direction: column; }
.k-card > .col-inner, .k-tier > .col-inner {
  position: relative; background: #fff; border: 1px solid var(--k-line); border-radius: 20px;
  padding: 30px 28px 28px; box-shadow: var(--k-shadow); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.k-card > .col-inner::before, .k-tier > .col-inner::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--k-teal), var(--k-indigo));
}
.k-card:hover > .col-inner, .k-tier:hover > .col-inner { transform: translateY(-5px); box-shadow: 0 26px 48px -24px rgba(10, 37, 64, .55); }
.k-card h3, .k-tier h3, .k-step h3 { font-size: 1.22rem; line-height: 1.25; font-weight: 800; color: var(--k-ink); margin: 0 0 .5em; text-transform: none; }
.k-card p, .k-tier p, .k-step p { color: var(--k-muted); line-height: 1.6; }
.k-card .button, .k-tier .button { margin-top: auto; align-self: flex-start; }
.k-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0, 161, 155, .16), rgba(91, 108, 255, .18)); color: var(--k-teal); }
.k-svg { width: 28px; height: 28px; }
.k-pill { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; padding: 5px 12px; border-radius: 99px; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--k-teal), var(--k-indigo)); }
.k-price { font-size: 2.1rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--k-ink); margin: 4px 0 14px; }
.k-price small { display: block; font-size: .76rem; letter-spacing: .02em; font-weight: 700; color: var(--k-muted); margin-top: 6px; }
.k-price--sm { font-size: 1.35rem; margin: 10px 0 14px; color: var(--k-indigo); }

/* ---------- Vaiheet ---------- */
.k-steps { align-items: stretch; }
.k-step > .col-inner { height: 100%; padding: 8px 8px 8px 0; }
.k-num { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; margin-bottom: 14px;
  font-weight: 800; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--k-teal), var(--k-indigo)); box-shadow: 0 10px 20px -10px rgba(91, 108, 255, .8); }

/* ---------- Listat ---------- */
.k-checks { list-style: none; margin: 0; padding: 0; }
.k-checks li { position: relative; padding: 0 0 0 36px; margin: 0 0 14px; line-height: 1.55; color: var(--k-ink); }
.k-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; text-align: center; line-height: 24px;
  font-size: .8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--k-teal), var(--k-indigo)); }
.k-checks--big li { font-size: 1.08rem; }
.k-panel > .col-inner { background: #fff; border: 1px solid var(--k-line); border-radius: 20px; padding: 30px; box-shadow: var(--k-shadow); }
.k-listrow { align-items: center; }

/* ---------- Taulukko ---------- */
.k-tablewrap { overflow-x: auto; max-width: 100%; border-radius: 18px; box-shadow: var(--k-shadow); border: 1px solid var(--k-line); background: #fff; }
.k-table { width: 100%; margin: 0; border-collapse: collapse; table-layout: auto; }
.k-table thead th { background: var(--k-navy); color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; padding: 16px 14px; text-align: center; border: 0; }
.k-table td { padding: 15px 14px; text-align: center; border: 0; border-top: 1px solid var(--k-line); color: var(--k-ink); vertical-align: middle; }
.k-table tbody tr:nth-child(even) td { background: rgba(10, 37, 64, .03); }
.k-table td:first-child { font-weight: 700; }
.k-table td:first-child a { color: var(--k-ink); }
.k-table td:first-child a:hover { color: var(--k-indigo); }
.k-table td:not(:first-child) { font-weight: 600; }
.k-table td:last-child { white-space: nowrap; font-weight: 700; }

/* ---------- UKK ---------- */
.k-faq .accordion { margin: 0; }
.k-faq .accordion-item { background: #fff; border: 1px solid var(--k-line); border-radius: 16px; margin-bottom: 12px; box-shadow: 0 10px 24px -20px rgba(10, 37, 64, .5); overflow: hidden; }
.k-faq .accordion-title { border: 0 !important; padding: 20px 56px 20px 24px; font-size: 1.08rem; font-weight: 800; color: var(--k-ink); background: transparent; }
.k-faq .accordion-title:hover, .k-faq .accordion-title.active { color: var(--k-indigo); }
.k-faq .accordion-inner { padding: 0 24px 22px; color: var(--k-muted); line-height: 1.7; border: 0; }

/* ---------- Lomake ---------- */
.k-formcard > .col-inner { background: #fff; border: 1px solid var(--k-line); border-radius: 22px; padding: 34px; box-shadow: 0 30px 60px -30px rgba(10, 37, 64, .55); }
.k-formcard .form-flat input[type=text], .k-formcard .form-flat input[type=email], .k-formcard .form-flat input[type=tel], .k-formcard .form-flat select, .k-formcard .form-flat textarea,
.k-formcard input[type=text], .k-formcard input[type=email], .k-formcard input[type=tel], .k-formcard select, .k-formcard textarea {
  background: #fff !important; color: var(--k-ink) !important; border: 1.5px solid rgba(10, 37, 64, .18) !important; border-radius: 12px !important; padding: 14px 16px; height: auto; box-shadow: none !important;
}
.k-formcard input:focus, .k-formcard select:focus, .k-formcard textarea:focus { border-color: var(--k-indigo) !important; box-shadow: 0 0 0 4px rgba(91, 108, 255, .18) !important; }
.k-formcard .wpcf7-submit, .k-formcard .button { background: var(--k-coral) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; font-weight: 800 !important; font-size: 18px !important; text-transform: none !important; padding: 0 32px; box-shadow: 0 14px 28px -12px rgba(255, 90, 54, .75); }

/* ---------- Muut ---------- */
.k-legal h2 { font-size: 1.5rem; font-weight: 800; color: var(--k-ink); margin-top: 1.6em; }
.k-legal p, .k-legal li { color: var(--k-muted); line-height: 1.75; }
.k-legal a, .k-prose a, .k-after a, .k-faq a { color: var(--k-indigo); font-weight: 700; }

@media (max-width: 849px) {
  .k-hero::after { height: 34px; }
  .k-card > .col-inner, .k-tier > .col-inner { padding: 26px 22px; }
  .k-formcard > .col-inner { padding: 24px 20px; }
  .k-head { margin-bottom: 22px; }
  .k-btn, .button.k-btn { font-size: 17px !important; }
}

/* ---------- Korjaukset ---------- */
.k-formcard ::placeholder { color: rgba(10, 37, 64, .55) !important; opacity: 1; }
.k-formcard select { color: rgba(10, 37, 64, .8) !important; }
.k-dark .k-checks li { color: #fff; }
.k-dark .k-checks li::before { background: var(--k-teal); }
.k-dark .k-intro--left { color: rgba(255, 255, 255, .88); }
.k-eq--card, .k-eq--tier { justify-content: center; }

/* ---------- Korjaukset 2: kortit tummalla taustalla, UKK-nuoli ---------- */
.k-dark .k-card h3, .k-dark .k-tier h3, .k-dark .k-step h3, .k-dark .k-price, .k-dark .k-card .k-price { color: var(--k-ink) !important; }
.k-dark .k-card p, .k-dark .k-tier p, .k-dark .k-card li, .k-dark .k-price small { color: var(--k-muted) !important; }
.k-dark .k-price--sm { color: var(--k-indigo) !important; }
.k-dark .k-card .k-checks li { color: var(--k-ink) !important; }
.k-dark .k-card a:not(.button) { color: var(--k-indigo); }

.k-faq .accordion-title { position: relative; display: block; line-height: 1.4; }
.k-faq .accordion-title .toggle {
  position: absolute !important; left: auto !important; right: 18px !important; top: 50% !important; transform: translateY(-50%) !important;
  margin: 0 !important; width: 34px; height: 34px; padding: 0 !important; border-radius: 50%; display: flex !important; align-items: center; justify-content: center;
  background: rgba(91, 108, 255, .12); color: var(--k-indigo); line-height: 1;
}
.k-faq .accordion-title .toggle i { margin: 0 !important; font-size: 18px; transition: transform .2s ease; color: var(--k-indigo); }
.k-faq .accordion-title.active .toggle { background: var(--k-indigo); }
.k-faq .accordion-title.active .toggle i { transform: rotate(180deg); color: #fff; }

/* UKK-nuoli CSS:llä (ei riipu ikonifontista) */
.k-faq .accordion-title .toggle { height: 34px !important; width: 34px !important; min-width: 34px; box-sizing: border-box; overflow: hidden; }
.k-faq .accordion-title .toggle i { display: none !important; }
.k-faq .accordion-title .toggle::before {
  content: ""; display: block; width: 8px; height: 8px; box-sizing: border-box;
  border-right: 2.5px solid var(--k-indigo); border-bottom: 2.5px solid var(--k-indigo); transform: rotate(45deg); margin-top: -3px; transition: transform .2s ease;
}
.k-faq .accordion-title.active .toggle::before { border-color: #fff; transform: rotate(-135deg); margin-top: 3px; }
.k-faq .accordion-title .toggle { max-height: 34px !important; max-width: 34px !important; aspect-ratio: 1 / 1; flex: none; line-height: 34px !important; font-size: 0 !important; border: 0 !important; }

/* ---------- Interaktiiviset osat ---------- */
.k-filter { text-align: center; margin: 0 auto 30px; }
.k-filter__label { font-weight: 800; color: var(--k-ink); margin-bottom: 12px; }
.k-filter__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.k-filter__btn { appearance: none; cursor: pointer; border: 1.5px solid rgba(10, 37, 64, .18); background: #fff; color: var(--k-ink); font-weight: 700; font-size: 1rem;
  padding: 10px 20px; border-radius: 99px; margin: 0; transition: all .15s ease; text-transform: none; letter-spacing: 0; }
.k-filter__btn:hover { border-color: var(--k-indigo); color: var(--k-indigo); }
.k-filter__btn.is-active { background: var(--k-navy); border-color: var(--k-navy); color: #fff; }

.k-pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 26px; }
.k-pick__item { display: block; cursor: pointer; margin: 0; }
.k-pick__item input { position: absolute; opacity: 0; pointer-events: none; }
.k-pick__box { display: block; height: 100%; padding: 18px 18px 16px 52px; position: relative; background: #fff; border: 1.5px solid var(--k-line); border-radius: 16px;
  box-shadow: 0 10px 24px -20px rgba(10, 37, 64, .5); transition: all .15s ease; }
.k-pick__box strong { display: block; color: var(--k-ink); font-size: 1.02rem; margin-bottom: 4px; }
.k-pick__box span { display: block; color: var(--k-muted); font-size: .92rem; line-height: 1.45; }
.k-pick__box::before { content: ""; position: absolute; left: 18px; top: 19px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(10, 37, 64, .28); background: #fff; }
.k-pick__item input:checked + .k-pick__box { border-color: var(--k-indigo); box-shadow: 0 14px 30px -18px rgba(91, 108, 255, .7); }
.k-pick__item input:checked + .k-pick__box::before { background: var(--k-indigo); border-color: var(--k-indigo); }
.k-pick__item input:checked + .k-pick__box::after { content: "✓"; position: absolute; left: 24px; top: 17px; color: #fff; font-weight: 800; font-size: .9rem; }
.k-pick__item input:focus-visible + .k-pick__box { outline: 3px solid rgba(91, 108, 255, .4); outline-offset: 2px; }
.k-pick__result { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: var(--k-shadow); }
.k-pick__msg { margin: 0; flex: 1 1 320px; color: var(--k-ink); font-weight: 700; line-height: 1.5; }

/* ---------- Mobiili: kuvitus pois, taulukot korteiksi ---------- */
@media (max-width: 849px) {
  .k-hero__art { display: none !important; }
  .k-tablewrap { box-shadow: none; border: 0; background: transparent; overflow: visible; }
  .k-table { min-width: 0; display: block; }
  .k-table thead { display: none; }
  .k-table tbody, .k-table tr { display: block; }
  .k-table tr { background: #fff; border: 1px solid var(--k-line); border-radius: 16px; margin-bottom: 12px; padding: 12px 16px; box-shadow: 0 10px 24px -20px rgba(10, 37, 64, .5); }
  .k-table tbody tr:nth-child(even) td { background: transparent; }
  .k-table td { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border: 0; padding: 6px 0; white-space: normal !important; text-align: right; }
  .k-table td::before { content: attr(data-label); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--k-muted); font-weight: 700; text-align: left; flex: none; }
  .k-table td:first-child { display: block; text-align: left; font-size: 1.05rem; padding-bottom: 8px; border-bottom: 1px solid var(--k-line); margin-bottom: 4px; }
  .k-table td:first-child::before { display: none; }
  .k-pick__result { padding: 18px; }
}
.k-pick__item { display: flex; }
.k-pick__box { flex: 1; }

/* ---------- Footer (UX Block) ---------- */
.k-footer { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--k-teal), var(--k-indigo)) 1; }
.k-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .15s ease; }
.k-footer a:hover { color: var(--k-teal); }
.k-footer__about { color: rgba(255, 255, 255, .8); line-height: 1.65; max-width: 30em; }
.k-footer__contact, .k-footer__links { list-style: none; margin: 0 0 22px; padding: 0; }
.k-footer__contact li { margin: 0 0 6px; font-weight: 700; }
.k-footer__contact a { color: #fff; }
.k-footer__h { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--k-teal); margin: 6px 0 18px; }
.k-footer__links li { margin: 0 0 11px; line-height: 1.4; }
.k-footer__bar { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.k-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.k-footer__legallinks a { margin-left: 22px; }
.k-footer .k-btn { margin-top: 4px; }
@media (max-width: 849px) {
  .k-footer__legallinks a { margin: 0 18px 0 0; }
  .k-footer__col { padding-bottom: 8px; }
}
.k-footer__links li, .k-footer__contact li { margin-left: 0 !important; }

/* ---------- Artikkeli, kuva, lähteet ---------- */
.k-figure { margin: 0 0 10px; }
.k-img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--k-shadow); }
.k-figure figcaption { color: var(--k-muted); font-size: .9rem; margin-top: 10px; text-align: center; }
.k-updated { color: rgba(255, 255, 255, .72); font-size: .92rem; margin-top: 4px; }
.k-sources { padding-left: 1.2em; }
.k-sources li { margin-bottom: 8px; }
.k-sources a, .k-related a { color: var(--k-indigo); font-weight: 700; }
.k-article { font-size: 1.1rem; line-height: 1.75; color: var(--k-muted); }
.k-article h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; color: var(--k-ink); margin: 1.8em 0 .6em; letter-spacing: -.01em; }
.k-article h3 { font-weight: 800; color: var(--k-ink); margin-top: 1.4em; }
.k-article a { color: var(--k-indigo); font-weight: 700; }
.k-article ul, .k-article ol { margin-bottom: 1.2em; }
.k-article li { margin-bottom: .5em; }
.k-tldr { background: linear-gradient(135deg, rgba(0, 161, 155, .10), rgba(91, 108, 255, .12)); border-radius: 14px; padding: 18px 22px; margin-bottom: 1.6em; }
.k-tldr strong { display: block; color: var(--k-ink); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: 6px; }
.k-tldr p { margin: 0; color: var(--k-ink); }
.k-ctabox { background: radial-gradient(500px 260px at 90% 0%, rgba(91, 108, 255, .55), transparent 62%), #0A2540; color: #fff; border-radius: 20px; padding: 28px; margin: 2em 0; }
.k-ctabox h3 { color: #fff; margin-top: 0; }
.k-ctabox p { color: rgba(255, 255, 255, .88); }
.k-code { background: #0A2540; color: #fff; border-radius: 14px; padding: 18px; overflow-x: auto; font-size: .92rem; }
.k-author { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--k-line); font-size: .95rem; }
.k-cluster { font-size: .95rem; color: var(--k-muted); margin: -.4em 0 1.4em; }
.k-cluster a { color: var(--k-indigo); font-weight: 700; }

/* ---------- Artikkelilistaus [kk_artikkelit] ---------- */
.k-postfilters { display: grid; gap: 12px; margin: 0 0 28px; }
.k-postfilters .k-filter__btns { justify-content: flex-start; }
.k-postfilters .k-filter__btn { padding: 7px 16px; font-size: .92rem; }
.k-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.k-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--k-line); border-radius: 18px; overflow: hidden; box-shadow: var(--k-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.k-post:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -24px rgba(10, 37, 64, .55); }
.k-post__img { display: block; aspect-ratio: 1200 / 630; background: var(--k-navy); }
.k-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-post__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.k-post__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.k-post__tag, .k-post__cat { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.k-post__tag { background: rgba(91, 108, 255, .12); color: var(--k-indigo); }
.k-post__tag--bofu { background: rgba(255, 90, 54, .12); color: var(--k-coral); }
.k-post__tag--refu { background: rgba(0, 161, 155, .12); color: var(--k-teal); }
.k-post__cat { color: var(--k-muted); }
.k-post h3 { font-size: 1.18rem; line-height: 1.3; margin: 0; text-transform: none; }
.k-post h3 a { color: var(--k-ink); }
.k-post__excerpt { margin: 0; color: var(--k-muted); font-size: .96rem; line-height: 1.55; }
.k-post__foot { display: flex; justify-content: space-between; align-items: center; margin: auto 0 0; padding-top: 10px; font-size: .88rem; color: var(--k-muted); }
.k-post__foot a { color: var(--k-indigo); font-weight: 700; }
.k-postmore { text-align: center; margin-top: 28px; }
.k-posts-groups__h { margin: 36px 0 16px; }
@media (max-width: 849px) { .k-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 549px) { .k-posts { grid-template-columns: 1fr; } }

/* Päivämääräpalkit ja kommenttilaskuri pois artikkeleista ja listauksista */
.post-date, .badge.post-date, .post_comments { display: none !important; }
.k-post__foot { justify-content: flex-end; }

.k-updatedline { margin: 0; font-size: .92rem; color: var(--k-muted); text-align: left; }
.k-updatedline a { color: var(--k-indigo); font-weight: 700; }

/* ---------- Laskurit ja pikatestit ---------- */
.k-calc, .k-quiz { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; box-shadow: var(--k-shadow); padding: 28px; margin: 8px 0; }
.k-calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.k-calc h3, .k-quiz h3 { font-size: 1.15rem; margin: 0 0 14px; text-transform: none; color: var(--k-ink); }
.k-calc h4, .k-quiz h4 { font-size: 1.02rem; margin: 20px 0 8px; text-transform: none; color: var(--k-ink); }
.k-calc__field { display: block; margin-bottom: 14px; }
.k-calc__label { display: block; font-weight: 700; font-size: .92rem; color: var(--k-ink); margin-bottom: 4px; }
.k-calc__input { display: flex; align-items: center; gap: 8px; }
.k-calc__input input { margin: 0; flex: 1; min-width: 0; border-radius: 10px; border: 1.5px solid rgba(10, 37, 64, .18); padding: 10px 12px; font-size: 1rem; color: var(--k-ink); background: #fff; box-shadow: none; }
.k-calc__input input:focus { border-color: var(--k-indigo); outline: none; }
.k-calc__input em { font-style: normal; font-weight: 700; color: var(--k-muted); min-width: 30px; }
.k-calc__field small { display: block; margin-top: 3px; color: var(--k-muted); font-size: .82rem; line-height: 1.4; }
.k-calc__result { margin: 22px 0 8px; padding: 20px 22px; border-radius: 14px; background: linear-gradient(135deg, rgba(0, 161, 155, .10), rgba(91, 108, 255, .12)); }
.k-calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--k-line); }
.k-calc__row:last-of-type { border-bottom: 0; }
.k-calc__row span { color: var(--k-ink); }
.k-calc__row small { display: block; color: var(--k-muted); font-size: .84rem; }
.k-calc__row strong { font-size: 1.12rem; color: var(--k-ink); white-space: nowrap; }
.k-calc__msg { margin: 10px 0 0; color: var(--k-ink); font-weight: 600; }
.k-calc__note { color: var(--k-muted); font-size: .86rem; }
.k-quiz__intro { color: var(--k-muted); }
.k-quiz__list { margin: 0 0 8px 1.2em; padding: 0; }
.k-quiz__list li { margin: 0 0 18px; padding-left: 4px; }
.k-quiz__list li p { margin: 0 0 8px; font-weight: 600; color: var(--k-ink); }
.k-quiz__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.k-quiz__opts label { margin: 0; cursor: pointer; }
.k-quiz__opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.k-quiz__opts span { display: inline-block; padding: 7px 18px; border-radius: 99px; border: 1.5px solid rgba(10, 37, 64, .18); font-weight: 700; color: var(--k-ink); background: #fff; }
.k-quiz__opts input:checked + span { background: var(--k-navy); border-color: var(--k-navy); color: #fff; }
.k-quiz__opts input:focus-visible + span { outline: 2px solid var(--k-indigo); outline-offset: 2px; }
.k-quiz__result { margin-top: 20px; padding: 22px; border-radius: 14px; background: linear-gradient(135deg, rgba(0, 161, 155, .10), rgba(91, 108, 255, .12)); }
.k-quiz__score { margin: 0 0 4px; }
@media (max-width: 549px) { .k-calc, .k-quiz { padding: 20px 16px; } .k-calc__row { flex-direction: column; gap: 2px; } }

/* ---------- Latauslomake [kk_lataus] ja mainoslaatikko ---------- */
.k-lataus { display: grid; gap: 14px; max-width: 520px; }
.k-lataus__kentta span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 4px; color: var(--k-ink); }
.k-lataus__kentta input { margin: 0; width: 100%; border-radius: 10px; border: 1.5px solid rgba(10, 37, 64, .18); padding: 12px 14px; font-size: 1rem; color: var(--k-ink); background: #fff; box-shadow: none; }
.k-lataus__kentta input:focus { border-color: var(--k-indigo); outline: none; }
.k-lataus__suostumus { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--k-muted); line-height: 1.45; margin: 0; }
.k-lataus__suostumus input { margin: 3px 0 0; flex: none; }
.k-lataus__suostumus a { color: var(--k-indigo); font-weight: 700; }
.k-lataus__viesti { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(0, 161, 155, .12); color: var(--k-ink); font-weight: 600; }
.k-dark .k-lataus__kentta span, .k-dark .k-lataus__suostumus { color: #fff; }
.k-dark .k-lataus__suostumus a { color: #fff; text-decoration: underline; }
.k-formcard .k-lataus__kentta span, .k-dark .k-formcard .k-lataus__kentta span { color: var(--k-ink); }
.k-formcard .k-lataus__suostumus, .k-dark .k-formcard .k-lataus__suostumus { color: var(--k-muted); }
.k-formcard .k-lataus__suostumus a, .k-dark .k-formcard .k-lataus__suostumus a { color: var(--k-indigo); text-decoration: underline; }
.k-formcard .k-lataus__viesti, .k-dark .k-formcard .k-lataus__viesti { color: var(--k-ink); }
.k-magnet { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; margin: 2em 0; padding: 22px 26px; border-radius: 16px; background: linear-gradient(135deg, rgba(0, 161, 155, .10), rgba(91, 108, 255, .14)); }
.k-magnet__label { grid-column: 1 / -1; margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--k-indigo); }
.k-magnet h3 { margin: 0; font-size: 1.2rem; text-transform: none; color: var(--k-ink); }
.k-magnet p { margin: 4px 0 0; color: var(--k-muted); }
.k-magnet .button { margin: 0; white-space: nowrap; }
@media (max-width: 549px) { .k-magnet { grid-template-columns: 1fr; } }

/* ---------- Asiakkaiden kommentit ---------- */
.k-quote { margin: 0; font-style: normal; padding: 26px 30px 22px; background: #fff; border: 1px solid var(--k-line); border-radius: 18px; box-shadow: var(--k-shadow); display: flex; flex-direction: column; gap: 16px; }
.k-quote p { margin: 0; font-style: normal; font-size: 1.06rem; line-height: 1.65; color: var(--k-ink); }
.k-quote p::before { content: "\201C"; color: var(--k-teal); font-weight: 800; font-size: 1.6em; line-height: 0; vertical-align: -.25em; margin-right: 4px; }
.k-quote footer { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; color: var(--k-muted); border-top: 1px solid var(--k-line); padding-top: 14px; }
.k-quote footer strong { display: block; color: var(--k-ink); font-size: 1rem; }
.k-quote footer span { display: block; font-style: normal; }
.k-quotecol { padding-bottom: 0; }
.k-quoterow { margin-bottom: 18px; }

/* Lomake: kentät kahdelle riville, jotta lomake ei veny liian korkeaksi */
.k-formcard .form-flat > p { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 0; }
.k-formcard .form-flat > p > br { display: none; }
.k-formcard .form-flat .wpcf7-form-control-wrap { display: block; min-width: 0; }
.k-formcard .form-flat .wpcf7-form-control-wrap input, .k-formcard .form-flat .wpcf7-form-control-wrap select { margin-bottom: 14px; }
.k-formcard .form-flat .wpcf7-form-control-wrap[data-name="your-message"], .k-formcard .form-flat .wpcf7-form-control-wrap[data-name="your-topic"],
.k-formcard .form-flat .wpcf7-submit, .k-formcard .form-flat .wpcf7-spinner { grid-column: 1 / -1; }
.k-formcard .form-flat textarea { height: 120px; min-height: 0; margin-bottom: 14px; }
.k-formcard .form-flat .wpcf7-submit { width: 100%; margin: 0; }
.k-formcard .form-flat .wpcf7-not-valid-tip { font-size: .8rem; }
@media (max-width: 600px) {
  .k-formcard .form-flat > p { grid-template-columns: 1fr; }
}

/* Tuotekortin avattavat osiot */
.k-acc { margin: 14px 0 6px; border-top: 1px solid var(--k-line); }
.k-acc details { border-bottom: 1px solid var(--k-line); }
.k-acc summary { cursor: pointer; list-style: none; padding: 12px 28px 12px 0; font-weight: 700; color: var(--k-ink); position: relative; font-size: .98rem; }
.k-acc summary::-webkit-details-marker { display: none; }
.k-acc summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 600; color: var(--k-teal); }
.k-acc details[open] summary::after { content: "\2212"; }
.k-acc summary:focus-visible { outline: 2px solid var(--k-indigo); outline-offset: 2px; }
.k-acc__body { padding: 0 0 14px; color: var(--k-muted); line-height: 1.6; font-size: .96rem; }
.k-acc__body p { margin: 0 0 .6em; color: inherit; }
.k-acc__body ul { margin: 0 0 .6em 1.1em; list-style: disc; }

/* Sanasto */
.k-sanasto { max-width: 920px; margin: 0 auto; }
.k-sanasto__nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; position: sticky; top: 0; background: #fff; padding: 10px 0; z-index: 2; }
.k-sanasto__nav a { display: inline-block; min-width: 34px; text-align: center; padding: 6px 8px; border: 1px solid var(--k-line); border-radius: 8px; font-weight: 700; color: var(--k-ink); text-decoration: none; }
.k-sanasto__nav a:hover { background: var(--k-ink); color: #fff; }
.k-sanasto h3 { font-size: 1.6rem; margin: 30px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--k-teal); color: var(--k-ink); text-transform: none; }
.k-sanasto__lista { list-style: none; margin: 0; padding: 0; }
.k-sanasto__lista li { padding: 12px 0; border-bottom: 1px solid var(--k-line); line-height: 1.55; color: var(--k-muted); }
.k-sanasto__lista li a { color: var(--k-ink); }
.k-sanasto__lista li a:hover { color: var(--k-indigo); }

/* Uutiskirjelaatikko artikkelin lopussa */
.k-nlbox { background: #f4f6fb; border: 1px solid var(--k-line); border-radius: 16px; padding: 22px 24px; margin: 28px 0; }
.k-nlbox h3 { margin: 0 0 6px; text-transform: none; color: var(--k-ink); }
.k-nlbox > p { margin: 0 0 14px; color: var(--k-muted); }
.k-nlbox .k-lataus { max-width: none; }

/* Megavalikko: sarakeotsikot, määrät ja koko-listaus-linkit */
@media (min-width: 850px) {
  .nav-dropdown .nav-dropdown-col > a, .nav-dropdown-bold .nav-dropdown-col > a { font-size: .92rem !important; font-weight: 700 !important; letter-spacing: .01em !important; text-transform: none !important; color: #fff !important; padding-bottom: 6px; opacity: 1 !important; }
  .nav-dropdown .nav-dropdown-col > a:hover { color: var(--k-teal) !important; }
  .nav-dropdown li[class*="k-n-"] > a { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
  .nav-dropdown li[class*="k-n-"] > a::after { font-size: .74rem; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; flex: none; }
  .nav-dropdown .k-n-1 > a::after { content: "1"; }
  .nav-dropdown .k-n-6 > a::after { content: "6"; }
  .nav-dropdown .k-n-7 > a::after { content: "7"; }
  .nav-dropdown .k-n-8 > a::after { content: "8"; }
  .nav-dropdown .k-n-9 > a::after { content: "9"; }
  .nav-dropdown .k-n-10 > a::after { content: "10"; }
  .nav-dropdown .k-n-18 > a::after { content: "18"; }
  .nav-dropdown .k-n-21 > a::after { content: "21"; }
  .nav-dropdown .k-n-33 > a::after { content: "33"; }
  .nav-dropdown .k-n-137 > a::after { content: "137"; }
  .nav-dropdown .k-all > a { color: var(--k-teal) !important; font-weight: 700 !important; }
  .nav-dropdown .k-all > a::after { content: " \2192"; }
}

/* Himmeät alakohdat ja lisämäärät megavalikossa */
@media (min-width: 850px) {
  .nav-dropdown .k-n-2 > a::after { content: "2"; }
  .nav-dropdown .k-n-3 > a::after { content: "3"; }
  .nav-dropdown .k-n-15 > a::after { content: "15"; }
  .nav-dropdown li.k-sub > a { padding-left: 12px !important; opacity: .62; font-size: .95em; }
  .nav-dropdown li.k-sub > a:hover { opacity: 1; }
}

/* ---------- Resurssit: haku, suodattimet, nostot ja aihelista ---------- */
.k-res { margin: 0 0 32px; }
.k-res__search { display: flex; gap: 10px; margin: 0 0 14px; }
.k-res__input { flex: 1; min-height: 52px; margin: 0; padding: 12px 16px; font-size: 1.05rem; border: 2px solid var(--k-line); border-radius: 12px; background: #fff; color: var(--k-ink); box-shadow: none; }
.k-res__input:focus { border-color: var(--k-teal); outline: none; }
.k-res__pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.k-res__pill { margin: 0; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--k-line); background: #fff; color: var(--k-ink); font-weight: 600; cursor: pointer; line-height: 1.2; min-height: 0; text-transform: none; letter-spacing: 0; }
.k-res__pill:hover { border-color: var(--k-teal); }
.k-res__pill.is-active { background: var(--k-navy); border-color: var(--k-navy); color: #fff; }
.k-res__feat { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin: 0 0 30px; }
.k-res__feat[hidden] { display: none; }
.k-res__big, .k-res__sm { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; border-radius: 14px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--k-navy), #123f63); }
.k-res__big { min-height: 230px; }
.k-res__big strong { font-size: 1.5rem; line-height: 1.2; }
.k-res__big span:last-child { color: rgba(255,255,255,.78); font-size: .95rem; }
.k-res__side { display: grid; gap: 16px; }
.k-res__sm { min-height: 107px; background: var(--k-ink); padding: 18px 20px; }
.k-res__sm strong { font-size: 1.05rem; line-height: 1.3; }
.k-res__label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--k-teal); font-weight: 700; }
.k-res__layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.k-res__filters { position: sticky; top: 90px; display: grid; gap: 18px; font-size: .92rem; }
.k-res__filters > summary { font-weight: 700; cursor: pointer; list-style: none; padding: 10px 14px; border: 1.5px solid var(--k-line); border-radius: 10px; display: none; }
.k-res__facet { margin: 0 0 18px; }
.k-res__facet b { display: block; margin: 0 0 6px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--k-muted); }
.k-res__facet > div { display: grid; gap: 2px; }
.k-res__opt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; margin: 0; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--k-ink); text-align: left; cursor: pointer; font-size: .92rem; line-height: 1.3; min-height: 0; text-transform: none; letter-spacing: 0; font-weight: 500; }
.k-res__opt:hover { background: rgba(10,37,64,.05); }
.k-res__opt.is-active { background: rgba(0,161,155,.14); font-weight: 700; }
.k-res__opt span { font-size: .75rem; color: var(--k-muted); font-variant-numeric: tabular-nums; }
.k-res__opt[hidden] { display: none; }
.k-res__more-a, .k-res__reset { margin: 6px 0 0; padding: 6px 10px; border: 0; background: transparent; color: var(--k-teal); font-weight: 700; cursor: pointer; text-align: left; text-transform: none; letter-spacing: 0; min-height: 0; }
.k-res__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.k-res__count { margin: 0; color: var(--k-muted); font-weight: 600; }
.k-res__sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; color: var(--k-muted); }
.k-res__sort select { margin: 0; min-height: 0; padding: 6px 10px; width: auto; border-radius: 8px; }
.k-res__grouph { margin: 26px 0 10px; font-size: 1.2rem; }
.k-res__grouph span { color: var(--k-muted); font-weight: 500; font-size: .9rem; }
.k-res__groupmore { margin: 12px 0 0; }
.k-res__empty { padding: 24px; border: 1.5px dashed var(--k-line); border-radius: 12px; color: var(--k-muted); }
.k-res__results .k-posts { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.k-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 34px; }
.k-topic { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1.5px solid var(--k-line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--k-ink); transition: border-color .15s, box-shadow .15s; }
.k-topic:hover { border-color: var(--k-teal); box-shadow: var(--k-shadow); }
.k-topic strong { font-size: 1.05rem; }
.k-topic span { color: var(--k-muted); font-size: .92rem; }
.k-topic small { margin-top: auto; padding-top: 6px; color: var(--k-teal); font-weight: 700; }
@media (max-width: 849px) {
  .k-res__feat { grid-template-columns: 1fr; }
  .k-res__layout { grid-template-columns: 1fr; gap: 16px; }
  .k-res__filters { position: static; }
  .k-res__filters > summary { display: block; }
  .k-res__pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .k-res__pill { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .k-topic { transition: none; } }

/* Artikkelin murupolku */
.k-crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; margin: 0 0 18px; font-size: .88rem; color: var(--k-muted); }
.k-crumbs a { color: var(--k-muted); text-decoration: none; font-weight: 600; }
.k-crumbs a:hover { color: var(--k-teal); text-decoration: underline; }
.k-crumbs__min { margin-left: auto; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.k-res [hidden] { display: none !important; }

/* Tulossa-merkintä ajastetuille artikkeleille */
.k-soon { color: var(--k-muted); }
.k-soon__tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: rgba(0,161,155,.14); color: #006f6a; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.k-btn--soon { background: transparent !important; border: 1.5px dashed var(--k-line) !important; color: var(--k-muted) !important; cursor: default; box-shadow: none !important; pointer-events: none; }
a.k-res__pill { display: inline-block; text-decoration: none; }
.k-res__search .button { flex: none; margin: 0; }
