/* Shared editorial tables, including plain HTML and native WordPress blocks. */
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) :is(.adk-table-wrap,.adk-table-wrapper,.adk-table-scroll,.adk-market-table,.wp-block-table) {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  margin:24px 0;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  border:1px solid #d7e1ee;
  border-radius:8px;
  background:#fff;
  scrollbar-width:thin;
  scrollbar-color:#9aadc6 #edf2f8;
}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) {
  width:100%;
  min-width:0;
  margin:0;
  border:0;
  border-collapse:separate;
  border-spacing:0;
  table-layout:auto;
  background:#fff;
  color:#35465f;
  font-size:.94rem;
  line-height:1.65;
}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) :is(th,td) {
  min-width:0;
  padding:15px 18px;
  border:0;
  border-block-end:1px solid #dce5f0;
  border-inline-end:1px solid #e5ecf5;
  text-align:start;
  vertical-align:top;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.65;
}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) tr>:last-child {border-inline-end:0}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) tbody:last-child>tr:last-child>:is(th,td) {border-block-end:0}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) thead th {
  background:#16366b;
  color:#fff;
  font-weight:650;
  border-color:#375481;
}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) tbody th {
  width:23%;
  background:#f0f4fa;
  color:#16366b;
  font-weight:650;
}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) tbody td {background:#fff}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) tbody tr:nth-child(even)>td {background:#f5f8fc}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) tbody tr:nth-child(even)>th {background:#e9f0f8}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) caption {
  caption-side:top;
  padding:14px 18px;
  background:#edf3fa;
  color:#16366b;
  border-block-end:1px solid #d7e1ee;
  font-size:.9rem;
  font-weight:650;
  line-height:1.6;
  text-align:start;
}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) :is(p,ul,ol) {font-size:inherit;line-height:inherit}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) :is(th,td)>:first-child {margin-block-start:0}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) :is(th,td)>:last-child {margin-block-end:0}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) a {text-underline-offset:3px}
/* Preserve a useful reading width for comparisons; two-column registers can reflow. */
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:has(tr>:nth-child(3)) {min-width:38rem}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:has(tr>:nth-child(4)) {min-width:46rem}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not(:has(tr>:nth-child(3))) tr>:first-child {width:26%;min-width:7rem}
:is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not(:has(tr>:nth-child(3))) tbody td:first-child {font-weight:600;color:#16366b}
[data-adk-table-region]:focus-visible {outline:3px solid #c54d1c;outline-offset:4px}
:is(.adk-content,.adk-page-content) p.adk-table-hint {
  display:flex;
  align-items:baseline;
  gap:.55em;
  margin:-14px 0 24px;
  color:#52647c;
  font-size:.81rem;
  line-height:1.6;
}
.adk-table-hint::before {content:'↔';color:#16366b;font-size:1.15em;font-weight:700}
:is(.adk-content,.adk-page-content) p.adk-table-hint[hidden] {display:none}
/* Block captions stay outside the scrolling region when the block supplies one. */
.wp-block-table:has(>[data-adk-table-region]) {overflow:visible;border:0;background:transparent}
.wp-block-table>[data-adk-table-region] {margin:0}
.wp-block-table>figcaption {margin:10px 0 0;color:#52647c;font-size:.85rem;line-height:1.6;text-align:start}
@media(hover:hover) {
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) tbody tr:hover>:is(td,th) {background:#e8f0fa}
}
@media(max-width:700px) {
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) {font-size:.9rem}
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) :is(th,td) {padding:13px 14px}
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) caption {padding:13px 14px;font-size:.86rem}
}
@media print {
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) :is(.adk-table-wrap,.adk-table-wrapper,.adk-table-scroll,.adk-market-table,.wp-block-table) {overflow:visible;box-shadow:none}
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]),
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:has(tr>:nth-child(3)),
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:has(tr>:nth-child(4)) {min-width:0;font-size:9pt}
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) :is(th,td) {min-width:0;padding:7px 9px}
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not(:has(tr>:nth-child(3))) tr>:first-child {min-width:0}
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) thead {display:table-header-group}
  :is(.adk-content,.adk-page-content,.editor-styles-wrapper) table:not([role="presentation"]) tr {break-inside:avoid}
  :is(.adk-content,.adk-page-content) p.adk-table-hint {display:none}
}
