/* Mostly layout-only rules for /diary and /admin pages — color and other
   decoration stays in style.css, hand-tuned by everleaf. The font-family
   and color below are the deliberate exceptions, added on request, and
   match the same #7ea77e used by .title/.mbtext/.smalltext/etc. in
   style.css so diary entries don't clash with the rest of the site. */

.diary-box {
  width: 500px;
  max-width: 100%;
  min-height: 400px;
  padding: 15px;
  overflow-y: auto;
  box-sizing: border-box;
}

.diary-entry {
  margin-bottom: 25px;
  padding-bottom: 15px;
}

.diary-entry-title,
.diary-entry-date,
.diary-entry-body {
  font-family: "meditative", sans-serif;
  color: #7ea77e;
}

.diary-entry-body a,
.diary-entry-title a,
.diary-entry-title a:visited {
  color: #7ea77e;
}

.diary-entry-title {
  margin: 0;
}

.diary-entry-date {
  margin: 4px 0 10px;
}

.diary-entry-body img {
  max-width: 100%;
  height: auto;
}

.admin-entry-row {
  display: block;
}

.admin-entry-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0;
}

.admin-inline-form {
  display: inline;
  margin: 0;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.admin-label {
  margin-top: 8px;
}

.admin-input,
.admin-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.admin-textarea {
  resize: vertical;
}

.admin-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
