/* Websjekk insight editorial ending v1
   One calm professional exit, no newsletter or floating conversion noise. */

.insight-editorial-exit {
  width: min(90rem, calc(100% - 2rem));
  margin: clamp(4rem, 9vw, 8rem) auto 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(16, 31, 35, 0.12);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #f4f3ef 0%, #fbfaf7 74%);
  box-shadow: 0 1rem 2.8rem rgba(16, 31, 35, 0.055);
  color: #101a1f;
}

.insight-editorial-exit__inner {
  max-width: 58rem;
}

.insight-editorial-exit__eyebrow {
  margin: 0 0 0.7rem;
  color: #5c686d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.insight-editorial-exit h2 {
  max-width: 19ch;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.insight-editorial-exit__copy {
  max-width: 55ch;
  margin: 1rem 0 0;
  color: #526066;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.insight-editorial-exit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.insight-editorial-exit__primary,
.insight-editorial-exit__secondary {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 0.78rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 740;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.insight-editorial-exit__primary {
  border: 1px solid #173b33;
  color: #fff;
  background: #173b33;
  box-shadow: 0 0.7rem 1.5rem rgba(23, 59, 51, 0.13);
}

.insight-editorial-exit__secondary {
  border: 1px solid rgba(16, 31, 35, 0.16);
  color: #415057;
  background: rgba(255, 255, 255, 0.66);
}

.insight-editorial-exit__primary:hover,
.insight-editorial-exit__primary:focus-visible,
.insight-editorial-exit__secondary:hover,
.insight-editorial-exit__secondary:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.insight-editorial-exit__primary:hover,
.insight-editorial-exit__primary:focus-visible {
  box-shadow: 0 0.95rem 1.9rem rgba(23, 59, 51, 0.18);
}

.insight-editorial-exit__secondary:hover,
.insight-editorial-exit__secondary:focus-visible {
  border-color: rgba(16, 31, 35, 0.28);
  box-shadow: 0 0.7rem 1.5rem rgba(16, 31, 35, 0.07);
}

/* E-E-A-T/source methodology reinforcement. */
.source-route details[data-eeat-citation] {
  border-color: rgba(16, 31, 35, 0.13);
}

.source-route details[data-eeat-citation] summary {
  font-weight: 720;
}

.source-graph-method__sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
  margin: 0 0 1rem;
  color: #506159;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 720;
}

.source-graph-method__sequence span[aria-hidden="true"] {
  color: #8a9691;
  font-weight: 600;
}

/* Fallback public source/method block for pages whose late editorial projection
   replaces the original source-graph markup (currently research). */
.insight-eeat-sources,
.insight-eeat-method {
  width: min(90rem, calc(100% - 2rem));
  margin: clamp(3.5rem, 8vw, 7rem) auto 0;
  color: #101a1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.insight-eeat-sources .source-route-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.46fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: 1.4rem;
}

.insight-eeat-sources .source-route-section__head h2,
.insight-eeat-method h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.insight-eeat-sources .source-route-section__head > p,
.insight-eeat-method .source-graph-method__copy > p:last-child {
  margin: 0;
  color: #5b686d;
  line-height: 1.62;
}

.insight-eeat-sources .source-graph-kicker,
.insight-eeat-method .source-graph-kicker {
  margin: 0 0 0.65rem;
  color: #397064;
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.075em;
}

.insight-eeat-sources .source-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.insight-eeat-source-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(16, 31, 35, 0.11);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.insight-eeat-source-card .source-route__top {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: #6c797d;
  font-size: 0.72rem;
  font-weight: 720;
}

.insight-eeat-source-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.insight-eeat-source-card .source-route__role {
  margin: 0.35rem 0 0.9rem;
  color: #5a676c;
  line-height: 1.5;
}

.insight-eeat-source-card details {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(16, 31, 35, 0.1);
}

.insight-eeat-source-card summary {
  cursor: pointer;
  color: #203d36;
}

.insight-eeat-source-card .source-route__explain {
  padding-top: 0.7rem;
  color: #59666b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.insight-eeat-source-card .source-route__explain p {
  margin: 0.5rem 0 0;
}

.insight-eeat-source-card .source-route__explain b {
  display: block;
  margin-bottom: 0.1rem;
  color: #273b36;
}

.insight-eeat-source-card .source-route__actions {
  margin-top: 0.9rem;
}

.insight-eeat-source-card .source-route__actions a {
  color: #2e6559;
  font-size: 0.84rem;
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.insight-eeat-method {
  padding: clamp(1.3rem, 3.5vw, 2.5rem);
  border: 1px solid rgba(16, 31, 35, 0.11);
  border-radius: 1.2rem;
  background: #f6f5f1;
}

.insight-eeat-method .source-graph-method__copy {
  max-width: 60rem;
  margin-bottom: 1.2rem;
}

.insight-eeat-method .source-graph-method__flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.insight-eeat-method .source-graph-method__step {
  padding: 0.9rem;
  border: 1px solid rgba(16, 31, 35, 0.09);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.insight-eeat-method .source-graph-method__index {
  display: block;
  margin-bottom: 0.55rem;
  color: #397064;
  font-size: 0.75rem;
  font-weight: 780;
}

.insight-eeat-method .source-graph-method__step strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.insight-eeat-method .source-graph-method__step p {
  margin: 0;
  color: #5c686d;
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .insight-eeat-sources .source-route-section__head {
    grid-template-columns: 1fr;
  }

  .insight-eeat-sources .source-route-grid,
  .insight-eeat-method .source-graph-method__flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .insight-editorial-exit,
  .insight-eeat-sources,
  .insight-eeat-method {
    width: min(100% - 1rem, 90rem);
  }

  .insight-editorial-exit {
    margin-top: 3.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .insight-editorial-exit h2 {
    max-width: 16ch;
    font-size: clamp(2rem, 10.5vw, 3.25rem);
  }

  .insight-editorial-exit__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .insight-editorial-exit__primary,
  .insight-editorial-exit__secondary {
    width: 100%;
    min-height: 3.15rem;
  }

  .source-graph-method__sequence {
    gap: 0.4rem;
    font-size: 0.78rem;
  }

  .insight-eeat-sources .source-route-grid,
  .insight-eeat-method .source-graph-method__flow {
    grid-template-columns: 1fr;
  }

  .insight-eeat-method {
    padding: 1rem;
    border-radius: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insight-editorial-exit__primary,
  .insight-editorial-exit__secondary {
    transition: none !important;
  }
}
