/* legalworkflowstudio.com
   One typeset legal document: letterhead, numbered clauses, a review margin on
   the right, and blue signature ink wherever an attorney must decide.
   Light theme only. Body text 18px. */

:root {
  --page: #FFFFFF;
  --margin: #F3F3F0;
  --ink: #141414;
  --graphite: #54575C;
  --rule: #C8C8C3;
  --blue: #1B3A8C;
  --blue-tint: #E9EEF9;
  --stamp: #7A1F2E;
  --serif: 'Literata', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --doc: 1180px;
  --note: 330px;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.65;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
strong { font-weight: 600; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; font-family: var(--sans); z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.preview-bar { background: var(--ink); color: #fff; font-family: var(--sans); font-size: 14px; text-align: center; padding: 6px 16px; }

/* Letterhead */
.letterhead { border-bottom: 3px double var(--ink); background: var(--page); }
.letterhead-in { max-width: var(--doc); margin: 0 auto; padding: 18px var(--pad); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.firm { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; }
.firm-name { font-size: 22px; font-weight: 600; letter-spacing: .01em; line-height: 1.2; }
.firm-of { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); margin-top: 3px; }
.letterhead nav { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--sans); font-size: 16px; }
.letterhead nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.letterhead nav a:hover, .letterhead nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.2;
  padding: 14px 22px; background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  text-decoration: none; border-radius: 2px;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { font-size: 15px; padding: 10px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* The document: text column on the left, review margin on the right */
.document { border-bottom: 1px solid var(--rule); }
.sheet { max-width: var(--doc); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) var(--note); }
.text { padding: 64px 56px 64px var(--pad); min-width: 0; }
.text > * { max-width: 44rem; }
.margin { background: var(--margin); border-left: 1px solid var(--rule); padding: 64px 22px 40px; }
.clause + .clause .text { border-top: 1px solid var(--rule); }
.clause.wide { padding-bottom: 64px; }
.clause.wide .text { padding-bottom: 28px; }

.running { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.14; font-weight: 500; letter-spacing: -.012em; margin: 0 0 24px; max-width: 20em; }
.lede { font-size: 1.22rem; line-height: 1.6; color: #2A2B2E; margin: 0; }
.clause-h { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.05rem); line-height: 1.22; font-weight: 500; margin: 0 0 18px; letter-spacing: -.006em; }
.clause-n { font-family: var(--sans); font-weight: 700; font-size: .78em; margin-right: .3em; font-variant-numeric: tabular-nums; }
.intro { color: #2A2B2E; }
h3 { font-size: 1.16rem; line-height: 1.35; font-weight: 600; margin: 0 0 6px; }

/* Title block */
.title-block .text { padding-top: 76px; padding-bottom: 48px; }
.title-block .margin { padding-top: 84px; }

/* Review comments */
.comment { position: relative; background: #fff; border: 1px solid var(--ink); border-radius: 3px; padding: 14px 16px 2px; font-family: var(--sans); font-size: 16px; line-height: 1.55; }
.comment::before { content: ''; position: absolute; left: -23px; top: 22px; width: 22px; border-top: 1px dashed var(--ink); }
.comment-who { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.comment p { margin-bottom: 12px; }
.comment strong { font-weight: 700; }

/* Figures */
.figure { max-width: var(--doc); margin: 0 auto; padding: 8px var(--pad) 56px; }
.clause.wide .figure { padding-bottom: 36px; }
.art-scroll { border: 1px solid var(--rule); background: #FBFBFA; padding: 22px; overflow-x: auto; }
.art { display: block; width: 100%; min-width: 700px; height: auto; }
figcaption { font-family: var(--sans); font-size: 16px; color: var(--graphite); margin-top: 12px; max-width: 46rem; }
.fig-n { font-weight: 700; color: var(--ink); }
.art text { font-family: var(--sans); fill: var(--ink); }
.art .a-h { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.art .a-h2 { font-size: 16px; font-weight: 700; }
.art .a-lbl { font-size: 13.5px; font-weight: 600; }
.art .a-sm { font-size: 13px; fill: var(--graphite); }
.art .a-stamp { font-size: 15px; font-weight: 700; letter-spacing: .14em; }
.art .a-blue { fill: var(--blue); }

/* Attorney decisions: blue signature ink, and nothing else is blue */
.decides { background: var(--blue-tint); box-shadow: inset 3px 0 0 var(--blue); }
.sig { display: block; width: 110px; height: 30px; margin-top: 6px; }

/* Sub-clauses (problem) */
.subclauses { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.subclauses li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 10px; padding: 20px 14px 8px 12px; border-bottom: 1px solid var(--rule); }
.sub-n, .step-n, .form-n, .d-n { font-family: var(--sans); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.sub-n { padding-top: 3px; }

/* Schedules (what gets built) */
.schedules { max-width: var(--doc); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; font-family: var(--sans); font-size: 16px; font-weight: 600; padding-bottom: 10px; }
.sched-n { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; margin-right: 6px; }
.schedule { border-top: 1.5px solid var(--ink); }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.5; }
.schedule th { width: 38%; font-family: var(--sans); font-weight: 600; font-size: 16px; }

/* Docket (synthetic example) */
.stamp { display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); border: 2px solid var(--stamp); padding: 7px 12px; margin: 0 0 22px; transform: rotate(-1.2deg); border-radius: 2px; }
.docket { margin-top: 28px; border-top: 1.5px solid var(--ink); }
.docket caption { caption-side: top; }
.docket thead th { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink); }
.docket td, .docket tbody th { text-align: left; vertical-align: top; padding: 16px 12px; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.5; }
.docket tbody th { font-family: var(--sans); font-weight: 600; font-size: 16px; width: 30%; }
.docket .d-n { width: 3rem; }

/* Terms (ownership) */
.terms { margin: 30px 0 0; border-top: 1.5px solid var(--ink); }
.terms > div { padding: 20px 14px 6px 12px; border-bottom: 1px solid var(--rule); }
.terms dt { font-weight: 600; font-size: 1.12rem; line-height: 1.35; margin-bottom: 6px; }
.terms dt .sub-n { margin-right: 8px; }
.terms dd { margin: 0 0 14px; }

/* Steps (process) */
.steps { list-style: none; max-width: var(--doc); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.steps li { border-top: 1.5px solid var(--ink); padding: 16px 0 22px; }
.steps .step-n { display: block; color: var(--graphite); margin-bottom: 6px; }
.steps p { margin: 0; font-size: 17px; line-height: 1.55; }

/* Form sheet (checklist) */
.formsheet { list-style: none; margin: 28px 0 0; padding: 0; border: 1.5px solid var(--ink); }
.formsheet li { display: grid; grid-template-columns: 22px 1.6rem minmax(0, 1fr); gap: 0 12px; align-items: start; padding: 15px 16px; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.5; }
.formsheet li:last-child { border-bottom: 0; }
.box { width: 20px; height: 20px; border: 1.5px solid var(--ink); background: #fff; margin-top: 3px; }
.form-n { color: var(--graphite); padding-top: 1px; }

/* Transcript (FAQ) */
.transcript { margin: 28px 0 0; }
.transcript > div { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); }
.transcript > div:last-child { border-bottom: 0; margin-bottom: 0; }
.transcript dt, .transcript dd { position: relative; margin: 0; padding-left: 2.6rem; }
.transcript dt { font-weight: 600; font-size: 1.12rem; line-height: 1.4; margin-bottom: 8px; }
.qa-mark { position: absolute; left: 0; top: 0; font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: inherit; color: var(--graphite); }
.transcript dt .qa-mark { color: var(--ink); top: 2px; }

/* Signature blocks (identity) */
.signatories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.signatory { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.signatory h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 2px; }
.sig-role { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 10px; }
.signatory p:last-child { font-size: 17px; line-height: 1.6; margin: 0; }

/* Closing block */
.closing .text { padding-top: 72px; padding-bottom: 80px; }
.closing .clause-h { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }

/* Footer */
.docfoot { background: var(--page); }
.docfoot-in { max-width: var(--doc); margin: 0 auto; padding: 36px var(--pad) 48px; font-family: var(--sans); font-size: 16px; color: var(--graphite); }
.docfoot-name { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.docfoot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 18px; }
.docfoot-small { font-size: 14px; margin: 0; }

/* Guide and long-form prose */
.prose h2 { font-size: 1.6rem; line-height: 1.25; font-weight: 500; margin: 2.2em 0 .6em; padding-top: .9em; border-top: 1px solid var(--rule); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ink); color: #2A2B2E; }
.prose table { margin: 1.6em 0; border-top: 1.5px solid var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; display: block; overflow-x: auto; max-width: 100%; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 700; border-bottom-color: var(--ink); }
.prose code { font-size: .9em; background: var(--margin); padding: 1px 5px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.guide-body .text { padding-top: 48px; }

/* About, contact, privacy and 404 use the shared renderers' class names */
.wrap { max-width: var(--doc); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow > *, .page-head .wrap > * { max-width: 44rem; }
.document > section:not(.clause) { padding: 56px 0; border-top: 1px solid var(--rule); }
.document > section.page-head { padding: 76px 0 48px; border-top: 0; }
.document > section.flush { padding-top: 40px; }
.lbl { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.chip { display: block; margin-bottom: 14px; }
.display.h-md { font-size: 1.4rem; font-weight: 500; line-height: 1.3; margin: 0 0 6px; }
.note { font-family: var(--sans); font-size: 16px; color: var(--graphite); margin-top: 22px; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 60rem; }
.person { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.person .lbl { display: block; margin-bottom: 8px; }
.person p { font-size: 17px; margin: 0; }
.mail-row { margin: 26px 0 0; }
a.mail { font-size: 1.5rem; color: var(--blue); word-break: break-word; }

/* Narrower screens: the review margin folds into the text as boxed notes */
@media (max-width: 960px) {
  :root { --pad: 28px; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .text { padding: 48px var(--pad) 40px; }
  .margin { border-left: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px var(--pad); }
  .margin.no-note { display: none; }
  .title-block .margin { padding-top: 22px; }
  .title-block .text { padding-top: 52px; padding-bottom: 36px; }
  .comment { max-width: 44rem; }
  .comment::before { display: none; }
  .figure { padding-top: 28px; }
  .schedules { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --pad: 18px; }
  body { font-size: 17px; }
  .letterhead-in { gap: 12px 18px; padding-top: 14px; padding-bottom: 14px; }
  .letterhead nav { order: 3; width: 100%; gap: 6px 18px; }
  .firm-name { font-size: 19px; }
  .btn { width: 100%; text-align: center; }
  .btn.small { width: auto; }
  .art-scroll { padding: 14px; }
  .subclauses li { grid-template-columns: 2.6rem minmax(0, 1fr); padding-left: 8px; padding-right: 8px; }
  .schedule th, .schedule td, .docket td, .docket tbody th { display: block; width: auto; padding: 0 12px; border-bottom: 0; }
  .schedule tr, .docket tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .schedule th, .docket tbody th { margin-bottom: 4px; }
  .docket thead { display: none; }
  .docket .d-n { color: var(--graphite); }
  .steps, .signatories, .people { grid-template-columns: minmax(0, 1fr); }
  .formsheet li { grid-template-columns: 22px minmax(0, 1fr); }
  .form-n { display: none; }
}
@media print {
  .letterhead nav, .btn, .preview-bar, .skip { display: none; }
  .margin { background: #fff; }
}
