/* Structured publishing workspace for authenticated Aspen editors. */
.news-publisher-section {
  padding: clamp(64px, 7vw, 94px) 24px !important;
  border-top: 1px solid #dfe8e6;
  background: #f4f8f7 !important;
}

.news-publisher-section > .thq-section-max-width {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto;
}

.news-publisher-panel {
  max-width: 1180px !important;
  padding: clamp(28px, 4vw, 48px) !important;
  border: 1px solid #dce7e4 !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 65px rgba(16, 35, 63, .09) !important;
}

.publisher-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.publisher-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #108477;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.publisher-heading h2 {
  margin: 0 !important;
  color: #10233f !important;
  font-size: clamp(30px, 4vw, 44px) !important;
  font-weight: 760 !important;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.publisher-heading p {
  max-width: 650px;
  margin: 14px 0 0;
  color: #647487;
  font-size: 16px;
  line-height: 1.65;
}

.news-publisher-form {
  display: grid;
  gap: 34px;
}

.publisher-meta-grid,
.publisher-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.publisher-field,
.publisher-image-field,
.publisher-checks {
  min-width: 0;
}

.publisher-field > label,
.publisher-label-row label {
  display: block;
  color: #26394e;
  font-size: 14px;
  font-weight: 720;
}

.publisher-label-row {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.publisher-label-row span,
.publisher-section-heading > span,
#newsWordCount {
  color: #7a8795;
  font-size: 12px;
  font-weight: 600;
}

.publisher-field > label {
  margin-bottom: 8px;
}

.publisher-field :is(input, select) {
  width: 100% !important;
  min-height: 48px;
  padding: 11px 13px !important;
  border: 1px solid #cedbd8 !important;
  border-radius: 9px !important;
  color: #10233f;
  background: #fff;
  font: inherit;
  font-size: 15px !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.publisher-field :is(input, select):focus {
  border-color: #108477 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(16, 132, 119, .12);
}

.publisher-content-section,
.publisher-bottom-grid {
  padding-top: 30px;
  border-top: 1px solid #e1e9e7;
}

.publisher-section-heading {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.publisher-section-heading > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.publisher-section-heading h3 {
  margin: 0 !important;
  color: #10233f;
  font-size: 18px !important;
  font-weight: 740;
  line-height: 1.3;
}

.publisher-step {
  display: inline-grid;
  width: 30px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: #0a665d;
  background: #eaf4f1;
  font-size: 11px;
  font-weight: 800;
}

.publisher-content-section > div:nth-child(2) > div:first-child,
.legacy-template-tools {
  display: none !important;
}

.publisher-template-tools {
  display: grid;
  margin-bottom: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.publisher-template-tools button {
  display: grid;
  min-height: 72px;
  padding: 12px 14px !important;
  align-content: center;
  gap: 4px;
  border: 1px solid #dce7e4;
  border-radius: 10px;
  color: #304256;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.publisher-template-tools button:hover,
.publisher-template-tools button:focus-visible {
  border-color: #8abdb5;
  background: #f0f7f5;
  transform: translateY(-1px);
}

.publisher-template-tools strong {
  color: #0a665d;
  font-size: 14px;
}

.publisher-template-tools span {
  color: #718092;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.publisher-block-tools {
  display: flex;
  margin-bottom: 14px;
  padding: 10px 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  border: 1px solid #e2eae8;
  border-radius: 10px;
  background: #f8faf9;
}

.publisher-block-tools > span {
  margin-right: 3px;
  color: #667688;
  font-size: 12px;
  font-weight: 700;
}

.publisher-block-tools button {
  min-height: 32px;
  padding: 6px 10px !important;
  border: 1px solid #d8e3e0;
  border-radius: 7px;
  color: #405467;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.publisher-block-tools button:hover,
.publisher-block-tools button:focus-visible {
  color: #0a665d;
  border-color: #9fc8c1;
  background: #edf6f3;
}

.news-publisher-panel .note-editor.note-frame {
  overflow: hidden;
  border: 1px solid #cedbd8;
  border-radius: 11px;
  box-shadow: none;
}

.news-publisher-panel .note-toolbar {
  padding: 8px;
  border-bottom: 1px solid #dfe8e6;
  background: #f5f8f7;
}

.news-publisher-panel .note-btn {
  min-width: 30px;
  min-height: 30px !important;
  padding: 4px 7px !important;
}

.news-publisher-panel .note-editable {
  min-height: 410px;
  padding: 24px !important;
  color: #3f5062;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

.news-publisher-panel .note-editable h2,
.news-publisher-panel .note-editable h3 {
  margin: 1.6em 0 .65em;
  color: #10233f;
  font-weight: 740;
  line-height: 1.3;
}

.news-publisher-panel .note-editable .article-lead {
  color: #30485d;
  font-size: 18px;
  line-height: 1.65;
}

.news-publisher-panel .note-editable .article-callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid #108477;
  background: #eef6f4;
}

.publisher-content-footer {
  display: flex;
  margin-top: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.publisher-content-footer p {
  max-width: 700px;
  margin: 0;
  color: #718092;
  font-size: 12px;
  line-height: 1.5;
}

.publisher-preview-button,
.publisher-secondary-action {
  border: 1px solid #a9c9c3;
  color: #0a665d;
  background: #fff;
}

.publisher-preview-button {
  min-height: 36px;
  padding: 7px 11px !important;
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.publisher-image-field .upload-area {
  display: grid;
  min-height: 190px;
  padding: 24px !important;
  place-content: center;
  border: 1px dashed #9abeb8 !important;
  border-radius: 12px !important;
  background: #f6faf9 !important;
}

.publisher-image-field .upload-area:hover,
.publisher-image-field .upload-area:focus-visible,
.publisher-image-field .upload-area.dragover {
  border-color: #108477 !important;
  background: #edf6f3 !important;
  outline: 3px solid rgba(16, 132, 119, .1);
  transform: none;
}

.publisher-image-field .upload-area h3 {
  margin: 5px 0 0 !important;
  color: #26394e;
  font-size: 15px !important;
}

.publisher-image-field .upload-area p {
  margin: 6px 0 0;
  color: #7a8795;
  font-size: 12px;
}

.publisher-checks {
  padding-left: 8px;
}

.publisher-checks ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publisher-checks li {
  display: grid;
  min-height: 46px;
  padding: 8px 0;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e7eeec;
}

.publisher-checks li > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c6d1cf;
}

.publisher-checks li.is-pass > span {
  background: #108477;
  box-shadow: 0 0 0 4px rgba(16, 132, 119, .1);
}

.publisher-checks li.is-fail > span {
  background: #d79341;
  box-shadow: 0 0 0 4px rgba(215, 147, 65, .1);
}

.publisher-checks li div {
  display: grid;
  gap: 2px;
}

.publisher-checks strong {
  color: #304256;
  font-size: 13px;
}

.publisher-checks small {
  color: #7a8795;
  font-size: 11px;
}

.publisher-status {
  display: none;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}

.publisher-status.is-error {
  display: block;
  color: #8b3e1f;
  border: 1px solid #e8c4b5;
  background: #fff5f0;
}

.publisher-status.is-ready {
  display: block;
  color: #0a665d;
  border: 1px solid #b9d7d1;
  background: #eff8f5;
}

.publisher-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.publisher-actions button {
  min-height: 46px;
  padding: 10px 18px !important;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
}

.publisher-primary-action {
  border: 1px solid #108477;
  color: #fff;
  background: #108477;
  box-shadow: 0 7px 17px rgba(16, 132, 119, .18);
}

.publisher-primary-action:hover,
.publisher-primary-action:focus-visible {
  border-color: #0a665d;
  background: #0a665d;
}

@media (max-width: 760px) {
  .news-publisher-section {
    padding: 54px 16px !important;
  }

  .news-publisher-panel {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  .publisher-heading {
    margin-bottom: 28px;
  }

  .publisher-meta-grid,
  .publisher-bottom-grid,
  .publisher-template-tools {
    grid-template-columns: 1fr;
  }

  .news-publisher-form {
    gap: 28px;
  }

  .publisher-template-tools button {
    min-height: 58px;
  }

  .publisher-block-tools {
    align-items: stretch;
  }

  .publisher-block-tools > span {
    width: 100%;
  }

  .news-publisher-panel .note-editable {
    min-height: 360px;
    padding: 18px !important;
  }

  .publisher-content-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .publisher-checks {
    padding-left: 0;
  }

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

  .publisher-actions button {
    width: 100%;
  }
}
