/* ==========================================================
   MAAHIR DYNAMIC BLOG LIBRARY — WORDPRESS SAFE
   Scoped to .mi-blog-library
========================================================== */

.mi-blog-library{
  --mb-red:#e0241c;
  --mb-red-dark:#b9140e;
  --mb-dark:#111716;
  --mb-paper:#f9f6f1;
  --mb-cream:#eee6da;
  --mb-white:#fff;
  --mb-text:#272d2b;
  --mb-muted:#5c625f;
  --mb-line:#ddd5c9;
  --mb-shadow:0 24px 70px rgba(31,23,18,.12);
  --mb-heading:"Times New Roman",Times,serif;
  --mb-body:Roboto,Arial,sans-serif;
  --mb-shell:min(1220px,calc(100% - 64px));
  position:relative;
  overflow:hidden;
  background:var(--mb-paper);
  color:var(--mb-text);
  font-family:var(--mb-body)!important;
  font-size:16px;
  line-height:1.65;
}

.mi-blog-library *,
.mi-blog-library *::before,
.mi-blog-library *::after{box-sizing:border-box}

.mi-blog-library,
.mi-blog-library p,
.mi-blog-library li,
.mi-blog-library a,
.mi-blog-library button,
.mi-blog-library input,
.mi-blog-library select,
.mi-blog-library textarea,
.mi-blog-library small,
.mi-blog-library label,
.mi-blog-library address{
  font-family:var(--mb-body)!important;
}

.mi-blog-library h1,
.mi-blog-library h2,
.mi-blog-library h3,
.mi-blog-library h4,
.mi-blog-library .mb-hero-index strong{
  font-family:var(--mb-heading)!important;
}

.mi-blog-library h1,
.mi-blog-library h2,
.mi-blog-library h3,
.mi-blog-library h4{
  color:var(--mb-dark)!important;
  font-weight:500;
}

.mi-blog-library img{display:block;width:100%;max-width:100%}
.mi-blog-library a{color:inherit;text-decoration:none}
.mi-blog-library button,
.mi-blog-library input{font:inherit}
.mi-blog-library button{color:inherit}
.mi-blog-library h1,
.mi-blog-library h2,
.mi-blog-library h3,
.mi-blog-library p{margin-top:0}
.mi-blog-library .mb-shell{width:var(--mb-shell);margin-inline:auto}
.mi-blog-library .mb-section{padding:100px 0}
.mi-blog-library .mb-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.mi-blog-library .mb-eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  color:var(--mb-red);
  font-size:10px;
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.mi-blog-library .mb-eyebrow span{
  width:26px;
  height:1px;
  background:currentColor;
}

.mi-blog-library .mb-eyebrow.mb-light{color:#ffe0dd}

.mi-blog-library .mb-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:50px;
  padding:14px 22px;
  border:0;
  border-radius:4px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
  transition:transform .22s ease,box-shadow .22s ease,background .22s ease;
}

.mi-blog-library .mb-button:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(30,22,18,.16);
}
.mi-blog-library .mb-button-red{background:var(--mb-red);color:#fff;box-shadow:0 14px 30px rgba(224,36,28,.18)}
.mi-blog-library .mb-button-red:hover{background:var(--mb-red-dark)}
.mi-blog-library .mb-button-white{background:#fff;color:var(--mb-red)}
.mi-blog-library .mb-under-link,
.mi-blog-library .mb-article-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:max-content;
  padding-bottom:5px;
  border-bottom:1px solid currentColor;
  font-size:12px;
  font-weight:700;
}
.mi-blog-library .mb-article-link{margin-top:auto}
.mi-blog-library .mb-light-link{color:#ffaaa5}

/* Hero */
.mi-blog-library .mb-hero{
  position:relative;
  min-height:760px;
  overflow:hidden;
  background:var(--mb-paper);
}

.mi-blog-library .mb-grid-bg{
  position:absolute;
  inset:0 0 0 47%;
  background-image:
    linear-gradient(rgba(16,22,20,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(16,22,20,.06) 1px,transparent 1px);
  background-size:62px 62px;
  mask-image:linear-gradient(to right,transparent,#000 23%);
}

.mi-blog-library .mb-hero-layout{
  position:relative;
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:72px;
  align-items:center;
  min-height:760px;
}

.mi-blog-library .mb-hero-copy{padding:74px 0}

.mi-blog-library .mb-hero-copy h1{
  max-width:720px;
  margin:0 0 24px;
  font-size:clamp(56px,5.8vw,84px);
  font-weight:500;
  line-height:.95;
  letter-spacing:-.055em;
}

.mi-blog-library .mb-hero-copy h1 em{
  color:var(--mb-red);
  font-weight:inherit;
}

.mi-blog-library .mb-hero-lead{
  max-width:650px;
  margin-bottom:30px;
  color:var(--mb-muted);
  font-size:16px;
  line-height:1.78;
}

.mi-blog-library .mb-hero-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:20px;
}

.mi-blog-library .mb-hero-index{
  display:flex;
  gap:28px;
  margin-top:48px;
}

.mi-blog-library .mb-hero-index>div{
  min-width:135px;
  padding-top:16px;
  border-top:1px solid var(--mb-line);
}

.mi-blog-library .mb-hero-index strong{
  display:block;
  color:var(--mb-red);
  font-size:33px;
  font-weight:500;
}

.mi-blog-library .mb-hero-index span{
  display:block;
  margin-top:4px;
  color:var(--mb-muted);
  font-size:10px;
}

.mi-blog-library .mb-hero-visual{
  position:relative;
  min-height:640px;
}

.mi-blog-library .mb-hero-image-wrap{
  position:absolute;
  inset:22px 0 0 42px;
  overflow:hidden;
  border-radius:120px 22px 22px 22px;
  box-shadow:var(--mb-shadow);
}

.mi-blog-library .mb-hero-image-wrap img{
  height:100%;
  object-fit:cover;
}

.mi-blog-library .mb-hero-feature-card{
  position:absolute;
  left:-25px;
  bottom:42px;
  width:min(390px,76%);
  padding:25px;
  border-radius:2px;
  background:#fff;
  box-shadow:var(--mb-shadow);
}

.mi-blog-library .mb-hero-feature-card p{
  margin-bottom:9px;
  color:var(--mb-red);
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.mi-blog-library .mb-hero-feature-card h2{
  margin-bottom:15px;
  font-size:30px;
  font-weight:500;
  line-height:1.1;
}

.mi-blog-library .mb-hero-feature-card a{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  font-weight:800;
}

.mi-blog-library .mb-hero-side-note{
  position:absolute;
  top:65px;
  right:-26px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  transform:rotate(90deg);
  transform-origin:right top;
}

.mi-blog-library .mb-hero-side-note b{font-size:10px;color:var(--mb-red)}
.mi-blog-library .mb-hero-side-note span{font-size:9px;text-transform:uppercase;letter-spacing:.13em}

/* Section headings */
.mi-blog-library .mb-section-head.mb-split{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:70px;
  align-items:end;
  margin-bottom:46px;
}

.mi-blog-library .mb-section-head h2{
  margin:0;
  font-size:clamp(40px,4.4vw,58px);
  font-weight:500;
  line-height:1.02;
  letter-spacing:-.045em;
}

.mi-blog-library .mb-section-head>p{
  margin:0;
  color:var(--mb-muted);
  font-size:15px;
  line-height:1.75;
}

/* Route section */
.mi-blog-library .mb-route-section{background:#fff}
.mi-blog-library .mb-route-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border:1px solid var(--mb-line);
}

.mi-blog-library .mb-route-card{
  position:relative;
  min-height:225px;
  padding:27px 25px;
  border:0;
  border-right:1px solid var(--mb-line);
  background:#fff;
  text-align:left;
  cursor:pointer;
  transition:.25s ease;
}

.mi-blog-library .mb-route-card:last-child{border-right:0}

.mi-blog-library .mb-route-card:hover,
.mi-blog-library .mb-route-card.is-selected{
  background:var(--mb-red);
  color:#fff;
}

.mi-blog-library .mb-route-card b{
  display:block;
  margin-bottom:40px;
  color:var(--mb-red);
  font-size:10px;
}

.mi-blog-library .mb-route-card:hover b,
.mi-blog-library .mb-route-card.is-selected b{color:#fff}

.mi-blog-library .mb-route-card span{
  display:block;
  margin-bottom:10px;
  font-family:var(--mb-heading)!important;
  font-size:24px;
  font-weight:500;
  line-height:1.12;
}

.mi-blog-library .mb-route-card small{
  display:block;
  color:var(--mb-muted);
  font-size:13px;
  line-height:1.55;
}

.mi-blog-library .mb-route-card:hover small,
.mi-blog-library .mb-route-card.is-selected small{color:#ffe0dd}

.mi-blog-library .mb-route-card i{
  position:absolute;
  right:20px;
  bottom:20px;
  font-size:13px;
}

/* Featured */
.mi-blog-library .mb-featured{background:var(--mb-paper)}
.mi-blog-library .mb-featured-layout{
  display:grid;
  grid-template-columns:1.03fr .97fr;
  min-height:590px;
}

.mi-blog-library .mb-featured-media{
  position:relative;
  overflow:hidden;
}

.mi-blog-library .mb-featured-media img{
  height:100%;
  min-height:590px;
  object-fit:cover;
}

.mi-blog-library .mb-featured-media span{
  position:absolute;
  right:0;
  bottom:0;
  padding:11px 15px;
  background:#fff;
  color:var(--mb-red);
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.mi-blog-library .mb-featured-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:58px;
  border:1px solid var(--mb-line);
  border-left:0;
  background:#fff;
}

.mi-blog-library .mb-section-number{
  margin-bottom:18px;
  color:var(--mb-red);
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.mi-blog-library .mb-featured-copy h2{
  margin-bottom:20px;
  color:var(--mb-dark)!important;
  font-size:clamp(38px,4vw,54px);
  font-weight:500;
  line-height:1.01;
  letter-spacing:-.045em;
}

.mi-blog-library .mb-featured-copy>p:not(.mb-section-number){
  color:var(--mb-muted);
  font-size:15px;
  line-height:1.78;
}

.mi-blog-library .mb-detail-list{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:20px 0 28px;
}

.mi-blog-library .mb-detail-list span{
  padding:9px 11px;
  border:1px solid var(--mb-line);
  background:var(--mb-paper);
  font-size:10px;
}

/* Library */
.mi-blog-library .mb-library{
  position:relative;
  isolation:isolate;
  background:
    radial-gradient(circle at 94% 5%,rgba(237,41,35,.055),transparent 27%),
    linear-gradient(180deg,#fff 0%,#fbf9f5 100%);
}

.mi-blog-library .mb-library::before{
  position:absolute;
  z-index:-1;
  top:0;
  left:0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--mb-line) 14%,var(--mb-line) 86%,transparent);
  content:"";
}

.mi-blog-library .mb-library .mb-section-head.mb-split{
  align-items:center;
  margin-bottom:38px;
  padding-bottom:32px;
  border-bottom:1px solid var(--mb-line);
}

.mi-blog-library .mb-library .mb-section-head h2{
  max-width:720px;
  font-size:clamp(42px,4.2vw,58px);
  line-height:.98;
}

.mi-blog-library .mb-library .mb-section-head h2 em{
  display:block;
  color:var(--mb-red);
  font-style:normal;
}

.mi-blog-library .mb-library .mb-section-head>p{
  max-width:500px;
  padding-left:25px;
  border-left:3px solid var(--mb-red);
  color:#5f625e;
  font-size:15px;
  line-height:1.75;
}

.mi-blog-library .mb-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin-bottom:30px;
  padding:12px;
  border:1px solid #e5ded3;
  border-radius:14px;
  background:rgba(255,255,255,.9);
  box-shadow:0 12px 35px rgba(35,25,18,.055);
}

.mi-blog-library .mb-filters{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.mi-blog-library .mb-filter{
  min-height:42px;
  padding:10px 15px;
  border:1px solid transparent;
  border-radius:999px;
  background:#fff;
  color:#4f544f;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:color .2s ease,background .2s ease,border-color .2s ease,transform .2s ease;
}

.mi-blog-library .mb-filter sup{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  margin-left:4px;
  padding:0 5px;
  border-radius:999px;
  background:var(--mb-paper);
  color:#817a70;
  font-size:8px;
  line-height:1;
}

.mi-blog-library .mb-filter:hover,
.mi-blog-library .mb-filter.is-active{
  border-color:var(--mb-red);
  background:var(--mb-red);
  color:#fff;
  transform:translateY(-1px);
}

.mi-blog-library .mb-filter:hover sup,
.mi-blog-library .mb-filter.is-active sup{
  background:rgba(255,255,255,.18);
  color:#fff;
}

.mi-blog-library .mb-filter:focus-visible,
.mi-blog-library .mb-search input:focus-visible{
  outline:3px solid rgba(237,41,35,.2);
  outline-offset:2px;
}

.mi-blog-library .mb-search{
  position:relative;
  min-width:245px;
}

.mi-blog-library .mb-search input{
  width:100%;
  height:44px;
  padding:0 44px 0 16px;
  border:1px solid #ded6ca;
  border-radius:999px;
  background:#fbfaf8;
  color:var(--mb-text);
  font-size:12px;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}

.mi-blog-library .mb-search input:focus{
  border-color:var(--mb-red);
  background:#fff;
  box-shadow:0 7px 20px rgba(237,41,35,.07);
}

.mi-blog-library .mb-search i{
  position:absolute;
  top:14px;
  right:16px;
  color:var(--mb-muted);
  font-size:14px;
}

.mi-blog-library .mb-editorial-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:24px;
  align-items:stretch;
}

.mi-blog-library .mb-story{
  grid-column:span 4;
  display:flex;
  min-height:100%;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #e2d9cd;
  border-radius:17px;
  background:#fff;
  box-shadow:0 12px 34px rgba(35,25,18,.055);
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}

.mi-blog-library .mb-story:hover{
  border-color:#d3c5b8;
  transform:translateY(-7px);
  box-shadow:0 23px 55px rgba(35,25,18,.12);
}

.mi-blog-library .mb-story-large{
  grid-column:span 8;
  display:grid;
  grid-template-columns:1.18fr .82fr;
}

/* Keep incomplete final rows intentional instead of leaving empty columns. */
.mi-blog-library .mb-story:last-child:nth-child(3n):not(:first-child){
  grid-column:span 12;
  display:grid;
  grid-template-columns:.86fr 1.14fr;
}

.mi-blog-library .mb-story:nth-last-child(2):nth-child(3n):not(:first-child),
.mi-blog-library .mb-story:last-child:nth-child(3n+1):not(:first-child){
  grid-column:span 6;
}

.mi-blog-library .mb-story-image{
  position:relative;
  display:block;
  min-height:245px;
  overflow:hidden;
  background:#ece7df;
}

.mi-blog-library .mb-story-large .mb-story-image{min-height:100%}

.mi-blog-library .mb-story:last-child:nth-child(3n):not(:first-child) .mb-story-image{
  min-height:330px;
}

.mi-blog-library .mb-story-image img{
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}

.mi-blog-library .mb-story:hover .mb-story-image img{transform:scale(1.035)}

.mi-blog-library .mb-story-image span{
  position:absolute;
  top:17px;
  left:17px;
  padding:8px 11px;
  border-radius:999px;
  background:var(--mb-red);
  color:#fff;
  box-shadow:0 8px 22px rgba(62,22,19,.18);
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.mi-blog-library .mb-story-copy{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:27px;
}

.mi-blog-library .mb-story-copy small{
  color:#81796f;
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.mi-blog-library .mb-story-copy h3{
  display:-webkit-box;
  overflow:hidden;
  margin:12px 0 15px;
  font-size:29px;
  font-weight:500;
  line-height:1.08;
  letter-spacing:-.025em;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

.mi-blog-library .mb-story-large .mb-story-copy h3{
  font-size:38px;
  -webkit-line-clamp:4;
}

.mi-blog-library .mb-story-copy p{
  display:-webkit-box;
  overflow:hidden;
  margin-bottom:24px;
  color:var(--mb-muted);
  font-size:15px;
  line-height:1.68;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

.mi-blog-library .mb-story .mb-article-link{
  color:var(--mb-red);
  font-size:12px;
  letter-spacing:.025em;
  text-transform:uppercase;
}

.mi-blog-library .mb-story .mb-article-link i{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  border-radius:50%;
  background:rgba(237,41,35,.09);
  font-size:10px;
  transition:transform .2s ease,background .2s ease;
}

.mi-blog-library .mb-story:hover .mb-article-link i{
  background:var(--mb-red);
  color:#fff;
  transform:translateX(3px);
}

.mi-blog-library .mb-filter-item.is-hidden{display:none!important}

.mi-blog-library .mb-no-results,
.mi-blog-library .mb-setup-message{
  grid-column:1/-1;
  padding:35px;
  border:1px dashed var(--mb-line);
  background:var(--mb-paper);
  color:var(--mb-muted);
  text-align:center;
}

.mi-blog-library .mb-no-results h3,
.mi-blog-library .mb-setup-message h3{
  margin-bottom:9px;
  color:var(--mb-text);
  font-size:27px;
  font-weight:500;
}

/* Path */
.mi-blog-library .mb-path{
  background:var(--mb-dark);
  color:#fff;
}

.mi-blog-library .mb-path-layout{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:88px;
}

.mi-blog-library .mb-path-copy h2{
  color:#fff!important;
  font-size:clamp(40px,4.5vw,58px);
  font-weight:500;
  line-height:1;
  letter-spacing:-.045em;
}

.mi-blog-library .mb-path-copy>p:not(.mb-eyebrow){
  color:#c4cbc7;
  font-size:15px;
  line-height:1.75;
}

.mi-blog-library .mb-path-steps{
  display:grid;
  grid-template-columns:1fr 1fr;
  margin:0;
  padding:0;
  list-style:none;
  border-top:1px solid #404746;
  border-left:1px solid #404746;
}

.mi-blog-library .mb-path-steps li{
  display:flex;
  gap:18px;
  min-height:190px;
  padding:30px;
  border-right:1px solid #404746;
  border-bottom:1px solid #404746;
}

.mi-blog-library .mb-path-steps b{
  color:#f35b52;
  font-family:var(--mb-heading)!important;
  font-size:31px;
  font-weight:500;
  line-height:1;
}

.mi-blog-library .mb-path-steps h3{
  margin-bottom:8px;
  color:#fff!important;
  font-size:26px;
  font-weight:500;
}

.mi-blog-library .mb-path-steps p{
  color:#b8c0bd;
  font-size:14px;
  line-height:1.65;
}

/* Product index */
.mi-blog-library .mb-product-index{background:var(--mb-paper)}

.mi-blog-library .mb-product-strip{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  border:1px solid var(--mb-line);
}

.mi-blog-library .mb-product-strip button{
  padding:26px 20px;
  border:0;
  border-right:1px solid var(--mb-line);
  background:#fff;
  text-align:left;
  cursor:pointer;
  transition:.22s;
}

.mi-blog-library .mb-product-strip button:last-child{border-right:0}

.mi-blog-library .mb-product-strip button:hover{
  background:var(--mb-red);
  color:#fff;
}

.mi-blog-library .mb-product-strip span{
  display:block;
  font-family:var(--mb-heading)!important;
  font-size:24px;
  font-weight:500;
  line-height:1;
}

.mi-blog-library .mb-product-strip small{
  display:block;
  margin-top:11px;
  color:var(--mb-muted);
  font-size:12px;
}

.mi-blog-library .mb-product-strip button:hover small{color:#fff}

/* CTA */
.mi-blog-library .mb-contact{background:#fff}

.mi-blog-library .mb-contact-panel{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  min-height:500px;
  overflow:hidden;
  background:var(--mb-red);
  color:#fff;
}

.mi-blog-library .mb-contact-copy{padding:68px}

.mi-blog-library .mb-contact-copy h2{
  margin-bottom:20px;
  max-width:680px;
  color:#fff!important;
  font-size:clamp(40px,4.5vw,58px);
  font-weight:500;
  line-height:1;
  letter-spacing:-.045em;
}

.mi-blog-library .mb-contact-copy>p:not(.mb-eyebrow){
  max-width:700px;
  color:#fff;
  font-size:15px;
  line-height:1.75;
  opacity:.88;
}

.mi-blog-library .mb-contact .mb-light-link{color:#fff}

.mi-blog-library .mb-contact-actions{
  display:flex;
  align-items:center;
  gap:22px;
  margin-top:28px;
}

.mi-blog-library .mb-contact-image img{
  height:100%;
  object-fit:cover;
}

/* Reveal */
.mi-blog-library .mb-reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .72s ease,transform .72s ease;
}

.mi-blog-library .mb-reveal.mb-in-view{
  opacity:1;
  transform:none;
}

@media(max-width:1050px){
  .mi-blog-library{--mb-shell:min(100% - 42px,980px)}
  .mi-blog-library .mb-hero-layout{grid-template-columns:1fr}
  .mi-blog-library .mb-grid-bg{right:0;left:0}
  .mi-blog-library .mb-hero-copy{padding:80px 0 20px}
  .mi-blog-library .mb-hero-visual{min-height:590px}
  .mi-blog-library .mb-route-grid{grid-template-columns:repeat(2,1fr)}
  .mi-blog-library .mb-route-card{border-bottom:1px solid var(--mb-line)}
  .mi-blog-library .mb-route-card:nth-child(even){border-right:0}
  .mi-blog-library .mb-featured-layout{grid-template-columns:1fr}
  .mi-blog-library .mb-featured-copy{border-left:1px solid var(--mb-line)}
  .mi-blog-library .mb-section-head.mb-split{grid-template-columns:1fr;gap:20px}
  .mi-blog-library .mb-story,
  .mi-blog-library .mb-story-large,
  .mi-blog-library .mb-story-wide,
  .mi-blog-library .mb-story:last-child:nth-child(3n):not(:first-child),
  .mi-blog-library .mb-story:nth-last-child(2):nth-child(3n):not(:first-child),
  .mi-blog-library .mb-story:last-child:nth-child(3n+1):not(:first-child){
    grid-column:span 6;
    display:flex;
  }
  .mi-blog-library .mb-story-large .mb-story-image,
  .mi-blog-library .mb-story-wide .mb-story-image,
  .mi-blog-library .mb-story:last-child:nth-child(3n):not(:first-child) .mb-story-image{min-height:250px}
  .mi-blog-library .mb-path-layout{grid-template-columns:1fr;gap:55px}
  .mi-blog-library .mb-product-strip{grid-template-columns:repeat(3,1fr)}
  .mi-blog-library .mb-product-strip button:nth-child(3){border-right:0}
  .mi-blog-library .mb-product-strip button:nth-child(-n+3){border-bottom:1px solid var(--mb-line)}
  .mi-blog-library .mb-contact-panel{grid-template-columns:1fr}
  .mi-blog-library .mb-contact-image{min-height:360px}
}

@media(max-width:680px){
  .mi-blog-library{--mb-shell:calc(100% - 28px)}
  .mi-blog-library .mb-section{padding:76px 0}
  .mi-blog-library .mb-hero{min-height:auto}
  .mi-blog-library .mb-hero-layout{min-height:auto}
  .mi-blog-library .mb-hero-copy{padding-top:62px}
  .mi-blog-library .mb-hero-copy h1{font-size:47px}
  .mi-blog-library .mb-hero-lead{font-size:15px}
  .mi-blog-library .mb-hero-actions{flex-direction:column;align-items:flex-start}
  .mi-blog-library .mb-hero-index{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
  .mi-blog-library .mb-hero-index>div{min-width:0}
  .mi-blog-library .mb-hero-visual{min-height:500px}
  .mi-blog-library .mb-hero-image-wrap{inset:10px 0 0}
  .mi-blog-library .mb-hero-feature-card{right:14px;left:14px;bottom:20px;width:auto}
  .mi-blog-library .mb-hero-feature-card h2{font-size:26px}
  .mi-blog-library .mb-hero-side-note{display:none}
  .mi-blog-library .mb-section-head h2{font-size:38px}
  .mi-blog-library .mb-route-grid{grid-template-columns:1fr}
  .mi-blog-library .mb-route-card{min-height:180px;border-right:0;border-bottom:1px solid var(--mb-line)}
  .mi-blog-library .mb-featured-media img{min-height:330px}
  .mi-blog-library .mb-featured-copy{padding:34px 25px}
  .mi-blog-library .mb-featured-copy h2{font-size:34px}
  .mi-blog-library .mb-toolbar{flex-direction:column}
  .mi-blog-library .mb-filters{width:100%;flex-wrap:nowrap;overflow:auto;padding-bottom:5px}
  .mi-blog-library .mb-filter{white-space:nowrap}
  .mi-blog-library .mb-search{width:100%}
  .mi-blog-library .mb-story,
  .mi-blog-library .mb-story-large,
  .mi-blog-library .mb-story-wide,
  .mi-blog-library .mb-story:last-child:nth-child(3n):not(:first-child),
  .mi-blog-library .mb-story:nth-last-child(2):nth-child(3n):not(:first-child),
  .mi-blog-library .mb-story:last-child:nth-child(3n+1):not(:first-child){grid-column:1/-1}
  .mi-blog-library .mb-story-copy h3,
  .mi-blog-library .mb-story-large .mb-story-copy h3{font-size:27px}
  .mi-blog-library .mb-path-steps{grid-template-columns:1fr}
  .mi-blog-library .mb-path-steps li{min-height:auto}
  .mi-blog-library .mb-path-copy h2{font-size:38px}
  .mi-blog-library .mb-product-strip{grid-template-columns:1fr 1fr}
  .mi-blog-library .mb-product-strip button{border-bottom:1px solid var(--mb-line)}
  .mi-blog-library .mb-product-strip button:nth-child(even){border-right:0}
  .mi-blog-library .mb-contact-copy{padding:40px 25px}
  .mi-blog-library .mb-contact-copy h2{font-size:38px}
  .mi-blog-library .mb-contact-actions{flex-direction:column;align-items:flex-start}
  .mi-blog-library .mb-contact-image{min-height:300px}
}

@media(prefers-reduced-motion:reduce){
  .mi-blog-library *,
  .mi-blog-library *::before,
  .mi-blog-library *::after{
    scroll-behavior:auto!important;
    animation:none!important;
    transition-duration:.01ms!important;
  }

  .mi-blog-library .mb-reveal{
    opacity:1;
    transform:none;
  }
}