/* Base document styles matching Word guidance */
:root{
  --body-font: "Times New Roman", Times, serif;
  --base-font-size: 12pt; /* Word default requested */
  --max-width: 800px;
  --page-padding: 1in; /* 1-inch margins */
}

/* Apply layout similar to a manuscript page */
body{
  font-family: var(--body-font);
  font-size: var(--base-font-size);
  line-height: 2; /* double-spaced */
  color: #111;
  background: #fff;
  padding: var(--page-padding);
  display: flex;
  justify-content: center;
}

.manuscript{
  max-width: var(--max-width);
  width: 100%;
}

/* Title */
.title{
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-align: left;
}

.intro{
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* Headings mapping (Level 1-4) */
.heading-1{ /* Level 1 Heading: Left-justified, Bold, Title Case */
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem 0;
  text-align: left;
}

.heading-2{ /* Level 2: Bold + Italic, Title Case */
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  margin: 0.9rem 0 0.4rem 0;
  text-align: left;
}

.heading-3{ /* Level 3: Italic, Sentence case */
  font-size: 0.95rem;
  font-style: italic;
  margin: 0.8rem 0 0.35rem 0;
  text-align: left;
}

/* Level 4: Bold, sentence case, followed by period and text on same line */
.level4, .level4-inline{
  font-weight: 700;
  display: inline;
}

p, ul, ol, li{
  margin: 0 0 0.9rem 0;
}

ul{
  padding-left: 1.25rem;
}

li ul{ /* nested lists */
  margin-top: 0.4rem;
}

strong{font-weight:700}

/* Superscript references style (for display only) */
.superscript{vertical-align: super; font-size: 0.8em;}

/* Tables basic styling */
table{border-collapse: collapse; width: 100%; margin: 0.8rem 0}
th, td{border: 1px solid #ddd; padding: 0.5rem; text-align: left}

/* Utility classes matching manuscript needs */
.left-justify{ text-align:left }
.center{ text-align:center }
.small{ font-size: 0.9rem }

/* Ensure Level 4 headings followed by period keep text on same line in flow */
.level4-inline::after{ content: ". "; }

/* Print-friendly tweaks */
@media print{
  body{ padding: 0.5in }
  .manuscript{ max-width: 100% }
}
