/* Casa Kalevala: sää ja ilmasto (public/js/casa-saa.js). Ladataan vain Casa-sivulla. */
.casa-saa { padding-top: 24px; padding-bottom: 72px; }
.saa-otsikkorivi { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin-bottom: 20px; }
.saa-otsikkorivi h2 { margin: 0; font-size: clamp(30px, 4.5vw, 36px); }
.saa-aika { color: var(--teksti-3); font-size: 15px; }
.saa-ruudukko { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.saa-ilmasto { grid-column: 1 / -1; }
@media (max-width: 820px) { .saa-ruudukko { grid-template-columns: minmax(0, 1fr); } }
.saa-kortti { background: var(--kortti); border-radius: 20px; padding: 24px; }
.saa-kortti h3 { margin: 0 0 12px; font-size: 22px; }
.saa-kortti .pieni-teksti { margin-top: 0; }
.saa-iso { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.saa-ikoni { font-size: 56px; line-height: 1; }
.saa-lampo { font-family: var(--otsikkofontti); font-size: 64px; line-height: 1; color: var(--sininen); }
.saa-kuvaus { font-size: 19px; font-weight: 600; display: flex; flex-direction: column; }
.saa-kuvaus small { font-weight: 400; font-size: 15px; color: var(--teksti-3); }
.saa-tiedot { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 22px 0 0; }
.saa-tiedot div { background: #fff; border-radius: 12px; padding: 10px 14px; }
.saa-tiedot dt { font-size: 13px; color: var(--teksti-4); }
.saa-tiedot dd { margin: 0; font-weight: 600; font-size: 17px; }
.saa-tiedot dd small { font-weight: 400; font-size: 13px; color: var(--teksti-3); display: block; }
.saa-ennuste { list-style: none; margin: 0; padding: 0; }
.saa-ennuste li { display: grid; grid-template-columns: 1fr 36px 44px 44px 72px; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--reuna); font-size: 16px; }
.saa-ennuste li:last-child { border-bottom: 0; }
.saa-pv { color: var(--teksti-2); }
.saa-pikku-ikoni { font-size: 22px; text-align: center; }
.saa-ennuste strong { text-align: right; }
.saa-yo { text-align: right; color: var(--teksti-4); }
.saa-sade { text-align: right; font-size: 13px; color: var(--linkki); }
.ilm-luvut { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 45%), 1fr)); gap: 12px; margin-bottom: 28px; }
.ilm-luvut div { background: #fff; border-radius: 14px; padding: 16px 18px; }
.ilm-luvut strong { overflow-wrap: anywhere; display: block; font-family: var(--otsikkofontti); font-weight: 500; font-size: clamp(28px, 6vw, 36px); color: var(--sininen); line-height: 1.1; }
.ilm-luvut span { font-size: 15px; color: var(--teksti-2); display: block; }
.ilm-luvut small { display: block; font-size: 13px; color: var(--teksti-4); }
.saa-ilmasto h3:not(.ilm-otsikko) { font-size: 18px; margin: 0 0 4px; }
.ilm-selite { margin: 0 0 12px; font-size: 14px; color: var(--teksti-3); }
.ilm-selite i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 5px 0 0; vertical-align: -1px; }
.ilm-selite i.ilm-h { margin-left: 14px; }
.ilm-o { background: #E8A13A; }
.ilm-h { background: #7FA9D6; }
.ilm-kaavio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 200px; align-items: end; }
.ilm-kk { display: flex; flex-direction: column; align-items: center; height: 100%; border-radius: 8px; padding: 4px 0 0; }
.ilm-kk.tama { background: #fff; outline: 2px solid var(--sininen); outline-offset: -2px; }
.ilm-kk small { font-size: 12px; color: var(--teksti-4); padding: 4px 0; }
.ilm-kk.tama small { color: var(--sininen); font-weight: 700; }
.ilm-palkit { flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 2px; padding-top: 18px; }
.ilm-palkit span { position: relative; width: 40%; max-width: 22px; border-radius: 5px 5px 0 0; }
.ilm-palkit b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--teksti-2); padding-bottom: 1px; }
.ilm-palkit .ilm-h b { color: var(--teksti-4); }
@media (max-width: 560px) { .ilm-palkit .ilm-h b { display: none; } .ilm-kaavio { gap: 2px; } }
.ilm-taulu { margin-top: 20px; }
.ilm-taulu summary { cursor: pointer; font-weight: 600; color: var(--linkki); }
.ilm-rulla { overflow-x: auto; margin-top: 12px; }
.ilm-taulu table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: 15px; }
.ilm-taulu th, .ilm-taulu td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--reuna); white-space: nowrap; }
.ilm-taulu th:first-child { text-align: left; }
.ilm-taulu thead th { font-size: 13px; color: var(--teksti-4); font-weight: 600; }
.ilm-taulu tbody th { font-weight: 500; }
.ilm-taulu tr.tama { background: var(--lehti); font-weight: 600; }
.ilm-taulu .hki { color: var(--teksti-4); }
.saa-lahde { margin-top: 12px; font-size: 13px; }
