/* Compiled from FF Theme (fftheme@91ad519, layout/_teaser.scss + sisaltolista.scss). Edited by hand from here on: no build step.
   Tokens: theme.json settings.custom (sl, borderRadius, spacing, color). Hatrick overrides at the end. */
@charset "UTF-8";
.teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--wp--preset--color--white);
  border: 0;
  overflow: hidden;
}
.teaser:hover {
  background: var(--wp--preset--color--white);
}
.teaser__content {
  padding: clamp(30px, 4vw, 40px) var(--wp--custom--spacing--gap, 30px);
}
.teaser__read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--wp--preset--color--primary-dark);
}
.teaser:has(.teaser__read-more) .teaser__read-more::after {
  content: "→";
  inset: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.teaser:hover .teaser__read-more {
  color: var(--wp--preset--color--primary-dark);
}
.teaser:hover .teaser__read-more::after {
  transform: translateX(4px);
}
.teaser__image {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.teaser__image a::after {
  display: none;
}
.teaser__image img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teaser:hover .teaser__image img {
  transform: scale(1.05);
}
.teaser__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: inherit;
}
.teaser__title a {
  color: inherit;
  text-decoration: none;
}
.teaser__title a:hover {
  color: currentcolor;
}
.teaser__excerpt {
  margin: 0;
  font-size: 1rem;
  flex: 1;
}
.teaser__meta {
  padding-top: 0.5rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.teaser__terms {
  display: flex;
  flex-wrap: wrap;
  color: var(--wp--preset--color--primary-dark);
}
.teaser__terms span + span::before {
  content: "∙";
  margin: 0 0.25rem;
  display: inline-block;
}
.teaser__category, .teaser__tags,
.teaser time {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.teaser time {
  color: var(--wp--preset--color--dark);
}
.teaser time:hover {
  color: var(--wp--preset--color--dark);
}
.teaser a + time::before {
  content: "∙";
  margin: 0 0.25rem 0 0;
  display: inline-block;
}
.teaser__type-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--wp--preset--color--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}
.teaser__image .teaser__type-label {
  position: absolute;
  z-index: 1;
  line-height: 1;
}
.teaser__image .teaser__type-label.is-top-left {
  top: 0.75rem;
  left: 0.75rem;
}
.teaser__image .teaser__type-label.is-top-right {
  top: 0.75rem;
  right: 0.75rem;
}
.teaser__image .teaser__type-label.is-bottom-left {
  bottom: 0.75rem;
  left: 0.75rem;
}
.teaser__image .teaser__type-label.is-bottom-right {
  bottom: 0.75rem;
  right: 0.75rem;
}
.teaser__content .teaser__type-label {
  margin-bottom: 0.5rem;
  align-self: flex-start;
}
.teaser__type-label + a::before {
  content: "∙";
  margin: 0 0.25rem 0 0;
  display: inline-block;
}
.teaser__read-more, .teaser__load-more {
  align-self: flex-start;
  transition: color 0.2s ease, background-color 0.2s ease, border-radius 0.2s ease;
}
.teaser__read-more, .teaser__read-more.button, .teaser__load-more, .teaser__load-more.button {
  color: var(--wp--preset--color--primary);
}
.teaser__read-more:hover, .teaser__read-more:focus-visible, .teaser__read-more.button:hover, .teaser__read-more.button:focus-visible, .teaser__read-more.button:hover, .teaser__read-more.button:focus-visible, .teaser__read-more.button.button:hover, .teaser__read-more.button.button:focus-visible, .teaser__load-more:hover, .teaser__load-more:focus-visible, .teaser__load-more.button:hover, .teaser__load-more.button:focus-visible, .teaser__load-more.button:hover, .teaser__load-more.button:focus-visible, .teaser__load-more.button.button:hover, .teaser__load-more.button.button:focus-visible {
  color: var(--wp--preset--color--primary-dark);
}
.teaser--henkilo {
  border: 1px solid var(--wp--custom--color--border);
  background-color: var(--wp--preset--color--white);
  padding: clamp(40px, 6vw, 60px);
}
.teaser--henkilo .teaser__image {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.teaser--henkilo .teaser__content {
  padding: 20px 0 0 0;
  flex: auto;
}
.teaser--henkilo .teaser__content p {
  margin: 0;
}
.teaser--henkilo .teaser__content a {
  text-decoration: none;
  color: var(--wp--preset--color--primary-dark, var(--wp--preset--color--primary-dark));
}
.teaser--henkilo:hover {
  background-color: var(--wp--preset--color--white);
}
.teaser--henkilo.teaser--has-categories {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: clamp(40px, 6vw, 60px);
}
.teaser--henkilo.teaser--has-categories .teaser__content__title {
  width: calc(100% - 120px - clamp(40px, 6vw, 60px));
}
.teaser--henkilo.teaser--has-categories .teaser__content__meta {
  width: 100%;
}
.teaser--henkilo.teaser--has-categories .teaser__image {
  width: 100px;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.teaser--henkilo .teaser__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.teaser--henkilo .teaser__category {
  display: inline-block;
  background-color: var(--wp--preset--color--white);
  padding: 20px;
  font-size: var(--wp--preset--font-size--small, 0.75rem);
  text-transform: none;
}
.teaser--henkilo .teaser__category:hover {
  color: var(--wp--preset--color--primary-dark, var(--wp--preset--color--primary-dark));
}
.teaser--list {
  flex-direction: row;
}
.teaser--list .teaser__image {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.teaser--list .teaser__title {
  font-size: 1rem;
}

/**
 * Sisältölista Block Styles
 *
 * Content list with teaser card grid.
 */
.sisaltolista,
.block-sisaltolista {
  --sl-grid-gap: var(--wp--custom--sl--grid-gap, var(--wp--preset--spacing--30, clamp(40px, 6vw, 60px)));
  --sl-cols-tablet: var(--wp--custom--sl--cols-tablet, 2);
  --sl-teaser-padding: var(--wp--custom--sl--teaser-padding, 0);
  --sl-card-radius: var(--wp--custom--sl--card-radius, var(--wp--custom--border-radius--xs, 8px));
  --sl-card-padding: var(--wp--custom--sl--card-padding, var(--wp--preset--spacing--30, clamp(40px, 6vw, 60px)));
  --sl-img-radius: var(--wp--custom--sl--img-radius, 0);
  --sl-badge-color: var(--wp--custom--sl--badge-color, #fff);
  --sl-badge-bg: var(--wp--custom--sl--badge-bg, var(--wp--preset--color--primary, var(--wp--preset--color--primary)));
  --sl-badge-radius: var(--wp--custom--sl--badge-radius, 2em);
  --sl-badge-padding: var(--wp--custom--sl--badge-padding, 0.25em 0.75em);
  --sl-title-color: var(--wp--custom--sl--title-color, inherit);
  --sl-body-color: var(--wp--custom--sl--body-color, var(--wp--preset--color--dark));
  --sl-date-color: var(--wp--custom--sl--date-color, var(--wp--preset--color--dark));
  --sl-term-gap: var(--wp--custom--sl--term-gap, 0.35rem);
  --sl-term-color: var(--wp--custom--sl--term-color, var(--wp--preset--color--secondary, var(--wp--preset--color--secondary)));
  --sl-term-underline: var(--wp--custom--sl--term-underline, none);
  --sl-term-bg: var(--wp--custom--sl--term-bg, transparent);
  --sl-term-padding: var(--wp--custom--sl--term-padding, 3px 0);
  --sl-term-radius: var(--wp--custom--sl--term-radius, 0);
  --sl-term-border: var(--wp--custom--sl--term-border, transparent);
  --sl-btn-bg: var(--wp--custom--sl--btn-bg, var(--wp--preset--color--primary-dark, var(--wp--preset--color--primary-dark)));
  --sl-btn-radius: var(--wp--custom--sl--btn-radius, var(--wp--custom--border-radius--xl, 48px));
  --sl-btn-border: var(--wp--custom--sl--btn-border, transparent);
  --sl-fp-color: var(--wp--custom--sl--fp-color, inherit);
  --sl-fp-bg: var(--wp--custom--sl--fp-bg, var(--wp--preset--color--light, var(--wp--preset--color--light)));
  --sl-fp-border: var(--wp--custom--sl--fp-border, var(--wp--custom--color--border));
  --sl-fp-padding: var(--wp--custom--sl--fp-padding, 0.375em 1em);
  --sl-fp-radius: var(--wp--custom--sl--fp-radius, 999px);
  --sl-fp-color-active: var(--wp--custom--sl--fp-color-active, var(--wp--preset--color--dark));
  --sl-fp-bg-active: var(--wp--custom--sl--fp-bg-active, var(--wp--preset--color--primary, var(--wp--preset--color--primary)));
  --sl-fp-border-active: var(--wp--custom--sl--fp-border-active, transparent);
  --sl-fd-color: var(--wp--custom--sl--fd-color, inherit);
  --sl-fd-bg: var(--wp--custom--sl--fd-bg, #fff);
  --sl-fd-border: var(--wp--custom--sl--fd-border, rgba(0, 0, 0, 0.2));
  --sl-fd-radius: var(--wp--custom--sl--fd-radius, var(--wp--custom--border-radius--xs, 8px));
  --sl-fc-color: var(--wp--custom--sl--fc-color, inherit);
  --sl-fc-bg: var(--wp--custom--sl--fc-bg, transparent);
  --sl-fc-border: var(--wp--custom--sl--fc-border, rgba(0, 0, 0, 0.25));
  --sl-fc-radius: var(--wp--custom--sl--fc-radius, var(--wp--custom--border-radius--xl, 48px));
  --sl-fl-color: var(--wp--custom--sl--fl-color, var(--wp--preset--color--dark));
  margin-block: var(--wp--preset--spacing--50, clamp(50px, 8vw, 80px));
}
.sisaltolista__inner > :first-child,
.block-sisaltolista__inner > :first-child {
  margin-top: 0;
}
.sisaltolista__title,
.block-sisaltolista__title {
  margin-bottom: var(--wp--preset--spacing--30, clamp(40px, 6vw, 60px));
}
.sisaltolista__grid,
.block-sisaltolista__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sl-grid-gap, var(--wp--preset--spacing--30, clamp(40px, 6vw, 60px)));
}
@media (width <= 991px) {
  .sisaltolista__grid,
  .block-sisaltolista__grid {
    grid-template-columns: repeat(var(--sl-cols-tablet, 2), 1fr);
  }
}
@media (width <= 575px) {
  .sisaltolista__grid,
  .block-sisaltolista__grid {
    grid-template-columns: 1fr;
  }
}
.sisaltolista.row1 .sisaltolista__grid,
.block-sisaltolista.row1 .sisaltolista__grid {
  grid-template-columns: 1fr;
}
.sisaltolista.row2 .sisaltolista__grid,
.block-sisaltolista.row2 .sisaltolista__grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (width <= 575px) {
  .sisaltolista.row2 .sisaltolista__grid,
  .block-sisaltolista.row2 .sisaltolista__grid {
    grid-template-columns: 1fr;
  }
}
.sisaltolista.row4 .sisaltolista__grid,
.block-sisaltolista.row4 .sisaltolista__grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (width <= 991px) {
  .sisaltolista.row4 .sisaltolista__grid,
  .block-sisaltolista.row4 .sisaltolista__grid {
    grid-template-columns: repeat(var(--sl-cols-tablet, 2), 1fr);
  }
}
@media (width <= 575px) {
  .sisaltolista.row4 .sisaltolista__grid,
  .block-sisaltolista.row4 .sisaltolista__grid {
    grid-template-columns: 1fr;
  }
}
.sisaltolista.highlight_first .sisaltolista__grid > .teaser:first-child,
.block-sisaltolista.highlight_first .sisaltolista__grid > .teaser:first-child {
  grid-column: 1/-1;
}
.sisaltolista__no-results,
.block-sisaltolista__no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: var(--wp--preset--spacing--40, 2rem);
  background: var(--wp--preset--color--light, var(--wp--preset--color--white));
  border-radius: 4px;
}
.sisaltolista.alignwide,
.block-sisaltolista.alignwide {
  max-width: var(--wp--style--global--wide-size, var(--wp--style--global--wide-size, 1200px));
  margin-inline: auto;
}
.sisaltolista.alignfull,
.block-sisaltolista.alignfull {
  width: 100%;
}
.sisaltolista.is-hydrating .sisaltolista__grid,
.block-sisaltolista.is-hydrating .sisaltolista__grid {
  opacity: 0;
  pointer-events: none;
}
.sisaltolista__load-more-wrap,
.block-sisaltolista__load-more-wrap {
  margin-top: var(--wp--preset--spacing--30, clamp(40px, 6vw, 60px));
}

.teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--custom--color--border);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  padding: var(--sl-teaser-padding, 0);
  border-radius: var(--sl-card-radius, var(--wp--custom--border-radius--xs, 8px));
}
.teaser:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.teaser:hover .teaser__title a {
  color: var(--sl-title-color-hover, var(--wp--preset--color--primary-dark, currentColor));
}
.teaser:hover .teaser__read-more, .teaser:hover .teaser__read-more.button {
  color: var(--sl-btn-color-hover, var(--sl-btn-color, inherit));
  background-color: var(--sl-btn-bg-hover, color-mix(in srgb, var(--sl-btn-bg, var(--wp--preset--color--primary-dark, var(--wp--preset--color--primary-dark))) 85%, #000));
  border-color: var(--sl-btn-border-hover, var(--sl-btn-border, transparent));
}
.teaser:has(.teaser__read-more) .teaser__read-more::after, .teaser:not(:has(.teaser__read-more)) .teaser__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.teaser__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--sl-img-radius, 0);
}
.teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.teaser:hover .teaser__image img {
  transform: scale(1.05);
}
.teaser__content {
  padding: var(--sl-card-padding, var(--wp--preset--spacing--30, clamp(40px, 6vw, 60px)));
  flex: 1;
  display: flex;
  flex-direction: column;
}
.teaser__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--sl-title-color, inherit);
}
.teaser__title a {
  color: inherit;
  text-decoration: none;
}
.teaser__title a:hover {
  color: var(--sl-title-color-hover, var(--wp--preset--color--primary, currentColor));
}
.teaser__excerpt {
  margin: 0;
  font-size: 1rem;
  color: var(--sl-body-color, var(--wp--preset--color--dark));
  flex: 1;
}
.teaser__meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--sl-date-color, var(--wp--preset--color--dark));
}
.teaser__terms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sl-term-gap, 0.35rem);
}
.teaser__category, .teaser__tags {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 1.5;
  text-decoration: var(--sl-term-underline, none);
  background-color: var(--sl-term-bg, transparent);
  color: var(--sl-term-color, var(--wp--preset--color--secondary, var(--wp--preset--color--secondary)));
  padding: var(--sl-term-padding, 3px 0);
  border-radius: var(--sl-term-radius, 0);
  border: 1px solid var(--sl-term-border, transparent);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.teaser__category:hover, .teaser__tags:hover {
  color: var(--sl-term-color-hover, var(--sl-term-color, inherit));
  background-color: var(--sl-term-bg-hover, var(--sl-term-bg, transparent));
  border-color: var(--sl-term-border-hover, var(--sl-term-border, transparent));
  text-decoration: var(--sl-term-underline-hover, var(--sl-term-underline, none));
}
.teaser__type-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--sl-badge-padding, 0.25em 0.75em);
  border-radius: var(--sl-badge-radius, 2em);
  background-color: var(--sl-badge-bg, var(--wp--preset--color--primary, var(--wp--preset--color--primary)));
  color: var(--sl-badge-color, #fff);
  line-height: 1;
}
.teaser__image .teaser__type-label {
  position: absolute;
  z-index: 1;
}
.teaser__image .teaser__type-label.is-top-left {
  top: 0.75rem;
  left: 0.75rem;
}
.teaser__image .teaser__type-label.is-top-right {
  top: 0.75rem;
  right: 0.75rem;
}
.teaser__image .teaser__type-label.is-bottom-left {
  bottom: 0.75rem;
  left: 0.75rem;
}
.teaser__image .teaser__type-label.is-bottom-right {
  bottom: 0.75rem;
  right: 0.75rem;
}
.teaser__content .teaser__type-label {
  margin-bottom: 0.5rem;
  align-self: flex-start;
}
.teaser__read-more, .teaser__load-more {
  margin-top: 1rem;
  align-self: flex-start;
  transition: color 0.2s ease, background-color 0.2s ease, border-radius 0.2s ease;
}
.teaser__read-more, .teaser__read-more.button, .teaser__load-more, .teaser__load-more.button {
  color: var(--sl-btn-color-primary-dark, var(--wp--preset--color--white, var(--wp--preset--color--white)));
  background-color: var(--sl-btn-bg, var(--wp--preset--color--primary-dark, var(--wp--preset--color--primary-dark)));
  border-radius: var(--sl-btn-radius, var(--wp--custom--border-radius--xl, 48px));
  border: 1px solid var(--sl-btn-border, transparent);
}
.teaser__read-more:hover, .teaser__read-more:focus-visible, .teaser__read-more.button:hover, .teaser__read-more.button:focus-visible, .teaser__read-more.button:hover, .teaser__read-more.button:focus-visible, .teaser__read-more.button.button:hover, .teaser__read-more.button.button:focus-visible, .teaser__load-more:hover, .teaser__load-more:focus-visible, .teaser__load-more.button:hover, .teaser__load-more.button:focus-visible, .teaser__load-more.button:hover, .teaser__load-more.button:focus-visible, .teaser__load-more.button.button:hover, .teaser__load-more.button.button:focus-visible {
  color: var(--sl-btn-color-primary-dark, var(--wp--preset--color--primary-dark, var(--wp--preset--color--primary-dark)));
  background-color: var(--sl-btn-bg-hover, var(--wp--preset--color--primary, var(--wp--preset--color--primary)));
  border-color: var(--sl-btn-border-hover, var(--sl-btn-border, transparent));
}
.teaser__read-more:hover, .teaser__read-more:focus-visible, .teaser__read-more.button:hover, .teaser__read-more.button:focus-visible, .teaser__load-more:hover, .teaser__load-more:focus-visible, .teaser__load-more.button:hover, .teaser__load-more.button:focus-visible {
  color: var(--sl-btn-color-primary-dark, var(--wp--preset--color--primary-dark, var(--wp--preset--color--primary-dark)));
  background-color: var(--sl-btn-bg-hover, var(--wp--preset--color--primary, var(--wp--preset--color--primary)));
  border-color: var(--sl-btn-border-hover, var(--sl-btn-border, transparent));
}
.teaser--list {
  flex-direction: row;
}
.teaser--list .teaser__image {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.teaser--list .teaser__title {
  font-size: 1rem;
}

/* ---------- Filter area ---------- */
.sisaltolista__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: var(--wp--preset--spacing--30, clamp(40px, 6vw, 60px));
  padding-bottom: var(--wp--preset--spacing--20, clamp(30px, 4vw, 40px));
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.sisaltolista__filters.is-pill-ui {
  flex-direction: column;
}
.sisaltolista__filters.is-dropdown-ui {
  flex-direction: row;
  align-items: flex-start;
}

.sisaltolista__filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.sisaltolista__filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sl-fl-color, var(--wp--preset--color--dark));
}

.sisaltolista__filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sisaltolista__filter-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--sl-fp-padding, 0.375em 1em);
  border-radius: var(--sl-fp-radius, 999px);
  border: 1px solid var(--sl-fp-border, var(--wp--custom--color--border));
  background-color: var(--sl-fp-bg, var(--wp--preset--color--light, var(--wp--preset--color--light)));
  color: var(--sl-fp-color, inherit);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sisaltolista__filter-pill:hover:not(.is-active) {
  background-color: var(--sl-fp-bg-active, var(--wp--preset--color--primary, var(--wp--preset--color--primary)));
  color: var(--sl-fp-color-active, var(--wp--preset--color--dark));
  border-color: var(--sl-fp-border-active, transparent);
}
.sisaltolista__filter-pill.is-active {
  background-color: var(--sl-fp-bg-active, var(--wp--preset--color--primary, var(--wp--preset--color--primary)));
  color: var(--sl-fp-color-active, var(--wp--preset--color--dark));
  border-color: var(--sl-fp-border-active, transparent);
}
.sisaltolista__filter-pill--link {
  text-decoration: none;
}

/* Dropdown UI */
.sisaltolista__filter-select-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sisaltolista__filter-dropdown {
  position: relative;
}

.sisaltolista__filter-dropdown-toggle {
  min-width: min(18rem, 88vw);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--sl-fd-border, rgba(0, 0, 0, 0.2));
  border-radius: var(--sl-fd-radius, var(--wp--custom--border-radius--xs, 8px));
  background-color: var(--sl-fd-bg, #fff);
  color: var(--sl-fd-color, inherit);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.sisaltolista__filter-dropdown-toggle::after {
  content: "▾";
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.sisaltolista__filter-row.is-open .sisaltolista__filter-dropdown-toggle::after {
  transform: rotate(180deg);
}

.sisaltolista__filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  min-width: min(18rem, 88vw);
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid var(--sl-fd-border, rgba(0, 0, 0, 0.18));
  border-radius: var(--sl-fd-radius, var(--wp--custom--border-radius--xs, 8px));
  background-color: var(--sl-fd-bg, #fff);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sisaltolista__filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--wp--custom--border-radius--tiny, 4px);
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--sl-fd-color, inherit);
  transition: background-color 0.1s ease;
}
.sisaltolista__filter-option:hover {
  background-color: rgba(0, 0, 0, 0.04);
}
.sisaltolista__filter-option.is-selected {
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.06);
}
.sisaltolista__filter-option input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.sisaltolista__filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--sl-fc-border, rgba(0, 0, 0, 0.25));
  border-radius: var(--sl-fc-radius, var(--wp--custom--border-radius--xl, 48px));
  background-color: var(--sl-fc-bg, transparent);
  color: var(--sl-fc-color, inherit);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.sisaltolista__filter-clear:hover {
  background-color: var(--sl-fc-bg-hover, rgba(0, 0, 0, 0.06));
  color: var(--sl-fc-color-hover, var(--sl-fc-color, inherit));
  border-color: var(--sl-fc-border-hover, var(--sl-fc-border, rgba(0, 0, 0, 0.25)));
}

/* ---------- Style variations (register_block_style) ---------- */
.sisaltolista.is-style-bordered,
.block-sisaltolista.is-style-bordered {
  --sl-card-radius: var(--wp--custom--sl--card-radius, var(--wp--custom--border-radius--m, 16px));
  --sl-card-padding: var(--wp--preset--spacing--40, 2rem);
}
.sisaltolista.is-style-bordered .teaser,
.block-sisaltolista.is-style-bordered .teaser {
  border-width: 2px;
  border-color: var(--wp--custom--color--border, var(--wp--custom--color--border));
}

.sisaltolista.is-style-minimal,
.block-sisaltolista.is-style-minimal {
  --sl-card-radius: 0;
  --sl-img-radius: 0;
}
.sisaltolista.is-style-minimal .teaser,
.block-sisaltolista.is-style-minimal .teaser {
  border: 0;
  background: transparent;
}
.sisaltolista.is-style-minimal .teaser:hover,
.block-sisaltolista.is-style-minimal .teaser:hover {
  box-shadow: none;
}

/* ==========================================================================
   Hatrick overrides (iggo18 has no FF Theme button styles)
   ========================================================================== */
.block-sisaltolista a.teaser__read-more,
.content-card a.teaser__read-more,
.block-sisaltolista button.sisaltolista__load-more {
  display: inline-block;
  padding: 0.5em 1.25em;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  color: var(--sl-btn-color, var(--wp--preset--color--white));
  background-color: var(--sl-btn-bg, var(--wp--preset--color--primary-dark));
  border-radius: var(--sl-btn-radius, var(--wp--custom--border-radius--xl, 48px));
  border: 1px solid var(--sl-btn-border, transparent);
}
.block-sisaltolista a.teaser__read-more:hover,
.content-card a.teaser__read-more:hover,
.block-sisaltolista a.teaser__read-more:focus-visible,
.content-card a.teaser__read-more:focus-visible,
.block-sisaltolista button.sisaltolista__load-more:hover,
.block-sisaltolista button.sisaltolista__load-more:focus-visible {
  color: var(--sl-btn-color-hover, var(--wp--preset--color--white));
  background-color: var(--sl-btn-bg-hover, var(--wp--preset--color--secondary));
}
.block-sisaltolista .teaser__title,
.content-card .teaser__title {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.block-sisaltolista .teaser__title,
.content-card .teaser__title {
  color: var(--sl-title-color, var(--wp--preset--color--dark));
}

/* Hatrick: Tekstin tasaus = Keskitetty (sisaltolista_text_align) centres the teaser text column */
.block-sisaltolista.is-text-center .teaser__content { text-align: center; align-items: center; }
.block-sisaltolista.is-text-center .teaser__meta { align-items: center; }
.block-sisaltolista.is-text-center .teaser__terms { justify-content: center; }
.block-sisaltolista.is-text-center .teaser__read-more { align-self: center; justify-content: center; }

/* Hatrick: teaser titles use the site heading scale (main.css --h2 / --h3), like the legacy site */
.block-sisaltolista .teaser__title,
.content-card .teaser__title { font-size: var(--h3, 18px); line-height: 1.2; }
.block-sisaltolista .teaser--highlight .teaser__title { font-size: var(--h2, 22px); }

/* Hatrick: style "Varjostettu" (is-style-shadow, registered in includes/iggo-acf-blocks.php).
   Cards separated by a soft shadow instead of a border; the whole product image shows (contain).
   Gap and corners come from the block settings (Väli, Kulmat), e.g. 24px and 4px. */
.block-sisaltolista.is-style-shadow .teaser {
  border: 0;
  background: var(--sl-card-bg, var(--wp--preset--color--white));
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08), 0 4px 12px rgb(0 0 0 / 0.06);
}
.block-sisaltolista.is-style-shadow .teaser:hover {
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1), 0 10px 24px rgb(0 0 0 / 0.1);
}
.block-sisaltolista.is-style-shadow .teaser__image {
  padding: var(--wp--preset--spacing--20, 16px) var(--wp--preset--spacing--20, 16px) 0;
}
.block-sisaltolista.is-style-shadow .teaser__image img {
  object-fit: contain;
}
.block-sisaltolista.is-style-shadow .teaser:hover .teaser__image img {
  transform: scale(1.03);
}
