
:root{
  --bg:#fafafa;
  --card:#ffffff;
  --text:#1a1a1a;
  --muted:#555555;
  --muted-light:#888888;
  --line:#e0e0e0;
  --primary:#1a4d8c;
  --primary-dark:#0d3a6b;
  --primary-soft:#e8f0f8;
  --accent:#c41e3a;
  --shadow:0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.12);
  --shadow-hover:0 4px 12px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.16);
  --radius:8px;
  --radius-large:12px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Crimson Text","Times New Roman",Times,serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.8;
  font-size:17px;
}
.bg-grid{
  position:fixed; inset:0; pointer-events:none; z-index:-1;
  background-image:
    linear-gradient(rgba(0,0,0,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.02) 1px, transparent 1px);
  background-size:24px 24px;
  opacity:0.5;
}
.container{width:min(1200px, calc(100% - 48px)); margin:0 auto}
.narrow{width:min(900px, calc(100% - 48px));}
.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(8px);
  background:rgba(255,255,255,.95);
  border-bottom:2px solid var(--line);
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}
.nav{
  display:flex; align-items:center; justify-content:space-between; padding:16px 0;
}
.brand{
  font-weight:700; 
  letter-spacing:.05em;
  font-size:1.2rem;
  color:var(--primary);
  font-family:"Libre Baskerville","Times New Roman",Times,serif;
}
nav a{
  color:var(--muted); 
  text-decoration:none; 
  margin-left:28px; 
  font-weight:400; 
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  transition:color 0.2s ease;
}
nav a:hover{color:var(--primary)}
.hero{padding:64px 0 48px}
.hero-inner{text-align:center}
.badge{
  display:inline-block; 
  margin:0 0 20px; 
  padding:8px 16px; 
  border-radius:4px;
  background:var(--primary); 
  color:#fff; 
  font-weight:700; 
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  border:1px solid var(--primary-dark);
}
h1{
  font-size:clamp(1.8rem, 3.5vw, 2.8rem);
  line-height:1.3; 
  margin:0 auto 20px; 
  max-width:1000px; 
  letter-spacing:-.01em;
  font-weight:700;
  color:var(--text);
  font-family:"Libre Baskerville","Times New Roman",Times,serif;
}
.authors{
  font-size:1.1rem; 
  color:var(--text); 
  margin:0 auto 8px; 
  max-width:1000px;
  font-style:italic;
  line-height:1.6;
}
.affiliations{
  font-size:.95rem; 
  color:var(--muted); 
  margin:0 auto 32px; 
  max-width:1000px;
  line-height:1.5;
}
.cta-row{
  display:flex; 
  gap:16px; 
  justify-content:center; 
  flex-wrap:wrap; 
  margin-bottom:40px;
}
.btn{
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  border:2px solid var(--primary); 
  padding:10px 24px; 
  border-radius:4px;
  text-decoration:none; 
  color:var(--primary); 
  background:#fff; 
  font-weight:600;
  font-size:.95rem;
  transition:all 0.2s ease;
  box-shadow:var(--shadow);
}
.btn:hover{
  background:var(--primary); 
  color:#fff;
  box-shadow:var(--shadow-hover);
  transform:translateY(-1px);
}
.btn.primary{
  background:var(--primary); 
  color:#fff; 
  border-color:var(--primary-dark);
}
.btn.primary:hover{
  background:var(--primary-dark);
}
.btn.disabled{
  opacity:.4; 
  cursor:not-allowed;
  border-color:var(--muted);
  color:var(--muted);
}
.btn.disabled:hover{
  transform:none;
  background:#fff;
}
.hero-figure,.wide,.result-figure{
  background:var(--card); 
  border:1px solid var(--line); 
  border-radius:var(--radius-large);
  padding:20px; 
  box-shadow:var(--shadow);
  margin:0 auto;
}
.hero-figure img,.wide img,.result-figure img{
  width:80%;
  margin:0 auto;
  border-radius:6px; 
  display:block;
  border:1px solid var(--line);
}
figcaption{
  margin-top:12px; 
  color:var(--muted); 
  font-size:.9rem;
  text-align:center;
  font-style:italic;
  line-height:1.5;
}
.section{padding:48px 0 40px}
.section.alt{
  background:linear-gradient(180deg, rgba(250,250,250,.8), rgba(255,255,255,.8));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
h2{
  font-size:clamp(1.6rem, 2.2vw, 2.2rem);
  margin:0 0 24px; 
  letter-spacing:-.01em;
  font-weight:700;
  color:var(--primary);
  border-bottom:2px solid var(--line);
  padding-bottom:12px;
  font-family:"Libre Baskerville","Times New Roman",Times,serif;
}
h3{
  margin:0 0 12px; 
  font-size:1.2rem;
  font-weight:700;
  color:var(--text);
  font-family:"Libre Baskerville","Times New Roman",Times,serif;
}
.lead{
  font-size:1.15rem; 
  color:var(--text);
  line-height:1.9;
  text-align:justify;
  margin-bottom:24px;
  text-indent:0;
}
.stats{
  display:grid; 
  grid-template-columns:repeat(3,1fr); 
  gap:20px; 
  margin:32px 0 16px;
}
.stat{
  background:var(--card); 
  border:2px solid var(--line); 
  border-radius:var(--radius-large); 
  padding:28px 24px;
  text-align:center; 
  box-shadow:var(--shadow);
  transition:all 0.2s ease;
}
.stat:hover{
  box-shadow:var(--shadow-hover);
  border-color:var(--primary);
}
.stat-value{
  display:block; 
  font-size:2.4rem; 
  font-weight:700; 
  letter-spacing:-.02em;
  color:var(--primary);
  margin-bottom:8px;
}
.stat-label{
  color:var(--muted); 
  font-weight:400;
  font-size:.95rem;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.cards{
  display:grid; 
  gap:20px; 
  margin-top:24px;
}
.cards.three{grid-template-columns:repeat(3,1fr)}
.cards.four{grid-template-columns:repeat(4,1fr)}
.card{
  background:var(--card); 
  border:1px solid var(--line); 
  border-radius:var(--radius-large); 
  padding:24px;
  box-shadow:var(--shadow);
  transition:all 0.2s ease;
}
.card:hover{
  box-shadow:var(--shadow-hover);
  border-color:var(--primary);
  transform:translateY(-2px);
}
.card p{
  margin:0; 
  color:var(--text);
  line-height:1.75;
  text-align:justify;
  font-size:1rem;
}
.pill{
  width:36px; 
  height:36px; 
  border-radius:50%; 
  background:var(--primary); 
  color:#fff;
  display:flex; 
  align-items:center; 
  justify-content:center; 
  font-weight:700; 
  margin-bottom:16px;
  font-size:1rem;
  border:2px solid var(--primary-dark);
}
.figure-grid{
  display:grid; 
  grid-template-columns:1fr; 
  gap:24px; 
  margin-top:28px;
}
.table-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-large);
  padding:28px;
  box-shadow:var(--shadow);
  margin-top:24px;
}
.table-caption{
  margin:6px 0 16px;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.6;
  text-align:justify;
}
.table-wrap{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.perf-table{
  width:100%;
  border-collapse:collapse;
  min-width:860px;
}
.perf-table th,.perf-table td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:center;
  vertical-align:middle;
  font-size:.95rem;
  line-height:1.4;
  white-space:nowrap;
}
.perf-table th{
  position:sticky;
  top:0;
  background:rgba(250,250,250,.98);
  z-index:1;
  font-weight:700;
  color:var(--primary);
}
.perf-table td:first-child,.perf-table th:first-child{
  text-align:left;
  white-space:normal;
  min-width:220px;
}
.perf-table tbody tr:nth-child(even){
  background:rgba(26,77,140,.04);
}
.perf-table .highlight-row{
  background:rgba(196,30,58,.08) !important;
}
.perf-table .highlight-row td{
  border-bottom:1px solid rgba(196,30,58,.25);
}
.clean-list{
  padding-left:24px; 
  margin:16px 0 0;
  line-height:1.8;
}
.clean-list li{
  margin:12px 0;
  text-align:justify;
}
.clean-list li strong{
  color:var(--primary);
  font-weight:700;
}
.timeline{
  display:grid; 
  gap:20px; 
  margin-top:24px;
}
.timeline-item{
  display:grid; 
  grid-template-columns:32px 1fr; 
  gap:18px; 
  align-items:start;
  background:var(--card); 
  border:1px solid var(--line); 
  border-radius:var(--radius-large); 
  padding:22px 24px; 
  box-shadow:var(--shadow);
  transition:all 0.2s ease;
}
.timeline-item:hover{
  box-shadow:var(--shadow-hover);
  border-color:var(--primary);
}
.timeline-item h3{
  margin-top:0;
}
.timeline-item p{
  margin:0;
  line-height:1.75;
  text-align:justify;
  font-size:1rem;
}
.dot{
  width:14px; 
  height:14px; 
  border-radius:50%; 
  margin-top:6px;
  background:var(--primary); 
  border:3px solid var(--primary-soft);
  box-shadow:0 0 0 4px rgba(26,77,140,.1);
  flex-shrink:0;
}
.bibtex{
  background:#1a1a1a; 
  color:#e8e8e8; 
  border-radius:var(--radius-large); 
  padding:24px; 
  overflow:auto;
  box-shadow:var(--shadow);
  border:1px solid #333;
}
.bibtex code{
  font-family:"Courier New",Courier,monospace;
  font-size:.9rem;
  line-height:1.6;
  color:#e8e8e8;
}
.footer{
  padding:32px 0 48px; 
  color:var(--muted);
  background:var(--bg);
  border-top:2px solid var(--line);
  margin-top:48px;
}
.footer-inner{
  display:flex; 
  justify-content:space-between; 
  gap:16px; 
  flex-wrap:wrap; 
  padding-top:20px;
  font-size:.9rem;
  line-height:1.6;
}
code{
  font-family:"Courier New",Courier,monospace;
  background:var(--primary-soft);
  padding:2px 6px;
  border-radius:3px;
  font-size:.9em;
  color:var(--primary-dark);
}
@media (max-width: 980px){
  .cards.three,.cards.four,.stats,.result-layout{grid-template-columns:1fr}
  nav a{margin-left:16px; font-size:.9rem}
  .container{width:calc(100% - 32px)}
  .narrow{width:calc(100% - 32px)}
  .perf-table{min-width:760px}
}
@media (max-width: 700px){
  .nav{flex-direction:column; gap:12px; align-items:center}
  nav a{margin:0 12px; font-size:.85rem}
  .hero{padding-top:32px; padding-bottom:32px}
  .section{padding:32px 0 28px}
  .stats{gap:16px}
  .stat{padding:20px}
  .stat-value{font-size:2rem}
  h2{font-size:1.5rem}
  h1{font-size:1.6rem}
  .hero-figure img,.wide img,.result-figure img{width:100%}
}
