/* The layer of the new look that is not a recolour (see tools/restyle.mjs for colours, fonts and corners).
 * Ideas taken from industrial equipment makers' sites: a thin contact bar above the header, a firm rule under it,
 * tight bold headings, flat panels. */

/* contact bar above the header */
.ind-utility { background: #1c242d; color: rgba(255, 255, 255, 0.78); font: 500 12px/32px Inter, sans-serif; letter-spacing: 0.02em; position: relative; z-index: 998; }
.ind-utility .ind-utility-in { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; gap: 16px; }
.ind-utility a { color: #fff; text-decoration: none; margin-left: 24px; white-space: nowrap; }
.ind-utility a:hover { text-decoration: underline; }
.ind-utility span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .ind-utility span { display: none; } .ind-utility .ind-utility-in { justify-content: flex-end; } }
/* the header is fixed: sit below the bar until the page is scrolled */
html:not(.ind-scrolled) body > header, html:not(.ind-scrolled) header[data-hi="0"] { top: 32px !important; }

/* firm rule under the white header */
html.ind-scrolled header[data-hi="0"] { border-bottom: 2px solid #0a3d8f !important; box-shadow: none !important; }

/* headings: bold, tight */
main h1, main h2, main h3 { letter-spacing: -0.01em; }
main h1[style*="64px"] { font-size: clamp(34px, 4.4vw, 56px) !important; line-height: 1.08 !important; }

/* ---- phase two ---- */

/* category pages: the filter bar becomes a sticky sidebar next to the product grid (script adds .ind-cat and the search box) */
@media (min-width: 960px) {
  .ind-cat { display: grid !important; grid-template-columns: 248px minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .ind-cat > * { grid-column: 1 / -1; }
  .ind-cat > .ind-side { grid-column: 1; grid-row: 2 / span 20; position: sticky; top: 132px; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch; gap: 2px !important; margin: 0 !important; padding: 8px !important; }
  .ind-cat > .ind-side button { width: 100%; display: flex !important; justify-content: space-between; align-items: center; gap: 12px; text-align: left; border-radius: 2px !important; padding: 10px 12px !important; font-size: 13px !important; }
  .ind-cat > .ind-grid { grid-column: 2; grid-row: 2 / span 20; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; }
}
.ind-side-title { font: 700 11px/1 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #5b6673; padding: 8px 12px 10px; width: 100%; }
.ind-search { width: 100%; box-sizing: border-box; margin: 4px 0 8px; padding: 10px 12px; border: 1px solid #d5dae0; border-radius: 2px; font: 500 13px Inter, sans-serif; color: #181d23; background: #fff; }
.ind-search:focus { outline: 2px solid #1557b8; outline-offset: -1px; }
.ind-hide { display: none !important; }
.ind-nomatch { grid-column: 1 / -1; padding: 40px 0; text-align: center; font: 500 14px Inter, sans-serif; color: #5b6673; }

/* sticky "Request a quote" tab on the right edge */
.ind-quote-tab { position: fixed; right: 0; top: 50%; z-index: 990; transform: translateY(-50%); writing-mode: vertical-rl; background: #1557b8; color: #fff; border: 0; border-radius: 2px 0 0 2px; padding: 18px 11px; font: 700 13px/1 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.15s, padding 0.15s; }
.ind-quote-tab:hover { background: #0d3c82; padding-right: 15px; }
.ind-quote-tab:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
html.ind-lead-open .ind-quote-tab, body.page-contact-us .ind-quote-tab { display: none; }
@media (max-width: 640px) {
  .ind-quote-tab { top: auto; bottom: 0; right: 0; left: 0; transform: none; writing-mode: horizontal-tb; border-radius: 0; padding: 14px 16px; font-size: 14px; text-align: center; }
  body { padding-bottom: 48px; }
}
