.emsoft-blog { color: #061016; padding: 20px 0 100px; }
.emsoft-blog * { box-sizing: border-box; }
.emsoft-blog a { color: inherit; }
.emsoft-blog a:focus-visible, .emsoft-blog button:focus-visible, .emsoft-blog input:focus-visible, .emsoft-blog textarea:focus-visible { outline: 3px solid #287aa9; outline-offset: 3px; }
.emsoft-blog-eyebrow { color: #419fd9; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.emsoft-blog-archive__intro { max-width: 760px; margin: 15px 0 48px; }
.emsoft-blog-archive__intro h1, .emsoft-blog-post__intro h1 { color: #061016; font-size: clamp(38px, 4vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.emsoft-blog-archive__intro h1 { margin: 12px 0 18px; }
.emsoft-blog-archive__intro h1 span { color: #419fd9; }
.emsoft-blog-archive__intro > p:last-child { color: #51606a; font-size: 18px; line-height: 1.6; }
.emsoft-blog-controls { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 48px; }
.emsoft-blog-topics { display: flex; flex-wrap: wrap; gap: 9px; min-width: 0; }
.emsoft-blog-topic { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 18px; border: 1px solid #dce6eb; border-radius: 999px; background: #fff; color: #344c5b !important; font-size: 13px; font-weight: 600; line-height: 1.2; transition: background .2s, border-color .2s, color .2s; }
.emsoft-blog-topic:hover, .emsoft-blog-topic.is-active { border-color: #419fd9; background: #419fd9; color: #fff !important; }
.emsoft-blog-search { flex: 0 0 260px; }
.emsoft-blog-search label { display: block; margin-bottom: 7px; color: #51606a; font-size: 12px; font-weight: 600; }
.emsoft-blog-search > div { display: flex; min-height: 44px; border: 1px solid #c6e2f4; border-radius: 9px; overflow: hidden; background: #fff; }
.emsoft-blog-search input { min-width: 0; width: 100%; padding: 10px 13px; background: transparent; color: #061016; font-size: 14px; }
.emsoft-blog-search button { flex: 0 0 44px; background: #419fd9; color: #fff; cursor: pointer; font-size: 27px; line-height: 1; }
.emsoft-blog-results-heading, .emsoft-blog-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.emsoft-blog-results-heading h2, .emsoft-blog-section-heading h2 { margin-top: 7px; font-size: clamp(26px, 2.5vw, 36px); font-weight: 750; line-height: 1.2; }
.emsoft-blog-results-heading > p { color: #61717b; font-size: 14px; }
.emsoft-blog-section-heading > a { color: #237eb4; font-size: 14px; font-weight: 700; white-space: nowrap; }
.emsoft-blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.emsoft-blog-card { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); min-width: 0; min-height: 320px; border: 1px solid #d7e8f2; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 8px 28px rgb(13 63 91 / 5%); }
.emsoft-blog-card__visual { display: flex; flex-direction: column; min-width: 0; }
.emsoft-blog-card__image { display: block; min-height: 185px; flex: 1 0 55%; overflow: hidden; background: #e9f4fa; }
.emsoft-blog-card__image img { display: block; width: 100%; height: 100%; min-height: 185px; object-fit: cover; transition: transform .3s; }
.emsoft-blog-card__image:hover img { transform: scale(1.04); }
.emsoft-blog-card__excerpt { display: block; padding: 19px; color: #465963 !important; font-size: 13px; line-height: 1.55; }
.emsoft-blog-card__excerpt:hover { color: #237eb4 !important; }
.emsoft-blog-card__excerpt span { color: #419fd9; }
.emsoft-blog-card__details { display: flex; flex-direction: column; min-width: 0; padding: 22px 20px; }
.emsoft-blog-card__topic { margin-bottom: 11px; color: #419fd9; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.emsoft-blog-card h3 { overflow-wrap: anywhere; font-size: clamp(18px, 1.35vw, 22px); font-weight: 750; line-height: 1.28; }
.emsoft-blog-card__meta { display: grid; gap: 8px; margin: 22px 0; }
.emsoft-blog-card__meta > div { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; line-height: 1.4; }
.emsoft-blog-card__meta dt { color: #7d8b93; }
.emsoft-blog-card__meta dt::after { content: ':'; }
.emsoft-blog-card__meta dd { color: #344c5b; font-weight: 600; }
.emsoft-blog-card__footer { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; }
.emsoft-blog-author { display: inline-flex; align-items: center; gap: 8px; color: #344c5b; font-size: 12px; font-weight: 650; line-height: 1.3; }
.emsoft-blog-author__avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.emsoft-blog-author__monogram { background: #d8eefb; color: #237eb4; font-size: 12px; font-weight: 800; }
.emsoft-blog-read-more { color: #237eb4 !important; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.emsoft-blog-read-more:hover, .emsoft-blog-section-heading > a:hover { text-decoration: underline; }
.emsoft-blog-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 42px; }
.emsoft-blog-pagination a { display: inline-flex; justify-content: center; align-items: center; min-width: 42px; min-height: 42px; padding: 8px 13px; border: 1px solid #c6e2f4; border-radius: 7px; background: #fff; color: #237eb4; font-weight: 700; }
.emsoft-blog-pagination a:hover, .emsoft-blog-pagination a[aria-current="page"] { background: #419fd9; border-color: #419fd9; color: #fff; }
.emsoft-blog-empty { padding: 55px 30px; border: 1px solid #c6e2f4; border-radius: 16px; background: #fff; text-align: center; }
.emsoft-blog-empty h2 { font-size: 26px; font-weight: 750; }
.emsoft-blog-empty p { margin: 10px 0 20px; color: #61717b; font-size: 15px; }
.emsoft-blog-empty a { color: #237eb4; font-weight: 700; }

.emsoft-blog-post__hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) minmax(260px, .78fr); align-items: start; gap: 24px; margin: 15px 0 58px; }
.emsoft-blog-post__intro { min-width: 0; padding: 6px 0; }
.emsoft-blog-post__intro h1 { margin: 12px 0 25px; font-size: clamp(32px, 3vw, 48px); }
.emsoft-blog-post__meta { display: flex; flex-wrap: wrap; gap: 9px 17px; color: #5d6b73; font-size: 13px; font-weight: 550; }
.emsoft-blog-post__meta span + span::before { content: '·'; margin-right: 17px; color: #419fd9; }
.emsoft-blog-post__author-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 25px; }
.emsoft-blog-post__topics { display: flex; flex-wrap: wrap; gap: 7px; }
.emsoft-blog-post__topics a { padding: 7px 10px; border: 1px solid #c6e2f4; border-radius: 999px; color: #237eb4; font-size: 11px; font-weight: 700; line-height: 1.2; }
.emsoft-blog-post__topics a:hover { background: #e9f6fd; }
.emsoft-blog-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 25px 0; }
.emsoft-blog-share > span { width: 100%; color: #5d6b73; font-size: 12px; font-weight: 650; }
.emsoft-blog-share a { padding: 6px 11px; border: 1px solid #d7e8f2; border-radius: 6px; color: #237eb4; font-size: 12px; font-weight: 700; }
.emsoft-blog-share a:hover { background: #e9f6fd; }
.emsoft-blog-post__image { min-width: 0; overflow: hidden; border-radius: 16px; background: #e9f4fa; }
.emsoft-blog-post__image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.emsoft-blog-lead { padding: 24px; border: 1px solid #c6e2f4; border-radius: 16px; background: #eff8fd; }
.emsoft-blog-lead h2 { margin: 8px 0 9px; font-size: 23px; font-weight: 750; line-height: 1.2; }
.emsoft-blog-lead > p:not(.emsoft-blog-eyebrow) { margin-bottom: 20px; color: #51606a; font-size: 13px; line-height: 1.55; }
.emsoft-blog-lead form { display: grid; gap: 10px; }
.emsoft-blog-lead form input, .emsoft-blog-lead form textarea { font-size: 13px; }
.emsoft-blog-lead form textarea { min-height: 100px; }
.emsoft-blog-lead form button[type="submit"] { width: 100%; padding: 13px 12px !important; font-size: 13px; }
.emsoft-blog-lead form button[type="submit"] [data-submit-icon] { display: none; }
.emsoft-blog-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 15px 18px; border: 1px solid #c6e2f4; border-radius: 10px; background: #fff; }
.emsoft-blog-rating__label { font-size: 13px; font-weight: 750; }
.emsoft-blog-rating__summary { margin-top: 2px; color: #6b7982; font-size: 11px; }
.emsoft-blog-rating__stars { display: flex; align-items: center; gap: 0; margin-left: auto; }
.emsoft-blog-rating__stars button { width: 30px; height: 34px; padding: 0; background: transparent; color: #f4a536; cursor: pointer; font-size: 27px; line-height: 1; }
.emsoft-blog-rating__stars button:hover span { display: inline-block; transform: scale(1.13); }
.emsoft-blog-rating__stars button:disabled { cursor: default; opacity: .7; }
.emsoft-blog-rating__status { flex-basis: 100%; color: #237eb4; font-size: 11px; line-height: 1.3; }
.emsoft-blog-rating__status:empty { display: none; }
.emsoft-blog-post__body-layout { display: grid; grid-template-columns: minmax(0, 820px) 1fr; }
.emsoft-blog-post__main { min-width: 0; }
.emsoft-blog-toc { margin-bottom: 36px; padding: 26px 30px; border: 1px solid #d7e8f2; border-radius: 14px; background: #f5fbfe; }
.emsoft-blog-toc h2 { margin: 5px 0 17px; font-size: 25px; font-weight: 750; }
.emsoft-blog-toc ol { display: grid; gap: 10px; padding-left: 20px; list-style: decimal; }
.emsoft-blog-toc li { padding-left: 2px; color: #237eb4; font-size: 15px; line-height: 1.4; }
.emsoft-blog-toc li.level-3 { margin-left: 18px; }
.emsoft-blog-toc a { color: #237eb4; }
.emsoft-blog-toc a:hover { text-decoration: underline; }
.emsoft-blog-article-content { color: #263c49; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.emsoft-blog-article-content > * { margin-bottom: 1.35em; }
.emsoft-blog-article-content h2, .emsoft-blog-article-content h3 { margin-top: 1.7em; margin-bottom: .7em; color: #061016; font-weight: 750; line-height: 1.3; scroll-margin-top: 105px; }
.emsoft-blog-article-content h2 { font-size: 29px; }
.emsoft-blog-article-content h3 { font-size: 23px; }
.emsoft-blog-article-content a { color: #237eb4; text-decoration: underline; }
.emsoft-blog-article-content ul { margin-left: 22px; list-style: disc; }
.emsoft-blog-article-content ol { margin-left: 22px; list-style: decimal; }
.emsoft-blog-article-content li { margin-bottom: 8px; }
.emsoft-blog-article-content img { max-width: 100%; height: auto; border-radius: 10px; }
.emsoft-blog-article-content figure { max-width: 100%; }
.emsoft-blog-post__main > .emsoft-blog-rating { margin-top: 50px; max-width: 540px; }
.emsoft-blog-related { margin-top: 88px; }
.emsoft-blog-related .emsoft-blog-card { min-height: 300px; }
.emsoft-blog-comments { max-width: 820px; margin-top: 90px; }
.emsoft-blog-comments__empty { margin-bottom: 20px; color: #61717b; font-size: 15px; }
.emsoft-blog-comments__list { display: grid; gap: 18px; margin: 25px 0 40px; list-style: none; }
.emsoft-blog-comments__list li { padding: 20px; border: 1px solid #d7e8f2; border-radius: 12px; background: #fff; }
.emsoft-blog-comments__list .children { display: grid; gap: 15px; margin: 20px 0 0 20px; list-style: none; }
.emsoft-blog-comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.emsoft-blog-comments__list .comment-author img { border-radius: 50%; }
.emsoft-blog-comments__list .comment-meta { margin: 4px 0 14px; color: #61717b; font-size: 12px; }
.emsoft-blog-comments__list p { margin: 10px 0; font-size: 15px; line-height: 1.65; }
.emsoft-blog-comments__list .reply a { color: #237eb4; font-weight: 700; }
.emsoft-blog-comments .comment-respond { margin-top: 32px; }
.emsoft-blog-comments .comment-reply-title { font-size: 25px; font-weight: 750; }
.emsoft-blog-comments .comment-notes, .emsoft-blog-comments .logged-in-as { margin: 10px 0 20px; color: #61717b; font-size: 13px; }
.emsoft-blog-comments .comment-form { display: grid; gap: 16px; }
.emsoft-blog-comments .comment-form p { display: grid; gap: 6px; color: #344c5b; font-size: 13px; font-weight: 650; }
.emsoft-blog-comments .comment-form input:not([type="checkbox"]), .emsoft-blog-comments .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #c6e2f4; border-radius: 8px; background: #fff; color: #061016; font-size: 14px; }
.emsoft-blog-comments .comment-form textarea { min-height: 140px; }
.emsoft-blog-comments .comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.emsoft-blog-comments .form-submit input { width: auto !important; padding: 13px 24px !important; border-color: #419fd9 !important; background: #419fd9 !important; color: #fff !important; cursor: pointer; font-weight: 700; }

@media (max-width: 1180px) {
  .emsoft-blog-post__hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .emsoft-blog-lead { grid-column: 1 / -1; }
  .emsoft-blog-lead form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emsoft-blog-lead form [data-field-wrap="message"] { grid-column: 1 / -1; }
}
/* Let the article start below its intro while the taller lead form remains beside it. */
@media (min-width: 1024px) {
  .emsoft-blog-post > .auto_container { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) minmax(260px, .78fr); column-gap: 24px; align-items: start; }
  .emsoft-blog-post__hero, .emsoft-blog-post__body-layout { display: contents; }
  .emsoft-blog-post__intro { grid-column: 1; grid-row: 1; }
  .emsoft-blog-post__image { grid-column: 2; grid-row: 1; }
  .emsoft-blog-lead { grid-column: 3; grid-row: 1 / span 2; }
  .emsoft-blog-lead form { grid-template-columns: minmax(0, 1fr); }
  .emsoft-blog-lead form [data-field-wrap="message"] { grid-column: auto; }
  .emsoft-blog-post__main { grid-column: 1 / 3; grid-row: 2; max-width: 820px; margin-top: 28px; }
  .emsoft-blog-related, .emsoft-blog-comments { grid-column: 1 / -1; }
}
@media (max-width: 950px) {
  .emsoft-blog-controls { flex-direction: column; align-items: stretch; }
  .emsoft-blog-search { flex-basis: auto; max-width: 420px; }
  .emsoft-blog-card { grid-template-columns: minmax(0, 1fr); }
  .emsoft-blog-card__image { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .emsoft-blog-card__image img { height: 100%; min-height: 0; }
  .emsoft-blog-card__details { min-height: 275px; }
}
@media (max-width: 700px) {
  .emsoft-blog { padding: 10px 0 64px; }
  .emsoft-blog-archive__intro { margin: 10px 0 30px; }
  .emsoft-blog-archive__intro > p:last-child { font-size: 16px; }
  .emsoft-blog-controls { margin-bottom: 36px; }
  .emsoft-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .emsoft-blog-card { grid-template-columns: minmax(0, 43%) minmax(0, 57%); min-height: 260px; }
  .emsoft-blog-card__image { flex: 1; aspect-ratio: auto; min-height: 140px; }
  .emsoft-blog-card__image img { min-height: 140px; }
  .emsoft-blog-card__details { min-height: 0; padding: 16px; }
  .emsoft-blog-card__meta { margin: 13px 0; }
  .emsoft-blog-post__hero { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 42px; }
  .emsoft-blog-post__image { grid-row: 2; }
  .emsoft-blog-lead { grid-column: auto; }
  .emsoft-blog-lead form { grid-template-columns: minmax(0, 1fr); }
  .emsoft-blog-lead form [data-field-wrap="message"] { grid-column: auto; }
  .emsoft-blog-post__body-layout { display: block; }
  .emsoft-blog-article-content { font-size: 16px; }
  .emsoft-blog-related, .emsoft-blog-comments { margin-top: 62px; }
}
@media (max-width: 480px) {
  .emsoft-blog-card { grid-template-columns: minmax(0, 1fr); }
  .emsoft-blog-card__image { aspect-ratio: 16 / 9; min-height: 0; }
  .emsoft-blog-card__image img { min-height: 0; }
  .emsoft-blog-card__details { min-height: 245px; }
  .emsoft-blog-toc { padding: 22px 20px; }
  .emsoft-blog-post__meta span + span::before { margin-right: 9px; }
}
@media (prefers-reduced-motion: reduce) { .emsoft-blog-card__image img { transition: none; } }

/* Topic discovery lives on the listing; All retains its existing grid. */
.emsoft-blog-featured { margin-bottom: 48px; }
.emsoft-blog-featured .emsoft-blog-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.emsoft-blog-featured .emsoft-blog-card h3 { font-size: clamp(24px, 2.8vw, 38px); }
.emsoft-blog-featured .emsoft-blog-card__details { padding: 32px; }
@media (max-width: 700px) {
  .emsoft-blog-featured .emsoft-blog-card { grid-template-columns: minmax(0, 1fr); }
  .emsoft-blog-featured .emsoft-blog-card__image { aspect-ratio: 16 / 9; }
  .emsoft-blog-featured .emsoft-blog-card__details { padding: 22px; }
  .emsoft-blog-topic-related > .emsoft-blog-results-heading { flex-direction: column; align-items: start; gap: 12px; }
}
