/* Security and approval section (#control), 25 Nov 2026. Loaded after brand.css.
   Only this section. No motion here (transform, opacity and transition belong to motion.js and brand.css).
   Rules start with #control so they win over homepage.css and brand.css whatever order those change in. */

/* ---------- The approval card is a picture of the product, not a control ----------
   Approve, Adjust and Decline are the product's own buttons, shown inside the picture.
   No pointer, no focus (also set inert in the HTML), nothing to select, hidden from screen readers.
   They look like the product's buttons (the finds block's chips: 7px corners, 600 weight, shorter than
   the 44px site buttons) so nobody takes them for this page's own buttons. */
#control .approval-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  pointer-events: none;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
#control .approval-options span {
  display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: .6875rem .25rem;
  border: 1px solid var(--mk-line); border-radius: 7px;
  background: var(--mk-card); color: var(--mk-ink);
  font-size: .9375rem; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
#control .approval-options span:first-child { border-color: var(--mk-moss); background: var(--mk-moss); color: #fff; }

/* The stray tick under Approve joined nothing. The element is gone from the page; this keeps it from coming back. */
#control .approval-connector { display: none; }

/* ---------- Card and text: the brand sheet's values ---------- */
#control .approval-path { border-radius: var(--mk-radius-card); border: 1px solid var(--mk-line); background: var(--mk-card); box-shadow: var(--mk-shadow-card); }
#control .approval-path .approval-path-label { color: var(--mk-ink); font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
#control .approval-outcome { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--mk-line); color: var(--mk-moss); font-size: .9375rem; font-weight: 500; line-height: 1.5; }
#control .control-point h3 { font-weight: 500; }
#control .control-point p, #control .control-intro { text-wrap: pretty; }
#control .control-security a { display: inline-flex; align-items: center; min-height: 2.75rem; }   /* the one real link here: 44px tap area */

/* ---------- Phones: shorter, every word kept, text 15px or more, real link 44px or more ---------- */
@media (max-width: 759px) {
  #control .control-grid { gap: 1.75rem; }
  #control .control-intro { margin-top: .75rem; }
  #control .approval-path { margin-top: 1.5rem; padding: 1rem 1.125rem; }
  #control .approval-path .approval-path-label { margin-bottom: .75rem; }
  #control .approval-options { gap: .375rem; }
  #control .approval-options span { padding: .625rem .25rem; }
  #control .approval-outcome { margin-top: 1rem; padding-top: .875rem; }

  #control .control-points { gap: .625rem; }
  #control .control-point,
  #control .control-point:first-child,
  #control .control-point:last-child { padding: 1rem 1.125rem; }
  #control .control-point h3 { font-size: 1.25rem; line-height: 1.25; }
  #control .control-point p { margin-top: .375rem; font-size: .9375rem; line-height: 1.5; }

  #control .control-security.security-summary { margin-top: 1.75rem; padding-top: 1.5rem; gap: 1rem; }
  #control .security-summary-heading { gap: 0; }
  #control .security-summary-heading a { margin-top: -.25rem; }
  #control .security-summary > div + div { padding-top: .875rem; }
  #control .security-summary h4 { font-size: 1rem; }
  #control .security-summary p { font-size: .9375rem; line-height: 1.5; }
}
