/**
 * @file
 * Drupal 11 compatibility fixes for dms_theme.
 *
 * Loaded after styles.css so it can raise specificity without touching the
 * compiled stylesheet. The matching source changes live in
 * src/styles/base/_forms.scss, so a gulp rebuild keeps them.
 */

/**
 * Textareas.
 *
 * Drupal 11 puts core's "resize-vertical" class on every textarea, and
 * core/misc/components/resize.module.css declares:
 *
 *   .resize-vertical { min-height: 2em; }
 *
 * That is a class selector, so it outranks the theme's bare
 * `textarea { min-height: 12.5rem; }` type selector. The shared input rule
 * then sizes the element with `height: 2.625rem`, and every textarea on the
 * site collapses from 200px to roughly one row (measured on the contact
 * form: 200px -> 42px).
 */
textarea.resize-vertical,
textarea.resize-both {
  min-height: 12.5rem;
}
