/* steveshead.io Page Builder - the builder's own screen (the page being built has its own styles, in the frame). */
@font-face {
    font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
    src: url('/vendor/fonts/bricolage-grotesque/bricolage-grotesque-latin-standard-normal.woff2') format('woff2-variations');
}
@font-face {
    font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('/vendor/fonts/hanken-grotesk/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
    --b-ink: #1d2340;
    --b-paper: #f7f3ee;
    --b-card: #fffdfa;
    --b-line: #e2dbd0;
    --b-muted: #5c6078;
    --b-pink: #ff48b0;
    --b-blue: #0078bf;
    --b-blue-text: #005d94;
    --b-yellow: #ffe800;
    --b-top: 3.5rem;
    --b-side: 19rem;
    --b-inspector: 18rem;
    --bs-body-font-family: 'Hanken Grotesk', system-ui, sans-serif;
    --bs-body-color: var(--b-ink);
    --bs-body-bg: var(--b-paper);
    --bs-border-color: var(--b-line);
    --bs-link-color: var(--b-blue-text);
    --bs-link-color-rgb: 0, 93, 148;
}
html, body { height: 100%; }
body { overflow: hidden; font-size: .925rem; }
h1, h2, .b-h { font-family: 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.01em; }
.b-skip { position: absolute; z-index: 2000; background: var(--b-yellow); color: var(--b-ink); padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--b-blue); outline-offset: 2px; }

/* Top bar */
.b-top {
    height: var(--b-top); display: flex; align-items: center; gap: 1rem; padding: 0 1rem;
    background: var(--b-ink); color: #fff; position: relative; z-index: 20;
}
.b-brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; }
.b-brand span { opacity: .85; }
.b-title { font-size: 1.05rem; margin: 0; padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .2); display: flex; align-items: center; gap: .5rem; }
.b-badge { font-family: 'Hanken Grotesk', sans-serif; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--b-yellow); color: var(--b-ink); padding: .1rem .45rem; border-radius: .25rem; }
.b-devices { margin: 0 auto; display: flex; gap: .25rem; background: rgba(255, 255, 255, .08); padding: .2rem; border-radius: .5rem; }
.b-actions { display: flex; align-items: center; gap: .35rem; }
.b-tool {
    border: 0; background: transparent; color: rgba(255, 255, 255, .8); height: 2.1rem; min-width: 2.1rem; border-radius: .4rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: 0 .5rem; font-size: 1rem;
}
.b-tool-text { font-size: .875rem; font-weight: 600; }
.b-tool:hover:not(:disabled) { background: rgba(255, 255, 255, .12); color: #fff; }
.b-tool.active, .b-tool[aria-pressed="true"] { background: rgba(255, 255, 255, .18); color: #fff; }
.b-tool:disabled { opacity: .35; }
.b-export { background: var(--b-pink); color: var(--b-ink); font-weight: 700; border: 0; }
.b-export:hover, .b-export:focus-visible { background: #ff6cc0; color: var(--b-ink); }
.b-btn-outline { border: 1px solid var(--b-line); background: var(--b-card); color: var(--b-ink); font-weight: 600; }
.b-btn-outline:hover, .b-btn-outline.active { border-color: var(--b-ink); background: var(--b-ink); color: #fff; }

/* Layout */
.b-main { display: flex; height: calc(100% - var(--b-top)); }
.b-side, .b-inspector { background: var(--b-card); overflow-y: auto; flex-shrink: 0; }
.b-side { width: var(--b-side); border-right: 1px solid var(--b-line); display: flex; flex-direction: column; }
.b-inspector { width: var(--b-inspector); border-left: 1px solid var(--b-line); padding: 1rem; }
.b-stage { flex: 1; overflow: auto; background: #e9e4dc; padding: 1.25rem; display: flex; justify-content: center; }
.b-frame-wrap { width: 100%; max-width: 100%; height: 100%; transition: width .25s ease; box-shadow: 0 1px 2px rgba(29, 35, 64, .1), 0 12px 32px -16px rgba(29, 35, 64, .35); border-radius: .5rem; overflow: hidden; background: #fff; }
.b-frame-wrap[data-device="tablet"] { width: 820px; }
.b-frame-wrap[data-device="phone"] { width: 390px; }
#b-frame { width: 100%; height: 100%; border: 0; display: block; }

/* Side panels */
.b-tabs { padding: .5rem .75rem 0; border-bottom: 1px solid var(--b-line); gap: .25rem; position: sticky; top: 0; background: var(--b-card); z-index: 2; }
.b-tabs .nav-link { color: var(--b-muted); font-weight: 600; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: .6rem .6rem; }
.b-tabs .nav-link.active { color: var(--b-ink); border-bottom-color: var(--b-pink); }
.b-panels { padding: 1rem; }
.b-hint { color: var(--b-muted); font-size: .825rem; margin-bottom: .75rem; }
.b-h { font-size: 1rem; margin: 1.5rem 0 .25rem; }
.form-label { font-weight: 600; font-size: .825rem; margin-bottom: .3rem; }
.b-field { margin-bottom: 1.1rem; }

.b-group-title { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-muted); margin: 1rem 0 .4rem; }
.b-group-title:first-child { margin-top: 0; }
.b-item {
    display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .55rem .65rem; margin-bottom: .35rem;
    border: 1px solid var(--b-line); border-radius: .5rem; background: var(--b-card); color: var(--b-ink); cursor: grab; font-size: .875rem;
}
.b-item:hover { border-color: var(--b-ink); box-shadow: 0 2px 6px rgba(29, 35, 64, .12); }
.b-item:active { cursor: grabbing; }
.b-item i { font-size: 1.1rem; color: var(--b-blue); }
.b-item .b-item-add { margin-left: auto; color: var(--b-muted); font-size: .9rem; }
.b-item-pack { font-size: .65rem; margin-left: auto; padding: .05rem .35rem; border-radius: .25rem; background: var(--b-yellow); color: var(--b-ink); font-weight: 700; }
.b-more { margin-top: 1.5rem; padding: 1rem; border-radius: .6rem; background: #fff2d6; border: 1px dashed #e8c98a; }
.b-more h2 { font-size: .95rem; margin-bottom: .35rem; }
.b-more p { font-size: .8rem; color: var(--b-muted); }
.b-more-list { padding-left: 1rem; font-size: .8rem; color: var(--b-muted); margin-bottom: .75rem; }
.b-more-list li { margin-bottom: .35rem; }
.b-pack { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; margin-top: .6rem; }
.b-pack button { border: 0; background: none; color: var(--b-muted); text-decoration: underline; font-size: .75rem; }

.b-outline { list-style: none; padding: 0; margin: 0; min-height: 2rem; }
.b-outline li {
    display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; margin-bottom: .35rem; border: 1px solid var(--b-line);
    border-radius: .5rem; background: var(--b-card); cursor: grab; font-size: .85rem;
}
.b-outline li.selected { border-color: var(--b-pink); box-shadow: 0 0 0 2px rgba(255, 72, 176, .25); }
.b-outline li .b-grip { color: var(--b-muted); }
.b-outline li .b-outline-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-outline li button { border: 0; background: none; color: var(--b-muted); padding: 0 .2rem; }
.b-outline li button:hover { color: var(--b-ink); }
.b-outline .b-drop-line, .b-library-drop { height: 3px; background: var(--b-pink); border-radius: 2px; margin: -1px 0 .3rem; }
.b-outline-empty { color: var(--b-muted); font-size: .825rem; padding: 1rem; border: 1px dashed var(--b-line); border-radius: .5rem; text-align: center; }

.b-swatches { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.4rem 0 1.1rem; }
.b-swatch { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--b-line); padding: 0; }
.b-swatch:hover { box-shadow: 0 0 0 2px var(--b-ink); }

/* Inspector */
.b-inspector-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.b-inspector-head h2 { font-size: 1rem; margin: 0; }
.b-inspector .b-note { font-size: .8rem; color: var(--b-muted); }
.b-inspector .btn { font-size: .825rem; }
.b-icon-preview { font-size: 1.5rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid var(--b-line); border-radius: .4rem; flex-shrink: 0; }

/* Messages */
.b-toast {
    position: fixed; bottom: 1.25rem; left: 50%; transform: translate(-50%, 150%); background: var(--b-ink); color: #fff; padding: .6rem 1rem;
    border-radius: .5rem; font-weight: 600; z-index: 3000; transition: transform .25s ease, opacity .25s ease; pointer-events: none; max-width: 90vw; opacity: 0;
}
.b-toast.show { transform: translate(-50%, 0); opacity: 1; }
.b-steps { padding-left: 1.25rem; }
.b-steps li { margin-bottom: .6rem; }
.modal-content { border-radius: .75rem; }
.dropdown-item i { width: 1.25rem; display: inline-block; }

/* Preview mode: just the page */
body.b-previewing .b-side, body.b-previewing .b-inspector { display: none !important; }

/* Phones: the builder needs room */
.b-narrow { display: none; }
@media (max-width: 899.98px) {
    .b-top, .b-main { display: none; }
    body { overflow: auto; }
    .b-narrow { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 3rem 1.5rem; min-height: 100%; justify-content: center; }
    .b-narrow h2 { font-size: 1.5rem; }
    .b-narrow p { max-width: 26rem; color: var(--b-muted); }
}
@media (max-width: 1199.98px) {
    :root { --b-side: 16.5rem; --b-inspector: 16rem; }
    .b-brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .b-frame-wrap, .b-toast { transition: none; }
}
