.hero--article-form .hero__background img,
.hero--recipe-form .hero__background img {
  object-position: center 70%;
}

.authoring-page {
  background: #f7f2ea;
}

.authoring-shell {
  display: grid;
  gap: 1.2rem;
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
}

.authoring-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 2.5vw, 1.55rem);
  border: 1px solid rgb(58 44 30 / 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgb(255 252 246 / 0.88), rgb(247 242 234 / 0.76));
  box-shadow:
    0 18px 44px rgb(92 78 55 / 0.07),
    0 0 58px rgb(196 164 102 / 0.08);
}

.authoring-header__copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 0.38rem;
  min-width: 0;
  text-align: left;
}

.authoring-header .eyebrow {
  text-align: inherit;
}

.authoring-header h1 {
  margin: 0;
  color: #1f2c25;
  font-size: clamp(2.45rem, 5.6vw, 4.75rem);
  line-height: 0.96;
  text-align: inherit;
}

.authoring-intro {
  max-width: 58ch;
  margin: 0;
  color: rgb(31 44 37 / 0.78);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

.authoring-author {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-width: max-content;
  margin: 0;
  padding: 0.42rem 0.82rem 0.42rem 0.48rem;
  border: 1px solid rgb(58 44 30 / 0.1);
  border-radius: 999px;
  background: rgb(255 252 246 / 0.72);
  color: #1f2c25;
  font-weight: 700;
  box-shadow: 0 10px 26px rgb(58 44 30 / 0.08);
}

.authoring-author__label {
  color: rgb(31 44 37 / 0.72);
  font-weight: 400;
}

.authoring-author img {
  width: 38px;
  height: 38px;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
}

.authoring-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid rgb(58 44 30 / 0.12);
  border-radius: 20px;
  background: rgb(255 252 246 / 0.74);
  box-shadow:
    0 18px 40px rgb(92 78 55 / 0.08),
    0 0 54px rgb(196 164 102 / 0.08);
}

.authoring-section {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  margin: 0;
  padding: 0 0 1rem;
  border: 0;
  border-bottom: 1px solid rgb(58 44 30 / 0.1);
}

.authoring-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.authoring-section legend {
  margin: 0 0 0.8rem;
  padding: 0;
  color: #0b4c3a;
  font-size: 0.78rem;
  width: 100%;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authoring-grid {
  display: grid;
  gap: 0.85rem;
}

.authoring-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.authoring-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.authoring-field {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
}

.authoring-field--wide {
  grid-column: 1 / -1;
}

.authoring-field label {
  color: #1f2c25;
  font-size: 0.92rem;
  font-weight: 700;
}

.authoring-control {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgb(31 44 37 / 0.16);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.68);
  color: #1f2c25;
  font: inherit;
  outline: 0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

textarea.authoring-control {
  min-height: 46px;
  resize: vertical;
}

.authoring-control:focus {
  background: rgb(255 255 255 / 0.9);
  border-color: rgb(11 76 58 / 0.5);
  box-shadow: 0 0 0 4px rgb(11 76 58 / 0.1);
}

.authoring-control[type="file"] {
  padding: 0.58rem 0.7rem;
}

.authoring-checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.7rem;
  margin: 0;
  padding: 0.85rem 0.9rem;
  list-style: none;
  border: 1px solid rgb(31 44 37 / 0.12);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.6);
}

.authoring-checkbox-list li {
  margin: 0;
}

.authoring-checkbox-list label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #1f2c25;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}

.authoring-checkbox-list input {
  margin: 0.12rem 0 0;
}

.authoring-help,
.authoring-error,
.authoring-errors p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.authoring-help {
  color: rgb(31 44 37 / 0.62);
}

.authoring-help--center {
  text-align: center;
}

.authoring-error,
.authoring-errors {
  color: #7a332c;
}

.authoring-errors {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgb(122 51 44 / 0.08);
}

.authoring-section--centered {
  text-align: center;
}

.authoring-section--centered legend {
  margin-inline: auto;
}

.authoring-section--centered .authoring-grid--two {
  max-width: 36rem;
  margin-inline: auto;
  text-align: left;
}

.authoring-section--centered .authoring-grid,
.authoring-section--centered .authoring-grid--four {
  text-align: left;
}

.authoring-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.authoring-actions__buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.authoring-link,
.authoring-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.66rem 1.05rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.authoring-link {
  background: transparent;
  color: rgb(31 44 37 / 0.68);
}

.authoring-link:hover,
.authoring-link:focus-visible {
  background: rgb(58 44 30 / 0.08);
  color: #3a2c1e;
  outline: 0;
  text-decoration: none;
}

.authoring-submit {
  background: rgb(11 76 58 / 0.94);
  color: #fffdf8;
  cursor: pointer;
}

.authoring-submit:hover,
.authoring-submit:focus-visible {
  background: #0b4c3a;
  color: #ffffff;
  outline: 0;
}

.authoring-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.authoring-step-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: center;
  gap: 0.75rem;
}

.authoring-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2c25;
  white-space: nowrap;
}

.authoring-add-step-btn {
  background: none;
  border: 1px dashed rgb(11 76 58 / 0.4);
  border-radius: 6px;
  color: #0b4c3a;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
}

.authoring-add-step-btn:hover {
  background: rgb(11 76 58 / 0.05);
  border-color: #0b4c3a;
}

.authoring-step-existing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.authoring-step-existing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.authoring-step-badge {
  background: #0b4c3a;
  border-radius: 4px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
}

.authoring-step-thumb {
  border-radius: 6px;
  height: 72px;
  object-fit: cover;
  width: 96px;
}

@media (max-width: 760px) {
  .authoring-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .authoring-header__copy {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .authoring-grid--two,
  .authoring-grid--four {
    grid-template-columns: 1fr;
  }

  .authoring-checkbox-list {
    grid-template-columns: 1fr;
  }

  .authoring-actions__buttons {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* ── Image upload warning ── */
.authoring-warning {
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  background: #fff8e6;
  border-left: 4px solid #c97b00;
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  color: #5a3e00;
  line-height: 1.5;
}

.authoring-warning a {
  color: #c97b00;
  text-decoration: underline;
}

/* ── Confirmation checkboxes ── */
.authoring-section--confirmations {
  background: #f4f9f4;
  border-color: color-mix(in srgb, var(--brand, #0b4c3a) 18%, transparent);
}

.authoring-confirm-intro {
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
  margin-bottom: 1.5rem;
}

.authoring-confirm-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.authoring-confirm-item {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  align-items: start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand, #0b4c3a) 15%, transparent);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.authoring-confirm-item:has(input:checked) {
  border-color: var(--brand, #0b4c3a);
  background: color-mix(in srgb, var(--brand, #0b4c3a) 4%, #fff);
}

.authoring-confirm-check {
  margin-top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--brand, #0b4c3a);
  cursor: pointer;
}

.authoring-confirm-label {
  font-size: 0.875rem;
  color: var(--text, #1a1a1a);
  line-height: 1.55;
}

.authoring-error--block {
  display: block;
  margin-top: 0.3rem;
  grid-column: 2;
}
