@layer base {
  .ethosmark-content h1,
  .ethosmark-content h2,
  .ethosmark-content h3,
  .ethosmark-content h4,
  .ethosmark-content h5,
  .ethosmark-content h6 {
    scroll-margin-top: 6rem;
  }

  .ethosmark-content img {
    max-width: 100%;
    height: auto;
  }

  .ethosmark-content .table-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
  }

  .ethosmark-content .table-wrapper > table {
    width: 100%;
  }

  .ethosmark-content .table-wrapper--stacked tbody th {
    text-align: start;
    vertical-align: top;
  }

  .ethosmark-content .table-column-label {
    display: none;
  }

  @media screen and (max-width: 47.99rem) {
    .ethosmark-content .table-wrapper--stacked > table {
      display: block;
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .ethosmark-content .table-wrapper--stacked thead {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }

    .ethosmark-content .table-wrapper--stacked :is(tbody, tr, td, tbody th) {
      display: block;
    }

    .ethosmark-content .table-wrapper--stacked tbody tr {
      padding-block: 0.75rem;
    }

    .ethosmark-content .table-wrapper--stacked tbody tr + tr {
      border-block-start: 1px solid var(--ethosmark-table-border, currentColor);
    }

    .ethosmark-content .table-wrapper--stacked tbody td {
      margin-block-start: 0.5rem;
    }

    .ethosmark-content .table-wrapper--stacked .table-column-label {
      display: block;
      font-weight: 600;
    }
  }

  .ethosmark-content .markdown-alert {
    border-left: 0.25rem solid currentColor;
    margin: 1.5rem 0;
    padding: 1rem;
  }

  .ethosmark-content .markdown-alert-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
}
