/*
 * MIRDXB PRO - premium service pages (Oct 2026).
 * Loads after home/mdx-home.css and bsd/mdx-bsd.css; only adds what service pages need.
 * Scoped to .psp, .psp-contact and .psp-disc.
 */

/* hero: service titles are longer than the homepage line */
.psp .hv-h1__big { font-size: clamp(40px, 5vw, 76px); line-height: 1.02; }
.psp .hv-h1__big em { font-style: normal; display: block; padding-bottom: .12em; margin-bottom: -.12em; background: linear-gradient(92deg, #fff 0%, #fff 30%, var(--hv-teal) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.psp .hv-hero__lead p { margin: 0; }
.psp .psp-by { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 30px; font-size: 13.5px; color: rgba(255, 255, 255, .66); animation: hv-up .9s var(--hv-ease) .5s both; }
.psp .psp-by img { width: 36px; height: 36px; object-fit: cover; border: 2px solid rgba(255, 255, 255, .2); }
.psp .psp-by a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--hv-teal); }
.psp .psp-by__d { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .2); }

/* body: full service write-up beside a sticky contents list */
.psp .psp-body { background: #fff; border-top: 0; }
.psp .psp-body .hv-guide__grid { grid-template-columns: 260px minmax(0, 1fr); }
.psp .psp-body .hv-guide__art .mdx-art-wide { max-width: 820px; }
.psp .psp-toc__cta { width: 100%; margin-top: 24px; min-height: 50px; font-size: 13px; }
.psp .hv-guide__art .mdx-inline-cta { background: var(--canvas, #F2F6FB); border: 1px solid var(--line, #CDDBE6); border-top: 3px solid var(--mag, #E40D75); padding: 28px 30px; margin: 0 0 40px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.psp .hv-guide__art .mdx-inline-cta .cx { flex: 1 1 300px; font-size: 15.5px; line-height: 1.6; }
.psp .psp-prose p { margin-top: 18px; font-size: 16.5px; line-height: 1.7; max-width: 66ch; }
.psp .psp-prose a, .psp .psp-intro a { color: var(--hv-ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--hv-accent); }
.psp .psp-intro p { margin: 0; }
.psp .psp-fig { margin-top: 32px; }
.psp .psp-fig img { width: 100%; height: auto; border: 1px solid var(--hv-line); }
.psp .psp-fig figcaption { margin-top: 10px; font-size: 13.5px; color: var(--hv-muted); }

/* hub icons carried over from the original cards */
.psp .psp-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--hv-surface); color: var(--hv-ink); }
.psp .psp-ic svg { width: 24px; height: 24px; }

/* documents block (no overlap on service pages) */
.psp .psp-docs { background: var(--hv-surface); }
.psp .psp-docs .hv-corp__grid { align-items: start; }
.psp .psp-docs .hv-corp__p { margin: 22px 0 30px; }
.psp .psp-docs__panel { margin-top: 0; }

/* steps: hub steps have no time line */
.psp .psp-steps .hv-head__p { color: rgba(255, 255, 255, .7); max-width: 46ch; margin-top: 0; }
.psp .psp-steps .hv-h2, .psp .psp-process .hv-h2 { max-width: 22ch; }
.psp .psp-process { padding-bottom: var(--hv-sec); }
.psp .psp-why { border-top: 1px solid var(--hv-line); }

/* related guides + sibling services */
.psp .psp-rel { background: var(--hv-surface); }
.psp .psp-cards .mdx-g { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.psp .psp-rel__h { margin: clamp(48px, 5vw, 72px) 0 22px; font-size: clamp(22px, 2vw, 26px); }
.psp .psp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.psp .psp-tiles a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 64px 22px 22px; background: #fff; border: 1px solid var(--hv-line); text-decoration: none; transition: border-color .3s, transform .4s var(--hv-ease), box-shadow .4s var(--hv-ease); }
.psp .psp-tiles a:hover { border-color: var(--hv-ink); transform: translateY(-3px); box-shadow: var(--hv-shadow); }
.psp .psp-tiles__t { font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--hv-ink); }
.psp .psp-tiles__d { font-size: 14px; line-height: 1.5; color: var(--hv-body); }
.psp .psp-tiles__go { position: absolute; right: 18px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--hv-line); color: var(--hv-ink); transition: background-color .3s, color .3s; }
.psp .psp-tiles a:hover .psp-tiles__go { background: var(--hv-ink); color: #fff; border-color: var(--hv-ink); }

/* contact section rendered without an Elementor container (sub-services) */
.psp-contact .psp-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); max-width: calc(var(--hv-max) + var(--hv-gut) * 2); margin: 0 auto; padding: 0 var(--hv-gut); align-items: start; }
.psp-contact .hv-h2 { font: 800 clamp(30px, 3.5vw, 48px)/1.06 Inter, sans-serif; letter-spacing: -.034em; color: #fff; max-width: 16ch; text-wrap: balance; }
.psp-contact .hv-eyebrow { font: 600 12px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--hv-teal); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px; }
.psp-contact .hv-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--hv-teal); }
/* the form template carries its own headings: keep only the form */
.psp-form .elementor-widget:not(.elementor-widget-form) { display: none !important; }
.psp-form .elementor-section, .psp-form .elementor-container, .psp-form .elementor-column, .psp-form .elementor-widget-wrap, .psp-form .e-con, .psp-form .e-con-inner { padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; max-width: none !important; width: 100% !important; min-height: 0 !important; }
.psp-form .elementor-section::before, .psp-form .e-con::before { display: none !important; }
.hv-contact-sec .psp-form .elementor-field-group > label { color: var(--hv-ink) !important; }
.psp-disc { background: var(--hv-deep); }
.hv.psp-disc .hv-wrap > p, .hv.psp-disc .hv-wrap p { padding-top: 26px; margin: 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; line-height: 1.65; color: rgba(255, 255, 255, .5); max-width: 120ch; }
.hv.psp-disc { padding: 0 0 clamp(40px, 5vw, 56px); }

/* off-screen sections skip rendering until near (Doherty) */
.psp .psp-rel, .psp .psp-why, .psp .psp-process, .psp .psp-docs, .psp .psp-pit, .psp .psp-steps, .psp .psp-scope { content-visibility: auto; contain-intrinsic-size: auto 900px; }

@media (max-width: 1024px) {
	.psp .psp-body .hv-guide__grid { grid-template-columns: minmax(0, 1fr); }
	.psp .psp-cards .mdx-g, .psp .psp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psp-contact .psp-contact__grid { grid-template-columns: minmax(0, 1fr); }
	.psp .psp-docs .hv-corp__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.psp .hv-h1__big { font-size: clamp(34px, 9.4vw, 46px); }
	.psp .psp-by { margin-top: 22px; font-size: 12.5px; }
	.psp .psp-cards .mdx-g, .psp .psp-tiles { grid-template-columns: minmax(0, 1fr); }
	.psp .hv-guide__art .mdx-inline-cta { padding: 22px 20px; flex-direction: column; align-items: stretch; }
	.psp .hv-guide__art .mdx-inline-cta .cx { flex: 0 0 auto; }
	.psp .psp-docs .hv-btn { width: 100%; }
}

/* the site-wide end prompt is replaced by the contact section on these pages */
.mdx-end-cta { display: none !important; }

/* hub headlines are a full sentence: one step smaller */
.psp-hub .hv-h1__big { font-size: clamp(38px, 4.3vw, 64px); }
.psp .psp-kicker { margin: 0 0 22px; }
@media (max-width: 767px) { .psp-hub .hv-h1__big { font-size: clamp(32px, 8.6vw, 42px); } }
