/* Full-width layout (Rijul 2026-10-30). The white nav, breadcrumb and footer span the whole WP content area at every width;
   page content sits in a container capped at 1500px with one gutter (40px, as in Figma 5059). Loaded last. */
main.rs { max-width: none; }
main.rs .dash-nav, main.rs .rs-nav { width: 100%; }
main.rs > .rs-body, main.rs .dash-body, main.rs > .rs-crumb, main.rs > .rs-wpfoot { padding-inline: max(40px, calc((100% - 1500px) / 2)); }
main.rs > .rs-body--dash { padding-inline: 0; }
@media (max-width: 782px) { main.rs > .rs-body, main.rs .dash-body, main.rs > .rs-crumb, main.rs > .rs-wpfoot { padding-inline: 16px; } }

/* ===== Review round 2026-11-01 (layout only) ===== */
/* page fills the visible height (dvh so phone toolbars do not cut it) */
main.rs { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
@media (max-width: 782px) { main.rs { min-height: calc(100vh - 46px); min-height: calc(100dvh - 46px); } }

/* one-card empty states fill the height below the header and title, content centred; short screens scroll as before */
.rs-body:has(.rs-group > .es), .rs-body--dash:has(.dash-empty, .p-nomatch) { display: flex; flex-direction: column; }
main.rs > .rs-body:has(.rs-group > .es) { padding-bottom: 40px; }
.rs-body:has(.rs-group > .es) > .rs-col { flex: 1; display: flex; flex-direction: column; }
.rs-col > .rs-group:has(> .es) { flex: 1; display: flex; flex-direction: column; }
.rs-group > .es { flex: 1; justify-content: center; }
.rs-body--dash:has(.dash-empty, .p-nomatch) > .dash-body { flex: 1; display: flex; flex-direction: column; padding-bottom: 40px; }
.dash-body > .wb-card:has(.dash-empty, .p-nomatch) { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
.wb-card > .dash-card:has(.dash-empty, .p-nomatch) { flex: 1; display: flex; flex-direction: column; }
.dash-card > .dash-pad:has(.dash-empty, .es) { flex: 1; display: flex; flex-direction: column; }
.dash-pad > .dash-empty, .dash-pad > .es { flex: 1; justify-content: center; }
.dash-pad > .dash-empty { padding-block: 32px; }
@media (max-width: 782px) { main.rs > .rs-body:has(.rs-group > .es), .rs-body--dash:has(.dash-empty, .p-nomatch) > .dash-body { padding-bottom: 16px; } }

/* a list's last row has no divider when a pager follows (the pager has its own top divider) */
:is(.rs-sl, .nc__item):has(+ :is(.ds-pager, .rs-pager)) { border-bottom: 0; }
.dash-rows:has(+ .ds-pager) .dash-row:last-child::after { display: none; }
/* last row before a pager: drop the row's bottom space so content-to-pager-divider equals content-to-divider on the other rows */
.dash-rows:has(+ .ds-pager) .dash-row:last-child { margin-bottom: -20px; }

/* shortcode row: "Choose template" sits 12px after the name, inline */
.rs-sl__nr { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
/* the button keeps its own padding (hover background); the 12px gap sits outside its box */

/* bottom bar swaps with a short fade when the status changes */
@keyframes rs-bar-in { from { opacity: 0; transform: translateY(4px); } }
.rs-foot.is-swap > * { animation: rs-bar-in var(--mo-md, .2s) ease backwards; }
@media (prefers-reduced-motion: reduce) { .rs-foot.is-swap > * { animation: none; } }

/* API Connections: the real Thrive Dashboard screenshot fills the content area (the shot's own admin bar and menu are cropped off) */
main.rs > .rs-body.rs-body--shot { padding: 0; }
.rs-apishot { margin: 0; position: relative; overflow: hidden; width: 100%; aspect-ratio: 864 / 625; }
.rs-apishot img { display: block; max-width: none; height: auto; width: calc(100% * 1024 / 864); margin-left: calc(-100% * 160 / 864); margin-top: calc(-100% * 32 / 864); user-select: none; -webkit-user-drag: none; }
.rs-devnote__p { font: var(--body-md); color: var(--type-secondary); }

/* connected account line on the social import card */
.rs-acct { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--stroke-tertiary); }
.rs-acct__n { display: inline-flex; align-items: center; gap: 8px; font: var(--btn-md); color: var(--type-primary); }
.rs-acct__m { margin-inline-start: auto; }
.rs-acct__logo { width: 40px; height: 40px; border-radius: var(--radius-md); flex: none; display: block; }
