/* Sentinel v2 - insight-entry.css: the ways into Insight (v2/insight-entry.js) - the bar over Files while Insight asks what to look
   at, the document's cover on its Document page, and the small panel a cover field is corrected in. The tokens only (every theme,
   light and dark); ink for every state, the brand for the one primary button; no ring round a button - its fill changes. */

/* ---------------------------------------------------------------- Files: Insight asks what to look at (#/files?pick=insight) */
/* its bar takes the left of the switch's own row, held at the top of the view while the folders run on */
.dx .pg-files3 .fvw.is-pick {
  position: sticky; top: 0; z-index: 6; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px;
  margin: -8px 0 4px; padding: 8px 0 12px; background: var(--sh-page, var(--surface-page));
}
.dx .ipk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; flex: 1 1 auto; min-width: 0; }
.dx .ipk-t { font-size: var(--fs-h3, 16px); line-height: var(--lh-h3, 22px); font-weight: var(--fw-semibold, 600); letter-spacing: -.005em; color: var(--ink-1); }
.dx .ipk-n { display: inline-flex; align-items: baseline; gap: 14px; font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx .ipk-n::before { content: "·"; color: var(--ink-3); }
.dx .ipk-n.is-none { color: var(--ink-3); }
.dx .ipk-acts { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
@media (max-width: 640px) {
  .dx .pg-files3 .fvw.is-pick { gap: 10px; }
  .dx .ipk { flex-basis: 100%; }
  .dx .ipk-acts { flex-basis: 100%; margin-left: 0; }
  .dx .ipk-acts .btn { flex: 1 1 0; height: 40px; }
}

/* ---------------------------------------------------------------- the Document page: the document's cover */
/* the second line of the facts strip under the title (parsed-view.js .parsed-meta): the same quiet type, the facts a reviewer sizes a
   document by - type, signed, made, ends, law, the money a year; a field not sure of says "?" and the three the reader may correct
   are buttons that show it only under the pointer */
.app .parsed-doc .parsed-meta > .pcv {
  flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 0; margin-top: 5px;
}
.app .parsed-doc .parsed-meta > .pcv[hidden], .app .parsed-doc .pcv-alone[hidden] { display: none; }
/* a field is one line of words (its label, its value, its "?"), the spaces between them kept; a long one ends in an ellipsis */
.app .parsed-doc .pcv-f {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: baseline;
  color: var(--v2d-ink-2);
}
.app .parsed-doc .pcv-k, .app .parsed-doc .pcv-per { color: var(--v2d-ink-3); }
.app .parsed-doc .pcv-f[data-pcv-k="law"] { max-width: 36ch; }
.app .parsed-doc .pcv-f[data-pcv-k="parties"] { max-width: 56ch; }
.app .parsed-doc .pcv-dot { margin: 0 10px; color: var(--v2d-ink-3); opacity: .7; }
.app .parsed-doc .pcv-q { margin-left: 1px; font-style: normal; font-weight: 600; color: var(--v2d-ink-3); }
.app .parsed-doc button.pcv-f {
  margin: -2px -6px; padding: 2px 6px; border: 0; border-radius: var(--radius-sm, 6px); background: none;
  font: inherit; line-height: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.app .parsed-doc button.pcv-f:hover, .app .parsed-doc button.pcv-f:focus-visible, .app .parsed-doc button.pcv-f[aria-expanded="true"] {
  outline: none; background: var(--surface-hover); color: var(--v2d-ink-1);
}
.app .parsed-doc .pcv-reading { color: var(--v2d-ink-3); font-style: italic; }
.app .parsed-doc .pcv.is-reading { animation: pcvBreathe 2.4s ease-in-out infinite; }
@keyframes pcvBreathe { 50% { opacity: .55; } }
/* a document whose strip has nothing else: the cover alone between the strip's hairlines */
.app .parsed-doc .pcv-alone > .pcv { margin-top: 0; }

/* ---------------------------------------------------------------- correcting a cover field: a small panel under it */
.pcv-pop {
  position: fixed; z-index: var(--z-modal, 1000); min-width: 220px; max-width: min(320px, calc(100vw - 16px)); padding: 6px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg, 12px); background: var(--surface-raised); box-shadow: var(--e3);
  font-family: var(--font-ui); font-size: var(--fs-small); line-height: var(--lh-small, 1.4); color: var(--ink-1);
  transform-origin: top center; animation: pcvIn .2s cubic-bezier(.22, 1, .36, 1) both;
}
.pcv-pop.is-up { transform-origin: bottom center; }
.pcv-pop.is-out { animation: pcvOut .14s ease both; pointer-events: none; }
.pcv-pop .pcv-list { display: grid; }
.pcv-pop .pcv-types { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pcv-pop .pcv-opt {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm, 6px);
  background: none; color: var(--ink-1); font: inherit; text-align: left; cursor: pointer; transition: background-color .12s ease;
}
.pcv-pop .pcv-opt:hover, .pcv-pop .pcv-opt:focus-visible { outline: none; background: var(--surface-hover); }
.pcv-pop .pcv-opt[aria-checked="true"] { font-weight: 600; }
.pcv-pop .pcv-opt[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--ink-2); font-weight: 600; }
.pcv-pop .pcv-opt[hidden], .pcv-pop .pcv-group[hidden] { display: none; }
.pcv-pop .pcv-reset { color: var(--ink-2); }
.pcv-pop .pcv-eye { padding: 10px 10px 4px; font-size: var(--fs-micro, 11px); font-weight: 600; letter-spacing: var(--tracking-label, .06em); text-transform: uppercase; color: var(--ink-3); }
.pcv-pop .pcv-group:first-child .pcv-eye { padding-top: 4px; }
.pcv-pop .pcv-sep { height: 1px; margin: 6px 4px; background: var(--line-1); }
.pcv-pop .pcv-find { display: block; padding: 2px 2px 6px; }
.pcv-pop .pcv-find input, .pcv-pop .pcv-date input {
  box-sizing: border-box; width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm, 6px);
  background: var(--surface-card); color: var(--ink-1); font: inherit; outline: none; transition: border-color .12s ease;
}
.pcv-pop .pcv-find input:focus, .pcv-pop .pcv-date input:focus { border-color: var(--ink-3); }
.pcv-pop .pcv-date { display: flex; align-items: flex-end; gap: 8px; padding: 4px; }
.pcv-pop .pcv-date label { flex: 1 1 auto; display: grid; gap: 4px; }
.pcv-pop .pcv-date label span { font-size: var(--fs-micro, 11px); color: var(--ink-3); }
@media (pointer: coarse), (max-width: 640px) {
  .pcv-pop .pcv-opt { min-height: 40px; }
  .pcv-pop .pcv-find input, .pcv-pop .pcv-date input, .pcv-pop .pcv-date .btn { height: 40px; }
}
@keyframes pcvIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pcvOut { to { opacity: 0; transform: translateY(-2px) scale(.99); } }
