/* ==========================================================================
   RepCentral Insights
   Directory listing and shared article template.
   ========================================================================== */

#insights-main {
  color: #111928;
}

.ins-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #3758f9;
}

/* Focus states */

#insights-main a:focus-visible,
#insights-main button:focus-visible {
  outline: 3px solid #3758f9;
  outline-offset: 3px;
}

#insights-main .ins-hero a:focus-visible,
#insights-main .ins-article-cta a:focus-visible {
  outline-color: #ffffff;
}

.ins-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero */

.ins-hero {
  position: relative;
  overflow: hidden;
  padding: 172px 0 88px;
  background:
    radial-gradient(55% 55% at 92% 4%, rgba(55, 88, 249, 0.4), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgba(19, 194, 150, 0.09), transparent 70%),
    linear-gradient(145deg, #090e34 0%, #101c50 100%);
  color: #ffffff;
}

.ins-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(75% 75% at 60% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}

.ins-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.ins-hero .ins-eyebrow {
  color: #a9b9ff;
}

.ins-hero-title {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.ins-hero-lead {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  color: #eef2ff;
}

.ins-hero-copy {
  max-width: 740px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #c7d2ea;
}

.ins-hero-copy:last-child {
  margin-bottom: 0;
}

/* Article hero */

.ins-hero--article {
  padding: 152px 0 64px;
}

.ins-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 13px;
  color: #a9b9ff;
}

.ins-breadcrumb a {
  color: #d4ddff;
  text-decoration: none;
}

.ins-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ins-article-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.ins-article-hero-inner .ins-hero-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.ins-article-byline {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #c7d2ea;
}

/* Listing */

.ins-list {
  padding: 80px 0 92px;
  background: #f7f9ff;
}

.ins-list-head {
  margin-bottom: 34px;
}

.ins-list-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #090e34;
}

.ins-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.ins-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5eaf5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px -36px rgba(9, 14, 52, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ins-card:hover {
  transform: translateY(-3px);
  border-color: #d5def3;
  box-shadow: 0 24px 48px -32px rgba(9, 14, 52, 0.38);
}

.ins-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef1ff;
}

.ins-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ins-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.ins-card-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #090e34;
}

.ins-card-title a {
  color: inherit;
  text-decoration: none;
}

.ins-card-title a:hover {
  color: #3758f9;
}

.ins-card-summary {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #5c6b7d;
}

.ins-card-read {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #3758f9;
  text-decoration: none;
}

.ins-card-read:hover {
  color: #1b44c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Empty and error states */

.ins-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 38px 32px;
  border: 1px solid #e5eaf5;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: #5c6b7d;
}

.ins-empty-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #090e34;
}

.ins-empty p:last-child {
  margin-bottom: 0;
}

.ins-empty a {
  color: #3758f9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Article */

.ins-article {
  padding: 64px 0 92px;
  background: #ffffff;
}

.ins-article-inner {
  max-width: 820px;
  margin: 0 auto;
}

.ins-article-figure {
  margin: 0 0 36px;
}

.ins-article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #e5eaf5;
  border-radius: 14px;
  object-fit: cover;
}

.ins-prose {
  font-size: 17px;
  line-height: 1.85;
  color: #344054;
  overflow-wrap: break-word;
}

.ins-prose > :first-child {
  margin-top: 0;
}

.ins-prose p {
  margin: 0 0 1.15em;
}

.ins-prose h2 {
  margin: 2.1em 0 0.6em;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #090e34;
}

.ins-prose h3 {
  margin: 1.8em 0 0.55em;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #090e34;
}

.ins-prose h4 {
  margin: 1.6em 0 0.5em;
  font-size: 1.08rem;
  font-weight: 700;
  color: #090e34;
}

.ins-prose ul,
.ins-prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.45em;
}

.ins-prose ul {
  list-style: disc;
}

.ins-prose ol {
  list-style: decimal;
}

.ins-prose li {
  margin-bottom: 0.5em;
}

.ins-prose li::marker {
  color: #3758f9;
}

/* Editorial checklists: GitHub-style task list items render a disabled checkbox. */
.ins-prose li:has(> input[type="checkbox"]) {
  padding-left: 0.2em;
  list-style: none;
}

.ins-prose li > input[type="checkbox"] {
  width: 1.05em;
  height: 1.05em;
  margin: 0 0.65em 0 0;
  vertical-align: -0.12em;
  accent-color: #3758f9;
}

.ins-prose li > ul,
.ins-prose li > ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.ins-prose blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  border-left: 3px solid #3758f9;
  border-radius: 0 10px 10px 0;
  background: #f7f9ff;
  color: #344054;
}

.ins-prose blockquote p:last-child {
  margin-bottom: 0;
}

.ins-prose a {
  color: #1b44c8;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ins-prose a:hover {
  color: #3758f9;
}

.ins-prose strong {
  font-weight: 700;
  color: #090e34;
}

.ins-prose strong a {
  font-weight: 700;
}

.ins-prose hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid #e5eaf5;
}

.ins-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.ins-prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f4fb;
  font-size: 0.9em;
}

.ins-prose pre {
  margin: 1.6em 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 10px;
  background: #090e34;
  color: #eef2ff;
}

.ins-prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: 0.9em;
}

.ins-prose table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 0.94em;
  line-height: 1.6;
}

.ins-prose th,
.ins-prose td {
  padding: 10px 12px;
  border: 1px solid #e1e7f2;
  text-align: left;
  vertical-align: top;
}

.ins-prose th {
  background: #f7f9ff;
  font-weight: 700;
  color: #090e34;
}

/* Disclaimer and article footer */

.ins-disclaimer {
  margin: 46px 0 30px;
  padding: 22px 24px;
  border: 1px solid #dfe6f2;
  border-left: 3px solid #3758f9;
  border-radius: 0 12px 12px 0;
  background: #f7f9ff;
  font-size: 13.5px;
  line-height: 1.7;
  color: #5c6b7d;
}

.ins-disclaimer-title {
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #090e34;
}

.ins-disclaimer p {
  margin: 0 0 10px;
}

.ins-disclaimer p:last-child {
  margin-bottom: 0;
}

.ins-disclaimer a {
  color: #3758f9;
  font-weight: 600;
}

.ins-article-foot {
  padding-top: 20px;
  border-top: 1px solid #e5eaf5;
}

.ins-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #3758f9;
  text-decoration: none;
}

.ins-back-link:hover {
  color: #1b44c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Article call to action */

.ins-article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 26px 28px;
  border-radius: 16px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(55, 88, 249, 0.35), transparent 70%),
    #090e34;
}

.ins-article-cta-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
}

.ins-article-cta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #c7d2ea;
}

.ins-article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ins-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ins-btn--primary {
  background: #ffffff;
  color: #090e34;
}

.ins-btn--primary:hover {
  background: #eef1ff;
  color: #090e34;
}

.ins-btn--secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.ins-btn--secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Responsive */

@media (min-width: 700px) {
  .ins-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .ins-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .ins-hero {
    padding: 144px 0 72px;
  }

  .ins-hero--article {
    padding: 132px 0 56px;
  }

  .ins-list,
  .ins-article {
    padding: 62px 0 72px;
  }
}

@media (max-width: 540px) {
  .ins-hero {
    padding-top: 130px;
  }

  .ins-hero-title {
    font-size: clamp(1.95rem, 9.5vw, 2.5rem);
  }

  .ins-hero-lead {
    font-size: 17px;
  }

  .ins-card-body {
    padding: 18px 18px 20px;
  }

  .ins-prose {
    font-size: 16px;
  }

  .ins-prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Two-column comparison tables wrap on small screens instead of clipping. */
  .ins-prose table:has(thead th:nth-child(2):last-child) {
    display: table;
    overflow-x: visible;
    white-space: normal;
  }

  .ins-prose table:has(thead th:nth-child(2):last-child) th,
  .ins-prose table:has(thead th:nth-child(2):last-child) td {
    overflow-wrap: break-word;
  }

  .ins-article-cta {
    padding: 22px;
  }

  .ins-article-cta-actions {
    width: 100%;
  }

  .ins-article-cta-actions .ins-btn {
    flex: 1 1 auto;
  }
}
