/* UFM site refresh, 24-Nov-2026.
   All of the refresh styling is in this one file: remove its <link> line at the top of cntrlHeader.ascx to undo it. */

/* Header: one slim row, logo left, call button right */
header { padding: 14px 0; }
header .outer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 1140px; width: auto; padding: 0 16px; box-sizing: border-box; }
header #header-logo { order: 1; margin: 0; }
header #header-logo img { display: block; height: 46px; width: auto; }
header #header-text { order: 2; flex: 0 1 auto; width: auto; margin: 0; }
header #header-text img { display: block; height: 30px; width: auto; max-width: 100%; }
header #header-contact { order: 3; display: flex; align-items: center; gap: 14px; margin-left: auto; }
header #header-contact a { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
header #header-contact a.header-call { background: #fff; color: #2d6aa8; padding: 9px 16px; border-radius: 4px; }
header #header-contact a.header-sell { font-weight: 400; }
header #header-contact a:hover, header #header-contact a:focus { text-decoration: underline; }
header #header-contact a.header-call:hover, header #header-contact a.header-call:focus { text-decoration: none; background: #e8f0f8; }
@media (max-width: 819px) {
  header { padding: 12px 0; }
  header .outer { flex-wrap: nowrap; justify-content: space-between; }
  header #header-text, header #header-contact a.header-sell { display: none; }
}

/* Phone menu: the button had no label, so it could not be seen or tapped */
@media (max-width: 819px) {
  html body div.navigation nav { min-height: 0; } /* stronger than nav.css, which loads after this file */
}

/* Headings on phones */
@media (max-width: 600px) {
  h1 { font-size: 26px; line-height: 1.2; }
  h2 { font-size: 21px; line-height: 1.25; }
}

/* Machine page: details on the left, contact and enquiry on the right (desktop) */
section.item .item-side .item-contact a[href^="tel:"] { display: inline-block; margin-top: 6px; padding: 8px 14px; background: #2d6aa8; color: #fff; border-radius: 4px; font-weight: 700; text-decoration: none; }
@media (min-width: 900px) {
  section.item .item-top { display: flex; gap: 48px; align-items: flex-start; }
  section.item .item-main { flex: 1 1 auto; min-width: 0; }
  section.item .item-side { flex: 0 0 300px; margin-top: 24px; padding: 4px 24px 24px; background: #f4f6f9; border: 1px solid #dde3ea; border-radius: 6px; }
}

/* Category and search pages: filter box above the machines */
.card-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 24px; }
.card-filter[hidden] { display: none; }
.card-filter label { font-weight: 700; }
.card-filter input { flex: 1 1 240px; max-width: 420px; padding: 10px 12px; border: 1px solid #bbb; border-radius: 4px; font: inherit; }
.card-filter-count { color: #555; }
.card-filter-none { margin: 0 0 24px; }
/* Two-column grid instead of floated pairs, so cards hidden by the filter leave no gaps */
@media (min-width: 800px) {
  .search-results .cards { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.35765%; }
  .search-results .cards .card { float: none; width: auto; margin-right: 0; clear: none; }
}
