body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #f7f9fb;
  line-height: 1.6;
}

header {
  background: #143c5a;
  color: white;
  padding: 2rem;
  text-align: center;
}

header h1 {
  margin: 0;
}

.subtitle {
  font-size: 1.1rem;
  color: #dbe9f4;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 950px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

section {
  background: white;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h2 {
  color: #143c5a;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

th {
  background: #e9f1f7;
}

.button {
  display: inline-block;
  background: #1f6f9f;
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}

.button:hover {
  background: #155577;
}

pre {
  background: #f1f1f1;
  padding: 1rem;
  overflow-x: auto;
}

.pub-list li {
  margin-bottom: 1rem;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}


p {
  margin-bottom: 1.2em;
}

/* ===== Global figure system ===== */

.fig {
  margin: 2.5em auto;
  text-align: center;
}

/* Single-panel figures (like Fig 1 & 3) */
.fig-single {
  max-width: 700px;   /* control overall size */
}

.fig-single img {
  width: 100%;
  max-width: 700px;
  height: auto;
}

/* Multi-panel figures (like Fig 2) */
.fig-double {
  max-width: 900px;
}

.fig-row {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.fig-row img {
  width: 48%;
  max-width: 420px;
  height: auto;
}

/* Caption styling (very important for professional look) */
.fig figcaption {
  font-size: 0.9em;
  color: #444;
  margin-top: 0.6em;
  line-height: 1.4;
}

/* Optional: subtle figure border (Nature-style feel) */
.fig img {
  border-radius: 4px;
}

/* Tighten spacing relative to text */
.fig + p {
  margin-top: 1em;
}


.table-container {
  max-width: 900px;
  margin: 2.5em auto;
  overflow-x: auto;
}

.table-caption {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.7em;
  text-align: center;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  background: white;
}

.styled-table th,
.styled-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  vertical-align: top;
}

.styled-table th {
  background: #e9f1f7;
  font-weight: 700;
  text-align: left;
}

.styled-table td:first-child {
  font-family: monospace;
  font-weight: 600;
  white-space: nowrap;
}

.table-section td {
  background: #f3f6f8;
  font-weight: 700;
  color: #143c5a;
  text-align: left;
}


.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2em;
  font-size: 0.92em;
}

.data-table th,
.data-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  vertical-align: top;
}

.data-table th {
  background: #e9f1f7;
  color: #143c5a;
  font-weight: 700;
}

.data-table td:first-child {
  font-weight: 700;
  color: #143c5a;
}

.download-btn {
  display: inline-block;
  padding: 6px 10px;
  background: #1f6f9f;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.9em;
}

.download-btn:hover {
  background: #155577;
}

.download-btn.secondary {
  background: #666;
}

.download-btn.secondary:hover {
  background: #444;
}

code {
  background: #f1f1f1;
  padding: 2px 4px;
  border-radius: 3px;
}

pre {
  background: #f6f8fa;
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
}

.logo-row img {
  height: 60px;
  max-width: 180px;
  object-fit: contain;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 15px 20px;
  background-color: #f2f6fa;
}

.logo-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.logo-row img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

.site-header h1 {
  color: #143c5a;
  margin: 0;
}

.site-header {
  background-color: #ffffff;   /* pure white */
  border-bottom: 1px solid #e0e0e0;  /* subtle separation */
}

/* ===== HEADER FIX ===== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 20px;
}

/* Title */
.site-header h1 {
  color: #143c5a;
  margin: 0;
}

/* Subtitle (make darker) */
.site-header .subtitle {
  color: #444;   /* darker than before */
  margin: 5px 0 10px 0;
}

/* Navigation links */
.site-header nav a {
  color: #143c5a;   /* dark blue */
  text-decoration: none;
  margin-right: 15px;
  font-weight: 500;
}

/* Hover effect */
.site-header nav a:hover {
  color: #1f6f9f;
  text-decoration: underline;
}


.header-top {
  display: flex;
  flex-direction: column;   /* stack logos + figure */
  align-items: flex-start;  /* keep everything left */
  gap: 8px;
}

/* small figure */
.header-figure {
  width: 220px;   /* adjust size */
  height: auto;
  margin-top: 4px;
}

/* Main row layout */
.header-main {
  display: flex;
  align-items: center;     /* 🔥 vertically align */
  gap: 30px;
  margin-top: 10px;
}

/* Left side (figure) */
.header-left {
  flex-shrink: 0;          /* prevent shrinking */
}

.header-figure {
  width: 220px;
  height: auto;
  display: block;
}

/* Right side (text + nav) */
.header-right {
  flex: 1;
  text-align: center;      /* 🔥 keep text centered */
}

/* Title */
.header-right h1 {
  margin: 0;
  color: #143c5a;
}

/* Subtitle */
.header-right .subtitle {
  margin: 6px 0 10px 0;
  color: #444;
}

/* Navigation */
.header-right nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.header-right nav a {
  color: #143c5a;
  text-decoration: none;
  font-weight: 500;
}

.header-right nav a:hover {
  text-decoration: underline;
}

.site-header {
  position: relative;   /* 🔥 required for centering */
  padding: 15px 20px;
  background-color: #f2f6fa;
}

/* Main row */
.header-main {
  display: flex;
  align-items: center;
}

/* Left figure */
.header-left {
  flex-shrink: 0;
}

.header-figure {
  width: 220px;
  height: auto;
}

/* 🔥 TRUE CENTERING */
.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);   /* 🔥 center relative to page */

  text-align: center;
  width: 800px;   /* optional but helps layout */
}

/* Title */
.header-center h1 {
  margin: 0;
  color: #143c5a;
}

/* Subtitle */
.header-center .subtitle {
  margin: 6px 0 10px 0;
  color: #444;
}

/* Nav */
.header-center nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.header-center nav a {
  color: #143c5a;
  text-decoration: none;
}
