/* Text-scoped styles only. No changes to image badges or theme navigation. */
.kd-rt-content,.kdcb-info-rich{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.kd-rt-content p,.kdcb-info-rich p{white-space:normal;margin:.7em 0;line-height:inherit}
.kd-rt-content>:first-child,.kdcb-info-rich>:first-child{margin-top:0}
.kd-rt-content>:last-child,.kdcb-info-rich>:last-child{margin-bottom:0}
.kd-rt-content a,.kdcb-info-rich a{text-decoration:underline;text-underline-offset:.12em}
.kd-rt-content table,.kdcb-info-rich table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.kd-rt-content th,.kd-rt-content td,.kdcb-info-rich th,.kdcb-info-rich td{border:1px solid currentColor;padding:.3em .5em}
.kd-rt-content ul,.kd-rt-content ol,.kdcb-info-rich ul,.kdcb-info-rich ol{padding-inline-start:1.5em}
.kd-rt-content pre,.kdcb-info-rich pre{white-space:pre-wrap;max-width:100%;overflow:auto}
.kd-rt-video{box-sizing:border-box;max-width:100%;width:100%;margin:.9em 0;padding:14px;border:1px solid #b7c6ce;border-radius:6px;background:#f3f6f8;color:#17212b;text-align:left;font:14px/1.5 system-ui,sans-serif;overflow-wrap:anywhere;white-space:normal}
.kd-rt-video p{color:inherit;font:inherit;white-space:normal;margin:0 0 10px}.kd-rt-video .kd-rt-provider{font-weight:700}
.kd-rt-video button{white-space:normal;font:600 14px/1.4 system-ui,sans-serif;color:#fff;background:#17384c;border:1px solid #17384c;border-radius:4px;padding:9px 12px;cursor:pointer;max-width:100%}
.kd-rt-video button:focus-visible,.kd-rt-video a:focus-visible{outline:3px solid #258bd0;outline-offset:3px}
.kd-rt-video a{color:#005d9e!important;text-decoration:underline}.kd-rt-video [hidden]{display:none!important}
.kd-rt-video[data-loaded="1"]{padding:0;border:0;background:transparent}.kd-rt-player{position:relative;width:100%;aspect-ratio:16/9;min-height:200px;background:#14202a}
.kd-rt-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.kd-rt-video [data-kdrt-stop]{margin-top:6px}
.kd-rt-help{font-size:13px;line-height:1.6;max-width:100%;overflow-wrap:anywhere}.kd-rt-help code{white-space:normal}
.kdcb-info-rich{margin:12px 0}.kdcb-info-rich>strong{display:block;margin-bottom:5px}
@media print{.kd-rt-video button,.kd-rt-player{display:none!important}.kd-rt-video [hidden]{display:block!important}}

/* Scope WPKD form presentation to the new extra text fields. Original form behavior is unchanged. */
.kd-rt-content .wpkd-form-wrap,.kd-rt-plugin-fragment .wpkd-form-wrap{box-sizing:border-box;max-width:100%;background:#fff;color:#17212b;padding:1rem;border-radius:6px;}
.kd-rt-content .wpkd-form-wrap a,.kd-rt-plugin-fragment .wpkd-form-wrap a{color:#005e96;text-decoration:underline;}
.kd-rt-plugin-fragment{max-width:100%;min-width:0;overflow-wrap:anywhere;}
.kd-rt-shortcode-notice{display:block;padding:.6rem;border:1px solid currentColor;}

/* Ordinary content media stay within their text area; source files are unchanged. */
.kd-rt-content img,.kdcb-info-rich img,.kd-rt-content video,.kdcb-info-rich video{max-width:100%;height:auto;}
.kd-rt-content figure,.kdcb-info-rich figure{max-width:100%;margin-inline:0;}
.kd-rt-content audio,.kdcb-info-rich audio{max-width:100%;}
