/* Task-oriented entry and reading surfaces. Bulma owns their responsive layout. */
.pi-desk-heading { padding: .5rem 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--pi-border-strong); }
.pi-journey-kicker, .pi-path-number { color: var(--pi-brand); font-family: var(--pi-font-body); font-size: .875rem; text-transform: none; letter-spacing: normal; }
.pi-journey-title { color: var(--pi-text); font-family: var(--pi-font-display); font-weight: 700; font-size: clamp(2.4rem, 4.3vw, 4.4rem); letter-spacing: -.015em; line-height: 1.2; margin: .75rem 0 1rem; }
.pi-journey-lead { font-size: 1.125rem; max-width: 45rem; color: var(--pi-muted); line-height: 1.7; }
.pi-journey-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pi-journey-section-heading h2 { font-family: var(--pi-font-display); font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 700; }
.pi-journey-section-heading p { font-size: .875rem; color: var(--pi-muted); }
.pi-research-path { margin: 0 0 3rem; }
.pi-research-path .columns { --bulma-column-gap: .75rem; }
.pi-site .pi-path-stop { display: flex; flex-direction: column; height: 100%; border: 0; border-top: 3px solid var(--pi-brand); background: var(--pi-surface); box-shadow: none; padding: 1.4rem; }
.pi-path-stop h3 { font-family: var(--pi-font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.15; margin: 1.25rem 0 .8rem; }
.pi-path-stop > p { font-size: 1rem; line-height: 1.65; color: var(--pi-muted); margin-bottom: 1.5rem; }
.pi-path-links { margin-top: auto; }
.pi-path-links a { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--pi-border); font-size: 1rem; font-weight: 650; }
#research-access, #framework, #live-preview, #request-access { scroll-margin-top: 7rem; }
.pi-landing-wayfinder.columns { margin: 2rem 0 3rem; border-block: 1px solid var(--pi-border-strong); }
.pi-landing-wayfinder > a { min-width: 0; overflow-wrap: anywhere; padding: 1.2rem 1.3rem !important; color: var(--pi-text); }
.pi-landing-wayfinder > a + a { border-left: 1px solid var(--pi-border); }
.pi-landing-wayfinder > a > span { display: block; font-size: .875rem; font-family: var(--pi-font-body); text-transform: none; color: var(--pi-brand); margin-bottom: .5rem; }
.pi-landing-wayfinder strong { display: flex; justify-content: space-between; gap: .5rem; color: inherit; font-family: var(--pi-font-display); font-size: 1.3rem; }
.pi-landing-wayfinder > a:hover { background: var(--pi-brand-soft); }
.pi-account-menu { padding-top: 1rem; }
.pi-account-menu .menu-list a { color: var(--pi-text); border-bottom: 1px solid var(--pi-border); padding: 1rem 0; }
.pi-account-menu .menu-list a:hover { background: var(--pi-brand-soft); }
.pi-account-menu .menu-list span { float: right; color: var(--pi-brand); }
.pi-editorial-page { color: var(--pi-text); }
.pi-editorial-page .columns { --bulma-column-gap: 1.5rem; }
.pi-editorial-contents { border-top: 2px solid var(--pi-brand); padding-top: 1.25rem; }
.pi-editorial-contents a { display: block; padding: .55rem 0; font-size: .875rem; overflow-wrap: anywhere; }
.pi-editorial-page .content { font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.pi-editorial-page .message { border: none; background: transparent; box-shadow: none; margin-bottom: 2.5rem; scroll-margin-top: 7rem; }
.pi-editorial-page .message-header { color: var(--pi-text); background: transparent; border-bottom: 1px solid var(--pi-border); padding: .5rem 0 1rem; font-size: 1.75rem; font-family: var(--pi-font-display); }
.pi-editorial-page .message-body { color: var(--pi-text); background: transparent; border: none; padding: 1.25rem 0 0; }
.pi-note-row { border-top: 1px solid var(--pi-border); padding: 1.5rem 0; }
.pi-note-meta { color: var(--pi-muted); font-size: .875rem; font-family: var(--pi-font-body); margin-bottom: .65rem; }
.pi-note-title { font-family: var(--pi-font-display); font-weight: 650; font-size: 1.5rem; line-height: 1.3; }
.pi-form-stage { border: 0; padding: 0; margin: 1.5rem 0; }
.pi-form-stage legend { color: var(--pi-text); font-family: var(--pi-font-display); font-weight: 600; font-size: 1.25rem; text-transform: none; padding-bottom: .75rem; }
.pi-context-page .pi-context-mindmap { margin: 0; }
.pi-context-mindmap__viewport { max-width: 100%; overflow-x: auto; border-radius: 2px; }
.pi-context-mindmap__viewport:focus-visible { outline: 2px solid var(--pi-focus); outline-offset: 3px; }
.pi-context-mindmap__note { color: var(--pi-muted); font-size: .875rem; margin-top: .75rem; }
/* Conceptual relationships follow brand colors; this map has no market scale. */
.pi-context-map { display: block; width: 100%; min-width: 64rem; height: auto; background: var(--pi-surface); }
.pi-context-map text { fill: var(--pi-text); stroke: none; font: 400 24px var(--pi-font-body); dominant-baseline: middle; }
.pi-context-map rect { fill: var(--pi-surface); stroke: var(--pi-brand); stroke-width: 1.5; }
.pi-context-map__icon { color: var(--pi-brand); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pi-context-map__rings { fill: none; stroke: var(--pi-brand); stroke-width: .35; }
.pi-context-map__connectors { fill: none; stroke: var(--pi-border-strong); stroke-width: 1.5; }
.pi-context-map__outputs rect { fill: var(--pi-surface-muted); stroke: var(--pi-border-strong); }
.pi-context-map__outputs .pi-context-map__icon { color: var(--pi-muted); }
.pi-context-map__outcomes text { font-size: 20px; text-anchor: middle; }
.pi-context-map__platform-links { fill: none; stroke: var(--pi-brand); stroke-width: 1.5; stroke-dasharray: 5 5; }
.pi-context-map .pi-context-map__platform-label { fill: var(--pi-brand); text-anchor: middle; }
.pi-context-page .pi-context-guide { max-width: 72ch; border-top: 2px solid var(--pi-brand); padding-top: 1.25rem; }
/* Bulma content owns prose/list spacing; the folio supplies type and color roles. */
html body.pi-site .pi-context-guide .content { color: var(--pi-text); font-family: var(--pi-font-body); font-size: 1.125rem; line-height: 1.75; }
html body.pi-site .pi-context-guide .content h3 {
  color: var(--pi-text); font-family: var(--pi-font-display); font-size: 1.75rem;
  font-weight: 600; line-height: 1.3; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--pi-border); overflow-wrap: anywhere;
}
html body.pi-site .pi-context-guide .content li::marker { color: var(--pi-brand); }
@media (min-width: 1024px) { .pi-editorial-contents, .pi-account-menu { position: sticky; top: 7rem; } }
@media (max-width: 768px) {
  .pi-desk-heading { padding-bottom: 1.5rem; }
  .pi-landing-wayfinder > a { padding: 1rem .6rem !important; }
  .pi-landing-wayfinder strong { font-size: 1.125rem; }
  .pi-landing-wayfinder > a > span { font-size: .875rem; }
  .pi-editorial-page, .pi-context-page { padding-inline: 1rem; }
  .pi-editorial-page .columns,
  .pi-editorial-page .columns.is-variable,
  .pi-context-page .columns.is-variable { --bulma-column-gap: .75rem; }
  .pi-site .pi-path-stop { padding: 1rem 1.15rem; }
  .pi-path-stop h3 { margin: .6rem 0 .5rem; font-size: 1.25rem; }
  .pi-path-stop > p { margin-bottom: .75rem; }
  .pi-path-links a { padding: .55rem 0; min-height: 44px; align-items: center; }
  .pi-research-path { margin-bottom: 2rem; }
  .pi-account-menu { margin-bottom: 1.5rem; }
}

.pi-post-contents { margin: 1.5rem 0 2.5rem; padding: 1rem 0; border-block: 1px solid var(--pi-border); }
.pi-post-contents .buttons { margin-top: .75rem; }
.pi-post-contents .button { white-space: normal; height: auto; text-align: left; }

.pi-demo-dashboard .pi-demo-scroll { max-width: 100%; overflow-x: auto; padding-bottom: 1rem; }
.pi-demo-dashboard .pi-demo-scroll:focus-visible { outline: 2px solid var(--pi-brand); outline-offset: 3px; }
.pi-demo-scroll-note, .pi-demo-availability { color: var(--pi-muted); font-size: .875rem; line-height: 1.65; margin-bottom: 1rem; }
.pi-demo-availability { border-top: 1px solid var(--pi-border); padding-top: 1rem; }
.pi-demo-availability strong { display: block; color: var(--pi-text); margin-bottom: .3rem; }
@media (max-width: 768px) {
  .pi-demo-dashboard .columns.is-variable { --bulma-column-gap: .75rem; }
}

html body.pi-site .pi-editorial-page .message { background: transparent; color: var(--pi-text); }
html body.pi-site .pi-editorial-page .message .message-header { border-color: var(--pi-border); }
.pi-site .pi-demo-cro-bar .tag { background: var(--pi-surface-muted); color: var(--pi-text); }
.pi-demo-dashboard .pi-demo-model > .columns { margin-block: 0; }
/* Legal contents stay with a long document; this is continuous reading navigation. */
@media (min-width: 1024px) {
  .pi-editorial-page aside .pi-contents-nav {
    position: sticky;
    top: calc(var(--pi-topbar-height) + 1rem);
    max-height: calc(100vh - var(--pi-topbar-height) - 2rem);
    overflow-y: auto;
  }
}
.pi-editorial-page .pi-contents-nav a,
.pi-editorial-page .pi-contents-current,
.pi-editorial-page .message-header h2 { overflow-wrap: anywhere; min-width: 0; }
/* Legal headings already carry their canonical section numbers. */
html body.pi-site .pi-editorial-page aside .pi-contents-nav .menu-list a::before { content: none; }

/* The research folio gives the question and evidence room to lead. */
.pi-account-menu .menu-label { font: 600 .875rem var(--pi-font-body); letter-spacing: normal; text-transform: none; }
html body.pi-site .pi-path-stop { background: transparent; padding-inline: 0; border: 0; border-top: 1px solid var(--pi-brand); box-shadow: none; }

@media (max-width: 768px) { .pi-landing-wayfinder > a + a { border-left: 0; border-top: 1px solid var(--pi-border); } }

/* Text enlargement must grow the action, rather than push it beyond its column. */
html body.pi-site .pi-desk-heading .buttons .button {
  max-width: 100%; min-width: 0; height: auto; min-height: 2.75rem;
  white-space: normal; overflow-wrap: anywhere; text-align: left;
  line-height: 1.5; padding-block: .65rem;
}
html body.pi-site .pi-desk-heading .buttons .button > span { flex-shrink: 0; }
html body.pi-site .pi-path-links a { min-width: 0; overflow-wrap: anywhere; }
html body.pi-site .pi-path-links a > span { flex-shrink: 0; }
