/* Prism page: what skill-page.css doesn't cover. */

/* Hero: the image keeps the prism at about 67% of the viewport width */
.pr-hero__img { top: 0; width: max(100vw, max(100vh, 640px) * 1.784); height: auto; aspect-ratio: 2400 / 1345; max-width: none; left: clamp(100vw - max(100vw, max(100vh, 640px) * 1.784), 67vw - max(100vw, max(100vh, 640px) * 1.784) / 2, 0px); }
.pr-hero__copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 96px; }
.pr-hero__inner { max-width: min(640px, 55vw); }
@media (max-width: 700px) { .pr-hero__inner { max-width: 100%; } }

/* Diagram labels */
.pr-labels .pr-adv { font-weight: 700; font-size: 2.4cqw; background: #202020; padding: 0.3cqw 0.6cqw; }
.pr-labels .pr-note { font-family: var(--font-body); font-size: 2.1cqw; color: #a3a3a3; background: #202020; padding: 0.3cqw 1cqw; }
.pr-labels .pr-review { left: 21.67%; top: 66.67%; width: 56.67%; height: 12.08%; transform: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqw; white-space: normal; }
.pr-review > b { font-size: 2.8cqw; }
.pr-review > div { display: grid; grid-template-columns: 1fr 1fr; width: 100%; text-align: center; }
.pr-review span { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; font-family: var(--font-body); font-size: 2.2cqw; color: #a3a3a3; }
.pr-review span b { font-family: var(--font-title); font-size: 2.4cqw; color: #f2f2f2; }

/* The run: a pinned chat whose messages appear as you scroll */
.pr-run { position: relative; }
.js .pr-run { height: 490vh; }
.pr-chat { max-width: 880px; box-sizing: border-box; display: flex; flex-direction: column; background: #202020; border: 1px solid #262626; border-radius: 24px; overflow: hidden; }
.js .pr-chat { position: sticky; top: 48px; height: calc(100vh - 96px); min-height: 560px; }
.pr-chat__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #262626; }
.pr-chat__title { font-family: var(--font-title); font-weight: 700; font-size: 15px; }
.pr-chat__title span { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: #919191; }
.pr-chat__status { font-size: 12px; color: #919191; }
.pr-chat__view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.pr-chat__list { display: flex; flex-direction: column; gap: 16px; padding: 24px; transition: transform 400ms cubic-bezier(0.4,0,0.2,1); }
.pr-chat__input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 8px 8px 8px 16px; border: 1px solid #404040; border-radius: 9999px; background: #191919; font-size: 14px; color: #919191; }
.pr-chat__input span { flex: 1; }
.pr-chat__input i { width: 32px; height: 32px; border-radius: 9999px; background: #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.pr-msg { font-size: 15px; line-height: 1.6; color: #f2f2f2; display: flex; flex-direction: column; gap: 10px; transition: opacity 600ms cubic-bezier(0.4,0,0.2,1), transform 600ms cubic-bezier(0.4,0,0.2,1); }
.js .pr-msg { opacity: 0; transform: translateY(4px); }
.js .pr-msg.is-shown { opacity: 1; transform: none; }
.pr-msg--user { align-items: flex-end; gap: 8px; }
.pr-file { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid #404040; border-radius: 12px; background: #191919; }
.pr-file > span { width: 32px; height: 32px; border-radius: 8px; background: #2a2a2a; display: flex; align-items: center; justify-content: center; color: #d9d9d9; font-size: 16px; }
.pr-file b { display: block; font-size: 13px; font-weight: 600; }
.pr-file small { display: block; font-size: 12px; color: #919191; }
.pr-bubble { max-width: min(560px, 85%); padding: 12px 18px; border-radius: 16px; background: #2a2a2a; line-height: 1.5; text-wrap: pretty; }
.pr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-tags span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 10px; border-radius: 9999px; background: #262626; color: #d9d9d9; }
.pr-tags .sp-icon { color: #34BEAE; }
.pr-loader { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px dashed #404040; font-size: 14px; color: #d9d9d9; }
.pr-dots { display: inline-flex; gap: 6px; }
.pr-dots i { width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; background: var(--c, #a3a3a3); }
.pr-dots i.is-ring { background: transparent; border: 1.5px dashed #a3a3a3; }
.pr-loader.is-done .pr-dots i.is-ring { border-color: #f2f2f2; }
.pr-dots i.is-busy { animation: pr-pulse 1.1s ease-in-out infinite; }
.pr-dots i.is-off { opacity: 0.25; }
@keyframes pr-pulse { 0%, 100% { transform: scale(.6); opacity: .45; } 50% { transform: scale(1); opacity: 1; } }
.pr-advisors { display: flex; flex-direction: column; gap: 2px; }
.pr-advisors.is-collapsed { display: none; }
.pr-line, .pr-council li { display: grid; grid-template-columns: 10px 120px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 4px 0; font-size: 14px; line-height: 1.5; }
.pr-line b, .pr-council b { font-family: var(--font-title); font-weight: 700; }
.pr-line span, .pr-council span { color: #d9d9d9; }
.pr-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #919191; }
.pr-verdict { font-family: var(--font-title); font-weight: 700; font-size: 20px; line-height: 1.35; text-wrap: pretty; }
.pr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.pr-cols p:last-child { font-size: 14px; line-height: 1.55; color: #d9d9d9; }
.pr-do { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; border: 1px solid #9045CF; background: rgba(144,69,207,0.12); }
.pr-do p:first-child { font-size: 13px; color: #d9d9d9; }
.pr-do p:last-child { line-height: 1.55; }
.pr-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: none; border: 0; padding: 0; font: 700 14px/1 var(--font-title); color: #f2f2f2; cursor: pointer; }
.pr-toggle:hover { color: #9045CF; }
.pr-toggle[aria-expanded="true"] .sp-icon { transform: rotate(180deg); }
.pr-council { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

/* Questions by stage */
.pr-questions { display: flex; flex-direction: column; gap: 20px; padding-top: 96px; }
.pr-h3 { font-family: var(--font-title); font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.pr-qrows { margin: 0; display: flex; flex-direction: column; }
.pr-qrows > div { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 24px; padding: 16px 0; border-top: 1px solid #262626; }
.pr-qrows dt { font-family: var(--font-title); font-weight: 700; font-size: 15px; }
.pr-qrows dd { margin: 0; font-size: 16px; line-height: 1.5; color: #d9d9d9; text-wrap: pretty; }
[role="tabpanel"] > .sp-muted + .pr-qrows { margin-top: 12px; }

@media (max-width: 900px) {
  .js .pr-chat { top: 16px; height: calc(100vh - 32px); min-height: 0; }
  .pr-chat__list { padding: 16px; }
  .pr-line, .pr-council li { grid-template-columns: 10px minmax(0, 1fr); }
  .pr-line span, .pr-council span { grid-column: 2; }
  .pr-qrows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pr-questions { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-msg, .pr-chat__list { transition: none !important; }
  .pr-dots i.is-busy { animation: none; }
}
