/* ==========================================================================
   DÉMO INTERACTIVE (single-demo.php) : hero + sections empilées H2
   ========================================================================== */

.demo-single-wrapper {
    background-color: #f8fafc;
    color: #0f172a;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 5rem;
}
.demo-single-wrapper h1,
.demo-single-wrapper h2,
.demo-single-wrapper h3 {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

/* Hero */
.demo-single-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.demo-single-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(500px 220px at 12% 0%, rgba(59,130,246,.22), transparent 70%),
        radial-gradient(420px 200px at 88% 100%, rgba(129,140,248,.16), transparent 70%);
}
.demo-single-hero .inar-container { position: relative; }
.demo-single-hero .inar-badge {
    background-color: rgba(59,130,246,.15); color: #60a5fa;
    border: 1px solid rgba(96,165,250,.2);
}
.demo-single-title { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; margin: 0 0 1rem; color: #fff; }
.demo-single-excerpt { font-size: 1.125rem; color: #94a3b8; max-width: 640px; margin: 0 auto; }
.demo-single-meta { margin: 1.25rem 0 0; color: #94a3b8; font-size: .9rem; }
.demo-single-meta a { color: #93c5fd; font-weight: 600; }

/* Corps : article large, sections séparées */
.demo-single-body { padding-top: 3rem; max-width: 960px; }
.demo-single-empty { color: #64748b; text-align: center; padding: 3rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; }
.demo-sec { scroll-margin-top: 5rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
@media (prefers-reduced-motion: no-preference) {
    html:has(.demo-single-wrapper) { scroll-behavior: smooth; }
}
.demo-sec + .demo-sec { margin-top: 1.75rem; }
.demo-sec-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 1.25rem; letter-spacing: -.01em; }

/* 1. Démo live */
.demo-live-frame { width: 100%; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; }
.demo-live-sc > :first-child { margin-top: 0; }
.demo-live-cap { font-size: .82rem; color: #94a3b8; text-align: center; margin: .5rem 0 0; }

/* 1b. Grille de démos live : 1 case = 1 comparateur + explication */
.demo-live-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .demo-live-grid { grid-template-columns: repeat(2, 1fr); } }
.demo-live-box { margin: 0; min-width: 0; }
.demo-live-box-framed { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.demo-live-box-framed:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: 0 16px 30px -12px rgba(15,23,42,.15); }
.demo-live-box figcaption { padding: .9rem 1.1rem 1.1rem; color: #475569; font-size: .9rem; }

/* 1c. Masonry galerie : colonnes CSS + cartes blanches façon cadre photo */
.demo-masonry { columns: 1; column-gap: 1rem; }
@media (min-width: 640px) {
    .demo-masonry-cols-2 { columns: 2; }
    .demo-masonry-cols-3, .demo-masonry-cols-4 { columns: 2; }
}
@media (min-width: 1024px) {
    .demo-masonry-cols-2 { columns: 2; }
    .demo-masonry-cols-3 { columns: 3; }
    .demo-masonry-cols-4 { columns: 4; }
}
.demo-masonry-bg-gallery { background: linear-gradient(180deg, #fb923c 0%, #f97316 55%, #ea580c 100%); border-radius: 1.25rem; padding: 1.25rem; }
.demo-masonry-bg-indigo, .demo-mosaic-bg-indigo { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); border-radius: 1.25rem; padding: 1.25rem; }
.demo-masonry-bg-navy { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 1.25rem; padding: 1.25rem; }
.demo-masonry-bg-custom { border-radius: 1.25rem; padding: 1.25rem; }
.demo-masonry-item { break-inside: avoid; margin: 0 0 1rem; background: #fff; border-radius: .9rem; padding: .5rem; overflow: hidden;
    box-shadow: 0 12px 28px -10px rgba(15,23,42,.35); transition: transform .2s, box-shadow .2s; }
.demo-masonry-bg-gallery .demo-masonry-item:hover, .demo-masonry-bg-indigo .demo-masonry-item:hover, .demo-masonry-bg-navy .demo-masonry-item:hover, .demo-masonry-bg-custom .demo-masonry-item:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -12px rgba(15,23,42,.45); }
/* Formats prédéfinis : l'emplacement impose le ratio (neutralise la hauteur px du shortcode). */
.demo-masonry-item[data-ratio="16/9"] .pixvisualize-slider-container { aspect-ratio: 16 / 9 !important; height: auto !important; }
.demo-masonry-item[data-ratio="21/9"] .pixvisualize-slider-container { aspect-ratio: 21 / 9 !important; height: auto !important; }
.demo-masonry-item[data-ratio="4/3"] .pixvisualize-slider-container { aspect-ratio: 4 / 3 !important; height: auto !important; }
.demo-masonry-item[data-ratio="1/1"] .pixvisualize-slider-container { aspect-ratio: 1 / 1 !important; height: auto !important; }
.demo-masonry-item[data-ratio="9/16"] .pixvisualize-slider-container { aspect-ratio: 9 / 16 !important; height: auto !important; }
.demo-masonry-item[data-ratio="9/21"] .pixvisualize-slider-container { aspect-ratio: 9 / 21 !important; height: auto !important; }
.demo-masonry-bg-light .demo-masonry-item { background: #f8fafc; border: 1px solid #e2e8f0; padding: 0; box-shadow: none; }
.demo-masonry-bg-light .demo-masonry-item:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: 0 16px 30px -12px rgba(15,23,42,.15); }
/* 1d. Mosaïque prédéfinie (puzzle) : 6 colonnes, zones nommées, lignes 124px */
.demo-mosaic { display: grid; gap: .75rem; }
.demo-mosaic-bg-gallery { background: linear-gradient(180deg, #fb923c 0%, #f97316 55%, #ea580c 100%); border-radius: 1.25rem; padding: 1.25rem; }
.demo-mosaic-bg-navy { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 1.25rem; padding: 1.25rem; }
.demo-mosaic-bg-custom { border-radius: 1.25rem; padding: 1.25rem; }
.demo-mosaic-item { background: #fff; border-radius: .9rem; padding: .5rem; overflow: hidden; min-width: 0;
    box-shadow: 0 12px 28px -10px rgba(15,23,42,.35); transition: transform .2s, box-shadow .2s; margin: 0; }
.demo-mosaic-bg-gallery .demo-mosaic-item:hover, .demo-mosaic-bg-indigo .demo-mosaic-item:hover, .demo-mosaic-bg-navy .demo-mosaic-item:hover, .demo-mosaic-bg-custom .demo-mosaic-item:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -12px rgba(15,23,42,.45); }
.demo-mosaic-bg-light .demo-mosaic-item { background: #f8fafc; border: 1px solid #e2e8f0; padding: .5rem; box-shadow: none; }
.demo-mosaic-empty { display: flex; align-items: center; justify-content: center; min-height: 120px; background: transparent;
    border: 2px dashed rgba(255,255,255,.7); color: #fff; font-weight: 800; text-transform: uppercase; box-shadow: none; }
.demo-mosaic-bg-light .demo-mosaic-empty { border-color: #cbd5e1; color: #94a3b8; }
@media (min-width: 1024px) {
    .demo-mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(124px, auto); grid-template-areas:
        "v1 w1 w1 hero hero hero"
        "v1 s1 s2 hero hero hero"
        "w2 w2 s3 v2 w3 w3"
        "w4 w4 s7 v2 s8 s8"; }
    .demo-mosaic-slot-v1 { grid-area: v1; } .demo-mosaic-slot-w1 { grid-area: w1; }
    .demo-mosaic-slot-hero { grid-area: hero; } .demo-mosaic-slot-s1 { grid-area: s1; }
    .demo-mosaic-slot-s2 { grid-area: s2; } .demo-mosaic-slot-w2 { grid-area: w2; }
    .demo-mosaic-slot-s3 { grid-area: s3; } .demo-mosaic-slot-v2 { grid-area: v2; }
    .demo-mosaic-slot-w3 { grid-area: w3; } .demo-mosaic-slot-w4 { grid-area: w4; }
    .demo-mosaic-slot-s7 { grid-area: s7; } .demo-mosaic-slot-s8 { grid-area: s8; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .demo-mosaic { grid-template-columns: repeat(2, 1fr); }
    .demo-mosaic-item { grid-area: auto !important; }
}
@media (max-width: 639px) {
    .demo-mosaic { grid-template-columns: 1fr; }
    .demo-mosaic-item { grid-area: auto !important; }
}
/* Formats imposés : mêmes règles que la masonry galerie */
.demo-mosaic-item[data-ratio="16/9"] .pixvisualize-slider-container { aspect-ratio: 16 / 9 !important; height: auto !important; }
.demo-mosaic-item[data-ratio="21/9"] .pixvisualize-slider-container { aspect-ratio: 21 / 9 !important; height: auto !important; }
.demo-mosaic-item[data-ratio="4/3"] .pixvisualize-slider-container { aspect-ratio: 4 / 3 !important; height: auto !important; }
.demo-mosaic-item[data-ratio="1/1"] .pixvisualize-slider-container { aspect-ratio: 1 / 1 !important; height: auto !important; }
.demo-mosaic-item[data-ratio="9/16"] .pixvisualize-slider-container { aspect-ratio: 9 / 16 !important; height: auto !important; }
.demo-mosaic-item[data-ratio="9/21"] .pixvisualize-slider-container { aspect-ratio: 9 / 21 !important; height: auto !important; }

/* 1e. Mur galerie : lignes à hauteur égale, largeurs selon ratio, légendes masquées */
.demo-wall-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.demo-wall-row + .demo-wall-row { margin-top: 1rem; }
.demo-wall-frame { flex: none; max-width: 100%; box-sizing: content-box; background: #fff; border-radius: .9rem; padding: .5rem; margin: 0; overflow: hidden;
    box-shadow: 0 12px 28px -10px rgba(15,23,42,.35); transition: transform .2s, box-shadow .2s; }
.demo-wall-frame:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -12px rgba(15,23,42,.45); }
/* Légende ratio seule (titre imposé) : sobre, uniforme, façon planche maquette */
.demo-wall-frame .pixvisualize-caption-title { font-size: 26px !important; font-weight: 800 !important; }

/* Compat : ancienne astuce ancre #formats (grille live forcée en masonry) */
#formats .demo-live-grid { display: block; columns: 2; column-gap: 1.25rem; }
#formats .demo-live-box { break-inside: avoid; margin-bottom: 1.25rem; }
@media (max-width: 819px) { #formats .demo-live-grid { columns: 1; } }
@media (prefers-reduced-motion: reduce) { .demo-live-box:hover { transform: none; } }

/* 2. Colonnes libres 2/3/4 */
.demo-cols { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .demo-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .demo-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .demo-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .demo-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .demo-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.demo-col { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem; }
.demo-col h3 { margin: 0 0 .5rem; font-size: 1.02rem; }
.demo-col-txt { color: #475569; font-size: .92rem; }
.demo-col-txt p:first-child { margin-top: 0; } .demo-col-txt p:last-child { margin-bottom: 0; }

/* 3. Cartes 2/3/4 */
.demo-cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .demo-cards-2 { grid-template-columns: repeat(2, 1fr); }
    .demo-cards-3 { grid-template-columns: repeat(2, 1fr); }
    .demo-cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .demo-cards-3 { grid-template-columns: repeat(3, 1fr); }
    .demo-cards-4 { grid-template-columns: repeat(4, 1fr); }
}
.demo-card-block { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.demo-card-block:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: 0 16px 30px -12px rgba(15,23,42,.15); }
.demo-card-ico { width: 2.75rem; height: 2.75rem; border-radius: .75rem; object-fit: cover; margin-bottom: .75rem; }
.demo-card-block h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.demo-card-block p { margin: 0; color: #64748b; font-size: .92rem; }
.demo-card-points { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .5rem; }
.demo-card-points li { display: flex; gap: .5rem; align-items: flex-start; color: #475569; font-size: .9rem; }
.demo-card-points li::before { content: "✓"; color: #10b981; font-weight: 800; flex: none; }
.demo-card-link { display: inline-block; margin-top: .75rem; color: #4f46e5; font-weight: 700; font-size: .9rem; text-decoration: none; }

/* 4. Média + texte : image seule = légende à gauche ; alignement vertical
   réglable (option « Alignement vertical », défaut en haut). */
.demo-media { display: grid; gap: 1.75rem; align-items: start; grid-template-columns: 1fr; }
.demo-media-center { align-items: center; }
.demo-media-top { align-items: start; }
/* En haut : les deux colonnes partent exactement du même Y (ni stretch,
   ni marge haute résiduelle côté texte, quel que soit le 1er bloc WYSIWYG). */
.demo-media-top > * { align-self: start; min-width: 0; }
@media (min-width: 820px) {
    .demo-media { grid-template-columns: 1fr 1fr; }
    .demo-media-left .demo-media-fig { order: -1; }
    /* Compensation optique (cf. capture ligne rouge) : la 1re ligne de texte
       a un demi-interlignage (~0.45em avec line-height 1.7) au-dessus de ses
       capitales ; sans ce décalage le haut de l'image paraît « un peu plus
       haut » que le haut du texte. Desktop seul : en pile mobile, aucun décalage. */
    .demo-media-top .demo-media-fig { margin-top: 0.45em; }
}
.demo-media-fig { margin: 0; align-self: start; }
.demo-media-fig img { width: 100%; height: auto; border-radius: 1rem; border: 1px solid #e2e8f0; display: block; }
.demo-media-fig figcaption { font-size: .82rem; color: #94a3b8; text-align: left; margin-top: .5rem; }
.demo-video figcaption { font-size: .82rem; color: #94a3b8; text-align: center; margin-top: .5rem; }
.demo-media-txt { color: #334155; line-height: 1.7; align-self: start; min-width: 0; }
.demo-media-txt > *:first-child { margin-top: 0 !important; }

/* 5. Étapes */
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: demostep; }
.demo-step { display: flex; gap: 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem 1.5rem; counter-increment: demostep; }
.demo-step::before { content: counter(demostep); flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background-image: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; }
.demo-step h3 { margin: 0 0 .375rem; font-size: 1.05rem; }
.demo-step p { margin: 0; color: #475569; }

/* 6. Galerie (cartes cliquables -> lightbox, navigation groupée par galerie).
   Vignettes à hauteur uniforme (crop cover) + cadre blanc passe-partout,
   1 col mobile / 2 tablette / 3 desktop. Hover = lift carte (souris uniquement). */
.demo-gallery {
    display: grid; grid-template-columns: 1fr; gap: .6rem;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem;
    padding: .75rem;
}
@media (min-width: 640px) { .demo-gallery { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .demo-gallery { grid-template-columns: repeat(3, 1fr); } }
.demo-gallery img {
    width: 100%; height: 10rem; object-fit: cover; display: block;
    box-sizing: border-box;
    border-radius: .9rem; border: 1px solid #e2e8f0; background: #fff;
    padding: .5rem;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 25px -8px rgba(15,23,42,.10);
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (hover: hover) {
    .demo-gallery img:hover {
        transform: translateY(-4px);
        border-color: #c7d2fe;
        box-shadow: 0 20px 40px -12px rgba(15,23,42,.18);
    }
}
.demo-gallery img:focus-visible { outline: 3px solid rgba(79,70,229,.35); outline-offset: 2px; }
/* Légende galerie : champ « Légende » WP (caption), toujours centrée. */
.demo-gallery figure.demo-gallery-item { margin: 0; min-width: 0; }
.demo-gallery figcaption { font-size: .82rem; color: #94a3b8; text-align: center; margin: .5rem 0 0; }

/* 6b. Zoom au survol (option « Zoom au survol » par bloc, classe .has-zoom) :
   agrandit TOUTE l'image, pas une loupe. Souris uniquement, sinon sticky sur tactile. */
.demo-gallery.has-zoom img,
.demo-media-fig.has-zoom img,
.demo-rich.has-zoom img {
    transition: transform .35s ease, box-shadow .35s ease;
}
/* Le figure ne doit jamais rogner sa légende : pas d'overflow ici
   (le zoom scale l'img, comme en galerie). Le radius reste sur l'img. */
.demo-media-fig.has-zoom { overflow: visible; }
.demo-media-fig.has-zoom img { border-radius: 1rem; }
@media (hover: hover) {
    .demo-gallery.has-zoom img:hover,
    .demo-media-fig.has-zoom img:hover,
    .demo-rich.has-zoom img:hover {
        transform: scale(1.05);
        box-shadow: 0 16px 30px -12px rgba(15,23,42,.25);
        position: relative;
        z-index: 2;
    }
}

/* 7. Vidéo */
.demo-video { margin: 0; }
.demo-video-frame { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 1rem; overflow: hidden; border: 1px solid #e2e8f0; }
.demo-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }

/* 8. Code */
.demo-codeblock { border: 1px solid #1e293b; border-radius: 1rem; overflow: hidden; }
.demo-codebar { display: flex; justify-content: space-between; align-items: center; background: #0f172a; color: #94a3b8; font-size: .78rem; font-weight: 700; padding: .5rem 1rem; }
.demo-copy { background: #1e293b; color: #e2e8f0; border: 1px solid #334155; border-radius: .5rem; font-size: .78rem; font-weight: 600; padding: .3rem .75rem; cursor: pointer; }
.demo-copy:hover { border-color: #4f46e5; color: #fff; }
.demo-codeblock pre { margin: 0; background: #111c33; color: #e2e8f0; padding: 1.25rem; overflow-x: auto; font-size: .88rem; line-height: 1.6; }

/* 9. Encadrés */
.demo-callout { border-radius: .9rem; padding: 1rem 1.25rem; border: 1px solid; }
.demo-callout p:first-child { margin-top: 0; } .demo-callout p:last-child { margin-bottom: 0; }
.demo-callout-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.demo-callout-success { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.demo-callout-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.demo-callout-danger { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }

/* 10. Boutons */
.demo-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.demo-btns .inar-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.demo-btn-icon { display: inline-flex; align-items: center; flex: none; }
.demo-btn-icon svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.demo-btn-icon svg:not([fill]) path { fill: currentColor; }

/* 11. FAQ */
.demo-faq { display: grid; gap: .75rem; }
.demo-faq-item { border: 1px solid #e2e8f0; border-radius: .9rem; background: #f8fafc; }
.demo-faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.demo-faq-item summary::-webkit-details-marker { display: none; }
.demo-faq-item summary::after { content: "+"; color: #4f46e5; font-size: 1.3rem; font-weight: 800; flex: none; }
.demo-faq-item[open] summary::after { content: "–"; }
.demo-faq-a { padding: 0 1.25rem 1.25rem; color: #475569; }

/* 12. Tableau */
.demo-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 1rem; }
.demo-table { width: 100%; border-collapse: collapse; min-width: 480px; background: #fff; }
.demo-table th, .demo-table td { padding: .8rem 1rem; border-bottom: 1px solid #f1f5f9; text-align: left; font-size: .92rem; }
.demo-table tr:last-child th, .demo-table tr:last-child td { border-bottom: none; }
.demo-table th { background: #eef2ff; color: #3730a3; font-weight: 800; }

/* 13. Texte libre */
.demo-rich { color: #334155; line-height: 1.7; }
.demo-rich img { max-width: 100%; height: auto; border-radius: .9rem; }

/* CTA final */
.demo-single-cta { text-align: center; margin-top: 2.5rem; }

/* Mobile compact */
@media (max-width: 640px) {
    .demo-single-wrapper { padding-bottom: 1.5rem; }
    .demo-single-hero { padding: 2rem 0 1.5rem; }
    .demo-single-title { font-size: 1.55rem; }
    .demo-single-excerpt { font-size: .92rem; }
    .demo-single-meta { font-size: .78rem; margin-top: .9rem; }
    .demo-single-body { padding-top: 1rem; }
    .demo-sec { border-radius: .9rem; padding: .7rem; }
    .demo-sec + .demo-sec { margin-top: 1rem; }
    .demo-sec-title { font-size: 1.2rem; margin-bottom: .8rem; }
    .demo-cols, .demo-cards, .demo-live-grid { gap: .7rem; }
    .demo-masonry-bg-gallery, .demo-masonry-bg-indigo, .demo-masonry-bg-navy, .demo-masonry-bg-custom,
    .demo-mosaic-bg-gallery, .demo-mosaic-bg-indigo, .demo-mosaic-bg-navy, .demo-mosaic-bg-custom { padding: .8rem; border-radius: .9rem; }
    .demo-wall-frame .pixvisualize-caption-title { font-size: 20px !important; }
    .demo-masonry-item { padding: .35rem; border-radius: .7rem; margin-bottom: .8rem; }
    .demo-live-box figcaption { padding: .7rem .9rem .9rem; font-size: .83rem; }
    .demo-col, .demo-card-block { padding: .8rem; }
    .demo-card-points { gap: .3rem; }
    .demo-card-points li, .demo-card-block p, .demo-step p { font-size: .8rem; }
    .demo-step { padding: .8rem; gap: .65rem; }
    .demo-callout { padding: .65rem .8rem; font-size: .82rem; }
    .demo-codeblock pre { font-size: .75rem; padding: .8rem; }
    .demo-btns { gap: .5rem; }
    .demo-btns .inar-btn { flex: 1 1 100%; text-align: center; padding: .6rem 1rem; font-size: .85rem; }
    .demo-gallery { gap: .6rem; padding: .5rem; border-radius: .9rem; }
    .demo-gallery img { height: 7rem; padding: .4rem; }
    .demo-media { gap: 1rem; }
    .demo-faq-item summary { padding: .7rem .9rem; font-size: .87rem; }
    .demo-table th, .demo-table td { padding: .55rem .65rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .demo-card-block, .demo-copy, .demo-masonry-item, .demo-gallery img,
    .demo-gallery.has-zoom img, .demo-media-fig.has-zoom img, .demo-rich.has-zoom img { transition: none; }
    .demo-card-block:hover, .demo-masonry-item:hover, .demo-gallery img:hover,
    .demo-gallery.has-zoom img:hover, .demo-media-fig.has-zoom img:hover, .demo-rich.has-zoom img:hover { transform: none; }
}
