/* =========================================================
   StayScout Insights
   Loaded after /styles.css
   Used by the Insights landing page and article template.
   ========================================================= */

.insights-page,
.insight-article-page {
  background: #fff;
}

/* Active navigation */
.insights-nav-active {
  color: var(--primary-7);
  font-weight: 600;
}

.insights-mobile-active {
  background: var(--primary-5);
  color: var(--primary-7);
}

/* Shared small labels */
.insights-eyebrow,
.insights-kicker,
.insight-category,
.reports-crosslink-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

/* ---------------------------------------------------------
   Insights index hero
   --------------------------------------------------------- */

.insights-hero {
  position: relative;
  overflow: hidden;
  padding: 205px 40px 105px;
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,0.65) 0, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 86% 75%, rgba(255,255,255,0.32) 0, rgba(255,255,255,0) 32%),
    linear-gradient(135deg, var(--primary-5) 0%, var(--primary-12) 100%);
}

.insights-hero::before,
.insights-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.insights-hero::before {
  width: 330px;
  height: 330px;
  left: -160px;
  top: 80px;
  border: 1px solid rgba(48, 48, 132, 0.12);
  box-shadow:
    0 0 0 58px rgba(48,48,132,0.025),
    0 0 0 116px rgba(48,48,132,0.018);
}

.insights-hero::after {
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -260px;
  border: 1px solid rgba(48, 48, 132, 0.15);
  box-shadow:
    0 0 0 70px rgba(48,48,132,0.03),
    0 0 0 140px rgba(48,48,132,0.02);
}

.insights-hero-inner {
  position: relative;
  z-index: 1;
  width: min(930px, 100%);
  margin: 0 auto;
  text-align: center;
  animation: insightsFadeUp 0.9s ease-out 0.12s both;
}

.insights-eyebrow {
  margin: 0 auto 24px;
  padding: 9px 16px;
  color: var(--primary-7);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(17,17,43,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.insights-title {
  max-width: 850px;
  margin: 0 auto;
  color: var(--primary-1);
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.insights-intro {
  max-width: 730px;
  margin: 30px auto 0;
  color: var(--primary-14);
  font-size: 18px;
  line-height: 30px;
  font-weight: 500;
}

/* ---------------------------------------------------------
   Library heading + filters
   --------------------------------------------------------- */

.insights-library {
  padding: 165px 50px 120px;
  background: #fff;
}

.insights-library-inner {
  width: min(1300px, 100%);
  margin: 0 auto;
}

.insights-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 45px;
}

.insights-kicker {
  margin: 0 0 15px;
  color: var(--primary-7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.insights-section-heading h2,
.insights-cta h2,
.reports-crosslink h2,
.article-related h2 {
  margin: 0;
  color: var(--primary-1);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.insights-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.insights-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--primary-1);
  background: #fff;
  border: 1px solid var(--primary-4);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.insights-filter-pill:hover,
.insights-filter-pill--active {
  color: var(--primary-7);
  background: var(--primary-5);
  border-color: var(--primary-5);
}

/* ---------------------------------------------------------
   Featured article
   --------------------------------------------------------- */

.featured-insight {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  min-height: 480px;
  margin-bottom: 28px;
  border: 1px solid var(--primary-4);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(17,17,43,0.07);
}

.featured-insight-visual {
  min-width: 0;
  display: block;
  background: var(--primary-7);
}

.insight-visual-pattern {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgba(255,255,255,0.13), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
    var(--primary-7);
}

.insight-visual-pattern::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -100px;
  bottom: -120px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(255,255,255,0.045),
    0 0 0 104px rgba(255,255,255,0.025);
}

.insight-visual-brand,
.insight-visual-copy,
.insight-visual-mark {
  position: relative;
  z-index: 1;
}

.insight-visual-brand {
  font-size: 17px;
  font-weight: 700;
}

.insight-visual-copy {
  max-width: 470px;
  display: grid;
  gap: 14px;
}

.insight-visual-copy span,
.insight-visual-mark {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.insight-visual-copy strong {
  font-size: clamp(31px, 3vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.featured-insight-content {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insight-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.insight-category {
  padding: 7px 11px;
  color: var(--primary-7);
  background: var(--primary-5);
  border-radius: 999px;
  font-size: 12px;
}

.insight-date,
.insight-read-time {
  color: var(--primary-3);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.featured-insight-content h2 {
  margin: 0 0 20px;
  color: var(--primary-1);
  font-size: 32px;
  line-height: 1.17;
  letter-spacing: -0.03em;
}

.featured-insight-content h2 a:hover,
.insight-card h3 a:hover {
  color: var(--primary-7);
}

.featured-insight-content > p {
  margin: 0 0 30px;
  color: var(--primary-3);
  font-size: 16px;
  line-height: 27px;
}

.featured-insight-footer,
.insight-card-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--primary-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.insight-read-link,
.reports-crosslink-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-7);
  font-size: 14px;
  font-weight: 600;
}

.insight-read-link svg,
.reports-crosslink-link svg,
.insight-arrow-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.insight-read-link:hover svg,
.reports-crosslink-link:hover svg,
.insight-arrow-link:hover svg {
  transform: translateX(3px);
}

/* ---------------------------------------------------------
   Standard cards
   --------------------------------------------------------- */

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

.insight-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--primary-4);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(17,17,43,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.insight-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-5);
  box-shadow: 0 20px 55px rgba(17,17,43,0.10);
}

.insight-card-visual {
  position: relative;
  overflow: hidden;
  min-height: 235px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  color: var(--primary-1);
  background: var(--primary-5);
}

.insight-card-visual::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -68px;
  bottom: -72px;
  border: 1px solid rgba(48,48,132,0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(48,48,132,0.03),
    0 0 0 68px rgba(48,48,132,0.02);
}

.insight-card-visual--purple {
  color: #fff;
  background: var(--primary-7);
}

.insight-card-visual--purple::after,
.insight-card-visual--dark::after {
  border-color: rgba(255,255,255,0.25);
  box-shadow:
    0 0 0 34px rgba(255,255,255,0.035),
    0 0 0 68px rgba(255,255,255,0.02);
}

.insight-card-visual--dark {
  color: #fff;
  background: var(--primary-1);
}

.insight-card-number,
.insight-card-topic,
.insight-card-brand {
  position: relative;
  z-index: 1;
}

.insight-card-number {
  align-self: flex-end;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.62;
}

.insight-card-topic {
  max-width: 240px;
  font-size: 31px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.insight-card-brand {
  font-size: 13px;
  font-weight: 700;
}

.insight-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.insight-card h3 {
  margin: 0 0 15px;
  color: var(--primary-1);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.insight-card-content > p {
  margin: 0 0 28px;
  color: var(--primary-3);
  font-size: 15px;
  line-height: 25px;
}

.insight-arrow-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-7);
  background: var(--primary-5);
  border-radius: 50%;
}

/* ---------------------------------------------------------
   CTAs
   --------------------------------------------------------- */

.insights-cta {
  margin-top: 90px;
  padding: 55px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 55px;
  background: var(--primary-5);
  border-radius: 25px;
}

.insights-cta-content {
  max-width: 790px;
}

.insights-cta h2 {
  max-width: 710px;
  font-size: 32px;
}

.insights-cta-content > p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--primary-14);
}

.insights-cta-button {
  padding-left: 28px;
  padding-right: 28px;
}

.reports-crosslink {
  margin-top: 28px;
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  color: #fff;
  background: var(--primary-1);
  border-radius: 25px;
}

.reports-crosslink-label {
  margin-bottom: 12px;
  color: var(--primary-12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reports-crosslink h2 {
  color: #fff;
  font-size: 25px;
}

.reports-crosslink-link {
  flex: 0 0 auto;
  color: #fff;
}

/* =========================================================
   Individual article template
   ========================================================= */

.article-hero {
  padding: 185px 40px 70px;
  background: linear-gradient(135deg, #fff 0%, rgba(200,207,233,0.45) 100%);
  border-bottom: 1px solid var(--primary-4);
}

.article-hero-inner {
  width: min(930px, 100%);
  margin: 0 auto;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--primary-3);
  font-size: 13px;
}

.article-breadcrumbs a:hover {
  color: var(--primary-7);
}

.article-breadcrumb-separator {
  opacity: 0.45;
}

.article-hero .insight-meta-row {
  margin-bottom: 22px;
}

.article-title {
  max-width: 900px;
  margin: 0;
  color: var(--primary-1);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.article-deck {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--primary-14);
  font-size: 19px;
  line-height: 31px;
}

.article-byline {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-3);
  font-size: 14px;
}

.article-byline-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary-7);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.article-layout {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 75px 0 105px;
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  justify-content: space-between;
  gap: 80px;
}

.article-body {
  min-width: 0;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body p,
.article-body li {
  color: var(--primary-3);
  font-size: 17px;
  line-height: 30px;
  font-weight: 500;
}

.article-body p {
  margin: 0 0 25px;
}

.article-body h2 {
  margin: 54px 0 18px;
  color: var(--primary-1);
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.article-body h3 {
  margin: 38px 0 14px;
  color: var(--primary-1);
  font-size: 23px;
  line-height: 1.25;
}

.article-body ul,
.article-body ol {
  margin: 0 0 30px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body a {
  color: var(--primary-7);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-callout {
  margin: 38px 0;
  padding: 28px 30px;
  color: var(--primary-14);
  background: var(--primary-5);
  border-radius: 20px;
}

.article-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-1);
}

.article-sidebar {
  align-self: start;
  position: sticky;
  top: 145px;
}

.article-sidebar-card {
  padding: 26px;
  border: 1px solid var(--primary-4);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(17,17,43,0.06);
}

.article-sidebar-card + .article-sidebar-card {
  margin-top: 18px;
}

.article-sidebar-label {
  margin: 0 0 16px;
  color: var(--primary-7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-sidebar h3 {
  margin: 0 0 12px;
  color: var(--primary-1);
  font-size: 18px;
  line-height: 1.3;
}

.article-sidebar p {
  margin: 0 0 20px;
  color: var(--primary-3);
  font-size: 14px;
  line-height: 23px;
}

.article-sidebar .button-primary {
  width: 100%;
  box-sizing: border-box;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 14px;
}

.article-related {
  padding: 80px 50px 100px;
  background: #f8f8fb;
}

.article-related-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.article-related h2 {
  margin-bottom: 34px;
  font-size: 30px;
}

/* ---------------------------------------------------------
   Motion and responsive
   --------------------------------------------------------- */

@keyframes insightsFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .insights-hero-inner {
    animation: none;
  }

  .insight-card {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .insights-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .insights-filter {
    justify-content: flex-start;
  }

  .featured-insight {
    grid-template-columns: 1fr 1fr;
  }

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

  .insights-cta {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .insights-cta-button {
    width: fit-content;
  }

  .article-layout {
    width: min(900px, calc(100% - 70px));
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .article-sidebar-card + .article-sidebar-card {
    margin-top: 0;
  }
}

@media (max-width: 800px) {
  .featured-insight {
    grid-template-columns: 1fr;
  }

  .featured-insight-visual {
    min-height: 330px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .insights-hero {
    padding: 170px 25px 80px;
  }

  .insights-title {
    font-size: 42px;
    line-height: 1.08;
  }

  .insights-intro {
    margin-top: 24px;
    font-size: 16px;
    line-height: 26px;
  }

  .insights-library {
    padding: 150px 25px 80px;
  }

  .insights-section-heading h2,
  .insights-cta h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .insights-filter {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .insights-filter-pill {
    flex: 0 0 auto;
  }

  .featured-insight-content {
    padding: 28px;
  }

  .featured-insight-content h2 {
    font-size: 27px;
  }

  .insight-visual-pattern {
    padding: 28px;
  }

  .insight-card-visual {
    min-height: 215px;
  }

  .insights-cta {
    margin-top: 60px;
    padding: 35px 28px;
  }

  .insights-cta-button {
    width: 100%;
    box-sizing: border-box;
  }

  .reports-crosslink {
    padding: 30px 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .reports-crosslink h2 {
    font-size: 22px;
  }

  .article-hero {
    padding: 160px 25px 55px;
  }

  .article-title {
    font-size: 39px;
  }

  .article-deck {
    font-size: 17px;
    line-height: 28px;
  }

  .article-layout {
    width: calc(100% - 50px);
    padding: 55px 0 75px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
    line-height: 28px;
  }

  .article-body h2 {
    margin-top: 45px;
    font-size: 27px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-related {
    padding: 65px 25px 80px;
  }
}
