/* WordPress block markup adapters. The visual source values live in site.css. */
.wp-site-blocks,
.wp-site-blocks > * {
  margin-block-start: 0;
}

.wp-site-blocks {
  overflow: clip;
}

.wp-block-template-part {
  margin-block: 0;
}

.kymenmatkat-site-header .wp-block-group.kymenmatkat-site-header__inner {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  justify-content: space-between;
  margin-block: 0 !important;
}

.kymenmatkat-header-logo {
  flex: 0 0 190px;
  margin: 0;
}

.kymenmatkat-header-logo img {
  max-height: 49px;
  object-fit: contain;
  width: 190px;
}

.kymenmatkat-main-navigation {
  flex: 1 1 auto;
  justify-content: flex-end;
}

@media (min-width: 1241px) {
  nav.kymenmatkat-main-navigation {
    align-items: stretch;
    align-self: stretch;
    justify-content: flex-start;
    margin-left: 12px;
  }

  nav.kymenmatkat-main-navigation
    > .wp-block-navigation__responsive-container,
  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-close,
  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-dialog,
  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content,
  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content
    > .wp-block-navigation__container {
    height: 100%;
  }

  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content,
  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content
    > .wp-block-navigation__container,
  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content
    > .wp-block-navigation__container
    > .wp-block-navigation-item {
    align-items: stretch;
  }

  .kymenmatkat-main-navigation .wp-block-navigation__container {
    gap: 14px;
    justify-content: flex-start;
  }

  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content
    > .wp-block-navigation__container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content {
    align-items: center;
    display: flex;
    position: relative;
  }

  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content
    > .wp-block-navigation__container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content::after {
    background: var(--kymenmatkat-mint);
    bottom: 25px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 150ms ease;
    width: 100%;
  }

  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content
    > .wp-block-navigation__container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content:hover::after,
  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content
    > .wp-block-navigation__container
    > .current-menu-item
    > .wp-block-navigation-item__content::after,
  nav.kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-content
    > .wp-block-navigation__container
    > .current-menu-ancestor
    > .wp-block-navigation-item__content::after {
    transform: scaleX(1);
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__container
    > .wp-block-navigation-submenu
    > .wp-block-navigation__submenu-container {
    left: 0 !important;
    min-width: 310px !important;
    padding: 8px;
    right: auto !important;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__container
    > .wp-block-navigation-submenu
    > .wp-block-navigation__submenu-container
    > .wp-block-navigation-submenu {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
  }

  /*
   * Keep the second-level item hovered while the pointer crosses the visual
   * gap before its third-level menu. Without this bridge, Core closes the
   * submenu during the seven-pixel transition.
   */
  .kymenmatkat-main-navigation
    .wp-block-navigation__container
    > .wp-block-navigation-submenu
    > .wp-block-navigation__submenu-container
    > .wp-block-navigation-submenu:hover::after,
  .kymenmatkat-main-navigation
    .wp-block-navigation__container
    > .wp-block-navigation-submenu
    > .wp-block-navigation__submenu-container
    > .wp-block-navigation-submenu:focus-within::after {
    content: "";
    height: 100%;
    left: 100%;
    position: absolute;
    top: 0;
    width: 8px;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__container
    > .wp-block-navigation-submenu
    > .wp-block-navigation__submenu-container
    > .wp-block-navigation-submenu
    > .wp-block-navigation__submenu-container {
    left: calc(100% + 7px) !important;
    max-height: calc(100vh - 126px);
    min-width: 270px !important;
    overscroll-behavior: contain;
    overflow-y: auto !important;
    right: auto !important;
    top: -8px !important;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    font-size: 0.84rem;
    line-height: 1.35;
    min-height: 43px;
    padding: 10px 12px;
    white-space: normal;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item:hover,
  .kymenmatkat-main-navigation
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item:focus-within {
    background: var(--kymenmatkat-mint-light);
    border-radius: 5px;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item:hover
    > .wp-block-navigation-item__content,
  .kymenmatkat-main-navigation
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item:focus-within
    > .wp-block-navigation-item__content {
    background: transparent;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-submenu
    > .wp-block-navigation-submenu__toggle {
    align-items: center;
    align-self: stretch;
    background: transparent;
    border-left: 1px solid var(--kymenmatkat-line);
    display: flex !important;
    flex: 0 0 42px;
    height: auto !important;
    justify-content: center;
    margin: 0;
    min-height: 43px;
    padding: 0;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__container
    > .wp-block-navigation-submenu
    > .wp-block-navigation-submenu__toggle {
    align-items: center;
    align-self: stretch;
    display: flex !important;
    height: auto !important;
    justify-content: center;
    line-height: 1;
  }
}

.kymenmatkat-main-navigation .wp-block-navigation-submenu__toggle svg {
  display: block;
  height: 14px;
  margin: 0;
  stroke: currentColor;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 150ms ease;
  width: 14px;
}

.kymenmatkat-main-navigation .wp-block-navigation-submenu__toggle::after {
  content: none;
}

.kymenmatkat-main-navigation
  .wp-block-navigation-submenu__toggle[aria-expanded="true"]
  svg {
  transform: rotate(180deg);
}

/* The linked logo is the home control on desktop; keep Home in the open mobile menu. */
.kymenmatkat-main-navigation .kymenmatkat-mobile-home-link {
  display: none;
}

.kymenmatkat-main-navigation .kymenmatkat-mobile-menu-cta {
  display: none;
}

.kymenmatkat-main-navigation
  .wp-block-navigation__responsive-container.is-menu-open
  .kymenmatkat-mobile-home-link,
.editor-styles-wrapper
  .kymenmatkat-main-navigation
  .kymenmatkat-mobile-home-link {
  display: flex;
}

.kymenmatkat-main-navigation .wp-block-navigation-item__content {
  color: var(--kymenmatkat-ink);
  text-decoration: none;
}

.kymenmatkat-main-navigation .wp-block-navigation-item__content:hover,
.kymenmatkat-main-navigation .current-menu-item > .wp-block-navigation-item__content {
  color: var(--kymenmatkat-mint);
}

.kymenmatkat-main-navigation .wp-block-navigation__submenu-container {
  background: #fff;
  border: 1px solid var(--kymenmatkat-line);
  border-radius: var(--kymenmatkat-radius);
  box-shadow: var(--kymenmatkat-shadow);
  min-width: 260px !important;
  padding: 10px;
}

.kymenmatkat-main-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  border-radius: 5px;
  padding: 9px 11px;
}

.kymenmatkat-main-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--kymenmatkat-mint-light);
}

.kymenmatkat-language-link {
  color: var(--kymenmatkat-ink);
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.kymenmatkat-header-cta {
  flex: 0 0 auto;
  margin: 0;
}

.wp-element-button,
.wp-block-button__link {
  align-items: center;
  background: var(--kymenmatkat-mint);
  border: 2px solid transparent;
  border-radius: var(--kymenmatkat-radius);
  color: #fff;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 750;
  gap: 10px;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  background: #005e55;
  color: #fff;
  transform: translateY(-1px);
}

.is-style-kymenmatkat-secondary .wp-block-button__link {
  background: #fff;
  border-color: var(--kymenmatkat-mint);
  color: var(--kymenmatkat-mint);
}

.is-style-kymenmatkat-secondary .wp-block-button__link:hover {
  background: var(--kymenmatkat-mint-light);
  color: var(--kymenmatkat-mint);
}

.is-style-kymenmatkat-light .wp-block-button__link {
  background: #fff;
  border-color: #667987;
  color: var(--kymenmatkat-blue-dark);
}

.is-style-kymenmatkat-light .wp-block-button__link:hover {
  background: #fff;
  color: var(--kymenmatkat-blue-dark);
}

.is-style-kymenmatkat-card {
  background: #fff;
  border: 1px solid var(--kymenmatkat-line);
  border-radius: var(--kymenmatkat-radius);
  box-shadow: var(--kymenmatkat-shadow);
  padding: clamp(24px, 4vw, 40px);
}

/* Default every hero to the homepage image; inline and featured images win. */
.kymenmatkat-site .kymenmatkat-hero,
.editor-styles-wrapper .kymenmatkat-hero {
  --kymenmatkat-hero-image: var(--kymenmatkat-default-hero-image);
  --kymenmatkat-hero-image-mobile: var(--kymenmatkat-default-hero-image-mobile);
}

/* Cover blocks use the same clear photo and curved copy panel as PHP heroes. */
.kymenmatkat-site .wp-block-cover.kymenmatkat-hero,
.editor-styles-wrapper .wp-block-cover.kymenmatkat-hero {
  background-image: var(--kymenmatkat-hero-image);
}

.kymenmatkat-site
  .wp-block-cover.kymenmatkat-hero
  > .wp-block-cover__background,
.editor-styles-wrapper
  .wp-block-cover.kymenmatkat-hero
  > .wp-block-cover__background {
  background: transparent !important;
  opacity: 0 !important;
}

.kymenmatkat-hero {
  background-image: var(--kymenmatkat-hero-image);
}

.kymenmatkat-section.wp-block-group {
  margin-block: 0;
}

/*
 * The flexible page content uses the 930px reading width by default. The trip
 * search is a wide visual module, so keep it on the same 1180px container
 * edges as the HTML reference and the neighbouring homepage sections.
 */
.kymenmatkat-flexible-content > .kymenmatkat-search-wrap {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--kymenmatkat-content);
  width: calc(100% - 48px);
}

/*
 * The block-template version of a regular page places post content inside a
 * 1180px container but applies the 760px prose width to every direct child.
 * The server-rendered trip search and its index/results sections are wide
 * modules, so let them use the full parent container on pages such as
 * /kohdemaat/ and /teemat/. Their nested container must not add a second 24px
 * inset when the section itself already sits inside the wide page container.
 */
.kymenmatkat-site
  .wp-block-post-content.kymenmatkat-prose
  > :where(.kymenmatkat-search-wrap, .kymenmatkat-section) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.kymenmatkat-site
  .wp-block-post-content.kymenmatkat-prose
  > .kymenmatkat-section
  > .kymenmatkat-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/*
 * Server-rendered ACF blocks output their section element without Core's
 * alignfull class. Do not let the flexible-content reading width reduce those
 * trip modules to 930px; their own inner container provides the 1180px edge.
 */
.kymenmatkat-flexible-content > .kymenmatkat-section {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

/* Archive templates render the CTA directly inside main instead of a section
 * container. Restore the normal wide-container margins in that context. */
.kymenmatkat-site main#main-content > .kymenmatkat-full-cta.alignwide {
	margin-bottom: 72px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: var(--kymenmatkat-content) !important;
  width: calc(100% - 48px) !important;
}

/*
 * Unaligned button groups follow the readable content column by default.
 * The Buttons block's native justification control can still place the
 * buttons left, centre or right; wide/full alignment remains an explicit opt-in.
 */
.kymenmatkat-container.is-layout-constrained
  > .wp-block-buttons:not(.alignwide):not(.alignfull) {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: var(--wp--style--global--content-size, 930px) !important;
  width: 100% !important;
}

/* Service-page text uses a 760px reading measure. Keep ordinary button groups
 * on that same left edge; editors can still opt into wide or full alignment. */
.kymenmatkat-prose.kymenmatkat-service-page
  > .wp-block-buttons:not(.alignwide):not(.alignfull) {
  max-width: 760px !important;
}

/*
 * Block templates place the shared quote CTA inside a separate wide Group.
 * Let the wrapper continue the page's existing background and keep the card
 * separated from the footer with the same vertical rhythm as other sections.
 */
.kymenmatkat-site
  main#main-content
  > .wp-block-group:has(> .kymenmatkat-full-cta) {
  box-sizing: border-box;
  margin-block-start: 0 !important;
  max-width: none !important;
  padding: 20px max(24px, calc(50% - 590px)) 72px;
  width: 100% !important;
}

/* Continue a white content section without a tinted band or separator line. */
.kymenmatkat-site
  main#main-content
  > .kymenmatkat-section--white
  + .wp-block-group:has(> .kymenmatkat-full-cta) {
  background: #fff;
}

.kymenmatkat-site
  main#main-content
  > .kymenmatkat-section--white:has(
    + .wp-block-group > .kymenmatkat-full-cta
  ) {
  border-bottom: 0;
}

.kymenmatkat-site
  main#main-content
  > .wp-block-group:has(> .kymenmatkat-full-cta)
  > .kymenmatkat-full-cta {
  margin: 0 auto !important;
  max-width: var(--kymenmatkat-content) !important;
  width: 100% !important;
}

/*
 * ACF renders the trip sections as semantic section elements instead of Core
 * Group wrappers. WordPress therefore treats them as ordinary children of the
 * constrained template main and reduces them to contentSize (930px). Keep the
 * section backgrounds full width so their inner containers can use the HTML
 * reference's 1180px wideSize.
 */
.kymenmatkat-site
  main#main-content.is-layout-constrained
  > .kymenmatkat-section {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

/*
 * WordPress constrains direct children of a constrained Group to contentSize
 * (930px). The HTML reference uses the full 1180px container for these visual
 * modules, so explicitly opt those modules back into the wide container.
 */
.kymenmatkat-section > .kymenmatkat-container > :where(
    .kymenmatkat-section-heading,
    .kymenmatkat-trip-description,
    .kymenmatkat-split-feature,
    .kymenmatkat-destination-grid,
    .kymenmatkat-theme-grid,
    .kymenmatkat-calendar-grid,
    .kymenmatkat-campaign-list,
    .kymenmatkat-card-grid,
    .kymenmatkat-notice-grid,
    .kymenmatkat-service-grid,
    .kymenmatkat-form-layout,
    .kymenmatkat-hotel-overview,
    .kymenmatkat-hotel-location,
    .kymenmatkat-hotel-content-grid,
    .kymenmatkat-hotel-room-grid,
    .kymenmatkat-hotel-gallery,
    .kymenmatkat-full-cta,
    .wp-block-buttons
  ) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

/* Quote-request page: keep the intro and both columns on the wide container's
 * left edge. Gutenberg's constrained Group and Columns rules otherwise inset
 * the heading and stretch every sidebar card to the form's full height. */
.kymenmatkat-quote-request > :where(
    .wp-block-heading,
    .kymenmatkat-form-intro
  ) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 900px !important;
  width: 100% !important;
}

.kymenmatkat-quote-request > .kymenmatkat-form-intro {
  margin-top: 8px !important;
}

.kymenmatkat-quote-request > .kymenmatkat-form-layout.wp-block-columns {
  align-items: start !important;
  display: grid !important;
  gap: 28px !important;
  grid-template-columns: minmax(0, 798px) minmax(0, 1fr);
}

.kymenmatkat-form-layout > .wp-block-column {
  flex-basis: auto !important;
  min-width: 0;
}

.kymenmatkat-form-layout > .kymenmatkat-form-aside {
  align-content: start;
  align-self: start;
  display: grid !important;
  gap: 24px !important;
  grid-auto-rows: max-content;
}

.kymenmatkat-form-aside > .wp-block-group {
  align-self: start;
  height: auto !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 28px !important;
  width: 100% !important;
}

.kymenmatkat-form-aside > .wp-block-group > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

.kymenmatkat-form-aside .kymenmatkat-contact-card {
  margin: 18px 0 12px !important;
  max-width: none !important;
  width: 100% !important;
}

.kymenmatkat-form-aside .kymenmatkat-contact-card > .kymenmatkat-icon {
  color: var(--kymenmatkat-blue-dark);
  flex: 0 0 32px;
  height: 32px;
  margin: 0 !important;
  width: 32px;
}

.kymenmatkat-contact-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.kymenmatkat-contact-card__content > * {
  margin: 0 !important;
}

.kymenmatkat-contact-card__content a {
  color: var(--kymenmatkat-blue-dark);
  text-decoration: none;
}

.kymenmatkat-contact-card__content .kymenmatkat-contact-card__meta {
  color: var(--kymenmatkat-muted);
  font-size: 0.72rem;
  margin-top: 2px !important;
}

.kymenmatkat-form-aside__email {
  font-size: 0.78rem !important;
  margin: 0 !important;
  overflow-wrap: anywhere;
}

.kymenmatkat-form-aside__notice {
  background: var(--kymenmatkat-cream) !important;
}

@media (max-width: 980px) {
  .kymenmatkat-quote-request > .kymenmatkat-form-layout.wp-block-columns {
    grid-template-columns: 1fr;
  }

  .kymenmatkat-form-layout > .kymenmatkat-form-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .kymenmatkat-form-layout > .kymenmatkat-form-aside {
    grid-template-columns: 1fr;
  }
}

/* Keep the hero copy on the container's left edge as in the HTML reference. */
.kymenmatkat-hero__inner > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.kymenmatkat-hero__inner > :where(
    .kymenmatkat-hero-slogan,
    .kymenmatkat-breadcrumbs,
    .kymenmatkat-button-row
  ) {
  max-width: none !important;
  width: 100%;
}

body.home.kymenmatkat-site
  main#main-content
  .kymenmatkat-hero__inner
  > .kymenmatkat-button-row.wp-block-buttons.is-layout-flex {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.page-template-page-tarjouspyynto.kymenmatkat-site
  main#main-content
  .kymenmatkat-hero__inner
  > .kymenmatkat-button-row.wp-block-buttons.is-layout-flex {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* The React/HTML heading component wraps its copy; the block pattern does not. */
.kymenmatkat-section-heading.wp-block-group {
  display: block;
}

.kymenmatkat-section-heading.wp-block-group > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.kymenmatkat-section-heading.wp-block-group > .wp-block-heading {
  max-width: none !important;
  width: 100%;
}

.kymenmatkat-section-heading.wp-block-group > p {
  max-width: 930px !important;
}

/* The icon and its copy use the same two-column row as the HTML reference. */
.kymenmatkat-trust-strip.wp-block-group {
  gap: 0 !important;
}

.kymenmatkat-trust-strip article.wp-block-group {
  display: flex;
}

.kymenmatkat-trust-strip article.wp-block-group > .kymenmatkat-icon,
.kymenmatkat-trust-strip article.wp-block-group > .wp-block-group {
  margin: 0 !important;
  max-width: none !important;
}

.kymenmatkat-trust-strip article.wp-block-group > .wp-block-group > .wp-block-heading {
  margin: 0 0 5px !important;
}

.kymenmatkat-trust-strip article.wp-block-group > .wp-block-group > p {
  margin: 0 !important;
}

/* Core's generated grid rule has more weight than the component breakpoint. */
@media (max-width: 980px) {
  .kymenmatkat-trust-strip.is-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .kymenmatkat-service-grid.is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .kymenmatkat-service-grid.is-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Keep the useful support links but remove desktop-only card height and
   * whitespace. Four cards now scan as compact mobile rows. */
  .kymenmatkat-service-grid--support article.wp-block-group {
    min-height: 0;
    padding: 18px !important;
  }

  .kymenmatkat-service-grid--support article > .kymenmatkat-icon {
    height: 42px;
    margin-bottom: 10px !important;
    width: 42px;
  }

  .kymenmatkat-service-grid--support article > .wp-block-heading {
    margin-bottom: 6px !important;
  }

  .kymenmatkat-service-grid--support
    article
    > p:not(.kymenmatkat-service-grid__cta) {
    margin-bottom: 12px !important;
  }

  .kymenmatkat-service-grid--support .kymenmatkat-service-grid__cta {
    margin-top: 0 !important;
  }

  .kymenmatkat-service-grid--support .kymenmatkat-service-grid__cta a {
    min-height: 38px;
    padding-block: 7px;
  }
}

/*
 * Core Image and constrained Group wrappers must not add their intrinsic
 * dimensions or block gaps to the reference card grids.
 */
.kymenmatkat-campaign-list > .kymenmatkat-image-card,
.kymenmatkat-theme-grid > .kymenmatkat-image-card,
.kymenmatkat-destination-grid > .kymenmatkat-image-card {
  margin-block-start: 0 !important;
}

.kymenmatkat-image-card--horizontal > .kymenmatkat-image-card__media,
.kymenmatkat-image-card--horizontal > .kymenmatkat-image-card__content,
.kymenmatkat-theme-grid .kymenmatkat-image-card__media,
.kymenmatkat-theme-grid .kymenmatkat-image-card__content {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.kymenmatkat-image-card--horizontal > .kymenmatkat-image-card__media {
  height: 100% !important;
}

.kymenmatkat-image-card--horizontal .kymenmatkat-image-card__media > a,
.kymenmatkat-theme-grid .kymenmatkat-image-card__media > a,
.kymenmatkat-destination-grid .kymenmatkat-image-card__media > a {
  display: block;
  height: 100%;
  width: 100%;
}

.kymenmatkat-image-card--horizontal .kymenmatkat-image-card__media img,
.kymenmatkat-theme-grid .kymenmatkat-image-card__media img,
.kymenmatkat-destination-grid .kymenmatkat-image-card__media img {
  display: block;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  width: 100% !important;
}

.kymenmatkat-image-card--horizontal .kymenmatkat-image-card__content > *,
.kymenmatkat-theme-grid .kymenmatkat-image-card__content > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

.kymenmatkat-image-card--horizontal .kymenmatkat-card-label--content {
  font-size: 0.67rem !important;
  margin: 0 0 15px !important;
}

.kymenmatkat-image-card--horizontal .kymenmatkat-image-card__content > .wp-block-heading,
.kymenmatkat-theme-grid .kymenmatkat-image-card__content > .wp-block-heading {
  margin: 0 0 10px !important;
}

.kymenmatkat-image-card--horizontal .kymenmatkat-image-card__content > p:not(.kymenmatkat-card-label),
.kymenmatkat-theme-grid .kymenmatkat-image-card__content > p {
  margin: 0 0 18px !important;
}

.kymenmatkat-button-row.wp-block-buttons {
  gap: 12px;
}

.kymenmatkat-search-panel__fields {
  grid-template-columns: 1.05fr 1.05fr 1.05fr 1.2fr 0.8fr;
}

.kymenmatkat-search-panel__value {
  grid-template-columns: 30px minmax(0, 1fr);
}

.kymenmatkat-search-panel__value .kymenmatkat-icon--compass {
  color: var(--kymenmatkat-teal);
}

.kymenmatkat-image-card .wp-block-image,
.kymenmatkat-staff-cta .wp-block-image {
  margin: 0;
}

.kymenmatkat-calendar-date {
  align-items: center;
  background: #eef8f6;
  border: 1px solid #b8dcd6;
  border-radius: var(--kymenmatkat-radius);
  display: flex;
  flex-direction: column;
  height: 96px;
  justify-content: center;
  line-height: 1;
  text-align: center;
  width: 74px;
}

.kymenmatkat-calendar-date p {
  margin: 0;
}

.kymenmatkat-calendar-date strong {
  color: var(--kymenmatkat-ink);
  font-family: var(--kymenmatkat-font-heading);
  font-size: 1rem;
}

.kymenmatkat-calendar-grid > .kymenmatkat-calendar-card {
  display: grid !important;
  margin-block-start: 0 !important;
}

.kymenmatkat-calendar-card > .kymenmatkat-calendar-date,
.kymenmatkat-calendar-card > .kymenmatkat-calendar-card__body,
.kymenmatkat-calendar-card > .kymenmatkat-calendar-card__cta {
  margin: 0 !important;
  max-width: none !important;
}

.kymenmatkat-calendar-card__body {
  width: 100%;
}

.kymenmatkat-calendar-card__body > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

.kymenmatkat-calendar-card__body > .wp-block-heading {
  margin: 0 0 7px !important;
}

.kymenmatkat-calendar-card__body > .kymenmatkat-calendar-card__meta {
  margin: 0 !important;
}

.kymenmatkat-calendar-card__body > p {
  margin: 8px 0 0 !important;
}

.kymenmatkat-calendar-card > .kymenmatkat-calendar-card__cta {
  color: #fff !important;
  margin: 0 !important;
  text-decoration: none;
}

@media (max-width: 760px) {
  .kymenmatkat-calendar-card > .kymenmatkat-calendar-card__cta {
    margin-top: 4px !important;
  }
}

.kymenmatkat-notice > p:first-child {
  margin: 0;
}

.kymenmatkat-notice > p:first-child span {
  background: #fff;
  border-radius: 6px;
  color: var(--kymenmatkat-accent);
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 850;
  padding: 5px 9px;
  text-transform: uppercase;
}

.kymenmatkat-service-grid--support .kymenmatkat-service-grid__cta {
  background: transparent;
  border: 0;
  margin: auto 0 0 !important;
  max-width: none !important;
  padding: 0;
}

.kymenmatkat-service-grid--support .kymenmatkat-service-grid__cta a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--kymenmatkat-service-accent);
  border-radius: var(--kymenmatkat-radius);
  color: var(--kymenmatkat-service-accent);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  min-height: 42px;
  padding: 9px 13px;
  text-decoration: none;
}

.kymenmatkat-service-grid--support article > .kymenmatkat-icon,
.kymenmatkat-service-grid--support article > .wp-block-heading,
.kymenmatkat-service-grid--support article > p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

.kymenmatkat-service-grid--support article > .kymenmatkat-icon {
  margin-bottom: 16px !important;
}

.kymenmatkat-service-grid--support article > .wp-block-heading {
  margin-bottom: 10px !important;
  margin-top: 0 !important;
}

.kymenmatkat-service-grid--support article > p:not(.kymenmatkat-service-grid__cta) {
  margin-bottom: 20px !important;
  margin-top: 0 !important;
}

.kymenmatkat-staff-cta > figure {
  align-self: stretch;
  height: auto;
  width: 100%;
}

.kymenmatkat-staff-cta > figure img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Core's saved flex layout otherwise replaces the reference's 44/56 grid and
 * leaves empty bands above and below its fixed-height image wrapper. */
.kymenmatkat-staff-cta.wp-block-group {
  display: grid !important;
  grid-template-columns: 44% 1fr;
}

.kymenmatkat-site-footer .kymenmatkat-container > :where(
    .kymenmatkat-site-footer__grid,
    .kymenmatkat-site-footer__bar,
    .kymenmatkat-site-footer__legal
  ) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

.kymenmatkat-site-footer__grid.wp-block-columns {
  display: grid !important;
}

.kymenmatkat-site-footer__grid > .wp-block-column {
  margin: 0 !important;
  min-width: 0;
}

.kymenmatkat-site-footer__grid > .wp-block-column:first-child > .wp-block-heading {
  margin: 0 0 0.83em !important;
}

.kymenmatkat-site-footer__grid > .wp-block-column:first-child > address {
  margin: 0 !important;
}

.kymenmatkat-site-footer__grid .kymenmatkat-footer-phone {
  color: inherit;
}

.kymenmatkat-site-footer__grid > .wp-block-column:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.kymenmatkat-site-footer__grid > .wp-block-column:not(:first-child) > .wp-block-heading {
  margin: 0 0 0.8rem !important;
}

.kymenmatkat-site-footer__grid .wp-block-navigation {
  margin: 0 !important;
}

.kymenmatkat-site-footer__grid .wp-block-navigation__container {
  align-items: flex-start;
  gap: 7px !important;
}

.kymenmatkat-site-footer__grid .wp-block-navigation-item__content {
  color: var(--kymenmatkat-blue) !important;
  font-size: 0.84rem;
  font-weight: 700;
}

.kymenmatkat-site-footer__bar > p {
  align-items: center;
  display: flex;
  gap: 34px;
  margin: 0 !important;
}

.kymenmatkat-card-grid > .wp-block-post-template,
.kymenmatkat-card-grid.wp-block-post-template {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

.kymenmatkat-card-grid > .wp-block-post-template > .wp-block-post,
.kymenmatkat-card-grid.wp-block-post-template > .wp-block-post {
  margin-block-start: 0 !important;
}

.kymenmatkat-post-card {
  --kymenmatkat-accent: var(--kymenmatkat-blue);
  background: #fff;
  border: 1px solid var(--kymenmatkat-line);
  border-radius: var(--kymenmatkat-radius);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 374px;
  min-width: 0;
  overflow: hidden;
}

.kymenmatkat-post-card > .wp-block-post-featured-image,
.kymenmatkat-post-card > .kymenmatkat-post-card__body {
  margin-block-start: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.kymenmatkat-post-card.kymenmatkat-accent--blue,
.kymenmatkat-card-grid > .wp-block-post-template > .wp-block-post:nth-child(even) .kymenmatkat-post-card,
.kymenmatkat-card-grid.wp-block-post-template > .wp-block-post:nth-child(even) .kymenmatkat-post-card {
  --kymenmatkat-accent: var(--kymenmatkat-blue);
}

.kymenmatkat-post-card.kymenmatkat-accent--mint,
.kymenmatkat-card-grid > .wp-block-post-template > .wp-block-post:nth-child(odd) .kymenmatkat-post-card,
.kymenmatkat-card-grid.wp-block-post-template > .wp-block-post:nth-child(odd) .kymenmatkat-post-card {
  --kymenmatkat-accent: var(--kymenmatkat-mint);
}

.kymenmatkat-post-card .wp-block-post-featured-image {
  flex: 0 0 174px;
  height: 174px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.kymenmatkat-post-card > .kymenmatkat-post-card__media {
  display: block;
  flex: 0 0 174px;
  height: 174px;
}

.kymenmatkat-post-card .wp-block-post-featured-image > a {
  display: block;
  height: 100%;
}

.kymenmatkat-post-card .wp-block-post-featured-image::after {
  background: linear-gradient(transparent, rgba(9, 35, 50, 0.55));
  bottom: 0;
  content: "";
  height: 66px;
  left: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
}

.kymenmatkat-post-card .wp-block-post-featured-image img,
.kymenmatkat-post-card > .kymenmatkat-post-card__media img {
  aspect-ratio: auto;
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.kymenmatkat-post-card:hover .wp-block-post-featured-image img,
.kymenmatkat-post-card:hover > .kymenmatkat-post-card__media img {
  transform: scale(1.025);
}

.kymenmatkat-post-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 198px;
  padding: 25px 22px 20px;
  position: relative;
}

.kymenmatkat-post-card__body > * {
  margin-block-start: 0 !important;
}

.kymenmatkat-post-card__body > .kymenmatkat-card-label {
  left: 20px;
  margin: 0 !important;
  max-width: calc(100% - 40px);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  top: 0;
  transform: translateY(-50%);
  white-space: nowrap;
}

.kymenmatkat-post-card__body .wp-block-post-title,
.kymenmatkat-post-card__body h2,
.kymenmatkat-post-card__body h3 {
  display: -webkit-box;
  font-family: var(--kymenmatkat-font-body);
  font-size: 1.16rem;
  line-height: 1.3;
  margin: 0 0 10px !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kymenmatkat-post-card__body .wp-block-post-title a,
.kymenmatkat-post-card__body h2 a,
.kymenmatkat-post-card__body h3 a {
  color: var(--kymenmatkat-blue);
  text-decoration: none;
}

.kymenmatkat-post-card__body .wp-block-post-title a:hover,
.kymenmatkat-post-card__body .wp-block-post-title a:focus-visible,
.kymenmatkat-post-card__body h2 a:hover,
.kymenmatkat-post-card__body h2 a:focus-visible,
.kymenmatkat-post-card__body h3 a:hover,
.kymenmatkat-post-card__body h3 a:focus-visible {
  color: var(--kymenmatkat-mint);
}

.kymenmatkat-post-card__body .wp-block-post-excerpt,
.kymenmatkat-post-card__body .kymenmatkat-post-card__excerpt {
  color: var(--kymenmatkat-muted);
  display: -webkit-box;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 18px !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kymenmatkat-post-card__body .wp-block-post-excerpt__excerpt {
  margin: 0 !important;
}

.kymenmatkat-post-card__body time,
.kymenmatkat-post-card__date {
  border-top: 1px solid #e2edf1;
  color: var(--kymenmatkat-muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: auto !important;
  padding-top: 15px;
}

.kymenmatkat-blog-archive-link.wp-block-buttons {
  justify-content: flex-start;
  margin-top: 32px;
}

body.home.kymenmatkat-site
  main#main-content
  .kymenmatkat-section
  > .kymenmatkat-container
  > .kymenmatkat-blog-archive-link.wp-block-buttons {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Creamailer's embedded form keeps its external action and field names while
 * adopting the site's native field, focus and button styles. */
.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] {
  background: #fff;
  border: 1px solid var(--kymenmatkat-line);
  border-radius: var(--kymenmatkat-radius);
  box-shadow: 0 10px 30px rgba(16, 47, 68, 0.08);
  box-sizing: border-box;
  display: grid;
  gap: 20px;
  margin-bottom: 72px;
  max-width: 760px;
  padding: clamp(24px, 4vw, 40px);
  width: min(760px, calc(100% - 48px));
}

.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] .form-group {
  display: grid;
  gap: 8px;
}

.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] label {
  color: var(--kymenmatkat-navy);
  font-size: 0.92rem;
  font-weight: 750;
}

.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] .form-control {
  appearance: none;
  background: #fff;
  border: 1px solid #667987;
  border-radius: var(--kymenmatkat-radius);
  box-sizing: border-box;
  color: var(--kymenmatkat-navy);
  font: inherit;
  min-height: 54px;
  padding: 12px 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}

.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] .form-control:hover {
  border-color: var(--kymenmatkat-blue);
}

.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] .form-control:focus {
  border-color: var(--kymenmatkat-mint);
  box-shadow: 0 0 0 3px rgba(0, 132, 121, 0.18);
  outline: 0;
}

.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] .clearfix {
  display: none;
}

.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] .actions {
  margin-top: 4px;
}

.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] .btn-submit {
  appearance: none;
  background: var(--kymenmatkat-mint);
  border: 1px solid var(--kymenmatkat-mint);
  border-radius: var(--kymenmatkat-radius);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 52px;
  padding: 12px 22px;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] .btn-submit:hover,
.kymenmatkat-site main form[action*="kymenmatkat.creamailer.fi"] .btn-submit:focus-visible {
  background: #006e65;
  border-color: #006e65;
  color: #fff;
  transform: translateY(-1px);
}

.kymenmatkat-prose > * {
  max-width: 760px;
}

/* Service pages use the normal 760px reading measure, while their designed
 * fact and action modules deliberately span the full 930px content column. */
.kymenmatkat-prose.kymenmatkat-service-page > :where(
    .kymenmatkat-special-facts,
    .kymenmatkat-service-cta
  ) {
  max-width: none;
  width: 100%;
}

/* A reservation engine embedded on a service page must use the same 1180px
 * container as it does on a Matka page. Keep only the surrounding prose at
 * the narrower reading measure and remove the nested container inset. */
.kymenmatkat-site
  .kymenmatkat-prose.kymenmatkat-service-page
  .kymenmatkat-trip-reservation__engine {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.kymenmatkat-site
  .kymenmatkat-prose.kymenmatkat-service-page
  .kymenmatkat-trip-reservation__engine
  > .kymenmatkat-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.kymenmatkat-prose > .alignwide,
.kymenmatkat-prose > .alignfull {
  max-width: none;
}

.kymenmatkat-prose .wp-block-image img {
  border-radius: var(--kymenmatkat-radius);
}

/*
 * Use the wide, scrollable comparison-table treatment from the HTML text-page
 * template for every native Table block across public content fields. Editors
 * do not need to add a custom class to receive the theme styling.
 */
.kymenmatkat-prose > .wp-block-table {
  max-width: none;
  width: 100%;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) {
  background: #fff;
  border: 1px solid var(--kymenmatkat-line);
  border-radius: var(--kymenmatkat-radius);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) table {
  border-collapse: collapse;
  min-width: 780px;
  width: 100%;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) th,
:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) td {
  border: 0;
  border-bottom: 1px solid var(--kymenmatkat-line);
  border-right: 1px solid var(--kymenmatkat-line);
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) th:last-child,
:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) td:last-child {
  border-right: 0;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) tbody tr:last-child td {
  border-bottom: 0;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) thead th {
  background: var(--kymenmatkat-blue-dark);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) tbody tr:nth-child(odd) {
  background: #f7fbfc;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) tbody td {
  color: #405969;
  font-size: 0.88rem;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) tbody td:first-child {
  color: var(--kymenmatkat-ink);
  font-weight: 600;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .wp-block-table:not(.kymenmatkat-table-wrap) tbody td:last-child {
  color: var(--kymenmatkat-mint);
  font-weight: 700;
}

:is(.kymenmatkat-site, .editor-styles-wrapper)
  .wp-block-table:not(.kymenmatkat-table-wrap)
  tbody
  tr:has(> td:first-child > strong)
  td {
  background: #eaf7f4;
  color: var(--kymenmatkat-teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-block: 14px;
  text-transform: uppercase;
}

/*
 * Give legacy TablePress tables the same visual language as native Table
 * blocks. TablePress 3 renders DataTables controls and separate scroll-head,
 * scroll-body and scroll-foot tables, so the border belongs to .dt-scroll
 * while the cell treatment is shared by every generated table copy.
 */
:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container {
  color: #405969;
  font-size: 0.88rem;
  font-weight: 400;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container > .dt-layout-row:not(.dt-layout-table) {
  align-items: center;
  display: flex;
  gap: 16px 28px;
  justify-content: space-between;
  margin: 0 0 14px;
}

:is(.kymenmatkat-site, .editor-styles-wrapper)
  .dt-container
  > .dt-layout-row:last-child:not(.dt-layout-table) {
  margin: 14px 0 0;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-layout-cell {
  margin: 0;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-length label,
:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-search {
  align-items: center;
  color: var(--kymenmatkat-muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 9px;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-input {
  appearance: none;
  background-color: #fff;
  border: 1px solid var(--kymenmatkat-line);
  border-radius: 8px;
  color: var(--kymenmatkat-ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 12px;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container select.dt-input {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--kymenmatkat-blue-dark) 50%),
    linear-gradient(135deg, var(--kymenmatkat-blue-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 18px,
    calc(100% - 10px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  min-width: 72px;
  padding-right: 30px;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container input.dt-input {
  min-width: min(260px, 42vw);
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-input:focus {
  border-color: var(--kymenmatkat-blue);
  box-shadow: 0 0 0 3px rgb(0 103 166 / 14%);
  outline: 0;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-scroll,
:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress-scroll-wrapper {
  background: #fff;
  border: 1px solid var(--kymenmatkat-line);
  border-radius: var(--kymenmatkat-radius);
  overflow: hidden;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-scroll-body,
:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress-scroll-wrapper {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress {
  border-collapse: collapse;
  font-weight: 400;
  margin: 0;
  min-width: 0;
  width: 100% !important;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress th,
:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress td {
  border: 0;
  border-bottom: 1px solid var(--kymenmatkat-line);
  border-right: 1px solid var(--kymenmatkat-line);
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress th:last-child,
:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress td:last-child {
  border-right: 0;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress thead th {
  background: var(--kymenmatkat-blue-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* DataTables retains hidden sizing headers inside the scrollable body table. */
:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-scroll-body .tablepress thead th,
:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-scroll-body .tablepress tfoot td {
  padding-block: 0;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress tbody tr:nth-child(odd) > :is(td, th) {
  background: #f7fbfc;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress tbody tr:nth-child(even) > :is(td, th) {
  background: #fff;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress tbody tr:hover > :is(td, th) {
  background: #eaf7f4;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress tbody tr:last-child td {
  border-bottom: 0;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress tbody td {
  color: #405969;
  font-size: 0.88rem;
  font-weight: 400;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress tbody td:first-child {
  color: var(--kymenmatkat-ink);
  font-weight: 600;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress tbody td:last-child {
  color: var(--kymenmatkat-mint);
  font-weight: 700;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-info {
  color: var(--kymenmatkat-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-paging nav {
  align-items: center;
  display: flex;
  gap: 5px;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container button.dt-paging-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--kymenmatkat-line);
  border-radius: 7px;
  color: var(--kymenmatkat-blue-dark);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  padding: 7px 10px;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container button.dt-paging-button.current {
  background: var(--kymenmatkat-blue-dark);
  border-color: var(--kymenmatkat-blue-dark);
  color: #fff !important;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container button.dt-paging-button:not(.disabled):hover {
  background: #eaf7f4;
  border-color: var(--kymenmatkat-mint);
  color: var(--kymenmatkat-teal-dark);
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container button.dt-paging-button.disabled {
  cursor: default;
  opacity: 0.42;
}

@media (max-width: 680px) {
  .kymenmatkat-tablepress-shell {
    margin-block: 20px 32px;
  }

  :is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container > .dt-layout-row:not(.dt-layout-table) {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  :is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-layout-end {
    margin-left: 0;
  }

  :is(.kymenmatkat-site, .editor-styles-wrapper)
    .dt-container
    > .dt-layout-row:not(.dt-layout-table)
    > .dt-layout-cell,
  :is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-search {
    width: 100%;
  }

  :is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-search {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  :is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container input.dt-input {
    min-width: 0;
    width: 100%;
  }

  :is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress th,
  :is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress td {
    padding: 14px 16px;
  }

  :is(.kymenmatkat-site, .editor-styles-wrapper) .dt-scroll-body .tablepress thead th,
  :is(.kymenmatkat-site, .editor-styles-wrapper) .dt-scroll-body .tablepress tfoot td {
    padding-block: 0;
  }

  :is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-paging nav {
    flex-wrap: wrap;
  }
}

/* One shell per TablePress table, added at render time without editing content.
 * DataTables moves its controls inside it; only the actual table gets scrolled. */
.kymenmatkat-tablepress-shell {
  font-weight: 400;
  margin: 24px 0 36px;
  max-width: 100%;
  min-width: 0;
}

.kymenmatkat-tablepress-shell:not(:has(.dt-container)),
:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-layout-cell:has(> table.tablepress) {
  background: #fff;
  border: 1px solid var(--kymenmatkat-line);
  border-radius: var(--kymenmatkat-radius);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container > .dt-layout-table,
:is(.kymenmatkat-site, .editor-styles-wrapper) .dt-container .dt-layout-full {
  display: block;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

/* Allow the grid's price column to shrink around its own scrollable table. */
.kymenmatkat-price-layout > article:has(.tablepress) {
  min-width: 0;
}

/* Keep multi-column schedules readable. Small price tables can remain compact. */
:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress:has(> thead > tr > :nth-child(4)),
:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress:has(> tbody > tr > :nth-child(4)) {
  min-width: 780px;
}

:is(.kymenmatkat-site, .editor-styles-wrapper) .tablepress tfoot > tr > :is(td, th) {
  background: #eaf7f4;
  color: var(--kymenmatkat-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.kymenmatkat-tablepress-shell [data-kymenmatkat-scroll-focus]:focus-visible,
.kymenmatkat-tablepress-shell[data-kymenmatkat-scroll-focus]:focus-visible {
  outline: 3px solid var(--kymenmatkat-blue);
  outline-offset: -3px;
}

.kymenmatkat-archive-pagination {
  margin-top: 42px;
}

/* The default trip introduction is a single reading column. This override is
 * intentionally later than WordPress's alignwide rules. */
.kymenmatkat-site .kymenmatkat-trip-description {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: min(930px, calc(100% - 48px)) !important;
  width: 100% !important;
}

.kymenmatkat-empty-state,
.kymenmatkat-integration-note {
  background: var(--kymenmatkat-cream);
  border: 1px solid #edd8a6;
  border-radius: var(--kymenmatkat-radius);
  padding: 24px;
}

.kymenmatkat-integration-note code {
  overflow-wrap: anywhere;
}

@media (max-width: 1240px) {
  .kymenmatkat-site-header .wp-block-group.kymenmatkat-site-header__inner {
    min-height: 82px;
  }

  .kymenmatkat-site-header .kymenmatkat-language-link,
  .kymenmatkat-site-header .wp-block-buttons.kymenmatkat-header-cta {
    display: none !important;
  }

  .kymenmatkat-main-navigation {
    flex: 0 0 auto;
    margin-left: auto;
    order: 4;
    position: static;
  }

  .kymenmatkat-main-navigation .wp-block-navigation__responsive-container-open {
    align-items: center;
    background: #fff;
    border: 1px solid var(--kymenmatkat-line);
    border-radius: var(--kymenmatkat-radius);
    color: var(--kymenmatkat-ink);
    display: flex !important;
    font-size: 0.86rem;
    font-weight: 800;
    gap: 7px;
    min-height: 46px;
    padding: 0.55rem 0.75rem;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-open::before {
    background:
      linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
      linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
      linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
    content: "";
    display: block;
    height: 16px;
    width: 21px;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-open::after {
    content: "Valikko";
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-open
    svg {
    display: none;
  }

  .kymenmatkat-main-navigation:has(
      .wp-block-navigation__responsive-container.is-menu-open
    )
    .wp-block-navigation__responsive-container-open {
    visibility: hidden;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .kymenmatkat-main-navigation .wp-block-navigation__responsive-container.is-menu-open {
    background: #fff;
    border: 1px solid var(--kymenmatkat-line);
    border-radius: 0 0 var(--kymenmatkat-radius) var(--kymenmatkat-radius);
    bottom: auto !important;
    box-shadow: var(--kymenmatkat-shadow);
    color: var(--kymenmatkat-ink);
    display: block !important;
    height: auto !important;
    left: 0 !important;
    max-height: calc(100dvh - 82px);
    min-height: 0 !important;
    overflow: visible;
    padding: 12px !important;
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
    width: 100% !important;
    z-index: 40;
  }

  .kymenmatkat-main-navigation .wp-block-navigation__responsive-close,
  .kymenmatkat-main-navigation .wp-block-navigation__responsive-dialog {
    height: auto;
    width: 100%;
  }

  .kymenmatkat-main-navigation .wp-block-navigation__responsive-container-close {
    align-items: center;
    background: #fff;
    border: 1px solid var(--kymenmatkat-line);
    border-radius: var(--kymenmatkat-radius);
    color: var(--kymenmatkat-ink);
    display: flex;
    font-size: 0.86rem;
    font-weight: 800;
    gap: 7px;
    min-height: 46px;
    padding: 0.55rem 0.75rem;
    position: absolute !important;
    right: -13px !important;
    top: -77px !important;
    z-index: 2;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-close::after {
    content: "Sulje";
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container-close
    svg {
    height: 21px;
    width: 21px;
  }

  .kymenmatkat-main-navigation .wp-block-navigation__responsive-container-content {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 0 !important;
    justify-content: flex-start !important;
    max-height: calc(100dvh - 108px);
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-top: 0 !important;
    width: 100%;
  }

  .kymenmatkat-main-navigation .wp-block-navigation__container {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 0 !important;
    justify-content: flex-start !important;
    width: 100%;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item {
    align-items: stretch;
    border-bottom: 1px solid var(--kymenmatkat-line);
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item
    > .wp-block-navigation-item__content {
    align-items: center;
    color: var(--kymenmatkat-ink);
    display: flex;
    flex: 1 1 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 48px;
    padding: 10px 12px;
    width: auto;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content {
    font-size: 0.86rem;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content {
    color: var(--kymenmatkat-muted);
    font-size: 0.82rem;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .current-menu-item
    > .wp-block-navigation-item__content {
    background: var(--kymenmatkat-mint-light);
    box-shadow: inset 3px 0 0 var(--kymenmatkat-mint);
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-submenu
    > .wp-block-navigation-submenu__toggle {
    align-items: center;
    align-self: stretch;
    background: #fff;
    border: 0;
    border-left: 1px solid var(--kymenmatkat-line);
    color: var(--kymenmatkat-blue-dark);
    cursor: pointer;
    display: flex !important;
    flex: 0 0 48px;
    height: auto !important;
    justify-content: center;
    margin: 0;
    min-height: 48px;
    padding: 0;
    width: 48px;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-submenu__toggle
    svg {
    height: 19px;
    width: 19px;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item.has-child
    > .wp-block-navigation__submenu-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item.has-child
    > .wp-block-navigation-submenu__toggle[aria-expanded="true"]
    ~ .wp-block-navigation__submenu-container {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item.has-child
    > .wp-block-navigation__submenu-container {
    align-self: stretch;
    border: 0 !important;
    border-left: 2px solid var(--kymenmatkat-line) !important;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    flex: 0 0 calc(100% - 18px);
    flex-direction: column;
    left: auto !important;
    margin: 0 0 0 18px !important;
    max-height: none;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: calc(100% - 18px) !important;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .kymenmatkat-mobile-menu-cta {
    border-bottom: 0;
    display: flex;
    margin-top: 14px;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .kymenmatkat-mobile-menu-cta
    > .wp-block-navigation-item__content {
    background: var(--kymenmatkat-mint);
    border-radius: var(--kymenmatkat-radius);
    color: #fff;
    justify-content: center;
    min-height: 48px;
    width: 100%;
  }

  .kymenmatkat-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .kymenmatkat-mobile-menu-cta
    > .wp-block-navigation-item__content:hover {
    background: #005e55;
    color: #fff;
  }
}

@media (max-width: 1100px) {
  .kymenmatkat-search-panel__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kymenmatkat-search-panel .kymenmatkat-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .kymenmatkat-container {
    width: calc(100% - 32px);
  }

  .kymenmatkat-hero {
    background-image: none;
  }

  .kymenmatkat-flexible-content > .kymenmatkat-search-wrap,
  .kymenmatkat-site main#main-content > .kymenmatkat-full-cta.alignwide {
    width: calc(100% - 32px) !important;
  }

  .kymenmatkat-site main#main-content > .kymenmatkat-full-cta.alignwide {
    margin-bottom: 52px !important;
  }

  .kymenmatkat-site
    main#main-content
    > .wp-block-group:has(> .kymenmatkat-full-cta) {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kymenmatkat-site-header .wp-block-group.kymenmatkat-site-header__inner {
    min-height: 74px;
  }

  .kymenmatkat-header-logo,
  .kymenmatkat-header-logo img {
    width: 155px;
  }

  .kymenmatkat-main-navigation .wp-block-navigation__responsive-container-content {
    max-height: calc(100dvh - 100px);
  }

  .kymenmatkat-main-navigation .wp-block-navigation__responsive-container.is-menu-open {
    max-height: calc(100dvh - 74px);
  }

  .kymenmatkat-main-navigation .wp-block-navigation__responsive-container-close {
    top: -73px !important;
  }

  .kymenmatkat-site-header .kymenmatkat-language-link,
  .kymenmatkat-site-header .wp-block-buttons.kymenmatkat-header-cta {
    display: none !important;
  }

  .kymenmatkat-card-grid > .wp-block-post-template,
  .kymenmatkat-card-grid.wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .kymenmatkat-search-panel__fields {
    grid-template-columns: 1fr;
  }

  .kymenmatkat-search-panel .kymenmatkat-button {
    grid-column: auto;
  }

  .kymenmatkat-staff-cta > figure {
    height: 290px;
  }

  .kymenmatkat-staff-cta.wp-block-group {
    grid-template-columns: 1fr;
  }

  .kymenmatkat-section-heading.wp-block-group {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
