/* Passion in Action — additions made after the WordPress import (loaded on every page, after the theme bundle). */

/* ------------------------------------------------------------ active filters */

.pia-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pia-chip,
.pia-reset {
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
}
.pia-chip {
  color: var(--contrast);
  background: var(--base);
  border: 1px solid var(--base);
}
.pia-chip:hover {
  border-color: var(--accent);
}
.pia-chip .facetwp-selection-label {
  color: var(--contrast-2);
}
.pia-reset {
  color: var(--accent);
  background: none;
  border: 0;
  text-decoration: underline;
}
.pia-selections:empty {
  display: none;
}

/* ------------------------------------------------------- mobile filter drawer */

.pia-filter-toggle,
.pia-drawer-head,
.pia-drawer-foot {
  display: none;
}

@media (max-width: 768px) {
  .gb-container-4975fb7d {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .pia-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 15px;
    color: var(--contrast);
    background: #fff;
    border: 1px solid var(--contrast);
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
  }
  .pia-filter-toggle .pia-count {
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    min-width: 20px;
    padding: 1px 6px;
  }
  .pia-filter-toggle .pia-count:empty {
    display: none;
  }

  body.pia-filters-open {
    overflow: hidden;
  }
  body.pia-filters-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgb(10 37 64 / 45%);
    z-index: 999;
  }
  body.pia-filters-open #left-sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 360px);
    height: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 4px 0 24px rgb(0 0 0 / 15%);
  }
  body.pia-filters-open #left-sidebar .inside-left-sidebar {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
    margin: 0;
  }
  body.pia-filters-open #left-sidebar .course-filter,
  body.pia-filters-open #left-sidebar .course-filter > * {
    display: block !important;
  }
  body.pia-filters-open .pia-drawer-head,
  body.pia-filters-open .pia-drawer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
  }
  .pia-drawer-head {
    border-bottom: 1px solid var(--accent-3);
    font-weight: 700;
    font-size: 18px;
  }
  .pia-drawer-head button {
    font-size: 22px;
    line-height: 1;
    background: none;
    border: 0;
    color: var(--contrast);
    padding: 4px 8px;
    cursor: pointer;
  }
  .pia-drawer-foot {
    border-top: 1px solid var(--accent-3);
    gap: 12px;
  }
  .pia-drawer-foot .pia-show {
    flex: 1;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 7px;
    padding: 12px;
    cursor: pointer;
  }
}

/* The theme accordion freezes its height when opened; facet options change afterwards. */
.course-filter .gb-accordion__item-open > .gb-accordion__content {
  max-height: none !important;
  overflow: visible !important;
}

/* --------------------------------------------------------------- guides */

.pia-glist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 1.5em 0 2em;
}
.pia-gcard {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 180px;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--accent-3);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
}
.pia-rank {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pia-gthumb img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.pia-gbody > * {
  margin: 0 0 6px;
}
.pia-gtitle {
  font-size: 19px;
  line-height: 1.3;
}
.pia-gtitle a {
  color: var(--contrast);
  text-decoration: none;
}
.pia-gtitle a:hover {
  color: var(--accent);
}
.pia-gschool img {
  height: 18px;
  width: auto;
  display: block;
}
.pia-gmeta {
  font-size: 14px;
  color: var(--contrast-2);
}
.pia-grating {
  color: var(--contrast);
  font-weight: 700;
}
.pia-gexcerpt {
  font-size: 15px;
  line-height: 1.5;
}
.pia-gcta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  text-align: center;
}
.pia-gprice {
  font-weight: 700;
  font-size: 17px;
  color: var(--contrast);
}
.pia-gbtn {
  background: var(--accent);
  color: #fff !important;
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.pia-gbtn:hover {
  background: var(--accent-2);
}
.pia-gmore {
  font-size: 14px;
}
.pia-gtable {
  overflow-x: auto;
  margin: 1.5em 0;
}
.pia-gtable table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.pia-gtable th,
.pia-gtable td {
  border-bottom: 1px solid var(--accent-3);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.pia-gtable th {
  background: var(--base);
  color: var(--contrast);
  white-space: nowrap;
}
.pia-gindex-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--accent-3);
}
.pia-gindex-item h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.pia-gindex-item p {
  margin: 0;
}

@media (max-width: 768px) {
  .pia-gcard {
    grid-template-columns: 80px 1fr;
    padding: 16px 14px;
  }
  .pia-gthumb img {
    width: 80px;
    height: 80px;
  }
  .pia-gcta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .pia-gbtn {
    flex: 1;
  }
  .pia-gmore {
    width: 100%;
  }
}

.pia-guide-link {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--base);
  border-radius: 7px;
  font-size: 15px;
}
.pia-guide-link a {
  font-weight: 700;
}
