/* Search Results — Notes + Training. Scoped to .search-results-page only. */
.search-results-page {
  width: 100%;
  max-width: var(--ieg-content, 76rem);
  margin: 0 auto;
  padding: 16px 0 48px;
  color: #1d2a20;
}

.search-results-page .srp-head {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
}

.search-results-page .srp-count {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #142018;
}

.search-results-page .srp-scope {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #536158;
}

.search-results-page .srp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-results-page .srp-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 14px;
  border: 1px solid #d8e0da;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-results-page .srp-card:hover,
.search-results-page .srp-card:focus-within {
  border-color: #b7c9ba;
  box-shadow: 0 4px 14px rgba(31, 111, 0, 0.06);
}

.search-results-page .srp-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: #eef6ef;
  color: #1f6f00;
  font-size: 0.95rem;
}

.search-results-page .srp-card--training .srp-icon {
  background: #eef4fb;
  color: #1a4d8c;
}

.search-results-page .srp-link,
.search-results-page .srp-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.search-results-page .srp-card--notes .srp-link {
  width: 100%;
}

.search-results-page .srp-card--notes .srp-icon {
  /* icon lives inside the link for notes */
}

.search-results-page .srp-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.search-results-page .srp-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #142018;
}

.search-results-page .srp-link:hover .srp-title,
.search-results-page .srp-main:hover .srp-title {
  color: #1f6f00;
}

.search-results-page .srp-excerpt {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #536158;
}

.search-results-page .srp-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2f4a32;
  margin-top: 2px;
}

.search-results-page mark {
  background: #dff3c8;
  color: inherit;
  padding: 0 0.15em;
  border-radius: 2px;
}

.search-results-page .srp-cta {
  flex: 0 0 auto;
  align-self: center;
  min-height: 40px;
  min-width: 5.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.search-results-page .srp-empty {
  margin: 8px 0 0;
  padding: 28px 18px;
  text-align: center;
  border: 1px dashed #c5d0c7;
  border-radius: 14px;
  background: #f7faf7;
}

.search-results-page .srp-empty h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #142018;
}

.search-results-page .srp-empty p {
  margin: 0;
  color: #536158;
  line-height: 1.45;
}

.search-results-page .srp-empty-actions {
  margin-top: 16px !important;
}

.search-results-page .srp-back {
  margin: 20px 0 0;
}

.search-results-page .srp-back a {
  color: #2f4a32;
  font-weight: 600;
  text-decoration: none;
}

.search-results-page .srp-back a:hover {
  color: #1f6f00;
  text-decoration: underline;
}

.search-results-page .srp-pagination {
  margin: 22px 0 0;
}

.search-results-page .srp-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.search-results-page .srp-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 10px;
  border: 1px solid #d8e0da;
  border-radius: 8px;
  background: #fff;
  color: #2f4a32;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.search-results-page a.srp-page:hover {
  border-color: #1f6f00;
  color: #1f6f00;
}

.search-results-page .srp-page.is-current {
  background: #1f6f00;
  border-color: #1f6f00;
  color: #fff;
}

.search-results-page .srp-ellipsis {
  padding: 0 4px;
  color: #536158;
}

@media (max-width: 640px) {
  .search-results-page {
    padding: 12px 0 36px;
  }

  .search-results-page .srp-card--training {
    flex-wrap: wrap;
  }

  .search-results-page .srp-card--training .srp-main {
    width: calc(100% - 3rem);
  }

  .search-results-page .srp-card--training .srp-cta {
    width: 100%;
    margin-top: 4px;
  }

  .search-results-page .srp-count {
    font-size: 1.2rem;
  }
}
