/* Scoped additions for the six editorial research resources. */
.research-shell .research-layout > *,
.research-shell .research-copy,
.research-shell .research-selfcheck { min-width: 0; }
.research-shell .research-figure img,
.research-shell .research-figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.research-shell .research-table-wrap:focus-visible,
.research-shell a:focus-visible,
.research-shell button:focus-visible,
.research-shell textarea:focus-visible,
.research-shell input:focus-visible {
  outline: 3px solid #426b8a;
  outline-offset: 4px;
}
.research-shell .research-copy {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--research-rule);
  background: var(--research-surface);
}
.research-shell .research-copy label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}
.research-shell .research-copy textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--research-muted);
  border-radius: 0;
  background: #fff;
  color: var(--research-ink);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  resize: vertical;
}
.research-shell .research-copy button,
.research-shell .research-selfcheck button {
  min-height: 44px;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid var(--research-ink);
  background: var(--research-ink);
  color: #fff;
  font: 600 14px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.research-shell .research-copy button[hidden],
.research-shell .research-selfcheck button[hidden] { display: none; }
.research-shell .research-copy button:disabled,
.research-shell .research-selfcheck button:disabled { cursor: wait; opacity: .7; }
.research-shell .research-copy [data-copy-status] {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: var(--research-muted);
  font-size: 14px;
}
.research-shell .research-selfcheck {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--research-rule);
  background: #fff;
}
.research-shell .research-selfcheck fieldset {
  min-width: 0;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--research-rule);
}
.research-shell .research-selfcheck legend {
  max-width: 100%;
  padding: 0 6px;
  color: var(--research-ink);
  font-weight: 600;
  line-height: 1.5;
}
.research-shell .research-selfcheck label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.55;
  cursor: pointer;
}
.research-shell .research-selfcheck input[type="radio"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--research-ink);
}
.research-shell .research-selfcheck [role="status"],
.research-shell .research-selfcheck [role="alert"] {
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.research-shell .research-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  transform: translateY(-180%);
  background: #fff;
  color: var(--research-ink);
}
.research-shell .research-skip:focus { transform: translateY(0); }
@media (max-width: 767px) {
  /* The named, keyboard-focusable wrapper owns horizontal scrolling. The
     shared design-system's block-table fallback must not create a second,
     unfocusable scroll container inside it. Keep the native research width. */
  .research-shell .research-table {
    display: table;
    min-width: 690px !important;
    max-width: none;
    overflow: visible;
  }
}
@media (max-width: 580px) {
  .research-shell .research-copy,
  .research-shell .research-selfcheck { padding: 16px; }
  .research-shell .research-selfcheck fieldset { padding: 12px; }
}
@media print {
  .research-shell .research-copy button,
  .research-shell .research-skip { display: none; }
}
