/* Advisor attestation gate (COMPID-111). Matches the approved concept. */
html.cp-gate-lock, html.cp-gate-lock body { overflow: hidden; }
.cp.cp-gate { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(6, 40, 66, .78); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.cp.cp-gate.is-open { opacity: 1; visibility: visible; transition: opacity .2s; }
.cp .cp-gate-modal { position: relative; width: min(600px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--cp-white); border-top: 4px solid var(--cp-orange); padding: clamp(28px, 5vw, 48px); box-shadow: 0 24px 60px rgba(0,0,0,.3); transform: translateY(12px); transition: transform .2s; text-align: left; }
.cp.cp-gate.is-open .cp-gate-modal { transform: none; }
.cp .cp-gate-modal:focus { outline: none; }
.cp .cp-gate-modal .cp-eyebrow { margin: 0 0 14px; }
.cp .cp-gate-modal h2 { margin: 0; padding-right: 24px; font-family: var(--cp-sans); font-weight: 400; font-size: clamp(23px, 3.2vw, 30px); line-height: 1.2; color: var(--cp-ink); text-transform: none; letter-spacing: 0; }
.cp .cp-gate-body { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--cp-text-muted); }
.cp .cp-gate-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; margin: 26px 0 0; padding: 18px 20px; background: var(--cp-paper); border: 1px solid var(--cp-rule); cursor: pointer; font-size: 15px; line-height: 1.55; color: var(--cp-text); font-weight: 400; }
.cp .cp-gate-check input { appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 22px; height: 22px; border: 2px solid var(--cp-ink); background: var(--cp-white); border-radius: 0; cursor: pointer; display: grid; place-content: center; }
.cp .cp-gate-check input::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--cp-white); border-bottom: 2.5px solid var(--cp-white); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.cp .cp-gate-check input:checked { background: var(--cp-orange); border-color: var(--cp-orange); }
.cp .cp-gate-check input:checked::after { opacity: 1; }
.cp .cp-gate-check input:focus-visible { outline: 2px solid var(--cp-orange); outline-offset: 3px; }
.cp .cp-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }
.cp .cp-gate-actions .cp-btn[disabled], .cp .cp-gate-actions .cp-btn[disabled]:hover { background: #C9CDC6; color: var(--cp-white); cursor: not-allowed; }
.cp .cp-gate-actions .cp-btn[disabled] .cp-arrow { transform: none; }
.cp .cp-gate-link { font: 700 12px/1.4 var(--cp-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cp-ink); text-decoration: underline; text-decoration-color: var(--cp-orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cp .cp-gate-link:hover, .cp .cp-gate-link:focus { color: var(--cp-orange); }
.cp .cp-gate-hint { margin: 22px 0 0; font-size: 13px; line-height: 1.5; color: var(--cp-text-muted); }
.cp .cp-gate-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-content: center; padding: 0; background: none; border: 0; cursor: pointer; color: var(--cp-ink); }
.cp .cp-gate-close:hover, .cp .cp-gate-close:focus { color: var(--cp-orange); background: none; }
.cp .cp-gate-close svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .cp.cp-gate { align-items: flex-end; padding: 0; }
  .cp .cp-gate-modal { max-height: 92vh; max-height: 92dvh; width: 100%; padding: 28px 20px 24px; }
  .cp .cp-gate-actions { flex-direction: column; align-items: stretch; }
  .cp .cp-gate-actions .cp-btn { width: 100%; }
  .cp .cp-gate-link { align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .cp.cp-gate, .cp .cp-gate-modal { transition: none; } }
