@charset "UTF-8";

.formal-sidebar, .formal-workspace {
  --formal-ink: #153b5e;
  --formal-blue: #165a97;
  --formal-muted: #58718a;
  --formal-line: #d7e3ee;
  --formal-pale: #edf5fc;
  color: var(--formal-ink);
}

.formal-sidebar nav {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.formal-sidebar-block { min-width: 0; }

.formal-sidebar .formal-sidebar-heading {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #9fb7cd;
  border-radius: 5px;
  background: #dbe8f4;
  color: #153b5e;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.formal-sidebar-heading-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.formal-sidebar-heading small {
  color: #395b77;
  font-size: 12px;
  font-weight: 500;
}
.formal-sidebar .formal-sidebar-heading:hover,
.formal-sidebar .formal-sidebar-heading[aria-expanded="true"] { background: #d0e2f2; border-color: #779cbe; }

.formal-sidebar-contents {
  display: grid;
  gap: 3px;
  margin-inline-start: 13px;
  padding-block: 5px 0;
}

.formal-sidebar .formal-nav-group,
.formal-sidebar .formal-nav-leaf,
.formal-sidebar .formal-nav-trail,
.formal-sidebar .formal-nav-view {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  color: var(--formal-ink);
  font: inherit;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
}

.formal-sidebar :is(.formal-nav-group,.formal-nav-view) { font-size: 15px; font-weight: 650; }
.formal-sidebar :is(.formal-nav-group,.formal-nav-leaf,.formal-nav-trail,.formal-nav-view) > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.formal-sidebar :is(.formal-nav-leaf,.formal-nav-trail) { min-height: 40px; font-size: 14px; }
.formal-sidebar .formal-nav-trail { font-weight: 650; }
.formal-sidebar .formal-nav-children {
  margin-inline-start: 9px;
  padding: 3px 0 3px 4px;
  border-inline-start: 1px solid #d7e3ee;
}
.formal-sidebar :is(.formal-sidebar-contents,.formal-nav-children)[hidden] { display: none; }
.formal-sidebar .formal-nav-children button { background: transparent; }
.formal-sidebar :is(.formal-nav-group,.formal-nav-leaf,.formal-nav-trail,.formal-nav-view):hover { background: #f0f6fb; }
.formal-sidebar :is(.formal-nav-group,.formal-nav-leaf,.formal-nav-trail,.formal-nav-view).is-current {
  border-color: #7cadd6;
  background: #e8f2fc;
  color: #104a7d;
}
.formal-nav-chevron { flex: none; font-size: 19px; line-height: 1; color: var(--formal-muted); }
.formal-nav-done { flex: none; color: #136341; font-weight: 700; }

.formal-workspace { min-width: 0; }
.formal-workspace h2, .formal-workspace h3, .formal-workspace h4 { color: var(--formal-ink); line-height: 1.45; }
.formal-workspace-header { padding-bottom: 14px; }
.formal-workspace .formal-eyebrow { display: block; margin: 0 0 5px; color: var(--formal-muted); font-size: 13px; }
.formal-workspace h2 { margin: 0; font-size: clamp(22px, 2.1vw, 30px); }
.formal-workspace h3 { margin: 0 0 6px; font-size: 20px; }
.formal-workspace h4 { margin: 0; font-size: 16px; }
.formal-empty { min-height: 130px; padding: 12px 5px; }
.formal-empty p, .formal-step-intro, .formal-muted { color: var(--formal-muted); line-height: 1.65; }

.formal-steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.formal-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--formal-line);
  border-radius: 5px;
  background: #f9fbfd;
  color: var(--formal-muted);
}

.formal-steps .is-current { border-color: #8cb5da; background: var(--formal-pale); color: #104a7d; }
.formal-steps .is-done { color: #345a79; }
.formal-steps li strong { display: block; font-size: 15px; line-height: 1.4; }
.formal-steps li small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; }
.formal-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: #e7eff6;
  font-size: 12px;
  font-weight: 700;
}
.formal-steps .is-current .formal-step-number { color: #fff; background: var(--formal-blue); }
.formal-steps .is-done .formal-step-number { color: #136341; background: #e5f3ea; }
.formal-step-intro { margin: 0 0 14px; font-size: 14px; }

.formal-upload-slot {
  padding: 15px;
  margin: 0 0 12px;
  border: 1px solid var(--formal-line);
  border-radius: 6px;
  background: #fafcfe;
}
.formal-slot-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.formal-muted { margin: 6px 0; font-size: 13px; }
.formal-badge { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 11px; line-height: 1.45; font-weight: 650; }
.formal-neutral { background: #ebf0f5; color: #456681; }
.formal-pending { background: #fff0d7; color: #71480a; }
.formal-pass { background: #e2f4e8; color: #125c3d; }
.formal-fail { background: #fce4e2; color: #8a2e25; }

.formal-file-control {
  display: block;
  padding: 11px 12px;
  margin: 10px 0 0;
  border: 1px dashed #94b4cf;
  border-radius: 5px;
  color: var(--formal-blue);
  background: #fff;
}
.formal-file-control > span { display: none; }
.formal-file-control input { display: block; width: 100%; min-width: 0; color: var(--formal-muted); font: inherit; font-size: 13px; }
.formal-file-control input::file-selector-button {
  padding: 7px 12px;
  margin-right: 10px;
  border: 1px solid #acc8df;
  border-radius: 4px;
  background: #eef6fc;
  color: #184f7f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.formal-file-list { padding: 0; list-style: none; margin: 8px 0 0; }
.formal-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--formal-line);
  overflow-wrap: anywhere;
}
.formal-file-list li strong { font-size: 13px; }
.formal-file-list li small { display: block; margin-top: 2px; color: var(--formal-muted); font-size: 12px; }
.formal-file-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 3px 8px; }
.formal-workspace .formal-text-button {
  flex: none;
  min-height: 30px;
  border: 0;
  padding: 4px 5px;
  background: transparent;
  color: var(--formal-blue);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.formal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; }
.formal-workspace .formal-action {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #a6bdd1;
  border-radius: 5px;
  background: #fff;
  color: #174e7d;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.formal-workspace .formal-action.is-primary { color: #fff; border-color: #165a97; background: #165a97; }
.formal-workspace .formal-action:disabled, .formal-workspace .formal-text-button:disabled { cursor: not-allowed; opacity: .55; }
.formal-workspace button:focus-visible, .formal-sidebar button:focus-visible, .formal-workspace input:focus-visible {
  outline: 2px solid #1766ab;
  outline-offset: 2px;
}
.formal-inline-notice {
  padding: 10px 12px;
  margin: 12px 0;
  border: 1px solid #ebd5ad;
  border-radius: 5px;
  background: #fff8e8;
  color: #684511;
  line-height: 1.6;
  font-size: 14px;
}
.formal-feedback { white-space: pre-line; }

.formal-evidence-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 11px;
  margin-bottom: 10px;
  background: var(--formal-pale);
  color: #365e80;
  font-size: 13px;
}
.formal-evidence-tools label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.formal-workspace input[type="checkbox"] { accent-color: var(--formal-blue); width: 16px; height: 16px; }
.formal-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--formal-line); border-radius: 5px; }
.formal-evidence-table { width: 100%; min-width: 500px; border-collapse: collapse; background: #fff; font-size: 13px; }
.formal-evidence-table :is(th,td) { padding: 9px; border-bottom: 1px solid var(--formal-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; line-height: 1.55; }
.formal-evidence-table th { background: #f2f7fb; font-weight: 650; white-space: nowrap; }
.formal-evidence-table tbody tr:last-child td { border-bottom: 0; }
.formal-evidence-table td small { display: block; margin-top: 3px; color: var(--formal-muted); line-height: 1.5; }
.formal-evidence-table .formal-check-cell { width: 45px; text-align: center; }
.formal-evidence-value { white-space: pre-wrap; min-width: 86px; }

.formal-check-list { padding: 0; list-style: none; margin: 0; }
.formal-check-list li { margin: 0 0 9px; padding: 10px 12px; border: 1px solid var(--formal-line); border-radius: 5px; background: #fafcfe; }
.formal-check-list li div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.formal-check-list li p { margin: 4px 0 0; color: var(--formal-muted); font-size: 13px; line-height: 1.6; }
.formal-complete { padding: 10px 12px; border: 1px solid #a4cfb9; border-radius: 5px; background: #edf8f0; color: #145b3c; font-size: 14px; }

@media (max-width: 850px) {
  .formal-sidebar :is(.formal-nav-group,.formal-nav-view) { font-size: 14px; }
  .formal-sidebar :is(.formal-nav-leaf,.formal-nav-trail) { font-size: 13px; }
  .formal-steps li small { display: none; }
  .formal-evidence-table { min-width: 340px; font-size: 12px; }
  .formal-evidence-table :is(th,td) { padding: 7px 6px; }
  .formal-evidence-table th { white-space: normal; }
  .formal-evidence-value { min-width: 52px; }
}

@media (max-width: 460px) {
  .formal-steps { gap: 4px; }
  .formal-steps li { padding: 6px 5px; gap: 4px; }
  .formal-steps li strong { font-size: 12px; }
  .formal-step-number { flex-basis: 21px; height: 21px; font-size: 10px; }
  .formal-upload-slot { padding: 11px; }
}
.cw-current-header {
  scroll-margin-top: calc(var(--portal-tabs-height, 102px) + 20px);
}
