@import url("fonts.css");
:root {
  --paperi: #F5F7F6; --kortti: #FFFFFF; --muste: #17251E; --muste2: #3D4E45; --harmaa: #6B7A72;
  --jarvi: #2A6A8C; --jarvi2: #E4EFF5; --hilla: #E2862F; --hilla2: #FCEBD9; --jakala: #CBD7C6; --sammal: #4C7A57;
  --viiva: #DCE3DE; --r: 20px; --r2: 12px;
  --otsikko: "Zilla Slab", Georgia, serif; --leipa: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; --kasi: "Caveat", "Comic Sans MS", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paperi); color: var(--muste); font: 400 1.0625rem/1.65 var(--leipa); }
img { max-width: 100%; height: auto; }
a { color: var(--jarvi); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--muste); }
h1, h2, h3 { font-family: var(--otsikko); font-weight: 700; line-height: 1.18; color: var(--muste); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.85rem); margin: .2em 0 .35em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 2.1em 0 .6em; }
h3 { font-size: 1.18rem; margin: 1.6em 0 .4em; font-weight: 600; }
.ohita { position: absolute; left: -999px; } .ohita:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }

/* ---------- cover / header ---------- */
.kansi { position: relative; background: var(--muste); color: #EAF1EC; overflow: hidden; }
.kansi__korkeus { position: absolute; inset: auto 0 0 0; width: 100%; height: 70px; opacity: .35; }
.kansi__korkeus path { fill: none; stroke: var(--jakala); stroke-width: 1.2; }
.kansi__rivi { position: relative; max-width: 1180px; margin: 0 auto; padding: 14px 16px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.nimi { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.nimi__merkki svg { width: 38px; height: 38px; display: block; }
.nimi__merkki path { fill: var(--jakala); } .nimi__merkki circle { fill: var(--hilla); }
.nimi__teksti { display: flex; flex-direction: column; line-height: 1.05; }
.nimi__teksti b { font: 700 1.45rem/1 var(--otsikko); }
.nimi__teksti small { font: 500 1.1rem/1.1 var(--kasi); color: var(--hilla); }
.valikko-nappi { margin-left: auto; display: none; background: transparent; color: #fff; border: 1px solid #ffffff55; border-radius: 999px; padding: 6px 14px; font: 600 .95rem var(--leipa); }
.valikko { margin-left: auto; }
.valikko ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.valikko a { display: block; color: #EAF1EC; text-decoration: none; padding: 6px 11px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.valikko a:hover { background: #ffffff1a; color: #fff; }
.valikko__minä { border: 1px dashed var(--hilla); }
@media (max-width: 860px) {
  .valikko-nappi { display: inline-block; }
  .valikko { display: none; width: 100%; margin: 0; }
  .valikko.auki { display: block; }
  .valikko ul { flex-direction: column; }
}
.sivu { max-width: 1180px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------- article spread ---------- */
.aukeama__otsikko { position: relative; margin: 26px 0 0; padding: 26px 26px 20px 30px; background: var(--kortti); border-radius: var(--r) var(--r) 0 0; border: 1px solid var(--viiva); border-bottom: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, #EEF2EF 31px 32px); }
.valilehti { position: absolute; top: -14px; left: 26px; padding: 4px 14px 5px; border-radius: 10px 10px 0 0; font: 600 .82rem var(--leipa); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--sammal); }
.valilehti--polku, .valilehti--rinkka { background: var(--jarvi); } .valilehti--laavu, .valilehti--avain { background: #8A5A35; }
.valilehti--marja { background: #8E3B5A; } .valilehti--taivas { background: #2F4E7A; } .valilehti--lumi { background: #5B7C8F; } .valilehti--arkisto { background: var(--harmaa); }
.allekirjoitus { display: flex; align-items: center; gap: 10px; color: var(--muste2); font-size: .95rem; }
.allekirjoitus img { border-radius: 50%; border: 2px solid var(--hilla2); }
.allekirjoitus--arkisto { color: var(--harmaa); font-size: .92rem; }
.aukeama__sivut { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 0 34px; background: var(--kortti); border: 1px solid var(--viiva); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 6px 30px 34px; }
.aukeama--arkisto .aukeama__sivut { grid-template-columns: minmax(0, 1fr) 220px; }
.aukeama__reuna { border-left: 2px dotted var(--jakala); padding-left: 22px; }
.aukeama__reuna > * { position: sticky; top: 16px; }
@media (max-width: 920px) {
  .aukeama__sivut, .aukeama--arkisto .aukeama__sivut { grid-template-columns: 1fr; padding: 4px 16px 26px; }
  .aukeama__otsikko { padding: 24px 16px 16px; }
  .aukeama__reuna { border-left: 0; padding-left: 0; order: -1; }
  .aukeama__reuna > * { position: static; }
  .marginaali { display: none; }
}
.marginaali { font-size: .93rem; margin-top: 22px; }
.marginaali__h { font: 500 1.3rem var(--kasi); color: var(--hilla); margin: 0 0 6px; }
.marginaali ol { margin: 0; padding-left: 1.2em; } .marginaali li { margin: 4px 0; }
.polku ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 16px 0 0; padding: 0; font-size: .86rem; color: var(--harmaa); }
.polku li + li::before { content: "›"; margin-right: 6px; color: var(--jakala); }
.polku a { color: var(--harmaa); }
.teksti { max-width: 760px; }
.teksti p, .teksti ul, .teksti ol { margin: 0 0 1em; }
.teksti li { margin: .25em 0; }
.aukeama__loppu { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .aukeama__loppu { grid-template-columns: 1fr; } }

/* ---------- Polkuviitta (short answer) ---------- */
.viitta { position: relative; margin: 20px 0 26px; padding: 18px 22px 16px 26px; background: var(--hilla2); border-radius: 6px var(--r) var(--r) 6px; border-left: 8px solid var(--hilla); }
.viitta::after { content: ""; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); border: 18px solid transparent; border-left-color: var(--hilla2); border-right: 0; }
.viitta__kysymys { margin: 0 0 4px; font: 600 .8rem var(--leipa); letter-spacing: .08em; text-transform: uppercase; color: #9A5212; }
.viitta__vastaus { margin: 0; font-size: 1.12rem; line-height: 1.55; }
.viitta__pikat { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 0; padding: 0; }
.viitta__pikat li { margin: 0; background: #fff; border-radius: 999px; padding: 3px 12px; font-size: .9rem; }
.viitta__pikat b { font-weight: 600; color: var(--muste2); margin-right: 4px; }
@media (max-width: 600px) { .viitta::after { display: none; } .viitta { border-radius: 6px var(--r2) var(--r2) 6px; } }

/* ---------- Reittikortti ---------- */
.reittikortti { position: relative; margin: 26px 0; background: #FBFCFB; border: 1px solid var(--viiva); border-radius: var(--r); padding: 18px 20px 14px; }
.reittikortti::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; border-top: 3px dotted var(--paperi); }
.reittikortti__ylä { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.reittikortti__ylä p { margin: 0; font: 700 1.15rem var(--otsikko); }
.leima { display: inline-block; transform: rotate(-3deg); border: 2px solid var(--sammal); color: var(--sammal); border-radius: 8px; padding: 1px 10px; font: 600 .85rem var(--leipa); text-transform: uppercase; letter-spacing: .05em; }
.leima--ei { border-color: var(--harmaa); color: var(--harmaa); border-style: dashed; }
.reittikortti dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.reittikortti dt { font-weight: 600; color: var(--muste2); }
.reittikortti dd { margin: 0; }
.reittikortti__lahde { margin: 12px 0 0; font-size: .85rem; color: var(--harmaa); }
@media (max-width: 520px) { .reittikortti dl { grid-template-columns: 1fr; gap: 0; } .reittikortti dd { margin-bottom: 8px; } }

/* ---------- route table ---------- */
.taulu { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--viiva); border-radius: var(--r2); background: #fff; }
.taulu table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.taulu th, .taulu td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--viiva); vertical-align: top; }
.taulu thead th { background: var(--jarvi2); font-weight: 600; font-size: .86rem; color: var(--muste2); }
.taulu tbody tr:last-child > * { border-bottom: 0; }
.taulu td.km { white-space: nowrap; font-variant-numeric: tabular-nums; }
.arvio { display: inline-block; border-radius: 6px; padding: 0 8px; font-size: .86rem; font-weight: 600; background: var(--jakala); }
.arvio--h { background: #DCEFD9; } .arvio--k { background: #FCEBD9; } .arvio--v { background: #F6D5D0; }

/* ---------- Reitillä note ---------- */
.lappu { position: relative; margin: 30px 0; max-width: 560px; padding: 22px 24px 18px; background: #FFFEF6; transform: rotate(-.6deg); box-shadow: 0 8px 22px -12px #17251E55;
  background-image: linear-gradient(90deg, transparent 38px, #F2C9B8 38px 39px, transparent 39px), repeating-linear-gradient(0deg, transparent 0 27px, #DCE8F0 27px 28px); border-radius: 3px; }
.lappu::before { content: ""; position: absolute; top: -10px; left: 44%; width: 86px; height: 22px; background: #E8DCC0cc; transform: rotate(2deg); }
.lappu__pvm { margin: 0 0 4px 26px; font: 600 .78rem var(--leipa); letter-spacing: .06em; text-transform: uppercase; color: var(--harmaa); }
.lappu p:not(.lappu__pvm) { margin: 0 0 0 26px; font: 500 1.4rem/1.25 var(--kasi); color: #2B3A60; }

/* ---------- Kausikello ---------- */
.kausikello { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: center; margin: 24px 0; padding: 16px; background: #fff; border: 1px solid var(--viiva); border-radius: var(--r); }
.kausikello svg { width: 210px; height: 210px; }
.kausikello .kk { fill: #EEF2EF; stroke: #fff; stroke-width: 2; }
.kausikello .kk--on { fill: var(--sammal); } .kausikello .kk--oma { fill: var(--hilla); }
.kausikello text { font: 600 9px var(--leipa); fill: var(--muste2); text-anchor: middle; }
.kausikello .kk--on + text, .kausikello .kk--oma + text { fill: #fff; }
.kausikello__selite { font-size: .93rem; }
.kausikello__selite i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 560px) { .kausikello { grid-template-columns: 1fr; justify-items: center; } }

/* ---------- Reppuun checklist ---------- */
.reppuun { margin: 24px 0; padding: 16px 20px; border: 2px dashed var(--jakala); border-radius: var(--r); background: #FAFCFA; }
.reppuun h2, .reppuun h3 { margin-top: 0; }
.reppuun ul { list-style: none; padding: 0; columns: 2 220px; }
.reppuun li { break-inside: avoid; margin: 4px 0; }
.reppuun label { display: flex; gap: 8px; align-items: baseline; cursor: pointer; }
.reppuun input { accent-color: var(--sammal); }
@media print { .kansi, .pohja, .aukeama__reuna, .aukeama__loppu { display: none; } .reppuun { border: 0; } }

/* ---------- FAQ, sources, legacy box ---------- */
.ukk details { border-top: 1px solid var(--viiva); padding: 10px 0; }
.ukk summary { cursor: pointer; font-weight: 600; list-style: none; }
.ukk summary::before { content: "+"; display: inline-block; width: 1.3em; color: var(--hilla); font-weight: 700; }
.ukk details[open] summary::before { content: "–"; }
.ukk details p { margin: 8px 0 0 1.3em; }
.lahteet { margin-top: 30px; font-size: .9rem; color: var(--muste2); border-top: 1px solid var(--viiva); }
.lahteet ol { padding-left: 1.2em; } .lahteet a { word-break: break-word; }
/* Lyhyesti = maastokortti: ink frame, offset lichen shadow, ink tab breaking the top edge (no tinted box, no side stripe) */
.lyhyesti { margin: 30px 6px 26px 0; padding: 20px 20px 16px; border-radius: 3px; background: #fff; border: 1.5px solid var(--muste); box-shadow: 6px 6px 0 var(--jakala); }
.lyhyesti__h { display: inline-block; margin: -33px 0 8px -6px; padding: 3px 12px 4px; background: var(--muste); color: #fff; font: 700 .74rem/1.2 var(--leipa); letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; }
.lyhyesti__h::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--hilla); transform: rotate(45deg) translateY(-1px); }
.lyhyesti p:last-child { margin: 0; }
.huom { margin: 20px 0; padding: 12px 16px; border-radius: var(--r2); background: #FFF6E5; border: 1px solid #F0D7A6; font-size: .97rem; }
.huom b { color: #8A5212; }

/* ---------- next pages + writer ---------- */
.seuraavat { background: #fff; border: 1px solid var(--viiva); border-radius: var(--r); padding: 6px 22px 16px; }
.seuraavat h2 { font-size: 1.2rem; margin-top: .8em; }
.seuraavat ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.seuraavat li { counter-increment: s; padding: 6px 0 6px 34px; position: relative; border-top: 1px dashed var(--viiva); }
.seuraavat li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--jarvi2); color: var(--jarvi); text-align: center; font: 700 .8rem/24px var(--leipa); }
.kirjoittaja { display: flex; gap: 14px; background: var(--muste); color: #E7EEE9; border-radius: var(--r); padding: 18px 20px; }
.kirjoittaja img { border-radius: 50%; flex: none; border: 3px solid var(--hilla); }
.kirjoittaja a { color: #F7C998; } .kirjoittaja p { margin: 0 0 .6em; font-size: .95rem; }
.kirjoittaja__n { font: 700 1.15rem var(--otsikko) !important; color: #fff; }

/* ---------- pages ---------- */
.arkki { margin-top: 26px; }
.arkki__kortti { background: var(--kortti); border: 1px solid var(--viiva); border-radius: var(--r); padding: 18px 26px 22px; border-top: 6px solid var(--hilla); }
.arkki__kortti .polku ol { margin-top: 0; }
.arkki__ingressi { font-size: 1.15rem; color: var(--muste2); max-width: 760px; margin: 0; }
.arkki__teksti { background: var(--kortti); border: 1px solid var(--viiva); border-radius: var(--r); padding: 6px 26px 26px; margin-top: 14px; max-width: none; }
.arkki__teksti > * { max-width: 820px; }
.arkki__teksti > .taulu, .arkki__teksti > .kartta-osio { max-width: none; }
@media (max-width: 640px) { .arkki__kortti, .arkki__teksti { padding-left: 16px; padding-right: 16px; } }

/* hub stations (polkuverkosto) */
.asemat { list-style: none; margin: 14px 0 24px; padding: 0 0 0 26px; position: relative; }
.asemat::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; border-left: 3px dashed var(--jakala); }
.asemat li { position: relative; margin: 0 0 6px; }
.asemat li::before { content: ""; position: absolute; left: -23px; top: 13px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--sammal); }
.asemat a { display: block; padding: 7px 12px; border-radius: var(--r2); text-decoration: none; color: var(--muste); }
.asemat a:hover { background: var(--jarvi2); }
.asemat b { font-weight: 600; } .asemat small { display: block; color: var(--harmaa); font-size: .9rem; }
.asemat__v { font-style: normal; color: var(--hilla); margin-left: 6px; }
.asemat__h { margin-bottom: 0; }

/* park map */
.kartta { margin: 0; }
.kartta svg { width: 100%; max-width: 330px; height: auto; display: block; margin: 0 auto; background: var(--jarvi2); border-radius: var(--r); }
.kartta__lat { stroke: #fff; stroke-width: 1; } .kartta__napa { stroke: var(--hilla); stroke-dasharray: 4 4; }
.kartta__lt { font: 600 9px var(--leipa); fill: var(--harmaa); }
.kartta__p { fill: var(--sammal); stroke: #fff; stroke-width: 2; } .kartta__p--v { fill: var(--hilla); }
.kartta a:hover .kartta__p, .kartta a:focus .kartta__p { r: 9; }
.kartta figcaption { font-size: .85rem; color: var(--harmaa); text-align: center; margin-top: 8px; }
.kartta-osio { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; margin: 18px 0; }
@media (max-width: 800px) { .kartta-osio { grid-template-columns: 1fr; } }

/* archive list */
.arkisto { list-style: none; padding: 0; }
.arkisto li { display: flex; gap: 14px; padding: 6px 0; border-bottom: 1px dotted var(--viiva); }
.arkisto time { flex: none; width: 88px; color: var(--harmaa); font-size: .9rem; }
.arkisto__n { color: var(--harmaa); font-size: .9rem; }

/* ---------- front ---------- */
.tervehdys { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; margin-top: 30px; }
.tervehdys__kuva { margin: 0; transform: rotate(-2deg); background: #fff; padding: 10px 10px 34px; box-shadow: 0 14px 30px -18px #17251E88; border-radius: 4px; }
.tervehdys__kuva img { display: block; border-radius: 2px; }
.tervehdys__moi { font: 500 2rem var(--kasi); color: var(--hilla); margin: 0; }
.tervehdys h1 { margin-top: 0; }
.tervehdys__linkit { display: flex; flex-wrap: wrap; gap: 8px; }
.tervehdys__linkit a { padding: 7px 14px; border-radius: 999px; background: var(--muste); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.tervehdys__linkit a + a { background: #fff; color: var(--muste); border: 1px solid var(--viiva); }
@media (max-width: 760px) { .tervehdys { grid-template-columns: 1fr; } .tervehdys__kuva { max-width: 230px; } }
.nyt { margin-top: 40px; }
.nyt__sivut { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--viiva); border-radius: var(--r); overflow: hidden; background: #FFFEF6; }
.nyt__sivut li { padding: 16px 18px; border-right: 1px dashed var(--jakala); }
.nyt__sivut time { font: 600 .78rem var(--leipa); letter-spacing: .06em; text-transform: uppercase; color: var(--harmaa); }
.nyt__sivut p { margin: 4px 0 0; font: 500 1.3rem/1.25 var(--kasi); color: #2B3A60; }
.puistot { display: grid; grid-template-columns: 340px 1fr; gap: 34px; margin-top: 44px; align-items: start; }
.puistot__listat h2 { margin-top: 0; }
.maakunta { border-top: 1px solid var(--viiva); padding: 8px 0; }
.maakunta summary { cursor: pointer; font: 600 1.08rem var(--otsikko); }
.maakunta small { color: var(--harmaa); font: 400 .9rem var(--leipa); margin-left: 6px; }
.maakunta ul { columns: 2 200px; padding-left: 1.1em; margin: 8px 0 4px; }
@media (max-width: 820px) { .puistot { grid-template-columns: 1fr; } }
.polkulinja { margin-top: 46px; }
.polkulinja__asemat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.polkulinja__asemat::before { content: ""; position: absolute; left: 3%; right: 3%; top: 26px; border-top: 3px dashed var(--jakala); }
.asema a { position: relative; display: block; padding: 50px 12px 14px; text-decoration: none; color: var(--muste); text-align: center; }
.asema a::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--sammal); }
.asema:nth-child(even) a::before { border-color: var(--hilla); }
.asema b { display: block; font: 700 1.08rem var(--otsikko); }
.asema span { display: block; font-size: .9rem; color: var(--harmaa); margin-top: 4px; }
.asema a:hover b { color: var(--jarvi); }
@media (max-width: 760px) { .polkulinja__asemat { grid-template-columns: 1fr 1fr; } .polkulinja__asemat::before { display: none; } }
.kuukausi { margin-top: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.kuukausi__lappu { background: var(--muste); color: #E7EEE9; border-radius: var(--r); padding: 22px 26px; }
.kuukausi__lappu h2 { color: #fff; margin-top: 0; } .kuukausi__lappu a { color: #F7C998; }
.kuukausi__linkit { list-style: none; padding: 0; margin: 0; }
.kuukausi__linkit a { display: block; padding: 10px 14px; margin-bottom: 8px; background: #fff; border-radius: var(--r2); border: 1px solid var(--viiva); text-decoration: none; font-weight: 600; color: var(--muste); }
.kuukausi__linkit a::before { content: "→ "; color: var(--hilla); }
@media (max-width: 760px) { .kuukausi { grid-template-columns: 1fr; } }
.suosituimmat { margin-top: 44px; }
.suosituimmat ol { padding-left: 0; list-style: none; columns: 2 300px; column-gap: 28px; counter-reset: p; }
.suosituimmat li { break-inside: avoid; counter-increment: p; display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dotted var(--viiva); }
.suosituimmat li::before { content: counter(p, decimal-leading-zero); font: 700 1.1rem var(--otsikko); color: var(--hilla); }
.suosituimmat a { text-decoration: none; color: var(--muste); } .suosituimmat b { display: block; } .suosituimmat small { color: var(--harmaa); }
.etusivu__arkisto { margin-top: 36px; color: var(--harmaa); font-size: .93rem; }

/* ---------- OBL desk frame ---------- */
.vihko-obl { position: relative; margin: 26px 0; padding: 22px 20px 10px; border: 2px solid var(--jakala); border-radius: var(--r); background: #fff; }
.vihko-obl__lappu { position: absolute; top: -14px; left: 18px; margin: 0; padding: 1px 12px; background: var(--hilla); color: #fff; border-radius: 8px; font: 600 .85rem var(--leipa); }
.vihko-obl--form { border-style: dashed; }

/* ---------- footer ---------- */
.pohja { background: var(--muste); color: #C9D6CD; margin-top: 30px; }
.pohja__in { max-width: 1180px; margin: 0 auto; padding: 34px 16px 26px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px 34px; }
.pohja a { color: #EAF1EC; }
.pohja__minä { display: flex; gap: 14px; align-items: flex-start; }
.pohja__minä img { border-radius: 50%; border: 3px solid var(--hilla); flex: none; }
.pohja__minä p { margin: 0; font-size: .95rem; }
.pohja ul { list-style: none; padding: 0; margin: 0; } .pohja li { margin: 4px 0; }
.pohja__ota { grid-column: 1 / -1; margin: 6px 0 0; }
.ota-yhteytta { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--hilla); color: #fff !important; text-decoration: none; font-weight: 600; }
.pohja__c { grid-column: 1 / -1; margin: 0; font-size: .9rem; border-top: 1px solid #ffffff22; padding-top: 14px; }
@media (max-width: 760px) { .pohja__in { grid-template-columns: 1fr; } }

/* v1.1: one photo per person – small framed photo on the about page, small round framed avatars elsewhere */
.me { float: right; width: 165px; margin: 4px 0 14px 22px; padding: 6px 6px 4px; background: #fffdf7; border: 1px solid #ece4d3; box-shadow: 0 6px 16px -10px #17251E66; transform: rotate(.8deg); }
.me img { display: block; width: 100%; height: auto; }
.me figcaption { font-size: .78rem; line-height: 1.35; color: var(--harmaa); margin: 6px 2px 2px; }
.arkki__teksti::after { content: ""; display: block; clear: both; }
@media (max-width: 560px) { .me { width: 140px; margin: 4px 0 12px 16px; } }
.allekirjoitus img, .kirjoittaja img, .pohja__minä img, .tervehdys__kuva img { border-radius: 50%; border: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hilla); }
.tervehdys { grid-template-columns: 150px 1fr; }
.tervehdys__kuva { transform: none; background: none; padding: 0; box-shadow: none; align-self: start; margin-top: 8px; }
.tervehdys__kuva img { width: 132px; height: 132px; }
@media (max-width: 760px) { .tervehdys { grid-template-columns: 1fr; } .tervehdys__kuva img { width: 96px; height: 96px; } }
.arkki__teksti:has(> .me) { max-width: 880px; }

/* ==== OBL desk boxes – Reittivihko's own look (owner 13/11, §0: unique per site; only the filter technique is shared).
   CTA = an «opastaulu», the dark-green trail info board at a park entrance: contour lines, double board frame, corner pins,
   cream type. Button = the orange paint blaze (maalimerkki) that marks a trail: square, slightly skewed.
   Form = a page of an autiotupa guest book (vieraskirja): ruled paper, red margin, underline-only fields. ===== */
.obl-skin{margin:34px 0 10px;clear:both;position:relative}
body .arkki__teksti .obl-skin--cta section{margin:0!important;border-radius:4px!important;border:0!important;box-shadow:0 0 0 4px #2E4A3C,0 0 0 6px #8A6A45,0 14px 24px -14px #17251E!important;color:#EEF2E8!important;font-family:var(--leipa)!important;overflow:hidden!important;position:relative;
  background:#1F3A2E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='220'%3E%3Cg fill='none' stroke='%23CBD7C6' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M-10 180 C80 120 160 200 260 140 S400 60 440 100'/%3E%3Cpath d='M-10 200 C90 145 170 220 270 165 S410 90 440 125'/%3E%3Cpath d='M-10 158 C70 100 150 175 250 118 S390 35 440 75'/%3E%3Cpath d='M-10 136 C60 80 140 150 240 96 S380 10 440 50'/%3E%3C/g%3E%3C/svg%3E") repeat!important}
body .arkki__teksti .obl-skin--cta section:before,body .arkki__teksti .obl-skin--cta section:after{content:"";position:absolute;top:9px;width:9px;height:9px;border-radius:50%;background:#C9B48A;box-shadow:inset -1px -1px 0 #7A5F3A;z-index:2}
body .arkki__teksti .obl-skin--cta section:before{left:9px} body .arkki__teksti .obl-skin--cta section:after{right:9px}
body .arkki__teksti .obl-skin--cta [class$="m"]{background:transparent!important;color:#EEF2E8!important;padding:30px 30px 20px!important;gap:14px 26px!important}
body .arkki__teksti .obl-skin--cta [class$="h"]{font-family:var(--otsikko)!important;font-weight:700!important;font-size:1.4rem!important;line-height:1.2!important;color:#FFFFFF!important;margin:0 0 6px!important;letter-spacing:.01em}
body .arkki__teksti .obl-skin--cta [class$="e"],body .arkki__teksti .obl-skin--cta [class$="k"]{font:500 1.35rem/1 var(--kasi)!important;letter-spacing:0!important;text-transform:none!important;color:#F7C998!important;margin:0 0 6px!important;display:block}
body .arkki__teksti .obl-skin--cta p,body .arkki__teksti .obl-skin--cta [class$="t"] p{color:#D9E3D6!important;font-size:.98rem!important}
body .arkki__teksti .obl-skin--cta [class$="l"]{color:#CBD7C6!important;font-size:.88rem!important}
body .arkki__teksti .obl-skin a{color:inherit!important}
body .arkki__teksti .obl-skin button[type=submit]{background:var(--hilla)!important;color:#1B140C!important;border:0!important;border-radius:2px!important;padding:11px 22px 11px 18px!important;font:700 .92rem/1.2 var(--leipa)!important;letter-spacing:.04em!important;text-transform:uppercase!important;box-shadow:3px 3px 0 #8A4E14!important;transform:skewX(-6deg);cursor:pointer;white-space:normal!important}
body .arkki__teksti .obl-skin button[type=submit]:hover{background:#F0A050!important;transform:skewX(-6deg) translateY(-1px);filter:none!important}
body .arkki__teksti .obl-skin--cta details{border-top:1px solid rgba(203,215,198,.25)!important;padding:10px 30px 16px!important;background:rgba(0,0,0,.18)!important}
body .arkki__teksti .obl-skin--cta summary{color:#F7C998!important;font-weight:600!important;font-size:.92rem!important}
body .arkki__teksti .obl-skin--cta details label,body .arkki__teksti .obl-skin--cta dt{color:#EEF2E8!important}
body .arkki__teksti .obl-skin--cta input:not([type=hidden]),body .arkki__teksti .obl-skin--cta select,body .arkki__teksti .obl-skin--cta textarea{background:#F5F1E6!important;color:#17251E!important;border:0!important;border-radius:2px!important}
body .arkki__teksti .obl-skin--cta dl,body .arkki__teksti .obl-skin--cta [class$="r"]{border-color:rgba(203,215,198,.3)!important}
@media(max-width:560px){body .arkki__teksti .obl-skin--cta [class$="m"]{padding:26px 18px 16px!important}body .arkki__teksti .obl-skin--cta details{padding:10px 18px 14px!important}}

/* the map sheet (karttalehti): pale map paper, blue 1 km grid + contours, black/white graduated neatline, coordinate-box fields */
body .arkki__teksti .obl-skin--form section{margin:0!important;border-radius:0!important;border:6px solid transparent!important;
  border-image:repeating-linear-gradient(90deg,#17251E 0 18px,#F5F3E6 18px 36px) 6!important;box-shadow:0 0 0 1px #17251E,0 12px 22px -16px #17251E88!important;
  color:#17251E!important;font-family:var(--leipa)!important;padding:30px 28px 24px!important;position:relative;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='260'%3E%3Cg fill='none' stroke='%23B08A55' stroke-opacity='.28' stroke-width='1'%3E%3Cellipse cx='250' cy='90' rx='60' ry='38'/%3E%3Cellipse cx='250' cy='90' rx='96' ry='62'/%3E%3Cellipse cx='250' cy='92' rx='134' ry='88'/%3E%3Cpath d='M-5 220 C60 190 120 240 200 210 S320 170 370 200'/%3E%3C/g%3E%3C/svg%3E"),linear-gradient(90deg,rgba(42,106,140,.18) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(0deg,rgba(42,106,140,.18) 1px,transparent 1px) 0 0/48px 48px,#EEF1DF!important}
body .arkki__teksti .obl-skin--form section:before{content:"KARTTARUUTU  62°58′ N  30°40′ E";position:absolute;left:28px;top:8px;font:600 .66rem/1 var(--leipa);letter-spacing:.14em;color:#4C7A57}
body .arkki__teksti .obl-skin--form section:after{content:"";position:absolute;right:22px;top:10px;width:96px;height:6px;background:linear-gradient(90deg,#17251E 0 24px,#fff 24px 48px,#17251E 48px 72px,#fff 72px 96px);outline:1px solid #17251E}
body .arkki__teksti .obl-skin--form section > *,body .arkki__teksti .obl-skin--form section form,body .arkki__teksti .obl-skin--form section div{background:transparent!important;box-shadow:none!important;border-color:transparent}
body .arkki__teksti .obl-skin--form [class$="h"],body .arkki__teksti .obl-skin--form h2,body .arkki__teksti .obl-skin--form h3{font:700 1.15rem/1.2 var(--otsikko)!important;text-transform:uppercase!important;letter-spacing:.12em!important;color:#17251E!important;margin:8px 0 16px!important;padding-bottom:8px!important;border-bottom:2px solid #17251E!important}
body .arkki__teksti .obl-skin--form label{font:600 .72rem/1.2 var(--leipa)!important;letter-spacing:.1em!important;text-transform:uppercase!important;color:#2A6A8C!important;margin:0 0 14px!important;padding-left:16px!important;position:relative}
body .arkki__teksti .obl-skin--form label:before{content:"";position:absolute;left:0;top:1px;width:9px;height:9px;border:2px solid #E2862F;transform:rotate(45deg)}
body .arkki__teksti .obl-skin--form label.k71bfbc:before,body .arkki__teksti .obl-skin--form label:has(input[type=checkbox]):before{display:none}
body .arkki__teksti .obl-skin--form input:not([type=hidden]):not([type=checkbox]),body .arkki__teksti .obl-skin--form select,body .arkki__teksti .obl-skin--form textarea{background:#FBFBF4!important;border:1px solid #17251E!important;border-radius:0!important;padding:9px 10px!important;color:#17251E!important;
  font:500 1rem/1.3 var(--leipa)!important;letter-spacing:.02em;box-shadow:inset 0 0 0 3px #FBFBF4,inset 0 0 0 4px rgba(42,106,140,.35)!important}
body .arkki__teksti .obl-skin--form input:focus,body .arkki__teksti .obl-skin--form select:focus,body .arkki__teksti .obl-skin--form textarea:focus{outline:2px solid #E2862F!important;outline-offset:2px}
body .arkki__teksti .obl-skin--form input[type=checkbox]{accent-color:#E2862F;border-radius:0}
body .arkki__teksti .obl-skin--form p{color:#3D4E45!important;font-size:.88rem!important;font-style:italic}
@media(max-width:560px){body .arkki__teksti .obl-skin--form section{padding:28px 14px 18px!important}body .arkki__teksti .obl-skin--form section:after{display:none}}

/* ============ n8n-artiklar (N8N-ARTIKLAR-CSS 13/11): own Reittivihko look, overrides the inline <style> the posts carry ============ */
html body { background: var(--paperi); }
body .teksti .news-content { max-width: none; margin: 0; padding: 0; background: transparent; border-radius: 0; }
body .teksti .news-content > br, body .teksti .news-content > .section-sep { display: none; }
body .teksti .wp-block-paragraph, body .teksti .n24-p { margin: 0 0 1em; font-size: inherit; line-height: inherit; color: inherit; }
body .teksti .wp-block-heading, body .teksti .n24-h2, body .teksti .n24-h3 { margin: 1.6em 0 .5em; color: var(--muste); letter-spacing: 0; font-family: var(--otsikko); }
body .teksti h2.wp-block-heading, body .teksti .n24-h2 { font-size: 1.5rem; } body .teksti h3.wp-block-heading, body .teksti .n24-h3 { font-size: 1.18rem; }
body .teksti .reading-time, body .teksti .last-updated { max-width: none; margin: 0 0 14px; padding: 0; font: 600 .78rem/1.3 var(--leipa); letter-spacing: .06em; text-transform: uppercase; color: var(--harmaa); }
body .teksti .reading-time::before { content: "◷ "; color: var(--sammal); }
/* Rastikortit: four control cards, the number is an orienteering control flag (white/orange split square) */
body .teksti .news-grid-wrap { margin: 28px 0; }
body .teksti .grid-heading { text-align: left; margin: 0 0 14px; font: 700 1.3rem/1.25 var(--otsikko); color: var(--muste); padding-bottom: 6px; background: linear-gradient(90deg, var(--sammal) 0 64px, transparent 64px) bottom left / 100% 3px no-repeat; }
body .teksti .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body .teksti .news-box { background: #fff; border: 1px solid var(--viiva); border-bottom: 4px solid var(--jakala); border-radius: 3px; box-shadow: none; padding: 14px 16px 12px; min-height: 0; }
body .teksti .news-box-header { align-items: flex-start; gap: 10px; margin-bottom: 8px; }
body .teksti .box-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 2px; border: 1.5px solid #B9651C; box-shadow: none; background: linear-gradient(135deg, #fff 0 52%, var(--hilla) 52% 100%); color: var(--muste); font: 800 .82rem/1 var(--leipa); justify-content: flex-start !important; align-items: flex-start !important; padding: 4px 0 0 5px; }
body .teksti .box-title { padding-top: 4px; font: 700 1rem/1.3 var(--otsikko); color: var(--muste); }
body .teksti .news-box-content { color: var(--muste2); font-size: .95rem; line-height: 1.55; }
body .teksti .news-box-content strong { display: block; margin: 6px 0 2px; font: 700 .72rem/1.3 var(--leipa); letter-spacing: .1em; text-transform: uppercase; color: var(--sammal); }
body .teksti .news-box-content strong:last-child { display: none; }
body .teksti .news-box-content ul, body .teksti .news-box-content ol, body .teksti .confirmed-list, body .teksti .rumor-list, body .teksti .updates-list { margin: 4px 0 0; padding: 0; list-style: none; }
body .teksti .news-box-content ul > li, body .teksti .n24-insights > li, body .teksti .n24-key-insights li, body .teksti .n24-list > li { position: relative; padding-left: 18px; }
body .teksti .news-box-content ul > li::before, body .teksti .n24-insights > li::before, body .teksti .n24-key-insights li::before, body .teksti .n24-list > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border: 2px solid var(--sammal); border-radius: 50%; }
body .teksti .updates-list > li::before { border-radius: 0; border: 0; border-top: 2px solid var(--hilla); border-right: 2px solid var(--hilla); transform: rotate(45deg); top: .55em; }
/* Aikajana = polku: dashed trail with waymarks */
body .teksti .timeline-list, body .teksti .n24-timeline { list-style: none; margin: 6px 0 0; padding: 0 0 0 16px; border-left: 2px dashed var(--hilla); }
body .teksti .timeline-list > li, body .teksti .n24-timeline > li { position: relative; margin: 0 0 8px; padding-left: 6px; }
body .teksti .timeline-list > li::before, body .teksti .n24-timeline > li::before { content: ""; position: absolute; left: -23px; top: .45em; width: 10px; height: 10px; background: #fff; border: 2.5px solid var(--muste); border-radius: 50%; }
body .teksti .n24-timeline time, body .teksti .wp-block-list time { font-weight: 700; color: var(--muste); font-variant-numeric: tabular-nums; }
/* Taulukot = maastotaulu: ink header, lichen rules */
body .teksti .news-content .wp-block-table, body .teksti .wp-block-table { overflow-x: auto; margin: 16px 0 24px; border: 1.5px solid var(--muste); border-radius: 3px; background: #fff; }
body .teksti .wp-block-table table, body .teksti table.n24-fact-table, body .teksti table.n24-table, body .teksti table.n24-comparison, body .teksti table.wp-block-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; }
body .teksti table.n24-fact-table, body .teksti table.n24-table, body .teksti table.n24-comparison, body .teksti table.wp-block-table { margin: 16px 0 24px; border: 1.5px solid var(--muste); }
body .teksti .wp-block-table th, body .teksti .wp-block-table td, body .teksti .n24-fact-table th, body .teksti .n24-fact-table td, body .teksti .n24-table th, body .teksti .n24-table td, body .teksti .n24-comparison th, body .teksti .n24-comparison td, body .teksti table.wp-block-table th, body .teksti table.wp-block-table td { padding: 8px 12px; border: 0; border-bottom: 1px solid var(--jakala); text-align: left; vertical-align: top; }
body .teksti .wp-block-table thead th, body .teksti .n24-fact-table thead th, body .teksti .n24-table thead th, body .teksti .n24-comparison thead th, body .teksti table.wp-block-table thead th { background: var(--muste); color: #fff; font: 700 .76rem/1.3 var(--leipa); letter-spacing: .08em; text-transform: uppercase; }
body .teksti .wp-block-table tbody tr:nth-child(even), body .teksti .n24-fact-table tbody tr:nth-child(even), body .teksti .n24-table tbody tr:nth-child(even), body .teksti table.wp-block-table tbody tr:nth-child(even) { background: #F7F9F6; }
body .teksti .n24-fact-table td:first-child { font-weight: 600; color: var(--muste); white-space: nowrap; }
/* n24 tip / note / warning = retkilaput */
body .teksti .n24-tip, body .teksti .n24-note, body .teksti .n24-warning { margin: 22px 0; padding: 14px 18px 12px; font-size: .97rem; }
body .teksti .n24-tip { position: relative; background: var(--hilla2); border-radius: 3px; padding-left: 42px; } body .teksti .n24-tip::before { content: ""; position: absolute; left: 16px; top: 18px; width: 12px; height: 12px; background: var(--hilla); transform: rotate(45deg); }
body .teksti .n24-note { background: #fff; border: 1px solid var(--viiva); border-top: 3px dotted var(--sammal); border-radius: 0; }
body .teksti .n24-warning { background: #fff; border: 2px solid var(--hilla); border-radius: 3px; }
body .teksti .n24-tip-label, body .teksti .n24-note-label, body .teksti .n24-warning-label { display: block; margin-bottom: 4px; font: 500 1.3rem/1.1 var(--kasi); }
body .teksti .n24-tip-label { color: #8A4E14; } body .teksti .n24-note-label { color: var(--jarvi); } body .teksti .n24-warning-label { color: #A4471A; }
body .teksti .n24-tip > :last-child, body .teksti .n24-note > :last-child, body .teksti .n24-warning > :last-child { margin-bottom: 0; }
/* n24 overview grid = taskukortit */
body .teksti .n24-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 22px; }
body .teksti .n24-grid-item { padding: 10px 14px; background: #fff; border: 1px solid var(--viiva); border-top: 3px solid var(--sammal); border-radius: 3px; font-size: .95rem; }
body .teksti .n24-grid-item strong, body .teksti .n24-grid-label { display: block; font: 700 .72rem/1.3 var(--leipa); letter-spacing: .1em; text-transform: uppercase; color: var(--sammal); }
body .teksti .n24-insights, body .teksti .n24-key-insights ul, body .teksti .n24-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
body .teksti .n24-key-insights { margin: 20px 0; padding: 14px 18px; background: #fff; border: 1px dashed var(--sammal); border-radius: 3px; }
/* lainaukset ja UKK */
body .teksti blockquote, body .teksti .n24-blockquote { position: relative; margin: 22px 0; padding: 6px 0 6px 44px; border: 0; background: transparent; border-radius: 0; font: 500 1.35rem/1.25 var(--kasi); color: var(--muste2); }
body .teksti blockquote::before, body .teksti .n24-blockquote::before { content: "\201D"; position: absolute; left: 0; top: -8px; font: 700 3.4rem/1 var(--otsikko); color: var(--hilla); }
body .teksti blockquote cite, body .teksti blockquote footer { display: block; margin-top: 6px; font: 600 .8rem var(--leipa); color: var(--harmaa); }
body .teksti .n24-faq details, body .teksti details.n24-details { margin: 0 0 8px; padding: 10px 14px; background: #fff; border: 1px solid var(--viiva); border-radius: 3px; }
body .teksti .n24-faq summary, body .teksti .n24-details summary { cursor: pointer; font-weight: 700; color: var(--muste); }
@media (max-width: 720px) {
  body .teksti .news-grid, body .teksti .n24-overview-grid { grid-template-columns: 1fr !important; }
  body .teksti .n24-fact-table td:first-child { white-space: normal; }
  body .teksti table.n24-fact-table, body .teksti table.n24-table, body .teksti table.n24-comparison, body .teksti table.wp-block-table { display: block; overflow-x: auto; }
}/* n8n fixes 1.5.2: trail list beats the box-list reset; class-less tables in archive posts get the maastotaulu look */
body .teksti ol.timeline-list, body .teksti ul.n24-timeline, body .teksti ol.n24-timeline { padding: 0 0 0 16px; margin: 6px 0 0 6px; }
body .aukeama--arkisto .teksti table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; border: 1.5px solid var(--muste); background: #fff; font-size: .93rem; }
body .aukeama--arkisto .teksti table th, body .aukeama--arkisto .teksti table td { padding: 8px 12px; border: 0; border-bottom: 1px solid var(--jakala); text-align: left; vertical-align: top; }
body .aukeama--arkisto .teksti table thead th, body .aukeama--arkisto .teksti table tr:first-child th { background: var(--muste); color: #fff; font: 700 .76rem/1.3 var(--leipa); letter-spacing: .08em; text-transform: uppercase; }
body .aukeama--arkisto .teksti table tbody tr:nth-child(even) { background: #F7F9F6; }
body .aukeama--arkisto .teksti .wp-block-table table { margin: 0; border: 0; }
@media (max-width: 720px) { body .aukeama--arkisto .teksti table { display: block; overflow-x: auto; } body .aukeama--arkisto .teksti .wp-block-table table { display: table; } }