/**
 * MLA 9th edition – student paper (web): 12pt Times New Roman, double-spaced,
 * 1" side margins, 0.5" first-line paragraph indent, Works Cited hanging indent.
 */

.mla-paper {
  font-family: "Times New Roman", Times, serif;
  font-size: 12pt;
  line-height: 2;
  color: #000;
  max-width: 8.5in;
  margin: 0 auto;
  padding: 0 1in 2rem;
  box-sizing: border-box;
  background: #fff;
}

.mla-paper .mla-heading-block p {
  margin: 0;
  padding: 0;
  line-height: 2;
  font-size: 12pt;
  text-indent: 0;
  text-align: left;
}

.mla-paper h1.mla-title {
  text-align: center;
  font-size: 12pt;
  font-weight: 400;
  margin: 0;
  padding: 0;
  line-height: 2;
  text-indent: 0;
}

.mla-paper h2 {
  font-size: 12pt;
  font-weight: bold;
  margin: 1em 0 0 0;
  padding: 0;
  line-height: 2;
  text-align: left;
  text-indent: 0;
}

.mla-paper h2.mla-works-cited-title {
  text-align: center;
  font-weight: 400;
}

.mla-paper h3 {
  font-size: 12pt;
  font-weight: bold;
  margin: 1em 0 0 0;
  padding: 0;
  line-height: 2;
  text-align: left;
  text-indent: 0;
}

.mla-paper p {
  margin: 0;
  text-indent: 0.5in;
  text-align: left;
  font-size: 12pt;
  line-height: 2;
}

.mla-paper .abstract h3 {
  text-indent: 0;
  text-align: center;
  font-weight: bold;
  margin: 0 0 0 0;
  font-size: 12pt;
  line-height: 2;
}

.mla-paper .abstract {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.mla-paper .mla-results {
  margin: 0.5em 0 0 0;
  padding: 0;
  background: transparent;
  border: none;
}

.mla-paper .mla-results h3 {
  text-align: left;
  font-weight: bold;
}

.mla-paper .mla-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 0.5em 0 1em;
  border: 1px solid #000;
  font-size: 11pt;
  line-height: 1.4;
}

.mla-paper .mla-results-grid .result-item {
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 0.35rem 0.4rem;
  text-align: center;
  background: #fff;
  box-shadow: none;
}

.mla-paper .mla-results-grid .result-item:last-child {
  border-right: none;
}

.mla-paper .result-color {
  font-size: 1.25rem;
}

.mla-paper .result-score {
  font-size: 11pt;
  font-weight: bold;
}

.mla-paper .result-label {
  font-size: 10pt;
}

.mla-paper .mla-works-cited p,
.mla-paper .works-cited > p {
  text-indent: -0.5in;
  margin: 0 0 0 0.5in;
  padding: 0;
  text-align: left;
}

/* Mammoth DOCX */
.docx-import.mla-paper {
  font-size: 12pt;
  line-height: 2;
  color: #000;
  overflow-x: auto;
}

.docx-import.mla-paper p {
  margin: 0;
  text-indent: 0.5in;
  text-align: left;
  font-size: 12pt;
  line-height: 2;
}

/* Section headings and "Abstract" title (outside Word front matter) */
.docx-import.mla-paper > h1 {
  font-size: 12pt;
  font-weight: bold;
  text-align: left;
  margin: 1em 0 0 0;
  line-height: 2;
  text-indent: 0;
}

/* Word-style centered title + author block (see .docx-front-matter) */
.docx-import.mla-paper .docx-front-matter {
  text-align: center;
  margin: 0 0 1.25em 0;
}

.docx-import.mla-paper .docx-front-matter h1 {
  font-size: 12pt;
  font-weight: bold;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 2;
  text-indent: 0;
}

.docx-import.mla-paper .docx-front-matter p {
  text-indent: 0;
  text-align: center;
  margin: 0;
  line-height: 2;
  font-size: 12pt;
}

.docx-import.mla-paper .docx-front-matter p strong {
  font-weight: bold;
}

.docx-import.mla-paper h2,
.docx-import.mla-paper h3 {
  font-size: 12pt;
  font-weight: bold;
  text-align: left;
  margin: 1em 0 0 0;
  line-height: 2;
  text-indent: 0;
}

.docx-import.mla-paper table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  font-size: 11pt;
  line-height: 1.45;
}

.docx-import.mla-paper th,
.docx-import.mla-paper td {
  border: 1px solid #000;
  padding: 0.25rem 0.35rem;
  vertical-align: top;
}

.docx-import.mla-paper th {
  background: #fff;
  color: #000;
  font-weight: bold;
}

.docx-import.mla-paper img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

.docx-import.mla-paper ul,
.docx-import.mla-paper ol {
  margin: 0 0 1em 0;
  padding-left: 1in;
  line-height: 2;
}

.docx-import.mla-paper li {
  margin-bottom: 0.2em;
}

.docx-import.mla-paper strong {
  font-weight: bold;
}
