/*
 * BlueFort IT signer pages (sign.bluefortit.com).
 *
 * Brand rules (BlueFort IT BRAND.md): sharp corners everywhere (radius 0),
 * one blue thing per screen (the primary button), no gradients, no shadows or
 * glows. Navy #020f2d for the header and ink, BlueFort Blue #1273F2 for the
 * single primary action, the warm paper palette for the page.
 *
 * Contrast: white on #1273F2 is 4.4:1, so primary buttons use large bold text
 * (19px, 700), which needs 3:1. Body text is at least 16px.
 */

/* Typed signature styles. Unmodified OFL fonts; licences sit beside them. */
@font-face {
  font-family: "Dancing Script";
  src: url("./fonts/DancingScript-Variable.2180862557.ttf") format("truetype");
  font-weight: 400 700;
  font-display: block;
}
@font-face {
  font-family: "Great Vibes";
  src: url("./fonts/GreatVibes-Regular.8d50980218.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "La Belle Aurore";
  src: url("./fonts/LaBelleAurore-Regular.ed67462999.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}

:root {
  --navy: #020f2d;
  --blue: #1273f2;
  --blue-press: #0e62cf;
  --paper: #faf8f3;
  --inset: #f1ede3;
  --card: #ffffff;
  --line: #e4dfd3;
  --line-strong: #8f897c;
  --ink: #16181d;
  --ink-2: #54514a;
  --ink-3: #625d55;
  --danger: #b42318;
  --danger-ink: #7a1a12;
  --danger-bg: #fdf1ef;
  --ok: #1e6b3a;
  --ok-bg: #eef6f0;
  --desk: #e7e2d7;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --bar-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

/* Anything hidden stays hidden, whatever display a class gives it. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}

img { max-width: 100%; }
svg { flex: none; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
ul { list-style-type: square; }
li { margin: 4px 0; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
main:focus, h1:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #fff; color: var(--navy); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- frame --- */

.top { background: var(--navy); }
.top-in { max-width: 940px; margin: 0 auto; padding: 10px 16px; min-height: 56px; display: flex; align-items: center; }
.logo { display: block; width: 122px; height: 36px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.steps { background: var(--card); border-bottom: 1px solid var(--line); }
.steps ol {
  list-style: none; margin: 0 auto; padding: 10px 16px; max-width: 940px;
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px;
}
.step { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--ink-3); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1.5px solid currentColor; font-size: 12px; font-weight: 700; line-height: 1;
}
.step-n svg { width: 14px; height: 14px; }
.step-current { color: var(--navy); font-weight: 700; }
.step-current .step-n { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-done { color: var(--ink-2); }
.step-done .step-n { color: var(--navy); }

.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 32px; color: var(--ink-2); font-size: 15px; }
.foot p { margin: 0 0 8px; }
.foot-ways { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-ways li { margin: 0; }
.foot-ways a { display: inline-block; padding: 6px 0; }
.foot-service { color: var(--ink-3); font-size: 14px; }

/* ---------------------------------------------------------------- type --- */

.intro { padding: 28px 0 8px; }
.intro h1 { margin-bottom: 10px; }
.from { color: var(--ink-2); font-size: 16px; margin-bottom: 8px; }
.from strong { color: var(--ink); }
.lede { font-size: 17px; color: var(--ink); }
.caption { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 8px;
}
.label { display: block; font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.opt { font-weight: 400; color: var(--ink-3); }

.card { background: var(--card); border: 1px solid var(--line); padding: 20px; margin: 16px 0; }
.card > :last-child { margin-bottom: 0; }

.facts { margin: 16px 0 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); }
.facts .caption { margin: 6px 0 0; }
.signers { margin: 0; padding-left: 22px; }
.signers li { margin: 2px 0; }
ul.signers { list-style: square; }
.signers .who { font-weight: 600; }
.signers .you { color: var(--ink-2); }
.tagline { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 700; padding: 1px 6px; border: 1px solid currentColor; }
.tagline-done { color: var(--ok); }

.note { margin: 16px 0; padding: 14px 16px; background: var(--inset); border-left: 4px solid var(--navy); }
.note p { white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }

.hash { font-family: var(--mono); font-size: 13px; word-break: break-all; color: var(--ink); }

/* ------------------------------------------------------------- controls --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; margin: 0;
  border: 2px solid transparent; background: none; color: inherit;
  font: 700 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { text-decoration: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; font-size: 19px; }
.btn-primary:hover:not([disabled]) { background: var(--blue-press); border-color: var(--blue-press); }
.btn-primary:active:not([disabled]) { background: var(--navy); border-color: var(--navy); }
.btn-secondary { background: var(--card); border-color: var(--navy); color: var(--navy); }
.btn-secondary:hover:not([disabled]) { background: var(--inset); }
.btn-danger { background: var(--card); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover:not([disabled]) { background: var(--danger-bg); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.btn-block { display: flex; width: 100%; }
.btn svg { width: 18px; height: 18px; }

.link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0;
  background: none; border: 0; color: var(--navy); font: 600 16px/1.3 var(--sans);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link[disabled] { color: var(--ink-3); text-decoration: none; cursor: not-allowed; }

input[type="text"], input[type="email"], textarea {
  display: block; width: 100%; min-height: 48px; margin: 0;
  padding: 10px 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font: 400 16px/1.4 var(--sans); -webkit-appearance: none; appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
input[type="text"]:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }

.field { margin: 0 0 16px; }

.form-msg { margin: 12px 0; padding: 10px 12px; border-left: 4px solid var(--navy); background: var(--inset); color: var(--ink); font-size: 15px; }
.form-msg[hidden] { display: none; }
.msg-err { border-color: var(--danger); background: var(--danger-bg); color: var(--danger-ink); }
.msg-ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 16px 0 0; }

/* A flat sliding bar: no round spinner, the brand allows no curves. */
.spinner { position: relative; display: inline-block; width: 56px; height: 4px; overflow: hidden; background: var(--line); }
.spinner::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--navy); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { to { left: 100%; } }
.progress { position: relative; display: block; width: 180px; max-width: 60%; height: 4px; background: var(--line); }
.progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); }

/* -------------------------------------------------------- verify inbox --- */

.verify-card .btn-block { margin-top: 4px; }
.code-input {
  font: 700 28px/1 var(--mono) !important; letter-spacing: 0.35em; text-align: center;
  max-width: 260px; padding-left: calc(12px + 0.35em) !important; margin: 0 0 4px !important;
}
.resend { margin-top: 12px; }
.resend p { margin: 0; }
.why { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.why svg { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-2); }

/* -------------------------------------------------------------- consent --- */

.consent h2 { margin-bottom: 4px; }
.consent-lede { color: var(--ink-2); }
.dsec { padding: 12px 0 0; border-top: 1px solid var(--line); margin-top: 12px; }
.dsec:first-of-type { border-top: 0; margin-top: 4px; padding-top: 4px; }
.dsec h3 { margin: 0 0 6px; }
.dsec p, .dsec li { color: var(--ink); }
.dsec ul { margin-bottom: 8px; }
.dcontact { font-size: 15px; }
.consent-form { margin-top: 20px; }

details > summary { cursor: pointer; }
details > summary::-webkit-details-marker { color: var(--ink-2); }
.tech { margin: 16px 0 0; font-size: 15px; }
.tech > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.tech > summary::-webkit-details-marker { display: none; }
.tech > summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tech[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.tech dl { margin: 8px 0 12px; }
.tech dt { font-weight: 700; margin-top: 10px; }
.tech dd { margin: 2px 0 0; }
.tech p { color: var(--ink-2); }
details.tech.card { margin: 16px 0; padding-top: 12px; padding-bottom: 12px; }
details.tech.card > summary { color: var(--navy); }

.decline { margin-top: 12px; }
.decline > summary {
  display: inline-flex; align-items: center; min-height: 44px; list-style: none;
  color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.decline.is-locked > summary { opacity: 0.55; cursor: not-allowed; }
.decline > summary::-webkit-details-marker { display: none; }
.decline[open] > summary { color: var(--ink); }
.decline-form { margin-top: 8px; padding: 16px; border: 1px solid var(--line-strong); background: var(--card); }
.decline-form h3 { margin-bottom: 6px; }
.decline-form textarea { margin-bottom: 4px; }
.count { margin: 0; }

/* ------------------------------------------------------------- document --- */

.doc { margin-top: 24px; }
.doc-bar {
  max-width: 940px; margin: 0 auto; padding: 0 16px 8px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px;
}
.doc-bar p { margin: 0; }
.doc-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.doc-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-weight: 600; }
.doc-links svg { width: 15px; height: 15px; }

.viewer { position: relative; background: var(--desk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 8px 4px; min-height: 240px; }
.pagecount { position: sticky; top: 8px; z-index: 6; height: 0; max-width: 900px; margin: 0 auto; display: flex; justify-content: flex-end; }
.pagecount span { display: inline-block; height: 28px; line-height: 28px; padding: 0 10px; margin-right: 6px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; }
.viewer-status { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 200px; color: var(--ink-2); font-size: 15px; text-align: center; }
.viewer-status[hidden] { display: none; }
.viewer.is-ready .viewer-status { display: none; }
.pages { max-width: 900px; margin: 0 auto; }
.page { position: relative; width: 100%; margin: 0 auto 12px; background: #fff; border: 1px solid #d6d0c2; }
.page canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.page-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px; }
.page.is-drawn .page-ph { display: none; }
.page-layer { position: absolute; inset: 0; }
.viewer-fallback { max-width: 760px; margin: 0 auto; padding: 16px 8px 20px; }
.viewer-fallback .actions { margin: 8px 0 20px; }

/* Field tags on the page. Positions come from the stored layout in percent. */
.tag {
  position: absolute; display: block; margin: 0; padding: 0;
  border: 2px solid var(--blue); background: rgba(18, 115, 242, 0.12); color: var(--navy);
  font: 600 13px/1.1 var(--sans); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.tag::after { content: ""; position: absolute; left: -8px; right: -8px; top: -8px; bottom: -8px; }
.tag-flag {
  position: absolute; left: -2px; bottom: 100%; z-index: 2; white-space: nowrap; pointer-events: none;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 7px;
}
.tag.roomy .tag-flag { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.tag.is-optional { border-style: dashed; }
.tag.is-active { outline: 3px solid var(--navy); outline-offset: 2px; z-index: 3; }
.tag.is-done { background: rgba(255, 255, 255, 0.01); border: 1px dashed rgba(2, 15, 45, 0.4); }
.tag.is-done .tag-flag { display: none; }
.tag.is-done.is-active { outline: 3px solid var(--navy); }
.tag:hover:not(.is-preview) { background-color: rgba(18, 115, 242, 0.2); }
.tag.is-done:hover { background-color: rgba(2, 15, 45, 0.05); }
.tag.is-preview { cursor: default; }
.tag.is-preview::after { display: none; }
.tag img { position: absolute; left: 2px; top: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; pointer-events: none; }
.tag-val {
  position: absolute; left: 3px; right: 3px; top: 0; bottom: 0; display: flex; align-items: center;
  overflow: hidden; white-space: nowrap; color: var(--ink); font-weight: 400; pointer-events: none;
}
.tag-date .tag-val { color: var(--ink-2); }
.tag-checkbox .tag-val { justify-content: center; }
.tag-checkbox.is-done .tag-val::before {
  content: ""; display: block; width: 32%; height: 62%; margin-top: -12%;
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.tag.pulse { animation: pulse 0.9s ease-out 2; }
@keyframes pulse {
  from { outline: 3px solid rgba(18, 115, 242, 0.95); outline-offset: 0; }
  to { outline: 3px solid rgba(18, 115, 242, 0); outline-offset: 14px; }
}

.tag-other { position: absolute; border: 1px dashed var(--line-strong); background: rgba(143, 137, 124, 0.08); pointer-events: none; }
.tag-other span {
  position: absolute; left: 0; bottom: 100%; white-space: nowrap; font-size: 11px; line-height: 1.3;
  color: var(--ink-2); background: rgba(255, 255, 255, 0.92); padding: 1px 4px;
}
.tag-other.roomy span { bottom: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* When the document can't be drawn: the same places as a list. */
.field-list { list-style: none; padding: 0; margin: 0; }
.field-list li { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.field-list .fl-page { width: 64px; flex: none; color: var(--ink-2); font-size: 14px; }
.field-list .tag { position: relative; flex: 1; min-height: 56px; }
.field-list .tag .tag-flag { position: static; display: inline-block; margin: 8px; transform: none; }
.field-list .tag.is-done .tag-flag { display: none; }
.field-list .tag-val { position: absolute; }

.after-doc { padding-top: 12px; }

/* ---------------------------------------------------------- signing bar --- */

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--card); border-top: 2px solid var(--navy);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.bar[hidden] { display: none; }
.bar-in { max-width: 940px; margin: 0 auto; }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-progress { margin: 0; font-size: 15px; color: var(--ink-2); }
.bar-progress strong { color: var(--ink); }
.bar-buttons { display: flex; gap: 8px; flex: none; }
.bar .btn-primary { min-width: 132px; }
.bar .form-msg { margin: 0 0 10px; }
.bar-field { margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.bar-field[hidden] { display: none; }
.bf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.bf-head strong { color: var(--ink); font-size: 16px; }
.bf-row { display: flex; align-items: center; gap: 12px; }
.bf-row .btn { flex: none; }
.bf-preview { height: 44px; max-width: 50%; object-fit: contain; background: #fff; border: 1px dashed var(--line-strong); padding: 2px 6px; }
.bf-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; font-size: 16px; }
.bf-check input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.bf-date { margin: 0; }
.bf-text { display: flex; gap: 8px; }
.bf-text input { flex: 1; }

/* ---------------------------------------------------- signature sheet --- */

.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(2, 15, 45, 0.62); }
.sheet-panel {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100% - 12px); overflow-y: auto;
  overscroll-behavior: contain; background: var(--card); border-top: 4px solid var(--navy);
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  animation: rise 0.18s ease-out;
}
@keyframes rise { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -10px -6px 0; background: none; border: 0; color: var(--navy); cursor: pointer; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.tab {
  flex: 1; min-height: 46px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  font: 600 16px/1 var(--sans); color: var(--ink-2); cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); font-weight: 700; }
.tabpanel[hidden] { display: none; }

.pad { position: relative; width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--line-strong); touch-action: none; }
.pad canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.pad-line { position: absolute; left: 7%; right: 7%; bottom: 26%; border-bottom: 1.5px solid #cfc9bb; pointer-events: none; }
.pad-line span { position: absolute; left: -2px; bottom: 2px; font-size: 20px; line-height: 1; color: #a39d8f; }
.pad-hint { position: absolute; left: 0; right: 0; top: 34%; margin: 0; text-align: center; color: var(--ink-3); font-size: 16px; pointer-events: none; }
.pad.has-ink .pad-hint { display: none; }
.pad-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.pad-tools .caption { margin: 0; }
.pad-actions { display: flex; gap: 18px; flex: none; }

.styles { border: 0; padding: 0; margin: 0; min-width: 0; }
.style { display: block; margin: 0 0 8px; cursor: pointer; }
.style input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px;
  padding: 6px 14px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy);
}
.style input:checked + .style-box { border: 2px solid var(--navy); padding: 5px 13px; background: var(--inset); }
.style input:focus-visible + .style-box { outline: 3px solid var(--navy); outline-offset: 2px; }
.style-sig { font-size: 32px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.style-ini { font-size: 28px; line-height: 1.2; flex: none; }
.styles.no-initials .style-ini, .styles.only-initials .style-sig { display: none; }
.font-dancing { font-family: "Dancing Script", cursive; font-weight: 600; }
.font-vibes { font-family: "Great Vibes", cursive; font-weight: 400; }
.font-aurore { font-family: "La Belle Aurore", cursive; font-weight: 400; }

.sheet-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.sheet-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.sheet-actions .btn { width: 100%; }

/* ------------------------------------------------------- outcome pages --- */

.mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; border: 2px solid currentColor; color: var(--navy); }
.mark svg { width: 28px; height: 28px; }
.mark-ok { color: var(--ok); }
.mark-stop { color: var(--danger); }
.mark-wait, .mark-info { color: var(--navy); }
.next h2 { margin-bottom: 8px; }
.downloads .btn { margin-bottom: 10px; padding-left: 14px; padding-right: 14px; }
.downloads .caption { margin: 4px 0 0; }
.quote { margin-top: 12px; padding: 10px 12px; background: var(--inset); white-space: pre-wrap; overflow-wrap: anywhere; }
.verify-link { margin-top: 8px; }

/* -------------------------------------------------------- verify pages --- */

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 200px; padding: 24px 16px; border: 2px dashed var(--line-strong); background: var(--paper);
  text-align: center; cursor: pointer;
}
.drop:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; }
.drop.is-over { border-color: var(--navy); background: var(--inset); }
.drop-icon svg { width: 40px; height: 40px; color: var(--navy); }
.drop-btn { pointer-events: none; }
.drop-hint { color: var(--ink-2); font-size: 15px; }
@media (hover: none) { .drop-hint { display: none; } }
.card .caption svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

.people { list-style: none; padding: 0; margin: 8px 0 0; }
.people li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.people li:first-child { border-top: 0; }
.people .who { font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 12px 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0; padding: 0 0 14px 16px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; background: var(--navy); }
.timeline time { display: block; font-size: 14px; color: var(--ink-2); }
.timeline p { margin: 2px 0 0; overflow-wrap: anywhere; }
.chain { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* -------------------------------------------------------------- larger --- */

@media (min-width: 720px) {
  h1 { font-size: 32px; }
  .intro { padding-top: 40px; }
  .card { padding: 28px; }
  .viewer { padding: 20px 16px 8px; }
  .sheet { align-items: center; padding: 24px; }
  .sheet-panel { max-height: calc(100% - 48px); padding: 22px 26px 24px; border: 1px solid var(--navy); border-top-width: 4px; }
  .sheet-actions { flex-direction: row-reverse; justify-content: flex-start; }
  .sheet-actions .btn { width: auto; min-width: 160px; }
  .bar { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 440px) {
  .steps ol { gap: 6px 12px; font-size: 13px; padding-left: 12px; padding-right: 12px; }
  .step { gap: 6px; }
  .step-n { width: 20px; height: 20px; font-size: 11px; }
}

@media (max-width: 359px) {
  .step:not(.step-current) .step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bar .btn-primary { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .tag.pulse { outline: 3px solid var(--blue); outline-offset: 3px; }
}

@media (forced-colors: active) {
  .tag, .tag-other, .btn, .style-box { border: 2px solid CanvasText; }
  .tag-flag { forced-color-adjust: none; }
}

@media print {
  .top, .steps, .bar, .sheet, .doc-bar, .decline, .skip { display: none !important; }
  body { background: #fff; padding: 0; }
}
