/* NEXT blog widgets: Post Header, Post Body (article + sidebar), Post Footer, Related Posts.
 * Colors + fonts come from the site brand kit (--next-* tokens).
 */
.nx-pst, .nx-pbody, .nx-pfoot, .nx-rel {
  --nx-slant: 19.03deg;   /* hero Request a Quote taper: atan(20 / 58) */
  --nx-gutter: clamp(16px, 4vw, 56px);
  --nx-inset: clamp(28px, 3vw, 56px);
  position: relative; box-sizing: border-box;
  color: var(--next-body); font-family: var(--next-font-head);
}
.nx-pst *, .nx-pbody *, .nx-pfoot *, .nx-rel *,
.nx-pst *::before, .nx-pbody *::before, .nx-pfoot *::before, .nx-rel *::before,
.nx-pst *::after, .nx-pbody *::after, .nx-pfoot *::after, .nx-rel *::after { box-sizing: border-box; }
.nx-post-in { position: relative; max-width: 1480px; margin: 0 auto; padding-inline: var(--nx-inset); }

/* Shared: red category chip with the slanted end, date badge */
.nx-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 16px 0 10px; background: var(--next-red); color: var(--next-black); font: 700 10.5px/1 var(--next-font-sub); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.nx-chip--ghost { background: var(--next-tint); }
a.nx-chip[href]:hover { background: var(--next-red-hover); }
a.nx-chip--ghost[href]:hover { background: var(--next-grey); }

/* ═════════ NEXT Post Header ═════════ */
.nx-pst { padding: 56px var(--nx-gutter) 0; background: var(--next-white); overflow: hidden; }
.nx-pst-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; min-height: 480px; }
.nx-pst-copy { align-self: center; padding: 16px 0 64px; }
.nx-pst-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; font: 700 11px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-muted); }
.nx-pst-crumbs li { margin: 0; }
.nx-pst-crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--next-red); }
.nx-pst-crumbs a { color: inherit; text-decoration: none; }
.nx-pst-crumbs a:hover, .nx-pst-crumbs a:focus-visible { color: var(--next-black); }
/* ".nx-pst .nx-pst-title" out-ranks Elementor Site Settings typography (.elementor-kit-N h1) */
.nx-pst .nx-pst-title { margin: 18px 0 0; max-width: 22ch; color: var(--next-black); font: 700 clamp(34px, 4.4vw, 64px)/1.05 var(--next-font-head); letter-spacing: -.02em; text-wrap: balance; }
.nx-pst-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; font: 700 11px/1 var(--next-font-sub); letter-spacing: .16em; text-transform: uppercase; color: var(--next-muted); }
.nx-pst-meta li { display: flex; align-items: center; gap: 8px; margin: 0; }
.nx-pst-meta svg { width: 15px; height: 15px; stroke: var(--next-red); fill: none; stroke-width: 2; }
/* Photo: left edge cut at the 19.03° slant (tan(19.03°) × 480px ≈ 165px) */
.nx-pst-photo { position: relative; margin: 0 calc(-1 * (var(--nx-inset) + var(--nx-gutter))) 0 0; min-height: 400px; overflow: hidden; background: var(--next-tint); clip-path: polygon(165.5px 0, 100% 0, 100% 100%, 0 100%); }
.nx-pst-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nx-pst-date { position: absolute; left: 178px; top: 24px; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; background: var(--next-red); color: var(--next-black); text-align: center; }
.nx-pst-date b { display: block; font: 700 40px/.9 var(--next-font-call); }
.nx-pst-date span { display: block; margin-top: 4px; font: 700 11px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; }
/* Closing rule: black bar with a red lead-in */
.nx-pst-rule { position: relative; height: 12px; margin: 0 calc(-1 * var(--nx-gutter)); background: var(--next-black); }
.nx-pst-rule::after { content: ""; position: absolute; left: calc(var(--nx-gutter) + var(--nx-inset)); top: 0; width: 180px; height: 12px; background: var(--next-red); clip-path: polygon(0 0, 100% 0, calc(100% - 4.2px) 100%, 0 100%); }
.nx-pst--no-photo .nx-pst-grid { grid-template-columns: 1fr; min-height: 0; }

/* ═════════ NEXT Post Body: article + sidebar ═════════ */
.nx-pbody { padding: clamp(56px, 7vw, 96px) var(--nx-gutter); background: var(--next-white); }
.nx-pbody-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px clamp(40px, 5vw, 88px); align-items: start; }
.nx-pbody--no-side .nx-pbody-grid { grid-template-columns: minmax(0, 1fr); }
.nx-pbody--no-side .nx-art { margin-inline: auto; }

/* Article typography. Works for classic posts and Elementor-built posts (Text Editor,
   Image, Video widgets inside). ".nx-pbody .nx-art x" out-ranks the kit's heading rules. */
.nx-pbody .nx-art { max-width: 760px; min-width: 0; color: var(--next-body); }
.nx-pbody .nx-art p { margin: 0 0 22px; font: 400 18px/1.75 var(--next-font-head); color: var(--next-body); }
.nx-pbody .nx-art b, .nx-pbody .nx-art strong { font-weight: 700; color: var(--next-black); }
.nx-pbody .nx-art a { color: var(--next-black); text-decoration: underline; text-decoration-color: var(--next-red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nx-pbody .nx-art a:hover { color: var(--next-red); }
.nx-pbody .nx-art.nx-art :is(h2, h3, h4) {   /* doubled class: beats the brand layer's .elementor-widget-heading h2.elementor-heading-title */ position: relative; margin: 52px 0 18px; padding-left: 30px; color: var(--next-black); font: 700 clamp(26px, 2.4vw, 34px)/1.2 var(--next-font-head); letter-spacing: -.01em; text-transform: none; text-wrap: balance; }
.nx-pbody .nx-art.nx-art :is(h2, h3, h4)::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 12px; background: var(--next-red); clip-path: polygon(0 0, 100% 0, calc(100% - 4.2px) 100%, 0 100%); }
.nx-pbody .nx-art.nx-art :is(h5, h6) { margin: 32px 0 12px; color: var(--next-black); font: 700 21px/1.3 var(--next-font-head); }
.nx-pbody .nx-art ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.nx-pbody .nx-art ul li { position: relative; margin: 0; padding-left: 22px; font: 400 17px/1.65 var(--next-font-head); }
/* Light touch: a short thin red dash (posts can have many lists) */
.nx-pbody .nx-art ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: 8px; height: 2px; background: var(--next-red); }
.nx-pbody .nx-art ol { margin: 0 0 24px; padding-left: 26px; }
.nx-pbody .nx-art ol li { margin: 0 0 10px; padding-left: 6px; font: 400 17px/1.65 var(--next-font-head); }
.nx-pbody .nx-art ol li::marker { font: 700 16px var(--next-font-call); color: var(--next-red); }
.nx-pbody .nx-art img { display: block; max-width: 100%; height: auto; border-radius: 0; }
.nx-pbody .nx-art figure, .nx-pbody .nx-art .elementor-widget-image, .nx-pbody .nx-art .elementor-widget-video { margin: 36px 0; }
.nx-pbody .nx-art :is(figcaption, .widget-image-caption, .wp-caption-text, .wp-element-caption) { margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--next-red); font: 400 14px/1.5 var(--next-font-head) !important; font-style: normal !important; color: var(--next-muted) !important; text-align: left !important; }
.nx-pbody .nx-art blockquote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--next-red); font: 500 22px/1.5 var(--next-font-head); color: var(--next-black); }
.nx-pbody .nx-art table { width: 100%; margin: 0 0 24px; border-collapse: collapse; font-size: 16px; }
.nx-pbody .nx-art :is(th, td) { padding: 12px 14px; border-bottom: 1px solid var(--next-border); text-align: left; }
.nx-pbody .nx-art th { font: 700 12px/1.3 var(--next-font-sub); letter-spacing: .12em; text-transform: uppercase; color: var(--next-black); border-bottom: 2px solid var(--next-black); }
.nx-pbody .nx-art .elementor-widget:not(:last-child) { margin-bottom: 0; }   /* the article's own spacing takes over */
.nx-pbody .nx-art-note { padding: 24px; background: var(--next-tint); font-size: 15px; color: var(--next-muted); }

/* Sidebar */
.nx-side { position: sticky; top: 24px; display: grid; gap: 26px; }
.nx-side-box { padding: 26px; background: var(--next-tint); }
.nx-side-box > h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 700 12px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-black); }
.nx-side-box > h3::after { content: ""; flex: 1; max-width: 40px; height: 2px; background: var(--next-red); }
.nx-search { display: flex; height: 54px; margin: 0; }
.nx-search input { flex: 1; min-width: 0; height: 54px; margin: 0; border: 0; border-radius: 0; padding: 0 16px; background: var(--next-white); font: 400 15px var(--next-font-head); color: var(--next-black); }
.nx-search input:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: -3px; }
.nx-search button { width: 64px; height: 54px; margin: 0 0 0 -10px; padding: 0; border: 0; border-radius: 0; background: var(--next-red); display: grid; place-items: center; cursor: pointer; clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); }
.nx-search button:hover { background: var(--next-red-hover); }
.nx-search svg { width: 20px; height: 20px; stroke: var(--next-black); fill: none; stroke-width: 2.4; }
.nx-cats { margin: 0; padding: 0; list-style: none; }
.nx-cats li { margin: 0; }
.nx-cats li + li { margin-top: 2px; }
.nx-cats a { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--next-white); color: var(--next-black); text-decoration: none; font: 500 15px/1.3 var(--next-font-head); isolation: isolate; overflow: hidden; }
.nx-cats a::before { content: ""; position: absolute; inset: 0 -20px; z-index: -1; background: var(--next-red); transform: translateX(-105%) skewX(calc(var(--nx-slant) * -1)); transition: transform .35s ease; }
.nx-cats a:hover::before, .nx-cats a:focus-visible::before, .nx-cats a.is-current::before { transform: translateX(0) skewX(calc(var(--nx-slant) * -1)); }
.nx-cats a:focus-visible { outline: none; }
.nx-cats a span { font: 700 12px/1 var(--next-font-call); color: var(--next-muted); }
.nx-cats a:hover span, .nx-cats a.is-current span { color: var(--next-black); }
.nx-latest { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.nx-latest li { margin: 0; }
.nx-latest a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--next-black); text-decoration: none; }
.nx-latest .pic { width: 76px; height: 64px; overflow: hidden; background: var(--next-grey); }
.nx-latest img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nx-latest b { display: block; font: 700 15px/1.3 var(--next-font-head); }
.nx-latest small { display: block; margin-top: 4px; font: 700 10px/1 var(--next-font-sub); letter-spacing: .16em; text-transform: uppercase; color: var(--next-muted); }
.nx-latest a:hover b, .nx-latest a:focus-visible b { color: var(--next-red); }
.nx-side-cta { position: relative; padding: 30px 26px 28px; background: var(--next-black); color: #C9C9CC; overflow: hidden; }
.nx-side-cta::after { content: ""; position: absolute; right: 0; top: 0; width: 46%; height: 8px; background: var(--next-red); clip-path: polygon(2.8px 0, 100% 0, 100% 100%, 0 100%); }
.nx-side-cta h3 { margin: 0 0 10px; font: 700 26px/1.15 var(--next-font-head); color: var(--next-white); }
.nx-side-cta p { margin: 0 0 22px; font: 400 15px/1.6 var(--next-font-head); color: #C9C9CC; }
.nx-side-cta .btn { display: flex; align-items: stretch; height: 58px; text-decoration: none; }
.nx-side-cta .btn-label { flex: 1; display: flex; align-items: center; padding: 0 44px 0 24px; background: var(--next-red); color: var(--next-black); font: 700 15px/1 var(--next-font-call); letter-spacing: .08em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); transition: background .2s; }
.nx-side-cta .btn-arrow { width: 64px; margin-left: -14px; padding-left: 14px; display: grid; place-items: center; background: var(--next-cyan); clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%); }
.nx-side-cta .btn-arrow svg { width: 15px; height: 15px; stroke: #000; fill: none; stroke-width: 2.6; transition: transform .25s; }
.nx-side-cta .btn[href]:hover .btn-label { background: var(--next-red-hover); }
.nx-side-cta .btn[href]:hover .btn-arrow svg { transform: translateX(4px); }
.nx-side-cta .phone { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--next-white); text-decoration: none; }
.nx-side-cta .phone .sq { width: 58px; height: 58px; display: grid; place-items: center; background: var(--next-red); }
.nx-side-cta .phone .sq svg { width: 24px; height: 24px; fill: var(--next-black); }
.nx-side-cta .phone small { display: block; font: 700 11px/1.2 var(--next-font-sub); letter-spacing: .12em; text-transform: uppercase; color: #9A9AA0; }
.nx-side-cta .phone b { display: block; font: 700 22px/1.1 var(--next-font-call); }

/* ═════════ NEXT Post Footer ═════════ */
.nx-pfoot { padding: 0 var(--nx-gutter) clamp(56px, 7vw, 88px); background: var(--next-white); }
.nx-pfoot .nx-post-in { max-width: 1480px; }
.nx-pfoot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; border-top: 2px solid var(--next-black); border-bottom: 1px solid var(--next-border); }
.nx-pfoot-lbl { margin-right: 12px; font: 700 11px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-muted); }
.nx-pfoot-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nx-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nx-share a { display: grid; place-items: center; width: 42px; height: 42px; background: var(--next-tint); color: var(--next-black); transition: background .2s; }
.nx-share a:hover, .nx-share a:focus-visible { background: var(--next-red); outline: none; }
.nx-share svg { width: 18px; height: 18px; fill: currentColor; }
.nx-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 34px; background: var(--next-border); }
.nx-pn a, .nx-pn span.empty { position: relative; display: block; padding: 28px 30px; background: var(--next-white); color: var(--next-black); text-decoration: none; overflow: hidden; isolation: isolate; }
.nx-pn a::before { content: ""; position: absolute; inset: 0 -30%; z-index: -1; background: var(--next-tint); transform: translateX(-110%) skewX(calc(var(--nx-slant) * -1)); transition: transform .4s ease; }
.nx-pn a.next { text-align: right; }
.nx-pn a.next::before { transform: translateX(110%) skewX(calc(var(--nx-slant) * -1)); }
.nx-pn a:hover::before, .nx-pn a:focus-visible::before { transform: translateX(0) skewX(calc(var(--nx-slant) * -1)); }
.nx-pn a:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: -3px; }
.nx-pn small { display: block; margin-bottom: 10px; font: 700 11px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-red); }
.nx-pn b { display: block; font: 700 19px/1.3 var(--next-font-head); }

/* ═════════ NEXT Related Posts ═════════ */
.nx-rel { padding: clamp(64px, 8vw, 110px) var(--nx-gutter); background: var(--next-white); }
.nx-rel--tint { background: var(--next-tint); }
.nx-rel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.nx-rel .eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font: 700 12px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-red); }
.nx-rel .eyebrow::after { content: ""; width: 48px; height: 2px; background: var(--next-red); }
.nx-rel-head :is(h2, h3) { margin: 0; color: var(--next-black); font: 700 clamp(32px, 4vw, 52px)/1.08 var(--next-font-head); letter-spacing: -.02em; text-wrap: balance; }
.nx-rel .btn { display: inline-flex; align-items: stretch; height: 58px; text-decoration: none; }
.nx-rel .btn-label { display: flex; align-items: center; padding: 0 44px 0 28px; background: var(--next-red); color: var(--next-black); font: 700 15px/1 var(--next-font-call); letter-spacing: .08em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); transition: background .2s; }
.nx-rel .btn-arrow { width: 64px; margin-left: -14px; padding-left: 14px; display: grid; place-items: center; background: var(--next-cyan); clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%); }
.nx-rel .btn-arrow svg { width: 15px; height: 15px; stroke: #000; fill: none; stroke-width: 2.6; transition: transform .25s; }
.nx-rel .btn[href]:hover .btn-label { background: var(--next-red-hover); }
.nx-rel .btn[href]:hover .btn-arrow svg { transform: translateX(4px); }
.nx-rel-cards { display: grid; grid-template-columns: repeat(var(--nx-cols, 3), minmax(0, 1fr)); gap: 26px; }
.nx-card { display: block; color: inherit; text-decoration: none; }
.nx-card-pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--next-grey); }
.nx-card-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.nx-card:hover .nx-card-pic img { transform: scale(1.05); }
.nx-card .nx-chip { position: absolute; left: 0; bottom: 0; z-index: 2; }
.nx-card small { display: block; margin: 18px 0 0; font: 700 11px/1 var(--next-font-sub); letter-spacing: .16em; text-transform: uppercase; color: var(--next-muted); }
.nx-rel .nx-card h3 { margin: 18px 0 10px; font: 700 21px/1.3 var(--next-font-head); color: var(--next-black); text-wrap: balance; transition: color .2s; }
.nx-rel .nx-card small + h3 { margin-top: 8px; }
.nx-card p { margin: 0 0 14px; font: 400 15px/1.6 var(--next-font-head); color: var(--next-body); }
.nx-card-go { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--next-font-call); letter-spacing: .08em; text-transform: uppercase; color: var(--next-black); }
.nx-card-go svg { width: 14px; height: 14px; stroke: var(--next-red); fill: none; stroke-width: 2.4; transition: transform .25s; }
.nx-card:hover .nx-card-go svg { transform: translateX(4px); }
.nx-rel .nx-card:hover h3 { color: var(--next-red); }
.nx-card:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 4px; }

/* ───────── responsive ───────── */
@media (max-width: 1100px) {
  .nx-post-in { padding-inline: 28px; }
  .nx-pst-grid, .nx-pbody-grid { grid-template-columns: 1fr; }
  .nx-pst-grid { min-height: 0; }
  .nx-pst-copy { padding-bottom: 8px; }
  .nx-pst-photo { margin-left: calc(-1 * (28px + var(--nx-gutter))); margin-right: calc(-1 * (28px + var(--nx-gutter))); clip-path: none; min-height: 340px; }
  .nx-pst-date { left: calc(28px + var(--nx-gutter)); }
  .nx-pst-rule::after { left: calc(var(--nx-gutter) + 28px); }
  .nx-side { position: static; }
  .nx-rel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .nx-rel-cards, .nx-pn { grid-template-columns: 1fr; }
  .nx-pn a.next { text-align: left; }
  .nx-pbody .nx-art p { font-size: 17px; }
}
@media (max-width: 560px) {
  .nx-pst { padding-top: 40px; }
  .nx-post-in { padding-inline: 20px; }
  .nx-pst-photo { margin-left: calc(-1 * (20px + var(--nx-gutter))); margin-right: calc(-1 * (20px + var(--nx-gutter))); min-height: 260px; }
  .nx-pst-date { left: calc(20px + var(--nx-gutter)); width: 76px; height: 76px; }
  .nx-pst-date b { font-size: 32px; }
  .nx-pst-rule::after { left: calc(var(--nx-gutter) + 20px); }
  .nx-side-box { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-cats a::before, .nx-pn a::before, .nx-card-pic img, .nx-card-go svg { transition: none; }
}
