/* Personalization: the announcement banner, preview bar, custom page blocks, conditional questions, and the
   brand studio / site builder admin. Reads the shared tokens only (base.css); the brand studio's own token overrides
   come from /brand.css. Never put tenant names or colors here. */

/* Banner and preview bar (inside the public header, above the parent bar) ------------------------------------------ */
.pz-banner, .pz-previewbar { position: relative; z-index: 2; font: 500 .9rem/1.45 var(--sans); }
.pz-banner__in { padding-block: 10px; }
.pz-banner--accent { background: var(--bone); color: var(--text-l); border-bottom: 2px solid var(--ember-l); }
.pz-banner--accent .link { color: var(--text-l); }
.pz-banner.tone-ink2 { border-bottom: 1px solid var(--line); }
.pz-previewbar { background: #fff4c2; color: #1a1a1a; border-bottom: 2px solid #8a6d00; }
.pz-previewbar .link { color: #1a1a1a; }

/* Custom page blocks -------------------------------------------------------------------------------------------------- */
.pz-blocks { display: grid; gap: clamp(40px, 5vw, 72px); max-width: 980px; }
.pz-block > h2 { margin-bottom: 18px; }
.pz-figure img { width: 100%; height: auto; border-radius: 6px; }
.pz-figure figcaption, .pz-video figcaption { margin-top: 10px; }
.pz-quote blockquote p::before { content: '“'; } .pz-quote blockquote p::after { content: '”'; }
.pz-quote figcaption { margin-top: 16px; }
.pz-video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 6px; overflow: hidden; }
.pz-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.pz-stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.pz-stat dd { margin: 0; font: 300 var(--fs-h2)/1 var(--display); letter-spacing: -.02em; }
.pz-stat dt { color: var(--muted); }
.pz-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.pz-person__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.pz-person p + p { margin-top: 8px; }
.pz-cta { padding: clamp(28px, 4vw, 48px); border-radius: 8px; }
.pz-cta p { margin-top: 12px; color: var(--muted); }
.pz-cta .actions { margin-top: 22px; }
.pz-evp .items { margin-top: 18px; }
.pz-note { margin: 16px 0; }
.pz-stage { margin-top: 8px; }

/* Conditional questions: hidden by public/js/pz-form.js until their condition is met (all shown without JS). */
.pz-cond[hidden] { display: none !important; }

/* Admin: brand studio, site builder ----------------------------------------------------------------------------------- */
.pz-pubbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 12px 0 18px; padding: 12px 16px; border: 1px solid rgba(17, 24, 22, .14); border-radius: 8px; background: var(--white); }
.pz-pubbar .actions { gap: 8px 14px; }
.pz-previewlink { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pz-previewlink label { flex-basis: 100%; font-weight: 600; font-size: .84rem; }
.pz-previewlink input { flex: 1 1 320px; min-height: 36px; padding: 6px 10px; border: 1px solid rgba(17, 24, 22, .3); border-radius: 6px; font: inherit; font-size: .85rem; }
.pz-studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .pz-studio { grid-template-columns: minmax(0, 1fr); } }
.pz-studio__preview { position: sticky; top: 16px; }
.pz-frame { width: 100%; height: 78vh; min-height: 520px; border: 1px solid rgba(17, 24, 22, .2); border-radius: 8px; background: #fff; }
.pz-frame--email { height: 560px; min-height: 0; }
.pz-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 12px 0; }
.pz-color label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: 4px; }
.pz-color__in { display: flex; gap: 6px; align-items: center; }
.pz-color__in input[type='color'] { width: 44px; height: 36px; padding: 2px; border: 1px solid rgba(17, 24, 22, .3); border-radius: 6px; background: #fff; }
.pz-color__in input[type='text'] { width: 9ch; min-height: 36px; padding: 6px 8px; border: 1px solid rgba(17, 24, 22, .3); border-radius: 6px; font: 500 .9rem/1 var(--mono); }
.pz-color.invalid input[type='text'] { border-color: #A3311F; }
.pz-checks { border-collapse: collapse; margin: 10px 0; font-size: .86rem; }
.pz-checks caption { text-align: left; font-weight: 600; margin-bottom: 6px; }
.pz-checks th, .pz-checks td { padding: 4px 10px 4px 0; text-align: left; border-bottom: 1px solid rgba(17, 24, 22, .1); }
.pz-adjust { list-style: disc; padding-left: 1.2em; font-size: .86rem; }
.pz-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 16px; }
.pz-slot__img img { max-height: 90px; width: auto; background: var(--ink); padding: 8px; border-radius: 6px; display: inline-block; }
.pz-slot__img--light img { background: #fff; border: 1px solid rgba(17, 24, 22, .14); }
.pz-rows { display: grid; gap: 10px; margin: 10px 0; }
.pz-rows .adm-inp, .adm-inp--area { display: flex; width: 100%; }
.pz-rows .adm-inp textarea, .adm-inp--area textarea { width: 100%; }
.pz-order { display: grid; gap: 6px; margin: 10px 0; }
.pz-order input[type='number'] { width: 5ch; }
.pz-mode { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pz-blocklist { display: grid; gap: 0; }
