/* Cinematic machine directory. Existing routes and product interfaces are retained. */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-700-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.machine-page { --machine-ink:#17191b; --machine-red:#c93022; --machine-line:#e0e1e1; --machine-paper:#f5f4f1; font-family:'Poppins',sans-serif; background:#fff; color:var(--machine-ink); }
.machine-page .machine-directory.container { max-width:none; width:100%; padding:0; margin:0; }
.machine-page .machine-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:8px; max-width:1440px; padding:23px 40px; margin:auto; font-size:12px; line-height:1.6; color:#676a6d; }
.machine-page .machine-breadcrumb a { color:inherit; text-decoration:none; }
.machine-page .machine-breadcrumb a:hover { color:var(--machine-red); text-decoration:underline; }
.machine-page .machine-breadcrumb [aria-current] { color:var(--machine-ink); font-weight:600; }
.machine-page .machine-eyebrow { margin:0 0 18px; font-size:11px; line-height:1.6; font-weight:600; letter-spacing:.14em; text-transform:uppercase; }
.machine-page .machine-lead { max-width:540px; margin:23px 0 32px; font-size:16px; line-height:1.85; font-weight:400; }
.machine-scene { display:block; overflow:hidden; }
.machine-scene img { display:block; width:100%; height:100%; object-fit:cover; }
.machine-page .machine-section,.machine-page #compatible-parts { max-width:1440px; margin:0 auto; padding:80px 40px; }
.machine-page .machine-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin:0 0 36px; }
.machine-page .machine-section-heading h2,.machine-page .machine-note h2,.machine-page .machine-sales h2 { font-family:'Barlow Condensed',Impact,sans-serif; font-weight:700; font-size:clamp(36px,3.7vw,58px); line-height:1.08; letter-spacing:-.015em; margin:0; }
.machine-page .machine-section-heading>p { margin:0 0 4px; font-size:13px; line-height:1.8; color:#64696b; }
.machine-page .machine-section-heading a { color:inherit; }
.machine-page .machine-primary-link { display:inline-flex; align-items:center; justify-content:space-between; gap:30px; min-height:54px; padding:15px 23px; background:var(--machine-red); color:white; font-weight:600; font-size:13px; text-decoration:none; border:1px solid var(--machine-red); }
.machine-page .machine-primary-link:hover { background:#a8251a; border-color:#a8251a; }
.machine-page .machine-primary-link span { font-size:22px; line-height:1; }
.machine-page :is(a,button):focus-visible,.machine-menu-categories a:focus-visible { outline:3px solid #e94b38; outline-offset:4px; }
.machine-page .machine-text-link { display:inline-flex; gap:32px; align-items:center; color:var(--machine-ink); font-size:14px; font-weight:600; text-decoration:none; border-bottom:1px solid var(--machine-ink); padding:10px 0; }
.machine-red-rule { display:inline-block; vertical-align:middle; width:28px; height:2px; margin-right:9px; background:var(--machine-red); }

/* Editorial directory: white typography panel beside a full machine scene. */
.machine-directory-hero { max-width:1600px; margin:auto; display:grid; grid-template-columns:45% 55%; min-height:590px; background:var(--machine-paper); }
.machine-directory-hero__copy { align-self:center; padding:62px 40px 50px max(40px,calc((100vw - 1360px)/2)); }
.machine-directory-hero__copy h1 { margin:0; font-family:'Barlow Condensed',Impact,sans-serif; font-weight:700; font-size:clamp(76px,7.8vw,124px); line-height:.96; letter-spacing:-.025em; }
.machine-directory-hero__copy h1 em { font-style:normal; color:var(--machine-red); }
.machine-directory-hero__copy .machine-lead { max-width:350px; font-size:15px; }
.machine-directory-hero__visual { position:relative; min-width:0; background:#16191c; overflow:hidden; }
.machine-directory-hero__visual .machine-scene { position:absolute; inset:0; }
.machine-directory-hero__visual img { object-position:70% center; }
.machine-image-caption { position:absolute; bottom:19px; right:24px; z-index:2; color:#fff; font-size:9px; font-weight:500; letter-spacing:.12em; text-shadow:0 1px 4px #000; }
.machine-directory-facts { display:flex; gap:34px; border-top:1px solid #d9d9d5; margin-top:40px; padding-top:24px; font-size:10px; letter-spacing:.03em; color:#5a5d5d; }
.machine-directory-facts span { display:grid; gap:6px; }
.machine-directory-facts strong { color:var(--machine-ink); font-family:'Barlow Condensed',Impact,sans-serif; font-size:35px; line-height:1; font-weight:700; }

/* Model and category heroes use contain so a mast, blade or boom is never cropped. */
.machine-page .machine-hero:is(.machine-hero--model,.machine-hero--brand,.machine-hero--category) { position:relative; isolation:isolate; display:flex; align-items:center; width:100%; max-width:none; min-height:590px; border:0; border-radius:0; background:#16191c; color:#fff; padding:0; margin:0; overflow:hidden; }
.machine-hero__visual { position:absolute; inset:0; z-index:-2; }
.machine-hero__visual .machine-scene { height:100%; width:82%; margin-left:auto; }
.machine-hero__visual img { object-fit:contain; object-position:right center; }
.machine-page .machine-hero:is(.machine-hero--model,.machine-hero--brand,.machine-hero--category)::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#16191c 0%,rgba(22,25,28,.96) 24%,rgba(22,25,28,.57) 48%,rgba(22,25,28,0) 73%); }
.machine-hero__copy { width:100%; max-width:1440px; padding:65px 40px; margin:auto; }
.machine-page .machine-hero__copy h1 { max-width:10ch; margin:0; color:#fff; font-family:'Barlow Condensed',Impact,sans-serif; font-size:clamp(76px,8.5vw,136px); font-weight:700; line-height:.98; letter-spacing:-.015em; text-transform:uppercase; overflow-wrap:anywhere; }
.machine-page .machine-hero__copy .machine-eyebrow { color:#e5e6e4; max-width:510px; }
.machine-page .machine-hero__copy .machine-lead { color:#d5d8d8; max-width:440px; font-size:14px; line-height:1.9; }
.machine-page .machine-hero--category h1 { max-width:11ch; font-size:clamp(70px,7.5vw,118px); }
.machine-page .machine-hero--category .machine-hero__copy { padding-top:58px; padding-bottom:58px; }
.machine-title-period { color:#f3503e; }
.machine-model-label { display:inline-block; margin:0 0 19px; padding:6px 10px; border:1px solid #5a5f62; color:#e4e6e6; font-size:9px; letter-spacing:.16em; }
.machine-page .machine-jump { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:0; margin:0; }
.machine-page .machine-jump a { display:inline-flex; align-items:center; min-height:52px; padding:12px 18px; gap:18px; border:1px solid #777e81; color:#fff; background:transparent; text-decoration:none; font-size:12px; font-weight:500; }
.machine-page .machine-jump a:first-child { background:var(--machine-red); border-color:var(--machine-red); }
.machine-page .machine-jump a:hover { border-color:#fff; }
.machine-page .machine-jump strong { font-family:'Barlow Condensed',Impact,sans-serif; font-size:24px; font-weight:700; line-height:1; }
.machine-page .machine-hero.machine-hero--compact { min-height:340px; }
.machine-page .machine-hero--compact h1 { font-size:80px; }
.machine-page .machine-hero--compact .machine-lead { display:none; }
.machine-page .machine-hero--compact .machine-jump { margin-top:24px; }
.machine-page .machine-hero.machine-hero--reference { min-height:400px; background:#202427; }
.machine-page .machine-hero--reference .machine-hero__copy h1 { max-width:none; }
.machine-page .machine-hero--reference .machine-lead { max-width:730px; }
.machine-page .machine-hero--reference::before { position:absolute; right:7%; content:'REFERENCE'; color:rgba(255,255,255,.035); font:700 160px 'Barlow Condensed',Impact,sans-serif; z-index:-1; }

/* Machine category/model cards. */
.machine-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.machine-category-card { min-width:0; display:block; color:var(--machine-ink); text-decoration:none; border:1px solid var(--machine-line); background:#fff; }
.machine-category-card:hover { border-color:var(--machine-red); }
.machine-category-card__visual { position:relative; aspect-ratio:16/10; background:#1d2326; overflow:hidden; }
.machine-category-card__visual .machine-scene { height:100%; }
.machine-category-card__visual img { object-fit:contain; object-position:center; }
.machine-card-number { position:absolute; left:14px; top:13px; padding:4px 6px; background:rgba(17,20,22,.75); color:#fff; font:700 20px 'Barlow Condensed',Impact,sans-serif; }
.machine-category-card__copy { padding:22px 20px 17px; }
.machine-page .machine-category-card__copy .machine-eyebrow { margin:0 0 7px; font-size:8px; color:#6a6f70; letter-spacing:.1em; }
.machine-page .machine-category-card h2 { margin:0 0 26px; min-height:2.05em; font:700 30px/1.03 'Barlow Condensed',Impact,sans-serif; }
.machine-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:15px; border-top:1px solid var(--machine-line); font-size:10px; color:#676c6d; }
.machine-card-bottom>span { color:var(--machine-red); font-size:23px; line-height:1; }
.machine-page .machine-model-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.machine-page .machine-model-card { display:block; min-width:0; padding:0; border:1px solid var(--machine-line); border-radius:0; box-shadow:none; background:#fff; color:var(--machine-ink); text-decoration:none; }
.machine-page .machine-model-card:hover { border-color:var(--machine-red); transform:none; box-shadow:none; }
.machine-page .machine-model-card[hidden] { display:none; }
.machine-model-card__visual { aspect-ratio:16/10; overflow:hidden; background:#1a2023; }
.machine-model-card__visual .machine-scene { width:100%; height:100%; }
.machine-model-card__visual img { object-fit:contain; object-position:center; }
.machine-model-card__copy { padding:25px 25px 20px; }
.machine-page .machine-model-card__copy .machine-eyebrow { color:#7a7e80; font-size:9px; margin-bottom:8px; }
.machine-page .machine-model-card h2 { margin:0 0 6px; font:700 41px/1.08 'Barlow Condensed',Impact,sans-serif; letter-spacing:-.01em; }
.machine-model-card__type { margin:0 0 24px; font-size:11px; color:#666d70; }
.machine-reference-plate { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; background:#edf0ef; color:#647071; }
.machine-reference-plate i { font-size:50px; }
.machine-reference-plate span { font-size:10px; letter-spacing:.13em; text-transform:uppercase; }
.machine-brand-filters { display:flex; flex-wrap:wrap; gap:10px; margin:-7px 0 32px; }
.machine-brand-filters button { min-height:44px; padding:11px 20px; border:1px solid #d4d6d5; border-radius:0; background:#fff; color:#33383a; font:500 12px 'Poppins',sans-serif; cursor:pointer; }
.machine-brand-filters button[aria-pressed=true] { border-color:var(--machine-ink); background:var(--machine-ink); color:#fff; }
.machine-brand-filters button:hover { border-color:var(--machine-red); }
.machine-page .machine-note { display:grid; grid-template-columns:1fr 1fr; gap:100px; background:var(--machine-paper); border:0; border-radius:0; margin:10px auto 80px; padding:60px 50px; }
.machine-page .machine-note p:not(.machine-eyebrow) { margin:0 0 20px; color:#62696b; font-size:14px; line-height:1.9; }
.machine-page .machine-sales { max-width:1360px; margin:48px auto 0; padding:40px 44px; border:1px solid var(--machine-line); border-left:3px solid var(--machine-red); border-radius:0; background:#fff; box-shadow:none; }
.machine-page .machine-sales h2 { font-size:38px; }
.machine-page .machine-sales p { max-width:780px; font-size:13px; line-height:1.8; }
.machine-page .machine-sales .btn { border-radius:0; white-space:normal; }
.machine-page .machine-fitment-note { padding:16px 20px; margin-bottom:26px; background:var(--machine-paper); border-left:2px solid #a9aeae; color:#5d6769; font-size:12px; line-height:1.8; }
.machine-page .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.machine-page .product-card { min-width:0; border:1px solid var(--machine-line); border-radius:0; box-shadow:none; }
.machine-page .product-card:hover { transform:none; box-shadow:none; border-color:#b7baba; }
.machine-page .product-card__image { aspect-ratio:1; border-radius:0; }
.machine-page .product-card__body { padding:18px; }
.machine-page .product-card__title { font-size:13px; line-height:1.6; }
.machine-page .product-card__price { font-weight:600; font-size:19px; }
.machine-page .machine-part-link { color:var(--machine-red); font-size:11px; text-decoration:none; }
.machine-page .machine-pagination { gap:8px; margin-top:40px; }
.machine-page .machine-pagination a { min-width:40px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:0; }
.machine-page .machine-pagination [aria-current] { background:var(--machine-ink); color:#fff; border-color:var(--machine-ink); }
.machine-page .social-bar__icons,.product-page .social-bar__icons { flex-wrap:wrap; max-width:100%; justify-content:center; }

/* Category-only Machines mega menu; existing trigger and mobile cloning stay intact. */
.machine-menu-categories { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.machine-menu-categories .machine-menu-category { display:block; min-width:0; padding:0; overflow:hidden; border:1px solid #dfdfdf; border-radius:0; text-decoration:none; background:white; }
/* Shared category spans are absolute, masked overlays. These tiles have ordinary image/label rows. */
.machine-menu-category span { position:static; inset:auto; display:block; padding:0; color:inherit; background:none; backdrop-filter:none; -webkit-backdrop-filter:none; mask-image:none; -webkit-mask-image:none; text-shadow:none; }
.machine-menu-categories .machine-menu-category__image { display:block; aspect-ratio:16/8; overflow:hidden; background:#20272b; }
.machine-menu-categories .machine-menu-category img { display:block; width:100%; height:100%; max-width:none; max-height:none; object-fit:contain; object-position:center; border-radius:0; }
/* Beat the shared .mega-menu__cat-card:hover span rule in every interaction state. */
.machine-menu-categories .machine-menu-category .machine-menu-category__label { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 14px; color:#202426; font:600 12px/1.5 'Poppins',sans-serif; text-align:left; }
.machine-menu-categories .machine-menu-category .machine-menu-category__label>span { color:#c93022; font-size:20px; }
.machine-menu-categories .machine-menu-category:hover { border-color:#c93022; box-shadow:none; transform:none; }
.machine-menu-footer { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:23px 0 0; font-size:12px; }
.machine-menu-footer a { font-weight:600; text-decoration:none; color:#c93022; }
.machine-menu-footer span { color:#777; font-size:11px; }

/* PDP recommendations share the native product-card type, spacing and action styling. */
#related-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:20px; }
#compatible-machine-models .machine-compatible-grid { grid-template-columns:repeat(auto-fit,minmax(calc((100% - 101px)/6),1fr)); gap:20px; }
.machine-compatible-card { width:100%; max-width:360px; justify-self:center; }
#compatible-machine-models:not([hidden]) { padding-top:60px; padding-bottom:70px; }
.machine-compatible-note { max-width:760px; margin:-16px auto 34px; text-align:center; color:var(--body); font-size:13px; line-height:1.7; }
.machine-compatible-card .machine-compatible-card__image { aspect-ratio:16/11; background:#1a2023; }
.machine-compatible-card__image picture { display:block; width:100%; height:100%; }
.machine-compatible-card .machine-compatible-card__image img { position:static; inset:auto; width:100%; height:100%; object-fit:contain; }
.machine-compatible-card__caption { position:absolute; bottom:5px; left:5px; right:5px; font-size:8px; line-height:1.4; color:#fff; text-shadow:0 1px 3px #000; }
.machine-compatible-card__reference { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; width:100%; height:100%; padding:14px; background:#e8edec; color:#485354; font-size:11px; }
.machine-compatible-card__reference>i { font-size:34px; }
.machine-compatible-card .product-card__title { flex:none; min-height:2.6em; margin-bottom:15px; }
.machine-compatible-card .machine-compatible-card__link { margin-top:auto; gap:9px; min-height:44px; padding:10px; color:#fff; font-size:12px; text-decoration:none; }
.machine-compatible-card :is(a,button):focus-visible { outline:3px solid #c93022; outline-offset:4px; }

@media (max-width:1100px) {
  #related-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #compatible-machine-models .machine-compatible-grid { grid-template-columns:repeat(auto-fit,minmax(calc((100% - 41px)/3),1fr)); }
}
@media (max-width:640px) {
  #related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 12px; }
  #compatible-machine-models .machine-compatible-grid { grid-template-columns:repeat(auto-fit,minmax(calc((100% - 13px)/2),1fr)); gap:22px 12px; }
  #compatible-machine-models:not([hidden]) { padding-top:40px; padding-bottom:44px; }
  .machine-compatible-note { margin:-12px auto 26px; font-size:11px; }
  .machine-compatible-card .product-card__body { padding-left:2px; padding-right:2px; }
  .machine-compatible-card .product-card__title { font-size:13px; }
  .machine-compatible-card .product-card__category { font-size:11px; }
}

@media (min-width:1600px) {
  .machine-directory-hero__copy { padding-left:80px; }
}
@media (max-width:1100px) {
  .machine-directory-hero { grid-template-columns:48% 52%; min-height:530px; }
  .machine-directory-hero__copy { padding:45px 30px; }
  .machine-directory-hero__copy h1 { font-size:87px; }
  .machine-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .machine-page .machine-hero__copy { padding-left:32px; padding-right:32px; }
  .machine-page .machine-hero__copy .machine-lead { max-width:370px; }
  .machine-page .machine-model-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .machine-page .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .machine-page .machine-sales { margin-left:32px; margin-right:32px; }
  .machine-page .machine-section,.machine-page #compatible-parts { padding:60px 32px; }
}
@media (max-width:700px) {
  .machine-page .machine-breadcrumb { padding:17px 20px; font-size:10px; gap:6px; }
  .machine-directory-hero { display:flex; flex-direction:column; min-height:0; }
  .machine-directory-hero__copy { padding:40px 24px; }
  .machine-directory-hero__copy h1 { font-size:clamp(76px,16vw,110px); }
  .machine-directory-hero__copy .machine-lead { max-width:100%; font-size:14px; }
  .machine-directory-hero__visual { min-height:0; aspect-ratio:16/10; }
  .machine-directory-hero__visual img { object-fit:cover; object-position:70% center; }
  .machine-directory-facts { margin-top:28px; padding-top:20px; }
  .machine-page .machine-hero:is(.machine-hero--model,.machine-hero--brand,.machine-hero--category) { flex-direction:column; align-items:stretch; min-height:0; }
  .machine-hero__visual { position:relative; inset:auto; z-index:0; order:2; aspect-ratio:16/10; }
  .machine-hero__visual .machine-scene { width:100%; height:100%; }
  .machine-hero__visual img { object-fit:contain; object-position:center; }
  .machine-page .machine-hero:is(.machine-hero--model,.machine-hero--brand,.machine-hero--category)::after { display:none; }
  .machine-hero__copy,.machine-page .machine-hero--category .machine-hero__copy { padding:38px 22px 32px; }
  .machine-page .machine-hero__copy h1,.machine-page .machine-hero--category h1 { max-width:100%; font-size:clamp(64px,14vw,92px); }
  .machine-page .machine-hero__copy .machine-lead { max-width:100%; font-size:13px; margin:20px 0 26px; }
  .machine-page .machine-hero__copy .machine-eyebrow { font-size:9px; letter-spacing:.1em; }
  .machine-model-label { margin-bottom:15px; }
  .machine-image-caption { bottom:12px; right:15px; font-size:7px; letter-spacing:.08em; }
  .machine-page .machine-jump { gap:10px; }
  .machine-page .machine-jump a { font-size:11px; padding:10px 12px; gap:12px; }
  .machine-page .machine-jump strong { font-size:22px; }
  .machine-page .machine-hero--reference .machine-hero__visual { display:none; }
  .machine-page .machine-hero--reference::before { display:none; }
  .machine-page .machine-hero--compact .machine-hero__visual { display:none; }
  .machine-page .machine-hero--compact h1 { font-size:60px; }
  .machine-page .machine-section,.machine-page #compatible-parts { padding:46px 20px; }
  .machine-page .machine-section-heading { flex-direction:column; align-items:flex-start; gap:16px; margin-bottom:26px; }
  .machine-page .machine-section-heading h2 { font-size:39px; }
  .machine-page .machine-section-heading>p { font-size:12px; }
  .machine-category-grid { gap:14px; }
  .machine-category-card__copy { padding:16px 13px 13px; }
  .machine-page .machine-category-card h2 { font-size:27px; margin-bottom:19px; }
  .machine-page .machine-category-card__copy .machine-eyebrow { font-size:7px; letter-spacing:.04em; }
  .machine-card-number { left:8px; top:8px; font-size:16px; }
  .machine-card-bottom { font-size:8px; gap:6px; line-height:1.6; }
  .machine-page .machine-model-grid { grid-template-columns:1fr; gap:22px; }
  .machine-model-card__copy { padding:21px; }
  .machine-page .machine-model-card h2 { font-size:39px; }
  .machine-model-card .machine-card-bottom { font-size:11px; }
  .machine-page .machine-note { grid-template-columns:1fr; gap:28px; padding:36px 24px; margin:0 20px 44px; }
  .machine-page .machine-note h2 { font-size:40px; }
  .machine-page .machine-note p:not(.machine-eyebrow) { font-size:12px; }
  .machine-page .machine-sales { margin:30px 20px 0; padding:25px 22px; }
  .machine-page .machine-sales h2 { font-size:33px; }
  .machine-page .machine-sales p { font-size:12px; }
  .machine-page .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .machine-page .product-card__body { padding:12px; }
  .machine-page .product-card__title { font-size:11px; }
  .machine-page .product-card__price { font-size:16px; }
  .machine-page .product-card__pn { font-size:10px; overflow-wrap:anywhere; }
  .machine-page .machine-fitment-note { font-size:10px; padding:12px; }
  .machine-menu-categories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .machine-menu-categories .machine-menu-category .machine-menu-category__label { padding:10px; font-size:11px; }
  .machine-menu-footer { align-items:flex-start; flex-direction:column; gap:10px; }
}

.machine-menu-category__image .machine-menu-category__reference {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #edf0ef;
  color: #485354;
  font-size: 36px;
}
.machine-part-fitment {
  margin: 4px 0 12px;
  color: #485354;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
