#article .next-edition-form { margin: 1.4rem 0; min-width: 0; }
#article .next-edition-form fieldset { min-width: 0; margin: 0 0 1rem; padding: 1rem; border: 1px solid #d8d7cf; border-radius: .6rem; }
#article .next-edition-form legend { padding: 0 .3rem; font-weight: 650; }
#article .next-edition-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .8rem 1rem; align-items: end; }
#article .next-edition-form label { display: grid; gap: .3rem; min-width: 0; color: inherit; font-size: .94rem; font-weight: 600; }
#article .next-edition-form label:has(input[type=checkbox]) { display: flex; align-items: baseline; gap: .5rem; }
#article .next-edition-form select, #article .next-edition-form input:not([type=checkbox]) { min-width: 0; max-width: 100%; width: 100%; min-height: 2.6rem; background: #fff; color: #172019; font: inherit; border: 1px solid #bfc3ba; border-radius: .35rem; padding: .4rem .5rem; }
#article .next-edition-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin-top: 1rem; }
#article .next-edition-actions button { padding: .6rem .9rem; background: #111113; color: #fff; border: 1px solid #111113; border-radius: .35rem; cursor: pointer; font: inherit; }
#article .next-edition-actions button:disabled { opacity: .56; cursor: default; }
#article .next-edition-results, #article .next-edition-card { margin: 1rem 0; padding: 1rem; min-width: 0; border: 1px solid #d8d7cf; border-radius: .6rem; overflow-wrap: anywhere; }
#article .next-edition-results:empty { display: none; }
#article .next-edition-results dl { display: grid; gap: .15rem; }
#article .next-edition-results dt { font-weight: 650; }
#article .next-edition-results dd { margin: 0 0 .55rem; }
#article [data-replay] details { margin: .75rem 0; }
#article [data-replay] summary { cursor: pointer; font-weight: 650; }

/* The card owns the inset. Reset the legacy per-child padding only in this card. */
body[data-brand-id="zobi-seo"] #article figure.edition-example {
  padding: clamp(16px, 2.4vw, 24px);
}
body[data-brand-id="zobi-seo"] main.dl-layout > article#article[data-ending-layout] [data-edition-extension] figure.edition-example > :is(figcaption, p, dl) {
  margin: 0;
  padding: 0 !important;
  max-inline-size: 100%;
}
body[data-brand-id="zobi-seo"] main.dl-layout > article#article[data-ending-layout] [data-edition-extension] figure.edition-example > :is(p, dl) {
  margin-block-start: 1rem;
}
body[data-brand-id="zobi-seo"] #article figure.edition-paired-results > :is(h3, figcaption) {
  padding: 0 !important;
  margin: 0;
}
body[data-brand-id="zobi-seo"] #article figure.edition-paired-results > .table-wrap {
  margin-block: 1rem;
}
#article [data-edition-extension] dl.edition-definitions { margin-inline: 0; }
#article [data-edition-extension] dl.edition-definitions > dd {
  margin: .2rem 0 0;
  overflow-wrap: anywhere;
}
#article [data-edition-extension] dl.edition-definitions > dd + dt {
  margin-block-start: .85rem;
}
#article [data-edition-extension] :is(code, a) { overflow-wrap: anywhere; }
#article [data-replay] label:has(input[name="clickRecorded"]) { margin-block-start: .85rem; }

/* Same rail contrast correction verified in the parallel citation review. */
body[data-brand-id="zobi-seo"] aside a.pub-book-button[data-call-placement="rail"]:hover{background:#e5eee7!important;color:#171b18!important;-webkit-text-fill-color:#171b18!important;opacity:1!important}
