/* MyAqua blog tables — presentation only. Does not change post content. */
:root{
  --mqa-bt-ink: var(--look-ink, #1A2330);
  --mqa-bt-ink2: var(--look-ink2, #3A4658);
  --mqa-bt-line: var(--look-line, #E3EAF1);
  --mqa-bt-wash: var(--look-wash, #F3F8FC);
  --mqa-bt-bg: var(--look-bg, #F5F7FA);
  --mqa-bt-blue: var(--look-blue, #0E70B6);
  --mqa-bt-radius: 16px;
}

.mqa-blog-table-shell{
  position:relative;
  max-width:100%;
  margin:1.35rem 0 1.8rem;
  box-sizing:border-box;
}

.mqa-blog-table-wrap{
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  background:#fff;
  border:1px solid var(--mqa-bt-line);
  border-radius:var(--mqa-bt-radius);
  box-shadow:0 8px 24px rgba(16,42,67,.06);
  box-sizing:border-box;
}

/* Fade on the right as a scroll hint */
.mqa-blog-table-shell.is-overflowing:not(.is-at-end)::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  bottom:2.1rem;
  width:2.25rem;
  pointer-events:none;
  border-radius:0 var(--mqa-bt-radius) 0 0;
  background:linear-gradient(90deg, rgba(255,255,255,0), #fff 90%);
}

.mqa-blog-table-hint{
  display:none;
  margin:8px 2px 0;
  font-size:12px;
  line-height:1.3;
  color:var(--look-muted, #667084);
  letter-spacing:.01em;
}
.mqa-blog-table-shell.is-overflowing .mqa-blog-table-hint{
  display:flex;
  align-items:center;
  gap:6px;
}
.mqa-blog-table-hint::before{
  content:"";
  width:14px;
  height:10px;
  flex:0 0 14px;
  background:transparent;
  border-bottom:2px solid var(--mqa-bt-blue);
  border-right:2px solid var(--mqa-bt-blue);
  transform:rotate(-45deg);
  margin:0 2px 2px 0;
  opacity:.85;
}

/* Override look-2026 "table{max-width:100%}" so columns are not squashed / clipped */
body.look-2026.is_blog .mqa-blog-table-wrap > table,
body.look-2026.module-stblog .mqa-blog-table-wrap > table,
body.is_blog .mqa-blog-table-wrap > table,
.page-blog-article .mqa-blog-table-wrap > table,
.mqa-blog-table-wrap > table{
  max-width:none !important;
  width:100%;
  min-width:100%;
  margin:0 !important;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  border:0 !important;
  box-sizing:border-box;
  table-layout:auto;
}

/* On a phone, let the table be wider than the screen and scroll inside the wrapper.
   Columns stay readable (min width) and text still wraps (max width). */
@media (max-width: 991px){
  body.look-2026.is_blog .mqa-blog-table-wrap > table,
  body.look-2026.module-stblog .mqa-blog-table-wrap > table,
  body.is_blog .mqa-blog-table-wrap > table,
  .page-blog-article .mqa-blog-table-wrap > table,
  .mqa-blog-table-wrap > table{
    width:max-content;
  }
  .mqa-blog-table-wrap > table th,
  .mqa-blog-table-wrap > table td{
    min-width:7.75rem;
    max-width:13.5rem;
  }
  .mqa-blog-table-wrap > table th:first-child,
  .mqa-blog-table-wrap > table td:first-child{
    min-width:8.25rem;
    max-width:11rem;
  }
}

.mqa-blog-table-wrap > table th,
.mqa-blog-table-wrap > table td{
  padding:11px 14px;
  font-size:14px;
  line-height:1.45;
  color:var(--mqa-bt-ink);
  vertical-align:top;
  border:0;
  border-bottom:1px solid var(--mqa-bt-line);
  border-right:1px solid var(--mqa-bt-line);
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:manual;
}
.mqa-blog-table-wrap > table th:last-child,
.mqa-blog-table-wrap > table td:last-child{
  border-right:0;
}
.mqa-blog-table-wrap > table tr:last-child th,
.mqa-blog-table-wrap > table tr:last-child td{
  border-bottom:0;
}

/* Header row */
.mqa-blog-table-wrap > table thead th,
.mqa-blog-table-wrap > table thead td,
.mqa-blog-table-wrap > table tr.mqa-blog-table-headrow th,
.mqa-blog-table-wrap > table tr.mqa-blog-table-headrow td{
  background:var(--mqa-bt-wash);
  color:var(--mqa-bt-ink);
  font-weight:600;
  font-size:13px;
  letter-spacing:.01em;
  vertical-align:middle;
}

/* Zebra (skipped on tables that already have bgcolor in the HTML) */
.mqa-blog-table-shell:not(.has-bgcolor) .mqa-blog-table-wrap > table tr.mqa-even td,
.mqa-blog-table-shell:not(.has-bgcolor) .mqa-blog-table-wrap > table tr.mqa-even th{
  background:var(--mqa-bt-bg);
}

.mqa-blog-table-shell:not(.has-bgcolor) .mqa-blog-table-wrap > table tbody tr:not(.mqa-blog-table-headrow):hover td{
  background:#EAF3FA;
}

/* Sticky first column on mobile when the table is wider than the screen */
@media (max-width:767px){
  .mqa-blog-table-shell.is-overflowing .mqa-blog-table-wrap > table th:first-child,
  .mqa-blog-table-shell.is-overflowing .mqa-blog-table-wrap > table td:first-child{
    position:sticky;
    left:0;
    z-index:2;
    background:#fff;
    box-shadow:6px 0 8px -6px rgba(16,42,67,.2);
  }
  .mqa-blog-table-shell.is-overflowing .mqa-blog-table-wrap > table thead th:first-child,
  .mqa-blog-table-shell.is-overflowing .mqa-blog-table-wrap > table thead td:first-child,
  .mqa-blog-table-shell.is-overflowing .mqa-blog-table-wrap > table tr.mqa-blog-table-headrow th:first-child,
  .mqa-blog-table-shell.is-overflowing .mqa-blog-table-wrap > table tr.mqa-blog-table-headrow td:first-child{
    background:var(--mqa-bt-wash);
    z-index:3;
  }
  .mqa-blog-table-shell:not(.has-bgcolor).is-overflowing .mqa-blog-table-wrap > table tr.mqa-even td:first-child{
    background:var(--mqa-bt-bg);
  }
  /* bgcolor tables: sticky column keeps its own cell color, just add the shadow */
  .mqa-blog-table-shell.has-bgcolor.is-overflowing .mqa-blog-table-wrap > table td:first-child,
  .mqa-blog-table-shell.has-bgcolor.is-overflowing .mqa-blog-table-wrap > table th:first-child{
    background-color:inherit;
  }
}

/* Keep the hint and wrapper inside the 16px page gutter */
body.look-2026 .blog_content .mqa-blog-table-shell,
body.look-2026 #blog_primary_block .mqa-blog-table-shell{
  max-width:100%;
}