/* Argos signing page. Quiet and exact: an ivory sheet on stone, ink navy, one serif. Blanks are a pale navy tint
   until filled, then read as ink on a fine rule. */
:root {
  --stone: #f2f0eb;
  --ivory: #fcfbf8;
  --ink: #0f1c2e;
  --text: #1d2430;
  --warm: #6e6a63;
  --hair: rgba(15, 28, 46, 0.12);
  --tint: #eef1f6;
  --rule: rgba(15, 28, 46, 0.55);
  --alert: #7a2e2e;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --label: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bar-h: 60px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 32px); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--stone); color: var(--text); font: 17px/1.6 var(--serif); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
/* Labels and controls use the wordmark's face; the document itself stays in EB Garamond. */
.doc-title, .count, .primary, .tab, .ad-row label, .fs-label, .ad-hint, .fine, .consent-check, .consent-terms, .terms, .docnum, .questions, .doclist, .status, .error, .field-error#fs-error { font-family: var(--label); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar-h); background: var(--ivory); border-bottom: 1px solid var(--hair); }
.bar-in { height: 100%; display: flex; align-items: center; gap: 18px; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; }
.lockup { height: 24px; width: auto; }
.markonly { display: none !important; }
.doc-title { flex: 1; min-width: 0; color: var(--warm); font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 18px; border-left: 1px solid var(--hair); }
.count { color: var(--warm); font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.primary { min-height: 42px; padding: 0 26px; border: 0; border-radius: 2px; background: var(--ink); color: var(--ivory); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; white-space: nowrap; transition: background-color 350ms var(--ease); }
.primary:hover { background: #1b2c45; }
.primary:disabled { background: #b9bcc2; cursor: default; }
.link { background: none; border: 0; padding: 4px 0; color: var(--ink); font-family: var(--serif); font-size: 17px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* column */
.canvas { padding: 40px 20px 120px; }
.column { max-width: 760px; margin: 0 auto; }
.column.wide { max-width: 940px; }
.status { margin: 60px 0; text-align: center; color: var(--warm); font-style: italic; }
.error { margin: 0 0 18px; color: var(--alert); font-style: italic; text-align: center; }

/* consent banner */
.consent { background: var(--ivory); border: 1px solid var(--hair); padding: 26px 30px 28px; margin: 0 0 22px; overflow: hidden; transition: max-height 450ms var(--ease), opacity 400ms var(--ease), margin 450ms var(--ease), padding 450ms var(--ease); }
.consent.closing { max-height: 0 !important; opacity: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.consent-lead { margin: 0 0 16px; font-size: 20px; color: var(--ink); }
.consent-check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 15px; letter-spacing: 0.01em; }
.consent-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.consent-terms { margin: 6px 0 0 34px; }
.consent-terms .link { font-family: var(--label); font-size: 13px; color: var(--warm); }
.terms { margin: 8px 0 0 34px; font-size: 13px; color: var(--warm); line-height: 1.55; }
.doclist { margin: 0 0 16px; font-size: 14px; color: var(--text); }
.doclist p { margin: 0 0 4px; font-weight: 500; }
.doclist ol { margin: 0; padding-left: 20px; color: var(--warm); }
.docsheet + .docsheet { margin-top: 44px; }
.dochead { margin: 0 0 14px; padding: 0 4px; }
.docnum { margin: 0 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--warm); }
.doctitle { margin: 0; font: 500 22px/1.3 var(--serif); color: var(--ink); }
.questions { margin: 28px 0 0; text-align: center; font-size: 13px; }
.questions a { color: var(--warm); text-underline-offset: 3px; }
.terms p { margin: 0 0 8px; }
#continue { margin: 18px 0 0 34px; min-height: 46px; min-width: 150px; }

/* the document (native mode) */
.doc { background: var(--ivory); border: 1px solid var(--hair); padding: 72px 80px 84px; font-size: 18px; line-height: 1.75; color: var(--text); }
.doc h1, .doc h2 { font-size: 21px; font-weight: 600; line-height: 1.35; margin: 1.8em 0 0.7em; color: var(--ink); letter-spacing: 0.02em; }
.doc h2:first-child, .doc h1:first-child { margin-top: 0; text-align: center; font-variant-caps: all-small-caps; letter-spacing: 0.1em; font-size: 24px; font-weight: 500; }
.doc h3 { font-size: 18px; font-style: italic; font-weight: 500; margin: 1.5em 0 0.4em; color: var(--ink); }
.doc p, .doc li { margin: 0 0 0.9em; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc hr { border: 0; border-top: 1px solid var(--hair); margin: 2.4em auto; width: 40%; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.4em; font-size: 16px; line-height: 1.45; }
.doc th, .doc td { border-bottom: 1px solid var(--hair); padding: 8px 8px; text-align: left; vertical-align: bottom; }
.doc th { font-family: var(--label); font-size: 12px; font-weight: 500; color: var(--warm); letter-spacing: 0.02em; border-bottom-color: rgba(15, 28, 46, 0.3); }
.doc td .in { width: 100%; }

/* inline fields */
.fw { display: inline-block; position: relative; white-space: nowrap; max-width: 100%; }
.doc td .fw { display: block; }
/* Required marker: a small navy dot inside the empty field's top left corner. It takes no space in the sentence. */
.ast { position: absolute; left: 4px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); font-size: 0; pointer-events: none; transition: opacity 400ms var(--ease); }
.in, .dialog input, select.in { font-variant-caps: normal; letter-spacing: normal; text-transform: none; }
.in { font-family: var(--serif); font-size: 18px; line-height: 1.3; color: var(--ink); background: var(--tint); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 2px 8px 1px 12px; max-width: 100%; min-height: 30px; vertical-align: baseline; transition: background-color 400ms var(--ease); }
.in::placeholder { color: #8a92a0; font-style: italic; }
.in.filled { background: transparent; }
.in:focus { outline: none; background: #e6ebf2; border-bottom-color: var(--ink); }
select.in { padding-right: 22px; }
.rd { width: 17px; height: 17px; margin: 0 8px 0 0; vertical-align: -0.12em; accent-color: var(--ink); }
.sigbox { display: inline-flex; align-items: center; min-width: 200px; min-height: 44px; padding: 0 12px 0 14px; vertical-align: middle; background: var(--tint); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; color: var(--ink); font-family: var(--label); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; transition: background-color 400ms var(--ease); }
.sigbox.ini { min-width: 70px; }
.sigbox.filled { background: transparent; padding: 0 4px; }
.sigbox img { height: 42px; max-width: 250px; object-fit: contain; display: block; }
.auto { color: var(--ink); }
.merge { color: var(--ink); }
.merge.b { font-weight: 600; }
.later { color: #9a958c; font-style: italic; }
.line { display: inline-block; border-bottom: 1px solid var(--rule); height: 1.1em; vertical-align: -0.2em; max-width: 100%; }
.other { color: var(--ink); }
.flash { animation: settle 450ms var(--ease) 1; }
@keyframes settle { 0% { box-shadow: 0 0 0 5px rgba(15, 28, 46, 0.16); } 100% { box-shadow: 0 0 0 5px rgba(15, 28, 46, 0); } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } .consent, .in, .sigbox, .primary { transition: none; } }
.field-error { display: block; margin: 4px 0 0; color: var(--alert); font: italic 16px/1.4 var(--serif); white-space: normal; }

/* overlay mode (third-party PDFs) */
.pages .page { position: relative; background: #fff; margin: 0 0 22px; outline: 1px solid var(--hair); }
.pages canvas { display: block; width: 100%; height: auto; }
.ov { position: absolute; margin: 0; padding: 0 3px; border: 0; border-radius: 0; font-family: "Times New Roman", Times, serif; color: var(--ink); background: var(--tint); box-shadow: inset 0 -1px 0 var(--rule); }
.ov.filled { background: transparent; box-shadow: none; }
.ov:focus { background: #fff; outline: 1px solid var(--ink); outline-offset: 1px; }
.ov.box { padding: 0; accent-color: var(--ink); }
.ov.sig { cursor: pointer; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px !important; text-align: left; white-space: nowrap; overflow: hidden; display: flex; align-items: center; }
.ov.sig img { height: 100%; width: auto; max-width: 100%; }
.ov.txt { background: transparent; box-shadow: none; white-space: nowrap; overflow: hidden; pointer-events: none; display: flex; align-items: flex-end; font-style: italic; color: #8a857c; }
.ov-req { position: absolute; margin: 3px 0 0 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); font-size: 0; pointer-events: none; }

/* done */
.done { background: var(--ivory); border: 1px solid var(--hair); padding: 88px 24px 96px; text-align: center; margin-top: 12px; }
.done-title { margin: 0; font-size: 40px; font-weight: 500; color: var(--ink); letter-spacing: 0.01em; }
.done-rule { width: 48px; border: 0; border-top: 1px solid var(--rule); margin: 22px auto; }
.done-thanks { margin: 0 0 18px; font-size: 20px; font-style: italic; color: var(--text); }

/* dialogs */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(15, 28, 46, 0.28); }
.dialog { position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(540px, calc(100% - 40px)); background: var(--ivory); padding: 30px 32px 28px; border: 1px solid var(--hair); box-shadow: 0 18px 48px rgba(15, 28, 46, 0.08); }
.dialog h2 { margin: 0 0 18px; font-size: 24px; font-weight: 500; color: var(--ink); }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.dialog-actions .primary { min-height: 48px; min-width: 170px; }
.ad-row { display: flex; gap: 12px; }
.ad-row label, .fs-label { display: block; font-size: 12.5px; color: var(--warm); letter-spacing: 0.02em; }
.ad-name { flex: 1; }
.ad-ini { width: 104px; }
.dialog input { display: block; width: 100%; margin-top: 4px; font-family: var(--serif); font-size: 19px; color: var(--ink); padding: 9px 4px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; border-radius: 0; }
.dialog input:focus { outline: none; border-bottom-color: var(--ink); }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--hair); margin: 20px 0 12px; }
.tab { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 8px 0; font-size: 13px; letter-spacing: 0.02em; color: var(--warm); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ad-box { display: flex; gap: 12px; }
#ad-sig { flex: 1; min-width: 0; height: 112px; border: 1px solid var(--hair); background: #fff; touch-action: none; }
#ad-ini { width: 104px; height: 112px; border: 1px solid var(--hair); background: #fff; touch-action: none; }
.ad-hint { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--warm); margin: 8px 0 0; }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--warm); margin: 14px 0 0; }
.field-error#fs-error { margin-top: 8px; }

@media (max-width: 699px) {
  .doc-title, .lockup { display: none !important; }
  .markonly { display: block !important; }
  .bar-in { gap: 12px; padding: 0 14px; }
  .count { flex: 1; text-align: right; font-size: 12px; white-space: normal; line-height: 1.3; }
  .doctitle { font-size: 20px; }
  .dochead { padding: 0 18px; }
  .primary { min-height: 44px; padding: 0 18px; }
  .canvas { padding: 14px 0 110px; }
  .consent { border-left: 0; border-right: 0; padding: 22px 18px 24px; }
  .consent-terms, .terms, #continue { margin-left: 0; }
  #continue { width: 100%; min-height: 50px; }
  .doc { border-left: 0; border-right: 0; padding: 36px 20px 48px; font-size: 17px; line-height: 1.7; }
  .doc h2:first-child, .doc h1:first-child { font-size: 21px; }
  .in { font-size: 16px; min-height: 40px; }
  .rd { width: 22px; height: 22px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { border-top: 1px solid var(--hair); padding: 12px 0 8px; }
  .doc td { border: 0; padding: 4px 0; }
  .doc td::before { content: attr(data-label); display: block; font-family: var(--label); font-size: 12px; color: var(--warm); letter-spacing: 0.02em; }
  .doc td:first-child { font-weight: 600; color: var(--ink); }
  .doc td:first-child::before { content: "Row"; display: inline; margin-right: 5px; font-family: var(--serif); font-size: 17px; letter-spacing: 0; color: var(--ink); }
  .pages .page { outline: 0; margin-bottom: 12px; }
  .dialog { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); border-left: 0; border-right: 0; border-bottom: 0; }
  .done { border-left: 0; border-right: 0; padding: 72px 20px 80px; }
}
.count { transition: opacity 450ms var(--ease); }
.count.note { color: var(--ink); }
.count.fading { opacity: 0; }

/* Download PDF: a quiet text control with a small glyph. */
.dl-wrap { position: relative; }
.dl { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font-family: var(--label); font-size: 13px; letter-spacing: 0.02em; color: var(--warm); cursor: pointer; white-space: nowrap; }
.dl:hover, .dl:focus-visible { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.dlg { width: 11px; height: 11px; flex: none; }
.dlmenu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 280px; max-width: 380px; padding: 6px 0; background: var(--ivory); border: 1px solid var(--rule); box-shadow: 0 12px 32px -18px var(--ink); z-index: 40; }
.dlitem { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 18px; font: 16px/1.35 var(--serif); color: var(--ink); cursor: pointer; }
.dlitem:first-child { border-bottom: 1px solid var(--hair); margin-bottom: 4px; padding-bottom: 11px; }
.dlitem:hover, .dlitem:focus-visible { background: var(--stone); outline: none; }
.dl-line { margin: 8px 0 0; }
.consent .dl-line { margin-top: 18px; }
.dl-solo { display: none; margin: 0 0 12px; padding: 0 4px; }
@media (max-width: 699px) {
  .bar .dl-wrap { display: none; }
  .dl-solo { display: block; padding: 0 18px; }
}
