/* DS-FORM-ADMIN-SYNC-20261104-R1-A3 — native-block adaptation for the approved R6 sections.
 * The R6 review drew the PPT sections, the product gallery and the partner-video section as hand-written HTML. In
 * WordPress they are editable core blocks, which add flow-layout spacing, block wrappers and paragraph wrappers for
 * links and figures. This file neutralises only those differences. It loads AFTER experience/editorial styles and
 * BEFORE ppt-integration.css and gallery-video.css, so every approved R6 rule still applies unchanged, and the final
 * typography/spacing file still loads last. The same file is an editor style. */

/* 1. Core flow-layout block gap: R6 sections had none. Same specificity as core's rule and loaded after it; explicit R6
 *    rules (loaded after this file, or more specific) still win. */
:where(.ds-ppt-section, .ds-ppt-gallery-section, .ds-inline-video).is-layout-flow > *,
.ds-ppt-section :where(.is-layout-flow) > *,
.ds-ppt-gallery-section :where(.is-layout-flow) > *,
.ds-inline-video :where(.is-layout-flow) > * { margin-block-start: 0; margin-block-end: 0; }

/* 2. A stand-alone R6 link (a.ds-ppt-link) is saved inside a paragraph. */
.ds-ppt-card > p.ds-ppt-link-row { margin: auto 0 0; }
p.ds-ppt-link-row { line-height: 1.5; }

/* 3. R6 statistic tiles held <strong> and <span> directly; natively they share one paragraph. */
.ds-ppt-stat > p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; max-width: none; }

/* 4. Core table inside the illustrative business case: keep R6's single row rules (core adds a full cell grid). */
.ds-ppt-assumptions .wp-block-table { margin: 0; overflow-x: auto; }
.ds-ppt-assumptions .wp-block-table :is(td, th) { border-width: 0 0 1px; border-style: solid; border-color: #dce3e8; }

/* 5. Figures before the viewer script adds its button (first paint, and the block editor): same frame as R6. */
.ds-ppt-figure > img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; box-sizing: border-box; padding: 16px; background: #edf2f5; }
.ds-ppt-gallery-grid .ds-ppt-figure > img { height: 255px; padding: 15px; }
.ds-ppt-screen-grid .ds-ppt-figure > img { height: 300px; }
.ds-ppt-figure.dx-hero-image > img { max-height: 460px; }

/* 6. Partner video: editable label, attribution and notices (the play/close buttons are added by gallery-video.js). */
.ds-inline-video__stage > p { margin: 0; color: #fff; text-align: center; }
.ds-inline-video__stage > p.ds-inline-video__label { font-size: 20px; font-weight: 600; line-height: 1.3; }
.ds-inline-video__stage > p.ds-inline-video__name { font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .16em; color: #dce5ec; }
.ds-inline-video__caption .ds-inline-video__publisher { margin: 0; font-size: 16px; line-height: 1.5; }
.ds-inline-video__caption .ds-inline-video__source { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #536776; }
.ds-inline-video .ds-inline-video__nojs { font-size: 14px; line-height: 1.6; max-width: 85ch; }
@media (max-width: 540px) { .ds-inline-video__caption .ds-inline-video__publisher { font-size: 15px; } }
