/* ==========================================================================
   Document rendering — paper on canvas
   Fixed 816×1056 page-space; scaled by transform so field coords stay stable.
   ========================================================================== */

.dp-page {
  position: relative;
  flex: none;
  background: var(--paper);
  border-radius: 1px;
  box-shadow: var(--sh-paper);
  overflow: hidden;
  color: var(--paper-ink);
  contain: layout paint;
}
:root[data-theme="dark"] .dp-page { box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 14px 32px -8px rgba(0,0,0,.7); }

.dp-paper { position: absolute; inset: 0; }
.dp-inner {
  position: absolute; top: 0; left: 0;
  width: 816px; height: 1056px;
  transform-origin: 0 0;
  background: var(--paper);
  display: flex; flex-direction: column;
}

.dp-pagewrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dp-pagelabel { font-size: var(--fs-11); color: var(--tx-3); font-variant-numeric: tabular-nums; }

/* running head / foot */
.dp-runhead, .dp-runfoot {
  flex: none;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 68px;
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #98a2ad;
}
.dp-runhead { height: 46px; padding-top: 26px; border-bottom: .5px solid #eceff2; margin: 0 0 6px; }
.dp-runfoot { height: 44px; padding-bottom: 26px; align-items: flex-end; margin-top: auto; }

.dp-body {
  flex: 1 1 auto;
  padding: 18px 68px 8px;
  font-family: var(--font-serif);
  font-size: 11.4px;
  line-height: 1.62;
  color: #1c2126;
  overflow: hidden;
}
.dp-page--sans .dp-body { font-family: var(--font-sans); font-size: 11px; }

/* ------------------------------------------------------------ typography */
.dp-title {
  font-family: var(--font-sans);
  font-size: 20px; font-weight: 660; letter-spacing: -.015em;
  line-height: 1.22; margin: 6px 0 4px; color: #10151b;
}
.dp-subtitle {
  font-family: var(--font-sans);
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: #8a949f; margin-bottom: 18px; font-weight: 560;
}
.dp-pagetitle { text-align: center; margin: 4px 0 22px; }
.dp-pagetitle__t {
  font-family: var(--font-sans); font-size: 15px; font-weight: 660;
  letter-spacing: .02em; text-transform: uppercase;
}
.dp-pagetitle__s { font-size: 10.5px; color: #7d8792; margin-top: 5px; font-family: var(--font-sans); }

.dp-h1 {
  font-family: var(--font-sans);
  font-size: 12.5px; font-weight: 640; letter-spacing: .01em;
  text-transform: uppercase;
  margin: 18px 0 7px; color: #131a21;
  display: flex; gap: 8px;
}
.dp-h2 {
  font-family: var(--font-sans);
  font-size: 11.5px; font-weight: 640; margin: 14px 0 5px; color: #1a222a;
  display: flex; gap: 7px;
}
.dp-h3 { font-size: 11px; font-weight: 700; margin: 11px 0 4px; display: flex; gap: 6px; font-style: italic; }
.dp-num { font-variant-numeric: tabular-nums; color: #55636f; flex: none; }

.dp-lead { font-size: 11.8px; line-height: 1.66; margin: 0 0 12px; }
.dp-p { margin: 0 0 8.5px; text-align: justify; hyphens: auto; }
.dp-p--indent { text-indent: 22px; }
.dp-p--small { font-size: 10.2px; line-height: 1.55; color: #3f4a55; }
.dp-p--center { text-align: center; }
.dp-caps {
  font-size: 10.2px; line-height: 1.5; text-transform: uppercase;
  letter-spacing: .015em; font-weight: 600; margin: 0 0 10px;
  border: 1px solid #dde2e7; padding: 9px 11px; background: #fbfcfd;
}

.dp-clause { margin: 0 0 9px; }
.dp-clause__head { display: flex; gap: 7px; align-items: baseline; margin-bottom: 2px; }
.dp-clause__num {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 640;
  color: #2b333c; font-variant-numeric: tabular-nums; flex: none; min-width: 26px;
}
.dp-clause__title { font-family: var(--font-sans); font-size: 10.6px; font-weight: 640; }
.dp-clause__body { margin: 0 0 0 33px; text-align: justify; }

.dp-ol, .dp-ul { margin: 4px 0 10px; padding: 0; }
.dp-li { display: flex; gap: 8px; margin-bottom: 4.5px; align-items: baseline; }
.dp-li__mark { flex: none; min-width: 20px; color: #55636f; font-variant-numeric: tabular-nums; }

.dp-rule { height: 1px; background: var(--paper-rule); margin: 14px 0; }
.dp-quote {
  margin: 10px 0 12px; padding: 2px 0 2px 14px;
  border-left: 2.5px solid #cfd6de; color: #3f4a55; font-style: italic;
}

.dp-mono { font-family: var(--font-mono); font-size: 10px; background: #f4f6f8; padding: 0 3px; border-radius: 2px; }
.dp-blank { display: inline-block; border-bottom: 1px solid #6d7d8e; height: 11px; vertical-align: -2px; }

/* ---------------------------------------------------------------- table */
.dp-table {
  width: 100%; margin: 8px 0 14px;
  font-family: var(--font-sans); font-size: 9.8px;
  border: 1px solid #d7dde3;
}
.dp-table th {
  background: #f2f5f8; text-align: left; font-weight: 640;
  padding: 6px 8px; border-bottom: 1px solid #d7dde3;
  text-transform: uppercase; letter-spacing: .04em; font-size: 8.8px; color: #46525e;
}
.dp-table td { padding: 6px 8px; border-bottom: 1px solid #e6eaee; vertical-align: top; line-height: 1.45; }
.dp-table tbody tr:last-child td { border-bottom: 0; }
.dp-table--dense th, .dp-table--dense td { padding: 4px 6px; }
.dp-td--r { text-align: right; font-variant-numeric: tabular-nums; }

.dp-kv {
  display: grid; grid-template-columns: 150px 1fr;
  gap: 5px 12px; margin: 8px 0 14px;
  font-family: var(--font-sans); font-size: 10.2px;
}
.dp-kv__k { color: #6d7d8e; font-weight: 560; }
.dp-kv__v { color: #1b2128; }

/* --------------------------------------------------------------- notice */
.dp-notice {
  margin: 10px 0 13px; padding: 10px 12px;
  border: 1px solid #dde3e9; border-left: 3px solid #91a0b0;
  background: #f8fafb; font-size: 10.4px; line-height: 1.55;
}
.dp-notice__h {
  font-family: var(--font-sans); font-weight: 660; font-size: 9.6px;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; color: #46525e;
}
.dp-notice--warn { border-left-color: #c99a20; background: #fffbf3; }
.dp-notice--legal { border-left-color: #2c5ce6; background: #f6f9ff; }
.dp-notice--red { border-left-color: #c22e2e; background: #fdf6f6; }

/* -------------------------------------------------------------- exhibit */
.dp-exhibit { text-align: center; margin: 26px 0 20px; }
.dp-exhibit__label {
  font-family: var(--font-sans); font-size: 11px; font-weight: 680;
  letter-spacing: .18em; text-transform: uppercase; color: #2b333c;
}
.dp-exhibit__title { font-size: 12.5px; margin-top: 7px; font-style: italic; }

/* ------------------------------------------------------------------ toc */
.dp-toc { margin: 12px 0 16px; font-family: var(--font-sans); font-size: 10.4px; }
.dp-toc__row { display: flex; align-items: baseline; gap: 7px; padding: 3.5px 0; }
.dp-toc__n { width: 26px; color: #6d7d8e; font-variant-numeric: tabular-nums; flex: none; }
.dp-toc__l { flex: none; max-width: 74%; }
.dp-toc__dots { flex: 1; border-bottom: 1px dotted #b6c1cd; transform: translateY(-3px); }
.dp-toc__p { flex: none; color: #55636f; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- form */
.dp-formrow { margin-bottom: 11px; font-family: var(--font-sans); }
.dp-formrow__label {
  font-size: 9.2px; font-weight: 620; text-transform: uppercase;
  letter-spacing: .05em; color: #55636f; margin-bottom: 3px;
}
.dp-req { color: #c22e2e; margin-left: 2px; }
.dp-formrow__box {
  height: 26px; border: 1px solid #c3ccd5; background: #fcfdfe;
  border-radius: 2px; display: flex; align-items: center; padding: 0 7px;
}
.dp-formrow__hint { font-size: 9px; color: #a4aeb8; font-style: italic; }

.dp-formgrid { display: grid; gap: 10px 14px; margin: 10px 0 14px; }
.dp-formcell__label {
  font-family: var(--font-sans); font-size: 9px; font-weight: 620;
  text-transform: uppercase; letter-spacing: .05em; color: #55636f; margin-bottom: 3px;
}
.dp-formcell__box {
  min-height: 24px; border: 1px solid #c3ccd5; background: #fcfdfe;
  border-radius: 2px; padding: 4px 7px; font-family: var(--font-sans); font-size: 10px;
}
.dp-formcell__v { color: #2b333c; }

.dp-checkline { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 7px; font-size: 10.6px; }
.dp-checkbox {
  flex: none; width: 11px; height: 11px; border: 1.2px solid #55636f;
  border-radius: 1.5px; margin-top: 2.5px; background: #fff;
}

/* ------------------------------------------------------------ signature */
.dp-sigblock {
  display: grid; gap: 30px; margin: 22px 0 16px;
  page-break-inside: avoid;
}
.dp-sigcol__party {
  font-family: var(--font-sans); font-size: 9.2px; font-weight: 660;
  text-transform: uppercase; letter-spacing: .07em; color: #46525e; margin-bottom: 8px;
}
.dp-sigline { border-bottom: 1px solid #46525e; margin-bottom: 5px; }
.dp-sigcol__label {
  font-family: var(--font-sans); font-size: 8.8px; text-transform: uppercase;
  letter-spacing: .06em; color: #6d7d8e; font-weight: 560;
}
.dp-sigcol__sub { font-size: 9.6px; color: #55636f; margin-top: 4px; font-family: var(--font-sans); }
.dp-sigcol__extra { margin-top: 15px; display: flex; flex-direction: column; gap: 13px; }
.dp-sigsmall__line { height: 22px; border-bottom: 1px solid #91a0b0; margin-bottom: 4px; }
.dp-sigsmall__label {
  font-family: var(--font-sans); font-size: 8.4px; text-transform: uppercase;
  letter-spacing: .06em; color: #7d8792;
}
.dp-initialsline {
  display: flex; align-items: flex-end; gap: 12px; margin: 14px 0;
  font-size: 10.4px; color: #46525e; font-family: var(--font-sans);
}
.dp-initbox { width: 74px; height: 30px; border: 1px dashed #a4aeb8; border-radius: 2px; }
.dp-signhere {
  width: 190px; height: 42px; border: 1px dashed #b6c1cd; border-radius: 2px;
  display: grid; place-content: center; font-family: var(--font-sans);
  font-size: 9px; text-transform: uppercase; letter-spacing: .07em; color: #a4aeb8;
  margin: 12px 0;
}

.dp-columns { display: grid; gap: 22px; margin: 10px 0; }
.dp-stamp {
  display: inline-block; transform: rotate(-6deg);
  border: 2px solid #b03a3a; color: #b03a3a; border-radius: 4px;
  padding: 5px 12px; font-family: var(--font-sans); font-weight: 700;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .82;
  margin: 12px 0;
}

.dp-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.dp-logo__mark {
  width: 26px; height: 26px; border-radius: 6px; background: #2c5ce6; color: #fff;
  display: grid; place-content: center; font-family: var(--font-sans);
  font-weight: 700; font-size: 13px;
}
.dp-logo__name { font-family: var(--font-sans); font-weight: 660; font-size: 12px; letter-spacing: -.01em; }
.dp-logo__tag { font-family: var(--font-sans); font-size: 8.6px; color: #8a949f; letter-spacing: .07em; text-transform: uppercase; }
.dp-address { font-family: var(--font-sans); font-size: 9.6px; color: #55636f; line-height: 1.5; margin-bottom: 14px; }

/* ---------------------------------------------------------- thumbnails */
.dp-page--thumb { box-shadow: 0 1px 2px rgba(16,24,40,.14); border: 1px solid var(--br-2); border-radius: 2px; }
.dp-page--thumb .dp-runhead, .dp-page--thumb .dp-runfoot { border: 0; }
