/* ============================
   TIMELINE PAGE — CGT DEADLINES
   ============================ */

/* --- Card Header + Layout --- */
.timeline-page .card h2 {
  margin: -30px -30px 20px -30px;
  padding: 15px 20px;
  background: var(--color-bg-light);
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
}

.timeline-page .card {
  max-width: 1100px;
  margin: 20px auto;
}

/* ============================
   HORIZONTAL TIMELINE GRAPHIC
   ============================ */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 30px 0;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 4px;
  background: #ddd;
  z-index: 0;
}

.milestone {
  position: relative;
  text-align: center;
  width: 22%;
  z-index: 1;
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #ddd;
}

.dot.green { background: var(--color-success); }
.dot.gold  { background: var(--color-accent); }

.label {
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--color-text);
}
.label strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.label .warn  { color: var(--color-error); font-size: 0.85rem; }
.label .note  { color: #555; font-size: 0.85rem; font-style: italic; }

/* --- Responsive Layout for Timeline --- */
@media (max-width: 768px) {
  .timeline { flex-direction: column; align-items: flex-start; }
  .timeline::before {
    width: 4px; height: 100%; top: 0; left: 32px;
  }
  .milestone {
    width: 100%; display: flex; align-items: center; margin: 20px 0;
  }
  .dot { margin: 0 15px 0 0; }
  .label { text-align: left; }
}

/* ============================
   Compact Timeline Notes (Flex Layout)
   ============================ */
.timeline-box {
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 10px 14px;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #222;
  line-height: 1.4;
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;             /* ✅ smaller horizontal gap */
  margin-bottom: 4px;
}

.timeline-row .item {
  flex: 1 1 48%;         /* ✅ two equal-width columns per row */
  display: flex;
  align-items: baseline; /* aligns text neatly */
  gap: 6px;              /* ✅ minimal gap between date and desc */
}

.timeline-row .date {
  font-weight: bold;
  color: var(--color-primary);
  white-space: nowrap;
  min-width: 110px;      /* keeps dates neat but compact */
}

.timeline-row .desc {
  flex: 1;
}

/* Responsive stacking on smaller screens */
@media (max-width: 800px) {
  .timeline-row {
    flex-direction: column;
  }
  .timeline-row .item {
    flex-direction: column;
    gap: 2px;
  }
}


/* ============================
   SCENARIO SECTION
   ============================ */
.scenario-formula {
  background: var(--color-bg-light);
  border: 1px solid #cde3d3;
  border-radius: 6px;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.95rem;
  font-family: "Courier New", Courier, monospace;
  color: var(--color-primary);
  margin: 12px 0 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.scenario-formula strong {
  color: #000;
  font-weight: bold;
}

/* --- Scenario Table --- */
.scenario-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}
.scenario-table th {
  background: var(--color-bg-light);
  color: var(--color-primary);
  padding: 10px;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid var(--color-accent);
}
.scenario-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  vertical-align: top;
}
.scenario-table tr:nth-child(even) { background: #fafafa; }
.scenario-table tr:first-child td { background: #f7fff9; font-weight: 500; }

.scenario-table td:contains("✅") { color: var(--color-success); font-weight: bold; }
.scenario-table td:contains("❌") { color: var(--color-error); font-weight: bold; }
.scenario-table td:contains("⚠️") { color: #cc9900; font-weight: bold; }

/* ============================
   FINAL INFO / CHECKLIST CARD
   ============================ */
.green-checklist {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.green-checklist li {
  position: relative;
  padding-left: 32px;
  margin: 8px 0;
  line-height: 1.5;
  color: #222;
}

.green-checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #e6f9e6;
  color: var(--color-success);
  border: 1px solid #b2d8b2;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================
   LAST CARD — SLIGHT EMPHASIS
   ============================ */
.timeline-page .card:last-of-type {
  background: #fcfffc;
}
.timeline-page .card:last-of-type h2 {
  background: var(--color-bg-light);
  border-bottom: 3px solid var(--color-accent);
  color: var(--color-primary);
}
