.blog-page,
.blog-editor {
  padding: 104px 0 64px;
  background: #f8fafb;
  min-height: 100vh;
  color: #17202a;
}

.blog-shell,
.blog-article,
.blog-editor > section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.blog-head {
  margin-bottom: 28px;
}

.blog-kicker {
  margin: 0 0 8px;
  color: #6d7b72;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: 0;
  font-weight: 700;
}

.blog-head h1,
.blog-article__head h1,
.editor-topbar h1,
.editor-panel h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 750;
}

.blog-head p,
.editor-topbar p {
  margin: 10px 0 0;
  color: #667085;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-list--cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  justify-content: start;
}

.blog-card {
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(31, 41, 55, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: #d6dee3;
  box-shadow: 0 24px 46px rgba(31, 41, 55, .12);
}

.blog-card__media {
  display: block;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-card__media img,
.blog-card__media span {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.blog-card__media span {
  background: linear-gradient(135deg, #e9eff1, #f7f1e8);
}

.blog-card__body {
  padding: 18px;
}

.blog-card time,
.blog-article__head time {
  display: block;
  color: #7b8794;
  font-size: .9rem;
  margin-bottom: 9px;
}

.blog-card__title {
  display: block;
  color: #17202a;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 720;
  text-decoration: none;
}

.blog-card__title:hover,
.blog-back:hover,
.editor-actions a:hover,
.editor-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-card p {
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.6;
}

.blog-list--list .blog-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
}

.blog-list--list .blog-card__media {
  aspect-ratio: auto;
  min-height: 210px;
  max-height: 260px;
}

.blog-list--list .blog-card__media img,
.blog-list--list .blog-card__media span {
  height: 100%;
}

.blog-empty,
.editor-muted {
  color: #667085;
}

.blog-empty--feature {
  grid-column: 1 / -1;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid #e2e9ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 41, 55, .05);
}

.blog-empty--feature h2 {
  margin: 0 0 10px;
  color: #17202a;
  font-size: 1.55rem;
  line-height: 1.2;
}

.blog-empty--feature p {
  margin: 0;
  max-width: 680px;
  line-height: 1.65;
}

.blog-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.blog-pager a,
.blog-pager span {
  min-width: 42px;
  height: 42px;
  border: 1px solid #dfe6ea;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #17202a;
  text-decoration: none;
}

.blog-pager span:not(.is-disabled) {
  min-width: 84px;
}

.blog-pager .is-disabled {
  color: #a0a8b0;
}

.blog-article {
  max-width: 920px;
}

.blog-article__hero {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e7ecef;
}

.blog-article__hero img {
  width: 100%;
  height: auto;
  max-height: 680px;
  display: block;
  object-fit: contain;
}

.blog-back,
.editor-link {
  display: inline-block;
  margin-bottom: 12px;
  color: #5f6f65;
  text-decoration: none;
  font-weight: 650;
}

.blog-content {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 8px;
  padding: clamp(20px, 4vw, 42px);
  line-height: 1.75;
  color: #303a45;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.blog-content figure,
.blog-content picture,
.blog-content .media {
  max-width: 100% !important;
  width: 100% !important;
  margin: 26px auto !important;
  box-sizing: border-box;
}

.blog-content .image {
  max-width: 100% !important;
  margin: 22px auto !important;
  box-sizing: border-box;
}

.blog-content img,
.blog-content video,
.blog-content iframe {
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin: 6px 10px 8px 0;
  border-radius: 8px;
  vertical-align: middle;
}

.blog-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.blog-content figure img,
.blog-content picture img,
.blog-content .image img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.blog-content img.image_resized,
.blog-content p > img {
  width: auto;
  max-width: min(100%, 360px);
  display: inline-block;
  object-fit: contain;
}

.blog-content p > img:first-child {
  margin-left: 0;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.blog-content th,
.blog-content td {
  border: 1px solid #dfe6ea;
  padding: 10px 12px;
}

.editor-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editor-actions a,
.editor-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #dfe6ea;
  background: #fff;
  color: #17202a;
  text-decoration: none;
  font-weight: 650;
}

.editor-form button {
  border-color: #17202a;
  background: #17202a;
  color: #fff;
  cursor: pointer;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.editor-panel {
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, .05);
}

.editor-panel--narrow {
  max-width: 460px;
}

.editor-panel h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.editor-form {
  display: grid;
  gap: 14px;
}

.editor-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 650;
}

.editor-form input[type="text"],
.editor-form input[type="password"],
.editor-form input[type="number"],
.editor-form input[type="datetime-local"],
.editor-form input[type="file"],
.editor-form select,
.editor-form textarea {
  width: 100%;
  border: 1px solid #dfe6ea;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: #17202a;
  background: #fff;
}

.editor-form textarea {
  min-height: 130px;
}

.editor-form--post {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-field--content,
.editor-field--excerpt,
.editor-field--seo_description {
  grid-column: 1 / -1;
}

.editor-advanced {
  grid-column: 1 / -1;
  border: 1px solid #e7ecef;
  border-radius: 8px;
  padding: 0;
  background: #fbfcfd;
}

.editor-advanced summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #344054;
  font-weight: 700;
}

.editor-advanced__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 14px 14px;
}

.editor-field--content .ck-editor__editable {
  min-height: 360px;
}

.editor-table {
  display: grid;
  gap: 8px;
}

.editor-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid #eef2f4;
  border-radius: 8px;
  padding: 12px;
  color: #17202a;
  text-decoration: none;
}

.editor-row:hover {
  border-color: #d6dee3;
  background: #fafbfb;
}

.editor-row strong,
.editor-row small {
  display: block;
}

.editor-row small,
.editor-row em {
  color: #667085;
  font-size: .88rem;
  font-style: normal;
}

.editor-messages {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.editor-messages div,
.errorlist {
  border-radius: 8px;
  padding: 10px 12px;
  background: #eef8f2;
  color: #1f6b43;
}

.errorlist {
  margin: 0;
  color: #9f1d1d;
  background: #fff1f1;
}

@media (max-width: 768px) {
  .blog-page,
  .blog-editor {
    padding: 82px 0 44px;
  }

  .blog-head h1,
  .blog-article__head h1,
  .editor-topbar h1,
  .editor-panel h1 {
    font-size: 1.65rem;
  }

  .blog-list,
  .blog-list--cards,
  .blog-list--list {
    grid-template-columns: 1fr;
  }

  .blog-list--list .blog-card {
    display: block;
  }

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

  .blog-card:hover {
    transform: none;
  }

  .editor-topbar,
  .editor-grid,
  .editor-form--post {
    display: grid;
    grid-template-columns: 1fr;
  }

  .editor-actions {
    justify-content: flex-start;
  }

  .editor-actions a {
    flex: 1 1 auto;
  }

  .editor-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
