body {
  animation: none !important;
  transition: none !important;
}
.site-header .brand {
  animation: none;
}
.blog-shell {
  width: min(1000px, calc(100% - 40px));
  margin: 100px auto 56px;
  min-height: 60vh;
}
.blog-shell h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.5;
}
.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.blog-card {
  background: white;
  border-radius: 0;
  padding: 30px 0;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}
.blog-card h2 {
  font-size: 23px;
  line-height: 1.6;
}
.blog-shell a {
  color: #1554ee;
}
.blog-shell p,
.blog-content li {
  line-height: 2;
}
.blog-shell > article {
  max-width: 760px;
  margin: auto;
}
.blog-description,
time {
  color: #6e6e73;
}
.blog-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 24px;
}
.blog-content {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.blog-content h2,
.blog-content h3 {
  margin-top: 36px;
}
.blog-pagination {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #1554ee;
  outline-offset: 4px;
}
#blog-editor {
  width: min(850px, 90vw);
  max-height: 90vh;
  overflow: auto;
}
#blog-editor textarea[name^='content_'] {
  min-height: 280px;
}
#blog-preview-frame {
  width: 100%;
  height: 65vh;
  border: 1px solid #ddd;
}
#blog-message {
  display: block;
  margin: 12px 0;
}
#blog-editor .blog-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-card img {
  width: 200px;
  height: 140px;
  float: inline-end;
  margin-inline-start: 24px;
  margin-block-end: 12px;
}
.blog-card h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
}
.blog-card p {
  max-width: 780px;
  margin: 0 0 16px;
  color: #6e6e73;
}
.blog-shell {
  animation: blog-enter 0.3s ease both;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}
body.blog-exit .blog-shell,
body.blog-exit footer {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}
@keyframes blog-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.blog-content strong {
  font-weight: 700;
}
.blog-content code {
  font-family: ui-monospace, monospace;
  background: #e9e9ed;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
}
.blog-content pre {
  background: #161925;
  color: #f5f5f7;
  padding: 20px;
  border-radius: 14px;
  overflow: auto;
  direction: ltr;
  text-align: left;
}
.blog-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.blog-content blockquote {
  border-inline-start: 3px solid #1554ee;
  margin: 24px 0;
  padding: 4px 22px;
  background: #eef2ff;
  border-radius: 8px;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.blog-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.blog-content hr {
  border: 0;
  border-top: 1px solid #d6d6de;
  margin: 32px 0;
}
.blog-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
.blog-content table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 15px;
}
.blog-content th,
.blog-content td {
  border: 1px solid #d9d9e0;
  padding: 12px;
  text-align: start;
  line-height: 1.8;
}
.blog-content th {
  background: #e9edf8;
  font-weight: 600;
}
#blog-editor {
  width: min(1100px, 94vw);
}
.blog-language-tabs,
.blog-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.blog-language-tabs button[aria-selected='true'] {
  background: #1554ee;
  color: white;
}
.blog-toolbar button {
  padding: 7px 10px !important;
  font-size: 13px !important;
}
.blog-editor-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.blog-editor-columns textarea {
  min-height: 350px !important;
  font-family: inherit;
  line-height: 1.8;
}
.blog-live-preview {
  padding: 18px;
  background: #f5f5f7;
  border: 1px solid #ddd;
  border-radius: 12px;
  max-height: 470px;
  overflow: auto;
  font-size: 15px;
}
#blog-editor fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#blog-editor [hidden] {
  display: none !important;
}
.blog-language-note {
  color: #6e6e73;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .blog-editor-columns {
    grid-template-columns: 1fr;
  }
  .blog-card img {
    float: none;
    width: 100%;
    height: 200px;
    margin: 0 0 16px;
  }
  .blog-content {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-shell,
  body.blog-exit .blog-shell,
  body.blog-exit footer {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
