/* ==========================================================================
   Notable Minds List Page - Editorial Redesign (Archive Curators)
   ========================================================================== */

:root {
  --nm-bg: transparent;
  --nm-ink: #1b1c15;
  --nm-ink-soft: #4a4c44;
  --nm-accent: #173124;
  --nm-stone: #727973;
  --nm-border: rgba(27, 28, 21, 0.1);
  --manrope: "Manrope", sans-serif;
  --newsreader: "Newsreader", serif;
}

.tf-page--notable-list {
  background: transparent;
  min-height: 100vh;
  color: var(--nm-ink);
  padding-top: 10px;
}

.editorial-container {
  width: var(--tf-public-w);
  max-width: var(--tf-public-max-w);
  margin: 0 auto;
  padding: var(--tf-public-pad-y) 0;
}

/* ------------------------------
   Editorial Header (Standardized)
   ------------------------------ */
.series-list-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  border-bottom: 2px solid var(--nm-ink);
  padding-bottom: 24px;
}

.series-list-header__content {
  flex: 1;
}

.series-list-tag {
  font-family: var(--manrope);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nm-stone);
  display: block;
  margin-bottom: 16px;
}

.series-list-title {
  font-family: var(--newsreader);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.series-list-sub {
  font-family: var(--manrope);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--nm-ink-soft);
  max-width: 1000px;
}

/* Search Box (Archive & Ink Standard) */
.series-search-form {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.series-search-box {
  position: relative;
  border: 1px solid var(--nm-ink);
  border-radius: 2px; /* Archival sharp corners */
  padding: 0;
  display: flex;
  align-items: stretch;
  background: white;
  transition: all 0.3s var(--tf-ease);
  height: 46px; 
  overflow: hidden;
}

.series-search-box:focus-within {
  box-shadow: var(--tf-shadow-md);
  border-color: var(--tf-accent);
}

.series-search-input {
  border: none;
  background: white !important;
  padding: 0 20px;
  font-family: var(--manrope);
  font-size: 0.95rem;
  flex: 1;
  outline: none;
  color: var(--nm-ink);
}

/* Fix browser autofill blue tint */
.series-search-input:-webkit-autofill,
.series-search-input:-webkit-autofill:hover,
.series-search-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: var(--nm-ink) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.series-search-btn {
  background: var(--nm-ink);
  color: white;
  border: none;
  width: 52px;
  height: 100%;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.series-search-btn:hover {
  background: var(--nm-accent);
}

.series-search-btn svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.series-clear-btn {
  font-family: var(--manrope);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nm-stone);
  text-decoration: none;
  align-self: flex-end;
  margin-right: 20px;
}

/* ------------------------------
   Minds Grid
   ------------------------------ */
.nm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 90px;
}

@media (max-width: 1024px) {
  .nm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .nm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nm-item {
  background: #ffffff;
  padding: 0; /* Remove padding for full-bleed media */
  border: 1px solid var(--nm-border);
  border-radius: 6px;
  transition: all 0.4s var(--tf-ease);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Ensure rounded corners clip content */
  min-height: 330px;
}

.nm-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--tf-shadow-md);
  border-color: var(--nm-accent);
}

.nm-item__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nm-item__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  margin: 0;
  border-radius: 0; /* Full-bleed look */
  overflow: hidden;
  background: #f2f1e4;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid var(--nm-border);
}

.nm-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nm-item:hover .nm-item__media img {
  transform: scale(1.08);
}

.nm-item__body {
  text-align: center;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nm-item__title {
  font-family: var(--newsreader);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--nm-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.nm-item__role {
  font-family: var(--manrope);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--nm-stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.nm-item__footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--nm-border);
  padding-top: 10px;
}

.nm-item__meta, .nm-item__stats {
  font-family: var(--manrope);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--nm-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ------------------------------
   Empty / Pagination
   ------------------------------ */
.nm-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 0;
  font-family: var(--newsreader);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--nm-stone);
}

.nm-pagination {
  border-top: 1px solid var(--nm-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 100px;
}

.nm-pag-btn {
  font-family: var(--manrope);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nm-ink);
  text-decoration: none;
  border: 1px solid var(--nm-ink);
  padding: 12px 24px;
  border-radius: 999px;
  transition: all 0.2s;
}

.nm-pag-btn:hover {
  background: var(--nm-ink);
  color: white;
}

.nm-pag-info {
  font-family: var(--newsreader);
  font-style: italic;
  color: var(--nm-stone);
}

/* ------------------------------
   Footer
   ------------------------------ */
.nm-list-footer {
  text-align: center;
  border-top: 1px solid var(--nm-border);
  padding: 80px 0;
}

.nm-list-footer p {
  font-family: var(--newsreader);
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 12px;
}

.nm-list-footer span {
  font-family: var(--manrope);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--nm-stone);
}

/* ------------------------------
   Responsive
   ------------------------------ */
@media (max-width: 1024px) {
  .nm-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .nm-search-form {
    width: 100%;
    flex: 0 0 auto;
  }
  .nm-list-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .nm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

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