/* ============================================================================
   OFFIQA — How-to page stylesheet
   Loads AFTER offiqa-design-v2.css via extra_css.
   Used by: workflow pages tagged type "How-to" (e.g. /workflows/how-to-organize-tabs-by-project/)
   ============================================================================ */

/* Requirements block — tools/apps needed before starting */
.requirements-block {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-bottom: var(--space-5);
}
.requirements-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.requirements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0; margin: 0;
}
.requirements-list li {
  margin: 0;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* Enhanced numbered step — larger marker, connector line */
.howto-steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 0;
  counter-reset: howto;
}
.howto-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-5);
  position: relative;
  margin: 0;
  counter-increment: howto;
}
.howto-step:last-child { padding-bottom: 0; }

/* Connector line */
.howto-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 2.8rem;
  width: 2px;
  height: calc(100% - 2.8rem + var(--space-5));
  background: linear-gradient(to bottom, var(--violet-xl), transparent);
  z-index: 0;
}

.howto-num {
  width: 2.8rem; height: 2.8rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(15, 51, 42, 0.24);
}
.howto-step:last-child .howto-num {
  background: var(--violet);
  box-shadow: 0 4px 12px rgba(188, 106, 46, 0.24);
}

.howto-content { padding-top: 0.4rem; }
.howto-content h3 { margin-bottom: 0.4rem; }
.howto-content p:last-child { margin-bottom: 0; }

/* Step screenshot / visual placeholder */
.step-visual {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outcome / result box */
.outcome-box {
  padding: var(--space-4);
  border: 1px solid var(--violet-tint);
  border-radius: var(--r-lg);
  background: var(--violet-tint);
  margin-top: var(--space-5);
}
.outcome-box h3 { color: var(--violet-d); margin-bottom: 0.4rem; }
.outcome-box p:last-child { margin-bottom: 0; }

/* Time estimate */
.time-estimate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

@media (max-width: 720px) {
  .howto-step { grid-template-columns: 1fr; gap: var(--space-3); }
  .howto-step:not(:last-child)::before { display: none; }
  .howto-num { display: none; }
}
