/* Optional layout limited to the homepage shortcode. */
.rm-home-builder {display:grid;gap:var(--rm-home-gap,24px);max-width:var(--rm-home-width,1200px);margin-inline:auto;container:rm-home / inline-size;min-width:0;overflow-wrap:anywhere}
.rm-home-builder .rm-home-columns,.rm-home-builder .rm-home-column {display:grid;gap:var(--rm-home-gap,24px);align-items:start;align-content:start;min-width:0}
.rm-home-builder .rm-home-columns {grid-template-columns:minmax(0,1fr)}
.rm-home-layout-right .rm-home-count-2 {grid-template-columns:minmax(0,1fr) minmax(0,var(--rm-home-side))}
.rm-home-layout-left .rm-home-count-2 {grid-template-columns:minmax(0,var(--rm-home-side)) minmax(0,1fr)}
.rm-home-layout-both .rm-home-count-3 {grid-template-columns:minmax(0,min(var(--rm-home-side),30%)) minmax(0,1fr) minmax(0,min(var(--rm-home-side),30%))}
.rm-home-layout-both .rm-home-count-2,.rm-home-layout-equal .rm-home-count-2,.rm-home-layout-three .rm-home-count-2 {grid-template-columns:repeat(2,minmax(0,1fr))}
.rm-home-layout-three .rm-home-count-3 {grid-template-columns:repeat(3,minmax(0,1fr))}
.rm-home-builder .rm-home-block {min-width:0;container:rm-home-block / inline-size}
.rm-home-builder .rm-home-block > .rm-public,.rm-home-builder .rm-public-home-recent {margin:0}
/* Builder grid takes precedence over legacy editorial featured-card layout. */
.rm-home-builder .rm-home-block-recent .rm-public-home-recent .rm-public-grid {grid-template-columns:repeat(var(--rm-home-cols),minmax(0,1fr))}
.rm-home-builder .rm-home-block-recent .rm-public-home-recent .rm-public-card:first-child {display:flex;flex-direction:column;grid-column:auto;grid-template-areas:none}
.rm-home-builder .rm-home-block-recent .rm-public-card {overflow-wrap:anywhere}
.rm-home-builder .rm-public-stats {grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr))}
.rm-home-builder .rm-home-text p {margin:0}
@container rm-home-block (max-width:700px) {.rm-home-builder .rm-home-block-recent .rm-public-home-recent .rm-public-grid {grid-template-columns:repeat(var(--rm-home-tablet),minmax(0,1fr))}}
@container rm-home-block (max-width:420px) {.rm-home-builder .rm-home-block-recent .rm-public-home-recent .rm-public-grid {grid-template-columns:minmax(0,1fr)}}
@container rm-home (max-width:720px) {.rm-home-builder .rm-home-columns {grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px) {.rm-home-builder .rm-home-columns {grid-template-columns:minmax(0,1fr)}}
.rm-home-builder .rm-home-block > .rm-sidebar-instance > .rm-public {margin:0}
