site-brand__markhtml {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body.site-shell {
  min-height: 100vh;
  background: #f6f8f7;
  color: #1d2521;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #17604f;
}

a:hover {
  color: #0e4639;
}

.container {
  max-width: 1040px;
}

form > .col-8.mx-auto,
.container > .col-8.mx-auto {
  flex: 0 0 100%;
  max-width: 760px;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dde5e0;
  box-shadow: 0 10px 30px rgba(28, 46, 38, .06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #1d2521;
  text-decoration: none;
}

.site-brand:hover {
  color: #1d2521;
  text-decoration: none;
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: transparent;
  font-weight: 700;
}

.site-brand__title,
.site-brand__subtitle {
  display: block;
}

.site-brand__title {
  font-weight: 700;
  line-height: 1.2;
}

.site-brand__subtitle {
  color: #62716a;
  font-size: .88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .65rem;
  color: #34433c;
  font-weight: 600;
}

.site-nav__link:hover {
  color: #17604f;
  text-decoration: none;
}

.btn {
  border-radius: 7px;
  font-weight: 700;
}

.btn-primary,
.btn-success {
  background: #17604f;
  border-color: #17604f;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  background: #0f493c;
  border-color: #0f493c;
}

.btn-outline-primary {
  color: #17604f;
  border-color: #17604f;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #17604f;
  border-color: #17604f;
}

.btn-outline-secondary {
  color: #52635b;
  border-color: #b9c4bf;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #52635b;
  border-color: #52635b;
  color: #ffffff;
}

.application-stepper-wrap {
  background: #ffffff;
  border-bottom: 1px solid #dde5e0;
}

.application-stepper {
  display: grid;
  grid-auto-columns: minmax(132px, 1fr);
  grid-auto-flow: column;
  gap: .5rem;
  overflow-x: auto;
  padding: .85rem 0;
}

.application-step {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 132px;
  padding: .65rem .75rem;
  border: 1px solid #d8e2dd;
  border-radius: 8px;
  background: #f8faf9;
  color: #61726b;
}

.application-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d8e2dd;
}

.application-step__number,
.application-step__label {
  display: block;
  line-height: 1.15;
}

.application-step__number {
  font-size: .72rem;
  color: #7b8a84;
}

.application-step__label {
  color: #26332d;
  font-size: .9rem;
  font-weight: 700;
}

.application-step.is-current {
  border-color: #17604f;
  background: #edf7f3;
}

.application-step.is-current .application-step__icon {
  background: #17604f;
  border-color: #17604f;
  color: #ffffff;
}

.application-step.is-complete {
  border-color: #c8d8d0;
  background: #ffffff;
}

.application-step.is-complete .application-step__icon {
  background: #eaf5ef;
  border-color: #17604f;
  color: #17604f;
}

.application-header {
  max-width: 760px;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.application-header h1,
.application-header .display-6 {
  margin-bottom: .65rem;
  color: #17211d;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.application-header .lead {
  color: #53645c;
  font-size: 1.08rem;
}

.application-context {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.year-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.year-pill {
  padding: .42rem .7rem;
  background: #edf7f3;
  border: 1px solid #cfe5dc;
  color: #17604f;
}

.year-pill--muted {
  background: #ffffff;
  border-color: #dce4e0;
  color: #50625a;
}

.deadline-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}

.deadline-strip__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .95rem;
  background: #ffffff;
  border: 1px solid #dde5e0;
  border-radius: 8px;
}

.deadline-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f0f5f3;
  color: #17604f;
}

.deadline-strip__item strong,
.deadline-strip__item span span {
  display: block;
}

.deadline-strip__item strong {
  color: #1d2521;
}

.deadline-strip__item span span {
  color: #61726b;
  font-size: .92rem;
}

.hero-panel,
.action-panel,
.status-panel,
form > .col.border,
form > [class*="col-"].border,
.container > .col.border,
.container > [class*="col-"].border,
.container > .row > .col.border {
  background: #ffffff;
  border: 1px solid #dce4e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 36px rgba(31, 48, 40, .08);
}

form > .col.border,
form > [class*="col-"].border,
.container > .col.border,
.container > [class*="col-"].border,
.container > .row > .col.border {
  padding: 1.25rem !important;
}

form > .col.border h4,
form > [class*="col-"].border h4,
.container > .col.border h4,
.container > [class*="col-"].border h4 {
  color: #1d2521;
  font-weight: 750;
}

.form-control,
.custom-select {
  border-color: #cbd7d1;
  border-radius: 7px;
  min-height: 44px;
}

.form-control:focus {
  border-color: #17604f;
  box-shadow: 0 0 0 .2rem rgba(23, 96, 79, .14);
}

.form-text,
.text-muted {
  color: #64756e !important;
}

.form-check {
  padding: .8rem .8rem .8rem 2.1rem;
  background: #f8faf9;
  border: 1px solid #dde5e0;
  border-radius: 8px;
}

.form-check-input {
  margin-top: .28rem;
}

.risk-date-picker .input-group-text {
  background: #f0f5f3;
  border-color: #cbd7d1;
  color: #17604f;
}

.risk-date-picker .form-control {
  font-weight: 700;
}

.risk-date-picker .btn {
  min-width: 82px;
}

.list-group-item {
  border-color: #dde5e0;
}

.list-group-item-success {
  background: #eaf5ef;
  color: #17604f;
}

.progress-list {
  padding-left: 0;
  list-style: none;
}

.progress-list .list-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-radius: 7px;
  margin-bottom: .5rem;
}

.application-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.application-progress-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.application-complete-action {
  color: #17604f;
  transition: opacity .16s ease;
}

.application-edit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #17604f;
  color: #ffffff;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.application-edit-action:hover,
.application-edit-action:focus,
.application-edit-row:hover .application-edit-action,
.application-edit-row:focus .application-edit-action,
.progress-list .list-group-item:hover .application-edit-action,
.progress-list .list-group-item:focus-within .application-edit-action {
  color: #ffffff;
  opacity: 1;
  text-decoration: none;
  transform: scale(1);
}

.application-edit-action:hover,
.application-edit-action:focus {
  background: #0f493c;
}

.progress-list .list-group-item:hover .application-complete-action,
.progress-list .list-group-item:focus-within .application-complete-action {
  opacity: 0;
}

.application-progress-actions .application-edit-action {
  position: absolute;
  inset: 0;
}

@media (hover: none) {
  .application-edit-action {
    opacity: 1;
    transform: scale(1);
  }

  .application-progress-actions .application-complete-action {
    display: none;
  }
}

.next-step-card {
  padding: 1.25rem;
  background: #1f352e;
  border-radius: 8px;
  color: #ffffff;
}

.next-step-card p {
  color: #dbe8e3;
}

.progress-panel h3,
.application-summary-card h3 {
  font-size: 1.35rem;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}

.info-strip__item {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #dde5e0;
  border-radius: 8px;
}

.info-strip__item strong {
  display: block;
  color: #1d2521;
}

.info-strip__item span {
  display: block;
  color: #61726b;
  font-size: .92rem;
}

.card {
  border-color: #dce4e0;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 48, 40, .07);
}

.card-header {
  background: #ffffff;
  border-bottom-color: #dce4e0;
}

.card-header.d-flex {
  gap: .75rem;
}

.card-header h3,
.card-header h4 {
  margin-bottom: 0;
  font-weight: 750;
}

.status-badge {
  padding: .32rem .6rem;
  background: #eef2f1;
  color: #52635b;
}

.status-badge--primary,
.status-badge--info {
  background: #e7f2fb;
  color: #265a82;
}

.status-badge--success {
  background: #e7f4ed;
  color: #17604f;
}

.status-badge--warning {
  background: #fff4da;
  color: #7b4b00;
}

.status-badge--danger {
  background: #fdeaea;
  color: #9b2c2c;
}

.history-table td,
.history-table th {
  vertical-align: middle;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-actions__hint {
  margin: 0;
  color: #61726b;
  font-size: .92rem;
}

.form-actions__buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .75rem;
}

.form-actions__buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.review-submit-panel {
  background: #f8fbf9 !important;
  border-color: #cfe5dc !important;
}

.application-review .list-group-item .d-flex {
  gap: 1rem;
}

.application-review .list-group-item b.col-4,
.application-review .list-group-item .col-8 {
  flex: initial;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.application-review .list-group-item b.col-4 {
  width: 220px;
  color: #52635b;
}

.application-review .list-group-item .col-8 {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.table {
  background: #ffffff;
}

footer {
  color: #64756e;
}

.border-top {
  border-top: 1px solid #dce4e0 !important;
}

.border-bottom {
  border-bottom: 1px solid #dce4e0 !important;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.blank-row,
.blank-row td {
  border-left: 0;
  border-right: 0;
}

@media (max-width: 767.98px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .site-nav .btn,
  .site-nav__link {
    flex: 1 1 auto;
    justify-content: center;
  }

  .application-header h1,
  .application-header .display-6 {
    font-size: 1.65rem;
  }

  .year-pill {
    white-space: normal;
  }

  .deadline-strip {
    grid-template-columns: 1fr;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions__buttons,
  .form-actions__buttons .btn {
    width: 100%;
  }

  .form-actions__buttons .btn {
    justify-content: center;
  }

  .card-header.d-flex {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .application-review .list-group-item .d-flex {
    flex-direction: column;
  }

  .application-review .list-group-item b.col-4 {
    width: auto;
  }

  form > .col.border,
  form > [class*="col-"].border,
  .container > .col.border {
    padding: 1rem !important;
  }
}
