/* SimpleCMS - rendered page content (public site, builder preview) */
.scms-page { margin-bottom: 2rem; }
.scms-page-title { margin-bottom: 1.25rem; }
.scms-page-content img, .scms-blocks img { max-width: 100%; height: auto; }
.scms-page-content table { width: 100%; max-width: 100%; margin-bottom: 1rem; }

.scms-section { position: relative; }
.scms-pad-none { padding-top: 0; padding-bottom: 0; }
.scms-pad-sm { padding-top: 1rem; padding-bottom: 1rem; }
.scms-pad-md { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.scms-pad-lg { padding-top: 5rem; padding-bottom: 5rem; }

.scms-block-image { margin: 0 0 1rem; }
.scms-block-image img { display: inline-block; }
.scms-block-imagetext { margin-bottom: 1rem; }
.scms-block-text > :last-child { margin-bottom: 0; }
.scms-block-button { margin-bottom: 1rem; }
.scms-block-divider { margin: 1.5rem 0; }
.scms-block-embed { margin-bottom: 1rem; }
.scms-block-html { margin-bottom: 1rem; }

.scms-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin-bottom: 1rem; }
.scms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Column grid (public site has no Bootstrap): widths come from --scms-tracks */
.scms-container, .scms-container-full { width: 100%; margin: 0 auto; }
.scms-container { max-width: 1140px; }
.scms-row { display: grid; grid-template-columns: var(--scms-tracks, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.scms-block-imagetext { align-items: center; }
.scms-col { min-width: 0; }
@media (max-width: 767px) { .scms-row { grid-template-columns: minmax(0, 1fr) !important; } }
.scms-blocks .text-left { text-align: left; } .scms-blocks .text-center { text-align: center; } .scms-blocks .text-right { text-align: right; }
.scms-blocks .btn { display: inline-block; padding: .45rem 1rem; border-radius: 3px; border: 1px solid transparent; text-decoration: none; }
.scms-blocks .btn-secondary { background: #6c757d; color: #fff; }
.scms-blocks .btn-outline-primary { background: transparent; border-color: currentColor; }

/* Tables marked class="scms-stack" become one column on mobile */
@media (max-width: 767px) {
    table.scms-stack, table.scms-stack tbody, table.scms-stack tr, table.scms-stack td { display: block; width: 100% !important; box-sizing: border-box; }
    table.scms-stack td:empty { display: none; }
    table.scms-stack td { margin-bottom: 16px; }
}
