.cms-board-shell {
  --cms-green: #173d33;
  --cms-green-soft: #e9f1ee;
  --cms-gold: #b39258;
  --cms-line: #dde5e1;
  --cms-text: #1d2925;
  margin-top: 34px;
}

.cms-board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cms-board-count {
  color: #66736e;
  font-size: 14px;
}

.cms-board-count strong {
  color: var(--cms-green);
}

.cms-board-search {
  position: relative;
  width: min(100%, 340px);
}

.cms-board-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--cms-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cms-text);
  font-size: 15px;
  outline: none;
}

.cms-board-search input:focus {
  border-color: var(--cms-green);
  box-shadow: 0 0 0 3px rgba(23, 61, 51, 0.09);
}

.cms-board-search svg {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--cms-green);
  stroke-width: 1.8;
}

.cms-board-list {
  border-top: 2px solid var(--cms-green);
}

.cms-board-item {
  display: grid;
  grid-template-columns: 72px 70px minmax(0, 1fr) 116px 24px;
  align-items: center;
  min-height: 76px;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--cms-line);
  color: var(--cms-text);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cms-board-item:hover {
  background: #f7faf9;
}

.cms-board-item.is-pinned {
  background: #fbfaf6;
}

.cms-board-number {
  color: #87918d;
  font-size: 14px;
  text-align: center;
}

.cms-board-thumb { display: block; overflow: hidden; width: 64px; height: 48px; border-radius: 7px; background: #eef3f1; }
.cms-board-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cms-board-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--cms-green-soft);
  color: var(--cms-green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cms-board-item.is-pinned .cms-board-tag {
  background: #f3ead8;
  color: #74571f;
}

.cms-board-title {
  min-width: 0;
}

.cms-board-title strong {
  display: block;
  overflow: hidden;
  color: #1f2925;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-board-title small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #7a8581;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-board-date {
  color: #6f7a76;
  font-size: 14px;
  text-align: right;
}

.cms-board-title .cms-board-date {
  display: none;
}

.cms-board-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #82908b;
  stroke-width: 1.7;
}

.cms-board-empty,
.cms-board-error,
.cms-board-loading {
  padding: 68px 24px;
  border-bottom: 1px solid var(--cms-line);
  color: #6a7671;
  text-align: center;
}

.cms-board-error {
  color: #8b3b37;
}

.cms-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 30px;
}

.cms-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cms-line);
  border-radius: 7px;
  background: #fff;
  color: #59645f;
  cursor: pointer;
}

.cms-pagination button[aria-current="page"] {
  border-color: var(--cms-green);
  background: var(--cms-green);
  color: #fff;
}

.cms-post {
  margin-top: 32px;
  border-top: 2px solid var(--cms-green);
}

.cms-post-head {
  padding: 30px 26px 24px;
  border-bottom: 1px solid var(--cms-line);
}

.cms-post-head .cms-board-tag {
  margin-bottom: 13px;
}

.cms-post-head h3 {
  margin: 0;
  color: #1d2925;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.cms-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 16px;
  color: #75807c;
  font-size: 14px;
}

.cms-post-body {
  min-height: 260px;
  padding: 42px 26px;
  color: #303b37;
  font-size: 16px;
  line-height: 1.9;
}

.cms-post-body p {
  margin: 0 0 18px;
}

.cms-post-body h3,
.cms-post-body h4 {
  margin: 34px 0 15px;
  color: var(--cms-green);
}

.cms-post-body ul,
.cms-post-body ol {
  margin: 12px 0 22px;
  padding-left: 24px;
}

.cms-post-cover {
  margin: 34px 26px 0;
  overflow: hidden;
  border-radius: 13px;
  background: #f2f5f4;
}

.cms-post-cover img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.cms-post-video { margin: -10px 26px 34px; }
.cms-post-video a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--cms-green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cms-post-attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 26px 34px;
  padding: 18px 20px;
  border: 1px solid var(--cms-line);
  border-radius: 10px;
  background: #f8faf9;
}

.cms-post-attachment a,
.cms-post-back {
  color: var(--cms-green);
  font-weight: 700;
  text-decoration: none;
}

.cms-post-actions {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  border-top: 1px solid var(--cms-line);
}

.cms-post-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 48px;
  border: 1px solid var(--cms-green);
  border-radius: 7px;
}

@media (max-width: 760px) {
  .cms-board-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .cms-board-search {
    width: 100%;
  }

  .cms-board-item {
    grid-template-columns: 55px minmax(0, 1fr) 18px;
    gap: 10px;
    min-height: 82px;
    padding: 13px 5px;
  }

  .cms-board-tag {
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
  }

  .cms-board-number {
    display: none;
  }

  .cms-board-thumb { grid-column: 1; grid-row: 1; width: 52px; height: 52px; }
  .cms-board-item.has-image .cms-board-tag { display: none; }

  .cms-board-title {
    grid-column: 2;
    grid-row: 1;
  }

  .cms-board-date {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    text-align: left;
  }

  .cms-board-item > .cms-board-date {
    display: none;
  }

  .cms-board-title .cms-board-date {
    display: block;
  }

  .cms-board-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .cms-board-title small {
    white-space: normal;
  }

  .cms-post-head,
  .cms-post-body {
    padding-right: 4px;
    padding-left: 4px;
  }

  .cms-post-attachment {
    align-items: flex-start;
    flex-direction: column;
    margin-right: 0;
    margin-left: 0;
  }

  .cms-post-cover { margin-right: 0; margin-left: 0; }
  .cms-post-video { margin-right: 0; margin-left: 0; }
}
