/* Editorial worksheet only. No homepage selectors, assets or motion changes. */
[data-evidence-check] { min-width: 0; }
[data-evidence-check] [hidden] { display: none !important; }
[data-evidence-check] .jec-controls {
  margin: 28px 0;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #edc13655;
  border-radius: 18px;
  background: #101220;
  color: #f0ece0;
}
[data-evidence-check] .jec-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
[data-evidence-check] .jec-field { min-width: 0; }
[data-evidence-check] label {
  display: block;
  color: #f0ece0;
  font: 600 15px/1.5 var(--sans, sans-serif);
  margin-bottom: 10px;
}
[data-evidence-check] input,
[data-evidence-check] select,
[data-evidence-check] textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #edc13677;
  border-radius: 10px;
  padding: 12px;
  color: #f0ece0;
  background: #080912;
  font: 400 16px/1.5 var(--sans, sans-serif);
}
[data-evidence-check] textarea { resize: vertical; }
[data-evidence-check] .jec-help,
[data-evidence-check] .jec-status {
  margin: 10px 0 0;
  font: 400 13px/1.7 var(--sans, sans-serif);
  color: #bcb9c7;
}
[data-evidence-check] .jec-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
[data-evidence-check] button {
  box-sizing: border-box;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid #edc13688;
  border-radius: 10px;
  padding: 11px 16px;
  background: transparent;
  color: #f0ece0;
  font: 600 14px/1.5 var(--sans, sans-serif);
  cursor: pointer;
  white-space: normal;
}
[data-evidence-check] button:hover { border-color: #edc136; background: #edc13616; }
[data-evidence-check] button.jec-review { background: #edc136; color: #101220; }
[data-evidence-check] button.jec-review:hover { background: #f4cf60; }
[data-evidence-check] :is(input, select, textarea, button, summary):focus-visible,
[data-evidence-check] .jec-error:focus { outline: 2px solid #edc136; outline-offset: 3px; }
[data-evidence-check] [aria-invalid="true"] { border-color: #ffb9aa; }
[data-evidence-check] .jec-error {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #ffb9aa;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
[data-evidence-check] .jec-error p,
[data-evidence-check] .jec-error li { color: #ffcec3; font-size: 14px; line-height: 1.7; }
[data-evidence-check] .jec-error-title { margin: 0; font-weight: 600; }
[data-evidence-check] .jec-error ul { margin: 12px 0 0; padding-left: 20px; }
[data-evidence-check] .jec-sample-note { font-size: 13px; color: #edc136; }
[data-evidence-check] .jec-results { margin-top: 28px; padding-top: 28px; border-top: 1px solid #edc13655; }
[data-evidence-check] .jec-results h3 {
  margin: 0 0 14px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.2;
}
[data-evidence-check] .jec-coverage { margin: 0 0 24px; color: #f0ece0; font-weight: 600; }
[data-evidence-check] .jec-breakdown { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 28px; }
[data-evidence-check] .jec-breakdown > div { padding: 14px 0; border-bottom: 1px solid #f0ece02c; }
[data-evidence-check] .jec-breakdown dt { color: #bcb9c7; font-size: 13px; line-height: 1.5; }
[data-evidence-check] .jec-breakdown dd { margin: 8px 0 0; color: #f0ece0; font: 500 29px/1.2 var(--sans, sans-serif); }
[data-evidence-check] .jec-median-label { margin-bottom: 8px; font-size: 14px; }
[data-evidence-check] .jec-median {
  margin: 0 0 14px;
  color: #edc136;
  font: 500 clamp(27px, 4vw, 39px)/1.2 var(--serif, Georgia, serif);
  overflow-wrap: anywhere;
}
[data-evidence-check] .jec-limit { font-size: 14px; padding-left: 16px; border-left: 2px solid #edc13688; }
[data-evidence-check] .jec-sorted { font-size: 14px; margin-top: 22px; }
[data-evidence-check] summary { cursor: pointer; padding: 10px 0; color: #edc136; line-height: 1.5; }
[data-evidence-check] .jec-sorted ol { padding-left: 24px; }
[data-evidence-check] .jec-sorted li { padding: 3px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
[data-evidence-check] .jec-sorted .jec-middle { color: #edc136; font-weight: 600; }
[data-evidence-check] .jec-worked { margin: 28px 0 0; padding: 16px 0; border-top: 1px solid #edc13644; font-size: 14px; }
@media (min-width: 640px) {
  [data-evidence-check] .jec-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-evidence-check] .jec-wide { grid-column: 1 / -1; }
  [data-evidence-check] .jec-breakdown { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  [data-evidence-check] .jec-actions { flex-direction: column; }
  [data-evidence-check] button { width: 100%; }
}
@media (forced-colors: active) {
  [data-evidence-check] .jec-controls,
  [data-evidence-check] .jec-results,
  [data-evidence-check] .jec-breakdown > div,
  [data-evidence-check] .jec-error { border-color: CanvasText; }
  [data-evidence-check] [aria-invalid="true"] { outline: 2px dashed CanvasText; }
  [data-evidence-check] :is(input, select, textarea, button, summary):focus-visible,
  [data-evidence-check] .jec-error:focus { outline-color: Highlight; }
}
@media print {
  [data-evidence-check] .jec-fields,
  [data-evidence-check] .jec-actions,
  [data-evidence-check] .jec-error,
  [data-evidence-check] .jec-status { display: none; }
  [data-evidence-check] .jec-controls { padding: 0; border: 0; background: transparent; }
  [data-evidence-check] .jec-results,
  [data-evidence-check] .jec-worked { break-inside: avoid; }
}
