/* tiun atlas v2: personas. A line-up of four roles and one framed profile sheet each. Needs base.css.
   --p, --p-bg and --p-ink are the persona's colour, its tint and its dark shade (set per persona in persona.js). */
.sheet { position: relative; max-width: 1360px; margin: 0 auto; padding-top: 26px; }
.portrait { display: block; flex: none; }

.btn { display: inline-flex; align-items: center; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--sheet); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color 140ms var(--ease), translate 140ms var(--ease), box-shadow 140ms var(--ease); }
.btn:hover { background: var(--ground); translate: 0 -1px; box-shadow: 0 3px 8px -4px rgba(20, 22, 28, 0.45); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2a2e3a; }

.meter { display: grid; gap: 5px; margin: 0; font-size: 14px; color: var(--ink-2); }
.meter strong { color: var(--ink); font-weight: 640; }
.meter__bar { display: flex; gap: 3px; }
.meter__seg { flex: 1; max-width: 34px; height: 10px; border-radius: 2px; background: #e1e4ea; box-shadow: inset 0 0 0 1px #c3c8d3; }
.meter--pain .meter__seg.is-on { background: var(--pain-line); box-shadow: none; }
.meter--gain .meter__seg.is-on { background: var(--gain-line); box-shadow: none; }

/* ---- the line-up */
.lead__t { margin: 0; font-size: 38px; line-height: 1.08; font-weight: 660; letter-spacing: -0.028em; text-wrap: balance; }
.lead__s { margin: 10px 0 0; max-width: 52ch; text-wrap: pretty; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.lineup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; border: 3px solid var(--ink); background: var(--sheet); }
.pcol { display: flex; flex-direction: column; border-left: 1.5px solid var(--ink); }
.pcol:first-child { border-left: 0; }
.pcol__top { display: block; padding: 22px 20px 18px; background: var(--p-bg); border-bottom: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; }
.pcol__top .portrait { transition: rotate 320ms var(--ease), scale 320ms var(--ease); }
.pcol__top:hover .portrait { rotate: -4deg; scale: 1.05; }
.pcol__t { margin: 14px 0 0; font-size: 24px; line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
.pcol__top:hover .pcol__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pcol__s { text-wrap: pretty; margin: 5px 0 0; font-size: 15px; line-height: 1.4; color: var(--p-ink); min-height: 2.8em; }
.pfact { padding: 14px 20px 0; }
.pfact__k { margin: 0; font-size: 13px; font-weight: 640; color: var(--ink-2); }
.pfact p { text-wrap: pretty; margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
.pfact--job { min-height: 8.6em; }
.pfact--job p { font-size: 17px; font-weight: 540; letter-spacing: -0.005em; text-wrap: pretty; }
.pcol__fit { display: grid; gap: 10px; margin-top: auto; padding: 18px 20px 0; }
.pcol__links { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 20px 20px; }

/* ---- one profile */
.persona { display: grid; grid-template-columns: 318px minmax(0, 1fr); border: 3px solid var(--ink); background: var(--sheet); }
.persona__side { padding: 26px 24px 24px; background: var(--p-bg); border-right: 1.5px solid var(--ink); }
.persona__t { margin: 18px 0 0; font-size: 34px; line-height: 1.08; font-weight: 660; letter-spacing: -0.026em; }
.persona__s { margin: 8px 0 0; font-size: 17px; line-height: 1.4; }
.persona__note { text-wrap: balance; margin: 8px 0 0; font-size: 13px; color: var(--p-ink); }
.sblock { margin-top: 18px; padding-top: 14px; border-top: 1.5px solid color-mix(in srgb, var(--p-ink) 40%, transparent); }
.sblock__t { margin: 0; font-size: 14px; font-weight: 650; }
.sblock__p { margin: 4px 0 0; font-size: 15px; line-height: 1.4; }
.sblock__p--sm { margin-top: 8px; font-size: 13px; color: var(--p-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.chip { padding: 3px 10px; border: 1.2px solid var(--ink); border-radius: 13px; background: var(--sheet); font-size: 13px; font-weight: 520; }
.evbar { display: flex; height: 14px; margin-top: 9px; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--sheet); }
.evbar__seg { min-width: 4px; border-left: 1.5px solid var(--ink); }
.evbar__seg:first-child { border-left: 0; }
.evbar__seg--Observed { background: var(--ink); }
.evbar__seg--Documented { background: #5d6373; }
.evbar__seg--Reported { background: #adb3c0; }
.evbar__seg--Assumed { background: repeating-linear-gradient(135deg, #fff 0 3px, #14161c 3px 4.2px); }
.evkey { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.evkey li { display: flex; align-items: center; gap: 6px; }
.evkey__sw { width: 11px; height: 11px; border: 1.2px solid var(--ink); border-radius: 2px; flex: none; }

.persona__main { min-width: 0; display: flex; flex-direction: column; }
.pjob { padding: 24px 28px 22px; }
.pjob__k { margin: 0; font-size: 14px; font-weight: 640; color: var(--ink-2); }
.pjob__t { display: block; margin: 6px 0 0 -8px; padding: 2px 8px; border: 0; border-radius: 10px; background: transparent; max-width: 34ch; text-align: left; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; cursor: pointer; transition: background-color 140ms var(--ease); }
.pjob__t:hover, .pjob__t[aria-expanded="true"] { background: #fff1b8; }

.ptriple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.pcolumn { padding: 18px 20px 18px; border-left: 1.5px solid var(--ink); }
.pcolumn:first-child { border-left: 0; padding-left: 28px; }
.pcolumn__t { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; line-height: 1.2; font-weight: 650; letter-spacing: -0.012em; }
.pcolumn__t .swatch { width: 14px; height: 14px; }
.pitems, .pfacts { margin: 10px 0 0 -8px; padding: 0; list-style: none; }
.pitem { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 16px; line-height: 1.35; font-weight: 520; cursor: pointer; transition: background-color 140ms var(--ease); }
.pitem:hover, .pitem[aria-expanded="true"] { background: #fff1b8; }
.pitem__t { padding-top: 1px; }
.pitem__gap { display: block; font-size: 13px; font-weight: 500; color: var(--pain-ink); }
.rk { flex: none; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 12px; font-size: 13px; font-weight: 660; line-height: 1; font-variant-numeric: tabular-nums; }
.rk--job { background: var(--job); color: var(--job-ink); }
.rk--pain { background: var(--pain); color: var(--pain-ink); }
.rk--gain { background: var(--gain); color: var(--gain-ink); }
.pitem.is-gap .rk { background: var(--sheet); outline: 1.5px dashed var(--pain-ink); outline-offset: -1.5px; }
.pitem.is-gap .rk--gain { outline-color: var(--gain-ink); }
.pmore, .textlink { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 560; color: var(--ink); text-decoration: underline; text-decoration-color: #9aa1af; text-underline-offset: 3px; }
.pmore:hover, .textlink:hover { text-decoration-color: var(--ink); }
.card__go { margin: 14px 0 0; }
.card__go .textlink { margin-top: 0; }

.pabout { padding: 18px 28px; border-top: 1.5px solid var(--ink); }
.pfacts { columns: 2; column-gap: 24px; }
.pfacts li { break-inside: avoid; }
.pitem--fact { align-items: baseline; font-size: 15px; font-weight: 500; }
.pitem--fact .ev { width: 8px; height: 8px; translate: 0 -1px; }

.pduo { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); }
.pbox { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px 22px; border-left: 1.5px solid var(--ink); }
.pbox:first-child { border-left: 0; padding-left: 28px; }
.pbox .meter { width: 100%; }
.pbox__p { text-wrap: pretty; margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.pbox__p strong { color: var(--ink); font-weight: 640; }
.pbox .btn { margin-top: auto; }
.sparklink { display: block; max-width: 100%; border-radius: 8px; }
.spark { display: block; max-width: 100%; height: auto; }
.sp-zero { stroke: #8f96a6; stroke-width: 1.2; stroke-dasharray: 2 4; }
.sp-line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.sp-dot { stroke: var(--sheet); stroke-width: 1.6; fill: var(--ink); }
.sp-dot--neg { fill: var(--pain-line); } .sp-dot--pos { fill: var(--gain-line); }
.sp-dot--none { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 1.6; }
.sparklink:hover .sp-line { stroke-width: 3.2; }

.pinsight { margin-top: auto; padding: 20px 28px 22px; background: var(--ink); color: #fff; }
.pinsight__k { margin: 0; font-size: 14px; font-weight: 640; color: #c9cedb; }
.pinsight__t { margin: 6px 0 0; max-width: 44ch; font-size: 24px; line-height: 1.25; font-weight: 560; letter-spacing: -0.016em; text-wrap: balance; }
.pinsight__more { margin-top: 12px; font-size: 15px; }
.pinsight__more summary { width: fit-content; cursor: pointer; font-weight: 560; color: #fff; text-decoration: underline; text-decoration-color: #7d8496; text-underline-offset: 3px; }
.pinsight__more summary:focus-visible { outline-color: #fff; }
.pinsight__more p { margin: 8px 0 0; max-width: 72ch; line-height: 1.5; color: #e7e9ef; }
.pinsight__more .pinsight__src { font-size: 13px; color: #c9cedb; overflow-wrap: anywhere; }
.plearn { margin-top: 20px; }

@media (max-width: 1120px) {
  .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcol:nth-child(odd) { border-left: 0; }
  .pcol:nth-child(n + 3) { border-top: 1.5px solid var(--ink); }
  .persona { grid-template-columns: 270px minmax(0, 1fr); }
  .pjob__t { font-size: 26px; }
}
@media (max-width: 860px) {
  .persona { grid-template-columns: 1fr; }
  .persona__side { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .ptriple, .pduo { grid-template-columns: 1fr; }
  .pcolumn, .pbox { border-left: 0; border-top: 1.5px solid var(--ink); padding-left: 24px; }
  .pcolumn:first-child, .pbox:first-child { border-top: 0; padding-left: 24px; }
  .pjob, .pabout, .pinsight { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 700px) {
  .sheet { padding-top: 18px; }
  .lead__t { font-size: 30px; }
  .lineup { grid-template-columns: 1fr; }
  .pcol, .pcol:nth-child(odd) { border-left: 0; border-top: 1.5px solid var(--ink); }
  .pcol:first-child { border-top: 0; }
  .pcol__s, .pfact--job { min-height: 0; }
  .persona__t { font-size: 30px; }
  .pjob__t { font-size: 24px; }
  .pinsight__t { font-size: 21px; }
  .pfacts { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .pitem, .pjob__t, .pcol__top .portrait { transition-duration: 1ms; }
  .pcol__top:hover .portrait { rotate: 0deg; scale: 1; }
}
