/* === Light + Navy Blue Research Theme v2 === */
/* Subtle dotted grid + orange-highlighted headings */

html {
  font-size: 18px;
  scroll-behavior: smooth;
  background-color: #f9fafc;

  /* dotted background grid */
  background-image: radial-gradient(circle, #e8eaed 0.6px, transparent 0.6px);
  background-size: 16px 16px;
}

body {
  color: #1e293b;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  margin: 4rem auto;
  max-width: 64rem;
  padding: 0 1.5rem;
  background-color: rgba(255,255,255,0.8);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: "DM Sans", "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e293b;
  letter-spacing: 0.05em;
  margin: 2rem 0 1rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.3em;
}

/* --- Full-width orange highlight for H1 and H2 only --- */
h1::after,
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px; /* slightly thicker bar */
  width: 100%;
  background-color: #ff7a00;
  border-radius: 2px;
}

/* --- No highlight for smaller headings --- */
h3::after,
h4::after,
h5::after,
h6::after {
  content: none;
}

/* --- Font sizing --- */
h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.4rem;
}


/* --- Paragraphs --- */
p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
  max-width: 70ch;
}

/* --- Lists --- */
ul, ol {
  padding-left: 1.6rem;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
li {
  margin-bottom: 0.5rem;
}

/* --- Links --- */
a, a:visited {
  color: #ff7a00;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 122, 0, 0.4);
  transition: all 0.2s ease-in-out;
}
a:hover, a:focus {
  color: #fb923c;
  border-bottom: 1px solid #fb923c;
}

/* --- Code blocks --- */
pre, code {
  font-family: "Fira Code", "Source Code Pro", monospace;
}
pre {
  background-color: #f1f5f9;
  border-left: 4px solid #ff7a00;
  padding: 1rem;
  line-height: 1.5;
  overflow-x: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
code {
  background-color: #f1f5f9;
  padding: 0.25em 0.4em;
  border-radius: 4px;
  color: #1e3a8a;
}

/* --- Blockquotes --- */
blockquote {
  border-left: 4px solid #ff7a00;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #334155;
  background-color: #f8fafc;
  border-radius: 4px;
  font-style: italic;
}

/* --- Tables --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 2rem 0;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid #e2e8f0;
  padding: 0.75em 1em;
  text-align: left;
}
th {
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
}
tr:nth-child(even) {
  background-color: #f9fafc;
}

/* --- Horizontal rules --- */
hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 2.5rem 0;
}

/* --- Images --- */
img {
  display: block;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* --- Callouts --- */
.note, .tip, .warning {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.note {
  background-color: #f0f9ff;
  border-left: 4px solid #2563eb;
  color: #1e3a8a;
}
.tip {
  background-color: #fff7ed;
  border-left: 4px solid #ff7a00;
  color: #78350f;
}
.warning {
  background-color: #fef2f2;
  border-left: 4px solid #dc2626;
  color: #7f1d1d;
}

/* --- Footer --- */
footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  text-align: center;
  color: #64748b;
  opacity: 0.9;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}

/* --- Lab logo styling --- */
.lab-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.lab-logo img {
  width: 260px; /* Adjust size as needed */
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}
