/* ==========================================================================
   Sovnfakta.com — yhteinen tyylitiedosto
   Mobiili ensin · ei ulkoisia kirjastoja · järjestelmäfontit (ei fonttilatauksia)
   Väripaletti: #13193b (tummansininen) + #ffffff (valkoinen) sekä niiden sävyt
   ========================================================================== */

:root {
  /* Brändivärit */
  --navy: #13193b;
  --navy-deep: #0c1029;
  --navy-2: #1a2250;
  --navy-mid: #2f3c82;
  --navy-soft: #b9c3f4;
  --tint: #eceef8;
  --tint-2: #f5f6fb;
  --paper: #ffffff;

  /* Teksti */
  --ink: #12141f;
  --ink-2: #3a3e52;
  --mute: #6b7087;
  --mute-2: #8f94a8;

  /* Viivat & varjot */
  --line: #dfe2ee;
  --line-strong: #c2c7dc;
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 2px rgba(19, 25, 59, 0.05), 0 2px 6px rgba(19, 25, 59, 0.05);
  --shadow-md: 0 10px 30px -8px rgba(19, 25, 59, 0.14), 0 4px 8px -4px rgba(19, 25, 59, 0.06);

  /* Fontit — järjestelmäfontit, nolla latausta */
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Mitat */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --container: 1120px;
  --article: 920px;
  --measure: 720px;
  --gutter: 20px;
  --header-h: 60px;
}

/* --------------------------------------------------------------------------
   Perusnollaus
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
h1 em, h2 em, h3 em, .accent { font-style: italic; color: var(--navy-mid); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
mark { background: rgba(185, 195, 244, 0.35); color: inherit; padding: 0 0.15em; }
:focus-visible { outline: 3px solid var(--navy-mid); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 8px; }

/* --------------------------------------------------------------------------
   Asettelu
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--article { max-width: var(--article); }
.container--narrow { max-width: var(--measure); }
.section { padding: 56px 0; }
.section--tint { background: var(--tint-2); }
.section--border { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  :root { --gutter: 24px; }
}

/* Eyebrow: viiva + monospace-otsikko */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy-mid); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--navy-soft); }

/* Chipit */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--ink-2); background: #fff;
  line-height: 1.2; white-space: nowrap;
}
.chip--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--tint { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.chip--dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.chip svg { width: 12px; height: 12px; }

/* Painikkeet */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-2); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--tint); color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 26px; font-size: 1.0625rem; }
.btn--mono { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; padding: 10px 14px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.logo { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--navy); }
.logo__word { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.logo__word em { font-style: italic; color: var(--navy-mid); }
.logo__tag { display: none; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); padding-left: 12px; border-left: 1px solid var(--line-strong); }
@media (min-width: 700px) { .logo__tag { display: inline; } }
.logo--light { color: #fff; }
.logo--light .logo__word em { color: var(--navy-soft); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-right: -8px; border: 0; background: transparent; color: var(--navy); border-radius: var(--r-sm);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav { display: none; }
.nav-open .site-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 12px; display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy-mid); }
.site-nav .nav-cta { margin-top: 8px; }
.site-nav .nav-cta a { border: 0; padding: 0; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav { display: block; position: static; background: transparent; border: 0; box-shadow: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 28px; padding: 0; }
  .site-nav a { padding: 6px 0; border: 0; font-size: 0.95rem; }
  .site-nav .nav-cta { margin: 0 0 0 4px; }
}

/* --------------------------------------------------------------------------
   Hero (tumma)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%);
  padding: 56px 0 48px;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 10%, rgba(185, 195, 244, 0.14), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { color: #fff; margin: 18px 0 18px; }
.hero h1 em { color: var(--navy-soft); }
.hero__lead { font-size: 1.0625rem; color: rgba(255, 255, 255, 0.82); max-width: 540px; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.hero__media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero__media figcaption { position: absolute; left: 12px; bottom: 12px; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 80px; }
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
}

/* Tilastorivi */
.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r-md); overflow: hidden; margin-top: 34px; background: rgba(255, 255, 255, 0.03); }
.stats__item { padding: 18px 12px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.stats__item:nth-child(2n) { border-right: 0; }
.stats__item:nth-last-child(-n+2) { border-bottom: 0; }
.stats__num { font-family: var(--font-display); font-size: 1.75rem; color: var(--navy-soft); line-height: 1; margin-bottom: 8px; }
.stats__label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats__item { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.12); }
  .stats__item:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, 0.12); }
  .stats__item:last-child { border-right: 0; }
}

/* Luottamusrivi */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-2); }
.trust svg { width: 16px; height: 16px; color: var(--navy-mid); flex: none; }

/* --------------------------------------------------------------------------
   Kortit & ruudukot
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 20px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.card__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.card__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

/* Askeleet (Miten arvioimme) */
.steps { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; display: grid; overflow: hidden; }
.step { padding: 26px 22px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { border-bottom: 0; border-right: 1px solid var(--line); padding: 34px 28px; }
  .step:last-child { border-right: 0; }
}

/* Artikkelikortit */
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.post-card__foot { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.post-card--featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .post-card--featured { display: grid; grid-template-columns: 1.2fr 1fr; }
  .post-card--featured .post-card__media { aspect-ratio: auto; min-height: 320px; }
  .post-card--featured .post-card__body { padding: 34px 36px; justify-content: center; }
  .post-card--featured h3 { font-size: 1.9rem; }
}
.post-card--soon { pointer-events: none; }
.post-card--soon .post-card__media { position: relative; }
.post-card--soon .post-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 25, 59, 0.05), rgba(19, 25, 59, 0.35)); }
.post-card--soon .post-card__media .chip { position: absolute; left: 12px; top: 12px; z-index: 1; }

/* --------------------------------------------------------------------------
   Uutiskirje
   -------------------------------------------------------------------------- */
.newsletter { background: var(--tint-2); border-top: 1px solid var(--line); text-align: center; padding: 56px 0; }
.newsletter h2 { margin-bottom: 8px; }
.newsletter p { color: var(--ink-2); margin: 0 auto 22px; max-width: 520px; }
.newsletter__form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter__form input[type="email"] { flex: 1; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; background: #fff; color: var(--ink); min-width: 0; }
.newsletter__form input:focus { border-color: var(--navy-mid); outline: none; box-shadow: 0 0 0 3px rgba(47, 60, 130, 0.15); }
.newsletter__note { font-size: 0.8rem; color: var(--mute); margin: 12px 0 0; }
.newsletter__status { font-size: 0.9rem; margin: 10px 0 0; color: var(--navy-mid); min-height: 1.4em; }
@media (min-width: 640px) { .newsletter__form { flex-direction: row; } }
@media (min-width: 900px) { .newsletter { padding: 80px 0; } }

/* --------------------------------------------------------------------------
   Footer (tumma)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.85); padding: 48px 0 28px; font-size: 0.95rem; }
.site-footer__cols { display: grid; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.site-footer__title { font-weight: 700; color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.site-footer__cols p { margin: 0 0 12px; line-height: 1.6; max-width: 480px; }
.site-footer__cols p:last-child { margin-bottom: 0; }
.site-footer__bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; font-size: 0.8125rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__links button { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, 0.78); font: inherit; cursor: pointer; }
.site-footer__links button:hover { color: #fff; text-decoration: underline; }
.site-footer__copy { margin: 0; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
@media (min-width: 700px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 56px; }
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .site-footer { padding: 64px 0 34px; }
}

/* --------------------------------------------------------------------------
   Artikkelisivu
   -------------------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--navy-mid); z-index: 60; transition: width 0.1s linear; }

.article-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.article-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.article-nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 6px; }
.article-nav__links a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; background: #fff; }
.article-nav__links a:hover { border-color: var(--navy); color: var(--navy); }
.article-nav__links a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.article-nav__cta { white-space: nowrap; }
@media (min-width: 900px) { .article-nav__links { display: flex; } }

.article-head { padding: 40px 0 28px; }
.article-head h1 { margin: 18px 0 20px; }
.article-head .lead { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.55; color: var(--ink); border-left: 2px solid var(--navy); padding-left: 18px; margin: 0 0 24px; }
.quicklinks { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quicklinks a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.quicklinks a:hover { border-color: var(--navy); }
.quicklinks a span { font-family: var(--font-mono); font-size: 0.625rem; color: var(--navy-mid); letter-spacing: 0.1em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.85rem; color: var(--mute); margin-bottom: 24px; }
.byline strong { color: var(--ink); font-weight: 600; }
.byline .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.95rem; }

.figure { margin: 0 0 8px; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.figure figcaption { font-size: 0.8rem; color: var(--mute); margin-top: 10px; }
@media (min-width: 900px) { .article-head { padding: 64px 0 40px; } .article-head .lead { font-size: 1.3rem; } }

.article-section { padding: 44px 0; border-top: 1px solid var(--line); }
.article-section h2 { margin-bottom: 18px; }
.article-section .lead { border-left: 2px solid var(--navy); padding-left: 18px; color: var(--ink); font-size: 1.05rem; margin: 0 0 24px; }
@media (min-width: 900px) { .article-section { padding: 64px 0; } .article-section .lead { font-size: 1.1rem; } }

.prose > p, .prose > ul, .prose > ol { max-width: var(--measure); }
.prose p { color: var(--ink-2); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-2); }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1.2em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--tint-2); font-weight: 600; }
.prose .small { font-size: 0.875rem; color: var(--mute); }

/* Placeholder-merkintä (poistetaan kun oikea sisältö korvaa) */
.ph { background: #fff7d6; border: 1px dashed #d8b84a; color: #6a5300; padding: 0 0.3em; border-radius: 3px; font-style: normal; }
.ph-block { background: #fffaf0; border: 1px dashed #d8b84a; border-radius: var(--r-md); padding: 14px 18px; color: #6a5300; font-size: 0.9rem; margin: 0 0 1.2em; }
.ph-block strong { color: #4d3c00; }

/* Callout */
.callout { background: var(--tint); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 22px 22px 20px; margin: 24px 0; max-width: var(--measure); }
.callout .chip { margin-bottom: 12px; }
.callout p { margin: 0; color: var(--ink); font-size: 0.975rem; }
.callout--full { max-width: none; }

/* Numeroidut kortit 01/03 */
.numbered { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.numbered__item { padding: 26px 22px; border-bottom: 1px solid var(--line-strong); }
.numbered__item:last-child { border-bottom: 0; }
.numbered__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy-mid); line-height: 1; margin-bottom: 12px; display: flex; align-items: baseline; gap: 6px; }
.numbered__num small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--mute); letter-spacing: 0.1em; }
.numbered__item h3 { margin-bottom: 8px; }
.numbered__item p { color: var(--ink-2); margin: 0; font-size: 0.975rem; }
@media (min-width: 900px) { .numbered__item { padding: 32px 30px; } }

/* Vertailutaulukko */
.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td { padding: 14px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare th:first-child, .compare td:first-child { text-align: left; font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); width: 30%; }
.compare tr > *:last-child { border-right: 0; }
.compare thead th { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); background: var(--tint-2); font-weight: 500; }
.compare thead th:first-child { font-family: var(--font-mono); font-size: 0.625rem; }
.compare .is-pick { background: var(--tint); }
.compare thead th.is-pick { background: var(--navy); color: #fff; }
.compare .yes { color: var(--navy-mid); font-weight: 700; }
.compare .no { color: var(--mute-2); }
.compare .part { color: var(--ink-2); }
.compare tfoot td { background: var(--navy-deep); color: #fff; font-family: var(--font-sans); font-size: 0.8rem; line-height: 1.4; border-color: rgba(255, 255, 255, 0.12); }
.compare tfoot td:first-child { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.compare tfoot td.is-pick { background: var(--navy-mid); }
.compare__hint { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 10px 0 0; }
@media (min-width: 900px) { .compare__hint { display: none; } }

/* Suosituskortti (rank card) */
.rank { border: 1px solid var(--navy); border-radius: var(--r-md); background: #fff; overflow: hidden; box-shadow: var(--shadow-md); margin: 28px 0; }
.rank__bar { background: var(--navy-deep); color: #fff; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rank__bar .eyebrow { margin: 0; color: var(--navy-soft); }
.rank__top { display: grid; border-bottom: 1px solid var(--line-strong); }
.rank__media { padding: 22px; display: flex; align-items: center; justify-content: center; background: var(--tint-2); border-bottom: 1px solid var(--line-strong); }
.rank__media img { max-height: 220px; width: auto; object-fit: contain; }
.rank__info { padding: 22px; }
.rank__info h3 { font-size: 1.6rem; margin: 6px 0 4px; }
.rank__spec { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.rank__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rank__score { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%; border: 6px solid var(--tint); border-top-color: var(--navy); border-right-color: var(--navy); font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); line-height: 1; }
.rank__score small { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-top: 4px; }
.rank__lists { display: grid; gap: 22px; padding: 22px; }
.rank__lists h4 { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--navy); }
.rank__lists ul { list-style: none; margin: 0; padding: 0; }
.rank__lists li { display: flex; gap: 10px; padding: 6px 0; font-size: 0.95rem; color: var(--ink-2); }
.rank__lists li::before { font-family: var(--font-mono); font-weight: 700; flex: none; }
.rank__pros li::before { content: "+"; color: var(--navy-mid); }
.rank__cons li::before { content: "–"; color: var(--mute-2); }
.rank__bottom { margin: 0 22px 22px; background: var(--tint-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 16px 18px; }
.rank__bottom .chip { margin-bottom: 8px; }
.rank__bottom p { margin: 0; font-size: 0.95rem; }
.rank__cta { padding: 0 22px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rank__cta .guarantee { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 700px) {
  .rank__top { grid-template-columns: 240px 1fr; }
  .rank__media { border-bottom: 0; border-right: 1px solid var(--line-strong); }
  .rank__info { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; padding: 26px 28px; }
  .rank__lists { grid-template-columns: 1fr 1fr; padding: 26px 28px; gap: 32px; }
  .rank__bottom { margin: 0 28px 24px; }
  .rank__cta { padding: 0 28px 28px; }
}

/* Aikajana */
.timeline { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.timeline__item { padding: 24px 22px; border-bottom: 1px solid var(--line-strong); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__item h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.timeline__item p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
@media (min-width: 900px) { .timeline__item { padding: 30px 30px; } }

/* FAQ (details/summary — ei JS:ää) */
.faq { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--navy-mid); font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { background: var(--tint-2); }
.faq__body { padding: 4px 22px 20px; color: var(--ink-2); font-size: 0.95rem; }
.faq__body p:last-child { margin: 0; }

/* Suositus (tumma osio) */
.reco { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--navy-2)); color: #fff; padding: 56px 0; }
.reco__grid { display: grid; gap: 32px; align-items: center; }
.reco h2 { color: #fff; }
.reco h2 em { color: var(--navy-soft); }
.reco__text p { color: rgba(255, 255, 255, 0.8); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.6; }
.reco__card { position: relative; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 26px 24px 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.reco__card .chip--navy { position: absolute; top: -12px; left: 20px; }
.reco__product { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--navy); }
.reco__product img { width: 96px; height: 96px; object-fit: contain; }
.reco__product h3 { margin: 0 0 4px; font-size: 1.35rem; }
.reco__product .spec { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px; }
.reco__product .price { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); line-height: 1; }
.reco__product .price small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--mute); margin-top: 6px; }
.reco__list { list-style: none; margin: 0 0 18px; padding: 0; }
.reco__list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.925rem; color: var(--ink-2); }
.reco__list li::before { content: "✓"; color: var(--navy-mid); font-size: 0.8rem; flex: none; padding-top: 3px; }
.reco__guarantee { text-align: center; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 14px 0 0; }
@media (min-width: 900px) {
  .reco { padding: 88px 0; }
  .reco__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .reco__card { padding: 34px 32px 28px; }
}

/* Sivutus */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.pagination a { color: var(--navy-mid); text-decoration: underline; text-underline-offset: 4px; }
.pagination__current { font-weight: 700; color: var(--ink); }
.pagination__gap { color: var(--mute); }
.pagination__prev { margin-right: 6px; }
.pagination__next { margin-left: 6px; }

/* Lyhyet artikkelit (post) */
.post-body { padding: 8px 0 48px; }
.post-body h2 { margin-top: 1.6em; font-size: clamp(1.45rem, 3vw, 1.85rem); }
.post-body h2:first-child { margin-top: 0.4em; }
.post-body h3 { margin-top: 1.4em; }
.post-body p, .post-body ul, .post-body ol { max-width: var(--measure); }
.post-body .callout { margin: 28px 0; }
.post-body .faq { max-width: var(--measure); margin: 28px 0 8px; }
.post-body .sources { font-size: 0.85rem; color: var(--mute); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 36px; max-width: var(--measure); }
.post-body .sources p { margin: 0 0 6px; }
.guide-cta { padding: 0 0 48px; }
.guide-cta__box { background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; display: grid; gap: 20px; }
.guide-cta__box h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: 8px; }
.guide-cta__box p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.guide-cta__box .btn { justify-self: start; white-space: nowrap; }
@media (min-width: 900px) {
  .guide-cta__box { grid-template-columns: 1fr auto; align-items: center; padding: 34px 36px; gap: 32px; }
  .post-body { padding: 16px 0 64px; }
}
.related { padding: 48px 0 72px; border-top: 1px solid var(--line); background: var(--tint-2); }
.related .eyebrow { margin-bottom: 20px; }
.related .post-card h3 { font-size: 1.15rem; }

/* Lähteet & tiedonanto */
.references ol { padding-left: 1.3em; color: var(--ink-2); font-size: 0.9rem; max-width: var(--measure); }
.references li { margin-bottom: 0.6em; }
.disclosure { background: var(--tint-2); border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.85rem; color: var(--ink-2); }
.disclosure p { max-width: var(--measure); margin-bottom: 10px; }
.disclosure strong { color: var(--ink); }

/* Sticky CTA -palkki */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--line-strong); box-shadow: 0 -10px 30px rgba(19, 25, 59, 0.08); transform: translateY(110%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; padding: 10px 0; }
.sticky-cta.is-visible { transform: translateY(0); visibility: visible; transition: transform 0.25s ease, visibility 0s; }
.sticky-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-cta__product { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.sticky-cta__product > div { min-width: 0; }
.sticky-cta__product img { width: 40px; height: 40px; object-fit: contain; flex: none; border-radius: var(--r-sm); }
.sticky-cta__title { font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { flex: none; padding: 11px 16px; font-size: 0.9rem; }
body.has-sticky-cta { padding-bottom: 72px; }

/* --------------------------------------------------------------------------
   Sivuotsikko (alasivut) & evästebanneri
   -------------------------------------------------------------------------- */
.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--line); background: var(--tint-2); }
.page-head h1 { margin: 12px 0 10px; }
.page-head p { color: var(--ink-2); max-width: 640px; margin: 0; }
.page-body { padding: 40px 0 64px; }
.page-body .meta { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 24px; }
@media (min-width: 900px) { .page-head { padding: 64px 0 40px; } .page-body { padding: 56px 0 96px; } }

.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; color: var(--navy); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 24px rgba(12, 16, 41, 0.12); padding: 14px 0; }
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-direction: column; gap: 12px; }
.consent__text { margin: 0; font-size: 0.925rem; line-height: 1.5; }
.consent__text a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__actions .btn { padding: 11px 14px; font-size: 0.925rem; }
@media (min-width: 700px) {
  .consent__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .consent__text { max-width: 720px; }
  .consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
  .consent__actions .btn { min-width: 150px; }
}

/* 404 */
.notfound { text-align: center; padding: 80px 0 100px; min-height: 60vh; }
.notfound .big { font-family: var(--font-display); font-size: clamp(4rem, 15vw, 8rem); color: var(--tint); line-height: 1; margin-bottom: 8px; text-shadow: 0 1px 0 var(--line-strong); }

/* Apuluokat */
.link-button { background: none; border: 0; padding: 0; color: var(--navy-mid); text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer; }
.link-button:hover { color: var(--navy); }
.section-more { margin: 24px 0 0; font-weight: 500; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.muted { color: var(--mute); }
.small { font-size: 0.875rem; }
.icon { width: 16px; height: 16px; }

/* --- Advertoriaali (/kuorsaaminen/) ------------------------------------- */
.adv-topbar { background: var(--navy-deep); color: #fff; }
.adv-topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.adv-topbar__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy-soft); }
.adv-topbar__brand { font-family: var(--font-display); font-size: 1.05rem; color: #fff; text-decoration: none; }
.adv-topbar__brand em { font-style: italic; color: var(--navy-soft); }
.adv { padding: 28px 0 48px; }
.adv__col { max-width: 720px; }
.adv__title { font-family: var(--font-display); font-size: clamp(1.75rem, 5.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; margin: 8px 0 18px; }
.adv__title strong { font-weight: 700; }
.adv__h { font-family: var(--font-display); font-size: clamp(1.35rem, 4vw, 1.75rem); line-height: 1.2; margin: 34px 0 14px; }
.adv p { margin: 0 0 14px; line-height: 1.65; }
.adv__check { padding-left: 2px; }
.adv__eyebrow { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-mid); margin: 34px 0 4px; }
.adv__cta { margin: 26px 0 34px; }
.adv__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--mute); margin: 0 0 14px; }
.adv__crumbs svg, .adv__byline svg { flex: none; opacity: 0.75; }
.adv__sep { color: var(--mute-2); }
.adv__byline { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--mute); margin: 2px 0 18px; }
.adv__c { text-align: center; }
h2.adv__h + .adv__c, .adv__c + .adv__c { margin-top: 10px; }

/* Tarina-advertoriaalin viimeistely (vain .adv--story, esim. /olkapaa/) */
.adv--story .adv__title { line-height: 1.18; margin: 10px 0 16px; }
.adv--story .adv__byline { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.adv--story p { margin: 0 0 16px; line-height: 1.7; }
.adv--story .adv__h { font-size: clamp(1.25rem, 3.4vw, 1.55rem); margin: 46px 0 16px; }
.adv--story .adv__h::before { content: ""; display: block; width: 26px; height: 3px; background: var(--navy-mid); border-radius: 2px; margin-bottom: 12px; }
.adv--story .adv__img { border: 1px solid var(--line); border-radius: var(--r-md); margin: 24px 0; box-shadow: var(--shadow-sm); }
.adv--story .adv__video { border: 1px solid var(--line); border-radius: var(--r-md); margin: 24px 0; }
.adv--story .adv__cta .btn--block { display: flex; max-width: 460px; margin: 0 auto; text-align: center; text-wrap: balance; box-shadow: 0 8px 24px rgba(19, 25, 59, 0.22); }
.adv--story .adv__offer { background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 22px 20px; margin-top: 44px; }
.adv--story .adv__offer .adv__h { margin-top: 0; text-align: center; }
.adv--story .adv__offer .adv__h::before { margin-left: auto; margin-right: auto; }
.adv--story .adv__offer .adv__img { border: 0; box-shadow: none; background: transparent; max-width: 380px; margin: 14px auto 18px; }
.adv--story .adv__offer .adv__cta { margin-bottom: 6px; }
@media (min-width: 700px) { .adv--story .adv__offer { padding: 36px 34px 24px; } }


.ph { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--tint-2); border: 2px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; margin: 18px 0; }
.ph--square { aspect-ratio: 1 / 1; max-width: 460px; margin-left: auto; margin-right: auto; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--avatar { width: 52px; height: 52px; border-radius: 50%; margin: 0; flex: none; font-size: 0.5rem; letter-spacing: 0.04em; }
.adv-reviews { margin: 8px 0 10px; }
.adv-review { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; box-shadow: 0 6px 24px rgba(12, 16, 41, 0.06); padding: 18px 18px 8px; margin: 0 0 16px; }
.adv-review__head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.adv-review__name { font-weight: 700; margin: 0 !important; }
.adv-review__stars { color: #f5a623; letter-spacing: 2px; margin: 0 !important; }
.adv-review__meta { font-size: 0.8125rem; color: var(--muted); margin: 0 0 4px !important; }
.adv-review__meta--verified { color: #1a7f4e; font-weight: 600; margin-bottom: 10px !important; }
.adv-disclaimer { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 22px; }
.adv-disclaimer p { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }
.adv-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line-strong); padding: 10px 0; }
.adv-sticky .btn { box-shadow: 0 8px 24px rgba(19, 25, 59, 0.25); text-align: center; text-wrap: balance; }
body.has-adv-sticky { padding-bottom: 74px; }
@media (min-width: 700px) {
  .adv { padding: 40px 0 64px; }
  .adv-sticky { padding: 12px 0; }
  body.has-adv-sticky { padding-bottom: 80px; }
}
.adv__lead { font-size: 1.0625rem; color: var(--muted); }
.adv__video { display: block; width: 100%; height: auto; aspect-ratio: 886 / 500; border-radius: var(--r-sm); background: var(--tint-2); margin: 18px 0 22px; }
.adv__img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); margin: 18px 0; }
.adv-review__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.adv__box { background: #fffada; padding: 10px; margin: 16px 0; }
.adv__box--round { border-radius: 5px; }
.adv__box p:last-child { margin-bottom: 0 !important; }
.adv mark { background: #f8c705; color: inherit; font-weight: 700; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Sovnfakta: la lange chip-tekster brytes på smale skjermer i stedet for å gi vannrett overflyt */
@media (max-width: 520px) {
  .chip { white-space: normal; }
}
/* Sovnfakta: tabellene i cookie- og personvernsidene kan rulles sideveis på mobil i stedet for å sprenge sidebredden */
@media (max-width: 760px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
