/* ==========================================================================
   article-tables.css — completes table styling in article bodies (.full-text)
   Added 2026-08-11 (Claude Code session).
   NOTE: theme/Default/redesign.css already sets `.full-text table` to
   width/border-collapse/margin only (no cell borders, padding or header).
   This file ADDS the missing cell + header rules (different properties, so it
   complements rather than overrides that rule). Kept separate so concurrent
   edits to redesign.css cannot clobber it and vice-versa. Loaded after
   redesign.css in each language main.tpl. Scoped under .full-text.
   Uses theme tokens → light/dark aware via [data-theme="dark"].
   ========================================================================== */

.full-text table{
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  overflow:hidden;
}
.full-text table td,
.full-text table th{
  padding:11px 14px;
  text-align:left;
  vertical-align:top;
  color:var(--text);
  border-bottom:1px solid var(--border);
}
/* Header: any <th>, or the first row of a header-less generated table. */
.full-text table th,
.full-text table:not(:has(thead)) tr:first-child td{
  color:var(--heading);
  font-weight:600;
  background:var(--surface-3);
  border-bottom:1px solid var(--border-strong);
}
.full-text table tr:last-child td{ border-bottom:0; }
.full-text table tbody tr:hover,
.full-text table:not(:has(thead)) tr:hover{ background:var(--surface-3); }

@media (max-width:600px){
  .full-text table{ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
}
