/* EXPERIMENTAL TEST ONLY. Overlay for identified content surfaces, not a global white-panel fix. */
body.home .ukhome-lab-original > .uk-content,
body.page:not(.home) article.type-page > .uk-content:not(:has(#ukr-trip-page)):not(:has(.ukt04-form)),
body.single-post article.type-post > .uk-content,
body.single-place article.type-place > .uk-content {
  background-color: #f5faf5;
}

/* Isolated FAQ panels and the calculator card; controls keep their own styling. */
body .uk-faq-item,
body .ukt04-card {
  background-color: #f5faf5;
}

/* Protect unusually long existing page/place titles on narrow screens. */
@media (max-width: 480px) {
  body article.type-page > .uk-entry-header h1,
  body article.type-place > .uk-entry-header h1 { overflow-wrap: anywhere; }
}

/* Synthetic table overflow correction; no clipping. */
table.uk-price{width:100%;max-width:100%;table-layout:fixed;white-space:normal}table.uk-price th,table.uk-price td{white-space:normal;overflow-wrap:anywhere}

/* TEST ONLY: contain long text and allow wide content tables to scroll on mobile. */
@media (max-width: 480px) {
  body .uk-content { overflow-wrap: anywhere; }
  body .uk-content table:not(.uk-price) {
    display: block; width: auto; max-width: 100%; table-layout: auto; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  body .uk-content table:not(.uk-price) th,
  body .uk-content table:not(.uk-price) td {
    min-width: 110px; overflow-wrap: normal; word-break: normal;
  }
}
@media (max-width:480px) {
 body .uk-content table:not(.uk-price)::before {
   content:'← Сдвиньте таблицу →';
   display:block; position:sticky; left:0; width:max-content; max-width:100%;
   box-sizing:border-box; margin:0 0 7px; padding:5px 9px;
   border-radius:6px; background:#edf1e7; color:#435340;
   font-size:12px; line-height:1.3; font-weight:600;
 }
 body .uk-content table:not(.uk-price):focus-visible {outline:3px solid #8d681e;outline-offset:3px}
}
