/* Calm, full-width workspace overrides for the WordPress block theme. */
body:has(.kp-shell) .kp-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.kp-top {
  height: 76px;
  padding-inline: clamp(20px, 4vw, 56px);
}

.kp-brand {
  width: 190px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff;
}

.kp-brand img {
  filter: none;
}

.kp-main {
  width: 100%;
  max-width: 1200px;
  padding: 38px 28px 72px;
}

.kp-welcome {
  align-items: center;
  margin-bottom: 24px;
}

.kp-welcome h1 {
  margin-top: 6px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
}

.kp-welcome > div > p:last-child {
  font-size: 14px;
}

.kp-progress {
  width: 240px;
  flex: 0 0 auto;
}

.kp-tabs {
  margin-bottom: 20px;
  overflow-x: auto;
}

.kp-tabs button { flex: 0 0 auto; white-space: nowrap; }

.kp-stage-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid var(--kp-line);
  border-radius: 10px;
  background: #fff;
}

.kp-stage-card h2 {
  margin: 5px 0 3px;
  color: var(--kp-navy);
  font: 400 25px/1.2 "Iowan Old Style", Baskerville, Georgia, serif;
}

.kp-stage-card > div > p:last-child {
  margin: 0;
  color: var(--kp-muted);
  font-size: 12px;
}

.kp-stage-card ol {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-stage-card li {
  position: relative;
  text-align: center;
  color: #8a98a9;
}

.kp-stage-card li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #dce3ec;
}

.kp-stage-card li:first-child::before { left: 50%; width: 50%; }
.kp-stage-card li:last-child::before { width: 50%; }
.kp-stage-card li span { position: relative; z-index: 1; display: block; width: 16px; height: 16px; margin: 0 auto 7px; border: 3px solid #dce3ec; border-radius: 50%; background: #fff; }
.kp-stage-card li small { display: block; padding: 0 4px; font-size: 9px; line-height: 1.25; }
.kp-stage-card li small em { display: block; margin-top: 3px; color: #75869d; font-size: 8px; font-style: normal; font-weight: 600; }
.kp-stage-card li.is-complete small em { color: #16803c; }
.kp-stage-card li.is-complete::before { background: var(--kp-coral); }
.kp-stage-card li.is-complete span { border-color: var(--kp-coral); background: var(--kp-coral); }
.kp-stage-card li.is-current::before { background: linear-gradient(to right, var(--kp-coral) 0 50%, #dce3ec 50% 100%); }
.kp-stage-card li:first-child.is-current::before { background: #dce3ec; }
.kp-stage-card li:last-child.is-current::before { background: var(--kp-coral); }
.kp-stage-card li.is-current { color: var(--kp-navy); font-weight: 800; }
.kp-stage-card li.is-current span { border-color: var(--kp-coral); box-shadow: 0 0 0 4px rgba(255,104,72,.16); }

.kp-requirement { margin-left: 5px; color: var(--kp-muted); font: 700 9px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.kp-review-note { margin-top: 7px !important; padding: 7px 9px; border-left: 2px solid var(--kp-coral); background: #fff3ef; color: var(--kp-navy) !important; }
.kp-badge.is-approved { background: #dfefe8; color: var(--kp-ok); }
.kp-badge.is-changes_requested { background: #fff0ef; color: #8c2922; }

.kp-tabs button {
  padding: 11px 14px;
}

.kp-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}

.kp-card,
.kp-doc,
.kp-adviser {
  border-radius: 10px;
}

.kp-card > header {
  padding: 20px 24px 16px;
}

.kp-card h2 {
  font-size: 24px;
}

.kp-form {
  padding: 22px 24px 24px;
}

.kp-fields {
  gap: 16px 18px;
}

.kp-fields input,
.kp-fields select {
  height: 44px;
}

.kp-form footer {
  padding-top: 20px;
}

.kp-adviser,
.kp-help {
  padding: 22px;
}

.kp-adviser h3 {
  font-size: 22px;
}

.kp-package {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--kp-coral);
  border-radius: 10px;
  background: #fff0ec;
  color: #5d2b23;
  box-shadow: 0 14px 34px rgba(255, 104, 72, .09);
}

.kp-package::after {
  content: "";
  position: absolute;
  right: -23px;
  bottom: -37px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 104, 72, .09);
}

.kp-package small {
  display: block;
  margin-bottom: 9px;
  color: var(--kp-coral);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.kp-package h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 2px;
  color: var(--kp-navy);
  font: 400 23px/1.2 "Iowan Old Style", Baskerville, Georgia, serif;
}

.kp-package-price {
  position: relative;
  z-index: 1;
  display: block;
  color: #d84e34;
  font-size: 12px;
}

.kp-package p,
.kp-package footer {
  position: relative;
  z-index: 1;
  font-size: 11px;
  line-height: 1.5;
}

.kp-package p {
  margin: 17px 0 0;
}

.kp-package footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(216, 78, 52, .22);
}

.kp-documents {
  gap: 10px;
}

.kp-document-group { overflow: hidden; display: grid; gap: 0; border: 1px solid var(--kp-line); border-radius: 10px; background: #eef4fa; box-shadow: 0 6px 22px rgba(3,29,58,.04); }
.kp-document-group > header { padding: 17px 19px 14px; border-bottom: 1px solid var(--kp-line); }
.kp-document-group > header h2 { margin: 3px 0 2px; color: var(--kp-navy); font: 400 22px/1.2 "Iowan Old Style", Baskerville, Georgia, serif; }
.kp-document-group > header p:last-child { margin: 0; color: var(--kp-muted); font-size: 11px; }
.kp-document-subrows { display: grid; gap: 1px; background: var(--kp-line); }
.kp-document-subrows .kp-doc { border: 0; border-radius: 0; box-shadow: none; }
.kp-document-subrows .kp-doc-icon { margin-left: 12px; transform: scale(.9); }
.kp-doc-multi { align-items: start; }
.kp-multi-files { display: grid; gap: 7px; margin-top: 12px; }
.kp-multi-files > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kp-multi-files a { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kp-navy-2); font-size: 11px; }
.kp-multi-files label { margin-left: auto; color: var(--kp-navy-2); font-size: 10px; font-weight: 800; cursor: pointer; }
.kp-multi-files input { display: none; }

.kp-doc {
  padding: 16px 18px;
  box-shadow: 0 6px 22px rgba(3, 29, 58, .04);
}

.kp-signin-alert {
  display: grid;
  gap: 3px;
  margin: 0 0 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--kp-coral);
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 12px;
}

.kp-signin-alert span {
  color: #bdc9d8;
}

.kp-data-form,
.kp-shortlist-form {
  overflow: hidden;
  border: 1px solid var(--kp-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(3,29,58,.05);
}

.kp-data-intro,
.kp-shortlist-form > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--kp-line);
}

.kp-data-intro h2,
.kp-shortlist-form h2 {
  margin: 4px 0;
  color: var(--kp-navy);
  font: 400 28px/1.2 "Iowan Old Style", Baskerville, Georgia, serif;
}

.kp-data-intro p:last-child,
.kp-shortlist-form header p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--kp-muted);
  font-size: 13px;
}

.kp-data-sections { padding: 20px 24px; }
.kp-data-section { border: 1px solid var(--kp-line); border-radius: 8px; background: #fbfcfe; }
.kp-data-section + .kp-data-section { margin-top: 12px; }
.kp-data-section summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: var(--kp-navy); cursor: pointer; }
.kp-data-section summary span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--kp-coral); font-size: 12px; font-weight: 800; }
.kp-data-section summary strong { font-size: 14px; }
.kp-data-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: 4px 18px 20px; }
.kp-data-fields label { display: grid; gap: 7px; }
.kp-data-fields label > span { color: #52657c; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kp-data-fields input,
.kp-data-fields select,
.kp-data-fields textarea,
.kp-shortlist-row input:not([type="checkbox"]) { width: 100%; border: 1px solid #c9d5e2; border-radius: 4px; background: #fff; color: var(--kp-ink); font: inherit; outline: none; }
.kp-data-fields input,
.kp-data-fields select,
.kp-shortlist-row input:not([type="checkbox"]) { height: 44px; padding: 0 13px; }
.kp-data-fields textarea { min-height: 82px; padding: 11px 13px; resize: vertical; }
.kp-data-fields input:focus,
.kp-data-fields select:focus,
.kp-data-fields textarea:focus,
.kp-shortlist-row input:not([type="checkbox"]):focus { border-color: var(--kp-navy-2); box-shadow: 0 0 0 3px rgba(11,47,86,.1); }
.kp-data-fields input[readonly] { background: #f2f5f8; color: #778597; }
.kp-data-wide { grid-column: 1 / -1; }
.kp-work-list { padding: 4px 18px 2px; }
.kp-work-row { overflow: hidden; border: 1px solid var(--kp-line); border-radius: 8px; background: #fff; }
.kp-work-row + .kp-work-row { margin-top: 14px; }
.kp-work-row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--kp-line); color: var(--kp-navy); }
.kp-work-row-head button { border: 0; background: transparent; color: #a43d32; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.kp-work-row .kp-data-fields { padding-top: 16px; }
.kp-work-actions { padding: 14px 18px 20px; }
.kp-secondary { min-height: 40px; padding: 0 17px; border: 1px solid var(--kp-navy); border-radius: 999px; background: #fff; color: var(--kp-navy); font: inherit; font-weight: 700; cursor: pointer; }
.kp-data-form > footer,
.kp-shortlist-form > footer { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 18px 24px 22px; border-top: 1px solid var(--kp-line); }
.kp-data-form footer span,
.kp-shortlist-form footer span { margin-right: auto; color: var(--kp-ok); font-size: 12px; }

.kp-shortlist-form { max-width: 1120px; margin: 0 auto; }
.kp-shortlist-form > header > span { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: #eef3f8; color: var(--kp-navy); font-size: 12px; }
.kp-shortlist-grid { padding: 18px 24px 22px; }
.kp-shortlist-heading,
.kp-shortlist-row { display: grid; grid-template-columns: 30px 1.1fr 1fr .7fr 145px; gap: 10px; align-items: center; }
.kp-shortlist-heading { padding: 0 0 8px; color: #52657c; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kp-shortlist-row + .kp-shortlist-row { margin-top: 10px; }
.kp-shortlist-row > span { color: var(--kp-muted); text-align: center; font: 400 18px Georgia, serif; }
.kp-finalized { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 9px; border: 1px solid #c9d5e2; border-radius: 4px; background: #f8fafc; color: var(--kp-navy); font-size: 11px; font-weight: 700; text-align: center; }
.kp-finalized input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--kp-coral); }
.kp-finalized input:disabled + span { color: var(--kp-ok); }
.kp-shortlist-row.is-finalized input:not([type="checkbox"]) { background: #eef3f7; color: #66788b; cursor: not-allowed; }
.kp-shortlist-row.is-finalized { position: relative; }

@media (max-width: 960px) {
  .kp-layout {
    grid-template-columns: 1fr;
  }

  .kp-side {
    grid-template-columns: 1fr;
  }

  .kp-stage-card { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 650px) {
  .kp-main {
    padding: 28px 16px 56px;
  }

  .kp-welcome h1 {
    font-size: 36px;
  }

  .kp-progress {
    width: 100%;
  }

  .kp-stage-card { padding: 19px 16px; overflow-x: auto; }
  .kp-stage-card ol { min-width: 560px; }
  .kp-data-intro,
  .kp-shortlist-form > header { display: grid; padding: 20px; }
  .kp-data-intro .kp-primary { width: 100%; }
  .kp-data-sections,
  .kp-shortlist-grid { padding: 14px; }
  .kp-data-fields { grid-template-columns: 1fr; padding-inline: 14px; }
  .kp-data-wide { grid-column: 1; }
  .kp-shortlist-heading { display: none; }
  .kp-shortlist-row { grid-template-columns: 28px 1fr; padding: 10px 0; border-bottom: 1px solid var(--kp-line); }
  .kp-shortlist-row > :not(:first-child) { grid-column: 2; }
}
