/* PhiEDGE Revamp – single post (blog / case study / white paper) layout. Scoped to .pe-post-* */
.pe-post-body{background:#f6f8fc}
.pe-post-hero{padding:clamp(46px,6vw,78px) 0 clamp(120px,13vw,170px)}
.pe-post-hero .rs-container{max-width:900px}
.pe-post-hero .rs-crumb{flex-wrap:wrap;row-gap:4px}
.pe-post-hero .rs-crumb a{color:#d9e1f2;text-decoration:none}
.pe-post-hero .rs-crumb a:hover{color:#ffb15e}
.pe-post-hero .rs-crumb [aria-current]{max-width:46ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pe-post-hero h1{font-size:clamp(28px,3.6vw,46px);letter-spacing:-1.1px;line-height:1.14}
.pe-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:20px;color:#c5cee3;font-size:13.5px;font-weight:600}
.pe-post-meta .rs-badge{margin:0}
.pe-post-meta i{width:4px;height:4px;border-radius:50%;background:#6f7d9c}
.pe-post-main{position:relative;margin-top:clamp(-140px,-11vw,-96px);padding-bottom:30px}
.pe-post-wrap{width:min(900px,calc(100% - 32px));margin:0 auto}
.pe-post-cover{margin:0 0 22px;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 24px 60px rgba(23,35,56,.16);border:1px solid #e3e8f2}
.pe-post-cover img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;background:#fff}
.pe-post-card{background:#fff;border:1px solid #e3e8f2;border-radius:22px;box-shadow:0 14px 40px rgba(23,35,56,.07);padding:clamp(24px,4.4vw,56px)}

/* Article typography */
.pe-article{color:#38425a;font-family:Inter,system-ui,sans-serif;font-size:17px;line-height:1.8;overflow-wrap:anywhere}
.pe-article>*:first-child{margin-top:0!important}
.pe-post-card .pe-article p,.pe-post-card .pe-article li{font-size:inherit;line-height:inherit}
.pe-article p{margin:0 0 1.15em}
.pe-article h1,.pe-article h2,.pe-article h3,.pe-article h4,.pe-article h5,.pe-article h6{font-family:Manrope,Inter,sans-serif;color:#1b2440;font-weight:800;line-height:1.25;letter-spacing:-.4px;margin:1.8em 0 .6em}
.pe-article h1{font-size:clamp(26px,3vw,34px)}
.pe-article h2{font-size:clamp(23px,2.6vw,29px);padding-top:.2em}
.pe-article h3{font-size:clamp(19px,2.1vw,22px)}
.pe-article h4{font-size:18px}
.pe-article h5,.pe-article h6{font-size:16px}
.pe-article a{color:#d97816;font-weight:600;text-decoration:underline;text-decoration-color:rgba(217,120,22,.35);text-underline-offset:3px}
.pe-article a:hover{text-decoration-color:#d97816}
.pe-article strong,.pe-article b{color:#1b2440;font-weight:700}
.pe-article ul,.pe-article ol{margin:0 0 1.2em;padding-left:1.4em}
.pe-article li{margin:.35em 0}
.pe-article ul li::marker{color:#f28a18}
.pe-article ol li::marker{color:#f28a18;font-weight:700}
.pe-article img{max-width:100%;height:auto;border-radius:14px}
.pe-article figure{margin:1.6em 0;max-width:100%}
.pe-article figcaption{margin-top:8px;color:#7a8499;font-size:13px;text-align:center}
.pe-article blockquote{margin:1.6em 0;padding:18px 22px;border-left:4px solid #f28a18;border-radius:0 14px 14px 0;background:#fff7ee;color:#2a3352;font-size:17.5px}
.pe-article blockquote p:last-child{margin-bottom:0}
.pe-article hr{border:0;border-top:1px solid #e3e8f2;margin:2em 0}
.pe-article table{display:table;width:100%!important;border-collapse:collapse;margin:1.4em 0;font-size:15px;line-height:1.55}
.pe-article th,.pe-article td{border:1px solid #e1e6f0;padding:11px 14px;text-align:left;vertical-align:top}
.pe-article th,.pe-article thead td,.pe-article table:not(:has(thead)) tr:first-child>*{background:#23273f;color:#fff;font-weight:700;border-color:#23273f}
.pe-article table:not(:has(thead)) tr:first-child>* strong{color:#fff}
.pe-article tbody tr:nth-child(even) td{background:#f8fafd}
.pe-article .wp-block-table{margin:1.4em 0;overflow-x:auto}
.pe-article .wp-block-table table{margin:0}
.pe-article iframe,.pe-article video{max-width:100%}
.pe-article code{background:#f1f4f9;padding:2px 6px;border-radius:6px;font-size:.92em}
/* Elementor-built posts: let their own layout breathe inside the card */
.pe-article .elementor{font-size:inherit}
.pe-article .elementor-section.elementor-section-boxed>.elementor-container{max-width:100%}

/* Author / share strip */
.pe-post-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:2.2em;padding-top:20px;border-top:1px solid #e3e8f2;font-size:14px;color:#5b6478}
.pe-post-foot a{color:#d97816;font-weight:700;text-decoration:none}

/* Related */
.pe-related{padding:46px 0 10px}
.pe-related-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:22px}
.pe-related-head h2{margin:0;font-family:Manrope,Inter,sans-serif;font-size:clamp(22px,2.4vw,30px);font-weight:800;color:#1b2440;letter-spacing:-.6px}
.pe-related-head a{color:#d97816;font-weight:800;font-size:14px;text-decoration:none;white-space:nowrap}
@media (max-width:900px){.pe-related .rs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){
  .pe-related .rs-grid{grid-template-columns:1fr}
  .pe-article{font-size:16px;line-height:1.75}
  .pe-article table{display:block;overflow-x:auto;width:auto!important}
  .pe-post-card{border-radius:18px}
  .pe-post-cover{border-radius:16px}
  .pe-post-hero .rs-crumb [aria-current]{display:none}
}
