/* M&M Garage Doors blog archive. Every selector is namespaced under .mmba. */
.mmba,
.mmba * { box-sizing: border-box; }
.mmba {
  --mm-green: #002d20;
  --mm-green-dark: #002419;
  --mm-ink: #09271d;
  --mm-gold: #efb72f;
  --mm-gold-light: #ffe185;
  --mm-gold-deep: #bf7d00;
  --mm-divider: #e8dfd2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.48;
  color: var(--mm-ink);
  background: #fffdfa;
  width: 100%;
  text-align: left;
}
.mmba :is(h1, h2, h3, p, ul, ol) { margin-top: 0; }
.mmba a { text-decoration: none; }
.mmba a:focus-visible,
.mmba button:focus-visible,
.mmba input:focus-visible { outline: 3px solid #d38b00; outline-offset: 3px; }

/* Hero is a diagonal photo crop with a gold edge, not a baked-in image. */
.mmba__hero {
  height: 272px;
  min-height: 272px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 26% 55%, #075039 0%, #003323 54%, #001d15 100%);
  border-bottom: 9px solid var(--mm-gold);
}
.mmba__hero-gold,
.mmba__hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.mmba__hero-gold {
  z-index: -1;
  width: 54%;
  background: linear-gradient(117deg, #b87600 0%, #ffdf6a 42%, #e7a61a 100%);
  clip-path: polygon(21% 0, 100% 0, 100% 100%, 0 100%);
}
.mmba__hero-image {
  z-index: 0;
  width: 52%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.mmba__hero-image img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 52% 55%;
}
.mmba__hero-inner {
  width: min(100%, 1370px);
  margin: 0 auto;
  padding: 50px clamp(26px, 4.6vw, 72px) 40px;
  position: relative;
  z-index: 1;
}
.mmba__eyebrow {
  display: flex;
  align-items: center;
  width: min(455px, 49%);
  gap: 16px;
  margin: 0 0 10px !important;
  color: var(--mm-gold);
  font-size: clamp(11px, 1.4vw, 17px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .31em;
  white-space: nowrap;
}
.mmba__eyebrow::before,
.mmba__eyebrow::after {
  content: "";
  height: 2px;
  flex: 1 1 30px;
  min-width: 12px;
  background: linear-gradient(90deg, transparent, #f2b52a);
}
.mmba__eyebrow::after { background: linear-gradient(90deg, #f2b52a, transparent); }
.mmba .mmba__hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .27);
  font-size: clamp(38px, 5.45vw, 66px);
  line-height: 1.08;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.035em;
  margin: 0 0 10px !important;
  max-width: 650px;
}
.mmba__hero-intro {
  color: white;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.42;
  margin: 0 !important;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

/* Posts and sidebar keep the approximate 70/30 split from the supplied mock. */
.mmba__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(270px, 3fr);
  gap: 22px;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 39px clamp(21px, 3.7vw, 56px) 70px;
}
.mmba__articles { min-width: 0; }
.mmba__list { list-style: none; margin: 0 !important; padding: 0 !important; }
.mmba__post {
  display: grid;
  grid-template-columns: 58px minmax(170px, 34%) minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--mm-divider);
}
.mmba__post:last-child { border-bottom: 0; margin-bottom: 0; }
.mmba__date {
  background: linear-gradient(145deg, #004633 0%, #00251b 100%);
  color: #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  padding: 4px 2px;
  line-height: 1.07;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.mmba__day { font-weight: 800; font-size: 25px; }
.mmba__month, .mmba__year { font-size: 12px; font-weight: 700; }
.mmba__image-link { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 1.58; background: #d3d0c8; }
.mmba__thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.mmba__image-link:hover .mmba__thumbnail { transform: scale(1.045); }
.mmba__post-copy { min-width: 0; }
.mmba .mmba__post-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.16;
  letter-spacing: -.028em;
  font-weight: 800;
  margin: 1px 0 7px !important;
  color: var(--mm-ink);
}
.mmba__post-title a { color: inherit; }
.mmba__post-title a:hover { color: #b47500; }
.mmba__excerpt {
  font-size: clamp(12px, 1.09vw, 14px);
  line-height: 1.33;
  color: #161917;
  margin: 0 0 7px !important;
}
.mmba__read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mm-gold-deep);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
}
.mmba__read-more:hover { color: #855200; text-decoration: underline; }
.mmba__read-more span { font-size: 20px; line-height: .8; }
.mmba__results-label { margin: 0 0 18px !important; font-size: 15px; }
.mmba__results-label a, .mmba__empty a { color: var(--mm-gold-deep); font-weight: 700; margin-left: 6px; }
.mmba__empty { padding: 45px 25px; background: #fff7e6; border: 1px solid var(--mm-divider); border-radius: 7px; }
.mmba__empty h2 { color: var(--mm-ink); font-size: 22px; }

.mmba__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  align-items: center;
  margin: 24px 0 0;
  padding-top: 13px;
}
.mmba__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 36px;
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid #d9cfbe;
  background: #fffdfa;
  color: #0b251c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.mmba__pagination .page-numbers:hover { background: #fff0bc; }
.mmba__pagination .page-numbers.current {
  background: var(--mm-green);
  border-color: var(--mm-green);
  color: #fff;
}
.mmba__pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* Sidebar and search. */
.mmba__sidebar {
  min-width: 0;
  border-left: 1px solid var(--mm-divider);
  padding-left: 20px;
}
.mmba__search { display: flex; height: 42px; margin: 7px 0 25px; }
.mmba__search input[type="search"] {
  display: block;
  flex: 1;
  width: 1px;
  min-width: 0;
  height: 100%;
  padding: 0 13px;
  border: 1px solid #b8afa2;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #fff;
  color: #242424;
  font-family: inherit;
  font-size: 13px;
  box-shadow: none;
}
.mmba__search button {
  width: 47px;
  height: 100%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0 6px 6px 0;
  color: #fff;
  background: var(--mm-green);
  cursor: pointer;
}
.mmba__search button:hover { background: #075642; }
.mmba__categories {
  overflow: hidden;
  border: 1px solid #e8ddc7;
  border-radius: 7px;
  background: linear-gradient(140deg, #fffdfa, #f8f1e6);
  margin-bottom: 28px;
}
.mmba .mmba__categories h2 {
  padding: 9px 17px;
  margin: 0 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.33;
  letter-spacing: -.035em;
  color: #10241c;
  background: linear-gradient(120deg, #fce08a 0%, #e4a720 100%);
}
.mmba__categories ul { list-style: none; padding: 7px 17px 7px !important; margin: 0 !important; }
.mmba__categories li { list-style: none; border-bottom: 1px solid #e2d5be; margin: 0; padding: 0; }
.mmba__categories li:last-child { border-bottom: 0; }
.mmba__categories li a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 41px;
  padding: 5px 1px;
  color: #161b18;
  font-size: 15px;
  line-height: 1.22;
  transition: color .2s ease;
}
.mmba__categories li a:hover,
.mmba__categories li a[aria-current="page"] { color: #ac6a00; font-weight: 700; }
.mmba__categories li img { display: block; width: 27px; height: 27px; object-fit: contain; flex-shrink: 0; }
.mmba__category-empty { font-size: 13px; padding: 16px; margin: 0 !important; }
.mmba__all-categories { display: inline-block; margin: 0 0 15px 18px; color: var(--mm-gold-deep); font-size: 13px; font-weight: 700; }

/* Service callout. */
.mmba__cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 68% 24%, #0a513b 0%, #003527 41%, #002519 100%);
  border: 2px solid #dea31c;
  border-radius: 10px;
  padding: 28px 19px 21px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .07);
}
.mmba__cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -11%;
  top: 8%;
  width: 74%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26, 116, 74, .23), transparent 69%);
}
.mmba__mi {
  position: absolute;
  right: 20px;
  top: 20px;
  display: inline-grid;
  place-items: center;
  width: 53px;
  height: 44px;
  font-size: 23px;
  font-weight: 900;
  color: var(--mm-green);
  background: linear-gradient(135deg, #ffe17e, #eab126);
  clip-path: polygon(28% 6%, 47% 11%, 56% 3%, 80% 17%, 76% 40%, 94% 52%, 86% 92%, 51% 98%, 29% 83%, 10% 87%, 16% 55%, 2% 31%);
  transform: rotate(-8deg);
}
.mmba .mmba__cta h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.9vw, 33px);
  line-height: .99;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.045em;
  color: #fff;
  text-shadow: 0 2px 1px #061a13;
  margin: 8px 0 24px !important;
  padding-right: 12px;
  position: relative;
}
.mmba__cta ul { padding: 0 !important; margin: 0 0 20px !important; list-style: none; }
.mmba__cta li {
  position: relative;
  padding: 0 0 0 30px;
  margin: 0 0 12px;
  color: white;
  font-size: 14px;
  line-height: 1.45;
}
.mmba__cta li::before { content: "✓"; position: absolute; left: 1px; top: -2px; color: #ffd35e; font-weight: 900; font-size: 22px; }
.mmba__cta-button {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 49px;
  border: 1px solid #ffe3a0;
  border-radius: 5px;
  background: linear-gradient(165deg, #ffdf77, #e9ac22);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  color: #102319;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
  text-align: center;
}
.mmba__cta-button:hover { background: linear-gradient(165deg, #ffebad, #f4be3c); color: #102319; }
.mmba__cta-button span { font-size: 22px; line-height: 1; }

@media (max-width: 1060px) {
  .mmba__body { gap: 18px; grid-template-columns: minmax(0, 1.95fr) minmax(245px, .9fr); }
  .mmba__post { grid-template-columns: 54px minmax(150px, 34%) minmax(0, 1fr); gap: 11px; }
  .mmba .mmba__post-title { font-size: 18px; }
  .mmba__excerpt { font-size: 12.5px; }
  .mmba__sidebar { padding-left: 16px; }
  .mmba__cta { padding: 26px 15px 18px; }
}
@media (max-width: 860px) {
  .mmba__hero { height: 250px; min-height: 250px; }
  .mmba__hero-inner { padding-top: 46px; }
  .mmba__hero-gold { width: 50%; }
  .mmba__hero-image { width: 48%; }
  .mmba__hero h1 { max-width: 62%; }
  .mmba__hero-intro { max-width: 58%; }
  .mmba__body { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .mmba__post { grid-template-columns: 56px minmax(185px, 33%) minmax(0,1fr); }
  .mmba__sidebar { border-left: 0; padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; align-items: start; }
  .mmba__search { grid-column: 1 / -1; margin: 0; }
  .mmba__categories { margin: 0; }
}
@media (max-width: 610px) {
  .mmba__hero { min-height: 305px; height: auto; }
  .mmba__hero-gold { display: none; }
  .mmba__hero-image { width: 100%; clip-path: none; opacity: .24; }
  .mmba__hero-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #003122, #00312288); z-index: 1; }
  .mmba__hero-inner { padding: 49px 23px 52px; }
  .mmba__eyebrow { width: min(100%, 400px); font-size: 11px; letter-spacing: .22em; }
  .mmba .mmba__hero h1 { font-size: clamp(40px, 10vw, 56px); line-height: 1.05; max-width: 100%; }
  .mmba__hero-intro { max-width: 100%; font-size: 15px; }
  .mmba__desktop-only { display: none; }
  .mmba__body { padding: 25px 18px 48px; }
  .mmba__post { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "date image" ". copy"; gap: 10px 12px; margin-bottom: 20px; padding-bottom: 20px; }
  .mmba__date { grid-area: date; min-height: 62px; }
  .mmba__image-link { grid-area: image; aspect-ratio: 1.7; }
  .mmba__post-copy { grid-area: copy; }
  .mmba .mmba__post-title { font-size: 20px; line-height: 1.2; }
  .mmba__excerpt { font-size: 14px; }
  .mmba__sidebar { grid-template-columns: 1fr; gap: 18px; }
  .mmba__search { grid-column: auto; }
  .mmba .mmba__cta h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .mmba__thumbnail { transition: none; }
}
