/* Naina Human Check widget styles. Colours chosen for WCAG 2.2 AA contrast (4.5:1 text, 3:1 controls). */
.nhc { --nhc-fg: #1a1a1a; --nhc-bg: #ffffff; --nhc-line: #5c5c5c; --nhc-accent: #0b57d0; --nhc-accent-fg: #ffffff;
  --nhc-ok: #0b6b2e; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--nhc-fg); margin: 1rem 0; }
.nhc-box { border: 1px solid var(--nhc-line); border-radius: 8px; padding: 1rem; background: var(--nhc-bg); max-width: 28rem; }
.nhc-title { margin: 0 0 .25rem; font-size: .875rem; font-weight: 600; }
.nhc-q { margin: 0 0 .75rem; font-size: 1.125rem; font-weight: 600; }
.nhc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nhc-label { display: block; font-size: .875rem; margin-bottom: .25rem; }
.nhc-input { box-sizing: border-box; width: 100%; min-height: 44px; padding: .5rem .75rem; font-size: 1rem; color: var(--nhc-fg);
  background: var(--nhc-bg); border: 2px solid var(--nhc-line); border-radius: 6px; }
.nhc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.nhc-choice { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .25rem .75rem; border: 2px solid var(--nhc-line);
  border-radius: 6px; cursor: pointer; }
.nhc-choice:has(input:checked) { border-color: var(--nhc-accent); background: #e8f0fe; }
.nhc-radio { width: 20px; height: 20px; }
.nhc-holdwrap { display: flex; flex-direction: column; gap: .5rem; }
.nhc-hold { position: relative; overflow: hidden; min-height: 56px; width: 100%; font: inherit; font-size: 1.125rem; font-weight: 700;
  color: var(--nhc-fg); background: #eceff1; border: 2px solid var(--nhc-line); border-radius: 8px; cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.nhc-hold .nhc-fill { position: absolute; inset: 0; background: #a8c7fa; transform: scaleX(0); transform-origin: left; }
.nhc-hold .nhc-holdtext { position: relative; }
.nhc-hold[disabled] { color: var(--nhc-ok); border-color: var(--nhc-ok); cursor: default; }
.nhc-hint { margin: 0; font-size: .875rem; color: #424242; }
.nhc-link { margin-top: .75rem; padding: .5rem 0; min-height: 24px; background: none; border: 0; font: inherit; font-size: .875rem;
  color: var(--nhc-accent); text-decoration: underline; cursor: pointer; }
.nhc-status { margin: .5rem 0 0; min-height: 1.5em; font-size: .875rem; color: #424242; }
.nhc :focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; box-shadow: 0 0 0 5px #ffffff; }
@media (prefers-reduced-motion: reduce) { .nhc-fill { transition: none; } }
@media (prefers-color-scheme: dark) {
  .nhc { --nhc-fg: #f1f1f1; --nhc-bg: #1e1e1e; --nhc-line: #a0a0a0; --nhc-accent: #8ab4f8; --nhc-ok: #81c995; }
  .nhc-hold { background: #2c2c2c; } .nhc-hold .nhc-fill { background: #3b5ea8; } .nhc-hint, .nhc-status { color: #c8c8c8; }
  .nhc-choice:has(input:checked) { background: #263a5e; }
  .nhc :focus-visible { outline-color: #f1f1f1; box-shadow: 0 0 0 5px #1e1e1e; }
}
