﻿:root {
  --c-primary: #a22d1b;
  --c-primary-dark: #7e2214;
  --c-secondary: #fbb040;
  --c-accent: #ed7e2b;
  --c-ink: #000;
  --c-muted: #4f4e4c;
  --c-surface: #eeedeb;
  --c-line: #868789;
  --container: 125rem;
  --pad: 3rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--c-ink); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: Mulish, Arial, Helvetica, sans-serif; font-weight: 700; color: var(--c-primary); line-height: 1.16; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
p { margin: 0; }
a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--c-primary); }
address { font-style: normal; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.icon { display: inline-flex; flex: none; width: 1.25em; height: 1.25em; vertical-align: middle; }
.icon svg { width: 100%; height: 100%; }
.site-main { min-height: 50vh; padding-bottom: 3rem; }

/* Napit */
.button, .menu--buttons a {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1rem; border: 1px solid #000; background: transparent; color: #000;
  font-weight: 700; letter-spacing: .025rem; text-decoration: none; transition: all .15s ease-in-out;
}
.button--primary, .menu--buttons .menu-item:last-child a { background: #000; color: #fff; }
.button:hover, .menu--buttons a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* Yläpalkki */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: relative; z-index: 40; }
.site-header__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2.75rem; padding-bottom: .5rem; }
.site-logo img { display: block; width: 10rem; height: auto; }
.site-header__tools .menu { gap: .5rem; flex-wrap: nowrap; }
.menu { display: flex; flex-wrap: wrap; }
.menu a { text-decoration: none; }
.menu--primary { margin-inline: -.8rem; }
.menu--primary > .menu-item > a {
  display: flex; align-items: center; gap: .125rem; padding: .75rem .8rem; font-size: 1.125rem; font-weight: 700; line-height: 1.28;
}
.menu--primary > .menu-item > a:hover,
.menu--primary .current-menu-item > a, .menu--primary .current-menu-ancestor > a { color: var(--c-primary); }
.icon--chevron { width: 1.125rem; height: 1.125rem; }
.icon--external { width: 1.125rem; height: 1.125rem; }
.menu--primary > .menu-item { position: relative; }
.sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 18rem; padding: .5rem 0; background: #fff;
  border: 1px solid var(--c-line); box-shadow: 0 4px 12px rgb(0 0 0 / .12); display: none; z-index: 50;
}
.menu-item:hover > .sub-menu, .menu-item:focus-within > .sub-menu { display: block; }
.sub-menu a { display: block; padding: .5rem 1rem; font-weight: 700; }
.sub-menu a:hover, .sub-menu .current-menu-item > a { color: var(--c-primary); }
.nav-toggle { display: none; }

@media (max-width: 63.99rem) {
  :root { --pad: 1.25rem; }
  .site-header > .container { padding-left: 1.25rem; padding-right: 0; }
  .site-header__top { padding-top: .75rem; padding-bottom: 0; align-items: flex-start; gap: 0; }
  .site-logo img { width: 9.5rem; }
  .site-header__tools { display: none; }
  .nav-toggle {
    display: block; position: relative; width: 4.5rem; height: 5.5rem; margin-top: -.75rem; padding: 0; border: 0;
    background: var(--c-primary, #a22d1b); color: #fff; cursor: pointer;
  }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle::before {
    content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 50%; height: 2px; background: #fff;
    box-shadow: 0 -.6rem 0 #fff, 0 .6rem 0 #fff; transform: translateY(-50%);
  }
  .nav-toggle[aria-expanded="true"]::before { box-shadow: none; transform: translateY(-50%) rotate(45deg); }
  .nav-toggle[aria-expanded="true"]::after {
    content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 50%; height: 2px; background: #fff; transform: translateY(-50%) rotate(-45deg);
  }
  body.home .site-header { position: absolute; inset: 0 0 auto 0; background: transparent; border: 0; }
  .site-header__nav { background: #fff; margin-left: -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-header__nav { display: none; padding-bottom: 1rem; }
  .site-header__nav.is-open { display: block; }
  .menu--primary { flex-direction: column; }
  .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 .5rem 1rem; }
  .icon--chevron { display: none; }
}

/* Hero */
.hero { position: relative; margin-bottom: 4.5rem; }
.hero__image img { display: block; width: 100%; height: 37.5rem; object-fit: cover; background: var(--c-surface); }
.hero__image { min-height: 37.5rem; background: var(--c-surface); }
.hero__wrap { position: absolute; left: 0; right: 0; bottom: -.75rem; max-width: none; padding-inline: 0; }
.hero__card { width: calc(30rem + max(0px, (100vw - var(--container)) / 2)); max-width: 100%; padding: 3rem 3rem 3rem max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad))); background: var(--c-secondary); }
.hero__card h1 { font-size: 2rem; }
.summary { font-size: 1.25rem; line-height: 1.6; margin-top: 1rem; }
.hero__links { margin-top: 1.5rem; }
.hero__links li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: 1.125rem; font-weight: 700; }
.hero__links a { color: #1b1919; }
@media (max-width: 47.99rem) {
  .hero__image img { height: 16rem; }
  .hero__image { min-height: 0; }
  .hero__wrap { position: static; padding: 0; }
  .hero__card { width: auto; padding: 1.5rem var(--pad); }
  .hero { margin-bottom: 2rem; }
}

/* Tietorivi */
.infobar { margin-bottom: 3rem; }
.info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.info-list li { display: flex; gap: .75rem; align-items: flex-start; }
.info-list__icon { width: 1.75rem; height: 1.75rem; margin-top: .125rem; }
.info-list--bar { flex-direction: row; flex-wrap: wrap; gap: 2rem; }
.info-list--bar li { flex: 1 1 14rem; }
.info-list--bar .info-list__icon { flex: none; box-sizing: border-box; width: 3.5rem; height: 3.5rem; margin-top: 0; padding: .875rem; border-radius: 50%; background: rgb(251 175 64 / .25); color: var(--c-primary); }
.sub-menu .menu-item__icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--c-primary); }
.sub-menu a { display: flex; align-items: center; gap: .75rem; }

/* Osiot ja kortit */
.section { margin-block: 4rem; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section__more { margin-top: 2rem; text-align: right; font-weight: 700; }
.card-grid { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 79.99rem) { .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 63.99rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 39.99rem) { .card-grid, .card-grid--4 { grid-template-columns: 1fr; } }

.card__image { display: block; position: relative; margin-bottom: .75rem; }
.card__image img, .card__placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-surface); }
.card__placeholder { height: auto; }
.terms { position: absolute; left: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.terms__item { padding: .4rem .6rem; background: var(--c-accent); color: #000; font-weight: 700; line-height: 1.2; }
.card__title { font-size: 1.25rem; line-height: 1.4; color: #000; margin-bottom: .5rem; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--c-primary); text-decoration: underline; }
.card__meta { color: #000; }
.card__excerpt { margin-top: .75rem; }

/* Karuselli */
.carousel__buttons { display: flex; gap: 1rem; }
.carousel__btn { display: inline-flex; padding: .25rem; border: 0; background: none; cursor: pointer; color: #000; }
.carousel__btn .icon { width: 2rem; height: 2rem; }
.carousel__btn:disabled { color: #999; cursor: default; }
.carousel__track { display: flex; gap: 2.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 calc((100% - 5rem) / 3); scroll-snap-align: start; min-width: 15rem; }
@media (max-width: 47.99rem) { .carousel__item { flex-basis: 80%; } }

/* Sisältösivut */
.banner { margin: 0; }
.banner img { display: block; width: 100%; height: 15.5rem; object-fit: cover; }
.breadcrumbs { margin: 2rem 0 1rem; font-size: .9375rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { margin-top: .5rem; }
.page-header__meta { margin-top: .5rem; color: var(--c-muted); }
.container--page { max-width: 96rem; }
.site-header > .container { max-width: none; padding-left: 3.5rem; padding-right: 3rem; }
.site-header__top { padding-top: 2rem; padding-bottom: .75rem; }
.site-logo img { width: 10.3rem; }
.layout { display: block; }
@media (min-width: 64rem) {
  .layout { display: grid; grid-template-columns: minmax(0, 20rem) min(64rem, 76.25%); justify-content: space-between; gap: 3rem; }
  .layout > aside { grid-column: 1; grid-row: 1; }
  .layout > article { grid-column: 2; grid-row: 1; min-width: 0; }
}
.section-nav { padding-top: 4.25rem; }
.event-meta { margin: 0 0 1rem; }
.event-meta p { margin: 0 0 .5rem; }
.event-meta strong { font-size: 1.125rem; margin-right: .5rem; }
.event-terms { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.event-terms a { padding: .4rem .6rem; background: #ed7e2b; color: #000; font-weight: 700; line-height: 1.2; border-radius: 4px; text-decoration: none; }
.event-image { margin: 0 0 1.5rem; }
.event-image img { display: block; width: 100%; height: auto; }
.upcoming { padding-top: 4.25rem; }
.upcoming__title { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 700; color: var(--c-primary); }
.upcoming li { padding: .5rem 0; }
.upcoming img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .5rem; }
.upcoming a { font-weight: 500; }
.upcoming time { display: block; font-size: .875rem; }
.share { margin-top: 2rem; }
.prose div:has(> .sharing-buttons) { border-top: 1px solid #d4d6d8; padding-top: 2rem; margin-top: 2rem; }
.prose div:has(> .sharing-buttons) h2 { font-size: 1.5rem; color: #000; margin: 0 0 1rem; }
.prose ul.no-list.sharing-buttons { display: flex; flex-flow: row wrap; margin: -.5rem -.5rem 0; padding: 0; list-style: none; }
.sharing-buttons li { display: block; margin: .5rem; padding: 0; }
.sharing-buttons li::before { content: none; }
.sharing-buttons a { display: flex; padding: 1rem; border-radius: 4px; color: #fff; text-decoration: none; }
.sharing-buttons a:hover, .sharing-buttons a:focus { text-decoration: underline; }
.sharing-buttons .icon { width: 15.75px; height: 18px; }
.sharing-buttons svg { fill: #fff; }
.sharing-buttons .bg-blue-700 { background: #1d4ed8; }
.sharing-buttons .bg-blue-500 { background: #3b82f6; }
.sharing-buttons .bg-gray-600 { background: #4b5563; }
.sharing-buttons .bg-green-600 { background: #16a34a; }
.sharing-buttons .bg-blue-600 { background: #2563eb; }
.prose .wp-block-cover { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 270px; padding: 1rem; margin-block: 2rem; text-align: center; }
.prose .wp-block-cover__background { position: absolute; inset: 0; z-index: -1; }
.prose .wp-block-cover__background:not(.has-background-dim-100) { opacity: .5; }
.prose .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; margin: 0; }
.prose .wp-block-cover__inner-container { width: 100%; }
.prose .wp-block-cover h2 { color: #000; text-align: center; margin: 0 0 1rem; }
.prose .wp-block-cover h2.has-white-color { color: #fff; font-weight: 700; }
.prose .wp-block-cover p { text-align: center; }
.prose .has-yellow-background-color { background-color: #fbb040; }
.prose .has-brown-background-color { background-color: #bf5620; }
.prose .wp-block-buttons { display: flex; justify-content: center; }
.section-nav__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; }
.section-nav__title a { text-decoration: none; font-weight: 700; font-size: inherit; }
.section-nav li { padding: .35rem 0 .35rem 1.5rem; }
.section-nav a { font-weight: 400; font-size: 1.125rem; }
.section-nav .section-nav__title a { font-weight: 700; font-size: inherit; }
.section-nav .current_page_item > a { color: var(--c-primary); font-weight: 700; }
@media (max-width: 63.99rem) {
  .section-nav, .upcoming { padding-top: 0; margin-top: 1.5rem; }
}

.prose { font-size: 1.125rem; line-height: 1.67; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.75rem; margin: 2.5rem 0 2rem; }
.prose h3 { font-size: 1.5rem; color: #000; margin: 1.5rem 0 2rem; }
.prose h2.as-h3 { font-size: 1.5rem; color: #000; margin: 1.5rem 0 2rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; }
.prose a { color: var(--c-primary); }
.prose :where(p, li) a:not(.wp-block-button__link) { color: #000; font-weight: 700; }
.prose .wp-block-contacts a { font-weight: 500; }
.prose .lunch-block h2 { font-size: 1.75rem; margin: 2rem 0 0; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; }
.prose ul.lunch-list { list-style: none; padding: 0; margin: 0; }
.prose .lunch-list li { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid #e5e7eb; }
.prose .lunch-list h3 { margin: 0; }
.prose .lunch-list p { margin: 0; }
@media (max-width: 640px) { .prose .lunch-list li { grid-template-columns: 1fr; } }
.prose--home { margin-top: 2rem; text-align: center; }
.prose--home h1, .prose--home h2 { text-align: center; }
.prose img { height: auto; }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter a { display: inline-block; padding: .5rem 1rem; border: 1px solid #000; font-weight: 700; text-decoration: none; }
.filter a[aria-current="page"], .filter a:hover { background: #000; color: #fff; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination a, .pagination span { padding: .5rem .875rem; border: 1px solid #000; font-weight: 700; text-decoration: none; }
.pagination .current { background: #000; color: #fff; }

/* Etusivun sisältölohkot */
.feature { margin-block: 4rem; }
.feature--dark { margin-block: 4rem 0; color: #fff; position: relative; isolation: isolate; padding-top: 25vw; }
.feature--dark::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34vw; background: var(--feature-bg) center / cover no-repeat; z-index: -1; }
.feature--dark a { color: #fff; }
.feature--dark .feature__inner--cols { max-width: none; width: auto; margin-left: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad))); padding: 5rem; background: #1b1919; }
.feature--dark .feature__col + .feature__col { border-left: 1px solid rgb(255 255 255 / .2); padding-left: 5rem; }
.feature--dark .feature__col h3 { margin: 0 0 1.5rem; font-size: 1.5rem; }
.feature--dark .feature__col a { font-weight: 700; }
.feature--dark .feature__col:last-child > p:last-child { margin-top: 2rem; }
.feature__inner--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.feature__col > * + * { margin-top: 1rem; }
.feature__col img { width: 15rem; height: auto; }
.feature__col h3 { color: #fff; font-size: 1.5rem; }
.feature__col p { line-height: 1.6; }
.feature--split .feature__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 0; align-items: stretch; }
.feature__image img { display: block; width: 100%; height: 100%; min-height: 20rem; object-fit: cover; }
.feature__card { padding: 3rem; background-repeat: no-repeat; background-position: right 2rem top 2rem; background-size: 8rem; }
.feature__card > * + * { margin-top: 1rem; }
.feature__card--yellow { background-color: var(--c-secondary); }
.feature__card--light { background-color: var(--c-surface); display: flex; flex-direction: column; justify-content: center; }
.feature__card--wide { grid-column: 1 / -1; }
.feature__card p { font-size: 1.125rem; line-height: 1.6; }
.feature__card a { color: #000; }
.kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .875rem !important; }
.feature--split .feature__inner:has(.feature__card--wide), .feature .feature__inner:has(.feature__card--wide) { display: block; }

.related__title { text-align: center; margin-bottom: 2rem; }
.related__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.related__list li { display: flex; flex-direction: column; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.125rem; }
.related__icon { display: flex; align-items: center; justify-content: center; width: 6rem; height: 6rem; border-radius: 50%; background: #fbeacf; color: #a22d1b; }
.related__icon svg { width: 3rem; height: 3rem; }
@media (max-width: 63.99rem) {
  .feature__inner--cols, .feature--split .feature__inner { grid-template-columns: 1fr; }
  .feature--dark { padding-top: 40vw; }
  .feature--dark::before { height: 55vw; }
  .feature--dark .feature__inner--cols { padding: 2rem 1.5rem; margin-left: 0; }
  .feature--dark .feature__col + .feature__col { border-left: 0; padding-left: 0; }
  .related__list { grid-template-columns: repeat(2, 1fr); }
  .feature__card { padding: 1.5rem; }
}

/* Alatunniste */
.site-footer { margin-top: 5rem; }
.newsletter { background: var(--c-secondary); padding-block: 3rem; }
.newsletter__inner { display: grid; grid-template-columns: 1fr 2fr auto; gap: 2rem; align-items: center; }
.newsletter__text { font-size: 1.25rem; line-height: 1.6; }
@media (max-width: 63.99rem) { .newsletter__inner { grid-template-columns: 1fr; justify-items: start; } }

.site-footer__main { background: var(--c-primary) no-repeat bottom center / contain; color: #fff; padding-block: 5rem; }
.site-footer__main a { color: #fff; }
.site-footer__main a:hover { color: var(--c-secondary); }
.site-footer__logo { display: block; width: 12rem; height: auto; margin-bottom: 1.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 2rem 3rem; }
.site-footer__title { font-size: 1.125rem; color: #fff; margin-bottom: .75rem; }
.site-footer__about p, .site-footer address { line-height: 1.7; }
.site-footer__col--about p { margin-top: 1rem; }
.site-footer__nav .menu, .site-footer__legal .menu { flex-direction: column; gap: .75rem; }
.site-footer__nav a { font-weight: 700; text-decoration: underline; }
.site-footer__legal a { text-decoration: underline; }
.site-footer .icon--external { width: 1rem; height: 1rem; margin-left: .25rem; }
.social { display: flex; gap: .75rem; margin-top: 2rem; }
.social a { display: block; color: var(--c-accent); }
.social a:hover { color: var(--c-secondary); }
.social .icon { width: 3rem; height: 3rem; }
@media (max-width: 63.99rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 39.99rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Haku */
.search-form { display: flex; gap: .5rem; max-width: 40rem; margin-top: 1rem; }
.search-form__input { flex: 1; padding: .7rem 1rem; border: 2px solid #000; font: inherit; border-radius: 0; }
.search-count { margin-top: 1rem; }
.search-results { list-style: none; margin: 2rem 0; padding: 0; }
.search-results__item { padding: 1.25rem 0; border-top: 1px solid #ddd; }
.search-results__item h2 { margin: .25rem 0; font-size: 1.4rem; }
.search-results__item p { margin: 0; }

/* Evästesuostumus */
.consent { position: fixed; z-index: 1000; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; background: #fff; border: 2px solid #000; padding: 1.25rem; box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.consent[hidden] { display: none; }
.consent h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.consent p { margin: 0 0 1rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* Tuodun sisällön lohkot (.prose) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.prose img { max-width: 100%; height: auto; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .9rem; margin-top: .5rem; }
.prose .has-text-align-center { text-align: center; }
.prose .font-bold { font-weight: 700; }
.prose .mb-0 { margin-bottom: 0; }
.prose .inline-block { display: inline-block; }
.prose .break-words { overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; margin: 1.5rem 0; }
.prose td, .prose th { padding: .5rem 1rem .5rem 0; border-bottom: 1px solid #ddd; text-align: left; }
.prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 2rem; margin: 2rem 0; }
.prose .wp-block-column { flex: 1 1 14rem; min-width: 0; }
.prose .wp-block-button__link, .prose .wp-block-button a { display: inline-block; padding: .67rem 1.5rem; background: #bf5620; color: #fff; font-weight: 700; text-decoration: none; border-radius: 100px; }
.prose .wp-block-button.has-custom-width { width: 50%; min-width: 18rem; margin-block: 1.5rem; }
.prose .wp-block-button.has-custom-width .wp-block-button__link { display: block; box-sizing: border-box; width: 100%; padding: 1.5rem 2rem !important; text-align: center; letter-spacing: 1px; }
.prose .wp-block-button__link.has-yellow-background-color { background: #f5b247; color: #000; }
.prose .wp-block-button__link.has-yellow-background-color:hover { background: var(--c-primary); color: #fff; }
.section-nav li ul { margin-left: 0; padding: 0; }
.section-nav li ul li { padding-left: 1rem; }
.section-nav .page_item_has_children > a::before { content: ""; display: inline-block; width: .45em; height: .45em; margin: 0 .7rem 0 -1.1rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.section-nav .page_item_has_children.current_page_item > a::before, .section-nav .page_item_has_children.current_page_ancestor > a::before { transform: rotate(45deg); }
.section-nav .page_item_has_children:not(.current_page_item):not(.current_page_ancestor) > ul { display: none; }

.icon-highlight { display: flex; gap: 1rem; align-items: flex-start; }
.icon-highlight__icon .icon { display: block; width: 2.25rem; height: 2.25rem; color: #000; }
.icon-highlight__icon svg { width: 100%; height: 100%; }
.icon-highlight__content p { margin: 0 0 .75rem; }

.wp-block-contacts { margin: 2rem 0; }
.wp-block-contacts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1.5rem; }
.wp-block-contacts li > div { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; align-items: center; }
.wp-block-contacts img { width: 100%; height: 8rem; object-fit: cover; object-position: top; }
.wp-block-contacts p { margin: 0; }
.wp-block-contacts a { display: block; margin-top: .25rem; }

.accordions__list { list-style: none; margin: 1.5rem 0; padding: 0; }
.accordions__list-item h3 { margin: 0; }
.accordions__list-item--button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; background: none; border: 0; border-bottom: 1px solid #000; font: inherit; font-weight: 700; text-align: left; cursor: pointer; color: inherit; }
.accordions__list-item--button .icon svg { width: 24px; height: 24px; display: block; }
.accordions__list-item--button[aria-expanded="false"] .hide-for-expanded,
.accordions__list-item--button[aria-expanded="true"] .hide-for-not-expanded { display: inline-block; }
.accordions__list-item--button[aria-expanded="true"] .hide-for-expanded,
.accordions__list-item--button[aria-expanded="false"] .hide-for-not-expanded { display: none; }
.accordions__list-item section { padding: 1rem 0; border-bottom: 1px solid #000; }
.accordions__list-item section[hidden] { display: none; }

.prose .accordions__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 0 2rem; align-items: start; }
.prose .accordions__list li { list-style: none; margin: 0; padding: 0; }
.prose .accordions__list-item h3 { color: #000; font-size: 1.5rem; margin: 0; }
.prose ul.accordions__list { padding-left: 0; margin: 0; }

/* Yhdistetyt lohkot: media-text, värilliset sarakkeet */
.prose .wp-block-media-text { display: grid; grid-template-columns: 50% 1fr; align-items: stretch; margin: 0 0 2rem; }
.prose .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 50%; }
.prose .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { grid-column: 2; grid-row: 1; }
.prose .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { grid-column: 1; grid-row: 1; }
.prose .wp-block-media-text__media { position: relative; margin: 0; min-height: 100%; }
.prose .wp-block-media-text.is-image-fill-element .wp-block-media-text__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.prose .wp-block-media-text__content { align-self: center; padding: .8rem 2.5rem; min-width: 0; }
.prose .wp-block-media-text.has-light-gray-background-color, .prose .wp-block-media-text.has-background { background-color: #eeedeb; }
.prose .wp-block-media-text .wp-block-heading { margin: 0 0 1rem; }
.prose .wp-block-media-text__content > * + * { margin-top: 1rem; }
.prose .has-dark-neutral-color { color: #1b1919; }
.prose .wp-block-columns.has-background { padding: 1.5rem; }
/* Teksti + kuva -lohko (esim. Museokortti) */
.prose .text-and-image__layout { display: flex; align-items: center; gap: 2rem; }
.prose .text-and-image__image { flex: 0 0 285px; max-width: 285px; }
.prose .text-and-image__image img { width: 100%; height: auto; border-radius: 1rem; display: block; margin: 0; }
.prose .text-and-image__content-wrapper { flex: 1; min-width: 0; }
.prose .text-and-image__content > .acf-innerblocks-container > * + * { margin-top: 1rem; }
.prose .text-and-image__content h2, .prose .text-and-image__content h3 { margin: 0 0 1rem; }
.prose .text-and-image__content a { font-weight: 700; color: #000; }
.prose > .text-and-image--basic { background: var(--c-surface); margin-bottom: 2rem; }
.prose > .text-and-image--basic .text-and-image__layout { gap: 0; align-items: stretch; }
.prose > .text-and-image--basic .text-and-image__image { flex: 0 0 31%; max-width: none; }
.prose > .text-and-image--basic .text-and-image__image img { height: 100%; object-fit: cover; border-radius: 0; }
.prose > .text-and-image--basic .text-and-image__content-wrapper { display: flex; align-items: center; }
.prose > .text-and-image--basic .text-and-image__content { padding: 2rem; }
.prose .is-style-kicker { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .5rem; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; }
.prose .wp-block-table td { padding: .6rem 1rem; line-height: 1.4; text-align: left !important; vertical-align: top; }
.prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #efefef; }
.prose .wp-block-table figcaption { font-style: italic; font-size: .8rem; padding: .75rem 1rem; border-bottom: 1px solid #e0e0e0; margin: 0; }
/* Värillinen cover-laatikko: punainen otsikko ja listat vasemmalle kahteen sarakkeeseen */
.prose .wp-block-cover { padding: 2rem 2.5rem; }
.prose .wp-block-cover h2.has-rusty-red-color { color: #a22d1b; font-size: 1.75rem; }
.prose .wp-block-cover .wp-block-columns { margin: 0; gap: 2rem; flex-wrap: nowrap; align-items: flex-start; }
.prose .wp-block-cover .wp-block-column { flex: 1 1 0; min-width: 0; }
.prose .wp-block-cover ul { text-align: left; margin: 0; }
.prose .wp-block-cover .wp-block-column > * { margin-top: 0; }
.prose .wp-block-cover li:last-child { margin-bottom: 0; }
.prose .wp-block-cover li { text-align: left; line-height: 1.67; margin-bottom: .75rem; }
@media (max-width: 47.99rem) {
  .prose .text-and-image__layout { flex-direction: column; align-items: flex-start; }
  .prose .wp-block-cover { padding: 1.5rem 1rem; }
  .prose .wp-block-cover .wp-block-columns { flex-wrap: wrap; gap: 0; }
  .prose .wp-block-cover .wp-block-column { flex-basis: 100%; }
}
.prose .wp-block-cover__inner-container > * { margin-inline: 0; }
.prose .wp-block-button__link { font-size: 1rem; }
@media (max-width: 47.99rem) {
  .prose .wp-block-media-text, .prose .wp-block-media-text.has-media-on-the-right { display: block; }
  .prose .wp-block-media-text__media { min-height: 0; }
  .prose .wp-block-media-text.is-image-fill-element .wp-block-media-text__media img { position: static; height: auto; }
}
.wp-block-contacts li > div > div:last-child p, .wp-block-contacts li > div > div:last-child a { margin: 0 0 .25rem; line-height: 1.4; }
.wp-block-contacts .flex-col { display: block; }
.listing { margin-top: 2rem; }
.listing__more { margin: 2rem 0; text-align: right; font-weight: 700; }
.listing__more a { color: #000; }

/* Lomakkeet */
.form p { margin: 0 0 1rem; }
.form label { display: block; font-weight: 700; margin-bottom: .25rem; }
.form input[type=text], .form input[type=email] { width: 100%; max-width: 28rem; padding: .65rem .75rem; border: 2px solid var(--c-text, #000); font: inherit; }
.form__honey { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-left: 6px solid var(--c-primary); background: #f5f0ea; }
.notice h2 { margin: 0; font-size: 1.25rem; color: inherit; text-align: center; }

/* Kuvanostot ja galleria (tuotu sisältö) */
.no-list, .prose ul.no-list { list-style: none; padding-left: 0; margin-left: 0; }
.image-highlights__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; margin: 1.5rem 0; }
.image-highlights__list--col-2 { grid-template-columns: repeat(2, 1fr); }
.image-highlights__list--col-4 { grid-template-columns: repeat(4, 1fr); }
.image-highlights__list-item { margin: 0; padding: 0; }
.image-highlights__image { aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.image-highlights__image a { display: block; height: 100%; }
.image-highlights__image img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.image-highlights__title { font-size: 1.25rem; margin: .75rem 0 0; }
.image-highlights .excerpt { margin: .5rem 0 0; }
@media (max-width: 900px) { .image-highlights__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .image-highlights__list { grid-template-columns: 1fr; } }
.prose figure.wp-block-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.5rem 0; }
.prose figure.wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.prose figure.wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.wp-block-gallery figure { margin: 0; }
.prose figure.wp-block-gallery:has(> figure:only-child) { grid-template-columns: 1fr; }
.wp-block-gallery img { width: 100%; height: auto; display: block; }
.wp-block-gallery figcaption { font-size: .9rem; margin-top: .4rem; }
@media (max-width: 700px) { .wp-block-gallery, .prose figure.wp-block-gallery.columns-4 { grid-template-columns: repeat(2, 1fr); } }

body.single-lounas .prose h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }

.info-list__logo { display: inline-block; width: 31px; height: auto; margin-left: .5rem; vertical-align: middle; }

@media (max-width: 63.99rem) {
  .site-header > .container { padding-left: 1.25rem; padding-right: 0; }
  .site-header__top { padding-top: .75rem; padding-bottom: 0; }
  .site-logo img { width: 9.5rem; }
}

/* digisarka.fi-ulkoasu: beige tausta, ylätyökalut, etusivun lohkot */
body { background: #e3ceae; }
.site-header { background: #e3ceae; border-bottom: 0; }
.site-header__tools { display: flex; align-items: center; gap: 1rem; }
.menu--tools a { display: block; padding: .5rem; font-size: 1.125rem; font-weight: 400; color: #000; }
.menu--tools a:hover { text-decoration: underline; }
.site-logo img { width: 20rem; }
.site-header__nav .menu-container--search { display: none; }
.site-header__nav .menu-container--search .menu { gap: 0; }
@media (min-width: 64rem) { .menu--primary > .menu-item > a { padding-inline: .5rem; } .menu--primary { margin-inline: -.5rem; } }
@media (max-width: 63.99rem) {
  body.home .site-header { background: transparent; }
  .site-logo img { width: 9.5rem; }
  .site-header__nav .menu-container--search { display: block; }
  .site-header__tools .menu-container--search-top { display: none; }
}
body.home .hero { margin-bottom: 2rem; max-width: 125rem; margin-inline: auto; }
body.home .hero__image, body.home .hero__image img { min-height: 0; height: 21.875rem; background: none; }
body.home .hero__image img { display: block; width: 100%; object-fit: cover; }
body.home .hero__wrap { position: static; padding-inline: var(--pad); }
body.home .hero__card { display: flex; flex-direction: row; width: auto; max-width: none; padding: 3rem 0; background: none; border-bottom: 1px solid #1b1919; gap: 3rem; }
body.home .hero__card h1 { flex: 0 0 40%; font-size: 2.25rem; line-height: 1.24; margin: 0; color: #000; }
body.home .hero__card .summary { flex: 1; margin: 0; font-size: 1.25rem; font-weight: 500; line-height: 1.6; }
body.home .hero__card .summary p { margin: 0 0 1.5rem; }
body.home .hero__card .summary p:last-child { margin: 0; }
@media (max-width: 63.99rem) {
  body.home .hero__card { flex-direction: column; gap: 1.5rem; padding: 1.5rem 0; }
  body.home .hero__card h1 { flex: none; font-size: 1.75rem; }
  body.home .hero__image, body.home .hero__image img { height: 15rem; }
}
.home-notice { margin: 2rem 0; }
.home-notice .notice { padding: 1.75rem var(--pad); border: 0; background: var(--c-secondary); text-align: center; }
.home-notice .notice h2 { font-size: 1.25rem; font-weight: 700; }
.home-notice .notice a { font-weight: 400; color: #000; }
.carousel .carousel__track { gap: 2rem; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); }
.carousel .carousel__item { flex-basis: calc((100% - 4rem) / 2.2); }
@media (min-width: 80rem) { .carousel .carousel__item { flex-basis: calc((100% - 6rem) / 3.2); } }
@media (max-width: 47.99rem) { .carousel .carousel__item { flex-basis: 80%; } }
.carousel .card__title { font-size: 1.125rem; font-weight: 400; margin-bottom: .75rem; }
.carousel .card__meta { margin: 0; font-size: 1rem; color: #1b1919; }
.monthly { max-width: 80rem; margin: 3rem auto; background: #1b1919; color: #fff; }
.monthly__layout { display: flex; }
.monthly__image { flex: 0 0 33.3333%; }
.monthly__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.monthly__content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6rem 4rem; }
.monthly__content > * + * { margin-top: 1rem; }
.monthly__content .kicker { margin: 0 0 .5rem; color: #ed7e2b; }
.monthly__content h2 { margin: 0; color: var(--c-secondary); }
.monthly__content p { line-height: 1.6; }
.monthly__links { margin-top: 2rem !important; }
.monthly__links a { display: block; padding: .25rem 0; color: #fff; font-weight: 700; text-decoration: underline; }
@media (max-width: 47.99rem) { .monthly__layout { flex-direction: column; } .monthly__content { padding: 3rem 1.5rem; } }
.card--teaching .card__image { margin-bottom: 1.5rem; }
.card--teaching .card__title { font-size: 1.25rem; font-weight: 400; margin-bottom: .5rem; }
.card--teaching .card__excerpt { margin: 0; font-weight: 300; line-height: 1.65; }
.card--teaching .card__link { margin-top: 1rem; }
.card--teaching .card__link a { font-size: 1.125rem; font-weight: 700; text-decoration: underline; color: #000; }
.cover { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 4rem; padding: 6rem var(--pad); text-align: center; }
.cover + .cover { margin-top: 0; }
.cover__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.cover--light::before { background: rgb(227 206 174 / .6); }
.cover--dark::before { background: rgb(27 25 25 / .9); }
.cover__inner { max-width: 52rem; }
.cover h2 { margin: 0 0 1rem; }
.cover--light h2 { color: var(--c-primary); }
.cover--dark h2 { color: var(--c-secondary); }
.cover--dark .summary { color: #fff; }
.cover .summary { margin: 0 0 2rem; font-weight: 500; }
.cover__logo { display: block; width: 12.5rem; height: auto; margin: 0 auto 2rem; }
.button--rust { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.button--white { background: #fff; border-color: #fff; color: #1b1919; }
.button--rust:hover, .button--white:hover { background: #000; border-color: #000; color: #fff; }
.site-footer { margin-top: 0; }
.section__head h2 { color: #000; }

/* Alatunniste (digisarka.fi-ulkoasu) */
.site-footer__main { background-color: #e3ceae; color: #000; padding-block: 5rem; }
.site-footer__main a, .site-footer__main a:hover { color: #000; }
.site-footer__logo { width: 12rem; height: auto; margin-bottom: 1.5rem; }
.site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 0 2rem; }
.site-footer__col--about { grid-row: 1 / span 2; display: flex; flex-direction: column; }
.site-footer__name { margin: 0; line-height: 1.7; }
.site-footer__nav--main { grid-column: 2; grid-row: 1; }
.site-footer__nav:not(.site-footer__nav--main) { grid-column: 2; grid-row: 2; margin-top: .75rem; }
.site-footer__legal { grid-column: 3; grid-row: 1; }
.site-footer .menu { flex-direction: column; gap: .75rem; }
.site-footer__nav a { font-size: 1.125rem; font-weight: 700; text-decoration: underline; }
.site-footer__nav a:hover, .site-footer__legal a:hover { text-decoration: none; }
.site-footer .menu--buttons a { display: inline-flex; padding: 0; border: 0; background: none; color: #000; letter-spacing: 0; }
.site-footer .menu--buttons .menu-item:last-child a { background: none; color: #000; }
.site-footer__legal a { font-size: 1rem; }
.site-footer__legal .menu { gap: .5rem; }
.social a, .social a:hover { color: #a22d1b; }
.site-footer__copy { margin-top: auto !important; padding-top: 2rem; }
@media (max-width: 63.99rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__col--about { grid-row: auto; grid-column: 1 / -1; } .site-footer__nav--main, .site-footer__nav:not(.site-footer__nav--main), .site-footer__legal { grid-column: auto; grid-row: auto; } }
@media (max-width: 39.99rem) { .site-footer__grid { grid-template-columns: 1fr; } }@media (min-width: 80rem) {
  .site-header__nav { display: flex; justify-content: space-between; align-items: center; }
  .site-header__nav .menu-container--search { display: block; }
  .site-header__tools .menu-container--search-top { display: none; }
}@media (max-width: 63.99rem) { .site-header__tools { display: none; } }
.prose video, .prose iframe, .prose embed, .prose object { max-width: 100%; height: auto; }
.prose { overflow-wrap: anywhere; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
.page-header h1 { color: #000; }
.banner img { height: 21.875rem; }
.layout__content .prose > p:first-child { font-size: 1.25rem; line-height: 1.6; }
@media (max-width: 47.99rem) { .banner img { height: 15rem; } }
.site-header { border-bottom: 1px solid #1b1919; }
.menu--buttons a .icon--external, .button .icon--external { width: 1em; height: 1em; display: inline-block; line-height: 1; }
.menu--buttons a .icon--external svg, .button .icon--external svg { display: block; width: 1em; height: 1em; }
@media (min-width: 64rem) {
  .menu--primary { margin-inline: -.75rem; }
  .menu--primary > .menu-item { padding-inline: .25rem; }
  .menu--primary > .menu-item > a { padding-inline: .5rem; }
}.menu--primary > .menu-item > a .icon--chevron { margin-left: .125rem; }
