:root {
  color-scheme: light;
  --ink: #1b2b32;
  --muted: #69777a;
  --line: #dfe6e2;
  --paper: #fffefa;
  --canvas: #f4f5f0;
  --green: #255d4b;
  --green-dark: #194737;
  --sage: #eaf0e9;
  --rust: #a94f32;
}

html {
  min-height: 100%;
  background: var(--canvas);
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 75% 0, rgba(226, 234, 220, .7), transparent 34rem),
    var(--canvas);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.site-header {
  border-bottom: 1px solid rgba(27, 43, 50, .08);
  background: rgba(255, 254, 250, .86);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-links a,
.nav-dropdown summary {
  color: var(--green);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.site-links a:hover,
.nav-dropdown summary:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  display: inline-block;
  margin-left: 8px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  content: "";
  transform: translateY(2px);
}

.site-links > a {
  padding: 10px 12px;
  border-radius: 8px;
}

.site-links > a:hover,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  background: var(--sage);
  text-decoration: none;
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(31, 47, 41, .14);
}

.nav-dropdown:not([open]) > .nav-dropdown-menu {
  display: none;
}

.nav-dropdown-menu a,
.nav-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--green);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--sage);
  text-decoration: none;
}

.nav-placeholder {
  color: var(--muted);
  cursor: not-allowed;
}

.nav-coming-soon {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 500;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.brand-caption {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.main-container {
  max-width: 1040px;
  padding-top: 54px;
  padding-bottom: 72px;
}

.hero {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.hero-copy {
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.workspace {
  max-width: 820px;
  margin: 0 auto;
}

.draft-form,
.result-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(31, 47, 41, .06);
}

.civil-plaint-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 14px;
}

.civil-plaint-editor-toolbar h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 750;
}

.civil-plaint-editor-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.civil-plaint-docx-preview {
  min-height: 820px;
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 76px;
  border: 1px solid #d7dfda;
  background: #fff;
  box-shadow: 0 8px 26px rgba(31, 47, 41, .1);
  color: #1c2528;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.civil-plaint-docx-preview:focus {
  outline: 2px solid rgba(37, 93, 75, .35);
  outline-offset: 2px;
}

.stage-b-docx-form {
  margin-top: 18px;
}

.stage-b-docx-preview p {
  margin: 0 0 10px;
}

.stage-b-docx-preview .stage-b-docx-title {
  margin: 12px 0;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
}

.stage-b-docx-preview .stage-b-docx-center {
  text-align: center;
}

.stage-b-docx-preview .stage-b-docx-heading {
  margin-top: 18px;
  font-weight: 700;
}

.stage-b-docx-preview .stage-b-docx-italic {
  font-style: italic;
}

.stage-b-docx-preview .stage-b-docx-meta {
  color: var(--muted);
  font-size: .84rem;
  text-align: center;
}

.stage-b-docx-preview .stage-b-docx-signature {
  text-align: right;
}

.stage-b-docx-field-value {
  display: block;
  max-width: 620px;
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.stage-b-generated-json {
  margin-top: 18px;
}

.stage-b-generated-json summary {
  width: fit-content;
  color: var(--green-dark);
  font-weight: 700;
  cursor: pointer;
}

.draft-form {
  padding: clamp(22px, 5vw, 44px);
}

.form-section {
  padding-bottom: 30px;
}

.form-section + .form-section {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.civil-plaint-collapsible-section > summary {
  list-style: none;
  cursor: pointer;
}

.civil-plaint-collapsible-section > summary::-webkit-details-marker,
.civil-plaint-collapsible-list > summary::-webkit-details-marker {
  display: none;
}

.civil-plaint-collapsible-section > summary::after {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin: 8px 5px 0 auto;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  content: "";
  transform: rotate(45deg);
  transition: transform .15s ease;
}

.civil-plaint-collapsible-section[open] > summary::after {
  transform: rotate(225deg);
}

.civil-plaint-collapsible-section:not([open]) > summary {
  margin-bottom: 0;
}

.civil-plaint-collapsible-list {
  margin-top: 12px;
}

.civil-plaint-collapsible-list > summary {
  width: fit-content;
  color: var(--green-dark);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
}

.civil-plaint-collapsible-list .uploaded-list {
  margin-top: 8px;
}

.section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.section-number {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--sage);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.section-heading h2,
.result-heading h2 {
  margin: 1px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.section-heading p,
.advanced-fields > p {
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.5;
}

.subsection-heading {
  margin: 28px 0 16px;
}

.subsection-heading h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 750;
}

.subsection-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-grid-spaced,
.field-spaced {
  margin-top: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid #d7dfda;
  border-radius: 9px;
  color: var(--ink);
  background-color: #fff;
  box-shadow: none;
}

.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
  font-size: .94rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #6b9a83;
  box-shadow: 0 0 0 3px rgba(37, 93, 75, .11);
}

.facts-input {
  min-height: 190px;
  resize: vertical;
  line-height: 1.6;
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.required-mark {
  color: var(--rust);
}

.field-error,
.validation-summary {
  color: #9c392d;
  font-size: .84rem;
}

.validation-summary:empty {
  display: none;
}

.validation-summary ul {
  margin: 0 0 20px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #35464a;
  cursor: pointer;
  font-size: .86rem;
  line-height: 1.4;
}

.choice-card:has(input:checked) {
  border-color: #84a895;
  background: #f2f7f2;
}

.choice-card input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.optional-tag {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.advanced-fields {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.advanced-fields summary {
  color: var(--ink);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
}

.advanced-fields > p {
  margin: 12px 0;
}

.code-input {
  min-height: 100px;
  font-family: Consolas, "Courier New", monospace;
  font-size: .84rem;
}

.checklist-instructions {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .86rem;
}

.document-checklist {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.document-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.document-row:last-child {
  border-bottom: 0;
}

.document-row > input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.document-label strong,
.document-label small {
  display: block;
}

.document-label strong {
  color: var(--ink);
  font-size: .87rem;
}

.document-label small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}

.priority-badge,
.document-status {
  padding: 5px 8px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}

.priority-critical {
  color: #933c2c;
  background: #f8e9e5;
}

.priority-high {
  color: #76520f;
  background: #fff3d8;
}

.priority-medium {
  color: #465e6b;
  background: #e9f0f3;
}

.document-status-have {
  color: var(--green);
  background: var(--sage);
}

.document-status-missing {
  color: #8b5142;
  background: #f7efeb;
}

.checklist-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 9px;
  font-size: .84rem;
  line-height: 1.5;
}

.checklist-complete {
  color: #225640;
  background: #edf5ee;
}

.checklist-incomplete {
  color: #76520f;
  background: #fff7e5;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}

.upload-row .form-control,
.upload-row .form-select {
  min-height: 44px;
}

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}

.text-button,
.remove-upload-button {
  padding: 8px 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: .84rem;
  font-weight: 700;
}

.remove-upload-button {
  padding: 0 0 12px;
  color: var(--rust);
}

.upload-success {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #c9dfce;
  border-radius: 8px;
  color: #225640;
  background: #edf5ee;
  font-size: .86rem;
}

.uploaded-heading {
  margin: 22px 0 8px;
  font-size: .9rem;
  font-weight: 750;
}

.uploaded-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.uploaded-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.uploaded-list li strong {
  color: var(--ink);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-actions p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.generate-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--green);
  font-size: .91rem;
  font-weight: 700;
  transition: background .15s ease, transform .15s ease;
}

.generate-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #b9c9bf;
  border-radius: 9px;
  color: var(--green);
  background: #fff;
  font-size: .88rem;
  font-weight: 700;
}

.secondary-button:hover {
  background: var(--sage);
}

.notice {
  max-width: 820px;
  margin: 0 auto 18px;
  padding: 13px 16px;
  border-radius: 9px;
  font-size: .88rem;
}

.notice-warning {
  border: 1px solid #ead7aa;
  color: #674b17;
  background: #fff8e8;
}

.notice-success {
  border: 1px solid #c8ddce;
  color: var(--green-dark);
  background: #f1f7f1;
}

.result-panel {
  margin-top: 22px;
  padding: clamp(22px, 5vw, 34px);
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.result-heading .eyebrow {
  margin-bottom: 6px;
}

.result-status {
  padding: 7px 10px;
  border-radius: 20px;
  color: var(--green);
  background: var(--sage);
  font-size: .73rem;
  font-weight: 700;
  white-space: nowrap;
}

.result-status-error {
  color: #933c2c;
  background: #f8e9e5;
}

.result-error {
  color: #933c2c;
  font-size: .9rem;
}

.result-json {
  max-height: 600px;
  overflow: auto;
  padding: 18px;
  border: 1px solid #e2e8e4;
  border-radius: 10px;
  color: #263b36;
  background: #f6f8f5;
  font-size: .82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result-json code {
  color: inherit;
}

.review-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.stage-a-panel {
  margin-top: 24px;
}

.stage-a-saved-drafts {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.stage-a-saved-drafts .subsection-heading {
  margin-top: 0;
}

.stage-a-saved-draft-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-a-saved-draft-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stage-a-saved-draft-list li > span {
  display: grid;
  gap: 4px;
}

.stage-a-saved-draft-list li > span > span,
.stage-a-empty-drafts {
  color: var(--muted);
  font-size: .82rem;
}

.stage-a-saved-draft-list form {
  flex: 0 0 auto;
}

.stage-a-reference {
  display: grid;
  gap: 5px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: var(--sage);
  font-size: .9rem;
}

.stage-a-reference a {
  width: fit-content;
  margin-top: 3px;
  color: var(--green-dark);
  font-weight: 700;
}

.stage-a-caution {
  margin-bottom: 26px;
}

.stage-a-checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-a-checklist-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.stage-a-checklist-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stage-a-checklist-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.stage-a-status-pending {
  flex: 0 0 auto;
  color: #75441d;
  background: #fff1df;
}

.stage-a-existing-files {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--green-dark);
  font-size: .82rem;
}

.draft-format-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.draft-format-filter {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
}

.draft-format-filter .field {
  width: min(320px, 100%);
}

.draft-format-items {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.draft-format-items > li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.draft-format-item-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.draft-format-item-heading h3 {
  margin: 6px 0;
  font-size: 1.04rem;
}

.draft-format-item-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.draft-format-category {
  color: var(--green);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.draft-format-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.draft-format-actions form {
  display: inline;
}

.draft-format-date {
  color: var(--muted);
  font-size: .76rem;
}

.image-ocr-panel,
.image-ocr-result {
  margin-bottom: 24px;
}

.image-ocr-filename {
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-ocr-filename span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.image-ocr-preview {
  min-height: 420px;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  white-space: pre-wrap;
}

.stage-a-existing-file {
  padding: 3px 0;
}

.stage-a-document-exclusions {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 254, 250, .7);
}

.stage-a-document-exclusions legend {
  float: none;
  width: auto;
  margin: 0;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 750;
}

.stage-a-document-exclusions > p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

.stage-a-document-exclusions .form-check-label {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 650;
}

.stage-a-document-exclusions .stage-a-existing-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stage-a-existing-file form {
  display: inline;
  margin-left: 8px;
}

.remove-document-button {
  padding: 0;
  border: 0;
  color: #933c2c;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.stage-a-upload-form,
.stage-a-generate-form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stage-a-pdf-form {
  margin-top: 14px;
}

.stage-a-upload-field + .stage-a-upload-field {
  margin-top: 14px;
}

.affidavit-editor {
  min-height: 340px;
  max-height: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  line-height: 1.65;
}

.site-footer {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(27, 43, 50, .08);
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 640px) {
  .main-container {
    padding-top: 36px;
  }

  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .document-row {
    grid-template-columns: 20px minmax(0, 1fr) auto;
  }

  .document-status {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .upload-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .remove-upload-button {
    justify-self: start;
    padding: 0;
  }

  .upload-actions,
  .draft-format-filter,
  .draft-format-item-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .draft-format-actions {
    align-items: center;
  }

  .uploaded-list li { 
    align-items: stretch;
  }

  .stage-a-checklist-heading {
    flex-direction: column;
    gap: 8px;
    flex-direction: column;
  }

  .stage-a-saved-draft-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .stage-a-saved-draft-list form,
  .stage-a-saved-draft-list button {
    width: 100%;
  }

  .form-actions,
  .result-heading,
  .civil-plaint-editor-toolbar,
  .site-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-links {
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-dropdown-menu {
    position: static;
    margin: 4px 0 0;
    box-shadow: none;
  }

  .site-links {
    align-items: flex-start;
  }

  .site-links > a,
  .nav-dropdown summary {
    padding: 9px 10px;
  }

  .generate-button {
    width: 100%;
  }

  .civil-plaint-docx-preview {
    min-height: 650px;
    padding: 36px 28px;
    font-size: .92rem;
  }
}
