/* 
   Responsive Utilities for FlashHub Enterprise
   Provides comprehensive mobile/tablet/desktop responsive patterns
   Include this after flashhub.css in base.html
*/

/* ==========================================================================
   BREAKPOINT VARIABLES
   ========================================================================== */
:root {
  --bp-xs: 480px;   /* Small phones */
  --bp-sm: 576px;   /* Large phones / small tablets */
  --bp-md: 768px;   /* Tablets */
  --bp-lg: 992px;   /* Small laptops */
  --bp-xl: 1200px;  /* Desktops */
  --bp-xxl: 1400px; /* Large desktops */
}

/* ==========================================================================
   CONTAINER & LAYOUT UTILITIES
   ========================================================================== */

/* Responsive container widths */
.container-responsive {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container-responsive { padding: 0 1.5rem; }
}
@media (min-width: 1200px) {
  .container-responsive { padding: 0 2rem; max-width: 1320px; }
}

/* Fluid grid system */
.row-responsive {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}
.row-responsive > [class*="col-"] {
  padding: 0 0.75rem;
}

@media (min-width: 576px) { .row-responsive { margin: 0 -1rem; } .row-responsive > [class*="col-"] { padding: 0 1rem; } }
@media (min-width: 768px) { .row-responsive { margin: 0 -1.5rem; } .row-responsive > [class*="col-"] { padding: 0 1.5rem; } }

/* Responsive column classes */
.col-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
.col-2  { flex: 0 0 16.667%; max-width: 16.667%; }
.col-3  { flex: 0 0 25%;     max-width: 25%; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5  { flex: 0 0 41.667%; max-width: 41.667%; }
.col-6  { flex: 0 0 50%;     max-width: 50%; }
.col-7  { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8  { flex: 0 0 66.667%; max-width: 66.667%; }
.col-9  { flex: 0 0 75%;     max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.667%; max-width: 91.667%; }
.col-12 { flex: 0 0 100%;    max-width: 100%; }

/* Tablet up */
@media (min-width: 576px) {
  .col-sm-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
  .col-sm-2  { flex: 0 0 16.667%; max-width: 16.667%; }
  .col-sm-3  { flex: 0 0 25%;     max-width: 25%; }
  .col-sm-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-sm-5  { flex: 0 0 41.667%; max-width: 41.667%; }
  .col-sm-6  { flex: 0 0 50%;     max-width: 50%; }
  .col-sm-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-sm-8  { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-sm-9  { flex: 0 0 75%;     max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-sm-11 { flex: 0 0 91.667%; max-width: 91.667%; }
  .col-sm-12 { flex: 0 0 100%;    max-width: 100%; }
}

/* Desktop up */
@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
  .col-md-2  { flex: 0 0 16.667%; max-width: 16.667%; }
  .col-md-3  { flex: 0 0 25%;     max-width: 25%; }
  .col-md-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-5  { flex: 0 0 41.667%; max-width: 41.667%; }
  .col-md-6  { flex: 0 0 50%;     max-width: 50%; }
  .col-md-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-md-8  { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-md-9  { flex: 0 0 75%;     max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-md-11 { flex: 0 0 91.667%; max-width: 91.667%; }
  .col-md-12 { flex: 0 0 100%;    max-width: 100%; }
}

/* Large desktop up */
@media (min-width: 992px) {
  .col-lg-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
  .col-lg-2  { flex: 0 0 16.667%; max-width: 16.667%; }
  .col-lg-3  { flex: 0 0 25%;     max-width: 25%; }
  .col-lg-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-5  { flex: 0 0 41.667%; max-width: 41.667%; }
  .col-lg-6  { flex: 0 0 50%;     max-width: 50%; }
  .col-lg-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-lg-8  { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-lg-9  { flex: 0 0 75%;     max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-lg-11 { flex: 0 0 91.667%; max-width: 91.667%; }
  .col-lg-12 { flex: 0 0 100%;    max-width: 100%; }
}

/* XL desktop up */
@media (min-width: 1200px) {
  .col-xl-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
  .col-xl-2  { flex: 0 0 16.667%; max-width: 16.667%; }
  .col-xl-3  { flex: 0 0 25%;     max-width: 25%; }
  .col-xl-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-xl-5  { flex: 0 0 41.667%; max-width: 41.667%; }
  .col-xl-5 { flex: 0 0 41.667%; max-width: 41.667%; }
  .col-xl-6  { flex: 0 0 50%;     max-width: 50%; }
  .col-xl-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-xl-8  { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-xl-9  { flex: 0 0 75%;     max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-xl-11 { flex: 0 0 91.667%; max-width: 91.667%; }
  .col-xl-12 { flex: 0 0 100%;    max-width: 100%; }
}

/* XXL desktop up */
@media (min-width: 1400px) {
  .col-xxl-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
  .col-xxl-2  { flex: 0 0 16.667%; max-width: 16.667%; }
  .col-xxl-3  { flex: 0 0 25%;     max-width: 25%; }
  .col-xxl-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-xxl-5  { flex: 0 0 41.667%; max-width: 41.667%; }
  .col-xxl-6  { flex: 0 0 50%;     max-width: 50%; }
  .col-xxl-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-xxl-8  { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-xxl-9  { flex: 0 0 75%;     max-width: 75%; }
  .col-xxl-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-xxl-11 { flex: 0 0 91.667%; max-width: 91.667%; }
  .col-xxl-12 { flex: 0 0 100%;    max-width: 100%; }
}

/* ==========================================================================
   RESPONSIVE STAT CARDS GRID
   ========================================================================== */
.grid-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .grid-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .grid-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .grid-stats { grid-template-columns: repeat(6, 1fr); }
}

/* For pages that want max 4 columns even on XL */
.grid-stats-4 {
  grid-template-columns: 1fr;
}
@media (min-width: 576px) { .grid-stats-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-stats-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .grid-stats-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .grid-stats-4 { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   RESPONSIVE METHOD/FEATURE GRIDS
   ========================================================================== */
.method-grid,
.feature-grid,
.quick-start-grid,
.template-grid,
.flash-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .method-grid, .feature-grid, .quick-start-grid, .template-grid, .flash-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .method-grid, .feature-grid, .quick-start-grid, .template-grid, .flash-method-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .method-grid, .feature-grid, .quick-start-grid, .template-grid, .flash-method-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card components */
.method-card,
.feature-card,
.template-card,
.flash-method-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 575px) {
  .method-card,
  .feature-card,
  .template-card,
  .flash-method-card {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   RESPONSIVE TABLES
   ========================================================================== */

/* Horizontal scroll on mobile, normal on desktop */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .table-responsive table {
    min-width: 700px;
  }
  
  /* Stack table rows on very small screens */
  .table-stack-mobile {
    display: block;
  }
  .table-stack-mobile thead { display: none; }
  .table-stack-mobile tbody { display: block; }
  .table-stack-mobile tr {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-card);
  }
  .table-stack-mobile td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    border-right: none;
  }
  .table-stack-mobile td:last-child { border-bottom: none; }
  .table-stack-mobile td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
  }
}

/* ==========================================================================
   RESPONSIVE FORMS
   ========================================================================== */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}
.form-row > .col, .form-row > [class*="col-"] {
  padding: 0 0.75rem;
}

@media (min-width: 576px) { .form-row { margin: 0 -1rem; } .form-row > .col, .form-row > [class*="col-"] { padding: 0 1rem; } }
@media (min-width: 768px) { .form-row { margin: 0 -1.5rem; } .form-row > .col, .form-row > [class*="col-"] { padding: 0 1.5rem; } }

/* Stack form fields on mobile */
@media (max-width: 575px) {
  .form-row { flex-direction: column; }
  .form-row > .col, .form-row > [class*="col-"] { width: 100%; padding: 0; margin-bottom: 1rem; }
  
  /* Full width buttons on mobile */
  .btn-block-mobile { width: 100%; justify-content: center; }
  .d-flex .btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   RESPONSIVE TYPOGRAPHY
   ========================================================================== */
/* Fluid typography using clamp */
.text-fluid-xs { font-size: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem); }
.text-fluid-sm { font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem); }
.text-fluid-base { font-size: clamp(0.875rem, 0.84rem + 0.18vw, 1rem); }
.text-fluid-lg { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); }
.text-fluid-xl { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem); }
.text-fluid-2xl { font-size: clamp(1.5rem, 1.35rem + 0.75vw, 2rem); }
.text-fluid-3xl { font-size: clamp(2rem, 1.8rem + 1vw, 2.5rem); }
.text-fluid-4xl { font-size: clamp(2.5rem, 2.2rem + 1.5vw, 3.5rem); }

/* Page titles */
.page-title {
  font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ==========================================================================
   RESPONSIVE SPACING
   ========================================================================== */
.space-fluid-1 { gap: clamp(0.5rem, 0.4rem + 0.5vw, 1rem); }
.space-fluid-2 { gap: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem); }
.space-fluid-3 { gap: clamp(1rem, 0.85rem + 0.75vw, 2rem); }
.space-fluid-4 { gap: clamp(1.5rem, 1.3rem + 1vw, 3rem); }

.p-fluid-1 { padding: clamp(0.5rem, 0.4rem + 0.5vw, 1rem); }
.p-fluid-2 { padding: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem); }
.p-fluid-3 { padding: clamp(1rem, 0.85rem + 0.75vw, 2rem); }
.p-fluid-4 { padding: clamp(1.5rem, 1.3rem + 1vw, 3rem); }

.m-fluid-1 { margin: clamp(0.5rem, 0.4rem + 0.5vw, 1rem); }
.m-fluid-2 { margin: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem); }
.m-fluid-3 { margin: clamp(1rem, 0.85rem + 0.75vw, 2rem); }
.m-fluid-4 { margin: clamp(1.5rem, 1.3rem + 1vw, 3rem); }

/* ==========================================================================
   RESPONSIVE NAVIGATION
   ========================================================================== */
/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-xl);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

@media (max-width: 767px) {
  .sidebar-toggle { display: flex; }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.show { display: block; opacity: 1; }

@media (min-width: 768px) {
  .sidebar-toggle, .sidebar-overlay { display: none !important; }
}

/* Navbar responsive */
.navbar-search {
  width: 320px;
}
@media (max-width: 991px) { .navbar-search { width: 200px; } }
@media (max-width: 575px) { 
  .navbar-search { width: auto; flex: 1 1 auto; min-width: 0; max-width: 220px; }
  .navbar-search .form-control { padding-left: 2rem; }
  .navbar-search .kbd,
  #searchBtn { display: none; }
}

/* Sidebar dropdowns must stay inside the drawer instead of being clipped
   by its overflow container (organization switcher on phones/tablets). */
@media (max-width: 991.98px) {
  .organization-switcher .dropdown-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-top: 0.25rem !important;
    transform: none !important;
    max-height: 40vh;
    overflow-y: auto;
  }
}

/* Navbar dropdowns (notifications, account) open as a full-width panel
   below the navbar so they never run off the screen on small phones. */
@media (max-width: 767.98px) {
  .navbar .dropdown-menu {
    position: fixed !important;
    top: calc(var(--navbar-height) + 0.5rem) !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    max-height: calc(100dvh - var(--navbar-height) - 1.5rem);
    overflow-y: auto;
  }

  /* AOS slide/flip transforms start off-screen and can widen the mobile
     layout viewport, which pushes fixed navbar controls off the right edge.
     Keep the fade effect but drop the transform on phones. */
  [data-aos] {
    transform: none !important;
  }

  /* Keep page header actions wrapping instead of forcing a wide row. */
  .page-header > .d-flex {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   RESPONSIVE CARDS & PANELS
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
}

.card-body { flex: 1; }

@media (max-width: 575px) {
  .card-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .card-body { padding: 1rem; }
  .card-header { padding: 1rem; }
}

/* ==========================================================================
   RESPONSIVE MODALS & DROPDOWNS
   ========================================================================== */
@media (max-width: 575px) {
  .modal-dialog { margin: 0.5rem; max-height: 90vh; }
  .modal-body { max-height: 60vh; overflow-y: auto; }
  .dropdown-menu { left: auto !important; right: 0 !important; min-width: 280px; }
  .dropdown-menu-end { right: 0 !important; left: auto !important; }
}

/* ==========================================================================
   RESPONSIVE UTILITY CLASSES
   ========================================================================== */

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

@media (max-width: 575px) {
  .d-xs-none { display: none !important; }
  .d-xs-block { display: block !important; }
  .d-xs-flex { display: flex !important; }
  .d-xs-inline-flex { display: inline-flex !important; }
  .d-xs-grid { display: grid !important; }
}

@media (min-width: 576px) and (max-width: 767px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-inline-flex { display: inline-flex !important; }
  .d-sm-grid { display: grid !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
  .d-md-inline-flex { display: inline-flex !important; }
  .d-md-grid { display: grid !important; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-inline-flex { display: inline-flex !important; }
  .d-lg-grid { display: grid !important; }
}

@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }
  .d-xl-inline-flex { display: inline-flex !important; }
  .d-xl-grid { display: grid !important; }
}

/* Flex direction */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }

@media (max-width: 575px) {
  .flex-xs-row { flex-direction: row !important; }
  .flex-xs-column { flex-direction: column !important; }
}

@media (min-width: 576px) {
  .flex-sm-row { flex-direction: row !important; }
  .flex-sm-column { flex-direction: column !important; }
}

@media (min-width: 768px) {
  .flex-md-row { flex-direction: row !important; }
  .flex-md-column { flex-direction: column !important; }
}

/* Flex wrap */
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-wrap-reverse { flex-wrap: wrap-reverse !important; }

/* Justify content */
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }

/* Align items */
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

/* Align self */
.align-self-auto { align-self: auto !important; }
.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-center { align-self: center !important; }
.align-self-stretch { align-self: stretch !important; }
.align-self-baseline { align-self: baseline !important; }

/* ==========================================================================
   RESPONSIVE PRINT
   ========================================================================== */
@media print {
  .sidebar, .navbar, .btn, .form-control, .sidebar-toggle, .sidebar-overlay {
    display: none !important;
  }
  .main-content { margin-left: 0; width: 100%; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .stat-card { box-shadow: none; border: 1px solid #ddd; }
  .page-header { display: none; }
  a { text-decoration: none; color: #000; }
  .text-primary { color: #000 !important; }
  .bg-primary { background: #fff !important; color: #000 !important; }
}

/* ==========================================================================
   TOUCH TARGET IMPROVEMENTS
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Minimum 44x44px touch targets */
  .btn, .form-control, .sidebar-item, .dropdown-item, .tab, .page-link,
  .nav-link, .card-link, .btn-icon, .dropdown-toggle {
    min-height: 44px;
  }
  
  .btn-sm { padding: 0.625rem 1rem; font-size: 0.875rem; }
  .form-control { padding: 0.75rem 1rem; }
  .sidebar-item { padding: 0.75rem 0.875rem; }
  
  /* Larger checkboxes/radios */
  .form-check-input { width: 1.125rem; height: 1.125rem; }
  
  /* Better dropdowns */
  .dropdown-menu { min-width: 240px; }
  .dropdown-item { padding: 0.75rem 1rem; }
}

/* ==========================================================================
   HIGH CONTRAST / REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --border-color: var(--text-secondary);
    --border-color-hover: var(--text-primary);
  }
  .btn-primary { border-width: 2px; }
  .form-control { border-width: 2px; }
  .card { border-width: 2px; }
}

/* ==========================================================================
   LANDSCAPE MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar-toggle { bottom: 1rem; right: 1rem; width: 48px; height: 48px; }
  .page-header { padding: 0.75rem 0; }
  .card-body { padding: 0.75rem; }
  .stat-card { padding: 1rem; }
  .stat-card .stat-icon { width: 40px; height: 40px; }
  .stat-card .stat-value { font-size: 1.5rem; }
}

/* ==========================================================================
   FOLDABLE / DUAL SCREEN SUPPORT
   ========================================================================== */
@media (min-width: 600px) and (max-width: 840px) and (min-height: 800px) {
  /* Foldable devices in folded state */
  .grid-stats { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}