/* Blog page (Posts page). Same plain look as the catalogue and contact pages. */
.bpblog {
  --bp-blue: var(--color-primary-blue, #0a5cff);
  --bp-deep: var(--color-brand-deep, #0b2a6b);
  --bp-line: #dde2ea;
  --bp-ink: #14213d;
  --bp-muted: #66748a;
  background: #f4f6f9; color: var(--bp-ink); font-family: var(--font-family, inherit); padding: 36px 0 64px;
}
.bpblog *, .bpblog *::before, .bpblog *::after { box-sizing: border-box; }
.bpblog .container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

.bpblog__head { margin: 0 0 28px; padding: 0 0 18px; border-bottom: 1px solid var(--bp-line); }
.bpblog__title { margin: 0 0 8px; font-size: 2rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--bp-deep); }
.bpblog__lead { margin: 0; color: var(--bp-muted); }

.bpblog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bpblog__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bp-line); border-radius: 6px; overflow: hidden; }
.bpblog__thumb { display: block; aspect-ratio: 16 / 9; background: #e9edf3; }
.bpblog__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bpblog__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.bpblog__meta { margin: 0; font-size: .8rem; font-weight: 700; color: var(--bp-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.bpblog__card-title { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 800; }
.bpblog__card-title a { color: var(--bp-deep); text-decoration: none; }
.bpblog__card-title a:hover { color: var(--bp-blue); }
.bpblog__excerpt { color: var(--bp-muted); line-height: 1.6; font-size: .95rem; }
.bpblog__excerpt p { margin: 0; }
.bpblog__more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--bp-blue); text-decoration: none; }
.bpblog__more:hover { text-decoration: underline; }
.bpblog__empty { padding: 40px 20px; text-align: center; background: #fff; border: 1px solid var(--bp-line); border-radius: 6px; color: var(--bp-muted); }

.bpblog .pagination, .bpblog .navigation.pagination { margin-top: 32px; }
.bpblog .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bpblog .page-numbers { padding: 9px 14px; background: #fff; border: 1px solid var(--bp-line); border-radius: 4px; color: var(--bp-deep); text-decoration: none; font-weight: 600; }
.bpblog .page-numbers.current { background: var(--bp-deep); border-color: var(--bp-deep); color: #fff; }

@media (max-width: 1000px) { .bpblog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .bpblog { padding-top: 24px; }
  .bpblog__grid { grid-template-columns: 1fr; }
  .bpblog__title { font-size: 1.7rem; }
}

/* Single article */
.bpblog--single .container { max-width: 880px; }
.bpblog__back { display: inline-block; margin: 0 0 20px; font-weight: 700; color: var(--bp-blue); text-decoration: none; }
.bpblog__back:hover { text-decoration: underline; }
.bpblog__article { background: #fff; border: 1px solid var(--bp-line); border-radius: 6px; padding: 36px 40px 40px; }
.bpblog__article-head { margin: 0 0 24px; padding: 0 0 20px; border-bottom: 1px solid var(--bp-line); }
.bpblog__article-head .bpblog__meta { margin: 0 0 10px; }
.bpblog__article-title { margin: 0; font-size: 2rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--bp-deep); }
.bpblog__article-lead { margin: 12px 0 0; font-size: 1.05rem; line-height: 1.6; color: var(--bp-muted); }
.bpblog__article-image { margin: 0 0 24px; }
.bpblog__article-image img { display: block; width: 100%; height: auto; border-radius: 6px; }

.bpblog__content { font-size: 1.02rem; line-height: 1.75; color: var(--bp-ink); }
.bpblog__content > :first-child { margin-top: 0; }
.bpblog__content > :last-child { margin-bottom: 0; }
.bpblog__content p { margin: 0 0 1.1em; }
.bpblog__content h2 { margin: 1.8em 0 .6em; font-size: 1.35rem; line-height: 1.3; font-weight: 800; color: var(--bp-deep); }
.bpblog__content h3 { margin: 1.5em 0 .5em; font-size: 1.12rem; line-height: 1.3; font-weight: 800; color: var(--bp-deep); }
.bpblog__content ul, .bpblog__content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.bpblog__content li { margin: 0 0 .5em; }
.bpblog__content a { color: var(--bp-blue); text-decoration: underline; }
.bpblog__content img { max-width: 100%; height: auto; border-radius: 6px; }
.bpblog__content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--bp-line); color: var(--bp-muted); }
.bpblog__content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; }
.bpblog__content th, .bpblog__content td { padding: 9px 12px; border: 1px solid var(--bp-line); text-align: left; }
.bpblog__pages { margin-top: 24px; }

.bpblog .post-navigation { margin-top: 24px; }
.bpblog .post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; justify-content: stretch; }
.bpblog .post-navigation .nav-previous a, .bpblog .post-navigation .nav-next a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: #fff; border: 1px solid var(--bp-line); border-radius: 6px; text-decoration: none; }
.bpblog .post-navigation .nav-next { grid-column: 2; text-align: right; }
.bpblog .post-navigation .nav-previous:only-child { grid-column: 1; }
.bpblog__nav-label { font-size: .78rem; font-weight: 700; color: var(--bp-muted); }
.bpblog__nav-title { font-weight: 800; color: var(--bp-deep); line-height: 1.35; }
.bpblog .post-navigation a:hover .bpblog__nav-title { color: var(--bp-blue); }
.bpblog__comments { margin-top: 28px; background: #fff; border: 1px solid var(--bp-line); border-radius: 6px; padding: 24px; }

/* Comment form + comment list (single posts) */
.bpblog__comments { font-size: .95rem; line-height: 1.6; color: var(--bp-ink); }
.bpblog__comments h2, .bpblog__comments h3 { margin: 0 0 14px; font-size: 1.25rem; line-height: 1.3; font-weight: 800; color: var(--bp-deep); }
.bpblog__comments .comment-reply-title small { margin-left: 10px; font-size: .8rem; font-weight: 600; }
.bpblog__comments a { color: var(--bp-blue); text-decoration: none; }
.bpblog__comments a:hover { text-decoration: underline; }
.bpblog__comments .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.bpblog__comments .comment-form > * { margin: 0; grid-column: 1 / -1; }
.bpblog__comments .comment-form .comment-form-author,
.bpblog__comments .comment-form .comment-form-email { grid-column: auto; }
.bpblog__comments .logged-in-as, .bpblog__comments .comment-notes { color: var(--bp-muted); font-size: .9rem; }
.bpblog__comments .comment-form label { display: block; margin: 0 0 6px; font-weight: 700; font-size: .9rem; color: var(--bp-deep); }
.bpblog__comments .required { color: #d92d20; }
.bpblog__comments .comment-form textarea,
.bpblog__comments .comment-form input[type="text"],
.bpblog__comments .comment-form input[type="email"],
.bpblog__comments .comment-form input[type="url"] { display: block; width: 100%; box-sizing: border-box; padding: 11px 14px; font: inherit; color: var(--bp-ink); background: #fff; border: 1px solid var(--bp-line); border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.bpblog__comments .comment-form textarea { min-height: 150px; resize: vertical; }
.bpblog__comments .comment-form textarea:focus,
.bpblog__comments .comment-form input:focus { outline: none; border-color: var(--bp-blue); box-shadow: 0 0 0 3px rgba(10, 92, 255, .15); }
.bpblog__comments .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.bpblog__comments .comment-form-cookies-consent label { margin: 0; font-weight: 500; }
.bpblog__comments .form-submit { margin-top: 2px; }
.bpblog__comments .form-submit .submit,
.bpblog__comments input[type="submit"] { display: inline-block; padding: 12px 26px; font: inherit; font-weight: 700; color: #fff; background: var(--bp-blue); border: 0; border-radius: 6px; cursor: pointer; transition: background .15s; }
.bpblog__comments .form-submit .submit:hover,
.bpblog__comments input[type="submit"]:hover { background: var(--bp-deep); }

.bpblog__comments .comment-list, .bpblog__comments .commentlist { list-style: none; margin: 0 0 28px; padding: 0; }
.bpblog__comments .comment-list .children, .bpblog__comments .commentlist .children { list-style: none; margin: 0; padding-left: 28px; }
.bpblog__comments .comment-body, .bpblog__comments .commentlist li { padding: 16px 0; border-bottom: 1px solid var(--bp-line); }
.bpblog__comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--bp-deep); }
.bpblog__comments .comment-author img { border-radius: 50%; }
.bpblog__comments .comment-metadata { font-size: .8rem; color: var(--bp-muted); }
.bpblog__comments .comment-content p { margin: 8px 0; }
.bpblog__comments .reply a { font-size: .85rem; font-weight: 700; }

@media (max-width: 620px) {
  .bpblog__comments .comment-form { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .bpblog__article { padding: 22px 18px 26px; }
  .bpblog__article-title { font-size: 1.6rem; }
  .bpblog .post-navigation .nav-links { grid-template-columns: 1fr; }
  .bpblog .post-navigation .nav-next { grid-column: 1; text-align: left; }
}
