/* Open Research Workflow — styles */

:root {
  --primary: #2E7D6B;
  --secondary: #4CAF93;
  --accent: #E8F5F1;
  --text-dark: #1a1a1a;
}

/* Hero section on landing page */
.hero {
  background: linear-gradient(135deg, #2E7D6B 0%, #1a4d40 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  border: none;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero .badge-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Phase cards */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.phase-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  background: white;
  transition: box-shadow 0.2s;
}

.phase-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.phase-card .phase-number {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.phase-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.phase-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Tool badges */
.tool-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--secondary);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem;
}

/* Step boxes */
.step-box {
  background: var(--accent);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
}

.step-box .step-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Callout overrides */
.callout {
  border-radius: 8px;
}

/* Code blocks */
pre {
  border-radius: 8px;
}

/* Navigation active state */
.sidebar-item-container .active {
  color: var(--primary);
  font-weight: 600;
}

/* Reading time badge — pinned to the top-right of the page content */
#quarto-document-content {
  position: relative;
}

.reading-time {
  position: absolute;
  top: 0.25rem;
  right: 0;
  display: inline-block;
  color: var(--primary);
  background: var(--accent);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.reading-time p {
  margin: 0;
}

.reading-time::before {
  content: "⏱ ";
}

@media (max-width: 768px) {
  .reading-time {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
}
