/* Shared public table styles. ASP advertising material is excluded. */
:is(.cfs-media__content, .rich-text) .wp-block-table:not(:where(.cfs-ad-material *)),
.cfs-web__table:not(:where(.cfs-ad-material *)) {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 24px;
  border: 1px solid #d7e3ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(18 45 66 / 5%);
  scrollbar-width: thin;
  scrollbar-color: #9bb3c5 #edf3f7;
  -webkit-overflow-scrolling: touch;
}
:is(.cfs-media__content, .rich-text) .wp-block-table table:not(:where(.cfs-ad-material *)),
.cfs-web__table table:not(:where(.cfs-ad-material *)),
.cfs-company-details .company-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #263746;
  background: #fff;
  font-size: .9375rem;
  line-height: 1.65;
  letter-spacing: normal;
  text-align: left;
}
:is(.cfs-media__content, .rich-text) .wp-block-table :is(th, td):not(:where(.cfs-ad-material *)),
.cfs-web__table table :is(th, td):not(:where(.cfs-ad-material *)),
.cfs-company-details .company-table :is(th, td) {
  min-width: 10rem;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #e1eaf1;
  border-right: 1px solid #e1eaf1;
  vertical-align: top;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: left;
}
:is(.cfs-media__content, .rich-text) .wp-block-table tr > :first-child:not(:where(.cfs-ad-material *)) {
  min-width: 9rem;
}
.cfs-web__table table tr > :first-child {
  min-width: 9rem;
  width: auto;
}
:is(.cfs-media__content, .rich-text) .wp-block-table thead:not(:where(.cfs-ad-material *)),
.cfs-web__table table thead { border: 0; }
:is(.cfs-media__content, .rich-text) .wp-block-table thead th:not(:where(.cfs-ad-material *)),
.cfs-web__table table thead th {
  padding-block: 15px;
  color: #fff;
  background: #153d56;
  border-color: rgb(255 255 255 / 15%);
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 700;
}
/* Use only two row colors, including the first column. */
:is(.cfs-media__content, .rich-text) .wp-block-table tbody tr:nth-child(odd) > :is(th, td):not(:where(.cfs-ad-material *)),
.cfs-web__table table tbody tr:nth-child(odd) > :is(th, td),
.cfs-company-details .company-table tbody tr:nth-child(odd) > :is(th, td) {
  background: #fff;
}
:is(.cfs-media__content, .rich-text) .wp-block-table tbody tr:nth-child(even) > :is(th, td):not(:where(.cfs-ad-material *)),
.cfs-web__table table tbody tr:nth-child(even) > :is(th, td),
.cfs-company-details .company-table tbody tr:nth-child(even) > :is(th, td) {
  background: #f8fafc;
}
:is(.cfs-media__content, .rich-text) .wp-block-table tbody tr > :first-child:not(:where(.cfs-ad-material *)),
.cfs-web__table table tbody th,
.cfs-company-details .company-table tbody th {
  color: #183c55;
  font-weight: 700;
}
.cfs-web__table table tbody td:nth-child(2) {
  white-space: normal;
  font-weight: 400;
}
.cfs-web__table table:has(tr > :nth-child(3)) tbody td:nth-child(2) {
  min-width: 6.5rem;
  white-space: nowrap;
  font-weight: 700;
}
.cfs-web__table table:has(tr > :nth-child(3)) tr > :nth-child(3) { min-width: 18rem; }
.cfs-company-details .company-table {
  overflow: hidden;
  border: 1px solid #d7e3ed;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgb(18 45 66 / 5%);
}
.cfs-company-details .company-table td { min-width: 0; font-weight: 400; }
.cfs-company-details .company-table th { min-width: 7rem; }
:is(.cfs-media__content, .rich-text) .wp-block-table tr > :last-child:not(:where(.cfs-ad-material *)),
.cfs-web__table table tr > :last-child,
.cfs-company-details .company-table tr > :last-child { border-right: 0; }
:is(.cfs-media__content, .rich-text) .wp-block-table tbody tr:last-child > :is(th, td):not(:where(.cfs-ad-material *)),
.cfs-web__table table tbody tr:last-child > :is(th, td),
.cfs-company-details .company-table tbody tr:last-child > :is(th, td) { border-bottom: 0; }
.cfs-web__table table caption {
  padding: 16px 18px;
  color: #183c55;
  background: #fff;
  text-align: left;
  font-size: .9375rem;
  line-height: 1.6;
  font-weight: 700;
}
:is(.cfs-media__content, .rich-text) .wp-block-table figcaption:not(:where(.cfs-ad-material *)) {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid #e1eaf1;
  font-size: .8125rem;
  line-height: 1.6;
  color: #536575;
  background: #fff;
  text-align: left;
}
@media (hover: hover) {
  :is(.cfs-media__content, .rich-text) .wp-block-table tbody tr:hover > :is(th, td):not(:where(.cfs-ad-material *)),
  .cfs-web__table table tbody tr:hover > :is(th, td),
  .cfs-company-details .company-table tbody tr:hover > :is(th, td) { background: #eaf3f9; }
}
@media (max-width: 640px) {
  .cfs-company-details .company-table :is(th, td) { min-width: 0; }
  .cfs-company-details .company-table th { border-right: 0; border-bottom: 0; padding-bottom: 4px; }
  .cfs-company-details .company-table td { padding-top: 4px; }
}

/* Smaller descriptions distinguish them from the first-column labels. */
:is(.cfs-media__content, .rich-text) .wp-block-table tbody tr > td:not(:first-child):not(:where(.cfs-ad-material *)),
.cfs-web__table table tbody tr > td:not(:first-child),
.cfs-company-details .company-table tbody td {
  font-size: .8rem;
  line-height: 1.75;
}

/* Keep first-column labels distinct from the smaller descriptions. */
:is(.cfs-media__content, .rich-text) .wp-block-table tbody tr > :first-child:not(:where(.cfs-ad-material *)),
.cfs-web__table table tbody tr > :first-child,
.cfs-company-details .company-table tbody th {
  font-size: .9rem;
}
