/* =========================================
   Global layout + background (match main)
   ========================================= */

body.writeup {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top left, #ecfdf5 0%, #e0f2fe 40%, #dbeafe 100%);
  color: #0f172a;
  min-height: 100vh;
}

/* Keep everything centered in a single card */
.writeup-container {
  max-width: 960px;
  margin: 72px auto 64px;
  padding: 2.75rem 3rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* =========================================
   Top-right Home button (match main)
   ========================================= */

.top-right-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 5000;
}

.top-right-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
  border: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.top-right-btn:hover {
  background: linear-gradient(135deg, #16a34a, #0284c7);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
}

/* =========================================
   Header styling
   ========================================= */

header {
  margin-bottom: 1.75rem;
}

header h1 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

/* Project title */
header h2 {
  margin: 0.4rem 0 0;
  font-size: 1.9rem;
  color: #0f172a;
}

/* Team name pill */
#team-name {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
}

/* =========================================
   Headings + text
   ========================================= */

.page-title {
  margin-top: 0.25rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

main h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: #0f172a;
}

main p {
  margin: 0 0 0.9rem;
  line-height: 1.7;
  font-size: 0.98rem;
  color: #111827;
}

/* Optional: nicer spacing on smaller screens */
@media (max-width: 768px) {
  .writeup-container {
    margin: 72px 16px 40px;
    padding: 2rem 1.5rem;
  }

  header h2 {
    font-size: 1.6rem;
  }
}

#timelineSlide .timeline-hover-zone {
  fill: transparent !important;
  stroke: none !important;
}