
/* ── category hero ────────────────────────────────────────────────────────
   subcommittees / interestgroups / sports / openGroups share this full-bleed
   dark navy band so they read as siblings of home.html's hero */
.glp-container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.glp-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  /* Cancels out .navbar's margin-bottom: 20px (custom.css) so the hero sits
     flush under the nav instead of leaving a strip of page background
     showing through, same trick as .home-landing in home.css. */
  margin-top: -20px;
  background: #0d1f3c;
  padding: 56px 0 40px;
  font-family: 'Montserrat', sans-serif;
}

.glp-hero h2 {
  color: #ffffff;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}

.glp-hero p {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  max-width: 70ch;
  margin: 0;
  white-space: pre-line;
}

/* ── toolbar: search + Open/Closed status filter ─────────────────────────
   Styled like the home hero's white search pill so the two pages feel like
   the same product. */
.glp-toolbar-section {
  padding: 28px 0 6px;
}

.glp-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.glp-search-wrap {
  flex: 1 1 320px;
  min-width: 240px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #d8dfe9;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 20, 48, 0.06);
}

.glp-search-icon {
  color: #9ca3af;
  flex-shrink: 0;
}

.glp-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: #111827;
  background: transparent;
  min-width: 0;
}

.glp-search-wrap input::placeholder {
  color: #9ca3af;
}

.glp-status-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: #eef1f6;
  border-radius: 10px;
}

.glp-status-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #45526b;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.glp-status-btn:hover {
  color: #0d1f3c;
}

.glp-status-btn.is-active {
  background: #0d1f3c;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(13, 31, 60, 0.28);
}

.glp-status-btn.is-active[data-status="open"] {
  background: #1f7745;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(31, 119, 69, 0.28);
}

.glp-status-btn.is-active[data-status="closed"] {
  background: #45526b;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(69, 82, 107, 0.28);
}

@media (max-width: 599px) {
  .glp-hero {
    padding: 40px 0 32px;
  }

  .glp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .glp-search-wrap {
    /* In row layout, flex-basis:320px above sizes the *width*. Once the
       toolbar switches to column, the same basis would size *height*
       instead and blow the search box up to 320px tall — pin it to content
       height here. */
    flex: 0 0 auto;
    max-width: 100%;
  }

  .glp-status-toggle {
    justify-content: stretch;
  }

  .glp-status-btn {
    flex: 1;
    text-align: center;
  }
}

.group-grid-layout {
  margin-left: -10px;
  margin-right: -10px;
}

.group-grid-layout > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.group-grid-link {
  display: block;
  text-decoration: none;
  border-radius: 22px;
}

.group-grid-link:hover {
  text-decoration: none;
}

.group-grid-link:focus-visible {
  outline: 3px solid rgba(0, 43, 77, 0.28);
  outline-offset: 3px;
}

.group-grid-card {
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d3d7df;
  box-shadow: 0 12px 24px rgba(0, 20, 48, 0.06);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: grid;
  grid-template-rows: 220px 112px;
}

.group-grid-link:hover .group-grid-card {
  transform: translateY(-7px);
  box-shadow: 0 22px 38px rgba(0, 20, 48, 0.18);
  border-color: rgba(0, 43, 77, 0.28);
}

.group-grid-link:focus-visible .group-grid-card {
  transform: translateY(-7px);
  box-shadow: 0 22px 38px rgba(0, 20, 48, 0.18);
  border-color: rgba(0, 43, 77, 0.28);
}

.group-grid-card-media {
  background: #ffffff;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.group-grid-card-logo {
  width: 100%;
  max-width: 170px;
  max-height: 130px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.group-grid-card-logo-placeholder {
  opacity: 0.92;
}

.group-grid-link:hover .group-grid-card-logo,
.group-grid-link:focus-visible .group-grid-card-logo {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.group-grid-card-body {
  height: 112px;
  padding: 1.1rem 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: var(--nhhs-navy);
}

.group-grid-card-name {
  margin: 0;
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.24;
  font-weight: 700;
  max-height: 2.48em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: transform 0.2s ease;
}

.group-grid-link:hover .group-grid-card-name,
.group-grid-link:focus-visible .group-grid-card-name {
  transform: translateX(2px);
}

.group-grid-pill {
  flex-shrink: 0;
  padding: 0.34rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-grid-link:hover .group-grid-pill,
.group-grid-link:focus-visible .group-grid-pill {
  transform: translateX(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.group-grid-pill.is-open {
  color: #1f7745;
  background: #e0ece6;
  border-color: #d0dfd5;
}

.group-grid-pill.is-closed {
  color: #7d7d7a;
  background: #f1f1ef;
  border-color: #d2d2cf;
}

.group-grid-pill.is-deadline {
  color: #1f4766;
  background: #e6edf3;
  border-color: #d1dde8;
}

.group-grid-empty {
  margin: 0.5rem 0 1rem;
  color: #5f6b78;
}

@media (max-width: 991px) {
  .group-grid-card {
    grid-template-rows: 200px 104px;
  }

  .group-grid-card-media {
    height: 200px;
  }

  .group-grid-card-body {
    height: 104px;
  }

  .group-grid-card-name {
    font-size: 0.92rem;
  }
}

@media (max-width: 575px) {
  .group-grid-card {
    border-radius: 18px;
    grid-template-rows: 170px 98px;
  }

  .group-grid-card-media {
    height: 170px;
  }

  .group-grid-card-body {
    padding: 0.95rem 1rem;
    height: 98px;
  }

  .group-grid-card-name {
    font-size: 0.9rem;
  }

  .group-grid-pill {
    font-size: 0.75rem;
    padding: 0.26rem 0.76rem;
  }
}

/* ── quick-nav bar (yourgroups.html) */
.glp-quicknav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #d3d7df;
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(0, 20, 48, 0.06);
  padding: 26px 32px;
  margin-bottom: 28px;
}

.glp-quicknav-bar h2 {
  margin: 0 0 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0d1f3c;
}

.glp-quicknav-bar p {
  margin: 0;
  color: #5f6b78;
  font-size: 0.92rem;
}

.glp-quicknav-btn {
  appearance: none;
  border: none;
  flex-shrink: 0;
  background: #0d1f3c;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(13, 31, 60, 0.22);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.glp-quicknav-btn:hover:not(:disabled) {
  background: #16294d;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(13, 31, 60, 0.3);
}

.glp-quicknav-btn:disabled {
  background: #b7bfcc;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 599px) {
  .glp-quicknav-bar {
    padding: 22px 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .glp-quicknav-btn {
    width: 100%;
    text-align: center;
  }
}

