/* ==========================================================================
   Breakdance content inside the Mister Shelving theme
   Breakdance builds page content (Home, About, FAQs, Contact, Assembly);
   these rules align its sections with the theme's container, type and cards.
   Helper classes (set in Breakdance → element → Advanced → Classes):
     ms-bd-full      full-bleed section (no container / padding)
     ms-bd-card      white rounded card section
     ms-bd-dark      dark rounded panel section
     ms-bd-narrow    narrow reading-width section
     ms-bd-split     two-column image/text row (vertically centred)
     ms-bd-trio      three-column row (centred items)
     ms-bd-feature-card  column styled as a card
     ms-bd-features  rich text whose bullet list uses diamond bullets
     ms-bd-features--2col  …in two columns
     ms-bd-circle    circular image
     ms-bd-center    centred text
     ms-eyebrow      small orange uppercase label above a heading
     ms-bd-intro     muted intro paragraph
     ms-bd-aside     sidebar card
   ========================================================================== */
/* Selectors are prefixed with "body" so they win over Breakdance's own element
   defaults (e.g. .breakdance .bde-heading { margin: 0 }), which load after this file. */

body .breakdance {
	--bde-section-width: 1480px;
	--bde-section-horizontal-padding: var(--container-gutter);
	--bde-section-vertical-padding: 30px;
	--bde-column-gap: 50px;
	--bde-body-font-family: var(--text-font-family);
	--bde-heading-font-family: var(--heading-font-family);
	--bde-body-font-size: var(--base-text-font-size);
	--bde-h1-font-size: 28px;
	--bde-h2-font-size: clamp(24px, 2.6vw, 32px);
	--bde-h3-font-size: 19px;
	--bde-h4-font-size: 17px;
	--bde-body-text-color: var(--text-color);
	--bde-headings-color: var(--heading-color);
	--bde-background-color: var(--background);
	--bde-brand-primary-color: var(--accent-color);
	--bde-links-color: var(--link-color);
	--bde-links-color-hover: var(--link-color-hover);
	line-height: 1.65;
}
@media (max-width: 767px) {
	body .breakdance { --bde-column-gap: 24px; --bde-section-vertical-padding: 20px; }
}
body .breakdance h1, body .breakdance h2, body .breakdance h3, body .breakdance h4 { font-weight: var(--heading-font-weight); line-height: 1.3; margin-bottom: .5em; }
body .breakdance h2 { font-weight: 600; }
body .breakdance .bde-section:first-child .section-container { padding-top: 40px; }
body .breakdance .bde-section:last-child .section-container { padding-bottom: 60px; }

/* Theme modules dropped in via the Shortcode element */
body .breakdance .bde-shortcode { width: 100%; }
body .breakdance .bde-shortcode .section { margin: 0; }
body .breakdance .bde-shortcode .section > .container { padding: 0; max-width: none; }
body .breakdance .bde-shortcode .wpcf7 { margin-top: 10px; }

/* Full-bleed section (home slideshow) */
body .breakdance .ms-bd-full > .section-container,
body .breakdance .bde-section.ms-bd-full:first-child .section-container { max-width: none; padding: 0; }
body .breakdance .ms-bd-full .slideshow { width: 100%; }

/* Card and dark panel sections */
body .breakdance .ms-bd-card > .section-container,
body .breakdance .ms-bd-dark > .section-container {
	max-width: calc(min(1480px, 100%) - 2 * var(--container-gutter));
	padding: 40px;
	border-radius: var(--radius);
}
body .breakdance .ms-bd-card > .section-container { background: var(--secondary-background); border: 1px solid var(--border-color); }
body .breakdance .ms-bd-dark > .section-container { background: var(--header-background); color: #e9e2dd; }
body .breakdance .ms-bd-dark h1, body .breakdance .ms-bd-dark h2, body .breakdance .ms-bd-dark h3 { color: #fff; }
@media (min-width: 1000px) {
	body .breakdance .ms-bd-card > .section-container,
	body .breakdance .ms-bd-dark > .section-container { padding: 50px; }
}
@media (max-width: 767px) {
	body .breakdance .ms-bd-card > .section-container,
	body .breakdance .ms-bd-dark > .section-container { padding: 24px; }
}
body .breakdance .bde-section + .ms-bd-card > .section-container,
body .breakdance .bde-section + .ms-bd-dark > .section-container { margin-top: 30px; margin-bottom: 30px; }

body .breakdance .ms-bd-narrow > .section-container { max-width: 1000px; }

/* Image + text rows */
body .breakdance .ms-bd-split { align-items: center; }
body .breakdance .ms-bd-split .bde-column { justify-content: center; }
body .breakdance .ms-bd-media .bde-image, body .breakdance .ms-bd-media .breakdance-image { width: 100%; }
body .breakdance .bde-image img { border-radius: var(--radius); }
body .breakdance .bde-button { margin-top: 14px; }

/* Three-column rows */
body .breakdance .ms-bd-trio { margin-top: 20px; }
body .breakdance .ms-bd-trio .bde-column { align-items: center; }
body .breakdance .ms-bd-circle { max-width: 240px; width: 100%; margin: 0 auto 16px; }
body .breakdance .ms-bd-circle img { border-radius: 50%; }
body .breakdance .ms-bd-feature-card {
	align-items: stretch !important;
	background: var(--secondary-background);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	overflow: hidden;
	padding-bottom: 24px;
}
body .breakdance .ms-bd-feature-card .bde-image img { border-radius: 0; width: 100%; }
body .breakdance .ms-bd-feature-card .bde-heading { padding: 22px 24px 0; font-size: 18px; margin: 0; }

/* Text helpers */
body .breakdance .ms-eyebrow { color: var(--accent-color); font-family: var(--heading-font-family); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
body .breakdance .ms-bd-center { width: 100%; text-align: center; }
body .breakdance .ms-bd-intro { color: rgba(var(--text-color-rgb), .85); max-width: 760px; margin-bottom: 20px; }
body .breakdance .ms-bd-center.ms-bd-intro { margin-left: auto; margin-right: auto; }
body .breakdance .ms-bd-page-title { margin-bottom: 10px; }
body .breakdance .ms-bd-section-title { font-size: 22px; margin-bottom: 28px; }

/* Diamond bullet lists */
body .breakdance .ms-bd-features ul { list-style: none; margin: 0 0 1em; padding: 0 0 0 4px; display: grid; gap: 4px 30px; }
body .breakdance .ms-bd-features li { position: relative; padding: 0 0 8px 24px; margin: 0; }
body .breakdance .ms-bd-features li::before {
	content: ""; position: absolute; left: 2px; top: .5em;
	width: 9px; height: 9px; border: 2px solid var(--accent-color); transform: rotate(45deg);
}
body .breakdance .ms-bd-features li p { margin: 0; }
@media (min-width: 641px) { body .breakdance .ms-bd-features--2col ul { grid-template-columns: 1fr 1fr; } }

/* FAQ element */
body .breakdance .ms-bd-faq {
	width: 100%;
	background: var(--secondary-background);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	overflow: hidden;
	margin-top: 10px;
}
body .breakdance .ms-bd-faq .bde-faq__item { border: 0; border-top: 1px solid var(--border-color); margin: 0; background: none; }
body .breakdance .ms-bd-faq .bde-faq__item:first-child { border-top: 0; }
body .breakdance .ms-bd-faq .bde-faq__title-tag { margin: 0; font-size: inherit; }
body .breakdance .ms-bd-faq .bde-faq__question {
	width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
	padding: 20px 24px; background: none; border: 0; text-align: left;
	font-family: var(--heading-font-family); font-size: 16px; font-weight: 500; color: var(--heading-color);
	cursor: pointer;
}
body .breakdance .ms-bd-faq .bde-faq__question:hover { color: var(--accent-color); }
body .breakdance .ms-bd-faq .bde-faq__icon { color: var(--accent-color); flex: none; }
body .breakdance .ms-bd-faq .bde-faq__icon svg { width: 14px; height: 14px; fill: currentColor; }
body .breakdance .ms-bd-faq .bde-faq__answer-content { padding: 0 24px 22px; }
@media (min-width: 641px) {
	body .breakdance .ms-bd-faq .bde-faq__question { padding: 22px 30px; font-size: 17px; }
	body .breakdance .ms-bd-faq .bde-faq__answer-content { padding: 0 30px 26px; }
}

/* Contact page */
body .breakdance .ms-bd-aside {
	background: var(--secondary-background);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: 30px;
	align-self: flex-start;
}
body .breakdance .ms-bd-aside h3 { font-size: 18px; }
body .breakdance .wpcf7 { width: 100%; }

/* Breakdance pages sit directly on the page background */
.ms-builder-page .site-main { padding-bottom: 0; }
