/*
 * Styles for content published from admin.theocheir.com.
 * Everything here uses the same design language as the pages themselves:
 * black and white, hairline rules, Inter and JetBrains Mono.
 */

.cms-announcement {
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}
.cms-announcement a {
  color: #fff;
}

.cms-rich {
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2c2c2c;
}
.cms-rich h2,
.cms-rich h3,
.cms-rich h4 {
  color: #0a0a0a;
  letter-spacing: -0.02em;
  margin: 1.6em 0 0.5em;
}
.cms-rich h2:first-child,
.cms-rich h3:first-child {
  margin-top: 0;
}
.cms-rich p {
  margin: 0 0 1em;
}
.cms-rich ul,
.cms-rich ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}
.cms-rich li {
  margin-bottom: 0.4em;
}
.cms-rich blockquote {
  margin: 1.5em 0;
  padding-left: 1.2em;
  border-left: 2px solid #0a0a0a;
  font-size: 1.15rem;
}

.cms-figure,
.cms-video {
  margin: 0 0 2rem;
}
.cms-figure img,
.cms-video video {
  width: 100%;
  height: auto;
  display: block;
}
.cms-figure figcaption,
.cms-caption {
  font-size: 0.88rem;
  color: #7a7a7a;
  margin-top: 0.6rem;
}

.cms-embed {
  position: relative;
  padding-top: 56.25%;
}
.cms-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cms-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(10, 10, 10, 0.12);
  border: 1px solid rgba(10, 10, 10, 0.12);
  margin-bottom: 2rem;
}
.cms-gallery figure {
  margin: 0;
  background: #fff;
}
.cms-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.cms-gallery figcaption {
  font-size: 0.85rem;
  color: #7a7a7a;
  padding: 0.5rem 0.75rem;
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.cms-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.cms-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(10, 10, 10, 0.12);
  border: 1px solid rgba(10, 10, 10, 0.12);
  margin-bottom: 2rem;
}
.cms-stat {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
}
.cms-stat__value {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.cms-stat__label {
  display: block;
  color: #7a7a7a;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.cms-quote {
  margin: 0 0 2rem;
  padding: 2rem;
  background: #f2f2f2;
}
.cms-quote blockquote {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.cms-quote blockquote::before {
  content: '“';
}
.cms-quote blockquote::after {
  content: '”';
}
.cms-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.cms-quote figcaption img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.cms-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(10, 10, 10, 0.12);
  border: 1px solid rgba(10, 10, 10, 0.12);
  margin-bottom: 2rem;
}
.cms-logos a,
.cms-logos span {
  background: #fff;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  min-height: 96px;
}
.cms-logos img {
  max-height: 44px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.75;
}
.cms-logos a:hover img {
  filter: none;
  opacity: 1;
}

.cms-faq {
  border: 1px solid rgba(10, 10, 10, 0.12);
  margin-bottom: 2rem;
}
.cms-faq__item + .cms-faq__item {
  border-top: 1px solid rgba(10, 10, 10, 0.12);
}
.cms-faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  list-style: none;
}
.cms-faq summary::after {
  content: '+';
  float: right;
}
.cms-faq__item[open] summary::after {
  content: '–';
}
.cms-faq p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: #2c2c2c;
  line-height: 1.6;
}

.cms-cta {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}
.cms-cta h3 {
  font-size: clamp(1.5rem, 1.6vw + 1.1rem, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.cms-cta .cms-actions {
  justify-content: center;
}

.cms-form {
  max-width: 720px;
  margin-inline: auto;
}
.cms-form .field {
  margin-bottom: 1.25rem;
}

.band-ink .cms-rich,
.band-ink .cms-cta p {
  color: rgba(255, 255, 255, 0.72);
}
.band-ink .cms-rich h2,
.band-ink .cms-rich h3,
.band-ink .cms-cta h3 {
  color: #fff;
}
.band-ink .btn-solid-dark {
  background: #fff;
  color: #0a0a0a;
}
.band-ink .btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
