/* Lähiapu-teema: värit nykyisen resurssipankki.fi:n Avada-asetuksista.
   Pääväri #e3e25a (keltavihreä), hover #e2e200, toissijainen vihreä #a0ce4e, linkit #0222f4.
   Ladataan tokens.css:n jälkeen ja ylikirjoittaa vain värit; mitat ja fontit ovat yhteiset. */
:root {
  --c-brand: #e3e25a;
  --c-on-brand: #000;
  --c-button: #e3e25a;
  --c-button-hover: #e2e200;
  --c-on-button: #000;
  --c-link: #0222f4;
  --c-link-hover: #0119b0;
  --c-line: #e0dede;
  --c-line-light: #ebeaea;
  --c-line-dark: #cfcfcf;
  --c-bg-light: #f8f8dc;     /* vaalea keltainen korostuslaatikoihin */
  --c-bg-section: #f6f6f6;
  --c-bg-image: #ecebc2;
  --button-radius: 999px;    /* latauspainikkeet pyöreäreunaisia kuten vanhalla sivustolla */
}
/* Osionavigaation ja painikereunusten korostus vihreällä, jotta ne erottuvat keltaisesta taustasta */
.mobile-menu__button, .section-nav-mobile__list a[aria-current], .sidebar__children a[aria-current] { border-color: #a0ce4e; }
:focus-visible { outline-color: #a0ce4e; }
/* Sivubannerit ovat 1920 × 502 px:n kokonaisia kuvia: näytetään kokonaan, ei rajattuna. */
.hero { height: auto; }

/* ---------------------------------------------------------------------------
   Lähiavun oma ulkoasu (templates/themes/lahiapu/): vanhan resurssipankki.fi:n mukaan.
   Avadan asetukset: Source Sans Pro 300, 20/30 px, sisältöleveys 1100 px, valikko 22 px
   isoin kirjaimin keskitettynä keltaisessa 60 px palkissa, alatunnisteessa ihmishahmojen rivi.
   (Vanha sivusto ei lataa fonttia, joten useimmat näkevät siellä varafontin; tässä fontti latautuu.)
   --------------------------------------------------------------------------- */
body.theme-lahiapu { font-weight: 300; font-size: 20px; line-height: 1.5; color: #000; background: #fff; }
.theme-lahiapu b, .theme-lahiapu strong { font-weight: 600; }
.la-container { max-width: calc(1100px + 2 * var(--pad-x)); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* Valikkopalkki */
.la-header { background: var(--c-brand); position: relative; z-index: 20; }
.la-nav__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0 30px; list-style: none; }
.la-nav__list > li { position: relative; }
.la-nav__list > li > a { display: flex; align-items: center; gap: 6px; height: 60px; color: #000; text-decoration: none;
  font-size: 22px; font-weight: 300; text-transform: uppercase; border-bottom: 2px solid transparent; border-top: 2px solid transparent; }
.la-nav__list > li > a:hover { border-bottom-color: rgba(255, 255, 255, .7); }
.la-nav__list > li > a[aria-current] { border-bottom-color: #fff; }
.la-nav__sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; margin: 0; padding: 6px 0; list-style: none;
  background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.la-nav__list > li:hover > .la-nav__sub, .la-nav__list > li:focus-within > .la-nav__sub { display: block; }
.la-nav__sub a { display: block; padding: 8px 16px; color: #000; text-decoration: none; font-size: 17px; line-height: 1.35; }
.la-nav__sub a:hover { background: var(--c-bg-light); }
.la-lock { display: inline-block; width: .75em; height: .9em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 15'%3E%3Cpath d='M2 6V4a4 4 0 0 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h1zm2 0h4V4a2 2 0 0 0-4 0v2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 15'%3E%3Cpath d='M2 6V4a4 4 0 0 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h1zm2 0h4V4a2 2 0 0 0-4 0v2z'/%3E%3C/svg%3E") center / contain no-repeat; }

.la-mobile { display: none; }
.la-mobile__button { list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; height: 56px;
  font-size: 20px; text-transform: uppercase; }
.la-mobile__button::-webkit-details-marker { display: none; }
.la-mobile__list { margin: 0; padding: 0 0 12px; list-style: none; text-align: center; }
.la-mobile__list a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; color: #000; text-decoration: none;
  font-size: 20px; text-transform: uppercase; }
.la-mobile__list a[aria-current] { text-decoration: underline; text-decoration-color: #fff; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.la-mobile__list ul { margin: 0; padding: 0; list-style: none; }
.la-mobile__list ul a { text-transform: none; font-size: 18px; padding: 6px 16px; }
@media (max-width: 1000px) {
  .la-nav { display: none; }
  .la-mobile { display: block; }
}

/* Banneri koko leveydelle */
.la-hero img { display: block; width: 100%; height: auto; }

/* Sisältö */
.la-content { padding-top: 40px; padding-bottom: 60px; }
.theme-lahiapu .prose { font-size: 20px; line-height: 1.5; gap: 20px; }
.theme-lahiapu .prose a, .theme-lahiapu .prose .block-paragraph a { color: var(--c-link); font-weight: 400; text-decoration: none; }
.theme-lahiapu .prose a:hover, .theme-lahiapu .prose .block-paragraph a:hover { text-decoration: underline; color: var(--c-link-hover); }
/* Väliotsikot leipätekstin kokoisina kuten vanhalla sivustolla; kirjainkoko tulee sisällöstä. */
.theme-lahiapu .prose h2, .theme-lahiapu .prose h3, .theme-lahiapu .prose h4 {
  font-size: 20px; line-height: 1.5; font-weight: 400; margin: 0; }
.la-title { font-size: 22px; line-height: 1.4; font-weight: 400; text-transform: uppercase; margin: 0 0 20px; }

/* Alatunniste */
.la-footer { margin-top: auto; background: var(--c-brand); color: #000; }
.la-footer__main { padding: 50px 0 80px; min-height: 174px; box-sizing: border-box;
  background: url("../../img/lahiapu/ihmisvirta.a55391d42b7b.png") 50% 100% repeat-x; }
.la-footer__srk { display: inline-block; }
.la-footer__srk img { display: block; width: 312px; max-width: 100%; height: auto; }
.la-footer__copy { padding: 10px 0; font-size: 15px; line-height: 1.5; }
