/* === 1. Global Layout === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: url('/user/themes/quark/images/background.png') no-repeat center center fixed;
  background-size: cover;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: #111;
  position: relative;
  z-index: 0;
}

/* === 2. Full-page white blur overlay === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.5); /* Light white layer */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

/* === 3. Typography === */
h1, h2 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.3em;
  color: #111;
}

blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  font-style: italic;
  color: #555;
}

ul li {
  margin-bottom: 0.6em;
  font-size: 1.05em;
  color: #222;
}

a {
  text-decoration: none;
  border-bottom: 1px solid #aaa;
  color: #222;
}

a:hover {
  border-bottom: 1px solid #000;
  color: #000;
}

/* === 4. Main Content Wrapper === */
#page-wrapper {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
  margin-top: 10px;
  margin-bottom: 80px;
  padding: 2rem;
}

/* === 5. Sections Styling === */
.section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

/* === 6. Header (fixed) === */
#header.section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(252, 243, 222, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  color: #111;
}

#header a {
  color: #111;
  border-bottom: 1px solid transparent;
}

#header a:hover {
  color: #000;
  border-bottom: 1px solid #000;
}

/* === 7. Footer (fixed) === */
#footer,
.footer,
section#footer {
  flex-shrink: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(255, 240, 206, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  text-align: center;
  color: #111;
  font-size: 0.9em;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

#footer a {
  color: #111;
  border-bottom: 1px solid #aaa;
  text-decoration: none;
}

#footer a:hover {
  color: #000;
  border-bottom: 1px solid #000;
}

/* === 8. Remove default gray background on sections === */
.bg-gray {
  background: transparent !important;
}	


/* === Global link style === */
a {
  color: #000;  /* black by default */
  border-bottom: 1px solid #aaa;
  text-decoration: none;
}

a:hover {
  color: #6b3e26;  /* elegant brown on hover */
  border-bottom: 1px solid #6b3e26;
}

/* === Active nav link === */
#header a.active,
#header .active a {
  color: #6b3e26 !important;
  border-bottom: 1px solid #6b3e26 !important;
}

/* === FIX: Remove faint line/shadow above header === */
#header.section {
  border-top: none !important;
  box-shadow: none !important;
}