/* =========================
   Base & Typography
   ========================= */

:root {
  --font-sans: "Noto Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif", "Georgia", "Times New Roman", serif;

  --color-text: #333;
  --color-accent: #32a852;
  --color-muted: #666;
}

body {
  font-family: var(--font-serif);
  color: var(--color-text);
  font-size: 125%;
  line-height: 1.5;
  max-width: 45rem;
  padding: 1rem;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-sans);
  margin-top: 0; /* optional reset */
}

.content {
  margin-bottom: 2rem;
  text-decoration: none;
  font-family: var(--font-serif);
}

/* =========================
   Links & Logo
   ========================= */

a.logo {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 80px;
  color: black;
}

/* generic nav links */
.main-menu a {
  text-decoration: none;
  color: var(--color-accent);
}

/* =========================
   Header & Branding
   ========================= */

.site-header {
  text-align: center;
  margin-bottom: 2rem;
  color: black;
}

.site-branding {
  margin-bottom: 1rem;
}

.site-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 2rem; /* tweak as needed */
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-title a:hover {
  text-decoration: underline; /* optional */
}

.site-subtitle {
  margin: 0.25rem 0 0;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--color-muted);
}

/* =========================
   Navigation
   ========================= */

.site-nav {
  display: flex;
  justify-content: center;
}

.main-menu {
  display: flex;
  gap: 1.5rem;    /* space between menu items */
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

/* =========================
   Hero Image
   ========================= */

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Footer
   ========================= */

footer {
  font-family: var(--font-sans);
  color: grey;
  font-size: 15px;
  text-align: center;
}

/* =========================
   Tabs Shortcode
   ========================= */

.book-tabs {
  margin: 1rem 0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;

  display: flex;
  flex-wrap: wrap;
}

/* Hide the radio buttons */
.book-tabs input.toggle {
  display: none;
}

/* Tab labels */
.book-tabs label {
  display: inline-block;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

/* Content panels */
.book-tabs .book-tabs-content {
  order: 999;          /* push all content blocks to the end */
  width: 100%;
  border-top: 1px solid #f0f0f0;
  padding: 1rem;
  display: none;       /* hidden by default */
}

/* When a tab is selected, style the label… */
.book-tabs input.toggle:checked + label {
  border-bottom-color: #007acc;   /* or your accent color */
}

/* …and show its content block */
.book-tabs input.toggle:checked + label + .book-tabs-content {
  display: block;
}

/* =========================
   Booktabs-style tables
   ========================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: var(--font-sans); /* or var(--font-serif) if you prefer */
}

/* Cell padding, no vertical borders */
table th,
table td {
  padding: 0.35rem 0.75rem;
  text-align: left;
  border-left: none;
  border-right: none;
}

/* Top rule + header-bottom (acts like \toprule + \midrule) */
table thead th {
  border-top: 2px solid #000;    /* \toprule */
  border-bottom: 1px solid #000; /* \midrule */
}

/* Body: no gridlines by default (booktabs philosophy) */
table tbody td {
  border-top: none;
  border-bottom: none;
}

/* Bottom rule on last row of body (\bottomrule) */
table tbody tr:last-child td {
  border-bottom: 2px solid #000;
}

/* Base fenced block */
pre code {
  display: block;
  padding: 1rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
  background: #f7f7f7;
  color: #222;
}

pre code.language-sh,
pre code.language-bash,
pre code.language-zsh {
  background: #111;
  color: #d0d0d0;
  border-left: 4px solid #32a852; /* your accent color */
}

pre code.language-py,
pre code.language-python {
  background: #fcf8e3; /* pale yellow */
  border-left: 4px solid #e7c000;
}

pre code.language-sql {
  background: #eef6ff; /* pale blue */
  border-left: 4px solid #007acc;
}

/* SHORTCODES */
.addendum {
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: rgba(0, 0, 0, 0.7); /* slight transparency */
  margin-top: 1rem;
  text-align: center;
}

/* Github Icon Footer */

footer .github-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: inherit; /* inherits footer color */
}

footer .github-icon {
  width: 15px;
  height: 15px;
}