/* v2.1.18 desktop-only alignment and completeness fixes. */
@media (min-width: 1101px), (min-width:761px) and (max-width:1100px) and (orientation:portrait) {
  /* Match full-width secondary pages and WooCommerce flows to the header rail. */
  body:not(.home) .page-main > .container:not(.content-shell),
  body:not(.home):not(.single-product) .woocommerce-main > .container {
    width: min(calc(100% - (var(--ed-side, 4vw) * 2)), var(--ed-max, 1680px));
    max-width: var(--ed-max, 1680px);
    margin-inline: auto;
  }

  /* The reference page contains exactly three cards; do not leave an empty fourth track. */
  body:not(.home) .page-story-grid--references {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.home) .document-card > .text-link {
    align-self: end;
    justify-self: start;
  }

  body:not(.home) .journal-grid > .empty-state {
    grid-column: 1 / -1;
    max-width: 760px;
  }
}
