/* Ready-made blocks for the contents of the website (cards of people, logos, schedule...). They are inserted from the "Templates" button of the editor
   and used on the public pages and inside the editor, so what is edited looks like what is published. Only .cms-* rules: nothing else is touched. */
.cms-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.cms-card { border: 1px solid #e4e4e9; border-radius: 14px; padding: 1.1rem 1rem; background: #fff; text-align: center; }
.cms-card img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; margin: 0 auto .75rem; display: block; background: #eef0f4; }
.cms-card h4 { margin: .25rem 0 .1rem; font-size: 1.1rem; }
.cms-card p { margin-bottom: .4rem; font-size: .95rem; }
.cms-card .cms-role { color: #6b6b76; font-size: .9rem; }

.cms-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; align-items: stretch; margin: 1.5rem 0; }
.cms-logos > * { display: flex; align-items: center; justify-content: center; min-height: 5.5rem; padding: .6rem; border: 1px solid #ececf0; border-radius: 12px; background: #fff; text-align: center; }
.cms-logos img { max-width: 100%; max-height: 4.2rem; object-fit: contain; }

.cms-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin: 1.25rem 0; }

.cms-callout { border-left: 4px solid var(--brand, #2563a8); background: var(--brand-soft, #e9eff6); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.cms-callout > :last-child { margin-bottom: 0; }

.cms-schedule { display: grid; grid-template-columns: 7.5rem 1fr; gap: .6rem 1.25rem; margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid #e4e4e9; border-radius: 14px; background: #fff; }
.cms-schedule .cms-time { font-weight: 600; color: var(--brand, #2563a8); }
.cms-schedule p { margin: 0; }

.cms-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cms-highlight { padding: 1rem 1.1rem; border-radius: 14px; background: var(--brand-soft, #e9eff6); }
.cms-highlight h4 { margin: 0 0 .35rem; font-size: 1.05rem; }
.cms-highlight p { margin: 0; font-size: .95rem; }

@media (max-width: 520px) { .cms-schedule { grid-template-columns: 1fr; } }

/* logos with a name: cards (large logo, the name under it), like the cards of people */
.cms-logos.cms-logos-cards { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem; }
.cms-logos-cards > * { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; padding: 0; border-radius: 14px; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); overflow: hidden; }
.cms-logos-cards .cms-logo-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 4; padding: 1rem; }
.cms-logos-cards .cms-logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cms-logos-cards h5 { margin: 0; padding: .25rem 1rem 1.1rem; text-align: center; font-size: 1.1rem; line-height: 1.35; min-height: calc(1.35em + 1.35rem); /* the same height with or without a name */ }

/* a fixed number of cards per row (the block asks for it); the cards take the width that fits, and on narrower screens there are fewer per row */
.cms-n1 { grid-template-columns: minmax(0, 1fr) !important; }
.cms-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.cms-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.cms-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.cms-n5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.cms-n6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
@media (max-width: 900px) { .cms-n3, .cms-n4, .cms-n5, .cms-n6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 520px) { .cms-n2, .cms-n3, .cms-n4, .cms-n5, .cms-n6 { grid-template-columns: minmax(0, 1fr) !important; } }
