/* Shared presentation for native WordPress blocks in articles and the editor. */
:root {
    --wp--preset--color--domscore-lavender: #f0ecf8;
    --wp--preset--color--domscore-paper: #faf9fd;
    --wp--preset--color--domscore-purple: #7651d2;
    --wp--preset--color--domscore-ink: #282333;
    --wp--preset--color--domscore-white: #ffffff;
    --wp--preset--color--domscore-pink: #ec5885;
}
.has-domscore-lavender-background-color { background-color: #f0ecf8 !important; }
.has-domscore-paper-background-color { background-color: #faf9fd !important; }
.has-domscore-purple-background-color { background-color: #7651d2 !important; }
.has-domscore-ink-background-color { background-color: #282333 !important; }
.has-domscore-white-background-color { background-color: #ffffff !important; }
.has-domscore-pink-background-color { background-color: #ec5885 !important; }
.has-domscore-lavender-color { color: #f0ecf8 !important; }
.has-domscore-paper-color { color: #faf9fd !important; }
.has-domscore-purple-color { color: #7651d2 !important; }
.has-domscore-ink-color { color: #282333 !important; }
.has-domscore-white-color { color: #ffffff !important; }
.has-domscore-pink-color { color: #ec5885 !important; }
.ds-article-expert,
.wp-block-quote.is-style-ds-accent,
.wp-block-group.is-style-ds-note {
    box-sizing: border-box;
    max-width: min(100%, 850px);
    margin: 32px auto;
    overflow-wrap: anywhere;
    font-family: var(--font-body, 'Golos Text', 'Segoe UI', sans-serif);
    color: var(--ds-ink, #282333);
}
.ds-article-expert {
    padding: 28px;
    border: 1px solid var(--ds-rule, #d9d2e5);
    border-radius: 12px;
    background: #fff;
}
.single-content .ds-article-expert .ds-expert-statement,
.ds-article-expert .wp-block-quote.ds-expert-statement {
    padding: 0;
    margin: 0 0 24px;
    background: transparent;
    border: 0;
    font-style: normal;
}
.ds-expert-statement p,
.single-content .ds-expert-statement p {
    margin: 0 0 12px;
    font-size: clamp(18px, 2.1vw, 21px);
    line-height: 1.6;
    max-width: none;
}
.ds-expert-statement p:last-child { margin-bottom: 0; }
.ds-expert-author { margin: 0; }
.ds-expert-author .ds-expert-avatar {
    width: 150px;
    max-width: 100%;
    margin: 0 0 16px;
}
.ds-expert-author .ds-expert-avatar img {
    display: block;
    width: 150px;
    height: 150px;
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}
.editor-styles-wrapper .ds-expert-avatar:has(.components-placeholder) { width: min(100%, 360px); }
.ds-expert-author .ds-expert-name,
.single-content .ds-expert-author .ds-expert-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.4;
}
.ds-expert-author .ds-expert-role,
.single-content .ds-expert-author .ds-expert-role {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ds-muted, #655e73);
}
.ds-expert-author .ds-expert-source,
.single-content .ds-expert-author .ds-expert-source {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ds-muted, #655e73);
}
.single-content .wp-block-quote.is-style-ds-accent,
.wp-block-quote.is-style-ds-accent {
    border: 0;
    border-left: 4px solid var(--ds-quote-accent, #ec5885);
    border-radius: 0;
    padding: 0 0 0 16px;
    background: transparent;
    font-style: normal;
}
.wp-block-quote.is-style-ds-accent p,
.single-content .wp-block-quote.is-style-ds-accent p {
    font-size: clamp(18px, 2.1vw, 21px);
    line-height: 1.5;
    margin: 0 0 12px;
    max-width: none;
}
.wp-block-quote.is-style-ds-accent p:last-child { margin-bottom: 0; }
.wp-block-quote.is-style-ds-accent cite { display: block; font-size: 14px; margin-top: 12px; }
.wp-block-group.is-style-ds-note {
    padding: 24px;
    border-left: 4px solid var(--ds-accent, #7651d2);
    border-radius: 0 10px 10px 0;
}
.wp-block-group.is-style-ds-note:not(.has-background) { background: var(--ds-paper-2, #f0ecf8); }
.wp-block-group.is-style-ds-note > p,
.single-content .wp-block-group.is-style-ds-note > p { margin: 0 0 12px; font-size: 18px; line-height: 1.7; }
.wp-block-group.is-style-ds-note > :last-child { margin-bottom: 0; }
/* Keep inline artwork aligned to the article column without editor-wide overrides. */
.single-content > .wp-block-image.ds-article-illustration { margin: 32px 0; }
.ds-article-illustration img { display: block; width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 600px) {
    .ds-article-expert { padding: 20px; }
    .ds-expert-author .ds-expert-avatar,
    .ds-expert-author .ds-expert-avatar img { width: 112px; height: 112px; }
    .wp-block-group.is-style-ds-note { padding: 18px; }
    .wp-block-group.is-style-ds-note > p,
    .single-content .wp-block-group.is-style-ds-note > p { font-size: 16px; }
}
