/* ============================================================
   THE CLEMONS FORMAT™ — Shared print stylesheet
   Derived from filings by Dustin L. Clemons (LASC 25STCV11123,
   C.D. Cal. 5:25-cv-01404, 9th Cir. 25-6944, C.D. Cal. 5:25-cv-03000).
   Structural conventions only. ADS is not a law firm.
   ============================================================ */

/* ----- 1. Page setup — Letter, court-standard 1" margins ----- */
@page { size: letter; margin: 1in; }

@media screen {
  body {
    background: #f0e7ce;
    margin: 0; padding: 28px;
    font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
  }
  .court-page {
    background: white;
    width: 8.5in;
    min-height: 11in;
    margin: 0 auto 24px;
    padding: 1in;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
    box-sizing: border-box;
    position: relative;
  }
}

@media print {
  body { background: white; padding: 0; margin: 0; }
  .court-page { box-shadow: none; padding: 0; margin: 0; width: auto; }
  .no-print { display: none !important; }
}

/* ----- 2. Body type — Times New Roman 12pt, double-spaced ----- */
.court-page, .court-page * {
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
  font-size: 12pt;
  line-height: 2.0;
  color: #000;
}

/* ----- 3. Address block (upper-left) ----- */
.address-block {
  font-size: 12pt;
  line-height: 1.3;
  margin-bottom: 36pt;
  white-space: pre-line;
}
.address-block .party-name {
  font-weight: 700;
  text-transform: uppercase;
}

/* ----- 4. Court header (centered, all caps) ----- */
.court-header {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  margin: 18pt 0 24pt;
  line-height: 1.4;
}

/* ----- 5. Caption table — STATE format (parties left, info right, ) rule between) ----- */
.caption-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24pt 0;
  page-break-inside: avoid;
}
.caption-table td {
  padding: 4pt 8pt;
  vertical-align: top;
  font-size: 12pt;
  line-height: 1.4;
}
.caption-table .col-parties {
  width: 50%;
  text-transform: uppercase;
}
.caption-table .col-rule {
  width: 12pt;
  text-align: center;
  font-family: 'Times New Roman', serif;
  letter-spacing: 0;
  white-space: pre-line;
  color: #000;
}
.caption-table .col-info {
  width: calc(50% - 12pt);
}
.caption-table .col-info .doc-title {
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 6pt;
}

/* ----- 6. Federal & appellate caption (single column, centered) ----- */
.caption-fed {
  text-align: center;
  margin: 0 0 24pt 0;
  page-break-inside: avoid;
}
.caption-fed .case-number {
  font-weight: 700;
  margin-bottom: 12pt;
}
.caption-fed hr.appellate-rule {
  border: 0;
  border-top: 1.5pt solid #000;
  margin: 12pt 0;
  width: 100%;
}
.caption-fed .parties-block {
  text-transform: uppercase;
  font-weight: 700;
  margin: 12pt 0;
  line-height: 1.5;
}
.caption-fed .v-line {
  font-style: italic;
  font-weight: 400;
  margin: 6pt 0;
}
.caption-fed .doc-title {
  font-weight: 700;
  text-transform: uppercase;
  margin: 12pt 0;
  font-size: 13pt;
}

/* ----- 7. Salutation ----- */
.salutation {
  font-weight: 700;
  text-transform: uppercase;
  margin: 18pt 0 12pt;
  line-height: 1.5;
}

/* ----- 8. Section headings — Roman / sub-letter ----- */
h2.section-roman {
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin: 24pt 0 12pt;
  page-break-after: avoid;
}
h3.section-letter {
  font-size: 12pt;
  font-weight: 700;
  margin: 18pt 0 6pt;
  page-break-after: avoid;
}
h3.section-letter .lead {
  font-weight: 700;
}
p { margin: 0 0 12pt 0; text-align: justify; }
p.indented { text-indent: 0.5in; }

/* ----- 9. Numbered paragraphs (federal complaints) ----- */
ol.numbered-paragraphs {
  counter-reset: para;
  list-style: none;
  padding: 0; margin: 12pt 0;
}
ol.numbered-paragraphs > li {
  counter-increment: para;
  position: relative;
  padding-left: 0.5in;
  margin-bottom: 12pt;
  text-align: justify;
}
ol.numbered-paragraphs > li::before {
  content: counter(para) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ----- 10. Verification block ----- */
.verification {
  margin: 36pt 0 24pt;
  page-break-inside: avoid;
}
.verification .body {
  margin-bottom: 24pt;
  text-align: justify;
}
.signature-block {
  margin-top: 24pt;
  line-height: 1.6;
}
.signature-block .dated { display: block; }
.signature-block .sigmark {
  display: block;
  margin-top: 18pt;
  font-family: 'Times New Roman', serif;
}
.signature-block .name {
  display: block;
  text-transform: uppercase;
  font-weight: 700;
}
.signature-block .designation {
  display: block;
  font-style: italic;
}
.signature-block .blank-line {
  display: inline-block;
  border-bottom: 1pt solid #000;
  width: 3in;
  margin-top: 18pt;
}

/* ----- 11. Exhibit / Bates references ----- */
.exhibit-ref {
  font-style: italic;
}
.bates {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11pt;
}

/* ----- 12. Citations ----- */
cite {
  font-style: italic;
}

/* ----- 13. Footer / page header ----- */
.doc-footer-title {
  position: absolute;
  bottom: 0.4in;
  left: 1in; right: 1in;
  text-align: center;
  font-size: 11pt;
  font-style: italic;
  border-top: 0.5pt solid #ccc;
  padding-top: 4pt;
}

/* ----- 14. THE CLEMONS FORMAT™ BADGE (end-of-document) ----- */
.clemons-badge {
  margin: 36pt 0 0;
  padding: 14pt 0 4pt;
  border-top: 0.5pt solid #BFAF8B;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 9pt;
  color: #835A1F;
  line-height: 1.4;
  page-break-inside: avoid;
}
.clemons-badge .badge-mark {
  font-weight: 600;
  letter-spacing: 0.04em;
}
.clemons-badge .badge-domain {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 8.5pt;
  font-style: normal;
  letter-spacing: 0.06em;
  color: #4D3F2F;
}
.clemons-badge .badge-disclaimer {
  display: block;
  font-size: 8pt;
  color: #82704F;
  margin-top: 4pt;
  font-style: italic;
}

/* ----- 14b. PAGE STAMP — running footer on EVERY .court-page ----- */
/* Stamps every page with "Clemons Format™ — adslaw.ai" so the trademark
   appears on each leaf of any filed document. Sits in the bottom margin
   below the body text, prints cleanly, won't conflict with court rules
   (it's not in the bound margin). Each page MUST include <div class="page-stamp">…</div>
   markup — the CSS only styles, does not auto-inject. */
.page-stamp {
  position: absolute;
  left: 1in;
  right: 1in;
  bottom: 0.35in;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4pt;
  border-top: 0.4pt solid #BFAF8B;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 8.5pt;
  color: #835A1F;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.page-stamp .stamp-mark {
  font-weight: 600;
}
.page-stamp .stamp-mark .tm {
  font-size: 6pt;
  vertical-align: super;
  letter-spacing: 0;
  font-weight: 700;
}
.page-stamp .stamp-domain {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-style: normal;
  font-size: 7.5pt;
  letter-spacing: 0.08em;
  color: #4D3F2F;
}
.page-stamp .stamp-pageno {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-style: normal;
  font-size: 7.5pt;
  color: #82704F;
}
@media print {
  .page-stamp { color: #835A1F !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ----- 14c. CORNER STAMP — diagonal watermark in upper-right (subtle) -----
   Optional — adds a small embossed-look mark in the corner of every page.
   Does NOT cover content. Comment out the corner block to hide. */
.page-corner-stamp {
  position: absolute;
  top: 0.32in;
  right: 0.4in;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 7.5pt;
  font-weight: 600;
  color: #BFAF8B;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  border: 0.4pt solid #BFAF8B;
  padding: 3pt 6pt;
  border-radius: 1pt;
  background: rgba(255, 255, 255, 0.8);
}
.page-corner-stamp .tm {
  font-size: 5.5pt;
  vertical-align: super;
  font-weight: 700;
}
@media print {
  .page-corner-stamp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ----- 15. State pleading-paper line numbering (CRC 2.108) ----- */
.line-numbers {
  position: absolute;
  left: 0.55in;
  top: 1in;
  bottom: 1in;
  width: 0.3in;
  font-size: 11pt;
  line-height: 2.0;
  text-align: right;
  color: #000;
  font-family: 'Times New Roman', serif;
  pointer-events: none;
  user-select: none;
}
.line-numbers .ln {
  display: block;
  height: 24pt;
  line-height: 24pt;
}
.with-line-numbers {
  padding-left: 1.2in !important;
  border-left: 0.5pt solid #000;
  margin-left: 0.95in;
}

/* ----- 16. Print controls (screen only) ----- */
.print-controls {
  position: fixed;
  top: 12px; right: 12px;
  background: #231A12;
  color: #F8F2DF;
  padding: 10px 14px;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  display: flex; gap: 8px; align-items: center;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.print-controls button {
  background: #A07433;
  color: #F8F2DF;
  border: 0;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.print-controls button:hover { background: #835A1F; }
@media print { .print-controls { display: none !important; } }
