/* Personas → storyboards (widgets/personas/personas.js) */
.ps { display: grid; grid-template-columns: 150px minmax(0, .95fr) minmax(0, 1.25fr); gap: 10px; padding: 10px; background: var(--tile-bg); font-size: 12px; line-height: 1.38; color: var(--ink-2); }
.ps button { font: inherit; color: inherit; cursor: pointer; }
.ps__tabs { display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.ps__tab { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 0; padding: 4px 8px 4px 4px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background-color .25s ease; }
.ps__tab:hover { background: var(--bg); }
.ps__tab[aria-selected=true] { background: var(--ink); color: var(--bg); }
.ps__tab b { display: block; font-size: 13px; }
.ps__tab span span { display: block; font-size: 11px; opacity: .7; }
.ps__face { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #19a6e8 no-repeat; }
.ps__card { min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--bg); }
.ps__hero { position: relative; flex: none; height: 24%; background: #19a6e8 no-repeat; }
.ps__big { position: absolute; left: 14px; bottom: 6px; font-size: 26px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.ps__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 14px 2px; }
.ps__meta b { font-size: 15px; color: var(--ink); }
.ps__meta span { font-size: 11px; color: var(--muted); text-align: right; }
.ps__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 4px 14px 12px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.ps__grid h4 { margin: 0 0 1px; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--mark); }
.ps__grid ul { margin: 0; padding: 0; list-style: none; font-size: 11px; line-height: 1.28; }
.ps__grid li + li { margin-top: 1px; }
.ps__story { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) minmax(0, .82fr); gap: 6px; }
.ps__flip { display: flex; gap: 4px; }
.ps__flip button { flex: 1; padding: 5px 10px; border: 0; border-radius: 100px; background: none; box-shadow: inset 0 0 0 1px var(--line); }
.ps__flip button[aria-pressed=true] { background: var(--mark); color: #fff; box-shadow: none; }
.ps__board { position: relative; min-height: 0; overflow: hidden; border-radius: 12px; background: #fff; cursor: pointer; }
.ps__board img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.ps__board.is-in { animation: ps-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes ps-in { from { opacity: 0; transform: translateY(8px); } }
.ps__steps { margin: 0; padding: 2px 4px 0 22px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; font-size: 12px; }
.ps__steps li::marker { color: var(--mark); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .ps__board.is-in { animation: none; } }
/* Stacked page: people as a row of tabs that scrolls sideways, then their card, then the storyboard. */
.is-vertical .pic--personas.ps { grid-template-columns: 1fr; }
.is-vertical .pic--personas .ps__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
.is-vertical .pic--personas .ps__tab { flex: none; }
.is-vertical .pic--personas .ps__hero { height: 110px; }
.is-vertical .pic--personas .ps__grid { overflow: visible; }
.is-vertical .pic--personas .ps__story { grid-template-rows: auto 240px auto; }
.is-vertical .pic--personas .ps__steps { overflow: visible; }
