@font-face {
  font-family: 'Caladea';
  src: url('assets/fonts/Caladea-Regular.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: 'Caladea';
  src: url('assets/fonts/Caladea-Bold.ttf') format('truetype');
  font-weight: bold;
}
@font-face {
  font-family: 'Carlito';
  src: url('assets/fonts/Carlito-Regular.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: 'Carlito';
  src: url('assets/fonts/Carlito-Bold.ttf') format('truetype');
  font-weight: bold;
}

:root {
  --navy-950: #0F0F24;
  --navy-900: #12122A;
  --navy-800: #1A1A2E;
  --navy-line: #3A3A5C;
  --ice-400: #7DD3E8;
  --ice-600: #3FA9CC;
  --cream: #F7F4EE;
  --cream-line: #E1DACB;
  --text-light: #EDEEF5;
  --text-muted: #B9C2DA;
  --text-dark: #1A1A2E;
  --text-body: #4B4E63;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Carlito', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
}

.wrap { max-width: 920px; margin: 0 auto; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(160deg, #12122A 0%, #1A1A2E 55%, #202046 100%);
  padding: 40px 32px 30px 32px;
  color: var(--text-light);
}
.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ice-400);
  font-weight: bold;
  margin-bottom: 8px;
}
.hero h1 {
  font-family: 'Caladea', serif;
  font-size: 40px;
  font-weight: bold;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.hero .sub { font-size: 14px; color: var(--text-muted); }
.hero .datepill { text-align: right; font-size: 11px; color: #8B93B4; white-space: nowrap; }
.hero .datepill .live {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ice-400);
}
.hero .datepill .live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ice-400);
  margin-right: 5px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ---------- PROGRESS BAR ---------- */
.progress-wrap { max-width: 920px; margin: 22px auto 0 auto; padding: 0 32px; }
.progress-label { display:flex; justify-content:space-between; font-size:11px; color: var(--text-muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.5px; font-weight:bold;}
.progress-track { height: 6px; background: var(--navy-line); border-radius: 4px; overflow:hidden; }
.progress-fill { height: 100%; background: var(--ice-400); border-radius: 4px; }

/* ---------- THREAD / JOURNEY ---------- */
.journey { background: var(--navy-900); padding: 30px 32px 36px 32px; }
.thread-row {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 6px;
}
.thread-line {
  position: absolute;
  top: 21px; left: 32px; right: 32px;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--navy-line) 0, var(--navy-line) 6px, transparent 6px, transparent 11px);
  z-index: 1;
}
.thread-line-fill {
  position: absolute;
  top: 21px; left: 32px;
  height: 2px;
  background: var(--ice-400);
  z-index: 2;
}
.node {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  width: 19%; text-align: center;
}
.dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: bold;
  margin-bottom: 10px;
}
.dot-done { background: var(--ice-400); color: var(--navy-950); border: 2px solid var(--ice-400); }
.dot-active { background: var(--navy-900); color: var(--ice-400); border: 3px solid var(--ice-400); box-shadow: 0 0 0 4px rgba(125,211,232,0.18); }
.dot-upcoming { background: var(--navy-900); color: #5C6488; border: 2px solid var(--navy-line); }
.node-label { font-size: 10.5px; font-weight: bold; color: var(--text-light); line-height: 1.3; text-transform: uppercase; letter-spacing: 0.3px; white-space: pre-line; }
.node-status { font-size: 9.5px; color: var(--ice-400); margin-top: 4px; font-weight: bold; }
.node-status.muted { color: #6B7396; }

/* ---------- DETAIL LIST ---------- */
.details { max-width: 920px; margin: 0 auto; padding: 30px 32px 6px 32px; }
.row { display: flex; padding: 16px 0; border-bottom: 1px solid var(--cream-line); gap: 16px; }
.row:first-child { padding-top: 2px; }
.row:last-child { border-bottom: none; }
.row-num { width: 40px; font-family: 'Caladea', serif; font-size: 19px; font-weight: bold; color: #C9CFE0; flex-shrink: 0; }
.row-num.done-num { color: var(--ice-600); }
.row-body { flex: 1; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.row-title { font-family: 'Caladea', serif; font-size: 17px; font-weight: bold; color: var(--text-dark); }
.pill { font-size: 10px; font-weight: bold; letter-spacing: 0.5px; text-transform: uppercase; padding: 4px 11px; border-radius: 12px; white-space: nowrap; }
.pill-done { background: #DCF2F8; color: #1F7A96; }
.pill-active { background: var(--navy-800); color: var(--ice-400); }
.pill-upcoming { background: #EDEBE3; color: #8A8470; }
.row-desc { font-size: 13px; color: var(--text-body); line-height: 1.5; }

/* ---------- SUBTOPICS ---------- */
.subtopics {
  margin-top: 12px;
  padding: 12px 14px;
  background: #F1EDE3;
  border-radius: 6px;
}
.subtopic { margin-bottom: 11px; }
.subtopic:last-child { margin-bottom: 0; }
.subtopic:not(:last-child) { padding-bottom: 11px; border-bottom: 1px solid var(--cream-line); }
.subtopic-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.subtopic-title { font-size: 12.5px; font-weight: bold; color: var(--text-dark); display: flex; align-items: center; gap: 7px; }
.subtopic-frac { font-size: 11px; font-weight: bold; color: var(--ice-600); flex-shrink: 0; }
.sub-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  font-size: 8px; line-height: 1; color: #A8A296; border: 1.5px solid #C9C2AE; flex-shrink: 0;
}
.sub-icon-done { color: var(--navy-950); background: var(--ice-400); border-color: var(--ice-400); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: flex-start; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: bold; line-height: 1.2;
  padding: 4px 10px 4px 7px;
  border-radius: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.chip-icon { font-size: 9px; line-height: 1; width: 13px; height: 13px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chip-done { background: #DCF2F8; color: #1F7A96; }
.chip-done .chip-icon { background: var(--ice-600); color: #fff; }
.chip-pending { background: #EDEBE3; color: #8A8470; }
.chip-pending .chip-icon { border: 1.5px solid #B9B29C; }
.chip-empty { font-size: 11px; color: #A8A296; font-style: italic; }
.pill-sm { padding: 3px 9px; font-size: 9px; }

/* ---------- DATA ROOM CALLOUT ---------- */
.callout {
  max-width: 856px; margin: 20px auto 30px auto;
  background: var(--navy-800); border-radius: 8px; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--text-light); flex-wrap: wrap;
}
.callout-left { flex: 1; min-width: 240px; }
.callout-eyebrow { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ice-400); font-weight: bold; margin-bottom: 4px; }
.callout-title { font-family: 'Caladea', serif; font-size: 18px; font-weight: bold; margin-bottom: 6px; }
.callout-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; max-width: 480px; }
.callout-pill { font-size: 10.5px; font-weight: bold; letter-spacing: 0.5px; text-transform: uppercase; background: var(--ice-400); color: var(--navy-950); padding: 9px 16px; border-radius: 12px; white-space: nowrap; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-900); padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center;
  color: #8B93B4; font-size: 12px; flex-wrap: wrap; gap: 8px;
}
.footer-brand { color: var(--text-light); font-weight: bold; letter-spacing: 0.5px; }
.footer .accent { color: var(--ice-400); }
.footer a { color: var(--ice-400); text-decoration: none; }

/* ---------- LOADING / ERROR ---------- */
.state-msg { color: var(--text-muted); font-size: 13px; padding: 40px 32px; text-align: center; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 680px) {
  .hero { padding: 28px 20px 22px 20px; }
  .hero h1 { font-size: 30px; }
  .hero-inner { flex-direction: column; }
  .hero .datepill { text-align: left; }
  .progress-wrap { padding: 0 20px; }

  .journey { padding: 22px 20px 26px 20px; }
  .thread-row { flex-direction: column; gap: 18px; }
  .thread-line, .thread-line-fill { display: none; }
  .node { width: 100%; flex-direction: row; text-align: left; align-items: center; gap: 12px; }
  .node .dot { margin-bottom: 0; flex-shrink: 0; }
  .node-label { white-space: normal; }

  .details { padding: 22px 20px 6px 20px; }
  .row { flex-direction: column; gap: 4px; }
  .row-num { width: auto; }

  .callout { flex-direction: column; align-items: flex-start; margin: 16px 20px 24px 20px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
}
