/*
Theme Name: REIGN Child
Theme URI: https://reigntheme.com/
Author: Wbcom Designs
Author URI: https://wbcomdesigns.com/
Description: The official child theme for Reign. Put your custom CSS, PHP and template overrides here so they survive Reign updates. Requires the Reign parent theme.
Template: reign-theme
Version: 5.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reign-child
Domain Path: /languages
*/

/*
 * Keep "Theme Name: REIGN Child" exactly as it is. Reign copies your existing
 * Customizer settings into the child theme when you switch to it, and it
 * recognises the child theme by that name. Rename it and the copy is skipped.
 *
 * Add your custom CSS below. It loads after Reign's own stylesheet, so a rule
 * here wins over Reign's when both are equally specific.
 *
 * For a few quick rules you can also use Appearance > Customize > Additional CSS.
 */

/* LFN catalogue and member controls. */
.lfn-platform .lfn-grid {
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.lfn-platform :is(.lfn-card, .lfn-field, .lfn-repeat, .lfn-repeat-row) {
 min-inline-size: 0;
 overflow-wrap: anywhere;
}

.lfn-platform .lfn-field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
 box-sizing: border-box;
 max-inline-size: 100%;
 min-inline-size: 0;
}

.lfn-platform :is(.lfn-filter-actions, nav[aria-label$="result pages"]) {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: .5rem;
}

.lfn-platform :is(.lfn-page, button, .lfn-button, .lfn-filter-actions a) {
 box-sizing: border-box;
 min-block-size: 44px;
 max-inline-size: 100%;
}

.lfn-platform :is(.lfn-page, .lfn-button, .lfn-filter-actions a) {
 display: inline-flex;
 align-items: center;
}

.lfn-platform .lfn-page[aria-current="page"] {
 color: #fff;
 background-color: #123466;
 border-radius: .25rem;
}

.lfn-platform :is(button, .lfn-button, .lfn-page, summary):focus-visible {
 outline: 3px solid #123466;
 outline-offset: 3px;
}

@media (max-width: 640px) {
 .lfn-platform .lfn-grid {
  grid-template-columns: minmax(0, 1fr);
 }
 .lfn-platform .lfn-field :is(input, select, textarea) {
  font-size: max(1em, 16px);
 }
}

/* Override Reign's fixed submit target on the Articles catalogue. */
.lfn-article-catalogue form button[type="submit"] {
 min-block-size: 44px !important;
}

/* Keep mobile filter, editor and report controls usable at narrow widths. */
@media (max-width: 640px) {
 .lfn-platform .lfn-filter-panel > summary {
  box-sizing: border-box;
  min-block-size: 44px;
  overflow-wrap: anywhere;
 }
 .lfn-platform :is(.lfn-profile-section-form, #lfn-report-form) button[type="submit"],
 .lfn-platform .lfn-profile-section-form button[name="intent"] {
  white-space: normal;
  overflow-wrap: anywhere;
 }
 .lfn-platform #lfn-report-form select {
  width: 100%;
 }
 .lfn-platform .lfn-repeat-row > button {
  margin-block-end: .5rem;
 }
}
