@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;1,7..72,400;1,7..72,500&family=Lora:ital,wght@0,500;0,600;0,700;1,400;1,500&display=swap');

/* Cinematic White House Night Background with Obsidian Backdrop */
body {
  background-color: #040608;
  background-image: 
    linear-gradient(
      180deg,
      rgba(4, 6, 8, 0.10) 0%,
      rgba(4, 6, 8, 0.30) 240px,
      rgba(4, 6, 8, 0.75) 560px,
      #040608 860px
    ),
    radial-gradient(
      ellipse at 50% 180px,
      rgba(4, 6, 8, 0) 0%,
      rgba(4, 6, 8, 0.25) 50%,
      #040608 90%
    ),
    url('images/white_house.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  color: #cbd5e1;
  font-family: 'Literata', Georgia, -apple-system, serif;
  letter-spacing: -0.005em;
}

/* Luxurious dark frosted-glass container with gradient fade */
#quarto-document-content {
  background: linear-gradient(
    180deg, 
    rgba(11, 15, 22, 0.68) 0%, 
    rgba(8, 12, 18, 0.86) 220px, 
    rgba(5, 8, 12, 0.94) 100%
  );
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  padding: 42px 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(0, 0, 0, 0.4);
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Refined editorial serif typography */
#quarto-document-content h1,
#quarto-document-content h2,
#quarto-document-content h3,
#quarto-document-content h4 {
  font-family: 'Lora', Georgia, serif;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#quarto-document-content h1.title {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 70%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

/* Custom sleek scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #040608;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 18px;
  margin: 20px 0;
  color: #94a3b8;
  font-style: italic;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
}

#quarto-document-content p,
#quarto-document-content li {
  font-family: 'Literata', Georgia, -apple-system, serif;
  color: #d1d5db;
  font-size: 1.15rem;
  line-height: 1.8;
}

#quarto-document-content strong {
  color: #ffffff;
}

#quarto-document-content a {
  color: #60a5fa;
  text-decoration: none;
}

#quarto-document-content a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Gallery-style white mat frame for graphs so all colors pop brilliantly */
.cell-output-display img,
.js-plotly-plot {
  background: #ffffff !important;
  border-radius: 12px;
  padding: 16px 18px 24px 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
  height: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
}

.js-plotly-plot .plot-container,
.js-plotly-plot .svg-container,
.js-plotly-plot svg.main-svg {
  max-width: 100% !important;
}

/* Polished dropdown selectors */
.form-select {
  background-color: #1a2233 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-select:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25) !important;
}

/* Polished glass navbar */
.navbar {
  background: rgba(4, 6, 8, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand::before {
  content: "🏛️";
  font-size: 1.1rem;
}

.navbar-nav .nav-link {
  color: #94a3b8 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 14px !important;
  margin: 0 3px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}

.navbar-nav .nav-link.active {
  color: #ffffff !important;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Elegant glowing divider */
#quarto-document-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  margin: 36px 0;
}

/* Sidebar TOC links */
#quarto-margin-sidebar {
  padding-top: 30px;
}

#quarto-margin-sidebar .nav-link {
  color: #8da2bb;
}

#quarto-margin-sidebar .nav-link:hover,
#quarto-margin-sidebar .nav-link.active {
  color: #ffffff;
  font-weight: 600;
}
