/* public/css/signature-chooser.css — THE_FIRMS_COUNTERSIGNATURE: the signature chooser's look on the signed-in hosts
   (the member's page, the firm's card window, the Countersign box). The chooser is SIGNING_ITSELF_1's own
   (public/js/agreement-sign-page.js); its look on the signing page is lib/agreement-page.js FONTS and STYLE, and this
   file is those rules for a page without the public page's colour names — each colour falls back to the public page's
   own value. test/the-firms-countersignature/f1-browser.test.js holds the four faces and the rules equal to them. */

@font-face { font-family: "Dancing Script"; src: url("/fonts/signature/dancing-script.ttf") format("truetype");
  font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("/fonts/signature/great-vibes.ttf") format("truetype");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Homemade Apple"; src: url("/fonts/signature/homemade-apple.ttf") format("truetype");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/signature/caveat.ttf") format("truetype");
  font-weight: 400 700; font-display: swap; }

.ag-sign-block { --face: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ag-sign-block [hidden] { display: none !important; }
.ag-sign-block .ag-name label { display: block; font-size: 12px; font-weight: 500; color: var(--text2, #4a4840);
  margin: 0 0 4px; }
.ag-sign-block .ag-name-input { width: 100%; box-sizing: border-box; padding: 7px 10px; font: inherit; font-size: 13px;
  border: 1px solid var(--border2, #d9d5cc); border-radius: 6px; }
.ag-sign-block .ag-sig-h { font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
.ag-sign-block .ag-style-list { display: flex; flex-direction: column; gap: 8px; }
.ag-sign-block .ag-style { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px;
  padding: 4px 12px; background: #fff; border: 1px solid var(--line, #d9d5cc); border-radius: 8px;
  color: var(--ink, #1a2e4a); font-size: 30px; line-height: 1.2; cursor: pointer; overflow: hidden; }
/* The span clips at its padding box: the padding holds a script face's flourish, drawn outside its letters, inside the
   clip, and the margin gives the height back (RUN.md item 335 RC; lib/agreement-page.js STYLE the same). */
.ag-sign-block .ag-style span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
  box-sizing: border-box; padding: .3em; margin: -.3em 0; }
.ag-sign-block .ag-style[aria-checked="true"] { border: 2px solid var(--ink, #1a2e4a); background: #f3f2ee; }
.ag-sign-block .ag-dim .ag-style { opacity: .5; }
.ag-sign-block .ag-st-dancing-script span { font-family: "Dancing Script", var(--face); font-weight: 500; }
.ag-sign-block .ag-st-great-vibes span { font-family: "Great Vibes", var(--face); font-weight: 400; }
.ag-sign-block .ag-st-homemade-apple span { font-family: "Homemade Apple", var(--face); font-weight: 400; font-size: 24px;
  padding-bottom: .55em; margin-bottom: -.55em; }
.ag-sign-block .ag-st-caveat span { font-family: "Caveat", var(--face); font-weight: 500; }
.ag-sign-block .ag-pad { position: relative; width: 100%; height: 150px; border: 1px dashed var(--muted, #6b6860);
  border-radius: 8px; background: #fff; touch-action: none; }
.ag-sign-block .ag-pad canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.ag-sign-block .ag-pad-hint { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 0 12px; color: var(--muted, #6b6860); pointer-events: none; }
.ag-sign-block .ag-clear { margin: 6px 0 0; background: none; border: 0; color: var(--ink, #1a2e4a); font: inherit;
  font-size: 13px; text-decoration: underline; padding: 0; cursor: pointer; }

/* The saved signature as a picture, the section around it, and the Countersign box (§2.1, §3.2). */
.sig-saved-img { display: block; max-width: 260px; max-height: 90px; background: #fff; border-bottom: 1px solid #2b2a26;
  padding: 0 0 3px; }
.sig-section .sig-line, .agr-cs-box .sig-line { font-size: 12px; color: var(--text2, #4a4840); margin: 6px 0; line-height: 1.5; }
.sig-section .sig-acts, .agr-cs-box .sig-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sig-section .sig-err, .agr-cs-box .sig-err { font-size: 12px; color: #8a1a1a; margin: 6px 0 0; }
.agr-cs-box { display: block; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--border, #e4e2dc); border-radius: 8px;
  background: var(--bg2, #f7f6f3); }
.agr-cs-box .sig-name { font-size: 13px; color: var(--text, #2b2a26); margin: 4px 0 0; }
.agr-cs-box .sig-caution { font-size: 12px; font-weight: 600; color: #7a4a00; margin: 8px 0 0; }
