@layer wp {
  /* Page */

  .wp-page {
    width: 100%;
    max-width: var(--wp-page-width);
    margin: 0 auto;
    padding: var(--wp-space-2xl) var(--wp-gutter);
  }

  .wp-page-narrow {
    max-width: 48rem;
  }

  .wp-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--wp-space-sm) var(--wp-space-xl);
    margin-bottom: var(--wp-space-xl);
  }

  .wp-page-head > :first-child {
    flex: 1 1 20rem;
    min-width: 0;
  }

  .wp-page-head h1 {
    margin-bottom: var(--wp-space-2xs);
  }

  .wp-page-head p {
    max-width: var(--wp-line-length);
    margin: 0;
    color: var(--wp-text-subtle);
  }

  .wp-page-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp-space-xs);
  }

  .wp-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--wp-space-xs) var(--wp-space-sm);
    margin-bottom: var(--wp-space-sm);
  }

  /* Let a site's own spacing win */
  :where(* + .wp-section-head) {
    margin-top: var(--wp-space-2xl);
  }

  .wp-section-head > :is(h2, h3) {
    margin: 0;
  }

  .wp-section-head > :last-child:not(:first-child, .wp-count) {
    margin-inline-start: auto;
  }

  .wp-count {
    font-size: var(--wp-font-size-sm);
    color: var(--wp-text-subtle);
  }

  /* Full-width sections whose content lines up with .wp-page */
  .wp-container {
    width: 100%;
    max-width: var(--wp-page-width);
    margin: 0 auto;
    padding: 0 var(--wp-gutter);
  }

  .wp-section {
    padding-block: var(--wp-space-4xl);
  }

  .wp-section-alt {
    background: var(--wp-card-bg);
    border-block: 1px solid var(--wp-border);
  }

  .wp-back {
    display: inline-flex;
    align-items: center;
    gap: var(--wp-space-2xs);
    margin-bottom: var(--wp-space-sm);
    font-size: var(--wp-font-size-base);
    overflow-wrap: anywhere;
  }

  @media (pointer: coarse) {
    .wp-back {
      position: relative;
    }

    .wp-back::after {
      content: "";
      position: absolute;
      inset: calc((1.5em - var(--wp-tap-size)) / 2) calc(-1 * var(--wp-space-xs));
    }
  }

  .wp-back::before {
    --wp-back-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2 2 8l6 6 1.4-1.4L5.8 9H14V7H5.8l3.6-3.6z'/%3E%3C/svg%3E");
    content: "";
    flex: none;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: var(--wp-back-icon) center / contain no-repeat;
    mask: var(--wp-back-icon) center / contain no-repeat;
  }

  .wp-back:dir(rtl)::before {
    scale: -1 1;
  }

  /* Buttons */

  .wp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wp-space-xs);
    min-height: var(--wp-control-height);
    padding: var(--wp-space-2xs) var(--wp-space-md);
    font: inherit;
    font-size: var(--wp-font-size-base);
    font-weight: 600;
    line-height: 1.2;
    color: var(--wp-text);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border-strong);
    border-radius: var(--wp-radius);
    cursor: pointer;
    transition:
      background-color var(--wp-duration),
      border-color var(--wp-duration),
      color var(--wp-duration);
  }

  .wp-button:hover {
    background: var(--wp-hover-bg);
  }

  .wp-button-brand {
    color: var(--wp-on-brand);
    background: var(--wp-brand);
    border-color: var(--wp-brand);
  }

  .wp-button-brand:hover {
    background: var(--wp-brand-hover);
    border-color: var(--wp-brand-hover);
  }

  .wp-button-black {
    color: var(--wp-on-black);
    background: var(--wp-black);
    border-color: var(--wp-black);
  }

  .wp-button-black:hover {
    background: var(--wp-black-hover);
    border-color: var(--wp-black-hover);
  }

  .wp-button-danger {
    color: var(--wp-danger);
    border-color: currentColor;
  }

  .wp-button-danger:hover {
    background: var(--wp-danger-soft);
  }

  /* Row actions and toolbars */
  .wp-button-quiet {
    padding-inline: var(--wp-space-xs);
    background: none;
    border-color: transparent;
  }

  .wp-button-quiet:hover {
    background: color-mix(in srgb, currentColor 12%, transparent);
  }

  .wp-button-sm {
    min-height: var(--wp-control-height-sm);
    padding: var(--wp-space-2xs) var(--wp-space-sm);
    font-size: var(--wp-font-size-sm);
  }

  .wp-button-quiet.wp-button-sm {
    padding-inline: var(--wp-space-xs);
  }

  .wp-button-full {
    width: 100%;
  }

  /* Calls to action */
  .wp-button-lg {
    min-height: var(--wp-tap-size);
    padding: var(--wp-space-2xs) var(--wp-space-lg);
  }

  .wp-button:is([aria-pressed="true"], [aria-current="page"]),
  .wp-tag[aria-pressed="true"] {
    color: var(--wp-link-hover);
    background: var(--wp-link-soft);
    border-color: var(--wp-link);
    box-shadow: inset 0 0 0 1px var(--wp-link);
  }

  .wp-button:is([aria-pressed="true"], [aria-current="page"]):focus-visible,
  .wp-tag[aria-pressed="true"]:focus-visible {
    box-shadow:
      inset 0 0 0 1px var(--wp-link),
      var(--wp-focus-ring);
  }

  /* Outline for forced colors */
  @media (forced-colors: active) {
    .wp-button:is([aria-pressed="true"], [aria-current="page"]),
    .wp-tag[aria-pressed="true"] {
      outline: 2px solid ButtonText;
      outline-offset: -4px;
    }

    .wp-button:is([aria-pressed="true"], [aria-current="page"]):focus-visible,
    .wp-tag[aria-pressed="true"]:focus-visible {
      outline-offset: 2px;
    }
  }

  .wp-button:is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]) {
    color: var(--wp-text-subtle);
    background: var(--wp-bg);
    border-color: var(--wp-border);
    box-shadow: none;
    cursor: not-allowed;
  }

  .wp-button-quiet:is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]) {
    background: none;
    border-color: transparent;
  }

  .wp-button[aria-disabled="true"]:not([aria-busy="true"]):focus-visible {
    box-shadow: var(--wp-focus-ring);
  }

  /* Gray aria-disabled like :disabled in forced colors */
  @media (forced-colors: active) {
    .wp-button[aria-disabled="true"]:not([aria-busy="true"]) {
      color: GrayText;
      border-color: GrayText;
    }
  }

  .wp-button[aria-busy="true"] {
    position: relative;
    color: transparent;
    cursor: progress;
  }

  .wp-button[aria-busy="true"] > .wp-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
    color: var(--wp-text-subtle);
  }

  .wp-button-brand[aria-busy="true"] > .wp-spinner {
    color: var(--wp-on-brand);
  }

  .wp-button-black[aria-busy="true"] > .wp-spinner {
    color: var(--wp-on-black);
  }

  .wp-button-danger[aria-busy="true"] > .wp-spinner {
    color: var(--wp-danger);
  }

  @media (forced-colors: active) {
    .wp-button[aria-busy="true"] > .wp-spinner {
      position: static;
      margin: 0;
    }
  }

  /* Buttons with no box */
  .wp-link-button,
  .wp-sort,
  .wp-steps :is(a, button),
  .wp-tag-remove,
  .wp-dialog-close,
  .wp-toast-close,
  .wp-notice-close {
    padding: 0;
    font: inherit;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .wp-link-button {
    color: var(--wp-link);
    text-align: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .wp-link-button:hover {
    color: var(--wp-link-hover);
  }

  .wp-link-button-danger,
  .wp-link-button-danger:hover {
    color: var(--wp-danger);
  }

  .wp-link-button-danger:hover {
    text-decoration-thickness: 2px;
  }

  .wp-link-button:is(:disabled, [aria-disabled="true"]) {
    color: var(--wp-text-subtle);
    text-decoration: none;
    cursor: not-allowed;
  }

  @media (forced-colors: active) {
    .wp-link-button[aria-disabled="true"] {
      color: GrayText;
    }
  }

  /* Extend taps 8px around text-sized buttons */
  .wp-tag-remove::after,
  .wp-sort::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--wp-space-xs));
  }

  /* Row of buttons under a form */
  .wp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp-space-xs);
    margin-top: var(--wp-space-lg);
  }

  .wp-push-start {
    margin-inline-end: auto;
  }

  .wp-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding-block: var(--wp-space-sm);
    background: var(--wp-bg);
    border-top: 1px solid var(--wp-border);
  }

  :is(.wp-card, .wp-dialog, .wp-details, .wp-section-alt) .wp-actions-sticky {
    background: var(--wp-card-bg);
  }

  /* Keep focused fields clear of the sticky row */
  :root:has(.wp-actions-sticky) {
    scroll-padding-bottom: calc(
      var(--wp-control-height) + 2 * var(--wp-space-sm) + 1px
    );
  }

  /* Same breakpoint as header-footer.css */
  @media (max-width: 760px) {
    .wp-actions-stacked > .wp-button {
      flex: 1 1 100%;
    }

    .wp-actions-sticky.wp-actions-stacked > .wp-button {
      flex: 1 1 0;
    }
  }

  /* Chevron, also the .wp-details marker */
  .wp-chevron,
  .wp-details > summary::before {
    display: inline-block;
    flex: none;
    align-self: center;
    width: 0.5rem;
    height: 0.5rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
    transition: transform var(--wp-duration);
  }

  .wp-chevron:dir(rtl),
  .wp-details:dir(rtl):not([open]) > summary::before {
    transform: rotate(135deg);
  }

  details[open] > summary .wp-chevron,
  [aria-expanded="true"] > .wp-chevron,
  .wp-details[open] > summary::before {
    transform: translateY(-25%) rotate(45deg);
  }

  /* Round × buttons
     Each component sets the size */

  .wp-tag-remove,
  .wp-dialog-close,
  .wp-toast-close,
  .wp-notice-close {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: var(--wp-text-subtle);
    border-radius: var(--wp-radius-full);
  }

  /* Draw × ‹ › as masked icons to center them */
  .wp-tag-remove::before,
  .wp-dialog-close::before,
  .wp-toast-close::before,
  .wp-notice-close::before,
  .wp-lightbox-button::before {
    --wp-button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 3.2l9.6 9.6m0-9.6-9.6 9.6' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E");
    content: "";
    width: 0.7em;
    height: 0.7em;
    font-size: var(--wp-font-size-xl);
    background: currentColor;
    -webkit-mask: var(--wp-button-icon) center / contain no-repeat;
    mask: var(--wp-button-icon) center / contain no-repeat;
  }

  @media (forced-colors: active) {
    .wp-tag-remove::before,
    .wp-dialog-close::before,
    .wp-toast-close::before,
    .wp-notice-close::before,
    .wp-lightbox-button::before {
      forced-color-adjust: none;
      background: ButtonText;
    }
  }

  .wp-tag-remove:hover,
  .wp-dialog-close:hover,
  .wp-toast-close:hover,
  .wp-notice-close:hover {
    color: var(--wp-text);
    background: color-mix(in srgb, currentColor 12%, transparent);
  }

  /* Form fields
     Native field rules need no class */

  :where(
    input:not(
      [type="checkbox"],
      [type="radio"],
      [type="file"],
      [type="range"],
      [type="color"],
      [type="submit"],
      [type="reset"],
      [type="button"],
      [type="image"]
    ),
    select,
    textarea
  ) {
    min-height: var(--wp-control-height);
    padding: var(--wp-space-2xs) var(--wp-space-sm);
    font: inherit;
    color: var(--wp-text);
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border-strong);
    border-radius: var(--wp-radius);
    transition:
      border-color var(--wp-duration),
      box-shadow var(--wp-duration);
  }

  :where(textarea) {
    min-height: calc(2 * var(--wp-control-height));
    padding-block: var(--wp-space-xs);
    resize: vertical;
  }

  /* Drop Safari's rounded search box */
  :where(input[type="search"]) {
    appearance: none;
  }

  :where(input[type="file"]) {
    font: inherit;
  }

  :where(input[type="file"])::file-selector-button {
    min-height: var(--wp-control-height);
    margin-inline-end: var(--wp-space-xs);
    padding: var(--wp-space-2xs) var(--wp-space-md);
    font: inherit;
    font-size: var(--wp-font-size-base);
    font-weight: 600;
    color: var(--wp-text);
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border-strong);
    border-radius: var(--wp-radius);
    cursor: pointer;
  }

  :where(input[type="file"]):not(:disabled)::file-selector-button:hover {
    background: var(--wp-hover-bg);
  }

  /* Keep fields at 16px or more to stop iOS Safari zooming on focus */
  @media (pointer: coarse) {
    :where(
      input:not(
        [type="checkbox"],
        [type="radio"],
        [type="file"],
        [type="range"],
        [type="color"],
        [type="submit"],
        [type="reset"],
        [type="button"],
        [type="image"]
      ),
      select,
      textarea
    ) {
      font-size: max(1rem, 1em);
    }
  }

  :where(input, select, textarea):focus-visible {
    border-color: var(--wp-link);
    outline-offset: 0;
    box-shadow: 0 0 0 1px var(--wp-link);
  }

  :where(input, select, textarea):disabled {
    color: var(--wp-text-subtle);
    background: var(--wp-bg);
    border-color: var(--wp-border);
    cursor: not-allowed;
  }

  :where(input[type="file"]):disabled {
    background: none;
  }

  :where(input[type="file"]):disabled::file-selector-button {
    color: var(--wp-text-subtle);
    background: var(--wp-bg);
    border-color: var(--wp-border);
    cursor: not-allowed;
  }

  :where(input, textarea)::placeholder {
    color: var(--wp-text-subtle);
    opacity: 0.85;
  }

  :where(input, select, textarea)[aria-invalid="true"] {
    border-color: var(--wp-danger);
  }

  :where(input, select, textarea)[aria-invalid="true"]:focus-visible {
    outline-offset: 2px;
    box-shadow: var(--wp-focus-ring);
  }

  @media (forced-colors: active) {
    :where(input, select, textarea)[aria-invalid="true"]:not(:focus-visible) {
      outline: 1px solid CanvasText;
    }
  }

  :where(
    input:is(
      [type="checkbox"],
      [type="radio"],
      [type="file"],
      [type="range"],
      [type="color"],
      [type="submit"],
      [type="reset"],
      [type="button"],
      [type="image"]
    )
  ):focus-visible {
    outline-offset: 2px;
    box-shadow: var(--wp-focus-ring);
  }

  :where(
    input[type="checkbox"],
    input[type="radio"],
    input[type="range"],
    progress
  ) {
    accent-color: var(--wp-link);
  }

  .wp-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: var(--wp-space-2xs);
  }

  .wp-field > :is(input, select, textarea),
  .wp-field > .wp-combo > input {
    width: 100%;
  }

  :is(.wp-field, .wp-field-row, .wp-field-row-fit)
    + :is(.wp-field, .wp-field-row, .wp-field-row-fit) {
    margin-top: var(--wp-space-md);
  }

  /* --wp-field-min sets the smallest column width */
  .wp-field-row {
    --wp-field-min: 10rem;
    display: grid;
    grid-template-columns: repeat(
      auto-fit,
      minmax(min(100%, var(--wp-field-min)), 1fr)
    );
    gap: var(--wp-space-md);
  }

  .wp-field-row-fit {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--wp-space-xs);
  }

  .wp-field-row-fit > :first-child {
    flex: 1 1 12rem;
  }

  /* Put a hint or error after the row */
  .wp-field-row-fit + :is(.wp-hint, .wp-field-error) {
    display: block;
    margin-top: var(--wp-space-2xs);
  }

  .wp-field-row-fit
    + :is(.wp-hint, .wp-field-error)
    + :is(.wp-field, .wp-field-row, .wp-field-row-fit) {
    margin-top: var(--wp-space-md);
  }

  :is(.wp-field-row, .wp-field-row-fit, .wp-filters) > .wp-field {
    margin-top: 0;
  }

  .wp-field > label:not(.wp-check),
  fieldset.wp-field > legend,
  .wp-label {
    font-weight: 600;
  }

  fieldset.wp-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  fieldset.wp-field > legend {
    margin-bottom: var(--wp-space-2xs);
    padding: 0;
  }

  .wp-hint,
  .wp-optional {
    font-size: var(--wp-font-size-sm);
    font-weight: 400;
    color: var(--wp-text-subtle);
  }

  .wp-field-error {
    font-size: var(--wp-font-size-sm);
    color: var(--wp-danger);
  }

  /* Checkbox or radio with its label: bare, or in a tile */
  .wp-check,
  .wp-choice {
    display: flex;
    align-items: flex-start;
    gap: var(--wp-space-xs);
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  .wp-check {
    min-height: var(--wp-control-height-sm);
  }

  :is(.wp-check, .wp-choice):has(input:disabled) {
    color: var(--wp-text-subtle);
    cursor: not-allowed;
  }

  :is(.wp-check, .wp-choice) input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0.2em 0 0;
  }

  :is(.wp-check, .wp-choice) .wp-hint {
    display: block;
  }

  .wp-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: var(--wp-space-2xs) var(--wp-space-md);
  }

  .wp-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: var(--wp-space-xs);
  }

  .wp-choice {
    padding: var(--wp-space-sm) var(--wp-space-md);
    font-weight: 600;
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border-strong);
    border-radius: var(--wp-radius);
  }

  .wp-choice:hover {
    background: var(--wp-hover-bg);
  }

  .wp-choice:has(input:checked) {
    background: var(--wp-link-soft);
    border-color: var(--wp-link);
    box-shadow: inset 0 0 0 1px var(--wp-link);
  }

  .wp-choice:has(input:disabled) {
    background: var(--wp-bg);
    border-color: var(--wp-border);
    box-shadow: none;
  }

  .wp-choice:has(input:focus-visible) {
    box-shadow: var(--wp-focus-ring);
  }

  .wp-choice:has(input:checked):has(input:focus-visible) {
    box-shadow:
      inset 0 0 0 1px var(--wp-link),
      var(--wp-focus-ring);
  }

  .wp-choice:has(input:focus-visible) > input:focus-visible {
    box-shadow: none;
  }

  @media (pointer: coarse) {
    .wp-check {
      min-height: var(--wp-tap-size);
    }
  }

  /* Combobox */

  .wp-combo {
    position: relative;
  }

  .wp-combo-list {
    position: absolute;
    top: calc(100% + var(--wp-space-2xs));
    inset-inline: 0;
    z-index: 20;
    max-height: 18rem;
    max-height: min(18rem, 50dvh);
    margin: 0;
    padding: var(--wp-space-2xs);
    overflow-y: auto;
    list-style: none;
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border-strong);
    border-radius: var(--wp-radius);
    box-shadow: var(--wp-shadow);
  }

  .wp-combo-list ul {
    padding: 0;
    list-style: none;
  }

  .wp-combo-list li {
    margin: 0;
  }

  .wp-combo-group {
    padding: var(--wp-space-xs) var(--wp-space-xs) var(--wp-space-3xs);
    font-size: var(--wp-font-size-sm);
    font-weight: 600;
    color: var(--wp-text-subtle);
  }

  .wp-combo-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0 var(--wp-space-sm);
    padding: var(--wp-space-xs);
    border-radius: calc(var(--wp-radius) - var(--wp-space-2xs));
    cursor: pointer;
  }

  @media (pointer: coarse) {
    .wp-combo-option {
      padding-block: var(--wp-space-sm);
    }
  }

  /* Transparent outline for forced colors */
  .wp-combo-option[aria-selected="true"] {
    background: var(--wp-link-soft);
    outline: 2px solid transparent;
    outline-offset: -2px;
  }

  .wp-combo-label {
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .wp-combo-action .wp-combo-label {
    color: var(--wp-link);
  }

  .wp-combo-meta,
  .wp-combo-description {
    font-size: var(--wp-font-size-sm);
    color: var(--wp-text-subtle);
  }

  .wp-combo-description {
    grid-column: 1 / -1;
  }

  .wp-combo-status {
    display: flex;
    align-items: center;
    gap: var(--wp-space-xs);
    padding: var(--wp-space-xs);
    font-size: var(--wp-font-size-sm);
    color: var(--wp-text-subtle);
  }

  /* Text and helpers */

  .wp-title-xl {
    font-size: clamp(
      var(--wp-font-size-2xl),
      1.25rem + 2.5vw,
      var(--wp-font-size-4xl)
    );
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .wp-lead {
    max-width: var(--wp-line-length);
    font-size: var(--wp-font-size-lg);
    color: var(--wp-text-subtle);
  }

  .wp-prose {
    max-width: var(--wp-line-length);
  }

  .wp-prose :where(h2, h3) {
    margin-top: var(--wp-space-xl);
  }

  /* Lists without a class */
  .wp-prose :where(ul:not([class]), ol:not([class])) {
    margin-top: 0;
    padding-inline-start: var(--wp-space-xl);
  }

  .wp-prose :where(:not([class]) > li + li) {
    margin-top: var(--wp-space-2xs);
  }

  .wp-prose :where(h4) {
    margin-top: var(--wp-space-lg);
    font-size: var(--wp-font-size-base);
  }

  .wp-prose :where(ol ol) {
    list-style: lower-alpha;
  }

  .wp-prose :where(ol ol ol) {
    list-style: lower-roman;
  }

  .wp-prose :where(figure) {
    margin: var(--wp-space-xl) 0;
  }

  .wp-prose :where(figure img) {
    display: block;
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
  }

  .wp-prose :where(figcaption) {
    margin-top: var(--wp-space-xs);
    font-size: var(--wp-font-size-sm);
    color: var(--wp-text-subtle);
  }

  .wp-prose :where(blockquote) {
    margin: 0 0 1em;
    padding-inline-start: var(--wp-space-md);
    color: var(--wp-text-subtle);
    border-inline-start: 3px solid var(--wp-border-strong);
  }

  .wp-prose :where(hr) {
    margin: var(--wp-space-xl) 0;
    border: 0;
    border-top: 1px solid var(--wp-border);
  }

  .wp-prose :where(dl:not([class]) dt) {
    font-weight: 600;
  }

  .wp-prose :where(dl:not([class]) dd) {
    margin: 0 0 var(--wp-space-xs);
  }

  .wp-prose :is(.wp-notice, .wp-code, .wp-code-wrap) {
    margin-block: var(--wp-space-lg);
  }

  .wp-prose > :first-child {
    margin-top: 0;
  }

  .wp-user-text {
    max-width: var(--wp-line-length);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .wp-clamp {
    --wp-clamp-lines: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--wp-clamp-lines);
    line-clamp: var(--wp-clamp-lines);
    overflow: hidden;
  }

  .wp-clamp.wp-open {
    -webkit-line-clamp: none;
    line-clamp: none;
  }

  /* Separate rule, so browsers without :has() keep the one above */
  .wp-clamp:has(:focus-visible) {
    -webkit-line-clamp: none;
    line-clamp: none;
    overflow: visible;
  }

  .wp-clamp:has(+ .wp-link-button:not([hidden])) {
    margin-bottom: var(--wp-space-2xs);
  }

  .wp-clamp + .wp-link-button {
    display: block;
    margin-bottom: 1em;
  }

  @media print {
    .wp-clamp {
      -webkit-line-clamp: none;
      line-clamp: none;
    }

    .wp-clamp + .wp-link-button {
      display: none;
    }
  }

  /* Mask over a no-break space to wrap the icon with the last word */
  .wp-new-tab::after {
    --wp-new-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 1h6v6h-2V4.4L7.4 10 6 8.6 11.6 3H9zM7 3H1v12h12V9h-2v4H3V5h4z'/%3E%3C/svg%3E");
    content: "\00a0"; /* for browsers without alt text */
    content: "\00a0" / " (opens in a new tab)";
    padding-inline-end: 0.7em;
    background: currentColor;
    -webkit-mask: var(--wp-new-tab-icon) right center / 0.7em 0.7em no-repeat;
    mask: var(--wp-new-tab-icon) right center / 0.7em 0.7em no-repeat;
  }

  .wp-new-tab:dir(rtl)::after {
    --wp-new-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1H1v6h2V4.4L8.6 10 10 8.6 4.4 3H7zM9 3h6v12H3V9h2v4h8V5H9z'/%3E%3C/svg%3E");
    mask-position: left center;
  }

  @media (forced-colors: active) {
    .wp-back::before,
    .wp-new-tab::after {
      forced-color-adjust: none;
      background: LinkText;
    }
  }

  /* Cards */

  .wp-card {
    padding: var(--wp-space-lg);
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
  }

  a.wp-card {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  a.wp-card:hover {
    border-color: var(--wp-link);
  }

  /* After the .wp-prose and .wp-clamp rules */
  :is(
      .wp-page,
      .wp-container,
      .wp-card,
      .wp-empty,
      .wp-details-body,
      .wp-dialog-body,
      .wp-notice
    )
    > :last-child {
    margin-bottom: 0;
  }

  /* Child before a hidden last one */
  :is(
      .wp-page,
      .wp-container,
      .wp-card,
      .wp-empty,
      .wp-details-body,
      .wp-dialog-body,
      .wp-notice
    )
    > :nth-last-child(2):has(+ [hidden]) {
    margin-bottom: 0;
  }

  /* Set on the grid:
     * --wp-grid-min: smallest column width
     * --wp-grid-columns: most columns
     * --wp-grid-gap: use instead of gap */
  .wp-grid {
    --wp-grid-min: 18rem;
    --wp-grid-columns: 12;
    --wp-grid-gap: var(--wp-space-md);
    display: grid;
    grid-template-columns: repeat(
      auto-fill,
      minmax(
        min(
          100%,
          max(
            var(--wp-grid-min),
            (100% - (var(--wp-grid-columns) - 1) * var(--wp-grid-gap)) /
              var(--wp-grid-columns)
          )
        ),
        1fr
      )
    );
    gap: var(--wp-grid-gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .wp-grid > .wp-card,
  .wp-grid > li > a.wp-card {
    display: flex;
    flex-direction: column;
  }

  .wp-grid > li > a.wp-card {
    height: 100%;
  }

  .wp-grid > .wp-card > :is(.wp-button, .wp-badge, .wp-tag, img),
  .wp-grid > li > a.wp-card > :is(.wp-button, .wp-badge, .wp-tag, img) {
    align-self: flex-start;
  }

  .wp-card-foot {
    margin-top: auto;
    padding-top: var(--wp-space-md);
  }

  /* Empty states */

  .wp-empty {
    padding: var(--wp-space-3xl) var(--wp-space-lg);
    text-align: center;
    color: var(--wp-text-subtle);
    border: 1px dashed var(--wp-border-strong);
    border-radius: var(--wp-radius);
  }

  .wp-empty > strong:first-child {
    display: block;
    padding-bottom: var(--wp-space-2xs);
    font-weight: 600;
    color: var(--wp-text);
  }

  .wp-message-page {
    max-width: 28rem;
    margin: 10vh auto 0;
    text-align: center;
  }

  .wp-empty .wp-actions,
  .wp-message-page .wp-actions {
    justify-content: center;
  }

  .wp-error-code {
    margin: 0;
    font-size: var(--wp-font-size-4xl);
    font-weight: 700;
    line-height: 1;
    color: var(--wp-text-subtle);
  }

  /* Details */

  .wp-details {
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
    background: var(--wp-card-bg);
  }

  .wp-details + .wp-details {
    margin-top: var(--wp-space-xs);
  }

  .wp-details > summary {
    display: flex;
    align-items: center;
    gap: var(--wp-space-xs);
    padding: var(--wp-space-sm) var(--wp-space-md);
    font-weight: 600;
    overflow-wrap: anywhere;
    list-style: none;
    cursor: pointer;
    border-radius: calc(var(--wp-radius) - 1px);
  }

  /* Hide Safari's summary marker */
  .wp-details > summary::-webkit-details-marker {
    display: none;
  }

  .wp-details > summary:hover {
    background: var(--wp-hover-bg);
  }

  /* Draw the marker with the .wp-chevron rules */
  .wp-details > summary::before {
    content: "";
  }

  .wp-details[open] > summary {
    border-bottom: 1px solid var(--wp-border);
    border-radius: calc(var(--wp-radius) - 1px) calc(var(--wp-radius) - 1px) 0 0;
  }

  .wp-details-body {
    padding: var(--wp-space-md);
  }

  /* Code */

  :where(:not(pre) > code) {
    padding: 0.1em 0.35em;
    overflow-wrap: anywhere;
    background: color-mix(in srgb, var(--wp-text) 12%, transparent);
    border-radius: calc(var(--wp-radius) / 2);
  }

  .wp-code {
    margin: 0 0 var(--wp-space-md);
    padding: var(--wp-space-sm) var(--wp-space-md);
    overflow: auto;
    font-size: var(--wp-font-size-sm);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: var(--wp-sunken-bg);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
  }

  .wp-code-wrap {
    position: relative;
    margin-bottom: var(--wp-space-md);
  }

  .wp-code-wrap > .wp-code {
    margin: 0;
  }

  .wp-code-wrap > .wp-button {
    position: absolute;
    top: var(--wp-space-xs);
    inset-inline-end: var(--wp-space-xs);
  }

  /* Let the disabled button style win over this hover */
  :where(.wp-code-wrap) > .wp-button:hover {
    background: var(--wp-border);
  }

  @media print {
    .wp-code-wrap > .wp-button {
      display: none;
    }
  }

  /* Make room for the button beside the first lines */
  .wp-code-wrap > .wp-code::before {
    content: "";
    float: right; /* for Chrome < 118 */
    float: inline-end;
    width: 4.5rem;
    height: var(--wp-control-height);
  }

  /* Badges and dots */

  .wp-badge {
    display: inline-block;
    padding: var(--wp-space-3xs) var(--wp-space-xs);
    font-size: var(--wp-font-size-sm);
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    color: var(--wp-text);
    background: var(--wp-hover-bg);
    border: 1px solid transparent;
    border-radius: var(--wp-radius-full);
  }

  .wp-badge-info {
    color: var(--wp-link-hover);
    background: var(--wp-link-soft);
  }
  .wp-badge-success {
    color: var(--wp-success);
    background: var(--wp-success-soft);
  }
  .wp-badge-warning {
    color: var(--wp-warning);
    background: var(--wp-warning-soft);
  }
  .wp-badge-error {
    color: var(--wp-danger);
    background: var(--wp-danger-soft);
  }

  .wp-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-inline-end: var(--wp-space-2xs);
    vertical-align: middle;
    background: var(--wp-success);
    border: 2px solid var(--wp-success);
    border-radius: var(--wp-radius-full);
  }

  .wp-dot-pending {
    background: transparent;
    border-color: var(--wp-warning);
  }

  .wp-dot-error {
    background: var(--wp-danger);
    border-color: var(--wp-danger);
  }

  .wp-dot-off {
    background: var(--wp-border-strong);
    border-color: var(--wp-border-strong);
  }

  @media (forced-colors: active) {
    .wp-dot {
      forced-color-adjust: none;
      background: CanvasText;
      border-color: CanvasText;
    }

    .wp-dot-pending {
      background: Canvas;
    }
  }

  /* Notices */

  .wp-notice {
    position: relative;
    padding: var(--wp-space-sm) var(--wp-space-md);
    overflow-wrap: anywhere;
    background: var(--wp-link-soft);
    border: 1px solid var(--wp-link);
    border-radius: var(--wp-radius);
  }

  .wp-notice-title {
    display: block;
    margin-bottom: var(--wp-space-2xs);
    font-weight: 600;
  }

  .wp-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp-space-xs);
    margin-top: var(--wp-space-xs);
  }

  .wp-notice:has(> .wp-notice-close) {
    padding-inline-end: calc(var(--wp-space-md) + 2rem);
  }

  @supports not selector(:has(a)) {
    .wp-notice {
      padding-inline-end: calc(var(--wp-space-md) + 2rem);
    }
  }

  .wp-notice-close {
    position: absolute;
    top: var(--wp-space-xs);
    inset-inline-end: var(--wp-space-xs);
  }

  .wp-toast-close,
  .wp-notice-close {
    width: 2rem;
    height: 2rem;
  }

  .wp-toast-close::after,
  .wp-notice-close::after {
    content: "";
    position: absolute;
    inset: calc((2rem - var(--wp-tap-size)) / 2);
  }

  .wp-notice > :has(+ .wp-notice-close) {
    margin-bottom: 0;
  }

  .wp-notice-success {
    background: var(--wp-success-soft);
    border-color: var(--wp-success);
  }

  .wp-notice-warning {
    background: var(--wp-warning-soft);
    border-color: var(--wp-warning);
  }

  .wp-notice-error {
    background: var(--wp-danger-soft);
    border-color: var(--wp-danger);
  }

  /* Progress */

  :where(progress) {
    width: 100%;
    height: var(--wp-space-xs);
    appearance: none;
    overflow: hidden;
    background: var(--wp-border);
    border: 0;
    border-radius: var(--wp-radius-full);
  }

  :where(progress)::-webkit-progress-bar {
    background: var(--wp-border);
  }

  :where(progress)::-webkit-progress-value {
    background: var(--wp-link);
  }

  :where(progress)::-moz-progress-bar {
    background: var(--wp-link);
  }

  /* Separate rules: an unknown pseudo-element drops the whole list */
  @media (forced-colors: active) {
    :where(progress) {
      border: 1px solid CanvasText;
    }

    :where(progress)::-webkit-progress-value {
      forced-color-adjust: none;
      background: Highlight;
    }

    :where(progress)::-moz-progress-bar {
      forced-color-adjust: none;
      background: Highlight;
    }
  }

  /* Loading */

  .wp-spinner,
  .wp-lightbox-stage[aria-busy="true"]::after {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wp-spin 0.7s linear infinite;
  }

  @media (forced-colors: active) {
    .wp-spinner,
    .wp-lightbox-stage[aria-busy="true"]::after {
      border-right-color: Canvas;
    }
  }

  @keyframes wp-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .wp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wp-space-xs);
    padding: var(--wp-space-3xl) var(--wp-space-lg);
    overflow-wrap: anywhere;
    color: var(--wp-text-subtle);
  }

  .wp-loading-list {
    min-height: 24rem;
  }

  .wp-loading-page {
    min-height: calc(100vh - 12rem);
    min-height: calc(100dvh - 12rem);
  }

  /* Set aria-busy while it reloads */
  .wp-busy-region {
    position: relative;
    transition: opacity var(--wp-duration);
  }

  .wp-busy-region[aria-busy="true"] {
    opacity: 0.65;
    cursor: progress;
  }

  .wp-busy-region[aria-busy="true"]:has(> .wp-loading-overlay) {
    opacity: 1;
  }

  .wp-busy-region:not([aria-busy="true"]) > .wp-loading-overlay {
    display: none;
  }

  .wp-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--wp-bg) 72%, transparent);
    border-radius: inherit;
  }

  .wp-loading-overlay > .wp-loading {
    position: sticky;
    top: 38vh;
    width: fit-content;
    margin: var(--wp-space-2xl) auto;
    padding: var(--wp-space-sm) var(--wp-space-md);
    color: var(--wp-text);
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
    box-shadow: var(--wp-shadow);
  }

  /* Avatars */

  .wp-avatar,
  .wp-thumb {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    vertical-align: middle;
    outline: 1px solid transparent;
    outline-offset: -1px;
  }

  :is(.wp-avatar, .wp-thumb):focus-visible {
    outline-width: 2px;
    outline-offset: 2px;
  }

  .wp-avatar {
    width: var(--wp-avatar-size);
    height: var(--wp-avatar-size);
    font-size: calc(var(--wp-avatar-size) * 0.4);
    font-weight: 600;
    color: var(--wp-link-hover);
    background: var(--wp-link-soft);
    border-radius: var(--wp-radius-full);
  }

  .wp-avatar img,
  .wp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .wp-avatar-sm {
    --wp-avatar-size: 2rem;
  }
  .wp-avatar-lg {
    --wp-avatar-size: 4rem;
  }

  /* Thumbnails */

  .wp-thumb {
    width: var(--wp-thumb-size);
    height: var(--wp-thumb-size);
    font-size: var(--wp-font-size-sm);
    text-align: center;
    color: var(--wp-text-subtle);
    background: var(--wp-sunken-bg);
    border-radius: var(--wp-radius);
  }

  .wp-thumb-contain img {
    object-fit: contain;
  }

  .wp-thumb-sm {
    --wp-thumb-size: 2.5rem;
  }

  .wp-thumb-lg {
    --wp-thumb-size: 6rem;
  }

  /* Photos */

  .wp-photos {
    --wp-photo-min: 10rem;
    display: grid;
    grid-template-columns: repeat(
      auto-fill,
      minmax(min(50% - var(--wp-space-sm) / 2, var(--wp-photo-min)), 1fr)
    );
    gap: var(--wp-space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .wp-photos > li {
    position: relative;
  }

  .wp-photo {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    color: var(--wp-on-media);
    background: var(--wp-sunken-bg);
    border-radius: var(--wp-radius);
  }

  /* Crop toward the top, where faces usually are */
  .wp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
  }

  @media (prefers-reduced-motion: no-preference) {
    .wp-photo img {
      transition: transform 0.25s;
    }

    .wp-photo:hover img {
      transform: scale(1.04);
    }
  }

  /* Draw the inset focus ring on ::after, above the image */
  .wp-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
  }

  .wp-photo:focus-visible {
    outline: 3px solid var(--wp-on-media);
    outline-offset: -3px;
    box-shadow: none;
  }

  .wp-photo:focus-visible::after {
    box-shadow:
      inset 0 0 0 3px var(--wp-on-media),
      inset 0 0 0 5px var(--wp-overlay);
  }

  @media (forced-colors: active) {
    .wp-photo:focus-visible {
      outline-offset: 2px;
    }
  }

  .wp-photo-caption {
    position: absolute;
    inset: auto 0 0;
    padding: var(--wp-space-xl) var(--wp-space-xs) var(--wp-space-xs);
    font-size: var(--wp-font-size-sm);
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    background: linear-gradient(
      to top,
      var(--wp-overlay) calc(100% - var(--wp-space-xl)),
      transparent
    );
    opacity: 0;
    transition: opacity var(--wp-duration);
  }

  .wp-photo:is(:hover, :focus-visible) .wp-photo-caption,
  .wp-photo-caption-always {
    opacity: 1;
  }

  @media (hover: none) {
    .wp-photo-caption {
      opacity: 1;
    }
  }

  /* Lightbox */

  .wp-lightbox-stage {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    min-height: min(12rem, 40dvh);
    background: var(--wp-media-bg);
  }

  .wp-lightbox-stage img {
    max-width: 100%;
    max-height: 70vh;
    max-height: 70dvh;
    object-fit: contain;
    transition: opacity var(--wp-duration);
  }

  .wp-lightbox-stage[aria-busy="true"] img {
    opacity: 0.3;
  }

  .wp-lightbox-stage[aria-busy="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    font-size: var(--wp-font-size-2xl);
    color: var(--wp-on-media);
  }

  .wp-lightbox-button,
  .wp-lightbox-toggle,
  .wp-photo-toggle {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font: inherit;
    color: var(--wp-on-media);
    background: var(--wp-overlay);
    border: 1px solid transparent; /* outline for forced colors */
    border-radius: var(--wp-radius-full);
    cursor: pointer;
  }

  @supports (color: color-mix(in srgb, red, red)) {
    .wp-lightbox-button:hover,
    .wp-lightbox-toggle:hover,
    .wp-photo-toggle:hover {
      background: color-mix(in srgb, var(--wp-on-media) 20%, var(--wp-media-bg));
    }
  }

  .wp-lightbox-button:focus-visible,
  .wp-lightbox-toggle:focus-visible,
  .wp-photo-toggle:focus-visible {
    outline: 2px solid var(--wp-on-media);
    outline-offset: 0;
    box-shadow: 0 0 0 4px var(--wp-media-bg);
  }

  .wp-lightbox-button,
  .wp-lightbox-toggle {
    z-index: 1;
    width: var(--wp-tap-size);
    height: var(--wp-tap-size);
  }

  .wp-lightbox-button {
    font-size: 0;
  }

  .wp-lightbox-close {
    top: var(--wp-space-xs);
    inset-inline-end: var(--wp-space-xs);
  }

  .wp-lightbox-toggle {
    top: var(--wp-space-xs);
    inset-inline-start: var(--wp-space-xs);
    font-size: var(--wp-font-size-xl);
  }

  .wp-lightbox-prev,
  .wp-lightbox-next {
    top: 50%;
    translate: 0 -50%;
  }

  .wp-lightbox-prev::before,
  .wp-lightbox-next::before {
    --wp-button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.4 1.8 5.2 8l6.2 6.2' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E");
  }

  .wp-lightbox-next::before {
    scale: -1 1;
  }

  .wp-lightbox-prev {
    inset-inline-start: var(--wp-space-xs);
  }

  .wp-lightbox-next {
    inset-inline-end: var(--wp-space-xs);
  }

  .wp-lightbox-prev:dir(rtl),
  .wp-lightbox-next:dir(rtl) {
    scale: -1 1;
  }

  /* Photo toggles */

  .wp-photo-toggle {
    top: var(--wp-space-xs);
    inset-inline-start: var(--wp-space-xs);
    width: 2rem;
    height: 2rem;
  }

  .wp-lightbox-toggle:disabled,
  .wp-photo-toggle:disabled {
    background: var(--wp-overlay);
    cursor: not-allowed;
  }

  .wp-lightbox-toggle[aria-pressed="true"],
  .wp-photo-toggle[aria-pressed="true"] {
    color: var(--wp-media-bg);
    background: var(--wp-photo-pressed);
  }

  @media (forced-colors: active) {
    .wp-lightbox-toggle[aria-pressed="true"],
    .wp-photo-toggle[aria-pressed="true"] {
      forced-color-adjust: none;
      color: Canvas;
      background: CanvasText;
    }
  }

  @media (pointer: coarse) {
    .wp-photo-toggle {
      width: var(--wp-tap-size);
      height: var(--wp-tap-size);
    }
  }

  /* Tags */

  .wp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp-space-2xs);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .wp-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--wp-space-xs);
    padding: var(--wp-space-3xs) var(--wp-space-xs);
    font: inherit;
    font-size: var(--wp-font-size-sm);
    line-height: 1.5;
    color: var(--wp-text);
    text-decoration: none;
    overflow-wrap: anywhere;
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-full);
  }

  a.wp-tag,
  button.wp-tag {
    border-color: var(--wp-border-strong);
  }

  /* Separate rule, so browsers without :has() keep the one above */
  .wp-tag:has(.wp-tag-remove) {
    border-color: var(--wp-border-strong);
  }

  a.wp-tag {
    color: var(--wp-link);
  }

  button.wp-tag {
    cursor: pointer;
  }

  :is(a, button).wp-tag:hover {
    color: var(--wp-link-hover);
    border-color: var(--wp-link);
  }

  button.wp-tag:disabled {
    color: var(--wp-text-subtle);
    background: var(--wp-bg);
    border-color: var(--wp-border);
    cursor: not-allowed;
  }

  .wp-tag-remove {
    width: calc(1.25 * var(--wp-font-size-sm));
    height: calc(1.25 * var(--wp-font-size-sm));
    margin-inline-end: calc(-1 * var(--wp-space-2xs));
  }

  .wp-tag-remove::before {
    font-size: var(--wp-font-size-sm);
  }

  @media (pointer: coarse) {
    .wp-tag-remove::after {
      inset: calc((1.25 * var(--wp-font-size-sm) - var(--wp-tap-size)) / 2);
    }

    .wp-tags {
      gap: var(--wp-space-xs);
    }
  }

  /* Description lists */

  .wp-dl {
    display: grid;
    grid-template-columns: minmax(min(8rem, 35%), max-content) minmax(50%, 1fr);
    gap: var(--wp-space-xs) var(--wp-space-lg);
    margin: 0;
    overflow-wrap: anywhere;
  }

  .wp-dl dt {
    max-width: 16rem;
    color: var(--wp-text-subtle);
  }

  .wp-dl dd {
    margin: 0;
  }

  .wp-dl > div {
    display: contents;
  }

  .wp-dl-stacked {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .wp-dl-stacked :is(dd + dt, div + div > dt:first-child) {
    margin-top: var(--wp-space-xs);
  }

  /* Same breakpoint as header-footer.css */
  @media (max-width: 760px) {
    .wp-dl {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
    }

    .wp-dl :is(dd + dt, div + div > dt:first-child) {
      margin-top: var(--wp-space-xs);
    }
  }

  /* Media rows */

  .wp-media {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--wp-space-sm);
  }

  .wp-media > :first-child:not(.wp-media-body) {
    flex: none;
  }

  .wp-media-body {
    flex: 1 1 12rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .wp-media-body > :where(h2, h3, h4, p) {
    margin: 0;
  }

  .wp-media-actions {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: var(--wp-space-xs);
  }

  /* Same breakpoint as header-footer.css */
  @media (max-width: 760px) {
    .wp-media-actions {
      flex-basis: 100%;
    }
  }

  /* Rows */

  .wp-rows {
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
    list-style: none;
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
  }

  .wp-rows > li + li {
    border-top: 1px solid var(--wp-border);
  }

  .wp-rows > li > .wp-media,
  .wp-rows > li > a {
    padding: var(--wp-space-sm) var(--wp-space-md);
  }

  .wp-rows > li > a {
    display: flex;
    align-items: center;
    gap: var(--wp-space-sm);
    color: var(--wp-text);
    text-decoration: none;
  }

  .wp-rows > li > a > * {
    min-width: 0;
  }

  .wp-rows > li > a:hover {
    background: var(--wp-hover-bg);
  }

  .wp-rows > li > a:focus-visible {
    position: relative;
  }

  .wp-rows > li:first-child > a {
    border-start-start-radius: calc(var(--wp-radius) - 1px);
    border-start-end-radius: calc(var(--wp-radius) - 1px);
  }

  .wp-rows > li:last-child > a {
    border-end-start-radius: calc(var(--wp-radius) - 1px);
    border-end-end-radius: calc(var(--wp-radius) - 1px);
  }

  /* Square the start corners, after the corner rules */
  .wp-rows > li > a[aria-current]:not([aria-current="false"]) {
    background: var(--wp-link-soft);
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    box-shadow: inset 3px 0 0 var(--wp-link);
  }

  .wp-rows > li > a[aria-current]:not([aria-current="false"]):dir(rtl) {
    box-shadow: inset -3px 0 0 var(--wp-link);
  }

  .wp-rows > li > a[aria-current]:not([aria-current="false"]):focus-visible {
    box-shadow:
      inset 3px 0 0 var(--wp-link),
      var(--wp-focus-ring);
  }

  .wp-rows
    > li
    > a[aria-current]:not([aria-current="false"]):dir(rtl):focus-visible {
    box-shadow:
      inset -3px 0 0 var(--wp-link),
      var(--wp-focus-ring);
  }

  .wp-rows:has(> li:first-child > a[aria-current]:not([aria-current="false"])) {
    border-start-start-radius: 0;
  }

  .wp-rows:has(> li:last-child > a[aria-current]:not([aria-current="false"])) {
    border-end-start-radius: 0;
  }

  @media (forced-colors: active) {
    .wp-rows > li > a[aria-current]:not([aria-current="false"]) {
      outline: 2px solid CanvasText;
      outline-offset: -4px;
    }

    .wp-rows > li > a[aria-current]:not([aria-current="false"]):focus-visible {
      outline-offset: 2px;
    }
  }

  .wp-rows > li > a > .wp-chevron {
    margin-inline-start: auto;
    color: var(--wp-text-subtle);
  }

  .wp-row-title {
    display: block;
    font-weight: 600;
  }

  .wp-row-meta {
    display: block;
    font-size: var(--wp-font-size-sm);
    color: var(--wp-text-subtle);
  }

  /* Stats */

  .wp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin: 0 0 var(--wp-space-xl);
    overflow: hidden;
    background: var(--wp-border);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
  }

  .wp-stats > div {
    flex: 1 1 8rem;
    padding: var(--wp-space-xs) var(--wp-space-sm);
    background: var(--wp-card-bg);
    outline: 1px solid transparent;
  }

  .wp-stats dt {
    font-size: var(--wp-font-size-sm);
    color: var(--wp-text-subtle);
  }

  .wp-stats dd {
    margin: 0;
    font-size: var(--wp-font-size-xl);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  /* Tables */

  .wp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--wp-font-size-base);
  }

  .wp-table th,
  .wp-table td {
    padding: var(--wp-space-xs) var(--wp-space-sm);
    text-align: start;
    vertical-align: top;
    border-bottom: 1px solid var(--wp-border);
  }

  .wp-table tr:has(> td > :is(.wp-thumb, .wp-avatar)) > * {
    vertical-align: middle;
  }

  .wp-table thead th {
    font-size: var(--wp-font-size-sm);
    font-weight: 600;
    color: var(--wp-text-subtle);
    border-bottom-color: var(--wp-border-strong);
  }

  .wp-table img {
    max-width: none;
  }

  .wp-table .wp-num {
    text-align: end;
    font-variant-numeric: tabular-nums;
  }

  .wp-table .wp-table-empty {
    padding: var(--wp-space-xl);
    text-align: center;
    color: var(--wp-text-subtle);
  }

  /* wpSortable() adds this button to th[data-wp-sort]
     Server-sorted tables use a link */
  .wp-sort {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--wp-space-2xs);
    color: inherit;
    text-align: inherit;
    text-decoration: none;
  }

  .wp-sort:hover {
    color: var(--wp-text);
  }

  .wp-num .wp-sort {
    flex-direction: row-reverse;
  }

  .wp-sort::after {
    content: "↕";
    content: "↕" / "";
    color: var(--wp-border-strong);
  }

  th[aria-sort] .wp-sort::after {
    color: var(--wp-link);
  }

  th[aria-sort="ascending"] .wp-sort::after {
    content: "↑";
    content: "↑" / "";
  }

  th[aria-sort="descending"] .wp-sort::after {
    content: "↓";
    content: "↓" / "";
  }

  /* .wp-table-scroll needs tabindex="0", role="region", and a label
     Shade overflowing sides, covered at the ends by the first two layers */
  .wp-table-scroll,
  .wp-tabs {
    --wp-scroll-bg: var(--wp-bg);
    overflow-x: auto;
    background:
      linear-gradient(to right, var(--wp-scroll-bg) 50%, transparent) left /
        2.5rem 100%,
      linear-gradient(to left, var(--wp-scroll-bg) 50%, transparent) right /
        2.5rem 100%,
      radial-gradient(
          farthest-side at 0 50%,
          color-mix(in srgb, var(--wp-text) 18%, transparent),
          transparent
        )
        left / 0.75rem 100%,
      radial-gradient(
          farthest-side at 100% 50%,
          color-mix(in srgb, var(--wp-text) 18%, transparent),
          transparent
        )
        right / 0.75rem 100%;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
  }

  :is(.wp-card, .wp-dialog, .wp-details, .wp-section-alt)
    :is(.wp-table-scroll, .wp-tabs) {
    --wp-scroll-bg: var(--wp-card-bg);
  }

  .wp-table-scroll:focus-visible,
  .wp-tabs [role="tab"]:focus-visible {
    outline: 2px solid var(--wp-focus-color);
    outline-offset: -2px;
    box-shadow: none;
  }

  .wp-table-wide {
    min-width: 44rem;
  }

  /* Filters */

  .wp-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--wp-space-sm) var(--wp-space-md);
    margin-bottom: var(--wp-space-xl);
    padding: var(--wp-space-sm) var(--wp-space-md);
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
  }

  .wp-filters > .wp-field {
    flex: 1 1 10rem;
  }

  .wp-filters > .wp-field-full {
    flex-basis: 100%;
  }

  .wp-filters > .wp-actions {
    margin-top: 0;
  }

  /* Same breakpoint as header-footer.css */
  @media (max-width: 760px) {
    .wp-filters {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: end;
    }

    .wp-filters > .wp-field-full,
    .wp-filters > .wp-actions {
      grid-column: 1 / -1;
    }
  }

  /* Pager */

  .wp-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--wp-space-2xs);
    margin: var(--wp-space-xl) 0;
  }

  .wp-pager .wp-button {
    min-width: var(--wp-control-height-sm);
    padding-inline: var(--wp-space-xs);
  }

  .wp-pager-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--wp-control-height-sm);
    color: var(--wp-text-subtle);
  }

  .wp-pager-info {
    margin-inline: var(--wp-space-xs);
    font-size: var(--wp-font-size-sm);
    color: var(--wp-text-subtle);
  }

  @media (max-width: 480px) {
    .wp-pager-info {
      flex-basis: 100%;
      order: -1;
      text-align: center;
    }
  }

  /* Tabs */

  .wp-tabs {
    display: flex;
    gap: var(--wp-space-2xs);
    margin-bottom: var(--wp-space-xl);
    box-shadow: inset 0 -1px var(--wp-border);
  }

  .wp-tabs [role="tab"] {
    min-height: var(--wp-control-height);
    padding: var(--wp-space-xs) var(--wp-space-sm);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    color: var(--wp-text-subtle);
    white-space: nowrap;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: var(--wp-radius) var(--wp-radius) 0 0;
    cursor: pointer;
  }

  .wp-tabs [role="tab"]:hover {
    color: var(--wp-text);
  }

  .wp-tabs [role="tab"][aria-selected="true"] {
    color: var(--wp-text);
    border-bottom-color: var(--wp-link);
  }

  .wp-tab-note {
    margin-inline-start: var(--wp-space-2xs);
    font-size: var(--wp-font-size-sm);
    font-weight: 400;
  }

  @media (forced-colors: active) {
    .wp-tabs [role="tab"][aria-selected="true"] {
      text-decoration: underline 2px;
    }

    .wp-tabs [role="tab"]:not([aria-selected="true"]) {
      border-bottom-color: Canvas;
    }
  }

  /* Steps */

  .wp-steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp-space-xs) var(--wp-space-lg);
    margin: 0 0 var(--wp-space-xl);
    padding: 0;
    list-style: none;
    counter-reset: wp-step;
  }

  .wp-steps > li {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--wp-space-xs);
    font-size: var(--wp-font-size-base);
    overflow-wrap: anywhere;
    color: var(--wp-text-subtle);
    counter-increment: wp-step;
  }

  .wp-steps > li::before {
    content: counter(wp-step);
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: var(--wp-font-size-sm);
    font-weight: 600;
    color: var(--wp-text);
    border: 2px solid var(--wp-border-strong);
    border-radius: var(--wp-radius-full);
  }

  .wp-steps > li.wp-step-done::before {
    content: "✓"; /* for browsers without alt text */
    content: "✓" / "";
    color: var(--wp-success);
    border-color: var(--wp-success);
  }

  .wp-steps > li:is([aria-current="step"], :has([aria-current="step"])) {
    font-weight: 600;
    color: var(--wp-text);
  }

  .wp-steps > li:is([aria-current="step"], :has([aria-current="step"]))::before {
    color: var(--wp-on-link);
    background: var(--wp-link);
    border-color: var(--wp-link);
  }

  .wp-steps :is(a, button) {
    color: inherit;
    text-decoration: none;
  }

  .wp-steps :is(a, button)::after {
    content: "";
    position: absolute;
    inset: 0;
  }

  .wp-steps > .wp-step-done :is(a, button) {
    text-decoration: underline;
    text-decoration-color: var(--wp-border-strong);
    text-underline-offset: 3px;
  }

  .wp-steps :is(a, button):hover {
    text-decoration: underline;
  }

  @media (forced-colors: active) {
    .wp-steps
      > li:is([aria-current="step"], :has([aria-current="step"]))::before {
      border-width: 4px;
    }
  }

  @media (max-width: 760px) {
    .wp-steps {
      gap: var(--wp-space-md);
    }

    .wp-steps
      > li:not([aria-current="step"], :has([aria-current="step"]))
      > :not(:focus-visible) {
      position: absolute;
      inset: calc((1.75rem - var(--wp-tap-size)) / 2);
      overflow: hidden;
      color: transparent;
      text-decoration: none;
      white-space: nowrap;
      forced-color-adjust: none;
    }
  }

  /* Dialogs */

  .wp-dialog {
    width: 35rem;
    max-width: calc(100vw - 2 * var(--wp-space-md));
    max-height: calc(
      100vh - 2 * var(--wp-space-md)
    ); /* fallback for browsers without dvh */
    max-height: calc(100dvh - 2 * var(--wp-space-md));
    padding: 0;
    color: var(--wp-text);
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-lg);
  }

  .wp-dialog-wide {
    width: 48rem;
  }

  .wp-dialog::backdrop {
    background: var(--wp-overlay, rgb(0 0 0 / 0.6));
  }

  :root:has(dialog:modal) {
    overflow: hidden;
  }

  /* Flex open dialogs only, so closed ones stay hidden */
  .wp-dialog[open] {
    display: flex;
    flex-direction: column;
  }

  /* Optional form or div around head, body, and foot */
  .wp-dialog
    > :is(form, div):not(
      .wp-toasts,
      .wp-dialog-head,
      .wp-dialog-body,
      .wp-dialog-foot
    ) {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .wp-dialog-head,
  .wp-dialog-foot {
    display: flex;
    padding: var(--wp-space-md) var(--wp-space-lg);
  }

  .wp-dialog-head {
    align-items: baseline;
    justify-content: space-between;
    gap: var(--wp-space-sm);
    border-bottom: 1px solid var(--wp-border);
  }

  .wp-dialog-head :is(h1, h2, h3) {
    margin: 0;
  }

  .wp-dialog-foot {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--wp-space-xs);
    border-top: 1px solid var(--wp-border);
  }

  .wp-dialog-body[hidden] + .wp-dialog-foot {
    border-top: 0;
  }

  .wp-dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--wp-space-md) var(--wp-space-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Built by wpConfirm() */
  .wp-dialog-confirm {
    width: 26rem;
  }

  .wp-dialog-confirm .wp-dialog-head {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .wp-dialog-confirm .wp-dialog-foot {
    padding-top: var(--wp-space-xs);
    border-top: 0;
  }

  .wp-dialog-confirm .wp-dialog-body[hidden] + .wp-dialog-foot {
    padding-top: var(--wp-space-md);
  }

  .wp-dialog-lightbox {
    width: 70rem;
  }

  .wp-dialog-close {
    width: var(--wp-control-height);
    height: var(--wp-control-height);
    margin-inline-end: calc(-1 * var(--wp-space-xs));
  }

  /* Toasts
     Holder needs role="status" */

  .wp-toasts {
    position: fixed;
    right: var(--wp-space-md);
    bottom: var(--wp-space-md);
    z-index: 1100; /* above the skip link and any fixed header */
    display: grid;
    gap: var(--wp-space-xs);
    max-width: min(24rem, 100vw - 2 * var(--wp-space-md));
  }

  .wp-toast {
    display: flex;
    align-items: flex-start;
    gap: var(--wp-space-sm);
    padding: var(--wp-space-sm) var(--wp-space-md);
    color: var(--wp-text);
    overflow-wrap: anywhere;
    background: var(--wp-success-soft);
    border: 1px solid var(--wp-success);
    border-inline-start-width: 3px;
    box-shadow: var(--wp-shadow);
  }

  @media (prefers-reduced-motion: no-preference) {
    .wp-toast {
      animation: wp-toast-in var(--wp-duration) ease-out;
    }
  }

  @keyframes wp-toast-in {
    from {
      opacity: 0;
      translate: 0 var(--wp-space-xs);
    }
  }

  .wp-toast a {
    font-weight: 600;
  }

  .wp-toast-close {
    margin-block: calc(-1 * var(--wp-space-2xs));
    margin-inline: auto calc(-1 * var(--wp-space-xs));
  }

  .wp-toast-error {
    background: var(--wp-danger-soft);
    border-color: var(--wp-danger);
  }

  .wp-toast-warning {
    background: var(--wp-warning-soft);
    border-color: var(--wp-warning);
  }

  .wp-toast-info {
    background: var(--wp-link-soft);
    border-color: var(--wp-link);
  }

  @media (max-width: 480px) {
    .wp-toasts {
      left: var(--wp-space-md);
      max-width: none;
    }
  }
}
