/*
Theme Name: Studio Toolbox
Description: Child theme for the Studio Toolbox marketing site (studiotoolbox.com). All site design lives here under version control — see docs/website/design-system.md for the rules it implements.
Template: generatepress
Version: 0.2.16
Requires PHP: 8.1
*/

/* ==========================================================================
   Base — enforces design-system.md defaults over GeneratePress customizer CSS.
   All values come from theme.json tokens (--wp--preset--*, --wp--custom--*).
   ========================================================================== */

body {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text-body);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
}

a {
	color: var(--wp--preset--color--primary);
}

/* Reading width: design-system.md caps body copy at ~70ch */
.entry-content p {
	max-width: 70ch;
}

/* ==========================================================================
   Buttons — primary is filled indigo pill; secondary is white/border/indigo;
   ghost is text-only (design-system.md "Buttons")
   ========================================================================== */

.wp-block-button__link,
.ms-btn {
	border-radius: var(--wp--custom--radius--pill);
	font-weight: 600;
	padding: 12px 28px;
	text-decoration: none;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ms-btn-secondary a.wp-block-button__link {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--border-strong);
}

.ms-btn-ghost a.wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--primary);
}

/* The a. prefix above is load-bearing: GP's form-button CSS emits
   a.wp-block-button__link:not(.has-background){color:#ffffff} (0,2,1) —
   class-only variants (0,2,0) lose their text color to it. */

/* ==========================================================================
   Cards (design-system.md "Cards")
   ========================================================================== */

.ms-card {
	background-color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--custom--shadow--card);
	padding: var(--wp--preset--spacing--40);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ms-card:hover {
	box-shadow: var(--wp--custom--shadow--card-hover);
}

/* --------------------------------------------------------------------------
   Product accents — EXPLORATION (card redesign, 2026-08-06). One class
   re-keys a card to its product: top bar + tinted icon chip (owner mockup).
   Values are auditioning; they move to theme.json tokens + design-system.md
   when approved. Bookings hue derives from thepotteryloop.com sienna.
   -------------------------------------------------------------------------- */
:root {
	--ms-product-schedules: #4F46E5;
	--ms-product-schedules-tint: #EEF2FF;
	--ms-product-bookings: #A0522D;
	--ms-product-bookings-tint: #F6EDE7;
	--ms-product-pos: #0F766E;
	--ms-product-pos-tint: #E7F4F2;
	/* Family accent: the toolbox itself, for contexts owned by no product.
	   Deep neutral on purpose — products carry color, the platform carries
	   weight (and it echoes the wordmark's ink half). */
	--ms-family: #0284C7;
	--ms-family-tint: #E9F4FB;
}

.ms-card-accented {
	border-top: 6px solid var(--ms-card-accent, var(--wp--preset--color--primary));
}

/* Icon chip deferred (owner: skip the icon for now); tints stay minted for it. */

.ms-accent-schedules {
	--ms-card-accent: var(--ms-product-schedules);
	--ms-card-tint: var(--ms-product-schedules-tint);
}

.ms-accent-bookings {
	--ms-card-accent: var(--ms-product-bookings);
	--ms-card-tint: var(--ms-product-bookings-tint);
}

.ms-accent-pos {
	--ms-card-accent: var(--ms-product-pos);
	--ms-card-tint: var(--ms-product-pos-tint);
}

.ms-accent-family {
	--ms-card-accent: var(--ms-family);
	--ms-card-tint: var(--ms-family-tint);
}

.ms-card h3 {
	margin-top: 0;
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* GP compensates alignfull blocks for container padding (-40px margins).
   On full-width pattern pages that padding doesn't exist, so the compensation
   drags sections past the viewport edge and clips content. Neutralize it and
   let sections carry their own gutters. */
.full-width-content .entry-content .alignfull {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	max-width: 100%;
}

/* Design-system rule: never any horizontal scrolling. */
body {
	overflow-x: clip;
}

/* Standard container for non-full-width pages (WooCommerce account, cart,
   checkout, blog): cap the width and keep a consistent gutter so content and
   cards never sit flush to the viewport edge. Full-width pattern pages opt out
   via the .full-width-content body class and manage their own section widths. */
body:not(.full-width-content) .site-main {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}

.ms-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	padding-left: var(--wp--preset--spacing--30);
	padding-right: var(--wp--preset--spacing--30);
}

/* Tight top: pages whose content should sit close under the header (the demo
   runner — the demo itself is the point, not a hero). */
.ms-section-tight {
	padding-top: var(--wp--preset--spacing--30);
}

/* Less air above the page h1 (owner 2026-08-01): the FIRST section halves its
   top padding. */
.entry-content > .ms-section:first-child:not(.ms-section-tight) {
	padding-top: var(--wp--preset--spacing--50);
}

/* And every section AFTER another section drops its top padding to a third
   (owner 2026-08-01: "reduce the empty space over them") — the visible gap
   between sections is this plus the previous section's 96px bottom, so
   section-to-section air goes 192px → 128px. */
.entry-content > .ms-section + .ms-section:not(.ms-section-tight) {
	padding-top: var(--wp--preset--spacing--40);
}

/* Merged band: hero + the demo section share one Stone band (owner
   2026-08-06 — the gap between the hero image and "See it live" was
   cavernous). flush-bottom trims the leading section; snug the follower.
   Keep AFTER the section-after-section rule: same specificity, later wins. */
.ms-section-flush-bottom {
	padding-bottom: var(--wp--preset--spacing--30);
}

.entry-content > .ms-section + .ms-section.ms-section-snug {
	padding-top: var(--wp--preset--spacing--20);
}

.ms-section-dark {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
}

.ms-section-dark h1,
.ms-section-dark h2,
.ms-section-dark h3 {
	color: var(--wp--preset--color--surface);
}

.ms-eyebrow {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: var(--wp--preset--font-size--small);
}

.ms-muted {
	color: var(--wp--preset--color--text-secondary);
}

/* Placeholder frame for product screenshots until real assets exist
   (docs/assets/screenshots is empty; see design-system.md "Product Screenshots") */
.ms-screenshot-placeholder {
	background: linear-gradient(160deg, #EEF2FF 0%, var(--wp--preset--color--background) 100%);
	border: 1px dashed var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--large);
	color: var(--wp--preset--color--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	text-align: center;
}

/* Screenshot slot size modifiers (were inline styles; moved to classes so the
   blocks stay valid in the editor). */
.ms-shot-hero {
	margin-top: var(--wp--preset--spacing--60);
}

.ms-shot-half {
	min-height: 280px;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

/* Single-row header: logo + menu + search on one line inside the nav bar.
   The stock GeneratePress header (separate logo area) is hidden — the logo is
   injected into the navigation via generate_inside_navigation. */
.site-header {
	display: none;
}

.main-navigation {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.main-navigation .inside-navigation {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 72px;
	/* Standard page gutter — content/logo never sits flush to the edge. */
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}

/* Logo pinned left; menu, CTA, and search pushed to the right. The logo must
   never shrink — otherwise a wide menu squeezes it until the icon wraps above
   the text. flex-shrink:0 keeps it full-size and lets the menu flex instead. */
.ms-nav-branding {
	margin-right: auto;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.ms-nav-branding .ms-logo {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 9px;
	white-space: nowrap;
}

.ms-nav-branding .ms-logo svg {
	width: 29px;
	flex-shrink: 0;
}

.ms-nav-branding .ms-logo-text {
	font-size: 1.3rem;
}

/* Brand lockup — icon mark + two-tone text wordmark ("Studio" ink, "Toolbox"
   primary indigo; owner-decided 2026-07-21, spec: design-system.md Wordmark) */
.ms-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.ms-logo svg {
	width: 40px;
	height: auto;
	display: block;
}

.ms-logo-text {
	color: var(--wp--preset--color--ink);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Logo uses the design-token palette (#4F46E5), so the "Toolbox" wordmark half
   just follows the token — one indigo across logo, wordmark, buttons, links. */
.ms-logo-tld {
	color: var(--wp--preset--color--primary);
}

.main-navigation .nav-cta > a {
	background-color: var(--wp--preset--color--primary);
	color: #ffffff !important;
	border-radius: var(--wp--custom--radius--pill);
	padding-left: 22px !important;
	padding-right: 22px !important;
	line-height: 1.2 !important;
	padding-top: 6px !important;
	padding-bottom: 6px !important;

	margin-left: 8px;
}

.main-navigation .nav-cta > a:hover {
	background-color: #4338CA;
}

/* Mobile header: the flex row needs three corrections (owner 2026-08-01,
   measured). GP's toggle stretches to fill the free space with its label
   left-aligned ("too far in"); content-size it and hug the right. The opened
   menu was a squeezed flex column BESIDE the toggle, growing the 72px row to
   300px and vertically centering everything; wrapping the row and giving the
   menu container the full row drops it below the header like a normal
   mobile menu. */
@media (max-width: 768px) {
	.main-navigation .inside-navigation {
		flex-wrap: wrap;
		row-gap: 0;
	}

	.main-navigation .menu-toggle {
		width: auto;
		flex: 0 0 auto;
		margin-left: auto;
		padding-right: 0;
	}

	.main-navigation .main-nav {
		flex-basis: 100%;
		width: 100%;
	}

	/* The menu hangs from the toggle on the right — align its items there. */
	.main-navigation .main-nav ul li a {
		text-align: right;
	}
}

/* Desktop menu as a single centered flex row. GeneratePress floats the menu
   items, which top-aligns them (so the shorter CTA pill isn't vertically
   centered) and lets them wrap onto a second line (dropping the logo off the
   row). Flex + align-items:center centers every item regardless of its height
   and keeps logo, menu, and search on one line. Scoped to desktop so the
   mobile slide-out menu (< 769px) is untouched. */
@media (min-width: 769px) {
	.main-navigation .inside-navigation {
		flex-wrap: nowrap;
	}
	.main-navigation .main-nav > ul {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
	}
	.main-navigation .main-nav > ul > li {
		float: none;
	}
}

/* Hide the page title on the front page — the hero pattern is the H1 */
.home .entry-header {
	display: none;
}

/* ==========================================================================
   Workflow flow — the signature diagram element (design-system.md
   "Workflow Diagrams"), CSS-only vertical version
   ========================================================================== */

.ms-flow {
	list-style: none;
	counter-reset: ms-step;
	max-width: 520px;
	margin: 48px auto 0;
	padding: 0;
}

.ms-flow li {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--custom--shadow--card);
	counter-increment: ms-step;
	font-weight: 600;
	padding: 16px 24px 16px 64px;
	position: relative;
}

.ms-flow li::before {
	content: counter(ms-step);
	background: var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--pill);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--wp--preset--font-size--small);
	width: 28px;
	height: 28px;
	position: absolute;
	left: 20px;
	top: calc(50% - 14px);
}

.ms-flow li + li {
	margin-top: 40px;
}

.ms-flow li + li::after {
	content: "↓";
	color: var(--wp--preset--color--primary);
	font-size: 20px;
	position: absolute;
	top: -34px;
	left: 50%;
	transform: translateX(-50%);
}

/* Checklist (integrations etc.) */
.ms-checklist {
	list-style: none;
	margin: 32px auto 0;
	padding: 0;
	max-width: 560px;
}

.ms-checklist li {
	padding: 8px 0 8px 32px;
	position: relative;
}

.ms-checklist li::before {
	content: "✓";
	color: var(--wp--preset--color--success);
	font-weight: 700;
	position: absolute;
	left: 0;
}

/* FAQ (details/summary) */
details.ms-faq {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--small);
	margin-bottom: 16px;
	padding: 16px 24px;
}

details.ms-faq summary {
	cursor: pointer;
	font-weight: 600;
}

details.ms-faq p {
	margin: 12px 0 0;
	color: var(--wp--preset--color--text-secondary);
}

/* Demo signup dialog (TEC-style) + forms */
.msdemo-launch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.msdemo-inline-sent {
	color: var(--wp--preset--color--success);
	font-weight: 600;
	margin: 0;
}

.msdemo-dialog {
	border: 0;
	border-radius: var(--wp--custom--radius--large);
	box-shadow: 0 24px 64px rgba(17, 24, 39, 0.3);
	padding: 40px;
	max-width: 460px;
	width: calc(100% - 32px);
}

.msdemo-dialog::backdrop {
	background: rgba(17, 24, 39, 0.55);
}

.msdemo-dialog h3 {
	margin: 0 0 8px;
	text-align: center;
}

.msdemo-dialog .msdemo-sub {
	text-align: center;
	color: var(--wp--preset--color--text-secondary);
	margin-top: 0;
}

.msdemo-dialog-close {
	position: absolute;
	top: 12px;
	right: 12px;
	margin: 0;
}

.msdemo-dialog-close button {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	width: 32px;
	height: 32px;
}

.msdemo-form .msdemo-hp {
	position: absolute;
	left: -9999px;
}

.msdemo-form .msdemo-row {
	display: flex;
	gap: 16px;
}

.msdemo-form .msdemo-row p {
	flex: 1;
}

.msdemo-form label {
	font-weight: 600;
}

.msdemo-form .msdemo-hint {
	display: block;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
}

.msdemo-form .msdemo-req {
	color: var(--wp--preset--color--error);
}

.msdemo-form input[type="text"],
.msdemo-form input[type="email"],
.msdemo-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--small);
	font-size: 16px;
	background: var(--wp--preset--color--background);
}

.msdemo-form .msdemo-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 0;
}

.msdemo-form .msdemo-skip {
	font-size: var(--wp--preset--font-size--small);
}

/* Pricing cards */
.ms-price {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	margin: 8px 0 16px;
}

.ms-price span {
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}

.ms-card-featured {
	border: 2px solid var(--wp--preset--color--primary);
}

/* Account dashboard quick-links */
.ms-account-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.ms-account-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	padding: 20px 24px;
}

.ms-account-card strong {
	font-size: var(--wp--preset--font-size--large);
}

/* Header account link — plain link set just before the demo CTA pill */
.main-navigation .ms-account-item > a {
	font-weight: 600;
}

/* My Account → Licenses */
.msls-license {
	margin-bottom: var(--wp--preset--spacing--30);
}

.msls-license h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 0;
}

.msls-status {
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	padding: 2px 12px;
}

.msls-status-active {
	background: #DCFCE7;
	color: var(--wp--preset--color--success);
}

.msls-status-expired,
.msls-status-disabled {
	background: #FEF3C7;
	color: #92400E;
}

.msls-key {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--small);
	padding: 6px 12px;
	user-select: all;
}

.msls-meta,
.msls-local {
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

.msls-activations {
	width: 100%;
	margin-top: 8px;
}

.msls-activations th,
.msls-activations td {
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 8px 12px;
	text-align: left;
}

.msls-activations form {
	margin: 0;
}

/* Embedded demo sandbox (/demo/run/) */
.ms-demo-frame {
	position: relative; /* anchors .ms-demo-stale-overlay */
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--custom--shadow--card);
	margin-top: var(--wp--preset--spacing--40);
	overflow: hidden;
}

/* Web-mode save status: a quiet line above the demo window, sitting over the
   admin pane. It replaced the outer frame bar (removed 2026-07-28). */
.ms-demo-save-status {
	margin: var(--wp--preset--spacing--40) 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
}

.ms-demo-save-status + .ms-demo-frame {
	margin-top: 8px;
}

.ms-demo-frame-bar {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	padding: 10px 20px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
}

.ms-demo-frame iframe {
	display: block;
	width: 100%;
	height: 78vh;
	border: 0;
	background: #fff;
}

/* Raised by the runner when this tab's saves are refused (another tab or
   device took over): the demo underneath still responds, so a passive status
   line is not enough — the scrim is the honest "no longer saving" signal.
   inset:0 tracks the stacked 172vh case for free. */
.ms-demo-stale-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	padding: 24px;
	background: rgba(255, 255, 255, 0.95); /* iframe below is #fff */
}

/* display:flex above would defeat the hidden attribute without this. */
.ms-demo-stale-overlay[hidden] {
	display: none;
}

.ms-demo-stale-overlay p {
	margin: 0;
	max-width: 52ch;
}

.ms-demo-stale-title {
	font-weight: 600;
}

/* Split-view demo (staff scheduling): manager + staff panes side by side.
   Two panes need real width — below 1280px they stack. The middle track is
   the drag divider; the pane fractions come from custom properties the drag
   JS sets (never inline grid-template-columns, so the stacking media query
   below always wins). minmax floors keep either pane from being dragged
   into uselessness. */
.ms-demo-split {
	display: grid;
	grid-template-columns: minmax(400px, var(--msdemo-left, 1fr)) 14px minmax(400px, var(--msdemo-right, 1fr));
	gap: 12px;
	margin-top: var(--wp--preset--spacing--40);
}

.msdemo-divider {
	cursor: col-resize;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none;
	border-radius: 7px;
}

.msdemo-divider::before {
	content: "";
	width: 4px;
	height: 48px;
	border-radius: 2px;
	background: var(--wp--preset--color--border);
}

.msdemo-divider:hover::before,
.msdemo-divider:focus-visible::before,
.ms-demo-split.msdemo-dragging .msdemo-divider::before {
	background: var(--wp--preset--color--primary);
}

/* Mid-drag: iframes must not swallow the pointer; no accidental selection. */
.ms-demo-split.msdemo-dragging {
	user-select: none;
}

.ms-demo-split.msdemo-dragging iframe {
	pointer-events: none;
}

/* Full-width pane (the POS row in the suite demo): spans all columns, taller
   — a POS terminal is designed for a whole screen. */
.ms-demo-pane-full {
	grid-column: 1 / -1;
}

.ms-demo-pane-full iframe {
	height: 82vh;
}

/* Row toggle bars (multi-row demos): a full-width horizontal bar above each
   section; clicking hides/shows the whole row. Same full-bleed treatment as
   the split (see that rule's comment for the why). */
.msdemo-rowbar.msdemo-rowbar {
	display: block;
	max-width: none;
	width: 100vw;
	box-sizing: border-box;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 24px;
	padding: 12px 32px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	text-align: left;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--text-secondary);
	cursor: pointer;
}

.msdemo-rowbar.msdemo-rowbar:hover {
	color: var(--wp--preset--color--primary);
}

.msdemo-rowbar .msdemo-rowbar-chev {
	display: inline-block;
	width: 1.2em;
}

.msdemo-rowbar + .ms-demo-split {
	margin-top: 12px;
}

.msdemo-row-hidden {
	display: none !important;
}

/* Full-bleed: the panes take the whole window, not the content column.
   calc(50% - 50vw) pulls each edge from the centered container out to the
   viewport edge; the padding restores the site's 32px gutter. Doubled class
   + !important because the demo page renders the shortcode inside a
   constrained block group, whose core-emitted layout CSS caps children at
   the content width and sets auto side margins with !important. 100vw
   includes a classic scrollbar's width, so clip the possible ~15px sliver
   on pages that use this (macOS overlay scrollbars are unaffected). */
.ms-demo-split.ms-demo-split {
	max-width: none;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding-left: 32px;
	padding-right: 32px;
}

body:has(.ms-demo-split) {
	overflow-x: clip;
}

.ms-demo-split .ms-demo-frame {
	margin-top: 0;
	min-width: 0; /* let the grid actually shrink the panes */
}

.ms-demo-split iframe {
	height: 72vh;
}

.ms-demo-pane-actions {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

.ms-demo-frame-bar .msdemo-refresh {
	background: none;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	width: 28px;
	height: 28px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	color: inherit;
	cursor: pointer;
}

.ms-demo-frame-bar .msdemo-refresh:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.ms-demo-frame-bar select {
	max-width: 160px;
}

.ms-demo-split-hint {
	margin-top: 12px;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

/* Sandbox boot gate: shown while the demo studio's blueprint is still
   provisioning (frames sit blank behind it until the ready marker appears). */
.ms-demo-booting {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
	padding: 18px 24px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--large);
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

.ms-demo-booting p {
	margin: 0;
}

/* The boot card repurposed as the "already open in another tab" parked card:
   title/body/button stack instead of spinner + one line. */
.ms-demo-booting.ms-demo-parked {
	flex-direction: column;
	text-align: center;
}

.ms-demo-booting.ms-demo-parked p {
	max-width: 52ch;
}

/* ==========================================================================
   Footer — one dark band (ink): brand left, link menus right (owner
   2026-08-01). The menus are nav-menu widgets in footer-2/3 (DB-owned
   content); the logo is injected into footer-1 from functions.php.
   ========================================================================== */

.footer-widgets {
	background-color: var(--wp--preset--color--ink);
	padding: 40px 0;
}

/* One layout at every width, no breakpoints: every column is narrow (brand
   ~208px, both menus ~200px together), so a single wrapping flex row covers
   phones to desktop. The brand's auto margin pushes the menus right while
   the row fits; when it can't, the menu pair wraps below — together, since
   the pair needs barely 200px. */
.inside-footer-widgets {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px 48px;
}

/* GP's grid gutters: a -40px row margin paired with 40px inner-padding on
   each widget. Flex gap owns the spacing now, so zero both at the same
   specificity GP uses — a bare class loses to its three-class selectors. */
.site-footer .footer-widgets-container .inside-footer-widgets {
	margin-left: 0;
}

/* Below the 1280px container width the centering margins hit zero and the
   grid-parent class strips padding — the brand touched the viewport edge.
   Give the container the sections' own 24px minimum inset. content-box is
   pinned so the padding sits OUTSIDE the 1280px content width and the
   wide-viewport alignment is unchanged (GP's container is content-box;
   stating it here keeps the math true either way). */
.footer-widgets .footer-widgets-container {
	box-sizing: content-box;
	max-width: 1280px;
	padding-left: var(--wp--preset--spacing--30);
	padding-right: var(--wp--preset--spacing--30);
}

.site-footer .footer-widgets-container .inner-padding {
	padding-left: 0;
}

/* Neutralize GP's float grid on the columns (widths, floats, the 50px
   stacking margin); flex owns this layout at every width. Two classes deep
   on purpose: GP's tablet range gives the LAST of an odd widget count
   width:100% via `.active-footer-widgets-3 .footer-widget-3` (0,2,0), which
   beats a bare `.inside-footer-widgets > div` — that was Legal wrapping
   alone, full-width, between 768 and 1024px. */
.footer-widgets .inside-footer-widgets > div {
	float: none;
	width: auto;
	margin-bottom: 0;
}

/* GP's float clearfix. In a flex container the ::after pseudo becomes a
   phantom zero-width flex ITEM, and with the 64px column gap that leaves a
   64px hole to the right of the last menu. Floats are gone; kill it. */
.inside-footer-widgets:not(.grid-container)::after {
	content: none;
}

.footer-widget-1 {
	margin-right: auto; /* brand left, menus pushed right */
}

/* Dark-band brand variant: the icon's accent paths carry their own inline
   fills; the outline path has none, so it inherits this white. */
.ms-footer-brand .ms-logo svg {
	fill: #fff;
	width: 34px;
}

.ms-footer-brand .ms-logo-text,
.ms-footer-brand .ms-logo-tld {
	color: #fff;
}

.footer-widgets .widget-title {
	color: #fff;
}

.footer-widgets a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.footer-widgets a:hover {
	color: #fff;
}

/* The © bar continues the same band. */
.site-info {
	background-color: var(--wp--preset--color--ink);
}


.ms-demo-booting-spin {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 2px solid var(--wp--preset--color--border);
	border-top-color: var(--wp--preset--color--primary);
	border-radius: 50%;
	animation: ms-demo-spin 0.9s linear infinite;
}

@keyframes ms-demo-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 1279px) {
	.ms-demo-split {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.msdemo-divider {
		display: none;
	}

	.ms-demo-split iframe {
		height: 60vh;
	}
}

/* Real screenshots (once assets land) */
.ms-screenshot img {
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--custom--shadow--card);
}

/* Comparison table (PRD "Why Studio Toolbox") */
.ms-compare table {
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--custom--shadow--card);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	width: 100%;
}

/* Accented comparison (front-page pricing): the accent bar sits on the
   comparison table itself — the card-like object — not its wrapper. */
.ms-compare.ms-card-accented {
	border-top: none;
}

.ms-compare.ms-card-accented table {
	border-top: 6px solid var(--ms-card-accent, var(--wp--preset--color--primary));
}

/* Mark columns stay one word wide ("Community" must not wrap mid-word). */
.ms-compare th:not(:first-child),
.ms-compare td:not(:first-child) {
	white-space: nowrap;
}

.ms-compare th,
.ms-compare td {
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 14px 20px;
}

.ms-compare tr:last-child td {
	border-bottom: none;
}

.ms-compare .ms-check {
	color: var(--wp--preset--color--success);
	font-weight: 700;
}
