/* MONTEC BLOG EDITORIAL — v1.1.1
   All visible rules are scoped to #montec-editorial-blog to avoid collisions
   with TheGem, Elementor and their global styles. */

#montec-editorial-blog.mtb-blog {
  --mtb-green: #036663;
  --mtb-ink: #202827;
  --mtb-muted: #687471;
  --mtb-border: #dce4e0;
  --mtb-paper: #f7f7f3;
  --mtb-white: #fff;
  --mtb-serif: Georgia, 'Iowan Old Style', 'Baskerville', 'Times New Roman', serif;
  --mtb-sans: inherit;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background-color: var(--mtb-white);
  color: var(--mtb-ink);
  font-family: var(--mtb-sans);
  font-size: var(--mtb-body-size, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#montec-editorial-blog.mtb-blog,
#montec-editorial-blog.mtb-blog * { box-sizing: border-box; }
#montec-editorial-blog.mtb-blog .mtb-shell {
  width: min(100% - 80px, var(--mtb-shell-max, 1260px));
  margin-inline: auto;
}
#montec-editorial-blog.mtb-blog a {
  text-decoration: none;
  color: inherit;
  transition: color .2s ease, transform .2s ease, opacity .2s ease;
}
#montec-editorial-blog.mtb-blog a:hover,
#montec-editorial-blog.mtb-blog a:focus-visible { color: var(--mtb-green); }
#montec-editorial-blog.mtb-blog a:focus-visible {
  outline: 2px solid var(--mtb-green);
  outline-offset: 5px;
  border-radius: 2px;
}
#montec-editorial-blog.mtb-blog h1,
#montec-editorial-blog.mtb-blog h2,
#montec-editorial-blog.mtb-blog h3,
#montec-editorial-blog.mtb-blog p { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; color: inherit; }
#montec-editorial-blog.mtb-blog .mtb-kicker {
  display: inline-block;
  color: var(--mtb-green);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
}
#montec-editorial-blog.mtb-blog .mtb-brand-dot { color: var(--mtb-green); }

/* 01: compact premium editorial header */
#montec-editorial-blog.mtb-blog .mtb-masthead {
  padding: var(--mtb-header-top, 69px) 0 52px;
}
#montec-editorial-blog.mtb-blog .mtb-masthead__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .17em;
  line-height: 1.4;
  color: var(--mtb-green);
}
#montec-editorial-blog.mtb-blog .mtb-mark {
  width: 25px;
  height: 2px;
  background: var(--mtb-green);
  flex: 0 0 auto;
}
#montec-editorial-blog.mtb-blog .mtb-masthead__body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: end;
  padding-top: 27px;
}
#montec-editorial-blog.mtb-blog .mtb-masthead__headline {
  font: 400 clamp(43px, 4.7vw, var(--mtb-headline-max, 77px))/1.09 var(--mtb-serif);
  letter-spacing: -.048em;
  max-width: 850px;
  text-wrap: balance;
}
#montec-editorial-blog.mtb-blog .mtb-masthead__intro {
  color: var(--mtb-muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.8;
  border-left: 1px solid var(--mtb-border);
  padding-left: 28px;
  max-width: 330px;
}

/* 02: actual WordPress categories */
#montec-editorial-blog.mtb-blog .mtb-topics {
  border-top: 1px solid var(--mtb-border);
  border-bottom: 1px solid var(--mtb-border);
  padding: 14px 0;
  display: flex;
  gap: 32px;
  align-items: center;
  min-width: 0;
}
#montec-editorial-blog.mtb-blog .mtb-topics__caption {
  flex: 0 0 auto;
  color: var(--mtb-muted);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: .12em;
}
#montec-editorial-blog.mtb-blog .mtb-topics__links {
  display: flex;
  align-items: center;
  gap: clamp(17px, 3vw, 36px);
  flex-wrap: wrap;
}
#montec-editorial-blog.mtb-blog .mtb-topic {
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  font-weight: 650;
  color: #495652;
}
#montec-editorial-blog.mtb-blog .mtb-topic.is-active { color: var(--mtb-green); }
#montec-editorial-blog.mtb-blog .mtb-topic.is-active:before {
  content: '•';
  font-size: 11px;
  color: var(--mtb-green);
  margin-right: 6px;
}

/* 03: featured publication */
#montec-editorial-blog.mtb-blog .mtb-feature-section { padding-top: 60px; }
#montec-editorial-blog.mtb-blog .mtb-section-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}
#montec-editorial-blog.mtb-blog .mtb-section-topline__title {
  font-weight: 750;
  color: var(--mtb-ink);
  font-size: 13px;
}
#montec-editorial-blog.mtb-blog .mtb-section-topline__side {
  font-size: 10px;
  letter-spacing: .13em;
  color: var(--mtb-muted);
  font-weight: 700;
  white-space: nowrap;
}
#montec-editorial-blog.mtb-blog .mtb-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(0, .89fr);
  background: var(--mtb-paper);
  min-height: clamp(380px, 33vw, 490px);
  overflow: hidden;
  border-radius: max(var(--mtb-card-radius, 3px), var(--mtb-featured-image-radius, 18px));
}
#montec-editorial-blog.mtb-blog .mtb-feature__media,
#montec-editorial-blog.mtb-blog .mtb-card__media {
  min-width: 0;
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
}
/* Image corners are configurable independently of the overall card radius.
   Wrappers clip both photographs and placeholder/hover transitions. */
#montec-editorial-blog.mtb-blog .mtb-feature__media {
  border-radius: var(--mtb-featured-image-radius, 18px);
}
#montec-editorial-blog.mtb-blog .mtb-cover {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
#montec-editorial-blog.mtb-blog .mtb-cover__image {
  display: block;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
#montec-editorial-blog.mtb-blog a:hover .mtb-cover__image { transform: scale(1.035); }
#montec-editorial-blog.mtb-blog .mtb-cover--placeholder {
  min-height: 200px;
  background: radial-gradient(ellipse at 19% 20%, #e9f0eb, transparent 60%), linear-gradient(125deg, #dee9e3, #8eb3a7 65%, #367c72);
  display: flex;
  align-items: flex-end;
  padding: 38px;
}
#montec-editorial-blog.mtb-blog .mtb-cover--placeholder span {
  z-index: 1;
  font-family: var(--mtb-serif);
  font-size: clamp(35px, 6vw, 72px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.05em;
  color: rgba(255,255,255,.75);
}
#montec-editorial-blog.mtb-blog .mtb-cover--placeholder i {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  top: -35%;
  right: -25%;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 50%;
}
#montec-editorial-blog.mtb-blog .mtb-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;
  padding: clamp(28px, 4.3vw, 66px);
}
#montec-editorial-blog.mtb-blog .mtb-feature__inner { min-width: 0; }
#montec-editorial-blog.mtb-blog .mtb-feature__title {
  font: 400 clamp(29px, 3vw, var(--mtb-feature-max, 48px))/1.13 var(--mtb-serif);
  letter-spacing: -.041em;
  margin-top: 20px;
  text-wrap: balance;
}
#montec-editorial-blog.mtb-blog .mtb-feature__excerpt {
  color: var(--mtb-muted);
  font-size: var(--mtb-body-size, 16px);
  line-height: 1.72;
  margin-top: 22px;
  max-width: 435px;
}
#montec-editorial-blog.mtb-blog .mtb-feature__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid #d5e0da;
  padding-top: 23px;
}
#montec-editorial-blog.mtb-blog .mtb-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mtb-muted);
  font-size: 12px;
  line-height: 1.4;
}
#montec-editorial-blog.mtb-blog .mtb-read-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--mtb-green);
  font-weight: 750;
  font-size: 13px;
  white-space: nowrap;
}
#montec-editorial-blog.mtb-blog .mtb-read-more span { font-size: 19px; font-weight: 400; }

/* 04: secondary posts */
#montec-editorial-blog.mtb-blog .mtb-secondary-section { padding-top: var(--mtb-section-gap, 93px); }
#montec-editorial-blog.mtb-blog .mtb-section-topline--large { margin-bottom: 28px; }
#montec-editorial-blog.mtb-blog .mtb-section-heading {
  font: 400 clamp(30px, 3.25vw, var(--mtb-section-max, 49px))/1.15 var(--mtb-serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
#montec-editorial-blog.mtb-blog .mtb-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(22px, 3.5vw, 44px);
}
#montec-editorial-blog.mtb-blog .mtb-card { min-width: 0; }
#montec-editorial-blog.mtb-blog .mtb-card__media {
  aspect-ratio: 1.78;
  border-radius: var(--mtb-secondary-image-radius, 14px);
  background: var(--mtb-paper);
}
#montec-editorial-blog.mtb-blog .mtb-card__content { padding-top: 21px; }
#montec-editorial-blog.mtb-blog .mtb-card__title {
  font: 400 clamp(23px, 2.25vw, 33px)/1.22 var(--mtb-serif);
  letter-spacing: -.026em;
  margin: 10px 0 14px;
  text-wrap: balance;
}
#montec-editorial-blog.mtb-blog .mtb-card__excerpt {
  font-size: var(--mtb-body-size, 16px);
  line-height: 1.75;
  color: var(--mtb-muted);
  margin-bottom: 15px;
}

/* 05: additional posts, only when present */
#montec-editorial-blog.mtb-blog .mtb-archive-section {
  padding-top: var(--mtb-section-gap, 93px);
  margin-top: var(--mtb-section-gap, 93px);
  border-top: 1px solid var(--mtb-border);
}
#montec-editorial-blog.mtb-blog .mtb-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 46px 28px;
}
#montec-editorial-blog.mtb-blog .mtb-card--archive .mtb-card__media { aspect-ratio: 1.55; }
#montec-editorial-blog.mtb-blog .mtb-card--archive .mtb-card__title { font-size: clamp(20px, 1.75vw, 27px); }
#montec-editorial-blog.mtb-blog .mtb-card--archive .mtb-card__content { padding-top: 17px; }
#montec-editorial-blog.mtb-blog .mtb-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 50px;
}
#montec-editorial-blog.mtb-blog .mtb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 5px 12px;
  border: 1px solid var(--mtb-border);
  font-size: 13px;
}
#montec-editorial-blog.mtb-blog .mtb-pagination .page-numbers.current {
  background: var(--mtb-green);
  color: white;
  border-color: var(--mtb-green);
}
#montec-editorial-blog.mtb-blog .mtb-empty { text-align: center; padding: 50px 0; color: var(--mtb-muted); }

/* 06: corporate closing, deliberate and understated */
#montec-editorial-blog.mtb-blog .mtb-cta {
  margin: var(--mtb-section-gap, 93px) 0 90px;
  padding: clamp(30px, 5vw, 70px);
  background: var(--mtb-paper);
  display: flex;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--mtb-green);
}
#montec-editorial-blog.mtb-blog .mtb-cta:after {
  content: '';
  position: absolute;
  width: 285px;
  height: 285px;
  border-radius: 50%;
  right: -180px;
  top: -197px;
  border: 1px solid #bad6cc;
  pointer-events: none;
}
#montec-editorial-blog.mtb-blog .mtb-cta__copy { max-width: 720px; }
#montec-editorial-blog.mtb-blog .mtb-cta h2 {
  font: 400 clamp(29px, 3.65vw, 52px)/1.16 var(--mtb-serif);
  letter-spacing: -.035em;
  margin: 15px 0;
}
#montec-editorial-blog.mtb-blog .mtb-cta p {
  color: var(--mtb-muted);
  font-size: var(--mtb-body-size, 16px);
  max-width: 520px;
  line-height: 1.75;
}
#montec-editorial-blog.mtb-blog .mtb-cta__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 215px;
  padding: 17px 20px;
  background: var(--mtb-green);
  color: white;
  font-weight: 700;
  font-size: 13px;
}
#montec-editorial-blog.mtb-blog .mtb-cta__button:hover,
#montec-editorial-blog.mtb-blog .mtb-cta__button:focus-visible {
  background: var(--mtb-ink);
  color: white;
}
#montec-editorial-blog.mtb-blog .mtb-cta__button span { margin-left: 18px; font-size: 20px; font-weight: 400; }

@media (max-width: 1100px) {
  #montec-editorial-blog.mtb-blog .mtb-shell { width: min(100% - 60px, var(--mtb-shell-max, 1260px)); }
  #montec-editorial-blog.mtb-blog .mtb-masthead__body { grid-template-columns: minmax(0, 1.25fr) minmax(215px, .75fr); gap: 38px; }
  #montec-editorial-blog.mtb-blog .mtb-feature__copy { padding: 34px; }
  #montec-editorial-blog.mtb-blog .mtb-feature__title { font-size: clamp(29px, 3vw, 39px); }
}
@media (max-width: 800px) {
  #montec-editorial-blog.mtb-blog .mtb-shell { width: min(100% - 44px, var(--mtb-shell-max, 1260px)); }
  #montec-editorial-blog.mtb-blog .mtb-masthead { padding-top: 52px; padding-bottom: 38px; }
  #montec-editorial-blog.mtb-blog .mtb-masthead__body { grid-template-columns: 1fr; gap: 20px; }
  #montec-editorial-blog.mtb-blog .mtb-masthead__headline { font-size: clamp(44px, 8vw, 67px); max-width: 650px; }
  #montec-editorial-blog.mtb-blog .mtb-masthead__intro { border-left: 0; padding-left: 0; max-width: 620px; }
  #montec-editorial-blog.mtb-blog .mtb-topics { gap: 15px; }
  #montec-editorial-blog.mtb-blog .mtb-topics__caption { display: none; }
  #montec-editorial-blog.mtb-blog .mtb-topics__links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: 3px 0 7px; }
  #montec-editorial-blog.mtb-blog .mtb-feature { grid-template-columns: 1fr; }
  #montec-editorial-blog.mtb-blog .mtb-feature__media { aspect-ratio: 1.8; }
  #montec-editorial-blog.mtb-blog .mtb-feature__copy { padding: 34px; gap: 28px; }
  #montec-editorial-blog.mtb-blog .mtb-feature__title { font-size: clamp(33px, 5vw, 46px); }
  #montec-editorial-blog.mtb-blog .mtb-feature__excerpt { margin-top: 16px; }
  #montec-editorial-blog.mtb-blog .mtb-secondary-section { padding-top: 72px; }
  #montec-editorial-blog.mtb-blog .mtb-archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #montec-editorial-blog.mtb-blog .mtb-cta { flex-direction: column; align-items: flex-start; margin-top: 80px; }
}
@media (max-width: 560px) {
  #montec-editorial-blog.mtb-blog .mtb-shell { width: min(100% - 32px, var(--mtb-shell-max, 1260px)); }
  #montec-editorial-blog.mtb-blog .mtb-masthead { padding-top: var(--mtb-mobile-header-top, 35px); padding-bottom: 27px; }
  #montec-editorial-blog.mtb-blog .mtb-masthead__label { letter-spacing: .11em; font-size: 10px; }
  #montec-editorial-blog.mtb-blog .mtb-masthead__headline { font-size: var(--mtb-mobile-headline, 44px); line-height: 1.1; }
  #montec-editorial-blog.mtb-blog .mtb-masthead__intro { font-size: 14px; line-height: 1.7; }
  #montec-editorial-blog.mtb-blog .mtb-feature-section { padding-top: 38px; }
  #montec-editorial-blog.mtb-blog .mtb-section-topline__side { font-size: 9px; }
  #montec-editorial-blog.mtb-blog .mtb-feature__media { aspect-ratio: 1.3; }
  #montec-editorial-blog.mtb-blog .mtb-feature__copy { padding: 25px 20px 27px; }
  #montec-editorial-blog.mtb-blog .mtb-feature__title { font-size: var(--mtb-mobile-feature, 34px); }
  #montec-editorial-blog.mtb-blog .mtb-feature__excerpt { font-size: 14px; }
  #montec-editorial-blog.mtb-blog .mtb-feature__footer { gap: 16px; }
  #montec-editorial-blog.mtb-blog .mtb-secondary-section { padding-top: var(--mtb-mobile-gap, 58px); }
  #montec-editorial-blog.mtb-blog .mtb-secondary-grid,
  #montec-editorial-blog.mtb-blog .mtb-archive-grid { grid-template-columns: 1fr; gap: 36px; }
  #montec-editorial-blog.mtb-blog .mtb-section-heading { font-size: var(--mtb-mobile-section, 36px); }
  #montec-editorial-blog.mtb-blog .mtb-card__title { font-size: 27px; }
  #montec-editorial-blog.mtb-blog .mtb-archive-section { padding-top: var(--mtb-mobile-gap, 58px); margin-top: var(--mtb-mobile-gap, 58px); }
  #montec-editorial-blog.mtb-blog .mtb-cta { padding: 30px 22px; margin: var(--mtb-mobile-gap, 58px) 0 55px; }
  #montec-editorial-blog.mtb-blog .mtb-cta h2 { font-size: 36px; }
  #montec-editorial-blog.mtb-blog .mtb-cta__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #montec-editorial-blog.mtb-blog *,
  #montec-editorial-blog.mtb-blog *:before,
  #montec-editorial-blog.mtb-blog *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
