/* Blog views use the same palette, typography, and controls as the main site. */
.blog-page,
.blog-admin-page {
  min-height: 100vh;
  color: #163A56;
  background: transparent;
}

.blog-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.blog-site-header {
  position: relative;
  z-index: 20;
}

.blog-site-header .header__top {
  width: 100%;
}

.blog-site-header .navbar-brand {
  display: flex;
  align-items: center;
  min-height: 66px;
}

.blog-site-header .logo-color {
  width: auto;
  max-width: 150px;
  max-height: 42px;
}

.blog-site-nav {
  align-items: center;
  gap: 8px;
}

.blog-site-nav .nav-link {
  padding: 12px 14px;
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 600;
}

.blog-site-nav .nav-link:hover,
.blog-site-nav .nav-link:focus-visible {
  color: #EAF7FF !important;
}

.blog-page main {
  min-height: 60vh;
}

.blog-hero {
  position: relative;
  padding: 86px 0 74px;
  overflow: hidden;
}

.blog-hero::after {
  position: absolute;
  right: -100px;
  bottom: -240px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(0, 144, 221, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
}

.blog-eyebrow {
  margin: 0 0 14px;
  color: #0077B8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.blog-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #163A56;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
}

.blog-hero__description {
  max-width: 680px;
  margin: 18px 0 0;
  color: #607E94;
  font-size: 16px;
  line-height: 1.85;
}

.blog-list-section {
  padding: 18px 0 100px;
}

.blog-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 144, 221, 0.18);
}

.blog-section-heading__eyebrow {
  color: #0077B8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.blog-section-heading h2 {
  margin: 7px 0 0;
  color: #163A56;
  font-size: 30px;
}

.blog-section-heading > a,
.blog-card__link {
  color: #0077B8;
  text-decoration: none;
  font-weight: 700;
}

.blog-section-heading > a:hover,
.blog-card__link:hover {
  color: #005B8A;
}

.blog-card-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-card {
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 144, 221, 0.16);
  border-radius: 0;
  box-shadow: none;
}


.blog-card__body {
  min-width: 0;
  padding: 20px 24px;
}

.blog-card__meta,
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7890A1;
  font-size: 12px;
}

.blog-card__category,
.article-meta__category {
  color: #0077B8;
  font-weight: 700;
}

.blog-card h2 {
  margin: 12px 0 8px;
  color: #163A56;
  font-size: 19px;
  line-height: 1.45;
}

.blog-card__excerpt {
  margin: 0 0 14px;
  color: #6B8498;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.blog-card__link span {
  margin-left: 6px;
}

.blog-empty,
.blog-empty-page {
  padding: 42px 28px;
  color: #6B8498;
  text-align: center;
  background: rgba(255, 255, 255, 0.48);
  border: 1px dashed rgba(0, 144, 221, 0.24);
  border-radius: 8px;
}

.blog-empty-page {
  width: min(760px, calc(100% - 40px));
  margin: 76px auto 100px;
}

.blog-empty-page h1 {
  color: #163A56;
}

.article-page {
  padding: 58px 0 100px;
}

.article-page__inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.article-page h1 {
  margin: 16px 0 14px;
  color: #163A56;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.18;
}

.article-excerpt {
  margin: 0 0 26px;
  color: #607E94;
  font-size: 18px;
  line-height: 1.8;
}

.article-cover {
  display: block;
  width: 100%;
  max-height: 480px;
  margin: 28px 0 38px;
  border: 1px solid rgba(0, 144, 221, 0.14);
  border-radius: 8px;
  object-fit: cover;
}

.article-content {
  color: #304F68;
  font-size: 16px;
  line-height: 1.95;
}

.article-content h2 {
  margin: 40px 0 14px;
  color: #163A56;
  font-size: 28px;
}

.article-content h3 {
  margin: 30px 0 12px;
  color: #163A56;
  font-size: 22px;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.article-content a {
  color: #0077B8;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid rgba(0, 144, 221, 0.12);
  border-radius: 6px;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  color: #42657D;
  background: rgba(234, 247, 255, 0.78);
  border-left: 4px solid #0090DD;
}

.article-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding: 22px 24px;
  background: rgba(234, 247, 255, 0.68);
  border: 1px solid rgba(0, 144, 221, 0.2);
  border-radius: 8px;
}

.blog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: #FFFFFF !important;
  background: #0090DD;
  border: 1px solid #0090DD;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}

.blog-button:hover {
  color: #FFFFFF;
  background: #0077B8;
  border-color: #0077B8;
}

.blog-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #163A56;
  font-size: 13px;
}

@media (max-width: 991px) {
  .blog-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .blog-shell {
    width: min(100% - 28px, 1160px);
  }

  .blog-site-header .navbar-brand {
    min-height: 58px;
  }

  .blog-site-header .logo-color {
    max-width: 132px;
    max-height: 36px;
  }

  .blog-site-nav .nav-link {
    padding: 10px 4px;
  }

  .blog-hero {
    padding: 62px 0 50px;
  }

  .blog-list-section {
    padding: 10px 0 72px;
  }

  .blog-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .article-page {
    padding: 38px 0 70px;
  }

  .article-footer-cta {
    align-items: start;
    flex-direction: column;
  }
}


.blog-empty--install h3 {
  margin: 0 0 8px;
  color: #163A56;
}

.blog-empty--install p {
  margin: 0 0 18px;
  color: #6B8498;
}


.article-content pre {
  overflow-x: auto;
  margin: 18px 0 24px;
  padding: 17px 20px;
  color: #EAF7FF;
  background: #153A56;
  border: 1px solid #0F3046;
  border-left: 3px solid #0090DD;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.article-content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-family: Consolas, Monaco, monospace;
}

.article-content :not(pre) > code {
  padding: 2px 5px;
  color: #005B8A;
  background: #EAF7FF;
  border: 1px solid #D6EBF6;
  border-radius: 3px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9em;
}


/* Article index filters, compact rows, and pagination. */
.blog-list-section {
  width: min(880px, calc(100% - 40px));
}

.blog-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto auto;
  align-items: end;
  gap: 12px;
  margin: 0 0 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 144, 221, 0.16);
  border-radius: 6px;
}

.blog-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #42657D;
  font-size: 12px;
  font-weight: 700;
}

.blog-filter-field input,
.blog-filter-field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #163A56;
  background: #FFFFFF;
  border: 1px solid #D4E3EC;
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.blog-filter-field input:focus,
.blog-filter-field select:focus {
  border-color: #0090DD;
  outline: 2px solid rgba(0, 144, 221, 0.14);
}

.blog-filter-submit,
.blog-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.blog-filter-submit {
  color: #FFFFFF;
  background: #0090DD;
  border: 1px solid #0090DD;
  cursor: pointer;
}

.blog-filter-submit:hover {
  background: #0077B8;
  border-color: #0077B8;
}

.blog-filter-reset {
  color: #42657D;
  background: #FFFFFF;
  border: 1px solid #D4E3EC;
}

.blog-filter-reset:hover {
  color: #0077B8;
  border-color: #0090DD;
}

.blog-result-count {
  margin: 0 0 14px;
  color: #7890A1;
  font-size: 12px;
  text-align: right;
}

.blog-card__body {
  display: flex;
  align-items: center;
  gap: 24px;
}

.blog-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.blog-card__content h2 {
  overflow-wrap: anywhere;
}

.blog-card__link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  min-height: 40px;
  margin-left: 4px;
  white-space: normal;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.blog-pagination a,
.blog-pagination span:not(.blog-pagination__ellipsis) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  color: #42657D;
  background: #FFFFFF;
  border: 1px solid #D4E3EC;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}

.blog-pagination a:hover,
.blog-pagination .is-current {
  color: #FFFFFF !important;
  background: #0090DD !important;
  border-color: #0090DD !important;
}

.blog-pagination .is-disabled {
  color: #A4B4BF !important;
  background: #F5F8FA !important;
  cursor: not-allowed;
}

.blog-pagination__ellipsis {
  padding: 0 2px;
  color: #7890A1;
}

@media (max-width: 767px) {
  .blog-list-section {
    width: min(100% - 28px, 880px);
  }

  .blog-filter-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 13px;
  }

  .blog-filter-field--search {
    grid-column: 1 / -1;
  }

  .blog-card__body {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .blog-card__link {
    align-self: flex-end;
    min-height: auto;
    margin: 0;
    padding: 0;
    border-left: 0;
  }
}


.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 18px;
}

.article-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: #42657D;
  background: rgba(234, 247, 255, 0.72);
  border: 1px solid #D6EBF6;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
}
