/* Rationelle Arztpraxis – WordPress adaptations: core blocks (paragraph, heading, list, details, group)
   rendered inside the shared design system (rap.css). */

/* content columns */
.wp-block-post-content.flow,.entry-content.flow{display:grid;gap:clamp(36px,5vw,56px);min-width:0}
.wp-block-post-content.flow>*{margin:0}
.portal-content.flow{gap:clamp(28px,4vw,44px)}
.wp-block-group.block>*{margin:0}
.wp-block-group.aside{min-width:0}
.wp-block-post-content p:empty{display:none}

/* headings created in the editor */
.wp-block-post-content h2.wp-block-heading:not([class*="h2"]):not(.eyebrow):not(.tnum){font-family:var(--font-display);font-weight:400;font-size:var(--t-h2);line-height:1.12;letter-spacing:-.015em}
.wp-block-post-content h3.wp-block-heading:not(.h3s){font-family:var(--font-display);font-weight:450;font-size:1.4rem;line-height:1.2}
.wp-block-post-content h4.wp-block-heading{font-weight:600;font-size:.95rem}
:where(.wp-block-post-content,.wp-block-post-content .wp-block-group,.wp-block-details)>p:not([class]){color:var(--ink-2);max-width:70ch}
.wp-block-post-content :is(p,li,dd,td)>a:not([class]){color:var(--red-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.wp-block-post-content strong{color:var(--ink);font-weight:600}

/* lists: checklist + square bullets (class from the seeder or block style) */
.wp-block-list.checklist,.wp-block-list.is-style-rap-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;padding:0;list-style:none}
.wp-block-list.checklist li,.wp-block-list.is-style-rap-checklist li{display:flex;gap:10px;align-items:flex-start;font-size:.92rem;color:var(--ink-2)}
.wp-block-list.checklist li::before,.wp-block-list.is-style-rap-checklist li::before{content:"";flex:none;width:16px;height:16px;margin-top:3px;background:var(--ok);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}
.wp-block-list.bullets,.wp-block-list.is-style-rap-bullets,.wp-block-post-content ul.wp-block-list:not([class*="check"]):not(.bullets){display:grid;gap:8px;padding:0;list-style:none}
.wp-block-list.is-style-rap-bullets li,.wp-block-post-content ul.wp-block-list:not([class*="check"]):not(.bullets) li{position:relative;padding-left:18px;color:var(--ink-2);font-size:.92rem}
.wp-block-list.is-style-rap-bullets li::before,.wp-block-post-content ul.wp-block-list:not([class*="check"]):not(.bullets) li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;background:var(--red)}
.wp-block-post-content ol.wp-block-list:not([class]){padding-left:1.3em;color:var(--ink-2);display:grid;gap:6px}
@media (max-width:640px){.wp-block-list.checklist,.wp-block-list.is-style-rap-checklist{grid-template-columns:1fr}}

/* FAQ with core/details */
.wp-block-details.qa{padding:0}
.wp-block-details.qa summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;cursor:pointer;list-style:none;font-family:var(--font-display);font-size:1.2rem;font-weight:450}
.wp-block-details.qa summary::-webkit-details-marker{display:none}
.wp-block-details.qa summary::after{content:"+";flex:none;width:22px;text-align:center;font-family:var(--font-ui);font-weight:400;font-size:1.4rem;line-height:1;color:var(--red-ink);transition:transform .3s var(--ease)}
.wp-block-details.qa[open] summary::after{transform:rotate(45deg)}
.wp-block-details.qa>:not(summary){margin:0;padding:0 20px 10px;font-size:.95rem}
.wp-block-details.qa>:last-child{padding-bottom:18px}

/* hub list with excerpt */
.hub-list a>span{display:grid;gap:2px}

/* quote / separator / image inside content */
.wp-block-post-content .wp-block-quote{border-left:3px solid var(--red);padding:4px 0 4px 18px;font-family:var(--font-display);font-size:1.25rem;color:var(--ink)}
.wp-block-post-content .wp-block-image img{border-radius:var(--r-md);height:auto}
.wp-block-post-content .wp-block-separator{border:0;border-top:1px solid var(--line);margin:8px 0}
.wp-block-post-content .wp-block-table table{width:100%;border-collapse:collapse;font-size:.9rem}
.wp-block-post-content .wp-block-table td,.wp-block-post-content .wp-block-table th{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left}

/* editor preview of dynamic blocks */
.rap-block-preview{position:relative}
.rap-block-preview .components-placeholder{min-height:120px}
.editor-styles-wrapper .rail{position:relative;height:auto}
.editor-styles-wrapper .is-root-container.wp-block-post-content,.editor-styles-wrapper .is-root-container{padding:32px clamp(16px,4vw,48px) 80px;display:grid;gap:clamp(28px,4vw,44px)}
.editor-styles-wrapper .is-root-container>*{margin:0!important;max-width:none}
