/* COMBSS @ StatFest — site styles */

:root {
  --combss-teal:       #2a9d8f;
  --combss-teal-dark:  #1f7a70;
  --combss-teal-soft:  #e6f4f1;
  --combss-ink:        #0b3a35;
}

/* Base font size — bumped from Bootstrap default (16px) for talk projection */
body {
  font-size: 18px;
  line-height: 1.6;
}

/* Navbar — teal bar with ink-coloured text (matches headings) */
.navbar {
  border-bottom: 3px solid var(--combss-teal-dark);
}
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .dropdown-toggle,
.navbar .navbar-toggler {
  color: var(--combss-ink) !important;
}
.navbar .navbar-brand {
  font-weight: 600;
  letter-spacing: 0.2px;
}
.navbar .nav-link:hover,
.navbar .dropdown-toggle:hover {
  background-color: rgba(11, 58, 53, 0.08);
  border-radius: 4px;
}
/* Tint the right-side icons (GitHub, search) to match */
.navbar .navbar-nav .nav-link .bi,
.navbar .quarto-navigation-tool .bi {
  color: var(--combss-ink);
}

/* Dropdowns inherit the teal accent */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: var(--combss-teal-dark);
  color: var(--combss-ink);
}

/* Headings — teal-ink for a coherent palette */
h1, h2, h3 {
  color: var(--combss-ink);
}

/* Right-margin sidebar ("On this page", "Other Formats") — match body size */
#quarto-margin-sidebar,
#quarto-margin-sidebar .nav-link,
#quarto-margin-sidebar h2,
#quarto-margin-sidebar .sidebar-section-item,
#quarto-margin-sidebar .quarto-other-formats-link,
#quarto-margin-sidebar .quarto-alternate-formats {
  font-size: 1rem;
  line-height: 1.5;
}

/* Page-nav footer (Previous / Next) — flex with space-between; stacks on phones */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8em 3em;
  margin-top: 2.5em;
  padding-top: 1.2em;
  border-top: 1px solid #ddd;
}
.page-nav p {
  margin: 0;
}
.page-nav a {
  color: var(--combss-teal-dark);
  font-weight: 600;
  text-decoration: none;
}
.page-nav a:hover { text-decoration: underline; }
.page-nav .nav-spacer { flex: 1; }
@media (max-width: 480px) {
  .page-nav { flex-direction: column; align-items: stretch; }
  .page-nav .nav-spacer { display: none; }
}

/* Tables */
table {
  border-collapse: collapse;
  margin: 1em 0;
}
table th {
  background: var(--combss-teal-soft);
  text-align: left;
}
table th, table td {
  padding: 0.4em 0.8em;
  border-bottom: 1px solid #ddd;
}

/* Inline code accent */
code {
  color: var(--combss-teal-dark);
}

/* Venn diagram container — centre and cap width */
.venn-wrap {
  max-width: 560px;
  margin: 4mm auto 1.5em;
  padding-top: 4mm;
}
.venn-wrap svg {
  width: 100%;
  height: auto;
}

/* Combinatorial-counts table on sparse-GLM page —
   pull p closer to Setting, separate k from Subsets */
table.combo-table {
  width: auto;
  margin: 1em auto;
  border-collapse: collapse;
}
table.combo-table th,
table.combo-table td {
  padding: 0.45em 0.7em;
  border-bottom: 1px solid #ddd;
}
table.combo-table th:nth-child(1),
table.combo-table td:nth-child(1) {
  text-align: left;
  padding-right: 1.2em;
}
table.combo-table th:nth-child(2),
table.combo-table td:nth-child(2) {
  text-align: right;
  padding-left: 0.3em;
  padding-right: 1.2em;
}
table.combo-table th:nth-child(3),
table.combo-table td:nth-child(3) {
  text-align: right;
  padding-right: 2.6em;
}
table.combo-table th:nth-child(4),
table.combo-table td:nth-child(4) {
  text-align: left;
}

/* revealjs (kept in case slide pages are added later) */
.reveal h1, .reveal h2 {
  color: var(--combss-ink);
}
.reveal section img {
  border: none;
  box-shadow: none;
}
