:root {
  --navy: #0A2540;
  --navy-mid: #0e3260;
  --navy-light: #1a4a7a;
  --orange: #FF6B00;
  --orange-light: #ff8c33;
  --orange-pale: #fff2e8;
  --off-white: #F8FAFC;
  --white: #ffffff;
  --text-dark: #1A1A1A;
  --text-mid: #374151;
  --text-muted: #6B7280;
  --border: #D9E1EA;
  --border-light: #edf2f7;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 2px 20px rgba(10,37,64,0.08);
  --shadow-hover: 0 8px 40px rgba(10,37,64,0.14);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── BASE CONTAINER ── */
.gjr {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  padding: 88px 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.gjr * {
  box-sizing: border-box;
}

.gjr-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.gjr-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 32px;
}

.gjr-headline-group {
  max-width: 640px;
}

.gjr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.gjr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
  flex: none;
}

.gjr-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  opacity: 0.5;
  animation: gjr-ping 2.4s ease-out infinite;
}

@keyframes gjr-ping {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.gjr-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.gjr-sub {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
  max-width: 560px;
}

.gjr-meta {
  text-align: right;
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.gjr-meta strong {
  color: var(--navy);
  font-weight: 600;
}

/* ── GRID ── */
.gjr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gjr-grid.gjr-grid-compact {
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

/* ── CARDS ── */
.gjr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.gjr-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--navy-light);
}

.gjr-card-compact {
  padding: 20px;
  gap: 12px;
}

.gjr-card-compact .gjr-role {
  font-size: 16px;
}

.gjr-card-compact .gjr-pay-primary {
  font-size: 18px;
}

.gjr-card-compact .gjr-body {
  -webkit-line-clamp: 2;
}

.gjr-card-compact .gjr-tag {
  display: none;
}

.gjr-card-compact .gjr-card-footer {
  justify-content: flex-end;
}

.gjr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gjr-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
}

.gjr-flag {
  font-size: 16px;
  line-height: 1;
}

.gjr-source-name {
  font-weight: 600;
  color: var(--navy);
}

.gjr-source-name .gjr-check {
  color: var(--orange);
  margin-left: 2px;
}

.gjr-status {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(10,37,64,0.07);
  color: var(--navy);
  white-space: nowrap;
}

.gjr-status.gjr-urgent {
  background: var(--orange-pale);
  color: var(--orange);
  position: relative;
  padding-left: 20px;
}

.gjr-status.gjr-urgent::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
  animation: gjr-ping-amber 1.8s ease-out infinite;
}

@keyframes gjr-ping-amber {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.gjr-role-link {
  color: inherit;
  text-decoration: none;
}

.gjr-role-link:hover .gjr-role {
  color: var(--orange);
}

.gjr-role {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
  transition: color var(--transition);
}

.gjr-pay {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.gjr-pay-primary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}

.gjr-pay-secondary {
  font-size: 12px;
  color: var(--text-muted);
}

.gjr-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.gjr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gjr-chip {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--off-white);
  color: var(--navy);
}

.gjr-chip-more {
  font-family: var(--font-head);
  font-size: 12px;
  padding: 5px 8px;
  color: var(--text-muted);
}

.gjr-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gjr-tag {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.gjr-cta {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.gjr-cta:hover {
  color: var(--orange-light);
}

.gjr-cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.gjr-cta:hover svg {
  transform: translateX(4px);
}

.gjr-card.gjr-placeholder {
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  border-style: dashed;
  color: var(--text-muted);
  gap: 12px;
}

.gjr-placeholder .gjr-role {
  color: var(--text-muted);
  font-size: 15px;
}

.gjr-placeholder p {
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* ── FOOTER & PAGINATION ── */
.gjr-footer-row {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.gjr-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
  font-weight: 300;
}

.gjr-viewall {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.gjr-viewall:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.gjr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-head);
}

.gjr-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--white);
  transition: var(--transition);
}

.gjr-page-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--off-white);
}

.gjr-page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  cursor: default;
}

.gjr-page-btn.disabled {
  color: var(--border);
  border-color: var(--border-light);
  cursor: default;
  pointer-events: none;
}

.gjr-page-arrow {
  font-size: 15px;
}

.gjr-page-dots {
  color: var(--text-muted);
  font-size: 13px;
  padding: 0 4px;
}

/* ========================================
   MEDIA QUERIES (MATCHED WITH APP.CSS)
   ======================================== */

@media (max-width: 1024px) {
  .gjr-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .gjr {
    padding: 56px 0;
  }

  .gjr-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .gjr-meta {
    text-align: left;
  }

  .gjr-grid,
  .gjr-grid.gjr-grid-compact {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gjr-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .gjr-disclaimer {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .gjr-header {
    gap: 12px;
  }

  .gjr-card {
    padding: 20px;
  }

  .gjr-role {
    font-size: 16px;
  }

  .gjr-pay-primary {
    font-size: 18px;
  }

  .gjr-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gjr-dot::after,
  .gjr-status.gjr-urgent::before {
    animation: none;
  }
}
