/* === THEME ROOT VARIABLES === */
:root {
  --bg: #ffffff;
  --text: #111111;
}

html[data-theme='dark'] {
  --bg: #111111;
  --text: #f5f5f5;
}

/* === BASE LAYOUT === */
body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0s ease, color 0.8s ease;
  font-family: 'Helvetica Neue', sans-serif;
}

.navbar {
  border-bottom: 0px solid #eaeaea;
  padding: 1rem 2rem;
}

.container.content {
  max-width: 768px !important; /* or 800px if you prefer */
  margin: 0 auto;
}

section.section {
  padding-top: 0rem;
  padding-bottom: 0rem;
}



h1, h2, h3, h4, h5, h6, p, a {
  color: var(--text);
  transition: color 0.3s ease;
}

/* === TYPOGRAPHY === */
p {
  font-size: 1.25rem; /* ≈18px */
  line-height: 1.7;
}

strong {
  font-weight: 600;
}

/* === UNIFIED HEADING LAYOUT === */
.section-heading-group,
summary {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.section-number {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  position: relative;
  top: 0.1rem; /* visually aligns number with heading */
  color: var(--text);
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.4;
  display: inline-block;
  
}

/* === ACCORDION STYLING (DETAILS) === */
details {
  margin-bottom: 3rem;
}

summary {
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  margin-bottom: 1rem;
}

details .content {
  margin-left: 3.1rem;
}

/* === LONGFORM HEADINGS === */
.content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}


.content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* === QUOTE BLOCK === */
.quote-block {
  font-style: normal;
  padding-left: 2.8rem;
  margin: 1.5rem 0 3rem;
  border-left: 3px solid var(--text);
  background: none;
  color: var(--text);
}

html[data-theme='dark'] .quote-block {
  background-color: none;
}

/* === TABLE STYLING === */
table {
  background-color: transparent;
}

th, td {
  color: var(--text);
  border-color: var(--text);
}

thead th {
  font-weight: 600;
  border-bottom: 2px solid var(--text);
}

tbody tr:hover {
  background-color: #f5f5f5;
}

html[data-theme='dark'] tbody tr:hover {
  background-color: #1a1a1a;
}

/* === VISUALLY HIDDEN FOR SEO HEADINGS === */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
