/* Public controls and dialogs inherit the active RDM identity. */
html.rdmf_modal_open { overflow: hidden; scrollbar-gutter: stable; }
.rdmf .rdmf_read_more, .rdmf .rdmf_text_button { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--rdm-space-4, 1rem); cursor: pointer; min-height: 44px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: start; text-decoration: underline; text-underline-offset: .25em; }
.rdmf .rdmf_read_more { order: 6; width: 100%; font-size: var(--rdm-font-size-sm, .875rem); font-weight: 600; }
.rdmf .rdmf_read_more span { text-decoration: none; }
.rdmf_highlight .rdmf_read_more { border-top: 1px solid var(--rdm-border-color, currentColor); }
.rdmf_popup_ready .rdmf_feedbacks .rdmf_quote p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.rdmf_popup_ready .rdmf_feedbacks .rdmf_print img { max-height: 13rem; object-fit: contain; object-position: left; }
.rdmf_invite { display: flex; justify-content: space-between; align-items: center; gap: var(--renew-gap, 1.5rem); margin-top: var(--renew-gap, 1.5rem); padding-block: var(--renew-gap, 1.5rem); border-top: 1px solid var(--rdm-border-color, currentColor); }
.rdmf_invite strong { font-size: var(--rdm-font-size-lg, 1.25rem); letter-spacing: -.025em; }
.rdmf_invite p { margin: .35em 0 0; color: var(--rdm-color-text-muted, inherit); }
.rdmf_invite .rdmf_button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: var(--rdm-space-4, 1rem); }
.rdmf.rdmf_dialog { position: fixed; inset: 0; width: min(42rem, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 1px solid var(--rdm-border-color, currentColor); border-radius: var(--renew-radius, var(--rdm-radius, 1rem)); background: var(--rdm-color-surface, Canvas); color: var(--rdm-color-text, CanvasText); box-shadow: 0 1.5rem 5rem color-mix(in srgb, var(--renew-olive, #18251d) 30%, transparent); overflow: auto; overscroll-behavior: contain; }
.rdmf_dialog:not([open]) { display: none; }
.rdmf_dialog[open] { animation: rdmf_dialog_reveal 180ms ease-out; }
.rdmf_dialog::backdrop { background: color-mix(in srgb, var(--renew-olive, #18251d) 65%, transparent); backdrop-filter: blur(6px); }
.rdmf.rdmf_dialog_with_image { width: min(72rem, calc(100% - 2rem)); }
.rdmf_dialog_bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 2; padding: .75rem var(--renew-gap, 1.5rem); background: var(--rdm-color-surface-alt, Canvas); border-bottom: 1px solid var(--rdm-border-color, currentColor); }
.rdmf_dialog_bar > span { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rdmf .rdmf_dialog_close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--rdm-border-color, currentColor); border-radius: 50%; background: var(--rdm-color-surface, Canvas); color: var(--rdm-color-text, inherit); font: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.rdmf_dialog_body { padding: clamp(1.25rem, 3vw, 2.75rem); }
.rdmf .rdmf_dialog_title { margin: 0 0 .4rem; font-family: var(--rdm-font-family-heading, inherit); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.045em; color: inherit; overflow-wrap: anywhere; }
.rdmf_dialog_intro { color: var(--rdm-color-text-muted, inherit); margin: 0; }
.rdmf_detail { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.rdmf_dialog_with_image .rdmf_detail { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.rdmf_detail_text { min-width: 0; }
.rdmf_detail_author { display: flex; align-items: center; gap: 1rem; }
.rdmf_detail_author .rdmf_avatar { width: 3.5rem; height: 3.5rem; flex-basis: 3.5rem; }
.rdmf_detail_rating { display: flex; gap: 1rem; align-items: center; margin: 2rem 0 1rem; color: var(--rdm-color-primary, inherit); }
.rdmf_detail_rating > :first-child { letter-spacing: .15em; font-size: 1.4rem; }
.rdmf_detail_rating > :last-child { font-size: .875rem; }
.rdmf .rdmf_detail_quote { border: 0; padding: 0; margin: 0; color: inherit; font: inherit; font-size: 1.25rem; line-height: 1.65; overflow-wrap: anywhere; }
.rdmf_detail_quote p { margin: 0; }
.rdmf_detail_meta { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rdm-border-color, currentColor); color: var(--rdm-color-text-muted, inherit); font-size: .875rem; }
.rdmf_detail_meta a, .rdmf_original_image { color: inherit; text-underline-offset: .2em; }
.rdmf_detail_media { min-width: 0; }
.rdmf_image_actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .875rem; margin-bottom: .75rem; }
.rdmf .rdmf_text_button[aria-pressed="true"] { font-weight: 700; }
.rdmf_image_view { max-height: 65dvh; overflow: auto; border: 1px solid var(--rdm-border-color, currentColor); border-radius: var(--rdm-radius, .75rem); background: var(--rdm-color-surface-alt, Canvas); }
.rdmf_dialog .rdmf_image_view img { display: block; max-width: 100%; width: 100%; height: auto; object-fit: contain; }
.rdmf_dialog .rdmf_image_zoomed img { width: 200%; min-width: 100%; max-width: none; }
.rdmf_original_image { display: inline-block; margin-top: .75rem; font-size: .875rem; }
.rdmf_dialog .rdmf_form { max-width: none; margin: 1.75rem 0 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.rdmf_dialog .rdmf_form .rdmf_button { width: 100%; }
.rdmf_dialog .rdmf_field textarea { min-height: 8rem; }
.rdmf_dialog .rdmf_field :is(input, textarea) { border-radius: calc(var(--renew-radius, 1.5rem) * .5); }
.rdmf_dialog .rdmf_consent { font-size: .875rem; }
.rdmf_dialog .rdmf_consent input { width: 1.1rem; height: 1.1rem; vertical-align: middle; }
.rdmf_dialog .rdmf_message:not(:empty) { padding: 1rem; border-radius: var(--rdm-radius, .75rem); background: var(--rdm-color-surface-alt, Canvas); }
.rdmf_home .rdmf_card:only-child .rdmf_read_more { grid-column: 1 / -1; }
.rdmf_popup_ready .rdmf_home .rdmf_layout_carousel .rdmf_card { min-height: 31rem; gap: var(--rdm-space-3, .75rem); padding: var(--rdm-space-5, 1.25rem); }
.rdmf_popup_ready .rdmf_home .rdmf_layout_carousel .rdmf_quote { font-size: var(--rdm-font-size-md, 1rem); }
.rdmf_popup_ready .rdmf_home .rdmf_layout_carousel .rdmf_quote p { -webkit-line-clamp: 4; }
.rdmf_popup_ready .rdmf_home .rdmf_layout_carousel .rdmf_card:has(.rdmf_print) .rdmf_quote p { -webkit-line-clamp: 2; }
.rdmf_popup_ready .rdmf_home .rdmf_layout_carousel .rdmf_print img { height: 10rem; max-height: none; object-fit: cover; object-position: top; }
.rdmf_popup_ready .rdmf_home .rdmf_layout_carousel .rdmf_card:only-child { min-height: 0; }
.rdmf_layout_carousel .rdmf_card:not([hidden]) { animation: rdmf_reveal 220ms ease-out both; }
@keyframes rdmf_dialog_reveal { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
	.rdmf_dialog_with_image .rdmf_detail { grid-template-columns: 1fr; }
	.rdmf_invite { align-items: start; flex-direction: column; }
	.rdmf_invite .rdmf_button { width: 100%; }
	.rdmf.rdmf_dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
}
@media (max-width: 559px) {
	.rdmf .rdmf_controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; }
	.rdmf_controls [data-rdmf-prev] { grid-column: 1; grid-row: 1; }
	.rdmf_controls [data-rdmf-next] { grid-column: 3; grid-row: 1; }
	.rdmf_controls .rdmf_position { display: block; grid-column: 2; grid-row: 1; text-align: center; font-size: var(--rdm-font-size-sm, .875rem); font-variant-numeric: tabular-nums; letter-spacing: .12em; color: var(--rdm-color-text-muted, inherit); }
	.rdmf_controls .rdmf_dots { display: none; }
	.rdmf_controls :is([data-rdmf-prev], [data-rdmf-next]) { padding: 0; width: 44px; border-radius: 50%; }
}
@media (prefers-reduced-motion: reduce) { .rdmf_dialog[open], .rdmf_layout_carousel .rdmf_card:not([hidden]) { animation: none; } }
