/* Site-wide styles that complement wix-base.css (shared header/footer/base rules migrated from Wix). */
html, body { background: #fff; color: var(--ink); font-family: "Open Sans", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* Header: wide two-column submenu (Tasa-arvotietoa) */
.menu .sub-wide { min-width: 560px; left: auto; right: -14px; }
.menu .sub-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.menu .sub-cols ul { list-style: none; margin: 0; padding: 0; }
.menu .sub-head { padding: 8px 12px 4px; font-family: Poppins, Arial, sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Mobile navigation */
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.mnav { display: none; border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 84px); overflow-y: auto; }
.mnav .wrap { display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 20px; }
.mnav a, .mnav summary { display: block; padding: 12px 0; font-family: Poppins, Arial, sans-serif; font-weight: 500; font-size: 16px; color: var(--navy); border-bottom: 1px solid var(--line); cursor: pointer; }
.mnav summary { list-style: none; position: relative; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary:after { content: ""; position: absolute; right: 6px; top: 18px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
.mnav details[open] summary:after { transform: rotate(-135deg); top: 22px; }
.mnav details a { padding-left: 18px; font-weight: 400; font-size: 15px; }
.mnav .btn { margin-top: 18px; align-self: flex-start; border-bottom: 0; }
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-join { display: none; }
  .mnav:not([hidden]) { display: block; }
}

/* Generic text pages (Hallitusohjelmatavoitteet, selosteet, videot, virhesivut) */
.phero-tieto { position: relative; overflow: hidden; color: #fff; background: var(--navy) url("/media/tieto_1800x620.jpg") center 40%/cover no-repeat; padding: 92px 0 96px; }
.phero-tieto p { font-size: 19px; color: rgba(255,255,255,.9); max-width: 640px; }
.article .wrap { max-width: 860px; }
.article h2 { font-size: 26px; font-weight: 600; margin: 40px 0 14px; }
.article h2:first-child { margin-top: 0; }
.article p { margin-bottom: 18px; color: #2a3744; }
.article ul, .article ol { margin: 0 0 18px 22px; color: #2a3744; }
.article li { margin-bottom: 8px; }
.article a { text-decoration: underline; text-decoration-color: rgba(31,122,140,.4); text-underline-offset: 3px; }
.article .legal { list-style: decimal; }
.article .legal li { margin-bottom: 14px; }
.article .legal b { color: var(--navy); }
.article .video { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 32px; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 14px 34px rgba(15,39,64,.14); }
.article .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.archive-note { margin-top: 40px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .phero-tieto h1 { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Toast message (TempData["Toast"]) */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; font-family: Poppins, Arial, sans-serif; font-weight: 600; font-size: 15px; padding: 14px 20px; border-radius: 12px; box-shadow: 0 14px 34px rgba(15,39,64,.3); border-left: 5px solid var(--amber); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: none; }
.toast-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--navy); font-size: 14px; }
@media (max-width: 600px) { .toast { left: 16px; right: 16px; bottom: 16px; } }



/* Article blockquote (model clauses etc.) */
.article blockquote { border-left: 5px solid var(--amber); background: var(--bg); padding: 16px 22px; margin: 0 0 18px; border-radius: 0 10px 10px 0; color: var(--navy); font-style: italic; }
.article .hint { font-size: 13.5px; color: var(--muted); }
