/**
 * Firm.CompanyName 3.0 — Resources Library page.
 *
 * Layout / visuals follow the IAMS design system tokens (see `tokens-base.css`):
 *   - Inter typography
 *   - Single brand orange `#FB6A18`
 *   - Card radii at 16–20px (`--radius-lg` / `--radius-xl`)
 *   - Soft shadows (`--shadow-sm` resting / `--shadow-md` on hover)
 *   - Apple-style focus ring `--shadow-focus-orange`
 *
 * Page anatomy:
 *   .fe30-resources                   <main> wrapper
 *     ├── .fe30-resources-header      title + actions
 *     ├── .fe30-resources-hero        big search input
 *     ├── .fe30-resources-error       inline retry banner
 *     ├── .fe30-resources-content     dynamic (tiles / file grid / search results)
 *     ├── .fe30-resources-drop        drag-and-drop overlay
 *     └── .fe30-resources-modal       new-folder / delete-confirm dialog
 *
 * Sections that belong inside `.fe30-resources-content` are reset on every paint
 * by the controller, so styles below assume no inter-paint state.
 */

/* ============================================================
   PAGE CHROME
   ============================================================ */

.fe30-resources {
  /* Center the column at a comfortable reading width on wide displays.
     The existing `.fe30-main` provides the outer scroll + 32px padding. */
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  position: relative;
}

.fe30-resources-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.fe30-resources-titlewrap {
  min-width: 0;
  flex: 1 1 320px;
}

.fe30-resources-title {
  margin: 0;
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  color: var(--dark-navy);
  line-height: var(--leading-tight);
}

.fe30-resources-subtitle {
  margin: var(--space-2) 0 0;
  font-size: var(--text-md);
  color: var(--gray-600);
  line-height: var(--leading-snug);
}

.fe30-resources-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.fe30-resources-file-input {
  /* Visually hidden but still focusable; opened programmatically. */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Disabled style — soft dim, no shadow, cursor not-allowed. Keeps the
   primary CTA visually identifiable but unreachable until the user
   navigates into a folder where uploads make sense. */
.fe30-resources-actions .fe30-btn:disabled,
.fe30-resources-actions .fe30-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   BREADCRUMB (drilldown view only — `hidden` until JS shows it)
   ============================================================ */

.fe30-resources-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.4;
}

.fe30-resources-breadcrumb-link,
.fe30-resources-breadcrumb-current {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font: inherit;
  color: inherit;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.fe30-resources-breadcrumb-link:hover {
  color: var(--brand-orange-dark);
  background: var(--brand-orange-light);
}

.fe30-resources-breadcrumb-link:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

.fe30-resources-breadcrumb-current {
  color: var(--dark-navy);
  font-weight: 600;
  cursor: default;
}

.fe30-resources-breadcrumb-sep {
  display: inline-block;
  color: var(--gray-400);
  user-select: none;
}

/* ============================================================
   HERO SEARCH
   ============================================================ */

.fe30-resources-hero {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.fe30-resources-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fe30-resources-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}

.fe30-resources-search {
  width: 100%;
  padding: 14px 44px 14px 48px;
  font-family: inherit;
  font-size: var(--text-lg);
  color: var(--ink-primary);
  background: var(--bg-gray-50);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.fe30-resources-search::placeholder {
  color: var(--gray-500);
}

.fe30-resources-search:hover {
  background: var(--bg-white);
  border-color: var(--hairline);
}

.fe30-resources-search:focus {
  outline: none;
  background: var(--bg-white);
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-focus-orange);
}

.fe30-resources-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-gray-100);
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.fe30-resources-search-clear:hover {
  background: var(--bg-gray-100);
  color: var(--dark-navy);
}

.fe30-resources-search-clear:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

/* ============================================================
   ERROR BANNER
   ============================================================ */

.fe30-resources-error {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  color: #b91c1c;
  font-size: var(--text-sm);
}

/* `display:flex` above overrides the user-agent `[hidden]` rule unless we
   restate it explicitly at component scope. Keep this banner fully removed
   from layout when JS marks it hidden after a successful fetch. */
.fe30-resources-error[hidden] {
  display: none;
}

.fe30-resources-error-msg {
  flex: 1 1 auto;
  min-width: 0;
}

.fe30-resources-error-retry {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(185, 28, 28, 0.25);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: #b91c1c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}

.fe30-resources-error-retry:hover {
  background: rgba(239, 68, 68, 0.06);
}

/* ============================================================
   SECTIONS (paint targets inside `.fe30-resources-content`)
   ============================================================ */

.fe30-resources-section {
  margin-bottom: var(--space-8);
}

.fe30-resources-section:last-child {
  margin-bottom: 0;
}

.fe30-resources-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}

.fe30-resources-section-title h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark-navy);
  letter-spacing: var(--tracking-tight);
}

.fe30-resources-section-meta {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ============================================================
   CATEGORY TILES (landing)
   ============================================================ */

.fe30-resources-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .fe30-resources-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fe30-resources-tiles {
    grid-template-columns: 1fr;
  }
}

.fe30-resources-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  min-width: 0;
  padding: var(--space-5);
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.fe30-resources-tile:hover {
  transform: translateY(-1px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
}

.fe30-resources-tile:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
  border-color: var(--brand-orange);
}

.fe30-resources-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-orange-light);
  color: var(--brand-orange-dark);
  flex-shrink: 0;
}

.fe30-resources-tile-icon svg {
  width: 22px;
  height: 22px;
}

.fe30-resources-tile-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--dark-navy);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  /* Two-line clamp to prevent unusually long folder names from breaking the grid. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.fe30-resources-tile-meta {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ============================================================
   RECENT FILES ROW
   ============================================================ */

.fe30-resources-recent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .fe30-resources-recent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fe30-resources-recent {
    grid-template-columns: 1fr;
  }
}

.fe30-resources-recent-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.fe30-resources-recent-card:hover {
  transform: translateY(-1px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
}

.fe30-resources-recent-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
  border-color: var(--brand-orange);
}

.fe30-resources-recent-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fe30-resources-recent-text {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.fe30-resources-recent-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--dark-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe30-resources-recent-meta {
  font-size: var(--text-xs);
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   FILE GRID (drilldown / search results)
   ============================================================ */

.fe30-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .fe30-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fe30-resources-grid {
    grid-template-columns: 1fr;
  }
}

.fe30-resources-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.fe30-resources-card:hover {
  transform: translateY(-1px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
}

.fe30-resources-card-body {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.fe30-resources-card-body:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
  border-radius: var(--radius-md);
}

.fe30-resources-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fe30-resources-card-text {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fe30-resources-card-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--dark-navy);
  line-height: var(--leading-snug);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe30-resources-card-meta {
  font-size: var(--text-xs);
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe30-resources-card-menu {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--gray-500);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.fe30-resources-card-menu:hover {
  border-color: var(--hairline);
  background: var(--bg-gray-50);
  color: var(--dark-navy);
}

.fe30-resources-card-menu:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

/* Folder card (compact horizontal tile) — sub-folders inside drilldown. */
.fe30-resources-folder-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.fe30-resources-folder-card:hover {
  transform: translateY(-1px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
}

.fe30-resources-folder-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
  border-color: var(--brand-orange);
}

.fe30-resources-folder-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-orange-light);
  color: var(--brand-orange-dark);
}

.fe30-resources-folder-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--dark-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   POPUP MENU (kebab menu on cards)
   ============================================================ */

.fe30-resources-popmenu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-1);
  min-width: 180px;
  padding: var(--space-2) 0;
  background: var(--bg-white);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  list-style: none;
}

.fe30-resources-popmenu[hidden] {
  display: none;
}

.fe30-resources-popmenu button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--text-sm);
  text-align: left;
  color: var(--gray-700);
  cursor: pointer;
}

.fe30-resources-popmenu button:hover {
  background: var(--bg-gray-50);
  color: var(--dark-navy);
}

.fe30-resources-popmenu button.is-destructive {
  color: #b91c1c;
}

.fe30-resources-popmenu button.is-destructive:hover {
  background: var(--error-bg);
  color: #991b1b;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.fe30-resources-empty {
  padding: var(--space-10) var(--space-6);
  text-align: center;
  background: var(--bg-white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.fe30-resources-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--gray-400);
}

.fe30-resources-empty-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.fe30-resources-empty-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark-navy);
}

.fe30-resources-empty-sub {
  margin: 0 auto var(--space-4);
  max-width: 400px;
  color: var(--gray-600);
  font-size: var(--text-md);
}

/* ============================================================
   SKELETON (loading placeholder for tiles / cards)
   ============================================================ */

.fe30-resources-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.fe30-resources-skel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .fe30-resources-skel-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fe30-resources-skel-row {
    grid-template-columns: 1fr;
  }
}

.fe30-resources-skel-tile {
  height: 124px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    90deg,
    var(--bg-gray-100) 0%,
    var(--bg-gray-50) 50%,
    var(--bg-gray-100) 100%
  );
  background-size: 200% 100%;
  animation: fe30-skeleton-shimmer 1.4s var(--ease-standard) infinite;
}

/* ============================================================
   DRAG-AND-DROP OVERLAY
   ============================================================ */

.fe30-resources-drop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: rgba(251, 106, 24, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-standard);
}

.fe30-resources-drop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fe30-resources-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-12) var(--space-10);
  background: var(--bg-white);
  border: 2px dashed var(--brand-orange);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  color: var(--brand-orange-dark);
}

.fe30-resources-drop-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--dark-navy);
}

.fe30-resources-drop-sub {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* ============================================================
   MODAL (new folder / delete confirm)
   ============================================================ */

.fe30-resources-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fe30-resources-modal[hidden] {
  display: none;
}

.fe30-resources-modal-card {
  width: 100%;
  max-width: 420px;
  padding: var(--space-6);
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.fe30-resources-modal-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark-navy);
}

.fe30-resources-modal-body {
  margin: 0 0 var(--space-4);
  color: var(--gray-700);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.fe30-resources-modal-body:empty {
  display: none;
}

.fe30-resources-modal-fields {
  margin-bottom: var(--space-4);
}

.fe30-resources-modal-fields:empty {
  display: none;
}

.fe30-resources-modal-input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--ink-primary);
  background: var(--bg-gray-50);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.fe30-resources-modal-input:focus {
  outline: none;
  background: var(--bg-white);
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-focus-orange);
}

.fe30-resources-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.fe30-resources-modal-card.is-destructive .fe30-btn-primary {
  /* Re-tint the confirm CTA red for destructive flows (delete file). */
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.25);
}

body.fe30-app-body
  .fe30-resources-modal-card.is-destructive
  .fe30-btn-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.28);
}

/* ============================================================
   TOAST
   ============================================================ */

.fe30-resources-toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 400;
  padding: 12px 16px;
  background: var(--dark-navy);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  max-width: 360px;
  animation: fe30-resources-toast-in var(--duration-base) var(--ease-emphasized);
}

.fe30-resources-toast[hidden] {
  display: none;
}

@keyframes fe30-resources-toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================================
   MOBILE / NARROW VIEWPORT TWEAKS
   ============================================================ */

@media (max-width: 640px) {
  .fe30-resources-header {
    flex-direction: column;
    align-items: stretch;
  }

  .fe30-resources-actions {
    flex-wrap: wrap;
  }

  .fe30-resources-actions .fe30-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .fe30-resources-hero {
    padding: var(--space-3);
  }

  .fe30-resources-search {
    font-size: var(--text-base);
    padding: 12px 40px 12px 44px;
  }

  .fe30-resources-title {
    font-size: var(--text-3xl);
  }
}
