:root {
  --rjc-blue: #062d75;
  --rjc-blue-deep: #031f54;
  --rjc-text: #102344;
}

.rjc-gh-wrap {
  width: min(100%, 1540px);
  margin: 28px auto 72px;
  padding: 0 24px;
  box-sizing: border-box;
}

.rjc-gh-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
}

.rjc-gh-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 22px;
  border: 1px solid rgba(6, 45, 117, .25);
  border-radius: 999px;
  background: #fff;
  color: var(--rjc-blue-deep) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .11em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.rjc-gh-filter:hover,
.rjc-gh-filter:focus-visible,
.rjc-gh-filter.is-active {
  border-color: var(--rjc-blue);
  background: var(--rjc-blue);
  color: #fff !important;
}

.rjc-gh-filter:hover { transform: translateY(-1px); }
.rjc-gh-filter:focus-visible { outline: 2px solid var(--rjc-blue-deep); outline-offset: 3px; }

.rjc-gh-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(6, 45, 117, .18);
}

.rjc-gh-heading h2 {
  margin: 0;
  color: var(--rjc-blue-deep);
  font-size: clamp(24px, 2.3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.rjc-gh-count {
  flex: 0 0 auto;
  color: rgba(16, 35, 68, .62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rjc-gh-grid {
  display: grid;
  grid-template-columns: repeat(var(--rjc-gh-cols, 5), minmax(0, 1fr));
  gap: 30px 20px;
}
.rjc-gh-columns-3 { --rjc-gh-cols: 3; }
.rjc-gh-columns-4 { --rjc-gh-cols: 4; }
.rjc-gh-columns-5 { --rjc-gh-cols: 5; }
.rjc-gh-columns-6 { --rjc-gh-cols: 6; }

.rjc-gh-card { min-width: 0; margin: 0; }
.rjc-gh-link { display: block; color: inherit; text-decoration: none !important; }
.rjc-gh-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--rjc-blue);
  border-radius: 4px;
  box-shadow: 0 9px 22px rgba(3, 31, 84, .16);
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease;
}
.rjc-gh-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}
.rjc-gh-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
  background: linear-gradient(145deg, var(--rjc-blue), var(--rjc-blue-deep));
  color: #fff;
  text-align: center;
}
.rjc-gh-placeholder span {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.rjc-gh-card-type {
  display: block;
  margin: 12px 2px 0;
  color: var(--rjc-blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rjc-gh-title {
  margin: 6px 2px 0;
  color: var(--rjc-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.rjc-gh-link:hover .rjc-gh-image,
.rjc-gh-link:focus-visible .rjc-gh-image {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(3, 31, 84, .24);
}
.rjc-gh-link:hover .rjc-gh-image img,
.rjc-gh-link:focus-visible .rjc-gh-image img { transform: scale(1.025); }
.rjc-gh-link:focus-visible { outline: 2px solid var(--rjc-blue); outline-offset: 5px; border-radius: 4px; }
.rjc-gh-empty { margin: 24px 0; padding: 22px; background: #f5f7fb; color: var(--rjc-text); text-align: center; }
.rjc-gh-archive { width: 100%; padding: 38px 0 1px; }
.rjc-gh-archive-header {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
}
.rjc-gh-archive-header h1 { margin: 0; color: var(--rjc-blue-deep); font-size: clamp(38px, 5vw, 72px); line-height: .98; }
.rjc-gh-archive-description { max-width: 780px; margin: 18px auto 0; color: rgba(16, 35, 68, .76); font-size: 17px; line-height: 1.65; }
.rjc-gh-archive-description p:last-child { margin-bottom: 0; }
.rjc-gh-theme-container { width: min(100%, 1540px) !important; max-width: 1540px !important; margin: 0 auto !important; padding: 0 !important; }
.rjc-gh-theme-container .rjc-gh-archive { float: none !important; width: 100% !important; max-width: none !important; }

@media (max-width: 1180px) { .rjc-gh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .rjc-gh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 620px) {
  .rjc-gh-wrap { margin-top: 22px; padding: 0 14px; }
  .rjc-gh-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -14px 24px;
    padding: 2px 14px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .rjc-gh-filter { flex: 0 0 auto; min-height: 38px; padding: 8px 17px; font-size: 10px; }
  .rjc-gh-heading { align-items: flex-end; margin-bottom: 17px; }
  .rjc-gh-count { font-size: 10px; }
  .rjc-gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .rjc-gh-card-type { margin-top: 9px; font-size: 9px; }
  .rjc-gh-title { margin-top: 5px; font-size: 12px; }
  .rjc-gh-archive { padding-top: 25px; }
  .rjc-gh-archive-header { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rjc-gh-filter,
  .rjc-gh-image,
  .rjc-gh-image img { transition: none; }
}
