/**
 * CM Icon Cards - the layout and the looks. Every colour and space is a --cm-icd-* variable: defaults from config.php
 * (build_global_css_properties), a site's own values from its site-specific.css. Sizes are the cm-fse classes. Two-selector rule.
 * The section spans the page; the inner wrapper carries the width classes (the sibling blocks' width) and is the container the band
 * measures: under 950 px of it the cards stack, from 950 they sit three across. The inner wrapper's own padding is set on the inner
 * wrapper, and a container cannot query itself: that rule measures the torso (the page's width), so it uses 851.
 */
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards,
.wp-block-w4ya-cm-icon-cards { box-sizing: border-box; display: block; clear: both; position: relative; overflow: clip; background: var(--cm-icd-bg); color: var(--cm-icd-text); }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards *,
.wp-block-w4ya-cm-icon-cards * { box-sizing: border-box; }

.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__inner,
.wp-block-w4ya-cm-icon-cards .cm-icd__inner { padding: var(--cm-icd-pad) 0; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__inner,
.wp-block-w4ya-cm-icon-cards .cm-icd__inner,
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__inner p,
.wp-block-w4ya-cm-icon-cards .cm-icd__inner p { letter-spacing: normal; } /* the z width classes set a tracking on the wrapper AND on every p inside it (.zt95 p) */
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__inner :where(p, h2, h3, ul, ol, li, blockquote),
.wp-block-w4ya-cm-icon-cards .cm-icd__inner :where(p, h2, h3, ul, ol, li, blockquote) { margin: 0; } /* the size classes and the theme carry margins */
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__inner :where(ul, ol),
.wp-block-w4ya-cm-icon-cards .cm-icd__inner :where(ul, ol) { padding: 0; list-style: none; }
@container (min-width: 851px) { /* measured on the torso, not the inner wrapper (see the head comment) */
    .editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__inner,
    .wp-block-w4ya-cm-icon-cards .cm-icd__inner { padding: var(--cm-icd-pad-wide) 0; }
}

.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards p.cm-icd__kicker,
.wp-block-w4ya-cm-icon-cards p.cm-icd__kicker { margin-bottom: 0.5em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cm-icd-kicker); } /* p: outranks the tracking reset above */
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__title,
.wp-block-w4ya-cm-icon-cards .cm-icd__title { color: var(--cm-icd-text); font-weight: 500; line-height: 1.2; text-wrap: balance; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__placeholder,
.wp-block-w4ya-cm-icon-cards .cm-icd__placeholder { opacity: 0.7; border: 1px dashed currentColor; border-radius: 4px; padding: 0.3em 0.5em; } /* the canvas stand-ins (the page prints none) */
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__lead,
.wp-block-w4ya-cm-icon-cards .cm-icd__lead { max-width: 40em; margin-top: 0.35em; line-height: 1.55; }

.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__cards,
.wp-block-w4ya-cm-icon-cards .cm-icd__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75em; margin-top: 1.25em; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__cards:first-child,
.wp-block-w4ya-cm-icon-cards .cm-icd__cards:first-child { margin-top: 0; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__card,
.wp-block-w4ya-cm-icon-cards .cm-icd__card { display: flex; align-items: center; gap: 0.9em; padding: 0.9em 1em; background: var(--cm-icd-card-bg); border: 1px solid var(--cm-icd-card-border); border-radius: var(--cm-icd-radius); }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__disc,
.wp-block-w4ya-cm-icon-cards .cm-icd__disc { flex: none; display: flex; align-items: center; justify-content: center; width: var(--cm-icd-disc); height: var(--cm-icd-disc); border-radius: 50%; background: var(--cm-icd-disc-bg); color: var(--cm-icd-icon); font-size: calc(var(--cm-icd-disc) * 0.52); line-height: 1; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__disc .cm-icon,
.wp-block-w4ya-cm-icon-cards .cm-icd__disc .cm-icon,
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__notice-icon .cm-icon,
.wp-block-w4ya-cm-icon-cards .cm-icd__notice-icon .cm-icon { stroke-width: 2; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__words,
.wp-block-w4ya-cm-icon-cards .cm-icd__words { min-width: 0; line-height: 1.45; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__name,
.wp-block-w4ya-cm-icon-cards .cm-icd__name { display: block; font-weight: 500; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__text,
.wp-block-w4ya-cm-icon-cards .cm-icd__text { display: block; }

/* The notice band: dark ground, light words */
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__notice,
.wp-block-w4ya-cm-icon-cards .cm-icd__notice { display: flex; align-items: flex-start; gap: 1em; margin-top: 1.65em; padding: 1.4em 1.25em; background: var(--cm-icd-notice-bg); border-radius: var(--cm-icd-radius); color: var(--cm-icd-notice-text); }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__notice:first-child,
.wp-block-w4ya-cm-icon-cards .cm-icd__notice:first-child { margin-top: 0; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__notice-icon,
.wp-block-w4ya-cm-icon-cards .cm-icd__notice-icon { flex: none; display: flex; font-size: var(--cm-icd-notice-icon); line-height: 1; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__notice-words,
.wp-block-w4ya-cm-icon-cards .cm-icd__notice-words { min-width: 0; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__notice-title,
.wp-block-w4ya-cm-icon-cards .cm-icd__notice-title { margin-bottom: 0.2em; color: var(--cm-icd-notice-text); font-weight: 500; line-height: 1.25; }
.editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__notice-text,
.wp-block-w4ya-cm-icon-cards .cm-icd__notice-text { line-height: 1.55; }

@container (min-width: 808px) { /* the inner wrapper's own width */
    .editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__notice,
    .wp-block-w4ya-cm-icon-cards .cm-icd__notice { align-items: center; gap: 1.05em; padding: 1.3em 1.5em; }
    .editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__notice-icon,
    .wp-block-w4ya-cm-icon-cards .cm-icd__notice-icon { font-size: var(--cm-icd-notice-icon-wide); }
}
@container (min-width: 950px) {
    .editor-styles-wrapper .wp-block-w4ya-cm-icon-cards .cm-icd__cards,
    .wp-block-w4ya-cm-icon-cards .cm-icd__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.95em; }
}
