/* Styles for the parts the content manager adds (news, filters, article extras).
   Every rule starts with a "cms-" class, so nothing else on the site is affected. */

/* listing: featured post, search, filters, pages */
.cms-listing .cms-dup { display: none; }
.cms-listing.cms-filtering .cms-dup { display: block; }
.cms-listing.cms-filtering .cms-featured { display: none; }
.cms-featured { display: block; padding: 20px; margin-top: 30px; margin-bottom: 10px; }
.cms-featured-img { position: relative; border-radius: 6px; overflow: hidden; }
.cms-featured-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.cms-featured-text { padding: 10px 10px 10px 4px; }
.cms-featured-text .blog-card-caption { font-size: 30px; line-height: 1.2; margin: 6px 0 12px; }
.cms-featured-text p { margin-bottom: 18px; }
.cms-featured-label { display: inline-block; background: #c23788; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; }
.cms-card-meta { margin: 0 0 4px; font-size: 13px !important; color: #777; letter-spacing: .2px; }
.cms-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 30px 0 10px; }
.cms-search { flex: 1 1 260px; max-width: 420px; margin: 0; }
.cms-search input { width: 100%; height: 46px; border: 1px solid #ddd; border-radius: 6px; padding: 0 16px; font-size: 16px; background: #fff; }
.cms-search input:focus { outline: none; border-color: #c23788; box-shadow: 0 0 0 3px rgba(194, 55, 136, .15); }
.cms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cms-chip { display: inline-block; padding: 7px 16px; border: 1px solid #e1d7dc; border-radius: 99px; background: #fff; color: #333; font-size: 14px; line-height: 1.3; text-decoration: none; transition: all .2s; }
.cms-chip:hover { border-color: #c23788; color: #c23788; text-decoration: none; }
.cms-chip.is-active { background: #c23788; border-color: #c23788; color: #fff; }
.cms-empty { padding: 40px 0; text-align: center; }
.cms-empty-text { color: #777; font-size: 18px !important; }
.cms-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 40px; }
.cms-pager:empty { display: none; }
.cms-pager a, .cms-pager span { display: inline-block; min-width: 42px; height: 42px; line-height: 40px; padding: 0 12px; text-align: center; border: 1px solid #e1d7dc; border-radius: 6px; color: #333; background: #fff; text-decoration: none; }
.cms-pager a:hover { border-color: #c23788; color: #c23788; }
.cms-pager .is-current { background: #c23788; border-color: #c23788; color: #fff; }
.cms-clip { cursor: zoom-in; }
.cms-home-section .cms-card-meta { margin-bottom: 8px; }

/* article page */
.cms-category { display: inline-block; margin-bottom: 10px; color: #c23788; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.cms-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 4px 0 22px; color: #666; }
.cms-meta li { font-size: 15px !important; }
.cms-meta .fa { color: #c23788; margin-right: 4px; }
.cms-body h2[id], .cms-faq[id] { scroll-margin-top: 140px; }
.cms-body h4 { font-size: 20px; }
.cms-body blockquote { border-left: 4px solid #c23788; background: #f7f7f3; margin: 24px 0; padding: 14px 20px; font-style: italic; }
.cms-body pre { background: #2b2b2b; color: #f5f5f5; padding: 16px; border-radius: 6px; overflow-x: auto; white-space: pre; font-size: 14px; }
.cms-body mark { background: #fff2a8; padding: 0 2px; }
.cms-body hr { border: 0; border-top: 2px solid #eee; margin: 30px 0; }
.cms-body img { max-width: 100%; height: auto; border-radius: 6px; }
.cms-body ol, .cms-body ul { padding-left: 24px; margin-bottom: 20px; }
.cms-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.cms-table-wrap table { min-width: 520px; margin: 0; }
.cms-table-wrap caption { caption-side: top; text-align: left; font-weight: 700; color: #333; padding: 0 0 8px; }
.cms-embed { position: relative; width: 100%; padding-top: 56.25%; margin: 24px 0; border-radius: 6px; overflow: hidden; background: #f2f2f2; }
.cms-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cms-embed-map { padding-top: 60%; }
.cms-faq { margin: 34px 0 10px; }
.cms-faq-item { border: 1px solid #eadfe5; border-radius: 6px; margin-bottom: 10px; background: #fff; }
.cms-faq-item summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; font-size: 17px; position: relative; list-style: none; }
.cms-faq-item summary::-webkit-details-marker { display: none; }
.cms-faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 10px; font-size: 24px; color: #c23788; }
.cms-faq-item[open] summary::after { content: '\2212'; }
.cms-faq-answer { padding: 0 18px 8px; }
.cms-readmore { margin-top: 24px; font-weight: 600; }
.cms-cta { margin: 30px 0; }
.cms-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 20px; padding-top: 20px; border-top: 1px solid #eee; }
.cms-share-label { font-weight: 600; margin-right: 6px; }
.cms-share a, .cms-share button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e1d7dc; background: #fff; color: #c23788; font-size: 17px; cursor: pointer; transition: all .2s; }
.cms-share a:hover, .cms-share button:hover { background: #c23788; color: #fff; border-color: #c23788; }
.cms-share .cms-copied { background: #1f7a46; color: #fff; border-color: #1f7a46; }
.cms-prevnext { display: flex; justify-content: space-between; gap: 20px; margin: 20px 0; }
.cms-prevnext a { flex: 1 1 0; max-width: 48%; display: block; padding: 14px 16px; border: 1px solid #eee; border-radius: 6px; color: #333; text-decoration: none; }
.cms-prevnext a:hover { border-color: #c23788; color: #c23788; }
.cms-prevnext span { display: block; font-size: 13px; color: #c23788; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.cms-next { text-align: right; margin-left: auto; }
.cms-related { margin-top: 40px; }
.cms-related-title { margin-bottom: 0; }
.cms-toc ul { list-style: none; padding: 0; margin: 0; }
.cms-toc li { border-bottom: 1px solid #eee; }
.cms-toc a { display: block; padding: 9px 0 9px 12px; border-left: 3px solid transparent; color: #333; font-size: 15px; line-height: 1.35; text-decoration: none; }
.cms-toc a:hover, .cms-toc a.is-active { color: #c23788; border-left-color: #c23788; }
@media (max-width: 767px) {
  .cms-featured-text .blog-card-caption { font-size: 24px; }
  .cms-prevnext { flex-direction: column; }
  .cms-prevnext a { max-width: 100%; }
  .cms-next { text-align: left; }
  .cms-toolbar { margin-top: 20px; }
  .cms-search { max-width: none; }
  .cms-meta { gap: 4px 14px; }
  .cms-featured { padding: 14px; }
}
