/* ============================================
   Social Post — Phase A (caption-only)
   Reuses .type-grid, .type-card, .step, .step-back, .input-lg, .drop-zone,
   .btn-primary, .btn-secondary, .history-section from presentations.css.
   ============================================ */

/* Choose-step header (eyebrow -> title -> lede), centred to match the 2-col
   card grid below it. */
.social-page-head {
    max-width: 520px;
    margin: 0 auto 1.75rem;
    text-align: center;
}
.social-page-head .s-section-label { margin-bottom: 0.4rem; }
.social-page-head .s-lede { margin-top: 0.4rem; }

.social-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 980px) {
    .social-layout {
        grid-template-columns: 1fr;
    }
}

.social-inputs h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    color: var(--s-text);
}

.social-desc {
    color: var(--s-text-2);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.social-inputs .input-group {
    margin-bottom: 1.1rem;
}

.social-inputs .input-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--s-text);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.label-optional {
    font-weight: 400;
    color: var(--s-text-3);
    font-size: 0.72rem;
    margin-left: 0.2rem;
}

.field-hint {
    font-size: 0.72rem;
    color: var(--s-text-3);
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* Structured listing fields (Social v2). 2-col grid: MLS# + list price span the
   full width; beds/baths sit side-by-side underneath. */
.listing-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.75rem;
}
.listing-field-wide {
    grid-column: 1 / -1;
}
.social-inputs .listing-field label.listing-field-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--s-text-2);
    margin-bottom: 0.3rem;
}
.label-required {
    font-weight: 600;
    color: var(--s-warn);
    font-size: 0.72rem;
    margin-left: 0.2rem;
}

/* Clarification banner shown when the AI refuses a Just Listed post for missing
   MLS / brokerage / agent. Stays visible until the next successful Generate.
   Uses the suite warning-state surface (functional colour, not decoration). */
.clarification-banner {
    background: var(--s-warn-soft);
    border: 1px solid var(--s-warn-border);
    border-radius: var(--s-r-md);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    color: var(--s-warn);
}

.clarification-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.clarification-message {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--s-warn);
}

.clarification-missing {
    margin-top: 0.55rem;
    font-size: 0.74rem;
    color: var(--s-warn);
}

.clarification-chip {
    display: inline-block;
    background: var(--s-warn-border);
    color: var(--s-warn);
    padding: 0.15rem 0.55rem;
    border-radius: var(--s-r-pill);
    margin-left: 0.3rem;
    font-weight: 600;
    font-size: 0.72rem;
}

.social-inputs textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--s-border-strong);
    border-radius: var(--s-r-md);
    font-family: inherit;
    font-size: 16px; /* >=16px prevents iOS zoom-on-focus */
    color: var(--s-text);
    background: var(--s-surface);
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
    transition: border-color var(--s-t-fast), box-shadow var(--s-t-fast);
}

.social-inputs textarea:focus {
    outline: none;
    border-color: var(--s-accent);
    box-shadow: 0 0 0 3px var(--s-focus);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 600px) {
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

.social-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.social-photo-grid:empty {
    display: none;
}

.social-photo-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--s-r-md);
    overflow: hidden;
    background: var(--s-surface-3);
    border: 1px solid var(--s-border);
}

.social-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-photo-thumb-remove {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    transition: background var(--s-t-fast);
}

.social-photo-thumb-remove:hover {
    background: rgba(10, 10, 10, 0.9);
}

.drop-zone-sub {
    font-size: 0.78rem;
    color: var(--s-text-3);
    margin-top: 0.15rem;
}

/* The single Create button — full-width primary action. Pairs .s-btn
   .s-btn-primary (from suite.css) with the full-width sizing the form needs. */
.btn-lg {
    width: 100%;
    height: 48px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border-radius: var(--s-r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    display: inline-block;
}

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

.social-time-note {
    font-size: 0.78rem;
    color: var(--s-text-3);
    text-align: center;
    margin-top: 0.5rem;
}

/* ----- Output panel ----- */

.social-output {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-r-lg);
    padding: 1.5rem;
    box-shadow: var(--s-shadow-xs);
    position: sticky;
    top: calc(var(--s-topbar-h) + 1rem);
}

.social-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.social-output-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--s-text);
}

/* Caption variant switcher — suite segmented control look (grey track, white
   active pill). Class names kept (social.js toggles .caption-tab-active). */
.caption-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.9rem;
    background: var(--s-surface-3);
    padding: 3px;
    border-radius: var(--s-r-md);
}

.caption-tab {
    flex: 1;
    padding: 0.45rem 0.9rem;
    background: transparent;
    border: none;
    border-radius: calc(var(--s-r-md) - 3px);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--s-text-2);
    cursor: pointer;
    transition: all var(--s-t-fast);
}

.caption-tab:hover {
    color: var(--s-text);
}

.caption-tab-active {
    background: var(--s-surface);
    color: var(--s-text);
    box-shadow: var(--s-shadow-xs);
}

.caption-display {
    background: var(--s-surface);
    border: 1px solid var(--s-border-strong);
    border-radius: var(--s-r-md);
    padding: 1rem 1.1rem;
    min-height: 120px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--s-text);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.75rem;
    transition: border-color var(--s-t-fast), box-shadow var(--s-t-fast);
    cursor: text;
    outline: none;
}

.caption-display[contenteditable="true"] {
    cursor: text;
}

.caption-display[contenteditable="true"]:hover {
    border-color: var(--s-text-3);
}

.caption-display[contenteditable="true"]:focus {
    border-color: var(--s-accent);
    box-shadow: 0 0 0 3px var(--s-focus);
}

/* Save states — functional colour only (amber while saving, green when saved). */
.caption-display.caption-saving {
    border-color: var(--s-warn-border);
}

.caption-display.caption-saved {
    border-color: var(--s-ok);
    box-shadow: 0 0 0 3px var(--s-ok-soft);
}

.caption-edit-hint {
    margin: -0.25rem 0 0.6rem;
    font-size: 0.7rem;
    color: var(--s-text-3);
    text-align: right;
}

.caption-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.hashtag-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--s-border);
}

.hashtag-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--s-text-2);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.hashtag-chip {
    padding: 0.25rem 0.6rem;
    background: var(--s-surface-3);
    border: 1px solid transparent;
    border-radius: var(--s-r-pill);
    font-size: 0.78rem;
    color: var(--s-text-2);
    font-weight: 600;
}

.btn-link {
    background: none;
    border: none;
    color: var(--s-text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0.2rem 0;
}

.btn-link:hover {
    color: var(--s-text-2);
}

/* ----- Edit chat ----- */

.edit-chat {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--s-border);
}

.edit-chat-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--s-text-2);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.edit-chat-hint {
    font-size: 0.75rem;
    color: var(--s-text-3);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.edit-chat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

/* ----- Toast (matches suite .s-toast surface) ----- */

.social-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1c1c1e;
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: var(--s-r-pill);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--s-shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--s-t), transform var(--s-t);
    z-index: 1000;
}

.social-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Phase B: Carousel section + slide system
   ============================================ */

/* ----- Drag-to-reorder cues on the upload grid ----- */
.social-photo-thumb {
    cursor: grab;
}
.social-photo-thumb.dragging {
    opacity: 0.4;
    cursor: grabbing;
}
.social-photo-thumb.drop-target {
    box-shadow: 0 0 0 3px var(--s-accent);
    transform: scale(1.02);
}

/* ----- Carousel controls section in the output panel ----- */
.carousel-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--s-border);
}

.carousel-header {
    margin-bottom: 0.85rem;
}

.carousel-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--s-text-2);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.carousel-hint {
    font-size: 0.75rem;
    color: var(--s-text-3);
    margin: 0;
    line-height: 1.5;
}

.carousel-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.carousel-font-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.6rem;
}

.carousel-font-row label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--s-text-2);
}

.slide-font-select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--s-border-strong);
    border-radius: var(--s-r-sm);
    font-family: inherit;
    font-size: 0.85rem;
    background: var(--s-surface);
    color: var(--s-text);
    cursor: pointer;
    transition: border-color var(--s-t-fast), box-shadow var(--s-t-fast);
}

.slide-font-select:focus {
    outline: none;
    border-color: var(--s-accent);
    box-shadow: 0 0 0 3px var(--s-focus);
}

/* ----- Render progress ----- */
.carousel-progress {
    margin-top: 0.75rem;
}

.carousel-progress-bar {
    height: 6px;
    background: var(--s-surface-3);
    border-radius: var(--s-r-pill);
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.carousel-progress-fill {
    height: 100%;
    background: var(--s-accent);
    width: 0%;
    transition: width var(--s-t);
    border-radius: var(--s-r-pill);
}

.carousel-progress-text {
    font-size: 0.78rem;
    color: var(--s-text-2);
    text-align: center;
    margin: 0;
}

/* ----- Slide preview row ----- */
.slide-preview-section {
    margin-top: 1rem;
}

.slide-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.slide-preview-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--s-text-2);
    letter-spacing: 0.02em;
}

.slide-preview-meta {
    font-size: 0.72rem;
    color: var(--s-text-3);
}

.slide-preview-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.slide-preview-row::-webkit-scrollbar {
    height: 6px;
}
.slide-preview-row::-webkit-scrollbar-thumb {
    background: var(--s-border-strong);
    border-radius: var(--s-r-pill);
}

.slide-thumb {
    flex: 0 0 auto;
    width: 160px;
    height: 200px;
    border-radius: var(--s-r-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--s-surface-3);
    border: 1px solid var(--s-border);
    transition: transform var(--s-t-fast), box-shadow var(--s-t-fast), border-color var(--s-t-fast);
    position: relative;
    padding: 0;
}

.slide-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--s-shadow-md);
    border-color: var(--s-border-strong);
}

.slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-thumb-index {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    background: rgba(10, 10, 10, 0.55);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: var(--s-r-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.slide-preview-hint {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--s-text-3);
    line-height: 1.5;
}

.slide-download-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--s-border);
}

.slide-download-row .s-btn {
    width: 100%;
}

.slide-download-hint {
    margin-top: 0.55rem;
    font-size: 0.72rem;
    color: var(--s-text-3);
    line-height: 1.5;
}

.slide-download-hint code {
    background: var(--s-surface-3);
    padding: 0.05rem 0.35rem;
    border-radius: 5px;
    font-family: var(--s-mono);
    font-size: 0.9em;
    color: var(--s-text-2);
}

/* ----- Lightbox (overlay chrome — shows a rendered JPEG, never captured) ----- */
.slide-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.slide-lightbox-frame {
    /* Fill the screen: height-driven so a portrait 4:5 slide gets as large as the
       viewport allows. max-width clamps it on very narrow / portrait windows
       (the browser then shrinks the height to keep the 4:5 aspect ratio). */
    height: 92vh;
    max-width: 92vw;
    aspect-ratio: 4 / 5;
}

.slide-lightbox-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--s-r-md);
    box-shadow: var(--s-shadow-lg);
}

.slide-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--s-t-fast);
}

.slide-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.slide-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--s-t-fast);
    z-index: 10;
}

.slide-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.slide-lightbox-nav.prev { left: 1rem; }
.slide-lightbox-nav.next { right: 1rem; }

/* ============================================
   Slide stage + slide templates (1080x1350 portrait 4:5)
   ============================================
   The stage is positioned far off-screen so html-to-image can capture
   slides at native resolution while invisible to the user. Critical:
   the stage must have a real size — html-to-image cannot capture
   collapsed elements.
*/

#slide-stage {
    position: absolute;
    left: -99999px;
    top: 0;
    width: 1080px;
    height: 1350px;
    pointer-events: none;
    /* Brand colour custom properties are set per-render by social.js */
}

/* ============================================
   Locked design system: Wide Glass v2
   For: Just Listed + Just Sold post types only
   Spec ref: Social design testing/Concepts/_DEFAULT — Just Listed · Just Sold
   Font: DM Sans (locked, ignores branding.slideFont)
   Mobile-readable type floor: 22px caps labels (~8px on a 400px IG render)
   ============================================ */

/* The slide font picker is hidden because Just Listed / Just Sold are now a
   locked design system — DM Sans is part of the spec. Picker is preserved in
   the DOM (still emits change events) but visually removed. When other post
   types ship that need a font picker, scope this rule to those post types only. */
.carousel-font-row { display: none !important; }

.slide {
    position: relative;
    width: 1080px;
    height: 1350px;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: var(--slide-font, '"DM Sans"'), sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---- Shared helpers (caps labels + marker dash) ---- */
.slide .meta-cap {
    font: 700 22px/1.2 'DM Sans', sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #fff;
}
.slide .meta-cap-mute {
    font: 700 22px/1.2 'DM Sans', sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}
.slide .marker-line {
    display: flex;
    align-items: center;
    gap: 16px;
}
/* Real <span class="dash"> (not ::before) \u2014 html-to-image is unreliable with pseudo-elements */
.slide .marker-line .dash {
    display: inline-block;
    width: 48px;
    height: 2px;
    background: #fff;
    flex-shrink: 0;
}

/* ---- Photo backgrounds (cover + photo slides share this) ---- */
.slide .slide-photo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.06) saturate(0.95);
}

/* ---- Cover slide ---- */
.slide-cover .slide-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.15) 22%,
        rgba(0,0,0,0.15) 50%,
        rgba(0,0,0,0.95) 100%);
}
.slide-cover .slide-top {
    position: absolute;
    left: 60px;
    right: 60px;
    top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.slide-cover .slide-top-right {
    text-align: right;
    font: 700 22px/1.4 'DM Sans', sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}
.slide-cover .slide-headline {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 280px;
    color: #fff;
    line-height: 0.86;
    letter-spacing: -0.06em;
}
.slide-cover .slide-headline .h-light {
    font: 300 220px/0.86 'DM Sans', sans-serif;
}
.slide-cover .slide-headline .h-bold {
    font: 700 220px/0.86 'DM Sans', sans-serif;
}
.slide-cover .slide-sub {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 170px;
    font: 500 30px/1.3 'DM Sans', sans-serif;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.005em;
}
.slide-cover .slide-footer {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 700 22px/1 'DM Sans', sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* ---- Photo slide (top-edge labels only, no captions, no floating overlays) ---- */
.slide-photo .slide-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.55) 0%,
        transparent 18%,
        transparent 78%,
        rgba(0,0,0,0.85) 100%);
}
.slide-photo .slide-top {
    position: absolute;
    left: 60px;
    right: 60px;
    top: 60px;
    display: flex;
    /* Only the slide index lives here now (the "Listing" eyebrow was removed),
       so pin it to the right edge. */
    justify-content: flex-end;
    align-items: center;
}

/* ---- CTA slide (closer) ---- */
.slide-cta {
    background: #0a0a0a;
    color: #fff;
}
/* Sheen removed (May 2026): radial-gradient with a transparent stop on a
   positioned div produced a fully-blank html-to-image render in the live
   build, even after the earlier ::before \u2192 real-div migration. The sheen is
   purely decorative; the slide reads cleanly without it. */
.slide-cta .slide-top {
    position: absolute;
    left: 60px;
    right: 60px;
    top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 700 22px/1 'DM Sans', sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.slide-cta .slide-marker {
    position: absolute;
    left: 60px;
    top: 175px;
    font: 700 22px/1 'DM Sans', sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}
.slide-cta .slide-marker .dash {
    display: inline-block;
    width: 48px;
    height: 2px;
    background: #fff;
}
.slide-cta .slide-cta-h {
    position: absolute;
    left: 60px;
    right: 60px;
    top: 240px;
    margin: 0;
    font: 300 152px/0.88 'DM Sans', sans-serif;
    letter-spacing: -0.05em;
    color: #fff;
}
.slide-cta .slide-cta-h em,
.slide-cta .slide-cta-h .em {
    font-style: normal;
    font-weight: 700;
}
.slide-cta .slide-signature {
    position: absolute;
    left: 60px;
    right: 60px;
    top: 780px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 36px;
}
.slide-cta .sig-name {
    font: 700 60px/1 'DM Sans', sans-serif;
    letter-spacing: -0.02em;
    color: #fff;
}
.slide-cta .sig-prec {
    font: 400 24px/1.35 'DM Sans', sans-serif;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 12px;
    letter-spacing: 0.005em;
}
.slide-cta .sig-right {
    text-align: right;
}
.slide-cta .sig-right small {
    display: block;
    font: 700 18px/1 'DM Sans', sans-serif;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.slide-cta .sig-brokerage {
    font: 600 28px/1 'DM Sans', sans-serif;
    letter-spacing: 0.02em;
    color: #fff;
}
/* Business-card identity group: circular headshot + name/brokerage on the CTA
   signature row. Only present when branding.headshot is a valid image data URL.
   Rendered as a background-image div (never an <img>) so the CTA keeps no image
   descendants and stays on the html2canvas render path. Ring via border —
   box-shadow is unreliable in html2canvas. */
.slide-cta .sig-identity {
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: 0;
}
.slide-cta .sig-headshot {
    flex: 0 0 132px;
    width: 132px;
    height: 132px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.06);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.slide-cta .slide-contact {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 230px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.slide-cta .slide-contact div small {
    display: block;
    font: 700 18px/1 'DM Sans', sans-serif;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.slide-cta .slide-contact div strong {
    font: 500 28px/1.3 'DM Sans', sans-serif;
    color: #fff;
    letter-spacing: -0.005em;
}
/* Just Listed regulatory disclosure: BCFSA / MLS rules. Sits between the contact grid
   and the kicker line, hairline-divided. Never appears on Just Sold. */
.slide-cta .slide-disclosure {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 175px;
    font: 500 18px/1.4 'DM Sans', sans-serif;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.slide-cta .slide-footer-cta {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 32px;
}
.slide-cta .cta-line {
    font: 300 38px/1.2 'DM Sans', sans-serif;
    letter-spacing: -0.01em;
    color: #fff;
}
.slide-cta .cta-line strong,
.slide-cta .cta-line .b {
    font-weight: 700;
}
.slide-cta .cta-line .arrow {
    font-weight: 300;
    margin-left: 8px;
}

/* ---- Just Listed CTA overrides ----
   The Just Listed headline ("Want to see it in person? Let's book a viewing.") is
   longer than the Just Sold one. Shrink it and lift the signature/contact rows so
   the BCFSA disclosure line has clean room to sit above the kicker without
   overlapping. */
.slide-cta-just-listed .slide-cta-h {
    top: 220px;
    font-size: 116px;
    line-height: 0.9;
}
.slide-cta-just-listed .slide-signature {
    top: 800px;
}
.slide-cta-just-listed .slide-contact {
    bottom: 280px;
}
.slide-cta-just-listed .slide-disclosure {
    bottom: 195px;
}
.slide-cta-just-listed .slide-footer-cta {
    bottom: 70px;
}

/* ============================================
   T2 — Property Announcement entry + mode toggle
   ============================================ */

/* 2-column grid for the 2-card choose step */
.type-grid.type-grid-2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
}

/* Mode picker shown below the grid after selecting Property Announcement */
.announcement-mode-picker {
    max-width: 520px;
    margin: 0 auto 0;
    padding: 0 2rem 1.5rem;
    text-align: center;
}

.mode-picker-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--s-text-2);
    margin-bottom: 0.75rem;
}

/* Shared segmented toggle — used in choose step AND form. Suite segmented
   look (grey track + ink active pill). Class names kept (social.js toggles
   .mode-toggle-btn-active). */
.mode-toggle {
    display: inline-flex;
    background: var(--s-surface-3);
    border-radius: var(--s-r-md);
    padding: 3px;
    gap: 2px;
}

.mode-toggle-btn {
    padding: 0.45rem 1.1rem;
    border: none;
    border-radius: calc(var(--s-r-md) - 3px);
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--s-text-2);
    cursor: pointer;
    transition: background var(--s-t-fast), color var(--s-t-fast);
    white-space: nowrap;
}

.mode-toggle-btn:hover {
    color: var(--s-text);
}

.mode-toggle-btn.mode-toggle-btn-active {
    background: var(--s-accent);
    color: var(--s-on-accent);
    box-shadow: var(--s-shadow-xs);
}

/* Persistent toggle on the form — left-aligned, margin below h2 */
.form-mode-toggle {
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .type-grid.type-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Recent Posts history — re-skin the shared presentations.css
   history chrome onto suite tokens. Scoped to #step-choose so only
   the Social page is affected (presentations pages keep their own).
   The .history-title hairline was a stale white-on-dark rgba that
   read as invisible on this light page.
   ============================================================ */
#step-choose .history-title {
    font-weight: 700;
    color: var(--s-text);
    border-bottom-color: var(--s-border);
}
#step-choose .history-empty { color: var(--s-text-3); }
#step-choose .history-item {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-r-md);
    transition: border-color var(--s-t-fast), box-shadow var(--s-t-fast);
}
#step-choose .history-item:hover {
    border-color: var(--s-border-strong);
    box-shadow: var(--s-shadow-xs);
}
#step-choose .history-item-address { color: var(--s-text); }
#step-choose .history-item-date { color: var(--s-text-3); }
/* Open = quiet secondary ink button. !important is required to beat the base
   presentations.css .history-edit-btn solid-ink !important declarations. */
#step-choose .history-edit-btn {
    background: var(--s-surface) !important;
    border: 1px solid var(--s-border-strong) !important;
    border-radius: var(--s-r-sm);
    color: var(--s-text-2) !important;
    font-weight: 600;
    transition: background var(--s-t-fast), border-color var(--s-t-fast), color var(--s-t-fast);
}
#step-choose .history-edit-btn:hover {
    background: var(--s-surface-2) !important;
    border-color: var(--s-text-3) !important;
    color: var(--s-text) !important;
}
/* Delete = danger-ghost (the JS marks it data-action="delete" + inline #c33). */
#step-choose .history-edit-btn[data-action="delete"] {
    color: var(--s-danger) !important;
    border-color: var(--s-danger-border) !important;
}
#step-choose .history-edit-btn[data-action="delete"]:hover {
    background: var(--s-danger-soft) !important;
    border-color: var(--s-danger) !important;
    color: var(--s-danger) !important;
}

/* ============================================================
   Editor v3 (Social) — slide-edit surface re-skin.
   GATED: every rule here is scoped to markup the editor_v3_social
   path creates (.s-edit-* on a slide, the v3 edit row/toggle), so
   with the flag OFF none of these selectors match anything → inert.
   The suite .s-edit-* chrome lives in editor-suite.css; this only
   adds the slide-surface specifics (move cursor, cell, filmstrip
   reorder, segmented placement) that are page-local.
   ============================================================ */

/* Preview ⇄ Edit segmented toggle sits in the carousel subsection header. */
.carousel-edit-modebar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 0.9rem;
}
.carousel-edit-modebar .s-edit-seg { margin-left: auto; }

/* The v3 edit row reuses the same scaled-cell pattern as the legacy
   surface, but the editable text gets the suite ink ring (from
   editor-suite.css's .s-edit-text), not the old dashed-blue outline. */
.s-edit-slide-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
}
.s-edit-slide-wrap { display: flex; flex-direction: column; align-items: center; }
.s-edit-slide-celllabel {
    font: 600 0.72rem/1 var(--s-font, inherit);
    color: var(--s-text-3, #8a8a8a);
    margin-bottom: 0.4rem;
    text-align: center;
}
.s-edit-slide-cell {
    width: 300px;
    height: 375px;
    overflow: hidden;
    border: 1px solid var(--s-border, #e8e8e8);
    border-radius: var(--s-r-sm, 8px);
    background: #000;
    position: relative;
    flex: 0 0 auto;
}
/* MUST match SLIDE_EDIT_SCALE in social.js (single source of truth). */
.s-edit-slide-cell .slide { transform: scale(0.27778); transform-origin: top left; }

/* Free-move text on a slide gets a move cursor; in-place text gets a caret.
   The hover/focus rings themselves come from editor-suite.css .s-edit-text. */
.s-edit-slide-cell .s-edit-text { cursor: move; user-select: text; }
.s-edit-slide-cell .s-edit-text[data-clarify-dragging] { cursor: grabbing; }
.s-edit-slide-cell .s-edit-text.is-editing { cursor: text; }
.s-edit-slide-cell .s-edit-text--inplace { cursor: text; }

/* Slim edit banner under the toggle (uses editor-suite .s-edit-banner). */
.s-edit-banner.carousel-edit-banner { border-radius: var(--s-r-sm, 8px); margin-bottom: 0.85rem; }

/* Filmstrip reorder affordance on the existing slide-thumb buttons when the
   v3 path flags them draggable. The .slide-thumb keeps its existing look;
   we only add the grab cursor + dragging state. */
.slide-thumb.s-edit-reorderable { cursor: grab; }
.slide-thumb.s-edit-reorderable:active { cursor: grabbing; }
.slide-thumb.s-edit-dragging { opacity: 0.5; }
.slide-thumb.s-edit-drop-target { outline: 2px solid var(--s-accent, #0a0a0a); outline-offset: 2px; }

