use ;
/// Computes a centered popup [`Rect`], renders a [`Clear`] over it (erasing
/// whatever is behind), and returns the area to draw into.
///
/// # Parameters
///
/// - `width_pct` — fraction of the screen width (0.0–1.0).
/// - `max_width` — hard cap in columns.
/// - `height` — fixed row count (clamped to screen height).
///
/// # Example
///
/// ```ignore
/// let area = centered_popup(f, 0.7, 90, 26);
/// f.render_widget(popup_block(title, &theme), area);
/// ```