/* Audit refinements: readable, touch-friendly mobile forms and QR Wallet. */
@media(max-width:767px){
  .brc-pledge-form .brc-form-grid,
  .brc-checkout-layout .brc-form-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .brc-pledge-form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),
  .brc-pledge-form textarea,.brc-pledge-form select,
  .brc-checkout-layout input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),
  .brc-checkout-layout textarea,.brc-checkout-layout select,
  .brco-signup-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  .brco-signup-form select,.brco-signup-form textarea{
    font-size:16px!important;
    max-width:100%;
    min-height:44px;
  }
  .brc-pledge-form button[type=submit],.brc-pledge-form .brc-btn,
  .brco-signup-form button[type=submit],
  .brc-wallet-actions button,.brc-checkout-layout button[type=submit]{
    min-height:44px;
  }
}
.brc-pledge-form :focus-visible,.brc-wallet-card .brc-mini-btn:focus-visible{
  outline:3px solid #ba8420!important;
  outline-offset:3px;
}
.brc-audit-qr-open{overflow:hidden}
.brc-audit-qr-shade{
  position:fixed;inset:0;z-index:999999;display:flex;justify-content:center;align-items:center;
  padding:14px;background:rgba(0,0,0,.88);
}
.brc-audit-qr-dialog{
  display:flex;flex-direction:column;align-items:center;gap:12px;
  width:min(100%,720px);max-height:96vh;overflow:auto;padding:clamp(15px,3vw,28px);
  border-radius:18px;background:#fff;color:#161b22;text-align:center;
}
.brc-audit-qr-dialog h2{font-size:clamp(19px,4vw,28px);line-height:1.2;margin:0}
.brc-audit-qr-close{
  align-self:flex-end;min-height:44px;padding:9px 18px;
  border:1px solid #222;border-radius:999px;background:#151515;color:#fff;
  font-size:15px;font-weight:800;cursor:pointer;
}
.brc-audit-qr-close:focus-visible{outline:4px solid #d5a62e;outline-offset:3px}
.brc-audit-qr-image{
  width:min(100%,480px);max-height:min(65vh,480px);height:auto;aspect-ratio:1/1;
  object-fit:contain;image-rendering:auto;background:#fff;
}
.brc-audit-qr-dialog p{font-size:14px;line-height:1.5;margin:0;color:#475569}

/* WCAG refinement: text links must not depend on colour alone.
   Keep the button/pill navigation treatment unchanged. */
.brl :is(p,li,blockquote) a:not(.brl-btn):not(.brc-btn):not(.brco-primary-button){
  text-decoration:underline!important;
  text-underline-offset:3px;
  text-decoration-thickness:1.5px;
}
.brl :is(p,li,blockquote) a:not(.brl-btn):not(.brc-btn):hover{
  text-decoration-thickness:2px;
}
.brl .brl-share-social a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:#505966;
}
/* Stronger contrast for small labels and controls on light panels. */
.brl .brl-step-num{color:#7e3023}
.brl .brl-share-panel .brl-kicker{color:#74331c!important}
.brl .brl-faq summary::after{color:#7b371e}
.brl .brl-date-note{color:#593128}
.brl .brl-newsletter .brco-signup-intro .brco-eyebrow{color:#754000!important}
/* More visible focus indications against both light and dark surfaces. */
.brl :focus-visible{outline:3px solid #87371c!important;outline-offset:3px!important}
.brl :is(.brl-hero,.brl-why,.brl-groups,.brl-end,.brl-date) :focus-visible{
  outline-color:#ffb68b!important;
}
.brc-submenu-toggle:focus-visible{
  outline:3px solid #f3c95c!important;outline-offset:2px!important;
}

