/* Compact journal layout, using the existing Magic UI type and color tokens. */
.midnight.page-blog #main.cherin-blog-main {
  width: min(760px, calc(100% - 48px));
  padding-top: 58px;
  min-height: calc(100dvh - 290px);
}
.page-blog .cherin-blog-intro {
  position: relative;
  padding: 0 0 30px;
  border-bottom: 1px solid #e5e5e5;
}
.page-blog .cherin-blog-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-blog .cherin-blog-heading h1 {
  margin: 0;
  font: 700 30px/1.3 var(--sans);
  letter-spacing: -0.055em;
  color: #171717;
}
.page-blog .cherin-blog-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
  color: #737373;
  font-size: 12px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.page-blog .cherin-blog-count:empty {
  display: none;
}
.page-blog .cherin-blog-intro > p {
  margin: 10px 0 0;
  color: #737373;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: -0.025em;
  word-break: keep-all;
}
.page-blog .cherin-blog-intro > .board-auth {
  margin-top: 18px;
}
.midnight.page-blog #main .journal-layout {
  display: block;
  padding: 0 0 30px;
}
.midnight.page-blog #main .blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0 20px;
}
.midnight.page-blog #main .blog-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  color: #737373;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.midnight.page-blog #main .blog-tab:hover {
  background: #fafafa;
  color: #171717;
  border-color: #d4d4d4;
}
.midnight.page-blog #main .blog-tab[aria-current="page"] {
  background: #171717;
  color: #fff;
  border-color: #171717;
  font-weight: 500;
}
.midnight.page-blog #main .blog-tab:focus-visible {
  outline: 2px solid #737373;
  outline-offset: 3px;
}
.midnight.page-blog #main .board-view {
  margin-top: 0;
}
.midnight.page-blog #main .blog-list {
  display: block;
  counter-reset: journal-post;
  border-top: 1px solid #e5e5e5;
}
.midnight.page-blog #main .board-item {
  counter-increment: journal-post;
}
.midnight.page-blog #main .board-item > a {
  display: block;
  position: relative;
  padding: 24px 10px 24px 48px;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
  transition: background 0.18s;
}
.midnight.page-blog #main .board-item > a::before {
  content: counter(journal-post, decimal-leading-zero);
  position: absolute;
  left: 3px;
  top: 28px;
  color: #a3a3a3;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.midnight.page-blog #main .board-item > a:hover {
  background: #fafafa;
  box-shadow: none;
  transform: none;
}
.midnight.page-blog #main .board-item > a:focus-visible {
  outline: 2px solid #737373;
  outline-offset: 3px;
  border-radius: 8px;
}
.midnight.page-blog #main .board-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.midnight.page-blog #main .board-item-head h2 {
  flex: 1 1 100%;
  margin: 3px 0 0;
  color: #171717;
  font: 600 18px/1.55 var(--sans);
  letter-spacing: -0.035em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.midnight.page-blog #main .board-item > a:hover h2 {
  color: #171717;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.midnight.page-blog #main .blog-cat,
.midnight.page-blog #main .board-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
  color: #737373;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}
.midnight.page-blog #main .blog-cat[data-category="partner"] {
  color: #52677b;
  background: #f3f6f9;
  border-color: #e2e8f0;
}
.midnight.page-blog #main .blog-cat[data-category="project"] {
  color: #70634d;
  background: #f8f6f1;
  border-color: #eae5da;
}
.midnight.page-blog #main .board-item.is-pinned > a {
  padding-inline: 48px 10px;
  border-color: #e5e5e5;
  background: #fafafa;
}
.midnight.page-blog #main .board-badge {
  background: #171717;
  color: #fff;
  border-color: #171717;
}
.midnight.page-blog #main .board-item-comments {
  margin-left: auto;
  color: #a3a3a3;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}
.midnight.page-blog #main .board-item-excerpt {
  margin: 7px 0 11px;
  color: #737373;
  font-size: 12px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.midnight.page-blog #main .board-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8c8c8c;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: -0.015em;
}
.midnight.page-blog #main .board-avatar-sm {
  width: 18px;
  height: 18px;
  background: #f5f5f5;
  color: #737373;
  font-size: 9px;
  border: 1px solid #e5e5e5;
}
.midnight.page-blog #main .board-meta time {
  opacity: 1;
}
.midnight.page-blog #main .board-meta time::before {
  margin-right: 6px;
  color: #d4d4d4;
}
.midnight.page-blog #main .board-empty {
  padding: 65px 24px;
  background: #fafafa;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0;
  color: #8c8c8c;
  font-size: 13px;
  line-height: 1.9;
}
.midnight.page-blog #main .board-empty::before {
  content: "✦";
  margin-bottom: 13px;
  font-size: 23px;
  color: #a3a3a3;
}
.midnight.page-blog #main .board-pager {
  margin-top: 24px;
  gap: 5px;
}
.midnight.page-blog #main .board-pager a {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  border-color: #e5e5e5;
  color: #737373;
  font-size: 11px;
}
.midnight.page-blog #main .board-pager a[aria-current="page"] {
  background: #171717;
  color: #fff;
  border-color: #171717;
}
.midnight.page-blog #main .board-back {
  font-size: 12px;
  margin: 3px 0 20px;
  color: #737373;
}
.midnight.page-blog #main .board-article {
  padding: 28px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  background: #fff;
}
.midnight.page-blog #main .board-article-title {
  margin: 14px 0;
  font: 650 clamp(23px, 3vw, 30px) / 1.45 var(--sans);
  letter-spacing: -0.045em;
  color: #171717;
}
.midnight.page-blog #main .board-article-body {
  color: #525252;
  font-size: 14px;
  line-height: 2;
  letter-spacing: -0.015em;
}
.midnight.page-blog #main .board-article-body a {
  color: #171717;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.midnight.page-blog #main .blog-files li > a,
.midnight.page-blog #main .blog-files-edit li {
  background: #fafafa;
  color: #525252;
  border-color: #e5e5e5;
  border-radius: 8px;
}
.midnight.page-blog #main .blog-files li > a:hover {
  background: #f5f5f5;
  color: #171717;
}
.midnight.page-blog #main .blog-files li > a::before {
  color: #737373;
}
.midnight.page-blog #main .board-form {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  padding: 26px;
  gap: 22px;
}
.midnight.page-blog #main .board-field > span {
  color: #404040;
  font-size: 12px;
}
.midnight.page-blog #main .board-field :is(input, textarea, select) {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #404040;
  font-size: 14px;
}
.midnight.page-blog #main .board-field :is(input, textarea, select):focus {
  border-color: #a3a3a3;
  box-shadow: 0 0 0 3px #f5f5f5;
}
.midnight.page-blog #main .board-btn {
  min-height: 34px;
  border-color: #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #525252;
  font-size: 11px;
}
.midnight.page-blog #main .board-btn-primary {
  color: #fff;
  background: #171717;
  border-color: #171717;
}
.midnight.page-blog #main .board-btn-primary:hover {
  color: #fff;
  background: #404040;
  border-color: #404040;
}
.midnight.page-blog #main .blog-check {
  font-size: 12px;
  color: #737373;
}
.midnight.page-blog #main .blog-check input {
  accent-color: #171717;
}
.midnight.page-blog #main .board-notice {
  margin: 18px 0;
  font-size: 12px;
  background: #fafafa;
  color: #737373;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}
.midnight.page-blog #main .board-notice[data-tone="error"] {
  background: #fff7f7;
  border-color: #f0dada;
  color: #a34040;
}
@media (max-width: 767px) {
  .midnight.page-blog #main.cherin-blog-main {
    width: calc(100% - 44px);
    padding-top: 42px;
  }
  .page-blog .cherin-blog-heading h1 {
    font-size: 27px;
  }
  .page-blog .cherin-blog-intro {
    padding-bottom: 24px;
  }
  .page-blog .cherin-blog-intro > p {
    font-size: 13px;
    max-width: 290px;
  }
  .midnight.page-blog #main .blog-tabs {
    margin: 20px 0 16px;
    gap: 6px;
  }
  .midnight.page-blog #main .blog-tab {
    font-size: 11px;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 9px;
  }
  .midnight.page-blog #main .board-item > a,
  .midnight.page-blog #main .board-item.is-pinned > a {
    padding: 21px 3px 21px 34px;
  }
  .midnight.page-blog #main .board-item > a::before {
    left: 0;
    top: 25px;
    font-size: 10px;
  }
  .midnight.page-blog #main .board-item-head h2 {
    font-size: 16px;
    line-height: 1.55;
  }
  .midnight.page-blog #main .board-item-excerpt {
    font-size: 11px;
    line-height: 1.8;
  }
  .midnight.page-blog #main .board-meta {
    font-size: 10px;
  }
  .midnight.page-blog #main .board-article,
  .midnight.page-blog #main .board-form {
    padding: 22px 18px;
  }
  .midnight.page-blog #main .board-article-body {
    font-size: 13px;
    line-height: 1.95;
  }
  .midnight.page-blog #main .board-field :is(input, textarea, select) {
    font-size: 16px;
  }
  .midnight.page-blog #main .board-empty {
    padding: 52px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .midnight.page-blog #main .blog-tab,
  .midnight.page-blog #main .board-item > a {
    transition: none;
  }
}
