/**
 * Lainataivas – koko sivuston yhteiset tyylit (ladataan kaikilla sivuilla, myös vanhoilla sisällöillä).
 * Taulukot: yksi yhtenäinen tyyli + aina näkyvä vierityspalkki (yleinen.js).
 * Vanhojen sivujen otsikkoalue: taivaan liukuväri ja lukittu fontti DejaVu Sans.
 */

/* ---------- Taulukot ---------- */
.lt-taulukko-kehys{position:relative;max-width:100%;margin:0}
.lt-taulukko-alue{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;border-radius:16px}
.lt-taulukko-alue::-webkit-scrollbar{display:none}
.lt-taulukko-alue:focus-visible{outline:2px solid #2A6BB0;outline-offset:3px}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t{width:100%;min-width:max(100%,calc(var(--sarakkeet,3) * 11.5rem));table-layout:auto;border-collapse:separate;border-spacing:0;margin:0;border:1px solid #CFE0F0;border-radius:16px;overflow:hidden;background:#fff;font-size:.95rem;line-height:1.45;box-shadow:0 1px 2px rgba(16,35,63,.05),0 14px 28px -20px rgba(16,35,63,.35)}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t :is(th,td){padding:12px 14px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid #E3EDF6;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;white-space:normal;color:#10233F;background:transparent}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t thead :is(th,td),.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t>tbody:first-child>tr:first-child>th{background:linear-gradient(180deg,#4C9BE6,#2F80CC);color:#fff;font-weight:700;border-bottom:0;vertical-align:bottom}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t tbody tr:nth-child(even)>td{background:#F2F8FE}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t tbody td:first-child{font-weight:600}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t tbody tr:last-child>:is(td,th){border-bottom:0}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t tfoot td{font-weight:700;background:#E6F1FC}
figure.wp-block-table:has(.lt-taulukko-kehys){overflow:visible;margin-inline:0}
figure.wp-block-table figcaption{font-size:.8rem;color:#7C8AA0;margin-top:10px}
/* aina näkyvä vierityspalkki */
.lt-vp{display:none;position:relative;height:10px;margin:12px 2px 2px;border-radius:999px;background:#DCEAF6;cursor:pointer;touch-action:none}
.lt-vierittyy>.lt-vp{display:block}
.lt-vp-peukalo{position:absolute;top:0;bottom:0;left:0;min-width:40px;border-radius:999px;background:linear-gradient(90deg,#4C9BE6,#2A6BB0);box-shadow:0 1px 3px rgba(16,35,63,.3);cursor:grab;touch-action:none}
.lt-vetaa .lt-vp-peukalo{cursor:grabbing}
.lt-vp-peukalo::after{content:"";position:absolute;left:-6px;right:-6px;top:-10px;bottom:-10px}
/* reunan häivytys kertoo, että taulukko jatkuu */
.lt-vierittyy::after{content:"";position:absolute;top:1px;right:0;bottom:25px;width:34px;border-radius:0 16px 16px 0;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.96));pointer-events:none;transition:opacity .2s}
.lt-vierittyy.lt-lopussa::after{opacity:0}

/* ---------- Vanhat sivut: otsikkoalue taivaaksi ja lukittu fontti ---------- */
body.page:not(.lt-taivas-sivu) .entry-hero.page-hero-section .entry-hero-container-inner{background:linear-gradient(180deg,#8CC6F2 0%,#ABD7F6 40%,#CFE7FA 75%,#E6F3FC 100%)}
body.page:not(.lt-taivas-sivu) .entry-hero.page-hero-section .entry-header h1.entry-title{font-family:"DejaVu Sans",Verdana,system-ui,sans-serif;color:#10233F;font-weight:700;letter-spacing:-.02em;line-height:1.05;font-size:clamp(2rem,6vw,3.4rem)}
body.page:not(.lt-taivas-sivu) .entry-hero .kadence-breadcrumbs,body.page:not(.lt-taivas-sivu) .entry-hero .kadence-breadcrumbs a{color:#10233F}

/* Sisäänkirjautuneen ylläpitäjän työkalupalkki puhelimessa: ei rivity sivun päälle (avatar peitti valikkonapin). */
@media screen and (max-width:782px){html #wpadminbar{height:46px;overflow:hidden}}

/* ---------- 1.2.0 Vahvemmat värit koko sivustolle: taulukot ja footer ---------- */
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t thead :is(th,td),.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t>tbody:first-child>tr:first-child>th{background:linear-gradient(180deg,#12345E,#0A2342)}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t tbody tr:nth-child(even)>td{background:#EEF8FC}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t{border-color:#C9E6F1}
.lt-vp{background:#D3EEF7}
.lt-vp-peukalo{background:linear-gradient(90deg,#5FC4E1,#1A8FB5)}
body .site-footer{background:linear-gradient(180deg,#0A2342,#081B33);color:#CFE0F0}
body .site-footer::before{background:linear-gradient(90deg,#5FC4E1,#FFC02E,#5FC4E1)}
body .site-footer a{color:#FFFFFF}
body .site-footer b,body .site-footer strong{color:#FFFFFF}
body .site-footer p{color:#CFE0F0}
body .site-footer .footer-html,body .site-footer .footer-html-inner,body .site-footer .footer-html p{color:rgba(207,224,240,.62)}

/* ---------- 1.3.0 Raikas: vaaleansininen + valkoinen, keltainen tehosteena (ei tummaa) ---------- */
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t thead :is(th,td),.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t>tbody:first-child>tr:first-child>th{background:linear-gradient(180deg,#CFE8FB,#BCDDF7);color:#10233F}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t tbody tr:nth-child(even)>td{background:#F3F9FE}
.lt-taulukko-kehys.lt-taulukko-kehys table.lt-t.lt-t{border-color:#C9DFF0}
.lt-vp{background:#DCEBF7}
.lt-vp-peukalo{background:linear-gradient(90deg,#5AAEEB,#2F80CC)}
body .site-footer{background:linear-gradient(180deg,#D5EBFC,#C2E1F8);color:#33475F}
body .site-footer::before{background:linear-gradient(90deg,#8CC6F2,#FFC02E,#8CC6F2)}
body .site-footer a,body .site-footer b,body .site-footer strong{color:#10233F}
body .site-footer p{color:#33475F}
body .site-footer .footer-html,body .site-footer .footer-html-inner,body .site-footer .footer-html p{color:rgba(16,35,63,.55)}

/* Sama reunaväli koko sivustolle (header, sisältö, footer samassa linjassa; ei kiinni reunoissa) */
html:root{--global-content-edge-padding:clamp(22px,6vw,44px)}
body .site-header .site-container,body .site-footer .site-container{padding-left:var(--global-content-edge-padding);padding-right:var(--global-content-edge-padding)}
