/* =========================================================================
   4myrunlife 2026
   Kaikki säännöt alkavat body.mr-2026, joten tyylit eivät vaikuta muualle.
   Luokilla on etuliite mr-, jotta ne eivät törmää Divin luokkiin.
   ========================================================================= */

:root {
  --paper: #f6f1e7;
  --paper-2: #ede4d3;
  --card: #fffdf8;
  --ink: #201b15;
  --ink-2: #4b4238;
  --muted: #847866;
  --line: rgba(32, 27, 21, .14);
  --desk: #1f2921; /* pöydän pinta (Boknäs, tummanvihreä): pöydän tausta, aihesirut, alatunniste */
  --accent: #e2592a;
  --accent-2: #c2461b;
  --leaf: #4f6b3a;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --wrap: 1240px;
  --ratio: 1536 / 908;
}

body.mr-2026 {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.mr-2026 *, body.mr-2026 *::before, body.mr-2026 *::after { box-sizing: border-box; }
body.mr-2026 a { color: inherit; text-decoration: none; }
body.mr-2026 img { max-width: 100%; height: auto; display: block; }
body.mr-2026 h1, body.mr-2026 h2, body.mr-2026 h3, body.mr-2026 h4 {
  font-family: var(--serif); font-weight: 400; color: var(--ink); padding: 0; line-height: 1.15; letter-spacing: -.01em;
}
body.mr-2026 p { padding: 0; }
body.mr-2026 :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

body.mr-2026 .mr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.mr-2026 .mr-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
body.mr-2026 .mr-skip:focus { top: 12px; }
body.mr-2026 .mr-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
body.mr-2026 .mr-narrow { max-width: 860px; }
body.mr-2026 .mr-hand { font-family: var(--hand); font-size: 1.6em; line-height: 1; color: var(--accent-2); }
body.mr-2026 .mr-sign { font-family: var(--hand); font-size: 1.5em; line-height: 1; color: var(--ink); }

/* ---------- painikkeet ja linkit ---------- */
body.mr-2026 .mr-btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.3em; border-radius: 999px;
  border: 1px solid var(--ink); font-weight: 500; font-size: 15px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s;
}
body.mr-2026 .mr-btn:hover { background: var(--ink); color: var(--paper); }
body.mr-2026 .mr-btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
body.mr-2026 .mr-btn-solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
body.mr-2026 .mr-link { font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
body.mr-2026 .mr-link:hover { color: var(--accent-2); }

/* ---------- ylätunniste ---------- */
body.mr-2026 .mr-hdr {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 32px; background: rgba(246, 241, 231, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
body.mr-2026 .mr-logo { display: inline-flex; align-items: flex-end; gap: .04em; font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -.02em; line-height: 1; }
/* 4 = lenkin reitti: piirtyy esiin, kun sivu latautuu, ja uudelleen, kun hiiri on logon päällä */
body.mr-2026 .mr-logo-mark { height: 1.02em; width: auto; overflow: visible; margin-bottom: -.03em; flex: none; }
body.mr-2026 .mr-logo-mark path { fill: none; stroke: var(--accent); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
body.mr-2026 .mr-logo-mark circle { fill: var(--accent); }
body.mr-2026 .mr-hdr .mr-logo-mark path { animation: mr-draw 1.5s .25s cubic-bezier(.5, 0, .3, 1) both; }
body.mr-2026 .mr-hdr .mr-logo-mark circle { animation: mr-pop .4s both; }
body.mr-2026 .mr-logo:hover .mr-logo-mark path { animation: mr-draw-again 1.1s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes mr-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mr-draw-again { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mr-pop { from { scale: 0; } to { scale: 1; } }
body.mr-2026 .mr-logo-mark circle { transform-box: fill-box; transform-origin: center; }
body.mr-2026 .mr-nav { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
body.mr-2026 .mr-nav i { font-style: normal; opacity: .45; }
body.mr-2026 .mr-nav a { padding: 4px 2px; border-bottom: 1px solid transparent; }
body.mr-2026 .mr-nav a:hover, body.mr-2026 .mr-nav a[aria-current] { border-color: currentColor; }

/* Etusivulla ylätunniste on pöydän päällä */
body.mr-2026.mr-has-desk .mr-hdr {
  position: absolute; left: 0; right: 0; top: 0; background: none; backdrop-filter: none; border: 0;
  padding: clamp(14px, 1.6vw, 26px) clamp(16px, 2.4vw, 38px);
}
body.mr-2026.mr-has-desk .mr-logo { color: #fff; font-size: clamp(22px, 2vw, 32px); text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
body.mr-2026.mr-has-desk .mr-logo-mark { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45)); }
body.mr-2026.mr-has-desk .mr-nav {
  background: rgba(250, 246, 238, .94); color: var(--ink); padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
}

/* =========================================================================
   Peten pöytä
   ========================================================================= */
body.mr-2026 .mr-desk {
  position: relative; width: 100%; aspect-ratio: var(--ratio); max-height: 100svh; min-height: 420px;
  overflow: hidden; background: var(--desk); color: #fff; isolation: isolate;
}
body.mr-2026 .mr-desk::before, body.mr-2026 .mr-desk::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none;
}
body.mr-2026 .mr-desk::before { top: 0; height: 18%; background: linear-gradient(rgba(12, 18, 13, .3), transparent); }
body.mr-2026 .mr-desk::after { bottom: 0; height: 22%; background: linear-gradient(transparent, rgba(12, 18, 13, .58)); }
body.mr-2026 .mr-desk-scroll { position: absolute; inset: 0; overflow: hidden; }
body.mr-2026 .mr-stage {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: var(--ratio); container-type: inline-size;
}
body.mr-2026 .mr-stage picture, body.mr-2026 .mr-stage-img { position: absolute; inset: 0; width: 100%; height: 100%; }
body.mr-2026 .mr-stage-img { object-fit: cover; }

/* Lehtien varjot: sumeita läikkiä, jotka huojuvat hitaasti */
body.mr-2026 .mr-leaves { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5; z-index: 1; }
body.mr-2026 .mr-leaves i {
  position: absolute; border-radius: 50%; background: rgba(28, 20, 8, .55); filter: blur(1.4cqw);
  animation: mr-sway 14s ease-in-out infinite alternate; transform-origin: 0 0;
}
body.mr-2026 .mr-leaves i:nth-child(1) { left: 6%; top: -4%; width: 14%; height: 9%; transform: rotate(-24deg); }
body.mr-2026 .mr-leaves i:nth-child(2) { left: 22%; top: 3%; width: 9%; height: 5%; transform: rotate(18deg); animation-duration: 17s; animation-delay: -4s; }
body.mr-2026 .mr-leaves i:nth-child(3) { left: 34%; top: -3%; width: 12%; height: 7%; transform: rotate(-8deg); animation-duration: 19s; animation-delay: -9s; }
body.mr-2026 .mr-leaves i:nth-child(4) { left: 48%; top: 6%; width: 7%; height: 4%; transform: rotate(30deg); animation-duration: 15s; animation-delay: -2s; }
body.mr-2026 .mr-leaves i:nth-child(5) { left: 13%; top: 14%; width: 8%; height: 4.5%; transform: rotate(-36deg); animation-duration: 21s; animation-delay: -12s; }
@keyframes mr-sway {
  0%   { translate: 0 0; scale: 1; }
  50%  { translate: .5cqw .35cqw; scale: 1.04 .96; }
  100% { translate: -.3cqw .6cqw; scale: .97 1.03; }
}

/* Kahvin höyry */
body.mr-2026 .mr-steam { position: absolute; left: 55.6%; top: 1.5%; width: 5.4%; height: auto; z-index: 2; overflow: visible; pointer-events: none; }
body.mr-2026 .mr-steam path {
  fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3.4; stroke-linecap: round; filter: blur(2.4px);
  stroke-dasharray: 26 140; animation: mr-steam 5.5s linear infinite; opacity: 0;
}
body.mr-2026 .mr-steam path:nth-child(2) { animation-delay: -1.9s; animation-duration: 6.4s; }
body.mr-2026 .mr-steam path:nth-child(3) { animation-delay: -3.6s; animation-duration: 7.2s; }
@keyframes mr-steam {
  0%   { stroke-dashoffset: 0; opacity: 0; }
  20%  { opacity: .9; }
  70%  { opacity: .45; }
  100% { stroke-dashoffset: -150; opacity: 0; }
}

/* Läppärin kursori */
body.mr-2026 .mr-cursor {
  position: absolute; left: 93.15%; top: 16.6%; width: .2cqw; height: 1.55cqw; background: #6be08d; border-radius: 1px;
  transform: rotate(12deg); box-shadow: 0 0 .5cqw rgba(107, 224, 141, .6); animation: mr-blink 1.1s steps(1) infinite; z-index: 2;
}
@keyframes mr-blink { 50% { opacity: 0; } }

/* Lenkin reitti piirtyy puhelimeen, juoksija kulkee perässä; Raspberry Pin ledit */
body.mr-2026 .mr-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
body.mr-2026 .mr-route {
  fill: none; stroke: #ff7a3d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 2px rgba(255, 140, 70, .9));
}
body.mr-2026 .mr-runner { fill: #fff; stroke: #ff6a2b; stroke-width: 1.6; filter: drop-shadow(0 0 3px rgba(255, 120, 50, .9)); }
body.mr-2026 .mr-glints { mix-blend-mode: screen; opacity: .55; }
body.mr-2026 .mr-led { filter: blur(.6px) drop-shadow(0 0 3px currentColor); }
body.mr-2026 .mr-led-pwr { fill: #ff4b3a; color: #ff4b3a; opacity: .85; animation: mr-led-pwr 9s ease-in-out infinite; }
body.mr-2026 .mr-led-act { fill: #5cff8a; color: #5cff8a; opacity: 0; animation: mr-led-act 4.3s steps(1) infinite; }
@keyframes mr-led-pwr { 0%, 100% { opacity: .85; } 48% { opacity: .85; } 50% { opacity: .35; } 53% { opacity: .85; } }
@keyframes mr-led-act {
  0% { opacity: 0; } 6% { opacity: 1; } 9% { opacity: 0; } 12% { opacity: 1; } 14% { opacity: 0; }
  41% { opacity: 1; } 43% { opacity: 0; } 62% { opacity: 1; } 63% { opacity: 0; } 66% { opacity: 1; } 71% { opacity: 0; }
  88% { opacity: 1; } 89% { opacity: 0; }
}

/* Valokeila: kun hiiri on lapun tai muistilapun päällä, muu pöytä tummuu */
body.mr-2026 .mr-dim {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), transparent 0, transparent calc(var(--hr, 10) * .55cqw), rgba(8, 13, 9, .55) calc(var(--hr, 10) * 1.25cqw));
}
body.mr-2026 .mr-stage.mr-lit .mr-dim { opacity: 1; }

/* Muistilappu → Kuka olen */
body.mr-2026 .mr-note { position: absolute; left: 38.6%; top: 36%; width: 25.4%; height: 43%; z-index: 4; border-radius: .4cqw; }
body.mr-2026 .mr-note::after {
  content: "Kuka olen →"; position: absolute; right: 6%; bottom: 7%; font: 500 max(12px, .85cqw)/1 var(--sans); color: var(--ink);
  background: rgba(255, 255, 255, .85); padding: .5em .8em; border-radius: 999px; opacity: 0; translate: 0 6px; transition: opacity .25s, translate .25s;
}
body.mr-2026 .mr-note:hover::after, body.mr-2026 .mr-note:focus-visible::after { opacity: 1; translate: 0 0; }

/* Linkkilaput esineissä */
body.mr-2026 .mr-spot { position: absolute; inset: 0; z-index: 5; pointer-events: none; color: var(--ink); }
body.mr-2026 .mr-spot-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
body.mr-2026 .mr-spot-line line { stroke: rgba(255, 255, 255, .9); stroke-width: max(1.2px, .1cqw); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
body.mr-2026 .mr-spot-dot {
  position: absolute; left: var(--px); top: var(--py); width: max(9px, .75cqw); aspect-ratio: 1; border-radius: 50%;
  background: #fff; translate: -50% -50%; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6), 0 1px 4px rgba(0, 0, 0, .35);
  animation: mr-pulse 3.2s ease-out infinite;
}
@keyframes mr-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55), 0 1px 4px rgba(0, 0, 0, .35); } 70%, 100% { box-shadow: 0 0 0 1.1cqw rgba(255, 255, 255, 0), 0 1px 4px rgba(0, 0, 0, .35); } }
body.mr-2026 .mr-spot-tag {
  position: absolute; left: var(--lx); top: var(--ly); translate: 0 -50%; pointer-events: auto;
  display: inline-flex; align-items: center; gap: .55em; white-space: nowrap;
  font: 500 clamp(12px, 1cqw, 19px)/1 var(--sans); padding: .55em 1.05em .55em .5em; border-radius: 999px;
  background: rgba(250, 246, 238, .96); box-shadow: 0 .3cqw 1.2cqw rgba(0, 0, 0, .3); transition: translate .2s, box-shadow .2s, background .2s;
}
body.mr-2026 .mr-spot-vasen .mr-spot-tag { left: auto; right: calc(100% - var(--lx)); }
body.mr-2026 .mr-spot-tag b {
  display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 500; font-size: 1.1em; line-height: 1; transition: rotate .3s;
}
body.mr-2026 .mr-spot:hover .mr-spot-tag, body.mr-2026 .mr-spot:focus-visible .mr-spot-tag { translate: 0 calc(-50% - 2px); background: #fff; box-shadow: 0 .5cqw 1.6cqw rgba(0, 0, 0, .38); }
body.mr-2026 .mr-spot:hover .mr-spot-tag b, body.mr-2026 .mr-spot:focus-visible .mr-spot-tag b { rotate: 90deg; }
body.mr-2026 .mr-spot:focus-visible { outline: none; }
body.mr-2026 .mr-spot:focus-visible .mr-spot-tag { outline: 2px solid #fff; outline-offset: 3px; }

/* Pöydän alareuna */
body.mr-2026 .mr-desk-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  padding: 0 clamp(16px, 2.4vw, 38px) clamp(16px, 2.2vw, 32px); font-size: clamp(13px, .95vw, 16px); text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
body.mr-2026 .mr-today { margin: 0; color: rgba(255, 255, 255, .88); }
body.mr-2026 .mr-today a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .5); }
body.mr-2026 .mr-down { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
body.mr-2026 .mr-down svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: mr-bob 2.4s ease-in-out infinite; }
@keyframes mr-bob { 50% { translate: 0 5px; } }
body.mr-2026 .mr-swipe { display: none; }

/* Aihesirut: näkyvät puhelimessa pöydän alla */
body.mr-2026 .mr-chips { display: none; }

/* =========================================================================
   Osiot pöydän alla
   ========================================================================= */
body.mr-2026 .mr-sec { padding: clamp(64px, 8vw, 120px) 0; }
body.mr-2026 .mr-sec + .mr-sec { padding-top: 0; }
body.mr-2026 .mr-rule { display: flex; align-items: baseline; gap: 24px; margin-bottom: 40px; }
body.mr-2026 .mr-rule h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 0; white-space: nowrap; }
body.mr-2026 .mr-rule::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--line); align-self: center; }
body.mr-2026 .mr-rule a { order: 2; font-size: 15px; font-weight: 500; white-space: nowrap; border-bottom: 1px solid currentColor; }
body.mr-2026 .mr-rule a:hover { color: var(--accent-2); }
body.mr-2026 .mr-empty { color: var(--muted); font-style: italic; }

/* Juttukortti */
body.mr-2026 .mr-card-link { display: flex; flex-direction: column; gap: 10px; height: 100%; }
body.mr-2026 .mr-card-img {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--paper-2); margin-bottom: 6px;
}
body.mr-2026 .mr-card-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
body.mr-2026 .mr-card-link:hover .mr-card-img img { scale: 1.04; }
body.mr-2026 .mr-card-paper {
  position: absolute; inset: 14% 16%; display: grid; place-items: center; text-align: center; padding: 8%;
  background: var(--card); box-shadow: 0 10px 24px rgba(60, 40, 20, .16); rotate: -2deg;
  font-family: var(--hand); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; color: var(--ink);
}
body.mr-2026 .mr-card-link:hover .mr-card-paper { rotate: 0deg; transition: rotate .3s; }
body.mr-2026 .mr-wip-badge {
  position: absolute; left: 12px; top: 12px; font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 6px 9px; border-radius: 4px;
}
body.mr-2026 .mr-card-meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
body.mr-2026 .mr-card-meta b { color: var(--accent-2); font-weight: 600; }
body.mr-2026 .mr-card-title { font-family: var(--serif); font-size: 22px; line-height: 1.22; transition: color .2s; }
body.mr-2026 .mr-card-link:hover .mr-card-title { color: var(--accent-2); }
body.mr-2026 .mr-card-text { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* Uusimmat: iso + pienet */
body.mr-2026 .mr-latest-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 40px 32px; }
body.mr-2026 .mr-latest-grid .mr-card-big { grid-row: span 2; }
body.mr-2026 .mr-latest-n2 { grid-template-columns: 1.35fr 1fr; }
body.mr-2026 .mr-latest-n2 .mr-card:not(.mr-card-big) .mr-card-text { display: block; }
body.mr-2026 .mr-latest-n1 { grid-template-columns: minmax(0, 760px); }
body.mr-2026 .mr-latest-grid .mr-card-big .mr-card-img { aspect-ratio: 4 / 4.1; }
body.mr-2026 .mr-latest-grid .mr-card-big .mr-card-title { font-size: clamp(26px, 2.4vw, 34px); }
body.mr-2026 .mr-latest-grid .mr-card:not(.mr-card-big) .mr-card-text { display: none; }
body.mr-2026 .mr-latest-grid .mr-card:not(.mr-card-big) .mr-card-img { aspect-ratio: 16 / 10; }
body.mr-2026 .mr-latest-grid .mr-card:not(.mr-card-big) .mr-card-paper { font-size: 22px; }

/* Aloita näistä */
body.mr-2026 .mr-start { background: var(--paper-2); padding: clamp(64px, 8vw, 120px) 0 !important; }
body.mr-2026 .mr-start .mr-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px 80px; align-items: start; }
body.mr-2026 .mr-start-head { position: sticky; top: 110px; }
body.mr-2026 .mr-start-head .mr-hand { font-size: 28px; }
body.mr-2026 .mr-start-head h2 { font-size: clamp(34px, 3.6vw, 52px); margin: 10px 0 16px; }
body.mr-2026 .mr-start-head p { color: var(--ink-2); max-width: 32ch; }
body.mr-2026 .mr-start-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
body.mr-2026 .mr-start-list li { border-top: 1px solid var(--line); }
body.mr-2026 .mr-start-list li:last-child { border-bottom: 1px solid var(--line); }
body.mr-2026 .mr-start-list a { display: grid; grid-template-columns: 64px 1fr 150px; gap: 24px; align-items: center; padding: 28px 0; }
body.mr-2026 .mr-start-no { font-family: var(--serif); font-size: 40px; color: var(--accent); line-height: 1; font-weight: 300; }
body.mr-2026 .mr-start-body { display: flex; flex-direction: column; gap: 6px; }
body.mr-2026 .mr-start-body small { font-size: 13px; color: var(--muted); }
body.mr-2026 .mr-start-body b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; transition: color .2s; }
body.mr-2026 .mr-start-body > span { color: var(--ink-2); font-size: 15px; }
body.mr-2026 .mr-start-list a:hover b { color: var(--accent-2); }
body.mr-2026 .mr-start-img { aspect-ratio: 1; overflow: hidden; border-radius: 6px; rotate: 2deg; box-shadow: 0 8px 20px rgba(60, 40, 20, .18); border: 5px solid #fff; }
body.mr-2026 .mr-start-list li:nth-child(even) .mr-start-img { rotate: -2deg; }
body.mr-2026 .mr-start-img img { width: 100%; height: 100%; object-fit: cover; }
body.mr-2026 .mr-start + .mr-sec { padding-top: clamp(64px, 8vw, 120px); }

/* Neljä aihetta */
body.mr-2026 .mr-topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
body.mr-2026 .mr-topic { display: flex; flex-direction: column; background: var(--card); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); transition: translate .25s, box-shadow .25s; }
body.mr-2026 .mr-topic:hover { translate: 0 -4px; box-shadow: 0 16px 34px rgba(60, 40, 20, .14); }
body.mr-2026 .mr-topic-img { aspect-ratio: 5 / 4; overflow: hidden; }
body.mr-2026 .mr-topic-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
body.mr-2026 .mr-topic:hover .mr-topic-img img { scale: 1.05; }
body.mr-2026 .mr-topic-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; flex: 1; }
body.mr-2026 .mr-topic-body b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; display: flex; align-items: center; gap: 10px; }
body.mr-2026 .mr-topic-body b::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 500 16px/1 var(--sans); flex: none; }
body.mr-2026 .mr-topic-body > span { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
body.mr-2026 .mr-topic-body small { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); }

/* Työn alla */
body.mr-2026 .mr-wip-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
body.mr-2026 .mr-wip-head { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
body.mr-2026 .mr-wip-head img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; rotate: -3deg; border: 6px solid #fff; box-shadow: 0 10px 24px rgba(60, 40, 20, .18); }
body.mr-2026 .mr-wip-head h2 { font-size: clamp(30px, 3vw, 42px); margin: 0 0 10px; }
body.mr-2026 .mr-wip-head p { color: var(--ink-2); margin: 0 0 16px; }
body.mr-2026 .mr-wip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
body.mr-2026 .mr-wip-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; padding: 18px 22px; background: var(--card);
  border: 1px dashed rgba(32, 27, 21, .28); border-radius: 8px; transition: border-color .2s, background .2s;
}
body.mr-2026 .mr-wip-list a:hover { border-color: var(--accent); background: #fff; }
body.mr-2026 .mr-wip-list small { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); font-weight: 600; }
body.mr-2026 .mr-wip-list b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; }
body.mr-2026 .mr-wip-list span { font-size: 13px; color: var(--muted); align-self: end; white-space: nowrap; }
body.mr-2026 .mr-wip-empty { padding: 26px; border: 1px dashed rgba(32, 27, 21, .28); border-radius: 8px; color: var(--ink-2); }
body.mr-2026 .mr-wip-empty .mr-hand { display: block; margin-bottom: 6px; font-size: 28px; }

/* Pete */
body.mr-2026 .mr-pete-in { display: flex; justify-content: center; gap: 56px; align-items: center; }
body.mr-2026 .mr-pete-img { width: 280px; aspect-ratio: 4 / 5; object-fit: cover; border: 8px solid #fff; rotate: -3deg; box-shadow: 0 14px 30px rgba(60, 40, 20, .2); }
body.mr-2026 .mr-pete-note {
  position: relative; max-width: 680px; background: var(--card); padding: clamp(32px, 4vw, 56px); rotate: .6deg;
  box-shadow: 0 18px 40px rgba(60, 40, 20, .13), 0 2px 4px rgba(60, 40, 20, .06);
}
body.mr-2026 .mr-pete-note::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; translate: -50% 0; rotate: -3deg;
  /* Maalarinteippi: läpikuultava, hienoa pitkittäistä kuitua, revityt sahalaitaiset päät */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%, rgba(120, 95, 50, .06)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 1px, rgba(0, 0, 0, .018) 1px 3px),
    rgba(236, 222, 186, .68);
  backdrop-filter: blur(.6px);
  clip-path: polygon(0 4%, 3% 0, 6% 9%, 2% 22%, 5% 37%, 1% 52%, 4% 68%, 0 83%, 3% 100%, 97% 96%, 100% 86%, 96% 72%, 99% 57%, 95% 41%, 98% 26%, 95% 12%, 99% 2%);
  filter: drop-shadow(0 1px 1px rgba(60, 40, 15, .12));
}
body.mr-2026 .mr-pete-note small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
body.mr-2026 .mr-pete-note h2 { font-size: clamp(26px, 2.8vw, 38px); margin: 12px 0 18px; }
body.mr-2026 .mr-pete-note p { color: var(--ink-2); }
body.mr-2026 .mr-pete-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
body.mr-2026 .mr-pete-foot .mr-sign { font-size: 40px; }

/* =========================================================================
   Alasivut
   ========================================================================= */
body.mr-2026 .mr-page-head { padding: clamp(56px, 7vw, 110px) 0 clamp(32px, 4vw, 56px); }
body.mr-2026 .mr-page-head h1 { font-size: clamp(40px, 5.4vw, 76px); margin: 10px 0 18px; max-width: 16ch; }
body.mr-2026 .mr-page-head p { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 58ch; }
body.mr-2026 .mr-page-head + .mr-sec { padding-top: 0; }
body.mr-2026 .mr-404 { min-height: 60vh; }
body.mr-2026 .mr-404 .mr-btn { margin: 10px 10px 0 0; }

/* Kaikki jutut */
body.mr-2026 .mr-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
body.mr-2026 .mr-filter button {
  font: 500 15px/1 var(--sans); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
body.mr-2026 .mr-filter button:hover { border-color: var(--ink); }
body.mr-2026 .mr-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.mr-2026 .mr-filter .mr-chip-wip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
body.mr-2026 .mr-filter-desc { color: var(--muted); margin: 0 0 40px; min-height: 1.6em; }
body.mr-2026 .mr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
body.mr-2026 .mr-card[hidden] { display: none; }

/* Kuka olen: avaus ja muotokuva vedoksena */
body.mr-2026 .mr-kuka { padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
body.mr-2026 .mr-kuka-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
body.mr-2026 .mr-kuka-text h1 { font-size: clamp(44px, 6vw, 84px); margin: 12px 0 22px; }
body.mr-2026 .mr-kuka-text .mr-hand { font-size: 30px; }
body.mr-2026 .mr-kuka-text p { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; color: var(--ink-2); max-width: 30ch; }

/* Valokuvavedos: valkoinen reunus, leveämpi alareuna käsialalle, hieman vinossa */
body.mr-2026 .mr-print {
  position: relative; margin: 0; background: #fffdf8; padding: 10px 10px 0; box-shadow: 0 1px 2px rgba(40, 25, 10, .12), 0 16px 34px rgba(40, 25, 10, .18);
  rotate: var(--rot, -2deg); transition: rotate .4s cubic-bezier(.2, .7, .2, 1), translate .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
body.mr-2026 .mr-print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
body.mr-2026 .mr-print figcaption { font-family: var(--hand); font-size: 22px; line-height: 1.15; color: var(--ink); text-align: center; padding: 12px 8px 14px; min-height: 52px; display: grid; place-items: center; }
body.mr-2026 .mr-print:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 0 1px 2px rgba(40, 25, 10, .12), 0 24px 44px rgba(40, 25, 10, .22); z-index: 2; }
body.mr-2026 .mr-print-big { --rot: 2.5deg; padding: 14px 14px 0; max-width: 440px; justify-self: center; }
body.mr-2026 .mr-print-big figcaption { font-size: 25px; }
/* Ilman kuvatekstiä alareuna jää leveäksi kuin oikeassa vedoksessa */
body.mr-2026 .mr-print-blank { padding-bottom: 54px; }
body.mr-2026 .mr-tape {
  position: absolute; top: -12px; left: 50%; width: 120px; height: 36px; translate: -50% 0; rotate: -5deg; z-index: 1;
  /* Maalarinteippi: läpikuultava, hienoa pitkittäistä kuitua, revityt sahalaitaiset päät */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%, rgba(120, 95, 50, .06)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 1px, rgba(0, 0, 0, .018) 1px 3px),
    rgba(236, 222, 186, .68);
  backdrop-filter: blur(.6px);
  clip-path: polygon(0 4%, 3% 0, 6% 9%, 2% 22%, 5% 37%, 1% 52%, 4% 68%, 0 83%, 3% 100%, 97% 96%, 100% 86%, 96% 72%, 99% 57%, 95% 41%, 98% 26%, 95% 12%, 99% 2%);
  filter: drop-shadow(0 1px 1px rgba(60, 40, 15, .12));
}

/* Pöydälle jääneet kuvat */
body.mr-2026 .mr-prints { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 96px); }
body.mr-2026 .mr-prints-title { text-align: center; font-size: 32px; margin: 0 0 32px; }
body.mr-2026 .mr-prints-row { display: flex; justify-content: center; align-items: flex-start; gap: 0; }
body.mr-2026 .mr-prints-row .mr-print { width: min(30%, 300px); margin: 0 6px; }
body.mr-2026 .mr-prints-row .mr-print:nth-child(1) { --rot: -4deg; margin-top: 18px; }
body.mr-2026 .mr-prints-row .mr-print:nth-child(2) { --rot: 1.5deg; z-index: 1; }
body.mr-2026 .mr-prints-row .mr-print:nth-child(3) { --rot: -1.5deg; margin-top: 30px; }
body.mr-2026 .mr-prints-row .mr-print:nth-child(4) { --rot: 3deg; margin-top: 8px; }
/* Esiin liukuminen ei saa kumota kiertoa */
body.mr-2026 .mr-print.mr-rv { translate: 0 22px; }
body.mr-2026 .mr-print.mr-rv.in { translate: 0 0; }
body.mr-2026 .mr-print.mr-rv.in:hover { translate: 0 -6px; }

/* Kasa: vedokset sekaisin pöydällä. Paikat tulevat näkymästä (--x, --y, --rot, --z). */
body.mr-2026 .mr-pile { position: relative; container-type: inline-size; height: 0; padding-bottom: 51%; max-width: 1120px; margin: 0 auto; }
body.mr-2026 .mr-pile .mr-print {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1cqw); width: 23cqw; z-index: var(--z); margin: 0; cursor: pointer;
  padding: .9cqw .9cqw 0; outline: none;
}
body.mr-2026 .mr-pile .mr-print figcaption { font-size: clamp(15px, 1.75cqw, 22px); padding: 1cqw .6cqw 1.2cqw; min-height: 0; }
body.mr-2026 .mr-pile .mr-print:hover, body.mr-2026 .mr-pile .mr-print:focus-visible, body.mr-2026 .mr-pile .mr-print.mr-up {
  z-index: 20; rotate: 0deg; scale: 1.08; box-shadow: 0 1px 2px rgba(40, 25, 10, .12), 0 30px 60px rgba(40, 25, 10, .3);
}
body.mr-2026 .mr-pile .mr-print { transition: rotate .45s cubic-bezier(.2, .7, .2, 1), scale .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, opacity .8s, translate .8s; }
body.mr-2026 .mr-pile-note {
  position: absolute; left: 37%; top: 37cqw; width: 19cqw; z-index: 15; margin: 0; rotate: -3deg;
  background: #fffaf0; padding: 2.2cqw 1.8cqw 1.8cqw; box-shadow: 0 10px 26px rgba(40, 25, 10, .2);
  font-family: var(--hand); font-size: clamp(18px, 2.2cqw, 28px); line-height: 1.15; color: var(--ink); text-align: center;
}
body.mr-2026 .mr-pile-note .mr-tape { width: 9cqw; height: 2.6cqw; top: -1.2cqw; }

/* Prosa (Kuka olen, Yhteys): Divin tekstimoduuli luokalla mr-prose */
body.mr-2026 .mr-prose { max-width: 720px; margin: 0 auto; padding: 0 32px; }
body.mr-2026 .mr-prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 56px 0 16px; }
body.mr-2026 .mr-prose p { margin: 0 0 1.1em; color: var(--ink-2); font-size: 18px; line-height: 1.75; }
body.mr-2026 .mr-prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
body.mr-2026 .mr-prose-first p:first-child { font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.45; color: var(--ink); }

/* Lomake */
body.mr-2026 .mr-form, body.mr-2026 .mr-form-ok { max-width: 720px; margin: 0 auto; padding: 0 32px; display: grid; gap: 18px; }
body.mr-2026 .mr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
body.mr-2026 .mr-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
body.mr-2026 .mr-form input, body.mr-2026 .mr-form select, body.mr-2026 .mr-form textarea {
  font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--card); border: 1px solid rgba(32, 27, 21, .22); border-radius: 8px; padding: 12px 14px; width: 100%;
}
body.mr-2026 .mr-form input:focus, body.mr-2026 .mr-form select:focus, body.mr-2026 .mr-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(226, 89, 42, .18); }
body.mr-2026 .mr-form button { justify-self: start; cursor: pointer; font-family: var(--sans); }
body.mr-2026 .mr-form button[disabled] { opacity: .6; cursor: wait; }
body.mr-2026 .mr-form-note { font-size: 14px; color: var(--muted); margin: 0; }
body.mr-2026 .mr-form-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
body.mr-2026 .mr-form-err { color: var(--accent-2); font-weight: 500; margin: 0; }
body.mr-2026 .mr-hp { position: absolute; left: -9999px; }
body.mr-2026 .mr-form-ok { text-align: center; padding: 40px 32px; }
body.mr-2026 .mr-form-ok .mr-hand { font-size: 56px; }

/* =========================================================================
   Kirjoitus
   ========================================================================= */
body.mr-2026 .mr-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
body.mr-2026 .mr-progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 0; transform: scaleX(0); }
body.mr-2026 .mr-ahero { padding: clamp(48px, 6vw, 96px) 0 0; }
body.mr-2026 .mr-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
body.mr-2026 .mr-crumbs a:hover { color: var(--accent-2); }
body.mr-2026 .mr-crumbs .mr-wip-badge { position: static; margin-left: 6px; color: #fff; }
body.mr-2026 .mr-ahero h1 { font-size: clamp(36px, 4.8vw, 64px); margin: 18px 0 22px; }
body.mr-2026 .mr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
body.mr-2026 .mr-meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
body.mr-2026 .mr-meta .mr-sign { font-size: 28px; color: var(--ink); }
body.mr-2026 .mr-acover { margin: clamp(36px, 5vw, 64px) auto 0; }
body.mr-2026 .mr-acover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 8px; }
body.mr-2026 .mr-art { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; padding: clamp(40px, 5vw, 72px) 0 0; }
body.mr-2026 .mr-art.mr-no-toc { grid-template-columns: minmax(0, 720px); }
body.mr-2026 .mr-no-toc .mr-toc { display: none; }
body.mr-2026 .mr-toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 10px; font-size: 14px; }
body.mr-2026 .mr-toc small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
body.mr-2026 .mr-toc a { color: var(--ink-2); padding-left: 12px; border-left: 2px solid var(--line); line-height: 1.4; }
body.mr-2026 .mr-toc a.on, body.mr-2026 .mr-toc a:hover { color: var(--ink); border-color: var(--accent); }
body.mr-2026 .mr-body { font-size: 18px; line-height: 1.78; color: var(--ink-2); }
body.mr-2026 .mr-body > p:first-of-type { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 25px); line-height: 1.5; color: var(--ink); }
body.mr-2026 .mr-body h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 56px 0 16px; scroll-margin-top: 100px; }
body.mr-2026 .mr-body h3 { font-size: 23px; margin: 40px 0 12px; }
body.mr-2026 .mr-body p, body.mr-2026 .mr-body ul, body.mr-2026 .mr-body ol { margin: 0 0 1.15em; }
body.mr-2026 .mr-body ul, body.mr-2026 .mr-body ol { padding-left: 1.3em; }
body.mr-2026 .mr-body ul { list-style: disc outside; }
body.mr-2026 .mr-body ol { list-style: decimal outside; }
body.mr-2026 .mr-body li { margin-bottom: .4em; padding-left: .3em; }
body.mr-2026 .mr-body ul li::marker { color: var(--accent); font-size: 1.1em; }
body.mr-2026 .mr-body ol li::marker { color: var(--accent); font-family: var(--serif); }
body.mr-2026 .mr-body a:not(.mr-btn) { color: var(--accent-2); border-bottom: 1px solid rgba(194, 70, 27, .35); }
body.mr-2026 .mr-body figure { margin: 36px 0; }
body.mr-2026 .mr-body figure img { border-radius: 8px; width: auto; max-width: 100%; max-height: min(80vh, 760px); margin: 0 auto; }
body.mr-2026 .mr-body .mr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0; }
body.mr-2026 .mr-body figcaption { margin-top: 10px; text-align: center; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--muted); }
body.mr-2026 .mr-body .mr-pair figure { margin: 0; }
body.mr-2026 .mr-body .mr-pair img { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 5; object-fit: cover; }
body.mr-2026 .mr-body .mr-pair figcaption { text-align: left; }
/* Vaakakuvapari (esim. ennen ja jälkeen): kuvat omassa muodossaan, kapealla ruudulla allekkain */
body.mr-2026 .mr-body .mr-pair:has(.mr-wide) { align-items: start; }
body.mr-2026 .mr-body .mr-pair:has(.mr-wide) img { aspect-ratio: auto; height: auto; }
@media (max-width: 600px) { body.mr-2026 .mr-body .mr-pair:has(.mr-wide) { grid-template-columns: 1fr; gap: 22px; } }
body.mr-2026 .mr-body blockquote { margin: 40px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.45; color: var(--ink); font-style: italic; }
body.mr-2026 .mr-body blockquote p { margin: 0; }
body.mr-2026 .mr-body strong { color: var(--ink); }
body.mr-2026 .mr-body .mr-table { margin: 28px 0 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.mr-2026 .mr-body table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
body.mr-2026 .mr-body th, body.mr-2026 .mr-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
body.mr-2026 .mr-body th { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); white-space: nowrap; }
body.mr-2026 .mr-body td:first-child { color: var(--ink); font-weight: 500; }
body.mr-2026 .mr-post-btn { margin: 32px 0; }
body.mr-2026 .mr-endnote { margin-top: 56px; padding: 28px 30px; background: var(--card); border-radius: 8px; border: 1px solid var(--line); display: flex; gap: 24px; align-items: center; }
body.mr-2026 .mr-endnote .mr-sign { font-size: 38px; flex: none; }
body.mr-2026 .mr-endnote p { margin: 0; font-size: 16px; }
body.mr-2026 .mr-more { padding-top: clamp(72px, 8vw, 120px) !important; }
body.mr-2026 .mr-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* =========================================================================
   Alatunniste
   ========================================================================= */
body.mr-2026 .mr-footer { background: var(--desk); color: rgba(255, 255, 255, .75); padding: 72px 0 32px; font-size: 15px; }
body.mr-2026 .mr-footer .mr-logo { color: #fff; }
body.mr-2026 .mr-ft { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
body.mr-2026 .mr-ft-brand p { max-width: 36ch; margin-top: 16px; }
body.mr-2026 .mr-footer h2 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin: 6px 0 16px; }
body.mr-2026 .mr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.mr-2026 .mr-footer a:hover { color: #fff; }
body.mr-2026 .mr-ft-some a { display: inline-flex; align-items: center; gap: 10px; }
body.mr-2026 .mr-ft-some svg { width: 18px; height: 18px; flex: none; }
body.mr-2026 .mr-fb { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 13px; flex-wrap: wrap; }
body.mr-2026 .mr-fb .mr-hand { color: rgba(255, 255, 255, .6); font-size: 26px; }

/* ---------- esiin liukuminen ---------- */
body.mr-2026 .mr-rv { opacity: 0; translate: 0 22px; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1); }
body.mr-2026 .mr-rv.in, body.mr-2026.mr-no-js .mr-rv { opacity: 1; translate: 0 0; }

/* Divin editori: osat näkyvät valmiina (Divi piirtää moduulit uudelleen), eikä kiinteä
   ylätunniste peitä editorin kuvakkeita. Hallintapalkki siirtää ylätunnistetta alaspäin. */
body.mr-2026.mr-vb .mr-rv { opacity: 1 !important; translate: 0 0 !important; transition: none !important; }
body.mr-2026.mr-vb .mr-hdr { position: absolute; left: 0; right: 0; }
body.mr-2026.mr-vb .mr-desk { max-height: 900px; }
/* Editorissa osioille ja riveille väliä, jotta Divi erottaa osion, rivin ja moduulin
   toisistaan ja moduulin oma työkalurivi (ratas) tulee näkyviin. */
body.mr-2026.mr-vb .mr-main .et_pb_section { padding: 30px 0 4px !important; }
body.mr-2026.mr-vb .mr-main .et_pb_row { padding: 30px 0 4px !important; }
/* Moduulin työkalurivi erottumaan myös tumman kuvan päältä */
body.mr-2026 .et-vb-module-options { box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 2px 8px rgba(0, 0, 0, .45); }
body.mr-2026.admin-bar .mr-hdr { top: 32px; }
body.mr-2026.admin-bar.mr-has-desk .mr-hdr, body.mr-2026.admin-bar.mr-vb .mr-hdr { top: 0; }
@media (max-width: 782px) { body.mr-2026.admin-bar .mr-hdr { top: 46px; } }

/* Kirjoitus Divin editorissa: Divin moduulit uuden ilmeen typografialla.
   Moduulien omat fontti-, väri- ja taustaasetukset ohitetaan kuten valmiilla sivulla. */
body.mr-2026 .mr-body-divi .et_pb_section { padding: 0 !important; margin: 0 !important; background: none !important; }
body.mr-2026 .mr-body-divi .et_pb_row { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; display: block !important; }
body.mr-2026 .mr-body-divi .et_pb_column { width: 100% !important; margin: 0 !important; padding: 0 !important; background: none !important; }
body.mr-2026 .mr-main .mr-body-divi .et_pb_module { margin: 0 0 1.15em !important; min-height: 1.5em; }
body.mr-2026 .mr-body-divi .et_pb_text, body.mr-2026 .mr-body-divi .et_pb_text p, body.mr-2026 .mr-body-divi .et_pb_text li {
  font-family: var(--sans) !important; font-size: 18px !important; line-height: 1.78 !important; color: var(--ink-2) !important; font-weight: 400 !important; text-shadow: none !important;
}
body.mr-2026 .mr-body-divi .et_pb_text p { margin: 0 0 1.15em !important; padding: 0 !important; }
body.mr-2026 .mr-body-divi .et_pb_text :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--serif) !important; font-weight: 400 !important; color: var(--ink) !important; line-height: 1.2 !important; letter-spacing: -.01em; text-shadow: none !important; padding: 0 !important;
}
body.mr-2026 .mr-body-divi .et_pb_text :is(h1, h2) { font-size: clamp(26px, 2.4vw, 34px) !important; margin: 40px 0 14px !important; }
body.mr-2026 .mr-body-divi .et_pb_text :is(h3, h4, h5, h6) { font-size: 23px !important; margin: 32px 0 10px !important; }
body.mr-2026 .mr-body-divi .et_pb_text strong { color: var(--ink) !important; }
body.mr-2026 .mr-body-divi .et_pb_text a { color: var(--accent-2) !important; }
body.mr-2026 .mr-body-divi .et_pb_image img { border-radius: 8px; width: 100%; }
body.mr-2026 .mr-body-divi .et_pb_button {
  display: inline-flex !important; padding: .75em 1.3em !important; border-radius: 999px !important; border: 1px solid var(--accent) !important;
  background: var(--accent) !important; color: #fff !important; font: 500 15px/1.2 var(--sans) !important; letter-spacing: 0 !important;
}
body.mr-2026 .mr-body-divi .et_pb_button::after { display: none !important; }
@media (max-width: 600px) { body.mr-2026.admin-bar .mr-hdr { top: 0; } }

/* =========================================================================
   Divi-silta: nollataan Divin osioiden, rivien ja moduulien oletukset
   ========================================================================= */
body.mr-2026 #page-container { padding-top: 0 !important; }
body.mr-2026 .mr-main .et_pb_section,
body.mr-2026 .mr-main .et_pb_row,
body.mr-2026 .mr-main .et_pb_column,
body.mr-2026 .mr-main .et_pb_module {
  padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; background-color: transparent !important;
}
body.mr-2026 .mr-main .et_pb_row::after { display: none; }
body.mr-2026 .mr-main .et_pb_text { font-size: inherit; line-height: inherit; color: inherit; }
body.mr-2026 .mr-main .et_pb_section.mr-sec-pad { padding: 0 0 clamp(56px, 7vw, 100px) !important; }
body.mr-2026 .mr-main .et_pb_module.mr-prose { max-width: 720px !important; margin: 0 auto !important; padding: 0 32px !important; }
body.mr-2026 .mr-all { padding-top: 0 !important; }
body.mr-2026 .mr-form-ok[hidden], body.mr-2026 .mr-form-err[hidden], body.mr-2026 .mr-form[hidden] { display: none !important; }
body.mr-2026 .entry-content > p:empty { display: none; }

/* =========================================================================
   Responsiivisuus
   ========================================================================= */
@media (max-width: 1100px) {
  body.mr-2026 .mr-topics-grid { grid-template-columns: repeat(2, 1fr); }
  body.mr-2026 .mr-latest-grid { grid-template-columns: 1fr 1fr; }
  body.mr-2026 .mr-latest-grid .mr-card-big { grid-column: 1 / -1; grid-row: auto; }
  body.mr-2026 .mr-latest-grid .mr-card-big .mr-card-img { aspect-ratio: 16 / 9; }
  body.mr-2026 .mr-start .mr-wrap { grid-template-columns: 1fr; }
  body.mr-2026 .mr-start-head { position: static; }
  body.mr-2026 .mr-wip-in { grid-template-columns: 1fr; }
  body.mr-2026 .mr-art { grid-template-columns: minmax(0, 720px); }
  body.mr-2026 .mr-toc { display: none; }
  body.mr-2026 .mr-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Puhelimessa pöytää voi liu'uttaa sivusuunnassa; linkit näkyvät myös siruina pöydän alla. */
@media (max-width: 760px) {
  body.mr-2026 { font-size: 16px; }
  body.mr-2026 .mr-wrap { padding: 0 16px; }
  body.mr-2026 .mr-hdr, body.mr-2026.mr-has-desk .mr-hdr { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  body.mr-2026 .mr-logo, body.mr-2026.mr-has-desk .mr-logo { font-size: 21px; }
  body.mr-2026 .mr-nav { gap: 11px; font-size: 13.5px; }
  body.mr-2026 .mr-nav i { display: none; }
  body.mr-2026.mr-has-desk .mr-nav { padding: 7px 13px; }
  body.mr-2026 .mr-desk { --dh: max(72svh, 440px); aspect-ratio: auto; height: var(--dh); min-height: 0; max-height: none; }
  body.mr-2026 .mr-desk-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body.mr-2026 .mr-desk-scroll::-webkit-scrollbar { display: none; }
  body.mr-2026 .mr-stage { position: relative; height: 100%; width: calc(var(--dh) * 1536 / 908); }
  body.mr-2026 .mr-spot-tag { font-size: 13px; }
  body.mr-2026 .mr-desk-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; }
  body.mr-2026 .mr-today { display: none; }
  body.mr-2026 .mr-down { flex-direction: column-reverse; gap: 4px; font-size: 14px; }
  body.mr-2026 .mr-swipe { display: block; font-size: 12px; color: rgba(255, 255, 255, .75); }
  body.mr-2026 .mr-note::after { display: none; }
  body.mr-2026 .mr-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; background: var(--desk); scrollbar-width: none; }
  body.mr-2026 .mr-chips::-webkit-scrollbar { display: none; }
  body.mr-2026 .mr-chips a {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 10px; border-radius: 999px;
    background: rgba(250, 246, 238, .96); font-size: 14px; font-weight: 500; color: var(--ink);
  }
  body.mr-2026 .mr-chips a::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; line-height: 1; }
  body.mr-2026 .mr-rule { flex-wrap: wrap; gap: 8px 16px; margin-bottom: 28px; }
  body.mr-2026 .mr-rule::after { display: none; }
  body.mr-2026 .mr-latest-grid, body.mr-2026 .mr-grid, body.mr-2026 .mr-grid-3, body.mr-2026 .mr-topics-grid { grid-template-columns: 1fr; gap: 36px; }
  body.mr-2026 .mr-latest-grid .mr-card:not(.mr-card-big) .mr-card-text { display: block; }
  body.mr-2026 .mr-start-list a { grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; }
  body.mr-2026 .mr-start-no { font-size: 30px; }
  body.mr-2026 .mr-start-img { display: none; }
  body.mr-2026 .mr-wip-head { grid-template-columns: 1fr; }
  body.mr-2026 .mr-wip-head img { width: 140px; }
  body.mr-2026 .mr-kuka-in { grid-template-columns: 1fr; gap: 36px; }
  body.mr-2026 .mr-print-big { max-width: 300px; }
  body.mr-2026 .mr-prints-row { flex-direction: column; align-items: center; gap: 18px; }
  body.mr-2026 .mr-prints-row .mr-print { width: 72%; max-width: 280px; margin: 0; }
  body.mr-2026 .mr-prints-row .mr-print:nth-child(odd) { align-self: flex-start; margin-left: 4%; }
  body.mr-2026 .mr-prints-row .mr-print:nth-child(even) { align-self: flex-end; margin-right: 4%; margin-top: -6px; }
  body.mr-2026 .mr-pile { height: auto; padding: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; container-type: normal; }
  body.mr-2026 .mr-pile .mr-print { position: relative; left: auto; top: auto; width: auto; padding: 7px 7px 0; margin-bottom: -18px; }
  body.mr-2026 .mr-pile .mr-print:nth-child(even) { margin-top: 34px; }
  body.mr-2026 .mr-pile .mr-print figcaption { font-size: 16px; padding: 8px 4px 10px; }
  body.mr-2026 .mr-pile-note { position: relative; left: auto; top: auto; width: 76%; grid-row: 1; grid-column: 1 / -1; justify-self: center; margin: 0 0 30px; padding: 22px 18px 18px; font-size: 24px; }
  body.mr-2026 .mr-pile-note .mr-tape { width: 90px; height: 24px; top: -12px; }
  body.mr-2026 .mr-pete-in { flex-direction: column; }
  body.mr-2026 .mr-pete-img { width: 200px; }
  body.mr-2026 .mr-pete-note { rotate: 0deg; }
  body.mr-2026 .mr-prose, body.mr-2026 .mr-main .et_pb_module.mr-prose, body.mr-2026 .mr-form, body.mr-2026 .mr-form-ok { padding: 0 16px !important; }
  body.mr-2026 .mr-form-row { grid-template-columns: 1fr; }
  body.mr-2026 .mr-endnote { flex-direction: column; align-items: flex-start; gap: 10px; }
  body.mr-2026 .mr-ft { grid-template-columns: 1fr 1fr; }
  body.mr-2026 .mr-ft-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  body.mr-2026 *, body.mr-2026 *::before, body.mr-2026 *::after { animation: none !important; transition: none !important; }
  body.mr-2026 .mr-steam, body.mr-2026 .mr-route, body.mr-2026 .mr-runner, body.mr-2026 .mr-lake { display: none; }
  body.mr-2026 .mr-rv { opacity: 1; translate: 0 0; }
}
