/* Remo – yhteinen sivupohja: yläpalkki, sisältökehys ja kelluva avustaja */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap");
:root { --ink: #172238; --muted: #56627A; --brand: #1E4F91; --brand-deep: #16294A; --line: #DDE5EF; --paper: #F6F8FB; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 1rem/1.5 "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }

.rs-top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.rs-in { max-width: 1240px; margin: 0 auto; padding: .45rem 1.25rem; display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.rs-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.rs-brand img { height: 46px; width: auto; display: block; }
.rs-brand span { font-size: 1.2rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.rs-nav a { color: var(--muted); text-decoration: none; padding: .55rem .7rem; border-radius: 8px; font-size: 1rem; white-space: nowrap; }
.rs-nav a:hover { color: var(--brand); background: #EEF3F9; }
.rs-nav a[aria-current="page"] { color: var(--brand-deep); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.rs-nav a:focus-visible, .rs-brand:focus-visible, .rs-burger:focus-visible { outline: 3px solid #3B8DDE; outline-offset: 2px; }
.rs-burger { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; padding: 10px; }
.rs-burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 980px) {
  .rs-burger { display: block; }
  .rs-brand span { font-size: 1.05rem; }
  .rs-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
            flex-direction: column; padding: .4rem 1rem 1rem; box-shadow: 0 12px 24px -12px rgba(22,41,74,.25); }
  .rs-nav.open { display: flex; }
  .rs-nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .rs-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); padding-left: .9rem; }
}
@media (max-width: 1280px) { .rs-brand span { display: none; } }
@media (max-width: 520px) { .rs-brand img { height: 40px; } }

.rs-main { max-width: 1240px; margin: 0 auto; padding: 1.2rem 1.25rem 4rem; }
.page-etusivu .rs-main { max-width: none; padding: 0; }
.rs-frame { display: block; width: 100%; height: 75vh; border: 0; background: transparent; }

/* Kelluva avustaja */
.rs-chat-btn { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: .55rem;
  border: 0; border-radius: 999px; padding: .85rem 1.15rem .85rem .95rem; background: var(--brand); color: #fff; cursor: pointer;
  font: 700 1rem/1 "Source Sans 3", system-ui, sans-serif; box-shadow: 0 10px 28px -8px rgba(22,41,74,.55); }
.rs-chat-btn:hover { background: var(--brand-deep); }
.rs-chat-btn:focus-visible { outline: 3px solid #3B8DDE; outline-offset: 3px; }
.rs-chat { position: fixed; right: 20px; bottom: 88px; z-index: 61; width: 400px; height: min(640px, calc(100vh - 120px));
  background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -18px rgba(22,41,74,.55); border: 1px solid var(--line); }
.rs-chat[hidden] { display: none; }
.rs-chat-head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem .6rem 1rem; background: var(--brand-deep); color: #fff; }
.rs-chat { position: fixed; }
.rs-chat-x { position: absolute; top: 12px; right: 12px; z-index: 2; border: 0; background: #EEF3F9; color: var(--ink); font-size: 1rem; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.rs-chat-x:hover { background: #DDE5EF; }
.rs-chat iframe { flex: 1; width: 100%; border: 0; }
@media (max-width: 560px) {
  .rs-chat-btn { right: 14px; bottom: 14px; padding: .9rem; }
  .rs-chat-btn span { display: none; }
  .rs-chat { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
}
