/*
 * Post Table Section.
 * The :is() prefix and !important beat the theme's table rules in
 * assets/css/single.css and assets/css/global.css, which recolor all tables.
 */
:is(section.single-post .section-inner .post-content, body) .post-table-section {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 24px;
}

:is(section.single-post .section-inner .post-content, body) .post-table-section__table {
  width: 100% !important;
  margin: 0;
  border: 0 !important;
  border-collapse: collapse !important;
  table-layout: fixed;
  background: #fff;
}

:is(section.single-post .section-inner .post-content, body) .post-table-section__table th,
:is(section.single-post .section-inner .post-content, body) .post-table-section__table td {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 16px 12px !important;
  border: 0 !important;
  color: #000 !important;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  text-align: left !important;
  vertical-align: top;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-table-section__table thead tr:first-child th {
  min-width: 0;
  border: 0 !important;
  background: #002345 !important;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  vertical-align: top;
}

:is(section.single-post .section-inner .post-content, body) .post-table-section__table thead th:nth-child(1) {
  width: 18.75%;
}

:is(section.single-post .section-inner .post-content, body) .post-table-section__table thead th:nth-child(2) {
  width: 25%;
}

:is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr:nth-child(odd) th,
:is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr:nth-child(odd) td {
  background: #fff !important;
}

:is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr:nth-child(even) th,
:is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr:nth-child(even) td {
  background: #f7f5f2 !important;
}

:is(section.single-post .section-inner .post-content, body) .post-table-section__title {
  margin: 0;
  color: inherit !important;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

:is(section.single-post .section-inner .post-content, body) .post-table-section__note {
  margin: 0;
  color: inherit !important;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

@media screen and (max-width: 768px) {
  :is(section.single-post .section-inner .post-content, body) .post-table-section__table,
  :is(section.single-post .section-inner .post-content, body) .post-table-section__table thead,
  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody,
  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tr,
  :is(section.single-post .section-inner .post-content, body) .post-table-section__table th,
  :is(section.single-post .section-inner .post-content, body) .post-table-section__table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  :is(section.single-post .section-inner .post-content, body) .post-table-section__table {
    background: transparent;
  }

  /* Hide the header row visually; its text becomes the labels below. */
  :is(section.single-post .section-inner .post-content, body) .post-table-section__table thead {
    position: absolute !important;
    top: -9999px;
    left: -9999px;
    width: 1px !important;
    height: 1px;
    overflow: hidden;
  }

  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr {
    margin: 0 0 24px !important;
    border: 1px solid #002345 !important;
    border-radius: 8px;
    background: #fff !important;
    overflow: hidden;
  }

  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr:last-child {
    margin-bottom: 0 !important;
  }

  /* The first column is the card title. */
  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr th.post-table-section__row-title {
    padding: 12px !important;
    border: 0 !important;
    background: #002345 !important;
    color: #fff !important;
    font-size: 17.6px !important;
    font-weight: 700;
    line-height: 24px !important;
    text-align: center !important;
  }

  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr th.post-table-section__row-title::before {
    content: none !important;
  }

  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr th.post-table-section__row-title * {
    color: #fff !important;
  }

  /* Data cells: the label sits in the left 45%, the value beside it. */
  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr td.post-table-section__cell {
    position: static;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-start;
    justify-content: flex-start !important;
    gap: 0;
    min-height: 32px;
    padding: 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #f7f5f2 !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 15px !important;
    line-height: 23px !important;
    text-align: left !important;
  }

  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr td.post-table-section__cell:nth-child(odd) {
    background: #f7f5f2 !important;
  }

  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr td.post-table-section__cell:last-child {
    border-bottom: 0 !important;
  }

  :is(section.single-post .section-inner .post-content, body) .post-table-section__table tbody tr td.post-table-section__cell::before {
    content: attr(data-label) ':' !important;
    position: static !important;
    display: block !important;
    flex: 0 0 45%;
    box-sizing: border-box;
    width: auto !important;
    margin: 0 !important;
    padding: 0 8px 0 0 !important;
    color: #002345 !important;
    font-weight: 700;
    text-align: left;
  }
}
