:root {
  --pi-brand: #1b2b4a;
  --pi-gold: #c9a96a;
  --pi-heading: #0f172a;
  --pi-text: #111111;
  --pi-white: #ffffff;
  --pi-border: #ffe0c1;
  --pi-subtle: #070614;
  --pi-extra: #222222;
  --pi-heading-font: "Playfair Display", Georgia, serif;
  --pi-body-font: "Inter", Arial, sans-serif;
}

body.pi-blog-template-active {
  margin: 0;
}

/* V6 controls only the article canvas. Astra continues to own the site header and footer. */
.pi-blog-template-active .site-content,
.pi-blog-template-active .ast-container,
.pi-blog-template-active #primary,
.pi-blog-template-active .content-area {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.pi-blog-template-active #secondary,
.pi-blog-template-active .entry-header,
.pi-blog-template-active .post-thumb,
.pi-blog-template-active .ast-single-post-featured-section {
  display: none;
}

.pi-blog-main {
  width: 100%;
  background: var(--pi-white);
  color: var(--pi-text);
  font-family: var(--pi-body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
}

.pi-blog-article {
  box-sizing: border-box;
  width: min(672px, calc(100% - 64px));
  margin: 0 auto;
  padding: 96px 0 112px;
}

.pi-blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 24px;
  color: var(--pi-extra);
  font-size: 11px;
  line-height: 1.5;
}

.pi-blog-main a {
  color: var(--pi-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
}

.pi-blog-main a:focus-visible,
.pi-blog-main button:focus-visible,
.pi-blog-main input:focus-visible,
.pi-blog-main textarea:focus-visible,
.pi-blog-main select:focus-visible {
  outline: 3px solid var(--pi-gold);
  outline-offset: 3px;
}

.pi-blog-category,
.pi-inquiry__kicker,
.pi-blog-related__category {
  margin: 0 0 12px;
  color: var(--pi-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pi-blog-title,
.pi-blog-main h1,
.pi-blog-main h2,
.pi-blog-main h3,
.pi-blog-main h4,
.pi-blog-main h5,
.pi-blog-main h6 {
  color: var(--pi-heading);
  font-family: var(--pi-heading-font);
  font-weight: 400;
  text-align: left;
}

.pi-blog-title,
.pi-blog-main h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
}

.pi-blog-main h2 {
  margin: 54px 0 20px;
  font-size: 25px;
  line-height: 1.24;
}

.pi-blog-main h3 { margin: 38px 0 14px; font-size: 20px; line-height: 1.35; }
.pi-blog-main h4 { margin: 18px 0 8px; font-size: 17px; line-height: 1.3; }
.pi-blog-main h5 { font-size: 16px; line-height: 1.35; }
.pi-blog-main h6 { font-size: 15px; line-height: 1.35; }

.pi-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  color: var(--pi-extra);
  font-size: 12px;
  line-height: 1.5;
}

.pi-blog-content { margin-top: 64px; }
.pi-blog-content > * { max-width: 100%; }
.pi-blog-content p { margin: 0 0 24px; }
.pi-blog-content ul,
.pi-blog-content ol { margin: 0 0 20px; padding-left: 1.35em; }
.pi-blog-content li + li { margin-top: 8px; }
.pi-blog-content img { max-width: 100%; height: auto; }
.pi-blog-content [id] { scroll-margin-top: 112px; }

.pi-blog-eyebrow,
.pi-download__kicker,
.pi-service-cta__kicker {
  margin: 0 0 8px;
  color: var(--pi-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pi-blog-question { margin-bottom: 46px; }
.pi-blog-question .pi-blog-eyebrow { margin-bottom: 18px; }
.pi-blog-question .pi-blog-question__text {
  margin: 0;
  color: var(--pi-brand);
  font-family: var(--pi-body-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.pi-blog-answer {
  box-sizing: border-box;
  margin: 0 0 58px;
  padding: 34px 36px 32px;
  border: 1px solid var(--pi-brand);
  border-left: 2px solid var(--pi-gold);
  border-radius: 0;
  background: var(--pi-white);
}

.pi-blog-answer .pi-blog-eyebrow { margin-bottom: 20px; }
.pi-blog-answer p:last-child { margin-bottom: 0; }

.pi-term-trigger {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--pi-brand);
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
}
.pi-term-trigger::after {
  content: " +";
  color: var(--pi-gold);
  font-size: 0.78em;
  font-weight: 600;
}
.pi-term-trigger[aria-expanded="true"]::after { content: " −"; }
.pi-term-trigger:hover { color: var(--pi-heading); }
.pi-term-trigger:focus-visible { outline: 3px solid var(--pi-gold); outline-offset: 3px; }
.pi-term-definition {
  margin: -10px 0 30px;
  padding: 18px 22px;
  border: 0;
  border-left: 3px solid var(--pi-gold);
  background: #f7f8fa;
  color: var(--pi-extra);
  font-size: 14px;
  line-height: 1.6;
}
.pi-term-definition[hidden] { display: none !important; }
.pi-term-definition > :last-child { margin-bottom: 0; }
.pi-table-wrap { max-width: 100%; overflow-x: auto; }
.pi-table-wrap table { width: 100%; min-width: 420px; border-collapse: collapse; }
.pi-table-wrap th, .pi-table-wrap td { padding: 10px 12px; border: 1px solid var(--pi-border); text-align: left; }
.pi-table-wrap th { background: rgba(27, 43, 74, 0.05); }

.pi-download {
  box-sizing: border-box;
  margin: 44px 0 52px;
  padding: 38px 40px 40px;
  border: 1px solid var(--pi-border);
  background: var(--pi-white);
}
.pi-download h3 { margin: 0 0 10px; text-align: center; }
.pi-download__kicker { text-align: center; }
.pi-download__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 28px; text-align: left; }
.pi-download__form > p { margin: 0; }
.pi-download__form > p:nth-of-type(n+3), .pi-download__form .pi-button { grid-column: 1 / -1; }
.pi-download__form label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.pi-download__form input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--pi-border); border-radius: 0; background: #fff; color: var(--pi-text); }
.pi-download__privacy { font-size: 12px; line-height: 1.55; }
.pi-download__consent { font-size: 13px; line-height: 1.5; }
.pi-download__consent label { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; font-weight: 400; }
.pi-download__consent input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.pi-form-error { padding: 12px; border-left: 4px solid #9b1c1c; background: #fff4f4; }
.pi-form-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; }
.pi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 280px;
  justify-self: center;
  padding: 12px 24px;
  border: 2px solid var(--pi-brand);
  border-radius: 0;
  background: var(--pi-brand);
  color: var(--pi-white) !important;
  cursor: pointer;
  font: 600 14px/1.35 var(--pi-body-font);
  text-decoration: none !important;
}
.pi-button:hover { background: #0f1c34; }
.pi-download--pending { border-style: dashed; }

.pi-service-cta { margin: 36px 0; padding: 32px; border: 1px solid var(--pi-border); }
.pi-service-cta[hidden], [data-pi-future-ebook][hidden] { display: none !important; }

.pi-blog-legal-basis {
  box-sizing: border-box;
  margin: 52px 0 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pi-blog-legal-basis h2 {
  margin: 0 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--pi-border);
  color: var(--pi-brand);
  font-family: var(--pi-heading-font);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pi-blog-legal-basis > p {
  margin: 0;
  padding: 20px 24px;
  border-left: 3px solid var(--pi-brand);
  background: rgba(27, 43, 74, 0.035);
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
}

.pi-tool-cta {
  box-sizing: border-box;
  margin: 34px 0 48px;
  padding: 30px 34px;
  border: 1px solid var(--pi-border);
  border-top: 3px solid var(--pi-gold);
  background: #fffdf9;
  color: var(--pi-brand);
  font-family: var(--pi-heading-font);
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}
.pi-tool-cta p { margin: 0; }

.pi-blog-case {
  position: relative;
  box-sizing: border-box;
  margin: 28px 0 0;
  padding: 24px;
  border: 1px solid var(--pi-border);
  border-radius: 0;
  background: var(--pi-white);
}

.pi-blog-case::before {
  position: absolute;
  top: 29px;
  left: 24px;
  width: 28px;
  height: 1px;
  background: var(--pi-gold);
  content: "";
}

.pi-blog-case .pi-blog-case__label {
  margin: 0 0 18px;
  padding-left: 42px;
  font-size: 20px;
}

.pi-blog-case h3:not(.pi-blog-case__label) {
  margin: 0 0 14px;
  color: var(--pi-gold);
  font-family: var(--pi-body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pi-blog-case h4 {
  margin: 16px 0 6px;
  font-family: var(--pi-body-font);
  font-size: 13px;
  font-weight: 600;
}

.pi-blog-case p { margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.pi-blog-case p:last-child { margin-bottom: 0; }

.pi-inquiry {
  box-sizing: border-box;
  width: 100%;
  margin: 56px auto 64px;
  padding: 46px 40px 40px;
  border: 1px solid var(--pi-border);
  border-radius: 0;
  background: var(--pi-white);
  text-align: center;
}

.pi-inquiry__kicker { margin-bottom: 10px; }
.pi-inquiry h2 { margin: 0 0 12px; font-size: 24px; text-align: center; }
.pi-inquiry__description { max-width: 520px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.pi-inquiry__integration-note {
  box-sizing: border-box;
  min-height: 112px;
  margin-top: 28px;
  padding: 24px;
  border: 1px dashed var(--pi-gold);
  color: var(--pi-extra);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.pi-inquiry :where(input, textarea, button, select) { box-sizing: border-box; font: inherit; }

.pi-blog-related { margin-top: 0; }
.pi-blog-related h2 { margin-top: 0; }
.pi-blog-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pi-blog-related__card { min-width: 0; padding: 16px; border: 1px solid var(--pi-border); border-radius: 0; }
.pi-blog-related__card h3 { margin: 8px 0; font-size: 17px; overflow-wrap: anywhere; }
.pi-blog-related__card p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.pi-blog-related__link { font-size: 13px; font-weight: 600; }

@media (max-width: 1023px) {
  .pi-blog-article { width: min(672px, calc(100% - 48px)); padding: 72px 0 88px; }
  .pi-blog-title, .pi-blog-main h1 { font-size: 32px; }
  .pi-blog-main h2 { font-size: 23px; }
  .pi-blog-answer { padding: 22px; }
  .pi-blog-case { padding: 22px; }
  .pi-blog-case::before { left: 22px; }
  .pi-inquiry { padding: 32px; }
  .pi-blog-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .pi-blog-main { font-size: 16px; line-height: 1.65; }
  .pi-blog-article { width: calc(100% - 32px); padding: 44px 0 64px; }
  .pi-blog-breadcrumbs { margin-bottom: 22px; font-size: 11px; }
  .pi-blog-category { margin-bottom: 10px; }
  .pi-blog-title, .pi-blog-main h1 { margin-bottom: 12px; font-size: clamp(27px, 8.25vw, 32px); line-height: 1.16; }
  .pi-blog-main h2 { margin: 44px 0 17px; font-size: 22px; }
  .pi-blog-main h3 { margin-top: 32px; font-size: 19px; }
  .pi-blog-content { margin-top: 48px; }
  .pi-blog-content p { margin-bottom: 20px; }
  .pi-blog-question { margin-bottom: 36px; }
  .pi-blog-question .pi-blog-eyebrow { margin-bottom: 14px; }
  .pi-blog-answer { margin-bottom: 46px; padding: 26px 22px; }
  .pi-blog-answer .pi-blog-eyebrow { margin-bottom: 16px; }
  .pi-blog-legal-basis { margin-top: 32px; }
  .pi-blog-legal-basis h2 { padding-top: 18px; }
  .pi-blog-legal-basis > p { padding: 16px; }
  .pi-blog-case { margin-top: 24px; padding: 18px; }
  .pi-blog-case::before { top: 23px; left: 18px; width: 24px; }
  .pi-blog-case .pi-blog-case__label { padding-left: 36px; font-size: 19px; }
  .pi-inquiry { margin: 44px auto 48px; padding: 32px 20px 24px; }
  .pi-inquiry h2 { font-size: 22px; }
  .pi-inquiry__integration-note { min-height: 104px; margin-top: 24px; padding: 20px; }
  .pi-blog-related__grid { grid-template-columns: 1fr; }
  .pi-download { margin: 36px 0 44px; padding: 30px 20px 24px; }
  .pi-download__form { grid-template-columns: 1fr; }
  .pi-download__form > p, .pi-download__form .pi-button { grid-column: 1; }
  .pi-button { width: 100%; min-width: 0; }
  .pi-tool-cta { margin: 28px 0 40px; padding: 24px 20px; font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .pi-blog-main *, .pi-blog-main *::before, .pi-blog-main *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
