/* ========================================
   Insight Detail
======================================== */

html,
body {
  margin: 0;
  padding: 0;
  background: #00172c;
}

html {
  margin-top: 0 !important;
}

.insight-detail {
  --insight-navy: #00172c;
  --insight-blue: #42cceb;
  --insight-ink: #10283a;
  --insight-muted: #61717d;
  --insight-line: #dce5e9;
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--insight-ink);
}

.insight-article {
  padding-bottom: 140px;
}


/* ========================================
   Header
======================================== */

.insight-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin: 0;
  min-height: 420px;
  padding: 140px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(66, 204, 235, 0.13), transparent 34%),
    var(--insight-navy);
  background-position: center;
  background-size: cover;
}

.insight-header--with-image {
  min-height: clamp(500px, 68vh, 720px);
}

.insight-header::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 14, 28, 0.04) 0%,
    rgba(0, 14, 28, 0.18) 55%,
    rgba(0, 14, 28, 0.54) 100%
  );
  content: "";
  pointer-events: none;
}

.insight-header--with-image::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.34) 45%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.insight-header::after {
  position: absolute;
  right: -100px;
  bottom: -240px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(66, 204, 235, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.insight-header-inner {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 80px));
  margin: 0 auto;
}

.insight-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 32px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.insight-back:hover {
  color: #fff;
  background: rgba(66, 204, 235, 0.24);
  border-color: var(--insight-blue);
}

.insight-back::before {
  content: "←";
  margin-right: 8px;
  color: var(--insight-blue);
}

.insight-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.36);
}

.insight-date {
  display: block;
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.56);
}


/* ========================================
   Article body
======================================== */

.insight-body {
  width: min(760px, calc(100% - 80px));
  margin: 88px auto 0;
  font-size: 16px;
  line-height: 1.9;
  color: #263c4b;
}


/* Paragraph */

.insight-body p {
  margin: 0 0 1.6em;
}


/* Headings */

.insight-body h2 {
  margin: 4em 0 1.5em;
  padding-bottom: 16px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--insight-ink);
  border-bottom: 1px solid var(--insight-line);
}

.insight-body h3 {
  margin: 3em 0 1.2em;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--insight-ink);
}


/* Bold */

.insight-body strong {
  font-weight: 600;
}


/* Lists */

.insight-body ul,
.insight-body ol {
  margin: 0 0 2em;
  padding-left: 1.5em;
}

.insight-body li {
  margin-bottom: 0.7em;
}


/* Links */

.insight-body a {
  color: #087c97;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--insight-blue);
}


/* Quote */

.insight-body blockquote {
  margin: 3em 0;
  padding: 28px 32px;
  color: var(--insight-ink);
  background: #f1f6f8;
  border-left: 3px solid var(--insight-blue);
}

.insight-body blockquote p {
  margin: 0;
}


/* Images */

.insight-body img {
  max-width: 100%;
  height: auto;
}

.insight-body figure {
  margin: 3em 0;
}

.insight-body figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--insight-muted);
}


/* Separator */

.insight-body hr {
  margin: 4em 0;
  border: 0;
  border-top: 1px solid var(--insight-line);
}


/* ========================================
   Footer
======================================== */

.insight-footer {
  width: min(720px, calc(100% - 80px));
  margin: 88px auto 0;
  padding: 0;
  background: #fff;
}

.insight-post-navigation {
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.insight-post-nav-item {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 32px;
  padding: 2px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--insight-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.insight-post-nav-item--previous {
  justify-content: flex-start;
}

.insight-post-nav-item--previous::before {
  margin-right: 10px;
  content: "←";
}

.insight-post-nav-item--archive {
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--insight-line);
  border-left: 1px solid var(--insight-line);
}

.insight-post-nav-item--next {
  justify-content: flex-end;
  text-align: right;
}

.insight-post-nav-item--next::after {
  margin-left: 10px;
  content: "→";
}

a.insight-post-nav-item:hover {
  color: #087c97;
}

a.insight-post-nav-item:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--insight-blue);
  outline-offset: -3px;
}

.insight-post-nav-item.is-disabled {
  color: #abb6bd;
}


/* ========================================
   Tablet
======================================== */

@media screen and (max-width: 1024px) {

  .insight-header {
    padding: 126px 0 64px;
  }

  .insight-header--with-image {
    min-height: 560px;
  }

  .insight-header-inner {
    width: min(100% - 48px, 920px);
  }

  .insight-body {
    width: min(720px, calc(100% - 48px));
    margin-top: 72px;
  }

  .insight-footer {
    width: min(720px, calc(100% - 48px));
  }

}


/* ========================================
   Mobile
======================================== */

@media screen and (max-width: 767px) {

  .insight-article {
    padding-bottom: 90px;
  }

  .insight-header {
    min-height: 360px;
    padding: 104px 0 44px;
  }

  .insight-header--with-image {
    min-height: 500px;
  }

  .insight-header-inner {
    width: calc(100% - 40px);
  }

  .insight-back {
    min-height: 42px;
    margin-bottom: 26px;
    padding: 9px 15px;
    font-size: 12px;
  }

  .insight-title {
    font-size: 28px;
    line-height: 1.55;
  }

  .insight-date {
    margin-top: 24px;
  }

  .insight-body {
    width: calc(100% - 40px);
    margin-top: 56px;
    font-size: 15px;
    line-height: 1.85;
  }

  .insight-body h2 {
    margin-top: 3.3em;
    font-size: 22px;
  }

  .insight-body h3 {
    font-size: 19px;
  }

  .insight-body blockquote {
    margin: 2.5em 0;
    padding: 22px 20px;
  }

  .insight-footer {
    width: calc(100% - 40px);
    margin-top: 64px;
  }

  .insight-post-nav-item {
    min-height: 30px;
    padding: 2px 8px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .insight-post-nav-item--previous::before {
    margin-right: 5px;
  }

  .insight-post-nav-item--next::after {
    margin-left: 5px;
  }

}

