/* Checklist — scoped to checklist page only */
body.checklist-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.checklist-page .checklist-site-footer {
  background: var(--navy);
  padding: 45px 0;
}

body.checklist-page .checklist-site-footer .site-footer {
  border-top: none;
  padding-top: 0;
}

body.checklist-page .checklist-disclosure-bar {
  background: var(--pale);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

body.checklist-page .checklist-disclosure {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

body.checklist-page .checklist-body.container {
  width: min(100% - 36px, 820px);
  padding: 28px 0 48px;
}

body.checklist-page .checklist-controls {
  margin-bottom: 20px;
}

body.checklist-page .checklist-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}

body.checklist-page .checklist-borrower-details-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 14px;
  align-items: start;
}

body.checklist-page .checklist-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.checklist-page .checklist-field-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

body.checklist-page .checklist-select,
body.checklist-page .checklist-dropdown-trigger {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b7c7cb;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
  box-sizing: border-box;
}

body.checklist-page .checklist-select {
  cursor: default;
  appearance: auto;
}

body.checklist-page .checklist-field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

body.checklist-page .checklist-field-hint[aria-hidden='true'] {
  display: none;
}

body.checklist-page .checklist-dropdown {
  position: relative;
}

body.checklist-page .checklist-dropdown-panel {
  position: absolute;
  z-index: 25;
  top: calc(100% + 4px);
  inset-inline-start: 0;
  inset-inline-end: 0;
  max-height: min(280px, 50vh);
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px #071c2b2a;
}

body.checklist-page .checklist-dropdown-panel[hidden] {
  display: none;
}

body.checklist-page .checklist-dropdown-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

body.checklist-page .checklist-dropdown-option:hover {
  background: var(--pale);
}

body.checklist-page .checklist-dropdown-option input {
  margin-top: 3px;
  flex-shrink: 0;
}

body.checklist-page .checklist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.checklist-page .checklist-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--pale);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

body.checklist-page .checklist-tag-remove {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

body.checklist-page .checklist-tag-remove:hover {
  color: var(--ink);
}

body.checklist-page .checklist-followup {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

body.checklist-page .checklist-followup-block {
  margin-bottom: 14px;
}

body.checklist-page .checklist-followup-block:last-child {
  margin-bottom: 0;
}

body.checklist-page .checklist-followup legend,
body.checklist-page .checklist-sublegend {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

body.checklist-page .checklist-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

body.checklist-page .checklist-inline-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

body.checklist-page .checklist-extra-income-control {
  min-height: 44px;
  align-items: center;
  margin: 0;
}

body.checklist-page .checklist-coborrower-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 8px;
}

body.checklist-page .checklist-progress-line {
  font-size: 14px;
  font-weight: 700;
  color: #315c22;
  margin: 0 0 6px;
}

body.checklist-page .checklist-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

body.checklist-page .checklist-hint--flush {
  margin: 0;
}

body.checklist-page .checklist-setup-hint {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

body.checklist-page .checklist-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

body.checklist-page .checklist-column {
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--green);
  border-radius: 12px;
  background: var(--pale);
  padding: 16px 14px;
  min-width: 0;
}

body.checklist-page .checklist-column h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

body.checklist-page .checklist-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 14px 0 8px;
}

body.checklist-page .checklist-section-title:first-of-type {
  margin-top: 0;
}

body.checklist-page .checklist-doc {
  margin: 0 0 10px;
  padding: 6px 4px;
  border-radius: 6px;
}

body.checklist-page .checklist-doc-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.checklist-page .checklist-doc-main:hover {
  background: #ffffff80;
  border-radius: 6px;
}

body.checklist-page .checklist-doc-main input {
  margin-top: 3px;
  flex-shrink: 0;
}

body.checklist-page .checklist-doc-label {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  display: block;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

body.checklist-page .checklist-doc-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin: 4px 0 0 28px;
  line-height: 1.45;
}

body.checklist-page .checklist-doc-task-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  margin-top: 4px;
  padding-inline-start: 28px;
}

body.checklist-page .checklist-doc-task-btn {
  border: 0;
  background: none;
  padding: 6px 4px;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #315c22;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 36px;
}

body.checklist-page .checklist-doc-task-btn:hover {
  color: var(--green);
}

body.checklist-page .checklist-doc-task-notice {
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.35;
}

body.checklist-page .checklist-borrower-heading {
  font-size: 13px;
  font-weight: 800;
  margin: 12px 0 8px;
}

body.checklist-page .checklist-topic-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

body.checklist-page .checklist-expand {
  margin: 14px 0 0;
}

body.checklist-page .checklist-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7c7cb;
  background: #fff;
  border-radius: 100px;
  padding: 10px 18px;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  width: auto;
  max-width: 100%;
  text-align: center;
  color: var(--ink, #162c30);
  transition: transform 0.2s, background 0.2s;
}

body.checklist-page .checklist-expand-btn:hover {
  transform: translateY(-1px);
  background: #f7faf8;
}

body.checklist-page .checklist-notes-tasks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 20px;
  align-items: stretch;
}

body.checklist-page .checklist-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--pale);
  box-sizing: border-box;
  min-width: 0;
}

@media (min-width: 901px) {
  body.checklist-page .checklist-notes-tasks {
    align-items: stretch;
  }

  body.checklist-page .checklist-notes-tasks .checklist-panel {
    height: 100%;
  }
}

body.checklist-page .checklist-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

body.checklist-page .checklist-panel textarea {
  width: 100%;
  min-height: 5.5em;
  line-height: 1.5;
  border: 1px solid #b7c7cb;
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
}

body.checklist-page .checklist-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.checklist-page .checklist-task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

body.checklist-page .checklist-task-item label {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

body.checklist-page .checklist-task-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

body.checklist-page .checklist-task-add {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

body.checklist-page .checklist-task-add input {
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #b7c7cb;
  border-radius: 9px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
}

body.checklist-page .checklist-task-add .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  align-self: stretch;
}

body.checklist-page .checklist-char-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

body.checklist-page .checklist-bottom {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

body.checklist-page .checklist-overview {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 6px;
  line-height: 1.45;
}

body.checklist-page .checklist-counts {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

body.checklist-page .checklist-full-summary {
  margin: 0 0 16px;
}

body.checklist-page .checklist-full-summary summary {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #315c22;
}

body.checklist-page .checklist-full-summary pre {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}

@media (min-width: 901px) {
  body.checklist-page .checklist-field-label {
    min-height: 2.6em;
    display: flex;
    align-items: flex-end;
  }

  body.checklist-page .checklist-row > .checklist-field:nth-child(2) .checklist-field-hint {
    min-height: 2.9em;
  }
}

@media (max-width: 900px) {
  body.checklist-page .checklist-body.container {
    padding: 22px 0 40px;
  }

  body.checklist-page .checklist-row,
  body.checklist-page .checklist-columns,
  body.checklist-page .checklist-notes-tasks,
  body.checklist-page .checklist-coborrower-row {
    grid-template-columns: 1fr;
  }

  body.checklist-page .checklist-row {
    gap: 20px;
  }

  body.checklist-page .checklist-field {
    gap: 7px;
  }

  body.checklist-page .checklist-tags {
    margin-top: 12px;
    gap: 8px;
  }

  body.checklist-page .checklist-followup {
    margin-top: 12px;
    padding-top: 12px;
  }

  body.checklist-page .checklist-followup-block {
    margin-bottom: 12px;
  }

  body.checklist-page .checklist-coborrower-row {
    margin-top: 4px;
    gap: 16px;
  }

  body.checklist-page .checklist-controls {
    margin-bottom: 22px;
  }

  body.checklist-page .checklist-borrower-details-row {
    grid-template-columns: 1fr;
    margin-top: 12px;
    gap: 12px;
  }

  body.checklist-page .checklist-progress-line {
    margin: 0 0 8px;
  }

  body.checklist-page .checklist-notes-tasks .checklist-panel {
    height: auto;
  }

  body.checklist-page .checklist-bottom {
    padding-top: 16px;
    margin-bottom: 28px;
  }

}
