/* Conjurly Latest News — reusable, token-first editorial card.
   Visual rules are scoped to this component; no global widget restyling. */
.cnjrly-latest-news {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  background: var(--cj-surface-primary, #fff);
  border: 1px solid var(--cj-border-card, var(--cj-border-light, #e6e7eb));
  border-radius: var(--cj-radius-card, 14px);
  box-shadow: var(--cj-shadow-card, 0 1px 4px rgba(0, 0, 0, 0.04));
  font-family: var(--cj-font-sans, "IBM Plex Sans", sans-serif);
}

.cnjrly-latest-news__header {
  background: var(--cj-indigo, #4c187e);
  padding: 0.9rem 1rem;
}

.cnjrly-latest-news .cnjrly-latest-news__title {
  color: #fff !important;
  font-family: var(--cj-heading-font-family, "IBM Plex Sans Condensed", sans-serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 !important;
  text-transform: none;
}

.cnjrly-latest-news__body { padding: 0.25rem 1rem 1rem; }
.cnjrly-latest-news__list { list-style: none; margin: 0; padding: 0; }
.cnjrly-latest-news__item { margin: 0; padding: 0.72rem 0; }
.cnjrly-latest-news__item + .cnjrly-latest-news__item {
  border-top: 1px solid var(--cj-divider, rgba(0, 0, 0, 0.05));
}
.cnjrly-latest-news .cnjrly-latest-news__link {
  display: block;
  color: var(--cj-indigo, #4c187e);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cnjrly-latest-news .cnjrly-latest-news__link:hover,
.cnjrly-latest-news .cnjrly-latest-news__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cnjrly-latest-news__empty { margin: 0.85rem 0; font-size: 0.93rem; }
.cnjrly-latest-news .cnjrly-latest-news__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--cj-indigo, #4c187e);
  border-radius: var(--cj-radius-btn, 10px);
  background: var(--cj-indigo, #4c187e);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.cnjrly-latest-news .cnjrly-latest-news__button:hover,
.cnjrly-latest-news .cnjrly-latest-news__button:focus-visible {
  background: var(--cj-indigo-hover, #38125e);
  border-color: var(--cj-indigo-hover, #38125e);
  color: #fff;
  text-decoration: none;
}
.cnjrly-latest-news .cnjrly-latest-news__button:focus-visible {
  outline: 2px solid var(--cj-accent, #d97d37);
  outline-offset: 3px;
}
.cnjrly-latest-news__arrow { font-size: 1.1em; line-height: 1; }

/* A widget-area wrapper already has its own card padding/border. Remove only
   that wrapper's shell for this widget; the indigo header must reach the edge.
   Does not change other widgets or the shortcode used in Elementor. */
.single-cnjrly_news .cnjrly-news-rail .cj-widget.cnjrly-latest-news-widget,
.single-cnjrly_news_watch .cnjrly-news-rail .cj-widget.cnjrly-latest-news-widget,
.cnjrly-news-page-rail .cj-widget.cnjrly-latest-news-widget,
.widget.cnjrly-latest-news-widget,
.cj-widget.cnjrly-latest-news-widget {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
