/* /how-to-use and /es/how-to-use.
   Procedural product help stays complete without screenshots. Reviewed capture
   figures bind to the stable template slots in the page source later. */

body.page-how-to {
  background: var(--surface-canvas);
}

/* The masthead uses the global .page-hero contract. This route bundle owns
   only the actions and long-form workflow layout below it. */

.page-how-to .how-to-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-how-to .how-to-actions .btn {
  white-space: normal;
  text-align: center;
}

.page-how-to .how-to-main {
  padding: 36px 0 72px;
}

.page-how-to .how-to-toc {
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.page-how-to .how-to-toc h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.page-how-to .how-to-toc ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-how-to .how-to-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue-dark);
  font-weight: 600;
}

.page-how-to .how-to-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 44px;
}

.page-how-to .how-to-principle {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.page-how-to .how-to-principle h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.page-how-to .how-to-principle p {
  margin: 0;
  color: var(--text-muted);
  line-height: var(--leading-body);
}

.page-how-to .how-to-role {
  margin: 0 0 54px;
  background: transparent;
  scroll-margin-top: calc(var(--site-nav-sticky-offset) + 16px);
}

.page-how-to .how-to-role-heading {
  max-width: var(--measure-reading);
  margin-bottom: 20px;
}

.page-how-to .how-to-role-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.page-how-to .how-to-role-heading p,
.page-how-to .how-to-boundary p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.page-how-to .how-to-workflows {
  display: grid;
  gap: 20px;
}

.page-how-to .how-to-workflow {
  min-width: 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  scroll-margin-top: calc(var(--site-nav-sticky-offset) + 16px);
}

.page-how-to .how-to-status {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e7f1fc;
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.page-how-to .how-to-workflow h3 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

.page-how-to .how-to-workflow h4 {
  margin: 22px 0 8px;
  font-size: 1.02rem;
}

.page-how-to .how-to-workflow p,
.page-how-to .how-to-workflow li,
.page-how-to .how-to-support p,
.page-how-to .how-to-support li {
  font-size: var(--type-reading);
  line-height: var(--leading-reading);
}

.page-how-to .how-to-workflow p {
  margin: 0 0 12px;
}

.page-how-to .how-to-workflow ol,
.page-how-to .how-to-workflow ul,
.page-how-to .how-to-support ul {
  margin: 0;
  padding-left: 24px;
}

.page-how-to .how-to-workflow li,
.page-how-to .how-to-support li {
  margin-bottom: 8px;
}

.page-how-to .how-to-boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.page-how-to .how-to-boundary > div {
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.page-how-to .how-to-boundary strong {
  display: block;
  margin-bottom: 4px;
}

.page-how-to .how-to-result {
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #f0f7ff;
}

.page-how-to .how-to-related {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.page-how-to .how-to-support {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #cfe3fa;
  border-radius: var(--radius-lg);
  background: #f0f7ff;
}

.page-how-to .how-to-support h2,
.page-how-to .how-to-support h3 {
  margin: 0 0 10px;
}

.page-how-to .how-to-support h3 {
  margin-top: 24px;
  font-size: 1.08rem;
}

@media (max-width: 1024px) {
  .page-how-to .how-to-toc ul,
  .page-how-to .how-to-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .page-how-to .how-to-toc ul,
  .page-how-to .how-to-principles,
  .page-how-to .how-to-boundary {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-how-to .how-to-main {
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .page-how-to .how-to-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-how-to .how-to-toc,
  .page-how-to .how-to-workflow {
    border-radius: var(--radius);
  }
}

@media (forced-colors: active) {
  .page-how-to .how-to-status,
  .page-how-to .how-to-result,
  .page-how-to .how-to-support {
    border: 1px solid CanvasText;
  }
}

@media print {
  .page-how-to .how-to-workflow {
    break-inside: avoid;
    box-shadow: none;
  }
}
