/* Keep the original IBM Plex Sans font independent of theme updates and Google availability. */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/ibm-plex-sans.woff2') format('woff2'),
         url('../fonts/ibm-plex-sans.woff') format('woff');
}

/* Native YOOtheme post queries retain the former events layout. */
.motpr-news-item { flex-direction: row-reverse; margin-top: 40px !important; }
.motpr-list-heading + .motpr-news-item { margin-top: 0 !important; }
.motpr-news-image > .uk-flex { padding: 0; min-height: 450px; height: 450px; max-height: 450px; width: 100%; }
.motpr-news-image .uk-tile { background-size: cover !important; padding: 0; }
.motpr-news-content { display: block; }
.motpr-vacancies { margin-top: 20px !important; padding-bottom: 40px; }
.motpr-vacancies > .uk-grid-margin { margin-top: 40px !important; }
.motpr-news-pagination { padding: 20px; text-align: center !important; }
.motpr-news-pagination .uk-pagination { display: block; margin: 0; padding: 0; font-size: 16px; line-height: 26px; font-weight: 400; }
.motpr-news-pagination .uk-pagination > li { display: inline-block; margin: 5px 6px !important; padding: 0; vertical-align: top; height: 26px; }
.motpr-news-pagination .uk-pagination > li > a,
.motpr-news-pagination .uk-pagination > li > span { display: inline; padding: 0; font-size: 16px; line-height: 26px; background: none; border: 0; }
.motpr-news-pagination .uk-active > span { color: #5c5d64; }
.motpr-news-pagination .uk-pagination > li > a { color: #326eb4; }
.motpr-news-pagination .uk-pagination-next > svg,
.motpr-news-pagination .uk-pagination-previous > svg { display: none; }
.motpr-news-pagination .uk-pagination-next::before { content: "→"; }
.motpr-news-pagination .uk-pagination-previous::before { content: "←"; }
.motpr-news-pagination .uk-disabled > span { font-size: 0 !important; }
.motpr-news-pagination .uk-disabled > span::after { content: "..."; font-size: 16px; }

/* Preserve the header typography and list markers used before the UIkit update. */
.tm-headerbar-top .custom-html-widget {
    font-size: 16px;
    line-height: 26px;
}
ul { list-style-type: circle; }
.el-slidenav.uk-slidenav { color: rgba(92, 93, 100, 0.5); }
.el-slidenav.uk-slidenav:hover,
.el-slidenav.uk-slidenav:focus { color: #5c5d64; }

/* Text elements in the original layouts allowed paragraph margins to collapse. */
.uk-panel.uk-margin:not(.el-item) { display: block; }
.uk-panel.uk-margin:not(.el-item) > p:last-child,
.uk-panel.uk-margin:not(.el-item) > ul:last-child,
.uk-panel.uk-margin:not(.el-item) > ol:last-child { margin-bottom: 20px; }
.uk-panel.uk-margin:not(.el-item) > :is(h1, h2, h3, h4, h5, h6):last-child { margin-bottom: 20px; }

/* CF7 6 wraps labels in paragraphs; keep the old grid and textarea dimensions. */
.wpcf7-form .uk-grid p:last-child { margin-bottom: 0; }
.wpcf7-form textarea { padding-top: 4px; padding-bottom: 4px; }

/* Retain spacing before the two home-page call-to-action buttons. */
.home .tm-grid-expand > .uk-width-large\@m > .uk-panel.uk-margin {
    margin-bottom: 40px;
}

/* Retain spacing before the projects-page call to action. */
.page-id-14 .tm-grid-expand > .uk-width-large\@m > .uk-panel.uk-margin { margin-bottom: 40px; }

/* MapSVG 8 centers square images; the original numbered circles used a bottom anchor. */
#mapsvg-943 .mapsvg-marker { translate: 0 -50%; }

@media (max-width: 1199px) {
    .uk-padding-large { padding: 20px; }
    .motpr-news-item { margin-top: 20px !important; }
}

/* The original service grid matched card heights even when stacked. */
@media (max-width: 639px) {
    .home .uk-card-default.uk-card-small { min-height: 145px; }
}

/* Desktop spacer columns did not add stacked rows in the original mobile layout. */
@media (max-width: 959px) {
    .tm-grid-expand > div:not(:has(*)) { display: none; }
}
