:root{
  --mf-black:#000;--mf-white:#fff;--mf-grey:#e4e4e4;--mf-ink:#33373d;--mf-gold:#a28114;
  --mf-bg:var(--mf-white);--mf-fg:var(--mf-black);
  --mf-font:"DM Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --mf-display:"DM Sans","Helvetica Neue",Arial,sans-serif;
  /* Measured from the live sites: 12px labels, 16px body, 20px card titles,
     35px section headings, 80px display. Line-heights are tight. */
  --mf-step--2:12px;
  --mf-step--1:14px;
  --mf-step-0:16px;
  --mf-step-1:20px;
  --mf-step-2:clamp(1.6rem,1.1rem + 1.6vw,35px);
  --mf-step-3:clamp(2.4rem,1rem + 4.6vw,80px);
  --mf-container:1140px;
  --mf-gutter:20px;
  --mf-section-y:0rem;
  --mf-flow:10px;
}

.mf-grid{display:grid;gap:var(--mf-gutter);
  grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}

.mf-eyebrow{font-family:var(--mf-font);font-size:var(--mf-step--1);letter-spacing:.18em;
  text-transform:uppercase;font-weight:500;opacity:.8}

.mf-text>*+*{margin-block-start:.75em}


.mf-button{display:inline-block;padding:15px 20px;border:1px solid var(--mf-gold);
  border-radius:2px;background:transparent;color:var(--mf-gold);font:inherit;font-size:12px;
  letter-spacing:.5px;text-transform:uppercase;text-decoration:none;cursor:pointer;
  transition:background-color .18s ease,color .18s ease}

.mf-button:hover,.mf-button:focus-visible{background:var(--mf-gold);color:var(--mf-black)}


.mf-card{background:none;color:inherit;display:flex;flex-direction:column;padding-inline:35px}

.mf-card__media{aspect-ratio:316/300;background:var(--mf-grey);overflow:hidden}

.mf-card__media img{width:100%;height:100%;object-fit:cover}

.mf-card__body{padding:14px 0 0}

.mf-card__title{font-family:var(--mf-display);font-size:var(--mf-step-1);font-weight:700;margin:0;line-height:1.1;letter-spacing:-.02em}

.mf-card a{text-decoration:none;display:block;color:inherit}

.mf-nav{display:flex;gap:1.1rem;flex-wrap:wrap;list-style:none;margin:0;padding:0}

.mf-nav a{text-decoration:none;font-size:var(--mf-step--1);font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:18px}

.mf-nav a:hover{color:var(--mf-gold)}

.mf-switch{display:flex;gap:.5rem;list-style:none;margin:0 0 0 auto;padding:0;align-items:center}

.mf-switch a{text-decoration:none;font-size:var(--mf-step--1);letter-spacing:.1em;opacity:.55}

.mf-switch .is-current a{opacity:1;color:var(--mf-gold);font-weight:500}


.mf-form{display:grid;gap:1.1rem;max-width:42rem}

.mf-field label{display:block;margin-block-end:.35rem;font-size:var(--mf-step--2);
  letter-spacing:.08em;text-transform:uppercase}

.mf-form input,.mf-form textarea,.mf-form select{width:100%;padding:.7rem .8rem;font:inherit;
  border:1px solid var(--mf-fg);border-radius:2px;background:transparent;color:inherit}

.mf-form input:focus-visible,.mf-form textarea:focus-visible,.mf-form select:focus-visible{
  outline:2px solid var(--mf-gold);outline-offset:1px}

.mf-form-errors{border:1px solid #b00020;color:#b00020;padding:.75rem 1rem}

.mf-form-done{border:1px solid var(--mf-gold);padding:1rem}


/* Icon rows (market flags) - Elementor stacked these vertically. */
.mf-iconrow{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:center}

.mf-iconrow img{width:26px;height:auto}


/* Mobile navigation: a disclosure button, as production uses. Implemented with
   a checkbox so it works without JavaScript. */
.mf-navtoggle{display:none}

.mf-navtoggle-label{display:none;cursor:pointer;padding:.5rem;margin-inline:auto;width:max-content}

.mf-navtoggle-label span{display:block;width:26px;height:2px;background:var(--mf-gold);margin:5px 0}
@media (max-width:780px){
  .mf-navtoggle-label{display:block}
  .mf-navtoggle:checked ~ .mf-nav{display:flex;flex-direction:column;align-items:center;gap:.9rem;
    padding-block:1rem}}


/* Gallery lightbox */
.mf-lb{border:0;padding:0;max-width:100vw;max-height:100vh;width:100vw;height:100vh;
  background:rgba(0,0,0,.94);color:var(--mf-white);
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem}

.mf-lb::backdrop{background:rgba(0,0,0,.9)}

.mf-lb:not([open]){display:none}

.mf-lb__fig{margin:0;display:grid;place-items:center;gap:.75rem;max-height:88vh}

.mf-lb__img{max-width:min(92vw,1400px);max-height:80vh;width:auto;height:auto;object-fit:contain}

.mf-lb__cap{font-size:var(--mf-step--1);opacity:.8;text-align:center}

.mf-lb__close{position:absolute;top:.75rem;right:1rem;font-size:2rem;line-height:1;
  background:none;border:0;color:inherit;cursor:pointer;padding:.25rem .6rem}

.mf-lb__nav{background:none;border:0;color:inherit;font-size:3rem;line-height:1;cursor:pointer;
  padding:.5rem .9rem;opacity:.75}

.mf-lb__nav:hover,.mf-lb__close:hover{opacity:1;color:var(--mf-gold)}

.mf-lb__count{position:absolute;bottom:1rem;left:0;right:0;text-align:center;
  font-size:var(--mf-step--1);opacity:.7;margin:0}

.mf-gallery-item{display:block;cursor:zoom-in}
@media (max-width:640px){.mf-lb{grid-template-columns:1fr}.mf-lb__nav{position:absolute;top:50%}
  .mf-lb__nav--prev{left:.25rem}.mf-lb__nav--next{right:.25rem}}


/* Specification lists */
.mf-specs{display:grid;grid-template-columns:minmax(9rem,auto) 1fr;gap:.4rem 1.25rem;
  border-top:1px solid var(--mf-grey);padding-block-start:1rem}

.mf-specs dt{font-size:var(--mf-step--1);letter-spacing:.08em;text-transform:uppercase;opacity:.7}

.mf-specs dd{margin:0}
@media (max-width:560px){.mf-specs{grid-template-columns:1fr;gap:.15rem}
  .mf-specs dd{margin-block-end:.6rem}}


/* Listing carousel */
.mf-carousel{position:relative}

.mf-carousel__track{display:grid;grid-auto-flow:column;
  grid-auto-columns:minmax(min(386px,82vw),1fr);gap:var(--mf-gutter);
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding-block-end:.5rem;scrollbar-width:thin}

.mf-carousel__track>*{scroll-snap-align:start}

.mf-carousel__track::-webkit-scrollbar{height:4px}

.mf-carousel__track::-webkit-scrollbar-thumb{background:var(--mf-grey)}

.mf-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  background:rgba(0,0,0,.55);color:var(--mf-white);border:0;cursor:pointer;
  font-size:1.6rem;line-height:1;padding:.5rem .75rem;border-radius:2px}

.mf-carousel__nav:hover,.mf-carousel__nav:focus-visible{background:var(--mf-gold);color:var(--mf-black)}

.mf-carousel__prev{left:-.25rem}

.mf-carousel__next{right:-.25rem}

.mf-carousel.is-static .mf-carousel__nav{display:none}
@media (prefers-reduced-motion:reduce){.mf-carousel__track{scroll-behavior:auto}}

.mf-carousel{max-width:100%;overflow:hidden;width:100%}

.mf-carousel__track{max-width:100%}

.mf-carousel__track{padding-inline:2px}


/* Card titles are labels, not underlined links. */
.mf-card a,.mf-card a:hover{text-decoration:none}

.mf-card__title{text-decoration:none}


/* Arrows sit against the track edge and stay inside the band. */
.mf-carousel__prev{left:0}

.mf-carousel__next{right:0}

.mf-carousel__nav{box-shadow:0 0 0 1px rgba(255,255,255,.12)}


/* Keep the last row of a grid from leaving a single orphan card stretched. */
.mf-grid{align-items:start}


/* Card links are whole-card targets; underlining the title looks unfinished. */
.mf-card a,.mf-card a *,.mf-listing a,.mf-carousel a,.mf-carousel a *{text-decoration:none!important}

.mf-card__title{position:relative;display:inline-block;padding-block-end:2px}

.mf-card a:hover .mf-card__title{box-shadow:inset 0 -1px 0 currentColor}


/* Arrows: solid, quiet, inside the band. */
.mf-carousel__nav{background:rgba(0,0,0,.72);color:#fff;box-shadow:none;border-radius:0;
  width:44px;height:44px;display:grid;place-items:center;padding:0;font-size:1.5rem}

.mf-carousel__nav:focus-visible{outline:2px solid var(--mf-gold);outline-offset:2px}


/* The theme's button reset outranks the component rules above, so the carousel
   arrows need explicit specificity rather than relying on source order. */
.mf .mf-carousel button.mf-carousel__nav{
  background:rgba(0,0,0,.72)!important;color:#fff!important;border:0!important;
  border-radius:0!important;width:44px;height:44px;padding:0;font-size:1.5rem;
  display:grid;place-items:center;box-shadow:none!important;opacity:1}

.mf .mf-carousel button.mf-carousel__nav:hover{background:var(--mf-gold)!important;color:#000!important}

.mf .mf-carousel button.mf-carousel__nav:focus-visible{outline:2px solid var(--mf-gold);outline-offset:2px}


/* Live paragraph rhythm is 26px, not the 10px stack gap. */
.mf-text>*+*,.mf-text p+p{margin-block-start:26px}


/* ==========================================================================
   Measured-parity block. Every value here was read off the computed styles of
   https://www.metalform.uk at 1440px rather than estimated, so this section is
   the authority where it overlaps with the approximations further up.
   ========================================================================== */

/* Live sets card and section titles in the MONO face - 20/22, 700, 0.5px
   tracking, uppercase. The earlier display-face treatment with negative
   tracking is what read as generic. */
.mf .mf-card__title,
.mf .mf-listing .mf-card__title,
.mf-carousel .mf-card__title{
  font-family:var(--mf-font);font-size:20px;line-height:22px;font-weight:700;
  letter-spacing:.5px;text-transform:uppercase}

.mf-eyebrow{font-size:10px;line-height:12px;font-weight:500;letter-spacing:.5px;
  text-transform:uppercase}


/* Cards: the image is flush at 316px. No inset padding, and no placeholder
   fill - the grey block behind each image was showing as a border. */
.mf .mf-card{padding-inline:0}

.mf .mf-card__media{background:none}


/* Live slide pitch is 386px: a 316px image with a 70px gap. */
.mf-carousel__track{gap:70px}


/* Image rows sit flush - no vertical gap between pictures. */
.mf-grid{row-gap:0}

.mf-grid>*{margin-block:0}

.mf-grid .mf-card__media{margin:0}
/* The parent theme boxes all content in .site-main{max-width:1140px}. The
   production sites run their sections full-bleed and inset only the inner
   container, so that wrapper has to step out of the way. */
body.mf #content.site-main,
body.mf .site-main,
body.mf .page-content{max-width:none;width:100%;margin:0;padding:0}

/* Listing geometry, measured from production: each item is exactly 386px wide
   with 10px of its own side padding, and the cards sit flush - the 70px the eye
   reads between two images is 2x10px item padding plus 2x25px card padding, not
   a track gap. Adding a gap on top of that made every card 20px too wide and
   every gutter 50px too large. */
.mf-carousel__track,.mf-listing{gap:0}
.mf-carousel .jet-listing-grid__item,
.mf-listing .jet-listing-grid__item{padding:0 10px;box-sizing:border-box}
.mf-carousel__track{display:grid;grid-auto-flow:column;grid-auto-columns:386px;
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth}
.mf-listing{display:grid;grid-template-columns:repeat(auto-fill,minmax(386px,1fr));
  row-gap:0;column-gap:0}

/* Gallery items are anchors so the native lightbox still works; they must not
   inherit the inline-link treatment, and the image box needs a height because
   a background image contributes none. */
.e-gallery-item.mf-gallery-item{display:block;text-decoration:none;line-height:0}
/* Height comes from the framework's padding-bottom aspect box - setting an
   explicit height here overrode it and made every tile too tall. */
.e-gallery-item .e-gallery-image{width:100%;
  background-size:cover;background-position:50% 50%;background-repeat:no-repeat}

/* The builder gives every widget type its own rule of this shape so a widget
   fills its flex container; the gallery's copy lives in a widget stylesheet
   that is not part of the harvested bundle. Without it the gallery collapses
   to zero width inside a centred column. */
.e-con>.elementor-widget-gallery,
.e-con-inner>.elementor-widget-gallery{width:var(--container-widget-width,100%)}

/* Belt and braces for the parent theme's own header, footer and page title:
   the production sites render neither, and the ported header/footer templates
   replace them. */
body.mf > header.site-header,
body.mf > footer.site-footer,
body.mf .site-branding,
body.mf .page-header{display:none!important}
