/* Nexlume Study Finder — intentionally scoped so Astra / Spectra styles remain intact. */
.nsf-wrapper {
  --nsf-accent: #1d628f;
  --nsf-ink: #192e39;
  --nsf-muted: #76858c;
  --nsf-line: #d5dfe2;
  box-sizing: border-box;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  font-family: inherit;
  color: var(--nsf-ink);
}
.nsf-wrapper *, .nsf-wrapper *::before, .nsf-wrapper *::after { box-sizing: border-box; }
.nsf-wrapper [hidden] { display: none !important; }
.nsf-wrapper button, .nsf-wrapper select { font: inherit; }
.nsf-wrapper button { cursor: pointer; }
.nsf-wrapper button:focus-visible, .nsf-wrapper select:focus-visible, .nsf-wrapper a:focus-visible {
  outline: 3px solid rgba(29, 98, 143, .28);
  outline-offset: 3px;
}
.nsf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nsf-panel {
  background: #fff;
  border: 1px solid #e0e6e8;
  border-radius: 17px;
  padding: clamp(24px, 3.1vw, 46px);
  box-shadow: 0 12px 42px rgba(37, 63, 72, .065);
}
.nsf-eyebrow {
  color: #3c7180;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .17em;
  margin: 0 0 10px !important;
  text-transform: uppercase;
}
.nsf-heading {
  color: var(--nsf-ink);
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: -.045em;
  margin: 0 0 10px !important;
}
.nsf-description {
  color: var(--nsf-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 29px !important;
}
.nsf-form { padding: 0; margin: 0 !important; }
.nsf-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(170px, .98fr); gap: 13px; align-items: stretch; }
.nsf-field { position: relative; min-width: 0; }
.nsf-field::after { content: ''; position: absolute; right: 17px; top: calc(50% - 4px); width: 8px; height: 8px; border-right: 1.5px solid #6e858f; border-bottom: 1.5px solid #6e858f; transform: rotate(45deg); pointer-events: none; }
.nsf-select {
  display: block;
  appearance: none; -webkit-appearance: none;
  background: #f9fbfb !important;
  border: 1px solid #d5dfe2 !important;
  border-radius: 8px !important;
  color: #2e4653 !important;
  width: 100%;
  height: 74px;
  padding: 0 35px 0 18px !important;
  margin: 0 !important;
  font-size: 15.5px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  line-height: normal !important;
  text-overflow: ellipsis;
}
.nsf-select:focus { border-color: var(--nsf-accent) !important; box-shadow: 0 0 0 3px rgba(29, 98, 143, .1) !important; }
.nsf-submit {
  border: 0 !important;
  background: var(--nsf-accent) !important;
  border-radius: 8px !important;
  color: #fff !important;
  min-height: 74px;
  padding: 14px 19px !important;
  font-size: 14px !important;
  font-weight: 730 !important;
  line-height: 1.3 !important;
  letter-spacing: .045em;
  text-transform: uppercase;
  box-shadow: none !important;
  transition: filter .18s ease, transform .18s ease;
}
.nsf-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.nsf-submit:disabled { opacity: .7; cursor: progress; }
.nsf-footer { display: flex; justify-content: space-between; gap: 15px 24px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.nsf-popular { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nsf-popular-label { color: #6c7b83; margin-right: 9px; font-size: 13px; font-weight: 550; }
.nsf-chip {
  min-height: 30px;
  border: 1px solid #dce5e9 !important;
  background: #f4f7f8 !important;
  box-shadow: 0 1px 2px rgba(30,50,60,.055) !important;
  border-radius: 5px !important;
  color: #365463 !important;
  padding: 5px 11px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  transition: border-color .15s, background .15s;
}
.nsf-chip:hover, .nsf-chip.is-active { border-color: var(--nsf-accent) !important; background: #e9f4f9 !important; }
.nsf-reset { padding: 8px 12px !important; border: 0 !important; border-radius: 5px !important; background: transparent !important; box-shadow: none !important; font-size: 13px !important; color: #74828c !important; text-decoration: underline !important; text-underline-offset: 3px; }
.nsf-reset:hover { color: var(--nsf-accent) !important; }
.nsf-results { margin-top: 26px; }
.nsf-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.nsf-results-head h3 { font-size: clamp(20px,2vw,25px); font-weight: 710; line-height: 1.3; color: var(--nsf-ink); margin: 0 !important; }
.nsf-count { font-size: 13px; color: var(--nsf-muted); }
.nsf-message { color: #647780; font-size: 14px; margin-bottom: 10px; }
.nsf-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.nsf-card { background: #fff; border: 1px solid #e0e6e8; box-shadow: 0 5px 18px rgba(37,63,72,.035); border-radius: 12px; padding: 23px; min-width: 0; }
.nsf-card-kicker { text-transform: uppercase; letter-spacing: .12em; color: #3a7889; font-size: 11px; font-weight: 750; margin: 0 0 12px !important; }
.nsf-card-title { font-size: 20px; line-height: 1.35; letter-spacing: -.025em; font-weight: 720; color: var(--nsf-ink); margin: 0 0 6px !important; }
.nsf-card-institution { color: #6f8189; font-size: 13px; margin: 0 0 14px !important; }
.nsf-card-description { color: #52656c; font-size: 13.5px; line-height: 1.55; margin: 0 0 16px !important; }
.nsf-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.nsf-card-tag { display: inline-flex; padding: 5px 9px; color: #476473; background: #f1f6f8; border-radius: 5px; font-size: 11.5px; line-height: 1.4; }
.nsf-card-meta { font-size: 12.5px; margin: 7px 0; color: #647680; }
.nsf-demo-label { border-left: 3px solid #a8874d; padding-left: 9px; font-size: 11.5px; color: #947741; line-height: 1.4; margin: 14px 0 !important; }
.nsf-card-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.nsf-card-link { color: var(--nsf-accent) !important; font-size: 13px; font-weight: 730; text-decoration: underline !important; text-underline-offset: 3px; }
.nsf-more { margin: 21px auto 0; display: block; background: #fff !important; border: 1px solid #cedde5 !important; border-radius: 8px !important; padding: 11px 24px !important; color: var(--nsf-accent) !important; font-size: 13px !important; font-weight: 650 !important; box-shadow: none !important; }
.nsf-more:hover { background: #f4f9fc !important; }
@media (max-width: 1100px) { .nsf-fields { grid-template-columns: repeat(2, minmax(0,1fr)); } .nsf-submit { grid-column: span 2; } .nsf-select, .nsf-submit { height: 62px; min-height: 62px; } }
@media (max-width: 800px) { .nsf-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .nsf-panel { padding: 23px 19px; border-radius: 13px; } .nsf-description { font-size: 13.5px; margin-bottom: 21px !important; } .nsf-fields { grid-template-columns: 1fr; gap: 10px; } .nsf-submit { grid-column: auto; } .nsf-select, .nsf-submit { height: 54px; min-height: 54px; } .nsf-footer { align-items: flex-start; margin-top: 21px; } .nsf-popular-label { flex-basis: 100%; } .nsf-reset { margin-left: -12px; } .nsf-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nsf-wrapper button { transition: none !important; } }
