/* Review refinements shared by the preview and the standalone export. */
/* The panoramic artwork shares the existing 57px search row. Its central
   headline is framed without stretching the TeamViewer identity. */
.search-row > .wrap { gap: 18px; }
.search-row .search-caption { display: none; }
.search-row .global-search { flex: 0 1 57%; max-width: 720px; }
.header-remote-programming {
  position: relative; flex: 1 1 0; min-width: 0; height: 46px; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid #155a9b; border-radius: 4px; background: #052457;
}
.header-remote-programming img {
  display: block; width: min(100%, 430px); height: 44px;
  object-fit: cover; object-position: var(--banner-position, 50% 50%);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.header-remote-programming .remote-banner-frame {
  position: absolute; inset: 0; margin: auto; opacity: 0;
  transition: opacity .45s ease; pointer-events: none;
}
.header-remote-programming .remote-banner-frame.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .header-remote-programming .remote-banner-frame { transition: none; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .search-row .global-search { flex-basis: 55%; }
  .search-row .search-picker { flex-basis: 144px; }
}
/* The original Download Center shortcut was desktop-only. Keep the full
   search input on phones and retain the same compact mobile row height. */
@media (max-width: 760px) {
  .header-remote-programming { display: none; }
  .search-row .global-search { flex: 1; max-width: none; }
}

/* Welcome and Services share the full strip below the hero. */
.home-intro > .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-block: 22px; align-items: start; }
.home-intro .home-intro-copy { min-width: 0; }
.home-intro .home-intro-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.home-intro .home-intro-heading .icon { width: 22px; height: 22px; flex-shrink: 0; }
.home-intro h2 { margin: 0; font: 700 16px/1.35 Arial, Helvetica, sans-serif; letter-spacing: -.1px; }
.home-intro .home-intro-copy p,
.home-intro .home-intro-copy li { font-size: 12px; line-height: 1.65; color: var(--muted); }
.home-intro .home-intro-copy p { margin: 0 0 10px; }
.home-intro .home-intro-copy p:last-child { margin-bottom: 0; }
.home-intro .home-intro-copy ul { margin: 0 0 10px; padding-left: 16px; }
.home-intro .home-intro-copy li + li { margin-top: 3px; }
.home-intro .home-intro-copy li::marker { color: var(--accent); }
@media (max-width: 760px) {
  .home-intro > .wrap { grid-template-columns: 1fr; gap: 16px; padding-block: 18px; }
}

/* Compact adaptation of the owner's four-card Why Trust reference. */
.contact-band.home-trust { display: block; padding: 14px 24px 16px; margin-bottom: 28px; }
.home-trust > h2,
.resource-v2 .store-section-title h2,
.home-products .store-section-title h2,
.product-info > h3,
.catalog-results .product-info > h3 { font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.2px; }
.home-trust > h2 { margin: 0 0 12px; text-align: center; }
.resource-v2 .store-section-title h2 { margin-top: 8px; }
.store-section.home-products { padding-bottom: 16px; }
.home-products .price-note { margin-bottom: 0; }
.store-section.resource-v2 { padding-top: 20px; padding-bottom: 32px; }
.resource-v2 .resource-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.resource-v2 .resource-cards > a { min-width: 0; display: flex; flex-direction: column; padding: 16px; }
.resource-v2 .resource-cards > a > .icon { width: 22px; height: 22px; margin-bottom: 10px; }
.resource-v2 .resource-cards h3 { font-family: inherit; font-size: 14px; line-height: 1.4; letter-spacing: 0; margin-bottom: 6px; }
.resource-v2 .resource-cards p { font-size: 12px; line-height: 1.6; flex: 1; }
.resource-v2 .resource-cards span { margin-top: 12px; font-size: 11px; }
.workflow-section { padding-block: 22px; }
.workflow-layout > div > .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
.workflow-layout h2 { font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.2px; margin: 8px 0; }
.workflow-layout > div > p { font-size: 12px; line-height: 1.65; margin: 12px 0 16px; }
.workflow-steps article { padding: 11px 0; gap: 16px; }
.workflow-steps article:first-child { padding-top: 0; }
.workflow-steps article:last-child { padding-bottom: 0; border-bottom: 0; }
.workflow-steps article > span { font-size: 18px; }
.workflow-steps h3 { font-size: 13px; line-height: 1.35; margin-bottom: 4px; }
.workflow-steps p { font-size: 10.5px; line-height: 1.55; }
.workflow-steps .icon { width: 15px; height: 15px; flex-shrink: 0; }
/* Shared page/section typography; the photographic hero keeps its own design. */
.section-title {
  font: 700 14px/20px Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  margin-top: 0 !important; margin-bottom: 10px !important;
}
.section-heading-inline {
  display: flex; align-items: center; min-width: 0; max-width: 100%;
  margin-bottom: 10px;
}
.section-heading-inline > .eyebrow {
  margin: 0; flex-shrink: 0; font: 500 12px/20px Arial, Helvetica, sans-serif;
  letter-spacing: .7px; white-space: nowrap; text-transform: uppercase;
  color: var(--accent);
}
.section-heading-inline.section-heading-support > .eyebrow { font-size: 14px; }
.section-heading-inline > :is(h1, h2, h3) {
  margin: 0 0 0 14px !important; padding-left: 14px; border-left: 1px solid var(--muted);
  font: 700 12px/20px Arial, Helvetica, sans-serif !important; letter-spacing: 0;
  color: var(--ink); min-width: 0; text-transform: none; overflow-wrap: anywhere;
}
.section-heading-inline > :is(h1, h2, h3) > span { color: inherit; }
.section-heading-inline > .icon { width: 16px; height: 16px; flex-shrink: 0; margin: 0 0 0 10px; color: var(--accent); }
:root[data-theme=light] .section-heading-inline > :is(.eyebrow, .icon) { color: #527700; }
.home-products .section-heading-inline,
.resource-v2 .section-heading-inline { margin-bottom: 0; }
.home-products .store-section-title,
.resource-v2 .store-section-title { align-items: center; }
@media (max-width: 480px) {
  .section-heading-inline > .eyebrow { font-size: clamp(9px, 2.7vw, 12px); letter-spacing: .3px; white-space: normal; flex-shrink: 1; }
  .section-heading-inline.section-heading-support > .eyebrow { font-size: clamp(11px, 3.2vw, 14px); }
  .section-heading-inline > :is(h1, h2, h3) {
    font-size: clamp(9px, 2.7vw, 12px) !important; margin-left: 9px !important; padding-left: 9px;
  }
}
.home-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-trust-card { min-width: 0; padding: 12px 16px; text-align: center; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.home-trust-card > .icon { display: block; width: 24px; height: 24px; margin: 0 auto 8px; color: var(--accent); }
.home-trust-card > h3 { font-family: inherit; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.home-trust-card > p { margin: 7px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
:root[data-theme=light] .home-trust-card > .icon { color: #527700; }
@media (max-width: 900px) {
  .resource-v2 .resource-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .resource-v2 .resource-cards { grid-template-columns: 1fr; gap: 10px; }
  .resource-v2 .resource-cards > a { padding: 14px 16px; }
  .workflow-section { padding-block: 20px; }
  .workflow-layout { gap: 20px; }
  .contact-band.home-trust { padding: 14px 16px; margin-bottom: 24px; }
  .home-trust-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-trust-card { padding: 12px 16px; }
}

.company-section { padding-block: 24px 32px; }
.company-section > .crumb { margin-bottom: 18px; }
.company-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; gap: 28px; }
.company-copy { min-width: 0; }
.company-intro h1 { font: 700 18px/1.35 Arial, Helvetica, sans-serif; margin: 0 0 12px; }
.company-section p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.company-copy > p { margin: 0 0 12px; }
.company-copy > p:last-child { margin-bottom: 0; }
.company-visual { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); }
.company-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.company-signature a { color: var(--ink); font-weight: 700; }
.company-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.company-values > section { padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface2); }
.company-values h2 { font: 700 15px/1.4 Arial, Helvetica, sans-serif; margin: 0 0 8px; }
.company-values p { margin: 0; }
@media (max-width: 760px) {
  .company-intro { grid-template-columns: 1fr; gap: 18px; }
  .company-visual { aspect-ratio: 3 / 2; }
  .company-values { grid-template-columns: 1fr; gap: 12px; }
}

.development-intro { background: var(--surface2); border-bottom: 1px solid var(--line); padding: 24px 0 28px; }
.development-intro .crumb { margin-bottom: 20px; }
.development-copy > h1,
.development-copy > h2 { font-family: inherit; font-size: 18px; letter-spacing: -.2px; line-height: 1.35; margin-bottom: 10px; }
.development-copy > p { font-size: 13px; line-height: 1.65; }
.development-copy > .development-service-label { margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--ink); }
.development-intro-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); align-items: center; gap: 32px; }
.development-visual { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #07131d; }
.development-visual img { display: block; width: 100%; height: auto; }
.development-services { padding-block: 28px 32px; }
.development-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.development-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--surface); }
.development-number { display: inline-block; color: var(--accent); font-size: 10px; font-weight: 750; margin-bottom: 6px; }
:root[data-theme=light] .development-number { color: #476600; }
.development-card h3 { font-size: 14px; line-height: 1.3; margin-bottom: 6px; }
.development-card p { font-size: 12px; line-height: 1.55; }
.development-support { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr); align-items: center; gap: 32px; }
.development-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); background: var(--surface2); border-radius: 8px; padding: 16px 20px; margin-top: 24px; }
.development-contact h2 { font-size: 18px; letter-spacing: -.3px; line-height: 1.3; }
.development-contact p { font-size: 12px; line-height: 1.6; margin-top: 6px; max-width: 780px; }
.development-contact .button { flex-shrink: 0; height: var(--compact-control-height); min-height: var(--compact-control-height); padding-block: 0; border-radius: 4px; }
@media (max-width: 900px) {
  .development-intro-grid, .development-support { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  .development-intro { padding-block: 22px 24px; }
  .development-services { padding-block: 24px 28px; }
  .development-grid { grid-template-columns: 1fr; gap: 10px; }
  .development-card { padding: 14px; }
  .development-contact { flex-direction: column; align-items: flex-start; padding: 16px; gap: 12px; }
}

.site-nav > button,
.site-nav > a,
.site-nav > .support-menu > button,
.site-nav .support-links > a {
  /* Measured from the archived Company page's primary navigation. */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.2px;
  font-weight: 400;
  font-style: normal;
  line-height: 20px;
  letter-spacing: normal;
  text-transform: none;
}
/* Keep the open menu above the adjacent programming banner. */
.site-nav .support-menu { z-index: 61; }
@media (min-width: 1001px) {
  .main-nav .site-nav { --menu-gap: 20px; column-gap: var(--menu-gap); }
  .main-nav .site-nav > * { position: relative; }
  .main-nav .site-nav > * + *::before {
    content: "";
    position: absolute; top: 50%; left: calc(var(--menu-gap) / -2);
    width: 1px; height: 20px; transform: translateY(-50%);
    background: var(--muted); opacity: .4; pointer-events: none;
  }
}
@media (min-width: 1001px) and (max-width: 1250px) {
  .main-nav .site-nav { --menu-gap: 13px; row-gap: 0; flex-wrap: wrap; justify-content: center; }
}

/* Upper-bar brand follows the supplied logo colors. */
.utility-bar > .wrap { gap: 12px; }
.utility-social { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.utility-social a { display: flex; align-items: center; justify-content: center; width: 22px; height: 24px; color: var(--ink); border-radius: 3px; }
.utility-social svg { display: block; width: 14px; height: 14px; fill: currentColor; }
.utility-social a:hover { color: var(--accent); }
.utility-social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .utility-bar > .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding-block: 4px; }
  .utility-bar .hours { grid-column: 1 / -1; justify-content: center; }
  .utility-social { justify-self: start; }
  .utility-controls { justify-self: end; }
}
:root[data-theme=light] .utility-bar {
  --surface: #151a17;
  --ink: #f3f5f1;
  --muted: #b8c1ba;
  --line: #2b342d;
  background: #151a17;
  color: var(--ink);
  color-scheme: dark;
}
.utility-bar .utility-brand .brand-name,
.utility-bar .utility-brand .brand-name span {
  margin-left: 0;
  font-weight: inherit;
  white-space: nowrap;
  color: #fff;
}
.utility-bar .utility-brand .brand-name .brand-diesel { color: #ff5f00; }
.utility-controls select[data-setting="lang"] { width: 76px; }
.utility-controls select[data-setting="currency"] { width: 56px; }
.utility-controls select option:disabled { color: var(--muted); }
.hours .icon { flex-shrink: 0; }
.hours-copy { display: flex; flex-wrap: wrap; gap: 3px 6px; }
.hours-schedule, .hours-zone { white-space: nowrap; }
.hours-zone::before { content: "· "; }
@media (max-width: 760px) {
  .hours-copy { display: grid; gap: 2px; line-height: 1.4; }
  .hours-zone::before { content: none; }
  .utility-bar > .wrap { padding-block: 5px; }
}

/* Native select menus need explicit option colors on Windows. */
.global-search select {
  background-color: var(--surface2);
  color: var(--ink);
  color-scheme: dark;
}
.global-search select option,
.global-search select optgroup {
  background-color: #1c221e;
  color: #f3f5f1;
}
:root[data-theme=light] .global-search select { color-scheme: light; }
:root[data-theme=light] .global-search select option,
:root[data-theme=light] .global-search select optgroup {
  background-color: #edf2e8;
  color: #17201b;
}

/* Bring the product grid up while retaining a clear category heading. */
.catalog-heading.catalog-heading-compact { padding-block: 14px; }
.catalog-heading-compact .crumb { margin: 0; }
.catalog-heading-compact h1:not(.sr-only) {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.5px;
}

/* Archived legal footer: trademarks on the left, company block on the right. */
.footer-top p { font-size: 12px; }
.footer-top > span { font-size: 10px; }
:root[data-theme=light] .footer-top p { color: #476600; }
.footer-columns a,
.footer-columns button,
.footer-columns p { font-size: 12px; }
a[data-contact-email] { cursor: pointer; }
.footer-contact .footer-contact-line,
.footer-hours .footer-contact-line {
  display: flex; align-items: center; gap: 8px; line-height: 1.5;
}
.footer-contact-line .footer-contact-icon,
.footer-contact-line .icon,
.footer-icon-heading .icon,
.footer-menu-link .icon {
  width: 17px; height: 17px; flex: 0 0 17px; color: var(--accent);
}
.footer-columns h3 { min-height: 18px; }
.footer-icon-heading { display: flex; align-items: center; gap: 8px; }
.footer-columns .footer-menu-link {
  display: flex; align-items: center; gap: 8px; line-height: 1.5; text-align: left;
}
.footer-locations { display: grid; gap: 7px; }
.footer-hours {
  display: grid; gap: 7px;
  color: var(--muted); font-size: 12px; text-align: left;
}
.footer-hours .footer-contact-line { white-space: nowrap; }
.footer-legal-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.footer-legal-columns p { margin: 0; }
.footer-trademarks { text-align: justify; }
.footer-company { text-align: center; }
.footer-company button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.footer-company button:hover { color: var(--ink); }
.footer-company .site-last-update { margin-top: 3px; }
.footer-payments {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  text-align: center;
}
.footer-payments .payment-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 758px);
}
.payment-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 6px;
  background: #fff;
  border: 1px solid #dce3d9;
  border-radius: 5px;
}
.payment-logo img { display: block; width: calc(100% - 2px); max-width: 74px; height: 26px; object-fit: contain; }
.payment-logo-zelle { background: #6d1ed4; border-color: #6d1ed4; }
.payment-logo-zelle img { max-width: 54px; }
.footer-payments .payment-footnote { color: var(--muted); }
.footer-v2 {
  padding-bottom: 24px;
}
@media (min-width: 761px) {
  .footer-columns {
    padding-right: 168px;
    column-gap: 24px;
    min-height: var(--quick-contact-dock-height, 262px);
    align-items: start;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .footer-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .footer-contact { grid-column: 1 / -1; }
  .footer-v2 { padding-bottom: max(70px, var(--quick-contact-clearance, 70px)); }
  .footer-legal-columns { grid-template-columns: 1fr; gap: 20px; }
  .footer-payments .payment-list { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 352px; gap: 8px; }
}
.site-last-update {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  text-align: center;
}
.site-last-update time { white-space: nowrap; }
.portal-main > .site-last-update,
.admin-main > .site-last-update { margin-top: 28px; }

/* Equal-height cards keep price and action rows aligned across each row. */
.product-card { display: flex; flex-direction: column; }
.product-image { flex-shrink: 0; }
.product-info { display: flex; flex-direction: column; flex: 1; }
.product-info > .product-bottom { margin-top: auto; }
.product-info > .product-part { margin-bottom: 8px; }

/* Match the reviewed action buttons to the Quick Contact heading height. */
:root { --compact-control-height: 32px; }
.main-nav .quote-nav,
.hero-v2-buttons .button,
.workflow-layout .button,
.contact-band .button,
.quick-contact-send {
  height: var(--compact-control-height);
  min-height: var(--compact-control-height);
  padding-block: 0;
  border-radius: 4px;
}

/* Slimmer header quote action, keeping the existing text and colors. */
.main-nav .quote-nav {
  height: 26px;
  min-height: 26px;
  padding-inline: 8px;
  gap: 7px;
}

/* Compact contact form; drag only from the heading, never from the fields. */
.quick-contact {
  position: fixed; right: 12px; bottom: 12px; z-index: 45;
  width: 144px; max-width: calc(100vw - 24px);
  border: 1px solid var(--accent); border-radius: 9px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 12px 40px #0006; overflow: auto;
  font-family: inherit;
}
.quick-contact-heading { display: flex; background: var(--accent); color: #172000; min-height: var(--compact-control-height); }
.quick-contact-handle {
  display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0;
  border: 0; background: transparent; color: inherit; padding: 3px 4px;
  font: inherit; font-size: 12px; line-height: 1.1; font-weight: 750; cursor: grab;
  touch-action: none; user-select: none; text-align: left;
  white-space: nowrap;
}
.quick-contact-handle .icon { width: 16px; height: 16px; flex-shrink: 0; }
.quick-contact-grip { display: none; }
.quick-contact.is-dragging .quick-contact-handle { cursor: grabbing; }
.quick-contact-toggle {
  width: 28px; min-height: var(--compact-control-height); flex-shrink: 0; border: 0;
  color: inherit; background: transparent; font-size: 22px; line-height: 1; padding: 0; cursor: pointer;
}
.quick-contact-body { padding: 7px; }
.quick-contact-body[hidden], .quick-contact-status[hidden] { display: none; }
#quick-contact-form { display: grid; gap: 7px; margin: 0; }
#quick-contact-form input {
  width: 100%; min-width: 0; height: 34px; padding: 7px 8px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface2); color: var(--ink); font: inherit; font-size: 12px;
}
#quick-contact-form input::placeholder { color: var(--muted); opacity: 1; }
.quick-contact-send {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0;
  background: var(--accent); color: #172000; font: inherit; font-size: 12px;
  font-weight: 750; cursor: pointer;
}
.quick-contact-send .icon { height: 15px; width: 15px; }
.quick-contact-note { color: var(--muted); text-align: center; font-size: 10px; line-height: 1.4; }
.quick-contact-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quick-contact-send:disabled { opacity: .65; cursor: wait; }
.quick-contact-status[data-state="error"] { color: #ee8b78; }
html[data-theme="light"] .quick-contact-status[data-state="error"] { color: #a52b1c; }
.quick-contact-status { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.5; }
#contact-form .field > span { color: inherit; font: inherit; }
#contact-form .contact-required { color: var(--accent); font-weight: 700; }
.contact-form-status { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink); }
.contact-form-status[hidden] { display: none; }
.contact-form-status[data-state="error"] { color: #ee8b78; }
html[data-theme="light"] .contact-form-status[data-state="error"] { color: #a52b1c; }
.quick-contact :is(button,input):focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
@media (max-width: 760px) {
  :root { --compact-control-height: 30px; }
  /* Mobile contact strip; desktop retains the compact vertical widget. */
  .quick-contact { width: calc(100% - 24px); }
  .quick-contact-handle { gap: 6px; padding: 4px 7px; }
  #quick-contact-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 44px;
    gap: 6px;
  }
  #quick-contact-form input { font-size: 16px; height: 38px; padding: 7px 5px; }
  .quick-contact-toggle { width: 44px; }
  .quick-contact-send { align-self: center; padding-inline: 4px; gap: 0; }
  .quick-contact-send .icon { display: none; }
  .quick-contact-note, .quick-contact-status { grid-column: 1 / -1; }
  .quick-contact-note { font-size: 9px; line-height: 1.3; }
}

.carousel-controls > .carousel-autoplay {
  width: auto;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
}
.carousel-autoplay:focus-visible { outline: 2px solid white; outline-offset: 3px; }
/* Promotions belong to the photograph, independently of the headline and actions. */
.hero-visual { position: absolute; inset: 0; pointer-events: none; }
.hero-photo-promotions {
  position: absolute; z-index: 2; right: 28px;
  transform: translate(var(--promotion-shift-x, 0px), var(--promotion-shift, 0px));
}
.hero-photo-promotions.promotions-top { top: 80px; }
.hero-photo-promotions.promotions-top-right { top: 12px; right: 16px; }
.hero-photo-promotions.promotions-bottom { bottom: 84px; right: 184px; }
.hero-photo-promotions.promotions-controls { bottom: 20px; right: 184px; }
.hero-promotions {
  display: flex; flex-wrap: wrap; gap: 10px; width: fit-content; max-width: 100%;
}
.hero-promotion {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 11px; border: 1px solid #b3e01940; border-radius: 5px;
  background: #101b14d9; color: #f3f7ef; font-size: 12px; font-weight: 650; line-height: 1.4;
}
.hero-promotion-icon { width: 22px; height: 22px; flex: 0 0 22px; color: #b6e500; }
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-photo-promotions.promotions-top { top: auto; bottom: 84px; right: 184px; }
}
@media (max-width: 760px) {
  .hero-visual { top: auto; bottom: 0; height: 340px; }
  .hero-visual:has(.composite-photo) { bottom: 53px; height: auto; aspect-ratio: 2; }
  .hero-visual .hero-picture.composite-photo { inset: 0; height: 100%; aspect-ratio: auto; }
  .hero-photo-promotions {
    left: 18px; right: 18px;
    transform: translateY(var(--mobile-promotion-shift, 0px));
  }
  .hero-photo-promotions.promotions-top { top: 12px; }
  .hero-photo-promotions.promotions-top-right { top: 6px; left: auto; right: 12px; }
  .hero-photo-promotions.promotions-bottom { bottom: 70px; right: 18px; }
  .hero-photo-promotions.promotions-controls { bottom: 70px; right: 18px; }
  .hero-promotions { flex-wrap: nowrap; gap: 7px; }
  .hero-promotion { gap: 5px; padding: 7px; font-size: 10.5px; }
  .hero-promotion-icon { width: 18px; height: 18px; flex-basis: 18px; }
}
@media (max-width: 360px) {
  .hero-promotions { flex-wrap: wrap; }
}
/* Keep both vehicles visible in the panoramic composite scenes. */
.hero-picture.composite-photo .hero-backdrop {
  object-fit: contain;
  object-position: right center;
  mask-image: linear-gradient(180deg, transparent 9%, #000 25%, #000 88%, transparent 100%);
}
@media (max-width: 760px) {
  .hero-picture.composite-photo {
    height: auto;
    aspect-ratio: 2;
    bottom: 53px;
  }
  .hero-picture.composite-photo .hero-backdrop {
    object-fit: cover;
    object-position: right center;
    mask-image: linear-gradient(180deg, transparent, #000 15%, #000 90%, transparent);
  }
  .hero-v2:has(.composite-photo) .hero-shade {
    background: linear-gradient(180deg, #101610 0%, #101610 50%, #10161000 68%, #10161000 90%, #101610 100%);
  }
}
@media (max-width: 480px) {
  .carousel-controls { gap: 8px; }
  .carousel-controls > .carousel-autoplay { padding-inline: 7px; }
}

/* Hover or click category, brand and model panels. */
.catalog-picker { position: relative; }
.catalog-picker .category-trigger,
.catalog-picker .catalog-menu-button,
.catalog-picker .catalog-menu-back,
.catalog-picker .catalog-panel-title,
.catalog-picker .catalog-model-note { text-transform: none; }
.search-picker { flex: 0 0 176px; min-width: 0; }
.global-search .category-trigger {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; width: 100%; height: 36px; padding: 0 12px;
  border: 0; border-right: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font-size: 11px; text-align: left;
}
.category-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search .category-trigger .icon { width: 12px; flex-shrink: 0; transform: rotate(90deg); }
.catalog-flyout { position: absolute; top: calc(100% + 7px); left: 0; display: flex; align-items: flex-start; width: max-content; z-index: 60; }
.catalog-flyout[hidden], .catalog-panel[hidden] { display: none !important; }
.catalog-panel {
  flex: 0 0 210px; width: 210px; max-height: min(68vh, 540px); overflow-y: auto;
  padding: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 5px; box-shadow: 0 14px 35px #0005; color: var(--ink);
}
.catalog-panel + .catalog-panel { margin-left: 4px; }
.catalog-picker .catalog-menu-button,
.catalog-picker .catalog-menu-back {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%; height: auto; min-height: 36px; padding: 9px 10px;
  border: 0; border-radius: 3px; background: transparent;
  color: var(--ink); font-size: 11px; line-height: 1.5; text-align: left;
}
.catalog-picker .catalog-menu-button .icon { width: 12px; height: 12px; flex-shrink: 0; }
.catalog-picker .catalog-menu-button:hover,
.catalog-picker .catalog-menu-button.selected,
.catalog-picker .catalog-menu-button[aria-expanded=true] { background: var(--surface2); color: var(--accent); }
:root[data-theme=light] .catalog-picker .catalog-menu-button:hover,
:root[data-theme=light] .catalog-picker .catalog-menu-button.selected,
:root[data-theme=light] .catalog-picker .catalog-menu-button[aria-expanded=true] { color: #426600; }
.catalog-picker button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.catalog-picker .catalog-menu-back { color: var(--muted); font-size: 10px; min-height: 28px; }
.catalog-panel-title { padding: 9px 10px; margin-bottom: 5px; font-size: 10px; font-weight: 700; border-bottom: 1px solid var(--line); }
.catalog-model-note { color: var(--muted); font-size: 11px; padding: 0 10px; line-height: 1.6; }
.sidebar-picker { width: 100%; }
.sidebar-picker .catalog-flyout { position: relative; top: auto; width: 100%; z-index: 10; }
.sidebar-picker .catalog-root-panel { width: 100%; flex-basis: 100%; padding: 0; border: 0; background: none; box-shadow: none; }
.sidebar-picker .catalog-root-panel > .catalog-menu-button { padding: 15px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 12px; }
.sidebar-picker .catalog-brands-panel { position: absolute; left: 100%; top: 0; }
.sidebar-picker .catalog-models-panel { position: absolute; left: calc(100% + 214px); top: 0; }
/* Match the main navigation in the All Products dropdown and catalog sidebar. */
.global-search .catalog-picker .category-trigger,
.catalog-picker .catalog-root-panel > .catalog-menu-button,
.catalog-picker .catalog-menu-button,
.catalog-picker .catalog-menu-back {
  font: 400 13.2px/20px Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

/* Two equal groups translate by one group width, without a gap or restart jump. */
.brands-strip > .brands-heading {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 22px;
}
.brands-heading p {
  margin: 0; font-size: 8px; letter-spacing: 2px; text-align: center;
}
.brands-playback {
  border: 1px solid var(--line); border-radius: 4px;
  background: transparent; color: var(--muted); font: inherit;
  font-size: 10px; padding: 5px 10px; cursor: pointer;
}
.brands-playback:hover { color: var(--ink); border-color: var(--muted); }
.brands-playback:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brands-strip > .brands-window {
  display: block; overflow: hidden; width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.brand-carousel-track {
  display: flex; width: max-content; gap: 0;
  animation: brands-scroll-left var(--brands-duration) linear infinite !important;
}
.brand-carousel-group {
  display: flex; flex: 0 0 auto; align-items: center; gap: 48px;
  list-style: none; margin: 0; padding: 0 48px 0 0;
}
.brand-carousel-item {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 128px; width: 128px; height: 64px;
}
.brands-strip .brand-carousel-item img {
  width: 128px; height: 48px; max-width: 128px; object-fit: contain;
  filter: none; opacity: 1;
}
.brand-logo-frame { display: flex; align-items: center; justify-content: center; }
/* The supplied lockup includes International at left. Frame only the original
   MaxxForce wordmark, keeping International's separate carousel entry intact. */
.brands-strip [data-brand="MaxxForce"] .brand-logo-frame {
  position: relative; width: 128px; height: 40px; overflow: hidden;
}
.brands-strip [data-brand="MaxxForce"] img {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 202.1px; max-width: none; height: auto;
}
/* Retain original logo colors; a fine neutral edge keeps dark lettering legible. */
:root[data-theme=dark] .brands-strip .brand-carousel-item img {
  filter: drop-shadow(0 0 0.7px #ffffffc0);
}
:root[data-theme=dark] .brands-strip [data-brand="Mack"] img {
  filter: brightness(0) invert(1);
}
/* This source has a square canvas; frame its centered red artwork at the same height. */
.brands-strip [data-brand="MAN"] { overflow: hidden; height: 48px; }
.brands-strip [data-brand="MAN"] img { width: 96px; height: 96px; max-width: 96px; flex-shrink: 0; }
.brands-strip[data-paused=true] .brand-carousel-track { animation-play-state: paused !important; }
@keyframes brands-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .brands-strip > .brands-heading { gap: 10px; margin-bottom: 16px; }
  .brands-heading p { font-size: 7px; letter-spacing: 1px; line-height: 1.7; }
  .brands-playback { flex-shrink: 0; min-height: 36px; }
  .brand-carousel-group { gap: 32px; padding-right: 32px; }
  .brand-carousel-item { flex-basis: 112px; width: 112px; height: 54px; }
  .brands-strip .brand-carousel-item img { width: 112px; max-width: 112px; height: 42px; }
  .brands-strip [data-brand="MaxxForce"] .brand-logo-frame { width: 112px; height: 35px; }
  .brands-strip [data-brand="MaxxForce"] img { width: 176.84px; max-width: none; height: auto; }
  .brands-strip [data-brand="MAN"] { height: 42px; }
  .brands-strip [data-brand="MAN"] img { width: 84px; max-width: 84px; height: 84px; }
  .search-picker { flex-basis: 128px; }
  .global-search .category-trigger { font-size: 10px; padding-inline: 8px; }
  .catalog-flyout { display: block; width: min(320px, calc(100vw - 40px)); }
  .catalog-panel { width: 100%; max-height: 60vh; }
  .catalog-panel + .catalog-panel { margin-left: 0; }
  .sidebar-picker .catalog-brands-panel,
  .sidebar-picker .catalog-models-panel { position: static; }
  .catalog-flyout[data-stage=brands] > .catalog-root-panel,
  .catalog-flyout[data-stage=models] > .catalog-root-panel,
  .catalog-flyout[data-stage=models] > .catalog-brands-panel { display: none; }
}
