/* Post grid, sign-up card, masthead and single post layout (blocks mevotech/post-grid and mevotech/post-masthead; style
   handle mevotech-news, loaded only where one of them renders). Values measured on the previous site's News page and
   press release (1440 / 768 / 390). */

/* container: the previous site's page container (540 / 720 / 960 / 1140 / 1320 / 1380, 15 px side padding) */
.mevo-post-grid--grid,
.mevo-single { box-sizing: border-box; width: 100%; margin-inline: auto; padding-inline: 15px; color: #25282a; }
@media (min-width: 576px) { .mevo-post-grid--grid, .mevo-single { max-width: 540px; } }
@media (min-width: 768px) { .mevo-post-grid--grid, .mevo-single { max-width: 720px; } }
@media (min-width: 992px) { .mevo-post-grid--grid, .mevo-single { max-width: 960px; } }
@media (min-width: 1200px) { .mevo-post-grid--grid, .mevo-single { max-width: 1140px; } }
@media (min-width: 1400px) { .mevo-post-grid--grid, .mevo-single { max-width: 1320px; } }
@media (min-width: 1600px) { .mevo-post-grid--grid, .mevo-single { max-width: 1380px; } }

.mevo-post-grid__list.mevo-post-grid__list { list-style: none; margin: 0; padding: 0; }
.mevo-post-grid__item.mevo-post-grid__item { margin: 0; }

/* grid: 2 per row below 768 px, 4 from 768 px; 30 px gutter, 2rem between rows; body text 16 / 14 / 13 / 15 / 16 px as before */
.mevo-post-grid--grid { padding-block: 3rem 1rem; font-size: 16px; line-height: 1.5; }
@media (min-width: 768px) and (max-width: 991px) { .mevo-post-grid--grid { font-size: 14px; } }
@media (min-width: 992px) and (max-width: 1199px) { .mevo-post-grid--grid { font-size: 13px; } }
@media (min-width: 1200px) and (max-width: 1439px) { .mevo-post-grid--grid { font-size: 15px; } }
.mevo-post-grid--grid .mevo-post-grid__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; row-gap: 2rem; align-items: stretch; }
@media (min-width: 768px) { .mevo-post-grid--grid .mevo-post-grid__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* card */
.mevo-post-card { box-sizing: border-box; display: flex; flex-direction: column; height: 100%; border-bottom: 1px solid #535255; }
.mevo-post-card > * { margin: 0; }
.mevo-post-card__image { position: relative; display: block; width: 100%; margin-bottom: 1rem; aspect-ratio: 100 / 65; overflow: hidden; background: #e9ebec; }
.mevo-post-card__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.mevo-post-card__date.mevo-post-card__date { font-size: 0.9rem; line-height: 1.9; }
.mevo-post-card__title.mevo-post-card__title { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: #242426; }
.mevo-post-card a, .mevo-post-side a { color: #242426; text-decoration: none; }
.mevo-post-card a:hover, .mevo-post-card a:focus-visible, .mevo-post-side a:hover, .mevo-post-side a:focus-visible { color: #25282a; text-decoration: underline; }
.mevo-post-card__more.mevo-post-card__more { margin-top: auto; line-height: 1.9; }

/* sign-up card (inert: read-only fields, the button is deferred) */
.mevo-signup-card { box-sizing: border-box; height: 100%; padding: 2rem; background: #2573be url("../img/news/signup-bg-425.jpg") no-repeat center / cover; color: #fff; }
.mevo-signup-card > * { margin: 0; }
.mevo-signup-card__h.mevo-signup-card__h { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.2; text-transform: none; }
.mevo-signup-card__form { margin-top: 1rem; }
.mevo-signup-card__field.mevo-signup-card__field { margin: 0 0 0.6rem; }
.mevo-signup-card__field input { box-sizing: border-box; display: block; width: 100%; min-height: 30px; margin-top: 5px; padding: 0.5em; border: 0; border-radius: 5px; background: #fff; color: #25282a; font: inherit; cursor: default; }
.mevo-signup-card__field input::placeholder { color: #5f6366; opacity: 1; }
.mevo-signup-card__btn { box-sizing: border-box; display: block; width: 100%; min-height: 30px; padding: 0.5em; border-radius: 5px; background: #23272b; color: #fff; text-align: center; cursor: default; }
.mevo-signup-card__note.mevo-signup-card__note { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.3; }

/* masthead: the old 4:1 band, image cover; articles' featured image runs 160 % wide below 768 px as before */
.mevo-masthead { position: relative; width: 100%; overflow: hidden; }
.mevo-masthead::before { content: ""; display: block; padding-bottom: 25%; }
.mevo-masthead__img { position: absolute; top: 50%; left: 50%; display: block; width: 100%; height: 100%; max-width: none; transform: translate(-50%, -50%); object-fit: cover; }
@media (max-width: 767px) { .mevo-masthead--featured .mevo-masthead__img { width: 160%; margin-left: -30%; } }

/* single post: main column 9/12 and sidebar 3/12 from 768 px, stacked below */
.mevo-single.mevo-single { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 30px; margin-top: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .mevo-single.mevo-single { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); } }
.mevo-single.mevo-single > *, .mevo-single__main.mevo-single__main > *, .mevo-single__side.mevo-single__side > * { margin-block: 0; }
.mevo-single__date.mevo-single__date { margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.5; }
.mevo-single__title.mevo-single__title { margin: 0 0 20px; color: #2573be; font-size: 2.6rem; font-weight: 700; line-height: 1.2; }
.mevo-single__content { font-size: 1rem; }
.mevo-single__content > * { margin-block: 0 1rem; }
.mevo-single__content p { line-height: 1.9; }
.mevo-single__content h2 { margin-top: 1rem; color: #2573be; font-size: 2rem; font-weight: 700; line-height: 1.2; }
.mevo-single__content img { max-width: 100%; height: auto; }
.mevo-single__side-h.mevo-single__side-h { position: relative; margin: 1rem 0 2.5rem; padding-bottom: 1.2rem; color: #25282a; font-size: 2.2rem; font-weight: 700; line-height: 1.2; }
.mevo-single__side-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 6px; border-radius: 3px; background: #2573be; }

/* sidebar list (Recent …) */
.mevo-post-side { margin-bottom: 20px; border-bottom: 1px solid #25282a; }
.mevo-post-side > * { margin: 0; }
.mevo-post-side__image { position: relative; width: 100%; aspect-ratio: 100 / 60; overflow: hidden; background: #e9ebec; }
.mevo-post-side__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.mevo-post-side__title.mevo-post-side__title { margin: 1rem 0; font-size: 1rem; font-weight: 700; line-height: 1.2; }
.mevo-post-side__date.mevo-post-side__date { margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.5; }

/* News list and singles */
/* press release text: the previous site's body values (p 16 / 30.4 px, links #1d76bc, lists 2rem indent, floated pictures with
   16 px gap); headings follow one outline under the h1 and keep their old size with mevo-hN-look (old h1 41.6 px blue, h3 28 px,
   h4 24 px / 500, h5 20 px / 500, h6 16 px / 500); press releases only — article singles (.mevo-single--article) use the rules below */
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content { display: flow-root; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content p { margin-block: 0 1rem; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content a { color: #1d76bc; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content a:hover, :where(.mevo-single:not(.mevo-single--article)) .mevo-single__content a:focus-visible { color: #1d76bc; text-decoration: underline; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content .wp-block-list { margin-block: 0 1rem; padding-left: 2rem; line-height: 1.5; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content .wp-block-list .wp-block-list { margin-bottom: 0; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content .mevo-li-nomarker { list-style: none; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content .wp-block-heading { margin-block: 0 0.5rem; color: #25282a; line-height: 1.2; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content.mevo-single__content h2.wp-block-heading { margin-block: 1rem 2rem; color: #2573be; font-size: 2rem; font-weight: 700; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content.mevo-single__content :is(h2, h3, h4, h5, h6).mevo-h1-look { margin-block: 0 20px; color: #2573be; font-size: 2.6rem; font-weight: 700; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content.mevo-single__content :is(h2, h3, h4, h5, h6).mevo-h3-look { margin-block: 1rem 1.75rem; color: #25282a; font-size: 1.75rem; font-weight: 700; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content.mevo-single__content :is(h2, h3, h4, h5, h6).mevo-h4-look { margin-block: 0 0.5rem; color: #25282a; font-size: 1.5rem; font-weight: 500; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content.mevo-single__content :is(h2, h3, h4, h5, h6).mevo-h5-look { margin-block: 0 0.5rem; color: #25282a; font-size: 1.25rem; font-weight: 500; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content.mevo-single__content :is(h2, h3, h4, h5, h6).mevo-h6-look { margin-block: 0 0.5rem; color: #25282a; font-size: 1rem; font-weight: 500; }
@media (max-width: 767px) { :where(.mevo-single:not(.mevo-single--article)) .mevo-single__content.mevo-single__content :is(h2, h3, h4, h5, h6).mevo-h4-look { font-size: calc(1.275rem + 0.3vw); } }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content img.alignleft, :where(.mevo-single:not(.mevo-single--article)) .mevo-single__content > .wp-block-image.alignleft { float: left; margin: 0 16px 16px 0; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content img.alignright, :where(.mevo-single:not(.mevo-single--article)) .mevo-single__content > .wp-block-image.alignright { float: right; margin: 0 0 16px 16px; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content img.aligncenter, :where(.mevo-single:not(.mevo-single--article)) .mevo-single__content > .wp-block-image.aligncenter { display: block; margin-inline: auto; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content > .wp-block-image { margin-block: 0 1rem; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content > .wp-block-image img { max-width: 100%; height: auto; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content .wp-block-table { margin-block: 0 1rem; overflow-x: auto; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content .wp-block-table table { line-height: 1.5; border-collapse: collapse; }
:where(.mevo-single:not(.mevo-single--article)) .mevo-single__content .wp-block-table td { padding: 0 0 0 1px; border: 0; vertical-align: top; }

/* Articles list and singles */
/* single article (template single-mevo_article: .mevo-single--article): body text 16 / 14 / 13 / 15 / 16 px as before;
   values measured on the previous site's articles (1440 / 768 / 390) */
.mevo-single--article .mevo-single__content.mevo-single__content { font-size: 16px; }
@media (min-width: 768px) and (max-width: 991px) { .mevo-single--article .mevo-single__content.mevo-single__content { font-size: 14px; } }
@media (min-width: 992px) and (max-width: 1199px) { .mevo-single--article .mevo-single__content.mevo-single__content { font-size: 13px; } }
@media (min-width: 1200px) and (max-width: 1439px) { .mevo-single--article .mevo-single__content.mevo-single__content { font-size: 15px; } }
.mevo-single--article .mevo-single__content a:not(.wp-block-button__link) { color: #1d76bc; text-decoration: none; }
.mevo-single--article .mevo-single__content a:not(.wp-block-button__link):hover,
.mevo-single--article .mevo-single__content a:not(.wp-block-button__link):focus-visible { text-decoration: underline; }
/* above the theme's post-content heading/paragraph sizes (style.css: h2 1.45rem, body text 0.95rem) */
.mevo-single--article .mevo-single__content p, .mevo-single--article .mevo-single__content li, .mevo-single--article .mevo-single__content td { font-size: 1em; }
.mevo-single--article .mevo-single__content p { line-height: 1.9; }
.mevo-single--article .mevo-single__content h2:not(.mevo-h-bar) { margin-top: 2rem; margin-bottom: 2rem; color: #2573be; font-size: 2rem; font-weight: 700; line-height: 1.2; }
.mevo-single--article .mevo-single__content h3 { margin: 1rem 0 1.75rem; color: #25282a; font-size: 28px; font-weight: 700; line-height: 1.2; }
.mevo-single--article .mevo-single__content h2.mevo-h1-look { margin: 0 0 20px; font-size: 2.6rem; }
.mevo-single--article .mevo-single__content h2.mevo-h3-look { margin: 1rem 0 1.75rem; color: #25282a; font-size: 28px; }
.mevo-single--article .mevo-single__content h3.mevo-h4-look { margin: 0 0 0.5rem; color: #25282a; font-size: 24px; font-weight: 500; }
.mevo-single--article .mevo-single__content ul,
.mevo-single--article .mevo-single__content ol { padding-left: 2rem; line-height: 1.5; }
.mevo-single--article .mevo-single__content .wp-block-image { margin-block: 0 1rem; }
.mevo-single--article .mevo-single__content .wp-block-image img { height: auto; }
.mevo-single--article .mevo-single__content > .alignleft { float: left; margin: 0 1em 1em 0; }
.mevo-single--article .mevo-single__content > .alignright { float: right; margin: 0 0 1em 1em; }
.mevo-single--article .mevo-single__content > .aligncenter { margin-inline: auto; text-align: center; }
/* blank lines (spacers) let text run beside a floated image as before (WordPress's spacer style clears floats); the end of
   an old builder row cleared them (.mevo-article-clear) */
.mevo-single--article .mevo-single__content .wp-block-spacer { margin-block: 0; clear: none; }
.mevo-single--article .mevo-single__content .wp-block-spacer.mevo-article-clear { clear: both; }
.mevo-single--article .mevo-single__content .wp-block-separator { margin: 0 0 35px; border: 0; border-top: 1px solid #ebebeb; opacity: 1; }
.mevo-single--article .mevo-single__content .wp-block-table table { width: auto; table-layout: auto; border-collapse: collapse; }
.mevo-single--article .mevo-single__content .wp-block-table td,
.mevo-single--article .mevo-single__content .wp-block-table th { padding: 1px; border: 0; vertical-align: top; }
/* images in a row (old image grid) and captioned images (old simple gallery: 4 / 3 / 2 / 1 per row) */
.mevo-single--article .mevo-article-image-row { gap: 1px; }
.mevo-single--article .mevo-article-image-row > .wp-block-image { margin: 0; }
.mevo-single--article .mevo-article-gallery.mevo-article-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 30px; }
@media (min-width: 768px) { .mevo-single--article .mevo-article-gallery.mevo-article-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .mevo-single--article .mevo-article-gallery.mevo-article-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .mevo-single--article .mevo-article-gallery.mevo-article-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mevo-single--article .mevo-article-gallery > .wp-block-column { margin: 0 0 30px; }
.mevo-single--article .mevo-article-gallery > .wp-block-column > * { margin: 0; }
.mevo-single--article .mevo-article-gallery img { display: block; max-width: 100%; height: auto; }
.mevo-single--article .mevo-article-gallery p { line-height: 1.5; }
/* buttons (old builder buttons: black / blue / grey; modern = light top gradient; rounded 5 px or square; md / lg) */
.mevo-single--article .wp-block-buttons { margin-block: 0 22px; }
.mevo-vc-btn .wp-block-button__link { display: inline-block; padding: 14px 20px; border: 1px solid transparent; border-radius: 5px; background-color: #2a2a2a; color: #fff; font-size: 14px; font-weight: 400; line-height: normal; text-decoration: none; }
.mevo-vc-btn--blue .wp-block-button__link { background-color: #2573be; }
.mevo-vc-btn--inverse .wp-block-button__link { background-color: #555; }
.mevo-vc-btn--square .wp-block-button__link { border-radius: 0; }
.mevo-vc-btn--lg .wp-block-button__link { padding: 18px 25px; font-size: 16px; }
.mevo-vc-btn--modern .wp-block-button__link { border-color: #2a2a2a; background-image: linear-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.01) 100%); }
.mevo-vc-btn--classic .wp-block-button__link { border-color: rgba(0, 0, 0, 0.1); }
.mevo-vc-btn a.wp-block-button__link:hover, .mevo-vc-btn a.wp-block-button__link:focus-visible { background-color: #151515; color: #fff; text-decoration: underline; }
.mevo-vc-btn a.wp-block-button__link:focus-visible { outline: 2px solid #2573be; outline-offset: 2px; }
