/* 1.0.11 — editorial content and confirmed Forminator responses. */
.baltico-form-slot .forminator-response-message.baltico-form-feedback {
  margin: 20px 0 !important;
  padding: 22px 24px !important;
  border: 2px solid #12643c !important;
  border-left-width: 6px !important;
  border-radius: 12px !important;
  background: #ecfdf3 !important;
  color: #123c28 !important;
  box-shadow: 0 8px 28px rgb(0 0 0 / 12%) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  text-align: left !important;
  scroll-margin-block: 110px;
  overflow-wrap: anywhere;
}
.baltico-form-slot .forminator-response-message.baltico-form-feedback.baltico-form-feedback--error {
  border-color: #9f231b !important;
  background: #fff1ee !important;
  color: #6b1c16 !important;
}
.baltico-form-slot .baltico-form-feedback > .baltico-form-feedback__title {
  display: block;
  margin: 0 0 8px !important;
  color: inherit !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.baltico-form-slot .baltico-form-feedback :is(p, li, a, span) {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.baltico-form-slot .baltico-form-feedback p:last-child { margin-bottom: 0 !important; }
.baltico-form-slot .baltico-form-feedback:focus { outline: 3px solid #fff; outline-offset: 4px; }
.baltico-form-slot .baltico-form-feedback a { text-decoration: underline; }

/* The editor's short, complete teaser is never visually clipped. */
.news-card .baltico-post-teaser,
.career-card .baltico-post-teaser,
.post-card .baltico-post-teaser {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow-wrap: anywhere;
}

/* Extremely long titles scroll inside the card instead of pushing the date
   above its background. Arrow keys also scroll this area while the link has focus. */
.news-feature-card.has-truncated-headline.is-headline-expanded .news-card__headline-shell {
  height: min(var(--news-headline-full-height), var(--news-headline-available-height, var(--news-headline-full-height)));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* Article images keep the full source image by default, in single pages and drawers. */
figure[data-baltico-article-fit] {
  width: 100%;
  min-width: 0;
  background: #f0f3f5;
}
figure[data-baltico-article-fit="natural"] {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}
figure[data-baltico-article-fit="natural"] img {
  position: static !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
figure[data-baltico-article-fit="cover"],
figure[data-baltico-article-fit="contain"] {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
}
figure[data-baltico-article-fit]:not([data-baltico-article-fit="natural"]) img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}
img.baltico-media--cover { object-fit: cover !important; object-position: var(--baltico-image-position, 50% 50%) !important; }
img.baltico-media--contain { object-fit: contain !important; object-position: var(--baltico-image-position, 50% 50%) !important; }

/* A long editorial nav label can wrap within the existing submenu. */
.site-nav .sub-menu a, .site-footer a { overflow-wrap: anywhere; }
.site-logo img, .site-footer__brand > img { object-fit: contain; }

/* Keep consent controls above theme drawers; Complianz still controls visibility. */
.cmplz-cookiebanner, #cmplz-manage-consent .cmplz-manage-consent { z-index: 100200 !important; }

@media (max-width: 560px) {
  .baltico-form-slot .forminator-response-message.baltico-form-feedback { padding: 18px 16px !important; }
}
@media (max-width: 479px) {
  /* Reserve room for the complete teaser plus a typical expanded headline. */
  .news-feature-card:first-child, .news-feature-card { min-height: 360px; }
}
