/* srk.fi – komponentit. Mobiili ensin, työpöytä @media (min-width: 760px). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { color: var(--c-link-hover); }
:focus-visible { outline: 2px solid var(--c-button); outline-offset: 2px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
button { font: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--c-white); color: var(--c-link); padding: 8px 12px; }
.skip-link:focus { left: 8px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__main { flex: 1 0 auto; }

/* Painikkeet */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: 9px 18px;
  font-weight: 700; text-decoration: none; border: 0;
}
.button--primary { background: var(--c-button); color: var(--c-on-button); }
.button--primary:hover { background: var(--c-button-hover); color: var(--c-on-button); }
.button--inverse { background: var(--c-white); color: var(--c-link); padding: 13px 20px; }
.button--inverse:hover { color: var(--c-link-hover); }

/* ---------- Header: mobiili ---------- */
.header { border-top: 4px solid var(--c-brand); }
.topbar, .mainnav-wrap { display: none; }
.header__brand {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; }
.brand__logo { width: 36px; height: 36px; }
.brand__name--short { font-size: 20px; font-weight: 600; }
.brand__name--full { display: none; }
.header__tools { display: flex; align-items: center; gap: 4px; }
.header__search {
  width: var(--touch); height: var(--touch); display: flex; align-items: center; justify-content: center;
  color: var(--c-text); text-decoration: none; font-size: 20px;
}
.header__search-label { display: none; }

.header { position: relative; }
.mobile-menu__button {
  height: var(--touch); padding: 0 12px; display: flex; align-items: center;
  border: 2px solid var(--c-button); background: var(--c-white); color: var(--c-link); font-weight: 700;
}
.mobile-menu__close { display: none; }
.mobile-menu[open] .mobile-menu__open { display: none; }
.mobile-menu[open] .mobile-menu__close { display: inline; }
.mobile-menu__panel {
  /* Sijoittuu headerin alle koko leveydelle (.header on position: relative). */
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: var(--c-white); border-bottom: 1px solid var(--c-line);
  padding: 8px var(--pad-x) 20px;
  display: flex; flex-direction: column;
}
.mobile-menu__list a {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; border-bottom: 1px solid var(--c-line-light);
  color: var(--c-text); text-decoration: none; font-size: 18px; font-weight: 600;
}
.mobile-menu__list a span:last-child { color: var(--c-text-3); }
.mobile-menu__list a[aria-current] { color: var(--c-link); }
.mobile-menu__support { margin-top: 16px; padding: 14px 16px; justify-content: flex-start; }
.lang--mobile { padding-top: 16px; font-size: 15px; color: var(--c-text-2); display: flex; gap: 8px; flex-wrap: wrap; }
.lang__list { display: flex; gap: 12px; }
.lang--mobile a[aria-current] { font-weight: 700; text-decoration: none; }
.lang--topbar a { color: var(--c-on-brand); text-decoration: none; }
.lang--topbar a[aria-current] { text-decoration: underline; }

/* ---------- Banneri ---------- */
.banner { display: block; width: 100%; }
/* Korkeus tulee kuvan omista mitoista (width/height-attribuutit varaavat tilan latauksen ajaksi). */
.banner img { width: 100%; height: auto; }

/* ---------- Tervetuloa ---------- */
.welcome__inner {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: clamp(20px, 3vw, 32px); padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--c-line);
}
.welcome__verse { display: none; font-size: 14px; font-style: italic; color: var(--c-text-3); }
.welcome__title { font-size: clamp(28px, 4vw, 40px); font-weight: 600; text-transform: uppercase; line-height: 1.15; }
.welcome__text { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; max-width: 760px; text-wrap: pretty; }
.welcome__text--long:has(+ .welcome__text--short) { display: none; }

/* ---------- Osiot ---------- */
.section { padding: var(--pad-section) 0; }
.section--tinted { background: var(--c-bg-section); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section__title { font-size: clamp(26px, 3vw, 32px); font-weight: 600; line-height: 1.2; }
.section__more { font-weight: 600; }

/* Ajankohtaista */
.news__grid { display: flex; flex-direction: column; }
.news-card { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; }
.news-card:hover { color: var(--c-link); }
.news-card__img { background: var(--c-bg-image); aspect-ratio: 1; width: 100%; object-fit: cover; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { display: flex; flex-direction: column; gap: 2px; }
.news-card__date { font-size: 13px; color: var(--c-text-3); }
.news-card__title { font-size: 17px; font-weight: 600; line-height: 1.25; }
.news-card--lead { display: flex; flex-direction: column; gap: 8px; border-top: 0; padding: 0 0 8px; }
.news-card--lead .news-card__img { aspect-ratio: 16 / 10; }
.news-card--lead .news-card__date { font-size: 14px; }
.news-card--lead .news-card__title { font-size: 22px; line-height: 1.2; }
.news-card__lead { display: none; }
.news-card--desktop-only { display: none; }
.news__list { display: grid; grid-template-columns: 1fr; }

/* Toimintamme-ruudut */
.tiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: clamp(8px, 1.5vw, 16px); }
.tile {
  background: var(--c-white); border-top: 3px solid var(--c-brand);
  padding: clamp(14px, 2vw, 20px); min-height: 96px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  color: var(--c-text); text-decoration: none;
}
.tile:hover { background: var(--c-bg-light); color: var(--c-text); }
.tile__title { font-size: clamp(17px, 1.6vw, 19px); font-weight: 600; line-height: 1.25; }
.tile__sub { font-size: 14px; color: var(--c-text-3); }
.template-sectionpage .tile { border: 1px solid var(--c-line-light); border-top: 3px solid var(--c-brand); }

/* Leirit ja kurssit */
.events__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 48px; }
.event-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-size: 17px; }
.event-row:hover { color: var(--c-link); }
.event-row__date { font-weight: 700; }
.event-row__body { display: flex; flex-direction: column; }
.event-row__meta { font-size: 14px; color: var(--c-text-3); }
.event-row--desktop-only { display: none; }

/* Tue toimintaa */
.support { background: var(--c-button); color: var(--c-on-button); padding: clamp(32px, 5vw, 48px) 0; }
.support__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.support__text { display: flex; flex-direction: column; gap: 6px; max-width: 640px; font-size: 17px; line-height: 1.5; }
.support__title { font-size: clamp(24px, 3vw, 30px); font-weight: 600; }

/* ---------- Alatunniste ---------- */
.footer { background: var(--c-brand); color: var(--c-on-brand); padding: clamp(28px, 4vw, 40px) 0; font-size: 15px; line-height: 1.6; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer__col { display: flex; flex-direction: column; gap: 2px; }
.footer__title { font-weight: 700; padding-bottom: 4px; }
.footer__title--brand { font-size: 17px; }
.footer a { color: var(--c-on-brand); text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--c-on-brand); }
.footer__inline { display: flex; gap: 6px; flex-wrap: wrap; }
.footer__inline li + li::before { content: "· "; }

/* ---------- Sisäsivu ---------- */
.page-head { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.breadcrumbs { margin-bottom: clamp(8px, 2vw, 20px); }  /* lähellä headerin viivaa, väljästi otsikkoon */
.breadcrumbs ol { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--c-text-3); }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-link); text-decoration: underline; }
.page-head__title { font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.page-head__title--news { text-transform: none; font-size: clamp(28px, 3.6vw, 44px); }
.page-head__lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; max-width: 820px; color: #333; text-wrap: pretty; }

.section-nav-mobile-wrap { padding-top: 16px; }
.section-nav-mobile summary {
  width: 100%; min-height: 52px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px; background: var(--c-bg-light); border-top: 3px solid var(--c-brand);
  font-size: 17px; font-weight: 600;
}
.section-nav-mobile__icon::before { content: "+"; }
.section-nav-mobile[open] .section-nav-mobile__icon::before { content: "–"; }
.section-nav-mobile__list { display: flex; flex-direction: column; background: var(--c-bg-light); padding: 0 16px 8px; }
.section-nav-mobile__list a {
  min-height: 48px; display: flex; align-items: center; padding-left: 12px;
  border-left: 3px solid var(--c-line-dark); color: var(--c-text); text-decoration: none; font-size: 17px;
}
.section-nav-mobile__list a[aria-current] { border-left-color: var(--c-button); color: var(--c-link); font-weight: 700; }

.hero { width: 100%; height: 200px; object-fit: cover; margin-top: clamp(16px, 3vw, 28px); }
.content-layout { display: flex; gap: 56px; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); }
.sidebar { display: none; }

.prose { flex: 1 1 auto; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.65; }
.prose--wide { max-width: 1040px; }  /* ilman sivupalkkia (esim. Lähiapu) */
.prose p { margin: 0; }
/* Leipätekstin linkit: tekstin väri ja teeman värinen alleviivaus, hover tuo linkkivärin */
.prose .block-paragraph a { color: inherit; text-decoration: underline; text-decoration-color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose .block-paragraph a:hover { color: var(--c-link); text-decoration-thickness: 2px; }
.prose .block-paragraph h3, .prose .block-paragraph h4 { font-size: 19px; font-weight: 600; margin: .6em 0 .2em; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose .link-list, .prose .file-list, .prose .block-fact-box__rows { list-style: none; padding-left: 0; }
.block-heading { font-size: clamp(22px, 2.4vw, 26px); font-weight: 600; line-height: 1.2; padding-top: 6px; scroll-margin-top: 16px; }
.block-heading--h3 { font-size: clamp(19px, 2vw, 21px); }
.block-quote { background: var(--c-bg-light); border-left: 3px solid var(--c-brand); padding: 16px 20px; font-size: 21px; font-style: italic; line-height: 1.45; }
.block-quote footer { font-size: 15px; font-style: normal; color: var(--c-text-3); margin-top: 8px; }
.block-fact-box { background: var(--c-bg-light); border-top: 3px solid var(--c-brand); padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.block-fact-box__title { font-size: 19px; font-weight: 600; }
.block-fact-box__rows { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; }
.block-fact-box__rows dt { font-weight: 700; }
.block-fact-box .button { align-self: flex-start; }
.block-grouped-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; border-top: 3px solid var(--c-brand); }
.block-grouped-list__group { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--c-line-light); }
.block-grouped-list__title { font-weight: 700; font-size: 17px; }
.block-grouped-list__items { font-size: 16px; line-height: 1.55; color: #333; }
.link-list { border-top: 1px solid var(--c-line); display: flex; flex-direction: column; }
.link-list a {
  min-height: 52px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-weight: 600; font-size: 17px;
}
.link-list a:hover { color: var(--c-link); }
.link-list .chevron { color: var(--c-link); }
/* Tiedostolista ja painikemuotoinen linkkilista: täytetty / ääriviivallinen painike.
   Kulmien pyöreys tulee teemasta (--button-radius), Lähiavussa pillerimäinen. */
.file-list, .link-list--buttons { margin: 0; display: flex; flex-direction: column; gap: 10px; border-top: 0; }
.file-list__link, .link-button {
  display: flex; align-items: center; gap: 12px; min-height: var(--touch); padding: 10px 16px 10px 14px;
  border-radius: var(--button-radius, 6px); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.3;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.file-list__link { background: var(--c-button); color: var(--c-on-button); }
.file-list__link:hover { background: var(--c-button-hover); color: var(--c-on-button); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.file-list__icon, .link-button__icon { flex: 0 0 auto; }
.file-list__label { flex: 1 1 auto; min-width: 0; }
.file-list__type {
  flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .14);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
}
.link-list--buttons .link-button {
  border: 2px solid var(--c-button); background: var(--c-white); color: var(--c-text); min-height: 0; border-bottom-width: 2px;
}
.link-list--buttons .link-button > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.link-list--buttons .link-button:hover { background: var(--c-bg-light); color: var(--c-link); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0, 0, 0, .10); }
.link-button__kind { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--c-text-3); white-space: nowrap; }
.block-image img { width: 100%; height: auto; }
.block-columns__grid { display: grid; grid-template-columns: 1fr; gap: 22px 32px; }
.block-columns__col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (min-width: 760px) {
  .block-columns__grid { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
  .block-columns__grid--narrow-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
}
.block-image figcaption { font-size: 14px; color: var(--c-text-3); padding-top: 8px; }
.block-cta { margin-top: 8px; background: var(--c-button); color: var(--c-on-button); padding: clamp(20px, 3vw, 28px); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.block-cta__text { display: flex; flex-direction: column; gap: 4px; max-width: 440px; }
.block-cta__title { font-size: 22px; font-weight: 600; }
.block-cta__body { font-size: 16px; line-height: 1.5; }
.block-cta .button { padding: 12px 18px; font-size: 16px; }

/* Haku ja listaukset */
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input { flex: 1; min-height: var(--touch); padding: 0 12px; border: 2px solid var(--c-line-dark); font: inherit; }
.filter { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.filter a[aria-current] { color: var(--c-text); text-decoration: none; border-bottom: 3px solid var(--c-brand); }
.pagination { display: flex; gap: 24px; padding-top: 24px; font-weight: 600; }

/* ---------- Työpöytä ---------- */
@media (min-width: 760px) {
  .header { border-top: 0; }
  .topbar { display: block; background: var(--c-brand); color: var(--c-on-brand); font-size: 14px; font-weight: 600; }
  .topbar__inner { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
  .topbar__sites { display: flex; gap: 22px; }
  .topbar__sites a { color: var(--c-on-brand); text-decoration: none; white-space: nowrap; }
  .topbar__sites a:hover { text-decoration: underline; }
  .lang--topbar .lang__list { gap: 10px; }
  .lang--topbar a:not([aria-current]) { opacity: .85; }

  .header__brand { padding-top: 22px; padding-bottom: 0; border-bottom: 0; }
  .brand { gap: 14px; }
  .brand__logo { width: 46px; height: 46px; }
  .brand__name--short { display: none; }
  .brand__name--full { display: inline; font-size: 24px; font-weight: 400; }
  .header__search { width: auto; height: auto; gap: 4px; font-size: 15px; color: var(--c-text-2); }
  .header__search-icon { font-size: 15px; }
  .header__search-label { display: inline; }
  .mobile-menu { display: none; }

  .mainnav-wrap { display: block; border-bottom: 1px solid var(--c-line); }
  .mainnav__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
  .mainnav__list { display: flex; gap: 26px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
  .mainnav__item { position: relative; }
  .mainnav__item > a { color: var(--c-text); text-decoration: none; white-space: nowrap; padding: 8px 0; display: inline-block; }
  .mainnav__item > a:hover, .mainnav__item > a.is-active { color: var(--c-link); }
  .mainnav__sub {
    display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 240px;
    background: var(--c-white); border: 1px solid var(--c-line); border-top: 3px solid var(--c-brand);
    text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 16px; padding: 6px 0;
  }
  .mainnav__item:hover .mainnav__sub, .mainnav__item:focus-within .mainnav__sub { display: block; }
  .mainnav__sub a { display: block; padding: 8px 16px; color: var(--c-text); text-decoration: none; }
  .mainnav__sub a:hover { background: var(--c-bg-light); color: var(--c-link); }
  .mainnav__inner .button { padding: 9px 18px; min-height: 0; }

  .welcome__verse { display: block; }
  .welcome__text--long:has(+ .welcome__text--short) { display: block; }
  .welcome__text--short { display: none; }

  .news__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
  .news-card { display: flex; flex-direction: column; gap: 8px; padding: 0; border-top: 0; }
  .news-card__img { aspect-ratio: 3 / 2; }
  .news-card__date { font-size: 14px; }
  .news-card__title { font-size: 18px; }
  .news-card--lead { grid-row: span 2; gap: 12px; }
  .news-card--lead .news-card__img { aspect-ratio: 16 / 10; }
  .news-card--lead .news-card__title { font-size: 28px; }
  .news-card__lead { display: block; font-size: 17px; color: var(--c-text-2); line-height: 1.5; }
  .news-card--desktop-only { display: flex; }
  .news__list { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .tiles__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
  .tile { min-height: 120px; }
  .event-row--desktop-only { display: grid; }

  .section-nav-mobile-wrap, .section-nav-mobile { display: none; }
  .hero { height: clamp(240px, 30vw, 400px); }
  .sidebar { display: flex; flex-direction: column; flex: 0 0 250px; }
  .sidebar__section { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); padding-bottom: 10px; text-decoration: none; }
  .sidebar__group-link { padding: 10px 0; border-top: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; }
  .sidebar__group-link:hover { color: var(--c-link); }
  .sidebar__icon { color: var(--c-text-3); }
  .sidebar__children { display: flex; flex-direction: column; padding: 0 0 10px; }
  .sidebar__children a { padding: 7px 0 7px 12px; border-left: 3px solid var(--c-line-dark); color: var(--c-text); text-decoration: none; font-size: 16px; }
  .sidebar__children a:hover { color: var(--c-link); }
  .sidebar__children a[aria-current] { border-left-color: var(--c-button); color: var(--c-link); font-weight: 700; }
  .content-layout--single { justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Video, ääni, taulukko ---------- */
.block-video .responsive-object { position: relative; width: 100%; height: 0; }
.block-video .responsive-object iframe, .block-video .responsive-object embed, .block-video .responsive-object object {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.block-video figcaption, .block-audio__desc { font-size: 14px; color: var(--c-text-3); padding-top: 8px; }
.block-audio { padding: 16px 20px; background: var(--c-bg-light); border-left: 4px solid var(--c-brand); }
.block-audio__title { font-weight: 600; margin-bottom: 8px; }
.block-audio__player { width: 100%; display: block; }
.block-table { overflow-x: auto; }
.block-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.block-table th, .block-table td { padding: 8px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.block-table th { background: var(--c-bg-section); font-weight: 600; }
.block-table caption { caption-side: bottom; font-size: 14px; color: var(--c-text-3); padding-top: 8px; text-align: left; }

.block-embed iframe { width: 100%; height: var(--embed-h, 600px); border: 0; display: block; }

/* ---------- Lomake ---------- */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form input[type="url"], .form input[type="number"],
.form input[type="date"], .form input[type="datetime-local"], .form select, .form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--c-line-dark); background: var(--c-white); min-height: var(--touch);
}
.form textarea { min-height: 140px; resize: vertical; }
.form__help { font-size: 14px; color: var(--c-text-3); }
.form__error, .form__errors { color: #a4262c; font-size: 15px; }
.has-error input, .has-error textarea, .has-error select { border-color: #a4262c; }
.form button { align-self: flex-start; }
.form-thanks { font-size: 18px; }

/* ---------- Leirikeskukset (Leirille.fi) ---------- */
.centres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.centre-card { display: flex; flex-direction: column; background: var(--c-white); border-top: 3px solid var(--c-brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); color: var(--c-text); text-decoration: none; }
.centre-card:hover { background: var(--c-bg-light); color: var(--c-link); }
.centre-card__image { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.centre-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.centre-card__title { font-size: 19px; font-weight: 600; }
.centre-card__meta { font-size: 14px; color: var(--c-text-3); }
.centre-notice { margin-top: 16px; padding: 14px 18px; background: var(--c-bg-light); border-left: 4px solid var(--c-brand); font-size: 17px; }
.centre-notice p { margin: 0; }
.centre-notice p + p { margin-top: 8px; }
.hero--natural { height: auto; }
.centre-facts { display: grid; grid-template-columns: 1fr; gap: 0 32px; margin: 0; font-size: 16px; }
.centre-facts__item { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.centre-facts__item dd { margin: 0; }
.centre-facts__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-3); }
@media (min-width: 760px) { .centre-facts { grid-template-columns: 1fr 1fr; } }
