/*
 * BredaBeds blog: "Introducing the BredaBeds Murphy Bed Designer" (2026-12). Loaded by the post content itself
 * (<link> at the top of the post), everything scoped to .bbdes. It lives with the post's pictures in
 * media/breda/blog/designer, not in the theme: blog content is not scanned by the Tailwind build, and a <style>
 * block in the content would be counted as words by the blog's reading-time estimate.
 * Bump the ?v= query on the <link> after editing this file (media URLs are cached for a year).
 * Container queries on .bbdes set the columns. Inside a container query, keep each rule AFTER its base rule.
 */

/* phones: less card padding, so text and pictures get the width */
@media (max-width: 39.98rem) {
    .bmx\:card:has(.bbdes) { padding: 1rem; }
}

.bbdes {
    --bbdes-ink: #1c1917;
    --bbdes-text: #44403c;
    --bbdes-muted: #57534e;
    --bbdes-line: #e7e5e4;
    --bbdes-panel: #f6f4ef;
    --bbdes-accent: #c2410c;
    --bbdes-accent-dark: #9a3412;
    --bbdes-accent-bright: #ea580c;
    container: bbdes / inline-size;
    color: var(--bbdes-text);
    font-size: 1.0625rem;
    line-height: 1.7;
}
.bbdes > * + * { margin-top: 1.25rem; }
.bbdes p { margin: 0; }
.bbdes ul { margin: 0; padding: 0; }
.bbdes ul[role="list"] > li { list-style: none; }
.bbdes p + p { margin-top: 1rem; }
.bbdes h2 {
    margin: 3.25rem 0 0;
    color: var(--bbdes-ink);
    font-size: 1.75rem;
    line-height: 1.2;
    text-wrap: balance;
}
.bbdes h2 + * { margin-top: 0.9rem; }
.bbdes a { color: var(--bbdes-accent); text-decoration: underline; text-underline-offset: 2px; }
.bbdes a:hover { color: var(--bbdes-accent-dark); }
.bbdes a:focus-visible, .bbdes-btn:focus-visible { outline: 2px solid var(--bbdes-accent-bright); outline-offset: 2px; }

.bbdes-lede { color: var(--bbdes-ink); font-size: 1.25rem; line-height: 1.6; text-wrap: pretty; }

/* three facts from the text, in a row */
.bbdes ul.bbdes-stats { display: grid; gap: 0.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.bbdes ul.bbdes-stats li { padding: 1rem 1.15rem; border: 1px solid var(--bbdes-line); border-radius: 0.9rem; background: var(--bbdes-panel); }
.bbdes ul.bbdes-stats strong { display: block; color: var(--bbdes-ink); font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.bbdes ul.bbdes-stats span { display: block; margin-top: 0.2rem; color: var(--bbdes-muted); font-size: 0.95rem; line-height: 1.4; }

/* a screenshot: opens large on a press */
.bbdes-shot { margin: 1.75rem 0 0; }
.bbdes-shot a { display: block; border: 1px solid var(--bbdes-line); border-radius: 0.9rem; overflow: hidden; background: #ecebe8; box-shadow: 0 10px 30px -18px rgba(28, 25, 23, 0.45); }
.bbdes-shot img { display: block; width: 100%; height: auto; }
.bbdes-shot figcaption { margin-top: 0.6rem; color: var(--bbdes-muted); font-size: 0.9rem; line-height: 1.5; text-align: center; }

/* text beside a picture from a wide column on */
.bbdes-split { display: grid; gap: 1.5rem; align-items: start; margin-top: 0.9rem; }
.bbdes-split .bbdes-shot { margin: 0; }

/* the three lights */
.bbdes ul.bbdes-lights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.bbdes ul.bbdes-lights li { margin: 0; }
.bbdes ul.bbdes-lights img { display: block; width: 100%; height: auto; aspect-ratio: 320 / 409; object-fit: cover; border-radius: 0.8rem; border: 1px solid var(--bbdes-line); }
.bbdes ul.bbdes-lights p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.2rem 0.45rem; margin-top: 0.55rem; color: var(--bbdes-ink); font-size: 0.95rem; font-weight: 700; line-height: 1.3; text-align: center; }
.bbdes ul.bbdes-lights p span { color: var(--bbdes-muted); font-weight: 500; }
.bbdes-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 1px solid rgba(28, 25, 23, 0.25); flex: none; }
.bbdes-dot-warm { background: #ffd9a8; }
.bbdes-dot-neutral { background: #fff6ea; }
.bbdes-dot-cool { background: #dbe8ff; }

/* a sentence set apart */
.bbdes-quote { position: relative; margin: 2rem 0 0; padding: 1.5rem 1.5rem 1.5rem 3.6rem; border-left: 4px solid var(--bbdes-accent-bright); border-radius: 0 0.9rem 0.9rem 0; background: var(--bbdes-panel); }
.bbdes-quote::before { content: "\201C"; position: absolute; left: 0.95rem; top: 0.35rem; color: var(--bbdes-accent-bright); font-family: Georgia, serif; font-size: 4rem; line-height: 1; }
.bbdes-quote p { color: var(--bbdes-ink); font-size: 1.3rem; font-weight: 600; line-height: 1.45; text-wrap: balance; }

/* the phone picture in a frame */
.bbdes-phone { width: min(100%, 17rem); margin: 0 auto; }
.bbdes-phone a { border: 0.45rem solid var(--bbdes-ink); border-radius: 2rem; background: var(--bbdes-ink); }
.bbdes-phone img { border-radius: 1.5rem; }

/* what comes next */
.bbdes ul.bbdes-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.bbdes ul.bbdes-next li { display: flex; align-items: center; gap: 0.65rem; padding: 0.8rem 0.95rem; border: 1px solid var(--bbdes-line); border-radius: 0.8rem; color: var(--bbdes-ink); font-size: 0.98rem; font-weight: 700; line-height: 1.3; }
.bbdes ul.bbdes-next svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--bbdes-accent); }

/* the closing panel */
.bbdes-cta { margin-top: 3rem; padding: 2.25rem 1.5rem; border-radius: 1.1rem; background: radial-gradient(120% 120% at 0% 100%, #3a2a1f 0%, #1c1917 62%); color: #fff; text-align: center; }
.bbdes-cta-line { color: #fff; font-family: "Swaying Elizabeth", "Swaying Elizabeth fallback", Georgia, serif; font-size: 1.9rem; font-weight: 700; line-height: 1.2; word-spacing: 0.05em; text-wrap: balance; }
.bbdes-cta p + p { margin-top: 0.7rem; color: #e7ded3; }
.bbdes-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; margin-top: 1.4rem; padding: 0.6rem 1.5rem; border-radius: 999px; background: var(--bbdes-accent); color: #fff !important; font-weight: 800; text-decoration: none !important; }
.bbdes-btn:hover { background: var(--bbdes-accent-dark); color: #fff; }
.bbdes-btn svg { width: 1.15rem; height: 1.15rem; }
.bbdes-top { margin-top: 1.5rem; text-align: center; }
.bbdes-btn-dark { background: var(--bbdes-ink); }
.bbdes-btn-dark:hover { background: #44403c; }

@container bbdes (min-width: 40rem) {
    .bbdes ul.bbdes-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bbdes ul.bbdes-next { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bbdes ul.bbdes-next li { flex-direction: column; align-items: flex-start; }
    .bbdes ul.bbdes-lights { gap: 1rem; }
    .bbdes-cta-line { font-size: 2.4rem; }
}
@container bbdes (min-width: 56rem) {
    .bbdes h2 { font-size: 2rem; }
    .bbdes-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.25rem; }
    .bbdes-split-phone { grid-template-columns: minmax(0, 1fr) 17rem; }
    .bbdes-split-flip > :first-child { order: 2; }
    .bbdes-text { max-width: 46rem; }
    .bbdes-quote p { font-size: 1.5rem; }
}
