/**
 * Gin admin theme overrides.
 */

.page-wrapper__node-edit-form {
  padding: 0 1rem;
}

header.region.gin--navigation-top-bar--offset,
.messages__wrapper,
.gin--edit-form .page-wrapper__node-edit-form .messages-list,
.gin--edit-form .page-wrapper__node-edit-form .block-system-main-block,
.gin--edit-form .page-wrapper__node-edit-form .node-form,
:where(*) body:not(.toolbar-tray-open) .layout-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 1rem;
}

@media (min-width: 61em) {
header.region.gin--navigation-top-bar--offset,
.messages__wrapper,
.gin--edit-form .page-wrapper__node-edit-form .messages-list,
.gin--edit-form .page-wrapper__node-edit-form .block-system-main-block,
.gin--edit-form .page-wrapper__node-edit-form .node-form,
:where(*) body:not(.toolbar-tray-open) .layout-container {
    max-width: 1600px;
  }
}

@media (min-width: 81em) {
header.region.gin--navigation-top-bar--offset,
.messages__wrapper,
.gin--edit-form .page-wrapper__node-edit-form .messages-list,
.gin--edit-form .page-wrapper__node-edit-form .block-system-main-block,
.gin--edit-form .page-wrapper__node-edit-form .node-form,
:where(*) body:not(.toolbar-tray-open) .layout-container {
    max-width: 1800px;
  }
}


@media (min-width: 101em) {
header.region.gin--navigation-top-bar--offset,
.messages__wrapper,
.gin--edit-form .page-wrapper__node-edit-form .messages-list,
.gin--edit-form .page-wrapper__node-edit-form .block-system-main-block,
.gin--edit-form .page-wrapper__node-edit-form .node-form,
:where(*) body:not(.toolbar-tray-open) .layout-container {
    max-width: 2000px;
  }
}

header.region.gin--navigation-top-bar--offset {
    padding-top: 1rem;
    margin-inline: auto;
}

.layout-container region-sticky__items,
.messages__wrapper {
  padding: 0;
}

/* Fix button sizing mis-match altering clipping in admin views */
:is(#extra-specificity-hack,[data-drupal-admin-styles]) #gin-sticky-edit-unlock {
    font-size: var(--gin-font-size-xs);
    padding-block: calc(var(--gin-spacing-s) - 6px);
    padding-inline: var(--gin-spacing-s);
    margin-block: 0;
    box-shadow: none;
}

 #gin-sticky-edit-unlock {
    font-size: var(--gin-font-size-xs);
    padding-block: calc(var(--gin-spacing-s) - 6px);
    padding-inline: var(--gin-spacing-s);
    margin-block: 0;
    box-shadow: none;
}

/* Cap the top admin nav bar's width so titles are contained */
header.region.gin--navigation-top {
  max-width: 1400px;
}

/* Admin and Unpublished */
.node--unpublished {
  padding: 0 !important;
}

.entity-moderation-form {
  margin: 0 0 2em !important;
  padding-left: 1em !important;
  padding: 1rem 1rem 0 !important;
}

.entity-moderation-form__item:last-child {
  margin-bottom: 0 !important;
}

/**
 * Reconciles Drupal core's DEFAULT client-side message markup (used by
 * modules that add messages via Drupal.message() without matching
 * Gin's own theme override - e.g. a content-locking module's warning)
 * with the rest of the site's message styling. This older markup
 * carries no severity class at all - only a hardcoded accessible label
 * ("Status message" / "Warning message" / "Error message") that
 * Drupal's JS message API sets based on type - used here as the only
 * reliable hook. Unlike the Gin .messages--* color overrides that were
 * removed above, this doesn't fight any existing Gin styling - these
 * elements have none to begin with.
 *
 * Color/background only - no matching icon, since CSS can't inject the
 * actual <i> element Font Awesome's script looks for, only text/
 * unicode via ::before.
 *
 * UNVERIFIED - confirm the exact aria-label text on a real triggered
 * instance of each type; assumed here to match Drupal core's
 * convention, but a module could customize it.
 */
[data-drupal-messages] [role="contentinfo"][aria-label="Status message"] {
  background-color: #eef6f5;
  border-left: 0.625rem solid #427a73;
  padding: 1rem 1rem 1rem 1.5rem;
}

[data-drupal-messages] [role="contentinfo"][aria-label="Warning message"] {
  background-color: #fbf8f2;
  border-left: 0.625rem solid #816e48;
  padding: 1rem 1rem 1rem 1.5rem;
}

[data-drupal-messages] [role="contentinfo"][aria-label="Error message"] {
  background-color: #ffeeea;
  border-left: 0.625rem solid #a7341d;
  padding: 1rem 1rem 1rem 1.5rem;
}