/*
  Shared documentation-page components for the WASPrFlow site.
  Used by install-guide.html, privacy.html, and release-history.html.
  Loaded after wisprflow-system.css so the shared light shell is the base.
*/

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 56px 0 14px;
}

.docs-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  max-width: 18ch;
}

.docs-hero .hero-copy p {
  margin: 0;
}

.docs-hero .callout {
  margin-top: 16px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-badge {
  width: min(100%, 280px);
  padding: 20px;
  border: 1px solid var(--wf-border);
  border-radius: 22px;
  background: var(--wf-panel);
  box-shadow: var(--wf-shadow-soft);
}

.hero-badge img {
  width: 100%;
  height: auto;
  border: 0;
  background: transparent;
}

.docs-main {
  padding: 8px 0 32px;
}

.docs-main section {
  padding: 18px 0;
}

.docs-main section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.18;
}

.docs-main .hero {
  padding: 2px 0 8px;
}

.callout {
  padding: 14px 16px;
}

.callout p {
  margin: 0;
}

.callout strong {
  color: var(--wf-text);
}

.step {
  margin-top: 14px;
  padding: 18px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.step p {
  margin: 0 0 10px;
  font-size: 0.96rem;
}

.list {
  margin: 0;
  padding-left: 20px;
}

figure {
  margin: 0;
}

.step img,
.docs-main figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--wf-border);
  background: #fff;
}

figcaption {
  margin-top: 8px;
  color: var(--wf-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.status {
  display: grid;
  gap: 8px;
}

.status .row {
  padding: 10px 12px;
  border: 1px solid var(--wf-border);
  border-radius: 12px;
  background: var(--wf-panel);
  line-height: 1.55;
}

.status .row b {
  color: var(--wf-text);
}

.good { color: #059669; }
.warn { color: #d97706; }
.bad { color: #dc2626; }

.timeline {
  display: grid;
  gap: 10px;
}

.entry {
  padding: 14px;
  border: 1px solid var(--wf-border);
  border-radius: 14px;
  background: var(--wf-panel);
}

.entry-head {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wf-accent) 20%, transparent);
  background: var(--wf-accent-soft);
  color: var(--wf-text);
  font-size: 0.84rem;
  font-weight: 700;
}

.date {
  color: var(--wf-muted);
  font-size: 0.92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.docs-main a:not(.btn):not(.cta) {
  color: var(--wf-accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-main a:not(.btn):not(.cta):hover {
  color: var(--wf-text);
}

.video-callout {
  margin-top: 16px;
  border-left: 4px solid var(--wf-accent);
}

.screenshot-note {
  margin: 10px 0 0;
  color: var(--wf-muted-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.video-callout a {
  color: var(--wf-accent-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-main ul {
  margin: 8px 0 0 18px;
}

.docs-main li + li {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .docs-hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-art {
    justify-content: flex-start;
  }
}
