.cm-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 20px 80px;
}
.cm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.cm-tabs a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e9e4db;
  font-size: 13px;
  font-weight: 600;
  color: #5a6354;
  text-decoration: none;
  background: #fff;
}
.cm-tabs a.is-active,
.cm-tabs a:hover {
  background: #3e522d;
  border-color: #3e522d;
  color: #fff;
}
.cm-loading,
.cm-empty {
  text-align: center;
  color: #7c8370;
  padding: 48px 16px;
  font-size: 14px;
}
.cm-list {
  display: grid;
  gap: 12px;
}
.cm-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.cm-pager__btn {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #e9e4db;
  background: #fff;
  color: #5a6354;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.cm-pager__btn.is-active,
.cm-pager__btn:hover {
  background: #3e522d;
  border-color: #3e522d;
  color: #fff;
}
.cm-pager__meta {
  width: 100%;
  margin-top: 4px;
  text-align: center;
  font-size: 12px;
  color: #8a9284;
}
.cm-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e9e4db;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
@media (max-width: 640px) {
  .cm-card {
    grid-template-columns: 1fr;
  }
}
.cm-card:hover {
  box-shadow: 0 12px 28px rgba(26, 31, 22, 0.08);
  transform: translateY(-2px);
}
.cm-card__cover {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #f1f4ed;
}
.cm-card__cover--empty {
  min-height: 96px;
}
.cm-card__date {
  font-size: 12px;
  color: #a1a89a;
  margin: 0;
}
.cm-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}
.cm-card__topic {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2e8;
  color: #3e522d;
  font-size: 11px;
  font-weight: 700;
}
.cm-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.cm-topic {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e9e4db;
  background: #fff;
  color: #5a6354;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.cm-topic.is-active,
.cm-topic:hover {
  background: #3e522d;
  border-color: #3e522d;
  color: #fff;
}
.cm-card h2 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: #1a1f16;
}
.cm-card__excerpt {
  font-size: 13px;
  color: #5c5c5c;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cm-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.cm-gallery__item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e9e4db;
  background: #fff;
  text-decoration: none;
  color: #1a1f16;
}
.cm-gallery__item img,
.cm-gallery__ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f1f4ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #7c8370;
  padding: 12px;
  text-align: center;
}
.cm-gallery__item > span {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}
.cm-gallery--ba {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.cm-ba-thumb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #e9e4db;
}
.cm-ba-thumb__side {
  position: relative;
  min-width: 0;
}
.cm-ba-thumb__side img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.cm-ba-thumb__side span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(26, 31, 22, 0.72);
  border-radius: 4px;
}
.cm-gallery__cat {
  display: block;
  padding: 0 12px 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: #7c8370;
}
.cm-ba__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}
.cm-ba__side {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9e4db;
  background: #f1f4ed;
}
.cm-ba__side img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.cm-ba__side figcaption {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #3a4035;
  text-align: center;
}
.cm-ba__cat {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3e522d;
}
@media (max-width: 560px) {
  .cm-gallery--ba {
    grid-template-columns: 1fr;
  }
  .cm-ba__pair {
    gap: 8px;
  }
}
.cm-faq {
  border: 1px solid #e9e4db;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  padding: 4px 16px;
}
.cm-faq__cat {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #3e522d;
}
.cm-faq-q {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f1f4ed;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #3a4035;
}
.cm-faq-q table {
  width: 100%;
  border-collapse: collapse;
}
.cm-faq-a {
  font-size: 14px;
  line-height: 1.65;
  color: #1a1f16;
}
.cm-faq-a p {
  margin: 0 0 0.75em;
}
.cm-faq-a p:last-child {
  margin-bottom: 0;
}
.cm-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.cm-faq summary::-webkit-details-marker {
  display: none;
}
.cm-faq__body {
  padding: 0 0 16px;
  color: #5c5c5c;
  font-size: 14px;
  line-height: 1.7;
}
.cm-detail h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 8px 0 20px;
  line-height: 1.35;
}
.cm-detail__meta {
  font-size: 13px;
  color: #7c8370;
}
.cm-detail__meta a {
  color: #3e522d;
  font-weight: 600;
  text-decoration: none;
}
.cm-detail__cover {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 24px;
  max-height: 420px;
  object-fit: cover;
}
.cm-detail__body {
  font-size: 15px;
  line-height: 1.9;
  color: #3a4035;
  word-break: keep-all;
}
.cm-detail__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.cm-detail__body iframe,
.cm-youtube iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 240px;
  border: 0;
  border-radius: 12px;
}
.cm-youtube {
  margin: 0 0 20px;
}

/* Admin compose (visible only when logged in as admin) */
.cm-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed #c5cfb8;
  border-radius: 12px;
  background: #f4f7f0;
}
.cm-admin-toolbar__who {
  font-size: 12px;
  color: #5a6354;
}
.cm-admin-bar {
  display: flex;
  gap: 8px;
  margin: 12px 0 8px;
}
.cm-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #3e522d;
  color: #fff;
}
.cm-btn:hover {
  background: #2d3b1a;
}
.cm-btn--ghost {
  background: #fff;
  color: #3e522d;
  border: 1px solid #c5cfb8;
}
.cm-btn--ghost:hover {
  background: #f1f4ed;
}
.cm-btn--danger {
  background: #8b3a3a;
}
.cm-btn--danger:hover {
  background: #6e2c2c;
}
.cm-compose {
  background: #fff;
  border: 1px solid #e9e4db;
  border-radius: 16px;
  padding: 20px;
}
.cm-compose h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}
.cm-field {
  display: block;
  margin-bottom: 14px;
}
.cm-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #5a6354;
  margin-bottom: 6px;
}
.cm-field input[type="text"],
.cm-field input[type="url"],
.cm-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e9e4db;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #1a1f16;
  background: #fdfbf7;
}
.cm-field textarea {
  resize: vertical;
  min-height: 220px;
  line-height: 1.6;
}
.cm-field--inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3a4035;
}
.cm-compose__hint {
  font-size: 12px;
  color: #7c8370;
  margin: 0 0 14px;
}
.cm-compose__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.cm-compose__status {
  margin: 10px 0 0;
  font-size: 13px;
  color: #8b3a3a;
  min-height: 1.2em;
}
