.jhth-hub,
.jhth-hub * {
  box-sizing: border-box;
}

.jhth-hub {
  --jhth-red: #c60018;
  --jhth-red-dark: #9e0013;
  --jhth-ink: #181818;
  --jhth-muted: #716c69;
  --jhth-paper: #f6f4f1;
  --jhth-line: #ded8d4;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 70px;
  color: var(--jhth-ink);
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif;
}

.jhth-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 27px;
}

.jhth-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #68615e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.jhth-kicker i {
  width: 20px;
  height: 2px;
  background: var(--jhth-red);
}

.jhth-heading h2 {
  margin: 0;
  color: var(--jhth-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(39px, 4vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}

.jhth-heading p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--jhth-muted);
  font-size: 13px;
  line-height: 1.6;
}

.jhth-total {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px solid var(--jhth-line);
  border-radius: 50%;
  background: #fff;
}

.jhth-total b {
  color: var(--jhth-red);
  font: 500 27px/1 Georgia, serif;
}

.jhth-total span {
  margin-top: 5px;
  color: #8a827e;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .15em;
}

.jhth-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
  padding: 10px;
  border: 1px solid var(--jhth-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .86);
}

.jhth-search {
  min-width: 285px;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-radius: 6px;
  background: #f3f0ee;
}

.jhth-search > span:first-child {
  color: var(--jhth-red);
  font-size: 20px;
  line-height: 1;
}

.jhth-search input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--jhth-ink);
  font: 500 12px/1.2 Poppins, Inter, sans-serif;
}

.jhth-search input::placeholder {
  color: #99918d;
  opacity: 1;
}

.jhth-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.jhth-filters button,
.jhth-empty button {
  min-height: 35px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #d8d0cc;
  border-radius: 999px;
  background: #fff;
  color: #5f5956;
  font: 750 9px/1 Poppins, Inter, sans-serif;
  cursor: pointer;
  box-shadow: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.jhth-filters button:hover,
.jhth-filters button.is-active,
.jhth-empty button:hover {
  border-color: var(--jhth-red);
  background: var(--jhth-red);
  color: #fff;
}

.jhth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.jhth-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--jhth-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(43, 26, 22, .055);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.jhth-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  z-index: 4;
  background: var(--jhth-red);
  transition: height .25s ease;
}

.jhth-card:hover {
  transform: translateY(-4px);
  border-color: #cfc5c0;
  box-shadow: 0 18px 40px rgba(43, 26, 22, .1);
}

.jhth-card.is-clickable {
  cursor: pointer;
}

.jhth-card:hover::before {
  height: 100%;
}

.jhth-card.is-featured {
  background: linear-gradient(145deg, #fff 0%, #fff8f8 100%);
  border-color: rgba(198, 0, 24, .27);
}

.jhth-card.has-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .68) 48%, rgba(255, 255, 255, .16) 100%),
    linear-gradient(to top, rgba(246, 244, 241, .84) 0%, rgba(246, 244, 241, .22) 42%, rgba(246, 244, 241, .03) 68%);
  pointer-events: none;
}

.jhth-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  opacity: .94;
  filter: saturate(.9) contrast(1.02);
  transition: transform .45s ease;
}

.jhth-card:hover .jhth-card-bg {
  transform: scale(1.035);
}

.jhth-card-top,
.jhth-card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.jhth-icon {
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--jhth-ink);
  color: #fff;
  box-shadow: inset 0 -4px 0 var(--jhth-red);
}

.jhth-card.is-featured .jhth-icon {
  background: var(--jhth-red);
  box-shadow: inset 0 -4px 0 var(--jhth-red-dark);
}

.jhth-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.jhth-icon span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
}

.jhth-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f2efed;
  color: #6f6864;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.jhth-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8f8986;
}

.jhth-status.is-live {
  background: #e9f8f1;
  color: #18724e;
}

.jhth-status.is-live i {
  background: #1aa36f;
  box-shadow: 0 0 0 3px rgba(26, 163, 111, .1);
}

.jhth-status.is-beta {
  background: #fff3db;
  color: #8a5c00;
}

.jhth-status.is-beta i {
  background: #d79513;
}

.jhth-card-body {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 23px 0 19px;
}

.jhth-featured {
  display: block;
  margin-bottom: 7px;
  color: var(--jhth-red);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .16em;
}

.jhth-card h3 {
  margin: 0;
  color: var(--jhth-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.jhth-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  color: var(--jhth-muted);
  font-size: 11px;
  line-height: 1.58;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.jhth-card-foot {
  min-height: 38px;
  padding-top: 13px;
  border-top: 1px dashed #d7cfcb;
}

.jhth-card-categories {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.jhth-card-categories span {
  max-width: 92px;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 999px;
  background: #f2efed;
  color: #77706c;
  font-size: 7px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jhth-open {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--jhth-red) !important;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none !important;
}

.jhth-open b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--jhth-red);
  color: #fff;
  font-size: 11px;
  transition: transform .2s ease;
}

.jhth-open:hover b {
  transform: rotate(45deg);
}

.jhth-open.is-disabled {
  color: #96908d !important;
}

.jhth-empty,
.jhth-admin-empty {
  margin-top: 18px;
  padding: 36px 20px;
  border: 1px dashed #cfc7c3;
  border-radius: 11px;
  background: rgba(255, 255, 255, .7);
  text-align: center;
}

.jhth-empty > b {
  color: var(--jhth-red);
  font-size: 27px;
  font-weight: 500;
}

.jhth-empty h3 {
  margin: 8px 0 0;
  font: 500 22px/1.2 Georgia, serif;
}

.jhth-empty p {
  margin: 7px 0 14px;
  color: var(--jhth-muted);
  font-size: 11px;
}

.jhth-hub [hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .jhth-hub {
    width: min(900px, calc(100% - 34px));
  }

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

  .jhth-search {
    min-width: 0;
    width: 100%;
  }

  .jhth-filters {
    justify-content: flex-start;
  }

  .jhth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .jhth-hub {
    width: calc(100% - 28px);
    padding: 40px 0 52px;
  }

  .jhth-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 21px;
  }

  .jhth-heading h2 {
    font-size: 39px;
  }

  .jhth-heading p {
    font-size: 11px;
  }

  .jhth-total {
    flex-basis: 65px;
    width: 65px;
    height: 65px;
  }

  .jhth-total b {
    font-size: 22px;
  }

  .jhth-toolbar {
    padding: 8px;
  }

  .jhth-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .jhth-filters::-webkit-scrollbar {
    display: none;
  }

  .jhth-filters button {
    flex: 0 0 auto;
  }

  .jhth-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .jhth-card {
    min-height: 225px;
    padding: 18px;
  }

  .jhth-card-body {
    padding: 18px 0 15px;
  }

  .jhth-card h3 {
    font-size: 22px;
  }
}
