/* ==========================================================
   The Family Blog (blog.html, js/blog.js, js/blog-editor.js)
   Load after falkman.css
   ========================================================== */

#blog-posts {
  max-width: 850px;
  margin: 0 auto;
}

/* One post */
.blog-post {
  padding: 10px 0 20px;
  border-bottom: 1px solid #ddd5be;
}

.blog-post h2 {
  font-size: 1.3em;
  margin-bottom: 0;
}

.blog-post h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-post h2 a:hover {
  color: #7A5C2E;
}

.blog-date {
  margin-top: 4px;
  font-size: 0.85em;
  color: #6b6450;
}

.blog-photo {
  margin: 10px auto 15px;
  text-align: center;
}

.blog-photo img {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(158, 130, 40, 0.5);
}

.blog-photo figcaption {
  margin-top: 6px;
  font-size: 0.85em;
  font-style: italic;
}

.blog-more,
.blog-back {
  font-weight: bold;
}

.blog-more a,
.blog-back a {
  color: #485E48;
}

.blog-note {
  text-align: center;
  font-style: italic;
}

/* Comments (filled in by Isso on the web server) */
.blog-comments {
  max-width: 850px;
  margin: 30px auto 0;
}

.blog-comments h3 {
  font-size: 1.1em;
}

#isso-thread {
  font-family: inherit;
}

/* ===== Your own PC only: Add / Edit post ===== */
.blog-tools {
  text-align: center;
}

.blog-button {
  font-family: inherit;
  font-size: 1em;
  padding: 0.4em 1em;
  border: 1px solid #2d2f24;
  border-radius: 4px;
  background: #ebd79f;
  cursor: pointer;
}

.blog-button:hover {
  background: #ddd5be;
}

.blog-button.small {
  font-size: 0.8em;
}

.blog-button.plain {
  background: #ffffff;
}

.blog-button.danger {
  background: #a33;
  color: #ffffff;
  margin-left: auto;
}

.blog-form {
  max-width: 850px;
  margin: 0 auto 20px;
}

.blog-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  background: #f1e9d2;
  border: 2px solid #2d2f24;
}

.blog-form legend {
  font-weight: bold;
  color: #485E48;
}

.blog-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: bold;
}

.blog-form .hint {
  font-weight: normal;
  font-size: 0.8em;
}

.blog-form input[type="text"],
.blog-form input[type="date"],
.blog-form textarea {
  font-family: inherit;
  font-size: 0.95em;
  padding: 4px 6px;
  box-sizing: border-box;
  width: 100%;
}

.blog-form-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-form-pair label {
  flex: 1 1 200px;
}

.blog-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-status {
  text-align: center;
  font-weight: bold;
  color: #485E48;
  min-height: 1.2em;
}

.form-status.error {
  color: #a33;
}
