/* ============================================================
   Print styles — simple and conservative.

   Default document format is US Letter — do not change to A4.
   This file's job is only to make the ordinary browser print
   ("Save as PDF") of a single document look clean and formal.
   ============================================================ */

@page {
  size: letter;
  margin: 18mm;
}

* {
  box-shadow: none !important;
}

/* Web-only chrome must never appear in print. */
.no-print,
.site-topbar,
.document-actions,
.document-toc {
  display: none !important;
}

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  /* Latin serif first, then system CJK serif fallbacks for Chinese contracts. */
  font: 10.5pt/1.5 Georgia, "Times New Roman", "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
}

.document,
.site-index {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.document-masthead {
  padding-bottom: 4mm;
  border-bottom: 0.4mm solid #333333;
}

.masthead-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10mm;
}

.masthead-brand,
.masthead-slogan,
.document-kicker,
.identity-facts,
.tag,
dt {
  font-family: Arial, Helvetica, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.masthead-brand {
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead-slogan {
  color: #555555;
  font-size: 6.8pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.document-title-block {
  padding: 8mm 0 0;
}

.document-kicker {
  margin: 0 0 3mm;
  color: #555555;
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 22pt;
  line-height: 1.15;
  font-weight: 600;
  break-after: avoid;
  page-break-after: avoid;
}

/* Executive identity line + quiet status tags */
.document-identity {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6mm;
  margin-top: 4mm;
  padding-top: 3mm;
  border-top: 0.2mm solid #b8b8b8;
}

.identity-facts {
  font-size: 8pt;
  color: #555555;
}

.identity-id {
  font-weight: 700;
}

.identity-sep {
  margin: 0 1.5mm;
  color: #999999;
}

.identity-tags {
  display: flex;
  gap: 4mm;
}

.tag {
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555555;
}

h2,
h3,
h4,
h5 {
  break-after: avoid;
  page-break-after: avoid;
}

h2 {
  margin-top: 9mm;
  padding-top: 4mm;
  border-top: 0.2mm solid #dddddd;
  font-size: 15pt;
}

h3 {
  margin-top: 7mm;
  font-size: 13pt;
}

h4 {
  margin-top: 6mm;
  font-size: 11pt;
}

h5 {
  margin-top: 5mm;
  font-size: 10pt;
}

p,
li,
blockquote,
.callout,
.block-warning {
  orphans: 3;
  widows: 3;
}

:lang(zh) p,
:lang(zh) li,
:lang(zh) blockquote {
  line-break: strict;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* Keep a heading attached to at least the start of its section. */
h2 + p,
h3 + p,
h4 + p {
  break-before: avoid;
  page-break-before: avoid;
}

/* Executive metadata strip */
.document-summary {
  padding: 5mm 0 7mm;
  border-bottom: 0.2mm solid #b8b8b8;
}

.document-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3mm 7mm;
  margin: 0;
}

.document-meta div {
  display: block;
  padding: 0;
  border: 0;
}

dt {
  color: #555555;
  font-size: 6.8pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-family: Arial, Helvetica, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 9pt;
}

ul,
ol {
  margin: 0 0 3mm;
  padding-left: 6mm;
}

li {
  margin: 0 0 1mm;
}

a {
  color: #000000;
  text-decoration: underline;
}

blockquote,
.callout,
.block-warning {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Long code trees may exceed a page; forcing break-inside:avoid would leave
   large blank gaps. Allow breaking, but keep short blocks intact. */
pre {
  break-inside: auto;
  orphans: 4;
  widows: 4;
}

blockquote {
  padding-left: 4mm;
  border-left: 0.4mm solid #555555;
  font-style: italic;
}

.callout,
.block-warning {
  padding: 2mm 3mm;
  border: 0.2mm solid #999999;
}

pre {
  white-space: pre-wrap;
  padding: 3mm;
  border: 0.2mm solid #999999;
  background: #ffffff;
  color: #000000;
  font-size: 8pt;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

img {
  max-width: 100%;
  height: auto;
  break-inside: avoid;
  page-break-inside: avoid;
}

figure {
  break-inside: avoid;
  page-break-inside: avoid;
}

figcaption {
  margin-top: 2mm;
  color: #555555;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8pt;
}

.file-link a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9pt;
}

.table-wrap {
  max-width: 100%;
  overflow: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
}

thead {
  display: table-header-group;
}

tfoot {
  display: table-footer-group;
}

tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

th,
td {
  padding: 1.8mm;
  border: 0;
  border-bottom: 0.2mm solid #b8b8b8;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: #555555;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.8pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer + legal notice */
.document-footer {
  margin-top: 8mm;
  padding-top: 3mm;
  border-top: 0.4mm solid #333333;
  color: #555555;
  font-family: Arial, Helvetica, sans-serif;
  break-inside: avoid;
  page-break-inside: avoid;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 8mm;
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-notice {
  margin: 2mm 0 0;
  font-size: 7pt;
  color: #777777;
}

.register-header {
  padding-bottom: 5mm;
  border-bottom: 0.4mm solid #333333;
}

@media print {
  .wide-table {
    font-size: 7.5pt;
  }
}
