/* ============================================================
   Packagly — blog/post.css   (single article page)
   Depends on: common.css, shared/page.css, blog/listing.css
   ============================================================ */

/* left-aligned dark hero with meta */
.post-hero {
  position: relative;
  margin-top: -85px;
  padding: 120px 0 44px;
  background: radial-gradient(ellipse at 30% 0%, #0b2316 0%, #061a11 60%, #04130c 100%);
  overflow: hidden;
  isolation: isolate;
}
.post-hero .pcrumb {
  justify-content: flex-start;
}
.post-hero .pill {
  margin-bottom: 16px;
}
.post-hero-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: #fff;
  max-width: 760px;
}
.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}
.phm {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phm-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phm img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(56%) sepia(63%) saturate(508%) hue-rotate(40deg) brightness(94%) contrast(89%);
}
.phm-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.phm-label b {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}
.phm-label small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--white-50);
}

/* body layout */
.post-wrap {
  background: #f4f6f4;
  padding: 40px 0 64px;
}
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

/* article prose */
.article {
  background: transparent;
}
.article > .ph {
  min-height: 300px;
  margin-bottom: 26px;
}
.article p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: #46544b;
}
.article h2 {
  margin: 32px 0 14px;
  font-size: 23px;
  font-weight: 800;
  color: #15241b;
  scroll-margin-top: 110px;
}
.article h2 .num {
  color: var(--green);
}
.article ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.article ul li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: #46544b;
}
.article ul li::marker {
  color: var(--green);
}

.callout {
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 22px;
}
.callout-key {
  background: linear-gradient(100deg, #14351f, #061a11);
  color: #fff;
}
.callout-key b {
  color: var(--green);
}
.callout-key p {
  margin: 0;
  color: var(--white-70);
  font-size: 14.5px;
  line-height: 1.65;
}
.callout-tip {
  background: #eef5e3;
  border: 1px solid #d8e6c4;
}
.callout-tip .ct-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.callout-tip img {
  width: 16px;
  height: 16px;
}
.callout-tip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #46544b;
}

/* numbered steps */
.steps-list {
  list-style: none;
  margin: 6px 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps-list li {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #e7ebe7;
  border-radius: 12px;
  padding: 16px 18px;
}
.step-n {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-c strong {
  display: block;
  font-size: 15px;
  color: #15241b;
  margin-bottom: 3px;
}
.step-c span {
  font-size: 14px;
  line-height: 1.6;
  color: #5d6b62;
}

/* inline cta */
.inline-cta {
  background: linear-gradient(100deg, #14351f, #061a11);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0 0 22px;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
}
.inline-cta b {
  color: var(--green);
}
.inline-cta a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}

/* share + author */
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 26px 0;
  padding-top: 22px;
  border-top: 1px solid #e3e8e3;
}
.share-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8a988e;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #46544b;
  background: #fff;
  border: 1px solid #e3e8e3;
  border-radius: 8px;
  padding: 8px 13px;
  transition: all 0.2s ease;
}
.share-btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.share-btn.is-copy {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.author-box {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e7ebe7;
  border-radius: 14px;
  padding: 20px;
}
.author-box .post-ava {
  width: 52px;
  height: 52px;
  font-size: 16px;
  flex: 0 0 52px;
}
.author-box h4 {
  margin: 0 0 2px;
  font-size: 15px;
  color: #15241b;
}
.author-role {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--green);
}
.author-box p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #5d6b62;
}

/* sidebar */
.post-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc li {
  border-bottom: 1px solid #eef1ee;
}
.toc li:last-child {
  border-bottom: none;
}
.toc a {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  color: #46544b;
  transition: color 0.2s ease;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
}
.toc a:hover {
  color: var(--green);
}
.order-card {
  background: radial-gradient(ellipse at 30% 0%, #0d2a18 0%, #061a11 80%);
  border: 1px solid rgba(112, 174, 19, 0.25);
  color: #fff;
}
.order-card h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}
.order-card h4 .accent {
  color: var(--green);
}
.order-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--white-70);
  line-height: 1.55;
}
.order-card .btn-g {
  width: 100%;
  justify-content: center;
  padding: 12px;
}

@media (max-width: 991.98px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-side {
    position: static;
  }
}
@media (max-width: 575.98px) {
  .post-hero-meta {
    gap: 16px;
  }
}

/* related articles — always 3 in a row */
.related-articles .post-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 991.98px) {
  .related-articles .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .related-articles .post-grid {
    grid-template-columns: 1fr;
  }
}
