.blog-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 22px 60px;
}

.post-list {
  display: grid;
  gap: 12px;
}

.post-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #f7fbff;
}

.post-row h3 {
  margin: 0 0 6px;
}

.post-row h3 a {
  color: #234a86;
  text-decoration: none;
}

.post-row h3 a:hover {
  color: #2f7dff;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-content {
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.82;
  max-width: 74ch;
}

.article-shell .lead {
  font-size: 1rem;
  color: #3f5f8f;
}

.post-byline {
  margin: 4px 0 14px;
  font-weight: 600;
  color: #315f9d;
}

.post-content h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.28rem;
  color: #1f4f93;
}

.post-content h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #2a629f;
}

.post-content p {
  margin: 0 0 11px;
}

.post-content ul {
  margin: 0 0 12px 22px;
  padding: 0;
}

.post-content li {
  margin-bottom: 7px;
}

.post-content .code-block {
  margin: 14px 0 16px;
  border: 1px solid #cad8ea;
  border-radius: 12px;
  background: #0f2037;
  color: #e8f1ff;
  padding: 14px;
  overflow-x: auto;
}

.post-content .code-block code {
  display: block;
  white-space: pre;
  font: 500 0.88rem/1.6 "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.post-content .code-block code[data-lang]::before {
  content: attr(data-lang);
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #d5e8ff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-list li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.file-entry {
  display: grid;
  gap: 6px;
}

.admin-card {
  border-color: #c7d8ef;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inline-form button {
  border: 0;
}

.inline-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-grid input[type="text"],
.form-grid input[type="password"],
.form-grid input[type="file"],
.form-grid textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #bfd0e8;
  border-radius: 10px;
  background: #fff;
  color: #1b2b44;
  padding: 11px;
  font-family: inherit;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-text {
  border: 1px solid #e3b0b0;
  background: #fff3f3;
  color: #7f2f2f;
  border-radius: 10px;
  padding: 10px;
}

.ok-text {
  border: 1px solid #badfcf;
  background: #f3fff9;
  color: #1f6b4f;
  border-radius: 10px;
  padding: 10px;
}

.attach-preview {
  width: min(100%, 460px);
  border: 1px solid #c8d9ef;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
