/* MIDNYTE — service agreement styling.

   Shared by contract.html, where the client reads and signs it, and by the
   preview beside the editor in the admin. One sheet, so the thing you are
   looking at while you write it is the thing they receive.

   Everything sets its own colour rather than inheriting, because the admin
   around the preview is dark and the document is not.
*/

.mo-page.ct-page{
  /* the offer sheet pins .mo-page to a 1440x810 slide with overflow hidden,
     which silently cut this document off after its second clause wherever
     both stylesheets are loaded; an agreement is as long as it is */
  width:auto; height:auto; overflow:visible;
  max-width:820px; margin:0 auto; background:#FAF9F5; color:#1A1C1B;
  font-family:'IBM Plex Sans',system-ui,sans-serif;
  box-shadow:0 18px 50px -24px rgba(0,0,0,.25);
}
/* and .mo-pad takes it out of the flow entirely */
.ct-page .ct-pad{ position:static; inset:auto; }
.ct-pad{ padding:62px 68px 72px; }

.ct-page .mo-eyebrow{
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:11px;
  letter-spacing:.18em; color:#6B706D;
}
.ct-top{
  display:flex; align-items:baseline; justify-content:space-between; gap:20px;
  padding-bottom:16px; border-bottom:1px solid #1A1C1B;
}
.ct-logo{
  font-weight:600; font-style:italic; font-size:20px; letter-spacing:-.02em; color:#1A1C1B;
}
.ct-logo sup{ font-size:9px; font-style:normal; vertical-align:super; }
.ct-title{
  font-family:'Newsreader',Georgia,serif; font-weight:400; font-size:44px; line-height:1.1;
  margin:52px 0 10px; letter-spacing:-.01em; color:#1A1C1B;
}
.ct-sub{ margin-bottom:46px; }
.ct-parties{ display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-bottom:46px; }
.ct-party-l{ margin-bottom:10px; }
.ct-party{ font-size:14px; line-height:1.75; color:#1A1C1B; }

.ct-body{ font-size:14px; color:#1A1C1B; }
.ct-h{
  font-family:'Newsreader',Georgia,serif; font-weight:500; font-size:21px;
  margin:38px 0 14px; position:relative; padding-left:26px; color:#1A1C1B;
}
.ct-h .ct-n{
  position:absolute; left:0; top:5px; font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:12px; color:#6B706D; font-weight:400;
}
.ct-cl{ display:flex; gap:16px; margin-bottom:14px; align-items:flex-start; }
.ct-cn{
  flex:0 0 42px; font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:11px; color:#9A9E9B; padding-top:4px;
}
.ct-t{ flex:1; line-height:1.72; color:#1A1C1B; }

.ct-tbl{ width:100%; border-collapse:collapse; margin:18px 0 22px; }
.ct-tbl th, .ct-tbl td{
  text-align:left; padding:11px 0; border-bottom:1px solid #E3E1DA;
  vertical-align:top; line-height:1.6;
}
.ct-tbl thead th{ border-bottom:1px solid #1A1C1B; padding-bottom:9px; }
.ct-tbl .ct-k{
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:11px; letter-spacing:.1em;
  color:#6B706D; width:42%; padding-right:20px;
}
.ct-tbl tbody .ct-k{
  font-family:'IBM Plex Sans',system-ui,sans-serif; font-size:14px;
  letter-spacing:0; color:#1A1C1B;
}
.ct-tbl-dpa tbody .ct-k{
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:11px;
  letter-spacing:.1em; color:#6B706D;
}
.ct-tbl .ct-v{ font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:13px; color:#1A1C1B; }
.ct-tbl-dpa .ct-v{ font-family:'IBM Plex Sans',system-ui,sans-serif; font-size:14px; }

.ct-sigs{ display:grid; grid-template-columns:1fr 1fr; gap:48px; margin-top:26px; }
.ct-sig-line{ border-bottom:1px solid #1A1C1B; min-height:34px; padding:6px 2px; font-size:15px; color:#1A1C1B; }
.ct-sig-name{
  font-family:'Newsreader',Georgia,serif; font-size:21px; font-style:italic;
  min-height:42px; margin-top:26px;
}
.ct-sig-l{ margin:7px 0 4px; }
.ct-sig-print{ font-size:14px; color:#1A1C1B; }
.ct-audit{
  margin-top:30px; padding-top:14px; border-top:1px solid #E3E1DA;
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:11px;
  color:#6B706D; line-height:1.7;
}

@media print{
  .ct-page{ box-shadow:none; max-width:none; }
  .ct-pad{ padding:0; }
  .ct-h{ break-after:avoid; }
  .ct-cl, .ct-tbl, .ct-sigs{ break-inside:avoid; }
}
@media(max-width:720px){
  .ct-pad{ padding:34px 24px 44px; }
  .ct-title{ font-size:32px; }
  .ct-parties, .ct-sigs{ grid-template-columns:1fr; gap:26px; }
}
