/* =====================================================
   STANLEY FISHER — DOCUMENTATION LIBRARY
   ENTERPRISE EXECUTIVE BUILD
   ===================================================== */


/* ================================
   GLOBAL
================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}


/* ================================
   LAYOUT
================================ */

.documentation-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  width: 100%;
}

.documentation-sidebar {
  position: sticky;
  top: 120px;
}

.documentation-main {
  min-width: 0;
}


/* ================================
   FILTERS
================================ */

.documentation-filter-group {
  margin-bottom: 1.8rem;
}

.documentation-filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #0f1f2e;
}

.documentation-filter-group select,
.documentation-filter-group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cfd6de;
  font-size: 0.82rem;
  background: #ffffff;
}


/* ================================
   GRID
================================ */

.documentation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
}


/* ================================
   CARD
================================ */

.documentation-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e6ec;
  padding: 1.6rem;
  background: #ffffff;
  min-height: 200px;
  transition: all 0.2s ease;
}

.documentation-card:hover {
  border-color: #cfd6de;
  background: #fafbfd;
}


/* ================================
   DOCUMENT TITLE (REDUCED)
================================ */

.documentation-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f1f2e;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}


/* ================================
   META
================================ */

.documentation-meta {
  font-size: 0.72rem;
  color: #6b7785;
  margin-bottom: 0.75rem;
}


/* ================================
   DESCRIPTION
================================ */

.documentation-description {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #3f4c59;
  margin-bottom: 1.2rem;
}


/* ================================
   DOWNLOAD BUTTON (EXECUTIVE)
================================ */

.documentation-download {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;

  padding: 0.5rem 0.9rem;
  border: 1.4px solid #0f1f2e;
  background: transparent;
  color: #0f1f2e;
  text-decoration: none;

  transition: all 0.2s ease;
}

/* Small icon inside button */

.documentation-download img,
.documentation-download svg {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

/* Hover */

.documentation-download:hover {
  background: #0f1f2e;
  color: #ffffff;
}

.documentation-download:hover img,
.documentation-download:hover svg {
  filter: brightness(0) invert(1);
}


/* ================================
   PAGINATION
================================ */

.documentation-pagination {
  margin-top: 3rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.documentation-pagination button {
  padding: 0.5rem 0.8rem;
  border: 1px solid #cfd6de;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  min-width: 34px;
  transition: all 0.2s ease;
}

.documentation-pagination button:hover {
  background: #eef3f7;
}

.documentation-pagination button.active-page {
  background: #1c5769 !important;
  color: #ffffff !important;
  border-color: #1c5769 !important;
  font-weight: 600;
}


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

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

@media (max-width: 1024px) {
  .documentation-layout {
    grid-template-columns: 1fr;
  }

  .documentation-sidebar {
    position: relative;
    top: auto;
    margin-bottom: 2rem;
  }
}

@media (max-width: 650px) {
  .documentation-grid {
    grid-template-columns: 1fr;
  }
}