.cms-publications { margin-block: 3rem; text-align: start; scroll-margin-top: 6rem; }
.cms-heading { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 800; color: #0f382c; }
.cms-separation, .cms-date { color: #52615c; font-size: .875rem; margin-block: .5rem 1rem; }
.cms-message { background: #e8f0ec; border: 1px solid #c6d8cf; padding: 1rem; border-radius: .8rem; margin-block: 1rem; }
.cms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.cms-card, .cms-detail { padding: clamp(1rem, 3vw, 2rem); border: 1px solid #d7e0db; background: #fff; border-radius: 1.25rem; min-width: 0; overflow-wrap: anywhere; }
.cms-card { display: flex; flex-direction: column; gap: .8rem; }
.cms-entry-title { font-size: 1.2rem; font-weight: 750; line-height: 1.6; }
.cms-detail .cms-entry-title { font-size: clamp(1.4rem, 4vw, 2rem); margin-block-end: 1rem; }
.cms-entry-image { width: 100%; height: auto; max-height: 24rem; object-fit: contain; border-radius: .7rem; margin-block: .75rem; }
.cms-action { display: inline-block; width: fit-content; color: #0f382c; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; margin-block: 1rem; }
.cms-action:focus-visible { outline: 3px solid #0f382c; outline-offset: 4px; }
.cms-card .cms-action { margin-block-start: auto; padding-block-start: .8rem; }
.cms-status { color: #0f382c; font-weight: 600; }
.cms-summary, .cms-markdown { line-height: 1.9; white-space: normal; overflow-wrap: anywhere; }
.cms-markdown p, .cms-markdown ul, .cms-markdown ol, .cms-markdown blockquote, .cms-markdown pre, .cms-markdown table { margin-block: 1rem; }
.cms-markdown ul, .cms-markdown ol { padding-inline-start: 1.5rem; }
.cms-markdown ul { list-style: disc; }
.cms-markdown ol { list-style: decimal; }
.cms-markdown h2, .cms-markdown h3, .cms-markdown h4 { font-weight: 750; font-size: 1.2em; margin-block: 1.2rem .6rem; }
.cms-markdown a { text-decoration: underline; color: #0f382c; overflow-wrap: anywhere; unicode-bidi: isolate; }
.cms-markdown blockquote { border-inline-start: 4px solid #c6d8cf; padding-inline-start: 1rem; }
.cms-markdown pre { overflow-x: auto; max-width: 100%; padding: 1rem; background: #f1f5f3; }
.cms-markdown img { max-width: 100%; height: auto; }
.cms-markdown table { display: block; max-width: 100%; overflow-x: auto; }
.cms-markdown td, .cms-markdown th { border: 1px solid #c6d8cf; padding: .5rem; }
.cms-summary { unicode-bidi: plaintext; }

/* Empty state styling */
.cms-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 1.5rem;
  margin-block: 1.5rem;
}
.cms-empty-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0ec;
  color: #0f382c;
  border-radius: 1rem;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.cms-empty-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: #0f382c;
  margin-bottom: 0.5rem;
}
.cms-empty-desc {
  font-size: 0.925rem;
  color: #64748b;
  max-width: 32rem;
  line-height: 1.6;
}

/* View All button styling */
.cms-view-all-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.cms-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: #0f382c;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.925rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.cms-view-all-btn:hover {
  background: #185a47;
  transform: translateY(-1px);
}
.cms-view-all-btn:focus-visible {
  outline: 3px solid #0f382c;
  outline-offset: 4px;
}

/* Archive view styling */
.cms-archive-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.cms-archive-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #0f382c;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}
.cms-archive-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

/* Pagination styling */
.cms-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.cms-pagination-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f382c;
  border: 1px solid #cbd5e1;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cms-pagination-btn:hover {
  background: #0f382c;
  color: #ffffff;
  border-color: #0f382c;
}
.cms-pagination-btn:focus-visible {
  outline: 3px solid #0f382c;
  outline-offset: 3px;
}
.cms-pagination-info {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

/* News cards layout: Image RIGHT, Text LEFT on desktop; Image ABOVE text on mobile */
.cms-news-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cms-news-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  gap: 0;
}
.cms-news-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}
.cms-news-thumb {
  width: 100%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cms-news-thumb img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.cms-news-content {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
@media (min-width: 768px) {
  .cms-news-card.has-image:not(.cms-certificate-card) {
    flex-direction: row-reverse;
  }
  [dir="rtl"] .cms-news-card.has-image:not(.cms-certificate-card) {
    flex-direction: row;
  }
  .cms-news-card.has-image:not(.cms-certificate-card) .cms-news-thumb {
    width: 38%;
    min-width: 280px;
    max-width: 440px;
    flex-shrink: 0;
  }
  .cms-news-card.has-image:not(.cms-certificate-card) .cms-news-thumb img {
    height: 100%;
    max-height: 100%;
  }
}

.cms-news-card[data-category="official-statements"] .cms-news-thumb img {
  object-fit: contain;
  padding: 0.5rem;
}

#static-news-content[hidden],
#static-news-content.hidden {
  display: none !important;
}

.cms-empty-additional {
  text-align: center;
  padding: clamp(1.75rem, 3vw, 2.5rem) 1.5rem;
  margin-block: 1.5rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 1.5rem;
}
.cms-empty-additional .cms-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.cms-empty-additional .cms-empty-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.375rem;
}
.cms-empty-additional .cms-empty-desc {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 32rem;
  margin-inline: auto;
  line-height: 1.5;
}

/* Ceremony photo album toggle and container (SIOS-WEB-11F.2C / 11F.2D) */
.cms-certificate-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
}
.cms-certificate-card .cms-news-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}
@media (min-width: 768px) {
  .cms-certificate-card .cms-news-row {
    flex-direction: row-reverse;
  }
  [dir="rtl"] .cms-certificate-card .cms-news-row {
    flex-direction: row;
  }
  .cms-certificate-card .cms-news-thumb {
    width: 38%;
    min-width: 280px;
    max-width: 440px;
    flex-shrink: 0;
  }
  .cms-certificate-card .cms-news-thumb img {
    height: 100%;
    max-height: 100%;
  }
}
.cms-card-gallery {
  width: 100%;
}
#ceremony-album > summary {
  display: none !important;
}
#ceremony-album:not([open]) {
  display: none !important;
}
#ceremony-album[open] {
  display: block;
  width: 100%;
}
.cms-album-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  background-color: #0f382c;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  width: fit-content;
  margin-top: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.cms-album-toggle-btn:hover {
  background-color: #185a47;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(15, 56, 44, 0.2);
}
.cms-album-toggle-btn:focus-visible {
  outline: 3px solid #0f382c;
  outline-offset: 3px;
}
