/* Keep invisible spam-trap fields from extending right-to-left pages. */
.honeypot {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}

/* Long translated copy must shrink inside grids and wrap naturally. */
.site-content *, .editable-page-content *, .section *, .page-hero * {
  min-width: 0;
}
.editable-page-content h1,
.editable-page-content h2,
.editable-page-content h3,
.editable-page-content p,
.editable-page-content li,
.page-hero h1,
.page-hero p,
.vehicle-card h3 {
  overflow-wrap: break-word;
}

/* Country guide tables remain readable on narrow screens. */
html body main.editable-page-content table {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 !important;
  box-sizing: border-box;
  table-layout: fixed;
}
.editable-page-content td,
.editable-page-content th {
  overflow-wrap: anywhere;
}

/* Pagination labels vary in length across languages. */
.market-hero.page-hero {
  display: flex !important;
  align-items: center !important;
  min-height: clamp(440px, 38vw, 570px) !important;
  padding: var(--header) 0 0 !important;
  background-color: #10273b !important;
  background-image: linear-gradient(90deg, rgba(6, 20, 35, .93) 0%, rgba(6, 20, 35, .78) 42%, rgba(6, 20, 35, .35) 100%), var(--kwiscon-market-banner) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  color: #fff !important;
}
.market-hero.page-hero::before { display: none !important; }
.market-hero.page-hero > .wp-block-group__inner-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 50px 48px 60px;
  text-align: start;
}
.market-hero.page-hero h1 { color: #fff !important; }
.market-hero.page-hero p:not(.section-kicker) { color: #e3eaf0 !important; max-width: 720px; }
.market-hero.page-hero .section-kicker { color: #ff9a6b !important; }
.kw-market-brief {
  max-width: 1284px;
  margin: 50px auto 12px;
  padding: clamp(26px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  border: 1px solid #d7e0e7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(17, 45, 67, .06);
  color: #172c3c;
}
.kw-market-brief-kicker { color: #df5622; font: 700 12px/1.3 ui-monospace,monospace; letter-spacing: .16em; }
.kw-market-brief h2 { margin: 12px 0 14px; color: #172c3c; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
.kw-market-brief p { max-width: 670px; margin: 0; color: #4d6271; font-size: 17px; line-height: 1.55; }
.kw-market-brief ul { margin: 0 0 20px; padding-inline-start: 20px; color: #314b5d; font-size: 15px; line-height: 1.65; }
.kw-market-brief li::marker { color: #ec5e25; }
.kw-market-brief-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.kw-market-brief-links a { display: inline-flex; align-items: center; min-height: 46px; text-decoration: none; font-size: 14px; font-weight: 700; }
.kw-market-brief-wa { padding: 10px 17px; border-radius: 8px; background: #ff6529; color: #fff !important; }
.kw-market-brief-wa:hover { background: #dc4c15; }
.kw-market-brief-stock { color: #244c64 !important; }
.kw-market-brief-stock:hover { color: #d64a15 !important; }
@media (max-width: 1380px) { .kw-market-brief { margin-inline: 28px; } }
@media (max-width: 760px) { .kw-market-brief { grid-template-columns: 1fr; margin: 24px 20px 0; padding: 24px; gap: 20px; } }
@media (max-width: 640px) {
  .market-hero.page-hero { min-height: 430px !important; }
  .market-hero.page-hero > .wp-block-group__inner-container { padding: 42px 20px 48px; }
  .market-hero.page-hero p:not(.section-kicker) { font-size: 1rem; }
}

/* Pagination labels vary in length across languages. */
.pagination {
  max-width: 100%;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  min-height: 44px;
  height: auto;
  padding: 0 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .pagination { justify-content: center; gap: 6px; }
  .pagination .prev,
  .pagination .next {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .pagination .prev { order: -2; }
  .pagination .next { order: -1; }

  html body main.editable-page-content table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }
  .editable-page-content table tbody {
    display: table;
    width: 100%;
  }

  /* Keep contact actions accessible without covering the mobile page. */
  .whatsapp-float {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    right: 16px !important;
    bottom: 74px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
  }
  .whatsapp-float .whatsapp-contact { display: none !important; }
  .whatsapp-float .whatsapp-mark { margin: 0 !important; }
}
