/* Timeline / Comic Style - Isolated */
.timeline { position: relative; margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Comic line - overrides standard timeline */
.cartoon-timeline .timeline::before { 
  content: ""; 
  position: absolute; 
  left: 24px; 
  top: 0; 
  bottom: 0; 
  width: 4px; 
  background-image: linear-gradient(to bottom, var(--text) 33%, rgba(255,255,255,0) 0%);
  background-position: left;
  background-size: 4px 20px;
  background-repeat: repeat-y;
  background-color: transparent;
  opacity: 0.2;
}

.comic-chapter {
  position: relative;
  margin: 60px 0 30px;
  padding-left: 60px;
}
.comic-chapter h2 {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--text);
  color: var(--bg);
  display: inline-block;
  padding: 8px 16px;
  transform: rotate(-2deg);
  margin: 0;
  box-shadow: 4px 4px 0 var(--brand);
}

.timeline-item { position: relative; padding-left: 60px; margin-bottom: 40px; }

/* Comic marker dot */
.cartoon-timeline .timeline-dot { 
  position: absolute; 
  left: 16px; 
  top: 24px; 
  width: 20px; 
  height: 20px; 
  border-radius: 50%; 
  background: var(--bg); 
  border: 4px solid var(--text); 
  z-index: 2;
  box-shadow: none;
}

.comic-panel {
  background: var(--card);
  border: 3px solid var(--text);
  border-radius: 0; 
  padding: 24px;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
  position: relative;
  transition: transform 0.2s;
}
.comic-panel:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 rgba(0,0,0,0.2); }

.comic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 2px dashed var(--border);
  padding-bottom: 12px;
}
.comic-header time {
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.comic-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.comic-cell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.comic-icon { font-size: 24px; line-height: 1; }
.comic-text { font-size: 14px; margin: 0; line-height: 1.5; color: var(--muted); }

/* Speech bubble */
.comic-bubble {
  background: #fef3c7;
  border: 2px solid var(--text);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  position: relative;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: var(--text);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}
.comic-bubble strong { display: block; text-transform: uppercase; margin-bottom: 4px; font-family: Inter, sans-serif; }
.comic-bubble::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 30px;
  width: 16px;
  height: 16px;
  background: #fef3c7;
  border-left: 2px solid var(--text);
  border-top: 2px solid var(--text);
  transform: rotate(45deg);
}

/* Variant: Blue Bubble */
.comic-bubble.blue {
  background: #e0f2fe;
  border-color: #0ea5e9;
}
.comic-bubble.blue::after {
  background: #e0f2fe;
  border-left-color: #0ea5e9;
  border-top-color: #0ea5e9;
}

@media (max-width: 600px) {
  .timeline::before { left: 14px; }
  .comic-chapter { padding-left: 40px; margin: 40px 0 20px; }
  .timeline-item { padding-left: 40px; }
  .cartoon-timeline .timeline-dot { left: 6px; width: 16px; height: 16px; border-width: 3px; }
  .comic-grid { grid-template-columns: 1fr; }
}
