.post-task-page {
  display: none;
  padding: 22px 0 64px;
  background: #f5f8f6;
  color: #173c2c;
}

body[data-page="post-task"] .post-task-page {
  display: block;
}

body[data-page="post-task"] main > :not(#postTaskPage) {
  display: none !important;
}

.post-task-hero,
.post-task-layout {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.post-task-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  min-height: 184px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(110deg, #063b2d 0%, #07543f 58%, #0b6b4b 100%);
  color: #fff;
}

.post-task-hero-copy {
  align-self: center;
  padding: 28px clamp(22px, 4vw, 48px);
}

.post-task-eyebrow {
  margin: 0 0 7px;
  color: #a7f3c1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.post-task-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.post-task-hero-copy > p:last-child {
  margin: 9px 0 0;
  color: #e7f6ec;
  font-size: 15px;
  line-height: 1.5;
}

.post-task-hero-image {
  position: relative;
  min-height: 184px;
}

.post-task-hero-image::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #07543f 0%, rgba(7, 84, 63, .18) 56%, rgba(6, 59, 45, .05) 100%);
  content: "";
}

.post-task-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.post-task-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 16px;
}

.post-task-sidebar {
  display: grid;
  gap: 16px;
}

.post-task-guide,
.post-task-safety,
.post-task-form-column {
  border: 1px solid #e1ece4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(6, 59, 45, .06);
}

.post-task-guide {
  padding: 22px 20px;
}

.post-task-guide h2,
.post-task-safety h2 {
  margin: 0;
  color: #063b2d;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.post-task-guide ol,
.post-task-safety ul {
  display: grid;
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.post-task-guide li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.post-task-step-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #0b6b4b;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.post-task-guide h3 {
  margin: 1px 0 4px;
  color: #14251c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.post-task-guide li p {
  margin: 0;
  color: #52665a;
  font-size: 12px;
  line-height: 1.5;
}

.post-task-safety {
  padding: 18px 20px;
  border-color: #cfe9d8;
  background: #eaf7ee;
}

.post-task-safety h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}

.post-task-safety h2 span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #c8f0d4;
  color: #07543f;
  font-size: 17px;
}

.post-task-safety ul {
  gap: 10px;
  margin-top: 13px;
}

.post-task-safety li {
  position: relative;
  padding-left: 19px;
  color: #294d3a;
  font-size: 12px;
  line-height: 1.5;
}

.post-task-safety li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 12px;
  height: 18px;
  place-items: center;
  color: #0b6b4b;
  font: 700 12px/1 Arial, sans-serif;
  font-weight: 900;
  content: "\2713";
}

.post-task-form-column {
  min-width: 0;
  padding: 14px;
}

.post-task-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid #d5e9d8;
  border-radius: 10px;
  background: #f0f8f2;
  color: #294d3a;
  font-size: 12px;
  line-height: 1.45;
}

.post-task-tip > span:first-child {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #0b6b4b;
  color: #fff;
  font-weight: 800;
}

body[data-page="post-task"] #taskDialog {
  position: relative;
  inset: auto;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

body[data-page="post-task"] #taskForm {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 16px;
}

body[data-page="post-task"] #taskForm > .dialog-head {
  align-items: center;
  margin-bottom: 5px;
}

body[data-page="post-task"] #taskForm > .dialog-head .section-kicker {
  margin: 0 0 5px;
  color: #0b6b4b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

body[data-page="post-task"] #taskForm .dialog-head h2 {
  color: #11291d;
  font-size: clamp(22px, 2.4vw, 28px);
}

body[data-page="post-task"] #taskForm #closeDialog {
  display: none;
}

body[data-page="post-task"] #taskForm .dialog-actions {
  position: static;
  bottom: auto;
  padding-top: 13px;
}

@media (max-width: 760px) {
  .post-task-page {
    padding-top: 14px;
  }

  .post-task-hero,
  .post-task-layout {
    width: min(100% - 24px, 560px);
  }

  .post-task-hero {
    grid-template-columns: minmax(0, 1fr) 34%;
    min-height: 156px;
    border-radius: 14px;
  }

  .post-task-hero-copy {
    padding: 22px 18px;
  }

  .post-task-hero h1 {
    font-size: clamp(27px, 7vw, 36px);
  }

  .post-task-hero-copy > p:last-child {
    font-size: 13px;
  }

  .post-task-hero-image {
    min-height: 156px;
  }

  .post-task-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
  }

  .post-task-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 10px;
  }

  .post-task-guide,
  .post-task-safety {
    padding: 16px 14px;
  }

  .post-task-guide ol {
    gap: 13px;
    margin-top: 15px;
  }

  .post-task-guide li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .post-task-step-icon {
    width: 29px;
    height: 29px;
    font-size: 13px;
  }

  .post-task-form-column {
    padding: 12px;
  }

  body[data-page="post-task"] #taskForm {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .post-task-hero,
  .post-task-layout {
    width: calc(100% - 24px);
  }

  .post-task-hero {
    grid-template-columns: minmax(0, 1fr) 28%;
    min-height: 140px;
  }

  .post-task-hero-copy {
    padding: 18px 14px;
  }

  .post-task-eyebrow {
    font-size: 9px;
  }

  .post-task-hero h1 {
    font-size: clamp(25px, 8vw, 32px);
  }

  .post-task-hero-copy > p:last-child {
    max-width: 250px;
    font-size: 12px;
  }

  .post-task-hero-image {
    min-height: 140px;
  }

  .post-task-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-task-guide ol {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 10px;
  }

  .post-task-form-column {
    padding: 10px;
  }

  body[data-page="post-task"] #taskForm .form-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
