.post-detail-page {
  background: #f6f7fb;
}

.post-detail-state {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 132px 20px 72px;
  color: #252f70;
  font-weight: 700;
}

.post-detail-hero {
  position: relative;
  min-height: clamp(480px, 66vh, 680px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #1f275f;
}

.post-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(20, 25, 67, 0.88) 0%,
      rgba(20, 25, 67, 0.68) 45%,
      rgba(20, 25, 67, 0.18) 100%
    ),
    linear-gradient(0deg, rgba(20, 25, 67, 0.72), rgba(20, 25, 67, 0.1));
}

.post-detail-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.post-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.post-detail-hero-inner {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 72px;
  color: #ffffff;
}

.post-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 0 24px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.post-detail-back:hover,
.post-detail-back:focus {
  transform: translateY(-2px);
  border-color: #f39337;
  background: #f39337;
  color: #ffffff;
  text-decoration: none;
}

.post-detail-back i {
  font-size: 16px;
}

.post-detail-eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-left: 4px solid #f39337;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.post-detail-title {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.05rem, 4.4vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.post-detail-summary {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.72;
}

.post-detail-article {
  padding: 56px 0 78px;
}

.post-detail-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.post-detail-content {
  color: #2d3540;
  font-size: 17px;
  line-height: 1.86;
  overflow-wrap: anywhere;
}

.post-detail-content > :first-child {
  margin-top: 0;
}

.post-detail-content > :last-child {
  margin-bottom: 0;
}

.post-detail-content h1,
.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4 {
  color: #252f70;
  line-height: 1.24;
  margin: 38px 0 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.post-detail-content h1 {
  font-size: 34px;
}

.post-detail-content h2 {
  font-size: 28px;
}

.post-detail-content h3 {
  font-size: 23px;
}

.post-detail-content h4 {
  font-size: 19px;
}

.post-detail-content p,
.post-detail-content ul,
.post-detail-content ol,
.post-detail-content blockquote,
.post-detail-content figure {
  margin: 0 0 20px;
}

.post-detail-content ul,
.post-detail-content ol {
  padding-left: 24px;
}

.post-detail-content li {
  margin-bottom: 8px;
}

.post-detail-content a {
  color: #252f70;
  font-weight: 700;
  text-decoration-color: rgba(243, 147, 55, 0.65);
  text-underline-offset: 3px;
}

.post-detail-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid #f39337;
  background: #ffffff;
  color: #4b5563;
  font-weight: 600;
}

.post-detail-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  margin: 34px 0;
  border-radius: 8px;
  object-fit: contain;
  background: #eef0f6;
}

.post-detail-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  margin: 28px 0;
  border-collapse: collapse;
}

.post-detail-content th,
.post-detail-content td {
  padding: 12px 14px;
  border: 1px solid #dfe3ee;
  vertical-align: top;
}

.post-detail-content iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 28px 0;
  border: 0;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .post-detail-state {
    padding: 104px 16px 52px;
  }

  .post-detail-hero {
    min-height: 430px;
  }

  .post-detail-hero::after {
    background:
      linear-gradient(0deg, rgba(20, 25, 67, 0.9), rgba(20, 25, 67, 0.2)),
      linear-gradient(90deg, rgba(20, 25, 67, 0.72), rgba(20, 25, 67, 0.35));
  }

  .post-detail-hero-inner {
    width: calc(100% - 28px);
    padding: 112px 0 42px;
  }

  .post-detail-back {
    min-height: 38px;
    margin-bottom: 18px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .post-detail-eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .post-detail-title {
    font-size: clamp(1.75rem, 9vw, 2.55rem);
    line-height: 1.12;
  }

  .post-detail-summary {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .post-detail-article {
    padding: 34px 0 54px;
  }

  .post-detail-shell {
    width: calc(100% - 28px);
  }

  .post-detail-content {
    font-size: 16px;
    line-height: 1.76;
  }

  .post-detail-content h1 {
    font-size: 27px;
  }

  .post-detail-content h2 {
    font-size: 23px;
  }

  .post-detail-content h3 {
    font-size: 20px;
  }

  .post-detail-content p,
  .post-detail-content ul,
  .post-detail-content ol,
  .post-detail-content blockquote,
  .post-detail-content figure {
    margin-bottom: 16px;
  }

  .post-detail-content img {
    max-height: none;
    margin: 24px 0;
  }
}
