/* Wayfinder CSI brochure. Identity and theme values come from Harten's shared tokens. */
.csi-page { --csi-panel: var(--white); }
.csi-page h1, .csi-page h2, .csi-page h3 { max-width: none; }
.csi-page h2 { font-size: clamp(1.7rem, 2.8vw, 2.45rem); line-height: 1.18; }
.csi-page h3 { font-size: 1.35rem; line-height: 1.3; }
.csi-page p { line-height: 1.72; }
.csi-page a:focus-visible, .csi-page summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.csi-page section[id] { scroll-margin-top: 100px; }
.csi-hero { padding: 36px 0 56px; }
.csi-hero-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 42px; }
.csi-back { font-size: .9rem; color: var(--text-dim); text-decoration: underline; text-underline-offset: 4px; }
.csi-status { padding: 7px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px; font-size: .8rem; color: var(--text); background: var(--surface); }
.csi-hero .eyebrow { margin-bottom: 12px; }
.csi-hero h1 { font-size: clamp(3rem, 6.5vw, 5.25rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 12px; }
.csi-full-name { font-size: clamp(1.18rem, 2.25vw, 1.75rem); color: var(--teal); font-weight: 500; margin-bottom: 28px; }
.csi-lead { max-width: 39ch; font-size: clamp(1.45rem, 2.7vw, 2.12rem); line-height: 1.38 !important; letter-spacing: -.018em; color: var(--text); margin-bottom: 26px; }
.csi-introduction { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 28px 48px; align-items: center; }
.csi-introduction > p { font-size: 1.02rem; margin-bottom: 0; max-width: 76ch; }
.csi-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; justify-self: end; }
.csi-actions .btn { white-space: normal; }
.csi-text-link, .csi-prose a, .csi-source-note a { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.csi-foundation-image { margin: 40px 0 0; }
.csi-foundation-image img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.csi-foundation-image figcaption { margin-top: 12px; max-width: 98ch; font-size: .83rem; line-height: 1.6; color: var(--text-dim); }
.csi-section { padding: 64px 0; border-top: 1px solid var(--line); }
.csi-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 32px 72px; align-items: start; }
.csi-split h2 { max-width: 22ch; }
.csi-split .eyebrow { max-width: 32ch; }
.csi-prose > :last-child { margin-bottom: 0; }
.csi-section-intro { max-width: 80ch; margin: 20px 0 30px; }
.csi-graph-section { background: var(--surface); }
.csi-graphs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.csi-graph-panel { min-width: 0; padding: 28px; border: 1px solid var(--line); background: var(--csi-panel); border-radius: 6px; }
.csi-panel-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.csi-panel-heading h3 { margin: 0; }
.csi-number { color: var(--teal); font-size: .82rem; padding-right: 14px; border-right: 1px solid var(--line); }
.csi-graph-panel > p { font-size: .96rem; }
.csi-graph { display: block; width: 100%; height: auto; margin: 18px 0 24px; overflow: visible; }
.csi-graph text { fill: var(--text); font-family: var(--sans); font-size: 17px; font-weight: 500; }
.csi-graph .csi-edge-label { fill: var(--text-dim); font-size: 13px; font-weight: 400; }
.csi-node { fill: var(--csi-panel); stroke: var(--line); stroke-width: 1.5; }
.csi-node-focus { fill: var(--surface); stroke: var(--teal); }
.csi-signal { fill: #F0B44D; }
.csi-edge { fill: none; stroke: var(--teal); stroke-width: 1.6; }
.csi-edge-review { stroke-dasharray: 5 5; }
.csi-graph marker path { fill: var(--teal); }
.csi-graph-panel .csi-graph-question { color: var(--text); font-weight: 600; border-top: 1px solid var(--line); padding-top: 22px; }
.csi-small, .csi-graph-panel .csi-small { font-size: .86rem; line-height: 1.65; }
.csi-graph-panel > :last-child { margin-bottom: 0; }
.csi-figure-note { margin: 20px 0 0; max-width: 100ch; font-size: .82rem; }
.csi-evidence-rows { border-top: 1px solid var(--line); }
.csi-evidence-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 24px 60px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.csi-kicker { display: block; color: var(--teal); font-size: .79rem; font-weight: 600; margin-bottom: 10px; }
.csi-evidence-row h3 { max-width: 24ch; }
.csi-evidence-row p { margin-bottom: 10px; }
.csi-evidence-row a { font-size: .9rem; }
.csi-evidence-boundary { margin: 22px 0 0; max-width: 110ch; }
.csi-php-section .csi-prose { padding-left: 26px; border-left: 3px solid var(--accent); }
.csi-definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
.csi-definitions > div { padding: 23px 0; border-top: 1px solid var(--line); }
.csi-definitions dt { font-weight: 600; font-size: 1.03rem; color: var(--text); margin-bottom: 8px; }
.csi-definitions dd { color: var(--text-dim); font-size: .94rem; line-height: 1.7; margin: 0; }
.csi-source-note { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.csi-source-note summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
.csi-source-note p { font-size: .9rem; max-width: 96ch; margin-top: 18px; }
.csi-contact { padding: 64px 0; border-top: 1px solid var(--line); background: var(--surface); }
.csi-contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: center; }
.csi-contact-inner h2 { max-width: 29ch; }
.csi-contact-inner p { max-width: 72ch; }
.csi-contact-inner > div > :last-child { margin: 0; }
@media (max-width: 1100px) {
  .csi-graphs { grid-template-columns: 1fr; }
  .csi-graph { max-width: 580px; margin-right: auto; margin-left: auto; }
}
@media (max-width: 850px) {
  .csi-introduction, .csi-split, .csi-evidence-row, .csi-contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .csi-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-self: start; gap: 18px 24px; }
  .csi-split h2, .csi-split .eyebrow { max-width: none; }
  .csi-contact-inner > .btn { justify-self: start; }
}
@media (max-width: 560px) {
  .csi-hero { padding: 24px 0 36px; }
  .csi-hero-top { margin-bottom: 30px; gap: 12px; }
  .csi-status { font-size: .72rem; }
  .csi-section, .csi-contact { padding: 40px 0; }
  .csi-foundation-image { margin-top: 28px; }
  .csi-graph-panel { padding: 20px 16px; }
  .csi-graph text { font-size: 26px; }
  .csi-graph .csi-edge-label { display: none; }
  .csi-definitions { grid-template-columns: 1fr; }
  .csi-php-section .csi-prose { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) { html:has(.csi-page) { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .csi-hero-top, .csi-actions, .csi-contact .btn { display: none; }
  .csi-hero, .csi-section, .csi-contact { padding: 24px 0; }
  .csi-hero h1 { font-size: 40pt; }
  .csi-page h2 { font-size: 22pt; }
  .csi-graphs, .csi-definitions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csi-graph-panel, .csi-evidence-row, .csi-definitions > div { break-inside: avoid; }
  .csi-foundation-image { max-width: 700px; }
}
