/* Flex header for resource count and page count */
.resources-stream-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
/* Style for resources content grid */
.resources-content-grid {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: var(--border-width) solid rgba(126, 143, 173, 0.18); 
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
  padding: var(--spacing-md);
}
/* --- Wiki-style hero header for resources --- */
.resources-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(134, 185, 255, 0.06) 0%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  color: #fff;
  padding: 2rem 1rem 1rem 1rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(5px);
}

.resources-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-size-rel-smaller, 0.95rem);
  color: #76b900 !important;
}

.resources-hero__content h1 {
  font-size: 2.2rem;
  margin: 0.25rem 0;
}

.resources-hero__content p {
  margin: 0;
  color: #b6c0cf;
}
/* Centered shell for resources module, matches wiki-shell */
.resources-shell {
  width: min(100%, 1360px);
  max-width: 1360px;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: var(--spacing-lg, 2rem);
  display: grid;
  gap: 1rem;
}

/* Responsive adjustments for mobile/tablet */
@media (max-width: 900px) {
  .resources-shell {
    padding: 1rem;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    overflow-x: auto;
    box-sizing: border-box;
  }
  .resources-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 0.5rem 0.8rem 0.5rem;
    gap: 0.5rem;
  }
  .resources-hero__content h1 {
    font-size: 1.4rem;
  }
  .resources-content-grid {
    padding: 0.5rem;
  }
}

@media (max-width: 600px) {
  .resources-shell {
    padding: 0.5rem;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    overflow-x: auto;
    box-sizing: border-box;
  }
  /* Ensure content grid doesn't overflow on mobile */
  @media (max-width: 900px) {
    .resources-content-grid {
      width: 100%;
      min-width: 0;
      overflow-x: auto;
      box-sizing: border-box;
    }
  }
  .resources-hero {
    padding: 0.7rem 0.2rem 0.5rem 0.2rem;
    border-radius: 10px;
  }
  .resources-content-grid {
    padding: 0.2rem;
    border-radius: 8px;
  }
  .resources-table th, .resources-table td {
    padding: 8px;
    font-size: 0.95rem;
    word-break: break-word;
    white-space: normal;
  }
}

@media (max-width: 500px) {
  .resources-table th, .resources-table td {
    padding: 4px;
    font-size: 0.85rem;
  }
  /* Hide Uploaded By and Date columns (4th and 5th columns) */
  .resources-table th:nth-child(4),
  .resources-table td:nth-child(4),
  .resources-table th:nth-child(5),
  .resources-table td:nth-child(5) {
    display: none;
  }
}


/* Make table horizontally scrollable on small screens */
.resources-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 700px) {
  .resources-table {
    min-width: 600px;
    font-size: 0.95rem;
  }
}

/* resources.css - custom styles for resources module */
.resources-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: var(--border-width) solid rgba(126, 143, 173, 0.18);
    border-radius: 16px;
    padding: var(--spacing-md) calc(var(--spacing-md) * 1.15);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(5px);
}
.resources-hero__content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.resources-kicker {
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--font-weight-bold);
  color: #76b900;
}
.resources-table {
  background: #181b20;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.resources-table th, .resources-table td {
  color: #e0e0e0;
}
.resources-table th {
  background: #23272e;
  padding: 16px;
}
.resources-table tr {
  border-bottom: 1px solid #23272e;
}
.resources-table a.btn {
  margin-right: 0.25rem;
}
