/* Compliance pack: Platform Admin → Compliance / Access reviews / Subprocessors (cp-*) and the public /security and
   /subprocessors pages (st-*, inside the site layout). */

/* ---------------------------------------------------------------- Platform Admin */
.cp-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid #DDE3EA; border-radius: 10px; padding: 14px 18px; }
.cp-summary .cp-score { display: flex; align-items: baseline; gap: 6px; font-weight: 700; font-size: 1.6rem; color: #0F172A; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cp-summary .cp-score small { font-size: .8rem; color: #64748B; font-weight: 600; letter-spacing: 0; }
.cp-bar { flex: 1 1 220px; display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #EEF1F5; min-width: 160px; }
.cp-bar span { display: block; height: 100%; }
.cp-bar .pass { background: #16A34A; } .cp-bar .attention { background: #F59E0B; } .cp-bar .fail { background: #DC2626; }
.cp-legend { display: flex; gap: 14px; font-size: .78rem; color: #475569; flex-wrap: wrap; }
.cp-legend i { font-size: .55rem; vertical-align: 2px; margin-right: 3px; }
.cp-dot-pass { color: #16A34A; } .cp-dot-attention { color: #F59E0B; } .cp-dot-fail { color: #DC2626; }

.cp-controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cp-control { background: #fff; border: 1px solid #DDE3EA; border-left: 3px solid #CBD5E1; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-control.pass { border-left-color: #16A34A; } .cp-control.attention { border-left-color: #F59E0B; } .cp-control.fail { border-left-color: #DC2626; background: #FFFBFB; }
.cp-control-top { display: flex; align-items: center; gap: 8px; }
.cp-control-top .ic { width: 28px; height: 28px; border-radius: 7px; display: inline-grid; place-items: center; background: #F1F5F9; color: #475569; flex: none; }
.cp-control-top .lb { font-size: .8rem; font-weight: 650; color: #334155; flex: 1; min-width: 0; }
.cp-control .val { font-size: 1.2rem; font-weight: 700; color: #0F172A; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cp-control .dt { font-size: .76rem; color: #64748B; line-height: 1.4; flex: 1; }
.cp-control .ev { font-size: .76rem; font-weight: 600; text-decoration: none; margin-top: 2px; }
.cp-status { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.cp-status.pass { background: #DCFCE7; color: #166534; } .cp-status.attention { background: #FEF3C7; color: #92400E; } .cp-status.fail { background: #FEE2E2; color: #991B1B; }
.cp-status.open { background: #DBEAFE; color: #1E40AF; } .cp-status.signed_off { background: #E2E8F0; color: #334155; }

.cp-exports { list-style: none; margin: 0; padding: 0; }
.cp-exports li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #EEF1F5; font-size: .8rem; }
.cp-exports li:first-child { border-top: 0; }
.cp-exports .m { flex: 1; min-width: 0; }
.cp-exports .m small { display: block; color: #64748B; }
.cp-pw { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.cp-pw label { flex: 1 1 200px; font-size: .78rem; font-weight: 600; color: #475569; display: flex; flex-direction: column; gap: 4px; }
.cp-includes { columns: 2; column-gap: 18px; font-size: .78rem; color: #475569; padding-left: 16px; margin: 0 0 12px; }
.cp-field { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: #475569; margin-bottom: 10px; }
.cp-field .form-text { font-weight: 400; }

/* review */
.cp-progress { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: #475569; }
.cp-progress .cp-bar { flex: 0 1 220px; }
.cp-person .row-sub { font-size: .74rem; }
.cp-decide { display: flex; gap: 4px; flex-wrap: wrap; }
.cp-decide .btn { font-size: .74rem; padding: .2rem .55rem; }
.cp-decide .btn.on-keep { background: #DCFCE7; border-color: #86EFAC; color: #166534; }
.cp-decide .btn.on-change { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.cp-decide .btn.on-remove { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
.cp-note { font-size: .78rem; color: #334155; margin-top: 4px; }
.cp-note-form { display: flex; gap: 6px; margin-top: 6px; }
.cp-note-form input { font-size: .78rem; }
.cp-signed { display: flex; gap: 12px; align-items: flex-start; background: #F8FAFC; border: 1px solid #DDE3EA; border-radius: 10px; padding: 14px 16px; }
.cp-signed .seal { width: 40px; height: 40px; border-radius: 50%; background: #0F172A; color: #fff; display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.cp-signform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: end; }
.cp-tag { display: inline-block; font-size: .66rem; font-weight: 700; padding: 0 6px; border-radius: 4px; background: #EEF2FF; color: #3730A3; vertical-align: 1px; }
.cp-tag.staff { background: #ECFEFF; color: #155E75; } .cp-tag.both { background: #F5F3FF; color: #5B21B6; }
.cp-sub-row td { vertical-align: top; }
.cp-sub-row .purpose { font-size: .78rem; color: #475569; max-width: 360px; }
.cp-muted { color: #94A3B8; }
@media (max-width: 900px) { .cp-signform { grid-template-columns: minmax(0, 1fr); } .cp-includes { columns: 1; } }
.as-app .cp-summary { padding: 12px; }
.as-app .cp-controls { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------------- public site */
.st-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.st-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.st-toc strong { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--s-subtle); margin-bottom: 8px; }
.st-toc a { color: var(--s-muted); padding: 6px 10px; border-left: 2px solid var(--s-line); text-decoration: none; }
.st-toc a:hover { color: var(--s-ink); border-left-color: var(--s-blue); }
.st-intro { font-size: 1.15rem; line-height: 1.65; color: var(--s-text); max-width: 64ch; margin: 0 0 32px; }
.st-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); background: #fff; margin-bottom: 56px; overflow: hidden; }
.st-glance > div { padding: 20px 22px; border-right: 1px solid var(--s-line); }
.st-glance > div:last-child { border-right: 0; }
.st-glance i { color: var(--s-blue-600); font-size: 1.15rem; }
.st-glance b { display: block; font-size: 1rem; color: var(--s-ink); margin: 10px 0 2px; font-weight: 600; letter-spacing: -.01em; }
.st-glance span { font-size: .84rem; color: var(--s-muted); line-height: 1.45; display: block; }
.st-block { padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid var(--s-line); scroll-margin-top: 100px; }
.st-block:last-child { border-bottom: 0; margin-bottom: 0; }
.st-block-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.st-block-head h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; margin: 0; color: var(--s-ink); }
.st-block > p { color: var(--s-text); line-height: 1.7; max-width: 70ch; }
.st-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.st-list li { display: flex; gap: 10px; font-size: .95rem; line-height: 1.55; color: var(--s-text); }
.st-list li i { color: var(--s-green); margin-top: 3px; flex: none; }
.st-proof { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .82rem; color: var(--s-muted); background: var(--s-tint); border: 1px solid var(--s-line); border-radius: 999px; padding: 4px 12px; }
.st-proof i { color: var(--s-green); }
.st-contact { background: var(--s-navy); color: var(--s-on-dark); border-radius: var(--s-radius-lg); padding: 32px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.st-contact h2 { color: #fff; font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; margin: 0 0 10px; }
.st-contact p, .st-contact li { color: var(--s-on-dark); font-size: .94rem; line-height: 1.6; }
.st-contact ul { padding-left: 18px; margin: 10px 0 0; }
.st-contact .st-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; word-break: break-all; }
.st-contact .st-mail:hover { border-bottom-color: #fff; }
.st-contact-side { border-left: 1px solid var(--s-navy-line); padding-left: 32px; }
.st-contact-side strong { color: var(--s-on-dark-strong); display: block; margin-bottom: 6px; }

.st-subs { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); overflow: hidden; font-size: .92rem; }
.st-subs th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--s-subtle); font-weight: 600; padding: 14px 18px; background: var(--s-paper); border-bottom: 1px solid var(--s-line); }
.st-subs td { padding: 18px; border-bottom: 1px solid var(--s-line); vertical-align: top; color: var(--s-text); line-height: 1.55; }
.st-subs tr:last-child td { border-bottom: 0; }
.st-subs .nm { font-weight: 600; color: var(--s-ink); display: block; }
.st-subs .ct { font-size: .8rem; color: var(--s-subtle); }
.st-subs .nm a { color: var(--s-ink); text-decoration: none; border-bottom: 1px solid var(--s-line-2); }
.st-subs .nm a:hover { color: var(--s-blue-600); border-bottom-color: var(--s-blue); }
.st-scope { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-scope.core { background: var(--s-blue-50); color: var(--s-blue-700); border: 1px solid var(--s-blue-100); }
.st-scope.optional { background: var(--s-tint); color: var(--s-muted); border: 1px solid var(--s-line); }
.st-subs-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: .9rem; color: var(--s-muted); }
.st-note { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.st-note > div { background: var(--s-tint); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 20px; font-size: .9rem; line-height: 1.6; color: var(--s-text); }
.st-note b { display: block; color: var(--s-ink); margin-bottom: 4px; }

@media (max-width: 991.98px) {
  .st-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .st-toc { display: none; }
  .st-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-glance > div:nth-child(2n) { border-right: 0; }
  .st-glance > div:nth-child(-n+2) { border-bottom: 1px solid var(--s-line); }
  .st-contact { grid-template-columns: minmax(0, 1fr); }
  .st-contact-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--s-navy-line); padding-top: 24px; }
  .st-note { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .st-list { grid-template-columns: minmax(0, 1fr); }
  .st-subs thead { display: none; }
  .st-subs, .st-subs tbody, .st-subs tr, .st-subs td { display: block; width: 100%; }
  .st-subs tr { border-bottom: 1px solid var(--s-line); padding: 14px 16px; }
  .st-subs tr:last-child { border-bottom: 0; }
  .st-subs td { border: 0; padding: 4px 0; }
  .st-subs td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--s-subtle); font-weight: 600; margin-top: 6px; }
  .st-contact { padding: 24px; }
}
@media (max-width: 575.98px) {
  .st-glance { grid-template-columns: minmax(0, 1fr); }
  .st-glance > div { border-right: 0 !important; border-bottom: 1px solid var(--s-line); }
  .st-glance > div:last-child { border-bottom: 0; }
}

/* access review table: stacked cards on phones / app mode */
@media (max-width: 760px) {
  .cp-stack thead { display: none; }
  table.cp-stack { min-width: 0 !important; table-layout: auto; }
  .cp-stack td { overflow-wrap: anywhere; }
  .cp-stack td.text-end { text-align: left !important; padding-top: 8px !important; }
  .cp-stack, .cp-stack tbody, .cp-stack tr, .cp-stack td { display: block; width: auto; }
  .cp-stack tr { padding: 12px 14px; border-bottom: 1px solid #EEF1F5; }
  .cp-stack td { border: 0 !important; padding: 3px 0 !important; white-space: normal !important; }
  .cp-stack td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 88px; font-size: .7rem; font-weight: 700; color: #64748B; }
  .cp-stack td[data-label="Decision"]::before, .cp-stack td.purpose[data-label]::before { display: block; margin-top: 6px; }
  .cp-stack tr[hidden] { display: none; }
  .cp-stack .purpose { max-width: none; }
}
