/* Master Stylesheet for Resonant Relativity Archive */

:root {
  --primary-blue: #00d4ff;   /* Vibrant Electric Blue */
  --slate-header: #2c3e50;   /* Deep Slate Gray */
  --slate-light: #34495e;    /* Lighter Slate for subtle gradients */
  --text-grey: #e0e0e0;      /* Fog Grey (Light text for dark background) */
  --border-light: #333333;   /* Dark Grey for subtle borders */
  --bg-sidenote: #1e1e1e;    /* Dark Surface for sidenotes */
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-grey);
  background-color: #121212;
  margin: 0;
}

/* ---------- Page Centering ---------- */

.page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-content {
  padding: 24px;
}

/* ---------- Sticky Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, var(--slate-light), var(--slate-header));
  height: 96px;
	
  /* FORCE it to stay centered and full-width */

  width: 100%;             
  max-width: 800px;
  margin: 0 auto;         /* This only works if width is defined */
  display: flex;
  align-items: center;
  border-bottom: none; 
}

.header-inner {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

/* Title Branding */

.site-title {
/* Lowering opacity slightly makes the letters feel like they are "made of vapor" */
  color: rgba(0, 212, 255, 0.9); 
  text-shadow: 
    0 0 8px rgba(0, 212, 255, 0.8),   /* Core Energy */
    0 0 20px rgba(0, 212, 255, 0.6),  /* Immediate Haze */
    0 0 45px rgba(0, 212, 255, 0.4),  /* The Mid-Fog */
    0 0 80px rgba(0, 212, 255, 0.2),  /* The Deep Dispersion */
    0 0 120px rgba(0, 212, 255, 0.1); /* The Global Glow */
  margin: 0;
  font-size: 2.5em;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: none !important; 
  padding-bottom: 0;
}

/* Navigation */

.site-nav {
  margin-left: auto;
}

.site-nav a {
  color: #ffdf00;
  text-decoration: none;
  font-weight: 800;
  padding: 6px 12px;
  border: 2px solid rgba(255, 223, 0, 0.4);
  border-radius: 4px;
  font-size: 0.95em;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255, 223, 0, 0.15);
  border-color: #ffdf00;
  color: #ffffff;
  text-decoration: none;
}

/* ---------- Content Headers ---------- */

h1 {
  display: block;
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-blue);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  border-bottom: 2px solid var(--slate-light);
  padding-bottom: 4px;
}

h2u {
  display: block;
  font-size: 1.58em;
  font-weight: bold;
  color: var(--primary-blue);
  margin-top: 0em;
  margin-bottom: 0.5em;
  border-bottom: 3px solid var(--slate-light);
}

h3 {
  font-size: 1.25em;
  color: #ffffff;
  margin-top: 1.2em;
  padding-bottom: 2px;
}

h4 {
  font-size: 1em;
  color: #ffffff;
  margin-top: 1.2em;
  margin-bottom: 2px;
}

/* ---------- Links and Interactivity ---------- */

a {
  color: #00d4ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #2a2a2a;
}

th {
  background-color: #383838;
  color: var(--primary-blue);
  text-align: left;
  padding: 12px;
  border: 1px solid #444;
}

td {
  padding: 12px;
  border: 1px solid #444;
  vertical-align: top;
  color: #ffffff;
}

tr:hover {
  background-color: #333333;
}

.framework-table {
  margin-bottom: 2em;
  background-color: #1e272e; 
  border: 1px solid #34495e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.framework-table th {
  background-color: #2c3e50; 
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9em;
}

/* Physics-specific compact tables */
table.physics-table {
  font-size: 0.85em;
  border: 2px solid var(--primary-blue) !important;
}

table.physics-table th, 
table.physics-table td {
  border: 1px solid #444 !important;
  padding: 6px !important;
}

/* ---------- Sidebar / Feature Box ---------- */

.sidebar {
  width: 100%;                /* Full width of the .page container */
  box-sizing: border-box;     /* Ensures padding doesn't stretch the width */
  background-color: #1e272e;  /* Deep Charcoal/Slate */
  border: 3px solid #00d4ff;  /* Electric Blue Border */
  border-radius: 12px;        /* Rounded corners */
  padding: 16px;
  margin: 20px 0;             /* Spacing above and below the box */
  color: #00d4ff;             /* Electric Blue text */
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1); /* Subtle blue outer glow */
}

/* Optional: Ensures headings inside the sidebar match the blue theme */
.sidebar h3, 
.sidebar h4 {
  color: #00d4ff;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Specialized Elements ---------- */

.highlight-rr { 
  background-color: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.5);
}

.sidenote {
  background-color: var(--bg-sidenote);
  border-left: 4px solid var(--primary-blue);
  padding: 15px;
  margin: 20px 0;
  font-style: italic;
  font-size: 0.95em;
}

.thought {
  display: block;
  margin: 2em auto;
  padding: 1.5em;
  width: 80%;
  border-left: 4px solid var(--border-light);
  background-color: var(--bg-sidenote);
  font-style: italic;
  color: var(--text-grey);
  line-height: 1.6;
  position: relative;
}

.thought::before {
  content: "⚓";
  position: absolute;
  top: -12px;
  left: -12px;
  background: #121212;
  padding: 2px;
  font-size: 1.2em;
  color: #ffdf00;
}

/* Tightens the gap between the header and the first heading */
.page-content h2u:first-child,
.page-content h1:first-child {
  margin-top: 0px;
  padding-top: 10px; /* Gives it just a tiny bit of "breathing room" */
}

/* Reduces the top margin of the container itself */
.page {
  max-width: 800px;
  margin: 10px auto 40px auto; /* Reduced from 40px to 10px on top */
  padding: 0 20px;
}

/* LaTeX and MathJax */
.mjx-chtml {
  margin: 1.5em 0 !important;
  color: #ffffff !important;
}

/* Code and Preformatted */
pre, code {
  font-family: "Consolas", "Monaco", monospace;
  tab-size: 2;
  background: #252525;
  color: #00d4ff;
  padding: 2px 5px;
}

/* List Spacing */
ul {
  margin-top: 10px;
}

ul li {
  margin-bottom: 4px;
}