/* Compliance intake additions. Loads after site.css and uses the kit's values only. */
.ci .ci-map { grid-template-columns: repeat(7, 1fr); }
.ci-saved { margin-left: 10px; color: #5a5a55; }
.ci-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vq-errors p { font-weight: 550; margin-bottom: 6px; }
.vq-errors:focus { outline: 2px solid #3c7208; outline-offset: 2px; }
.ci-dupe { border: 1px solid #0c0c0c; padding: 12px 16px; margin-bottom: 24px; max-width: 70ch; }

.ci-route { display: grid; gap: 12px; }
.ci-card { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #6d6d68; background: #ffffff; padding: 16px 18px; cursor: pointer; }
.ci-card:hover { border-color: #0c0c0c; }
.ci-card input { width: 20px; height: 20px; margin-top: 3px; accent-color: #3c7208; flex: none; }
.ci-card > span { display: grid; gap: 4px; }
.ci-card b { font-family: "Newsreader", "Iowan Old Style", Georgia, serif; font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.ci-card span span { color: #5a5a55; max-width: 62ch; }
.ci-card em { font-style: normal; font-size: 0.86rem; font-weight: 550; color: #3c7208; }
.ci-card:has(input:checked) { border-color: #0c0c0c; box-shadow: inset 0 0 0 1px #0c0c0c; }
.ci-card:has(input:focus-visible) { outline: 2px solid #3c7208; outline-offset: 2px; }

.vq .checks.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.vq .checks.cols legend { grid-column: 1 / -1; }
.vq fieldset.bad legend { color: #b3261e; }
.vq fieldset.bad .pick button, .vq fieldset.ci-route.bad .ci-card { border-color: #b3261e; }
.vq fieldset > .err, .vq canvas + .err { color: #b3261e; font-size: 0.88rem; margin-top: 6px; }
.field .hint { color: #5a5a55; font-size: 0.86rem; margin: 0; }
.field .soft { color: #0c0c0c; font-size: 0.86rem; margin: 0; border-left: 2px solid #3c7208; padding-left: 10px; }
.field input[type="file"] { min-height: 0; padding: 10px; }

.ci-ref { border-top: 1px solid #d6d5cf; padding-top: 18px; margin-top: 8px; }
.ci-reflabel { font-weight: 550; margin-bottom: 12px; }

.ci-summary { border: 1px solid #d6d5cf; background: #ffffff; padding: 16px 18px; margin-bottom: 26px; }
.ci-summary dl { display: grid; gap: 6px; margin: 0 0 10px; }
.ci-summary dl div { display: grid; grid-template-columns: 12rem 1fr; gap: 12px; }
.ci-summary dt { color: #5a5a55; }
.ci-summary dd { margin: 0; overflow-wrap: anywhere; }

.ci-inbound { max-width: 860px; }
.ci-inbound .ci-rule { margin: 18px 0 26px; max-width: 40ch; }
.ci-inbound .ci-steps { margin-bottom: 28px; }
.ci-inbound .ci-steps li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid #d6d5cf; }
.ci-inbound .btns { display: flex; flex-wrap: wrap; gap: 12px; }

.ci-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.ci-foot button.tlink { background: none; border: 0; padding: 0; font: inherit; color: #3c7208; text-decoration: underline; cursor: pointer; }

.ci-preview { max-width: 860px; margin: 36px auto 0; }
.ci-preview pre { background: #0c0c0c; color: #f3f2ee; padding: 18px; overflow: auto; max-height: 70vh; font-size: 0.8rem; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .vq .checks.cols { grid-template-columns: 1fr; }
  .ci-summary dl div { grid-template-columns: 1fr; gap: 0; }
}

/* RRM tools upload steps */
.ci-rrmstep { border: 1px solid #d6d5cf; background: #ffffff; padding: 16px 18px 4px; margin-bottom: 22px; }
.ci-rrmtitle { font-weight: 550; margin-bottom: 4px; }
.ci-rrmstep .hint { margin-bottom: 12px; }
.ci-rrmlinks, .ci-rrm { display: grid; gap: 4px 0; margin-bottom: 14px; justify-items: start; }
.ci-rrmlinks .hint, .ci-rrm .hint { margin: 0 0 10px; overflow-wrap: anywhere; }
.ci-route-sm { margin-top: 8px; }
.ci-route-sm .ci-card { padding: 12px 16px; align-items: center; }
.ci-route-sm .ci-card input { margin-top: 0; }

/* Tap targets */
.vq .checks label { min-height: 44px; }
.ci-foot button.tlink { min-height: 44px; }
.vq .btn.sm { min-height: 44px; }

/* Phones: keep Continue in reach, above the contact bar */
@media (max-width: 720px) {
  .ci .vq-nav { position: sticky; bottom: 54px; z-index: 20; background: #f3f2ee; margin-top: 24px; padding: 12px 0; border-top: 1px solid #0c0c0c; }
  .ci .vq-nav .btn { min-height: 50px; }
  .ci .vq-nav .grow { flex: 0; }
  .ci .js-ci-next, .ci .js-ci-submit { flex: 1; justify-content: center; }
  .ci .pick button { flex: 1; }
  .ci-inbound .btns .btn { width: 100%; justify-content: center; }
  .ci-rrmlinks .btn, .ci-rrm .btn { width: 100%; justify-content: center; text-align: center; }
  .ci-card b { font-size: 1.2rem; }
}
