/* ValidExtract: the extraction sample, styled as a finished extraction in the app, and the FAQ cards.
   Loaded by vx-ui.js on every page that runs it, after that page's own stylesheets. */
.abstract.xr{
  margin-top: 24px; border-radius: 14px; border: 1px solid rgba(15,23,42,.12); background: #fff; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 50px -40px rgba(15,23,42,.55);
}
.abstract.xr .abstract__bar{
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  padding: 11px 16px; background: #f8fafc; border-bottom: 1px solid rgba(15,23,42,.1);
  font-family: var(--f-mono, ui-monospace, monospace); font-size: 11px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: #64748b;
}
.abstract.xr .abstract__bar > span:first-child{ color: #334155; }
.xr__cited{
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; background: #f0fdf4; border: 1px solid #bbf7d0;
  color: #166534; font-family: var(--f-mono, ui-monospace, monospace); font-size: 10.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.xr__cited svg{ width: 10px; height: 10px; }

/* column headings. The source column is a fixed width so every page pill below it is the same box. */
.xr__head{
  display: grid; grid-template-columns: minmax(112px,.85fr) minmax(0,1.65fr) 160px; gap: 20px;
  padding: 10px 18px; border-bottom: 1px solid rgba(15,23,42,.09); background: #fff;
  font-family: var(--f-mono, ui-monospace, monospace); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #94a3b8;
}

/* rows: field · value · source, the value and the page in the app's mono */
.abstract.xr .ab-row{
  display: grid; grid-template-columns: minmax(112px,.85fr) minmax(0,1.65fr) 160px; gap: 20px;
  align-items: center; padding: 11px 18px; border-top: 1px solid rgba(15,23,42,.07);
  cursor: pointer; transition: background-color .16s ease, box-shadow .16s ease;
}
.abstract.xr .ab-row > *{ min-width: 0; }
.abstract.xr .ab-row:first-of-type{ border-top: 0; }
.abstract.xr .ab-row:hover{ background: #f8fafc; }
.abstract.xr .ab-row.is-on{ background: #eff6ff; box-shadow: inset 3px 0 0 #2563eb; }
.abstract.xr .ab-row > b{
  font-family: var(--f-text, "Inter", sans-serif); font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: #0f172a;
}
.abstract.xr .ab-row > span{
  font-family: var(--f-mono, ui-monospace, monospace); font-size: 13.5px; line-height: 1.45;
  color: #1e293b; font-variant-numeric: tabular-nums;
}
/* the page pill: one width, one height and one alignment for every row, so the column reads as a
   column. A long citation is clipped with an ellipsis rather than widening its row (title holds it). */
.abstract.xr .ab-src{
  position: relative; display: block; width: 100%; box-sizing: border-box;
  padding: 7px 26px 7px 11px; border-radius: 8px; border: 1px solid #dbeafe; background: #eff6ff;
  font-family: var(--f-mono, ui-monospace, monospace); font-size: 11px; font-weight: 500;
  line-height: 1.35; letter-spacing: -.01em; color: #1d4ed8; text-align: left; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color .16s, border-color .16s, color .16s;
}
.abstract.xr .ab-src:hover{ background: #dbeafe; border-color: #bfdbfe; }
.abstract.xr .ab-src[aria-expanded="true"]{ background: #2563eb; border-color: #2563eb; color: #fff; }
.abstract.xr .ab-src::after{
  content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .18s ease;
}
.abstract.xr .ab-src[aria-expanded="true"]::after{ transform: rotate(-135deg); margin-top: -1px; }

/* the passage itself, opened under its row */
.abstract.xr .ab-quote{
  grid-column: 1 / -1; margin: 10px 0 2px; padding: 14px 16px;
  border-left: 2px solid #2563eb; border-radius: 0 10px 10px 0; background: #fff;
  font-family: var(--f-text, "Inter", sans-serif); font-size: 14.5px; font-style: italic;
  line-height: 1.6; color: #475569;
}
.abstract.xr .ab-quote[hidden]{ display: none; }
/* the source on the left, the way into the document on the right, so the action always lines up */
.abstract.xr .ab-quote small{
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  margin-top: 12px;
  font-family: var(--f-mono, ui-monospace, monospace); font-size: 11.5px; font-style: normal;
  letter-spacing: .04em; color: #94a3b8;
}
.abstract.xr .ab-quote .see-doc, .abstract.xr .ab-quote .src-link{
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border: 1px solid #cbd5e1; border-radius: 6px; background: #fff;
  font-family: var(--f-mono, ui-monospace, monospace); font-size: 11px; font-weight: 500;
  letter-spacing: .02em; color: #2563eb; text-decoration: none; white-space: nowrap;
}
.abstract.xr .ab-quote .src-link::after{ content: "↗"; font-size: 10px; }
.abstract.xr .ab-quote .see-doc:hover, .abstract.xr .ab-quote .src-link:hover{ background: #eff6ff; border-color: #bfdbfe; }

/* the line that says what the whole table is */
.xr__note{
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  padding: 11px 16px; border-top: 1px solid rgba(15,23,42,.09); background: #f8fafc;
  font-family: var(--f-text, "Inter", sans-serif); font-size: 12.5px; line-height: 1.5; color: #64748b;
}
.xr__note b{ font-weight: 600; color: #1e293b; }

/* reviewer flags, in the app's voice */
.flags{
  margin-top: 18px; padding: 14px 16px; border: 1px solid #fde68a; border-left: 3px solid #d97706;
  border-radius: 12px; background: #fffbeb;
}
.flags h3{
  margin: 0 0 8px; font-family: var(--f-mono, ui-monospace, monospace); font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #92400e;
}
.flags ul{ margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.flags li{ position: relative; padding-left: 16px; font-size: 14px; line-height: 1.55; color: #78350f; }
.flags li::before{ content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #d97706; }

/* tablets: the same three columns, a little tighter */
@media (max-width: 1100px){
  .xr__head, .abstract.xr .ab-row{ grid-template-columns: minmax(104px,.8fr) minmax(0,1.6fr) 136px; gap: 16px; }
}

/* phones: field, value and source stack, the headings go away */
@media (max-width: 760px){
  .xr__head{ display: none; }
  .abstract.xr .ab-row{ grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .abstract.xr .ab-row > b{ font-size: 10.5px; letter-spacing: .1em; color: #64748b; }
  .abstract.xr .ab-row > span{ font-size: 14px; }
  .abstract.xr .ab-src{ display: inline-block; width: auto; max-width: 100%; margin-top: 6px; }
  .abstract.xr .ab-quote{ font-size: 14px; }
}

/* the side column runs the Inspector first and the cited document under it: the divider follows them */
.lab--both .lab__pane[data-pane="inspector"]{ border-top: 0; }
.lab--both .lab__pane[data-pane="source"]{ border-top: 1px solid rgba(15,23,42,.1); }

/* ---- FAQs: the same quiet cards as the home page, one open at a time ---- */
.faq > .faq__item{
  display: block !important; padding: 0 !important; border: 1px solid rgba(15,23,42,.12) !important;
  border-radius: 12px !important; background: #fff; overflow: hidden; transform: none !important;
  box-shadow: none !important; transition: border-color .18s, background-color .18s;
}
.faq > .faq__item[open]{ border-color: rgba(37,99,235,.45) !important; background: #f8fafc; }
.faq > .faq__item > summary{
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none;
}
.faq > .faq__item > summary::-webkit-details-marker{ display: none; }
.faq > .faq__item > summary h3{
  flex: 1; margin: 0; font-family: var(--font-text, "Inter", sans-serif) !important; font-size: 15px;
  font-weight: 600; letter-spacing: -.01em; text-transform: none; color: #0f172a;
}
.faq > .faq__item > summary::after{
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 2px; margin-top: -3px;
  border-right: 1.6px solid #2563eb; border-bottom: 1.6px solid #2563eb;
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq > .faq__item[open] > summary::after{ transform: rotate(-135deg); margin-top: 3px; }
.faq > .faq__item > p{
  margin: 0; padding: 0 16px 16px 16px; font-size: 15px; line-height: 1.6; color: #475569;
}
.faq > .faq__item .faq__ic{
  width: 28px; height: 28px !important; flex: none; border-radius: 8px !important;
  background: #eff6ff !important; color: #2563eb !important; box-shadow: none !important;
  display: grid; place-items: center;
}
.faq > .faq__item .faq__ic svg{ width: 15px; height: 15px; }
