/* Shared UFS Subject Editor stylesheet.
   Fixed and repeatable subject editors consume these classes. */
.subject-editor-page{min-height:100vh;background:linear-gradient(180deg,#f7f9fc 0%,#eef3f8 48%,#f8fafc 100%)}
.subject-editor-shell{max-width:1180px;margin:0 auto}
.subject-editor-workspace{display:grid;grid-template-columns:178px minmax(0,1fr);gap:18px;align-items:start}
.subject-editor-left-rail{position:sticky;top:92px;z-index:1040;align-self:start;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 108px);overflow-y:auto;overflow-x:hidden;padding-right:3px;scrollbar-width:thin;scrollbar-color:rgba(100,116,139,.36) transparent}
.subject-editor-left-rail::-webkit-scrollbar{width:6px}.subject-editor-left-rail::-webkit-scrollbar-thumb{background:rgba(100,116,139,.32);border-radius:999px}
.subject-editor-toolbar,.subject-editor-navigator{border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(255,255,255,.93);box-shadow:0 14px 34px rgba(15,23,42,.1),0 3px 10px rgba(15,23,42,.05);backdrop-filter:blur(12px)}
.subject-editor-toolbar{padding:12px}.subject-editor-toolbar-title{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#0f172a}
.subject-editor-toolbar-title>i{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#f5f3ff;color:#7c3aed}
.subject-editor-toolbar-actions{display:flex;flex-direction:column;gap:7px}.subject-editor-toolbar-actions .btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;font-weight:800;font-size:.78rem;border-radius:11px;padding:6px 9px}
.subject-editor-navigator{padding:10px}.subject-editor-nav-title{display:flex;align-items:center;gap:8px;padding:4px 7px 9px;color:#475569;font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.subject-editor-nav-list{display:flex;flex-direction:column;gap:7px}
.subject-editor-nav-item{--accent:var(--subject-accent,#7c3aed);--soft:var(--subject-soft,#f5f3ff);--border:var(--subject-border,#ddd6fe);width:100%;display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 9px;border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:13px;background:#fff;color:#334155;text-align:left;transition:.18s ease}
.subject-editor-nav-item i{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:8px;background:var(--soft);color:var(--accent)}
.subject-editor-nav-item:hover{transform:translateX(2px);background:var(--soft);border-color:var(--accent)}
.subject-editor-nav-item.active{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 10px 24px color-mix(in srgb,var(--accent) 24%,transparent)}
.subject-editor-nav-item.active i{background:rgba(255,255,255,.16);color:#fff}
.subject-editor-nav-text{display:flex;align-items:center;min-width:0}.subject-editor-nav-text strong,.subject-editor-nav-item strong{font-size:.77rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subject-editor-nav-text small{display:none!important}
.subject-editor-main{min-width:0}.subject-editor-scroll-target{scroll-margin-top:106px}
.subject-section-card{border:0;border-radius:22px;overflow:hidden;background:#fff;margin-bottom:20px;box-shadow:0 18px 44px rgba(15,23,42,.08),0 2px 8px rgba(15,23,42,.05)}
.subject-section-header{padding:18px 22px;color:#fff;background:var(--subject-accent,#111827)}.subject-section-header h2{font-size:1rem;font-weight:900;margin:0}.subject-section-header p{font-size:.78rem;margin:4px 0 0;color:rgba(255,255,255,.76);line-height:1.45}
.subject-section-heading{display:flex;align-items:center;gap:10px}.subject-section-body{padding:22px}
.subject-panel{background:#fff;border:1px solid rgba(148,163,184,.24);border-radius:18px;padding:18px;margin-bottom:20px;box-shadow:0 12px 26px rgba(15,23,42,.055)}.subject-panel:last-child{margin-bottom:0}.subject-panel-soft{background:linear-gradient(135deg,#fff 0%,#f8fbff 100%)}
.subject-panel-title{display:flex;align-items:center;gap:10px;font-weight:900;color:#0f172a;margin-bottom:4px}.subject-panel-title i{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;color:var(--subject-accent,#7c3aed);background:var(--subject-soft,#f5f3ff)}
.subject-panel-note{color:#64748b;font-size:.84rem;margin-bottom:18px}
.subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.subject-grid.one{grid-template-columns:1fr}.subject-wide{grid-column:1/-1}
.subject-field-shell,.subject-subcard,.subject-fact-card,.subject-action-card{background:#fff;border:1px solid rgba(148,163,184,.22);border-radius:16px;padding:14px;height:100%;box-shadow:0 8px 18px rgba(15,23,42,.045)}
.subject-subcard{background:linear-gradient(135deg,#fff 0%,#f8fbff 100%)}.subject-subcard h4{font-size:.82rem;font-weight:900;margin:0 0 12px}
.subject-editor-field{display:grid;gap:.35rem}.subject-editor-field+.subject-editor-field{margin-top:.75rem}.subject-editor-field label{font-size:.82rem;font-weight:800;color:#334155}.subject-editor-field textarea{min-height:90px}
.subject-editor-label{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.subject-editor-label label{font-size:.82rem;font-weight:800}.subject-editor-tools,.subject-field-tools{display:flex;align-items:center;gap:.35rem}
.subject-check-field{align-content:end}.subject-check{min-height:39px;display:flex;align-items:center;gap:.55rem;padding:.55rem .75rem;border:1px solid #d8dee8;border-radius:11px;background:#f8fafc;font-size:.82rem;font-weight:800}
.form-control,.form-select{border-radius:11px}
.subject-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;align-items:start}.subject-image-card{overflow:hidden;border:1px solid rgba(148,163,184,.24);border-radius:16px;padding:14px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.subject-image-card-title,.subject-image-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 11px;font-size:.82rem;font-weight:900}
.subject-image-title-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:11px;background:var(--subject-soft,#f5f3ff);color:var(--subject-accent,#7c3aed)}
.subject-image-title-text{display:grid;gap:1px;min-width:0}.subject-image-preview,.subject-image-empty{width:100%;height:160px;border-radius:13px;border:1px solid rgba(148,163,184,.26);margin-bottom:12px}
.subject-image-preview{display:block;object-fit:cover;background:#f8fafc}.subject-image-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#f8fafc;color:#94a3b8}
.subject-image-upload{padding:12px;border-radius:13px;background:#fff;border:1px dashed rgba(100,116,139,.34);margin-bottom:12px}.subject-image-upload-actions{display:flex;justify-content:flex-end;margin-top:8px}.subject-image-fields{display:grid;gap:10px}
.subject-icon-picker{width:100%;min-height:54px;display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #d8dee8;border-radius:11px;background:#fff;color:#334155;text-align:left}
.subject-icon-picker:hover,.subject-icon-picker:focus-visible{border-color:var(--subject-accent,#7c3aed);box-shadow:0 0 0 3px color-mix(in srgb,var(--subject-accent,#7c3aed) 14%,transparent);outline:0}
.subject-icon-picker-preview{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--subject-border,#ddd6fe);border-radius:10px;background:var(--subject-soft,#f5f3ff);color:var(--subject-accent,#7c3aed)}
.subject-icon-picker-text{display:grid;gap:1px;min-width:0}
.subject-repeatable-item{--subject-accent:var(--accent,#7c3aed);--subject-soft:var(--soft,#f5f3ff);--subject-border:var(--border,#ddd6fe);border:1px solid var(--subject-border);border-left:5px solid var(--subject-accent);border-radius:20px;background:linear-gradient(135deg,#fff 0%,var(--subject-soft) 100%);box-shadow:0 14px 30px rgba(15,23,42,.08);margin-bottom:16px;overflow:hidden}
.subject-repeatable-item-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:var(--subject-soft);border-bottom:1px solid var(--subject-border)}
.subject-repeatable-item-title{display:flex;align-items:center;gap:9px;min-width:0}.subject-repeatable-item-body{padding:16px}.subject-repeatable-item-actions{display:flex;gap:6px;flex-wrap:wrap}.subject-repeatable-item-actions .btn{width:32px;height:32px;padding:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center}.subject-repeatable-drag{cursor:grab;color:var(--subject-accent)}
.subject-repeatable-add,.subject-repeatable-reset{border:2px dashed color-mix(in srgb,var(--subject-accent,#7c3aed) 28%,transparent);background:var(--subject-soft,#faf7ff);color:var(--subject-accent,#6d28d9);border-radius:18px;padding:18px;width:100%;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px}
.subject-repeatable-empty{text-align:center;padding:30px;border:2px dashed rgba(148,163,184,.28);border-radius:18px;background:#f8fafc;color:#64748b}.subject-repeatable-collection-actions{display:flex;gap:10px;flex-wrap:wrap}
.subject-preview-pill{display:inline-flex;align-items:center;gap:6px}.subject-page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.subject-page-eyebrow{font-size:.72rem;font-weight:900;text-transform:uppercase;color:#64748b}.subject-add-header{white-space:nowrap}
.theme-root,.tone-root{--subject-accent:#334155;--subject-soft:#f1f5f9;--subject-border:#cbd5e1}.theme-story,.tone-emerald{--subject-accent:#059669;--subject-soft:#ecfdf5;--subject-border:#a7f3d0}.theme-mission,.tone-violet{--subject-accent:#7c3aed;--subject-soft:#f5f3ff;--subject-border:#ddd6fe}.theme-facility,.tone-orange{--subject-accent:#ea580c;--subject-soft:#fff7ed;--subject-border:#fed7aa}.theme-people,.tone-indigo{--subject-accent:#4f46e5;--subject-soft:#eef2ff;--subject-border:#c7d2fe}.tone-teal{--subject-accent:#0f766e;--subject-soft:#f0fdfa;--subject-border:#99f6e4}.tone-amber{--subject-accent:#d97706;--subject-soft:#fffbeb;--subject-border:#fde68a}.tone-rose{--subject-accent:#e11d48;--subject-soft:#fff1f2;--subject-border:#fecdd3}.tone-cyan{--subject-accent:#0891b2;--subject-soft:#ecfeff;--subject-border:#a5f3fc}
.theme-purpose{--subject-accent:#0f766e;--subject-soft:#f0fdfa;--subject-border:#99f6e4}.theme-impact{--subject-accent:#db2777;--subject-soft:#fdf2f8;--subject-border:#fbcfe8}.theme-principles{--subject-accent:#d97706;--subject-soft:#fffbeb;--subject-border:#fde68a}.theme-future{--subject-accent:#4f46e5;--subject-soft:#eef2ff;--subject-border:#c7d2fe}.theme-growth{--subject-accent:#059669;--subject-soft:#ecfdf5;--subject-border:#a7f3d0}.theme-innovation{--subject-accent:#7c3aed;--subject-soft:#f5f3ff;--subject-border:#ddd6fe}.theme-community{--subject-accent:#e11d48;--subject-soft:#fff1f2;--subject-border:#fecdd3}.theme-roadmap{--subject-accent:#d97706;--subject-soft:#fffbeb;--subject-border:#fde68a}
.subject-section-header[class*="theme-"],[class*="theme-"]>.subject-section-header{background:var(--subject-accent,#111827)}
@media(max-width:992px){.subject-editor-workspace{grid-template-columns:1fr}.subject-editor-left-rail{position:static;max-height:none;overflow:visible;padding-right:0}.subject-editor-nav-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.subject-editor-toolbar-actions{flex-direction:row}.subject-editor-toolbar-actions .btn{flex:1}}
@media(max-width:991.98px){.subject-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.subject-editor-nav-list,.subject-grid,.hero-editor-paired-grid,.hero-editor-message-grid,.hero-editor-icon-title-row{grid-template-columns:1fr}.subject-image-grid{grid-template-columns:1fr}.subject-section-body,.subject-panel{padding:14px}.subject-editor-toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.subject-page-header{align-items:stretch;flex-direction:column}.subject-add-header{width:100%}.subject-repeatable-item-header{align-items:flex-start}}


/* =====================================================================
   HERO FIXED SUBJECT EDITOR
   Centralized version of the complete, previously working Hero styling.
   The Razor page keeps shared Fixed Editor classes and Hero aliases.
   ===================================================================== */

.facility-hero-edit-page {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 48%, #f8fafc 100%);
    min-height: 100vh;
}

.hero-editor-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.hero-editor-page-header {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(10px);
}

.facility-hero-edit-page .card {
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden;
}

.hero-editor-workspace {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.hero-editor-left-rail {
    position: sticky;
    top: 92px;
    z-index: 1040;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-editor-section-navigator,
.hero-editor-floating-toolbar {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10), 0 3px 10px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(12px);
}

.hero-editor-section-navigator {
    padding: 10px;
}

.hero-editor-section-navigator-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 7px 9px;
    color: #475569;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-editor-section-navigator-title i {
    color: #2563eb;
}

.hero-editor-section-nav-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hero-editor-section-nav-item {
    --hero-nav-accent: #2563eb;
    --hero-nav-soft: #eff6ff;
    --hero-nav-border: rgba(37, 99, 235, .22);
    width: 100%;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--hero-nav-border);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, var(--hero-nav-soft) 145%);
    color: #334155;
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.hero-editor-section-nav-item.tone-root {
    --hero-nav-accent: #111827;
    --hero-nav-soft: #f1f5f9;
    --hero-nav-border: rgba(15, 23, 42, .22);
}

.hero-editor-section-nav-item.tone-brand {
    --hero-nav-accent: #198754;
    --hero-nav-soft: #ecfdf3;
    --hero-nav-border: rgba(25, 135, 84, .24);
}

.hero-editor-section-nav-item.tone-trust {
    --hero-nav-accent: #0d6efd;
    --hero-nav-soft: #eff6ff;
    --hero-nav-border: rgba(13, 110, 253, .24);
}

.hero-editor-section-nav-item.tone-highlights {
    --hero-nav-accent: #7c3aed;
    --hero-nav-soft: #f5f3ff;
    --hero-nav-border: rgba(124, 58, 237, .24);
}

.hero-editor-section-nav-item > i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--hero-nav-soft);
    color: var(--hero-nav-accent);
    border: 1px solid var(--hero-nav-border);
    flex-shrink: 0;
}

.hero-editor-section-nav-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-editor-section-nav-title {
    color: #0f172a;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1.2;
}

.hero-editor-section-nav-meta {
    color: #64748b;
    font-size: .69rem;
    font-weight: 700;
    line-height: 1.35;
}

.hero-editor-section-nav-item:hover {
    transform: translateX(2px);
    border-color: var(--hero-nav-accent);
    box-shadow: 0 9px 20px color-mix(in srgb, var(--hero-nav-accent) 14%, transparent);
    color: #0f172a;
}

.hero-editor-section-nav-item.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--hero-nav-accent) 92%, #000000), var(--hero-nav-accent));
    color: #ffffff;
    border-color: var(--hero-nav-accent);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--hero-nav-accent) 28%, transparent);
}

.hero-editor-section-nav-item.active > i {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .22);
    color: #ffffff;
}

.hero-editor-section-nav-item.active .hero-editor-section-nav-title,
.hero-editor-section-nav-item.active .hero-editor-section-nav-meta {
    color: #ffffff;
}

.hero-editor-section-nav-item.active .hero-editor-section-nav-meta {
    opacity: .78;
}

.hero-editor-main-stack {
    min-width: 0;
}

.hero-editor-scroll-target {
    scroll-margin-top: 106px;
}

.hero-editor-section-card > .card-header {
    padding: 18px 22px;
    border-bottom: 0;
}

.hero-editor-section-card > .card-body {
    padding: 22px;
}

.hero-editor-panel {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.055);
}

.hero-editor-panel-soft {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.hero-editor-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.hero-editor-panel-title i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #1d4ed8;
    background: #e0edff;
}

.hero-editor-panel-note {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.hero-editor-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
    margin: 4px 0 16px;
}

.hero-editor-section-label::before {
    content: "";
    width: 7px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #22c55e);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.hero-editor-field-shell {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 14px;
    height: 100%;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.hero-editor-icon-title-row {
    display: grid;
    grid-template-columns: minmax(190px, 260px) 1fr;
    gap: 16px;
    align-items: end;
}

.hero-editor-message-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero-editor-paired-shell {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.055);
}

.hero-editor-paired-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero-editor-child-header-grid {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(220px, 1fr) minmax(280px, 1.25fr);
    gap: 16px;
    align-items: stretch;
}

.hero-editor-subpanel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-editor-subpanel-title i {
    color: #2563eb;
}

@@media (max-width: 992px) {
    .hero-editor-workspace {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-editor-left-rail {
        position: sticky;
        top: 58px;
        z-index: 1040;
        gap: 0;
    }

    .hero-editor-section-navigator {
        border-radius: 13px;
        overflow: visible;
        padding: 5px 6px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .hero-editor-section-navigator-title {
        display: none;
    }

    .hero-editor-section-nav-list {
        flex-direction: row;
        min-width: max-content;
        overflow-x: auto;
        padding-bottom: 1px;
        gap: 5px;
    }

    .hero-editor-section-nav-item {
        width: auto;
        min-width: 150px;
        grid-template-columns: 24px minmax(0, 1fr);
        padding: 7px 8px;
        gap: 6px;
        border-radius: 11px;
    }

    .hero-editor-section-nav-item > i {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        font-size: .72rem;
    }

    .hero-editor-section-nav-title {
        font-size: .69rem;
    }

    .hero-editor-section-nav-meta {
        font-size: .59rem;
        white-space: normal;
    }

    .hero-editor-section-nav-item:hover {
        transform: translateY(-1px);
    }
}

@@media (max-width: 992px) {
    .hero-editor-paired-grid,
    .hero-editor-message-grid,
    .hero-editor-child-header-grid,
    .hero-editor-icon-title-row {
        grid-template-columns: 1fr;
    }
}

.hero-editor-badge-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-editor-child-section .card-header {
    position: relative;
}

.hero-editor-child-section .card-header::after {
    content: "";
    position: absolute;
    inset: auto 20px 0 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.facility-hero-edit-page .form-control,
.facility-hero-edit-page .form-select {
    border-radius: 12px;
    border-color: #d7dee8;
}

.facility-hero-edit-page .form-control:focus,
.facility-hero-edit-page .form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.13);
}



.hero-editor-standard-panel {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.055);
}

.hero-editor-standard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.hero-editor-standard-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
}

.hero-editor-standard-title i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef2ff;
    color: #3730a3;
}

.hero-editor-standard-note {
    color: #64748b;
    font-size: .86rem;
    margin-top: 3px;
}

.hero-editor-image-card {
    height: 100%;
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, rgba(99, 102, 241, 0.035));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    padding: 14px;
}

.hero-editor-image-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 900;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-editor-image-preview,
.hero-editor-image-empty {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    margin-bottom: 12px;
    background: #f8fafc;
}

.hero-editor-image-preview {
    object-fit: cover;
    display: block;
}

.hero-editor-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: #64748b;
    font-weight: 900;
}

.hero-editor-image-empty i {
    font-size: 1.35rem;
    color: #94a3b8;
}

.hero-editor-image-upload-block {
    margin-bottom: 12px;
}

.hero-editor-image-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.hero-editor-image-preset-pill {
    min-height: 44px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon label"
        "icon value";
    align-items: center;
    gap: 0 8px;
    padding: .45rem .55rem;
    border: 1px solid rgba(99, 102, 241, .18);
    border-radius: 12px;
    background: rgba(99, 102, 241, .07);
}

.hero-editor-image-preset-pill i {
    grid-area: icon;
    color: #3730a3;
}

.hero-editor-image-preset-pill span {
    grid-area: label;
    color: #64748b;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.1;
}

.hero-editor-image-preset-pill strong {
    grid-area: value;
    color: #0f172a;
    font-size: .78rem;
    font-weight: 950;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-editor-fact-card {
    border: 1px solid rgba(99, 102, 241, 0.16) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fbfbff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06) !important;
}

.hero-editor-fact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 800;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-editor-fact-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-editor-fact-description {
    margin-top: 0;
}

.hero-editor-icon-picker-field {
    min-width: 0;
}

.hero-editor-icon-picker-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: .25rem;
    padding: 9px 11px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 14px;
    background: #fff;
    color: #334155;
    text-align: left;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.hero-editor-icon-picker-button:hover,
.hero-editor-icon-picker-button:focus {
    border-color: rgba(37, 99, 235, .42);
    background: linear-gradient(135deg, rgba(37, 99, 235, .06), #ffffff 70%);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .10);
    outline: none;
    transform: translateY(-1px);
}

.hero-editor-icon-picker-preview {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, .18);
}

.hero-editor-icon-picker-preview i {
    font-size: 1.05rem;
    line-height: 1;
}

.hero-editor-icon-picker-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1 1 auto;
}

.hero-editor-icon-picker-text strong {
    font-size: .84rem;
    font-weight: 900;
    color: #0f172a;
}

.hero-editor-icon-picker-text small {
    margin: 0;
    color: #64748b;
    font-size: .74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-editor-icon-picker-caret {
    color: #2563eb;
    flex: 0 0 auto;
}

@@media (max-width: 768px) {
    .hero-editor-shell {
        max-width: 100%;
    }

    .hero-editor-page-header {
        border-radius: 18px;
        padding: 16px;
    }

}

.hero-editor-action-card {
    border: 1px solid rgba(37, 99, 235, 0.14) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07) !important;
}

.hero-editor-action-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-editor-action-grid,
.hero-editor-simple-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.hero-editor-action-grid > div,
.hero-editor-simple-action-grid > div {
    min-width: 0;
}

.hero-editor-action-grid .form-control,
.hero-editor-action-grid .form-select,
.hero-editor-simple-action-grid .form-control,
.hero-editor-simple-action-grid .form-select {
    width: 100%;
}
.hero-editor-floating-toolbar-spacer {
    display: none;
}

.hero-editor-floating-toolbar {
    padding: 12px;
}

.hero-editor-floating-toolbar-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    color: #0f172a;
    margin-bottom: 10px;
}

.hero-editor-floating-toolbar-title i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #1d4ed8;
    background: #eff6ff;
    flex-shrink: 0;
}

.hero-editor-floating-toolbar-title .fw-bold {
    line-height: 1.15;
    font-size: .92rem;
}

.hero-editor-floating-toolbar-title .small {
    display: none;
}

.hero-editor-floating-toolbar-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
}

.hero-editor-floating-toolbar-actions .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    font-weight: 800;
    font-size: .78rem;
    border-radius: 11px;
    padding: 6px 9px;
}

.hero-editor-floating-toolbar-actions .btn i {
    margin-right: 0 !important;
    font-size: .9rem;
}

@@media (max-width: 992px) {
    .hero-editor-floating-toolbar-spacer {
        display: block;
        height: 58px;
    }

    .hero-editor-floating-toolbar {
        position: fixed;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        z-index: 1050;
        width: min(430px, calc(100vw - 28px));
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 7px;
        padding: 6px 8px;
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), 0 3px 10px rgba(15, 23, 42, 0.06);
        backdrop-filter: blur(12px);
    }

    .hero-editor-floating-toolbar-title {
        align-items: center;
        margin-bottom: 0;
        gap: 6px;
    }

    .hero-editor-floating-toolbar-title i {
        width: 25px;
        height: 25px;
        border-radius: 9px;
        font-size: .82rem;
    }

    .hero-editor-floating-toolbar-title .fw-bold {
        font-size: .72rem;
        white-space: nowrap;
        line-height: 1.05;
    }

    .hero-editor-floating-toolbar-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        flex-shrink: 0;
    }

    .hero-editor-floating-toolbar-actions .btn {
        width: 31px;
        height: 31px;
        min-height: 31px;
        padding: 0;
        border-radius: 10px;
        border-width: 1px;
    }

    .hero-editor-floating-toolbar-actions .btn span:not(.spinner-border) {
        display: none;
    }

    .hero-editor-floating-toolbar-actions .btn i {
        font-size: .86rem;
    }
}

@@media (max-width: 576px) {
    .hero-editor-left-rail {
        top: 54px;
    }

    .hero-editor-section-navigator {
        padding: 4px 5px;
        border-radius: 12px;
    }

    .hero-editor-section-nav-list {
        gap: 4px;
    }

    .hero-editor-section-nav-item {
        min-width: 138px;
        grid-template-columns: 21px minmax(0, 1fr);
        padding: 6px 7px;
        gap: 5px;
        border-radius: 10px;
    }

    .hero-editor-section-nav-item > i {
        width: 21px;
        height: 21px;
        font-size: .66rem;
        border-radius: 7px;
    }

    .hero-editor-section-nav-title {
        font-size: .64rem;
    }

    .hero-editor-section-nav-meta {
        font-size: .55rem;
    }

    .hero-editor-floating-toolbar {
        width: min(360px, calc(100vw - 22px));
        bottom: 8px;
        padding: 5px 7px;
        border-radius: 12px;
    }

    .hero-editor-floating-toolbar-title .fw-bold {
        max-width: 82px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: .66rem;
    }

    .hero-editor-floating-toolbar-title i {
        width: 23px;
        height: 23px;
        font-size: .78rem;
    }

    .hero-editor-floating-toolbar-actions {
        gap: 4px;
    }

    .hero-editor-floating-toolbar-actions .btn {
        width: 29px;
        height: 29px;
        min-height: 29px;
        border-radius: 9px;
    }

    .hero-editor-floating-toolbar-actions .btn i {
        font-size: .8rem;
    }
}


.facility-hero-edit-page,
.facility-hero-edit-page .card,
.facility-hero-edit-page .card-body,
.facility-hero-edit-page .hero-editor-panel,
.facility-hero-edit-page .hero-editor-field-shell,
.facility-hero-edit-page .hero-editor-standard-panel,
.facility-hero-edit-page .hero-editor-paired-shell {
    overflow: visible !important;
}

.hero-editor-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .4rem;
    overflow: visible;
}

.hero-editor-field-header .form-label {
    margin-bottom: 0;
    font-weight: 700;
    color: #111827;
}

.hero-editor-field-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    flex-shrink: 0;
    overflow: visible;
}

.hero-editor-input-block {
    min-width: 0;
    overflow: visible;
}

.hero-editor-input-block + .hero-editor-input-block {
    margin-top: .75rem;
}

.hero-editor-help-preview {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    z-index: 2147483002 !important;
    width: max-content !important;
    min-width: 220px !important;
    max-width: min(340px, calc(100vw - 32px)) !important;
    border-radius: 14px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .34) !important;
    padding: .75rem .9rem !important;
    font-size: .8rem !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    pointer-events: none !important;
    text-align: left !important;
}

.hero-editor-help-preview::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #0f172a;
    transform: rotate(45deg);
}

@@media (max-width: 576px) {
    .hero-editor-help-preview {
        right: 50% !important;
        transform: translateX(50%) !important;
        max-width: calc(100vw - 28px) !important;
    }

    .hero-editor-help-preview::before {
        right: 50%;
        transform: translateX(50%) rotate(45deg);
    }
}

.hero-editor-empty-option {
    color: #94a3b8;
}

.hero-editor-image-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin-top: .65rem;
}

.hero-editor-image-preset-grid .hero-editor-input-block {
    margin-bottom: 0;
}

.hero-editor-preset-action-role .hero-editor-field-header {
    margin-bottom: 6px;
}

.hero-editor-preset-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-editor-preset-role-pill i {
    color: #64748b;
}


.facility-hero-edit-page .d-flex.align-items-center.justify-content-between.gap-2 {
    overflow: visible;
    margin-bottom: .4rem;
}

.facility-hero-edit-page .d-flex.align-items-center.justify-content-between.gap-2 + .form-control,
.facility-hero-edit-page .d-flex.align-items-center.justify-content-between.gap-2 + .form-select,
.facility-hero-edit-page .d-flex.align-items-center.justify-content-between.gap-2 + textarea.form-control {
    display: block;
    width: 100%;
}


/* Compact section navigation: metadata is available through the native tooltip. */
.hero-editor-left-rail {
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, .36) transparent;
}
.hero-editor-left-rail::-webkit-scrollbar { width: 6px; }
.hero-editor-left-rail::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .32); border-radius: 999px; }
.hero-editor-section-nav-item {
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 9px;
}
.hero-editor-section-nav-item > i { width: 26px; height: 26px; border-radius: 8px; }
.hero-editor-section-nav-text { justify-content: center; gap: 0; }
.hero-editor-section-nav-title { font-size: .77rem; line-height: 1.2; }
.hero-editor-section-nav-meta { display: none !important; }
@@media (max-width: 1000px) {
    .hero-editor-left-rail { max-height: none; overflow: visible; padding-right: 0; }
}


/* =====================================================================
   HERO IMAGE CARD + OPACITY COMPACT FIX
   ===================================================================== */

.facility-hero-edit-page .hero-editor-image-card {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.facility-hero-edit-page .hero-editor-image-card .hero-editor-field-shell {
    height: auto;
    min-height: 0;
    margin-bottom: 12px;
}

.facility-hero-edit-page .hero-editor-image-card textarea.form-control {
    min-height: 72px;
    resize: vertical;
}

.facility-hero-edit-page .hero-editor-opacity-control {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: none;
    height: auto;
    min-height: 0;
}

.facility-hero-edit-page .hero-editor-opacity-control .form-label {
    font-size: .82rem;
    font-weight: 800;
    color: #334155;
}

.facility-hero-edit-page .hero-editor-opacity-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(99, 102, 241, 0.20);
    border-radius: 999px;
    background: #ffffff;
    color: #3730a3;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}

.facility-hero-edit-page .hero-editor-opacity-range {
    margin: 0;
    height: 18px;
}

.facility-hero-edit-page .hero-editor-image-preset-grid {
    margin-top: 0;
}

@media (max-width: 767.98px) {
    .facility-hero-edit-page .hero-editor-opacity-control {
        padding: 10px 12px;
    }
}



/* =====================================================================
   SUBJECT EDITOR COMPACT DESIGN SYSTEM v2
   ===================================================================== */
.subject-editor-page{font-size:.9rem}.subject-editor-shell{max-width:1120px}.subject-editor-workspace{grid-template-columns:164px minmax(0,1fr);gap:14px}
.subject-editor-left-rail{top:82px;gap:9px;max-height:calc(100vh - 94px)}.subject-editor-toolbar,.subject-editor-navigator{border-radius:14px;box-shadow:0 8px 22px rgba(15,23,42,.07)}
.subject-editor-toolbar{padding:9px}.subject-editor-toolbar-title{margin-bottom:7px;font-size:.8rem}.subject-editor-toolbar-title>i{width:25px;height:25px;border-radius:8px}
.subject-editor-toolbar-actions{gap:5px}.subject-editor-toolbar-actions .btn{min-height:31px;font-size:.72rem;border-radius:9px;padding:5px 7px}
.subject-editor-navigator{padding:8px}.subject-editor-nav-title{padding:3px 5px 7px;font-size:.62rem}.subject-editor-nav-list{gap:5px}
.subject-editor-nav-item{min-height:36px;padding:5px 7px;border-left-width:3px;border-radius:10px;gap:6px}.subject-editor-nav-item i{width:20px;height:20px;border-radius:7px;font-size:.75rem}.subject-editor-nav-text strong,.subject-editor-nav-item strong{font-size:.71rem}
.subject-section-card{border-radius:16px;margin-bottom:14px;box-shadow:0 9px 25px rgba(15,23,42,.055)}.subject-section-header{padding:12px 16px}.subject-section-header h2{font-size:.9rem}.subject-section-header p{font-size:.7rem;margin-top:2px}
.subject-section-heading{gap:8px}.subject-section-body{padding:14px}.subject-panel{border-radius:13px;padding:13px;margin-bottom:12px;box-shadow:0 5px 16px rgba(15,23,42,.035)}
.subject-panel-title{gap:8px;font-size:.82rem}.subject-panel-title i{width:28px;height:28px;border-radius:9px}.subject-panel-note{font-size:.75rem;margin-bottom:11px}
.subject-grid,.subject-image-grid{gap:11px}.subject-field-shell,.subject-subcard,.subject-fact-card,.subject-action-card{border-radius:11px;padding:10px;box-shadow:none}
.subject-subcard h4{font-size:.75rem;margin-bottom:9px}.subject-editor-field{gap:.25rem}.subject-editor-field+.subject-editor-field{margin-top:.55rem}.subject-editor-field label,.subject-editor-label label{font-size:.74rem}.subject-editor-field textarea{min-height:72px}
.subject-check{min-height:34px;padding:.42rem .58rem;border-radius:9px;font-size:.74rem}.subject-icon-picker{min-height:44px;padding:6px 8px;border-radius:9px}.subject-icon-picker-preview{width:30px;height:30px;border-radius:8px}
.subject-repeatable-item{border-radius:14px;border-left-width:4px;margin-bottom:11px;box-shadow:0 7px 20px rgba(15,23,42,.05)}.subject-repeatable-item-header{padding:9px 11px}.subject-repeatable-item-body{padding:11px}.subject-repeatable-item-actions .btn{width:29px;height:29px;border-radius:8px}
.subject-repeatable-add,.subject-repeatable-reset{border-radius:13px;padding:12px;font-size:.8rem}.subject-page-header{margin-bottom:11px}.subject-page-header h1{font-size:1.15rem!important}.subject-page-header p{font-size:.78rem}
.form-control,.form-select{min-height:36px;border-radius:9px;font-size:.82rem}textarea.form-control{padding-top:.5rem;padding-bottom:.5rem}
.facility-hero-edit-page .hero-editor-page-header{border-radius:16px;padding:14px 16px;box-shadow:0 8px 22px rgba(15,23,42,.05)}.facility-hero-edit-page .hero-editor-page-header h1{font-size:1.2rem!important}
.facility-hero-edit-page .card{border-radius:16px!important;box-shadow:0 9px 25px rgba(15,23,42,.055)!important}.facility-hero-edit-page .hero-editor-section-card>.card-header{padding:12px 16px}.facility-hero-edit-page .hero-editor-section-card>.card-body{padding:14px}
.facility-hero-edit-page .hero-editor-panel{border-radius:13px;padding:13px;margin-bottom:12px;box-shadow:0 5px 16px rgba(15,23,42,.035)}.facility-hero-edit-page .hero-editor-panel-title{font-size:.82rem}.facility-hero-edit-page .hero-editor-panel-title i{width:28px;height:28px;border-radius:9px}.facility-hero-edit-page .hero-editor-panel-note{font-size:.75rem;margin-bottom:11px}.facility-hero-edit-page .hero-editor-field-shell{border-radius:11px;padding:10px;box-shadow:none}
@media(max-width:992px){.subject-editor-workspace{grid-template-columns:1fr}.subject-editor-left-rail{max-height:none}.subject-editor-toolbar-actions{flex-wrap:wrap}}


/* Shared image cards inside the four-column CSS grid.
   The component may carry Bootstrap col-* classes for row-based editors.
   Inside subject-image-grid those widths must be neutralized so the card
   fills its own grid track instead of becoming 25% of that track. */
.subject-image-grid > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
}

.subject-image-grid > * > .subject-image-editor-card {
    width: 100%;
    min-width: 0;
}

/* Shared SubjectEditorSidebar width normalization */
@media (min-width: 993px){
  .subject-editor-shell{max-width:1180px}
  .subject-editor-workspace{grid-template-columns:210px minmax(0,1fr);gap:16px}
}


/* Edit Generator image layout: full-screen editors use two image cards per row.
   Mobile screens remain single-column through the responsive override below. */
.subject-generated-editor .subject-image-grid,
.subject-image-grid.subject-image-grid-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 700px) {
    .subject-generated-editor .subject-image-grid,
    .subject-image-grid.subject-image-grid-two-col {
        grid-template-columns: 1fr;
    }
}

/* Generated editor section heading: align root/child icon with section title. */
.subject-generated-editor .subject-section-heading{
    display:flex;
    align-items:center;
    gap:.42rem;
    line-height:1.2;
}

.subject-generated-editor .subject-section-heading-icon{
    width:1.25rem;
    height:1.25rem;
    border-radius:.45rem;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 1.25rem;
    background:rgba(255,255,255,.16);
    color:rgba(255,255,255,.96);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}

.subject-generated-editor .subject-section-heading-icon i{
    font-size:.72rem;
    line-height:1;
}

.subject-generated-editor .subject-section-heading-separator{
    opacity:.72;
}
