/* ============================
   BASIC RESET
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================
   ROOT VARIABLES
   ============================ */
:root {
  --font-body: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-size-base: 1.05rem;
  --line-height-base: 1.65;

  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-heading: #222;
  --color-bg: #ffffff;
  --color-border: #ddd;
}

/* ============================
   PAGE LAYOUT
   ============================ */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2rem 1rem;
}

/* Center the content on larger screens */
.docs {
  max-width: 960px;
  margin: 0 auto;
}

/* ============================
   HEADINGS
   ============================ */
h1, h2, h3 {
  color: var(--color-heading);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.3px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1.25rem;
}

/* ============================
   PARAGRAPHS
   ============================ */
p {
  margin-bottom: 1rem;
}


/* ============================
   BLOCKQUOTES
   ============================ */
blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--color-border);
  background: #f8f8f8;
  font-style: normal;
  color: var(--color-muted);
}

/* ============================
   LISTS
   ============================ */
ul, ol {
  margin: 1rem 0 1rem 2rem;
  padding-left: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 600px) {
  body {
    font-size: 1rem;
    padding: 1.5rem 0.8rem;
  }

  h1 {
    font-size: 1.65rem;
  }
}

/* ============================
   OPTIONAL: DARK MODE SUPPORT
   ============================ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #eaeaea;
    --color-muted: #ccc;
    --color-heading: #fff;
    --color-bg: #111;
    --color-border: #444;
  }

  blockquote {
    background: #1b1b1b;
  }
}
.bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  color: #f9fafb;
  display: flex;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center; /* centers everything horizontally */
  justify-content: center;
  text-align: center;
}

.bottombar-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bottombar-section.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center the icons */
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.bottombar-section.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  padding: 0.25rem;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bottombar-section.social a:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.bottombar-section.social svg {
  width: 24px;
  height: 24px;
  display: block;
  color: currentColor;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .bottombar {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .bottombar-section.social {
    justify-content: center;
  }
}

/* Light mode support */
@media (prefers-color-scheme: light) {
  .bottombar {
    background: #f9fafb;
    color: #111827;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  }
  .bottombar-section.social a:hover {
    background: rgba(0,0,0,0.05);
  }
}

aside.editorial {
    background: #fdf6e3;       /* light scholarly cream */
    border-left: 4px solid #b45309; /* golden brown editorial tone */
    padding: 1.25em 1.25em;
    margin: 2em 0;
    border-radius: 8px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #3a3a3a;
}

aside.editorial p:first-child {
    margin-top: 0;
}

aside.editorial blockquote {
    background: #fff;
    border-left: 3px solid #b45309;
    font-size: 0.95rem;
    margin: 1em 1em;
    padding: 0.75em 1em;
}

/* ============================
   TABLE STYLING FIX
   ============================ */
th, td {
  /* This overrides the universal reset and sets your desired padding */
  padding: 5px; 
}