body, h1, h2, h3, h4, h5, h6, .sidebar, .menu-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
               "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", 
               "Noto Sans CJK SC", sans-serif, 
               "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Hide any baked-in numbers in sidebar and main headings 
.sidebar .menu-text,
h1.title,
h1,
h2 {
}*/

.de-emphasize {
  color: hsl(210, 10%, 33%);
  opacity: 0.5; /* Makes it slightly transparent */
}

.blockquote {
    font-size: inherit;
    color: hsl(210, 10%, 33%);
}

.quarto-float-caption {
    font-size: 1.2rem;
}

.footnotes {
    font-size: 0.7rem;
}

/* This rule specifically targets all 'td' and 'th' elements
   inside the 'small-table-text' class. */
.table-small-print td,
.table-small-print th {
  font-size: 0.7em; /* Or whatever size you prefer */
}

.table-vcenter th {
  /* Set the vertical alignment property to middle */
  vertical-align: middle !important;
}

/* Optional: style for Legal vs Arabic mode (for debugging) */
html.legal body {
  background-color: #fffdf5; /* light beige */
}
html.arabic body {
  background-color: #f5faff; /* light blue */
}
/* Numbering toggle in sidebar tools */
.numbering-toggle {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: 6px;
}

.numbering-toggle .numbering-btn {
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 8px;
  border: 1px solid var(--border-color, #d0d7de);
  background: var(--bg, #fff);
  color: var(--fg, #24292f);
  border-radius: 6px;
  cursor: pointer;
}

.numbering-toggle .numbering-btn:hover {
  background: #f6f8fa;
}

.numbering-toggle .numbering-btn.active {
  background: #0969da;
  border-color: #0969da;
  color: #fff;
}

/* Dark mode friendliness (if your theme uses dark) */
@media (prefers-color-scheme: dark) {
  .numbering-toggle .numbering-btn {
    background: #161b22;
    border-color: #30363d;
    color: #c9d1d9;
  }
  .numbering-toggle .numbering-btn:hover {
    background: #21262d;
  }
  .numbering-toggle .numbering-btn.active {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #fff;
  }
}
