:root{
  --brand:#0088A9;
  --brand-dark:#005f76;
  --brand-deep:#003a49;
  --ink:#1f2937;
  --muted:#6b7280;
  --line:#d7dee5;
  --soft:#f4f8fa;
  --panel:#ffffff;
  --page-bg:#eef4f6;
  --warn:#e6a23c;
  --good:#1f9d6f;
  --rail-w:288px;
}

*{box-sizing:border-box;}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--brand-dark); color:#fff; padding:10px 16px; z-index:100;
}
.skip-link:focus{ left:12px; top:12px; }

html{scroll-behavior:smooth;}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--ink);
  background:var(--page-bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

.shell{
  display:flex;
  align-items:flex-start;
  max-width:1360px;
  margin:0 auto;
}

/* ---------- Rail / sidebar ---------- */
.rail{
  position:sticky;
  top:0;
  width:var(--rail-w);
  min-width:var(--rail-w);
  height:100vh;
  overflow-y:auto;
  background:linear-gradient(180deg, var(--brand-deep), #012b36 65%);
  color:#e7f3f6;
  padding:28px 22px 24px;
  display:flex;
  flex-direction:column;
}
.rail-top{ display:flex; flex-direction:column; gap:14px; align-items:flex-start; margin-bottom:30px; }
.saba-logo{
  width:172px;
  max-width:100%;
  height:auto;
  display:block;
  background:#fff;
  border-radius:8px;
  padding:10px 12px;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.mark{
  width:42px; height:42px; flex:none;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.25);
  display:grid; place-items:center;
  font-weight:700; letter-spacing:.04em; font-size:13px;
  color:#bfe9f2;
}
.rail-title{ font-size:15px; font-weight:700; line-height:1.25; color:#fff; }
.rail-sub{ font-size:11px; color:#9fc7cf; margin-top:4px; }

.rail-section-label{
  font-size:11px; text-transform:uppercase; letter-spacing:.12em;
  color:#7fb3bb; font-weight:700; margin:6px 2px 12px;
}

.project-nav{ display:flex; flex-direction:column; gap:6px; flex:1; }
.project-item{
  border-radius:10px;
  padding:4px 4px;
}
.project-item-head{
  display:flex; align-items:center; gap:10px;
  padding:9px 10px;
  border-radius:8px;
  font-size:13.5px;
  font-weight:700;
  color:#eaf6f8;
}
.is-active .project-item-head{ background:rgba(255,255,255,.08); }
.is-placeholder .project-item-head{ color:#6f9aa1; font-weight:400; }

.dot{ width:7px; height:7px; border-radius:50%; flex:none; }
.dot-active{ background:#5fe3c0; box-shadow:0 0 0 3px rgba(95,227,192,.18); }
.dot-idle{ background:#3d6870; }

.project-links{
  display:flex; flex-direction:column;
  padding:2px 4px 10px 30px;
}
.project-links a{
  color:#bfe1e6;
  text-decoration:none;
  font-size:13px;
  padding:6px 8px;
  border-left:2px solid rgba(255,255,255,.12);
  margin-left:1px;
}
.project-links a:hover{ color:#fff; border-left-color:#5fe3c0; }
.project-links a.is-current{
  color:#fff;
  border-left-color:#5fe3c0;
  background:rgba(255,255,255,.08);
  border-radius:0 8px 8px 0;
  font-weight:700;
}

.rail-foot{
  margin-top:16px;
  font-size:11px;
  color:#5c8890;
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:14px;
}

/* ---------- Main ---------- */
main{
  flex:1;
  min-width:0;
  padding:32px 40px 70px;
  max-width:980px;
}

.register-strip{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px 22px 6px;
  margin-bottom:22px;
  box-shadow:0 4px 14px rgba(0,58,73,.05);
  overflow-x:auto;
}
.register-strip-label{
  font-size:11px; text-transform:uppercase; letter-spacing:.12em;
  color:var(--brand-dark); font-weight:700; margin-bottom:10px;
}
.register-table{ width:100%; border-collapse:collapse; font-size:13.5px; min-width:520px; }
.register-table th{
  text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--muted); padding:6px 10px; border-bottom:1px solid var(--line);
}
.register-table td{ padding:10px; border-bottom:1px solid var(--line); }
.register-table tr.is-current td{ font-weight:700; color:var(--ink); }
.register-table tr.is-muted td{ color:var(--muted); }
.status{ display:inline-block; padding:3px 10px; border-radius:999px; font-size:11.5px; font-weight:700; }
.status-active{ background:#e3f7ef; color:var(--good); }
.status-idle{ background:#eef1f3; color:var(--muted); }

.hero{
  background:linear-gradient(135deg, var(--brand), var(--brand-dark));
  color:#fff;
  border-radius:16px;
  padding:44px 42px;
  margin-bottom:24px;
  box-shadow:0 14px 34px rgba(0,58,73,.16);
}
.eyebrow{
  text-transform:uppercase; letter-spacing:.11em; font-size:11.5px;
  font-weight:700; opacity:.9; margin:0 0 10px;
}
.hero h1{ font-size:32px; margin:0 0 14px; line-height:1.18; }
.hero .lead{ font-size:16px; max-width:720px; opacity:.95; margin:0; }
.hero-grid{
  margin-top:28px; display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.hero-grid div{ border-top:1px solid rgba(255,255,255,.28); padding-top:12px; }
.hero-grid span{
  display:block; font-size:11px; text-transform:uppercase; letter-spacing:.09em;
  color:#c9ecf1;
}
.hero-grid strong{ display:block; font-size:14.5px; font-weight:400; margin-top:6px; }

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:34px 38px;
  margin-bottom:20px;
  box-shadow:0 4px 16px rgba(0,58,73,.04);
  scroll-margin-top:20px;
}
.intro-card{
  background:var(--soft);
  border:1px solid var(--line);
}
.intro-card h2{ color:var(--brand-dark); }
.intro-card p{ max-width:640px; }
.card h2{ font-size:24px; margin:0 0 10px; color:var(--brand-deep); }
.card h3{ font-size:16.5px; margin:26px 0 8px; color:var(--ink); }
.card h3:first-of-type{ margin-top:6px; }
.card p, .card li{ font-size:15px; color:var(--ink); }
.section-intro{ color:var(--muted); }

.letter p{ margin:0 0 14px; }
.letter .sign{ margin-top:22px; }
.letter .sign span{ display:block; color:var(--muted); font-size:13px; margin-top:4px; }

.principles{ padding-left:22px; margin:18px 0 0; }
.principles li{ margin:14px 0; padding-left:4px; }
.principles li span{ display:block; color:var(--muted); font-size:14px; margin-top:4px; }
.principles li::marker{ color:var(--brand); font-weight:700; }

.notice{
  border-left:4px solid var(--warn);
  background:#fdf6ea;
  padding:18px 20px;
  border-radius:8px;
  margin:22px 0;
}
.notice strong{ display:block; margin-bottom:8px; color:#8a5a12; }
.notice p{ margin:6px 0; }

.standards{ padding-left:22px; }
.standards li{ margin:6px 0; }

/* Research workflow: connected vertical steps */
.flow{
  list-style:none; margin:22px 0 0; padding:0;
  position:relative;
}
.flow li{
  position:relative;
  padding:12px 18px 12px 46px;
  margin-bottom:2px;
}
.flow li::before{
  content:"";
  position:absolute; left:12px; top:0; bottom:0;
  width:2px; background:var(--line);
}
.flow li:first-child::before{ top:50%; }
.flow li:last-child::before{ bottom:50%; }
.flow li::after{
  content:"";
  position:absolute; left:7px; top:50%; transform:translateY(-50%);
  width:12px; height:12px; border-radius:50%;
  background:var(--panel); border:2px solid var(--brand);
}
.flow li span{
  display:inline-block;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px 16px;
  font-size:14.5px;
  font-weight:700;
  color:var(--brand-deep);
}
.flow li.flow-end::after{ background:var(--brand); border-color:var(--brand); }
.flow li.flow-end span{ background:var(--brand-dark); color:#fff; border-color:var(--brand-dark); }

.download{
  display:flex; align-items:center; gap:16px;
  border:1.5px solid var(--brand);
  border-radius:12px;
  padding:16px 20px;
  text-decoration:none;
  margin-top:20px;
  transition:background .15s ease;
}
.download:hover{ background:var(--soft); }
.download-icon{
  flex:none; width:46px; height:46px; border-radius:9px;
  background:var(--brand); color:#fff;
  display:grid; place-items:center;
  font-size:11.5px; font-weight:700; letter-spacing:.03em;
}
.download-copy{ display:flex; flex-direction:column; flex:1; }
.download-copy strong{ font-size:15px; color:var(--ink); }
.download-copy span{ font-size:13px; color:var(--muted); margin-top:2px; }
.download-arrow{ font-size:18px; color:var(--brand); font-weight:700; }

.days, .slides{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:20px;
}
.days article, .slides article{
  border:1px solid var(--line); border-radius:10px;
  background:var(--soft); padding:20px;
}
.days h3{ margin-top:0; }
.days ul{ padding-left:18px; margin:0; }
.days li{ font-size:14px; margin:8px 0; color:var(--ink); }
.days li.highlight{ font-weight:700; color:var(--brand-dark); }

.slides span{
  font-size:11px; text-transform:uppercase; letter-spacing:.1em;
  color:var(--brand); font-weight:700;
}
.slides h3{ margin:8px 0 6px; font-size:16px; }
.slides p{ font-size:13.5px; color:var(--muted); margin:0; }

.standup-list{ padding-left:20px; }
.standup-list li{ margin:8px 0; }

footer{
  padding:26px 4px 10px;
  color:var(--muted);
  font-size:12.5px;
}

/* Focus visibility */
a:focus-visible, .download:focus-visible{
  outline:2px solid var(--brand-dark); outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}

@media (max-width:980px){
  .shell{ flex-direction:column; }
  .rail{ position:relative; width:100%; min-width:0; height:auto; }
  main{ padding:24px 20px 60px; max-width:100%; }
  .hero-grid, .days, .slides{ grid-template-columns:1fr; }
  .hero h1{ font-size:26px; }
  .card{ padding:26px 22px; }
}
