/* ---- your own case (js/gaps.js): what the record cannot answer, the interview, and the frame of an affidavit ---- */

/* shared by the three figures: a small label, the further marks, a rise for what arrives, and the row of thirty-seven */
.gp-k { margin: 0; color: var(--azure-11); font: 700 11.5px/1.35 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.gp-k span { margin-left: 5px; color: var(--text-3); font-weight: 600; letter-spacing: .02em; text-transform: none; }
.gp-k.gp-amber { color: var(--open-fg); }
/* on a phone the words beside a label are read, so they take 14 px and a line of their own */
@media (max-width: 640px) { .gp-k span { display: block; margin: 3px 0 0; font-size: 14px; } }
.sq.gp-out { border: 2px solid var(--slate-9); background: #ffffff; }                      /* outside your side */
.sq.gp-adv { border: 2px solid var(--brand-navy); background: #ffffff; }                   /* the other side */
.sq.gp-told, .sq.gp-todo { border: 2px solid var(--slate-7); background: #ffffff; }        /* was told; not yet done */
.sq.gp-named { border: 2px solid var(--open); background: #ffffff linear-gradient(var(--open), var(--open)) center / 2px 2px no-repeat; }   /* open, with a name on it */
@keyframes gp-rise { from { opacity: 0; transform: translateY(10px); } }
.gp-37 { display: flex; flex-wrap: wrap; gap: 4px; }
.gp-37 i { flex: none; width: 10px; height: 10px; border: 2px solid var(--open); background-color: #ffffff; transition: background-color .3s, border-color .3s, transform .35s var(--spring); }
.gp-37 i.ok { border-color: var(--ok); background-color: var(--ok); }
.gp-37 i.named { background: #ffffff linear-gradient(var(--open), var(--open)) center / 2px 2px no-repeat; }
.gp-37 i.lit, .gp-37 i.peek { transform: scale(1.45); }
.gp-37 i.lit:not(.ok):not(.named) { background-color: var(--open); }
.gp-tally .gp-37 i:nth-child(21), .gp-tally .gp-37 i:nth-child(30) { margin-right: 8px; }
/* beside the questions the thirty-seven stand as one block, in two even rows where the column is narrow */
.gp-o-q .gp-37 { display: grid; grid-template-columns: repeat(19, 10px); }

/* ---- what the record cannot answer ---- */
.gp-o { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.42fr); align-items: start; }
.gp-o-q { min-width: 0; padding-right: clamp(18px, 2.6vw, 40px); }
.gp-o-w { min-width: 0; padding-left: clamp(18px, 2.6vw, 40px); border-left: 1px solid var(--border-row); }
.gp-o-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.gp-o-n { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1; white-space: nowrap; }
.gp-o-n b { margin-right: 8px; color: var(--brand-navy); font: 800 36px/1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.gp-o-q .gp-37 { margin-top: 14px; }
.gp-37-key { display: none; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 9px 0 0; }
.gp-37.after + .gp-37-key { display: flex; }
.gp-37-when { color: var(--text-3); font: 500 12.5px/1.4 var(--font-mono); }
.gp-qs { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border-row); }
.gp-q { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 3px 11px; width: 100%; min-height: 58px; padding: 12px 30px 12px 11px; border: 0; border-bottom: 1px solid var(--border-row);
  border-left: 3px solid transparent; background: none; text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s; }
.gp-q .sq { margin-top: 6px; }
.gp-q-t { color: var(--brand-navy); font: 600 16px/1.3 var(--font-display); letter-spacing: -0.01em; }
.gp-q-y { grid-column: 2; color: var(--open-fg); font: 500 12.5px/1.4 var(--font-mono); }
.gp-q.is-ok .gp-q-y { color: var(--ok-fg); }
.gp-q::after { content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--brand-azure); border-bottom: 2px solid var(--brand-azure); transform: rotate(-45deg); opacity: 0; transition: opacity .15s; }
.gp-q:hover { background-color: var(--sky-2); }
.gp-q:hover::after { opacity: .45; }
.gp-q[aria-pressed="true"] { border-left-color: var(--brand-azure); background-color: var(--sky-3); }
.gp-q[aria-pressed="true"]::after { opacity: 1; }
.gp-q:focus-visible { outline-offset: -2px; }
.gp-o-more { margin: 10px 0 0 14px; }
/* the thirty-seven, by what is wrong with them */
.gp-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.gp-figs li { padding-left: 10px; border-left: 2px solid var(--open-bg); }
.gp-figs b { display: block; color: var(--open-fg); font: 800 clamp(24px, 2.1vw, 30px)/1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.gp-figs li > span { display: block; margin-top: 5px; color: var(--text-2); font-size: 14.5px; line-height: 1.35; }

.gp-o-h { min-height: 2.5em; margin: 6px 0 0; color: var(--brand-navy); font: 700 clamp(19px, 1.65vw, 23px)/1.25 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.gp-o-main { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); grid-template-areas: "ring list" "how list"; grid-template-rows: auto 1fr; gap: 14px clamp(16px, 2vw, 28px); align-items: start; margin-top: 10px; }
.gp-ring { grid-area: ring; min-width: 0; }
.gp-list { grid-area: list; min-width: 0; }
.gp-how { grid-area: how; min-width: 0; padding-top: 14px; border-top: 1px solid var(--border-row); }

/* the ring: everyone in the matter, and the lines from the question to those who may know */
.gp-ring-svg { display: block; width: 100%; height: auto; overflow: visible; }
.gp-ring-n { max-width: 24em; margin: 2px auto 0; color: var(--text-3); font-size: 14px; line-height: 1.4; text-align: center; text-wrap: balance; }
.gp-ring-c { fill: none; stroke: var(--slate-4); stroke-width: 1; }
.gp-ring-l { fill: var(--brand-navy); font: 700 13px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.gp-ring-l .s { fill: var(--text-3); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.gp-n-hit { fill: transparent; }
.gp-n-d { fill: var(--grey); transition: opacity .2s; }
/* a person’s square: it leaves the ring for the moment as its line reaches out, and goes back when the question changes */
.gp-n-b { opacity: 0; transition: opacity .2s, transform .56s var(--ease); }
.gp-n-b rect { fill: #ffffff; stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: transform .4s var(--spring); }
.gp-n-b text { fill: #ffffff; font: 700 10.5px/1 var(--font-display); text-anchor: middle; }
.gp-n.on .gp-n-d { opacity: 0; }
.gp-n.on.pulled .gp-n-d { opacity: 1; }                                  /* their place in the matter stays marked on the ring */
.gp-n.on .gp-n-b { opacity: 1; }
.gp-n.on .gp-n-b rect { transform: scale(.72); }
.gp-n.on.ranked .gp-n-b rect { transform: none; }
.gp-n.is-there .gp-n-b rect { fill: var(--ok); stroke: var(--ok); }
.gp-n.is-told .gp-n-b rect { stroke: var(--open); }
.gp-n.is-told .gp-n-b text { fill: var(--open-fg); }
.gp-n.is-third .gp-n-b rect { stroke: var(--slate-9); }
.gp-n.is-adv .gp-n-b rect { stroke: var(--brand-navy); }
.gp-n.on.hot .gp-n-b rect { transform: scale(1.25); }
.gp-n.on:not(.ranked).hot .gp-n-b rect { transform: scale(.95); }
.gp-sp { stroke-linecap: square; transition: opacity .2s; }
.gp-sp.is-there { stroke: var(--ok); stroke-width: 2.6; }
.gp-sp.is-told { stroke: var(--open); stroke-width: 1.8; }
.gp-sp.is-third { stroke: var(--slate-9); stroke-width: 1.2; stroke-dasharray: 3 3; }
.gp-sp.is-adv { stroke: var(--brand-navy); stroke-width: 1.4; stroke-dasharray: 6 3; }
.gp-ring.has-hot .gp-sp { opacity: .2; }
.gp-ring.has-hot .gp-sp.hot { opacity: 1; }
.gp-hub rect { fill: #ffffff; stroke: var(--open); stroke-width: 2.5; transition: fill .3s, stroke .3s; }
.gp-hub.closed rect { fill: var(--ok); stroke: var(--ok); }
.gp-hub-t { fill: var(--open-fg); font: 500 13.5px/1 var(--font-mono); text-anchor: middle; paint-order: stroke; stroke: #ffffff; stroke-width: 5px; stroke-linejoin: round; }
.gp-hub.closed .gp-hub-t { fill: var(--ok-fg); }

/* the people, ranked: a row keeps its person and moves to its new place when the question changes */
.gp-list-k { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 7px; color: var(--text-3); font: 700 11px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.gp-who { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-row); }
.gp-p { display: grid; grid-template-columns: 22px minmax(0, 1fr) 96px; gap: 0 12px; padding: 12px 8px 13px; border-bottom: 1px solid var(--border-row); background-color: #ffffff; transition: transform .5s var(--ease), background-color .2s; }
.gp-p.gp-new { animation: gp-rise .45s var(--ease) calc(var(--i, 0) * 90ms + 140ms) both; }
.gp-p.hot { background-color: var(--sky-2); }
.gp-p-n { width: 22px; height: 22px; margin-top: 1px; color: var(--slate-9); font: 700 12px/22px var(--font-display); text-align: center; }
.gp-p.ranked.is-there .gp-p-n { background: var(--ok); color: #ffffff; }
.gp-p.ranked.is-told .gp-p-n { border: 2px solid var(--open); background: #ffffff; color: var(--open-fg); line-height: 18px; }
.gp-p-h { margin: 0; line-height: 1.3; }
.gp-p-name { color: var(--brand-navy); font: 700 16.5px/1.3 var(--font-display); letter-spacing: -0.01em; }
.gp-p-role { display: block; color: var(--text-3); font-size: 14.5px; line-height: 1.35; }
.gp-p-why { margin: 3px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.4; }
.gp-p-do { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 9px 0 0; }
.gp-p-do:empty { display: none; }
.gp-p-s { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 4px; }
.gp-meter { display: block; width: 100%; height: 6px; background: var(--slate-4); }
.gp-meter i { display: block; width: 0; height: 100%; background: var(--ok); transition: width .6s var(--ease), background-color .3s; }
.gp-p.is-told .gp-meter i { background: var(--open); }
.gp-score-w { color: var(--text-3); font: 500 12px/1 var(--font-mono); }
/* how the map knows: three findings, each a figure and what it counts */
.gp-how dl { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 9px 0 0; }
.gp-how dl > div { display: grid; grid-template-columns: 5.3em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.gp-how dt { color: var(--brand-navy); font: 800 21px/1.1 var(--font-display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-how dd { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.35; }
.gp-how dl.gp-swap > div { animation: gp-rise .4s var(--ease) both; }
.gp-how dl.gp-swap > div:nth-child(2) { animation-delay: 80ms; }
.gp-how dl.gp-swap > div:nth-child(3) { animation-delay: 160ms; }

@media (min-width: 980px) and (max-width: 1279px) {
  .gp-o-main { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-areas: "ring how" "list list"; }
  .gp-how { align-self: center; padding-top: 0; border-top: 0; }
  .gp-how dl { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 979px) {
  .gp-o { grid-template-columns: 1fr; }
  .gp-o-q { padding-right: 0; }
  .gp-o-w { margin-top: 26px; padding: 22px 0 0; border-top: 1px solid var(--border-row); border-left: 0; }
  .gp-o-h { min-height: 0; }
  .gp-o-main { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .gp-o-q .gp-37 { grid-template-columns: repeat(37, 10px); }
}
@media (max-width: 759px) {
  .gp-o-main { grid-template-columns: 1fr; grid-template-areas: "ring" "list" "how"; }
  .gp-ring { width: 100%; max-width: 388px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .gp-o-q .gp-37 { grid-template-columns: repeat(19, 10px); }
  .gp-how dl { grid-template-columns: 1fr; gap: 10px; }
  .gp-how dl > div { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .gp-how dd { margin: 0; }
  .gp-p { grid-template-columns: 22px minmax(0, 1fr) 86px; gap: 0 10px; padding-left: 2px; padding-right: 2px; }
  .gp-figs { gap: 10px; }
  .gp-figs li { padding-left: 8px; }
  .gp-figs li > span { font-size: 14px; }
  .gp-q-y, .gp-37-when, .gp-o-more, .gp-score-w { font-size: 14px; }
  /* how the list is ranked, what each person is to the question, and the references: 14 px, wrapping where a column is narrow */
  .gp-list-k, .gp-o .tagk, .gp-o .cite { font-size: 14px; }
  .gp-list-k { font-weight: 600; letter-spacing: .01em; text-transform: none; }
  .gp-list-k span:last-child { text-align: right; }
  .gp-p-do .tagk { white-space: normal; }
}

/* ---- the interview ---- */
.gp-iv-bar { gap: 10px 22px; }
.gp-iv .fig-title { display: flex; align-items: baseline; gap: .4em; font-size: 16px; }
.gp-iv .fig-title .wm { font-size: 19px; }
.gp-prins { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.gp-prin { display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); font: 600 13px/1.25 var(--font-display); white-space: nowrap; transition: color .3s; }
.gp-prin .sq { border: 2px solid var(--azure-6); background-color: #ffffff; transition: background-color .3s, border-color .3s, transform .4s var(--spring); }
.gp-prin.on { color: var(--brand-navy); }
.gp-prin.on .sq { border-color: var(--brand-azure); background-color: var(--brand-azure); transform: scale(1.15); }
.gp-ctl { display: flex; align-items: center; gap: 8px; }
.gp-prog { display: inline-flex; gap: 3px; margin-right: 6px; }
.gp-prog i { width: 7px; height: 7px; background: var(--slate-5); transition: background-color .3s; }
.gp-prog i.on { background: var(--brand-azure); }
.gp-iv .btn[disabled] { opacity: .4; box-shadow: none; cursor: default; pointer-events: none; }
.gp-iv-in { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.gp-tr { min-width: 0; }
.gp-md { position: sticky; top: 96px; min-width: 0; }

/* a step of the exchange: it takes its room as it arrives, so nothing jumps */
.gp-step { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .5s var(--ease), opacity .45s var(--ease), visibility 0s linear .5s; }
.gp-step.on { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s, .06s, 0s; }
.gp-step-in { min-width: 0; min-height: 0; overflow: hidden; }
.gp-step.open .gp-step-in { overflow: visible; }
.gp-step-in > :first-child { margin-top: 16px; }
.gp-step[data-s="choice"] .gp-step-in > :first-child, .gp-step[data-s="not"] .gp-step-in > :first-child { margin-top: 0; }

/* the one choice: two ways to ask the first question */
.gp-choice-s { margin: 5px 0 12px; color: var(--text-2); font-size: 15.5px; line-height: 1.4; }
.gp-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gp-way { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 112px; padding: 13px 16px 15px; border: 1px solid var(--slate-6); border-radius: var(--r-3); background-color: #ffffff; box-shadow: var(--shadow-1);
  color: var(--brand-navy); font: 600 16.5px/1.38 var(--font-display); letter-spacing: -0.01em; text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .3s, opacity .3s, transform .18s var(--ease), box-shadow .18s var(--ease); }
.gp-way-k { color: var(--text-3); font: 700 11px/1.3 var(--font-display); letter-spacing: .09em; text-transform: uppercase; transition: color .3s; }
.gp-way-t { display: block; }
/* a strike that runs across each line of the question, as it is set aside */
.gp-way-t > span { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(var(--slate-10), var(--slate-10)) no-repeat 0 56% / 0% 1.5px; transition: background-size .6s var(--ease); }
.gp-way[disabled] { cursor: default; }
.gp-way:not([disabled]):hover { border-color: var(--brand-azure); background-color: var(--sky-2); }
.gp-way:not([disabled]):hover .gp-way-k { color: var(--azure-11); }
@media (hover: hover) { .gp-way:not([disabled]):hover { transform: translateY(-2px); box-shadow: var(--shadow-2); } }
.gp-choice.is-lead .gp-way[data-way="lead"] { background-color: var(--slate-3); color: var(--text-3); box-shadow: none; }
.gp-choice.is-lead .gp-way[data-way="lead"] .gp-way-t > span { background-size: 100% 1.5px; }
.gp-choice.is-lead .gp-way[data-way="open"], .gp-choice.is-open .gp-way[data-way="open"] { border-color: var(--brand-azure); background-color: var(--sky-3); }
.gp-choice.is-lead .gp-way[data-way="open"] .gp-way-k, .gp-choice.is-open .gp-way[data-way="open"] .gp-way-k { color: var(--azure-11); }
.gp-choice.is-open .gp-way[data-way="lead"] { opacity: .4; }
.gp-count { display: block; height: 2px; margin-top: 12px; background: var(--slate-4); }
.gp-count i { display: block; height: 100%; background: var(--brand-azure); transform-origin: 0 50%; }
.gp-choice.chosen .gp-count { visibility: hidden; }
.gp-no { max-height: 0; margin: 0; overflow: hidden; opacity: 0; color: var(--brand-navy); font: 600 16px/1.35 var(--font-display); letter-spacing: -0.01em; transition: max-height .4s var(--ease), margin .4s var(--ease), opacity .4s var(--ease); }
.gp-no .wm { font-size: 1.06em; }
.gp-choice.is-lead .gp-no { max-height: 4em; margin: 2px 0; opacity: 1; }
.gp-not { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; margin: 0; padding: 0 0 13px; border-bottom: 1px dashed var(--slate-6); color: var(--text-3); font-size: 14.5px; line-height: 1.4; }
.gp-not-k { font: 700 11px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.gp-not s { text-decoration-color: var(--slate-9); }
.gp-not-w { color: var(--brand-navy); font-weight: 600; }

/* who speaks, and what is said: its questions in the display face, her answers in the serif of anything quoted */
.gp-turn { display: flex; flex-direction: column; align-items: flex-start; }
.gp-ans { align-items: flex-end; }
.gp-by { margin: 0 0 4px; color: var(--text-3); font: 700 12px/1.2 var(--font-display); letter-spacing: .02em; }
.gp-by .wm { font-size: 14.5px; }
.gp-bub { max-width: min(34em, 88%); margin: 0; padding: 11px 15px 12px; }
.gp-ask .gp-bub { border: 1px solid var(--azure-6); border-radius: var(--r-3) var(--r-3) var(--r-3) 0; background: var(--sky-2); color: var(--brand-navy); font: 500 16.5px/1.4 var(--font-display); letter-spacing: -0.005em; }
.gp-ans .gp-bub { display: grid; border: 1px solid var(--slate-6); border-radius: var(--r-3) var(--r-3) 0 var(--r-3); background: #ffffff; box-shadow: var(--shadow-1); color: var(--text); font: italic 400 17.5px/1.42 var(--font-serif); }
.gp-ans .gp-bub > span { grid-area: 1 / 1; }
.gp-ghost { color: transparent; }
.gp-bub.done .gp-ghost { color: inherit; }
.gp-bub.done .gp-typed { display: none; }
.gp-typed::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--brand-azure); vertical-align: -2px; }
.gp-put .gp-k, .gp-adds .gp-k { margin-bottom: 7px; }
.gp-iv .gp-doc { max-width: 31em; border-left: 3px solid var(--brand-azure); box-shadow: var(--shadow-1); }
.gp-iv .gp-doc p { font-size: 16.5px; }
.gp-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gp-files li { padding: 9px 12px 10px; border: 1.5px dashed var(--slate-7); border-radius: var(--r-2); background-color: #ffffff; opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .3s, background-color .3s; }
.gp-files li.on { opacity: 1; transform: none; }
.gp-files li.added { border-style: solid; border-color: var(--ok); background-color: color-mix(in srgb, var(--ok-bg) 50%, #ffffff); }
.gp-file-k { display: block; color: var(--text-3); font: 700 11px/1.3 var(--font-display); letter-spacing: .09em; text-transform: uppercase; transition: color .3s; }
.gp-files li.added .gp-file-k { color: var(--ok-fg); }
.gp-files b { display: block; margin-top: 2px; color: var(--brand-navy); font: 600 14.5px/1.3 var(--font-display); }
.gp-rec { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 0; color: var(--ok-fg); font: 500 12.5px/1.45 var(--font-mono); opacity: 0; transition: opacity .4s var(--ease); }
.gp-rec.on { opacity: 1; }

/* in the model: the fact she was asked about, what it now rests on, and the count of what her interview changed */
.gp-md > .gp-k { margin-bottom: 8px; }
.gp-fact { padding: 14px 16px 15px; border: 1px solid var(--open); border-left-width: 3px; border-radius: var(--r-3); background-color: #ffffff; box-shadow: var(--shadow-2); transition: border-color .4s, background-color .4s; }
.gp-fact.ok { border-color: var(--ok); background-color: color-mix(in srgb, var(--ok-bg) 36%, #ffffff); }
.gp-fact-h { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; }
.gp-fact .gp-fact-m { width: 14px; height: 14px; transition: transform .45s var(--spring); }
.gp-fact.ok .gp-fact-m { transform: scale(1.15); }
.gp-fact-st { margin-left: auto; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.gp-fact-t { margin: 0; color: var(--brand-navy); font: 700 17.5px/1.3 var(--font-display); letter-spacing: -0.015em; }
.gp-fact-s { margin: 7px 0 0; color: var(--open-fg); font: 500 12.5px/1.45 var(--font-mono); }
.gp-fact.ok .gp-fact-s { color: var(--ok-fg); }
.gp-sup { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.gp-md.has-sup .gp-sup { grid-template-rows: 1fr; }
.gp-sup ul { min-height: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.gp-sup li { display: flex; align-items: baseline; gap: 9px; padding-top: 7px; color: var(--text); font-size: 14.5px; line-height: 1.4; opacity: 0; transform: translateX(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.gp-sup li:first-child { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-row); }
.gp-sup li.on { opacity: 1; transform: none; }
.gp-tally { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .5s var(--ease), opacity .45s var(--ease), visibility 0s linear .5s; }
.gp-tally.on { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.gp-tally-in { min-height: 0; overflow: hidden; }
.gp-tally-in > .gp-k { margin: 20px 0 9px; }
/* after her interview the same thirty-seven, on one line where there is room: 21, then 9, then 7 */
.gp-tally .gp-37 { flex-wrap: nowrap; gap: 3px; padding: 2px; }
.gp-tally .gp-37 i { flex: 0 1 10px; min-width: 0; height: auto; aspect-ratio: 1; }
.gp-tally-r { margin: 10px 0 0; padding: 0; list-style: none; }
.gp-tally-r li { padding: 8px 0 9px; border-top: 1px solid var(--border-row); opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.gp-tally-r li.on { opacity: 1; transform: none; }
.gp-tally-r p { margin: 0; }
.gp-tally-n { display: flex; align-items: baseline; gap: 8px; color: var(--text-3); font: 700 12px/1.2 var(--font-display); letter-spacing: .09em; text-transform: uppercase; }
.gp-tally-n b { min-width: 1.15em; font: 800 24px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gp-tally-r li:nth-child(1) .gp-tally-n { color: var(--ok-fg); }
.gp-tally-r li:nth-child(2) .gp-tally-n { color: var(--open-fg); }
.gp-tally-x { margin-top: 3px !important; padding-left: 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.4; }
.gp-tally-x b { color: var(--brand-navy); font-weight: 600; }
.gp-rooms { margin-top: 20px; }
.gp-rooms ul { margin: 8px 0 0; padding: 0; border-top: 1px solid var(--border-row); list-style: none; }
.gp-rooms li { padding: 8px 8px 9px 10px; border-bottom: 1px solid var(--border-row); border-left: 3px solid transparent; transition: border-color .3s, background-color .3s; }
.gp-rooms li p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.35; }
.gp-rooms li b { margin-right: 3px; color: var(--brand-navy); font: 700 15px/1.3 var(--font-display); }
.gp-rooms li .gp-room-s { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; color: var(--text-2); font: 600 13px/1.35 var(--font-display); transition: color .3s; }
.gp-rooms li.now { border-left-color: var(--brand-azure); background-color: var(--sky-2); }
.gp-rooms li.now .gp-room-s { color: var(--azure-11); }
.gp-rooms li.done { border-left-color: var(--ok); }
.gp-rooms li.done .gp-room-s { color: var(--ok-fg); }
.gp-rooms li.asked { border-left-color: var(--open); }
.gp-rooms li.asked .gp-room-s { color: var(--open-fg); }
.gp-fly { position: absolute; left: 0; top: 0; z-index: 6; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--ok); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 22%, transparent); opacity: 0; pointer-events: none; }
.gp-iv .fig-status { display: flex; align-items: baseline; gap: 10px; min-height: 1.4em; }
.gp-iv .fig-status::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--brand-azure); }
.gp-iv .fig-status:empty::before { visibility: hidden; }

@media (max-width: 979px) {
  .gp-iv-in { grid-template-columns: 1fr; }
  .gp-md { position: static; }
}
@media (max-width: 640px) {
  .gp-ctl { width: 100%; }
  .gp-ctl .btn { flex: 1 1 0; }
  .gp-prog { margin-right: auto; }
  .gp-ways { grid-template-columns: 1fr; }
  .gp-way { min-height: 0; font-size: 16px; }
  .gp-bub { max-width: 93%; }
  .gp-ask .gp-bub { font-size: 16px; }
  .gp-ans .gp-bub { font-size: 17px; }
  .gp-files { grid-template-columns: 1fr; gap: 6px; }
  .gp-prin, .gp-rec, .gp-fact-s, .gp-rooms li .gp-room-s, .gp-by { font-size: 14px; }
  /* the two ways to ask, what became of the leading one, the state of each file and of the fact, the counts, and the references */
  .gp-way-k, .gp-not-k, .gp-file-k, .gp-fact-st, .gp-tally-n, .gp-iv .cite, .gp-iv .gp-doc .pg-ref, .gp-iv .gp-doc .pg-meta { font-size: 14px; }
  .gp-tally .gp-37 { flex-wrap: wrap; gap: 4px; }
  .gp-tally .gp-37 i { flex: none; width: 10px; height: 10px; }
}

/* ---- the frame of an affidavit ---- */
.gp-f { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.gp-aff { min-width: 0; border: 1px solid var(--slate-6); border-radius: var(--r-2); background: #ffffff; box-shadow: var(--shadow-2); }
.gp-aff-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--slate-6); }
.gp-aff-k { margin: 0; color: var(--brand-navy); font: 800 17px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.gp-aff-k span { margin-left: 8px; color: var(--azure-11); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.gp-aff-w { grid-column: 1 / -1; margin: 0; color: var(--text-3); font-size: 15px; line-height: 1.35; }
.gp-aff-w b { margin-right: 4px; color: var(--brand-navy); font: 700 15.5px/1.35 var(--font-display); }
.gp-secs { margin: 0; padding: 0; list-style: none; }
.gp-sec { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 0 13px; padding: 12px 20px 13px; border-bottom: 1px solid var(--border-row); transition: background-color .25s, box-shadow .25s; }
.gp-sec:last-child { border-bottom: 0; }
.gp-aff.play .gp-sec { animation: gp-rise .45s var(--ease) calc(var(--i, 0) * 80ms) both; }
.gp-sec.not { background-color: color-mix(in srgb, var(--slate-3) 60%, #ffffff); }
.gp-sec.hot { background-color: var(--sky-3); box-shadow: inset 3px 0 0 var(--brand-azure); }
.gp-sec-l { color: var(--brand-navy); font: 800 16px/1.35 var(--font-display); }
.gp-sec.not .gp-sec-l { color: var(--slate-7); }
.gp-sec-t { margin: 0; color: var(--brand-navy); font: 600 16.5px/1.3 var(--font-display); letter-spacing: -0.01em; }
.gp-sec.not .gp-sec-t { color: var(--text-3); }
.gp-sec-t s { background: linear-gradient(var(--slate-9), var(--slate-9)) no-repeat 0 56% / 0% 1.5px; text-decoration: none; transition: background-size .6s var(--ease) .4s; }
.gp-aff.in .gp-sec-t s { background-size: 100% 1.5px; }
.gp-aff:not(.play) .gp-sec-t s { transition: none; }                 /* so the strike can run again when the frame arrives */
.gp-sec-s { margin: 3px 0 0; color: var(--text-3); font: 500 12.5px/1.5 var(--font-mono); }
.gp-sec.not .gp-sec-s { color: var(--open-fg); }
/* the name of who should depose instead: a full-height target that leaves the line as it was */
.gp-sec .gp-to { display: inline-block; padding: 10px 3px; margin: -10px -3px; }
.gp-ln { display: block; width: 86%; height: 5px; margin-top: 8px; background: var(--slate-4); }
.gp-ln + .gp-ln { width: 58%; margin-top: 6px; }
.gp-sec-k { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 9px 0 0; }
.gp-aff-n { padding: 12px 20px 14px; border-top: 1px solid var(--border-row); }

.gp-dep { min-width: 0; }
.gp-dep-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 6px; }
.gp-dep-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
/* where the frame sits above the table (one column), the witnesses are also chosen here, just above it; on a phone they are the key to the initials */
.gp-keys { display: none; }
.gp-keys ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.gp-key { min-height: 40px; }
.gp-key b { display: none; font: 500 12px/1 var(--font-mono); }
.gp-mx { width: 100%; border-collapse: collapse; table-layout: fixed; }
.gp-mx th, .gp-mx td { padding: 0; border-bottom: 1px solid var(--border-row); font-weight: 400; transition: background-color .25s; }
.gp-mx thead th { border-bottom-color: var(--slate-6); vertical-align: bottom; }
.gp-mx thead th[data-w] { width: 66px; }
.gp-mx-0 { text-align: left; }
.gp-mx-0 span { display: block; padding: 0 10px 9px; color: var(--text-3); font: 700 11px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.gp-wit { display: block; width: 100%; min-height: 50px; padding: 8px 2px; border: 0; border-radius: var(--r-2) var(--r-2) 0 0; background: none; color: var(--brand-navy); font: 600 12.5px/1.2 var(--font-display); text-align: center; cursor: pointer; transition: background-color .15s, color .15s; }
.gp-wit:hover { background-color: var(--azure-4); color: var(--azure-12); }
.gp-wit[aria-pressed="true"] { background-color: var(--brand-navy); color: #ffffff; }
.gp-wit:focus-visible, .gp-mat:focus-visible { outline-offset: -2px; }
.gp-wit-i { display: none; }
.gp-mat { position: relative; display: block; width: 100%; min-height: 44px; padding: 9px 10px; border: 0; border-left: 3px solid transparent; background: none; color: var(--text); font: 400 15.5px/1.3 var(--font-ui); text-align: left; cursor: pointer; transition: color .15s, border-color .15s; }
.gp-mat:hover { color: var(--azure-11); }
.gp-mat[aria-pressed="true"] { border-left-color: var(--brand-azure); color: var(--brand-navy); font-weight: 600; }
.gp-mx td { text-align: center; }
.gp-mx td.own, .gp-mx td.told { cursor: pointer; }
.gp-mx td .sq { width: 13px; height: 13px; vertical-align: middle; transition: transform .3s var(--spring), background-color .2s, border-color .2s; }
.gp-mx .col { background-color: var(--sky-3); }
.gp-mx td.col.own .sq { background-color: var(--brand-navy); transform: scale(1.12); }
.gp-mx td.col.told .sq { border-color: var(--slate-9); }
.gp-mx tr.row th, .gp-mx tr.row td { background-color: var(--sky-2); }
.gp-mx tr.row td.col { background-color: var(--azure-4); }
.gp-mx tr.row td.own .sq { transform: scale(1.3); }
.gp-mx.has-row tbody tr:not(.row) td .sq { opacity: .35; }
/* the chosen column read down is the frame: each of its marks carries the letter of the section it became */
.gp-mx td .sq::after { content: attr(data-l); }
.gp-mx td.col .sq[data-l] { width: 20px; height: 20px; color: #ffffff; font: 700 11.5px/20px var(--font-display); text-align: center; transform: none; }
.gp-mx td.col.told .sq[data-l] { color: var(--slate-10); line-height: 16px; }
.gp-mx tr.row td.col .sq[data-l] { transform: scale(1.12); }
/* a section pointed at in the frame lights its matter here, and the other way about */
.gp-mx tr.peek:not(.row) th, .gp-mx tr.peek:not(.row) td { background-color: var(--sky-2); }
.gp-mx tr.peek:not(.row) td.col { background-color: var(--azure-3); }
.gp-sec.peek:not(.hot) { background-color: var(--sky-2); }

.gp-fr .fig-status b { margin-right: 6px; }
/* settle, swear, file: read downwards under the table where it has a column of its own, across where it has the width */
.gp-then { margin-top: 26px; }
.gp-then-l { margin: 0 0 10px; color: var(--text-2); font-size: 15px; line-height: 1.4; }
.gp-path { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.gp-path li { position: relative; display: grid; grid-template-columns: 10px auto minmax(0, 1fr); align-items: baseline; gap: 2px 10px; padding: 11px 40px 12px 14px; border: 1px solid var(--slate-6); border-top-width: 0; background-color: #ffffff; }
.gp-path li:first-child { border-top-width: 1px; border-radius: var(--r-2) var(--r-2) 0 0; }
.gp-path li:last-child { border-radius: 0 0 var(--r-2) var(--r-2); }
.gp-path li.done { border-color: var(--ok); background-color: color-mix(in srgb, var(--ok-bg) 45%, #ffffff); }
.gp-path b { color: var(--brand-navy); font: 700 15px/1.3 var(--font-display); letter-spacing: -0.01em; }
.gp-path span { color: var(--text-3); font-size: 14px; line-height: 1.35; }
/* read downwards, a thin line runs from each step’s square to the next */
.gp-path li:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 28px; z-index: 1; width: 2px; height: calc(100% - 14px); background: var(--slate-6); }
.gp-path li.done::before { background: var(--ok); }

@media (max-width: 1179px) {
  .gp-f { grid-template-columns: 1fr; gap: 18px 0; }
  .gp-keys { display: block; }
  .gp-dep { margin-top: 10px; }
  .gp-mx thead th[data-w] { width: 84px; }
  .gp-path li { grid-template-columns: 10px minmax(0, 1fr); gap: 1px 10px; }
  .gp-path li .sq { grid-row: 1 / 3; align-self: start; margin-top: 6px; }
  .gp-path span { grid-column: 2; }
}
@media (min-width: 760px) and (max-width: 1179px) {
  .gp-path { flex-direction: row; align-items: stretch; }
  .gp-path li { flex: 1 1 0; align-content: center; padding: 10px 26px 11px 14px; border-top-width: 1px; border-left-width: 0; }
  .gp-path li:first-child { border-left-width: 1px; border-radius: var(--r-2) 0 0 var(--r-2); }
  .gp-path li:last-child { border-radius: 0 var(--r-2) var(--r-2) 0; }
  .gp-path li:not(:last-child)::before { content: none; }
  .gp-path li:not(:last-child)::after { content: ''; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--slate-7); border-bottom: 2px solid var(--slate-7); transform: rotate(-45deg); }
}
@media (max-width: 640px) {
  .gp-key b { display: inline; }
  .gp-mx thead th[data-w] { width: 40px; }
  .gp-wit { min-height: 44px; font: 500 14px/1 var(--font-mono); }
  .gp-wit-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .gp-wit-i { display: inline; }
  .gp-mat { padding: 9px 6px 9px 4px; font-size: 14.5px; }
  .gp-mx-0 span { padding-left: 7px; }
  .gp-aff-h, .gp-sec, .gp-aff-n { padding-left: 14px; padding-right: 14px; }
  .gp-sec-s, .gp-aff-n, .gp-path span { font-size: 14px; }
  /* the key to the initials, where each section comes from, whose knowledge it is, and the annexures */
  .gp-key, .gp-key b, .gp-f .tagk, .gp-f .tag, .gp-f .cite { font-size: 14px; }
  .gp-aff-h { grid-template-columns: 1fr; }
  .gp-aff-h .tag { justify-self: start; grid-row: 3; max-width: 100%; margin-top: 4px; white-space: normal; }
}
