/* =============================================================
   LibParl Members Directory — members-style.css
   ============================================================= */

/* Strip any theme padding that creates gaps around the hero */
.site-content,
.entry-content,
.page-content,
#content,
#primary,
.hentry {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Hero ────────────────────────────────────────────────────── */

.lp-hero {
  position: relative;
  width: 100%;
  height: 44vh;
  min-height: 340px;
  max-height: 460px;
  overflow: hidden;
  background: #111;
  margin-top: -1px; /* close any sub-pixel gap from header */
}

.lp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  z-index: 0;
}

/* gradient: dark on left fading right on desktop */
.lp-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.20) 100%
  );
}

.lp-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 68px;
  max-width: 660px;
}

.lp-hero__eyebrow {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff6b63;
  margin-bottom: 16px;
}

.lp-hero__title {
  font-family: 'Lato', Arial, sans-serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.07;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0 0 28px;
  padding: 0;
  border: none;
  background: none;
}

.lp-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: #D61820;
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  width: fit-content;
  border-radius: 3px;
  transition: background 130ms ease, transform 130ms ease;
}

.lp-hero__cta:hover {
  background: #b5141b;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.lp-hero__cta svg {
  flex-shrink: 0;
  transition: transform 130ms ease;
}

.lp-hero__cta:hover svg {
  transform: translateY(3px);
}

/* ── Hero mobile ─────────────────────────────────────────────── */

@media (max-width: 620px) {
  .lp-hero {
    height: 50vh;
    min-height: 320px;
  }

  /* on mobile: gradient comes up from the bottom */
  .lp-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.65) 55%,
      rgba(0,0,0,0.88) 100%
    );
  }

  .lp-hero__content {
    justify-content: flex-end;
    padding: 0 22px 32px;
    max-width: 100%;
  }

  .lp-hero__eyebrow {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .lp-hero__title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .lp-hero__cta {
    font-size: 13px;
    padding: 11px 20px;
  }
}

/* ── Directory wrapper ───────────────────────────────────────── */

#lpW {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  font-family: 'Lato', Arial, sans-serif;
}

#lpW * { box-sizing: border-box; }

/* ── Directory header ────────────────────────────────────────── */

#lpH {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #D61820;
}

#lpH h2 {
  font-size: 24px;
  font-weight: 900;
  color: #111;
  margin: 0 0 3px;
  padding: 0;
  border: none;
  line-height: 1.1;
}

#lpH p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

#lpH p a {
  color: #D61820;
  font-weight: 600;
  text-decoration: none;
}

#lpH input {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-family: 'Lato', Arial, sans-serif;
  border: 2px solid #ddd;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #111;
  width: 280px;
  max-width: 100%;
  -webkit-appearance: none;
  box-shadow: none;
  height: auto;
  margin: 0;
}

#lpH input:focus { border-color: #D61820; }

/* ── Grid ────────────────────────────────────────────────────── */

#lpGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) { #lpGrid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 560px) {
  #lpGrid { grid-template-columns: 1fr; gap: 10px; }
  #lpW    { padding: 20px 14px 40px; }
  #lpH    { flex-direction: column; align-items: stretch; }
  #lpH input { width: 100%; }
}

/* ── Card ────────────────────────────────────────────────────── */

.lpC {
  display: flex;
  flex-direction: row;
  cursor: pointer;
  border: 1px solid #e5e5e5;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}

.lpC:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.11);
  border-color: #D61820;
  transform: translateY(-2px);
}

.lpPhoto {
  width: 120px;
  min-width: 120px;
  height: 140px;
  background: #e8e8e8;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.lpPhoto img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.lpPhoto span {
  display: flex;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  background: #b0b8c1;
  font-family: Lato, Arial, sans-serif;
  letter-spacing: 2px;
}

.lpInfo {
  padding: 12px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.lpHon {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #D61820;
  display: block;
  line-height: 1.3;
  height: 14px;
  margin-bottom: 2px;
}

.lpName {
  font-size: 15px;
  font-weight: 900;
  color: #111;
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lpRiding {
  font-size: 11px;
  color: #888;
  line-height: 1.3;
  margin-top: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── No results ──────────────────────────────────────────────── */

#lpNR {
  display: none;
  text-align: center;
  color: #888;
  padding: 32px;
}

/* ── Accessibility ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .lpC, .lp-hero__cta { transition: none; }
}